@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.
- package/CHANGELOG.json +1 -1
- package/CHANGELOG.md +21 -0
- package/dist/dialtone-vue.common.js +207 -31
- package/dist/dialtone-vue.umd.js +207 -31
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [2.61.0](https://github.com/dialpad/dialtone-vue/compare/v2.60.0...v2.61.0) (2023-03-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Combobox:** popover close on scroll ([#779](https://github.com/dialpad/dialtone-vue/issues/779)) ([7cbb916](https://github.com/dialpad/dialtone-vue/commit/7cbb91607346fed731f122738eb4e3e4633afa9f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Leftbar General Row:** additional styles ([#786](https://github.com/dialpad/dialtone-vue/issues/786)) ([c803bc0](https://github.com/dialpad/dialtone-vue/commit/c803bc0ddfd6d42394f9543d1a059651fa58ea46))
|
|
12
|
+
* **Leftbar:** update text-overflow style ([#789](https://github.com/dialpad/dialtone-vue/issues/789)) ([d6873a8](https://github.com/dialpad/dialtone-vue/commit/d6873a83684c822ea696d65c9a46acbbc29ea495))
|
|
13
|
+
* **Theme:** update sidebar theme vars ([#782](https://github.com/dialpad/dialtone-vue/issues/782)) ([1c0584f](https://github.com/dialpad/dialtone-vue/commit/1c0584f3c865180573ab5194bc5833f77bee5686))
|
|
14
|
+
|
|
15
|
+
# [2.60.0](https://github.com/dialpad/dialtone-vue/compare/v2.59.2...v2.60.0) (2023-02-28)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **Leftbar:** add group row recipe ([#778](https://github.com/dialpad/dialtone-vue/issues/778)) ([ce1e487](https://github.com/dialpad/dialtone-vue/commit/ce1e487c8624e48a36cf85b9ed856a41e2c7d861))
|
|
21
|
+
|
|
1
22
|
## [2.59.2](https://github.com/dialpad/dialtone-vue/compare/v2.59.1...v2.59.2) (2023-02-24)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -402,7 +402,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
402
402
|
|
|
403
403
|
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()));
|
|
404
404
|
// Module
|
|
405
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".dt-leftbar-row{--leftbar-row-color-foreground:var(--
|
|
405
|
+
___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}}", ""]);
|
|
406
406
|
// Exports
|
|
407
407
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
408
408
|
|
|
@@ -2280,6 +2280,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2280
2280
|
"DtRecipeComboboxWithPopover": () => (/* reexport */ combobox_with_popover),
|
|
2281
2281
|
"DtRecipeContactInfo": () => (/* reexport */ contact_info),
|
|
2282
2282
|
"DtRecipeGeneralRow": () => (/* reexport */ general_row),
|
|
2283
|
+
"DtRecipeGroupRow": () => (/* reexport */ group_row),
|
|
2283
2284
|
"DtRecipeGroupedChip": () => (/* reexport */ grouped_chip),
|
|
2284
2285
|
"DtRecipeIvrNode": () => (/* reexport */ ivr_node),
|
|
2285
2286
|
"DtRecipeTopBannerInfo": () => (/* reexport */ top_banner_info),
|
|
@@ -2372,7 +2373,7 @@ if (typeof window !== 'undefined') {
|
|
|
2372
2373
|
// Indicate to webpack that this file can be concatenated
|
|
2373
2374
|
/* harmony default export */ const setPublicPath = (null);
|
|
2374
2375
|
|
|
2375
|
-
;// 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=
|
|
2376
|
+
;// 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&
|
|
2376
2377
|
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:[
|
|
2377
2378
|
'd-avatar__presence',
|
|
2378
2379
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -3000,7 +3001,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3000
3001
|
|
|
3001
3002
|
computed: {
|
|
3002
3003
|
avatarClasses() {
|
|
3003
|
-
return ['d-avatar', AVATAR_SIZE_MODIFIERS[this.
|
|
3004
|
+
return ['d-avatar', AVATAR_SIZE_MODIFIERS[this.validatedSize], this.avatarClass, {
|
|
3004
3005
|
'd-avatar--no-gradient': !this.gradient,
|
|
3005
3006
|
'd-avatar--group': this.showGroup
|
|
3006
3007
|
}];
|
|
@@ -3030,6 +3031,11 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3030
3031
|
|
|
3031
3032
|
formattedGroup() {
|
|
3032
3033
|
return this.group > 99 ? '99+' : this.group;
|
|
3034
|
+
},
|
|
3035
|
+
|
|
3036
|
+
validatedSize() {
|
|
3037
|
+
// TODO: Group only supports xs size for now. Remove this when we support other sizes.
|
|
3038
|
+
return this.group ? 'xs' : this.size;
|
|
3033
3039
|
}
|
|
3034
3040
|
|
|
3035
3041
|
},
|
|
@@ -3090,9 +3096,9 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3090
3096
|
formatInitials(initials) {
|
|
3091
3097
|
if (!initials) return;
|
|
3092
3098
|
|
|
3093
|
-
if (this.
|
|
3099
|
+
if (this.validatedSize === 'xs') {
|
|
3094
3100
|
this.formattedInitials = '';
|
|
3095
|
-
} else if (this.
|
|
3101
|
+
} else if (this.validatedSize === 'sm') {
|
|
3096
3102
|
this.formattedInitials = initials.trim()[0];
|
|
3097
3103
|
} else {
|
|
3098
3104
|
this.formattedInitials = initials.trim().slice(0, 2);
|
|
@@ -20906,15 +20912,15 @@ var stack_component = normalizeComponent(
|
|
|
20906
20912
|
/* harmony default export */ const stack = (stack_component.exports);
|
|
20907
20913
|
;// CONCATENATED MODULE: ./components/stack/index.js
|
|
20908
20914
|
|
|
20909
|
-
;// 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=
|
|
20910
|
-
var
|
|
20915
|
+
;// 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&
|
|
20916
|
+
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){
|
|
20911
20917
|
var inputProps = ref.inputProps;
|
|
20912
20918
|
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){
|
|
20913
20919
|
var opened = ref.opened;
|
|
20914
20920
|
var listProps = ref.listProps;
|
|
20915
20921
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20916
20922
|
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))}
|
|
20917
|
-
var
|
|
20923
|
+
var combobox_with_popovervue_type_template_id_5bccf868_staticRenderFns = []
|
|
20918
20924
|
|
|
20919
20925
|
|
|
20920
20926
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
|
|
@@ -21367,12 +21373,12 @@ var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
|
|
|
21367
21373
|
},
|
|
21368
21374
|
|
|
21369
21375
|
onFocusOut(e) {
|
|
21376
|
+
var _this$$refs$popover$t, _e$composedPath;
|
|
21377
|
+
|
|
21370
21378
|
// Check if the focus change was to another target within the combobox component
|
|
21371
|
-
const
|
|
21372
|
-
|
|
21373
|
-
|
|
21374
|
-
});
|
|
21375
|
-
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
21379
|
+
const popoverEl = (_this$$refs$popover$t = this.$refs.popover.tip) === null || _this$$refs$popover$t === void 0 ? void 0 : _this$$refs$popover$t.popper;
|
|
21380
|
+
const comboboxEl = this.$refs.input;
|
|
21381
|
+
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
|
|
21376
21382
|
|
|
21377
21383
|
this.closeComboboxList();
|
|
21378
21384
|
},
|
|
@@ -21399,8 +21405,8 @@ var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
|
|
|
21399
21405
|
;
|
|
21400
21406
|
var combobox_with_popover_component = normalizeComponent(
|
|
21401
21407
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
21402
|
-
|
|
21403
|
-
|
|
21408
|
+
combobox_with_popovervue_type_template_id_5bccf868_render,
|
|
21409
|
+
combobox_with_popovervue_type_template_id_5bccf868_staticRenderFns,
|
|
21404
21410
|
false,
|
|
21405
21411
|
null,
|
|
21406
21412
|
null,
|
|
@@ -23309,9 +23315,9 @@ var grouped_chip_component = normalizeComponent(
|
|
|
23309
23315
|
/* harmony default export */ const grouped_chip = (grouped_chip_component.exports);
|
|
23310
23316
|
;// CONCATENATED MODULE: ./recipes/chips/grouped_chip/index.js
|
|
23311
23317
|
|
|
23312
|
-
;// 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=
|
|
23313
|
-
var
|
|
23314
|
-
var
|
|
23318
|
+
;// 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&
|
|
23319
|
+
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)])])}
|
|
23320
|
+
var general_rowvue_type_template_id_1889c7ad_staticRenderFns = []
|
|
23315
23321
|
|
|
23316
23322
|
|
|
23317
23323
|
;// CONCATENATED MODULE: ./recipes/leftbar/general_row/general_row_constants.js
|
|
@@ -23322,7 +23328,9 @@ const LEFTBAR_GENERAL_ROW_TYPES = {
|
|
|
23322
23328
|
THREADS: 'threads',
|
|
23323
23329
|
LOCKED_CHANNEL: 'locked channel',
|
|
23324
23330
|
CONTACT_CENTER: 'contact center',
|
|
23325
|
-
DIALBOT: 'dialbot'
|
|
23331
|
+
DIALBOT: 'dialbot',
|
|
23332
|
+
ASSIGNED: 'assigned',
|
|
23333
|
+
DIGITAL: 'digital'
|
|
23326
23334
|
};
|
|
23327
23335
|
const LEFTBAR_GENERAL_ROW_ICON_MAPPING = {
|
|
23328
23336
|
[LEFTBAR_GENERAL_ROW_TYPES.INBOX]: 'inbox',
|
|
@@ -23331,20 +23339,28 @@ const LEFTBAR_GENERAL_ROW_ICON_MAPPING = {
|
|
|
23331
23339
|
[LEFTBAR_GENERAL_ROW_TYPES.THREADS]: 'thread',
|
|
23332
23340
|
[LEFTBAR_GENERAL_ROW_TYPES.LOCKED_CHANNEL]: 'lock',
|
|
23333
23341
|
'locked channel unread': 'lock-filled',
|
|
23334
|
-
'channel unread': 'hash-bold'
|
|
23342
|
+
'channel unread': 'hash-bold',
|
|
23343
|
+
[LEFTBAR_GENERAL_ROW_TYPES.ASSIGNED]: 'at-sign',
|
|
23344
|
+
[LEFTBAR_GENERAL_ROW_TYPES.DIGITAL]: 'message'
|
|
23335
23345
|
};
|
|
23336
23346
|
const LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS = {
|
|
23337
|
-
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
magenta: 'd-bgc-magenta-300',
|
|
23342
|
-
|
|
23347
|
+
'magenta-200': 'd-bgc-magenta-200',
|
|
23348
|
+
'green-200': 'd-bgc-green-200',
|
|
23349
|
+
'gold-300': 'd-bgc-gold-300',
|
|
23350
|
+
'purple-600': 'd-bgc-purple-600',
|
|
23351
|
+
'magenta-300': 'd-bgc-magenta-300',
|
|
23352
|
+
'purple-300': 'd-bgc-purple-300',
|
|
23353
|
+
'green-500': 'd-bgc-green-500',
|
|
23354
|
+
'purple-100': 'd-bgc-purple-100',
|
|
23355
|
+
'magenta-400': 'd-bgc-magenta-400',
|
|
23356
|
+
'magenta-100': 'd-bgc-magenta-100'
|
|
23343
23357
|
};
|
|
23358
|
+
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(', ');
|
|
23344
23359
|
/* harmony default export */ const general_row_constants = ({
|
|
23345
23360
|
LEFTBAR_GENERAL_ROW_TYPES,
|
|
23346
23361
|
LEFTBAR_GENERAL_ROW_ICON_MAPPING,
|
|
23347
|
-
LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS
|
|
23362
|
+
LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
23363
|
+
LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR
|
|
23348
23364
|
});
|
|
23349
23365
|
;// 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&
|
|
23350
23366
|
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)}
|
|
@@ -24024,6 +24040,24 @@ var leftbar_general_row_icon_component = normalizeComponent(
|
|
|
24024
24040
|
//
|
|
24025
24041
|
//
|
|
24026
24042
|
//
|
|
24043
|
+
//
|
|
24044
|
+
//
|
|
24045
|
+
//
|
|
24046
|
+
//
|
|
24047
|
+
//
|
|
24048
|
+
//
|
|
24049
|
+
//
|
|
24050
|
+
//
|
|
24051
|
+
//
|
|
24052
|
+
//
|
|
24053
|
+
//
|
|
24054
|
+
//
|
|
24055
|
+
//
|
|
24056
|
+
//
|
|
24057
|
+
//
|
|
24058
|
+
//
|
|
24059
|
+
//
|
|
24060
|
+
|
|
24027
24061
|
|
|
24028
24062
|
|
|
24029
24063
|
|
|
@@ -24033,6 +24067,7 @@ var leftbar_general_row_icon_component = normalizeComponent(
|
|
|
24033
24067
|
components: {
|
|
24034
24068
|
DtEmojiTextWrapper: emoji_text_wrapper,
|
|
24035
24069
|
DtBadge: badge,
|
|
24070
|
+
DtIcon: icon,
|
|
24036
24071
|
DtRecipeLeftbarGeneralRowIcon: leftbar_general_row_icon
|
|
24037
24072
|
},
|
|
24038
24073
|
inheritAttrs: false,
|
|
@@ -24082,13 +24117,39 @@ var leftbar_general_row_icon_component = normalizeComponent(
|
|
|
24082
24117
|
selected: {
|
|
24083
24118
|
type: Boolean,
|
|
24084
24119
|
default: false
|
|
24120
|
+
},
|
|
24121
|
+
|
|
24122
|
+
/**
|
|
24123
|
+
* Gives a faded style to be used when muted
|
|
24124
|
+
*/
|
|
24125
|
+
muted: {
|
|
24126
|
+
type: Boolean,
|
|
24127
|
+
default: false
|
|
24128
|
+
},
|
|
24129
|
+
|
|
24130
|
+
/**
|
|
24131
|
+
* Shows styling to represent an active voice chat. This will display over unreadCount.
|
|
24132
|
+
*/
|
|
24133
|
+
activeVoiceChat: {
|
|
24134
|
+
type: Boolean,
|
|
24135
|
+
default: false
|
|
24136
|
+
},
|
|
24137
|
+
|
|
24138
|
+
/**
|
|
24139
|
+
* Acronym used to represent "Do not Disturb" state. If entered will display the entered text over
|
|
24140
|
+
* unreadCount and activeVoiceChat.
|
|
24141
|
+
*/
|
|
24142
|
+
dndText: {
|
|
24143
|
+
type: String,
|
|
24144
|
+
default: ''
|
|
24085
24145
|
}
|
|
24086
24146
|
},
|
|
24087
24147
|
computed: {
|
|
24088
24148
|
leftbarGeneralRowClasses() {
|
|
24089
24149
|
return ['dt-leftbar-row', 'dt-leftbar-row--no-action', {
|
|
24090
24150
|
'dt-leftbar-row--has-unread': this.hasUnreadMessages,
|
|
24091
|
-
'dt-leftbar-row--selected': this.selected
|
|
24151
|
+
'dt-leftbar-row--selected': this.selected,
|
|
24152
|
+
'dt-leftbar-row--muted': this.muted
|
|
24092
24153
|
}];
|
|
24093
24154
|
},
|
|
24094
24155
|
|
|
@@ -24125,7 +24186,7 @@ var leftbar_general_row_icon_component = normalizeComponent(
|
|
|
24125
24186
|
methods: {
|
|
24126
24187
|
validateProps() {
|
|
24127
24188
|
if (this.type === LEFTBAR_GENERAL_ROW_TYPES.CONTACT_CENTER && !Object.keys(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS).includes(this.color)) {
|
|
24128
|
-
console.error(
|
|
24189
|
+
console.error(LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR);
|
|
24129
24190
|
}
|
|
24130
24191
|
}
|
|
24131
24192
|
|
|
@@ -24148,8 +24209,8 @@ var general_rowvue_type_style_index_0_lang_less_ = __webpack_require__(641);
|
|
|
24148
24209
|
|
|
24149
24210
|
var general_row_component = normalizeComponent(
|
|
24150
24211
|
general_row_general_rowvue_type_script_lang_js_,
|
|
24151
|
-
|
|
24152
|
-
|
|
24212
|
+
general_rowvue_type_template_id_1889c7ad_render,
|
|
24213
|
+
general_rowvue_type_template_id_1889c7ad_staticRenderFns,
|
|
24153
24214
|
false,
|
|
24154
24215
|
null,
|
|
24155
24216
|
null,
|
|
@@ -24161,6 +24222,120 @@ var general_row_component = normalizeComponent(
|
|
|
24161
24222
|
;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
|
|
24162
24223
|
|
|
24163
24224
|
|
|
24225
|
+
;// 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&
|
|
24226
|
+
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))}
|
|
24227
|
+
var group_rowvue_type_template_id_8a338828_staticRenderFns = []
|
|
24228
|
+
|
|
24229
|
+
|
|
24230
|
+
;// 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/group_row/group_row.vue?vue&type=script&lang=js&
|
|
24231
|
+
//
|
|
24232
|
+
//
|
|
24233
|
+
//
|
|
24234
|
+
//
|
|
24235
|
+
//
|
|
24236
|
+
//
|
|
24237
|
+
//
|
|
24238
|
+
//
|
|
24239
|
+
//
|
|
24240
|
+
//
|
|
24241
|
+
//
|
|
24242
|
+
//
|
|
24243
|
+
//
|
|
24244
|
+
//
|
|
24245
|
+
//
|
|
24246
|
+
//
|
|
24247
|
+
//
|
|
24248
|
+
//
|
|
24249
|
+
//
|
|
24250
|
+
//
|
|
24251
|
+
//
|
|
24252
|
+
//
|
|
24253
|
+
|
|
24254
|
+
|
|
24255
|
+
/* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
|
|
24256
|
+
name: 'DtRecipeGroupRow',
|
|
24257
|
+
components: {
|
|
24258
|
+
DtAvatar: avatar,
|
|
24259
|
+
DtRecipeGeneralRow: general_row
|
|
24260
|
+
},
|
|
24261
|
+
props: {
|
|
24262
|
+
/**
|
|
24263
|
+
* Optional avatar image url.
|
|
24264
|
+
* if provided, it's also required to provide a value in the `avatarInitials` prop to use
|
|
24265
|
+
* in the alt attribute of the avatar.
|
|
24266
|
+
*/
|
|
24267
|
+
avatarSrc: {
|
|
24268
|
+
type: String,
|
|
24269
|
+
default: ''
|
|
24270
|
+
},
|
|
24271
|
+
|
|
24272
|
+
/**
|
|
24273
|
+
* Initials to display on the avatar if avatarSrc is not provided or
|
|
24274
|
+
* alt attr if avatarSrc is provided.
|
|
24275
|
+
*/
|
|
24276
|
+
avatarInitials: {
|
|
24277
|
+
type: String,
|
|
24278
|
+
default: '',
|
|
24279
|
+
required: true
|
|
24280
|
+
},
|
|
24281
|
+
|
|
24282
|
+
/**
|
|
24283
|
+
* Number displayed in avatar to count group members
|
|
24284
|
+
*/
|
|
24285
|
+
groupCount: {
|
|
24286
|
+
type: Number,
|
|
24287
|
+
required: true
|
|
24288
|
+
},
|
|
24289
|
+
|
|
24290
|
+
/**
|
|
24291
|
+
* Names of the group members
|
|
24292
|
+
*/
|
|
24293
|
+
names: {
|
|
24294
|
+
type: String,
|
|
24295
|
+
default: ''
|
|
24296
|
+
},
|
|
24297
|
+
|
|
24298
|
+
/**
|
|
24299
|
+
* Number of unread messages
|
|
24300
|
+
*/
|
|
24301
|
+
unreadCount: {
|
|
24302
|
+
type: String,
|
|
24303
|
+
default: null
|
|
24304
|
+
},
|
|
24305
|
+
|
|
24306
|
+
/**
|
|
24307
|
+
* Determines if the row is selected
|
|
24308
|
+
*/
|
|
24309
|
+
selected: {
|
|
24310
|
+
type: Boolean,
|
|
24311
|
+
default: false
|
|
24312
|
+
}
|
|
24313
|
+
}
|
|
24314
|
+
});
|
|
24315
|
+
;// CONCATENATED MODULE: ./recipes/leftbar/group_row/group_row.vue?vue&type=script&lang=js&
|
|
24316
|
+
/* harmony default export */ const group_row_group_rowvue_type_script_lang_js_ = (group_rowvue_type_script_lang_js_);
|
|
24317
|
+
;// CONCATENATED MODULE: ./recipes/leftbar/group_row/group_row.vue
|
|
24318
|
+
|
|
24319
|
+
|
|
24320
|
+
|
|
24321
|
+
|
|
24322
|
+
|
|
24323
|
+
/* normalize component */
|
|
24324
|
+
;
|
|
24325
|
+
var group_row_component = normalizeComponent(
|
|
24326
|
+
group_row_group_rowvue_type_script_lang_js_,
|
|
24327
|
+
group_rowvue_type_template_id_8a338828_render,
|
|
24328
|
+
group_rowvue_type_template_id_8a338828_staticRenderFns,
|
|
24329
|
+
false,
|
|
24330
|
+
null,
|
|
24331
|
+
null,
|
|
24332
|
+
null
|
|
24333
|
+
|
|
24334
|
+
)
|
|
24335
|
+
|
|
24336
|
+
/* harmony default export */ const group_row = (group_row_component.exports);
|
|
24337
|
+
;// CONCATENATED MODULE: ./recipes/leftbar/group_row/index.js
|
|
24338
|
+
|
|
24164
24339
|
;// CONCATENATED MODULE: ./common/mixins/index.js
|
|
24165
24340
|
|
|
24166
24341
|
|
|
@@ -24214,6 +24389,7 @@ var general_row_component = normalizeComponent(
|
|
|
24214
24389
|
|
|
24215
24390
|
|
|
24216
24391
|
|
|
24392
|
+
|
|
24217
24393
|
// Mixins
|
|
24218
24394
|
|
|
24219
24395
|
// Constants
|