@dialpad/dialtone-vue 2.59.2 → 2.61.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.
@@ -412,7 +412,7 @@ __webpack_require__.r(__webpack_exports__);
412
412
 
413
413
  var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
414
414
  // Module
415
- ___CSS_LOADER_EXPORT___.push([module.id, ".dt-leftbar-row{--leftbar-row-color-foreground:var(--fc-primary);--leftbar-row-color-background:transparent;--leftbar-row-radius:100em;--leftbar-row-alpha-color-foreground:var(--fc-secondary);--leftbar-row-alpha-width:calc(var(--size-300)*10);--leftbar-row-alpha-height:calc(var(--size-300)*9);--leftbar-row-omega-min-width:var(--leftbar-row-alpha-width);--leftbar-row-omega-height:var(--leftbar-row-alpha-height);--leftbar-row-omega-visibility:visible;--leftbar-row-description-font-weight:var(--fw-normal);--leftbar-row-description-font-size:var(--fs-200);--leftbar-row-description-line-height:var(--lh-200);--leftbar-row-status-color-foreground:var(--fc-secondary);--leftbar-row-status-font-size:var(--fs-100);--leftbar-row-status-line-height:var(--lh-100);--leftbar-row-action-position-right:var(--size-400);--leftbar-row-action-position-bottom:50%;--leftbar-row-action-width:calc(var(--size-300)*6);--leftbar-row-action-height:var(--leftbar-row-action-width);position:relative}.dt-leftbar-row--has-unread{--leftbar-row-description-font-weight:var(--fw-bold);--leftbar-row-alpha-color-foreground:var(--leftbar-row-color-foreground)}.dt-leftbar-row--has-unread:not(.dt-leftbar-row--no-action):hover{--leftbar-row-omega-visibility:hidden}.dt-leftbar-row--selected{--leftbar-row-color-background:var(--black-200)}.dt-leftbar-row--action-focused{--leftbar-row-omega-visibility:hidden}.dt-leftbar-row__primary{display:flex;align-items:center;flex:1;width:100%;text-align:left;color:var(--leftbar-row-color-foreground);text-decoration:none;background-color:var(--leftbar-row-color-background);border-radius:var(--leftbar-row-radius);transition-duration:var(--td200);transition-property:background-color,border,box-shadow;transition-timing-function:var(--ttf-out-quint);-webkit-appearance:none;appearance:none;font-size:inhert;line-height:inherit;margin:0;border:0;padding:0;cursor:pointer}.dt-leftbar-row__primary:hover{--leftbar-row-color-background:var(--black-200)}.dt-leftbar-row__primary:active{--leftbar-row-color-background:var(--black-300)}.dt-leftbar-row__primary:focus-visible{box-shadow:var(--bs-focus-ring-inset)}.dt-leftbar-row__action{position:absolute;right:var(--leftbar-row-action-position-right);top:var(--leftbar-row-action-position-bottom);transform:translateY(calc(var(--leftbar-row-action-position-bottom)*-1));opacity:0}.dt-leftbar-row:hover .dt-leftbar-row__action,.dt-leftbar-row__action:focus,.dt-leftbar-row__action:focus-within{opacity:1}.dt-leftbar-row__action-button{width:var(--leftbar-row-action-width);height:var(--leftbar-row-action-height)}.dt-leftbar-row__alpha{color:var(--leftbar-row-alpha-color-foreground);display:flex;box-sizing:border-box;justify-content:center;align-items:center;padding-left:var(--space-400);padding-right:var(--space-400);width:var(--leftbar-row-alpha-width);height:var(--leftbar-row-alpha-height)}.dt-leftbar-row__label{flex:1;min-width:0}.dt-leftbar-row__omega{display:flex;gap:var(--space-300);justify-content:end;align-items:center;box-sizing:border-box;min-width:var(--leftbar-row-omega-min-width);height:var(--leftbar-row-omega-height);padding-left:var(--space-400);padding-right:var(--space-400);visibility:var(--leftbar-row-omega-visibility)}.dt-leftbar-row__description{font-weight:var(--leftbar-row-description-font-weight);font-size:var(--leftbar-row-description-font-size);line-height:var(--leftbar-row-description-line-height)}.dt-leftbar-row__description,.dt-leftbar-row__status{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dt-leftbar-row__status{color:var(--leftbar-row-status-color-foreground);font-size:var(--leftbar-row-status-font-size);line-height:var(--leftbar-row-status-line-height);padding-bottom:var(--space-100)}.dt-leftbar-row__meta-context~.dt-leftbar-row__meta-custom:not(:empty):before{content:\" • \";color:var(--fc-tertiary)}.dt-leftbar-row__icon-cc{border-radius:var(--size-200);width:calc(var(--size-300)*3.5);height:calc(var(--size-300)*3.5)}", ""]);
415
+ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-leftbar-row{--leftbar-row-color-foreground:var(--theme-sidebar-color);--leftbar-row-color-background:transparent;--leftbar-row-radius:100em;--leftbar-row-alpha-color-foreground:var(--theme-sidebar-icon-color);--leftbar-row-alpha-width:calc(var(--size-300)*10);--leftbar-row-alpha-height:calc(var(--size-300)*9);--leftbar-row-alpha-opacity:100%;--leftbar-row-omega-min-width:0;--leftbar-row-omega-height:var(--leftbar-row-alpha-height);--leftbar-row-omega-visibility:visible;--leftbar-row-description-font-weight:var(--fw-normal);--leftbar-row-description-font-size:var(--fs-200);--leftbar-row-description-line-height:var(--lh-200);--leftbar-row-description-opacity:100%;--leftbar-row-status-color-foreground:var(--theme-sidebar-status-color);--leftbar-row-status-font-size:var(--fs-100);--leftbar-row-status-line-height:var(--lh-100);--leftbar-row-action-position-right:var(--size-400);--leftbar-row-action-position-bottom:50%;--leftbar-row-action-width:calc(var(--size-300)*6);--leftbar-row-action-height:var(--leftbar-row-action-width);position:relative}.dt-leftbar-row:not(.dt-leftbar-row--no-action):hover{--leftbar-row-omega-min-width:var(--leftbar-row-alpha-width)}.dt-leftbar-row--has-unread{--leftbar-row-description-font-weight:var(--fw-bold);--leftbar-row-alpha-color-foreground:var(--leftbar-row-color-foreground)}.dt-leftbar-row--has-unread:not(.dt-leftbar-row--no-action):hover{--leftbar-row-omega-visibility:hidden}.dt-leftbar-row--muted{--leftbar-row-alpha-opacity:50%;--leftbar-row-description-opacity:60%}.dt-leftbar-row--selected{--leftbar-row-color-background:var(--theme-sidebar-active-row-color-background);--leftbar-row-color-foreground:var(--theme-sidebar-active-row-color)}.dt-leftbar-row--selected .d-avatar__count{--avatar-count-color-shadow:var(--theme-sidebar-active-row-color-background)}.dt-leftbar-row--action-focused{--leftbar-row-omega-visibility:hidden}.dt-leftbar-row__primary{display:flex;align-items:center;flex:1;width:100%;text-align:left;color:var(--leftbar-row-color-foreground);text-decoration:none;background-color:var(--leftbar-row-color-background);border-radius:var(--leftbar-row-radius);transition-duration:var(--td200);transition-property:background-color,border,box-shadow;transition-timing-function:var(--ttf-out-quint);-webkit-appearance:none;appearance:none;font-size:inhert;line-height:inherit;margin:0;border:0;padding:0;cursor:pointer}.dt-leftbar-row__primary:hover{--leftbar-row-color-background:var(--theme-sidebar-row-color-background-hover)}.dt-leftbar-row__primary:active{--leftbar-row-color-background:var(--theme-sidebar-active-row-color-background)}.dt-leftbar-row__primary:focus-visible{box-shadow:var(--bs-focus-ring-inset)}.dt-leftbar-row__action{position:absolute;right:var(--leftbar-row-action-position-right);top:var(--leftbar-row-action-position-bottom);transform:translateY(calc(var(--leftbar-row-action-position-bottom)*-1));opacity:0}.dt-leftbar-row:hover .dt-leftbar-row__action,.dt-leftbar-row__action:focus,.dt-leftbar-row__action:focus-within{opacity:1}.dt-leftbar-row__action-button{width:var(--leftbar-row-action-width);height:var(--leftbar-row-action-height)}.dt-leftbar-row__alpha{color:var(--leftbar-row-alpha-color-foreground);display:flex;box-sizing:border-box;justify-content:center;align-items:center;padding-left:var(--space-400);padding-right:var(--space-400);width:var(--leftbar-row-alpha-width);height:var(--leftbar-row-alpha-height);opacity:var(--leftbar-row-alpha-opacity)}.dt-leftbar-row__label{flex:1;min-width:0}.dt-leftbar-row__omega{display:flex;gap:var(--space-300);justify-content:end;align-items:center;box-sizing:border-box;min-width:var(--leftbar-row-omega-min-width);height:var(--leftbar-row-omega-height);padding-left:var(--space-400);padding-right:var(--space-400);visibility:var(--leftbar-row-omega-visibility)}.dt-leftbar-row__active-voice{color:var(--fc-success);-webkit-animation-name:opacity-pulsate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:both;-moz-animation-name:opacity-pulsate;-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-fill-mode:both;animation-name:opacity-pulsate;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:both}.dt-leftbar-row__dnd{color:var(--black-600);font-size:var(--fs-100);font-weight:var(--fw-bold)}.dt-leftbar-row__description{font-weight:var(--leftbar-row-description-font-weight);font-size:var(--leftbar-row-description-font-size);line-height:var(--leftbar-row-description-line-height);opacity:var(--leftbar-row-description-opacity)}.dt-leftbar-row__description,.dt-leftbar-row__status{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dt-leftbar-row__status{color:var(--leftbar-row-status-color-foreground);font-size:var(--leftbar-row-status-font-size);line-height:var(--leftbar-row-status-line-height);padding-bottom:var(--space-100)}.dt-leftbar-row__meta-context~.dt-leftbar-row__meta-custom:not(:empty):before{content:\" • \";color:var(--theme-sidebar-status-color)}.dt-leftbar-row__icon-cc{border-radius:var(--size-200);width:calc(var(--size-300)*3.5);height:calc(var(--size-300)*3.5)}.opacity-pulsate{-webkit-animation-name:opacity-pulsate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:both;-moz-animation-name:opacity-pulsate;-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-fill-mode:both;animation-name:opacity-pulsate;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:both}@keyframes opacity-pulsate{0%,to{opacity:.2}50%{opacity:1}}", ""]);
416
416
  // Exports
