@dialpad/dialtone 9.157.0 → 9.158.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.
Files changed (115) hide show
  1. package/dist/tokens/doc.json +74836 -74836
  2. package/dist/vue3/common/dates/index.js +4 -4
  3. package/dist/vue3/common/utils/index.js +3 -3
  4. package/dist/vue3/dialtone-vue.cjs +1 -1
  5. package/dist/vue3/dialtone-vue.js +349 -349
  6. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +1 -1
  7. package/dist/vue3/lib/avatar/avatar.js +10 -10
  8. package/dist/vue3/lib/badge/badge.js +5 -5
  9. package/dist/vue3/lib/banner/banner.js +1 -1
  10. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js +2 -2
  11. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +1 -1
  12. package/dist/vue3/lib/button/button.js +14 -14
  13. package/dist/vue3/lib/button-group/button-group.js +2 -2
  14. package/dist/vue3/lib/button-group/buttons-decorator.js +2 -2
  15. package/dist/vue3/lib/callbar-button/callbar-button.js +2 -2
  16. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  17. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +9 -9
  18. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  19. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +9 -9
  20. package/dist/vue3/lib/callbox/callbox.js +1 -1
  21. package/dist/vue3/lib/card/card.js +4 -4
  22. package/dist/vue3/lib/checkbox/checkbox.js +5 -5
  23. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js +1 -1
  24. package/dist/vue3/lib/chip/chip.js +7 -7
  25. package/dist/vue3/lib/codeblock/codeblock.js +2 -2
  26. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js +3 -3
  27. package/dist/vue3/lib/collapsible/collapsible.js +8 -8
  28. package/dist/vue3/lib/combobox/combobox-empty-list.js +2 -2
  29. package/dist/vue3/lib/combobox/combobox-loading-list.js +3 -3
  30. package/dist/vue3/lib/combobox/combobox.cjs +1 -1
  31. package/dist/vue3/lib/combobox/combobox.js +8 -8
  32. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +1 -1
  33. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  34. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +10 -10
  35. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +7 -7
  36. package/dist/vue3/lib/contact-info/contact-info.js +1 -1
  37. package/dist/vue3/lib/contact-row/contact-row.js +1 -1
  38. package/dist/vue3/lib/datepicker/datepicker.js +1 -1
  39. package/dist/vue3/lib/datepicker/utils.js +4 -4
  40. package/dist/vue3/lib/description-list/description-list.js +3 -3
  41. package/dist/vue3/lib/dropdown/dropdown-list.js +4 -4
  42. package/dist/vue3/lib/dropdown/dropdown-separator.js +2 -2
  43. package/dist/vue3/lib/dropdown/dropdown.js +2 -2
  44. package/dist/vue3/lib/editor/editor.js +9 -9
  45. package/dist/vue3/lib/emoji/emoji.js +2 -2
  46. package/dist/vue3/lib/emoji-picker/emoji-picker.js +1 -1
  47. package/dist/vue3/lib/emoji-row/emoji-row.js +6 -6
  48. package/dist/vue3/lib/empty-state/empty-state.js +7 -7
  49. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +1 -1
  50. package/dist/vue3/lib/feed-item-row/feed-item-row.js +15 -15
  51. package/dist/vue3/lib/general-row/general-row.js +13 -13
  52. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js +5 -5
  53. package/dist/vue3/lib/group-row/group-row.js +2 -2
  54. package/dist/vue3/lib/grouped-chip/grouped-chip.js +14 -14
  55. package/dist/vue3/lib/hovercard/hovercard.js +2 -2
  56. package/dist/vue3/lib/icon/icon.js +3 -3
  57. package/dist/vue3/lib/illustration/illustration.js +3 -3
  58. package/dist/vue3/lib/image-viewer/image-viewer.js +12 -12
  59. package/dist/vue3/lib/input/input.js +10 -10
  60. package/dist/vue3/lib/input-group/input-group.js +8 -8
  61. package/dist/vue3/lib/item-layout/item-layout.js +13 -13
  62. package/dist/vue3/lib/ivr-node/ivr-node.js +9 -9
  63. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js +3 -3
  64. package/dist/vue3/lib/lazy-show/lazy-show.js +2 -2
  65. package/dist/vue3/lib/link/link.js +2 -2
  66. package/dist/vue3/lib/list-item/list-item.js +3 -3
  67. package/dist/vue3/lib/list-item-group/list-item-group.js +5 -5
  68. package/dist/vue3/lib/loader/loader.js +2 -2
  69. package/dist/vue3/lib/message-input/message-input-button.js +5 -5
  70. package/dist/vue3/lib/message-input/message-input-link.js +2 -2
  71. package/dist/vue3/lib/message-input/message-input-topbar.js +2 -2
  72. package/dist/vue3/lib/message-input/message-input.js +1 -1
  73. package/dist/vue3/lib/modal/modal.js +1 -1
  74. package/dist/vue3/lib/motion-text/motion-text.js +5 -5
  75. package/dist/vue3/lib/notice/notice-action.js +1 -1
  76. package/dist/vue3/lib/notice/notice-content.js +6 -6
  77. package/dist/vue3/lib/notice/notice-icon.js +4 -4
  78. package/dist/vue3/lib/notice/notice.js +1 -1
  79. package/dist/vue3/lib/pagination/pagination.js +1 -1
  80. package/dist/vue3/lib/popover/popover-constants.js +3 -3
  81. package/dist/vue3/lib/popover/popover-header-footer.js +6 -6
  82. package/dist/vue3/lib/popover/popover.js +7 -7
  83. package/dist/vue3/lib/presence/presence.js +4 -4
  84. package/dist/vue3/lib/radio/radio.js +10 -10
  85. package/dist/vue3/lib/radio-group/radios-decorator.js +1 -1
  86. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +4 -4
  87. package/dist/vue3/lib/root-layout/root-layout.js +3 -3
  88. package/dist/vue3/lib/scroller/scroller.js +1 -1
  89. package/dist/vue3/lib/select-menu/select-menu.js +12 -12
  90. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js +3 -3
  91. package/dist/vue3/lib/skeleton/skeleton-list-item.js +2 -2
  92. package/dist/vue3/lib/skeleton/skeleton-paragraph.js +1 -1
  93. package/dist/vue3/lib/skeleton/skeleton-shape.js +2 -2
  94. package/dist/vue3/lib/skeleton/skeleton-text.js +4 -4
  95. package/dist/vue3/lib/skeleton/skeleton.js +1 -1
  96. package/dist/vue3/lib/split-button/split-button-alpha.js +2 -2
  97. package/dist/vue3/lib/split-button/split-button-omega.js +2 -2
  98. package/dist/vue3/lib/split-button/split-button.js +13 -13
  99. package/dist/vue3/lib/stack/stack.js +2 -2
  100. package/dist/vue3/lib/stack/utils.js +5 -5
  101. package/dist/vue3/lib/stack/validators.js +7 -7
  102. package/dist/vue3/lib/tab/tab-group.js +2 -2
  103. package/dist/vue3/lib/tab/tab-panel.js +2 -2
  104. package/dist/vue3/lib/tab/tab.js +2 -2
  105. package/dist/vue3/lib/time-pill/time-pill.js +2 -2
  106. package/dist/vue3/lib/toast/toast.js +1 -1
  107. package/dist/vue3/lib/toggle/toggle.js +7 -7
  108. package/dist/vue3/lib/tooltip/tooltip.js +5 -5
  109. package/dist/vue3/lib/top-banner-info/top-banner-info.js +2 -2
  110. package/dist/vue3/lib/unread-pill/unread-pill.js +1 -1
  111. package/dist/vue3/lib/validation-messages/validation-messages.js +6 -6
  112. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  113. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  114. package/dist/vue3/shared/sr_only_close_button.js +2 -2
  115. package/package.json +5 -16
