@dialpad/dialtone-vue 2.65.0-beta.1 → 2.65.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.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
- # [2.65.0-beta.1](https://github.com/dialpad/dialtone-vue/compare/v2.64.0...v2.65.0-beta.1) (2023-03-09)
1
+ # [2.65.0](https://github.com/dialpad/dialtone-vue/compare/v2.64.0...v2.65.0) (2023-03-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Avatar:** initials are not available until image loads ([#803](https://github.com/dialpad/dialtone-vue/issues/803)) ([1fbedd3](https://github.com/dialpad/dialtone-vue/commit/1fbedd3c20b610d5744d41b4fe3ddc7197267b44))
2
7
 
3
8
 
4
9
  ### Features
5
10
 
11
+ * **Leftbar:** fixes and additions to leftbar row components ([#804](https://github.com/dialpad/dialtone-vue/issues/804)) ([0bb19a5](https://github.com/dialpad/dialtone-vue/commit/0bb19a547554781c5a7a7db388ef705e21a5cdd8))
6
12
  * **Theme:** update leftbar theme vars ([#800](https://github.com/dialpad/dialtone-vue/issues/800)) ([62898a6](https://github.com/dialpad/dialtone-vue/commit/62898a67d96ad0d56f254fdbc9607d71f8a453ea))
7
13
 
8
14
  # [2.64.0](https://github.com/dialpad/dialtone-vue/compare/v2.63.0...v2.64.0) (2023-03-06)
@@ -2375,8 +2375,8 @@ if (typeof window !== 'undefined') {
2375
2375
  // Indicate to webpack that this file can be concatenated
2376
2376
  /* harmony default export */ const setPublicPath = (null);
2377
2377
 
2378
- ;// 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&
2379
- 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:[
2378
+ ;// 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=0071818a&
2379
+ 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._e(),(_vm.showInitials)?_c('span',{staticClass:"d-ps-absolute d-zi-base",class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count d-zi-base1",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({staticClass:"d-zi-base1",class:[
2380
2380
  'd-avatar__presence',
2381
2381
  _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
2382
2382
  var staticRenderFns = []
@@ -2459,7 +2459,8 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
2459
2459
 
2460
2460
  const seedrandom = __webpack_require__(377);
2461
2461
 
2462
- let UNIQUE_ID_COUNTER = 0; // selector to find focusable not hidden inputs
2462
+ let UNIQUE_ID_COUNTER = 0;
2463
+ let TIMER; // selector to find focusable not hidden inputs
2463
2464
 
2464
2465
  const FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)'; // selector to find focusable not disables elements
2465
2466
 
@@ -2581,7 +2582,7 @@ const flushPromises = () => {
2581
2582
  */
2582
2583
 
2583
2584
  const kebabCaseToPascalCase = string => {
2584
- return string.toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
2585
+ return string === null || string === void 0 ? void 0 : string.toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
2585
2586
  };
2586
2587
  /**
2587
2588
  * Transform a string from PascalCase to kebab-case
@@ -2592,6 +2593,17 @@ const kebabCaseToPascalCase = string => {
2592
2593
  const pascalCaseToKebabCase = string => {
2593
2594
  return string.replace(/\.?([A-Z0-9]+)/g, (x, y) => '-' + y.toLowerCase()).replace(/^-/, '');
2594
2595
  };
2596
+ /*
2597
+ * Set's a global timer to debounce the execution of a function.
2598
+ * @param { object } func - the function that is going to be called after timeout
2599
+ * @param { number } [timeout=300] timeout
2600
+ * */
2601
+
2602
+ function debounce(func) {
2603
+ let timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
2604
+ clearTimeout(TIMER);
2605
+ TIMER = setTimeout(func, timeout);
2606
+ }
2595
2607
  /* harmony default export */ const utils = ({
2596
2608
  getUniqueString,
2597
2609
  getRandomElement,
@@ -2601,7 +2613,8 @@ const pascalCaseToKebabCase = string => {
2601
2613
  getValidationState,
2602
2614
  htmlFragment,
2603
2615
  flushPromises,
2604
- kebabCaseToPascalCase
2616
+ kebabCaseToPascalCase,
2617
+ debounce
2605
2618
  });
2606
2619
  ;// 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&
2607
2620
  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:{
@@ -2885,6 +2898,8 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
2885
2898
  //
2886
2899
  //
2887
2900
  //
2901
+ //
2902
+ //
2888
2903
 
2889
2904
 
2890
2905
 
@@ -2991,13 +3006,14 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
2991
3006
  data() {
2992
3007
  return {
2993
3008
  // initials, image or icon
2994
- kind: 'image',
3009
+ kind: null,
2995
3010
  AVATAR_SIZE_MODIFIERS: AVATAR_SIZE_MODIFIERS,
2996
3011
  AVATAR_KIND_MODIFIERS: AVATAR_KIND_MODIFIERS,
2997
3012
  AVATAR_PRESENCE_SIZE_MODIFIERS: AVATAR_PRESENCE_SIZE_MODIFIERS,
2998
3013
  imageLoadedSuccessfully: null,
2999
3014
  slottedInitials: '',
3000
- formattedInitials: ''
3015
+ formattedInitials: '',
3016
+ initializing: false
3001
3017
  };
3002
3018
  },
3003
3019
 
@@ -3010,11 +3026,11 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3010
3026
  },
3011
3027
 
3012
3028
  showDefaultSlot() {
3013
- return this.kind !== 'initials' && this.imageLoadedSuccessfully !== false;
3029
+ return this.kind !== 'initials' || this.kind === 'image' && this.imageLoadedSuccessfully === true;
3014
3030
  },
3015
3031
 
3016
3032
  showInitials() {
3017
- return this.kind === 'initials' || this.initials;
3033
+ return this.kind === 'initials' || this.kind === 'image' && this.initials;
3018
3034
  },
3019
3035
 
3020
3036
  showGroup() {
@@ -3047,28 +3063,27 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3047
3063
  },
3048
3064
 
3049
3065
  updated() {
3050
- if (this.kind === 'initials') {
3051
- this.slottedInitials = this.$slots.default[0].text || this.$slots.default[0].textContent;
3052
- this.formatInitials(this.slottedInitials);
3053
- }
3066
+ this.init();
3054
3067
  },
3055
3068
 
3056
3069
  methods: {
3057
- init() {
3058
- const firstChild = this.$refs.canvas.firstChild;
3059
-
3060
- if (!firstChild) {
3061
- return;
3062
- }
3063
-
3070
+ async init() {
3071
+ if (this.initializing) return;
3072
+ this.kind = null;
3073
+ await this.$nextTick();
3074
+ const firstChild = this.$refs.canvas.firstElementChild || this.$refs.canvas;
3075
+ this.formatInitials(this.initials);
3064
3076
  this.setKind(firstChild);
3065
3077
  this.kindHandler(firstChild);
3078
+ this.initializing = true;
3079
+ await this.$nextTick();
3080
+ this.initializing = false;
3066
3081
  },
3067
3082
 
3068
3083
  kindHandler(el) {
3069
3084
  switch (this.kind) {
3070
3085
  case 'image':
3071
- el.classList.add('d-avatar__image');
3086
+ el.classList.add('d-avatar__image', 'd-zi-base1');
3072
3087
  this.validateImageAttrsPresence();
3073
3088
  this.setImageListeners(el);
3074
3089
  break;
@@ -3079,24 +3094,25 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3079
3094
 
3080
3095
  case 'initials':
3081
3096
  this.slottedInitials = el.text || el.textContent;
3082
- this.formatInitials(this.slottedInitials);
3097
+ this.formatInitials(this.slottedInitials.trim() || this.initials);
3083
3098
  break;
3084
3099
  }
3085
3100
  },
3086
3101
 
3087
3102
  setImageListeners(el) {
3088
- el.addEventListener('error', () => {
3089
- this.formatInitials(this.initials);
3090
- this.imageLoadedSuccessfully = false;
3103
+ el.addEventListener('load', () => this._loadedImageEventHandler(el), {
3104
+ once: true
3091
3105
  });
3092
- el.addEventListener('load', () => {
3093
- el.classList.add('d-avatar--image-loaded');
3094
- this.imageLoadedSuccessfully = true;
3106
+ el.addEventListener('error', () => this._erroredImageEventHandler(el), {
3107
+ once: true
3095
3108
  });
3096
3109
  },
3097
3110
 
3098
3111
  formatInitials(initials) {
3099
- if (!initials) return;
3112
+ if (!initials) {
3113
+ this.formattedInitials = '';
3114
+ return;
3115
+ }
3100
3116
 
3101
3117
  if (this.validatedSize === 'xs') {
3102
3118
  this.formattedInitials = '';
@@ -3108,7 +3124,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3108
3124
  },
3109
3125
 
3110
3126
  setKind(element) {
3111
- if (this.isSvgType(element)) {
3127
+ if (this.isIconType(element)) {
3112
3128
  this.kind = 'icon';
3113
3129
  return;
3114
3130
  }
@@ -3121,7 +3137,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3121
3137
  this.kind = 'initials';
3122
3138
  },
3123
3139
 
3124
- isSvgType(element) {
3140
+ isIconType(element) {
3125
3141
  var _element$tagName;
3126
3142
 
3127
3143
  return (element === null || element === void 0 ? void 0 : (_element$tagName = element.tagName) === null || _element$tagName === void 0 ? void 0 : _element$tagName.toUpperCase()) === 'SVG';
@@ -3167,6 +3183,18 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3167
3183
  if (isSrcMissing || isAltMissing) {
3168
3184
  external_commonjs_vue_commonjs2_vue_root_Vue_default().util.warn('src and alt attributes are required for image avatars', this);
3169
3185
  }
3186
+ },
3187
+
3188
+ _loadedImageEventHandler(el) {
3189
+ this.imageLoadedSuccessfully = true;
3190
+ el.classList.remove('d-d-none');
3191
+ el.classList.add('d-avatar--image-loaded');
3192
+ },
3193
+
3194
+ _erroredImageEventHandler(el) {
3195
+ this.imageLoadedSuccessfully = false;
3196
+ el.classList.remove('d-avatar--image-loaded');
3197
+ el.classList.add('d-d-none');
3170
3198
  }
3171
3199
 
3172
3200
  }
@@ -8611,7 +8639,7 @@ function orderModifiers(modifiers) {
8611
8639
  }, []);
8612
8640
  }
8613
8641
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/debounce.js
8614
- function debounce(fn) {
8642
+ function debounce_debounce(fn) {
8615
8643
  var pending;
8616
8644
  return function () {
8617
8645
  if (!pending) {
@@ -8796,7 +8824,7 @@ function popperGenerator(generatorOptions) {
8796
8824
  },
8797
8825
  // Async and optimistically optimized update – it will not be executed if
8798
8826
  // not necessary (debounced to run at most once-per-tick)
8799
- update: debounce(function () {
8827
+ update: debounce_debounce(function () {
8800
8828
  return new Promise(function (resolve) {
8801
8829
  instance.forceUpdate();
8802
8830
  resolve(state);
@@ -23348,9 +23376,9 @@ var grouped_chip_component = normalizeComponent(
23348
23376
  /* harmony default export */ const grouped_chip = (grouped_chip_component.exports);
23349
23377
  ;// CONCATENATED MODULE: ./recipes/chips/grouped_chip/index.js
23350
23378
 
23351
- ;// 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=18766278&
23352
- var general_rowvue_type_template_id_18766278_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","aria-label":_vm.getAriaLabel,"title":_vm.description}},'button',_vm.$attrs,false),_vm.$listeners),[_c('div',{staticClass:"dt-leftbar-row__alpha"},[(_vm.isTyping)?_c('div',{staticClass:"dt-leftbar-row__is-typing"},[_c('span'),_c('span'),_c('span')]):_vm._t("left",function(){return [_c('dt-recipe-leftbar-general-row-icon',{class:{ 'd-o50': _vm.isTyping },attrs:{"type":_vm.getIcon,"color":_vm.color,"data-qa":"dt-leftbar-row-icon"}})]})],2),_c('div',{staticClass:"dt-leftbar-row__label"},[_vm._t("label",function(){return [_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description"}},[_vm._v(" "+_vm._s(_vm.description)+" ")])]})],2),_c('div',{staticClass:"dt-leftbar-row__omega"},[(_vm.dndText)?_c('dt-tooltip',{attrs:{"placement":"top","message":_vm.dndTextTooltip},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('div',{staticClass:"dt-leftbar-row__dnd"},[_vm._v(" "+_vm._s(_vm.dndText)+" ")])]},proxy:true}],null,false,1506147022)}):(_vm.activeVoiceChat)?_c('div',{staticClass:"dt-leftbar-row__active-voice"},[_c('dt-icon',{attrs:{"size":"300","name":"activity"}})],1):(!!_vm.unreadCount && _vm.hasUnreads)?_c('dt-tooltip',{attrs:{"message":_vm.unreadCountTooltip,"placement":"top"},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-badge',{attrs:{"kind":"count","type":"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[_vm._v(" "+_vm._s(_vm.unreadCount)+" ")])]},proxy:true}])}):_vm._e()],1)]),(_vm.hasCallButton)?_c('div',{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[_c('dt-tooltip',{attrs:{"message":_vm.callButtonTooltip,"placement":"top"},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-button',{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button","circle":"","size":"xs","kind":"inverted"},on:{"focus":function($event){_vm.actionFocused = true},"blur":function($event){_vm.actionFocused = false},"mouseleave":function($event){_vm.actionFocused = false},"click":function($event){$event.stopPropagation();return _vm.$emit('call', $event)}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"phone","size":"200"}})]},proxy:true}],null,false,990728611)})]},proxy:true}],null,false,2110922487)})],1):_vm._e()])}
23353
- var general_rowvue_type_template_id_18766278_staticRenderFns = []
23379
+ ;// 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=31787490&
23380
+ var general_rowvue_type_template_id_31787490_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","aria-label":_vm.getAriaLabel,"title":_vm.description}},'button',_vm.$attrs,false),_vm.$listeners),[_c('div',{staticClass:"dt-leftbar-row__alpha"},[(_vm.isTyping)?_c('div',{staticClass:"dt-leftbar-row__is-typing"},[_c('span'),_c('span'),_c('span')]):_vm._t("left",function(){return [_c('dt-recipe-leftbar-general-row-icon',{class:{ 'd-o50': _vm.isTyping },attrs:{"type":_vm.getIcon,"color":_vm.color,"data-qa":"dt-leftbar-row-icon"}})]})],2),_c('div',{staticClass:"dt-leftbar-row__label"},[_vm._t("label",function(){return [_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description"}},[_vm._v(" "+_vm._s(_vm.description)+" ")])]})],2),_c('div',{staticClass:"dt-leftbar-row__omega"},[(_vm.dndText)?_c('dt-tooltip',{attrs:{"placement":"top","message":_vm.dndTextTooltip},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('div',{staticClass:"dt-leftbar-row__dnd"},[_vm._v(" "+_vm._s(_vm.dndText)+" ")])]},proxy:true}],null,false,1506147022)}):(_vm.activeVoiceChat)?_c('div',{staticClass:"dt-leftbar-row__active-voice"},[_c('dt-icon',{attrs:{"size":"300","name":"activity"}})],1):(!!_vm.unreadCount && _vm.hasUnreads)?_c('dt-tooltip',{attrs:{"message":_vm.unreadCountTooltip,"placement":"top"},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-badge',{attrs:{"kind":"count","type":"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[_vm._v(" "+_vm._s(_vm.unreadCount)+" ")])]},proxy:true}])}):_vm._e()],1)]),(_vm.hasCallButton)?_c('div',{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[_c('dt-tooltip',{attrs:{"message":_vm.callButtonTooltip,"placement":"top"},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-button',{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button","circle":"","size":"xs","kind":"inverted","aria-label":_vm.callButtonTooltip},on:{"focus":function($event){_vm.actionFocused = true},"blur":function($event){_vm.actionFocused = false},"mouseleave":function($event){_vm.actionFocused = false},"click":function($event){$event.stopPropagation();return _vm.$emit('call', $event)}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"phone","size":"200"}})]},proxy:true}],null,false,990728611)})]},proxy:true}],null,false,4111698736)})],1):_vm._e()])}
23381
+ var general_rowvue_type_template_id_31787490_staticRenderFns = []
23354
23382
 
23355
23383
 
23356
23384
  ;// CONCATENATED MODULE: ./recipes/leftbar/general_row/general_row_constants.js
@@ -23928,27 +23956,27 @@ var emoji_text_wrapper_component = normalizeComponent(
23928
23956
  )
23929
23957
 
23930
23958
  /* harmony default export */ const emoji_text_wrapper = (emoji_text_wrapper_component.exports);
23931
- ;// 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/leftbar_general_row_icon.vue?vue&type=template&id=06ed62b0&
23932
- var leftbar_general_row_iconvue_type_template_id_06ed62b0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isIconType)?_c('dt-icon',{attrs:{"name":_vm.getIconName,"size":"300"}}):(_vm.isContactCenterType)?_c('div',{class:_vm.contactCenterIconClasses}):(_vm.isDialbotType)?_c('div',{class:_vm.dialbotClasses},[_c('icon-dialpad-glyph',{staticClass:"d-svg--size18",attrs:{"color":"white"}})],1):_vm._e()}
23933
- var leftbar_general_row_iconvue_type_template_id_06ed62b0_staticRenderFns = []
23959
+ ;// 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/leftbar_general_row_icon.vue?vue&type=template&id=42d6843e&
23960
+ var leftbar_general_row_iconvue_type_template_id_42d6843e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isIconType)?_c('dt-icon',{attrs:{"name":_vm.getIconName,"size":"300"}}):(_vm.isContactCenterType)?_c('div',{class:_vm.contactCenterIconClasses}):(_vm.isDialbotType)?_c('div',{class:_vm.dialbotClasses},[_c('icon-dialbot',{staticClass:"d-svg--size18"})],1):_vm._e()}
23961
+ var leftbar_general_row_iconvue_type_template_id_42d6843e_staticRenderFns = []
23934
23962
 
23935
23963
 
23936
- ;// 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/IconDialpadGlyph.vue?vue&type=template&id=85d2b6f4&
23937
- var IconDialpadGlyphvue_type_template_id_85d2b6f4_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__dialpadGlyph",attrs:{"aria-hidden":"true","focusable":"false","aria-label":"Dialpad Glyph","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M12.025 11.197V4.18a.077.077 0 0 0-.132-.053L8.91 7.204a5.095 5.095 0 0 0-7.08 4.693 5.095 5.095 0 0 0 5.096 5.094 5.096 5.096 0 0 0 5.049-4.394v7.019c0 .069.083.102.131.053l2.982-3.079c.61.258 1.28.4 1.984.4a5.095 5.095 0 0 0 5.096-5.093 5.095 5.095 0 0 0-5.096-5.093 5.096 5.096 0 0 0-5.048 4.393Z"}})])}
23938
- var IconDialpadGlyphvue_type_template_id_85d2b6f4_staticRenderFns = []
23964
+ ;// 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/IconDialbot.vue?vue&type=template&id=afc48fb0&
23965
+ var IconDialbotvue_type_template_id_afc48fb0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--native d-svg__dialbot",attrs:{"aria-hidden":"true","focusable":"false","aria-label":"Dialbot","width":"358","height":"358","viewBox":"0 0 358 358","fill":"none"}},[_c('circle',{attrs:{"cx":"179","cy":"179","r":"179","fill":"url(#paint0_linear_1957_89480)"}}),_c('path',{attrs:{"d":"M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z","fill":"white"}}),_c('path',{attrs:{"d":"M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.933c4.399 2.651 9.365 4.939 14.9 6.861a112.143 112.143 0 0 0 16.816 4.674c5.747 1.127 11.104 1.691 16.07 1.691 5.038 0 10.395-.564 16.071-1.691a112.209 112.209 0 0 0 16.816-4.674c5.534-1.922 10.465-4.21 14.793-6.861v11.933Z","fill":"white"}}),_c('defs',[_c('linearGradient',{attrs:{"id":"paint0_linear_1957_89480","x1":"0","y1":"0","x2":"358","y2":"358","gradientUnits":"userSpaceOnUse"}},[_c('stop',{attrs:{"stop-color":"#7C52FF"}}),_c('stop',{attrs:{"offset":"1","stop-color":"#F9008E"}})],1)],1)])}
23966
+ var IconDialbotvue_type_template_id_afc48fb0_staticRenderFns = []
23939
23967
 
23940
23968
 
23941
- ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconDialpadGlyph.vue
23969
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconDialbot.vue
23942
23970
 
23943
23971
  var script = {}
23944
23972
 
23945
23973
 
23946
23974
  /* normalize component */
23947
23975
  ;
23948
- var IconDialpadGlyph_component = normalizeComponent(
23976
+ var IconDialbot_component = normalizeComponent(
23949
23977
  script,
23950
- IconDialpadGlyphvue_type_template_id_85d2b6f4_render,
23951
- IconDialpadGlyphvue_type_template_id_85d2b6f4_staticRenderFns,
23978
+ IconDialbotvue_type_template_id_afc48fb0_render,
23979
+ IconDialbotvue_type_template_id_afc48fb0_staticRenderFns,
23952
23980
  false,
23953
23981
  null,
23954
23982
  null,
@@ -23956,7 +23984,7 @@ var IconDialpadGlyph_component = normalizeComponent(
23956
23984
 
23957
23985
  )
23958
23986
 
23959
- /* harmony default export */ const IconDialpadGlyph = (IconDialpadGlyph_component.exports);
23987
+ /* harmony default export */ const IconDialbot = (IconDialbot_component.exports);
23960
23988
  ;// 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/leftbar/general_row/leftbar_general_row_icon.vue?vue&type=script&lang=js&
23961
23989
  //
23962
23990
  //
@@ -23978,7 +24006,6 @@ var IconDialpadGlyph_component = normalizeComponent(
23978
24006
  //
23979
24007
  //
23980
24008
  //
23981
- //
23982
24009
 
23983
24010
 
23984
24011
 
@@ -23986,7 +24013,7 @@ var IconDialpadGlyph_component = normalizeComponent(
23986
24013
  name: 'DtRecipeLeftbarGeneralRowIcon',
23987
24014
  components: {
23988
24015
  DtIcon: icon,
23989
- IconDialpadGlyph: IconDialpadGlyph
24016
+ IconDialbot: IconDialbot
23990
24017
  },
23991
24018
  props: {
23992
24019
  type: {
@@ -24020,7 +24047,7 @@ var IconDialpadGlyph_component = normalizeComponent(
24020
24047
  },
24021
24048
 
24022
24049
  dialbotClasses() {
24023
- return ['d-bar-circle', 'd-bgc-purple-400', 'd-w24', 'd-h24', 'd-d-flex', 'd-ai-center', 'd-jc-center'];
24050
+ return ['d-w24', 'd-h24', 'd-d-flex', 'd-ai-center', 'd-jc-center'];
24024
24051
  }
24025
24052
 
24026
24053
  }
@@ -24037,8 +24064,8 @@ var IconDialpadGlyph_component = normalizeComponent(
24037
24064
  ;
24038
24065
  var leftbar_general_row_icon_component = normalizeComponent(
24039
24066
  general_row_leftbar_general_row_iconvue_type_script_lang_js_,
24040
- leftbar_general_row_iconvue_type_template_id_06ed62b0_render,
24041
- leftbar_general_row_iconvue_type_template_id_06ed62b0_staticRenderFns,
24067
+ leftbar_general_row_iconvue_type_template_id_42d6843e_render,
24068
+ leftbar_general_row_iconvue_type_template_id_42d6843e_staticRenderFns,
24042
24069
  false,
24043
24070
  null,
24044
24071
  null,
@@ -24168,6 +24195,7 @@ var leftbar_general_row_icon_component = normalizeComponent(
24168
24195
  //
24169
24196
  //
24170
24197
  //
24198
+ //
24171
24199
 
24172
24200
 
24173
24201
 
@@ -24406,8 +24434,8 @@ var general_rowvue_type_style_index_0_lang_less_ = __webpack_require__(641);
24406
24434
 
24407
24435
  var general_row_component = normalizeComponent(
24408
24436
  general_row_general_rowvue_type_script_lang_js_,
24409
- general_rowvue_type_template_id_18766278_render,
24410
- general_rowvue_type_template_id_18766278_staticRenderFns,
24437
+ general_rowvue_type_template_id_31787490_render,
24438
+ general_rowvue_type_template_id_31787490_staticRenderFns,
24411
24439
  false,
24412
24440
  null,
24413
24441
  null,
@@ -24578,9 +24606,9 @@ var group_row_component = normalizeComponent(
24578
24606
  /* harmony default export */ const group_row = (group_row_component.exports);
24579
24607
  ;// CONCATENATED MODULE: ./recipes/leftbar/group_row/index.js
24580
24608
 
24581
- ;// 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/contact_row/contact_row.vue?vue&type=template&id=483627f3&
24582
- var contact_rowvue_type_template_id_483627f3_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-general-row',_vm._g({attrs:{"unread-count":_vm.unreadCount,"description":(_vm.name + " " + _vm.presenceText + " " + _vm.userStatus),"has-unreads":_vm.hasUnreads,"selected":_vm.selected,"has-call-button":true,"muted":_vm.muted,"is-typing":_vm.isTyping,"call-button-tooltip":_vm.callButtonTooltip,"unread-count-tooltip":_vm.unreadCountTooltip},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('dt-avatar',{attrs:{"size":"sm","seed":_vm.avatarSeed,"presence":_vm.avatarPresence}},[(_vm.avatarSrc)?_c('img',{attrs:{"data-qa":"dt-avatar-image","src":_vm.avatarSrc,"alt":_vm.name}}):(_vm.noInitials)?[_c('dt-icon',{attrs:{"name":"user","size":"200"}})]:[_vm._v(" "+_vm._s(_vm.avatarInitial)+" ")]],2)]},proxy:true},{key:"label",fn:function(){return [_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description","size":"200"}},[_vm._v(" "+_vm._s(_vm.name)+" ")]),_c('div',{staticClass:"dt-leftbar-row__status"},[(_vm.presenceText)?_c('span',{class:['dt-leftbar-row__meta-context', _vm.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[_vm._v(" "+_vm._s(_vm.presenceText)+" ")]):_vm._e(),(_vm.userStatus)?_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__meta-custom",attrs:{"size":"100","element-type":"span","data-qa":"dt-leftbar-row-user-status"}},[_vm._v(" "+_vm._s(_vm.userStatus)+" ")]):_vm._e()],1)]},proxy:true}])},_vm.$listeners))}
24583
- var contact_rowvue_type_template_id_483627f3_staticRenderFns = []
24609
+ ;// 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/contact_row/contact_row.vue?vue&type=template&id=4a456732&
24610
+ var contact_rowvue_type_template_id_4a456732_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-general-row',_vm._g({attrs:{"unread-count":_vm.unreadCount,"description":(_vm.name + " " + _vm.presenceText + " " + _vm.userStatus),"has-unreads":_vm.hasUnreads,"selected":_vm.selected,"has-call-button":true,"muted":_vm.muted,"is-typing":_vm.isTyping,"call-button-tooltip":_vm.callButtonTooltip,"unread-count-tooltip":_vm.unreadCountTooltip},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('dt-avatar',{attrs:{"size":"sm","seed":_vm.avatarSeed,"presence":_vm.avatarPresence}},[(_vm.avatarSrc)?_c('img',{attrs:{"data-qa":"dt-avatar-image","src":_vm.avatarSrc,"alt":_vm.name}}):(_vm.noInitials)?[_c('dt-icon',{attrs:{"name":"user","size":"200"}})]:[_vm._v(" "+_vm._s(_vm.avatarInitial)+" ")]],2)]},proxy:true},{key:"label",fn:function(){return [_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description","size":"200"}},[_vm._v(" "+_vm._s(_vm.name)+" ")]),_c('div',{staticClass:"dt-leftbar-row__status"},[(_vm.presenceText)?_c('span',{class:['dt-leftbar-row__meta-context', _vm.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[_vm._v(" "+_vm._s(_vm.presenceText)+" ")]):_vm._e(),(_vm.userStatus)?_c('dt-emoji-text-wrapper',{staticClass:"dt-leftbar-row__meta-custom",attrs:{"size":"100","element-type":"span","data-qa":"dt-leftbar-row-user-status"}},[_vm._v(" "+_vm._s(_vm.userStatus)+" ")]):_vm._e()],1)]},proxy:true}])},_vm.$listeners))}
24611
+ var contact_rowvue_type_template_id_4a456732_staticRenderFns = []
24584
24612
 
24585
24613
 
24586
24614
  ;// 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/leftbar/contact_row/contact_row.vue?vue&type=script&lang=js&
@@ -24677,6 +24705,7 @@ var contact_rowvue_type_template_id_483627f3_staticRenderFns = []
24677
24705
  * Determines whether to show the presence indicator for
24678
24706
  * Avatar - accepts PRESENCE_STATES values: 'active', 'busy', 'away', 'offline'. defaults to active.
24679
24707
  * @values active, busy, away, offline
24708
+ * @default active
24680
24709
  */
24681
24710
  avatarPresence: {
24682
24711
  type: String,
@@ -24835,8 +24864,8 @@ var contact_rowvue_type_template_id_483627f3_staticRenderFns = []
24835
24864
  ;
24836
24865
  var contact_row_component = normalizeComponent(
24837
24866
  contact_row_contact_rowvue_type_script_lang_js_,
24838
- contact_rowvue_type_template_id_483627f3_render,
24839
- contact_rowvue_type_template_id_483627f3_staticRenderFns,
24867
+ contact_rowvue_type_template_id_4a456732_render,
24868
+ contact_rowvue_type_template_id_4a456732_staticRenderFns,
24840
24869
  false,
24841
24870
  null,
24842
24871
  null,