417
417
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
418
418
 
@@ -2290,6 +2290,7 @@ __webpack_require__.d(__webpack_exports__, {
2290
2290
  "DtRecipeComboboxWithPopover": () => (/* reexport */ combobox_with_popover),
2291
2291
  "DtRecipeContactInfo": () => (/* reexport */ contact_info),
2292
2292
  "DtRecipeGeneralRow": () => (/* reexport */ general_row),
2293
+ "DtRecipeGroupRow": () => (/* reexport */ group_row),
2293
2294
  "DtRecipeGroupedChip": () => (/* reexport */ grouped_chip),
2294
2295
  "DtRecipeIvrNode": () => (/* reexport */ ivr_node),
2295
2296
  "DtRecipeTopBannerInfo": () => (/* reexport */ top_banner_info),
@@ -2382,7 +2383,7 @@ if (typeof window !== 'undefined') {
2382
2383
  // Indicate to webpack that this file can be concatenated
2383
2384
  /* harmony default export */ const setPublicPath = (null);
2384
2385
 
2385
- ;// 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&
2386
+ ;// 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=8bf1cd1a&
2386
2387
  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:[
2387
2388
  'd-avatar__presence',
2388
2389
  _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
@@ -3010,7 +3011,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3010
3011
 
3011
3012
  computed: {
3012
3013
  avatarClasses() {
3013
- return ['d-avatar', AVATAR_SIZE_MODIFIERS[this.size], this.avatarClass, {
3014
+ return ['d-avatar', AVATAR_SIZE_MODIFIERS[this.validatedSize], this.avatarClass, {
3014
3015
  'd-avatar--no-gradient': !this.gradient,
3015
3016
  'd-avatar--group': this.showGroup
3016
3017
  }];
@@ -3040,6 +3041,11 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3040
3041
 
3041
3042
  formattedGroup() {
3042
3043
  return this.group > 99 ? '99+' : this.group;
3044
+ },
3045
+
3046
+ validatedSize() {
3047
+ // TODO: Group only supports xs size for now. Remove this when we support other sizes.
3048
+ return this.group ? 'xs' : this.size;
3043
3049
  }
3044
3050
 
3045
3051
  },
@@ -3100,9 +3106,9 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3100
3106
  formatInitials(initials) {
3101
3107
  if (!initials) return;
3102
3108
 
3103
- if (this.size === 'xs') {
3109
+ if (this.validatedSize === 'xs') {
3104
3110
  this.formattedInitials = '';
3105
- } else if (this.size === 'sm') {
3111
+ } else if (this.validatedSize === 'sm') {
3106
3112
  this.formattedInitials = initials.trim()[0];
3107
3113
  } else {
3108
3114
  this.formattedInitials = initials.trim().slice(0, 2);
@@ -20916,15 +20922,15 @@ var stack_component = normalizeComponent(
20916
20922
  /* harmony default export */ const stack = (stack_component.exports);
20917
20923
  ;// CONCATENATED MODULE: ./components/stack/index.js
20918
20924
 
20919
- ;// 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&
20920
- 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){
20925
+ ;// 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=5bccf868&
20926
+ var combobox_with_popovervue_type_template_id_5bccf868_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){
20921
20927
  var inputProps = ref.inputProps;
20922
20928
  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){
20923
20929
  var opened = ref.opened;
20924
20930
  var listProps = ref.listProps;
20925
20931
  var clearHighlightIndex = ref.clearHighlightIndex;
20926
20932
  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))}
20927
- var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
20933
+ var combobox_with_popovervue_type_template_id_5bccf868_staticRenderFns = []
20928
20934
 
20929
20935
 
20930
20936
  ;// 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&
@@ -21377,12 +21383,12 @@ var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
21377
21383
  },
21378
21384
 
21379
21385
  onFocusOut(e) {
21386
+ var _this$$refs$popover$t, _e$composedPath;
21387
+
21380
21388
  // Check if the focus change was to another target within the combobox component
21381
- const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
21382
- const ref = this.$refs[refName];
21383
- return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
21384
- });
21385
- if (isComboboxStillFocused) return; // If outside the combobox then close
21389
+ const popoverEl = (_this$$refs$popover$t = this.$refs.popover.tip) === null || _this$$refs$popover$t === void 0 ? void 0 : _this$$refs$popover$t.popper;
21390
+ const comboboxEl = this.$refs.input;
21391
+ if ((_e$composedPath = e.composedPath()) !== null && _e$composedPath !== void 0 && _e$composedPath.some(el => [popoverEl, comboboxEl].includes(el))) return; // If outside the combobox then close
21386
21392
 
21387
21393
  this.closeComboboxList();
21388
21394
  },
@@ -21409,8 +21415,8 @@ var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
21409
21415
  ;
21410
21416
  var combobox_with_popover_component = normalizeComponent(
21411
21417
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
21412
- combobox_with_popovervue_type_template_id_2f87445e_render,
21413
- combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns,
21418
+ combobox_with_popovervue_type_template_id_5bccf868_render,
21419
+ combobox_with_popovervue_type_template_id_5bccf868_staticRenderFns,
21414
21420
  false,
21415
21421
  null,
21416
21422
  null,
@@ -23319,9 +23325,9 @@ var grouped_chip_component = normalizeComponent(
23319
23325
  /* harmony default export */ const grouped_chip = (grouped_chip_component.exports);
23320
23326
  ;// CONCATENATED MODULE: ./recipes/chips/grouped_chip/index.js
23321
23327
 
23322
- ;// 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/leftbar/general_row/general_row.vue?vue&type=template&id=1c56d473&
23323
- var general_rowvue_type_template_id_1c56d473_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[_c('button',_vm._g(_vm._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"dt-leftbar-row-link"}},'button',_vm.$attrs,false),_vm.$listeners),[_c('div',{staticClass:"dt-leftbar-row__alpha"},[_c('dt-recipe-leftbar-general-row-icon',{attrs:{"type":_vm.getIcon,"color":_vm.color,"data-qa":"dt-leftbar-row-icon"}})],1),_c('div',{staticClass:"dt-leftbar-row__label"},[_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description"}},[_vm._v(" "+_vm._s(_vm.description)+" ")])],1),_c('div',{staticClass:"dt-leftbar-row__omega"},[(_vm.hasUnreadMessages)?_c('dt-badge',{attrs:{"kind":"count","type":"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[_vm._v(" "+_vm._s(_vm.unreadCount)+" ")]):_vm._e()],1)])])}
23324
- var general_rowvue_type_template_id_1c56d473_staticRenderFns = []
23328
+ ;// 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/leftbar/general_row/general_row.vue?vue&type=template&id=1889c7ad&
23329
+ var general_rowvue_type_template_id_1889c7ad_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[_c('button',_vm._g(_vm._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"dt-leftbar-row-link"}},'button',_vm.$attrs,false),_vm.$listeners),[_c('div',{staticClass:"dt-leftbar-row__alpha"},[_vm._t("left",function(){return [_c('dt-recipe-leftbar-general-row-icon',{attrs:{"type":_vm.getIcon,"color":_vm.color,"data-qa":"dt-leftbar-row-icon"}})]})],2),_c('div',{staticClass:"dt-leftbar-row__label"},[_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description"}},[_vm._v(" "+_vm._s(_vm.description)+" ")])],1),_c('div',{staticClass:"dt-leftbar-row__omega"},[(_vm.dndText)?_c('div',{staticClass:"dt-leftbar-row__dnd"},[_vm._v(" "+_vm._s(_vm.dndText)+" ")]):(_vm.activeVoiceChat)?_c('div',{staticClass:"dt-leftbar-row__active-voice"},[_c('dt-icon',{attrs:{"size":"300","name":"activity"}})],1):(_vm.hasUnreadMessages)?_c('dt-badge',{attrs:{"kind":"count","type":"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[_vm._v(" "+_vm._s(_vm.unreadCount)+" ")]):_vm._e()],1)])])}
23330
+ var general_rowvue_type_template_id_1889c7ad_staticRenderFns = []
23325
23331
 
