@dialpad/dialtone-vue 3.197.0 → 3.199.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 (106) hide show
  1. package/README.md +1 -5
  2. package/dist/component-documentation.json +1 -1
  3. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  4. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  5. package/dist/lib/combobox-multi-select/combobox-multi-select.js +100 -93
  6. package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  7. package/dist/lib/radio/radio.cjs +1 -1
  8. package/dist/lib/radio/radio.cjs.map +1 -1
  9. package/dist/lib/radio/radio.js +7 -14
  10. package/dist/lib/radio/radio.js.map +1 -1
  11. package/dist/lib/rich-text-editor/mention-suggestion.cjs +1 -1
  12. package/dist/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  13. package/dist/lib/rich-text-editor/mention-suggestion.js +12 -2
  14. package/dist/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  15. package/dist/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  16. package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  17. package/dist/lib/rich-text-editor/rich-text-editor.js +141 -98
  18. package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  19. package/dist/lib/stack/stack-constants.cjs +1 -1
  20. package/dist/lib/stack/stack-constants.cjs.map +1 -1
  21. package/dist/lib/stack/stack-constants.js +8 -8
  22. package/dist/lib/stack/stack-constants.js.map +1 -1
  23. package/dist/lib/stack/stack.cjs.map +1 -1
  24. package/dist/lib/stack/stack.js +1 -1
  25. package/dist/lib/stack/stack.js.map +1 -1
  26. package/dist/lib/stack/utils.cjs +1 -1
  27. package/dist/lib/stack/utils.cjs.map +1 -1
  28. package/dist/lib/stack/utils.js +56 -44
  29. package/dist/lib/stack/utils.js.map +1 -1
  30. package/dist/lib/tab/tab-group.cjs +1 -1
  31. package/dist/lib/tab/tab-group.cjs.map +1 -1
  32. package/dist/lib/tab/tab-group.js +1 -1
  33. package/dist/lib/tab/tab-group.js.map +1 -1
  34. package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
  35. package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
  36. package/dist/lib/tooltip-directive/tooltip.js +21 -21
  37. package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
  38. package/dist/localization/index.cjs +1 -1
  39. package/dist/localization/index.cjs.map +1 -1
  40. package/dist/localization/index.js +48 -46
  41. package/dist/localization/index.js.map +1 -1
  42. package/dist/types/common/sr_only_close_button.vue.d.ts +2 -3
  43. package/dist/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  44. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
  45. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  46. package/dist/types/components/button/button.vue.d.ts +1 -2
  47. package/dist/types/components/button/button.vue.d.ts.map +1 -1
  48. package/dist/types/components/chip/chip.vue.d.ts +2 -3
  49. package/dist/types/components/chip/chip.vue.d.ts.map +1 -1
  50. package/dist/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
  51. package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  52. package/dist/types/components/modal/modal.vue.d.ts +2 -3
  53. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  54. package/dist/types/components/notice/notice_action.vue.d.ts +2 -3
  55. package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
  56. package/dist/types/components/pagination/pagination.vue.d.ts +3 -4
  57. package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
  58. package/dist/types/components/popover/popover_header_footer.vue.d.ts +2 -3
  59. package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  60. package/dist/types/components/radio/radio.vue.d.ts +1 -2
  61. package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
  62. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +3 -1
  63. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  64. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +3 -1
  65. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
  66. package/dist/types/components/rich_text_editor/mention_suggestion.d.ts +3 -0
  67. package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  68. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +4 -3
  69. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  70. package/dist/types/components/stack/stack_constants.d.ts.map +1 -1
  71. package/dist/types/components/stack/utils.d.ts.map +1 -1
  72. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
  73. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  74. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
  75. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  76. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
  77. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  78. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
  79. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  80. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
  81. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  82. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
  83. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  84. package/dist/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts +2 -0
  85. package/dist/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts.map +1 -0
  86. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
  87. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  88. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
  89. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  90. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +2 -3
  91. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  92. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
  93. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  94. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
  95. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  96. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
  97. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  98. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
  99. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  100. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
  101. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  102. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
  103. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  104. package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
  105. package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  106. package/package.json +12 -7
