@dialpad/dialtone-vue 2.57.1 → 2.59.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.
@@ -2258,6 +2258,7 @@ __webpack_require__.d(__webpack_exports__, {
2258
2258
  "DtSkeletonParagraph": () => (/* reexport */ skeleton_paragraph),
2259
2259
  "DtSkeletonShape": () => (/* reexport */ skeleton_shape),
2260
2260
  "DtSkeletonText": () => (/* reexport */ skeleton_text),
2261
+ "DtStack": () => (/* reexport */ stack),
2261
2262
  "DtTab": () => (/* reexport */ tab),
2262
2263
  "DtTabGroup": () => (/* reexport */ tab_group),
2263
2264
  "DtTabPanel": () => (/* reexport */ tab_panel),
@@ -2334,7 +2335,7 @@ if (typeof window !== 'undefined') {
2334
2335
  // Indicate to webpack that this file can be concatenated
2335
2336
  /* harmony default export */ const setPublicPath = (null);
2336
2337
 
2337
- ;// 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/avatar/avatar.vue?vue&type=template&id=f68dc5f0&
2338
+ ;// 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/avatar/avatar.vue?vue&type=template&id=39b70ea2&
2338
2339
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",staticClass:"d-avatar__canvas"},[(_vm.showDefaultSlot)?_vm._t("default"):(_vm.showInitials)?_c('span',{class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({class:[
2339
2340
  'd-avatar__presence',
2340
2341
  _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
@@ -2562,14 +2563,14 @@ const pascalCaseToKebabCase = string => {
2562
2563
  flushPromises,
2563
2564
  kebabCaseToPascalCase
2564
2565
  });
2565
- ;// 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/presence/presence.vue?vue&type=template&id=30834c22&
2566
- var presencevue_type_template_id_30834c22_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-presence",attrs:{"data-qa":"dt-presence","role":"status","aria-live":_vm.$attrs.ariaLive || 'off'}},[(_vm.srText)?_c('span',{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[_vm._v(_vm._s(_vm.srText)+" ")]):_vm._e(),_c('div',{staticClass:"d-presence__inner",class:{
2566
+ ;// 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/presence/presence.vue?vue&type=template&id=77957bb3&
2567
+ var presencevue_type_template_id_77957bb3_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-presence",attrs:{"data-qa":"dt-presence","role":"status","aria-live":_vm.$attrs.ariaLive || 'off'}},[(_vm.srText)?_c('span',{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[_vm._v(_vm._s(_vm.srText)+" ")]):_vm._e(),_c('div',{staticClass:"d-presence__inner",class:{
2567
2568
  'd-presence__inner--active': _vm.presence === 'active',
2568
2569
  'd-presence__inner--away': _vm.presence === 'away',
2569
2570
  'd-presence__inner--busy': _vm.presence === 'busy',
2570
2571
  'd-presence__inner--offline': _vm.presence === 'offline',
2571
2572
  }})])}
2572
- var presencevue_type_template_id_30834c22_staticRenderFns = []
2573
+ var presencevue_type_template_id_77957bb3_staticRenderFns = []
2573
2574
 
2574
2575
 
2575
2576
  ;// CONCATENATED MODULE: ./components/presence/presence_constants.js