23326
23332
 
23327
23333
  ;// CONCATENATED MODULE: ./recipes/leftbar/general_row/general_row_constants.js
@@ -23332,7 +23338,9 @@ const LEFTBAR_GENERAL_ROW_TYPES = {
23332
23338
  THREADS: 'threads',
23333
23339
  LOCKED_CHANNEL: 'locked channel',
23334
23340
  CONTACT_CENTER: 'contact center',
23335
- DIALBOT: 'dialbot'
23341
+ DIALBOT: 'dialbot',
23342
+ ASSIGNED: 'assigned',
23343
+ DIGITAL: 'digital'
23336
23344
  };
23337
23345
  const LEFTBAR_GENERAL_ROW_ICON_MAPPING = {
23338
23346
  [LEFTBAR_GENERAL_ROW_TYPES.INBOX]: 'inbox',
@@ -23341,20 +23349,28 @@ const LEFTBAR_GENERAL_ROW_ICON_MAPPING = {
23341
23349
  [LEFTBAR_GENERAL_ROW_TYPES.THREADS]: 'thread',
23342
23350
  [LEFTBAR_GENERAL_ROW_TYPES.LOCKED_CHANNEL]: 'lock',
23343
23351
  'locked channel unread': 'lock-filled',
23344
- 'channel unread': 'hash-bold'
23352
+ 'channel unread': 'hash-bold',
23353
+ [LEFTBAR_GENERAL_ROW_TYPES.ASSIGNED]: 'at-sign',
23354
+ [LEFTBAR_GENERAL_ROW_TYPES.DIGITAL]: 'message'
23345
23355
  };
23346
23356
  const LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS = {
23347
- purple: 'd-bgc-purple-300',
23348
- blue: 'd-bgc-blue-300',
23349
- green: 'd-bgc-green-300',
23350
- red: 'd-bgc-red-300',
23351
- magenta: 'd-bgc-magenta-300',
23352
- gold: 'd-bgc-gold-300'
23357
+ 'magenta-200': 'd-bgc-magenta-200',
23358
+ 'green-200': 'd-bgc-green-200',
23359
+ 'gold-300': 'd-bgc-gold-300',
23360
+ 'purple-600': 'd-bgc-purple-600',
23361
+ 'magenta-300': 'd-bgc-magenta-300',
23362
+ 'purple-300': 'd-bgc-purple-300',
23363
+ 'green-500': 'd-bgc-green-500',
23364
+ 'purple-100': 'd-bgc-purple-100',
23365
+ 'magenta-400': 'd-bgc-magenta-400',
23366
+ 'magenta-100': 'd-bgc-magenta-100'
23353
23367
  };
23368
+ const LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR = 'If type is contact center, color must be one' + 'of the following:' + Object.keys(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS).join(', ');
23354
23369
  /* harmony default export */ const general_row_constants = ({
23355
23370
  LEFTBAR_GENERAL_ROW_TYPES,
23356
23371
  LEFTBAR_GENERAL_ROW_ICON_MAPPING,
23357
- LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS
23372
+ LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
23373
+ LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR
23358
23374
  });
23359
23375
  ;// 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/emoji/emoji.vue?vue&type=template&id=147e0534&
23360
23376
  var emojivue_type_template_id_147e0534_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:_vm.emojiSize},[_c('dt-skeleton',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgLoading && _vm.showSkeleton),expression:"imgLoading && showSkeleton"}],class:_vm.emojiSize,attrs:{"offset":0,"shape-option":{ shape: 'square', contentClass: _vm.emojiSize, size: 'auto' }}}),_c('img',{directives:[{name:"show",rawName:"v-show",value:(!_vm.imgLoading),expression:"!imgLoading"}],ref:"emojiImg",class:['d-icon', _vm.emojiSize, _vm.imgClass],attrs:{"aria-label":_vm.emojiLabel,"alt":_vm.emojiAlt,"title":_vm.emojiLabel,"src":_vm.emojiSrc},on:{"load":_vm.imageLoaded,"error":_vm.imageErrored}})],1)}
