@dialpad/dialtone-vue 2.130.4 → 2.132.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/dist/chunks/{dropdown-IaLNHmVd.js → dropdown-2D4i6Qkg.js} +2 -2
- package/dist/chunks/{dropdown-IaLNHmVd.js.map → dropdown-2D4i6Qkg.js.map} +1 -1
- package/dist/chunks/{dropdown-DTtcQEFC.js → dropdown-8L_PePwv.js} +2 -2
- package/dist/chunks/{dropdown-DTtcQEFC.js.map → dropdown-8L_PePwv.js.map} +1 -1
- package/dist/chunks/{popover_constants-Qkpb0yh2.js → popover_constants-kQaX7G4a.js} +10 -13
- package/dist/chunks/popover_constants-kQaX7G4a.js.map +1 -0
- package/dist/chunks/{popover_constants-JwBF9h1Z.js → popover_constants-qUYTzsS3.js} +10 -13
- package/dist/chunks/popover_constants-qUYTzsS3.js.map +1 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +6 -2
- package/dist/dialtone-vue.cjs.map +1 -1
- package/dist/dialtone-vue.js +6 -2
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +2 -2
- package/dist/lib/callbar-button-with-popover.js +2 -2
- package/dist/lib/callbar-button.cjs +1 -2
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +1 -2
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select.js +1 -1
- package/dist/lib/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover.js +1 -1
- package/dist/lib/contact-centers-row.cjs +160 -0
- package/dist/lib/contact-centers-row.cjs.map +1 -0
- package/dist/lib/contact-centers-row.js +160 -0
- package/dist/lib/contact-centers-row.js.map +1 -0
- package/dist/lib/contact-row.cjs +1 -2
- package/dist/lib/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row.js +1 -2
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +1 -2
- package/dist/lib/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker.js +1 -2
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/dropdown.cjs +2 -2
- package/dist/lib/dropdown.js +2 -2
- package/dist/lib/editor.cjs +1 -1
- package/dist/lib/editor.js +1 -1
- package/dist/lib/emoji-picker.cjs +1 -2
- package/dist/lib/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker.js +1 -2
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +1 -2
- package/dist/lib/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row.js +1 -2
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/general-row.cjs +32 -8
- package/dist/lib/general-row.cjs.map +1 -1
- package/dist/lib/general-row.js +32 -8
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +1 -2
- package/dist/lib/group-row.cjs.map +1 -1
- package/dist/lib/group-row.js +1 -2
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/hovercard.cjs +1 -1
- package/dist/lib/hovercard.js +1 -1
- package/dist/lib/ivr-node.cjs +2 -2
- package/dist/lib/ivr-node.js +2 -2
- package/dist/lib/message-input.cjs +2 -2
- package/dist/lib/message-input.js +2 -2
- package/dist/lib/popover.cjs +2 -2
- package/dist/lib/popover.cjs.map +1 -1
- package/dist/lib/popover.js +3 -3
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +1 -2
- package/dist/lib/tooltip-directive.cjs.map +1 -1
- package/dist/lib/tooltip-directive.js +1 -2
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +36 -31
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +37 -32
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/style.css +393 -51
- package/dist/types/components/popover/tippy_utils.d.ts +1 -6
- package/dist/types/components/popover/tippy_utils.d.ts.map +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +40 -36
- package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +90 -0
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -0
- package/dist/types/recipes/leftbar/contact_centers_row/index.d.ts +2 -0
- package/dist/types/recipes/leftbar/contact_centers_row/index.d.ts.map +1 -0
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +20 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunks/popover_constants-JwBF9h1Z.js.map +0 -1
- package/dist/chunks/popover_constants-Qkpb0yh2.js.map +0 -1
- package/dist/types/components/tooltip/modifiers.d.ts +0 -8
- package/dist/types/components/tooltip/modifiers.d.ts.map +0 -1
package/dist/dialtone-vue.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const lib_collapsible = require("./lib/collapsible.cjs");
|
|
|
23
23
|
const lib_combobox = require("./chunks/index-gj1jEXP4.js");
|
|
24
24
|
const lib_datepicker = require("./lib/datepicker.cjs");
|
|
25
25
|
const lib_descriptionList = require("./lib/description-list.cjs");
|
|
26
|
-
const dropdown = require("./chunks/dropdown-
|
|
26
|
+
const dropdown = require("./chunks/dropdown-2D4i6Qkg.js");
|
|
27
27
|
const lib_dropdown = require("./lib/dropdown.cjs");
|
|
28
28
|
const dropdown_constants = require("./chunks/dropdown_constants-2pGCXy7m.js");
|
|
29
29
|
const lib_emoji = require("./lib/emoji.cjs");
|
|
@@ -49,7 +49,7 @@ const notice_action = require("./chunks/notice_action-P6uDyE9x.js");
|
|
|
49
49
|
const notice_constants = require("./chunks/notice_constants-UXo9e3bS.js");
|
|
50
50
|
const lib_pagination = require("./lib/pagination.cjs");
|
|
51
51
|
const lib_popover = require("./lib/popover.cjs");
|
|
52
|
-
const popover_constants = require("./chunks/popover_constants-
|
|
52
|
+
const popover_constants = require("./chunks/popover_constants-qUYTzsS3.js");
|
|
53
53
|
const lib_presence = require("./lib/presence.cjs");
|
|
54
54
|
const lib_radio = require("./lib/radio.cjs");
|
|
55
55
|
const lib_radioGroup = require("./lib/radio-group.cjs");
|
|
@@ -82,6 +82,7 @@ const lib_timePill = require("./lib/time-pill.cjs");
|
|
|
82
82
|
const lib_settingsMenuButton = require("./lib/settings-menu-button.cjs");
|
|
83
83
|
const lib_contactInfo = require("./lib/contact-info.cjs");
|
|
84
84
|
const lib_callbox = require("./lib/callbox.cjs");
|
|
85
|
+
const lib_contactCentersRow = require("./lib/contact-centers-row.cjs");
|
|
85
86
|
const lib_contactRow = require("./lib/contact-row.cjs");
|
|
86
87
|
const lib_generalRow = require("./lib/general-row.cjs");
|
|
87
88
|
const lib_groupRow = require("./lib/group-row.cjs");
|
|
@@ -122,6 +123,8 @@ require("@tiptap/suggestion");
|
|
|
122
123
|
require("@tiptap/extension-mention");
|
|
123
124
|
require("@dialpad/dialtone-icons/vue2/hash");
|
|
124
125
|
require("@dialpad/dialtone-icons/vue2/lock");
|
|
126
|
+
require("@dialpad/dialtone-icons/vue2/headphones");
|
|
127
|
+
require("@dialpad/dialtone-icons/vue2/chevron-down");
|
|
125
128
|
exports.DEFAULT_VALIDATION_MESSAGE_TYPE = common_constants.DEFAULT_VALIDATION_MESSAGE_TYPE;
|
|
126
129
|
exports.DESCRIPTION_SIZE_TYPES = common_constants.DESCRIPTION_SIZE_TYPES;
|
|
127
130
|
exports.VALIDATION_MESSAGE_TYPES = common_constants.VALIDATION_MESSAGE_TYPES;
|
|
@@ -360,6 +363,7 @@ exports.DtRecipeContactInfo = lib_contactInfo.DtRecipeContactInfo;
|
|
|
360
363
|
exports.CALLBOX_BADGE_COLORS = lib_callbox.CALLBOX_BADGE_COLORS;
|
|
361
364
|
exports.CALLBOX_BORDER_COLORS = lib_callbox.CALLBOX_BORDER_COLORS;
|
|
362
365
|
exports.DtRecipeCallbox = lib_callbox.DtRecipeCallbox;
|
|
366
|
+
exports.DtRecipeContactCentersRow = lib_contactCentersRow.DtRecipeContactCentersRow;
|
|
363
367
|
exports.DtRecipeContactRow = lib_contactRow.DtRecipeContactRow;
|
|
364
368
|
exports.DtRecipeGeneralRow = lib_generalRow.DtRecipeGeneralRow;
|
|
365
369
|
exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS = lib_generalRow.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialtone-vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialtone-vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/dialtone-vue.js
CHANGED
|
@@ -21,7 +21,7 @@ import { DtCollapsible } from "./lib/collapsible.js";
|
|
|
21
21
|
import { DtCombobox, LABEL_SIZES } from "./chunks/index-eJ-WWRdf.js";
|
|
22
22
|
import { DtDatepicker, formatLong, formatMedium, formatNoYear, formatNumerical, formatShort } from "./lib/datepicker.js";
|
|
23
23
|
import { DT_DESCRIPTION_LIST_DIRECTION, DtDescriptionList } from "./lib/description-list.js";
|
|
24
|
-
import { DtDropdown } from "./chunks/dropdown-
|
|
24
|
+
import { DtDropdown } from "./chunks/dropdown-8L_PePwv.js";
|
|
25
25
|
import { DtDropdownSeparator } from "./lib/dropdown.js";
|
|
26
26
|
import { DROPDOWN_PADDING_CLASSES } from "./chunks/dropdown_constants-w1MXGC3Z.js";
|
|
27
27
|
import { DtEmoji } from "./lib/emoji.js";
|
|
@@ -47,7 +47,7 @@ import { DtNoticeAction, DtNoticeContent, DtNoticeIcon } from "./chunks/notice_a
|
|
|
47
47
|
import { NOTICE_KINDS, NOTICE_ROLES } from "./chunks/notice_constants-7Qt2CQEY.js";
|
|
48
48
|
import { DtPagination } from "./lib/pagination.js";
|
|
49
49
|
import { DtPopover } from "./lib/popover.js";
|
|
50
|
-
import { POPOVER_APPEND_TO_VALUES, POPOVER_CONTENT_WIDTHS, POPOVER_DIRECTIONS, POPOVER_HEADER_FOOTER_PADDING_CLASSES, POPOVER_INITIAL_FOCUS_STRINGS, POPOVER_PADDING_CLASSES, POPOVER_ROLES, POPOVER_STICKY_VALUES, TOOLTIP_DELAY_MS, TOOLTIP_DIRECTIONS, TOOLTIP_HIDE_ON_CLICK_VARIANTS, TOOLTIP_KIND_MODIFIERS, TOOLTIP_STICKY_VALUES } from "./chunks/popover_constants-
|
|
50
|
+
import { POPOVER_APPEND_TO_VALUES, POPOVER_CONTENT_WIDTHS, POPOVER_DIRECTIONS, POPOVER_HEADER_FOOTER_PADDING_CLASSES, POPOVER_INITIAL_FOCUS_STRINGS, POPOVER_PADDING_CLASSES, POPOVER_ROLES, POPOVER_STICKY_VALUES, TOOLTIP_DELAY_MS, TOOLTIP_DIRECTIONS, TOOLTIP_HIDE_ON_CLICK_VARIANTS, TOOLTIP_KIND_MODIFIERS, TOOLTIP_STICKY_VALUES } from "./chunks/popover_constants-kQaX7G4a.js";
|
|
51
51
|
import { DtPresence, PRESENCE_STATES, PRESENCE_STATES_LIST } from "./lib/presence.js";
|
|
52
52
|
import { DtRadio, RADIO_INPUT_VALIDATION_CLASSES } from "./lib/radio.js";
|
|
53
53
|
import { DtRadioGroup } from "./lib/radio-group.js";
|
|
@@ -80,6 +80,7 @@ import { DtRecipeTimePill } from "./lib/time-pill.js";
|
|
|
80
80
|
import { DtRecipeSettingsMenuButton } from "./lib/settings-menu-button.js";
|
|
81
81
|
import { DtRecipeContactInfo } from "./lib/contact-info.js";
|
|
82
82
|
import { CALLBOX_BADGE_COLORS, CALLBOX_BORDER_COLORS, DtRecipeCallbox } from "./lib/callbox.js";
|
|
83
|
+
import { DtRecipeContactCentersRow } from "./lib/contact-centers-row.js";
|
|
83
84
|
import { DtRecipeContactRow } from "./lib/contact-row.js";
|
|
84
85
|
import { DtRecipeGeneralRow, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR, LEFTBAR_GENERAL_ROW_ICON_MAPPING, LEFTBAR_GENERAL_ROW_ICON_SIZES, LEFTBAR_GENERAL_ROW_TYPES } from "./lib/general-row.js";
|
|
85
86
|
import { DtRecipeGroupRow } from "./lib/group-row.js";
|
|
@@ -120,6 +121,8 @@ import "@tiptap/suggestion";
|
|
|
120
121
|
import "@tiptap/extension-mention";
|
|
121
122
|
import "@dialpad/dialtone-icons/vue2/hash";
|
|
122
123
|
import "@dialpad/dialtone-icons/vue2/lock";
|
|
124
|
+
import "@dialpad/dialtone-icons/vue2/headphones";
|
|
125
|
+
import "@dialpad/dialtone-icons/vue2/chevron-down";
|
|
123
126
|
export {
|
|
124
127
|
AVATAR_COLORS,
|
|
125
128
|
AVATAR_GROUP_VALIDATOR,
|
|
@@ -210,6 +213,7 @@ export {
|
|
|
210
213
|
DtRecipeCallbox,
|
|
211
214
|
DtRecipeComboboxMultiSelect,
|
|
212
215
|
DtRecipeComboboxWithPopover,
|
|
216
|
+
DtRecipeContactCentersRow,
|
|
213
217
|
DtRecipeContactInfo,
|
|
214
218
|
DtRecipeContactRow,
|
|
215
219
|
DtRecipeEditor,
|
package/dist/dialtone-vue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialtone-vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialtone-vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,12 +9,12 @@ const lib_icon = require("./icon.cjs");
|
|
|
9
9
|
require("../common/constants.cjs");
|
|
10
10
|
require("vue");
|
|
11
11
|
require("./tooltip.cjs");
|
|
12
|
-
require("../chunks/popover_constants-
|
|
12
|
+
require("../chunks/popover_constants-qUYTzsS3.js");
|
|
13
13
|
require("tippy.js");
|
|
14
|
-
require("./lazy-show.cjs");
|
|
15
14
|
require("@linusborg/vue-simple-portal");
|
|
16
15
|
require("../chunks/modal-VgxXAQFP.js");
|
|
17
16
|
require("../chunks/sr_only_close_button-ZaGdAHz7.js");
|
|
17
|
+
require("./lazy-show.cjs");
|
|
18
18
|
require("../chunks/link_constants-Huj7D_hm.js");
|
|
19
19
|
require("@dialpad/dialtone-icons/vue2");
|
|
20
20
|
require("../chunks/icon_constants-QYpmdE0R.js");
|
|
@@ -7,12 +7,12 @@ import { DtIcon } from "./icon.js";
|
|
|
7
7
|
import "../common/constants.js";
|
|
8
8
|
import "vue";
|
|
9
9
|
import "./tooltip.js";
|
|
10
|
-
import "../chunks/popover_constants-
|
|
10
|
+
import "../chunks/popover_constants-kQaX7G4a.js";
|
|
11
11
|
import "tippy.js";
|
|
12
|
-
import "./lazy-show.js";
|
|
13
12
|
import "@linusborg/vue-simple-portal";
|
|
14
13
|
import "../chunks/modal-XOr4kiNZ.js";
|
|
15
14
|
import "../chunks/sr_only_close_button-81bHIpPu.js";
|
|
15
|
+
import "./lazy-show.js";
|
|
16
16
|
import "../chunks/link_constants-nWVlXQBs.js";
|
|
17
17
|
import "@dialpad/dialtone-icons/vue2";
|
|
18
18
|
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
@@ -7,9 +7,8 @@ const lib_tooltip = require("./tooltip.cjs");
|
|
|
7
7
|
require("../common/constants.cjs");
|
|
8
8
|
require("vue");
|
|
9
9
|
require("../chunks/link_constants-Huj7D_hm.js");
|
|
10
|
-
require("../chunks/popover_constants-
|
|
10
|
+
require("../chunks/popover_constants-qUYTzsS3.js");
|
|
11
11
|
require("tippy.js");
|
|
12
|
-
require("./lazy-show.cjs");
|
|
13
12
|
const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ["sm", "md", "lg", "xl"];
|
|
14
13
|
const _sfc_main = {
|
|
15
14
|
name: "DtRecipeCallbarButton",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbar-button.cjs","sources":["../../recipes/buttons/callbar_button/callbar_button_constants.js","../../recipes/buttons/callbar_button/callbar_button.vue"],"sourcesContent":["export const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];\n\nexport default {\n CALLBAR_BUTTON_VALID_WIDTH_SIZE,\n};\n","<template>\n <dt-tooltip\n :id=\"id\"\n :offset=\"[0, 8]\"\n >\n <template #anchor>\n <span\n :class=\"{ 'dt-recipe-callbar-button--disabled': disabled }\"\n >\n <dt-button\n :importance=\"buttonImportance\"\n kind=\"muted\"\n icon-position=\"top\"\n :aria-disabled=\"disabled\"\n :aria-label=\"ariaLabel\"\n :label-class=\"callbarButtonTextClass\"\n :width=\"buttonWidth\"\n :class=\"callbarButtonClass\"\n v-bind=\"$attrs\"\n v-on=\"callbarButtonListeners\"\n >\n <slot />\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </dt-button>\n </span>\n </template>\n <slot name=\"tooltip\" />\n </dt-tooltip>\n</template>\n\n<script>\nimport { CALLBAR_BUTTON_VALID_WIDTH_SIZE } from './callbar_button_constants';\nimport { DtButton } from '@/components/button';\nimport { DtTooltip } from '@/components/tooltip';\nimport utils from '@/common/utils';\n\nexport default {\n name: 'DtRecipeCallbarButton',\n\n components: { DtButton, DtTooltip },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () {\n return utils.getUniqueString();\n },\n },\n\n /**\n * Determines whether the button should have active styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should have danger styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n danger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should be disabled\n * default is false.\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the button is a circle or not.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n circle: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Aria label for the button. If empty, it takes its value from the default slot.\n */\n ariaLabel: {\n type: String,\n default: null,\n validator: (label) => {\n return label || this.$slots.default;\n },\n },\n\n /**\n * Additional class name for the button wrapper element.\n */\n buttonClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the button text.\n */\n textClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /*\n * Width size. Valid values are: 'xl', 'lg', 'md' and 'sm'.\n */\n buttonWidthSize: {\n type: String,\n default: 'xl',\n validator: size => CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(size),\n },\n\n /**\n * The fill and outline of the button associated with its visual importance.\n * @values clear, outlined, primary\n */\n importance: {\n type: String,\n default: '',\n },\n\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n callbarButtonClass () {\n return [\n this.buttonClass,\n 'dt-recipe-callbar-button',\n 'd-px0',\n {\n 'dt-recipe-callbar-button--circle': this.circle,\n 'dt-recipe-callbar-button--active': this.active,\n 'dt-recipe-callbar-button--danger': this.danger,\n 'd-btn--disabled d-bgc-transparent': this.disabled,\n 'd-fc-primary': !this.disabled,\n }];\n },\n\n callbarButtonTextClass () {\n return [\n 'd-fs-100 lg:d-d-none md:d-d-none sm:d-d-none',\n this.textClass,\n ];\n },\n\n buttonWidth () {\n switch (this.buttonWidthSize) {\n case 'sm':\n return '4.5rem';\n case 'md':\n return '6rem';\n default:\n return '8.4rem';\n }\n },\n\n buttonImportance () {\n if (this.importance) {\n return this.importance;\n }\n return this.circle ? 'outlined' : 'clear';\n },\n\n callbarButtonListeners () {\n return {\n ...this.$listeners,\n click: (event) => this.$emit('click', event),\n };\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n.dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle) {\n line-height: var(--dt-font-line-height-300);\n}\n\n.dt-recipe-callbar-button--circle {\n border-radius: var(--dt-size-radius-circle);\n}\n\n.dt-recipe-callbar-button.d-btn[disabled] {\n background-color: unset;\n opacity: .5;\n}\n\n.dt-recipe-callbar-button--circle.d-btn[disabled] {\n border-color: unset;\n}\n\n.dt-recipe-callbar-button--active,\n.dt-recipe-callbar-button--active:hover {\n .base-button__icon {\n color: var(--primary-color);\n }\n}\n\n.dt-recipe-callbar-button--disabled {\n cursor: not-allowed;\n}\n</style>\n"],"names":["DtButton","DtTooltip","utils","this"],"mappings":"
|
|
1
|
+
{"version":3,"file":"callbar-button.cjs","sources":["../../recipes/buttons/callbar_button/callbar_button_constants.js","../../recipes/buttons/callbar_button/callbar_button.vue"],"sourcesContent":["export const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];\n\nexport default {\n CALLBAR_BUTTON_VALID_WIDTH_SIZE,\n};\n","<template>\n <dt-tooltip\n :id=\"id\"\n :offset=\"[0, 8]\"\n >\n <template #anchor>\n <span\n :class=\"{ 'dt-recipe-callbar-button--disabled': disabled }\"\n >\n <dt-button\n :importance=\"buttonImportance\"\n kind=\"muted\"\n icon-position=\"top\"\n :aria-disabled=\"disabled\"\n :aria-label=\"ariaLabel\"\n :label-class=\"callbarButtonTextClass\"\n :width=\"buttonWidth\"\n :class=\"callbarButtonClass\"\n v-bind=\"$attrs\"\n v-on=\"callbarButtonListeners\"\n >\n <slot />\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </dt-button>\n </span>\n </template>\n <slot name=\"tooltip\" />\n </dt-tooltip>\n</template>\n\n<script>\nimport { CALLBAR_BUTTON_VALID_WIDTH_SIZE } from './callbar_button_constants';\nimport { DtButton } from '@/components/button';\nimport { DtTooltip } from '@/components/tooltip';\nimport utils from '@/common/utils';\n\nexport default {\n name: 'DtRecipeCallbarButton',\n\n components: { DtButton, DtTooltip },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () {\n return utils.getUniqueString();\n },\n },\n\n /**\n * Determines whether the button should have active styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should have danger styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n danger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should be disabled\n * default is false.\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the button is a circle or not.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n circle: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Aria label for the button. If empty, it takes its value from the default slot.\n */\n ariaLabel: {\n type: String,\n default: null,\n validator: (label) => {\n return label || this.$slots.default;\n },\n },\n\n /**\n * Additional class name for the button wrapper element.\n */\n buttonClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the button text.\n */\n textClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /*\n * Width size. Valid values are: 'xl', 'lg', 'md' and 'sm'.\n */\n buttonWidthSize: {\n type: String,\n default: 'xl',\n validator: size => CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(size),\n },\n\n /**\n * The fill and outline of the button associated with its visual importance.\n * @values clear, outlined, primary\n */\n importance: {\n type: String,\n default: '',\n },\n\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n callbarButtonClass () {\n return [\n this.buttonClass,\n 'dt-recipe-callbar-button',\n 'd-px0',\n {\n 'dt-recipe-callbar-button--circle': this.circle,\n 'dt-recipe-callbar-button--active': this.active,\n 'dt-recipe-callbar-button--danger': this.danger,\n 'd-btn--disabled d-bgc-transparent': this.disabled,\n 'd-fc-primary': !this.disabled,\n }];\n },\n\n callbarButtonTextClass () {\n return [\n 'd-fs-100 lg:d-d-none md:d-d-none sm:d-d-none',\n this.textClass,\n ];\n },\n\n buttonWidth () {\n switch (this.buttonWidthSize) {\n case 'sm':\n return '4.5rem';\n case 'md':\n return '6rem';\n default:\n return '8.4rem';\n }\n },\n\n buttonImportance () {\n if (this.importance) {\n return this.importance;\n }\n return this.circle ? 'outlined' : 'clear';\n },\n\n callbarButtonListeners () {\n return {\n ...this.$listeners,\n click: (event) => this.$emit('click', event),\n };\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n.dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle) {\n line-height: var(--dt-font-line-height-300);\n}\n\n.dt-recipe-callbar-button--circle {\n border-radius: var(--dt-size-radius-circle);\n}\n\n.dt-recipe-callbar-button.d-btn[disabled] {\n background-color: unset;\n opacity: .5;\n}\n\n.dt-recipe-callbar-button--circle.d-btn[disabled] {\n border-color: unset;\n}\n\n.dt-recipe-callbar-button--active,\n.dt-recipe-callbar-button--active:hover {\n .base-button__icon {\n color: var(--primary-color);\n }\n}\n\n.dt-recipe-callbar-button--disabled {\n cursor: not-allowed;\n}\n</style>\n"],"names":["DtButton","DtTooltip","utils","this"],"mappings":";;;;;;;;;;;AAAY,MAAC,kCAAkC,CAAC,MAAM,MAAM,MAAM,IAAI;ACsCtE,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA,EAAA,UAAAA,WAAA,UAAA,WAAAC,sBAAA;AAAA,EAEA,cAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AACA,eAAAC,aAAAA,QAAA;MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,UAAA;AACA,eAAA,SAAAC,SAAA,OAAA;AAAA,MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,iBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,UAAA,gCAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EAEA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,qBAAA;AACA,aAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,qCAAA,KAAA;AAAA,UACA,gBAAA,CAAA,KAAA;AAAA,QACA;AAAA,MAAA;AAAA,IACA;AAAA,IAEA,yBAAA;AACA,aAAA;AAAA,QACA;AAAA,QACA,KAAA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,cAAA;AACA,cAAA,KAAA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA;AACA,iBAAA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,mBAAA;AACA,UAAA,KAAA,YAAA;AACA,eAAA,KAAA;AAAA,MACA;AACA,aAAA,KAAA,SAAA,aAAA;AAAA,IACA;AAAA,IAEA,yBAAA;AACA,aAAA;AAAA,QACA,GAAA,KAAA;AAAA,QACA,OAAA,CAAA,UAAA,KAAA,MAAA,SAAA,KAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,9 +5,8 @@ import { DtTooltip } from "./tooltip.js";
|
|
|
5
5
|
import "../common/constants.js";
|
|
6
6
|
import "vue";
|
|
7
7
|
import "../chunks/link_constants-nWVlXQBs.js";
|
|
8
|
-
import "../chunks/popover_constants-
|
|
8
|
+
import "../chunks/popover_constants-kQaX7G4a.js";
|
|
9
9
|
import "tippy.js";
|
|
10
|
-
import "./lazy-show.js";
|
|
11
10
|
const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ["sm", "md", "lg", "xl"];
|
|
12
11
|
const _sfc_main = {
|
|
13
12
|
name: "DtRecipeCallbarButton",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbar-button.js","sources":["../../recipes/buttons/callbar_button/callbar_button_constants.js","../../recipes/buttons/callbar_button/callbar_button.vue"],"sourcesContent":["export const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];\n\nexport default {\n CALLBAR_BUTTON_VALID_WIDTH_SIZE,\n};\n","<template>\n <dt-tooltip\n :id=\"id\"\n :offset=\"[0, 8]\"\n >\n <template #anchor>\n <span\n :class=\"{ 'dt-recipe-callbar-button--disabled': disabled }\"\n >\n <dt-button\n :importance=\"buttonImportance\"\n kind=\"muted\"\n icon-position=\"top\"\n :aria-disabled=\"disabled\"\n :aria-label=\"ariaLabel\"\n :label-class=\"callbarButtonTextClass\"\n :width=\"buttonWidth\"\n :class=\"callbarButtonClass\"\n v-bind=\"$attrs\"\n v-on=\"callbarButtonListeners\"\n >\n <slot />\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </dt-button>\n </span>\n </template>\n <slot name=\"tooltip\" />\n </dt-tooltip>\n</template>\n\n<script>\nimport { CALLBAR_BUTTON_VALID_WIDTH_SIZE } from './callbar_button_constants';\nimport { DtButton } from '@/components/button';\nimport { DtTooltip } from '@/components/tooltip';\nimport utils from '@/common/utils';\n\nexport default {\n name: 'DtRecipeCallbarButton',\n\n components: { DtButton, DtTooltip },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () {\n return utils.getUniqueString();\n },\n },\n\n /**\n * Determines whether the button should have active styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should have danger styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n danger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should be disabled\n * default is false.\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the button is a circle or not.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n circle: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Aria label for the button. If empty, it takes its value from the default slot.\n */\n ariaLabel: {\n type: String,\n default: null,\n validator: (label) => {\n return label || this.$slots.default;\n },\n },\n\n /**\n * Additional class name for the button wrapper element.\n */\n buttonClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the button text.\n */\n textClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /*\n * Width size. Valid values are: 'xl', 'lg', 'md' and 'sm'.\n */\n buttonWidthSize: {\n type: String,\n default: 'xl',\n validator: size => CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(size),\n },\n\n /**\n * The fill and outline of the button associated with its visual importance.\n * @values clear, outlined, primary\n */\n importance: {\n type: String,\n default: '',\n },\n\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n callbarButtonClass () {\n return [\n this.buttonClass,\n 'dt-recipe-callbar-button',\n 'd-px0',\n {\n 'dt-recipe-callbar-button--circle': this.circle,\n 'dt-recipe-callbar-button--active': this.active,\n 'dt-recipe-callbar-button--danger': this.danger,\n 'd-btn--disabled d-bgc-transparent': this.disabled,\n 'd-fc-primary': !this.disabled,\n }];\n },\n\n callbarButtonTextClass () {\n return [\n 'd-fs-100 lg:d-d-none md:d-d-none sm:d-d-none',\n this.textClass,\n ];\n },\n\n buttonWidth () {\n switch (this.buttonWidthSize) {\n case 'sm':\n return '4.5rem';\n case 'md':\n return '6rem';\n default:\n return '8.4rem';\n }\n },\n\n buttonImportance () {\n if (this.importance) {\n return this.importance;\n }\n return this.circle ? 'outlined' : 'clear';\n },\n\n callbarButtonListeners () {\n return {\n ...this.$listeners,\n click: (event) => this.$emit('click', event),\n };\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n.dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle) {\n line-height: var(--dt-font-line-height-300);\n}\n\n.dt-recipe-callbar-button--circle {\n border-radius: var(--dt-size-radius-circle);\n}\n\n.dt-recipe-callbar-button.d-btn[disabled] {\n background-color: unset;\n opacity: .5;\n}\n\n.dt-recipe-callbar-button--circle.d-btn[disabled] {\n border-color: unset;\n}\n\n.dt-recipe-callbar-button--active,\n.dt-recipe-callbar-button--active:hover {\n .base-button__icon {\n color: var(--primary-color);\n }\n}\n\n.dt-recipe-callbar-button--disabled {\n cursor: not-allowed;\n}\n</style>\n"],"names":["this"],"mappings":"
|
|
1
|
+
{"version":3,"file":"callbar-button.js","sources":["../../recipes/buttons/callbar_button/callbar_button_constants.js","../../recipes/buttons/callbar_button/callbar_button.vue"],"sourcesContent":["export const CALLBAR_BUTTON_VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];\n\nexport default {\n CALLBAR_BUTTON_VALID_WIDTH_SIZE,\n};\n","<template>\n <dt-tooltip\n :id=\"id\"\n :offset=\"[0, 8]\"\n >\n <template #anchor>\n <span\n :class=\"{ 'dt-recipe-callbar-button--disabled': disabled }\"\n >\n <dt-button\n :importance=\"buttonImportance\"\n kind=\"muted\"\n icon-position=\"top\"\n :aria-disabled=\"disabled\"\n :aria-label=\"ariaLabel\"\n :label-class=\"callbarButtonTextClass\"\n :width=\"buttonWidth\"\n :class=\"callbarButtonClass\"\n v-bind=\"$attrs\"\n v-on=\"callbarButtonListeners\"\n >\n <slot />\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </dt-button>\n </span>\n </template>\n <slot name=\"tooltip\" />\n </dt-tooltip>\n</template>\n\n<script>\nimport { CALLBAR_BUTTON_VALID_WIDTH_SIZE } from './callbar_button_constants';\nimport { DtButton } from '@/components/button';\nimport { DtTooltip } from '@/components/tooltip';\nimport utils from '@/common/utils';\n\nexport default {\n name: 'DtRecipeCallbarButton',\n\n components: { DtButton, DtTooltip },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () {\n return utils.getUniqueString();\n },\n },\n\n /**\n * Determines whether the button should have active styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should have danger styling\n * default is false.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n danger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines whether the button should be disabled\n * default is false.\n * @values true, false\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the button is a circle or not.\n * @values true, false\n * @see https://dialtone.dialpad.com/components/button/\n */\n circle: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Aria label for the button. If empty, it takes its value from the default slot.\n */\n ariaLabel: {\n type: String,\n default: null,\n validator: (label) => {\n return label || this.$slots.default;\n },\n },\n\n /**\n * Additional class name for the button wrapper element.\n */\n buttonClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the button text.\n */\n textClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /*\n * Width size. Valid values are: 'xl', 'lg', 'md' and 'sm'.\n */\n buttonWidthSize: {\n type: String,\n default: 'xl',\n validator: size => CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(size),\n },\n\n /**\n * The fill and outline of the button associated with its visual importance.\n * @values clear, outlined, primary\n */\n importance: {\n type: String,\n default: '',\n },\n\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n callbarButtonClass () {\n return [\n this.buttonClass,\n 'dt-recipe-callbar-button',\n 'd-px0',\n {\n 'dt-recipe-callbar-button--circle': this.circle,\n 'dt-recipe-callbar-button--active': this.active,\n 'dt-recipe-callbar-button--danger': this.danger,\n 'd-btn--disabled d-bgc-transparent': this.disabled,\n 'd-fc-primary': !this.disabled,\n }];\n },\n\n callbarButtonTextClass () {\n return [\n 'd-fs-100 lg:d-d-none md:d-d-none sm:d-d-none',\n this.textClass,\n ];\n },\n\n buttonWidth () {\n switch (this.buttonWidthSize) {\n case 'sm':\n return '4.5rem';\n case 'md':\n return '6rem';\n default:\n return '8.4rem';\n }\n },\n\n buttonImportance () {\n if (this.importance) {\n return this.importance;\n }\n return this.circle ? 'outlined' : 'clear';\n },\n\n callbarButtonListeners () {\n return {\n ...this.$listeners,\n click: (event) => this.$emit('click', event),\n };\n },\n },\n};\n</script>\n\n<style lang=\"less\">\n.dt-recipe-callbar-button:not(.dt-recipe-callbar-button--circle) {\n line-height: var(--dt-font-line-height-300);\n}\n\n.dt-recipe-callbar-button--circle {\n border-radius: var(--dt-size-radius-circle);\n}\n\n.dt-recipe-callbar-button.d-btn[disabled] {\n background-color: unset;\n opacity: .5;\n}\n\n.dt-recipe-callbar-button--circle.d-btn[disabled] {\n border-color: unset;\n}\n\n.dt-recipe-callbar-button--active,\n.dt-recipe-callbar-button--active:hover {\n .base-button__icon {\n color: var(--primary-color);\n }\n}\n\n.dt-recipe-callbar-button--disabled {\n cursor: not-allowed;\n}\n</style>\n"],"names":["this"],"mappings":";;;;;;;;;AAAY,MAAC,kCAAkC,CAAC,MAAM,MAAM,MAAM,IAAI;ACsCtE,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA,EAAA,UAAA,UAAA;AAAA,EAEA,cAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AACA,eAAA,MAAA;MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,UAAA;AACA,eAAA,SAAAA,SAAA,OAAA;AAAA,MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,iBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,UAAA,gCAAA,SAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EAEA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,qBAAA;AACA,aAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,oCAAA,KAAA;AAAA,UACA,qCAAA,KAAA;AAAA,UACA,gBAAA,CAAA,KAAA;AAAA,QACA;AAAA,MAAA;AAAA,IACA;AAAA,IAEA,yBAAA;AACA,aAAA;AAAA,QACA;AAAA,QACA,KAAA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,cAAA;AACA,cAAA,KAAA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA,KAAA;AACA,iBAAA;AAAA,QACA;AACA,iBAAA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,mBAAA;AACA,UAAA,KAAA,YAAA;AACA,eAAA,KAAA;AAAA,MACA;AACA,aAAA,KAAA,SAAA,aAAA;AAAA,IACA;AAAA,IAEA,yBAAA;AACA,aAAA;AAAA,QACA,GAAA,KAAA;AAAA,QACA,OAAA,CAAA,UAAA,KAAA,MAAA,SAAA,KAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@ const lib_input = require("./input.cjs");
|
|
|
5
5
|
const lib_chip = require("./chip.cjs");
|
|
6
6
|
const lib_validationMessages = require("./validation-messages.cjs");
|
|
7
7
|
const common_validators = require("../common/validators.cjs");
|
|
8
|
-
const popover_constants = require("../chunks/popover_constants-
|
|
8
|
+
const popover_constants = require("../chunks/popover_constants-qUYTzsS3.js");
|
|
9
9
|
const sr_only_close_button = require("../chunks/sr_only_close_button-ZaGdAHz7.js");
|
|
10
10
|
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
11
11
|
require("../chunks/index-gj1jEXP4.js");
|
|
@@ -3,7 +3,7 @@ import { DtInput } from "./input.js";
|
|
|
3
3
|
import { DtChip } from "./chip.js";
|
|
4
4
|
import { DtValidationMessages } from "./validation-messages.js";
|
|
5
5
|
import { validationMessageValidator } from "../common/validators.js";
|
|
6
|
-
import { POPOVER_APPEND_TO_VALUES } from "../chunks/popover_constants-
|
|
6
|
+
import { POPOVER_APPEND_TO_VALUES } from "../chunks/popover_constants-kQaX7G4a.js";
|
|
7
7
|
import { SrOnlyCloseButtonMixin } from "../chunks/sr_only_close_button-81bHIpPu.js";
|
|
8
8
|
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
9
9
|
import "../chunks/index-eJ-WWRdf.js";
|
|
@@ -6,7 +6,7 @@ const sr_only_close_button = require("../chunks/sr_only_close_button-ZaGdAHz7.js
|
|
|
6
6
|
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
7
7
|
const lib_popover = require("./popover.cjs");
|
|
8
8
|
const dropdown_constants = require("../chunks/dropdown_constants-2pGCXy7m.js");
|
|
9
|
-
const popover_constants = require("../chunks/popover_constants-
|
|
9
|
+
const popover_constants = require("../chunks/popover_constants-qUYTzsS3.js");
|
|
10
10
|
require("../chunks/keyboard_list_navigation-fJnl_Iox.js");
|
|
11
11
|
require("./list-item.cjs");
|
|
12
12
|
require("../chunks/list_item_constants-EiqkqZvP.js");
|
|
@@ -4,7 +4,7 @@ import { SrOnlyCloseButtonMixin } from "../chunks/sr_only_close_button-81bHIpPu.
|
|
|
4
4
|
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
5
5
|
import { DtPopover } from "./popover.js";
|
|
6
6
|
import { DROPDOWN_PADDING_CLASSES } from "../chunks/dropdown_constants-w1MXGC3Z.js";
|
|
7
|
-
import { POPOVER_CONTENT_WIDTHS, POPOVER_APPEND_TO_VALUES } from "../chunks/popover_constants-
|
|
7
|
+
import { POPOVER_CONTENT_WIDTHS, POPOVER_APPEND_TO_VALUES } from "../chunks/popover_constants-kQaX7G4a.js";
|
|
8
8
|
import "../chunks/keyboard_list_navigation-ScXhrxya.js";
|
|
9
9
|
import "./list-item.js";
|
|
10
10
|
import "../chunks/list_item_constants-u1xcN9Dd.js";
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const DtIconHeadphones = require("@dialpad/dialtone-icons/vue2/headphones");
|
|
4
|
+
const DtIconChevronDown = require("@dialpad/dialtone-icons/vue2/chevron-down");
|
|
5
|
+
const lib_emojiTextWrapper = require("./emoji-text-wrapper.cjs");
|
|
6
|
+
const common_utils = require("../common/utils.cjs");
|
|
7
|
+
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
8
|
+
const lib_button = require("./button.cjs");
|
|
9
|
+
const lib_badge = require("./badge.cjs");
|
|
10
|
+
require("../common/emoji.cjs");
|
|
11
|
+
require("emoji-regex");
|
|
12
|
+
require("emoji-toolkit/emoji_strategy.json");
|
|
13
|
+
require("../chunks/icon_constants-QYpmdE0R.js");
|
|
14
|
+
require("@dialpad/dialtone-icons/icons.json");
|
|
15
|
+
require("./emoji.cjs");
|
|
16
|
+
require("./skeleton.cjs");
|
|
17
|
+
require("../common/constants.cjs");
|
|
18
|
+
require("vue");
|
|
19
|
+
require("../chunks/link_constants-Huj7D_hm.js");
|
|
20
|
+
require("./icon.cjs");
|
|
21
|
+
require("@dialpad/dialtone-icons/vue2");
|
|
22
|
+
const _sfc_main = {
|
|
23
|
+
name: "DtRecipeGeneralRow",
|
|
24
|
+
components: {
|
|
25
|
+
DtButton: lib_button.DtButton,
|
|
26
|
+
DtBadge: lib_badge.DtBadge,
|
|
27
|
+
DtEmojiTextWrapper: lib_emojiTextWrapper.DtEmojiTextWrapper,
|
|
28
|
+
DtIconHeadphones,
|
|
29
|
+
DtIconChevronDown
|
|
30
|
+
},
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
props: {
|
|
33
|
+
/**
|
|
34
|
+
* Will be read out by a screen reader upon focus of this row. If not defined "description" will be read.
|
|
35
|
+
*/
|
|
36
|
+
ariaLabel: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Text displayed next to the icon. Required.
|
|
42
|
+
*/
|
|
43
|
+
description: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: true
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Determines if the row is selected
|
|
49
|
+
*/
|
|
50
|
+
selected: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Number of unread messages
|
|
56
|
+
*/
|
|
57
|
+
unreadCount: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 0
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* Aria label for the menu button.
|
|
63
|
+
*/
|
|
64
|
+
menuButtonAriaLabel: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
emits: [
|
|
70
|
+
/**
|
|
71
|
+
* Native click event on the row itself
|
|
72
|
+
*
|
|
73
|
+
* @event click
|
|
74
|
+
* @type {PointerEvent | KeyboardEvent}
|
|
75
|
+
*/
|
|
76
|
+
"click",
|
|
77
|
+
/**
|
|
78
|
+
* Menu button clicked
|
|
79
|
+
*
|
|
80
|
+
* @event call
|
|
81
|
+
* @type {PointerEvent | KeyboardEvent}
|
|
82
|
+
*/
|
|
83
|
+
"click-menu"
|
|
84
|
+
],
|
|
85
|
+
data() {
|
|
86
|
+
return {
|
|
87
|
+
labelWidth: "auto"
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
leftbarContactCentersRowClasses() {
|
|
92
|
+
return [
|
|
93
|
+
"dt-leftbar-row",
|
|
94
|
+
"dt-leftbar-row--contact-centers",
|
|
95
|
+
{
|
|
96
|
+
"dt-leftbar-row--unread-count": this.showUnreadCount,
|
|
97
|
+
"dt-leftbar-row--selected": this.selected
|
|
98
|
+
}
|
|
99
|
+
];
|
|
100
|
+
},
|
|
101
|
+
getAriaLabel() {
|
|
102
|
+
return this.ariaLabel ? this.ariaLabel : common_utils.safeConcatStrings([this.description, this.unreadCountTooltip]);
|
|
103
|
+
},
|
|
104
|
+
showUnreadCount() {
|
|
105
|
+
return this.unreadCount > 0;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
watch: {
|
|
109
|
+
$props: {
|
|
110
|
+
deep: true,
|
|
111
|
+
handler() {
|
|
112
|
+
this.adjustLabelWidth();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
mounted() {
|
|
117
|
+
this.resizeObserver = new ResizeObserver(this.adjustLabelWidth);
|
|
118
|
+
this.resizeObserver.observe(this.$el);
|
|
119
|
+
this.adjustLabelWidth();
|
|
120
|
+
},
|
|
121
|
+
beforeDestroy: function() {
|
|
122
|
+
this.resizeObserver.disconnect();
|
|
123
|
+
},
|
|
124
|
+
methods: {
|
|
125
|
+
adjustLabelWidth() {
|
|
126
|
+
var _a, _b, _c, _d, _e, _f;
|
|
127
|
+
const labelWidth = ((_b = (_a = this.$el) == null ? void 0 : _a.querySelector(".dt-leftbar-row__primary")) == null ? void 0 : _b.clientWidth) || 0;
|
|
128
|
+
const omegaWidth = ((_d = (_c = this.$el) == null ? void 0 : _c.querySelector(".dt-leftbar-row__omega")) == null ? void 0 : _d.clientWidth) || 0;
|
|
129
|
+
const alphaWidth = ((_f = (_e = this.$el) == null ? void 0 : _e.querySelector(".dt-leftbar-row__alpha")) == null ? void 0 : _f.clientWidth) || 0;
|
|
130
|
+
const paddings = 12;
|
|
131
|
+
this.labelWidth = labelWidth - (omegaWidth + alphaWidth + paddings) + "px";
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
var _sfc_render = function render() {
|
|
136
|
+
var _vm = this, _c = _vm._self._c;
|
|
137
|
+
return _c("div", { class: [
|
|
138
|
+
"dt-leftbar-row__container",
|
|
139
|
+
{ "dt-leftbar-row__container--off-duty": _vm.$slots.timer }
|
|
140
|
+
] }, [_c("div", { class: _vm.leftbarContactCentersRowClasses, attrs: { "data-qa": "dt-recipe-contact-centers-row" } }, [_c("a", _vm._g(_vm._b({ staticClass: "dt-leftbar-row__primary", attrs: { "data-qa": _vm.$attrs["data-qa"] ?? "dt-leftbar-row-link", "aria-label": _vm.getAriaLabel, "title": _vm.description, "href": _vm.$attrs.href ?? "javascript:void(0)" } }, "a", _vm.$attrs, false), _vm.$listeners), [_c("div", { staticClass: "dt-leftbar-row__alpha" }, [_c("dt-icon-headphones", { attrs: { "size": "300", "data-qa": "dt-leftbar-row-icon" } })], 1), _c("div", { staticClass: "dt-leftbar-row__label", style: `flex-basis: ${_vm.labelWidth}` }, [_c("dt-emoji-text-wrapper", { staticClass: "dt-leftbar-row__description", attrs: { "data-qa": "dt-leftbar-row-description", "size": "200" } }, [_vm._v(" " + _vm._s(_vm.description) + " ")])], 1)]), _c("div", { staticClass: "dt-leftbar-row__omega" }, [_vm._t("right"), _c("div", { staticClass: "dt-leftbar-row__action-container" }, [_vm.showUnreadCount ? _c("dt-badge", { staticClass: "dt-leftbar-row__unread-badge", attrs: { "data-qa": "dt-leftbar-row-unread-badge", "kind": "count", "type": "bulletin" } }, [_vm._v(" " + _vm._s(_vm.unreadCount) + " ")]) : _vm._e(), _c("dt-button", { staticClass: "dt-leftbar-row__action", attrs: { "data-qa": "dt-leftbar-row-action-button", "aria-label": _vm.menuButtonAriaLabel, "importance": "clear", "size": "xs", "circle": "" }, on: { "click": function($event) {
|
|
141
|
+
$event.stopPropagation();
|
|
142
|
+
return _vm.$emit("click-menu", $event);
|
|
143
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
144
|
+
return [_c("dt-icon-chevron-down", { attrs: { "size": "100" } })];
|
|
145
|
+
}, proxy: true }]) })], 1)], 2)]), _c("div", { staticClass: "dt-leftbar-row__bottom" }, [_vm._t("timer")], 2)]);
|
|
146
|
+
};
|
|
147
|
+
var _sfc_staticRenderFns = [];
|
|
148
|
+
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
149
|
+
_sfc_main,
|
|
150
|
+
_sfc_render,
|
|
151
|
+
_sfc_staticRenderFns,
|
|
152
|
+
false,
|
|
153
|
+
null,
|
|
154
|
+
"f44e0386",
|
|
155
|
+
null,
|
|
156
|
+
null
|
|
157
|
+
);
|
|
158
|
+
const contact_centers_row = __component__.exports;
|
|
159
|
+
exports.DtRecipeContactCentersRow = contact_centers_row;
|
|
160
|
+
//# sourceMappingURL=contact-centers-row.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-centers-row.cjs","sources":["../../recipes/leftbar/contact_centers_row/contact_centers_row.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'dt-leftbar-row__container',\n { 'dt-leftbar-row__container--off-duty': $slots.timer },\n ]\"\n >\n <div\n :class=\"leftbarContactCentersRowClasses\"\n data-qa=\"dt-recipe-contact-centers-row\"\n >\n <a\n class=\"dt-leftbar-row__primary\"\n :data-qa=\"$attrs['data-qa'] ?? 'dt-leftbar-row-link'\"\n :aria-label=\"getAriaLabel\"\n :title=\"description\"\n :href=\"$attrs.href ?? 'javascript:void(0)'\"\n v-bind=\"$attrs\"\n v-on=\"$listeners\"\n >\n <div class=\"dt-leftbar-row__alpha\">\n <dt-icon-headphones\n size=\"300\"\n data-qa=\"dt-leftbar-row-icon\"\n />\n </div>\n <div\n class=\"dt-leftbar-row__label\"\n :style=\"`flex-basis: ${labelWidth}`\"\n >\n <dt-emoji-text-wrapper\n class=\"dt-leftbar-row__description\"\n data-qa=\"dt-leftbar-row-description\"\n size=\"200\"\n >\n {{ description }}\n </dt-emoji-text-wrapper>\n </div>\n </a>\n <div class=\"dt-leftbar-row__omega\">\n <slot name=\"right\" />\n <div class=\"dt-leftbar-row__action-container\">\n <dt-badge\n v-if=\"showUnreadCount\"\n class=\"dt-leftbar-row__unread-badge\"\n data-qa=\"dt-leftbar-row-unread-badge\"\n kind=\"count\"\n type=\"bulletin\"\n >\n {{ unreadCount }}\n </dt-badge>\n <dt-button\n class=\"dt-leftbar-row__action\"\n data-qa=\"dt-leftbar-row-action-button\"\n :aria-label=\"menuButtonAriaLabel\"\n importance=\"clear\"\n size=\"xs\"\n circle\n @click.stop=\"$emit('click-menu', $event)\"\n >\n <template #icon>\n <dt-icon-chevron-down size=\"100\" />\n </template>\n </dt-button>\n </div>\n </div>\n </div>\n <div class=\"dt-leftbar-row__bottom\">\n <slot name=\"timer\" />\n </div>\n </div>\n</template>\n\n<script>\nimport { DtBadge } from '@/components/badge';\nimport { DtButton } from '@/components/button';\nimport DtIconHeadphones from '@dialpad/dialtone-icons/vue2/headphones';\nimport DtIconChevronDown from '@dialpad/dialtone-icons/vue2/chevron-down';\nimport DtEmojiTextWrapper from '@/components/emoji_text_wrapper/emoji_text_wrapper.vue';\nimport { safeConcatStrings } from '@/common/utils';\n\nexport default {\n name: 'DtRecipeGeneralRow',\n\n components: {\n DtButton,\n DtBadge,\n DtEmojiTextWrapper,\n DtIconHeadphones,\n DtIconChevronDown,\n },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Will be read out by a screen reader upon focus of this row. If not defined \"description\" will be read.\n */\n ariaLabel: {\n type: String,\n default: '',\n },\n\n /**\n * Text displayed next to the icon. Required.\n */\n description: {\n type: String,\n required: true,\n },\n\n /**\n * Determines if the row is selected\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Number of unread messages\n */\n unreadCount: {\n type: Number,\n default: 0,\n },\n\n /**\n * Aria label for the menu button.\n */\n menuButtonAriaLabel: {\n type: String,\n required: true,\n },\n },\n\n emits: [\n /**\n * Native click event on the row itself\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Menu button clicked\n *\n * @event call\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click-menu',\n ],\n\n data () {\n return {\n labelWidth: 'auto',\n };\n },\n\n computed: {\n leftbarContactCentersRowClasses () {\n return [\n 'dt-leftbar-row',\n 'dt-leftbar-row--contact-centers',\n {\n 'dt-leftbar-row--unread-count': this.showUnreadCount,\n 'dt-leftbar-row--selected': this.selected,\n },\n ];\n },\n\n getAriaLabel () {\n return this.ariaLabel\n ? this.ariaLabel\n : safeConcatStrings([this.description, this.unreadCountTooltip]);\n },\n\n showUnreadCount () {\n return this.unreadCount > 0;\n },\n },\n\n watch: {\n $props: {\n deep: true,\n handler () {\n this.adjustLabelWidth();\n },\n },\n },\n\n mounted () {\n this.resizeObserver = new ResizeObserver(this.adjustLabelWidth);\n this.resizeObserver.observe(this.$el);\n this.adjustLabelWidth();\n },\n\n beforeDestroy: function () {\n this.resizeObserver.disconnect();\n },\n\n methods: {\n adjustLabelWidth () {\n const labelWidth = this.$el?.querySelector('.dt-leftbar-row__primary')?.clientWidth || 0;\n const omegaWidth = this.$el?.querySelector('.dt-leftbar-row__omega')?.clientWidth || 0;\n const alphaWidth = this.$el?.querySelector('.dt-leftbar-row__alpha')?.clientWidth || 0;\n const paddings = 12;\n this.labelWidth = labelWidth - (omegaWidth + alphaWidth + paddings) + 'px';\n },\n },\n};\n</script>\n\n<style lang=\"less\" scoped>\n@import \"../style/leftbar_row.less\";\n</style>\n"],"names":["DtButton","DtBadge","DtEmojiTextWrapper","safeConcatStrings"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiFA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,UAAAA,WAAA;AAAA,IACA,SAAAC,UAAA;AAAA,IACA,oBAAAC,qBAAA;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,cAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,qBAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA;AAAA,EACA;AAAA,EAEA,OAAA;AACA,WAAA;AAAA,MACA,YAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,kCAAA;AACA,aAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,UACA,gCAAA,KAAA;AAAA,UACA,4BAAA,KAAA;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,eAAA;AACA,aAAA,KAAA,YACA,KAAA,YACAC,aAAA,kBAAA,CAAA,KAAA,aAAA,KAAA,kBAAA,CAAA;AAAA,IACA;AAAA,IAEA,kBAAA;AACA,aAAA,KAAA,cAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA,IACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AACA,aAAA,iBAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AACA,SAAA,iBAAA,IAAA,eAAA,KAAA,gBAAA;AACA,SAAA,eAAA,QAAA,KAAA,GAAA;AACA,SAAA,iBAAA;AAAA,EACA;AAAA,EAEA,eAAA,WAAA;AACA,SAAA,eAAA;EACA;AAAA,EAEA,SAAA;AAAA,IACA,mBAAA;;AACA,YAAA,eAAA,gBAAA,QAAA,mBAAA,cAAA,gCAAA,mBAAA,gBAAA;AACA,YAAA,eAAA,gBAAA,QAAA,mBAAA,cAAA,8BAAA,mBAAA,gBAAA;AACA,YAAA,eAAA,gBAAA,QAAA,mBAAA,cAAA,8BAAA,mBAAA,gBAAA;AACA,YAAA,WAAA;AACA,WAAA,aAAA,cAAA,aAAA,aAAA,YAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import DtIconHeadphones from "@dialpad/dialtone-icons/vue2/headphones";
|
|
2
|
+
import DtIconChevronDown from "@dialpad/dialtone-icons/vue2/chevron-down";
|
|
3
|
+
import { DtEmojiTextWrapper } from "./emoji-text-wrapper.js";
|
|
4
|
+
import { safeConcatStrings } from "../common/utils.js";
|
|
5
|
+
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
6
|
+
import { DtButton } from "./button.js";
|
|
7
|
+
import { DtBadge } from "./badge.js";
|
|
8
|
+
import "../common/emoji.js";
|
|
9
|
+
import "emoji-regex";
|
|
10
|
+
import "emoji-toolkit/emoji_strategy.json";
|
|
11
|
+
import "../chunks/icon_constants-Dy4MEUJL.js";
|
|
12
|
+
import "@dialpad/dialtone-icons/icons.json";
|
|
13
|
+
import "./emoji.js";
|
|
14
|
+
import "./skeleton.js";
|
|
15
|
+
import "../common/constants.js";
|
|
16
|
+
import "vue";
|
|
17
|
+
import "../chunks/link_constants-nWVlXQBs.js";
|
|
18
|
+
import "./icon.js";
|
|
19
|
+
import "@dialpad/dialtone-icons/vue2";
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
name: "DtRecipeGeneralRow",
|
|
22
|
+
components: {
|
|
23
|
+
DtButton,
|
|
24
|
+
DtBadge,
|
|
25
|
+
DtEmojiTextWrapper,
|
|
26
|
+
DtIconHeadphones,
|
|
27
|
+
DtIconChevronDown
|
|
28
|
+
},
|
|
29
|
+
inheritAttrs: false,
|
|
30
|
+
props: {
|
|
31
|
+
/**
|
|
32
|
+
* Will be read out by a screen reader upon focus of this row. If not defined "description" will be read.
|
|
33
|
+
*/
|
|
34
|
+
ariaLabel: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Text displayed next to the icon. Required.
|
|
40
|
+
*/
|
|
41
|
+
description: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Determines if the row is selected
|
|
47
|
+
*/
|
|
48
|
+
selected: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Number of unread messages
|
|
54
|
+
*/
|
|
55
|
+
unreadCount: {
|
|
56
|
+
type: Number,
|
|
57
|
+
default: 0
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Aria label for the menu button.
|
|
61
|
+
*/
|
|
62
|
+
menuButtonAriaLabel: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
emits: [
|
|
68
|
+
/**
|
|
69
|
+
* Native click event on the row itself
|
|
70
|
+
*
|
|
71
|
+
* @event click
|
|
72
|
+
* @type {PointerEvent | KeyboardEvent}
|
|
73
|
+
*/
|
|
74
|
+
"click",
|
|
75
|
+
/**
|
|
76
|
+
* Menu button clicked
|
|
77
|
+
*
|
|
78
|
+
* @event call
|
|
79
|
+
* @type {PointerEvent | KeyboardEvent}
|
|
80
|
+
*/
|
|
81
|
+
"click-menu"
|
|
82
|
+
],
|
|
83
|
+
data() {
|
|
84
|
+
return {
|
|
85
|
+
labelWidth: "auto"
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
computed: {
|
|
89
|
+
leftbarContactCentersRowClasses() {
|
|
90
|
+
return [
|
|
91
|
+
"dt-leftbar-row",
|
|
92
|
+
"dt-leftbar-row--contact-centers",
|
|
93
|
+
{
|
|
94
|
+
"dt-leftbar-row--unread-count": this.showUnreadCount,
|
|
95
|
+
"dt-leftbar-row--selected": this.selected
|
|
96
|
+
}
|
|
97
|
+
];
|
|
98
|
+
},
|
|
99
|
+
getAriaLabel() {
|
|
100
|
+
return this.ariaLabel ? this.ariaLabel : safeConcatStrings([this.description, this.unreadCountTooltip]);
|
|
101
|
+
},
|
|
102
|
+
showUnreadCount() {
|
|
103
|
+
return this.unreadCount > 0;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
watch: {
|
|
107
|
+
$props: {
|
|
108
|
+
deep: true,
|
|
109
|
+
handler() {
|
|
110
|
+
this.adjustLabelWidth();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
mounted() {
|
|
115
|
+
this.resizeObserver = new ResizeObserver(this.adjustLabelWidth);
|
|
116
|
+
this.resizeObserver.observe(this.$el);
|
|
117
|
+
this.adjustLabelWidth();
|
|
118
|
+
},
|
|
119
|
+
beforeDestroy: function() {
|
|
120
|
+
this.resizeObserver.disconnect();
|
|
121
|
+
},
|
|
122
|
+
methods: {
|
|
123
|
+
adjustLabelWidth() {
|
|
124
|
+
var _a, _b, _c, _d, _e, _f;
|
|
125
|
+
const labelWidth = ((_b = (_a = this.$el) == null ? void 0 : _a.querySelector(".dt-leftbar-row__primary")) == null ? void 0 : _b.clientWidth) || 0;
|
|
126
|
+
const omegaWidth = ((_d = (_c = this.$el) == null ? void 0 : _c.querySelector(".dt-leftbar-row__omega")) == null ? void 0 : _d.clientWidth) || 0;
|
|
127
|
+
const alphaWidth = ((_f = (_e = this.$el) == null ? void 0 : _e.querySelector(".dt-leftbar-row__alpha")) == null ? void 0 : _f.clientWidth) || 0;
|
|
128
|
+
const paddings = 12;
|
|
129
|
+
this.labelWidth = labelWidth - (omegaWidth + alphaWidth + paddings) + "px";
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
var _sfc_render = function render() {
|
|
134
|
+
var _vm = this, _c = _vm._self._c;
|
|
135
|
+
return _c("div", { class: [
|
|
136
|
+
"dt-leftbar-row__container",
|
|
137
|
+
{ "dt-leftbar-row__container--off-duty": _vm.$slots.timer }
|
|
138
|
+
] }, [_c("div", { class: _vm.leftbarContactCentersRowClasses, attrs: { "data-qa": "dt-recipe-contact-centers-row" } }, [_c("a", _vm._g(_vm._b({ staticClass: "dt-leftbar-row__primary", attrs: { "data-qa": _vm.$attrs["data-qa"] ?? "dt-leftbar-row-link", "aria-label": _vm.getAriaLabel, "title": _vm.description, "href": _vm.$attrs.href ?? "javascript:void(0)" } }, "a", _vm.$attrs, false), _vm.$listeners), [_c("div", { staticClass: "dt-leftbar-row__alpha" }, [_c("dt-icon-headphones", { attrs: { "size": "300", "data-qa": "dt-leftbar-row-icon" } })], 1), _c("div", { staticClass: "dt-leftbar-row__label", style: `flex-basis: ${_vm.labelWidth}` }, [_c("dt-emoji-text-wrapper", { staticClass: "dt-leftbar-row__description", attrs: { "data-qa": "dt-leftbar-row-description", "size": "200" } }, [_vm._v(" " + _vm._s(_vm.description) + " ")])], 1)]), _c("div", { staticClass: "dt-leftbar-row__omega" }, [_vm._t("right"), _c("div", { staticClass: "dt-leftbar-row__action-container" }, [_vm.showUnreadCount ? _c("dt-badge", { staticClass: "dt-leftbar-row__unread-badge", attrs: { "data-qa": "dt-leftbar-row-unread-badge", "kind": "count", "type": "bulletin" } }, [_vm._v(" " + _vm._s(_vm.unreadCount) + " ")]) : _vm._e(), _c("dt-button", { staticClass: "dt-leftbar-row__action", attrs: { "data-qa": "dt-leftbar-row-action-button", "aria-label": _vm.menuButtonAriaLabel, "importance": "clear", "size": "xs", "circle": "" }, on: { "click": function($event) {
|
|
139
|
+
$event.stopPropagation();
|
|
140
|
+
return _vm.$emit("click-menu", $event);
|
|
141
|
+
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
142
|
+
return [_c("dt-icon-chevron-down", { attrs: { "size": "100" } })];
|
|
143
|
+
}, proxy: true }]) })], 1)], 2)]), _c("div", { staticClass: "dt-leftbar-row__bottom" }, [_vm._t("timer")], 2)]);
|
|
144
|
+
};
|
|
145
|
+
var _sfc_staticRenderFns = [];
|
|
146
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
147
|
+
_sfc_main,
|
|
148
|
+
_sfc_render,
|
|
149
|
+
_sfc_staticRenderFns,
|
|
150
|
+
false,
|
|
151
|
+
null,
|
|
152
|
+
"f44e0386",
|
|
153
|
+
null,
|
|
154
|
+
null
|
|
155
|
+
);
|
|
156
|
+
const contact_centers_row = __component__.exports;
|
|
157
|
+
export {
|
|
158
|
+
contact_centers_row as DtRecipeContactCentersRow
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=contact-centers-row.js.map
|