@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.
- package/README.md +1 -5
- package/dist/component-documentation.json +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +100 -93
- package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +7 -14
- package/dist/lib/radio/radio.js.map +1 -1
- package/dist/lib/rich-text-editor/mention-suggestion.cjs +1 -1
- package/dist/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
- package/dist/lib/rich-text-editor/mention-suggestion.js +12 -2
- package/dist/lib/rich-text-editor/mention-suggestion.js.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +4 -4
- package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +141 -98
- package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/lib/stack/stack-constants.cjs +1 -1
- package/dist/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/lib/stack/stack-constants.js +8 -8
- package/dist/lib/stack/stack-constants.js.map +1 -1
- package/dist/lib/stack/stack.cjs.map +1 -1
- package/dist/lib/stack/stack.js +1 -1
- package/dist/lib/stack/stack.js.map +1 -1
- package/dist/lib/stack/utils.cjs +1 -1
- package/dist/lib/stack/utils.cjs.map +1 -1
- package/dist/lib/stack/utils.js +56 -44
- package/dist/lib/stack/utils.js.map +1 -1
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.cjs.map +1 -1
- package/dist/lib/tab/tab-group.js +1 -1
- package/dist/lib/tab/tab-group.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +21 -21
- package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
- package/dist/localization/index.cjs +1 -1
- package/dist/localization/index.cjs.map +1 -1
- package/dist/localization/index.js +48 -46
- package/dist/localization/index.js.map +1 -1
- package/dist/types/common/sr_only_close_button.vue.d.ts +2 -3
- package/dist/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
- package/dist/types/components/button/button.vue.d.ts +1 -2
- package/dist/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/types/components/chip/chip.vue.d.ts +2 -3
- package/dist/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +2 -3
- package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/types/components/notice/notice_action.vue.d.ts +2 -3
- package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination.vue.d.ts +3 -4
- package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +2 -3
- package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/types/components/radio/radio.vue.d.ts +1 -2
- package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +3 -1
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +3 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts +3 -0
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +4 -3
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/stack/stack_constants.d.ts.map +1 -1
- package/dist/types/components/stack/utils.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
- package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts +2 -0
- package/dist/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts.map +1 -0
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
- package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +2 -3
- package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
- package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
- package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
- package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/package.json +12 -7
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { getUniqueString as
|
|
2
|
-
import { createApp as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { TOOLTIP_DIRECTIONS as
|
|
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(
|
|
8
|
+
install(n) {
|
|
9
9
|
let a;
|
|
10
10
|
const r = document.createElement("div");
|
|
11
11
|
document.body.appendChild(r);
|
|
12
|
-
const
|
|
12
|
+
const p = "top";
|
|
13
|
+
m({
|
|
13
14
|
name: "DtTooltipDirectiveApp",
|
|
14
|
-
components: { DtTooltip:
|
|
15
|
+
components: { DtTooltip: u },
|
|
15
16
|
data() {
|
|
16
17
|
return {
|
|
17
18
|
tooltips: []
|
|
18
19
|
};
|
|
19
20
|
},
|
|
20
21
|
created() {
|
|
21
|
-
a =
|
|
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
|
|
34
|
+
return d(
|
|
34
35
|
"div",
|
|
35
|
-
this.tooltips.map(({ id: e, ...t }) => u
|
|
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
|
-
|
|
50
|
+
s(e, t);
|
|
51
51
|
},
|
|
52
52
|
updated(e, t) {
|
|
53
|
-
|
|
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
|
|
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 &&
|
|
62
|
+
l && a.ctx.removeTooltip(l);
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
const i = e.getAttribute("data-dt-tooltip-id") ||
|
|
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 ||
|
|
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 ||
|
|
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
|
-
|
|
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
|
|
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":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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
|
|
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,gBAAgB,eAAe,CACxC,CAAC,QAASP,EAAmBQ,SAAI,EACjC,CAAC,QAASR,EAAmBS,SAAI,EACjC,CAAC,QAAST,EAAmBU,SAAI,EACjC,CAAC,QAASV,EAAmBW,SAAI,EACjC,CAAC,QAASX,EAAmBY,SAAI,EACjC,CAAC,QAASZ,EAAmBa,SAAI,EACjC,CAAC,QAASb,EAAmBc,SAAI,EACjC,CAAC,QAASd,EAAmBe,SAAI,EACjC,CAAC,QAASf,EAAmBgB,SAAI,EACjC,CAAC,QAAShB,EAAmBiB,SAAI,CACzC,CAAO,CACP,CAAK,EAEKC,EAAgB,IAAIC,gBAAc,CACtC,aAAAb,EACA,eAAgB,OAAO,OAAOL,CAAc,EAC5C,eAAAC,EACA,gBAAiB,KAAK,QACtB,WAAY,CAACF,CAAiB,CACpC,CAAK,EAED,OAAAI,EAAqB,SAAW,KAChC,KAAK,KAAOc,EAAc,QAAQlB,CAAiB,EAE/C,OAAO,OAAW,MAMpB,OAAO,UAAaoB,GAAU,CACxBA,EAAM,MAAQjB,IAChB,KAAK,cAAgBiB,EAAM,SAE/B,GAGK,IACT,CAMA,OAAO,oBAAsB,CAI3B,GAAI,OAAO,OAAW,KAAe,CAAC,OAAO,aAC3C,OAAOlB,EAGT,MAAMmB,EAAuB,OAAO,aAAa,QAAQlB,CAAuB,EAG1EmB,EAAoB,OAAO,OAAOrB,CAAc,EACnD,KAAKI,GAAUA,EAAO,WAAW,UAAU,SAAS,MAAM,EAAG,CAAC,CAAC,CAAC,EAEnE,OAAOgB,GAAwBC,GAAqBpB,CACtD,CAEA,OAAO,mBAAqB,CAC1B,OAAOD,CACT,CAQA,MAAOsB,EAAM,CACX,OAAO,KAAK,KAAK,GAAG,GAAGA,CAAI,CAC7B,CAQA,OAAQA,EAAM,CACZ,OAAO,KAAK,KAAK,IAAI,GAAGA,CAAI,CAC9B,CAEA,IAAI,eAAiB,CACnB,OAAO,KAAK,OACd,CAEA,IAAI,cAAeC,EAAW,CAC5B,GAAIA,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
|
|
2
|
-
import
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
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
|
-
},
|
|
23
|
+
}, l = "en-US", c = "user-locale";
|
|
25
24
|
class o {
|
|
26
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
const n = new i({
|
|
32
|
+
this._locale = e || o.getPreferredLocale();
|
|
33
|
+
const a = new i({
|
|
32
34
|
resources: i.builtResources([
|
|
33
|
-
["en-US",
|
|
34
|
-
["zh-CN",
|
|
35
|
-
["nl-NL",
|
|
36
|
-
["fr-FR",
|
|
37
|
-
["de-DE",
|
|
38
|
-
["it-IT",
|
|
39
|
-
["ja-JP",
|
|
40
|
-
["pt-BR",
|
|
41
|
-
["ru-RU",
|
|
42
|
-
["es-LA",
|
|
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
|
-
|
|
46
|
-
bundleSource: n,
|
|
46
|
+
}), n = new u({
|
|
47
|
+
bundleSource: a,
|
|
47
48
|
allowedLocales: Object.values(t),
|
|
48
|
-
fallbackLocale:
|
|
49
|
+
fallbackLocale: l,
|
|
49
50
|
preferredLocale: this._locale,
|
|
50
|
-
namespaces: [
|
|
51
|
-
})
|
|
52
|
-
|
|
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
|
|
62
|
-
const
|
|
63
|
-
return
|
|
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(...
|
|
75
|
-
return
|
|
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(...
|
|
84
|
-
return
|
|
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(
|
|
90
|
-
if (
|
|
91
|
-
if (!Object.values(t).includes(
|
|
92
|
-
throw new Error(`Locale ${
|
|
93
|
-
this._locale =
|
|
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
|
|
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;AAAA,MACA,iBAAiB,KAAK;AAAA,MACtB,YAAY,CAACF,CAAiB;AAAA,IACpC,CAAK;AAED,WAAAI,EAAqB,WAAW,MAChC,KAAK,OAAOc,EAAc,QAAQlB,CAAiB,GAE/C,OAAO,SAAW,QAMpB,OAAO,YAAY,CAACoB,MAAU;AAC5B,MAAIA,EAAM,QAAQjB,MAChB,KAAK,gBAAgBiB,EAAM;AAAA,IAE/B,IAGK;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,qBAAsB;AAI3B,QAAI,OAAO,SAAW,OAAe,CAAC,OAAO;AAC3C,aAAOlB;AAGT,UAAMmB,IAAuB,OAAO,aAAa,QAAQlB,CAAuB,GAG1EmB,IAAoB,OAAO,OAAOrB,CAAc,EACnD,KAAK,CAAAI,MAAUA,EAAO,WAAW,UAAU,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC;AAEnE,WAAOgB,KAAwBC,KAAqBpB;AAAA,EACtD;AAAA,EAEA,OAAO,oBAAqB;AAC1B,WAAOD;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAOsB,GAAM;AACX,WAAO,KAAK,KAAK,GAAG,GAAGA,CAAI;AAAA,EAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,OAAQA,GAAM;AACZ,WAAO,KAAK,KAAK,IAAI,GAAGA,CAAI;AAAA,EAC9B;AAAA,EAEA,IAAI,gBAAiB;AACnB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,cAAeC,GAAW;AAC5B,QAAIA,MAAc,KAAK,SACvB;AAAA,UAAI,CAAC,OAAO,OAAOvB,CAAc,EAAE,SAASuB,CAAS;AACnD,cAAM,IAAI,MAAM,UAAUA,CAAS,qDAAqD,OAAO,OAAOvB,CAAc,EAAE,KAAK,IAAI,CAAC,EAAE;AAGpI,WAAK,UAAUuB,GACf,KAAK,KAAK,QAAQ,EAAE,iBAAiBA,EAAS,GAAIxB,CAAiB;AAAA;AAAA,EACrE;AACF;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DialtoneLocalization } from '../localization';
|
|
2
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
3
|
-
i18n:
|
|
2
|
+
i18n: any;
|
|
4
3
|
}, {
|
|
5
|
-
closeButtonTitle():
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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():
|
|
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
|
|
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:
|
|
30
|
+
i18n: any;
|
|
32
31
|
}, {
|
|
33
32
|
modalListeners(): {
|
|
34
33
|
click: (event: any) => void;
|
|
35
34
|
keydown: (event: any) => void;
|
|
36
35
|
};
|
|
37
|
-
closeButtonTitle():
|
|
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
|
|
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:
|
|
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():
|
|
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
|
|
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:
|
|
11
|
+
i18n: any;
|
|
13
12
|
}, {
|
|
14
|
-
closeButtonTitle():
|
|
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
|
|
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:
|
|
24
|
+
i18n: any;
|
|
26
25
|
}, {
|
|
27
26
|
isFirstPage(): boolean;
|
|
28
27
|
isLastPage(): boolean;
|
|
29
28
|
pages(): any[];
|
|
30
|
-
prevAriaLabel():
|
|
31
|
-
nextAriaLabel():
|
|
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
|
|
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:
|
|
17
|
+
i18n: any;
|
|
19
18
|
}, {
|
|
20
|
-
closeButtonTitle():
|
|
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
|
|
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" | "
|
|
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
|
|
1
|
+
{"version":3,"file":"radio.vue.d.ts","sourceRoot":"","sources":["../../../../components/radio/radio.vue"],"names":[],"mappings":"AAqDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAyM0E,gBAAgB;sCAAhB,gBAAgB;mCAAhB,gBAAgB"}
|