@@ -24034,6 +24050,24 @@ var leftbar_general_row_icon_component = normalizeComponent(
24034
24050
  //
24035
24051
  //
24036
24052
  //
24053
+ //
24054
+ //
24055
+ //
24056
+ //
24057
+ //
24058
+ //
24059
+ //
24060
+ //
24061
+ //
24062
+ //
24063
+ //
24064
+ //
24065
+ //
24066
+ //
24067
+ //
24068
+ //
24069
+ //
24070
+
24037
24071
 
24038
24072
 
24039
24073
 
@@ -24043,6 +24077,7 @@ var leftbar_general_row_icon_component = normalizeComponent(
24043
24077
  components: {
24044
24078
  DtEmojiTextWrapper: emoji_text_wrapper,
24045
24079
  DtBadge: badge,
24080
+ DtIcon: icon,
24046
24081
  DtRecipeLeftbarGeneralRowIcon: leftbar_general_row_icon
24047
24082
  },
24048
24083
  inheritAttrs: false,
@@ -24092,13 +24127,39 @@ var leftbar_general_row_icon_component = normalizeComponent(
24092
24127
  selected: {
24093
24128
  type: Boolean,
24094
24129
  default: false
24130
+ },
24131
+
24132
+ /**
24133
+ * Gives a faded style to be used when muted
24134
+ */
24135
+ muted: {
24136
+ type: Boolean,
24137
+ default: false
24138
+ },
24139
+
24140
+ /**
24141
+ * Shows styling to represent an active voice chat. This will display over unreadCount.
24142
+ */
24143
+ activeVoiceChat: {
24144
+ type: Boolean,
24145
+ default: false
24146
+ },
24147
+
24148
+ /**
24149
+ * Acronym used to represent "Do not Disturb" state. If entered will display the entered text over
24150
+ * unreadCount and activeVoiceChat.
24151
+ */
24152
+ dndText: {
24153
+ type: String,
24154
+ default: ''
24095
24155
  }
24096
24156
  },
24097
24157
  computed: {
24098
24158
  leftbarGeneralRowClasses() {
24099
24159
  return ['dt-leftbar-row', 'dt-leftbar-row--no-action', {
24100
24160
  'dt-leftbar-row--has-unread': this.hasUnreadMessages,
24101
- 'dt-leftbar-row--selected': this.selected
24161
+ 'dt-leftbar-row--selected': this.selected,
24162
+ 'dt-leftbar-row--muted': this.muted
24102
24163
  }];
24103
24164
  },
24104
24165
 
@@ -24135,7 +24196,7 @@ var leftbar_general_row_icon_component = normalizeComponent(
24135
24196
  methods: {
24136
24197
  validateProps() {
24137
24198
  if (this.type === LEFTBAR_GENERAL_ROW_TYPES.CONTACT_CENTER && !Object.keys(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS).includes(this.color)) {
24138
- console.error('If type is contact center, color must be one of the following: ' + Object.keys(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS).join(', '));
24199
+ console.error(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR);
24139
24200
  }
24140
24201
  }
24141
24202
 
@@ -24158,8 +24219,8 @@ var general_rowvue_type_style_index_0_lang_less_ = __webpack_require__(745);
24158
24219
 
24159
24220
  var general_row_component = normalizeComponent(
24160
24221
  general_row_general_rowvue_type_script_lang_js_,
24161
- general_rowvue_type_template_id_1c56d473_render,
24162
- general_rowvue_type_template_id_1c56d473_staticRenderFns,
24222
+ general_rowvue_type_template_id_1889c7ad_render,
24223
+ general_rowvue_type_template_id_1889c7ad_staticRenderFns,
24163
24224
  false,
24164
24225
  null,
24165
24226
  null,
@@ -24171,6 +24232,120 @@ var general_row_component = normalizeComponent(
24171
24232
  ;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
24172
24233
 
24173
24234
 
24235
+ ;// 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/leftbar/group_row/group_row.vue?vue&type=template&id=8a338828&
24236
+ var group_rowvue_type_template_id_8a338828_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-general-row',_vm._g({attrs:{"description":_vm.names,"unread-count":_vm.unreadCount,"selected":_vm.selected},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('dt-avatar',{attrs:{"initials":_vm.avatarInitials,"group":_vm.groupCount}},[_c('img',{attrs:{"data-qa":"dt-avatar-image","src":_vm.avatarSrc,"alt":_vm.avatarInitials}})])]},proxy:true}])},_vm.$listeners))}
24237
+ var group_rowvue_type_template_id_8a338828_staticRenderFns = []
24238
+
24239
+
24240
+ ;// 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/leftbar/group_row/group_row.vue?vue&type=script&lang=js&
24241
+ //
24242
+ //
24243
+ //
24244
+ //
24245
+ //
24246
+ //
24247
+ //
24248
+ //
24249
+ //
24250
+ //
24251
+ //
24252
+ //
24253
+ //
24254
+ //
24255
+ //
24256
+ //
24257
+ //
24258
+ //
24259
+ //
24260
+ //
24261
+ //
24262
+ //
24263
+
24264
+
24265
+ /* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
24266
+ name: 'DtRecipeGroupRow',
24267
+ components: {
24268
+ DtAvatar: avatar,
24269
+ DtRecipeGeneralRow: general_row
24270
+ },
24271
+ props: {
24272
+ /**
24273
+ * Optional avatar image url.
24274
+ * if provided, it's also required to provide a value in the `avatarInitials` prop to use
24275
+ * in the alt attribute of the avatar.
24276
+ */
24277
+ avatarSrc: {
24278
+ type: String,
24279
+ default: ''
24280
+ },
24281
+
24282
+ /**
24283
+ * Initials to display on the avatar if avatarSrc is not provided or
24284
+ * alt attr if avatarSrc is provided.
24285
+ */
24286
+ avatarInitials: {
24287
+ type: String,
24288
+ default: '',
24289
+ required: true
24290
+ },
24291
+
24292
+ /**
24293
+ * Number displayed in avatar to count group members
24294
+ */
24295
+ groupCount: {
24296
+ type: Number,
24297
+ required: true
24298
+ },
24299
+
24300
+ /**
24301
+ * Names of the group members
24302
+ */
24303
+ names: {
24304
+ type: String,
24305
+ default: ''
24306
+ },
24307
+
24308
+ /**
24309
+ * Number of unread messages
24310
+ */
24311
+ unreadCount: {
24312
+ type: String,
24313
+ default: null
24314
+ },
24315
+
24316
+ /**
24317
+ * Determines if the row is selected
24318
+ */
24319
+ selected: {
24320
+ type: Boolean,
24321
+ default: false
24322
+ }
24323
+ }
24324
+ });
24325
+ ;// CONCATENATED MODULE: ./recipes/leftbar/group_row/group_row.vue?vue&type=script&lang=js&
24326
+ /* harmony default export */ const group_row_group_rowvue_type_script_lang_js_ = (group_rowvue_type_script_lang_js_);
24327
+ ;// CONCATENATED MODULE: ./recipes/leftbar/group_row/group_row.vue
24328
+
24329
+
24330
+
24331
+
24332
+
24333
+ /* normalize component */
24334
+ ;
24335
+ var group_row_component = normalizeComponent(
24336
+ group_row_group_rowvue_type_script_lang_js_,
24337
+ group_rowvue_type_template_id_8a338828_render,
24338
+ group_rowvue_type_template_id_8a338828_staticRenderFns,
24339
+ false,
24340
+ null,
24341
+ null,
24342
+ null
24343
+
24344
+ )
24345
+
24346
+ /* harmony default export */ const group_row = (group_row_component.exports);
24347
+ ;// CONCATENATED MODULE: ./recipes/leftbar/group_row/index.js
24348
+
24174
24349
  ;// CONCATENATED MODULE: ./common/mixins/index.js
24175
24350
 
24176
24351
 
@@ -24224,6 +24399,7 @@ var general_row_component = normalizeComponent(
24224
24399
 
24225
24400
 
24226
24401
 
24402
+
24227
24403
  // Mixins
24228
24404
 
24229
24405
  // Constants