@adyen/bento-vue3 1.5.0 → 1.6.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 (238) hide show
  1. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +77 -77
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +7 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +49 -11
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +2 -2
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +32 -33
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +60 -60
  18. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
  25. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
  26. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +11 -1
  27. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
  28. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
  29. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
  30. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  31. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
  34. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
  35. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
  38. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
  39. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  40. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +10 -1
  41. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  43. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
  44. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
  45. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  47. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  49. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
  53. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
  55. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +24 -52
  56. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -4
  57. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
  58. package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
  59. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
  60. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  61. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +77 -1
  62. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
  64. package/dist/accordion.js +42 -47
  65. package/dist/accordion.js.map +1 -1
  66. package/dist/alert.js +4 -4
  67. package/dist/assets/base-modal.css +1 -1
  68. package/dist/assets/button.css +1 -1
  69. package/dist/assets/controls-group.css +1 -1
  70. package/dist/assets/dropdown.css +1 -1
  71. package/dist/assets/index.css +1 -1
  72. package/dist/assets/index10.css +1 -1
  73. package/dist/assets/index11.css +1 -1
  74. package/dist/assets/index12.css +1 -1
  75. package/dist/assets/index13.css +1 -1
  76. package/dist/assets/index14.css +1 -1
  77. package/dist/assets/index15.css +1 -1
  78. package/dist/assets/index16.css +1 -1
  79. package/dist/assets/index17.css +1 -1
  80. package/dist/assets/index18.css +1 -1
  81. package/dist/assets/index19.css +1 -1
  82. package/dist/assets/index2.css +1 -1
  83. package/dist/assets/index20.css +1 -1
  84. package/dist/assets/index21.css +1 -1
  85. package/dist/assets/index22.css +1 -1
  86. package/dist/assets/index23.css +1 -1
  87. package/dist/assets/index24.css +1 -1
  88. package/dist/assets/index25.css +1 -1
  89. package/dist/assets/index26.css +1 -1
  90. package/dist/assets/index28.css +1 -1
  91. package/dist/assets/index29.css +1 -1
  92. package/dist/assets/index3.css +1 -1
  93. package/dist/assets/index30.css +1 -1
  94. package/dist/assets/index31.css +1 -1
  95. package/dist/assets/index32.css +1 -1
  96. package/dist/assets/index33.css +1 -1
  97. package/dist/assets/index34.css +1 -1
  98. package/dist/assets/index35.css +1 -1
  99. package/dist/assets/index36.css +1 -1
  100. package/dist/assets/index37.css +1 -1
  101. package/dist/assets/index38.css +1 -1
  102. package/dist/assets/index39.css +1 -1
  103. package/dist/assets/index4.css +1 -1
  104. package/dist/assets/index40.css +1 -1
  105. package/dist/assets/index41.css +1 -1
  106. package/dist/assets/index42.css +1 -1
  107. package/dist/assets/index43.css +1 -1
  108. package/dist/assets/index44.css +1 -1
  109. package/dist/assets/index45.css +1 -0
  110. package/dist/assets/index5.css +1 -1
  111. package/dist/assets/index6.css +1 -1
  112. package/dist/assets/index7.css +1 -1
  113. package/dist/assets/index8.css +1 -1
  114. package/dist/assets/index9.css +1 -1
  115. package/dist/assets/loading-button.css +1 -1
  116. package/dist/avatar-image.js +1 -1
  117. package/dist/badge.js +1 -1
  118. package/dist/button.js +5 -5
  119. package/dist/card.js +135 -121
  120. package/dist/card.js.map +1 -1
  121. package/dist/checkbox.js +24 -25
  122. package/dist/checkbox.js.map +1 -1
  123. package/dist/chunks/{base-button.9740f320.js → base-button.90687c75.js} +3 -3
  124. package/dist/chunks/{base-button.9740f320.js.map → base-button.90687c75.js.map} +1 -1
  125. package/dist/chunks/{base-modal.be77971f.js → base-modal.c956b084.js} +58 -58
  126. package/dist/chunks/base-modal.c956b084.js.map +1 -0
  127. package/dist/chunks/{button.7072457f.js → button.9d72e2d7.js} +3 -3
  128. package/dist/chunks/{button.7072457f.js.map → button.9d72e2d7.js.map} +1 -1
  129. package/dist/chunks/{calendar.1e50c7d1.js → calendar.e7db78d0.js} +6 -5
  130. package/dist/chunks/{calendar.1e50c7d1.js.map → calendar.e7db78d0.js.map} +1 -1
  131. package/dist/chunks/{checkbox.638bab98.js → checkbox.ecbb4f0c.js} +4 -4
  132. package/dist/chunks/{checkbox.638bab98.js.map → checkbox.ecbb4f0c.js.map} +1 -1
  133. package/dist/chunks/{controls-group.efcf4e8d.js → controls-group.34f1f82a.js} +2 -2
  134. package/dist/chunks/{controls-group.efcf4e8d.js.map → controls-group.34f1f82a.js.map} +1 -1
  135. package/dist/chunks/{copy.527c3d76.js → copy.aaec57b6.js} +3 -3
  136. package/dist/chunks/{copy.527c3d76.js.map → copy.aaec57b6.js.map} +1 -1
  137. package/dist/chunks/date-input.9186a0bf.js.map +1 -1
  138. package/dist/chunks/{dropdown-default-textbox.a1789dc7.js → dropdown-default-textbox.88a42e9b.js} +3 -3
  139. package/dist/chunks/{dropdown-default-textbox.a1789dc7.js.map → dropdown-default-textbox.88a42e9b.js.map} +1 -1
  140. package/dist/chunks/{dropdown.22e51667.js → dropdown.6a484461.js} +182 -177
  141. package/dist/chunks/dropdown.6a484461.js.map +1 -0
  142. package/dist/chunks/{error-message.37b6c7aa.js → error-message.11e1fa1f.js} +2 -2
  143. package/dist/chunks/{error-message.37b6c7aa.js.map → error-message.11e1fa1f.js.map} +1 -1
  144. package/dist/chunks/{footer-actions.5275203a.js → footer-actions.a65cb2e3.js} +3 -3
  145. package/dist/chunks/{footer-actions.5275203a.js.map → footer-actions.a65cb2e3.js.map} +1 -1
  146. package/dist/chunks/{grid-layout.c98e6bc7.js → grid-layout.7c919507.js} +2 -2
  147. package/dist/chunks/{grid-layout.c98e6bc7.js.map → grid-layout.7c919507.js.map} +1 -1
  148. package/dist/chunks/{index.c22c4278.js → index.424e2ea4.js} +6 -6
  149. package/dist/chunks/{index.c22c4278.js.map → index.424e2ea4.js.map} +1 -1
  150. package/dist/chunks/{index.dd20095f.js → index.655b761f.js} +3 -3
  151. package/dist/chunks/{index.dd20095f.js.map → index.655b761f.js.map} +1 -1
  152. package/dist/chunks/{index.c62ea69f.js → index.754349ff.js} +2 -2
  153. package/dist/chunks/{index.c62ea69f.js.map → index.754349ff.js.map} +1 -1
  154. package/dist/chunks/{index.a57930ba.js → index.84f6360f.js} +11 -10
  155. package/dist/chunks/{index.a57930ba.js.map → index.84f6360f.js.map} +1 -1
  156. package/dist/chunks/{index.32ed68b7.js → index.9fc54b60.js} +2 -2
  157. package/dist/chunks/{index.32ed68b7.js.map → index.9fc54b60.js.map} +1 -1
  158. package/dist/chunks/{index.604da8e9.js → index.bc9e0cde.js} +3 -3
  159. package/dist/chunks/{index.604da8e9.js.map → index.bc9e0cde.js.map} +1 -1
  160. package/dist/chunks/{listbox-option-tag.fa70334e.js → listbox-option-tag.ea9f377f.js} +3 -3
  161. package/dist/chunks/{listbox-option-tag.fa70334e.js.map → listbox-option-tag.ea9f377f.js.map} +1 -1
  162. package/dist/chunks/{listbox.4205c0de.js → listbox.a7255ce1.js} +4 -4
  163. package/dist/chunks/{listbox.4205c0de.js.map → listbox.a7255ce1.js.map} +1 -1
  164. package/dist/chunks/{loading-button.41c15584.js → loading-button.fb1f20a3.js} +32 -32
  165. package/dist/chunks/loading-button.fb1f20a3.js.map +1 -0
  166. package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
  167. package/dist/chunks/{tooltip.c8350cd0.js → tooltip.6af06509.js} +64 -63
  168. package/dist/chunks/tooltip.6af06509.js.map +1 -0
  169. package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
  170. package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
  171. package/dist/chunks/use-has-slot.4d98bf29.js +15 -0
  172. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -0
  173. package/dist/code-snippet.js +7 -7
  174. package/dist/code-snippet.js.map +1 -1
  175. package/dist/country.js +2 -2
  176. package/dist/currency.js +1 -1
  177. package/dist/data-grid.js +944 -888
  178. package/dist/data-grid.js.map +1 -1
  179. package/dist/date-picker.js +7 -7
  180. package/dist/date-range-picker.js +2 -2
  181. package/dist/date.js +1 -1
  182. package/dist/divider.js +1 -1
  183. package/dist/dropdown.js +4 -4
  184. package/dist/empty-state.js +3 -3
  185. package/dist/filter-bar.js +990 -904
  186. package/dist/filter-bar.js.map +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +81 -70
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header.js +92 -87
  191. package/dist/header.js.map +1 -1
  192. package/dist/index.js +14 -14
  193. package/dist/info-icon.js +12 -12
  194. package/dist/info-icon.js.map +1 -1
  195. package/dist/input-field.js +115 -110
  196. package/dist/input-field.js.map +1 -1
  197. package/dist/internal.js +144 -18
  198. package/dist/internal.js.map +1 -1
  199. package/dist/link.js +38 -35
  200. package/dist/link.js.map +1 -1
  201. package/dist/loading-indicator.js +1 -1
  202. package/dist/menu.js +8 -6
  203. package/dist/menu.js.map +1 -1
  204. package/dist/modal.js +52 -44
  205. package/dist/modal.js.map +1 -1
  206. package/dist/pagination.js +4 -4
  207. package/dist/payment-method.js +2 -2
  208. package/dist/popover.js +4 -4
  209. package/dist/popper-container.js +1 -1
  210. package/dist/radio-group.js +5 -5
  211. package/dist/search-bar.js +7 -7
  212. package/dist/search-bar.js.map +1 -1
  213. package/dist/segmented-control.js +4 -4
  214. package/dist/sidepanel.js +19 -19
  215. package/dist/sidepanel.js.map +1 -1
  216. package/dist/status.js +2 -2
  217. package/dist/stepper.js +3 -3
  218. package/dist/structured-list.js +1 -1
  219. package/dist/summary-grid.js +5 -5
  220. package/dist/tabs.js +64 -64
  221. package/dist/tabs.js.map +1 -1
  222. package/dist/tag.js +3 -3
  223. package/dist/textarea.js +188 -229
  224. package/dist/textarea.js.map +1 -1
  225. package/dist/timeline.js +37 -37
  226. package/dist/timeline.js.map +1 -1
  227. package/dist/toast.js +4 -4
  228. package/dist/toggle.js +3 -3
  229. package/dist/typography.js +1 -1
  230. package/dist/web-types.json +1 -1
  231. package/package.json +5 -3
  232. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
  233. package/dist/chunks/base-modal.be77971f.js.map +0 -1
  234. package/dist/chunks/dropdown.22e51667.js.map +0 -1
  235. package/dist/chunks/loading-button.41c15584.js.map +0 -1
  236. package/dist/chunks/tooltip.c8350cd0.js.map +0 -1
  237. package/dist/chunks/use-has-slot.3daaffc6.js +0 -17
  238. package/dist/chunks/use-has-slot.3daaffc6.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","sources":["../../vue2/src/components/textarea/textarea.types.ts","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/cross-circle-fill-small.vue","../../vue2/src/components/textarea/textarea.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTextareaResizeOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n BOTH = 'both',\n NONE = 'none',\n}\n\nexport enum BentoTextareaStateClass {\n CLEARABLE = 'clearable',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoTextareaEvent {\n BLUR = 'blur',\n CHANGE = 'change',\n CLEAR = 'clear',\n ESCAPE_PRESSED = 'escape-pressed',\n FOCUS = 'focus',\n INPUT = 'input',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" fill-rule=\"evenodd\" d=\"M2.25 8C2.25 4.82436 4.82436 2.25 8 2.25C11.1756 2.25 13.75 4.82436 13.75 8C13.75 11.1756 11.1756 13.75 8 13.75C4.82436 13.75 2.25 11.1756 2.25 8ZM5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967Z\" clip-rule=\"evenodd\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","<template>\n <div class=\"b-textarea\" :class=\"conditionalClasses\" :style=\"{ width: textareaWidth }\">\n <div class=\"b-textarea__label-box\" :class=\"conditionalClassesLabelBox\">\n <label v-if=\"label\" :for=\"textareaId\" class=\"b-textarea__label\">\n <bento-typography el=\"span\" stronger>{{ label }}</bento-typography>\n <bento-typography v-if=\"optional && !required\" el=\"span\" class=\"b-textarea__label-item\">\n ({{ t('optional') }})\n </bento-typography>\n <bento-typography v-if=\"required\" el=\"span\" class=\"b-textarea__label-item\">\n ({{ t('required') }})\n </bento-typography>\n </label>\n <bento-typography\n v-if=\"characterLimit\"\n el=\"span\"\n class=\"b-textarea__label-item\"\n :class=\"conditionalClassesLabelItem\"\n >\n {{ counter }}\n </bento-typography>\n </div>\n <bento-typography el=\"div\" class=\"b-textarea__input-box\" :aria-disabled=\"disabled\">\n <textarea\n :id=\"textareaId\"\n ref=\"textareaElement\"\n :value=\"textareaValue\"\n class=\"b-textarea__input\"\n :class=\"conditionalClassesInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-invalid=\"invalidInput\"\n :readonly=\"isReadOnly\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :style=\"{ resize: resizable, height: textareaHeight }\"\n @blur=\"onBlur\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown.esc=\"onPressEscape\"\n >\n </textarea>\n\n <div v-if=\"showClearButton\" class=\"b-textarea__clear-button\">\n <bento-button\n variant=\"tertiary\"\n :disabled=\"disabled\"\n @click=\"onClear\"\n @keypress.enter=\"onClear\"\n @keyup.space=\"onClear\"\n >\n <template #iconLeft>\n <cross-circle-fill-small-icon :svg-title=\"t('clearText')\" />\n </template>\n </bento-button>\n </div>\n </bento-typography>\n\n <error-message v-if=\"isOverCharacterLimit\" :error-message=\"counterErrorText\" />\n\n <error-message v-if=\"errorMessage\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"description\" class=\"b-textarea__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, onMounted, PropType, ref, toRef, toRefs, watch } from 'vue';\n import { BentoTextareaEvent, BentoTextareaResizeOption, BentoTextareaStateClass } from './textarea.types';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { ErrorMessage } from '@/components/internal';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n import { generateUid } from '@/utils/ts/unique-id';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useI18n } from '@/utils/ts/i18n';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-textarea',\n components: { BentoButton, BentoTypography, ErrorMessage, CrossCircleFillSmallIcon },\n props: {\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Text that shows number of characters in textarea\n */\n characterLimit: { type: Number, default: undefined },\n\n /**\n * Text displayed as the help text of the textarea\n */\n description: { type: String, default: '' },\n\n /**\n * Disables the possibility of changing value in the textarea\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If set to true, shows a button to clear all the text\n */\n clearable: { type: Boolean, default: false },\n\n /**\n * Adds error text\n */\n errorMessage: { type: String, default: '' },\n\n /**\n * Sets the height of the textarea, e.g 200px OR 20vh\n */\n height: { type: String, default: null },\n\n /**\n * Text displayed as the label of the textarea\n */\n label: { type: String, default: '' },\n\n /**\n * Highlights the textarea is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the textarea\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Set the textarea to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the possibility of resize the textarea\n */\n resizable: {\n type: String as PropType<BentoTextareaResizeOption | `${BentoTextareaResizeOption}`>,\n default: BentoTextareaResizeOption.BOTH,\n validator: (value: BentoTextareaResizeOption) =>\n Object.values(BentoTextareaResizeOption).includes(value),\n },\n\n /**\n * Highlights the textarea is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Text displayed as the value of the textarea\n */\n value: { type: String, default: '' },\n },\n emits: [\n BentoTextareaEvent.BLUR,\n BentoTextareaEvent.CHANGE,\n BentoTextareaEvent.CLEAR,\n BentoTextareaEvent.ESCAPE_PRESSED,\n BentoTextareaEvent.FOCUS,\n BentoTextareaEvent.INPUT,\n ],\n setup(props, { attrs, emit }) {\n const { height } = toRefs(props);\n\n const textareaId = generateUid('textarea');\n const textareaElement = ref<HTMLTextAreaElement>(null);\n const textareaValue = ref(props.value);\n const defaultTextareaHeight = 44;\n const textareaHeight = ref(props.height || `${defaultTextareaHeight}px`);\n const textareaWidth = ref('100%');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const counter = computed(() => `${textareaValue.value.length} / ${props.characterLimit}`);\n const isOverCharacterLimit = computed(\n () => props.characterLimit && textareaValue.value.length > props.characterLimit\n );\n\n const calculateHeight = () => {\n const borderWidth = 3;\n if (textareaElement.value && textareaElement.value.scrollHeight > defaultTextareaHeight) {\n textareaHeight.value = `${textareaElement.value.scrollHeight + borderWidth}px`;\n }\n };\n\n watch(height, () => {\n if (!height.value) {\n calculateHeight();\n } else {\n textareaHeight.value = height.value;\n }\n });\n\n watch(\n () => props.value,\n () => {\n textareaValue.value = props.value;\n },\n { immediate: true }\n );\n\n watch(\n () => textareaValue.value,\n async () => {\n if (!height.value) {\n // Hack to make the textarea calculate its height properly\n // Set the textarea back to the original value before calculating the height\n textareaHeight.value = `${defaultTextareaHeight}px`;\n if (!textareaValue.value) {\n return;\n }\n\n await nextTick();\n calculateHeight();\n }\n },\n { immediate: true }\n );\n\n const invalidInput = computed(() => !!props.errorMessage || isOverCharacterLimit.value);\n\n const conditionalClasses = computed(() => ({\n [`b-textarea--${BentoTextareaStateClass.DISABLED}`]: props.disabled,\n }));\n\n const conditionalClassesInput = computed(() => ({\n [`b-textarea__input--${BentoTextareaStateClass.CLEARABLE}`]: props.clearable,\n [`b-textarea__input--${BentoTextareaStateClass.READONLY}`]: isReadOnly.value,\n [`b-textarea__input--${BentoTextareaStateClass.ERROR}`]: invalidInput.value,\n [`b-textarea__input--dynamic-height`]: !height.value,\n }));\n\n const conditionalClassesLabelBox = computed(() => ({\n [`b-textarea__label-box--no-label`]: !props.label,\n }));\n\n const conditionalClassesLabelItem = computed(() => ({\n [`b-textarea__label-item--${BentoTextareaStateClass.ERROR}`]: isOverCharacterLimit.value,\n }));\n\n const counterErrorText = computed(() =>\n t('yourTextCanBenAtMost', { characterLimit: props.characterLimit })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, label } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: label,\n });\n\n const showClearButton = computed(\n () => props.clearable && textareaValue.value && !props.disabled && !isReadOnly.value\n );\n\n const onClear = () => {\n textareaValue.value = '';\n emit(BentoTextareaEvent.CLEAR);\n emit(BentoTextareaEvent.INPUT, '');\n };\n\n const onInput = (event: InputEvent) => {\n if (!props.disabled && !isReadOnly.value) {\n textareaValue.value = (event.target as HTMLInputElement).value;\n /**\n * Triggered when input value is changed\n *\n * @event input\n * @property {String} inputValue - the updated textarea value\n */\n emit(BentoTextareaEvent.INPUT, textareaValue.value);\n }\n };\n\n const onBlur = () => {\n textareaElement.value.scrollTop = 0;\n emit(BentoTextareaEvent.BLUR);\n };\n\n const onFocus = () => {\n textareaElement.value.focus();\n emit(BentoTextareaEvent.FOCUS);\n };\n\n const onChange = () => {\n emit(BentoTextareaEvent.CHANGE);\n };\n\n const onPressEscape = () => {\n emit(BentoTextareaEvent.ESCAPE_PRESSED);\n };\n\n onMounted(() => {\n observeSizeOfElement(textareaElement.value, () => {\n const offsetWidth = textareaElement?.value?.offsetWidth;\n textareaWidth.value = offsetWidth ? `${offsetWidth}px` : '100%';\n });\n\n if (!height.value) {\n calculateHeight();\n }\n });\n\n return {\n // Enums\n BentoTextareaEvent,\n\n // Methods\n onBlur,\n onChange,\n onClear,\n onFocus,\n onInput,\n onPressEscape,\n t,\n\n // Values\n computedAriaLabel,\n conditionalClasses,\n conditionalClassesLabelItem,\n conditionalClassesLabelBox,\n counter,\n counterErrorText,\n conditionalClassesInput,\n invalidInput,\n isOverCharacterLimit,\n isReadOnly,\n showClearButton,\n textareaElement,\n textareaHeight,\n textareaId,\n textareaValue,\n textareaWidth,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./textarea.scss\" />\n"],"names":["BentoTextareaResizeOption","BentoTextareaResizeOption2","BentoTextareaStateClass","BentoTextareaStateClass2","BentoTextareaEvent","BentoTextareaEvent2","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","_sfc_main","defineComponent","messages","BentoButton","BentoTypography","ErrorMessage","CrossCircleFillSmallIcon","value","props","attrs","emit","height","toRefs","textareaId","generateUid","textareaElement","ref","textareaValue","defaultTextareaHeight","textareaHeight","textareaWidth","t","useI18n","isReadOnly","useFormLayoutFieldLoading","toRef","counter","computed","isOverCharacterLimit","calculateHeight","watch","nextTick","invalidInput","conditionalClasses","conditionalClassesInput","conditionalClassesLabelBox","conditionalClassesLabelItem","counterErrorText","ariaLabelAttribute","ariaLabel","label","computedAriaLabel","useAriaLabel","showClearButton","onClear","onInput","event","onBlur","onFocus","onChange","onPressEscape","onMounted","observeSizeOfElement","offsetWidth","_a","normalizeClass","createBlock","_component_bento_typography","createCommentVNode","_hoisted_1","createVNode","createElementVNode","normalizeStyle","_cache","args","withKeys","_hoisted_2","_hoisted_3","_component_bento_button","withCtx","_component_cross_circle_fill_small_icon","_component_error_message"],"mappings":";;;;;;;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YACAA,EAAA,OAAA,QACAA,EAAA,OAAA,QAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SANQA,IAAAD,KAAA,CAAA,CAAA;ACZR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARuK,MAAA;AAAA,EAAe,aAAA;AAAA,EAAoB,GAAA;AAAA,EAAgpB,aAAA;;;AAAl2B,SAAAC,EAAA,GAAAC,EAAA,OAAAC,GAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,IAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;;;;;;;;GCkFtGG,KAAAC,GAAA;AAAA,EAA+B,MAAA,EAAA,UAAAC,EAAA;AAAA,EACV,MAAA;AAAA,EACX,YAAA,EAAA,aAAAC,IAAA,iBAAAC,IAAA,cAAAC,IAAA,0BAAAC,GAAA;AAAA,EAC6E,OAAA;AAAA;AAAA;AAAA;AAAA,IAC5E,WAAA,EAAA,MAAA,QAAA,SAAA,OAAA;AAAA;AAAA;AAAA;AAAA,IAI2C,gBAAA,EAAA,MAAA,QAAA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[1]}
1
+ {"version":3,"file":"textarea.js","sources":["../../vue2/src/components/textarea/textarea.types.ts","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/cross-circle-fill-small.vue","../../vue2/src/components/textarea/textarea.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTextareaResizeOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n BOTH = 'both',\n NONE = 'none',\n}\n\nexport enum BentoTextareaStateClass {\n CLEARABLE = 'clearable',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoTextareaEvent {\n BLUR = 'blur',\n CHANGE = 'change',\n CLEAR = 'clear',\n ESCAPE_PRESSED = 'escape-pressed',\n FOCUS = 'focus',\n INPUT = 'input',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" fill-rule=\"evenodd\" d=\"M2.25 8C2.25 4.82436 4.82436 2.25 8 2.25C11.1756 2.25 13.75 4.82436 13.75 8C13.75 11.1756 11.1756 13.75 8 13.75C4.82436 13.75 2.25 11.1756 2.25 8ZM5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967Z\" clip-rule=\"evenodd\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","<template>\n <div class=\"b-textarea\" :class=\"conditionalClasses\" :style=\"{ width: textareaWidth }\">\n <div class=\"b-textarea__label-box\" :class=\"conditionalClassesLabelBox\">\n <label v-if=\"label\" :for=\"textareaId\" class=\"b-textarea__label\">\n <bento-typography el=\"span\" stronger>{{ label }}</bento-typography>\n <bento-typography v-if=\"optional && !required\" el=\"span\" class=\"b-textarea__label-item\">\n ({{ t('optional') }})\n </bento-typography>\n <bento-typography v-if=\"required\" el=\"span\" class=\"b-textarea__label-item\">\n ({{ t('required') }})\n </bento-typography>\n </label>\n <bento-typography\n v-if=\"characterLimit\"\n el=\"span\"\n class=\"b-textarea__label-item\"\n :class=\"conditionalClassesLabelItem\"\n >\n {{ counter }}\n </bento-typography>\n </div>\n <bento-typography el=\"div\" class=\"b-textarea__input-box\" :aria-disabled=\"disabled\">\n <textarea\n :id=\"textareaId\"\n ref=\"textareaElement\"\n :value=\"textareaValue\"\n class=\"b-textarea__input\"\n :class=\"conditionalClassesInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-invalid=\"invalidInput\"\n :readonly=\"isReadOnly\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :style=\"{ resize: resizable, height: textareaHeight }\"\n @blur=\"onBlur\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown.esc=\"onPressEscape\"\n >\n </textarea>\n\n <div v-if=\"showClearButton\" class=\"b-textarea__clear-button\">\n <bento-button\n variant=\"tertiary\"\n :disabled=\"disabled\"\n @click=\"onClear\"\n @keypress.enter=\"onClear\"\n @keyup.space=\"onClear\"\n >\n <template #iconLeft>\n <cross-circle-fill-small-icon :svg-title=\"t('clearText')\" />\n </template>\n </bento-button>\n </div>\n </bento-typography>\n\n <error-message v-if=\"isOverCharacterLimit\" :error-message=\"counterErrorText\" />\n\n <error-message v-if=\"errorMessage\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"description\" class=\"b-textarea__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, PropType, ref, toRef, toRefs, useAttrs, watch } from 'vue';\n import { BentoTextareaEvent, BentoTextareaResizeOption, BentoTextareaStateClass } from './textarea.types';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { ErrorMessage } from '@/components/internal';\n import { generateUid } from '@/utils/ts/unique-id';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useI18n } from '@/utils/ts/i18n';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n\n const props = defineProps({\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Text that shows number of characters in textarea\n */\n characterLimit: { type: Number, default: undefined },\n\n /**\n * Text displayed as the help text of the textarea\n */\n description: { type: String, default: '' },\n\n /**\n * Disables the possibility of changing value in the textarea\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If set to true, shows a button to clear all the text\n */\n clearable: { type: Boolean, default: false },\n\n /**\n * Adds error text\n */\n errorMessage: { type: String, default: '' },\n\n /**\n * Sets the height of the textarea, e.g 200px OR 20vh\n */\n height: { type: String, default: null },\n\n /**\n * Text displayed as the label of the textarea\n */\n label: { type: String, default: '' },\n\n /**\n * Highlights the textarea is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the textarea\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Set the textarea to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the possibility of resize the textarea\n */\n resizable: {\n type: String as PropType<BentoTextareaResizeOption | `${BentoTextareaResizeOption}`>,\n default: BentoTextareaResizeOption.BOTH,\n validator: (value: BentoTextareaResizeOption) => Object.values(BentoTextareaResizeOption).includes(value),\n },\n\n /**\n * Highlights the textarea is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Text displayed as the value of the textarea\n */\n value: { type: String, default: '' },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: BentoTextareaEvent.BLUR): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: BentoTextareaEvent.CHANGE): void;\n\n /**\n * Emitted when the \"Clear\" button was clicked\n */\n (e: BentoTextareaEvent.CLEAR): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: BentoTextareaEvent.ESCAPE_PRESSED): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: BentoTextareaEvent.FOCUS): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: BentoTextareaEvent.INPUT, value: string): void;\n }>();\n\n const { height } = toRefs(props);\n\n const textareaId = generateUid('textarea');\n const textareaElement = ref<HTMLTextAreaElement>(null);\n const textareaValue = ref(props.value);\n const defaultTextareaHeight = 44;\n const textareaHeight = ref(props.height || `${defaultTextareaHeight}px`);\n const textareaWidth = ref('100%');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const counter = computed(() => `${textareaValue.value.length} / ${props.characterLimit}`);\n const isOverCharacterLimit = computed(\n () => props.characterLimit && textareaValue.value.length > props.characterLimit\n );\n\n const calculateHeight = () => {\n const borderWidth = 3;\n if (textareaElement.value && textareaElement.value.scrollHeight > defaultTextareaHeight) {\n textareaHeight.value = `${textareaElement.value.scrollHeight + borderWidth}px`;\n }\n };\n\n watch(height, () => {\n if (!height.value) {\n calculateHeight();\n } else {\n textareaHeight.value = height.value;\n }\n });\n\n watch(\n () => props.value,\n () => {\n textareaValue.value = props.value;\n },\n { immediate: true }\n );\n\n watch(\n () => textareaValue.value,\n async () => {\n if (!height.value) {\n // Hack to make the textarea calculate its height properly\n // Set the textarea back to the original value before calculating the height\n textareaHeight.value = `${defaultTextareaHeight}px`;\n if (!textareaValue.value) {\n return;\n }\n\n await nextTick();\n calculateHeight();\n }\n },\n { immediate: true }\n );\n\n const invalidInput = computed(() => !!props.errorMessage || isOverCharacterLimit.value);\n\n const conditionalClasses = computed(() => ({\n [`b-textarea--${BentoTextareaStateClass.DISABLED}`]: props.disabled,\n }));\n\n const conditionalClassesInput = computed(() => ({\n [`b-textarea__input--${BentoTextareaStateClass.CLEARABLE}`]: props.clearable,\n [`b-textarea__input--${BentoTextareaStateClass.READONLY}`]: isReadOnly.value,\n [`b-textarea__input--${BentoTextareaStateClass.ERROR}`]: invalidInput.value,\n [`b-textarea__input--dynamic-height`]: !height.value,\n }));\n\n const conditionalClassesLabelBox = computed(() => ({\n [`b-textarea__label-box--no-label`]: !props.label,\n }));\n\n const conditionalClassesLabelItem = computed(() => ({\n [`b-textarea__label-item--${BentoTextareaStateClass.ERROR}`]: isOverCharacterLimit.value,\n }));\n\n const counterErrorText = computed(() => t('yourTextCanBenAtMost', { characterLimit: props.characterLimit }));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, label } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: label,\n });\n\n const showClearButton = computed(\n () => props.clearable && textareaValue.value && !props.disabled && !isReadOnly.value\n );\n\n const onClear = () => {\n textareaValue.value = '';\n emit(BentoTextareaEvent.CLEAR);\n emit(BentoTextareaEvent.INPUT, '');\n };\n\n const onInput = (event: InputEvent) => {\n event.stopImmediatePropagation();\n\n if (!props.disabled && !isReadOnly.value) {\n textareaValue.value = (event.target as HTMLInputElement).value;\n /**\n * Triggered when input value is changed\n *\n * @event input\n * @property {String} inputValue - the updated textarea value\n */\n emit(BentoTextareaEvent.INPUT, textareaValue.value);\n }\n };\n\n const onBlur = () => {\n textareaElement.value.scrollTop = 0;\n emit(BentoTextareaEvent.BLUR);\n };\n\n const onFocus = () => {\n textareaElement.value.focus();\n emit(BentoTextareaEvent.FOCUS);\n };\n\n const onChange = () => {\n emit(BentoTextareaEvent.CHANGE);\n };\n\n const onPressEscape = () => {\n emit(BentoTextareaEvent.ESCAPE_PRESSED);\n };\n\n onMounted(() => {\n observeSizeOfElement(textareaElement.value, () => {\n const offsetWidth = textareaElement?.value?.offsetWidth;\n textareaWidth.value = offsetWidth ? `${offsetWidth}px` : '100%';\n });\n\n if (!height.value) {\n calculateHeight();\n }\n });\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n name: 'bento-textarea',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./textarea.scss\" />\n"],"names":["BentoTextareaResizeOption","BentoTextareaResizeOption2","BentoTextareaStateClass","BentoTextareaStateClass2","BentoTextareaEvent","BentoTextareaEvent2","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","__default__","messages","attrs","useAttrs","height","toRefs","props","textareaId","generateUid","textareaElement","ref","textareaValue","defaultTextareaHeight","textareaHeight","textareaWidth","t","useI18n","isReadOnly","useFormLayoutFieldLoading","toRef","counter","computed","isOverCharacterLimit","calculateHeight","watch","nextTick","invalidInput","conditionalClasses","conditionalClassesInput","conditionalClassesLabelBox","conditionalClassesLabelItem","counterErrorText","ariaLabelAttribute","ariaLabel","label","computedAriaLabel","useAriaLabel","showClearButton","onClear","emit","onInput","event","onBlur","onFocus","onChange","onPressEscape","onMounted","observeSizeOfElement","offsetWidth","_a"],"mappings":";;;;;;;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,E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1C,WAAAuD,GAAA,MAAA;AACI,MAAAC,GAAAtC,EAAA,OAAA,MAAA;;AACI,cAAAuC,KAAAC,IAAAxC,KAAA,gBAAAA,EAAA,UAAA,gBAAAwC,EAAA;AACA,QAAAnC,EAAA,QAAAkC,IAAA,GAAAA,QAAA;AAAA,MAAyD,CAAA,GAG7D5C,EAAA,SACImB,EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
package/dist/timeline.js CHANGED
@@ -1,17 +1,17 @@
1
- import { defineComponent as X, ref as V, computed as _, toRefs as ae, provide as U, openBlock as a, createElementBlock as f, renderSlot as oe, mergeProps as G, toDisplayString as y, createCommentVNode as b, pushScopeId as x, popScopeId as ee, createElementVNode as v, inject as q, onUnmounted as re, resolveComponent as T, createVNode as E, withCtx as I, createTextVNode as S, createBlock as M, resolveDynamicComponent as le, normalizeClass as z, Fragment as F, renderList as me } from "vue";
1
+ import { defineComponent as X, ref as V, computed as _, toRefs as oe, provide as U, openBlock as o, createElementBlock as f, renderSlot as ae, mergeProps as G, toDisplayString as y, createCommentVNode as b, pushScopeId as x, popScopeId as ee, createElementVNode as v, inject as q, onUnmounted as re, resolveComponent as T, createVNode as E, withCtx as I, createTextVNode as S, createBlock as M, resolveDynamicComponent as le, normalizeClass as z, Fragment as F, renderList as me } from "vue";
2
2
  import { _ as B } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as de } from "./chunks/button.7072457f.js";
4
- import { B as ue } from "./chunks/index.c62ea69f.js";
3
+ import { a as de } from "./chunks/button.9d72e2d7.js";
4
+ import { B as ue } from "./chunks/index.754349ff.js";
5
5
  import { BentoTag as ce } from "./tag.js";
6
- import { B as _e } from "./chunks/index.32ed68b7.js";
7
- import { B as fe, a as ve, S as he } from "./chunks/index.c22c4278.js";
6
+ import { B as _e } from "./chunks/index.9fc54b60.js";
7
+ import { B as fe, a as ve, S as he } from "./chunks/index.424e2ea4.js";
8
8
  import { C as pe } from "./chunks/checkmark-circle-fill.e6b84561.js";
9
9
  import { C as ge } from "./chunks/cross-circle-fill.0feb37b3.js";
10
10
  import { r as be, e as Ie, t as A, g as H } from "./chunks/index.f55fdc32.js";
11
11
  import { c as ye, a as Se } from "./chunks/index.86453263.js";
12
12
  import { g as Ee } from "./chunks/unique-id.a2a2b458.js";
13
13
  import { u as we } from "./chunks/i18n.6c402773.js";
14
- import "./assets/index43.css";
14
+ import "./assets/index35.css";
15
15
  var J = 1e3 * 60, O = 60 * 24, K = O * 30, Z = O * 365;
16
16
  function P(e, t) {
17
17
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -35,15 +35,15 @@ function P(e, t) {
35
35
  m = Math.round;
36
36
  else
37
37
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
38
- var n = c.getTime() - i.getTime(), o = n / J, u = H(c) - H(i), g = (n - u) / J, d;
39
- if (r.unit == null ? o < 1 ? d = "second" : o < 60 ? d = "minute" : o < O ? d = "hour" : g < K ? d = "day" : g < Z ? d = "month" : d = "year" : d = String(r.unit), d === "second") {
38
+ var n = c.getTime() - i.getTime(), a = n / J, u = H(c) - H(i), g = (n - u) / J, d;
39
+ if (r.unit == null ? a < 1 ? d = "second" : a < 60 ? d = "minute" : a < O ? d = "hour" : g < K ? d = "day" : g < Z ? d = "month" : d = "year" : d = String(r.unit), d === "second") {
40
40
  var L = m(n / 1e3);
41
41
  return l.formatDistance("xSeconds", L, s);
42
42
  } else if (d === "minute") {
43
- var k = m(o);
43
+ var k = m(a);
44
44
  return l.formatDistance("xMinutes", k, s);
45
45
  } else if (d === "hour") {
46
- var R = m(o / 60);
46
+ var R = m(a / 60);
47
47
  return l.formatDistance("xHours", R, s);
48
48
  } else if (d === "day") {
49
49
  var $ = m(g / O);
@@ -82,7 +82,7 @@ const te = Symbol("timeline register entry injection key"), ie = Symbol("timelin
82
82
  setup(e) {
83
83
  const t = V([]), r = _(
84
84
  () => e.showMore && t.value.length > e.showMore.limit ? t.value.length - e.showMore.limit : null
85
- ), l = V(!1), { timegapLimit: h } = ae(e), s = _(() => {
85
+ ), l = V(!1), { timegapLimit: h } = oe(e), s = _(() => {
86
86
  if (!e.showMore)
87
87
  return null;
88
88
  const n = Array.from(t.value.keys());
@@ -103,11 +103,11 @@ const te = Symbol("timeline register entry injection key"), ie = Symbol("timelin
103
103
  return e.showMore.limit - 1;
104
104
  }
105
105
  }), c = (n) => () => {
106
- var o;
107
- t.value = (o = t.value) == null ? void 0 : o.filter((u, g) => g !== n);
108
- }, p = ({ title: n, date: o }) => {
106
+ var a;
107
+ t.value = (a = t.value) == null ? void 0 : a.filter((u, g) => g !== n);
108
+ }, p = ({ title: n, date: a }) => {
109
109
  const u = t.value.length;
110
- return t.value.push({ title: n, date: o }), { timelineEntries: t, index: u, unregisterTimelineEntry: c(u) };
110
+ return t.value.push({ title: n, date: a }), { timelineEntries: t, index: u, unregisterTimelineEntry: c(u) };
111
111
  }, m = {
112
112
  showAll: l,
113
113
  showMoreIndex: i,
@@ -120,11 +120,11 @@ const te = Symbol("timeline register entry injection key"), ie = Symbol("timelin
120
120
  });
121
121
  const Me = { class: "b-timeline" };
122
122
  function Ne(e, t, r, l, h, s) {
123
- return a(), f("ol", Me, [
124
- oe(e.$slots, "default", {}, void 0, !0)
123
+ return o(), f("ol", Me, [
124
+ ae(e.$slots, "default", {}, void 0, !0)
125
125
  ]);
126
126
  }
127
- const lt = /* @__PURE__ */ B(Te, [["render", Ne], ["__scopeId", "data-v-02203eda"]]);
127
+ const lt = /* @__PURE__ */ B(Te, [["render", Ne], ["__scopeId", "data-v-2dc17695"]]);
128
128
  let Q = 0;
129
129
  const Le = {
130
130
  beforeCreate() {
@@ -137,13 +137,13 @@ const Le = {
137
137
  "clip-rule": "evenodd"
138
138
  }, null, -1));
139
139
  function Re(e, t, r, l, h, s) {
140
- return a(), f("svg", G({ role: "img" }, e.$attrs, {
140
+ return o(), f("svg", G({ role: "img" }, e.$attrs, {
141
141
  xmlns: "http://www.w3.org/2000/svg",
142
142
  width: "16",
143
143
  height: "16",
144
144
  fill: "none"
145
145
  }), [
146
- e.$attrs["svg-title"] ? (a(), f("title", Oe, y(e.$attrs["svg-title"]), 1)) : b("", !0),
146
+ e.$attrs["svg-title"] ? (o(), f("title", Oe, y(e.$attrs["svg-title"]), 1)) : b("", !0),
147
147
  ke
148
148
  ], 16);
149
149
  }
@@ -234,11 +234,11 @@ const $e = /* @__PURE__ */ B(Le, [["render", Re], ["__scopeId", "data-v-f702de38
234
234
  date: e.timestamp.date
235
235
  });
236
236
  re(() => c());
237
- const { showAll: p, showMoreIndex: m, hiddenItems: n, visibleIndexes: o, timegapLimit: u } = q(ie), g = _(() => p.value || !o.value), d = _(() => g.value ? !0 : o.value.includes(i)), L = _(() => {
237
+ const { showAll: p, showMoreIndex: m, hiddenItems: n, visibleIndexes: a, timegapLimit: u } = q(ie), g = _(() => p.value || !a.value), d = _(() => g.value ? !0 : a.value.includes(i)), L = _(() => {
238
238
  var Y;
239
239
  if (!u.value)
240
240
  return null;
241
- const C = (Y = s.value[i - 1]) == null ? void 0 : Y.date, D = g.value || o.value.includes(i - 1);
241
+ const C = (Y = s.value[i - 1]) == null ? void 0 : Y.date, D = g.value || a.value.includes(i - 1);
242
242
  if (!C || !D)
243
243
  return null;
244
244
  const { date: j } = s.value[i], se = parseInt(
@@ -296,9 +296,9 @@ const ne = (e) => (x("data-v-cbd33889"), e = e(), ee(), e), Fe = {
296
296
  /* @__PURE__ */ v("div", { class: "b-timeline-item__separator" })
297
297
  ], -1)), Ze = { class: "b-timeline-item__content" };
298
298
  function Pe(e, t, r, l, h, s) {
299
- const i = T("bento-typography"), c = T("bento-date"), p = T("bento-structured-list-item"), m = T("bento-structured-list"), n = T("bento-tag"), o = T("bento-button");
300
- return e.isVisible ? (a(), f("li", Fe, [
301
- e.timegap ? (a(), f("div", Ue, [
299
+ const i = T("bento-typography"), c = T("bento-date"), p = T("bento-structured-list-item"), m = T("bento-structured-list"), n = T("bento-tag"), a = T("bento-button");
300
+ return e.isVisible ? (o(), f("li", Fe, [
301
+ e.timegap ? (o(), f("div", Ue, [
302
302
  Be,
303
303
  v("div", je, [
304
304
  E(i, {
@@ -314,10 +314,10 @@ function Pe(e, t, r, l, h, s) {
314
314
  ])) : b("", !0),
315
315
  v("div", Ye, [
316
316
  v("div", Ve, [
317
- (a(), M(le(e.variant), {
317
+ (o(), M(le(e.variant), {
318
318
  class: z(["b-timeline-item__icon", e.iconConditionalClasses])
319
319
  }, null, 8, ["class"])),
320
- e.isLastItem ? b("", !0) : (a(), f("div", qe))
320
+ e.isLastItem ? b("", !0) : (o(), f("div", qe))
321
321
  ]),
322
322
  v("div", ze, [
323
323
  E(i, {
@@ -332,7 +332,7 @@ function Pe(e, t, r, l, h, s) {
332
332
  ]),
333
333
  _: 1
334
334
  }, 8, ["class"]),
335
- e.timestamp ? (a(), M(i, {
335
+ e.timestamp ? (o(), M(i, {
336
336
  key: 0,
337
337
  class: "b-timeline-item__timestamp",
338
338
  el: "div",
@@ -348,7 +348,7 @@ function Pe(e, t, r, l, h, s) {
348
348
  ]),
349
349
  _: 1
350
350
  })) : b("", !0),
351
- e.additionalTimestamp ? (a(), M(i, {
351
+ e.additionalTimestamp ? (o(), M(i, {
352
352
  key: 1,
353
353
  class: "b-timeline-item__timestamp",
354
354
  el: "div",
@@ -364,7 +364,7 @@ function Pe(e, t, r, l, h, s) {
364
364
  ]),
365
365
  _: 1
366
366
  })) : b("", !0),
367
- e.description ? (a(), M(i, {
367
+ e.description ? (o(), M(i, {
368
368
  key: 2,
369
369
  el: "div",
370
370
  variant: "body",
@@ -375,10 +375,10 @@ function Pe(e, t, r, l, h, s) {
375
375
  ]),
376
376
  _: 1
377
377
  })) : b("", !0),
378
- e.dataList ? (a(), f("div", He, [
378
+ e.dataList ? (o(), f("div", He, [
379
379
  E(m, null, {
380
380
  default: I(() => [
381
- (a(!0), f(F, null, me(e.dataList, (u) => (a(), M(p, {
381
+ (o(!0), f(F, null, me(e.dataList, (u) => (o(), M(p, {
382
382
  key: e.generateUid(u.label),
383
383
  label: u.label
384
384
  }, {
@@ -396,21 +396,21 @@ function Pe(e, t, r, l, h, s) {
396
396
  _: 1
397
397
  })
398
398
  ])) : b("", !0),
399
- e.tag ? (a(), M(n, G({ key: 4 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : b("", !0)
399
+ e.tag ? (o(), M(n, G({ key: 4 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : b("", !0)
400
400
  ])
401
401
  ]),
402
- e.displayShowMoreButton ? (a(), f("div", Je, [
402
+ e.displayShowMoreButton ? (o(), f("div", Je, [
403
403
  Ke,
404
404
  v("div", Ze, [
405
- E(o, {
405
+ E(a, {
406
406
  class: "b-timeline__show-more",
407
407
  variant: "tertiary",
408
408
  onClick: t[0] || (t[0] = (u) => e.showAll = !e.showAll)
409
409
  }, {
410
410
  default: I(() => [
411
- e.showAll ? (a(), f(F, { key: 1 }, [
411
+ e.showAll ? (o(), f(F, { key: 1 }, [
412
412
  S(y(e.t("showLess")), 1)
413
- ], 64)) : (a(), f(F, { key: 0 }, [
413
+ ], 64)) : (o(), f(F, { key: 0 }, [
414
414
  S(y(e.t("showMore", { items: e.hiddenItems })), 1)
415
415
  ], 64))
416
416
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"timeline.js","sources":["../../../node_modules/date-fns/esm/formatDistanceStrict/index.js","../../vue2/src/components/timeline/timeline.types.ts","../../vue2/src/components/timeline/timeline.keys.ts","../../vue2/src/components/timeline/timeline.vue","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/square-small-fill.vue","../../vue2/src/components/timeline/components/timeline-item/timeline-item.vue"],"sourcesContent":["import getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(2015, 0, 2),\n * new Date(2014, 6, 2)\n * ) //=> '6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(2014, 6, 2),\n * new Date(2015, 0, 2)\n * ) //=> '6 months'\n * ```\n *\n * - `partialMethod` option is renamed to `roundingMethod`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { partialMethod: 'ceil' }\n * ) //=> '2 minutes'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { roundingMethod: 'ceil' }\n * ) //=> '2 minutes'\n * ```\n *\n * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`.\n *\n * - `unit` option now accepts one of the strings:\n * 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { unit: 'm' }\n * )\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { unit: 'minute' }\n * )\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod);\n var roundingMethodFn;\n\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft); // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var unit;\n\n if (options.unit == null) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(options.unit);\n } // 0 up to 60 seconds\n\n\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && options.unit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import { BentoDateFormat } from '@/components/date/date.types';\nimport { BentoTag } from '@/components/tag';\nimport { Ref } from 'vue';\n\nexport enum BentoTimelineShowMorePlacement {\n BOTTOM = 'bottom',\n AFTER_FIRST = 'after-first',\n BEFORE_LAST = 'before-last',\n}\n\nexport interface BentoTimelineShowMoreObject {\n limit: number;\n placement?: BentoTimelineShowMorePlacement;\n}\n\nexport enum BentoTimelineGapUnit {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\nexport interface BentoTimelineGapObject {\n amount: number;\n unit: BentoTimelineGapUnit;\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTimelineItemVariant {\n DEFAULT = 'SquareSmallIcon',\n SUCCESS = 'CheckedCircleIcon',\n CRITICAL = 'CrossCircleIcon',\n}\n\nexport interface BentoTimelineTimestamp {\n date: Date | number;\n format?: BentoDateFormat;\n value?: string;\n}\n\nexport interface BentoTimelineDataListObject {\n label: string;\n value: string;\n}\n\nexport type BentoTimelineDataList = Array<BentoTimelineDataListObject>;\n\nexport type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];\n\nexport interface BentoTimelineEntry {\n title: string;\n date: Date | number;\n}\n\nexport type BentoTimelineRegisterEntry = (props: {\n title: string;\n date: Date | number;\n}) => { timelineEntries: Ref<BentoTimelineEntry[]>; index: number; unregisterTimelineEntry: () => void };\n\nexport interface BentoTimelineConfigData {\n showAll: Ref<boolean>;\n showMoreIndex: Ref<number>;\n hiddenItems: Ref<number>;\n visibleIndexes: Ref<number[]>;\n timegapLimit: Ref<BentoTimelineGapObject>;\n}\n","export const TIMELINE_REGISTER_ENTRY_INJECTION_KEY = Symbol('timeline register entry injection key');\nexport const TIMELINE_CONFIG_INJECTION_KEY = Symbol('timeline config obj injection key');\n","<template>\n <ol class=\"b-timeline\">\n <slot />\n </ol>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, provide, ref, toRefs } from 'vue';\n import {\n BentoTimelineConfigData,\n BentoTimelineEntry,\n BentoTimelineGapObject,\n BentoTimelineRegisterEntry,\n BentoTimelineShowMoreObject,\n BentoTimelineShowMorePlacement,\n } from './timeline.types';\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from './timeline.keys';\n\n /**\n * Timeline displays a collection of events in a reverse chronological order (newest event is displayed on the top).\n *\n * @example\n * import { BentoDateFormat, BentoTimeline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimeline },\n * template: `\n * <bento-timeline>\n * <bento-timeline-item\n * title=\"Milestone 1\"\n * :timestamp=\"{ date: new Date(), value: 'Created at' }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * <bento-timeline-item\n * title=\"Milestone 2\"\n * :timestamp=\"{\n * date: new Date(),\n * value: 'Created at',\n * format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD\n * }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * />\n * </bento-timeline>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline',\n props: {\n /**\n * Object that determines the max number of items to show without clicking the show more button\n * and where in the timeline is the show more button placed\n */\n showMore: {\n type: Object as PropType<BentoTimelineShowMoreObject>,\n default: null,\n },\n /**\n * Object that determines minimum amount of time for the automatic timegap indicator;\n * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).\n * If null, automatic timegap detection will be turned off\n */\n timegapLimit: {\n type: Object as PropType<BentoTimelineGapObject>,\n default: null,\n },\n },\n\n setup(props) {\n const timelineEntries = ref<BentoTimelineEntry[]>([]);\n const hiddenItems = computed(() =>\n props.showMore && timelineEntries.value.length > props.showMore.limit\n ? timelineEntries.value.length - props.showMore.limit\n : null\n );\n const showAll = ref(false);\n const { timegapLimit } = toRefs(props);\n\n const visibleIndexes = computed(() => {\n if (!props.showMore) return null;\n\n const timelineIndexes = Array.from(timelineEntries.value.keys());\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.BEFORE_LAST) {\n return [\n ...timelineIndexes.slice(0, props.showMore.limit - 1),\n timelineIndexes[timelineIndexes.length - 1],\n ];\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.AFTER_FIRST) {\n return [timelineIndexes[0], ...timelineIndexes.slice(-(props.showMore.limit - 1))];\n }\n\n return timelineIndexes.slice(0, props.showMore.limit);\n });\n\n const showMoreIndex = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n switch (props.showMore.placement) {\n case BentoTimelineShowMorePlacement.BEFORE_LAST:\n return props.showMore.limit - 2;\n case BentoTimelineShowMorePlacement.AFTER_FIRST:\n return 0;\n case BentoTimelineShowMorePlacement.BOTTOM:\n default:\n return props.showMore.limit - 1;\n }\n });\n\n // unregister timeline item if removed / destroyed\n const unregisterTimelineEntry = (tabIndexToRemove: number) => () => {\n timelineEntries.value = timelineEntries.value?.filter((_item, index) => index !== tabIndexToRemove);\n };\n\n const registerTimelineEntry: BentoTimelineRegisterEntry = ({ title, date }) => {\n // item index is the same as the length of the array BEFORE the item gets added\n // e.g. if the array is empty, length is 0 and the index of the item will also be 0\n const index = timelineEntries.value.length;\n\n // add entry to timeline entries\n timelineEntries.value.push({ title, date });\n\n // return values to the Timeline-Item component\n return { timelineEntries, index, unregisterTimelineEntry: unregisterTimelineEntry(index) };\n };\n\n const configData: BentoTimelineConfigData = {\n showAll,\n showMoreIndex,\n hiddenItems,\n visibleIndexes,\n timegapLimit,\n };\n\n // provide register timeline entry and config data timeline items\n provide(TIMELINE_REGISTER_ENTRY_INJECTION_KEY, registerTimelineEntry);\n provide(TIMELINE_CONFIG_INJECTION_KEY, configData);\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" fill-rule=\"evenodd\" d=\"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V10.5C3.25 11.7426 4.25736 12.75 5.5 12.75H10.5C11.7426 12.75 12.75 11.7426 12.75 10.5V5.5C12.75 4.25736 11.7426 3.25 10.5 3.25H5.5Z\" clip-rule=\"evenodd\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","<template>\n <li v-if=\"isVisible\" class=\"b-timeline-item\">\n <div v-if=\"timegap\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__icon b-timeline-item__icon--timegap\"></div>\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography class=\"b-timeline-item__timegap\" :aria-label=\"timegapAriaLabel\">\n {{ timegap }}\n </bento-typography>\n </div>\n </div>\n <div class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <component :is=\"variant\" class=\"b-timeline-item__icon\" :class=\"iconConditionalClasses\" />\n <div\n v-if=\"!isLastItem\"\n class=\"b-timeline-item__separator\"\n data-testid=\"last-timeline-item-separator\"\n ></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography\n el=\"div\"\n variant=\"body\"\n strongest\n class=\"b-timeline-item__title\"\n :class=\"titleConditionalClasses\"\n role=\"heading\"\n >{{ title }}</bento-typography\n >\n\n <bento-typography v-if=\"timestamp\" class=\"b-timeline-item__timestamp\" el=\"div\" variant=\"caption\">\n <bento-date :date=\"timestamp.date\" :format=\"timestamp.format\" disable-typography />\n {{ timestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"additionalTimestamp\"\n class=\"b-timeline-item__timestamp\"\n el=\"div\"\n variant=\"caption\"\n >\n <bento-date\n :date=\"additionalTimestamp.date\"\n :format=\"additionalTimestamp.format\"\n disable-typography\n />\n {{ additionalTimestamp.value }}\n </bento-typography>\n\n <bento-typography v-if=\"description\" el=\"div\" variant=\"body\" class=\"b-timeline-item__description\">{{\n description\n }}</bento-typography>\n\n <div v-if=\"dataList\" class=\"b-timeline-item__data-list\">\n <bento-structured-list>\n <bento-structured-list-item\n v-for=\"entry in dataList\"\n :key=\"generateUid(entry.label)\"\n :label=\"entry.label\"\n >\n <bento-typography variant=\"caption\">{{ entry.value }}</bento-typography>\n </bento-structured-list-item>\n </bento-structured-list>\n </div>\n <bento-tag v-if=\"tag\" v-bind=\"tag\" class=\"b-timeline-item__tag\" />\n </div>\n </div>\n <div v-if=\"displayShowMoreButton\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-button class=\"b-timeline__show-more\" variant=\"tertiary\" @click=\"showAll = !showAll\">\n <template v-if=\"!showAll\">{{ t('showMore', { items: hiddenItems }) }}</template>\n <template v-else>{{ t('showLess') }}</template>\n </bento-button>\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, PropType, provide } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoDate } from '@/components/date';\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { BentoStructuredList, BentoStructuredListItem } from '@/components/structured-list';\n\n import SquareSmallIcon from '@adyen/ui-assets-icons-16/vue/square-small-fill';\n import CheckedCircleIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import CrossCircleIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n\n // Utils\n import formatDistanceStrict from 'date-fns/formatDistanceStrict';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n // Types\n import {\n BentoTimelineConfigData,\n BentoTimelineDataList,\n BentoTimelineItemVariant,\n BentoTimelineRegisterEntry,\n BentoTimelineTagProps,\n BentoTimelineTimestamp,\n } from '../../timeline.types';\n\n // Keys\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from '../../timeline.keys';\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '@/components/structured-list/structured-list.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * TimelineItem renders each event in the Timeline component\n *\n * @example\n * import { BentoDateFormat, BentoTimelineItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimelineItem },\n * template: `\n * <bento-timeline-item\n * title=\"Milestone\"\n * :timestamp=\"{ date: new Date(), value: 'Created at', format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline-item',\n components: {\n BentoButton,\n BentoDate,\n BentoTag,\n BentoTypography,\n BentoStructuredList,\n BentoStructuredListItem,\n CrossCircleIcon,\n CheckedCircleIcon,\n SquareSmallIcon,\n },\n i18n: { messages },\n props: {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n default: null,\n },\n\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList: {\n type: Array as PropType<BentoTimelineDataList>,\n default: null,\n },\n\n /**\n * Description of the event\n */\n description: {\n type: String,\n default: null,\n },\n\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag: {\n type: Object as PropType<BentoTimelineTagProps>,\n default: undefined,\n },\n\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n required: true,\n },\n\n /**\n * Title of the event\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Variant for the timeline item\n * @values DEFAULT, SUCCESS, CRITICAL\n */\n variant: {\n type: String as PropType<BentoTimelineItemVariant | `${BentoTimelineItemVariant}`>,\n default: BentoTimelineItemVariant.DEFAULT,\n validator: (value: BentoTimelineItemVariant) => Object.values(BentoTimelineItemVariant).includes(value),\n },\n },\n\n setup(props) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const iconConditionalClasses = computed(() => ({\n 'b-timeline-item__icon--default': props.variant === BentoTimelineItemVariant.DEFAULT,\n 'b-timeline-item__icon--success': props.variant === BentoTimelineItemVariant.SUCCESS,\n 'b-timeline-item__icon--critical': props.variant === BentoTimelineItemVariant.CRITICAL,\n }));\n\n const titleConditionalClasses = computed(() => ({\n 'b-timeline-item__title--default': props.variant === BentoTimelineItemVariant.DEFAULT,\n }));\n\n // Provide STRUCTURED_LIST_CONDENSED_INJECTION_KEY as true, to set the internal condensed style in the BentoStructuredList comp\n provide(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, true);\n\n // Register timeline entry to the timeline entries array\n const registerTimelineEntry: BentoTimelineRegisterEntry = inject(TIMELINE_REGISTER_ENTRY_INJECTION_KEY);\n const { timelineEntries, index, unregisterTimelineEntry } = registerTimelineEntry({\n title: props.title,\n date: props.timestamp.date,\n });\n\n // On unmounting timeline item, unregister it from the parent timeline component\n onUnmounted(() => unregisterTimelineEntry());\n\n // Get timeline config data from the parent Timeline comp\n const { showAll, showMoreIndex, hiddenItems, visibleIndexes, timegapLimit }: BentoTimelineConfigData =\n inject(TIMELINE_CONFIG_INJECTION_KEY);\n\n const allItemsShowing = computed(() => showAll.value || !visibleIndexes.value);\n\n const isVisible = computed(() => (allItemsShowing.value ? true : visibleIndexes.value.includes(index)));\n\n const timegap = computed(() => {\n if (!timegapLimit.value) {\n return null;\n }\n\n const previousDate = timelineEntries.value[index - 1]?.date;\n const isPreviousItemVisible = allItemsShowing.value || visibleIndexes.value.includes(index - 1);\n\n if (!previousDate || !isPreviousItemVisible) {\n return null;\n }\n\n const { date } = timelineEntries.value[index];\n const timegapInSelectedUnit = parseInt(\n formatDistanceStrict(previousDate, date, { unit: timegapLimit.value.unit }),\n 10\n );\n\n return timegapLimit.value.amount < timegapInSelectedUnit\n ? formatDistanceStrict(previousDate, date, { roundingMethod: 'floor' })\n : null;\n });\n\n const timegapAriaLabel = computed(() => (timegap.value ? t('timegap', { timegap: timegap.value }) : ''));\n\n const displayShowMoreButton = computed(() => hiddenItems.value && showMoreIndex.value === index);\n\n const isLastItem = computed(() => index === timelineEntries.value.length - 1);\n\n return {\n // Values\n iconConditionalClasses,\n titleConditionalClasses,\n displayShowMoreButton,\n showAll,\n hiddenItems,\n isVisible,\n timegap,\n timegapAriaLabel,\n isLastItem,\n\n // Methods\n generateUid,\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline-item.scss\" />\n"],"names":["MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","requiredArgs","locale","enUS","comparison","compareAsc","localizeOptions","cloneObject","dateLeft","dateRight","toDate","roundingMethod","roundingMethodFn","milliseconds","minutes","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","unit","seconds","roundedMinutes","hours","days","months","years","BentoTimelineShowMorePlacement","BentoTimelineShowMorePlacement2","BentoTimelineGapUnit","BentoTimelineGapUnit2","BentoTimelineItemVariant","BentoTimelineItemVariant2","TIMELINE_REGISTER_ENTRY_INJECTION_KEY","TIMELINE_CONFIG_INJECTION_KEY","_sfc_main$2","defineComponent","props","timelineEntries","ref","hiddenItems","computed","showAll","timegapLimit","toRefs","visibleIndexes","timelineIndexes","showMoreIndex","unregisterTimelineEntry","tabIndexToRemove","_a","_item","index","registerTimelineEntry","title","date","configData","provide","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","_sfc_main","BentoButton","BentoDate","BentoTag","BentoTypography","BentoStructuredList","BentoStructuredListItem","CrossCircleIcon","CheckedCircleIcon","SquareSmallIcon","messages","value","useI18n","iconConditionalClasses","titleConditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","timegap","previousDate","isPreviousItemVisible","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem","generateUid","_hoisted_5","_component_bento_button","resolveComponent","_hoisted_1","_hoisted_2","_hoisted_3","createVNode","_component_bento_typography","createCommentVNode","createElementVNode","_hoisted_6","createBlock","resolveDynamicComponent","_hoisted_7","_hoisted_8","normalizeClass","withCtx","_component_bento_date","_hoisted_9","_component_bento_structured_list","_component_bento_structured_list_item","entry","_component_bento_tag","_hoisted_10","_hoisted_11","_cache","$event","Fragment"],"mappings":";;;;;;;;;;;;;;AAMA,IAAAA,IAAA,MAAA,IACAC,IAAA,KAAA,IACAC,IAAAD,IAAA,IACAE,IAAAF,IAAA;AAwJe,SAAAG,EAAAC,GAAAC,GAAA;AACf,MAAAC,IAAA,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAA,CAAA;AACA,EAAAC,GAAA,GAAA,SAAA;AACA,M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AA,MAQMC;AAAA;QAJyClB,EAAAL,GAAA;AAAA,UAAmB,OAAA;AAAA,UAAO,SAAA;AAAA,UACe,SAAAwB,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAAzD,EAAA,UAAA,CAAAA,EAAA;AAAA,QAAA,GAAA;AAAA,UAAhF,SAAA+C,EAAA,MAAA;AAAA,YAAA/C,EAAA,WAC+CH,EAAA,GAAAC,EAAA4D,GAAA,EAAA,KAAA,EAAA,GAAA;AAAA;uBAD/C7D,EAAA,GAAAC,EAAA4D,GAAA,EAAA,KAAA,EAAA,GAAA;AAAA;YAC+C,GAAA,EAAA;AAAA;;;;;;;;","x_google_ignoreList":[0,4]}
1
+ {"version":3,"file":"timeline.js","sources":["../../../node_modules/date-fns/esm/formatDistanceStrict/index.js","../../vue2/src/components/timeline/timeline.types.ts","../../vue2/src/components/timeline/timeline.keys.ts","../../vue2/src/components/timeline/timeline.vue","../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/square-small-fill.vue","../../vue2/src/components/timeline/components/timeline-item/timeline-item.vue"],"sourcesContent":["import getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(2015, 0, 2),\n * new Date(2014, 6, 2)\n * ) //=> '6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(2014, 6, 2),\n * new Date(2015, 0, 2)\n * ) //=> '6 months'\n * ```\n *\n * - `partialMethod` option is renamed to `roundingMethod`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { partialMethod: 'ceil' }\n * ) //=> '2 minutes'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { roundingMethod: 'ceil' }\n * ) //=> '2 minutes'\n * ```\n *\n * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`.\n *\n * - `unit` option now accepts one of the strings:\n * 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { unit: 'm' }\n * )\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { unit: 'minute' }\n * )\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod);\n var roundingMethodFn;\n\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft); // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var unit;\n\n if (options.unit == null) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(options.unit);\n } // 0 up to 60 seconds\n\n\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && options.unit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import { BentoDateFormat } from '@/components/date/date.types';\nimport { BentoTag } from '@/components/tag';\nimport { Ref } from 'vue';\n\nexport enum BentoTimelineShowMorePlacement {\n BOTTOM = 'bottom',\n AFTER_FIRST = 'after-first',\n BEFORE_LAST = 'before-last',\n}\n\nexport interface BentoTimelineShowMoreObject {\n limit: number;\n placement?: BentoTimelineShowMorePlacement;\n}\n\nexport enum BentoTimelineGapUnit {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\nexport interface BentoTimelineGapObject {\n amount: number;\n unit: BentoTimelineGapUnit;\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTimelineItemVariant {\n DEFAULT = 'SquareSmallIcon',\n SUCCESS = 'CheckedCircleIcon',\n CRITICAL = 'CrossCircleIcon',\n}\n\nexport interface BentoTimelineTimestamp {\n date: Date | number;\n format?: BentoDateFormat;\n value?: string;\n}\n\nexport interface BentoTimelineDataListObject {\n label: string;\n value: string;\n}\n\nexport type BentoTimelineDataList = Array<BentoTimelineDataListObject>;\n\nexport type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];\n\nexport interface BentoTimelineEntry {\n title: string;\n date: Date | number;\n}\n\nexport type BentoTimelineRegisterEntry = (props: {\n title: string;\n date: Date | number;\n}) => { timelineEntries: Ref<BentoTimelineEntry[]>; index: number; unregisterTimelineEntry: () => void };\n\nexport interface BentoTimelineConfigData {\n showAll: Ref<boolean>;\n showMoreIndex: Ref<number>;\n hiddenItems: Ref<number>;\n visibleIndexes: Ref<number[]>;\n timegapLimit: Ref<BentoTimelineGapObject>;\n}\n","export const TIMELINE_REGISTER_ENTRY_INJECTION_KEY = Symbol('timeline register entry injection key');\nexport const TIMELINE_CONFIG_INJECTION_KEY = Symbol('timeline config obj injection key');\n","<template>\n <ol class=\"b-timeline\">\n <slot />\n </ol>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, provide, ref, toRefs } from 'vue';\n import {\n BentoTimelineConfigData,\n BentoTimelineEntry,\n BentoTimelineGapObject,\n BentoTimelineRegisterEntry,\n BentoTimelineShowMoreObject,\n BentoTimelineShowMorePlacement,\n } from './timeline.types';\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from './timeline.keys';\n\n /**\n * Timeline displays a collection of events in a reverse chronological order (newest event is displayed on the top).\n *\n * @example\n * import { BentoDateFormat, BentoTimeline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimeline },\n * template: `\n * <bento-timeline>\n * <bento-timeline-item\n * title=\"Milestone 1\"\n * :timestamp=\"{ date: new Date(), value: 'Created at' }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * <bento-timeline-item\n * title=\"Milestone 2\"\n * :timestamp=\"{\n * date: new Date(),\n * value: 'Created at',\n * format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD\n * }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * />\n * </bento-timeline>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline',\n props: {\n /**\n * Object that determines the max number of items to show without clicking the show more button\n * and where in the timeline is the show more button placed\n */\n showMore: {\n type: Object as PropType<BentoTimelineShowMoreObject>,\n default: null,\n },\n /**\n * Object that determines minimum amount of time for the automatic timegap indicator;\n * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).\n * If null, automatic timegap detection will be turned off\n */\n timegapLimit: {\n type: Object as PropType<BentoTimelineGapObject>,\n default: null,\n },\n },\n\n setup(props) {\n const timelineEntries = ref<BentoTimelineEntry[]>([]);\n const hiddenItems = computed(() =>\n props.showMore && timelineEntries.value.length > props.showMore.limit\n ? timelineEntries.value.length - props.showMore.limit\n : null\n );\n const showAll = ref(false);\n const { timegapLimit } = toRefs(props);\n\n const visibleIndexes = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n const timelineIndexes = Array.from(timelineEntries.value.keys());\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.BEFORE_LAST) {\n return [\n ...timelineIndexes.slice(0, props.showMore.limit - 1),\n timelineIndexes[timelineIndexes.length - 1],\n ];\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.AFTER_FIRST) {\n return [timelineIndexes[0], ...timelineIndexes.slice(-(props.showMore.limit - 1))];\n }\n\n return timelineIndexes.slice(0, props.showMore.limit);\n });\n\n const showMoreIndex = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n switch (props.showMore.placement) {\n case BentoTimelineShowMorePlacement.BEFORE_LAST:\n return props.showMore.limit - 2;\n case BentoTimelineShowMorePlacement.AFTER_FIRST:\n return 0;\n case BentoTimelineShowMorePlacement.BOTTOM:\n default:\n return props.showMore.limit - 1;\n }\n });\n\n // unregister timeline item if removed / destroyed\n const unregisterTimelineEntry = (tabIndexToRemove: number) => () => {\n timelineEntries.value = timelineEntries.value?.filter((_item, index) => index !== tabIndexToRemove);\n };\n\n const registerTimelineEntry: BentoTimelineRegisterEntry = ({ title, date }) => {\n // item index is the same as the length of the array BEFORE the item gets added\n // e.g. if the array is empty, length is 0 and the index of the item will also be 0\n const index = timelineEntries.value.length;\n\n // add entry to timeline entries\n timelineEntries.value.push({ title, date });\n\n // return values to the Timeline-Item component\n return { timelineEntries, index, unregisterTimelineEntry: unregisterTimelineEntry(index) };\n };\n\n const configData: BentoTimelineConfigData = {\n showAll,\n showMoreIndex,\n hiddenItems,\n visibleIndexes,\n timegapLimit,\n };\n\n // provide register timeline entry and config data timeline items\n provide(TIMELINE_REGISTER_ENTRY_INJECTION_KEY, registerTimelineEntry);\n provide(TIMELINE_CONFIG_INJECTION_KEY, configData);\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" fill-rule=\"evenodd\" d=\"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V10.5C3.25 11.7426 4.25736 12.75 5.5 12.75H10.5C11.7426 12.75 12.75 11.7426 12.75 10.5V5.5C12.75 4.25736 11.7426 3.25 10.5 3.25H5.5Z\" clip-rule=\"evenodd\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","<template>\n <li v-if=\"isVisible\" class=\"b-timeline-item\">\n <div v-if=\"timegap\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__icon b-timeline-item__icon--timegap\"></div>\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography class=\"b-timeline-item__timegap\" :aria-label=\"timegapAriaLabel\">\n {{ timegap }}\n </bento-typography>\n </div>\n </div>\n <div class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <component :is=\"variant\" class=\"b-timeline-item__icon\" :class=\"iconConditionalClasses\" />\n <div\n v-if=\"!isLastItem\"\n class=\"b-timeline-item__separator\"\n data-testid=\"last-timeline-item-separator\"\n ></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography\n el=\"div\"\n variant=\"body\"\n strongest\n class=\"b-timeline-item__title\"\n :class=\"titleConditionalClasses\"\n role=\"heading\"\n >{{ title }}</bento-typography\n >\n\n <bento-typography v-if=\"timestamp\" class=\"b-timeline-item__timestamp\" el=\"div\" variant=\"caption\">\n <bento-date :date=\"timestamp.date\" :format=\"timestamp.format\" disable-typography />\n {{ timestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"additionalTimestamp\"\n class=\"b-timeline-item__timestamp\"\n el=\"div\"\n variant=\"caption\"\n >\n <bento-date\n :date=\"additionalTimestamp.date\"\n :format=\"additionalTimestamp.format\"\n disable-typography\n />\n {{ additionalTimestamp.value }}\n </bento-typography>\n\n <bento-typography v-if=\"description\" el=\"div\" variant=\"body\" class=\"b-timeline-item__description\">{{\n description\n }}</bento-typography>\n\n <div v-if=\"dataList\" class=\"b-timeline-item__data-list\">\n <bento-structured-list>\n <bento-structured-list-item\n v-for=\"entry in dataList\"\n :key=\"generateUid(entry.label)\"\n :label=\"entry.label\"\n >\n <bento-typography variant=\"caption\">{{ entry.value }}</bento-typography>\n </bento-structured-list-item>\n </bento-structured-list>\n </div>\n <bento-tag v-if=\"tag\" v-bind=\"tag\" class=\"b-timeline-item__tag\" />\n </div>\n </div>\n <div v-if=\"displayShowMoreButton\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-button class=\"b-timeline__show-more\" variant=\"tertiary\" @click=\"showAll = !showAll\">\n <template v-if=\"!showAll\">{{ t('showMore', { items: hiddenItems }) }}</template>\n <template v-else>{{ t('showLess') }}</template>\n </bento-button>\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, PropType, provide } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoDate } from '@/components/date';\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { BentoStructuredList, BentoStructuredListItem } from '@/components/structured-list';\n\n import SquareSmallIcon from '@adyen/ui-assets-icons-16/vue/square-small-fill';\n import CheckedCircleIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import CrossCircleIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n\n // Utils\n import formatDistanceStrict from 'date-fns/formatDistanceStrict';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n\n // Types\n import {\n BentoTimelineConfigData,\n BentoTimelineDataList,\n BentoTimelineItemVariant,\n BentoTimelineRegisterEntry,\n BentoTimelineTagProps,\n BentoTimelineTimestamp,\n } from '../../timeline.types';\n\n // Keys\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from '../../timeline.keys';\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '@/components/structured-list/structured-list.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * TimelineItem renders each event in the Timeline component\n *\n * @example\n * import { BentoDateFormat, BentoTimelineItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimelineItem },\n * template: `\n * <bento-timeline-item\n * title=\"Milestone\"\n * :timestamp=\"{ date: new Date(), value: 'Created at', format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline-item',\n components: {\n BentoButton,\n BentoDate,\n BentoTag,\n BentoTypography,\n BentoStructuredList,\n BentoStructuredListItem,\n CrossCircleIcon,\n CheckedCircleIcon,\n SquareSmallIcon,\n },\n i18n: { messages },\n props: {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n default: null,\n },\n\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList: {\n type: Array as PropType<BentoTimelineDataList>,\n default: null,\n },\n\n /**\n * Description of the event\n */\n description: {\n type: String,\n default: null,\n },\n\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag: {\n type: Object as PropType<BentoTimelineTagProps>,\n default: undefined,\n },\n\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n required: true,\n },\n\n /**\n * Title of the event\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Variant for the timeline item\n * @values DEFAULT, SUCCESS, CRITICAL\n */\n variant: {\n type: String as PropType<BentoTimelineItemVariant | `${BentoTimelineItemVariant}`>,\n default: BentoTimelineItemVariant.DEFAULT,\n validator: (value: BentoTimelineItemVariant) => Object.values(BentoTimelineItemVariant).includes(value),\n },\n },\n\n setup(props) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const iconConditionalClasses = computed(() => ({\n 'b-timeline-item__icon--default': props.variant === BentoTimelineItemVariant.DEFAULT,\n 'b-timeline-item__icon--success': props.variant === BentoTimelineItemVariant.SUCCESS,\n 'b-timeline-item__icon--critical': props.variant === BentoTimelineItemVariant.CRITICAL,\n }));\n\n const titleConditionalClasses = computed(() => ({\n 'b-timeline-item__title--default': props.variant === BentoTimelineItemVariant.DEFAULT,\n }));\n\n // Provide STRUCTURED_LIST_CONDENSED_INJECTION_KEY as true, to set the internal condensed style in the BentoStructuredList comp\n provide(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, true);\n\n // Register timeline entry to the timeline entries array\n const registerTimelineEntry: BentoTimelineRegisterEntry = inject(TIMELINE_REGISTER_ENTRY_INJECTION_KEY);\n const { timelineEntries, index, unregisterTimelineEntry } = registerTimelineEntry({\n title: props.title,\n date: props.timestamp.date,\n });\n\n // On unmounting timeline item, unregister it from the parent timeline component\n onUnmounted(() => unregisterTimelineEntry());\n\n // Get timeline config data from the parent Timeline comp\n const { showAll, showMoreIndex, hiddenItems, visibleIndexes, timegapLimit }: BentoTimelineConfigData =\n inject(TIMELINE_CONFIG_INJECTION_KEY);\n\n const allItemsShowing = computed(() => showAll.value || !visibleIndexes.value);\n\n const isVisible = computed(() => (allItemsShowing.value ? true : visibleIndexes.value.includes(index)));\n\n const timegap = computed(() => {\n if (!timegapLimit.value) {\n return null;\n }\n\n const previousDate = timelineEntries.value[index - 1]?.date;\n const isPreviousItemVisible = allItemsShowing.value || visibleIndexes.value.includes(index - 1);\n\n if (!previousDate || !isPreviousItemVisible) {\n return null;\n }\n\n const { date } = timelineEntries.value[index];\n const timegapInSelectedUnit = parseInt(\n formatDistanceStrict(previousDate, date, { unit: timegapLimit.value.unit }),\n 10\n );\n\n return timegapLimit.value.amount < timegapInSelectedUnit\n ? formatDistanceStrict(previousDate, date, { roundingMethod: 'floor' })\n : null;\n });\n\n const timegapAriaLabel = computed(() => (timegap.value ? t('timegap', { timegap: timegap.value }) : ''));\n\n const displayShowMoreButton = computed(() => hiddenItems.value && showMoreIndex.value === index);\n\n const isLastItem = computed(() => index === timelineEntries.value.length - 1);\n\n return {\n // Values\n iconConditionalClasses,\n titleConditionalClasses,\n displayShowMoreButton,\n showAll,\n hiddenItems,\n isVisible,\n timegap,\n timegapAriaLabel,\n isLastItem,\n\n // Methods\n generateUid,\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline-item.scss\" />\n"],"names":["MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","requiredArgs","locale","enUS","comparison","compareAsc","localizeOptions","cloneObject","dateLeft","dateRight","toDate","roundingMethod","roundingMethodFn","milliseconds","minutes","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","unit","seconds","roundedMinutes","hours","days","months","years","BentoTimelineShowMorePlacement","BentoTimelineShowMorePlacement2","BentoTimelineGapUnit","BentoTimelineGapUnit2","BentoTimelineItemVariant","BentoTimelineItemVariant2","TIMELINE_REGISTER_ENTRY_INJECTION_KEY","TIMELINE_CONFIG_INJECTION_KEY","_sfc_main$2","defineComponent","props","timelineEntries","ref","hiddenItems","computed","showAll","timegapLimit","toRefs","visibleIndexes","timelineIndexes","showMoreIndex","unregisterTimelineEntry","tabIndexToRemove","_a","_item","index","registerTimelineEntry","title","date","configData","provide","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","_sfc_main","BentoButton","BentoDate","BentoTag","BentoTypography","BentoStructuredList","BentoStructuredListItem","CrossCircleIcon","CheckedCircleIcon","SquareSmallIcon","messages","value","useI18n","iconConditionalClasses","titleConditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","timegap","previousDate","isPreviousItemVisible","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem","generateUid","_hoisted_5","_component_bento_button","resolveComponent","_hoisted_1","_hoisted_2","_hoisted_3","createVNode","_component_bento_typography","createCommentVNode","createElementVNode","_hoisted_6","createBlock","resolveDynamicComponent","_hoisted_7","_hoisted_8","normalizeClass","withCtx","_component_bento_date","_hoisted_9","_component_bento_structured_list","_component_bento_structured_list_item","entry","_component_bento_tag","_hoisted_10","_hoisted_11","_cache","$event","Fragment"],"mappings":";;;;;;;;;;;;;;AAMA,IAAAA,IAAA,MAAA,IACAC,IAAA,KAAA,IACAC,IAAAD,IAAA,IACAE,IAAAF,IAAA;AAwJe,SAAAG,EAAAC,GAAAC,GAAA;AACf,MAAAC,IAAA,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAA,CAAA;AACA,EAAAC,GAAA,GAAA,SAAA;AACA,MAAAC,IAAAF,EAAA,UAAAG;AAEA,MAAA,CAAAD,EAAA;AACA,UAAA,IAAA,WAAA,sDAAA;AAGA,MAAAE,IAAAC,GAAAP,GAAAC,CAAA;AAEA,MAAA,MAAAK,CAAA;AACA,UAAA,IAAA,WAAA,oBAAA;AAGA,MAAAE,IAAAC,GAAAP,CAAA;AACA,EAAAM,EAAA,YAAA,EAAAN,EAAA,WACAM,EAAA,aAAAF;AACA,MAAAI,GACAC;AAEA,EAAAL,IAAA,KACAI,IAAAE,EAAAX,CAAA,GACAU,IAAAC,EAAAZ,CAAA,MAEAU,IAAAE,EAAAZ,CAAA,GACAW,IAAAC,EAAAX,CAAA;AAGA,MAAAY,IAAAX,EAAA,kBAAA,OAAA,UAAA,OAAAA,EAAA,cAAA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{ defineComponent as C, resolveComponent as _, openBlock as u, createElementBlock as d, createElementVNode as b, createVNode as l, withCtx as p, createTextVNode as T, toDisplayString as y, createBlock as D, createCommentVNode as S, ref as k, computed as v, onMounted as H, watch as N, normalizeStyle as $, TransitionGroup as E, Fragment as O, renderList as V, normalizeClass as A } from "vue";
2
2
  import { u as q } from "./chunks/toastController.0b01d2e8.js";
3
3
  import { C as z, I as L } from "./chunks/info-filled.514a2db6.js";
4
- import { a as P } from "./chunks/button.7072457f.js";
5
- import { B as U } from "./chunks/index.32ed68b7.js";
6
- import { u as j } from "./chunks/use-has-slot.3daaffc6.js";
4
+ import { a as P } from "./chunks/button.9d72e2d7.js";
5
+ import { B as U } from "./chunks/index.9fc54b60.js";
6
+ import { u as j } from "./chunks/use-has-slot.4d98bf29.js";
7
7
  import { _ as w } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import "./assets/index38.css";
8
+ import "./assets/index36.css";
9
9
  const F = {
10
10
  "en-US": {
11
11
  dismiss: "Dismiss"
package/dist/toggle.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as $, ref as y, computed as p, toRefs as V, watch as D, resolveComponent as _, openBlock as n, createElementBlock as k, normalizeClass as T, withDirectives as w, createElementVNode as b, vModelCheckbox as O, createBlock as g, createCommentVNode as i, withCtx as h, renderSlot as v } from "vue";
2
2
  import { C as N } from "./chunks/checkmark-small.3e93a119.js";
3
- import { B as U } from "./chunks/index.32ed68b7.js";
3
+ import { B as U } from "./chunks/index.9fc54b60.js";
4
4
  import { g as j } from "./chunks/unique-id.a2a2b458.js";
5
- import { u as z } from "./chunks/use-has-slot.3daaffc6.js";
5
+ import { u as z } from "./chunks/use-has-slot.4d98bf29.js";
6
6
  import { u as H } from "./chunks/use-default-slot-validator.1169c221.js";
7
7
  import { g as m } from "./chunks/get-slot-text.bead058f.js";
8
8
  import { u as M } from "./chunks/aria-label.ac9651a5.js";
9
9
  import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
10
- import "./assets/index40.css";
10
+ import "./assets/index37.css";
11
11
  var C = /* @__PURE__ */ ((e) => (e.LABEL_FIRST = "label-first", e))(C || {}), d = /* @__PURE__ */ ((e) => (e.BEFORE = "before", e.AFTER = "after", e))(d || {});
12
12
  const q = $({
13
13
  name: "bento-toggle",
@@ -1,4 +1,4 @@
1
- import { B as p, c as e, b as r, a as y } from "./chunks/index.32ed68b7.js";
1
+ import { B as p, c as e, b as r, a as y } from "./chunks/index.9fc54b60.js";
2
2
  export {
3
3
  p as BentoTypography,
4
4
  e as BentoTypographyElement,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue3",
4
- "version": "1.5.0",
4
+ "version": "1.6.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",