@@ -2612,11 +2613,12 @@ const PRESENCE_STATES_LIST = [PRESENCE_STATES.BUSY, PRESENCE_STATES.AWAY, PRESEN
2612
2613
  */
2613
2614
 
2614
2615
  /* harmony default export */ const presencevue_type_script_lang_js_ = ({
2615
- name: 'Presence',
2616
+ name: 'DtPresence',
2616
2617
  props: {
2617
2618
  /**
2618
2619
  * Determines the color of the inner presence circle, indicating status.
2619
2620
  * Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
2621
+ * @values busy, away, active, offline
2620
2622
  */
2621
2623
  presence: {
2622
2624
  type: String,
@@ -2749,8 +2751,8 @@ function normalizeComponent (
2749
2751
  ;
2750
2752
  var component = normalizeComponent(
2751
2753
  presence_presencevue_type_script_lang_js_,
2752
- presencevue_type_template_id_30834c22_render,
2753
- presencevue_type_template_id_30834c22_staticRenderFns,
2754
+ presencevue_type_template_id_77957bb3_render,
2755
+ presencevue_type_template_id_77957bb3_staticRenderFns,
2754
2756
  false,
2755
2757
  null,
2756
2758
  null,
@@ -2903,6 +2905,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
2903
2905
  * Determines whether to show the presence indicator for
2904
2906
  * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
2905
2907
  * or 'active'. By default, it's null and nothing is shown.
2908
+ * @values null, busy, away, offline, active
2906
2909
  */
2907
2910
  presence: {
2908
2911
  type: String,
@@ -5614,13 +5617,13 @@ var combobox_loading_listvue_type_template_id_07d9971d_render = function () {var
5614
5617
  var combobox_loading_listvue_type_template_id_07d9971d_staticRenderFns = []
5615
5618
 
5616
5619
 
5617
- ;// 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/list_item/list_item.vue?vue&type=template&id=b658c946&
5618
- var list_itemvue_type_template_id_b658c946_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({tag:"component",class:['dt-list-item d-ls-none', {
5620
+ ;// 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/list_item/list_item.vue?vue&type=template&id=1de8fea6&
5621
+ var list_itemvue_type_template_id_1de8fea6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({tag:"component",class:['dt-list-item d-ls-none', {
5619
5622
  'dt-list-item--focusable': _vm.isFocusable,
5620
5623
  'dt-list-item--highlighted': _vm.isHighlighted,
5621
5624
  'dt-list-item--static': !_vm.isHoverable,
5622
5625
  }],attrs:{"id":_vm.id,"tabindex":_vm.isFocusable ? 0 : -1,"role":_vm.role,"aria-selected":_vm.isHighlighted}},_vm.listItemListeners),[(_vm.listItemType)?_c(_vm.listItemType,{tag:"component",scopedSlots:_vm._u([_vm._l((_vm.$slots),function(_,slotName){return {key:slotName,fn:function(){return [_vm._t(slotName)]},proxy:true}}),(_vm.selected)?{key:"selected",fn:function(){return [_c('dt-icon',{staticClass:"d-ml8",attrs:{"name":"check","size":"400"}})]},proxy:true}:null],null,true)}):_vm._t("default")],2)}
5623
- var list_itemvue_type_template_id_b658c946_staticRenderFns = []
5626
+ var list_itemvue_type_template_id_1de8fea6_staticRenderFns = []
5624
5627
 
5625
5628
 
5626
5629
  ;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
@@ -5637,9 +5640,9 @@ const LIST_ITEM_NAVIGATION_TYPES = {
5637
5640
  LIST_ITEM_TYPES,
5638
5641
  LIST_ITEM_NAVIGATION_TYPES
5639
5642
  });
5640
- ;// 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/list_item/default_list_item.vue?vue&type=template&id=2e45cfbd&
5641
- var default_list_itemvue_type_template_id_2e45cfbd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[(_vm.$slots.left)?_c('section',{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[_vm._t("left")],2):_vm._e(),_c('section',{staticClass:"d-fl-grow1 d-of-hidden"},[(_vm.$slots.default)?_c('div',[_vm._t("default")],2):_vm._e(),(_vm.$slots.subtitle)?_c('div',{class:['d-fs-100 d-fc-black-600', { 'd-mtn2': _vm.$slots.default }],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[_vm._t("subtitle")],2):_vm._e(),(_vm.$slots.bottom)?_c('div',{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[_vm._t("bottom")],2):_vm._e()]),(_vm.$slots.right)?_c('section',{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[_vm._t("right")],2):_vm._e(),_vm._t("selected")],2)}
5642
- var default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns = []
5643
+ ;// 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/list_item/default_list_item.vue?vue&type=template&id=37a42626&
5644
+ var default_list_itemvue_type_template_id_37a42626_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[(_vm.$slots.left)?_c('section',{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[_vm._t("left")],2):_vm._e(),_c('section',{staticClass:"d-fl-grow1 d-of-hidden"},[(_vm.$slots.default)?_c('div',[_vm._t("default")],2):_vm._e(),(_vm.$slots.subtitle)?_c('div',{class:['d-fs-100 d-fc-black-600', { 'd-mtn2': _vm.$slots.default }],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[_vm._t("subtitle")],2):_vm._e(),(_vm.$slots.bottom)?_c('div',{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[_vm._t("bottom")],2):_vm._e()]),(_vm.$slots.right)?_c('section',{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[_vm._t("right")],2):_vm._e(),_vm._t("selected")],2)}
5645
+ var default_list_itemvue_type_template_id_37a42626_staticRenderFns = []
5643
5646
 
5644
5647
 
5645
5648
  ;// 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/list_item/default_list_item.vue?vue&type=script&lang=js&
@@ -5688,7 +5691,7 @@ var default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns = []
5688
5691
  //
5689
5692
  //
5690
5693
  /* harmony default export */ const default_list_itemvue_type_script_lang_js_ = ({
5691
- name: 'DefaultListItem'
5694
+ name: 'DtDefaultListItem'
5692
5695
  });
5693
5696
  ;// CONCATENATED MODULE: ./components/list_item/default_list_item.vue?vue&type=script&lang=js&
5694
5697
  /* harmony default export */ const list_item_default_list_itemvue_type_script_lang_js_ = (default_list_itemvue_type_script_lang_js_);
@@ -5707,8 +5710,8 @@ var default_list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(737
5707
5710
 
5708
5711
  var default_list_item_component = normalizeComponent(
5709
5712
  list_item_default_list_itemvue_type_script_lang_js_,
5710
- default_list_itemvue_type_template_id_2e45cfbd_render,
5711
- default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns,
5713
+ default_list_itemvue_type_template_id_37a42626_render,
5714
+ default_list_itemvue_type_template_id_37a42626_staticRenderFns,
5712
5715
  false,
5713
5716
  null,
5714
5717
  null,
@@ -5770,7 +5773,7 @@ var default_list_item_component = normalizeComponent(
5770
5773
  */
5771
5774
 
5772
5775
  /* harmony default export */ const list_itemvue_type_script_lang_js_ = ({
5773
- name: 'ListItem',
5776
+ name: 'DtListItem',
5774
5777
  components: {
5775
5778
  DtDefaultListItem: default_list_item,
5776
5779
  DtIcon: icon
@@ -5969,8 +5972,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(285);
5969
5972
 
5970
5973
  var list_item_component = normalizeComponent(
5971
5974
  list_item_list_itemvue_type_script_lang_js_,
5972
- list_itemvue_type_template_id_b658c946_render,
5973
- list_itemvue_type_template_id_b658c946_staticRenderFns,
5975
+ list_itemvue_type_template_id_1de8fea6_render,
5976
+ list_itemvue_type_template_id_1de8fea6_staticRenderFns,
5974
5977
  false,
5975
5978
  null,
5976
5979
  null,
@@ -8095,28 +8098,28 @@ var collapsible_component = normalizeComponent(
8095
8098
  /* harmony default export */ const collapsible = (collapsible_component.exports);
8096
8099
  ;// CONCATENATED MODULE: ./components/collapsible/index.js
8097
8100
 
8098
- ;// 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/dropdown/dropdown.vue?vue&type=template&id=3c1dacf6&
8099
- var dropdownvue_type_template_id_3c1dacf6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":_vm.shouldOpenWithArrowKeys,"open-on-context":_vm.openOnContext},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
8101
+ ;// 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/dropdown/dropdown.vue?vue&type=template&id=359f1c8b&
8102
+ var dropdownvue_type_template_id_359f1c8b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","append-to":_vm.appendTo,"modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":_vm.shouldOpenWithArrowKeys,"open-on-context":_vm.openOnContext},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
8100
8103
  var attrs = ref.attrs;
8101
8104
  return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
8102
8105
  var close = ref.close;
8103
8106
  return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[_vm._t("list",null,{"close":close}),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"tabindex":_vm.isArrowKeyNav ? -1 : 0},on:{"close":close}}):_vm._e()],2)]}}],null,true)},_vm.dropdownListeners))}
8104
- var dropdownvue_type_template_id_3c1dacf6_staticRenderFns = []
8107
+ var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
8105
8108
 
8106
8109
 
8107
- ;// 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=1fe3451a&
8108
- var popovervue_type_template_id_1fe3451a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--opened': _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
8110
+ ;// 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=cdba9054&
8111
+ var popovervue_type_template_id_cdba9054_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--opened': _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
8109
8112
  'aria-expanded': _vm.isOpen.toString(),
8110
8113
  'aria-controls': _vm.id,
8111
8114
  'aria-haspopup': _vm.role,
8112
8115
  }})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
8113
- 'max-height': _vm.maxHeight,
8116
+ 'max-height': _vm.calculatedMaxHeight,
8114
8117
  'max-width': _vm.maxWidth,
8115
8118
  }),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""}},_vm.popoverListeners),[(_vm.$slots.headerContent || _vm.showCloseButton)?_c('popover-header-footer',{ref:"popover__header",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"content-class":_vm.headerClass,"type":"header","show-close-button":_vm.showCloseButton,"close-button-props":_vm.closeButtonProps},on:{"close":_vm.closePopover},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("headerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),_c('div',{ref:"popover__content",class:[
8116
8119
  'd-popover__content',
8117
8120
  _vm.POPOVER_PADDING_CLASSES[_vm.padding],
8118
8121
  _vm.contentClass ],attrs:{"data-qa":"dt-popover-content"}},[_vm._t("content",null,{"close":_vm.closePopover})],2),(_vm.$slots.footerContent)?_c('popover-header-footer',{ref:"popover__footer",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"type":"footer","content-class":_vm.footerClass},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("footerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel},on:{"close":_vm.closePopover}}):_vm._e()],1)],1)],1)}
8119
- var popovervue_type_template_id_1fe3451a_staticRenderFns = []
8122
+ var popovervue_type_template_id_cdba9054_staticRenderFns = []
8120
8123
 
8121
8124
 
8122
8125
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
@@ -12612,7 +12615,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
12612
12615
  const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
12613
12616
  const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
12614
12617
  const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
12615
- const POPOVER_APPEND_TO_VALUES = ['parent'];
12618
+ const POPOVER_APPEND_TO_VALUES = ['parent', 'body'];
12616
12619
  const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
12617
12620
  const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
12618
12621
  ;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
@@ -13398,11 +13401,12 @@ var popover_header_footer_component = normalizeComponent(
13398
13401
 
13399
13402
  /**
13400
13403
  * Sets the element to which the popover is going to append to.
13401
- * @values 'parent', HTMLElement,
13404
+ * 'body' will append to the nearest body (supports shadow DOM).
13405
+ * @values 'body', 'parent', HTMLElement,
13402
13406
  */
13403
13407
  appendTo: {
13404
13408
  type: [HTMLElement, String],
13405
- default: () => document.body,
13409
+ default: 'body',
13406
13410
  validator: appendTo => {
13407
13411
  return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
13408
13412
  }
@@ -13428,6 +13432,8 @@ var popover_header_footer_component = normalizeComponent(
13428
13432
  return {
13429
13433
  POPOVER_PADDING_CLASSES: POPOVER_PADDING_CLASSES,
13430
13434
  POPOVER_HEADER_FOOTER_PADDING_CLASSES: POPOVER_HEADER_FOOTER_PADDING_CLASSES,
13435
+ intersectionObserver: null,
13436
+ isOutsideViewport: false,
13431
13437
  isOpen: false,
13432
13438
  anchorEl: null,
13433
13439
  popoverContentEl: null
@@ -13450,6 +13456,14 @@ var popover_header_footer_component = normalizeComponent(
13450
13456
  };
13451
13457
  },
13452
13458
 
13459
+ calculatedMaxHeight() {
13460
+ if (this.isOutsideViewport && this.modal) {
13461
+ return `calc(100vh - var(--space-300))`;
13462
+ }
13463
+
13464
+ return this.maxHeight;
13465
+ },
13466
+
13453
13467
  labelledBy() {
13454
13468
  // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
13455
13469
  // there is no aria-label and the labelledby should point to the anchor.
@@ -13537,19 +13551,30 @@ var popover_header_footer_component = normalizeComponent(
13537
13551
  },
13538
13552
 
13539
13553
  mounted() {
13540
- const externalAnchorEl = document.getElementById(this.externalAnchor);
13554
+ const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
13541
13555
  this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
13542
13556
  this.popoverContentEl = this.$refs.content.$el;
13543
13557
 
13544
13558
  if (this.isOpen) {
13545
13559
  this.initTippyInstance();
13546
- }
13560
+ } // rootMargin here must be greater than the margin of the height we are setting in calculatedMaxHeight which
13561
+ // currently is var(--space-300) (4px). If not the intersectionObserver will continually trigger in an infinite
13562
+ // loop.
13563
+ // threshold 1.0 makes this trigger every time the dialog "touches" the edge of the viewport.
13564
+
13565
+
13566
+ this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport, {
13567
+ rootMargin: '-8px',
13568
+ threshold: 1.0
13569
+ });
13570
+ this.intersectionObserver.observe(this.popoverContentEl);
13547
13571
  },
13548
13572
 
13549
13573
  beforeDestroy() {
13550
13574
  var _this$tip7;
13551
13575
 
13552
13576
  (_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
13577
+ this.intersectionObserver.disconnect();
13553
13578
  this.removeReferences();
13554
13579
  this.removeEventListeners();
13555
13580
  },
@@ -13558,6 +13583,11 @@ var popover_header_footer_component = normalizeComponent(
13558
13583
  * METHODS *
13559
13584
  ******************/
13560
13585
  methods: {
13586
+ hasIntersectedViewport(entries) {
13587
+ const dialog = entries === null || entries === void 0 ? void 0 : entries[0];
13588
+ this.isOutsideViewport = !(dialog !== null && dialog !== void 0 && dialog.isIntersecting);
13589
+ },
13590
+
13561
13591
  popperOptions() {
13562
13592
  return getPopperOptions({
13563
13593
  fallbackPlacements: this.fallbackPlacements,
@@ -13574,7 +13604,9 @@ var popover_header_footer_component = normalizeComponent(
13574
13604
 
13575
13605
  calculateAnchorZindex() {
13576
13606
  // if a modal is currently active render at modal-element z-index, otherwise at popover z-index
13577
- if (document.querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')) {
13607
+ if (this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 650 when
13608
+ // anchor of popover is within a drawer.
13609
+ this.anchorEl.closest('.d-zi-drawer')) {
13578
13610
  return 650;
13579
13611
  } else {
13580
13612
  return 300;
@@ -13811,13 +13843,15 @@ var popover_header_footer_component = normalizeComponent(
13811
13843
  },
13812
13844
 
13813
13845
  initTippyInstance() {
13846
+ var _this$anchorEl2, _this$anchorEl2$getRo;
13847
+
13814
13848
  this.tip = tippy_utils_createTippy(this.anchorEl, {
13815
13849
  popperOptions: this.popperOptions(),
13816
13850
  contentElement: this.popoverContentEl,
13817
13851
  placement: this.placement,
13818
13852
  offset: this.offset,
13819
13853
  sticky: this.sticky,
13820
- appendTo: this.appendTo,
13854
+ appendTo: this.appendTo === 'body' ? (_this$anchorEl2 = this.anchorEl) === null || _this$anchorEl2 === void 0 ? void 0 : (_this$anchorEl2$getRo = _this$anchorEl2.getRootNode()) === null || _this$anchorEl2$getRo === void 0 ? void 0 : _this$anchorEl2$getRo.querySelector('body') : this.appendTo,
13821
13855
  interactive: true,
13822
13856
  trigger: 'manual',
13823
13857
  // We have to manage hideOnClick functionality manually to handle
@@ -13853,8 +13887,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(532);
13853
13887
 
13854
13888
  var popover_component = normalizeComponent(
13855
13889
  popover_popovervue_type_script_lang_js_,
13856
- popovervue_type_template_id_1fe3451a_render,
13857
- popovervue_type_template_id_1fe3451a_staticRenderFns,
13890
+ popovervue_type_template_id_cdba9054_render,
13891
+ popovervue_type_template_id_cdba9054_staticRenderFns,
13858
13892
  false,
13859
13893
  null,
13860
13894
  null,
@@ -13925,6 +13959,8 @@ const DROPDOWN_PADDING_CLASSES = {
13925
13959
  //
13926
13960
  //
13927
13961
  //
13962
+ //
13963
+
13928
13964
 
13929
13965
 
13930
13966
 
@@ -13972,6 +14008,7 @@ const DROPDOWN_PADDING_CLASSES = {
13972
14008
 
13973
14009
  /**
13974
14010
  * Vertical padding size around the list element.
14011
+ * @values none, small, large
13975
14012
  */
13976
14013
  padding: {
13977
14014
  type: String,
@@ -13993,6 +14030,7 @@ const DROPDOWN_PADDING_CLASSES = {
13993
14030
  /**
13994
14031
  * Width configuration for the popover content. When its value is 'anchor',
13995
14032
  * the popover content will have the same width as the anchor.
14033
+ * @values null, anchor
13996
14034
  */
13997
14035
  contentWidth: {
13998
14036
  type: String,
@@ -14035,6 +14073,7 @@ const DROPDOWN_PADDING_CLASSES = {
14035
14073
  * - "arrow-keys" for items that are navigated with UP/DOWN keys.
14036
14074
  * - "tab" for items that are navigated using the TAB key.
14037
14075
  * - "none" for static items that are not interactive.
14076
+ * @values arrow-keys, tab, none
14038
14077
  */
14039
14078
  navigationType: {
14040
14079
  type: String,
@@ -14045,6 +14084,12 @@ const DROPDOWN_PADDING_CLASSES = {
14045
14084
  /**
14046
14085
  * If the dropdown does not fit in the direction described by "placement",
14047
14086
  * it will attempt to change it's direction to the "fallbackPlacements".
14087
+ *
14088
+ * @values top, top-start, top-end,
14089
+ * right, right-start, right-end,
14090
+ * left, left-start, left-end,
14091
+ * bottom, bottom-start, bottom-end,
14092
+ * auto, auto-start, auto-end
14048
14093
  * */
14049
14094
  fallbackPlacements: {
14050
14095
  type: Array,
@@ -14083,6 +14128,19 @@ const DROPDOWN_PADDING_CLASSES = {
14083
14128
  listClass: {
14084
14129
  type: [String, Array, Object],
14085
14130
  default: ''
14131
+ },
14132
+
14133
+ /**
14134
+ * Sets the element to which the popover is going to append to.
14135
+ * 'body' will append to the nearest body (supports shadow DOM).
14136
+ * @values 'body', 'parent', HTMLElement,
14137
+ */
14138
+ appendTo: {
14139
+ type: [HTMLElement, String],
14140
+ default: 'body',
14141
+ validator: appendTo => {
14142
+ return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
14143
+ }
14086
14144
  }
14087
14145
  },
14088
14146
  emits: [
@@ -14319,8 +14377,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(774);
14319
14377
 
14320
14378
  var dropdown_component = normalizeComponent(
14321
14379
  dropdown_dropdownvue_type_script_lang_js_,
14322
- dropdownvue_type_template_id_3c1dacf6_render,
14323
- dropdownvue_type_template_id_3c1dacf6_staticRenderFns,
14380
+ dropdownvue_type_template_id_359f1c8b_render,
14381
+ dropdownvue_type_template_id_359f1c8b_staticRenderFns,
14324
14382
  false,
14325
14383
  null,
14326
14384
  null,
@@ -19612,15 +19670,15 @@ var toggle_component = normalizeComponent(
19612
19670
  /* harmony default export */ const toggle = (toggle_component.exports);
19613
19671
  ;// CONCATENATED MODULE: ./components/toggle/index.js
19614
19672
 
19615
- ;// 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=4f441454&
19616
- var tooltipvue_type_template_id_4f441454_render = function () {
19673
+ ;// 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=0c394aac&
19674
+ var tooltipvue_type_template_id_0c394aac_render = function () {
19617
19675
  var _obj;
19618
19676
  var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('a',{ref:"anchor",attrs:{"role":"presentation","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',_vm._g({ref:"content",class:[
19619
19677
  'd-tooltip',
19620
19678
  ("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
19621
19679
  ( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
19622
19680
  _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}},_vm.tooltipListeners),[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
19623
- var tooltipvue_type_template_id_4f441454_staticRenderFns = []
19681
+ var tooltipvue_type_template_id_0c394aac_staticRenderFns = []
19624
19682
 
19625
19683
 
19626
19684
  ;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
@@ -19696,7 +19754,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
19696
19754
  */
19697
19755
 
19698
19756
  /* harmony default export */ const tooltipvue_type_script_lang_js_ = ({
19699
- name: 'Tooltip',
19757
+ name: 'DtTooltip',
19700
19758
  components: {
19701
19759
  DtLazyShow: lazy_show
19702
19760
  },
@@ -19860,9 +19918,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
19860
19918
  },
19861
19919
 
19862
19920
  tippyProps() {
19921
+ var _this$anchorEl, _this$anchorEl$getRoo;
19922
+
19863
19923
  return {
19864
19924
  offset: this.offset,
19865
- appendTo: document.body,
19925
+ appendTo: (_this$anchorEl = this.anchorEl) === null || _this$anchorEl === void 0 ? void 0 : (_this$anchorEl$getRoo = _this$anchorEl.getRootNode()) === null || _this$anchorEl$getRoo === void 0 ? void 0 : _this$anchorEl$getRoo.querySelector('body'),
19866
19926
  interactive: false,
19867
19927
  trigger: 'manual',
19868
19928
  placement: this.placement,
@@ -19927,7 +19987,9 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
19927
19987
  methods: {
19928
19988
  calculateAnchorZindex() {
19929
19989
  // if a modal is currently active render at modal-element z-index, otherwise at tooltip z-index
19930
- if (document.querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')) {
19990
+ if (this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 651 when
19991
+ // anchor of popover is within a drawer.
19992
+ this.$el.closest('.d-zi-drawer')) {
19931
19993
  return 651;
19932
19994
  } else {
19933
19995
  return 400;
@@ -20023,8 +20085,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(228);
20023
20085
 
20024
20086
  var tooltip_component = normalizeComponent(
20025
20087
  tooltip_tooltipvue_type_script_lang_js_,
20026
- tooltipvue_type_template_id_4f441454_render,
20027
- tooltipvue_type_template_id_4f441454_staticRenderFns,
20088
+ tooltipvue_type_template_id_0c394aac_render,
20089
+ tooltipvue_type_template_id_0c394aac_staticRenderFns,
20028
20090
  false,
20029
20091
  null,
20030
20092
  null,
@@ -20633,15 +20695,189 @@ var root_layout_component = normalizeComponent(
20633
20695
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
20634
20696
 
20635
20697
 
20636
- ;// 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=8075a3ae&
20637
- var combobox_with_popovervue_type_template_id_8075a3ae_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
20698
+ ;// 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/stack/stack.vue?vue&type=template&id=2f34414c&
20699
+ var stackvue_type_template_id_2f34414c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.as,{tag:"component",class:[
20700
+ 'd-stack',
20701
+ _vm.defaultDirection,
20702
+ _vm.stackResponsive,
20703
+ _vm.stackGap ]},[_vm._t("default")],2)}
20704
+ var stackvue_type_template_id_2f34414c_staticRenderFns = []
20705
+
20706
+
20707
+ ;// CONCATENATED MODULE: ./components/stack/stack_constants.js
20708
+ const DT_STACK_DIRECTION = {
20709
+ default: 'column',
20710
+ column: 'column',
20711
+ row: 'row',
20712
+ 'row-reverse': 'row-reverse',
20713
+ 'column-reverse': 'column-reverse'
20714
+ };
20715
+ const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];
20716
+ const DT_STACK_GAP = ['0', '100', '200', '300', '400', '500', '600'];
20717
+ ;// CONCATENATED MODULE: ./components/stack/utils.js
20718
+
20719
+
20720
+ function _isDefaultDirection(direction) {
20721
+ return direction === DT_STACK_DIRECTION["default"];
20722
+ }
20723
+
20724
+ function _getValidDirection(direction) {
20725
+ if (directionPropType(direction) === 'string') {
20726
+ return !_isDefaultDirection(direction) ? DT_STACK_DIRECTION[direction] : null;
20727
+ } else if (directionPropType(direction) === 'object') {
20728
+ const {
20729
+ default: defaultStyle
20730
+ } = direction;
20731
+ return !_isDefaultDirection(defaultStyle) ? DT_STACK_DIRECTION[defaultStyle] : null;
20732
+ } else {
20733
+ return null;
20734
+ }
20735
+ }
20736
+
20737
+ function directionPropType(value) {
20738
+ return typeof value;
20739
+ }
20740
+ function getDefaultDirectionClass(direction) {
20741
+ return _getValidDirection(direction) ? `d-stack--${DT_STACK_DIRECTION[_getValidDirection(direction)]}` : null;
20742
+ }
20743
+ function getResponsiveClasses(direction) {
20744
+ if (directionPropType(direction) === 'object') {
20745
+ return [...DT_STACK_RESPONSIVE_BREAKPOINTS.map(breakpoint => {
20746
+ return direction[breakpoint] ? `d-stack--${breakpoint}--${direction[breakpoint]}` : null;
20747
+ })];
20748
+ } else {
20749
+ return null;
20750
+ }
20751
+ }
20752
+ function getGapClass(gap) {
20753
+ return DT_STACK_GAP.includes(gap) ? `d-stack--gap-${gap}` : null;
20754
+ }
20755
+ ;// CONCATENATED MODULE: ./components/stack/validators.js
20756
+
20757
+
20758
+ function directionValidator(direction) {
20759
+ if (directionPropType(direction) === 'string') {
20760
+ return Object.keys(DT_STACK_DIRECTION).includes(direction);
20761
+ } else if (directionPropType(direction) === 'object') {
20762
+ const {
20763
+ default: defaultStyle
20764
+ } = direction;
20765
+ return Object.keys(DT_STACK_DIRECTION).includes(defaultStyle);
20766
+ } else {
20767
+ return null;
20768
+ }
20769
+ }
20770
+ function gapValidator(gap) {
20771
+ return DT_STACK_GAP.includes(gap);
20772
+ }
20773
+ ;// 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/stack/stack.vue?vue&type=script&lang=js&
20774
+ //
20775
+ //
20776
+ //
20777
+ //
20778
+ //
20779
+ //
20780
+ //
20781
+ //
20782
+ //
20783
+ //
20784
+ //
20785
+ //
20786
+ //
20787
+ //
20788
+ //
20789
+
20790
+
20791
+
20792
+ /* harmony default export */ const stackvue_type_script_lang_js_ = ({
20793
+ name: 'DtStack',
20794
+ props: {
20795
+ /**
20796
+ * Set this prop to the direction to stack the items.
20797
+ * You can override the default direction with 'default' key.
20798
+ * All the undefined breakpoints will have 'default' value
20799
+ */
20800
+ direction: {
20801
+ type: [String, Object],
20802
+ default: 'column',
20803
+ validator: direction => directionValidator(direction)
20804
+ },
20805
+
20806
+ /**
20807
+ * Set this prop to render stack as a specific HTML element.
20808
+ */
20809
+ as: {
20810
+ type: String,
20811
+ default: 'div'
20812
+ },
20813
+
20814
+ /**
20815
+ * Set this prop to have the space between each stack item
20816
+ * @values 0, 100, 200, 300, 400, 500, 600
20817
+ */
20818
+ gap: {
20819
+ type: String,
20820
+ default: '0',
20821
+ validator: gap => gapValidator(gap)
20822
+ }
20823
+ },
20824
+
20825
+ data() {
20826
+ return {
20827
+ DT_STACK_DIRECTION: DT_STACK_DIRECTION,
20828
+ DT_STACK_GAP: DT_STACK_GAP,
20829
+ DT_STACK_RESPONSIVE_BREAKPOINTS: DT_STACK_RESPONSIVE_BREAKPOINTS
20830
+ };
20831
+ },
20832
+
20833
+ computed: {
20834
+ stackGap() {
20835
+ return getGapClass(this.gap);
20836
+ },
20837
+
20838
+ defaultDirection() {
20839
+ return getDefaultDirectionClass(this.direction);
20840
+ },
20841
+
20842
+ stackResponsive() {
20843
+ return getResponsiveClasses(this.direction);
20844
+ }
20845
+
20846
+ }
20847
+ });
20848
+ ;// CONCATENATED MODULE: ./components/stack/stack.vue?vue&type=script&lang=js&
20849
+ /* harmony default export */ const stack_stackvue_type_script_lang_js_ = (stackvue_type_script_lang_js_);
20850
+ ;// CONCATENATED MODULE: ./components/stack/stack.vue
20851
+
20852
+
20853
+
20854
+
20855
+
20856
+ /* normalize component */
20857
+ ;
20858
+ var stack_component = normalizeComponent(
20859
+ stack_stackvue_type_script_lang_js_,
20860
+ stackvue_type_template_id_2f34414c_render,
20861
+ stackvue_type_template_id_2f34414c_staticRenderFns,
20862
+ false,
20863
+ null,
20864
+ null,
20865
+ null
20866
+
20867
+ )
20868
+
20869
+ /* harmony default export */ const stack = (stack_component.exports);
20870
+ ;// CONCATENATED MODULE: ./components/stack/index.js
20871
+
20872
+ ;// 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=2f87445e&
20873
+ var combobox_with_popovervue_type_template_id_2f87445e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
20638
20874
  var inputProps = ref.inputProps;
20639
20875
  return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
20640
20876
  var opened = ref.opened;
20641
20877
  var listProps = ref.listProps;
20642
20878
  var clearHighlightIndex = ref.clearHighlightIndex;
20643
20879
  return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":false,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"append-to":_vm.appendTo,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":clearHighlightIndex}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
20644
- var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
20880
+ var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
20645
20881
 
20646
20882
 
20647
20883
  ;// 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&
@@ -20953,11 +21189,12 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
20953
21189
 
20954
21190
  /**
20955
21191
  * Sets the element to which the popover is going to append to.
20956
- * @values 'parent', HTMLElement,
21192
+ * 'body' will append to the nearest body (supports shadow DOM).
21193
+ * @values 'body', 'parent', HTMLElement,
20957
21194
  */
20958
21195
  appendTo: {
20959
21196
  type: [HTMLElement, String],
20960
- default: () => document.body,
21197
+ default: 'body',
20961
21198
  validator: appendTo => {
20962
21199
  return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
20963
21200
  }
@@ -21125,8 +21362,8 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
21125
21362
  ;
21126
21363
  var combobox_with_popover_component = normalizeComponent(
21127
21364
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
21128
- combobox_with_popovervue_type_template_id_8075a3ae_render,
21129
- combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns,
21365
+ combobox_with_popovervue_type_template_id_2f87445e_render,
21366
+ combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns,
21130
21367
  false,
21131
21368
  null,
21132
21369
  null,
@@ -21137,11 +21374,11 @@ var combobox_with_popover_component = normalizeComponent(
21137
21374
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
21138
21375
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
21139
21376
 
21140
- ;// 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=a62f00d6&
21141
- var combobox_multi_selectvue_type_template_id_a62f00d6_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:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor","append-to":_vm.appendTo},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
21377
+ ;// 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=4a2d233d&
21378
+ var combobox_multi_selectvue_type_template_id_4a2d233d_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:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor","append-to":_vm.appendTo},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
21142
21379
  var onInput = ref.onInput;
21143
21380
  return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[_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,class:['d-mt4', 'd-mx2', 'd-zi-base1'],attrs:{"label-class":['d-chip__label'],"close-button-props":{ ariaLabel: 'close' },"size":_vm.CHIP_SIZES[_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",attrs:{"aria-label":_vm.label,"label":_vm.labelVisible ? _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",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_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)})}
21144
- var combobox_multi_selectvue_type_template_id_a62f00d6_staticRenderFns = []
21381
+ var combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns = []
21145
21382
 
21146
21383
 
21147
21384
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
@@ -21519,11 +21756,12 @@ const CHIP_TOP_POSITION = {
21519
21756
 
21520
21757
  /**
21521
21758
  * Sets the element to which the popover is going to append to.
21522
- * @values 'parent', HTMLElement,
21759
+ * 'body' will append to the nearest body (supports shadow DOM).
21760
+ * @values 'body', 'parent', HTMLElement,
21523
21761
  */
21524
21762
  appendTo: {
21525
21763
  type: [HTMLElement, String],
21526
- default: () => document.body,
21764
+ default: 'body',
21527
21765
  validator: appendTo => {
21528
21766
  return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
21529
21767
  }
@@ -21857,8 +22095,8 @@ const CHIP_TOP_POSITION = {
21857
22095
  ;
21858
22096
  var combobox_multi_select_component = normalizeComponent(
21859
22097
  combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
21860
- combobox_multi_selectvue_type_template_id_a62f00d6_render,
21861
- combobox_multi_selectvue_type_template_id_a62f00d6_staticRenderFns,
22098
+ combobox_multi_selectvue_type_template_id_4a2d233d_render,
22099
+ combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns,
21862
22100
  false,
21863
22101
  null,
21864
22102
  null,
@@ -23073,6 +23311,7 @@ var grouped_chip_component = normalizeComponent(
23073
23311
 
23074
23312
 
23075
23313
 
23314
+
23076
23315
 
23077
23316
 
23078
23317
  /// Recipes