@adyen/bento-vue3 1.74.0 → 1.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/@types/index.d.ts +1660 -614
  2. package/dist/assets/accordion-item.css +1 -1
  3. package/dist/assets/action-bar.css +1 -1
  4. package/dist/assets/base-modal.css +1 -1
  5. package/dist/assets/button-actions.css +1 -1
  6. package/dist/assets/calendar.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid-template.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/date-picker.css +1 -1
  11. package/dist/assets/date-range-picker.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/dropdown-tag.css +1 -1
  14. package/dist/assets/file-uploader.css +1 -1
  15. package/dist/assets/filter-bar.css +1 -1
  16. package/dist/assets/header-meta.css +1 -1
  17. package/dist/assets/input-field-password.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/modal-fullscreen.css +1 -1
  21. package/dist/assets/selection-card-group.css +1 -1
  22. package/dist/assets/sidepanel.css +1 -1
  23. package/dist/assets/timeline-item.css +1 -1
  24. package/dist/assets/use-cached-selected-values.css +1 -1
  25. package/dist/checkbox.js +2 -2
  26. package/dist/chunks/calendar.Tm7Cvpwu.js +2001 -0
  27. package/dist/chunks/calendar.Tm7Cvpwu.js.map +1 -0
  28. package/dist/chunks/{checkbox-group.8ebmaHsA.js → checkbox-group.8J29fVna.js} +2 -2
  29. package/dist/chunks/{checkbox-group.8ebmaHsA.js.map → checkbox-group.8J29fVna.js.map} +1 -1
  30. package/dist/chunks/{checkbox.BI0dqARY.js → checkbox.CfNYUty6.js} +18 -18
  31. package/dist/chunks/{checkbox.BI0dqARY.js.map → checkbox.CfNYUty6.js.map} +1 -1
  32. package/dist/chunks/{code-snippet.CO78Nfj0.js → code-snippet.EeIcRV20.js} +2 -2
  33. package/dist/chunks/{code-snippet.CO78Nfj0.js.map → code-snippet.EeIcRV20.js.map} +1 -1
  34. package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
  35. package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
  36. package/dist/chunks/{dashboard-section.CVttsom5.js → dashboard-section.Cqi0PWeJ.js} +2 -2
  37. package/dist/chunks/{dashboard-section.CVttsom5.js.map → dashboard-section.Cqi0PWeJ.js.map} +1 -1
  38. package/dist/chunks/{data-grid-template.CFt1NV_4.js → data-grid-template.D7kB3S1u.js} +2 -2
  39. package/dist/chunks/{data-grid-template.CFt1NV_4.js.map → data-grid-template.D7kB3S1u.js.map} +1 -1
  40. package/dist/chunks/data-grid.DJIxBwCa.js +4143 -0
  41. package/dist/chunks/data-grid.DJIxBwCa.js.map +1 -0
  42. package/dist/chunks/{date-picker.DSkvT_CA.js → date-picker.CobmiKaJ.js} +16 -16
  43. package/dist/chunks/date-picker.CobmiKaJ.js.map +1 -0
  44. package/dist/chunks/date-range-picker.B6UKl1_N.js +1114 -0
  45. package/dist/chunks/date-range-picker.B6UKl1_N.js.map +1 -0
  46. package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
  47. package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
  48. package/dist/chunks/dropdown-tag.CMjilUQb.js +242 -0
  49. package/dist/chunks/dropdown-tag.CMjilUQb.js.map +1 -0
  50. package/dist/chunks/{dropdown.bLsoTZbw.js → dropdown.DG_EnV8g.js} +18 -18
  51. package/dist/chunks/{dropdown.bLsoTZbw.js.map → dropdown.DG_EnV8g.js.map} +1 -1
  52. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  53. package/dist/chunks/{filter-bar.nX73NKNC.js → filter-bar.dmC284Po.js} +737 -710
  54. package/dist/chunks/filter-bar.dmC284Po.js.map +1 -0
  55. package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
  56. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
  57. package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
  58. package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
  59. package/dist/chunks/header-meta.BE6QfUNi.js +221 -0
  60. package/dist/chunks/header-meta.BE6QfUNi.js.map +1 -0
  61. package/dist/chunks/{header-with-views.BLW817ZC.js → header-with-views.BZ16v5-m.js} +4 -4
  62. package/dist/chunks/{header-with-views.BLW817ZC.js.map → header-with-views.BZ16v5-m.js.map} +1 -1
  63. package/dist/chunks/{header.DARVAeE9.js → header.3It50Clh.js} +2 -2
  64. package/dist/chunks/{header.DARVAeE9.js.map → header.3It50Clh.js.map} +1 -1
  65. package/dist/chunks/{input-field-password.BtM3-txc.js → input-field-password.BVnZWBAV.js} +185 -167
  66. package/dist/chunks/input-field-password.BVnZWBAV.js.map +1 -0
  67. package/dist/chunks/{input-field-phone-number.oaNB69nM.js → input-field-phone-number.CWhPGQ1U.js} +3 -3
  68. package/dist/chunks/{input-field-phone-number.oaNB69nM.js.map → input-field-phone-number.CWhPGQ1U.js.map} +1 -1
  69. package/dist/chunks/{input-field.D_tADgPG.js → input-field.A-dEZZfC.js} +124 -119
  70. package/dist/chunks/input-field.A-dEZZfC.js.map +1 -0
  71. package/dist/chunks/{pagination.D1Gdo5to.js → pagination.B4qBK4pM.js} +2 -2
  72. package/dist/chunks/{pagination.D1Gdo5to.js.map → pagination.B4qBK4pM.js.map} +1 -1
  73. package/dist/chunks/radio-group.DWNqrkZ3.js.map +1 -1
  74. package/dist/chunks/{rich-text-editor.BK9AivIm.js → rich-text-editor.BA6_k4Vv.js} +354 -352
  75. package/dist/chunks/{rich-text-editor.BK9AivIm.js.map → rich-text-editor.BA6_k4Vv.js.map} +1 -1
  76. package/dist/chunks/{search-bar.BD_R-vgA.js → search-bar.dZ7UCMxb.js} +3 -3
  77. package/dist/chunks/{search-bar.BD_R-vgA.js.map → search-bar.dZ7UCMxb.js.map} +1 -1
  78. package/dist/chunks/{secondary-nav.Du2PL7Ok.js → secondary-nav.CE082cQ_.js} +2 -2
  79. package/dist/chunks/{secondary-nav.Du2PL7Ok.js.map → secondary-nav.CE082cQ_.js.map} +1 -1
  80. package/dist/chunks/selection-card-group.NnTbPQjj.js +412 -0
  81. package/dist/chunks/{selection-card-group._RgLiMyQ.js.map → selection-card-group.NnTbPQjj.js.map} +1 -1
  82. package/dist/chunks/textarea.C1jkfowf.js.map +1 -1
  83. package/dist/chunks/timeline-item.DNjubXL2.js +556 -0
  84. package/dist/chunks/timeline-item.DNjubXL2.js.map +1 -0
  85. package/dist/chunks/{use-cached-selected-values.C32tjNKy.js → use-cached-selected-values.8MdrR9wt.js} +501 -467
  86. package/dist/chunks/use-cached-selected-values.8MdrR9wt.js.map +1 -0
  87. package/dist/code-snippet.js +1 -1
  88. package/dist/dashboard-template.js +1 -1
  89. package/dist/data-grid-template.js +1 -1
  90. package/dist/data-grid.js +1 -1
  91. package/dist/date-picker.js +2 -2
  92. package/dist/date-range-picker.js +2 -2
  93. package/dist/dropdown.js +3 -3
  94. package/dist/filter-bar.js +1 -1
  95. package/dist/header-with-views.js +1 -1
  96. package/dist/header.js +1 -1
  97. package/dist/index.js +24 -24
  98. package/dist/input-field-password.js +1 -1
  99. package/dist/input-field-phone-number.js +1 -1
  100. package/dist/input-field.js +1 -1
  101. package/dist/internal.js +3 -3
  102. package/dist/pagination.js +1 -1
  103. package/dist/rich-text-editor.js +1 -1
  104. package/dist/search-bar.js +2 -2
  105. package/dist/secondary-nav.js +1 -1
  106. package/dist/selection-card.js +1 -1
  107. package/dist/styles/bento-dark.css +7 -5
  108. package/dist/styles/bento-light.css +7 -5
  109. package/dist/styles/bento.css +7 -5
  110. package/dist/styles/legacy.css +7 -5
  111. package/dist/styles/styleguide.css +7 -5
  112. package/dist/timeline.js +1 -1
  113. package/dist/web-types.json +1 -1
  114. package/package.json +8 -23
  115. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  116. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  117. package/dist/chunks/calendar.Cqjyxc69.js +0 -2223
  118. package/dist/chunks/calendar.Cqjyxc69.js.map +0 -1
  119. package/dist/chunks/data-grid.BjPdbx50.js +0 -4071
  120. package/dist/chunks/data-grid.BjPdbx50.js.map +0 -1
  121. package/dist/chunks/date-picker.DSkvT_CA.js.map +0 -1
  122. package/dist/chunks/date-range-picker.cmg75lC-.js +0 -1117
  123. package/dist/chunks/date-range-picker.cmg75lC-.js.map +0 -1
  124. package/dist/chunks/dropdown-tag.DvQQIJsw.js +0 -308
  125. package/dist/chunks/dropdown-tag.DvQQIJsw.js.map +0 -1
  126. package/dist/chunks/filter-bar.nX73NKNC.js.map +0 -1
  127. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
  128. package/dist/chunks/header-meta.C4iaUsfq.js +0 -236
  129. package/dist/chunks/header-meta.C4iaUsfq.js.map +0 -1
  130. package/dist/chunks/index.BrH1t1iu.js.map +0 -1
  131. package/dist/chunks/index.BxBB1rsx.js +0 -15
  132. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  133. package/dist/chunks/input-field-password.BtM3-txc.js.map +0 -1
  134. package/dist/chunks/input-field.D_tADgPG.js.map +0 -1
  135. package/dist/chunks/selection-card-group._RgLiMyQ.js +0 -474
  136. package/dist/chunks/timeline-item.C8PA_w7m.js +0 -568
  137. package/dist/chunks/timeline-item.C8PA_w7m.js.map +0 -1
  138. package/dist/chunks/use-cached-selected-values.C32tjNKy.js.map +0 -1
