@adyen/bento-vue2 1.1.0 → 1.1.1
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/accordion.js +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +48 -41
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.e7630a1d.js → base-button.16e8bb2c.js} +2 -2
- package/dist/chunks/{base-button.e7630a1d.js.map → base-button.16e8bb2c.js.map} +1 -1
- package/dist/chunks/{button-actions.03751d96.js → button-actions.bcaea94e.js} +2 -2
- package/dist/chunks/{button-actions.03751d96.js.map → button-actions.bcaea94e.js.map} +1 -1
- package/dist/chunks/{button.f64585fc.js → button.34695c2c.js} +2 -2
- package/dist/chunks/{button.f64585fc.js.map → button.34695c2c.js.map} +1 -1
- package/dist/chunks/{calendar.c9cfce76.js → calendar.a32d5783.js} +4 -4
- package/dist/chunks/{calendar.c9cfce76.js.map → calendar.a32d5783.js.map} +1 -1
- package/dist/chunks/{checkbox.27fae2af.js → checkbox.5d8f5768.js} +3 -3
- package/dist/chunks/{checkbox.27fae2af.js.map → checkbox.5d8f5768.js.map} +1 -1
- package/dist/chunks/{controls-group.e4745546.js → controls-group.e607b021.js} +2 -2
- package/dist/chunks/{controls-group.e4745546.js.map → controls-group.e607b021.js.map} +1 -1
- package/dist/chunks/{copy.888486ff.js → copy.f49481e9.js} +3 -3
- package/dist/chunks/{copy.888486ff.js.map → copy.f49481e9.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.e425fc5b.js → dropdown-default-textbox.b7a68bb4.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.e425fc5b.js.map → dropdown-default-textbox.b7a68bb4.js.map} +1 -1
- package/dist/chunks/{dropdown.e298bb6c.js → dropdown.0c80d6c1.js} +21 -21
- package/dist/chunks/{dropdown.e298bb6c.js.map → dropdown.0c80d6c1.js.map} +1 -1
- package/dist/chunks/{error-message.4269d92b.js → error-message.fa27bee9.js} +2 -2
- package/dist/chunks/{error-message.4269d92b.js.map → error-message.fa27bee9.js.map} +1 -1
- package/dist/chunks/{index.ada08445.js → index.16f60189.js} +6 -6
- package/dist/chunks/{index.ada08445.js.map → index.16f60189.js.map} +1 -1
- package/dist/chunks/{index.e1fcc9e0.js → index.2066e16f.js} +2 -2
- package/dist/chunks/{index.e1fcc9e0.js.map → index.2066e16f.js.map} +1 -1
- package/dist/chunks/{index.7bbd6611.js → index.36bd0bb1.js} +3 -3
- package/dist/chunks/{index.7bbd6611.js.map → index.36bd0bb1.js.map} +1 -1
- package/dist/chunks/{index.96e2f563.js → index.695c11ef.js} +2 -2
- package/dist/chunks/{index.96e2f563.js.map → index.695c11ef.js.map} +1 -1
- package/dist/chunks/{index.8d590c55.js → index.875ba379.js} +2 -2
- package/dist/chunks/{index.8d590c55.js.map → index.875ba379.js.map} +1 -1
- package/dist/chunks/{index.bc51abe9.js → index.ec1c7120.js} +19 -19
- package/dist/chunks/{index.bc51abe9.js.map → index.ec1c7120.js.map} +1 -1
- package/dist/chunks/{index.4ec4409f.js → index.f55a6913.js} +3 -3
- package/dist/chunks/{index.4ec4409f.js.map → index.f55a6913.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.aae99730.js → listbox-option-tag.ac8eae9a.js} +3 -3
- package/dist/chunks/{listbox-option-tag.aae99730.js.map → listbox-option-tag.ac8eae9a.js.map} +1 -1
- package/dist/chunks/{listbox.99d23071.js → listbox.4ea4114c.js} +5 -5
- package/dist/chunks/{listbox.99d23071.js.map → listbox.4ea4114c.js.map} +1 -1
- package/dist/chunks/{loading-button.f7768964.js → loading-button.3fa1b7a8.js} +2 -2
- package/dist/chunks/{loading-button.f7768964.js.map → loading-button.3fa1b7a8.js.map} +1 -1
- package/dist/chunks/{tooltip.1e7cda50.js → tooltip.807205c0.js} +2 -2
- package/dist/chunks/{tooltip.1e7cda50.js.map → tooltip.807205c0.js.map} +1 -1
- package/dist/code-snippet.js +6 -6
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +7 -7
- package/dist/date-picker.js +21 -21
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +13 -13
- package/dist/focus-trap.js +1 -1
- package/dist/header.js +3 -3
- package/dist/index.js +13 -13
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +4 -4
- package/dist/internal.js +6 -6
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +4 -4
- package/dist/modal.js +5 -5
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/status.js +2 -2
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +2 -2
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +5 -5
- package/dist/toast.js +2 -2
- package/dist/toggle.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +2 -2
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.1e7cda50.js","sources":["../../src/directives/tooltip/tooltip.types.ts","../../src/types/utils-events.ts","../../src/components/tooltip/tooltip.vue","../../src/directives/tooltip/tooltip.ts"],"sourcesContent":["import { PopperContainerPositionBasic } from '@/components/popper-container';\nimport type { DirectiveBinding } from 'vue/types/options';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n","import Vue from 'vue';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","<template>\n <popper-container\n :id=\"id\"\n :target-element=\"targetElement\"\n :position=\"position\"\n :offset=\"[0, 4]\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :aria-hidden=\"!isShown\"\n :class=\"conditionalClasses\"\n :tabindex=\"tabIndex\"\n class=\"b-tooltip\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :fallback-position=\"PopperContainerPositionExtended.AUTO\"\n >\n <bento-typography :el=\"BentoTypographyElement.SPAN\" :variant=\"BentoTypographyVariant.CAPTION\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from '@/directives/tooltip/tooltip.types';\n import {\n PopperContainer,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n } from '@/components/popper-container';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { VueNodeElement } from '@/types';\n\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export const Tooltip = {\n name: 'tooltip',\n components: { BentoTypography, PopperContainer },\n props: {\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n },\n setup(props) {\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n\n const tabIndex = computed((): number => (props.isShown ? 1 : -1));\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n\n // Values\n conditionalClasses,\n tabIndex,\n };\n },\n };\n\n export default defineComponent(Tooltip);\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipDirectiveBinding, BentoTooltipPosition } from './tooltip.types';\nimport { createApp, h, isVue2, Vue2 } from 'vue-demi';\nimport BentoTooltip from '@/components/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(BentoTooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { BentoTooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(BentoTooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n document.body.removeChild(tooltip.$el);\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n document.body.removeChild(tooltipVNode);\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n el.after(tooltip.$el);\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', show),\n listen(el, 'blur', hide),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition","PopperContainerPositionBasic","BentoTooltipState","BentoTooltipState2","EventKey","EventKey2","KeyCode","KeyCode2","Tooltip","BentoTypography","PopperContainer","value","props","conditionalClasses","computed","tabIndex","BentoTypographyElement","BentoTypographyVariant","PopperContainerAriaRole","PopperContainerPositionExtended","_sfc_main","defineComponent","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltip","open","tooltipProps","reactive","createTooltip","el","TooltipComponent","Vue2","BentoTooltip","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","nextTick","hideTooltip","_b","_a","_d","_c","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","BentoTooltipDirective"],"mappings":";;;;;;;;AAGa,MAAAA,IAAA,EAAA,GAAA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,EAC3B,OAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
|
|
1
|
+
{"version":3,"file":"tooltip.807205c0.js","sources":["../../src/directives/tooltip/tooltip.types.ts","../../src/types/utils-events.ts","../../src/components/tooltip/tooltip.vue","../../src/directives/tooltip/tooltip.ts"],"sourcesContent":["import { PopperContainerPositionBasic } from '@/components/popper-container';\nimport type { DirectiveBinding } from 'vue/types/options';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n","import Vue from 'vue';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","<template>\n <popper-container\n :id=\"id\"\n :target-element=\"targetElement\"\n :position=\"position\"\n :offset=\"[0, 4]\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :aria-hidden=\"!isShown\"\n :class=\"conditionalClasses\"\n :tabindex=\"tabIndex\"\n class=\"b-tooltip\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :fallback-position=\"PopperContainerPositionExtended.AUTO\"\n >\n <bento-typography :el=\"BentoTypographyElement.SPAN\" :variant=\"BentoTypographyVariant.CAPTION\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from '@/directives/tooltip/tooltip.types';\n import {\n PopperContainer,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n } from '@/components/popper-container';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { VueNodeElement } from '@/types';\n\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export const Tooltip = {\n name: 'tooltip',\n components: { BentoTypography, PopperContainer },\n props: {\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n },\n setup(props) {\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n\n const tabIndex = computed((): number => (props.isShown ? 1 : -1));\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n\n // Values\n conditionalClasses,\n tabIndex,\n };\n },\n };\n\n export default defineComponent(Tooltip);\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipDirectiveBinding, BentoTooltipPosition } from './tooltip.types';\nimport { createApp, h, isVue2, Vue2 } from 'vue-demi';\nimport BentoTooltip from '@/components/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(BentoTooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { BentoTooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(BentoTooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n document.body.removeChild(tooltip.$el);\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n document.body.removeChild(tooltipVNode);\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n el.after(tooltip.$el);\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', show),\n listen(el, 'blur', hide),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition","PopperContainerPositionBasic","BentoTooltipState","BentoTooltipState2","EventKey","EventKey2","KeyCode","KeyCode2","Tooltip","BentoTypography","PopperContainer","value","props","conditionalClasses","computed","tabIndex","BentoTypographyElement","BentoTypographyVariant","PopperContainerAriaRole","PopperContainerPositionExtended","_sfc_main","defineComponent","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltip","open","tooltipProps","reactive","createTooltip","el","TooltipComponent","Vue2","BentoTooltip","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","nextTick","hideTooltip","_b","_a","_d","_c","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","Bento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A;AAG7B,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,OAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
|
package/dist/code-snippet.js
CHANGED
|
@@ -7,14 +7,14 @@ import { json as qe } from "@codemirror/lang-json";
|
|
|
7
7
|
import { xml as Xe } from "@codemirror/lang-xml";
|
|
8
8
|
import { javascript as $e } from "@codemirror/lang-javascript";
|
|
9
9
|
import { java as Ye } from "@codemirror/lang-java";
|
|
10
|
-
import { B as Qe } from "./chunks/dropdown.
|
|
11
|
-
import { B as Ze, a as et } from "./chunks/button.
|
|
12
|
-
import { B as tt, a as nt } from "./chunks/index.
|
|
10
|
+
import { B as Qe } from "./chunks/dropdown.0c80d6c1.js";
|
|
11
|
+
import { B as Ze, a as et } from "./chunks/button.34695c2c.js";
|
|
12
|
+
import { B as tt, a as nt } from "./chunks/index.2066e16f.js";
|
|
13
13
|
import { u as rt } from "./chunks/i18n.155748d6.js";
|
|
14
|
-
import { C as it } from "./chunks/copy.
|
|
15
|
-
import { b as st } from "./chunks/tooltip.
|
|
14
|
+
import { C as it } from "./chunks/copy.f49481e9.js";
|
|
15
|
+
import { b as st } from "./chunks/tooltip.807205c0.js";
|
|
16
16
|
import { n as lt } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
17
|
-
import "./assets/
|
|
17
|
+
import "./assets/index2.css";
|
|
18
18
|
const ot = 1024;
|
|
19
19
|
let at = 0;
|
|
20
20
|
class _ {
|
package/dist/country.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as t, computed as c, watch as k, defineComponent as N, toRefs as m } from "vue";
|
|
2
|
-
import { B as g, a as K } from "./chunks/index.
|
|
2
|
+
import { B as g, a as K } from "./chunks/index.2066e16f.js";
|
|
3
3
|
import { u as B } from "./chunks/i18n.155748d6.js";
|
|
4
4
|
import I from "@adyen/ui-assets-flag-icons/vue/zz";
|
|
5
5
|
import { n as P } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import "./assets/
|
|
6
|
+
import "./assets/index3.css";
|
|
7
7
|
const A = {
|
|
8
8
|
"en-US": {
|
|
9
9
|
BD: "Dhaka",
|
package/dist/currency.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, computed as F } from "vue";
|
|
2
|
-
import { B as G, b as E, a as i } from "./chunks/index.
|
|
2
|
+
import { B as G, b as E, a as i } from "./chunks/index.2066e16f.js";
|
|
3
3
|
import { g as U } from "./chunks/get-slot-text.e5c766d0.js";
|
|
4
4
|
import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
5
|
const p = [
|
package/dist/data-grid.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { ref as O, onMounted as Ce, nextTick as z, watch as ve, onUnmounted as me, reactive as K, toRefs as ee, computed as E, watchEffect as et, defineComponent as X, toRef as be } from "vue";
|
|
2
2
|
import { o as pe } from "./chunks/resize.a041304d.js";
|
|
3
3
|
import { u as tt } from "./chunks/aria-label.ac9651a5.js";
|
|
4
|
-
import { B as he } from "./chunks/checkbox.
|
|
4
|
+
import { B as he } from "./chunks/checkbox.5d8f5768.js";
|
|
5
5
|
import { BentoPagination as nt } from "./pagination.js";
|
|
6
6
|
import { BentoLoadingIndicator as st } from "./loading-indicator.js";
|
|
7
|
-
import { B as te, a as q, b as ne } from "./chunks/index.
|
|
7
|
+
import { B as te, a as q, b as ne } from "./chunks/index.2066e16f.js";
|
|
8
8
|
import { g as it } from "./chunks/get-slot-text.e5c766d0.js";
|
|
9
9
|
import { u as Se } from "./chunks/i18n.155748d6.js";
|
|
10
10
|
import { BentoFilterBar as J } from "./filter-bar.js";
|
|
11
11
|
import { BentoInfoIcon as lt } from "./info-icon.js";
|
|
12
12
|
import { BentoMenu as ot } from "./menu.js";
|
|
13
13
|
import { BentoPopoverPositions as Le, BentoPopover as at } from "./popover.js";
|
|
14
|
-
import { a as ye, B as rt } from "./chunks/button.
|
|
15
|
-
import { K as D } from "./chunks/tooltip.
|
|
14
|
+
import { a as ye, B as rt } from "./chunks/button.34695c2c.js";
|
|
15
|
+
import { K as D } from "./chunks/tooltip.807205c0.js";
|
|
16
16
|
import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
17
17
|
import { l as le } from "./chunks/events.58c00e6d.js";
|
|
18
|
-
import { B as Ee, A as Re } from "./chunks/index.
|
|
18
|
+
import { B as Ee, A as Re } from "./chunks/index.f55a6913.js";
|
|
19
19
|
import { BentoSearchBar as dt } from "./search-bar.js";
|
|
20
|
-
import { u as ct } from "./chunks/dropdown.
|
|
20
|
+
import { u as ct } from "./chunks/dropdown.0c80d6c1.js";
|
|
21
21
|
import { C as ut } from "./chunks/cross.a2cadac5.js";
|
|
22
22
|
import { S as _t } from "./chunks/search.a8055e95.js";
|
|
23
23
|
import { g as gt } from "./chunks/unique-id.a2a2b458.js";
|
|
24
24
|
import { B as ft } from "./chunks/directive.0408e565.js";
|
|
25
|
-
import "./assets/
|
|
25
|
+
import "./assets/index4.css";
|
|
26
26
|
const Ct = ({
|
|
27
27
|
paginationRef: t,
|
|
28
28
|
fitContent: e
|
package/dist/date-picker.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ref as u, computed as p, defineComponent as M, watch as q, toRef as F, nextTick as T } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { BentoPopover as L, BentoPopoverPositions as W } from "./popover.js";
|
|
2
|
+
import { BentoPopover as Y, BentoPopoverPositions as L } from "./popover.js";
|
|
4
3
|
import { g as d } from "./chunks/unique-id.a2a2b458.js";
|
|
5
|
-
import { B as
|
|
4
|
+
import { B as W, a as $, b as K } from "./chunks/index.2066e16f.js";
|
|
6
5
|
import { u as x } from "./chunks/i18n.155748d6.js";
|
|
7
|
-
import { f as E } from "./chunks/index.
|
|
8
|
-
import { e as _, d as
|
|
9
|
-
import { D as B, v as
|
|
10
|
-
import { d as
|
|
11
|
-
import { C as k } from "./chunks/calendar.
|
|
12
|
-
import { b as Se } from "./chunks/calendar.
|
|
13
|
-
import {
|
|
6
|
+
import { f as E } from "./chunks/index.875ba379.js";
|
|
7
|
+
import { e as _, d as j, f as z } from "./chunks/index.f55fdc32.js";
|
|
8
|
+
import { D as B, v as G, f as H } from "./chunks/date-input.9186a0bf.js";
|
|
9
|
+
import { d as J } from "./chunks/debounce.f8d92e44.js";
|
|
10
|
+
import { C as k } from "./chunks/calendar.a32d5783.js";
|
|
11
|
+
import { b as Se } from "./chunks/calendar.a32d5783.js";
|
|
12
|
+
import { c as Q } from "./chunks/dropdown-default-textbox.b7a68bb4.js";
|
|
13
|
+
import { E as X } from "./chunks/error-message.fa27bee9.js";
|
|
14
14
|
import { B as Z } from "./chunks/directive.0408e565.js";
|
|
15
15
|
import { n as ee } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
16
|
-
import "./assets/
|
|
16
|
+
import "./assets/index6.css";
|
|
17
17
|
var i = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(i || {});
|
|
18
18
|
const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
|
|
19
|
-
const { locale: t, t: n } = x(), f = { de:
|
|
19
|
+
const { locale: t, t: n } = x(), f = { de: j, enUS: _, fr: z }, l = u(null);
|
|
20
20
|
return {
|
|
21
21
|
// Values
|
|
22
22
|
dateDisplayValue: p(() => e.value ? l.value : a.value ? E(a.value, B.FULL_DATE, {
|
|
@@ -44,11 +44,11 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
|
|
|
44
44
|
i18n: { messages: te },
|
|
45
45
|
name: "bento-date-picker",
|
|
46
46
|
components: {
|
|
47
|
-
BentoTypography:
|
|
48
|
-
BentoPopover:
|
|
47
|
+
BentoTypography: W,
|
|
48
|
+
BentoPopover: Y,
|
|
49
49
|
Calendar: k,
|
|
50
50
|
ErrorMessage: X,
|
|
51
|
-
DropdownInputDefault:
|
|
51
|
+
DropdownInputDefault: Q
|
|
52
52
|
},
|
|
53
53
|
directives: { BentoClickOutsideDirective: Z },
|
|
54
54
|
props: {
|
|
@@ -114,8 +114,8 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
|
|
|
114
114
|
}, V = async () => {
|
|
115
115
|
o.value && (o.value = !1, c.value = null), e(i.INPUT, null);
|
|
116
116
|
}, A = (r) => {
|
|
117
|
-
|
|
118
|
-
}, U =
|
|
117
|
+
G(r);
|
|
118
|
+
}, U = J((r) => {
|
|
119
119
|
if (r.length < 10)
|
|
120
120
|
return;
|
|
121
121
|
/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(r) && N(new Date(r)) ? (o.value = !1, e(i.INPUT, new Date(r))) : r && (o.value = !0, e(i.INPUT, null));
|
|
@@ -139,9 +139,9 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
|
|
|
139
139
|
ariaDescribedBy: w,
|
|
140
140
|
textInputValue: c,
|
|
141
141
|
// Enums
|
|
142
|
-
BentoTypographyElement:
|
|
143
|
-
BentoTypographyVariant:
|
|
144
|
-
BentoPopoverPositions:
|
|
142
|
+
BentoTypographyElement: $,
|
|
143
|
+
BentoTypographyVariant: K,
|
|
144
|
+
BentoPopoverPositions: L,
|
|
145
145
|
// Events
|
|
146
146
|
closeDatePicker: P,
|
|
147
147
|
clearDatePickerValue: V,
|
|
@@ -149,7 +149,7 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
|
|
|
149
149
|
openDatePicker: C,
|
|
150
150
|
onDateKeyDown: A,
|
|
151
151
|
onDateInputChange: (r) => {
|
|
152
|
-
c.value =
|
|
152
|
+
c.value = H(r), U(c.value);
|
|
153
153
|
},
|
|
154
154
|
// Keyboard navigation
|
|
155
155
|
onSpaceBarOrEnter: async (r) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as t, a as r } from "./chunks/index.
|
|
2
|
-
import { b as o } from "./chunks/calendar.
|
|
1
|
+
import { B as t, a as r } from "./chunks/index.ec1c7120.js";
|
|
2
|
+
import { b as o } from "./chunks/calendar.a32d5783.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BentoDateRangePicker,
|
|
5
5
|
r as BentoDateRangePickerEvent,
|
package/dist/date.js
CHANGED
package/dist/divider.js
CHANGED
package/dist/dropdown.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as s } from "./chunks/dropdown.
|
|
1
|
+
import { B as s } from "./chunks/dropdown.0c80d6c1.js";
|
|
2
2
|
import { defineComponent as a, computed as c, toRefs as m } from "vue";
|
|
3
|
-
import { B as f, L as l } from "./chunks/listbox-option-tag.
|
|
3
|
+
import { B as f, L as l } from "./chunks/listbox-option-tag.ac8eae9a.js";
|
|
4
4
|
import { n as u } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
5
|
import { BentoCountry as y, BentoCountryVariant as _ } from "./country.js";
|
|
6
6
|
import { u as v } from "./chunks/useCountryItems.5d7b436e.js";
|
|
7
7
|
import { BentoPaymentMethod as b } from "./payment-method.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index13.css";
|
|
9
9
|
const w = a({
|
|
10
10
|
name: "bento-dropdown-avatar",
|
|
11
11
|
components: {
|
package/dist/filter-bar.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { n as T } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
2
2
|
import { defineComponent as E, computed as i, ref as A, watch as Z, toRef as P, onBeforeUpdate as te, nextTick as pe, reactive as _e, toRefs as Le, onMounted as Me } from "vue";
|
|
3
|
-
import { a as le, B as be } from "./chunks/button.
|
|
3
|
+
import { a as le, B as be } from "./chunks/button.34695c2c.js";
|
|
4
4
|
import { BentoPopover as ue, BentoPopoverPositions as we } from "./popover.js";
|
|
5
5
|
import { u as Y } from "./chunks/i18n.155748d6.js";
|
|
6
6
|
import { g as ae } from "./chunks/unique-id.a2a2b458.js";
|
|
7
|
-
import { B as ne, a as se, b as oe } from "./chunks/index.
|
|
7
|
+
import { B as ne, a as se, b as oe } from "./chunks/index.2066e16f.js";
|
|
8
8
|
import { u as qe } from "./chunks/aria-label.ac9651a5.js";
|
|
9
9
|
import { u as Ye } from "./chunks/use-has-slot.068222e6.js";
|
|
10
|
-
import { B as He, a as ce } from "./chunks/base-button.
|
|
10
|
+
import { B as He, a as ce } from "./chunks/base-button.16e8bb2c.js";
|
|
11
11
|
import { g as je } from "./chunks/get-slot-text.e5c766d0.js";
|
|
12
12
|
import { a as ze, C as Ge } from "./chunks/chevron-down.b851a6da.js";
|
|
13
|
-
import { B as Je } from "./chunks/tooltip.
|
|
13
|
+
import { B as Je } from "./chunks/tooltip.807205c0.js";
|
|
14
14
|
import { B as Ke } from "./chunks/directive.0408e565.js";
|
|
15
|
-
import { c as ve, B as We } from "./chunks/button-actions.
|
|
15
|
+
import { c as ve, B as We } from "./chunks/button-actions.bcaea94e.js";
|
|
16
16
|
import { BentoRadioGroup as Qe } from "./radio-group.js";
|
|
17
17
|
import { BentoInputField as ye, BentoInputFieldType as Xe } from "./input-field.js";
|
|
18
18
|
import { BentoSearchBar as X, BentoSearchBarEvent as H } from "./search-bar.js";
|
|
19
19
|
import { u as Ze } from "./chunks/toastController.0e01443d.js";
|
|
20
20
|
import { BentoModal as et, BentoModalEvent as tt, BentoModalSize as lt } from "./modal.js";
|
|
21
|
-
import { B as at, u as me } from "./chunks/dropdown.
|
|
22
|
-
import { g as nt } from "./chunks/index.
|
|
21
|
+
import { B as at, u as me } from "./chunks/dropdown.0c80d6c1.js";
|
|
22
|
+
import { g as nt } from "./chunks/index.695c11ef.js";
|
|
23
23
|
import { BentoDivider as Fe } from "./divider.js";
|
|
24
24
|
import { BentoDatePicker as st } from "./date-picker.js";
|
|
25
|
-
import { f as K } from "./chunks/index.
|
|
25
|
+
import { f as K } from "./chunks/index.875ba379.js";
|
|
26
26
|
import { e as q, d as Be, f as he } from "./chunks/index.f55fdc32.js";
|
|
27
|
-
import { C as ot } from "./chunks/calendar.
|
|
28
|
-
import { B as rt, D as it } from "./chunks/index.
|
|
27
|
+
import { C as ot } from "./chunks/calendar.a32d5783.js";
|
|
28
|
+
import { B as rt, D as it } from "./chunks/index.ec1c7120.js";
|
|
29
29
|
import { D as de } from "./chunks/date-input.9186a0bf.js";
|
|
30
|
-
import { B as ut } from "./chunks/listbox.
|
|
31
|
-
import { B as ct, L as ge } from "./chunks/listbox-option-tag.
|
|
30
|
+
import { B as ut } from "./chunks/listbox.4ea4114c.js";
|
|
31
|
+
import { B as ct, L as ge } from "./chunks/listbox-option-tag.ac8eae9a.js";
|
|
32
32
|
import { BentoCountry as dt, BentoCountryVariant as Ce } from "./country.js";
|
|
33
33
|
import { u as ft } from "./chunks/useCountryItems.5d7b436e.js";
|
|
34
34
|
import { BentoPaymentMethod as pt } from "./payment-method.js";
|
|
35
|
-
import "./assets/
|
|
35
|
+
import "./assets/index26.css";
|
|
36
36
|
var r = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(r || {}), M = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(M || {}), R = /* @__PURE__ */ ((t) => (t.INPUT = "BentoInputFilter", t.BOOLEAN = "BentoBooleanFilter", t.RANGE = "BentoRangeFilter", t.SELECT = "BentoSelectFilter", t.SELECT_AVATAR = "BentoSelectAvatarFilter", t.SELECT_COUNTRY = "BentoSelectCountryFilter", t.SELECT_CURRENCY = "BentoSelectCurrencyFilter", t.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", t.SELECT_TAG = "BentoSelectTagFilter", t.DATE = "BentoDateFilter", t.DATE_RANGE = "BentoDateRangeFilter", t))(R || {});
|
|
37
37
|
const _t = E({
|
|
38
38
|
name: "base-filter-button",
|
package/dist/focus-trap.js
CHANGED
package/dist/header.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as E, computed as T } from "vue";
|
|
2
2
|
import { BentoInfoIcon as A } from "./info-icon.js";
|
|
3
3
|
import { u as C } from "./chunks/use-has-slot.068222e6.js";
|
|
4
|
-
import { B as U, a as v, b as D } from "./chunks/index.
|
|
4
|
+
import { B as U, a as v, b as D } from "./chunks/index.2066e16f.js";
|
|
5
5
|
import { u as X } from "./chunks/i18n.155748d6.js";
|
|
6
6
|
import { c as p, a as B } from "./chunks/index.86453263.js";
|
|
7
7
|
import { r as f, t as s, e as _, g as y, d as H, f as P } from "./chunks/index.f55fdc32.js";
|
|
8
8
|
import { e as R } from "./chunks/index.fdf12170.js";
|
|
9
|
-
import { B as Y } from "./chunks/button-actions.
|
|
9
|
+
import { B as Y } from "./chunks/button-actions.bcaea94e.js";
|
|
10
10
|
import { n as w } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
11
|
-
import "./assets/
|
|
11
|
+
import "./assets/index11.css";
|
|
12
12
|
function F(t, e) {
|
|
13
13
|
f(2, arguments);
|
|
14
14
|
var a = s(t), n = s(e), l = a.getFullYear() - n.getFullYear(), r = a.getMonth() - n.getMonth();
|
package/dist/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import "./chunks/index.af05ced4.js";
|
|
|
5
5
|
import { reactive as s } from "vue";
|
|
6
6
|
import { g as m } from "./chunks/unique-id.a2a2b458.js";
|
|
7
7
|
import { BentoAlert as T, BentoAlertEvent as S, BentoAlertTypeOption as h, BentoAlertVariant as D } from "./alert.js";
|
|
8
|
-
import { B as b, b as E, a as I } from "./chunks/button.
|
|
8
|
+
import { B as b, b as E, a as I } from "./chunks/button.34695c2c.js";
|
|
9
9
|
import { BentoColumnOverflow as P, BentoDataGrid as k, BentoDatagridAriaSortValue as w, BentoDatagridEvent as F, BentoDatagridSortDirection as G, BentoDatagridStyleState as V } from "./data-grid.js";
|
|
10
10
|
import { BentoCard as M, BentoCardBackground as O, BentoCardTitleSize as R } from "./card.js";
|
|
11
11
|
import { BentoDatePicker as N, BentoDatePickerEvent as q } from "./date-picker.js";
|
|
12
|
-
import { B as U, a as K } from "./chunks/index.
|
|
13
|
-
import { B as Y, u as H } from "./chunks/dropdown.
|
|
12
|
+
import { B as U, a as K } from "./chunks/index.ec1c7120.js";
|
|
13
|
+
import { B as Y, u as H } from "./chunks/dropdown.0c80d6c1.js";
|
|
14
14
|
import { BentoDropdownAvatar as j, BentoDropdownCountry as J, BentoDropdownCurrency as Q, BentoDropdownPaymentMethod as X, BentoDropdownTag as Z } from "./dropdown.js";
|
|
15
|
-
import { B as et, b as ot, a as rt } from "./chunks/checkbox.
|
|
15
|
+
import { B as et, b as ot, a as rt } from "./chunks/checkbox.5d8f5768.js";
|
|
16
16
|
import { BentoClickOutside as at } from "./click-outside.js";
|
|
17
17
|
import { BentoCodeSnippet as it, BentoCodeSnippetEvent as st, BentoCodeSnippetSupportedLanguage as mt, BentoCodeSnippetVariant as pt } from "./code-snippet.js";
|
|
18
18
|
import { BentoCountry as ut, BentoCountryCode as lt, BentoCountryVariant as ft, useCountryCapital as xt, useCountryFlag as ct, useCountryName as yt, useCountryPhoneCode as gt } from "./country.js";
|
|
19
19
|
import { BentoCurrency as Tt, BentoCurrencyISOCode as St } from "./currency.js";
|
|
20
|
-
import { B as Dt, a as vt } from "./chunks/index.
|
|
20
|
+
import { B as Dt, a as vt } from "./chunks/index.875ba379.js";
|
|
21
21
|
import { BentoDivider as Et } from "./divider.js";
|
|
22
22
|
import { BentoFilterBar as Lt, BentoFilterBarEvent as Pt, BentoFilterEvent as kt, BentoFilterItemType as wt } from "./filter-bar.js";
|
|
23
23
|
import { BentoInfoIcon as Gt } from "./info-icon.js";
|
|
@@ -34,7 +34,7 @@ import { BentoRadioGroup as xe, BentoRadioGroupVariant as ce } from "./radio-gro
|
|
|
34
34
|
import { BentoSearchBar as ge, BentoSearchBarEvent as Ce, BentoSearchBarInternalEvent as Te } from "./search-bar.js";
|
|
35
35
|
import { BentoSegmentedControl as he, BentoSegmentedControlEvent as De } from "./segmented-control.js";
|
|
36
36
|
import { BentoStatus as be, BentoStatusVariant as Ee } from "./status.js";
|
|
37
|
-
import { B as Le, a as Pe } from "./chunks/index.
|
|
37
|
+
import { B as Le, a as Pe } from "./chunks/index.16f60189.js";
|
|
38
38
|
import { BentoSummaryGrid as we, BentoSummaryGridItemAmount as Fe, BentoSummaryGridItemCustom as Ge, BentoSummaryGridItemNumeric as Ve, BentoSummaryGridItemPercentage as Ae, BentoSummaryGridItemSize as Me, BentoSummaryGridItemText as Oe, BentoSummaryGridItemTrendDirection as Re } from "./summary-grid.js";
|
|
39
39
|
import { BentoTab as Ne, BentoTabs as qe } from "./tabs.js";
|
|
40
40
|
import { BentoTag as Ue, BentoTagVariant as Ke } from "./tag.js";
|
|
@@ -42,17 +42,17 @@ import { BentoTextarea as Ye } from "./textarea.js";
|
|
|
42
42
|
import { BentoTimeline as $e, BentoTimelineGapUnit as je, BentoTimelineItem as Je, BentoTimelineItemVariant as Qe, BentoTimelineShowMorePlacement as Xe } from "./timeline.js";
|
|
43
43
|
import { BentoToast as to } from "./toast.js";
|
|
44
44
|
import { u as oo } from "./chunks/toastController.0e01443d.js";
|
|
45
|
-
import { A as no, B as ao, a as Bo } from "./chunks/index.
|
|
46
|
-
import { B as so, a as mo, c as po, b as uo } from "./chunks/index.
|
|
47
|
-
import { B as fo, c as xo, a as co, b as yo } from "./chunks/button-actions.
|
|
48
|
-
import { B as Co, a as To } from "./chunks/loading-button.
|
|
49
|
-
import { b as ho, b as Do } from "./chunks/calendar.
|
|
45
|
+
import { A as no, B as ao, a as Bo } from "./chunks/index.f55a6913.js";
|
|
46
|
+
import { B as so, a as mo, c as po, b as uo } from "./chunks/index.2066e16f.js";
|
|
47
|
+
import { B as fo, c as xo, a as co, b as yo } from "./chunks/button-actions.bcaea94e.js";
|
|
48
|
+
import { B as Co, a as To } from "./chunks/loading-button.3fa1b7a8.js";
|
|
49
|
+
import { b as ho, b as Do } from "./chunks/calendar.a32d5783.js";
|
|
50
50
|
import { BentoCheckboxGroup as bo, BentoCheckboxGroupVariant as Eo } from "./checkbox.js";
|
|
51
51
|
import { D as Lo } from "./chunks/date-input.9186a0bf.js";
|
|
52
52
|
import { a as ko, B as wo } from "./chunks/debounce.f8d92e44.js";
|
|
53
|
-
import { a as Go, b as Vo } from "./chunks/listbox.
|
|
53
|
+
import { a as Go, b as Vo } from "./chunks/listbox.4ea4114c.js";
|
|
54
54
|
import { B as Mo } from "./chunks/directive.0408e565.js";
|
|
55
|
-
import { b as Ro, B as _o, a as No } from "./chunks/tooltip.
|
|
55
|
+
import { b as Ro, B as _o, a as No } from "./chunks/tooltip.807205c0.js";
|
|
56
56
|
class p {
|
|
57
57
|
constructor() {
|
|
58
58
|
n(this, "_state");
|
package/dist/info-icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as s } from "vue";
|
|
2
2
|
import { PopperContainerPosition as r } from "./popper-container.js";
|
|
3
3
|
import { n as i } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import { b as a } from "./chunks/tooltip.
|
|
5
|
-
import "./assets/
|
|
4
|
+
import { b as a } from "./chunks/tooltip.807205c0.js";
|
|
5
|
+
import "./assets/index8.css";
|
|
6
6
|
let o = 0;
|
|
7
7
|
const l = {
|
|
8
8
|
beforeCreate() {
|
package/dist/input-field.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as L, ref as C, computed as n } from "vue";
|
|
2
|
-
import { B as U, d as V, b as M, a as $ } from "./chunks/index.
|
|
2
|
+
import { B as U, d as V, b as M, a as $ } from "./chunks/index.2066e16f.js";
|
|
3
3
|
import { u as H } from "./chunks/use-has-slot.068222e6.js";
|
|
4
4
|
import { g as s } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { u as Y } from "./chunks/i18n.155748d6.js";
|
|
6
|
-
import { B as x, a as W } from "./chunks/dropdown.
|
|
6
|
+
import { B as x, a as W } from "./chunks/dropdown.0c80d6c1.js";
|
|
7
7
|
import { g as F } from "./chunks/get-slot-text.e5c766d0.js";
|
|
8
|
-
import { E as G } from "./chunks/error-message.
|
|
8
|
+
import { E as G } from "./chunks/error-message.fa27bee9.js";
|
|
9
9
|
import { n as k } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
10
|
-
import "./assets/
|
|
10
|
+
import "./assets/index39.css";
|
|
11
11
|
var u = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(u || {}), i = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(i || {}), d = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e.SMALL_PADDING_LEFT = "small-padding-left", e.SMALL_PADDING_RIGHT = "small-padding-right", e))(d || {}), A = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(A || {}), r = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(r || {});
|
|
12
12
|
const q = {
|
|
13
13
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as r, L as e } from "./chunks/listbox-option-tag.
|
|
2
|
-
import { C as s, a as p, b as n } from "./chunks/calendar.
|
|
3
|
-
import { C } from "./chunks/copy.
|
|
4
|
-
import { C as i } from "./chunks/controls-group.
|
|
5
|
-
import { E as d } from "./chunks/error-message.
|
|
1
|
+
import { B as r, L as e } from "./chunks/listbox-option-tag.ac8eae9a.js";
|
|
2
|
+
import { C as s, a as p, b as n } from "./chunks/calendar.a32d5783.js";
|
|
3
|
+
import { C } from "./chunks/copy.f49481e9.js";
|
|
4
|
+
import { C as i } from "./chunks/controls-group.e607b021.js";
|
|
5
|
+
import { E as d } from "./chunks/error-message.fa27bee9.js";
|
|
6
6
|
import { G as L, a as l } from "./chunks/grid-layout.73f23b1b.js";
|
|
7
|
-
import { B as G } from "./chunks/listbox.
|
|
7
|
+
import { B as G } from "./chunks/listbox.4ea4114c.js";
|
|
8
8
|
export {
|
|
9
9
|
r as BentoAvatar,
|
|
10
10
|
G as BentoListbox,
|
package/dist/link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as i, computed as p, useAttrs as c } from "vue";
|
|
2
2
|
import { RouterLink as _ } from "vue-router";
|
|
3
|
-
import { B as u, a as y, b as f } from "./chunks/index.
|
|
3
|
+
import { B as u, a as y, b as f } from "./chunks/index.2066e16f.js";
|
|
4
4
|
import { n as m } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index9.css";
|
|
6
6
|
var a = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.QUIET = "quiet", o))(a || {});
|
|
7
7
|
const k = {
|
|
8
8
|
name: "bento-link"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as s, onUnmounted as l, computed as i } from "vue";
|
|
2
2
|
import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index10.css";
|
|
4
4
|
var a = /* @__PURE__ */ ((n) => (n.START = "loading-start", n.END = "loading-end", n))(a || {});
|
|
5
5
|
const d = t({
|
|
6
6
|
name: "bento-loading-indicator",
|
package/dist/menu.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as k, computed as b, ref as c, onMounted as U } from "vue";
|
|
2
2
|
import { n as h } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
3
|
import { g as w } from "./chunks/unique-id.a2a2b458.js";
|
|
4
|
-
import { B as H, a as I } from "./chunks/button.
|
|
4
|
+
import { B as H, a as I } from "./chunks/button.34695c2c.js";
|
|
5
5
|
import { BentoPopover as q, BentoPopoverPositions as B } from "./popover.js";
|
|
6
6
|
import { a as V, C as O } from "./chunks/chevron-right.3b826337.js";
|
|
7
|
-
import { B as W, a as L } from "./chunks/base-button.
|
|
8
|
-
import { B as j, a as Y, b as Z } from "./chunks/index.
|
|
7
|
+
import { B as W, a as L } from "./chunks/base-button.16e8bb2c.js";
|
|
8
|
+
import { B as j, a as Y, b as Z } from "./chunks/index.2066e16f.js";
|
|
9
9
|
import { B as $ } from "./chunks/directive.0408e565.js";
|
|
10
|
-
import "./assets/
|
|
10
|
+
import "./assets/index34.css";
|
|
11
11
|
let S = 0;
|
|
12
12
|
const z = {
|
|
13
13
|
beforeCreate() {
|
package/dist/modal.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as h, ref as q, toRefs as E, computed as u, watch as U, onMounted as O } from "vue";
|
|
2
|
-
import { B as W, a as C } from "./chunks/button.
|
|
3
|
-
import { B as w, a as k, b as x } from "./chunks/index.
|
|
2
|
+
import { B as W, a as C } from "./chunks/button.34695c2c.js";
|
|
3
|
+
import { B as w, a as k, b as x } from "./chunks/index.2066e16f.js";
|
|
4
4
|
import { BentoDivider as K } from "./divider.js";
|
|
5
|
-
import { B as Y } from "./chunks/index.
|
|
5
|
+
import { B as Y } from "./chunks/index.695c11ef.js";
|
|
6
6
|
import { u as D } from "./chunks/use-has-slot.068222e6.js";
|
|
7
7
|
import { u as j } from "./chunks/aria-label.ac9651a5.js";
|
|
8
8
|
import { u as N } from "./chunks/i18n.155748d6.js";
|
|
@@ -10,8 +10,8 @@ import { g as H } from "./chunks/get-slot-text.e5c766d0.js";
|
|
|
10
10
|
import { C as Q } from "./chunks/cross.a2cadac5.js";
|
|
11
11
|
import { G as J, a as X } from "./chunks/grid-layout.73f23b1b.js";
|
|
12
12
|
import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
13
|
-
import { B as R, c as I } from "./chunks/button-actions.
|
|
14
|
-
import "./assets/
|
|
13
|
+
import { B as R, c as I } from "./chunks/button-actions.bcaea94e.js";
|
|
14
|
+
import "./assets/index25.css";
|
|
15
15
|
var M = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(M || {}), B = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(B || {}), y = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(y || {}), S = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(S || {}), p = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(p || {}), d = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(d || {});
|
|
16
16
|
const Z = {
|
|
17
17
|
"en-US": {
|
package/dist/pagination.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as p, ref as x, computed as s } from "vue";
|
|
2
|
-
import { B as m, a as h } from "./chunks/index.
|
|
3
|
-
import { B as C } from "./chunks/dropdown.
|
|
2
|
+
import { B as m, a as h } from "./chunks/index.2066e16f.js";
|
|
3
|
+
import { B as C } from "./chunks/dropdown.0c80d6c1.js";
|
|
4
4
|
import { g as P } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as b, a as T } from "./chunks/i18n.155748d6.js";
|
|
6
6
|
import { n as i } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
7
|
-
import { B as N, a as $ } from "./chunks/button.
|
|
8
|
-
import "./assets/
|
|
7
|
+
import { B as N, a as $ } from "./chunks/button.34695c2c.js";
|
|
8
|
+
import "./assets/index12.css";
|
|
9
9
|
const w = {
|
|
10
10
|
"en-US": {
|
|
11
11
|
showingItems: "Showing {itemCount} items",
|