@@ -1,24 +1,25 @@
1
- import { getUniqueString as m } from "../../common/utils/index.js";
2
- import { createApp as f, h as u, getCurrentInstance as v } from "vue";
3
- import T from "deep-equal";
4
- import n from "../tooltip/tooltip.js";
5
- import { TOOLTIP_DIRECTIONS as y } from "../tooltip/tooltip-constants.js";
1
+ import { getUniqueString as c } from "../../common/utils/index.js";
2
+ import { createApp as m, h as d, getCurrentInstance as f } from "vue";
3
+ import v from "deep-equal";
4
+ import u from "../tooltip/tooltip.js";
5
+ import { TOOLTIP_DIRECTIONS as T } from "../tooltip/tooltip-constants.js";
6
6
  const I = {
7
7
  name: "dt-tooltip-directive",
8
- install(c) {
8
+ install(n) {
9
9
  let a;
10
10
  const r = document.createElement("div");
11
11
  document.body.appendChild(r);
12
- const s = "top", d = f({
12
+ const p = "top";
13
+ m({
13
14
  name: "DtTooltipDirectiveApp",
14
- components: { DtTooltip: n },
15
+ components: { DtTooltip: u },
15
16
  data() {
16
17
  return {
17
18
  tooltips: []
18
19
  };
19
20
  },
20
21
  created() {
21
- a = v();
22
+ a = f();
22
23
  },
23
24
  methods: {
24
25
  addOrUpdateTooltip(e, t) {
@@ -30,9 +31,9 @@ const I = {
30
31
  }
31
32
  },
32
33
  render() {
33
- return u(
34
+ return d(
34
35
  "div",
35
- this.tooltips.map(({ id: e, ...t }) => u(n, {
36
+ this.tooltips.map(({ id: e, ...t }) => d(u, {
36
37
  key: e,
37
38
  ...t,
38
39
  sticky: t.sticky !== void 0 ? t.sticky : !0,
@@ -44,34 +45,33 @@ const I = {
44
45
  }))
45
46
  );
46
47
  }
47
- });
48
- d.mount(r), c.directive("dt-tooltip", {
48
+ }).mount(r), n.directive("dt-tooltip", {
49
49
  beforeMount(e, t) {
50
- p(e, t);
50
+ s(e, t);
51
51
  },
52
52
  updated(e, t) {
53
- T(t.value, t.oldValue) || p(e, t);
53
+ v(t.value, t.oldValue) || s(e, t);
54
54
  },
55
55
  unmounted(e) {
56
56
  a.ctx.removeTooltip(e.getAttribute("data-dt-tooltip-id"));
57
57
  }
58
58
  });
59
- function p(e, t) {
59
+ function s(e, t) {
60
60
  if (t.value === null || t.value === void 0) {
61
61
  const l = e.getAttribute("data-dt-tooltip-id");
62
- l && d.removeTooltip(l);
62
+ l && a.ctx.removeTooltip(l);
63
63
  return;
64
64
  }
65
- const i = e.getAttribute("data-dt-tooltip-id") || m();
65
+ const i = e.getAttribute("data-dt-tooltip-id") || c();
66
66
  let o;
67
67
  if (typeof t.value == "string")
68
68
  o = {
69
69
  message: t.value,
70
- placement: t.arg || s
70
+ placement: t.arg || p
71
71
  };
72
72
  else if (typeof t.value == "object" && t.value !== null)
73
73
  o = {
74
- placement: t.arg || t.value.placement || s,
74
+ placement: t.arg || t.value.placement || p,
75
75
  ...t.value
76
76
  };
77
77
  else {
@@ -90,7 +90,7 @@ const I = {
90
90
  o.transition = !1;
91
91
  break;
92
92
  default:
93
- y.includes(l) && (o.placement = l);
93
+ T.includes(l) && (o.placement = l);
94
94
  break;
95
95
  }
96
96
  }), e.setAttribute("data-dt-tooltip-id", i), a.ctx.addOrUpdateTooltip(i, o);
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../directives/tooltip_directive/tooltip.js"],"sourcesContent":["import { DtTooltip, TOOLTIP_DIRECTIONS } from '@/components/tooltip';\nimport { getUniqueString } from '@/common/utils';\nimport { createApp, getCurrentInstance, h } from 'vue';\nimport deepEqual from 'deep-equal';\n\nexport const DtTooltipDirective = {\n name: 'dt-tooltip-directive',\n install (app) {\n let tooltipInstance;\n const mountPoint = document.createElement('div');\n document.body.appendChild(mountPoint);\n\n const DEFAULT_PLACEMENT = 'top';\n const DtTooltipDirectiveApp = createApp({\n name: 'DtTooltipDirectiveApp',\n components: { DtTooltip },\n data () {\n return {\n tooltips: [],\n };\n },\n\n created () {\n tooltipInstance = getCurrentInstance();\n },\n\n methods: {\n addOrUpdateTooltip (id, tooltipConfig) {\n const index = this.tooltips.findIndex(tooltip => tooltip.id === id);\n if (index !== -1) {\n // Update existing tooltip\n this.tooltips.splice(index, 1, { id, ...tooltipConfig });\n } else {\n // Add new tooltip\n this.tooltips.push({ id, ...tooltipConfig });\n }\n },\n\n removeTooltip (id) {\n this.tooltips = this.tooltips.filter(tooltip => tooltip.id !== id);\n },\n },\n\n render () {\n return h('div',\n this.tooltips.map(({ id, ...tooltipProps }) => {\n return h(DtTooltip, {\n key: id,\n ...tooltipProps,\n sticky: tooltipProps.sticky !== undefined ? tooltipProps.sticky : true,\n /**\n * Set the delay to false when running tests only.\n */\n delay: tooltipProps.delay !== undefined ? tooltipProps.delay : (process.env.NODE_ENV !== 'test'),\n externalAnchor: `[data-dt-tooltip-id=\"${id}\"]`,\n });\n }),\n );\n },\n });\n\n DtTooltipDirectiveApp.mount(mountPoint);\n\n app.directive('dt-tooltip', {\n beforeMount (anchor, binding) {\n // Initial tooltip setup\n setupTooltip(anchor, binding);\n },\n updated (anchor, binding) {\n // Update tooltip on binding value change\n // Use deep equality check to prevent infinite loops when objects are passed\n if (!deepEqual(binding.value, binding.oldValue)) {\n setupTooltip(anchor, binding);\n }\n },\n unmounted (anchor) {\n tooltipInstance.ctx.removeTooltip(anchor.getAttribute('data-dt-tooltip-id'));\n },\n });\n\n function setupTooltip (anchor, binding) {\n if (binding.value === null || binding.value === undefined) {\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id');\n if (tooltipId) {\n DtTooltipDirectiveApp.removeTooltip(tooltipId);\n }\n return;\n }\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id') || getUniqueString();\n\n let tooltipConfig;\n if (typeof binding.value === 'string') {\n tooltipConfig = {\n message: binding.value,\n placement: binding.arg || DEFAULT_PLACEMENT,\n };\n } else if (typeof binding.value === 'object' && binding.value !== null) {\n tooltipConfig = {\n placement: binding.arg || binding.value.placement || DEFAULT_PLACEMENT,\n ...binding.value,\n };\n } else {\n console.error('DtTooltipDirective: binding value must be string, object, null or undefined');\n return;\n }\n\n Object.keys(binding.modifiers).forEach(modifier => {\n switch (modifier) {\n case 'inverted':\n tooltipConfig.inverted = true;\n break;\n case 'no-delay':\n tooltipConfig.delay = false;\n break;\n case 'no-transition':\n tooltipConfig.transition = false;\n break;\n default:\n if (TOOLTIP_DIRECTIONS.includes(modifier)) {\n tooltipConfig.placement = modifier;\n }\n break;\n }\n });\n\n anchor.setAttribute('data-dt-tooltip-id', tooltipId);\n tooltipInstance.ctx.addOrUpdateTooltip(tooltipId, tooltipConfig);\n }\n },\n};\n\nexport default DtTooltipDirective;\n"],"names":["DtTooltipDirective","app","tooltipInstance","mountPoint","DEFAULT_PLACEMENT","DtTooltipDirectiveApp","createApp","DtTooltip","getCurrentInstance","id","tooltipConfig","index","tooltip","h","tooltipProps","anchor","binding","setupTooltip","deepEqual","tooltipId","getUniqueString","modifier","TOOLTIP_DIRECTIONS"],"mappings":";;;;;AAKY,MAACA,IAAqB;AAAA,EAChC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,QAAIC;AACJ,UAAMC,IAAa,SAAS,cAAc,KAAK;AAC/C,aAAS,KAAK,YAAYA,CAAU;AAEpC,UAAMC,IAAoB,OACpBC,IAAwBC,EAAU;AAAA,MACtC,MAAM;AAAA,MACN,YAAY,EAAE,WAAAC,EAAS;AAAA,MACvB,OAAQ;AACN,eAAO;AAAA,UACL,UAAU,CAAA;AAAA,QACpB;AAAA,MACM;AAAA,MAEA,UAAW;AACT,QAAAL,IAAkBM,EAAkB;AAAA,MACtC;AAAA,MAEA,SAAS;AAAA,QACP,mBAAoBC,GAAIC,GAAe;AACrC,gBAAMC,IAAQ,KAAK,SAAS,UAAU,CAAAC,MAAWA,EAAQ,OAAOH,CAAE;AAClE,UAAIE,MAAU,KAEZ,KAAK,SAAS,OAAOA,GAAO,GAAG,EAAE,IAAAF,GAAI,GAAGC,GAAe,IAGvD,KAAK,SAAS,KAAK,EAAE,IAAAD,GAAI,GAAGC,EAAa,CAAE;AAAA,QAE/C;AAAA,QAEA,cAAeD,GAAI;AACjB,eAAK,WAAW,KAAK,SAAS,OAAO,CAAAG,MAAWA,EAAQ,OAAOH,CAAE;AAAA,Q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AN,IAAgB;AAAA,UACd,WAAWM,EAAQ,OAAOA,EAAQ,MAAM,aAAaZ;AAAA,UACrD,GAAGY,EAAQ;AAAA,QACrB;AAAA,WACa;AACL,gBAAQ,MAAM,6EAA6E;AAC3F;AAAA,MACF;AAEA,aAAO,KAAKA,EAAQ,SAAS,EAAE,QAAQ,CAAAK,MAAY;AACjD,gBAAQA,GAAQ;AAAA,UACd,KAAK;AACH,YAAAX,EAAc,WAAW;AACzB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,QAAQ;AACtB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,aAAa;AAC3B;AAAA,UACF;AACE,YAAIY,EAAmB,SAASD,CAAQ,MACtCX,EAAc,YAAYW;AAE5B;AAAA,QACZ;AAAA,MACM,CAAC,GAEDN,EAAO,aAAa,sBAAsBI,CAAS,GACnDjB,EAAgB,IAAI,mBAAmBiB,GAAWT,CAAa;AAAA,IACjE;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"tooltip.js","sources":["../../../directives/tooltip_directive/tooltip.js"],"sourcesContent":["import { DtTooltip, TOOLTIP_DIRECTIONS } from '@/components/tooltip';\nimport { getUniqueString } from '@/common/utils';\nimport { createApp, getCurrentInstance, h } from 'vue';\nimport deepEqual from 'deep-equal';\n\nexport const DtTooltipDirective = {\n name: 'dt-tooltip-directive',\n install (app) {\n let tooltipInstance;\n const mountPoint = document.createElement('div');\n document.body.appendChild(mountPoint);\n\n const DEFAULT_PLACEMENT = 'top';\n const DtTooltipDirectiveApp = createApp({\n name: 'DtTooltipDirectiveApp',\n components: { DtTooltip },\n data () {\n return {\n tooltips: [],\n };\n },\n\n created () {\n tooltipInstance = getCurrentInstance();\n },\n\n methods: {\n addOrUpdateTooltip (id, tooltipConfig) {\n const index = this.tooltips.findIndex(tooltip => tooltip.id === id);\n if (index !== -1) {\n // Update existing tooltip\n this.tooltips.splice(index, 1, { id, ...tooltipConfig });\n } else {\n // Add new tooltip\n this.tooltips.push({ id, ...tooltipConfig });\n }\n },\n\n removeTooltip (id) {\n this.tooltips = this.tooltips.filter(tooltip => tooltip.id !== id);\n },\n },\n\n render () {\n return h('div',\n this.tooltips.map(({ id, ...tooltipProps }) => {\n return h(DtTooltip, {\n key: id,\n ...tooltipProps,\n sticky: tooltipProps.sticky !== undefined ? tooltipProps.sticky : true,\n /**\n * Set the delay to false when running tests only.\n */\n delay: tooltipProps.delay !== undefined ? tooltipProps.delay : (process.env.NODE_ENV !== 'test'),\n externalAnchor: `[data-dt-tooltip-id=\"${id}\"]`,\n });\n }),\n );\n },\n });\n\n DtTooltipDirectiveApp.mount(mountPoint);\n\n app.directive('dt-tooltip', {\n beforeMount (anchor, binding) {\n // Initial tooltip setup\n setupTooltip(anchor, binding);\n },\n updated (anchor, binding) {\n // Update tooltip on binding value change\n // Use deep equality check to prevent infinite loops when objects are passed\n if (!deepEqual(binding.value, binding.oldValue)) {\n setupTooltip(anchor, binding);\n }\n },\n unmounted (anchor) {\n tooltipInstance.ctx.removeTooltip(anchor.getAttribute('data-dt-tooltip-id'));\n },\n });\n\n function setupTooltip (anchor, binding) {\n if (binding.value === null || binding.value === undefined) {\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id');\n if (tooltipId) {\n tooltipInstance.ctx.removeTooltip(tooltipId);\n }\n return;\n }\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id') || getUniqueString();\n\n let tooltipConfig;\n if (typeof binding.value === 'string') {\n tooltipConfig = {\n message: binding.value,\n placement: binding.arg || DEFAULT_PLACEMENT,\n };\n } else if (typeof binding.value === 'object' && binding.value !== null) {\n tooltipConfig = {\n placement: binding.arg || binding.value.placement || DEFAULT_PLACEMENT,\n ...binding.value,\n };\n } else {\n console.error('DtTooltipDirective: binding value must be string, object, null or undefined');\n return;\n }\n\n Object.keys(binding.modifiers).forEach(modifier => {\n switch (modifier) {\n case 'inverted':\n tooltipConfig.inverted = true;\n break;\n case 'no-delay':\n tooltipConfig.delay = false;\n break;\n case 'no-transition':\n tooltipConfig.transition = false;\n break;\n default:\n if (TOOLTIP_DIRECTIONS.includes(modifier)) {\n tooltipConfig.placement = modifier;\n }\n break;\n }\n });\n\n anchor.setAttribute('data-dt-tooltip-id', tooltipId);\n tooltipInstance.ctx.addOrUpdateTooltip(tooltipId, tooltipConfig);\n }\n },\n};\n\nexport default DtTooltipDirective;\n"],"names":["DtTooltipDirective","app","tooltipInstance","mountPoint","DEFAULT_PLACEMENT","createApp","DtTooltip","getCurrentInstance","id","tooltipConfig","index","tooltip","h","tooltipProps","anchor","binding","setupTooltip","deepEqual","tooltipId","getUniqueString","modifier","TOOLTIP_DIRECTIONS"],"mappings":";;;;;AAKY,MAACA,IAAqB;AAAA,EAChC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,QAAIC;AACJ,UAAMC,IAAa,SAAS,cAAc,KAAK;AAC/C,aAAS,KAAK,YAAYA,CAAU;AAEpC,UAAMC,IAAoB;AAiD1B,IAhD8BC,EAAU;AAAA,MACtC,MAAM;AAAA,MACN,YAAY,EAAE,WAAAC,EAAS;AAAA,MACvB,OAAQ;AACN,eAAO;AAAA,UACL,UAAU,CAAA;AAAA,QACpB;AAAA,MACM;AAAA,MAEA,UAAW;AACT,QAAAJ,IAAkBK,EAAkB;AAAA,MACtC;AAAA,MAEA,SAAS;AAAA,QACP,mBAAoBC,GAAIC,GAAe;AACrC,gBAAMC,IAAQ,KAAK,SAAS,UAAU,CAAAC,MAAWA,EAAQ,OAAOH,CAAE;AAClE,UAAIE,MAAU,KAEZ,KAAK,SAAS,OAAOA,GAAO,GAAG,EAAE,IAAAF,GAAI,GAAGC,GAAe,IAGvD,KAAK,SAAS,KAAK,EAAE,IAAAD,GAAI,GAAGC,EAAa,CAAE;AAAA,QAE/C;AAAA,QAEA,cAAeD,GAAI;AACjB,eAAK,WAAW,KAAK,SAAS,OAAO,CAAAG,MAAWA,EAAQ,OAAOH,CAAE;AAAA,QACnE;AAAA,MACR;AAAA,MAEM,SAAU;AACR,eAAOI;AAAA,UAAE;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X;AAAA,UACrD,GAAGW,EAAQ;AAAA,QACrB;AAAA,WACa;AACL,gBAAQ,MAAM,6EAA6E;AAC3F;AAAA,MACF;AAEA,aAAO,KAAKA,EAAQ,SAAS,EAAE,QAAQ,CAAAK,MAAY;AACjD,gBAAQA,GAAQ;AAAA,UACd,KAAK;AACH,YAAAX,EAAc,WAAW;AACzB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,QAAQ;AACtB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,aAAa;AAC3B;AAAA,UACF;AACE,YAAIY,EAAmB,SAASD,CAAQ,MACtCX,EAAc,YAAYW;AAE5B;AAAA,QACZ;AAAA,MACM,CAAC,GAEDN,EAAO,aAAa,sBAAsBI,CAAS,GACnDhB,EAAgB,IAAI,mBAAmBgB,GAAWT,CAAa;AAAA,IACjE;AAAA,EACF;AACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@dialpad/i18n"),u=require("vue"),d=require("./en-US.cjs"),f=require("./zh-CN.cjs"),g=require("./nl-NL.cjs"),S=require("./fr-FR.cjs"),N=require("./de-DE.cjs"),p=require("./it-IT.cjs"),w=require("./ja-JP.cjs"),L=require("./pt-BR.cjs"),R=require("./ru-RU.cjs"),I=require("./es-LA.cjs"),e="dialtone",l={ENGLISH:"en-US",CHINESE:"zh-CN",DUTCH:"nl-NL",FRENCH:"fr-FR",GERMAN:"de-DE",ITALIAN:"it-IT",JAPANESE:"ja-JP",PORTUGUESE:"pt-BR",RUSSIAN:"ru-RU",SPANISH:"es-LA"},c="en-US",s="user-locale";class o{constructor(t=null){if(typeof o.instance=="object")return o.instance;const r=u.getCurrentInstance().appContext.app;this._locale=t||o.getPreferredLocale();const n=new a.RawBundleSource({resources:a.RawBundleSource.builtResources([["en-US",e,d.default],["zh-CN",e,f.default],["nl-NL",e,g.default],["fr-FR",e,S.default],["de-DE",e,N.default],["it-IT",e,p.default],["ja-JP",e,w.default],["pt-BR",e,L.default],["ru-RU",e,R.default],["es-LA",e,I.default]])});return new a.LocaleManager({bundleSource:n,allowedLocales:Object.values(l),fallbackLocale:c,preferredLocale:this._locale,namespaces:[e]}).install(r,e),o.instance=this,typeof window<"u"&&(window.onstorage=i=>{i.key===s&&(this.currentLocale=i.newValue)}),this}static getPreferredLocale(){if(typeof window>"u"||!window.localStorage)return c;const t=window.localStorage.getItem(s),r=Object.values(l).find(n=>n.startsWith(navigator.language.slice(0,2)));return t||r||c}static getAllowedLocales(){return l}$t(...t){return a.useI18N(e).$t(...t)}$ta(...t){return a.useI18N(e).$ta(...t)}get currentLocale(){return this._locale}set currentLocale(t){if(t!==this._locale){if(!Object.values(l).includes(t))throw new Error(`Locale ${t} is not allowed, please use one of the following: ${Object.values(l).join(", ")}`);this._locale=t,a.useI18N(e).setI18N({preferredLocale:t},e)}}}exports.DialtoneLocalization=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@dialpad/i18n"),u=require("./en-US.cjs"),d=require("./zh-CN.cjs"),f=require("./nl-NL.cjs"),g=require("./fr-FR.cjs"),S=require("./de-DE.cjs"),h=require("./it-IT.cjs"),w=require("./ja-JP.cjs"),L=require("./pt-BR.cjs"),N=require("./ru-RU.cjs"),R=require("./es-LA.cjs"),t="dialtone",o={ENGLISH:"en-US",CHINESE:"zh-CN",DUTCH:"nl-NL",FRENCH:"fr-FR",GERMAN:"de-DE",ITALIAN:"it-IT",JAPANESE:"ja-JP",PORTUGUESE:"pt-BR",RUSSIAN:"ru-RU",SPANISH:"es-LA"},i="en-US",s="user-locale";class a{constructor(e=null){if(typeof a.instance=="object")return a.instance;this._locale=e||a.getPreferredLocale();const l=new n.RawBundleSource({resources:n.RawBundleSource.builtResources([["en-US",t,u.default],["zh-CN",t,d.default],["nl-NL",t,f.default],["fr-FR",t,g.default],["de-DE",t,S.default],["it-IT",t,h.default],["ja-JP",t,w.default],["pt-BR",t,L.default],["ru-RU",t,N.default],["es-LA",t,R.default]])}),r=new n.LocaleManager({bundleSource:l,allowedLocales:Object.values(o),fallbackLocale:i,preferredLocale:this._locale,namespaces:[t]});return a.instance=this,this.i18n=r.useI18N(t),typeof window<"u"&&(window.onstorage=c=>{c.key===s&&(this.currentLocale=c.newValue)}),this}static getPreferredLocale(){if(typeof window>"u"||!window.localStorage)return i;const e=window.localStorage.getItem(s),l=Object.values(o).find(r=>r.startsWith(navigator.language.slice(0,2)));return e||l||i}static getAllowedLocales(){return o}$t(...e){return this.i18n.$t(...e)}$ta(...e){return this.i18n.$ta(...e)}get currentLocale(){return this._locale}set currentLocale(e){if(e!==this._locale){if(!Object.values(o).includes(e))throw new Error(`Locale ${e} is not allowed, please use one of the following: ${Object.values(o).join(", ")}`);this._locale=e,this.i18n.setI18N({preferredLocale:e},t)}}}exports.DialtoneLocalization=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, useI18N } from '@dialpad/i18n';\nimport { getCurrentInstance } from 'vue';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n const app = getCurrentInstance().appContext.app;\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ]),\n });\n\n const localeManager = new LocaleManager({\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n });\n\n localeManager.install(app, dialtoneNamespace);\n\n DialtoneLocalization.instance = this;\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.onstorage = (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n };\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined' || !window.localStorage) {\n return fallbackLocale;\n }\n\n const localStorageLanguage = window.localStorage.getItem(localeManagerStorageKey);\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return useI18N(dialtoneNamespace).$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return useI18N(dialtoneNamespace).$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n useI18N(dialtoneNamespace).setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"names":["dialtoneNamespace","allowedLocales","fallbackLocale","localeManagerStorageKey","DialtoneLocalization","locale","app","getCurrentInstance","bundleSource","RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","ptBR","ruRU","esLA","LocaleManager","event","localStorageLanguage","navigatorLanguage","args","useI18N","newLocale"],"mappings":"4XAcMA,EAAoB,WACpBC,EAAiB,CACrB,QAAS,QACT,QAAS,QACT,MAAO,QACP,OAAQ,QACR,OAAQ,QACR,QAAS,QACT,SAAU,QACV,WAAY,QACZ,QAAS,QACT,QAAS,OACX,EACMC,EAAiB,QAIjBC,EAA0B,cAOzB,MAAMC,CAAqB,CAChC,YAAaC,EAAS,KAAM,CAC1B,GAAI,OAAOD,EAAqB,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AG,GAAGwB,CAAI,CAC9C,CAQA,OAAQA,EAAM,CACZ,OAAOC,EAAAA,QAAQzB,CAAiB,EAAE,IAAI,GAAGwB,CAAI,CAC/C,CAEA,IAAI,eAAiB,CACnB,OAAO,KAAK,OACd,CAEA,IAAI,cAAeE,EAAW,CAC5B,GAAIA,IAAc,KAAK,QACvB,IAAI,CAAC,OAAO,OAAOzB,CAAc,EAAE,SAASyB,CAAS,EACnD,MAAM,IAAI,MAAM,UAAUA,CAAS,qDAAqD,OAAO,OAAOzB,CAAc,EAAE,KAAK,IAAI,CAAC,EAAE,EAGpI,KAAK,QAAUyB,EACfD,EAAAA,QAAQzB,CAAiB,EAAE,QAAQ,CAAE,gBAAiB0B,CAAS,EAAI1B,CAAiB,EACtF,CACF"}
1
+ {"version":3,"file":"index.cjs","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @prop {import('@dialpad/i18n').UseI18N} i18n\n * @private\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ]),\n });\n\n const localeManager = new LocaleManager({\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n });\n\n DialtoneLocalization.instance = this;\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.onstorage = (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n };\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined' || !window.localStorage) {\n return fallbackLocale;\n }\n\n const localStorageLanguage = window.localStorage.getItem(localeManagerStorageKey);\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"names":["dialtoneNamespace","allowedLocales","fallbackLocale","localeManagerStorageKey","DialtoneLocalization","locale","bundleSource","RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","ptBR","ruRU","esLA","localeManager","LocaleManager","event","localStorageLanguage","navigatorLanguage","args","newLocale"],"mappings":"2WAaMA,EAAoB,WACpBC,EAAiB,CACrB,QAAS,QACT,QAAS,QACT,MAAO,QACP,OAAQ,QACR,OAAQ,QACR,QAAS,QACT,SAAU,QACV,WAAY,QACZ,QAAS,QACT,QAAS,OACX,EACMC,EAAiB,QAIjBC,EAA0B,cAOzB,MAAMC,CAAqB,CAKhC,YAAaC,EAAS,KAAM,CAC1B,GAAI,OAAOD,EAAqB,UAAa,SAC3C,OAAOA,EAAqB,SAG9B,KAAK,QAAUC,GAAUD,EAAqB,mBAAkB,EAEhE,MAAME,EAAe,IAAIC,kBAAgB,CACvC,UAAWA,EAAAA,gB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IAAc,KAAK,QACvB,IAAI,CAAC,OAAO,OAAOvB,CAAc,EAAE,SAASuB,CAAS,EACnD,MAAM,IAAI,MAAM,UAAUA,CAAS,qDAAqD,OAAO,OAAOvB,CAAc,EAAE,KAAK,IAAI,CAAC,EAAE,EAGpI,KAAK,QAAUuB,EACf,KAAK,KAAK,QAAQ,CAAE,gBAAiBA,CAAS,EAAIxB,CAAiB,EACrE,CACF"}
@@ -1,16 +1,15 @@
1
- import { RawBundleSource as i, LocaleManager as f, useI18N as l } from "@dialpad/i18n";
2
- import { getCurrentInstance as p } from "vue";
3
- import m from "./en-US.js";
1
+ import { RawBundleSource as i, LocaleManager as u } from "@dialpad/i18n";
2
+ import f from "./en-US.js";
4
3
  import d from "./zh-CN.js";
5
- import g from "./nl-NL.js";
6
- import S from "./fr-FR.js";
7
- import w from "./de-DE.js";
8
- import N from "./it-IT.js";
9
- import L from "./ja-JP.js";
10
- import R from "./pt-BR.js";
11
- import h from "./ru-RU.js";
12
- import E from "./es-LA.js";
13
- const e = "dialtone", t = {
4
+ import m from "./nl-NL.js";
5
+ import p from "./fr-FR.js";
6
+ import g from "./de-DE.js";
7
+ import h from "./it-IT.js";
8
+ import S from "./ja-JP.js";
9
+ import w from "./pt-BR.js";
10
+ import N from "./ru-RU.js";
11
+ import L from "./es-LA.js";
12
+ const r = "dialtone", t = {
14
13
  ENGLISH: "en-US",
15
14
  CHINESE: "zh-CN",
16
15
  DUTCH: "nl-NL",
@@ -21,35 +20,38 @@ const e = "dialtone", t = {
21
20
  PORTUGUESE: "pt-BR",
22
21
  RUSSIAN: "ru-RU",
23
22
  SPANISH: "es-LA"
24
- }, s = "en-US", u = "user-locale";
23
+ }, l = "en-US", c = "user-locale";
25
24
  class o {
26
- constructor(r = null) {
25
+ /**
26
+ * @prop {import('@dialpad/i18n').UseI18N} i18n
27
+ * @private
28
+ */
29
+ constructor(e = null) {
27
30
  if (typeof o.instance == "object")
28
31
  return o.instance;
29
- const a = p().appContext.app;
30
- this._locale = r || o.getPreferredLocale();
31
- const n = new i({
32
+ this._locale = e || o.getPreferredLocale();
33
+ const a = new i({
32
34
  resources: i.builtResources([
33
- ["en-US", e, m],
34
- ["zh-CN", e, d],
35
- ["nl-NL", e, g],
36
- ["fr-FR", e, S],
37
- ["de-DE", e, w],
38
- ["it-IT", e, N],
39
- ["ja-JP", e, L],
40
- ["pt-BR", e, R],
41
- ["ru-RU", e, h],
42
- ["es-LA", e, E]
35
+ ["en-US", r, f],
36
+ ["zh-CN", r, d],
37
+ ["nl-NL", r, m],
38
+ ["fr-FR", r, p],
39
+ ["de-DE", r, g],
40
+ ["it-IT", r, h],
41
+ ["ja-JP", r, S],
42
+ ["pt-BR", r, w],
43
+ ["ru-RU", r, N],
44
+ ["es-LA", r, L]
43
45
  ])
44
- });
45
- return new f({
46
- bundleSource: n,
46
+ }), n = new u({
47
+ bundleSource: a,
47
48
  allowedLocales: Object.values(t),
48
- fallbackLocale: s,
49
+ fallbackLocale: l,
49
50
  preferredLocale: this._locale,
50
- namespaces: [e]
51
- }).install(a, e), o.instance = this, typeof window < "u" && (window.onstorage = (c) => {
52
- c.key === u && (this.currentLocale = c.newValue);
51
+ namespaces: [r]
52
+ });
53
+ return o.instance = this, this.i18n = n.useI18N(r), typeof window < "u" && (window.onstorage = (s) => {
54
+ s.key === c && (this.currentLocale = s.newValue);
53
55
  }), this;
54
56
  }
55
57
  /**
@@ -58,9 +60,9 @@ class o {
58
60
  */
59
61
  static getPreferredLocale() {
60
62
  if (typeof window > "u" || !window.localStorage)
61
- return s;
62
- const r = window.localStorage.getItem(u), a = Object.values(t).find((n) => n.startsWith(navigator.language.slice(0, 2)));
63
- return r || a || s;
63
+ return l;
64
+ const e = window.localStorage.getItem(c), a = Object.values(t).find((n) => n.startsWith(navigator.language.slice(0, 2)));
65
+ return e || a || l;
64
66
  }
65
67
  static getAllowedLocales() {
66
68
  return t;
@@ -71,8 +73,8 @@ class o {
71
73
  * It’s used for simple text translations.
72
74
  * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t
73
75
  */
74
- $t(...r) {
75
- return l(e).$t(...r);
76
+ $t(...e) {
77
+ return this.i18n.$t(...e);
76
78
  }
77
79
  /**
78
80
  * Passthrough function to the i18n $ta function including the dialtone namespace
@@ -80,17 +82,17 @@ class o {
80
82
  * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.
81
83
  * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta
82
84
  */
83
- $ta(...r) {
84
- return l(e).$ta(...r);
85
+ $ta(...e) {
86
+ return this.i18n.$ta(...e);
85
87
  }
86
88
  get currentLocale() {
87
89
  return this._locale;
88
90
  }
89
- set currentLocale(r) {
90
- if (r !== this._locale) {
91
- if (!Object.values(t).includes(r))
92
- throw new Error(`Locale ${r} is not allowed, please use one of the following: ${Object.values(t).join(", ")}`);
93
- this._locale = r, l(e).setI18N({ preferredLocale: r }, e);
91
+ set currentLocale(e) {
92
+ if (e !== this._locale) {
93
+ if (!Object.values(t).includes(e))
94
+ throw new Error(`Locale ${e} is not allowed, please use one of the following: ${Object.values(t).join(", ")}`);
95
+ this._locale = e, this.i18n.setI18N({ preferredLocale: e }, r);
94
96
  }
95
97
  }
96
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource, useI18N } from '@dialpad/i18n';\nimport { getCurrentInstance } from 'vue';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n const app = getCurrentInstance().appContext.app;\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ]),\n });\n\n const localeManager = new LocaleManager({\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n });\n\n localeManager.install(app, dialtoneNamespace);\n\n DialtoneLocalization.instance = this;\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.onstorage = (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n };\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined' || !window.localStorage) {\n return fallbackLocale;\n }\n\n const localStorageLanguage = window.localStorage.getItem(localeManagerStorageKey);\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return useI18N(dialtoneNamespace).$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return useI18N(dialtoneNamespace).$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n useI18N(dialtoneNamespace).setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"names":["dialtoneNamespace","allowedLocales","fallbackLocale","localeManagerStorageKey","DialtoneLocalization","locale","app","getCurrentInstance","bundleSource","RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","ptBR","ruRU","esLA","LocaleManager","event","localStorageLanguage","navigatorLanguage","args","useI18N","newLocale"],"mappings":";;;;;;;;;;;;AAcA,MAAMA,IAAoB,YACpBC,I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M;AAAA,IAE/B,IAGK;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,qBAAsB;AAI3B,QAAI,OAAO,SAAW,OAAe,CAAC,OAAO;AAC3C,aAAOnB;AAGT,UAAMoB,IAAuB,OAAO,aAAa,QAAQnB,CAAuB,GAG1EoB,IAAoB,OAAO,OAAOtB,CAAc,EACnD,KAAK,CAAAI,MAAUA,EAAO,WAAW,UAAU,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC;AAEnE,WAAOiB,KAAwBC,KAAqBrB;AAAA,EACtD;AAAA,EAEA,OAAO,oBAAqB;AAC1B,WAAOD;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAOuB,GAAM;AACX,WAAOC,EAAQzB,CAAiB,EAAE,GAAG,GAAGwB,CAAI;AAAA,EAC9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,OAAQA,GAAM;AACZ,WAAOC,EAAQzB,CAAiB,EAAE,IAAI,GAAGwB,CAAI;AAAA,EAC/C;AAAA,EAEA,IAAI,gBAAiB;AACnB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,cAAeE,GAAW;AAC5B,QAAIA,MAAc,KAAK,SACvB;AAAA,UAAI,CAAC,OAAO,OAAOzB,CAAc,EAAE,SAASyB,CAAS;AACnD,cAAM,IAAI,MAAM,UAAUA,CAAS,qDAAqD,OAAO,OAAOzB,CAAc,EAAE,KAAK,IAAI,CAAC,EAAE;AAGpI,WAAK,UAAUyB,GACfD,EAAQzB,CAAiB,EAAE,QAAQ,EAAE,iBAAiB0B,EAAS,GAAI1B,CAAiB;AAAA;AAAA,EACtF;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource } from '@dialpad/i18n';\n\nimport enUS from './en-US.ftl?raw';\nimport zhCN from './zh-CN.ftl?raw';\nimport nlNL from './nl-NL.ftl?raw';\nimport frFR from './fr-FR.ftl?raw';\nimport deDE from './de-DE.ftl?raw';\nimport itIT from './it-IT.ftl?raw';\nimport jaJP from './ja-JP.ftl?raw';\nimport ptBR from './pt-BR.ftl?raw';\nimport ruRU from './ru-RU.ftl?raw';\nimport esLA from './es-LA.ftl?raw';\n\nconst dialtoneNamespace = 'dialtone';\nconst allowedLocales = {\n ENGLISH: 'en-US',\n CHINESE: 'zh-CN',\n DUTCH: 'nl-NL',\n FRENCH: 'fr-FR',\n GERMAN: 'de-DE',\n ITALIAN: 'it-IT',\n JAPANESE: 'ja-JP',\n PORTUGUESE: 'pt-BR',\n RUSSIAN: 'ru-RU',\n SPANISH: 'es-LA',\n};\nconst fallbackLocale = 'en-US';\n/**\n * Default key name used by the LocaleManager to store the user's preferred locale in localStorage\n */\nconst localeManagerStorageKey = 'user-locale';\n\n/**\n * Dialtone localization class, follows the singleton pattern to make sure only one instance of the class is created.\n * Initializes the localeManager and looks for changes on the browser storage to update the current locale.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#i18n-vue-3-compatible\n */\nexport class DialtoneLocalization {\n /**\n * @prop {import('@dialpad/i18n').UseI18N} i18n\n * @private\n */\n constructor (locale = null) {\n if (typeof DialtoneLocalization.instance === 'object') {\n return DialtoneLocalization.instance;\n }\n\n this._locale = locale || DialtoneLocalization.getPreferredLocale();\n\n const bundleSource = new RawBundleSource({\n resources: RawBundleSource.builtResources([\n ['en-US', dialtoneNamespace, enUS],\n ['zh-CN', dialtoneNamespace, zhCN],\n ['nl-NL', dialtoneNamespace, nlNL],\n ['fr-FR', dialtoneNamespace, frFR],\n ['de-DE', dialtoneNamespace, deDE],\n ['it-IT', dialtoneNamespace, itIT],\n ['ja-JP', dialtoneNamespace, jaJP],\n ['pt-BR', dialtoneNamespace, ptBR],\n ['ru-RU', dialtoneNamespace, ruRU],\n ['es-LA', dialtoneNamespace, esLA],\n ]),\n });\n\n const localeManager = new LocaleManager({\n bundleSource,\n allowedLocales: Object.values(allowedLocales),\n fallbackLocale,\n preferredLocale: this._locale,\n namespaces: [dialtoneNamespace],\n });\n\n DialtoneLocalization.instance = this;\n this.i18n = localeManager.useI18N(dialtoneNamespace);\n\n if (typeof window !== 'undefined') {\n /**\n * @description\n * When the browser storage changes, update the current locale\n * @param event\n */\n window.onstorage = (event) => {\n if (event.key === localeManagerStorageKey) {\n this.currentLocale = event.newValue;\n }\n };\n }\n\n return this;\n }\n\n /**\n * Gets the preferred locale from user's locale stored in localStorage or the browser language\n * @returns { string }\n */\n static getPreferredLocale () {\n /**\n * Early return if we're not in the browser or if localStorage is not available\n */\n if (typeof window === 'undefined' || !window.localStorage) {\n return fallbackLocale;\n }\n\n const localStorageLanguage = window.localStorage.getItem(localeManagerStorageKey);\n\n // Get the first two letters of the navigator language and check if it's in the allowed locales\n const navigatorLanguage = Object.values(allowedLocales)\n .find(locale => locale.startsWith(navigator.language.slice(0, 2)));\n\n return localStorageLanguage || navigatorLanguage || fallbackLocale;\n }\n\n static getAllowedLocales () {\n return allowedLocales;\n }\n\n /**\n * Passthrough function to the i18n $t function including the dialtone namespace\n * Returns a translated string based on a key and optional variables.\n * It’s used for simple text translations.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#t\n */\n $t (...args) {\n return this.i18n.$t(...args);\n }\n\n /**\n * Passthrough function to the i18n $ta function including the dialtone namespace\n * Returns an object containing translated attributes to pass directly as props to components, it can contain\n * aria-label, title, etc, rather than just a plain text. It’s useful for handling element attributes in the UI.\n * https://github.com/dialpad/goblin-client-tools/tree/main/packages/i18n#ta\n */\n $ta (...args) {\n return this.i18n.$ta(...args);\n }\n\n get currentLocale () {\n return this._locale;\n }\n\n set currentLocale (newLocale) {\n if (newLocale === this._locale) return;\n if (!Object.values(allowedLocales).includes(newLocale)) {\n throw new Error(`Locale ${newLocale} is not allowed, please use one of the following: ${Object.values(allowedLocales).join(', ')}`);\n }\n\n this._locale = newLocale;\n this.i18n.setI18N({ preferredLocale: newLocale }, dialtoneNamespace);\n }\n}\n"],"names":["dialtoneNamespace","allowedLocales","fallbackLocale","localeManagerStorageKey","DialtoneLocalization","locale","bundleSource","RawBundleSource","enUS","zhCN","nlNL","frFR","deDE","itIT","jaJP","ptBR","ruRU","esLA","localeManager","LocaleManager","event","localStorageLanguage","navigatorLanguage","args","newLocale"],"mappings":";;;;;;;;;;;AAaA,MAAMA,IAAoB,YACpBC,IAAiB;AAAA,EACrB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AACX,GACMC,IAAiB,SAIjBC,IAA0B;AAOzB,MAAMC,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhC,YAAaC,IAAS,MAAM;AAC1B,QAAI,OAAOD,EAAqB,YAAa;AAC3C,aAAOA,EAAqB;AAG9B,SAAK,UAAUC,KAAUD,EAAqB,mBAAkB;AAEhE,UAAME,IAAe,IAAIC,EAAgB;AAAA,MACvC,WAAWA,EAAgB,eAAe;AAAA,QACxC,CAAC,SAASP,GAAmBQ,CAAI;AAAA,QACjC,CAAC,SAASR,GAAmBS,CAAI;AAAA,QACjC,CAAC,SAAST,GAAmBU,CAAI;AAAA,QACjC,CAAC,SAASV,GAAmBW,CAAI;AAAA,QACjC,CAAC,SAASX,GAAmBY,CAAI;AAAA,QACjC,CAAC,SAASZ,GAAmBa,CAAI;AAAA,QACjC,CAAC,SAASb,GAAmBc,CAAI;AAAA,QACjC,CAAC,SAASd,GAAmBe,CAAI;AAAA,QACjC,CAAC,SAASf,GAAmBgB,CAAI;AAAA,QACjC,CAAC,SAAShB,GAAmBiB,CAAI;AAAA,MACzC,CAAO;AAAA,IACP,CAAK,GAEKC,IAAgB,IAAIC,EAAc;AAAA,MACtC,cAAAb;AAAA,MACA,gBAAgB,OAAO,OAAOL,CAAc;AAAA,MAC5C,gBAAAC;AA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IxB,CAAiB;AAAA;AAAA,EACrE;AACF;"}
@@ -1,8 +1,7 @@
1
- import { DialtoneLocalization } from '../localization';
2
1
  declare const _default: import('vue').DefineComponent<{}, {}, {
3
- i18n: DialtoneLocalization;
2
+ i18n: any;
4
3
  }, {
5
- closeButtonTitle(): string;
4
+ closeButtonTitle(): any;
6
5
  }, {
7
6
  close(): void;
8
7
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
@@ -1 +1 @@
1
- {"version":3,"file":"sr_only_close_button.vue.d.ts","sourceRoot":"","sources":["../../../common/sr_only_close_button.vue"],"names":[],"mappings":"AAaA;;;;;;;;;;;qCAmDqC,gBAAgB"}
1
+ {"version":3,"file":"sr_only_close_button.vue.d.ts","sourceRoot":"","sources":["../../../common/sr_only_close_button.vue"],"names":[],"mappings":"AAaA;"}
@@ -1,4 +1,3 @@
1
- import { DialtoneLocalization } from '../../localization';
2
1
  declare const _default: import('vue').DefineComponent<{
3
2
  breadcrumbs: {
4
3
  type: ArrayConstructor;
@@ -15,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
15
14
  };
16
15
  }, any, {
17
16
  BREADCRUMBS_INVERTED_MODIFIER: string;
18
- i18n: DialtoneLocalization;
17
+ i18n: any;
19
18
  }, {}, {
20
19
  getBreadcrumbItemKey(index: any): string;
21
20
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbs.vue.d.ts","sourceRoot":"","sources":["../../../../components/breadcrumbs/breadcrumbs.vue"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA6FqC,gBAAgB"}
1
+ {"version":3,"file":"breadcrumbs.vue.d.ts","sourceRoot":"","sources":["../../../../components/breadcrumbs/breadcrumbs.vue"],"names":[],"mappings":"AAsBA;"}
@@ -1,5 +1,4 @@
1
1
  import { hasSlotContent } from '../../common/utils';
2
- import { DialtoneLocalization } from '../../localization';
3
2
  declare const _default: import('vue').DefineComponent<{
4
3
  circle: {
5
4
  type: BooleanConstructor;
@@ -76,7 +75,7 @@ declare const _default: import('vue').DefineComponent<{
76
75
  };
77
76
  isInFocus: boolean;
78
77
  hasSlotContent: typeof hasSlotContent;
79
- i18n: DialtoneLocalization;
78
+ i18n: any;
80
79
  }, {
81
80
  buttonListeners(): {
82
81
  focusin: (e: any) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../../components/button/button.vue"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAyW+B,gBAAgB;qCAaV,gBAAgB"}
1
+ {"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../../components/button/button.vue"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAyW+B,gBAAgB"}
@@ -1,5 +1,4 @@
1
1
  import { hasSlotContent } from '../../common/utils';
2
- import { DialtoneLocalization } from '../../localization';
3
2
  declare const _default: import('vue').DefineComponent<{
4
3
  disabled: {
5
4
  type: BooleanConstructor;
@@ -37,7 +36,7 @@ declare const _default: import('vue').DefineComponent<{
37
36
  }, any, {
38
37
  isActive: boolean;
39
38
  hasSlotContent: typeof hasSlotContent;
40
- i18n: DialtoneLocalization;
39
+ i18n: any;
41
40
  }, {
42
41
  chipListeners(): {
43
42
  click: (event: any) => void;
@@ -45,7 +44,7 @@ declare const _default: import('vue').DefineComponent<{
45
44
  keyup: (event: any) => void;
46
45
  };
47
46
  closeButtonIconSize(): any;
48
- closeButtonTitle(): string;
47
+ closeButtonTitle(): any;
49
48
  }, {
50
49
  chipClasses(): any[];
51
50
  chipCloseButtonClasses(): any[];
@@ -1 +1 @@
1
- {"version":3,"file":"chip.vue.d.ts","sourceRoot":"","sources":["../../../../components/chip/chip.vue"],"names":[],"mappings":"AAyDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuQgD,gBAAgB;qCAC3B,gBAAgB"}
1
+ {"version":3,"file":"chip.vue.d.ts","sourceRoot":"","sources":["../../../../components/chip/chip.vue"],"names":[],"mappings":"AAyDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuQgD,gBAAgB"}
@@ -1,4 +1,3 @@
1
- import { DialtoneLocalization } from '../../localization';
2
1
  declare const _default: import('vue').DefineComponent<{
3
2
  appendTo: {
4
3
  type: StringConstructor;
@@ -28,13 +27,13 @@ declare const _default: import('vue').DefineComponent<{
28
27
  }, any, {
29
28
  showCloseButton: boolean;
30
29
  isOpen: boolean;
31
- i18n: DialtoneLocalization;
30
+ i18n: any;
32
31
  }, {
33
32
  modalListeners(): {
34
33
  click: (event: any) => void;
35
34
  keydown: (event: any) => void;
36
35
  };
37
- closeButtonTitle(): string;
36
+ closeButtonTitle(): any;
38
37
  }, {
39
38
  openModal(): void;
40
39
  close(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"image_viewer.vue.d.ts","sourceRoot":"","sources":["../../../../components/image_viewer/image_viewer.vue"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAyQA,IAjJK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAuJgC,gBAAgB"}
1
+ {"version":3,"file":"image_viewer.vue.d.ts","sourceRoot":"","sources":["../../../../components/image_viewer/image_viewer.vue"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAyQA,IAjJK"}
@@ -1,5 +1,4 @@
1
1
  import { hasSlotContent } from '../../common/utils';
2
- import { DialtoneLocalization } from '../../localization';
3
2
  declare const _default: import('vue').DefineComponent<{
4
3
  copy: {
5
4
  type: StringConstructor;
@@ -115,7 +114,7 @@ declare const _default: import('vue').DefineComponent<{
115
114
  end: string;
116
115
  };
117
116
  hasSlotContent: typeof hasSlotContent;
118
- i18n: DialtoneLocalization;
117
+ i18n: any;
119
118
  }, {
120
119
  modalListeners(): {
121
120
  click: (event: any) => void;
@@ -126,7 +125,7 @@ declare const _default: import('vue').DefineComponent<{
126
125
  open(): string;
127
126
  hasFooterSlot(): boolean;
128
127
  bannerKindClass(): never;
129
- closeButtonTitle(): string;
128
+ closeButtonTitle(): any;
130
129
  }, {
131
130
  close(): void;
132
131
  setFocusAfterTransition(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"modal.vue.d.ts","sourceRoot":"","sources":["../../../../components/modal/modal.vue"],"names":[],"mappings":"AAwHA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA+eA,IArXE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6XwG,gBAAgB;qCAKrF,gBAAgB"}
1
+ {"version":3,"file":"modal.vue.d.ts","sourceRoot":"","sources":["../../../../components/modal/modal.vue"],"names":[],"mappings":"AAwHA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA+eA,IArXE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6XwG,gBAAgB"}
@@ -1,4 +1,3 @@
1
- import { DialtoneLocalization } from '../../localization';
2
1
  declare const _default: import('vue').DefineComponent<{
3
2
  hideClose: {
4
3
  type: BooleanConstructor;
@@ -9,9 +8,9 @@ declare const _default: import('vue').DefineComponent<{
9
8
  default: boolean;
10
9
  };
11
10
  }, any, {
12
- i18n: DialtoneLocalization;
11
+ i18n: any;
13
12
  }, {
14
- closeButtonTitle(): string;
13
+ closeButtonTitle(): any;
15
14
  }, {
16
15
  close(): void;
17
16
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"notice_action.vue.d.ts","sourceRoot":"","sources":["../../../../components/notice/notice_action.vue"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA8GqC,gBAAgB"}
1
+ {"version":3,"file":"notice_action.vue.d.ts","sourceRoot":"","sources":["../../../../components/notice/notice_action.vue"],"names":[],"mappings":"AA8BA;"}
@@ -1,4 +1,3 @@
1
- import { DialtoneLocalization } from '../../localization';
2
1
  declare const _default: import('vue').DefineComponent<{
3
2
  ariaLabel: {
4
3
  type: StringConstructor;
@@ -22,13 +21,13 @@ declare const _default: import('vue').DefineComponent<{
22
21
  };
23
22
  }, any, {
24
23
  currentPage: number;
25
- i18n: DialtoneLocalization;
24
+ i18n: any;
26
25
  }, {
27
26
  isFirstPage(): boolean;
28
27
  isLastPage(): boolean;
29
28
  pages(): any[];
30
- prevAriaLabel(): string;
31
- nextAriaLabel(): string;
29
+ prevAriaLabel(): any;
30
+ nextAriaLabel(): any;
32
31
  pageNumberAriaLabel(): (page: any) => string;
33
32
  }, {
34
33
  range(from: any, to: any): any[];
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.vue.d.ts","sourceRoot":"","sources":["../../../../components/pagination/pagination.vue"],"names":[],"mappings":"AAiEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAsQqC,gBAAgB"}
1
+ {"version":3,"file":"pagination.vue.d.ts","sourceRoot":"","sources":["../../../../components/pagination/pagination.vue"],"names":[],"mappings":"AAiEA;"}
@@ -1,5 +1,4 @@
1
1
  import { hasSlotContent } from '../../common/utils';
2
- import { DialtoneLocalization } from '../../localization';
3
2
  declare const _default: import('vue').DefineComponent<{
4
3
  type: {
5
4
  type: StringConstructor;
@@ -15,9 +14,9 @@ declare const _default: import('vue').DefineComponent<{
15
14
  };
16
15
  }, any, {
17
16
  hasSlotContent: typeof hasSlotContent;
18
- i18n: DialtoneLocalization;
17
+ i18n: any;
19
18
  }, {
20
- closeButtonTitle(): string;
19
+ closeButtonTitle(): any;
21
20
  }, {
22
21
  focusCloseButton(): void;
23
22
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"popover_header_footer.vue.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover_header_footer.vue"],"names":[],"mappings":"AA0CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuH8C,gBAAgB;qCACzB,gBAAgB"}
1
+ {"version":3,"file":"popover_header_footer.vue.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover_header_footer.vue"],"names":[],"mappings":"AA0CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuH8C,gBAAgB"}
@@ -158,14 +158,13 @@ declare const _default: import('vue').DefineComponent<{
158
158
  computed: {
159
159
  formattedMessages(): any;
160
160
  };
161
- }, import('vue').ComponentOptionsMixin, ("input" | "click" | "focus" | "focusin" | "focusout" | "update:modelValue")[], "input" | "click" | "focus" | "focusin" | "focusout" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
161
+ }, import('vue').ComponentOptionsMixin, ("input" | "focus" | "focusin" | "focusout" | "update:modelValue")[], "input" | "focus" | "focusin" | "focusout" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
162
162
  value: {
163
163
  type: (StringConstructor | NumberConstructor)[];
164
164
  default: string;
165
165
  };
166
166
  }>> & {
167
167
  onInput?: ((...args: any[]) => any) | undefined;
168
- onClick?: ((...args: any[]) => any) | undefined;
169
168
  onFocus?: ((...args: any[]) => any) | undefined;
170
169
  onFocusin?: ((...args: any[]) => any) | undefined;
171
170
  onFocusout?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"radio.vue.d.ts","sourceRoot":"","sources":["../../../../components/radio/radio.vue"],"names":[],"mappings":"AAqDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiN0E,gBAAgB;sCAAhB,gBAAgB;mCAAhB,gBAAgB"}
1
+ {"version":3,"file":"radio.vue.d.ts","sourceRoot":"","sources":["../../../../components/radio/radio.vue"],"names":[],"mappings":"AAqDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAyM0E,gBAAgB;sCAAhB,gBAAgB;mCAAhB,gBAAgB"}