@@ -2,7 +2,7 @@ import { defineComponent as b, computed as u, resolveComponent as n, createEleme
2
2
  import { u as E } from "./use-has-slot.B7eQSabc.js";
3
3
  import { B as N, a as k, c as h } from "./typography.yBEME_Gu.js";
4
4
  import { B as O } from "./button-actions-with-menu.BeQ-j1bv.js";
5
- import { I as t, H as w } from "./header-meta.C4iaUsfq.js";
5
+ import { I as t, H as w } from "./header-meta.BE6QfUNi.js";
6
6
  import { _ as A } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
7
  import "../assets/header.css";
8
8
  var o = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(o || {});
@@ -138,4 +138,4 @@ const F = /* @__PURE__ */ A($, [["render", G], ["__scopeId", "data-v-56ef1e22"]]
138
138
  export {
139
139
  F as B
140
140
  };
141
- //# sourceMappingURL=header.DARVAeE9.js.map
141
+ //# sourceMappingURL=header.3It50Clh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.DARVAeE9.js","sources":["../../../vue2/src/components/header/header.types.ts","../../../vue2/src/components/header/header.vue"],"sourcesContent":["import { type BentoLoadingButtonState } from '../button/components/loading-button/loading-button.types';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoHeaderVariant {\n PAGE = 'page',\n COMPONENT = 'component',\n}\n\nexport interface BentoHeaderReloadButton {\n title: string;\n event?: (event: Event) => void;\n state?: `${BentoLoadingButtonState}`;\n}\n","<template>\n <header class=\"b-header\" :class=\"conditionalClasses\">\n <div class=\"b-header__wrapper\">\n <div class=\"b-header__title\">\n <div>\n <bento-typography v-bind=\"typography\" class=\"b-header__text\">{{ title }}</bento-typography>\n <info-icon-with-popover\n v-if=\"infoIconTooltipText || hasSlot('infoIconTooltipContent')\"\n class=\"b-header__tooltip\"\n :popover-text=\"infoIconTooltipText\"\n >\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #default\n ><slot name=\"infoIconTooltipContent\"\n /></template>\n </info-icon-with-popover>\n </div>\n </div>\n <header-meta\n v-if=\"description || hasSlot('description') || lastUpdated\"\n class=\"b-header__meta-container\"\n :description=\"description\"\n :last-updated=\"lastUpdated\"\n :reload-button=\"reloadButton\"\n >\n <template v-if=\"hasSlot('description')\" #description><slot name=\"description\" /></template>\n </header-meta>\n <button-actions-with-menu\n v-if=\"actions\"\n :actions=\"actions\"\n :displayed-actions=\"2\"\n class=\"b-header__actions\"\n />\n </div>\n </header>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { InfoIconWithPopover } from '@/internal';\n import { type BentoButtonActionsList } from '@/components/button';\n import { useHasSlot } from '@/composables';\n import { type BentoHeaderReloadButton, BentoHeaderVariant } from './header.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { HeaderMeta } from '@/internal/header-meta';\n import ButtonActionsWithMenu from '../internal/button-actions-with-menu/button-actions-with-menu.vue';\n\n export default defineComponent({\n name: 'bento-header',\n components: {\n BentoTypography,\n ButtonActionsWithMenu,\n InfoIconWithPopover,\n HeaderMeta,\n },\n props: {\n /**\n * Array of BentoButtonActionsList to show to the right of the title\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text showed under the title\n */\n description: { type: String, default: null },\n\n /**\n * Text showed in the info-icon tooltip on hover\n */\n infoIconTooltipText: { type: InfoIconWithPopover.props.popoverText.type, default: null },\n\n /**\n * Popover position of the info icon text.\n */\n infoIconPopoverPosition: {\n type: InfoIconWithPopover.props.popoverPosition.type,\n default: InfoIconWithPopover.props.popoverPosition.default,\n validator: InfoIconWithPopover.props.popoverPosition.validator,\n },\n\n /**\n * JavaScript \"Date\" object for when the content was last updated\n */\n lastUpdated: { type: [Date, Number], default: null },\n\n /**\n * Variant represents type of Header\n * @values page, component\n */\n variant: {\n type: String as PropType<BentoHeaderVariant | `${BentoHeaderVariant}`>,\n default: BentoHeaderVariant.PAGE,\n validator: (value: BentoHeaderVariant) => Object.values(BentoHeaderVariant).includes(value),\n },\n\n /**\n * Text used as a title\n */\n title: { type: String, required: true },\n\n /**\n * Reload button which shows next to the header's timestamp\n * {@see BentoHeaderReloadButton}\n */\n reloadButton: {\n type: Object as PropType<BentoHeaderReloadButton>,\n default: null,\n },\n },\n emits: ['reload'],\n setup(props, { slots }) {\n const conditionalClasses = computed(() => ({\n 'b-header--component': props.variant === BentoHeaderVariant.COMPONENT,\n }));\n\n const typography = computed(() => ({\n el: props.variant === BentoHeaderVariant.PAGE ? BentoTypographyElement.H1 : BentoTypographyElement.H2,\n variant: BentoTypographyVariant.TITLE,\n medium: props.variant === BentoHeaderVariant.COMPONENT,\n large: props.variant === BentoHeaderVariant.PAGE,\n }));\n return {\n hasSlot: useHasSlot(slots),\n conditionalClasses,\n typography,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./header.scss\" />\n"],"names":["BentoHeaderVariant","BentoHeaderVariant2","_sfc_main","defineComponent","BentoTypography","ButtonActionsWithMenu","InfoIconWithPopover","HeaderMeta","value","props","slots","conditionalClasses","computed","typography","BentoTypographyElement","BentoTypographyVariant","useHasSlot","_component_button_actions_with_menu","resolveComponent","normalizeClass","_ctx","createElementVNode","_hoisted_2","createVNode","_component_bento_typography","mergeProps","withCtx","createTextVNode","toDisplayString","infoIconTooltipText","openBlock","createBlock","_component_info_icon_with_popover","createSlots","renderSlot","createCommentVNode","description","_component_header_meta","reloadButton"],"mappings":";;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,YAAA,aAFQA,IAAAD,KAAA,CAAA,CAAA;ACyCR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA;AAAA,IACM,iBAAAC;AAAA,IACR,uBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,YAAAC;AAAA,EACA;AAAA,EACJ,OAAA;AAAA;AAAA;AAAA;AAAA,IACO,SAAA;AAAA,MAIM,MAAA;AAAA,MACC,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,aAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAK2C,qBAAA,EAAA,MAAAD,EAAA,MAAA,YAAA,MAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAK4C,yBAAA;AAAA,MAK9D,MAAAA,EAAA,MAAA,gBA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AAA,CAAA,eAAA,gBAAA,eAAA,CAAA,KAAAe,EAAA,IAAA,EAAA;AAAA,MA+Bcf,EAAA,WAAAU,EAAA,GAAAC,EAAAd,GAAA;AAAA,QAHmB,KAAA;AAAA,QAChB,SAAAG,EAAA;AAAA,QACK,qBAAA;AAAA,QA9BtB,OAAA;AAAA,MAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,KAAAe,EAAA,IAAA,EAAA;AAAA;;;;"}
1
+ {"version":3,"file":"header.3It50Clh.js","sources":["../../../vue2/src/components/header/header.types.ts","../../../vue2/src/components/header/header.vue"],"sourcesContent":["import { type BentoLoadingButtonState } from '../button/components/loading-button/loading-button.types';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoHeaderVariant {\n PAGE = 'page',\n COMPONENT = 'component',\n}\n\nexport interface BentoHeaderReloadButton {\n title: string;\n event?: (event: Event) => void;\n state?: `${BentoLoadingButtonState}`;\n}\n","<template>\n <header class=\"b-header\" :class=\"conditionalClasses\">\n <div class=\"b-header__wrapper\">\n <div class=\"b-header__title\">\n <div>\n <bento-typography v-bind=\"typography\" class=\"b-header__text\">{{ title }}</bento-typography>\n <info-icon-with-popover\n v-if=\"infoIconTooltipText || hasSlot('infoIconTooltipContent')\"\n class=\"b-header__tooltip\"\n :popover-text=\"infoIconTooltipText\"\n >\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #default\n ><slot name=\"infoIconTooltipContent\"\n /></template>\n </info-icon-with-popover>\n </div>\n </div>\n <header-meta\n v-if=\"description || hasSlot('description') || lastUpdated\"\n class=\"b-header__meta-container\"\n :description=\"description\"\n :last-updated=\"lastUpdated\"\n :reload-button=\"reloadButton\"\n >\n <template v-if=\"hasSlot('description')\" #description><slot name=\"description\" /></template>\n </header-meta>\n <button-actions-with-menu\n v-if=\"actions\"\n :actions=\"actions\"\n :displayed-actions=\"2\"\n class=\"b-header__actions\"\n />\n </div>\n </header>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { InfoIconWithPopover } from '@/internal';\n import { type BentoButtonActionsList } from '@/components/button';\n import { useHasSlot } from '@/composables';\n import { type BentoHeaderReloadButton, BentoHeaderVariant } from './header.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { HeaderMeta } from '@/internal/header-meta';\n import ButtonActionsWithMenu from '../internal/button-actions-with-menu/button-actions-with-menu.vue';\n\n export default defineComponent({\n name: 'bento-header',\n components: {\n BentoTypography,\n ButtonActionsWithMenu,\n InfoIconWithPopover,\n HeaderMeta,\n },\n props: {\n /**\n * Array of BentoButtonActionsList to show to the right of the title\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text showed under the title\n */\n description: { type: String, default: null },\n\n /**\n * Text showed in the info-icon tooltip on hover\n */\n infoIconTooltipText: { type: InfoIconWithPopover.props.popoverText.type, default: null },\n\n /**\n * Popover position of the info icon text.\n */\n infoIconPopoverPosition: {\n type: InfoIconWithPopover.props.popoverPosition.type,\n default: InfoIconWithPopover.props.popoverPosition.default,\n validator: InfoIconWithPopover.props.popoverPosition.validator,\n },\n\n /**\n * JavaScript \"Date\" object for when the content was last updated\n */\n lastUpdated: { type: [Date, Number], default: null },\n\n /**\n * Variant represents type of Header\n * @values page, component\n */\n variant: {\n type: String as PropType<BentoHeaderVariant | `${BentoHeaderVariant}`>,\n default: BentoHeaderVariant.PAGE,\n validator: (value: BentoHeaderVariant) => Object.values(BentoHeaderVariant).includes(value),\n },\n\n /**\n * Text used as a title\n */\n title: { type: String, required: true },\n\n /**\n * Reload button which shows next to the header's timestamp\n * {@see BentoHeaderReloadButton}\n */\n reloadButton: {\n type: Object as PropType<BentoHeaderReloadButton>,\n default: null,\n },\n },\n emits: ['reload'],\n setup(props, { slots }) {\n const conditionalClasses = computed(() => ({\n 'b-header--component': props.variant === BentoHeaderVariant.COMPONENT,\n }));\n\n const typography = computed(() => ({\n el: props.variant === BentoHeaderVariant.PAGE ? BentoTypographyElement.H1 : BentoTypographyElement.H2,\n variant: BentoTypographyVariant.TITLE,\n medium: props.variant === BentoHeaderVariant.COMPONENT,\n large: props.variant === BentoHeaderVariant.PAGE,\n }));\n return {\n hasSlot: useHasSlot(slots),\n conditionalClasses,\n typography,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./header.scss\" />\n"],"names":["BentoHeaderVariant","BentoHeaderVariant2","_sfc_main","defineComponent","BentoTypography","ButtonActionsWithMenu","InfoIconWithPopover","HeaderMeta","value","props","slots","conditionalClasses","computed","typography","BentoTypographyElement","BentoTypographyVariant","useHasSlot","_component_button_actions_with_menu","resolveComponent","normalizeClass","_ctx","createElementVNode","_hoisted_2","createVNode","_component_bento_typography","mergeProps","withCtx","createTextVNode","toDisplayString","infoIconTooltipText","openBlock","createBlock","_component_info_icon_with_popover","createSlots","renderSlot","createCommentVNode","description","_component_header_meta","reloadButton"],"mappings":";;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,YAAA,aAFQA,IAAAD,KAAA,CAAA,CAAA;ACyCR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA;AAAA,IACM,iBAAAC;AAAA,IACR,uBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,YAAAC;AAAA,EACA;AAAA,EACJ,OAAA;AAAA;AAAA;AAAA;AAAA,IACO,SAAA;AAAA,MAIM,MAAA;AAAA,MACC,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,aAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAK2C,qBAAA,EAAA,MAAAD,EAAA,MAAA,YAAA,MAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAK4C,yBAAA;AAAA,MAK9D,MAAAA,EAAA,MAAA,gBAAA;AAAA,MAC2B,SAAAA,EAAA,MAAA,gBAAA;AAAA,MACG,WAA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AA;AAAA,MA+Bcf,EAAA,WAAAU,EAAA,GAAAC,EAAAd,GAAA;AAAA,QAHmB,KAAA;AAAA,QAChB,SAAAG,EAAA;AAAA,QACK,qBAAA;AAAA,QA9BtB,OAAA;AAAA,MAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,KAAAe,EAAA,IAAA,EAAA;AAAA;;;;"}
@@ -1,40 +1,40 @@
1
- import { defineComponent as ge, useAttrs as ke, ref as s, provide as Ee, computed as p, watch as W, createElementBlock as S, openBlock as r, createVNode as P, createBlock as v, createCommentVNode as b, unref as t, mergeProps as we, createSlots as ye, withCtx as f, createTextVNode as A, toDisplayString as C, createElementVNode as U, normalizeClass as ae, Fragment as Ce, renderList as Re } from "vue";
2
- import { B as Le } from "./button.DhcxX2GJ.js";
3
- import { _ as Te } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
4
- import { B as Ie } from "./input-field.D_tADgPG.js";
5
- import { h as Oe } from "./button-actions.BQ3AFQqt.js";
6
- import { B as x } from "./typography.yBEME_Gu.js";
7
- import { C as Se } from "./checkmark-circle-fill._6-d40ru.js";
8
- import { D as Pe } from "./dot.ob6N-5Um.js";
9
- import { S as Ae, H as Ue } from "./show.CT4Augxb.js";
10
- import { e as Ve, w as Ne } from "./index.E60QniEu.js";
11
- import { u as qe } from "./index.pdBj0KQU.js";
12
- import { g as te } from "./generate-uid.NJ8tVoha.js";
13
- import { b as Me } from "./dropdown.bLsoTZbw.js";
14
- import { T as He } from "./tooltip.Dp9_ESm_.js";
15
- import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
1
+ import { defineComponent as ye, useAttrs as Ee, ref as r, provide as we, computed as v, watch as W, createElementBlock as R, openBlock as s, createVNode as A, createBlock as f, createCommentVNode as b, unref as i, mergeProps as Ce, createSlots as Re, withCtx as c, renderSlot as ae, Fragment as te, createTextVNode as L, toDisplayString as k, createElementVNode as U, normalizeClass as ie, renderList as Le } from "vue";
2
+ import { B as Te } from "./button.DhcxX2GJ.js";
3
+ import { _ as Ie } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
4
+ import { B as Oe } from "./input-field.A-dEZZfC.js";
5
+ import { h as Se } from "./button-actions.BQ3AFQqt.js";
6
+ import { B as F } from "./typography.yBEME_Gu.js";
7
+ import { C as Pe } from "./checkmark-circle-fill._6-d40ru.js";
8
+ import { D as Ae } from "./dot.ob6N-5Um.js";
9
+ import { S as Ue, H as Ve } from "./show.CT4Augxb.js";
10
+ import { e as qe, w as Ne } from "./index.E60QniEu.js";
11
+ import { u as Me } from "./index.pdBj0KQU.js";
12
+ import { g as le } from "./generate-uid.NJ8tVoha.js";
13
+ import { b as He } from "./dropdown.DG_EnV8g.js";
14
+ import { T as Be } from "./tooltip.Dp9_ESm_.js";
15
+ import { _ as De } from "./_plugin-vue_export-helper.CHgC5LLL.js";
16
16
  import "../assets/input-field-password.css";
17
- var R = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.PASSWORD = "password", a))(R || {}), k = /* @__PURE__ */ ((a) => (a.MIN_LENGTH = "minLength", a.REQUIRE_LOWERCASE = "requireLowercase", a.REQUIRE_NUMERIC = "requireNumeric", a.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", a.REQUIRE_UPPERCASE = "requireUppercase", a))(k || {});
18
- const De = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
19
- function L(a) {
17
+ var T = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.PASSWORD = "password", a))(T || {}), y = /* @__PURE__ */ ((a) => (a.MIN_LENGTH = "minLength", a.REQUIRE_LOWERCASE = "requireLowercase", a.REQUIRE_NUMERIC = "requireNumeric", a.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", a.REQUIRE_UPPERCASE = "requireUppercase", a))(y || {});
18
+ const We = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
19
+ function I(a) {
20
20
  return (a == null ? void 0 : a.toString()) ?? "";
21
21
  }
22
- function We(a, V = 12) {
23
- return L(a).length >= V;
22
+ function Fe(a, V = 12) {
23
+ return I(a).length >= V;
24
24
  }
25
25
  function xe(a) {
26
- return /[a-z]/.test(L(a));
27
- }
28
- function Fe(a) {
29
- return /[A-Z]/.test(L(a));
26
+ return /[a-z]/.test(I(a));
30
27
  }
31
28
  function Qe(a) {
32
- return /\d/.test(L(a));
29
+ return /[A-Z]/.test(I(a));
33
30
  }
34
31
  function Ze(a) {
35
- return /[^a-zA-Z0-9]/.test(L(a));
32
+ return /\d/.test(I(a));
33
+ }
34
+ function ze(a) {
35
+ return /[^a-zA-Z0-9]/.test(I(a));
36
36
  }
37
- const ie = {
37
+ const oe = {
38
38
  "en-US": {
39
39
  capsLockEnabled: "Caps lock on",
40
40
  hidePassword: "Hide",
@@ -74,297 +74,315 @@ const ie = {
74
74
  validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
75
75
  validationTitle: "A senha deve conter pelo menos:"
76
76
  }
77
- }, ze = ["id"], Xe = {
77
+ }, Xe = ["id"], $e = {
78
78
  key: 1,
79
79
  class: "b-input-field-password__validation-status--valid",
80
80
  role: "alert"
81
- }, Ge = ["id"], Ke = { class: "b-input-field-password__validation-list-icon" }, Je = 12, $e = 500, Ye = 2e3, je = 2e3, ea = {
82
- i18n: { messages: ie },
81
+ }, Ge = ["id"], Ke = { class: "b-input-field-password__validation-list-icon" }, Je = 12, Ye = 500, je = 2e3, ea = 2e3, aa = {
82
+ i18n: { messages: oe },
83
83
  name: "bento-input-field-password"
84
- }, aa = /* @__PURE__ */ ge({
85
- ...ea,
84
+ }, ta = /* @__PURE__ */ ye({
85
+ ...aa,
86
86
  props: {
87
87
  condensed: { type: Boolean, default: !1 },
88
- debounceTime: { default: $e },
89
- disabled: { type: Boolean, default: !1 },
88
+ debounceTime: { default: Ye },
90
89
  disableValidation: { type: Boolean, default: !1 },
90
+ value: { default: void 0 },
91
+ validation: { default: void 0 },
92
+ withHint: { type: Boolean, default: !0 },
93
+ description: { default: null },
94
+ disabled: { type: Boolean, default: !1 },
91
95
  errorMessage: { default: null },
96
+ label: { default: null },
97
+ optional: { type: Boolean, default: !1 },
92
98
  placeholder: { default: "" },
93
99
  readonly: { type: Boolean, default: !1 },
94
- value: { default: void 0 },
95
- label: { default: null },
96
- validation: { default: void 0 },
97
- withHint: { type: Boolean, default: !0 }
100
+ required: { type: Boolean, default: !1 },
101
+ tooltipText: { default: null }
98
102
  },
99
103
  emits: ["blur", "focus", "input:valid", "input:error", "input"],
100
104
  setup(a, { emit: V }) {
101
- const { t: o, n: E } = qe({ messages: ie }), i = a, w = V, le = ke(), T = s(R.PASSWORD), _ = s(i.value), F = s(!1), oe = s(!1), I = s([]), Q = s({}), h = s(null), g = s(!1), Z = s(null), N = s(null), q = s(null), M = s(!1);
102
- Ee(Me, "bento-input-field-password");
103
- const { focused: ne } = Ve(Z), z = te("validationListId"), X = te("validationPopoverId"), H = p(() => T.value === R.TEXT), se = p(
104
- () => I.value.map(
105
+ const { t: o, n: E } = Me({ messages: oe }), t = a, w = V, ne = Ee(), O = r(T.PASSWORD), h = r(t.value), x = r(!1), se = r(!1), S = r([]), Q = r({}), _ = r(null), g = r(!1), Z = r(null), q = r(null), N = r(null), M = r(!1);
106
+ we(He, "bento-input-field-password");
107
+ const { focused: re } = qe(Z), z = le("validationListId"), X = le("validationPopoverId"), H = v(() => O.value === T.TEXT), de = v(
108
+ () => S.value.map(
105
109
  (e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
106
110
  )
107
- ), re = p(
108
- () => h.value ? "b-input-field-password__input-tooltip--timed" : ""
109
- ), de = p(() => ({
111
+ ), ue = v(
112
+ () => _.value ? "b-input-field-password__input-tooltip--timed" : ""
113
+ ), ce = v(() => ({
110
114
  ariaHidden: !1,
111
- condensed: i.condensed,
112
- disabled: i.disabled,
113
- errorMessage: i.errorMessage,
114
- placeholder: i.placeholder,
115
- readonly: i.readonly,
116
- type: T.value,
117
- value: _.value,
115
+ condensed: t.condensed,
116
+ disabled: t.disabled,
117
+ errorMessage: t.errorMessage,
118
+ optional: t.optional,
119
+ placeholder: t.placeholder,
120
+ readonly: t.readonly,
121
+ required: t.required,
122
+ tooltipText: t.tooltipText,
123
+ type: O.value,
124
+ value: h.value,
118
125
  "aria-haspopup": B.value ? "dialog" : !1,
119
126
  "aria-describedby": B.value ? X : "",
120
- ...le
121
- })), m = p(() => {
122
- var c, d, n, y, O, Y;
123
- if (i.validation && !i.validation.extendDefaultValidation)
124
- return i.validation;
127
+ ...ne
128
+ })), m = v(() => {
129
+ var p, d, n, C, P, Y;
130
+ if (t.validation && !t.validation.extendDefaultValidation)
131
+ return t.validation;
125
132
  const e = [
126
133
  {
127
134
  label: o("validationMinLength", { numberOfCharacters: E(Je) }),
128
- key: k.MIN_LENGTH,
129
- validate: We
135
+ key: y.MIN_LENGTH,
136
+ validate: Fe
130
137
  },
131
138
  {
132
139
  label: o("validationRequireLowercase", { numberOne: E(1) }),
133
- key: k.REQUIRE_LOWERCASE,
140
+ key: y.REQUIRE_LOWERCASE,
134
141
  validate: xe
135
142
  },
136
143
  {
137
144
  label: o("validationRequireUppercase", { numberOne: E(1) }),
138
- key: k.REQUIRE_UPPERCASE,
139
- validate: Fe
145
+ key: y.REQUIRE_UPPERCASE,
146
+ validate: Qe
140
147
  },
141
148
  {
142
149
  label: o("validationRequireNumeric", { numberOne: E(1) }),
143
- key: k.REQUIRE_NUMERIC,
144
- validate: Qe
150
+ key: y.REQUIRE_NUMERIC,
151
+ validate: Ze
145
152
  },
146
153
  {
147
154
  label: o("validationRequireSpecialCharacter", { numberOne: E(1) }),
148
- key: k.REQUIRE_SPECIAL_CHARACTER,
149
- validate: Ze
155
+ key: y.REQUIRE_SPECIAL_CHARACTER,
156
+ validate: ze
150
157
  }
151
158
  ];
152
159
  let l = e;
153
- if (i.validation) {
154
- const be = e.map((u) => u.key), D = (d = (c = i.validation) == null ? void 0 : c.list) == null ? void 0 : d.map((u) => u.key), _e = ((y = (n = i.validation) == null ? void 0 : n.list) == null ? void 0 : y.filter((u) => !be.includes(u.key))) ?? [];
160
+ if (t.validation) {
161
+ const _e = e.map((u) => u.key), D = (d = (p = t.validation) == null ? void 0 : p.list) == null ? void 0 : d.map((u) => u.key), ge = ((C = (n = t.validation) == null ? void 0 : n.list) == null ? void 0 : C.filter((u) => !_e.includes(u.key))) ?? [];
155
162
  l = [...e.map((u) => {
156
163
  var j, ee;
157
- return D != null && D.includes(u.key) ? (ee = (j = i.validation) == null ? void 0 : j.list) == null ? void 0 : ee.find((he) => he.key === u.key) : u;
158
- }), ..._e];
164
+ return D != null && D.includes(u.key) ? (ee = (j = t.validation) == null ? void 0 : j.list) == null ? void 0 : ee.find((ke) => ke.key === u.key) : u;
165
+ }), ...ge];
159
166
  }
160
167
  return {
161
- title: ((O = i.validation) == null ? void 0 : O.title) ?? o("validationTitle"),
162
- suggestion: ((Y = i.validation) == null ? void 0 : Y.suggestion) ?? o("validationSuggestion"),
168
+ title: ((P = t.validation) == null ? void 0 : P.title) ?? o("validationTitle"),
169
+ suggestion: ((Y = t.validation) == null ? void 0 : Y.suggestion) ?? o("validationSuggestion"),
163
170
  list: l
164
171
  };
165
- }), G = p(() => {
172
+ }), $ = v(() => {
166
173
  var e, l;
167
- return (l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.filter((c) => !c.disabled);
168
- }), K = p(() => {
174
+ return (l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.filter((p) => !p.disabled);
175
+ }), G = v(() => {
169
176
  var e;
170
- return (e = I.value) == null ? void 0 : e.some((l) => !l);
171
- }), B = p(
177
+ return (e = S.value) == null ? void 0 : e.some((l) => !l);
178
+ }), B = v(
172
179
  () => {
173
180
  var e, l;
174
- return N.value && ((l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.length) > 0;
181
+ return q.value && ((l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.length) > 0;
175
182
  }
176
- ), J = (e) => {
183
+ ), K = (e) => {
177
184
  typeof e.getModifierState == "function" && (M.value = e.getModifierState("CapsLock"));
178
- }, ue = () => {
179
- H.value ? T.value = R.PASSWORD : T.value = R.TEXT;
180
- }, ce = (e) => {
181
- i.disabled || (_.value = e, w("input", _.value));
182
185
  }, pe = () => {
186
+ H.value ? O.value = T.PASSWORD : O.value = T.TEXT;
187
+ }, ve = (e) => {
188
+ t.disabled || (h.value = e, w("input", h.value));
189
+ }, fe = () => {
183
190
  w("focus");
184
- }, ve = () => {
191
+ }, me = () => {
185
192
  w("blur");
186
- }, $ = (e) => {
193
+ }, J = (e) => {
187
194
  var d;
188
- const l = (d = G.value) == null ? void 0 : d.map((n) => ({
195
+ const l = (d = $.value) == null ? void 0 : d.map((n) => ({
189
196
  key: n.key,
190
197
  label: n.label,
191
198
  isValid: n.validate(e, ...n.additionalArgs ?? [])
192
199
  }));
193
- let c = 1;
194
- I.value = l == null ? void 0 : l.map((n) => n.isValid), Q.value = l == null ? void 0 : l.filter((n) => !n.isValid).reduce((n, y) => {
195
- const O = y.key ?? `custom-rule-${c++}`;
200
+ let p = 1;
201
+ S.value = l == null ? void 0 : l.map((n) => n.isValid), Q.value = l == null ? void 0 : l.filter((n) => !n.isValid).reduce((n, C) => {
202
+ const P = C.key ?? `custom-rule-${p++}`;
196
203
  return {
197
204
  ...n,
198
- [O]: y.label
205
+ [P]: C.label
199
206
  };
200
207
  }, {});
201
- }, fe = () => {
202
- g.value = !1, h.value = null;
203
- }, me = () => {
208
+ }, be = () => {
209
+ g.value = !1, _.value = null;
210
+ }, he = () => {
204
211
  g.value = !0;
205
212
  };
206
213
  return W(
207
- () => i.value,
214
+ () => t.value,
208
215
  (e) => {
209
- _.value = e;
216
+ h.value = e;
210
217
  }
211
- ), W(ne, (e) => {
212
- e || (oe.value = !0), i.disableValidation || (i.withHint && (F.value = e), $(_.value));
218
+ ), W(re, (e) => {
219
+ e || (se.value = !0), t.disableValidation || (t.withHint && (x.value = e), J(h.value));
213
220
  }), W(M, (e) => {
214
- e ? (g.value = !0, h.value = setTimeout(() => {
215
- h.value = null, g.value = !1;
216
- }, je)) : (clearTimeout(h.value), h.value = null, g.value = !1);
221
+ e ? (g.value = !0, _.value = setTimeout(() => {
222
+ _.value = null, g.value = !1;
223
+ }, ea)) : (clearTimeout(_.value), _.value = null, g.value = !1);
217
224
  }), Ne(
218
- _,
225
+ h,
219
226
  (e) => {
220
- $(e), K.value ? w("input:error", Q.value) : w("input:valid");
227
+ J(e), G.value ? w("input:error", Q.value) : w("input:valid");
221
228
  },
222
229
  // wait for 0.5s before checking validity OR 2s of continuous typing
223
- { debounce: i.debounceTime, maxWait: Ye }
224
- ), (e, l) => (r(), S("div", {
230
+ { debounce: t.debounceTime, maxWait: je }
231
+ ), (e, l) => (s(), R("div", {
225
232
  ref_key: "inputFieldPasswordRef",
226
233
  ref: Z
227
234
  }, [
228
- P(t(Ie), we({
235
+ A(i(Oe), Ce({
229
236
  ref_key: "inputFieldPasswordInputRef",
230
- ref: N
231
- }, de.value, {
237
+ ref: q
238
+ }, ce.value, {
232
239
  class: "b-input-field-password__input",
233
240
  spellcheck: "false",
234
- onBlur: ve,
235
- onFocus: pe,
236
- onInput: ce,
237
- onKeydown: J,
238
- onKeyup: J
239
- }), ye({
240
- default: f(() => [
241
- A(C(e.label), 1)
241
+ onBlur: me,
242
+ onFocus: fe,
243
+ onInput: ve,
244
+ onKeydown: K,
245
+ onKeyup: K
246
+ }), Re({
247
+ default: c(() => [
248
+ e.label ? (s(), R(te, { key: 0 }, [
249
+ L(k(e.label), 1)
250
+ ], 64)) : ae(e.$slots, "default", { key: 1 }, void 0, !0)
242
251
  ]),
243
252
  _: 2
244
253
  }, [
254
+ e.description ? {
255
+ name: "description",
256
+ fn: c(() => [
257
+ ae(e.$slots, "description", {}, () => [
258
+ L(k(e.description), 1)
259
+ ], !0)
260
+ ]),
261
+ key: "0"
262
+ } : void 0,
245
263
  M.value ? {
246
264
  name: "iconBefore",
247
- fn: f(() => [
265
+ fn: c(() => [
248
266
  U("div", {
249
267
  class: "b-input-field-password__caps-lock-indicator",
250
- onMouseenter: me,
251
- onMouseleave: fe
268
+ onMouseenter: he,
269
+ onMouseleave: be
252
270
  }, [
253
- P(t(Te), {
271
+ A(i(Ie), {
254
272
  ref_key: "inputFieldPasswordCapsLockIconRef",
255
- ref: q,
256
- src: t(De),
257
- alt: t(o)("capsLockEnabled")
273
+ ref: N,
274
+ src: i(We),
275
+ alt: i(o)("capsLockEnabled")
258
276
  }, null, 8, ["src", "alt"])
259
277
  ], 32),
260
- q.value ? (r(), v(t(He), {
278
+ N.value ? (s(), f(i(Be), {
261
279
  key: 0,
262
- class: ae(re.value),
263
- content: t(o)("capsLockEnabled"),
280
+ class: ie(ue.value),
281
+ content: i(o)("capsLockEnabled"),
264
282
  "disabled-focus-trap": !0,
265
283
  "fallback-position": ["top", "bottom"],
266
284
  "is-shown": g.value,
267
- "target-element": q.value
285
+ "target-element": N.value
268
286
  }, null, 8, ["class", "content", "is-shown", "target-element"])) : b("", !0)
269
287
  ]),
270
- key: "0"
288
+ key: "1"
271
289
  } : void 0,
272
290
  e.disabled ? void 0 : {
273
291
  name: "iconAfter",
274
- fn: f(() => [
275
- P(t(Le), {
292
+ fn: c(() => [
293
+ A(i(Te), {
276
294
  variant: "tertiary",
277
- onClick: ue
295
+ onClick: pe
278
296
  }, {
279
- iconLeft: f(() => [
280
- H.value ? b("", !0) : (r(), v(t(Ae), {
297
+ iconLeft: c(() => [
298
+ H.value ? b("", !0) : (s(), f(i(Ue), {
281
299
  key: 0,
282
- "svg-title": t(o)("showPassword")
300
+ "svg-title": i(o)("showPassword")
283
301
  }, null, 8, ["svg-title"])),
284
- H.value ? (r(), v(t(Ue), {
302
+ H.value ? (s(), f(i(Ve), {
285
303
  key: 1,
286
- "svg-title": t(o)("hidePassword")
304
+ "svg-title": i(o)("hidePassword")
287
305
  }, null, 8, ["svg-title"])) : b("", !0)
288
306
  ]),
289
307
  _: 1
290
308
  })
291
309
  ]),
292
- key: "1"
310
+ key: "2"
293
311
  }
294
312
  ]), 1040),
295
- B.value ? (r(), v(t(Oe), {
313
+ B.value ? (s(), f(i(Se), {
296
314
  key: 0,
297
- open: F.value,
298
- "target-element": N.value,
315
+ open: x.value,
316
+ "target-element": q.value,
299
317
  "disable-focus-trap": !0,
300
318
  "aria-label": m.value.title,
301
- "aria-describedby": t(z),
319
+ "aria-describedby": i(z),
302
320
  position: "right-start"
303
321
  }, {
304
- default: f(() => [
305
- U("div", { id: t(X) }, [
306
- m.value.title ? (r(), v(t(x), {
322
+ default: c(() => [
323
+ U("div", { id: i(X) }, [
324
+ m.value.title ? (s(), f(i(F), {
307
325
  key: 0,
308
326
  class: "b-input-field-password__validation-title"
309
327
  }, {
310
- default: f(() => [
311
- A(C(m.value.title), 1)
328
+ default: c(() => [
329
+ L(k(m.value.title), 1)
312
330
  ]),
313
331
  _: 1
314
332
  })) : b("", !0),
315
- K.value ? b("", !0) : (r(), S("p", Xe, C(t(o)("validationValid")), 1)),
333
+ G.value ? b("", !0) : (s(), R("p", $e, k(i(o)("validationValid")), 1)),
316
334
  U("ul", {
317
- id: t(z),
335
+ id: i(z),
318
336
  class: "b-input-field-password__validation-list"
319
337
  }, [
320
- (r(!0), S(Ce, null, Re(G.value, (c, d) => (r(), S("li", {
338
+ (s(!0), R(te, null, Le($.value, (p, d) => (s(), R("li", {
321
339
  key: d,
322
- class: ae(se.value[d]),
340
+ class: ie(de.value[d]),
323
341
  "aria-live": "polite",
324
342
  "aria-atomic": "true"
325
343
  }, [
326
344
  U("span", Ke, [
327
- I.value[d] ? (r(), v(t(Se), {
345
+ S.value[d] ? (s(), f(i(Pe), {
328
346
  key: 0,
329
- "svg-title": t(o)("validationChecked")
330
- }, null, 8, ["svg-title"])) : (r(), v(t(Pe), {
347
+ "svg-title": i(o)("validationChecked")
348
+ }, null, 8, ["svg-title"])) : (s(), f(i(Ae), {
331
349
  key: 1,
332
- "svg-title": t(o)("validationUnchecked")
350
+ "svg-title": i(o)("validationUnchecked")
333
351
  }, null, 8, ["svg-title"]))
334
352
  ]),
335
- P(t(x), {
353
+ A(i(F), {
336
354
  class: "b-input-field-password__validation-list-text",
337
355
  el: "span"
338
356
  }, {
339
- default: f(() => [
340
- A(C(c.label), 1)
357
+ default: c(() => [
358
+ L(k(p.label), 1)
341
359
  ]),
342
360
  _: 2
343
361
  }, 1024)
344
362
  ], 2))), 128))
345
363
  ], 8, Ge),
346
- m.value.suggestion ? (r(), v(t(x), {
364
+ m.value.suggestion ? (s(), f(i(F), {
347
365
  key: 2,
348
366
  class: "b-input-field-password__validation-suggestion"
349
367
  }, {
350
- default: f(() => [
351
- A(C(m.value.suggestion), 1)
368
+ default: c(() => [
369
+ L(k(m.value.suggestion), 1)
352
370
  ]),
353
371
  _: 1
354
372
  })) : b("", !0)
355
- ], 8, ze)
373
+ ], 8, Xe)
356
374
  ]),
357
375
  _: 1
358
376
  }, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : b("", !0)
359
377
  ], 512));
360
378
  }
361
- }), ga = /* @__PURE__ */ Be(aa, [["__scopeId", "data-v-4a3e5aec"]]);
379
+ }), ka = /* @__PURE__ */ De(ta, [["__scopeId", "data-v-5ff7942d"]]);
362
380
  export {
363
- Fe as a,
364
- Qe as b,
365
- Ze as c,
366
- ga as i,
367
- We as m,
381
+ Qe as a,
382
+ Ze as b,
383
+ ze as c,
384
+ ka as i,
385
+ Fe as m,
368
386
  xe as r
369
387
  };
370
- //# sourceMappingURL=input-field-password.BtM3-txc.js.map
388
+ //# sourceMappingURL=input-field-password.BVnZWBAV.js.map