@dialpad/dialtone 9.119.0 → 9.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dialtone-default-theme.css +4 -0
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +4 -0
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +20050 -20050
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +357 -359
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/hovercard/hovercard.cjs +1 -1
- package/dist/vue2/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/vue2/lib/hovercard/hovercard.js +31 -15
- package/dist/vue2/lib/hovercard/hovercard.js.map +1 -1
- package/dist/vue2/lib/scrollbar-directive/scrollbar.cjs +1 -1
- package/dist/vue2/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
- package/dist/vue2/lib/scrollbar-directive/scrollbar.js +17 -11
- package/dist/vue2/lib/scrollbar-directive/scrollbar.js.map +1 -1
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue2/types/directives/scrollbar_directive/scrollbar.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +0 -1
- package/dist/vue3/lib/hovercard/hovercard.cjs +1 -1
- package/dist/vue3/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/vue3/lib/hovercard/hovercard.js +57 -43
- package/dist/vue3/lib/hovercard/hovercard.js.map +1 -1
- package/dist/vue3/lib/scrollbar-directive/scrollbar.cjs +1 -1
- package/dist/vue3/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
- package/dist/vue3/lib/scrollbar-directive/scrollbar.js +14 -8
- package/dist/vue3/lib/scrollbar-directive/scrollbar.js.map +1 -1
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue3/types/directives/scrollbar_directive/scrollbar.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/vue2/localization/dp-DP.cjs +0 -11
- package/dist/vue2/localization/dp-DP.cjs.map +0 -1
- package/dist/vue2/localization/dp-DP.js +0 -14
- package/dist/vue2/localization/dp-DP.js.map +0 -1
- package/dist/vue2/localization/en-US.cjs +0 -11
- package/dist/vue2/localization/en-US.cjs.map +0 -1
- package/dist/vue2/localization/en-US.js +0 -14
- package/dist/vue2/localization/en-US.js.map +0 -1
- package/dist/vue2/localization/es-LA.cjs +0 -11
- package/dist/vue2/localization/es-LA.cjs.map +0 -1
- package/dist/vue2/localization/es-LA.js +0 -14
- package/dist/vue2/localization/es-LA.js.map +0 -1
- package/dist/vue2/localization/index.cjs +0 -2
- package/dist/vue2/localization/index.cjs.map +0 -1
- package/dist/vue2/localization/index.js +0 -38
- package/dist/vue2/localization/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hovercard.js","sources":["../../../components/hovercard/hovercard.vue"],"sourcesContent":["<!-- eslint-disable vue/multi-word-component-names -->\n<template>\n <dt-popover\n :id=\"id\"\n :open=\"hovercardOpen\"\n :placement=\"placement\"\n :content-class=\"contentClass\"\n :dialog-class=\"dialogClass\"\n :fallback-placements=\"fallbackPlacements\"\n :padding=\"padding\"\n :transition=\"transition ? 'fade' : null\"\n :offset=\"offset\"\n :modal=\"false\"\n initial-focus-element=\"none\"\n :header-class=\"headerClass\"\n :footer-class=\"footerClass\"\n :append-to=\"appendTo\"\n data-qa=\"dt-hovercard\"\n :enter-delay=\"enterDelay\"\n :leave-delay=\"leaveDelay\"\n @opened=\"(e) => ($emit('opened', e))\"\n @mouseenter-popover=\"onMouseEnter\"\n @mouseleave-popover=\"onMouseLeave\"\n @mouseenter-popover-anchor=\"onMouseEnter\"\n @mouseleave-popover-anchor=\"onMouseLeave\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the hovercard. Usually a button. -->\n <slot\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content>\n <!-- @slot Slot for the content that is displayed in the hovercard. -->\n <slot name=\"content\" />\n </template>\n <template #headerContent>\n <!-- @slot Slot for hovercard header content -->\n <slot name=\"headerContent\" />\n </template>\n\n <template #footerContent>\n <!-- @slot Slot for the footer content. -->\n <slot name=\"footerContent\" />\n </template>\n </dt-popover>\n</template>\n\n<script setup>\nimport { ref, watch } from 'vue';\nimport { POPOVER_APPEND_TO_VALUES, POPOVER_PADDING_CLASSES, DtPopover } from '@/components/popover/index.js';\nimport { TOOLTIP_DIRECTIONS, TOOLTIP_DELAY_MS } from '@/components/tooltip/index.js';\nimport { getUniqueString } from '@/common/utils';\n\nconst props = defineProps({\n /**\n * Fade transition when the content display is toggled.\n * @type boolean\n * @values true, false\n */\n transition: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls whether the hovercard is shown. Leaving this null will have the hovercard trigger on hover by default.\n * If you set this value, the default trigger behavior will be disabled, and you can control it as you need.\n * Supports .sync modifier\n * @values null, true, false\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * If the popover does not fit in the direction described by \"placement\",\n * it will attempt to change its direction to the \"fallbackPlacements\".\n * @see https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements\"\n */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the popover displays relative to the anchor.\n * @see https://atomiks.github.io/tippyjs/v6/all-props/#placement\"\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'top-start',\n validator (placement) {\n return TOOLTIP_DIRECTIONS.includes(placement);\n },\n },\n\n /**\n * Padding size class for the popover content.\n * @values none, small, medium, large\n */\n padding: {\n type: String,\n default: 'large',\n validator: (padding) => {\n return Object.keys(POPOVER_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Displaces the content box from its anchor element\n * by the specified number of pixels.\n * @see https://atomiks.github.io/tippyjs/v6/all-props/#offset\"\n */\n offset: {\n type: Array,\n default: () => [0, 16],\n },\n\n /**\n * The id of the tooltip\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * Additional class name for the header content wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the footer content wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element.\n */\n dialogClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * The enter delay in milliseconds before the hovercard is shown.\n * @type number\n */\n enterDelay: {\n type: Number,\n default: TOOLTIP_DELAY_MS,\n },\n\n /**\n * The leave delay in milliseconds before the hovercard is hidden.\n * @type number\n */\n leaveDelay: {\n type: Number,\n default: TOOLTIP_DELAY_MS,\n },\n});\n\ndefineEmits([\n /**\n * Emitted when hovercard is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n]);\n\nconst hovercardOpen = ref(props.open);\nconst inTimer = ref(null);\nconst outTimer = ref(null);\n\nwatch(() => props.open, (open) => {\n hovercardOpen.value = open;\n}, { immediate: true });\n\nfunction setInTimer () {\n inTimer.value = setTimeout(() => {\n hovercardOpen.value = true;\n }, props.enterDelay);\n}\n\nfunction setOutTimer () {\n outTimer.value = setTimeout(() => {\n hovercardOpen.value = false;\n }, props.leaveDelay);\n}\n\nfunction onMouseEnter () {\n if (props.open === null) {\n clearTimeout(outTimer.value);\n setInTimer();\n }\n}\n\nfunction onMouseLeave () {\n if (props.open === null) {\n clearTimeout(inTimer.value);\n setOutTimer();\n }\n}\n</script>\n"],"names":["props","__props","hovercardOpen","ref","inTimer","outTimer","watch","open","setInTimer","setOutTimer","onMouseEnter","onMouseLeave"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"hovercard.js","sources":["../../../components/hovercard/hovercard.vue"],"sourcesContent":["<!-- eslint-disable vue/multi-word-component-names -->\n<template>\n <dt-popover\n :id=\"id\"\n ref=\"popover\"\n :open=\"hovercardOpen\"\n :placement=\"placement\"\n :content-class=\"contentClass\"\n :dialog-class=\"dialogClass\"\n :fallback-placements=\"fallbackPlacements\"\n :padding=\"padding\"\n :transition=\"transition ? 'fade' : null\"\n :offset=\"offset\"\n :modal=\"false\"\n initial-focus-element=\"none\"\n :header-class=\"headerClass\"\n :footer-class=\"footerClass\"\n :append-to=\"appendTo\"\n data-qa=\"dt-hovercard\"\n :enter-delay=\"enterDelay\"\n :leave-delay=\"leaveDelay\"\n @opened=\"(e) => ($emit('opened', e))\"\n @mouseenter-popover=\"onMouseEnter\"\n @mouseleave-popover=\"onMouseLeave\"\n @mouseenter-popover-anchor=\"onMouseEnter\"\n @mouseleave-popover-anchor=\"onMouseLeave\"\n >\n <template #anchor=\"{ attrs }\">\n <!-- @slot Anchor element that activates the hovercard. Usually a button. -->\n <slot\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content>\n <!-- @slot Slot for the content that is displayed in the hovercard. -->\n <slot name=\"content\" />\n </template>\n <template #headerContent>\n <!-- @slot Slot for hovercard header content -->\n <slot name=\"headerContent\" />\n </template>\n\n <template #footerContent>\n <!-- @slot Slot for the footer content. -->\n <slot name=\"footerContent\" />\n </template>\n </dt-popover>\n</template>\n\n<script setup>\nimport { ref, watch, nextTick, onMounted, onBeforeUnmount } from 'vue';\nimport { POPOVER_APPEND_TO_VALUES, POPOVER_PADDING_CLASSES, DtPopover } from '@/components/popover/index.js';\nimport { TOOLTIP_DIRECTIONS, TOOLTIP_DELAY_MS } from '@/components/tooltip/index.js';\nimport { getUniqueString } from '@/common/utils';\n\nconst props = defineProps({\n /**\n * Fade transition when the content display is toggled.\n * @type boolean\n * @values true, false\n */\n transition: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls whether the hovercard is shown. Leaving this null will have the hovercard trigger on hover by default.\n * If you set this value, the default trigger behavior will be disabled, and you can control it as you need.\n * Supports .sync modifier\n * @values null, true, false\n */\n open: {\n type: Boolean,\n default: null,\n },\n\n /**\n * If the popover does not fit in the direction described by \"placement\",\n * it will attempt to change its direction to the \"fallbackPlacements\".\n * @see https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements\"\n */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the popover displays relative to the anchor.\n * @see https://atomiks.github.io/tippyjs/v6/all-props/#placement\"\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'top-start',\n validator (placement) {\n return TOOLTIP_DIRECTIONS.includes(placement);\n },\n },\n\n /**\n * Padding size class for the popover content.\n * @values none, small, medium, large\n */\n padding: {\n type: String,\n default: 'large',\n validator: (padding) => {\n return Object.keys(POPOVER_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Displaces the content box from its anchor element\n * by the specified number of pixels.\n * @see https://atomiks.github.io/tippyjs/v6/all-props/#offset\"\n */\n offset: {\n type: Array,\n default: () => [0, 16],\n },\n\n /**\n * The id of the tooltip\n */\n id: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * Additional class name for the header content wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the footer content wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the dialog element.\n */\n dialogClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * The enter delay in milliseconds before the hovercard is shown.\n * @type number\n */\n enterDelay: {\n type: Number,\n default: TOOLTIP_DELAY_MS,\n },\n\n /**\n * The leave delay in milliseconds before the hovercard is hidden.\n * @type number\n */\n leaveDelay: {\n type: Number,\n default: TOOLTIP_DELAY_MS,\n },\n});\n\ndefineEmits([\n /**\n * Emitted when hovercard is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n]);\n\nconst hovercardOpen = ref(props.open);\nconst inTimer = ref(null);\nconst outTimer = ref(null);\nconst anchorEl = ref(null);\nconst observer = ref(null);\nconst popover = ref(null);\n\nonMounted(() => {\n nextTick(() => {\n anchorEl.value = popover.value?.$refs?.anchor?.firstElementChild;\n\n observer.value = new MutationObserver(() => {\n if (anchorEl.value && !anchorEl.value.isConnected) {\n hovercardOpen.value = false;\n }\n });\n\n observer.value.observe(document.body, {\n childList: true,\n subtree: true,\n });\n });\n});\n\nonBeforeUnmount(() => {\n if (observer.value) {\n observer.value.disconnect();\n }\n clearTimeout(inTimer);\n clearTimeout(outTimer);\n});\nwatch(() => props.open, (open) => {\n hovercardOpen.value = open;\n}, { immediate: true });\n\nfunction setInTimer () {\n inTimer.value = setTimeout(() => {\n hovercardOpen.value = true;\n }, props.enterDelay);\n}\n\nfunction setOutTimer () {\n outTimer.value = setTimeout(() => {\n hovercardOpen.value = false;\n }, props.leaveDelay);\n}\n\nfunction onMouseEnter () {\n if (props.open === null) {\n clearTimeout(outTimer.value);\n setInTimer();\n }\n}\n\nfunction onMouseLeave () {\n if (props.open === null) {\n clearTimeout(inTimer.value);\n setOutTimer();\n }\n}\n</script>\n"],"names":["props","__props","hovercardOpen","ref","inTimer","outTimer","anchorEl","observer","popover","onMounted","nextTick","_c","_b","_a","onBeforeUnmount","watch","open","setInTimer","setOutTimer","onMouseEnter","onMouseLeave"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,UAAMA,IAAQC,GA4JRC,IAAgBC,EAAIH,EAAM,IAAI,GAC9BI,IAAUD,EAAI,IAAI,GAClBE,IAAWF,EAAI,IAAI,GACnBG,IAAWH,EAAI,IAAI,GACnBI,IAAWJ,EAAI,IAAI,GACnBK,IAAUL,EAAI,IAAI;AAExB,IAAAM,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAJ,EAAS,SAAQK,KAAAC,KAAAC,IAAAL,EAAQ,UAAR,gBAAAK,EAAe,UAAf,gBAAAD,EAAsB,WAAtB,gBAAAD,EAA8B,mBAE/CJ,EAAS,QAAQ,IAAI,iBAAiB,MAAM;AAC1C,UAAID,EAAS,SAAS,CAACA,EAAS,MAAM,gBACpCJ,EAAc,QAAQ;AAAA,QAE9B,CAAK,GAEDK,EAAS,MAAM,QAAQ,SAAS,MAAM;AAAA,UACpC,WAAW;AAAA,UACX,SAAS;AAAA,QACf,CAAK;AAAA,MACL,CAAG;AAAA,IACH,CAAC,GAEDO,EAAgB,MAAM;AACpB,MAAIP,EAAS,SACXA,EAAS,MAAM,cAEjB,aAAaH,CAAO,GACpB,aAAaC,CAAQ;AAAA,IACvB,CAAC,GACDU,EAAM,MAAMf,EAAM,MAAM,CAACgB,MAAS;AAChC,MAAAd,EAAc,QAAQc;AAAA,IACxB,GAAG,EAAE,WAAW,GAAI,CAAE;AAEtB,aAASC,IAAc;AACrB,MAAAb,EAAQ,QAAQ,WAAW,MAAM;AAC/B,QAAAF,EAAc,QAAQ;AAAA,MAC1B,GAAKF,EAAM,UAAU;AAAA,IACrB;AAEA,aAASkB,IAAe;AACtB,MAAAb,EAAS,QAAQ,WAAW,MAAM;AAChC,QAAAH,EAAc,QAAQ;AAAA,MAC1B,GAAKF,EAAM,UAAU;AAAA,IACrB;AAEA,aAASmB,IAAgB;AACvB,MAAInB,EAAM,SAAS,SACjB,aAAaK,EAAS,KAAK,GAC3BY;IAEJ;AAEA,aAASG,IAAgB;AACvB,MAAIpB,EAAM,SAAS,SACjB,aAAaI,EAAQ,KAAK,GAC1Bc;IAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("overlayscrollbars"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("overlayscrollbars"),a={name:"dt-scrollbar-directive",install(o){l.OverlayScrollbars.plugin(l.ClickScrollPlugin);const t=new WeakMap;o.directive("dt-scrollbar",{mounted(e,r){const s=l.OverlayScrollbars({target:e,elements:{viewport:e.children[0]}},{scrollbars:{autoHide:`${r.arg||"leave"}`,clickScroll:!0,autoHideDelay:`${!r.arg||r.arg==="leave"?0:1300}`}});e.setAttribute("data-overlayscrollbars-initialize",!0),e.classList.add("d-scrollbar"),t.set(e,s)},unmounted(e){t.get(e).destroy()}})}};exports.DtScrollbarDirective=a;exports.default=a;
|
|
2
2
|
//# sourceMappingURL=scrollbar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.cjs","sources":["../../../directives/scrollbar_directive/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (app) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n app.directive('dt-scrollbar', {\n mounted (el, binding) {\n OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":["DtScrollbarDirective","app","OverlayScrollbars","ClickScrollPlugin","el","binding"],"mappings":"iJAEaA,EAAuB,CAClC,KAAM,yBACN,QAASC,EAAK,CACZC,oBAAkB,OAAOC,EAAAA,iBAAiB,
|
|
1
|
+
{"version":3,"file":"scrollbar.cjs","sources":["../../../directives/scrollbar_directive/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (app) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n const instances = new WeakMap();\n app.directive('dt-scrollbar', {\n mounted (el, binding) {\n const os = OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n instances.set(el, os);\n },\n unmounted (el) {\n instances.get(el).destroy();\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":["DtScrollbarDirective","app","OverlayScrollbars","ClickScrollPlugin","instances","el","binding","os"],"mappings":"iJAEaA,EAAuB,CAClC,KAAM,yBACN,QAASC,EAAK,CACZC,oBAAkB,OAAOC,EAAAA,iBAAiB,EAC1C,MAAMC,EAAY,IAAI,QACtBH,EAAI,UAAU,eAAgB,CAC5B,QAASI,EAAIC,EAAS,CACpB,MAAMC,EAAKL,EAAAA,kBAAkB,CAC3B,OAAQG,EACR,SAAU,CACR,SAAUA,EAAG,SAAS,CAAC,CACxB,CACX,EAAW,CACD,WAAY,CACV,SAAU,GAAGC,EAAQ,KAAO,OAAO,GACnC,YAAa,GACb,cAAe,GAAG,CAACA,EAAQ,KAAOA,EAAQ,MAAQ,QAAU,EAAI,IAAI,EACrE,CACX,CAAS,EACDD,EAAG,aAAa,oCAAqC,EAAI,EACzDA,EAAG,UAAU,IAAI,aAAa,EAC9BD,EAAU,IAAIC,EAAIE,CAAE,CACrB,EACD,UAAWF,EAAI,CACbD,EAAU,IAAIC,CAAE,EAAE,QAAO,CAC1B,CACP,CAAK,CACF,CACH"}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { OverlayScrollbars as a, ClickScrollPlugin as
|
|
1
|
+
import { OverlayScrollbars as a, ClickScrollPlugin as s } from "overlayscrollbars";
|
|
2
2
|
const i = {
|
|
3
3
|
name: "dt-scrollbar-directive",
|
|
4
|
-
install(
|
|
5
|
-
a.plugin(
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
install(l) {
|
|
5
|
+
a.plugin(s);
|
|
6
|
+
const e = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
l.directive("dt-scrollbar", {
|
|
8
|
+
mounted(r, t) {
|
|
9
|
+
const o = a({
|
|
8
10
|
target: r,
|
|
9
11
|
elements: {
|
|
10
12
|
viewport: r.children[0]
|
|
11
13
|
}
|
|
12
14
|
}, {
|
|
13
15
|
scrollbars: {
|
|
14
|
-
autoHide: `${
|
|
16
|
+
autoHide: `${t.arg || "leave"}`,
|
|
15
17
|
clickScroll: !0,
|
|
16
|
-
autoHideDelay: `${!
|
|
18
|
+
autoHideDelay: `${!t.arg || t.arg === "leave" ? 0 : 1300}`
|
|
17
19
|
}
|
|
18
|
-
})
|
|
20
|
+
});
|
|
21
|
+
r.setAttribute("data-overlayscrollbars-initialize", !0), r.classList.add("d-scrollbar"), e.set(r, o);
|
|
22
|
+
},
|
|
23
|
+
unmounted(r) {
|
|
24
|
+
e.get(r).destroy();
|
|
19
25
|
}
|
|
20
26
|
});
|
|
21
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.js","sources":["../../../directives/scrollbar_directive/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (app) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n app.directive('dt-scrollbar', {\n mounted (el, binding) {\n OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":["DtScrollbarDirective","app","OverlayScrollbars","ClickScrollPlugin","el","binding"],"mappings":";AAEY,MAACA,IAAuB;AAAA,EAClC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,IAAAC,EAAkB,OAAOC,CAAiB,
|
|
1
|
+
{"version":3,"file":"scrollbar.js","sources":["../../../directives/scrollbar_directive/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (app) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n const instances = new WeakMap();\n app.directive('dt-scrollbar', {\n mounted (el, binding) {\n const os = OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n instances.set(el, os);\n },\n unmounted (el) {\n instances.get(el).destroy();\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":["DtScrollbarDirective","app","OverlayScrollbars","ClickScrollPlugin","instances","el","binding","os"],"mappings":";AAEY,MAACA,IAAuB;AAAA,EAClC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,IAAAC,EAAkB,OAAOC,CAAiB;AAC1C,UAAMC,IAAY,oBAAI;AACtB,IAAAH,EAAI,UAAU,gBAAgB;AAAA,MAC5B,QAASI,GAAIC,GAAS;AACpB,cAAMC,IAAKL,EAAkB;AAAA,UAC3B,QAAQG;AAAA,UACR,UAAU;AAAA,YACR,UAAUA,EAAG,SAAS,CAAC;AAAA,UACxB;AAAA,QACX,GAAW;AAAA,UACD,YAAY;AAAA,YACV,UAAU,GAAGC,EAAQ,OAAO,OAAO;AAAA,YACnC,aAAa;AAAA,YACb,eAAe,GAAG,CAACA,EAAQ,OAAOA,EAAQ,QAAQ,UAAU,IAAI,IAAI;AAAA,UACrE;AAAA,QACX,CAAS;AACD,QAAAD,EAAG,aAAa,qCAAqC,EAAI,GACzDA,EAAG,UAAU,IAAI,aAAa,GAC9BD,EAAU,IAAIC,GAAIE,CAAE;AAAA,MACrB;AAAA,MACD,UAAWF,GAAI;AACb,QAAAD,EAAU,IAAIC,CAAE,EAAE,QAAO;AAAA,MAC1B;AAAA,IACP,CAAK;AAAA,EACF;AACH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hovercard.vue.d.ts","sourceRoot":"","sources":["../../../../components/hovercard/hovercard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hovercard.vue.d.ts","sourceRoot":"","sources":["../../../../components/hovercard/hovercard.vue"],"names":[],"mappings":"AAiDA;;;;;;;qBAgxB6B,GAAG;qBACF,GAAG;2BACG,GAAG;2BACH,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.d.ts","sourceRoot":"","sources":["../../../../directives/scrollbar_directive/scrollbar.js"],"names":[],"mappings":";;IAIE,
|
|
1
|
+
{"version":3,"file":"scrollbar.d.ts","sourceRoot":"","sources":["../../../../directives/scrollbar_directive/scrollbar.js"],"names":[],"mappings":";;IAIE,iCAyBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialpad/dialtone",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.120.0",
|
|
4
4
|
"description": "Dialpad's Dialtone design system monorepo",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"tippy.js": "6.3.7",
|
|
83
83
|
"@dialpad/dialtone-emojis": "1.1.2",
|
|
84
84
|
"@dialpad/dialtone-tokens": "1.43.2",
|
|
85
|
-
"@dialpad/dialtone-icons": "4.
|
|
85
|
+
"@dialpad/dialtone-icons": "4.39.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@commitlint/cli": "^18.4.3",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=`CLICK_TO_CLOSE = Ĉ£īĉʞ †ů ĉ£ůšά
|
|
2
|
-
CLICK_TO_OPEN = Ĉ£īĉʞ †ů ůþάŋ
|
|
3
|
-
ENGLISH = Άŋğ£īšħ
|
|
4
|
-
SPANISH = Šþëŋīšħ
|
|
5
|
-
DIALPADISTAN = Ḍīë£þëḍīš†ëŋ
|
|
6
|
-
SET_LANGUAGE = Šά† £ëŋğøëğά
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Ĉ£ůšά
|
|
9
|
-
.title = Ĉ£ůšά
|
|
10
|
-
`;exports.default=e;
|
|
11
|
-
//# sourceMappingURL=dp-DP.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dp-DP.cjs","sources":["../../localization/dp-DP.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Ĉ£īĉʞ †ů ĉ£ůšά\\nCLICK_TO_OPEN = Ĉ£īĉʞ †ů ůþάŋ\\nENGLISH = Άŋğ£īšħ\\nSPANISH = Šþëŋīšħ\\nDIALPADISTAN = Ḍīë£þëḍīš†ëŋ\\nSET_LANGUAGE = Šά† £ëŋğøëğά\\nCLOSE_BUTTON =\\n .aria-label = Ĉ£ůšά\\n .title = Ĉ£ůšά\\n\""],"names":["dpDP"],"mappings":"4GAAA,MAAeA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const n = `CLICK_TO_CLOSE = Ĉ£īĉʞ †ů ĉ£ůšά
|
|
2
|
-
CLICK_TO_OPEN = Ĉ£īĉʞ †ů ůþάŋ
|
|
3
|
-
ENGLISH = Άŋğ£īšħ
|
|
4
|
-
SPANISH = Šþëŋīšħ
|
|
5
|
-
DIALPADISTAN = Ḍīë£þëḍīš†ëŋ
|
|
6
|
-
SET_LANGUAGE = Šά† £ëŋğøëğά
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Ĉ£ůšά
|
|
9
|
-
.title = Ĉ£ůšά
|
|
10
|
-
`;
|
|
11
|
-
export {
|
|
12
|
-
n as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=dp-DP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dp-DP.js","sources":["../../localization/dp-DP.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Ĉ£īĉʞ †ů ĉ£ůšά\\nCLICK_TO_OPEN = Ĉ£īĉʞ †ů ůþάŋ\\nENGLISH = Άŋğ£īšħ\\nSPANISH = Šþëŋīšħ\\nDIALPADISTAN = Ḍīë£þëḍīš†ëŋ\\nSET_LANGUAGE = Šά† £ëŋğøëğά\\nCLOSE_BUTTON =\\n .aria-label = Ĉ£ůšά\\n .title = Ĉ£ůšά\\n\""],"names":["dpDP"],"mappings":"AAAA,MAAeA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=`CLICK_TO_CLOSE = Click to close
|
|
2
|
-
CLICK_TO_OPEN = Click to open
|
|
3
|
-
ENGLISH = English
|
|
4
|
-
SPANISH = Spanish
|
|
5
|
-
DIALPADISTAN = Dialpadistan
|
|
6
|
-
SET_LANGUAGE = Set language
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Close
|
|
9
|
-
.title = Close
|
|
10
|
-
`;exports.default=e;
|
|
11
|
-
//# sourceMappingURL=en-US.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.cjs","sources":["../../localization/en-US.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Click to close\\nCLICK_TO_OPEN = Click to open\\nENGLISH = English\\nSPANISH = Spanish\\nDIALPADISTAN = Dialpadistan\\nSET_LANGUAGE = Set language\\nCLOSE_BUTTON =\\n .aria-label = Close\\n .title = Close\\n\""],"names":["enUS"],"mappings":"4GAAA,MAAeA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const n = `CLICK_TO_CLOSE = Click to close
|
|
2
|
-
CLICK_TO_OPEN = Click to open
|
|
3
|
-
ENGLISH = English
|
|
4
|
-
SPANISH = Spanish
|
|
5
|
-
DIALPADISTAN = Dialpadistan
|
|
6
|
-
SET_LANGUAGE = Set language
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Close
|
|
9
|
-
.title = Close
|
|
10
|
-
`;
|
|
11
|
-
export {
|
|
12
|
-
n as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=en-US.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.js","sources":["../../localization/en-US.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Click to close\\nCLICK_TO_OPEN = Click to open\\nENGLISH = English\\nSPANISH = Spanish\\nDIALPADISTAN = Dialpadistan\\nSET_LANGUAGE = Set language\\nCLOSE_BUTTON =\\n .aria-label = Close\\n .title = Close\\n\""],"names":["enUS"],"mappings":"AAAA,MAAeA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=`CLICK_TO_CLOSE = Click para cerrar
|
|
2
|
-
CLICK_TO_OPEN = Click para abrir
|
|
3
|
-
ENGLISH = Inglés
|
|
4
|
-
SPANISH = Español
|
|
5
|
-
DIALPADISTAN = Dialpadistan
|
|
6
|
-
SET_LANGUAGE = Cambiar idioma
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Cerrar
|
|
9
|
-
.title = Cerrar
|
|
10
|
-
`;exports.default=a;
|
|
11
|
-
//# sourceMappingURL=es-LA.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es-LA.cjs","sources":["../../localization/es-LA.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Click para cerrar\\nCLICK_TO_OPEN = Click para abrir\\nENGLISH = Inglés\\nSPANISH = Español\\nDIALPADISTAN = Dialpadistan\\nSET_LANGUAGE = Cambiar idioma\\nCLOSE_BUTTON =\\n .aria-label = Cerrar\\n .title = Cerrar\\n\""],"names":["esLA"],"mappings":"4GAAA,MAAeA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const a = `CLICK_TO_CLOSE = Click para cerrar
|
|
2
|
-
CLICK_TO_OPEN = Click para abrir
|
|
3
|
-
ENGLISH = Inglés
|
|
4
|
-
SPANISH = Español
|
|
5
|
-
DIALPADISTAN = Dialpadistan
|
|
6
|
-
SET_LANGUAGE = Cambiar idioma
|
|
7
|
-
CLOSE_BUTTON =
|
|
8
|
-
.aria-label = Cerrar
|
|
9
|
-
.title = Cerrar
|
|
10
|
-
`;
|
|
11
|
-
export {
|
|
12
|
-
a as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=es-LA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es-LA.js","sources":["../../localization/es-LA.ftl?raw"],"sourcesContent":["export default \"CLICK_TO_CLOSE = Click para cerrar\\nCLICK_TO_OPEN = Click para abrir\\nENGLISH = Inglés\\nSPANISH = Español\\nDIALPADISTAN = Dialpadistan\\nSET_LANGUAGE = Cambiar idioma\\nCLOSE_BUTTON =\\n .aria-label = Cerrar\\n .title = Cerrar\\n\""],"names":["esLA"],"mappings":"AAAA,MAAeA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@dialpad/i18n-vue2"),c=(l,e,o)=>{const n=l[e];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((t,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},i={ENGLISH:"en-US",DIALPADISTAN:"dp-DP",SPANISH:"es-LA"},u={async install(l){const e=Object.values(i),o="dialtone",n=new r.RawBundleSource({resources:await r.RawBundleSource.dynamicResources(e.map(s=>[s,o,c(Object.assign({"./dp-DP.ftl":()=>Promise.resolve().then(()=>require("./dp-DP.cjs")),"./en-US.ftl":()=>Promise.resolve().then(()=>require("./en-US.cjs")),"./es-LA.ftl":()=>Promise.resolve().then(()=>require("./es-LA.cjs"))}),`./${s}.ftl`,2)]))}),t=e[0],a=new r.LocaleManager({bundleSource:n,preferredLocale:t,allowedLocales:e,fallbackLocale:t,namespaces:[o]});await a.ready,l.use(a)}};exports.DialtoneLocalizationPlugin=u;exports.allowedLocales=i;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource } from '@dialpad/i18n-vue2';\n\n/**\n * @type {{[key: string]: string}}\n */\nexport const allowedLocales = {\n ENGLISH: 'en-US',\n DIALPADISTAN: 'dp-DP',\n SPANISH: 'es-LA',\n};\n\nexport const DialtoneLocalizationPlugin = {\n async install (Vue) {\n const locales = Object.values(allowedLocales);\n const dialtoneNamespace = 'dialtone';\n const bundleSource = new RawBundleSource({\n resources: await RawBundleSource.dynamicResources(\n locales.map(locale => [locale, dialtoneNamespace, import(`./${locale}.ftl?raw`)]),\n ),\n });\n const preferredLocale = locales[0];\n\n const manager = new LocaleManager({\n bundleSource,\n preferredLocale,\n allowedLocales: locales,\n fallbackLocale: preferredLocale,\n namespaces: [dialtoneNamespace],\n });\n\n await manager.ready;\n\n Vue.use(manager);\n },\n};\n"],"names":["allowedLocales","DialtoneLocalizationPlugin","Vue","locales","dialtoneNamespace","bundleSource","RawBundleSource","locale","__variableDynamicImportRuntimeHelper","preferredLocale","manager","LocaleManager"],"mappings":"ubAKaA,EAAiB,CAC5B,QAAS,QACT,aAAc,QACd,QAAS,OACX,EAEaC,EAA6B,CACxC,MAAM,QAASC,EAAK,CAClB,MAAMC,EAAU,OAAO,OAAOH,CAAc,EACtCI,EAAoB,WACpBC,EAAe,IAAIC,kBAAgB,CACvC,UAAW,MAAMA,EAAAA,gBAAgB,iBAC/BH,EAAQ,IAAII,GAAU,CAACA,EAAQH,EAAmBI,kOAAA,KAAAD,CAAA,OAAA,CAAA,CAA6B,CAAC,CACjF,CACP,CAAK,EACKE,EAAkBN,EAAQ,CAAC,EAE3BO,EAAU,IAAIC,gBAAc,CAChC,aAAAN,EACA,gBAAAI,EACA,eAAgBN,EAChB,eAAgBM,EAChB,WAAY,CAACL,CAAiB,CACpC,CAAK,EAED,MAAMM,EAAQ,MAEdR,EAAI,IAAIQ,CAAO,CAChB,CACH"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RawBundleSource as s, LocaleManager as i } from "@dialpad/i18n-vue2";
|
|
2
|
-
const c = (t, e, o) => {
|
|
3
|
-
const n = t[e];
|
|
4
|
-
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((l, a) => {
|
|
5
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
6
|
-
a.bind(
|
|
7
|
-
null,
|
|
8
|
-
new Error(
|
|
9
|
-
"Unknown variable dynamic import: " + e + (e.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
|
|
10
|
-
)
|
|
11
|
-
)
|
|
12
|
-
);
|
|
13
|
-
});
|
|
14
|
-
}, u = {
|
|
15
|
-
ENGLISH: "en-US",
|
|
16
|
-
DIALPADISTAN: "dp-DP",
|
|
17
|
-
SPANISH: "es-LA"
|
|
18
|
-
}, p = {
|
|
19
|
-
async install(t) {
|
|
20
|
-
const e = Object.values(u), o = "dialtone", n = new s({
|
|
21
|
-
resources: await s.dynamicResources(
|
|
22
|
-
e.map((r) => [r, o, c(/* @__PURE__ */ Object.assign({ "./dp-DP.ftl": () => import("./dp-DP.js"), "./en-US.ftl": () => import("./en-US.js"), "./es-LA.ftl": () => import("./es-LA.js") }), `./${r}.ftl`, 2)])
|
|
23
|
-
)
|
|
24
|
-
}), l = e[0], a = new i({
|
|
25
|
-
bundleSource: n,
|
|
26
|
-
preferredLocale: l,
|
|
27
|
-
allowedLocales: e,
|
|
28
|
-
fallbackLocale: l,
|
|
29
|
-
namespaces: [o]
|
|
30
|
-
});
|
|
31
|
-
await a.ready, t.use(a);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
p as DialtoneLocalizationPlugin,
|
|
36
|
-
u as allowedLocales
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../localization/index.js"],"sourcesContent":["import { LocaleManager, RawBundleSource } from '@dialpad/i18n-vue2';\n\n/**\n * @type {{[key: string]: string}}\n */\nexport const allowedLocales = {\n ENGLISH: 'en-US',\n DIALPADISTAN: 'dp-DP',\n SPANISH: 'es-LA',\n};\n\nexport const DialtoneLocalizationPlugin = {\n async install (Vue) {\n const locales = Object.values(allowedLocales);\n const dialtoneNamespace = 'dialtone';\n const bundleSource = new RawBundleSource({\n resources: await RawBundleSource.dynamicResources(\n locales.map(locale => [locale, dialtoneNamespace, import(`./${locale}.ftl?raw`)]),\n ),\n });\n const preferredLocale = locales[0];\n\n const manager = new LocaleManager({\n bundleSource,\n preferredLocale,\n allowedLocales: locales,\n fallbackLocale: preferredLocale,\n namespaces: [dialtoneNamespace],\n });\n\n await manager.ready;\n\n Vue.use(manager);\n },\n};\n"],"names":["allowedLocales","DialtoneLocalizationPlugin","Vue","locales","dialtoneNamespace","bundleSource","RawBundleSource","locale","__variableDynamicImportRuntimeHelper","preferredLocale","manager","LocaleManager"],"mappings":";;;;;;;;;;;;;GAKaA,IAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,cAAc;AAAA,EACd,SAAS;AACX,GAEaC,IAA6B;AAAA,EACxC,MAAM,QAASC,GAAK;AAClB,UAAMC,IAAU,OAAO,OAAOH,CAAc,GACtCI,IAAoB,YACpBC,IAAe,IAAIC,EAAgB;AAAA,MACvC,WAAW,MAAMA,EAAgB;AAAA,QAC/BH,EAAQ,IAAI,CAAAI,MAAU,CAACA,GAAQH,GAAmBI,sKAAA,KAAAD,CAAA,QAAA,CAAA,CAA6B,CAAC;AAAA,MACjF;AAAA,IACP,CAAK,GACKE,IAAkBN,EAAQ,CAAC,GAE3BO,IAAU,IAAIC,EAAc;AAAA,MAChC,cAAAN;AAAA,MACA,iBAAAI;AAAA,MACA,gBAAgBN;AAAA,MAChB,gBAAgBM;AAAA,MAChB,YAAY,CAACL,CAAiB;AAAA,IACpC,CAAK;AAED,UAAMM,EAAQ,OAEdR,EAAI,IAAIQ,CAAO;AAAA,EAChB;AACH;"}
|