@dialpad/dialtone-vue 2.78.0 → 2.78.1
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,3 +1,10 @@
|
|
|
1
|
+
## [2.78.1](https://github.com/dialpad/dialtone-vue/compare/v2.78.0...v2.78.1) (2023-04-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* showing both image and initials issue ([#901](https://github.com/dialpad/dialtone-vue/issues/901)) ([b827e5e](https://github.com/dialpad/dialtone-vue/commit/b827e5ea08c5c8d0c91716190c716c6ccac74837))
|
|
7
|
+
|
|
1
8
|
# [2.78.0](https://github.com/dialpad/dialtone-vue/compare/v2.77.2...v2.78.0) (2023-04-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -2421,7 +2421,7 @@ if (typeof window !== 'undefined') {
|
|
|
2421
2421
|
// Indicate to webpack that this file can be concatenated
|
|
2422
2422
|
/* harmony default export */ const setPublicPath = (null);
|
|
2423
2423
|
|
|
2424
|
-
;// 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=
|
|
2424
|
+
;// 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=7a8c5449&
|
|
2425
2425
|
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",class:[_vm.canvasClass, '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.overlayIcon || _vm.overlayText)?_c('div',{staticClass:"d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-mn4 d-ba d-baw4 d-bc-white d-bar-pill d-d-flex d-ai-center d-zi-base"},[(_vm.overlayIcon)?_c('dt-icon',{staticClass:"d-fc-white d-w100p",attrs:{"name":_vm.overlayIcon}}):(_vm.overlayText)?_c('p',{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[_vm._v(" "+_vm._s(_vm.overlayText)+" ")]):_vm._e()],1):_vm._e(),(_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:[
|
|
2426
2426
|
'd-avatar__presence',
|
|
2427
2427
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -3317,6 +3317,10 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3317
3317
|
kindHandler(el) {
|
|
3318
3318
|
switch (this.kind) {
|
|
3319
3319
|
case 'image':
|
|
3320
|
+
if (this.showInitials) {
|
|
3321
|
+
el.classList.add('d-avatar__image', 'd-zi-base1');
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3320
3324
|
this.validateImageAttrsPresence();
|
|
3321
3325
|
this.setImageListeners(el);
|
|
3322
3326
|
break;
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -2431,7 +2431,7 @@ if (typeof window !== 'undefined') {
|
|
|
2431
2431
|
// Indicate to webpack that this file can be concatenated
|
|
2432
2432
|
/* harmony default export */ const setPublicPath = (null);
|
|
2433
2433
|
|
|
2434
|
-
;// 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=
|
|
2434
|
+
;// 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=7a8c5449&
|
|
2435
2435
|
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",class:[_vm.canvasClass, '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.overlayIcon || _vm.overlayText)?_c('div',{staticClass:"d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-mn4 d-ba d-baw4 d-bc-white d-bar-pill d-d-flex d-ai-center d-zi-base"},[(_vm.overlayIcon)?_c('dt-icon',{staticClass:"d-fc-white d-w100p",attrs:{"name":_vm.overlayIcon}}):(_vm.overlayText)?_c('p',{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[_vm._v(" "+_vm._s(_vm.overlayText)+" ")]):_vm._e()],1):_vm._e(),(_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:[
|
|
2436
2436
|
'd-avatar__presence',
|
|
2437
2437
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -3327,6 +3327,10 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3327
3327
|
kindHandler(el) {
|
|
3328
3328
|
switch (this.kind) {
|
|
3329
3329
|
case 'image':
|
|
3330
|
+
if (this.showInitials) {
|
|
3331
|
+
el.classList.add('d-avatar__image', 'd-zi-base1');
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3330
3334
|
this.validateImageAttrsPresence();
|
|
3331
3335
|
this.setImageListeners(el);
|
|
3332
3336
|
break;
|