@@ -1,6 +1,6 @@
1
1
  import { DtIconClose as v, DtIconArrowLeft as E, DtIconArrowRight as T } from "@dialpad/dialtone-icons/vue3";
2
2
  import { DialtoneLocalization as L } from "../../localization/index.js";
3
- import { createElementBlock as n, openBlock as i, normalizeStyle as R, createElementVNode as h, resolveComponent as s, createVNode as c, createBlock as b, createCommentVNode as C, withCtx as f, withDirectives as A, Fragment as D, renderList as x, resolveDynamicComponent as O, vShow as w } from "vue";
3
+ import { openBlock as i, createElementBlock as n, normalizeStyle as R, createElementVNode as h, resolveComponent as s, createVNode as c, createBlock as b, createCommentVNode as C, withCtx as f, Fragment as D, renderList as x, resolveDynamicComponent as O, withDirectives as A, vShow as w } from "vue";
4
4
  import { _ as p } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import I from "../button/button.js";
6
6
  import B from "../image-viewer/image-viewer.js";
@@ -1,8 +1,8 @@
1
1
  import { getRandomElement as g, hasSlotContent as o, getUniqueString as y } from "../../common/utils/index.js";
2
- import { AVATAR_GROUP_VALIDATOR as u, AVATAR_PRESENCE_STATES as m, AVATAR_RANDOM_COLORS as _, AVATAR_SIZE_MODIFIERS as d, AVATAR_ICON_SIZES as S, AVATAR_PRESENCE_SIZE_MODIFIERS as I, AVATAR_KIND_MODIFIERS as A } from "./avatar-constants.js";
2
+ import { AVATAR_PRESENCE_STATES as u, AVATAR_GROUP_VALIDATOR as m, AVATAR_SIZE_MODIFIERS as d, AVATAR_ICON_SIZES as _, AVATAR_PRESENCE_SIZE_MODIFIERS as S, AVATAR_KIND_MODIFIERS as I, AVATAR_RANDOM_COLORS as A } from "./avatar-constants.js";
3
3
  import { ICON_SIZE_MODIFIERS as p } from "../icon/icon-constants.js";
4
4
  import { extractInitialsFromName as E } from "./utils.js";
5
- import { resolveComponent as C, createBlock as h, openBlock as r, resolveDynamicComponent as O, normalizeStyle as k, normalizeClass as l, withCtx as R, createElementVNode as b, createElementBlock as s, createCommentVNode as n, renderSlot as f, toDisplayString as c, mergeProps as T } from "vue";
5
+ import { resolveComponent as C, openBlock as r, createBlock as h, resolveDynamicComponent as O, normalizeStyle as k, normalizeClass as l, withCtx as R, createElementVNode as b, createElementBlock as s, renderSlot as f, toDisplayString as c, createCommentVNode as n, mergeProps as T } from "vue";
6
6
  import { _ as D } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import N from "../presence/presence.js";
8
8
  const L = {
@@ -74,8 +74,8 @@ const L = {
74
74
  */
75
75
  presence: {
76
76
  type: String,
77
- default: m.NONE,
78
- validator: (e) => Object.values(m).includes(e)
77
+ default: u.NONE,
78
+ validator: (e) => Object.values(u).includes(e)
79
79
  },
80
80
  /**
81
81
  * A set of props to be passed into the presence component.
@@ -92,7 +92,7 @@ const L = {
92
92
  group: {
93
93
  type: Number,
94
94
  default: void 0,
95
- validator: (e) => u(e)
95
+ validator: (e) => m(e)
96
96
  },
97
97
  /**
98
98
  * The text that overlays the avatar
@@ -169,9 +169,9 @@ const L = {
169
169
  data() {
170
170
  return {
171
171
  AVATAR_SIZE_MODIFIERS: d,
172
- AVATAR_KIND_MODIFIERS: A,
173
- AVATAR_PRESENCE_SIZE_MODIFIERS: I,
174
- AVATAR_ICON_SIZES: S,
172
+ AVATAR_KIND_MODIFIERS: I,
173
+ AVATAR_PRESENCE_SIZE_MODIFIERS: S,
174
+ AVATAR_ICON_SIZES: _,
175
175
  imageLoadedSuccessfully: null,
176
176
  formattedInitials: "",
177
177
  initializing: !1,
@@ -209,7 +209,7 @@ const L = {
209
209
  ];
210
210
  },
211
211
  showGroup() {
212
- return u(this.group);
212
+ return m(this.group);
213
213
  },
214
214
  formattedGroup() {
215
215
  return this.group > 99 ? "99+" : this.group;
@@ -261,7 +261,7 @@ const L = {
261
261
  this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = e[0] : this.formattedInitials = e;
262
262
  },
263
263
  getColor() {
264
- return this.color ?? g(_, this.seed);
264
+ return this.color ?? g(A, this.seed);
265
265
  },
266
266
  _loadedImageEventHandler(e) {
267
267
  this.imageLoadedSuccessfully = !0, e.classList.remove("d-d-none");
@@ -1,6 +1,6 @@
1
1
  import { BADGE_DECORATION_MODIFIERS as l, BADGE_KIND_MODIFIERS as d, BADGE_TYPE_MODIFIERS as c } from "./badge-constants.js";
2
2
  import { hasSlotContent as u } from "../../common/utils/index.js";
3
- import { createElementBlock as o, openBlock as a, normalizeClass as h, createCommentVNode as n, createElementVNode as f, renderSlot as r, createTextVNode as b, toDisplayString as I } from "vue";
3
+ import { openBlock as o, createElementBlock as a, normalizeClass as h, createCommentVNode as n, renderSlot as r, createElementVNode as f, createTextVNode as b, toDisplayString as I } from "vue";
4
4
  import { _ } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import { ICON_SIZE_MODIFIERS as g } from "../icon/icon-constants.js";
6
6
  const p = {
@@ -119,7 +119,7 @@ const p = {
119
119
  class: "d-badge__icon-right"
120
120
  };
121
121
  function S(e, E, t, O, i, s) {
122
- return a(), o("span", {
122
+ return o(), a("span", {
123
123
  class: h([
124
124
  "d-badge",
125
125
  i.BADGE_TYPE_MODIFIERS[t.type],
@@ -130,8 +130,8 @@ function S(e, E, t, O, i, s) {
130
130
  ]),
131
131
  "data-qa": "dt-badge"
132
132
  }, [
133
- t.decoration ? (a(), o("span", y)) : n("", !0),
134
- s.hasLeftIcon ? (a(), o("span", D, [
133
+ t.decoration ? (o(), a("span", y)) : n("", !0),
134
+ s.hasLeftIcon ? (o(), a("span", D, [
135
135
  r(e.$slots, "leftIcon", { iconSize: t.iconSize })
136
136
  ])) : n("", !0),
137
137
  f("span", {
@@ -141,7 +141,7 @@ function S(e, E, t, O, i, s) {
141
141
  b(I(t.text), 1)
142
142
  ])
143
143
  ], 2),
144
- s.hasRightIcon ? (a(), o("span", m, [
144
+ s.hasRightIcon ? (o(), a("span", m, [
145
145
  r(e.$slots, "rightIcon", { iconSize: t.iconSize })
146
146
  ])) : n("", !0)
147
147
  ], 2);
@@ -1,6 +1,6 @@
1
1
  import g from "../../common/mixins/modal.js";
2
2
  import l from "../../common/utils/index.js";
3
- import { resolveComponent as r, createElementBlock as p, openBlock as s, withKeys as h, normalizeStyle as y, normalizeClass as c, createElementVNode as k, createBlock as _, createCommentVNode as C, createVNode as u, withCtx as o, renderSlot as a } from "vue";
3
+ import { resolveComponent as r, openBlock as s, createElementBlock as p, withKeys as h, normalizeStyle as y, normalizeClass as c, createElementVNode as k, createBlock as _, withCtx as o, renderSlot as a, createCommentVNode as C, createVNode as u } from "vue";
4
4
  import { _ as I } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import S from "../notice/notice-action.js";
6
6
  import B from "../notice/notice-content.js";
@@ -1,6 +1,6 @@
1
1
  import { BREADCRUMB_ITEM_SELECTED_MODIFIER as l } from "./breadcrumbs-constants.js";
2
2
  import { addClassStyleAttrs as s, removeClassStyleAttrs as i } from "../../common/utils/index.js";
3
- import { resolveComponent as o, createElementBlock as m, openBlock as c, mergeProps as a, createVNode as u, withCtx as f, renderSlot as _, createTextVNode as p, toDisplayString as C } from "vue";
3
+ import { resolveComponent as o, openBlock as m, createElementBlock as c, mergeProps as a, createVNode as u, withCtx as f, renderSlot as _, createTextVNode as p, toDisplayString as C } from "vue";
4
4
  import { _ as E } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import b from "../link/link.js";
6
6
  import { MUTED as k } from "../link/link-constants.js";
@@ -65,7 +65,7 @@ const D = {
65
65
  };
66
66
  function v(t, y, r, B, n, e) {
67
67
  const d = o("dt-link");
68
- return c(), m("li", a({
68
+ return m(), c("li", a({
69
69
  "data-qa": "dt-breadcrumb-item",
70
70
  class: [
71
71
  r.rootClass,
@@ -2,7 +2,7 @@ import { BREADCRUMBS_INVERTED_MODIFIER as u } from "./breadcrumbs-constants.js";
2
2
  import c from "./breadcrumb-item.js";
3
3
  import s from "../../common/utils/index.js";
4
4
  import { DialtoneLocalization as b } from "../../localization/index.js";
5
- import { resolveComponent as _, createElementBlock as o, openBlock as t, normalizeClass as f, createElementVNode as B, renderSlot as p, Fragment as E, renderList as D, createBlock as I, mergeProps as R } from "vue";
5
+ import { resolveComponent as _, openBlock as t, createElementBlock as o, normalizeClass as f, createElementVNode as B, renderSlot as p, Fragment as E, renderList as D, createBlock as I, mergeProps as R } from "vue";
6
6
  import { _ as v } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const g = {
8
8
  compatConfig: { MODE: 3 },
@@ -1,6 +1,6 @@
1
- import { warn as m, createElementBlock as a, openBlock as o, mergeProps as y, toHandlers as O, createCommentVNode as u, normalizeClass as c, renderSlot as f } from "vue";
1
+ import { warn as m, openBlock as a, createElementBlock as o, mergeProps as y, toHandlers as O, normalizeClass as u, renderSlot as c, createCommentVNode as f } from "vue";
2
2
  import { hasSlotContent as l } from "../../common/utils/index.js";
3
- import { BUTTON_TYPES as _, INVALID_COMBINATION as p, BUTTON_SIZE_MODIFIERS as r, BUTTON_IMPORTANCE_MODIFIERS as h, BUTTON_KIND_MODIFIERS as b, BUTTON_ICON_SIZES as k, ICON_POSITION_MODIFIERS as I } from "./button-constants.js";
3
+ import { INVALID_COMBINATION as _, BUTTON_SIZE_MODIFIERS as r, BUTTON_IMPORTANCE_MODIFIERS as h, BUTTON_KIND_MODIFIERS as b, BUTTON_ICON_SIZES as p, ICON_POSITION_MODIFIERS as I, BUTTON_TYPES as k } from "./button-constants.js";
4
4
  import { DialtoneLocalization as S } from "../../localization/index.js";
5
5
  import { _ as v } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import { getLinkKindModifier as N, LINK_KIND_MODIFIERS as B } from "../link/link-constants.js";
@@ -85,7 +85,7 @@ const g = {
85
85
  type: {
86
86
  type: String,
87
87
  default: "button",
88
- validator: (t) => _.includes(t)
88
+ validator: (t) => k.includes(t)
89
89
  },
90
90
  /**
91
91
  * Button width, accepts
@@ -191,7 +191,7 @@ const g = {
191
191
  return this.assertiveOnFocus && this.isInFocus ? "assertive" : this.$attrs.ariaLive;
192
192
  },
193
193
  iconSize() {
194
- return k[this.size];
194
+ return p[this.size];
195
195
  }
196
196
  },
197
197
  watch: {
@@ -226,7 +226,7 @@ const g = {
226
226
  isInvalidPropCombination(t, d, e) {
227
227
  if (this.kind === "unstyled")
228
228
  return !0;
229
- for (const i of p)
229
+ for (const i of _)
230
230
  if (t === i.circle && d === i.kind && e === i.importance)
231
231
  return console.warn(i.message), !1;
232
232
  return !0;
@@ -243,7 +243,7 @@ const g = {
243
243
  }
244
244
  }, C = ["type", "disabled", "aria-live", "aria-label"];
245
245
  function D(t, d, e, i, s, n) {
246
- return o(), a("button", y({
246
+ return a(), o("button", y({
247
247
  class: [
248
248
  "base-button__button",
249
249
  n.buttonClasses()
@@ -255,10 +255,10 @@ function D(t, d, e, i, s, n) {
255
255
  "aria-live": n.computedAriaLive,
256
256
  "aria-label": e.loading ? s.i18n.$t("DIALTONE_LOADING") : t.$attrs["aria-label"]
257
257
  }, O(n.buttonListeners, !0)), [
258
- n.shouldRenderIcon() ? (o(), a("span", {
258
+ n.shouldRenderIcon() ? (a(), o("span", {
259
259
  key: 0,
260
260
  "data-qa": "dt-button-icon",
261
- class: c([
261
+ class: u([
262
262
  "base-button__icon",
263
263
  {
264
264
  "d-btn__icon": e.kind !== "unstyled",
@@ -266,19 +266,19 @@ function D(t, d, e, i, s, n) {
266
266
  }
267
267
  ])
268
268
  }, [
269
- f(t.$slots, "icon", { iconSize: n.iconSize })
270
- ], 2)) : u("", !0),
271
- s.hasSlotContent(t.$slots.default) ? (o(), a("span", {
269
+ c(t.$slots, "icon", { iconSize: n.iconSize })
270
+ ], 2)) : f("", !0),
271
+ s.hasSlotContent(t.$slots.default) ? (a(), o("span", {
272
272
  key: 1,
273
273
  "data-qa": "dt-button-label",
274
- class: c([
274
+ class: u([
275
275
  "base-button__label",
276
276
  { "d-btn__label": e.kind !== "unstyled" },
277
277
  e.labelClass
278
278
  ])
279
279
  }, [
280
- f(t.$slots, "default")
281
- ], 2)) : u("", !0)
280
+ c(t.$slots, "default")
281
+ ], 2)) : f("", !0)
282
282
  ], 16, C);
283
283
  }
284
284
  const R = /* @__PURE__ */ v(g, [["render", D]]);
@@ -1,5 +1,5 @@
1
1
  import { BUTTON_GROUP_ALIGNMENT as o } from "./button-group-constants.js";
2
- import { createElementBlock as n, openBlock as a, normalizeClass as s, renderSlot as l } from "vue";
2
+ import { openBlock as n, createElementBlock as a, normalizeClass as s, renderSlot as l } from "vue";
3
3
  import { _ as p } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const c = {
5
5
  compatConfig: { MODE: 3 },
@@ -21,7 +21,7 @@ const c = {
21
21
  }
22
22
  };
23
23
  function i(t, u, e, m, r, _) {
24
- return a(), n("div", {
24
+ return n(), a("div", {
25
25
  class: s([
26
26
  "d-btn-group",
27
27
  r.BUTTON_GROUP_ALIGNMENT[e.alignment]
@@ -1,4 +1,4 @@
1
- import { resolveComponent as a, createElementBlock as m, openBlock as i, createVNode as e, withCtx as n, createTextVNode as r, toDisplayString as p } from "vue";
1
+ import { resolveComponent as a, openBlock as m, createElementBlock as i, createVNode as e, withCtx as n, createTextVNode as r, toDisplayString as p } from "vue";
2
2
  import { _ as s } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import c from "../button/button.js";
4
4
  const d = {
@@ -8,7 +8,7 @@ const d = {
8
8
  };
9
9
  function u(f, t, l, _, x, C) {
10
10
  const o = a("dt-button");
11
- return i(), m("div", null, [
11
+ return m(), i("div", null, [
12
12
  e(o, { importance: "primary" }, {
13
13
  default: n(() => [...t[0] || (t[0] = [
14
14
  r(p("Confirm"), -1)
@@ -1,6 +1,6 @@
1
1
  import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as d } from "./callbar-button-constants.js";
2
2
  import c, { addClassStyleAttrs as u, removeClassStyleAttrs as b, extractVueListeners as p } from "../../common/utils/index.js";
3
- import { resolveComponent as i, createBlock as f, openBlock as m, mergeProps as o, withCtx as l, renderSlot as r, createTextVNode as h, toDisplayString as y, createElementVNode as B, normalizeClass as C, createVNode as _, toHandlers as S } from "vue";
3
+ import { resolveComponent as i, openBlock as f, createBlock as m, mergeProps as o, withCtx as l, renderSlot as r, createTextVNode as h, toDisplayString as y, createElementVNode as B, normalizeClass as C, createVNode as _, toHandlers as S } from "vue";
4
4
  import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import T from "../tooltip/tooltip.js";
6
6
  import v from "../button/button.js";
@@ -183,7 +183,7 @@ const A = {
183
183
  };
184
184
  function D(t, x, e, w, L, a) {
185
185
  const n = i("dt-button"), s = i("dt-tooltip");
186
- return m(), f(s, o({
186
+ return f(), m(s, o({
187
187
  id: e.id,
188
188
  inverted: e.invertedTooltip
189
189
  }, a.addClassStyleAttrs(t.$attrs), {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("@dialpad/dialtone-icons/vue3"),n=require("../../common/utils/index.cjs"),p=require("../../localization/index.cjs"),t=require("vue"),b=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),w=require("../callbar-button/callbar-button-constants.cjs"),h=require("../button/button.cjs"),_=require("../dropdown/dropdown.cjs"),m=require("../callbar-button/callbar-button.cjs"),f={name:"DtRecipeCallbarButtonWithDropdown",components:{DtRecipeCallbarButton:m.default,DtDropdown:_.default,DtButton:h.default,DtIconChevronUp:u.DtIconChevronUp},inheritAttrs:!1,props:{id:{type:String,default(){return n.default.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},placement:{type:String,default:"top"},fallbackPlacements:{type:Array,default:()=>["auto"]},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>w.CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(e)},invertedTooltip:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:null},tooltipText:{type:String,default:void 0},tooltipDelay:{type:Boolean,default:void 0}},emits:["arrow-click","click","opened"],data(){return{open:!1,i18n:new p.DialtoneLocalization}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},arrowButtonLabel(){return this.i18n.$t("DIALTONE_CALLBAR_BUTTON_WITH_DROPDOWN_ARROW_BUTTON_ARIA_LABEL")}},mounted(){n.warnIfUnmounted(n.returnFirstEl(this.$el),this.$options.name)},methods:{removeClassStyleAttrs:n.removeClassStyleAttrs,addClassStyleAttrs:n.addClassStyleAttrs,arrowClick(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openDropdown},buttonClick(e){this.$props.onClick?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};function C(e,B,o,S,a,l){const r=t.resolveComponent("dt-recipe-callbar-button"),i=t.resolveComponent("dt-icon-chevron-up"),d=t.resolveComponent("dt-button"),s=t.resolveComponent("dt-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"dt-recipe--callbar-button-with-dropdown"},l.addClassStyleAttrs(e.$attrs)),[t.createVNode(r,{active:o.active,"aria-label":o.ariaLabel,"button-class":o.buttonClass,"button-width-size":o.buttonWidthSize,danger:o.danger,disabled:o.disabled,"inverted-tooltip":o.invertedTooltip,"show-tooltip":o.showTooltip,"text-class":o.textClass,"tooltip-delay":o.tooltipDelay,"tooltip-text":o.tooltipText,class:"dt-recipe--callbar-button-with-dropdown--main-button",onClick:l.buttonClick},{icon:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),tooltip:t.withCtx(()=>[t.renderSlot(e.$slots,"tooltip")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["active","aria-label","button-class","button-width-size","danger","disabled","inverted-tooltip","show-tooltip","text-class","tooltip-delay","tooltip-text","onClick"]),l.showArrowButton?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,id:o.id,"fallback-placements":o.fallbackPlacements,open:a.open,modal:!1,placement:o.placement,class:"dt-recipe--callbar-button-with-dropdown--dropdown-wrapper",padding:"none"},l.removeClassStyleAttrs(e.$attrs),{onOpened:l.onModalIsOpened}),{anchor:t.withCtx(()=>[t.createVNode(d,{active:a.open,class:t.normalizeClass(["dt-recipe--callbar-button-with-dropdown--arrow",{"dt-recipe--callbar-button-with-dropdown--arrow--large":!l.isCompactMode}]),circle:!0,importance:"clear",size:"lg","aria-label":l.arrowButtonLabel,title:l.arrowButtonLabel,width:"2rem",onClick:l.arrowClick},{icon:t.withCtx(()=>[t.createVNode(i,{class:"dt-recipe--callbar-button-with-dropdown--arrow__icon",size:"200"})]),_:1},8,["active","class","aria-label","title","onClick"])]),list:t.withCtx(({close:c})=>[t.renderSlot(e.$slots,"list",{close:c})]),_:3},16,["id","fallback-placements","open","placement","onOpened"])):t.createCommentVNode("",!0)],16)}const y=b._(f,[["render",C]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("@dialpad/dialtone-icons/vue3"),n=require("../../common/utils/index.cjs"),p=require("../../localization/index.cjs"),t=require("vue"),b=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),w=require("../button/button.cjs"),h=require("../dropdown/dropdown.cjs"),_=require("../callbar-button/callbar-button.cjs"),m=require("../callbar-button/callbar-button-constants.cjs"),f={name:"DtRecipeCallbarButtonWithDropdown",components:{DtRecipeCallbarButton:_.default,DtDropdown:h.default,DtButton:w.default,DtIconChevronUp:u.DtIconChevronUp},inheritAttrs:!1,props:{id:{type:String,default(){return n.default.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},placement:{type:String,default:"top"},fallbackPlacements:{type:Array,default:()=>["auto"]},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>m.CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(e)},invertedTooltip:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:null},tooltipText:{type:String,default:void 0},tooltipDelay:{type:Boolean,default:void 0}},emits:["arrow-click","click","opened"],data(){return{open:!1,i18n:new p.DialtoneLocalization}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},arrowButtonLabel(){return this.i18n.$t("DIALTONE_CALLBAR_BUTTON_WITH_DROPDOWN_ARROW_BUTTON_ARIA_LABEL")}},mounted(){n.warnIfUnmounted(n.returnFirstEl(this.$el),this.$options.name)},methods:{removeClassStyleAttrs:n.removeClassStyleAttrs,addClassStyleAttrs:n.addClassStyleAttrs,arrowClick(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openDropdown},buttonClick(e){this.$props.onClick?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};function C(e,B,o,S,a,l){const r=t.resolveComponent("dt-recipe-callbar-button"),i=t.resolveComponent("dt-icon-chevron-up"),d=t.resolveComponent("dt-button"),s=t.resolveComponent("dt-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"dt-recipe--callbar-button-with-dropdown"},l.addClassStyleAttrs(e.$attrs)),[t.createVNode(r,{active:o.active,"aria-label":o.ariaLabel,"button-class":o.buttonClass,"button-width-size":o.buttonWidthSize,danger:o.danger,disabled:o.disabled,"inverted-tooltip":o.invertedTooltip,"show-tooltip":o.showTooltip,"text-class":o.textClass,"tooltip-delay":o.tooltipDelay,"tooltip-text":o.tooltipText,class:"dt-recipe--callbar-button-with-dropdown--main-button",onClick:l.buttonClick},{icon:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),tooltip:t.withCtx(()=>[t.renderSlot(e.$slots,"tooltip")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["active","aria-label","button-class","button-width-size","danger","disabled","inverted-tooltip","show-tooltip","text-class","tooltip-delay","tooltip-text","onClick"]),l.showArrowButton?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,id:o.id,"fallback-placements":o.fallbackPlacements,open:a.open,modal:!1,placement:o.placement,class:"dt-recipe--callbar-button-with-dropdown--dropdown-wrapper",padding:"none"},l.removeClassStyleAttrs(e.$attrs),{onOpened:l.onModalIsOpened}),{anchor:t.withCtx(()=>[t.createVNode(d,{active:a.open,class:t.normalizeClass(["dt-recipe--callbar-button-with-dropdown--arrow",{"dt-recipe--callbar-button-with-dropdown--arrow--large":!l.isCompactMode}]),circle:!0,importance:"clear",size:"lg","aria-label":l.arrowButtonLabel,title:l.arrowButtonLabel,width:"2rem",onClick:l.arrowClick},{icon:t.withCtx(()=>[t.createVNode(i,{class:"dt-recipe--callbar-button-with-dropdown--arrow__icon",size:"200"})]),_:1},8,["active","class","aria-label","title","onClick"])]),list:t.withCtx(({close:c})=>[t.renderSlot(e.$slots,"list",{close:c})]),_:3},16,["id","fallback-placements","open","placement","onOpened"])):t.createCommentVNode("",!0)],16)}const y=b._(f,[["render",C]]);exports.default=y;
2
2
  //# sourceMappingURL=callbar-button-with-dropdown.cjs.map
@@ -1,15 +1,15 @@
1
1
  import { DtIconChevronUp as f } from "@dialpad/dialtone-icons/vue3";
2
2
  import w, { addClassStyleAttrs as h, removeClassStyleAttrs as _, warnIfUnmounted as C, returnFirstEl as y } from "../../common/utils/index.js";
3
3
  import { DialtoneLocalization as B } from "../../localization/index.js";
4
- import { resolveComponent as a, createElementBlock as k, openBlock as d, mergeProps as c, createVNode as r, createBlock as A, createCommentVNode as g, withCtx as l, renderSlot as n, normalizeClass as S } from "vue";
4
+ import { resolveComponent as a, openBlock as d, createElementBlock as k, mergeProps as c, createVNode as r, withCtx as l, renderSlot as n, createBlock as A, normalizeClass as g, createCommentVNode as S } from "vue";
5
5
  import { _ as v } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as D } from "../callbar-button/callbar-button-constants.js";
7
- import O from "../button/button.js";
8
- import T from "../dropdown/dropdown.js";
9
- import L from "../callbar-button/callbar-button.js";
6
+ import D from "../button/button.js";
7
+ import O from "../dropdown/dropdown.js";
8
+ import T from "../callbar-button/callbar-button.js";
9
+ import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as L } from "../callbar-button/callbar-button-constants.js";
10
10
  const z = {
11
11
  name: "DtRecipeCallbarButtonWithDropdown",
12
- components: { DtRecipeCallbarButton: L, DtDropdown: T, DtButton: O, DtIconChevronUp: f },
12
+ components: { DtRecipeCallbarButton: T, DtDropdown: O, DtButton: D, DtIconChevronUp: f },
13
13
  /* inheritAttrs: false is generally an option we want to set on library
14
14
  components. This allows any attributes passed in that are not recognized
15
15
  as props to be passed down to another element or component using v-bind:$attrs
@@ -129,7 +129,7 @@ const z = {
129
129
  buttonWidthSize: {
130
130
  type: String,
131
131
  default: "xl",
132
- validator: (t) => D.includes(t)
132
+ validator: (t) => L.includes(t)
133
133
  },
134
134
  /**
135
135
  * Whether the tooltip has an inverted background color.
@@ -263,7 +263,7 @@ function I(t, W, e, R, i, o) {
263
263
  anchor: l(() => [
264
264
  r(u, {
265
265
  active: i.open,
266
- class: S([
266
+ class: g([
267
267
  "dt-recipe--callbar-button-with-dropdown--arrow",
268
268
  { "dt-recipe--callbar-button-with-dropdown--arrow--large": !o.isCompactMode }
269
269
  ]),
@@ -288,7 +288,7 @@ function I(t, W, e, R, i, o) {
288
288
  n(t.$slots, "list", { close: b })
289
289
  ]),
290
290
  _: 3
291
- }, 16, ["id", "fallback-placements", "open", "placement", "onOpened"])) : g("", !0)
291
+ }, 16, ["id", "fallback-placements", "open", "placement", "onOpened"])) : S("", !0)
292
292
  ], 16);
293
293
  }
294
294
  const H = /* @__PURE__ */ v(z, [["render", I]]);
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("@dialpad/dialtone-icons/vue3"),n=require("../../common/utils/index.cjs"),u=require("../../localization/index.cjs"),t=require("vue"),p=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),h=require("../callbar-button/callbar-button-constants.cjs"),b=require("../button/button.cjs"),f=require("../popover/popover.cjs"),_=require("../callbar-button/callbar-button.cjs"),C={compatConfig:{MODE:3},name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:_.default,DtPopover:f.default,DtButton:b.default,DtIconChevronUp:d.DtIconChevronUp},inheritAttrs:!1,props:{id:{type:String,default(){return n.default.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},placement:{type:String,default:"top"},offset:{type:Array,default:()=>[0,16]},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>h.CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(e)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1},invertedTooltip:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:null},tooltipText:{type:String,default:void 0},tooltipDelay:{type:Boolean,default:void 0}},emits:["arrow-click","click","opened"],data(){return{open:!1,i18n:new u.DialtoneLocalization}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()},arrowButtonLabel(){return this.i18n.$t("DIALTONE_CALLBAR_BUTTON_WITH_POPOVER_ARROW_BUTTON_ARIA_LABEL")}},mounted(){n.warnIfUnmounted(n.returnFirstEl(this.$el),this.$options.name)},methods:{removeClassStyleAttrs:n.removeClassStyleAttrs,addClassStyleAttrs:n.addClassStyleAttrs,arrowClick(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(e){this.$props.onClick?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};function w(e,m,o,y,a,l){const r=t.resolveComponent("dt-recipe-callbar-button"),i=t.resolveComponent("dt-icon-chevron-up"),s=t.resolveComponent("dt-button"),c=t.resolveComponent("dt-popover");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"d-recipe-callbar-button-with-popover"},l.addClassStyleAttrs(e.$attrs)),[t.createVNode(r,{"aria-label":o.ariaLabel,disabled:o.disabled,active:o.active,danger:o.danger,"button-class":o.buttonClass,"button-width-size":o.buttonWidthSize,"text-class":o.textClass,"inverted-tooltip":o.invertedTooltip,"show-tooltip":o.showTooltip,"tooltip-text":o.tooltipText,"tooltip-delay":o.tooltipDelay,class:"d-recipe-callbar-button-with-popover--main-button",onClick:l.buttonClick},{icon:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),tooltip:t.withCtx(()=>[t.renderSlot(e.$slots,"tooltip")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["aria-label","disabled","active","danger","button-class","button-width-size","text-class","inverted-tooltip","show-tooltip","tooltip-text","tooltip-delay","onClick"]),l.showArrowButton?(t.openBlock(),t.createBlock(c,t.mergeProps({key:0,id:o.id,modal:!1,open:a.open,placement:o.placement,"initial-focus-element":o.initialFocusElement,"show-close-button":o.showCloseButton,offset:o.offset,padding:"none",class:"d-recipe-callbar-button-with-popover__popover-wrapper","dialog-class":["d-recipe-callbar-button-with-popover__popover",o.contentClass]},l.removeClassStyleAttrs(e.$attrs),{"open-popover":l.showPopover,onOpened:l.onModalIsOpened}),{anchor:t.withCtx(()=>[t.createVNode(s,{active:a.open,class:t.normalizeClass(["d-recipe-callbar-button-with-popover__arrow",{"d-recipe-callbar-button-with-popover__arrow--large":!l.isCompactMode}]),circle:!0,importance:"clear",size:"lg","aria-label":l.arrowButtonLabel,title:l.arrowButtonLabel,width:"2rem",onClick:l.arrowClick},{icon:t.withCtx(()=>[t.createVNode(i,{class:"d-recipe-callbar-button-with-popover__arrow-icon",size:"200"})]),_:1},8,["active","class","aria-label","title","onClick"])]),content:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),headerContent:t.withCtx(()=>[t.renderSlot(e.$slots,"headerContent")]),footerContent:t.withCtx(()=>[t.renderSlot(e.$slots,"footerContent")]),_:3},16,["id","open","placement","initial-focus-element","show-close-button","offset","dialog-class","open-popover","onOpened"])):t.createCommentVNode("",!0)],16)}const v=p._(C,[["render",w]]);exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("@dialpad/dialtone-icons/vue3"),n=require("../../common/utils/index.cjs"),u=require("../../localization/index.cjs"),t=require("vue"),p=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),h=require("../button/button.cjs"),b=require("../popover/popover.cjs"),f=require("../callbar-button/callbar-button.cjs"),_=require("../callbar-button/callbar-button-constants.cjs"),C={compatConfig:{MODE:3},name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:f.default,DtPopover:b.default,DtButton:h.default,DtIconChevronUp:d.DtIconChevronUp},inheritAttrs:!1,props:{id:{type:String,default(){return n.default.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},placement:{type:String,default:"top"},offset:{type:Array,default:()=>[0,16]},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>_.CALLBAR_BUTTON_VALID_WIDTH_SIZE.includes(e)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1},invertedTooltip:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:null},tooltipText:{type:String,default:void 0},tooltipDelay:{type:Boolean,default:void 0}},emits:["arrow-click","click","opened"],data(){return{open:!1,i18n:new u.DialtoneLocalization}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()},arrowButtonLabel(){return this.i18n.$t("DIALTONE_CALLBAR_BUTTON_WITH_POPOVER_ARROW_BUTTON_ARIA_LABEL")}},mounted(){n.warnIfUnmounted(n.returnFirstEl(this.$el),this.$options.name)},methods:{removeClassStyleAttrs:n.removeClassStyleAttrs,addClassStyleAttrs:n.addClassStyleAttrs,arrowClick(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(e){this.$props.onClick?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};function w(e,m,o,y,a,l){const r=t.resolveComponent("dt-recipe-callbar-button"),i=t.resolveComponent("dt-icon-chevron-up"),s=t.resolveComponent("dt-button"),c=t.resolveComponent("dt-popover");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"d-recipe-callbar-button-with-popover"},l.addClassStyleAttrs(e.$attrs)),[t.createVNode(r,{"aria-label":o.ariaLabel,disabled:o.disabled,active:o.active,danger:o.danger,"button-class":o.buttonClass,"button-width-size":o.buttonWidthSize,"text-class":o.textClass,"inverted-tooltip":o.invertedTooltip,"show-tooltip":o.showTooltip,"tooltip-text":o.tooltipText,"tooltip-delay":o.tooltipDelay,class:"d-recipe-callbar-button-with-popover--main-button",onClick:l.buttonClick},{icon:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),tooltip:t.withCtx(()=>[t.renderSlot(e.$slots,"tooltip")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["aria-label","disabled","active","danger","button-class","button-width-size","text-class","inverted-tooltip","show-tooltip","tooltip-text","tooltip-delay","onClick"]),l.showArrowButton?(t.openBlock(),t.createBlock(c,t.mergeProps({key:0,id:o.id,modal:!1,open:a.open,placement:o.placement,"initial-focus-element":o.initialFocusElement,"show-close-button":o.showCloseButton,offset:o.offset,padding:"none",class:"d-recipe-callbar-button-with-popover__popover-wrapper","dialog-class":["d-recipe-callbar-button-with-popover__popover",o.contentClass]},l.removeClassStyleAttrs(e.$attrs),{"open-popover":l.showPopover,onOpened:l.onModalIsOpened}),{anchor:t.withCtx(()=>[t.createVNode(s,{active:a.open,class:t.normalizeClass(["d-recipe-callbar-button-with-popover__arrow",{"d-recipe-callbar-button-with-popover__arrow--large":!l.isCompactMode}]),circle:!0,importance:"clear",size:"lg","aria-label":l.arrowButtonLabel,title:l.arrowButtonLabel,width:"2rem",onClick:l.arrowClick},{icon:t.withCtx(()=>[t.createVNode(i,{class:"d-recipe-callbar-button-with-popover__arrow-icon",size:"200"})]),_:1},8,["active","class","aria-label","title","onClick"])]),content:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),headerContent:t.withCtx(()=>[t.renderSlot(e.$slots,"headerContent")]),footerContent:t.withCtx(()=>[t.renderSlot(e.$slots,"footerContent")]),_:3},16,["id","open","placement","initial-focus-element","show-close-button","offset","dialog-class","open-popover","onOpened"])):t.createCommentVNode("",!0)],16)}const v=p._(C,[["render",w]]);exports.default=v;
2
2
  //# sourceMappingURL=callbar-button-with-popover.cjs.map
@@ -1,16 +1,16 @@
1
1
  import { DtIconChevronUp as h } from "@dialpad/dialtone-icons/vue3";
2
2
  import m, { addClassStyleAttrs as b, removeClassStyleAttrs as _, warnIfUnmounted as w, returnFirstEl as v } from "../../common/utils/index.js";
3
3
  import { DialtoneLocalization as C } from "../../localization/index.js";
4
- import { resolveComponent as a, createElementBlock as y, openBlock as s, mergeProps as c, createVNode as i, createBlock as g, createCommentVNode as B, withCtx as l, renderSlot as n, normalizeClass as S } from "vue";
4
+ import { resolveComponent as a, openBlock as s, createElementBlock as y, mergeProps as c, createVNode as i, withCtx as l, renderSlot as n, createBlock as g, normalizeClass as B, createCommentVNode as S } from "vue";
5
5
  import { _ as A } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as k } from "../callbar-button/callbar-button-constants.js";
7
- import O from "../button/button.js";
8
- import T from "../popover/popover.js";
9
- import L from "../callbar-button/callbar-button.js";
6
+ import k from "../button/button.js";
7
+ import O from "../popover/popover.js";
8
+ import T from "../callbar-button/callbar-button.js";
9
+ import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as L } from "../callbar-button/callbar-button-constants.js";
10
10
  const D = {
11
11
  compatConfig: { MODE: 3 },
12
12
  name: "DtRecipeCallbarButtonWithPopover",
13
- components: { DtRecipeCallbarButton: L, DtPopover: T, DtButton: O, DtIconChevronUp: h },
13
+ components: { DtRecipeCallbarButton: T, DtPopover: O, DtButton: k, DtIconChevronUp: h },
14
14
  /* inheritAttrs: false is generally an option we want to set on library
15
15
  components. This allows any attributes passed in that are not recognized
16
16
  as props to be passed down to another element or component using v-bind:$attrs
@@ -149,7 +149,7 @@ const D = {
149
149
  buttonWidthSize: {
150
150
  type: String,
151
151
  default: "xl",
152
- validator: (t) => k.includes(t)
152
+ validator: (t) => L.includes(t)
153
153
  },
154
154
  /**
155
155
  * Additional class name for the popover content wrapper element.
@@ -306,7 +306,7 @@ function z(t, I, e, P, r, o) {
306
306
  anchor: l(() => [
307
307
  i(u, {
308
308
  active: r.open,
309
- class: S([
309
+ class: B([
310
310
  "d-recipe-callbar-button-with-popover__arrow",
311
311
  { "d-recipe-callbar-button-with-popover__arrow--large": !o.isCompactMode }
312
312
  ]),
@@ -337,7 +337,7 @@ function z(t, I, e, P, r, o) {
337
337
  n(t.$slots, "footerContent")
338
338
  ]),
339
339
  _: 3
340
- }, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "offset", "dialog-class", "open-popover", "onOpened"])) : B("", !0)
340
+ }, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "offset", "dialog-class", "open-popover", "onOpened"])) : S("", !0)
341
341
  ], 16);
342
342
  }
343
343
  const j = /* @__PURE__ */ A(D, [["render", z]]);
@@ -2,7 +2,7 @@ import { CALLBOX_BORDER_COLORS as n, CALLBOX_BADGE_COLORS as _ } from "./callbox
2
2
  import h from "../avatar/avatar.js";
3
3
  import k from "../badge/badge.js";
4
4
  import { DtIconPause as C } from "@dialpad/dialtone-icons/vue3";
5
- import { resolveComponent as r, resolveDirective as y, createElementBlock as l, openBlock as a, normalizeStyle as x, normalizeClass as s, createCommentVNode as o, createElementVNode as d, renderSlot as i, createBlock as b, createSlots as S, withCtx as m, createVNode as u, withDirectives as O, resolveDynamicComponent as D, createTextVNode as B, toDisplayString as w } from "vue";
5
+ import { resolveComponent as r, resolveDirective as y, openBlock as a, createElementBlock as l, normalizeStyle as x, normalizeClass as s, renderSlot as i, createCommentVNode as o, createElementVNode as d, createBlock as b, createSlots as S, withCtx as m, createVNode as u, withDirectives as O, resolveDynamicComponent as D, createTextVNode as B, toDisplayString as w } from "vue";
6
6
  import { _ as q } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const A = {
8
8
  compatConfig: { MODE: 3 },
@@ -1,5 +1,5 @@
1
1
  import { hasSlotContent as d } from "../../common/utils/index.js";
2
- import { createElementBlock as r, openBlock as o, normalizeClass as a, createCommentVNode as l, createElementVNode as c, renderSlot as s, normalizeStyle as i } from "vue";
2
+ import { openBlock as r, createElementBlock as o, normalizeClass as a, renderSlot as s, createCommentVNode as l, createElementVNode as c, normalizeStyle as i } from "vue";
3
3
  import { _ as f } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const m = {
5
5
  compatConfig: { MODE: 3 },
@@ -49,14 +49,14 @@ const m = {
49
49
  }
50
50
  };
51
51
  function C(e, h, t, u, n, y) {
52
- return o(), r("div", {
52
+ return r(), o("div", {
53
53
  class: a([
54
54
  "d-card",
55
55
  t.containerClass
56
56
  ]),
57
57
  "data-qa": "dt-card"
58
58
  }, [
59
- n.hasSlotContent(e.$slots.header) ? (o(), r("div", {
59
+ n.hasSlotContent(e.$slots.header) ? (r(), o("div", {
60
60
  key: 0,
61
61
  class: a([
62
62
  "d-card__header",
@@ -74,7 +74,7 @@ function C(e, h, t, u, n, y) {
74
74
  }, [
75
75
  s(e.$slots, "content")
76
76
  ], 6),
77
- n.hasSlotContent(e.$slots.footer) ? (o(), r("div", {
77
+ n.hasSlotContent(e.$slots.footer) ? (r(), o("div", {
78
78
  key: 1,
79
79
  class: a([
80
80
  "d-card__footer",
@@ -1,7 +1,7 @@
1
1
  import { InputMixin as m, CheckableMixin as p, GroupableMixin as b, MessagesMixin as k } from "../../common/mixins/input.js";
2
2
  import { addClassStyleAttrs as f, removeClassStyleAttrs as C } from "../../common/utils/index.js";
3
3
  import { CHECKBOX_INPUT_VALIDATION_CLASSES as g } from "./checkbox-constants.js";
4
- import { resolveComponent as v, createElementBlock as l, openBlock as o, mergeProps as i, createElementVNode as n, createCommentVNode as r, normalizeClass as V, toHandlers as M, renderSlot as d, createTextVNode as c, toDisplayString as h, createVNode as y } from "vue";
4
+ import { resolveComponent as v, openBlock as l, createElementBlock as o, mergeProps as i, createElementVNode as n, normalizeClass as V, toHandlers as M, renderSlot as d, createTextVNode as c, toDisplayString as h, createCommentVNode as r, createVNode as y } from "vue";
5
5
  import { _ as S } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import $ from "../validation-messages/validation-messages.js";
7
7
  const A = {
@@ -98,7 +98,7 @@ const A = {
98
98
  };
99
99
  function N(e, a, t, w, E, s) {
100
100
  const u = v("dt-validation-messages");
101
- return o(), l("div", i({ class: e.rootClass }, s.addClassStyleAttrs(e.$attrs)), [
101
+ return l(), o("div", i({ class: e.rootClass }, s.addClassStyleAttrs(e.$attrs)), [
102
102
  n("label", {
103
103
  class: V(["d-checkbox-group", { "d-checkbox-group--disabled": e.internalDisabled }])
104
104
  }, [
@@ -112,7 +112,7 @@ function N(e, a, t, w, E, s) {
112
112
  class: ["d-checkbox", s.inputValidationClass, e.inputClass]
113
113
  }, s.removeClassStyleAttrs(e.$attrs), { ".indeterminate": e.internalIndeterminate }, M(s.inputListeners, !0)), null, 48, I)
114
114
  ]),
115
- s.hasLabel ? (o(), l("div", i({
115
+ s.hasLabel ? (l(), o("div", i({
116
116
  key: 0,
117
117
  class: [e.labelClass, "d-checkbox__copy d-checkbox__label"]
118
118
  }, e.labelChildProps, { "data-qa": "checkbox-label" }), [
@@ -121,8 +121,8 @@ function N(e, a, t, w, E, s) {
121
121
  ])
122
122
  ], 16)) : r("", !0)
123
123
  ], 2),
124
- e.$slots.description || e.description || s.hasMessages ? (o(), l("div", L, [
125
- e.$slots.description || e.description ? (o(), l("div", i({
124
+ e.$slots.description || e.description || s.hasMessages ? (l(), o("div", L, [
125
+ e.$slots.description || e.description ? (l(), o("div", i({
126
126
  key: 0,
127
127
  class: ["d-description", e.descriptionClass]
128
128
  }, e.descriptionChildProps, { "data-qa": "checkbox-description" }), [
@@ -1,4 +1,4 @@
1
- import { resolveComponent as r, createElementBlock as o, openBlock as t, Fragment as l, renderList as c, createBlock as s, withCtx as p, createElementVNode as u, toDisplayString as m } from "vue";
1
+ import { resolveComponent as r, openBlock as t, createElementBlock as o, Fragment as l, renderList as c, createBlock as s, withCtx as p, createElementVNode as u, toDisplayString as m } from "vue";
2
2
  import { _ as i } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import _ from "../checkbox/checkbox.js";
4
4
  const d = {
@@ -2,7 +2,7 @@ import { DtIconClose as C } from "@dialpad/dialtone-icons/vue3";
2
2
  import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as p, CHIP_SIZE_MODIFIERS as c, CHIP_ICON_SIZES as f } from "./chip-constants.js";
3
3
  import { hasSlotContent as y, getUniqueString as S } from "../../common/utils/index.js";
4
4
  import { DialtoneLocalization as k } from "../../localization/index.js";
5
- import { resolveComponent as r, createElementBlock as l, openBlock as a, createBlock as u, createCommentVNode as o, resolveDynamicComponent as B, mergeProps as I, toHandlers as O, withCtx as h, renderSlot as d, normalizeClass as b, createVNode as v } from "vue";
5
+ import { resolveComponent as r, openBlock as a, createElementBlock as l, createBlock as u, resolveDynamicComponent as B, mergeProps as I, toHandlers as O, withCtx as h, renderSlot as o, createCommentVNode as d, normalizeClass as b, createVNode as v } from "vue";
6
6
  import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import z from "../button/button.js";
8
8
  const D = {
@@ -180,22 +180,22 @@ function w(e, s, t, N, n, i) {
180
180
  }, O(i.chipListeners)), {
181
181
  default: h(() => [
182
182
  n.hasSlotContent(e.$slots.icon) ? (a(), l("span", L, [
183
- d(e.$slots, "icon")
183
+ o(e.$slots, "icon")
184
184
  ])) : n.hasSlotContent(e.$slots.avatar) ? (a(), l("span", T, [
185
- d(e.$slots, "avatar")
186
- ])) : o("", !0),
185
+ o(e.$slots, "avatar")
186
+ ])) : d("", !0),
187
187
  n.hasSlotContent(e.$slots.default) ? (a(), l("span", {
188
188
  key: 2,
189
189
  id: `${t.id}-content`,
190
190
  class: b(["d-chip__text", t.contentClass]),
191
191
  "data-qa": "dt-chip-label"
192
192
  }, [
193
- d(e.$slots, "default")
194
- ], 10, q)) : o("", !0)
193
+ o(e.$slots, "default")
194
+ ], 10, q)) : d("", !0)
195
195
  ]),
196
196
  _: 3
197
197
  }, 16, ["id", "aria-label", "aria-labelledby", "aria-disabled", "class", "type", "tabindex"])),
198
- t.hideClose ? o("", !0) : (a(), u(_, {
198
+ t.hideClose ? d("", !0) : (a(), u(_, {
199
199
  key: 0,
200
200
  class: b(i.chipCloseButtonClasses()),
201
201
  "data-qa": "dt-chip-close",
@@ -1,4 +1,4 @@
1
- import { createElementBlock as r, openBlock as n, createTextVNode as t, createElementVNode as c, toDisplayString as s } from "vue";
1
+ import { openBlock as r, createElementBlock as n, createTextVNode as t, createElementVNode as c, toDisplayString as s } from "vue";
2
2
  import { _ as d } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const p = {
4
4
  compatConfig: { MODE: 3 },
@@ -11,7 +11,7 @@ const p = {
11
11
  }
12
12
  }, l = { class: "d-codeblock" };
13
13
  function i(a, e, o, m, f, u) {
14
- return n(), r("pre", null, [
14
+ return r(), n("pre", null, [
15
15
  e[0] || (e[0] = t(" ", -1)),
16
16
  c("code", l, s(o.text), 1),
17
17
  e[1] || (e[1] = t(`
@@ -1,4 +1,4 @@
1
- import { createBlock as a, openBlock as n, Transition as l, mergeProps as s, withCtx as i, withDirectives as f, resolveDynamicComponent as h, normalizeProps as c, guardReactiveProps as u, renderSlot as p, createCommentVNode as d, vShow as m } from "vue";
1
+ import { openBlock as a, createBlock as n, Transition as l, mergeProps as s, withCtx as i, withDirectives as f, resolveDynamicComponent as h, normalizeProps as c, guardReactiveProps as u, renderSlot as p, createCommentVNode as d, vShow as m } from "vue";
2
2
  import { _ as v } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const y = {
4
4
  name: "DtCollapsibleLazyShow",
@@ -111,7 +111,7 @@ const y = {
111
111
  }
112
112
  };
113
113
  function E(e, g, r, _, o, t) {
114
- return n(), a(l, s({
114
+ return a(), n(l, s({
115
115
  appear: r.appear,
116
116
  "enter-active-class": "d-collapsible__enter-active",
117
117
  "leave-active-class": "d-collapsible__leave-active"
@@ -125,7 +125,7 @@ function E(e, g, r, _, o, t) {
125
125
  onAfterLeave: t.afterLeave
126
126
  }), {
127
127
  default: i(() => [
128
- f((n(), a(h(r.elementType), c(u(e.$attrs)), {
128
+ f((a(), n(h(r.elementType), c(u(e.$attrs)), {
129
129
  default: i(() => [
130
130
  o.initialized ? p(e.$slots, "default", { key: 0 }) : d("", !0)
131
131
  ]),