@adyen/bento-vue3 1.9.0 → 1.11.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 (292) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  5. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  8. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  10. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  11. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
  17. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  19. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
  21. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
  22. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
  23. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -6
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  36. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2355 -6
  38. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  40. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  41. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  42. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  43. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  44. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  45. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
  47. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
  48. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
  49. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  50. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  51. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  52. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  53. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  54. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
  56. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  59. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  60. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  61. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
  62. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  63. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  66. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  67. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +21 -0
  68. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  69. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  70. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +22 -0
  72. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  73. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  74. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
  75. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  76. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  77. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  78. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  79. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  80. package/dist/accordion.js +2 -2
  81. package/dist/action-bar.js +5 -5
  82. package/dist/alert.js +23 -23
  83. package/dist/alert.js.map +1 -1
  84. package/dist/assets/base-modal.css +1 -1
  85. package/dist/assets/button.css +1 -1
  86. package/dist/assets/checkbox.css +1 -1
  87. package/dist/assets/controls-group.css +1 -1
  88. package/dist/assets/copy.css +1 -1
  89. package/dist/assets/dropdown-default-textbox.css +1 -1
  90. package/dist/assets/dropdown.css +1 -1
  91. package/dist/assets/fixed-scroller.css +1 -1
  92. package/dist/assets/index.css +1 -1
  93. package/dist/assets/index10.css +1 -1
  94. package/dist/assets/index11.css +1 -1
  95. package/dist/assets/index12.css +1 -1
  96. package/dist/assets/index13.css +1 -1
  97. package/dist/assets/index14.css +1 -1
  98. package/dist/assets/index16.css +1 -1
  99. package/dist/assets/index17.css +1 -1
  100. package/dist/assets/index18.css +1 -1
  101. package/dist/assets/index19.css +1 -1
  102. package/dist/assets/index2.css +1 -1
  103. package/dist/assets/index20.css +1 -1
  104. package/dist/assets/index21.css +1 -1
  105. package/dist/assets/index22.css +1 -1
  106. package/dist/assets/index23.css +1 -1
  107. package/dist/assets/index24.css +1 -1
  108. package/dist/assets/index25.css +1 -1
  109. package/dist/assets/index26.css +1 -1
  110. package/dist/assets/index27.css +1 -1
  111. package/dist/assets/index28.css +1 -1
  112. package/dist/assets/index29.css +1 -1
  113. package/dist/assets/index3.css +1 -1
  114. package/dist/assets/index30.css +1 -1
  115. package/dist/assets/index31.css +1 -1
  116. package/dist/assets/index32.css +1 -1
  117. package/dist/assets/index33.css +1 -1
  118. package/dist/assets/index34.css +1 -1
  119. package/dist/assets/index35.css +1 -1
  120. package/dist/assets/index36.css +1 -1
  121. package/dist/assets/index37.css +1 -1
  122. package/dist/assets/index38.css +1 -1
  123. package/dist/assets/index39.css +1 -1
  124. package/dist/assets/index4.css +1 -1
  125. package/dist/assets/index40.css +1 -1
  126. package/dist/assets/index41.css +1 -1
  127. package/dist/assets/index42.css +1 -1
  128. package/dist/assets/index43.css +1 -1
  129. package/dist/assets/index44.css +1 -1
  130. package/dist/assets/index45.css +1 -1
  131. package/dist/assets/index46.css +1 -1
  132. package/dist/assets/index47.css +1 -0
  133. package/dist/assets/index5.css +1 -1
  134. package/dist/assets/index6.css +1 -1
  135. package/dist/assets/index7.css +1 -1
  136. package/dist/assets/index9.css +1 -1
  137. package/dist/assets/listbox.css +1 -1
  138. package/dist/assets/loading-button.css +1 -1
  139. package/dist/avatar-image.js +1 -1
  140. package/dist/badge.js +1 -1
  141. package/dist/button.js +57 -46
  142. package/dist/button.js.map +1 -1
  143. package/dist/card.js +2 -2
  144. package/dist/checkbox.js +73 -54
  145. package/dist/checkbox.js.map +1 -1
  146. package/dist/chunks/{base-button.aa085dfa.js → base-button.39fae75f.js} +2 -2
  147. package/dist/chunks/{base-button.aa085dfa.js.map → base-button.39fae75f.js.map} +1 -1
  148. package/dist/chunks/{base-modal.a629cb32.js → base-modal.161ce8f0.js} +86 -86
  149. package/dist/chunks/base-modal.161ce8f0.js.map +1 -0
  150. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.2ff339f6.js} +3 -3
  151. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.2ff339f6.js.map} +1 -1
  152. package/dist/chunks/button.623a46d2.js +118 -0
  153. package/dist/chunks/button.623a46d2.js.map +1 -0
  154. package/dist/chunks/{calendar.fa7712e8.js → calendar.b1d05580.js} +4 -4
  155. package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b1d05580.js.map} +1 -1
  156. package/dist/chunks/checkbox.d65694f2.js +278 -0
  157. package/dist/chunks/checkbox.d65694f2.js.map +1 -0
  158. package/dist/chunks/{controls-group.d6543674.js → controls-group.30352ce4.js} +21 -17
  159. package/dist/chunks/controls-group.30352ce4.js.map +1 -0
  160. package/dist/chunks/copy.2a9cddc1.js +145 -0
  161. package/dist/chunks/copy.2a9cddc1.js.map +1 -0
  162. package/dist/chunks/country.types.002caff2.js +5871 -0
  163. package/dist/chunks/country.types.002caff2.js.map +1 -0
  164. package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.a731b5fb.js} +25 -25
  165. package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +1 -0
  166. package/dist/chunks/{dropdown.63de9aac.js → dropdown.96431c25.js} +399 -359
  167. package/dist/chunks/dropdown.96431c25.js.map +1 -0
  168. package/dist/chunks/{field-label.3c19a29a.js → field-label.b681234d.js} +5 -5
  169. package/dist/chunks/{field-label.3c19a29a.js.map → field-label.b681234d.js.map} +1 -1
  170. package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.ebfb2f80.js} +2 -2
  171. package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.ebfb2f80.js.map} +1 -1
  172. package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.03015ba1.js} +3 -3
  173. package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.03015ba1.js.map} +1 -1
  174. package/dist/chunks/{index.98174339.js → index.03605cb0.js} +5 -5
  175. package/dist/chunks/{index.98174339.js.map → index.03605cb0.js.map} +1 -1
  176. package/dist/chunks/index.09f7f1b5.js +124 -0
  177. package/dist/chunks/index.09f7f1b5.js.map +1 -0
  178. package/dist/chunks/index.0a8ddfaa.js +168 -0
  179. package/dist/chunks/index.0a8ddfaa.js.map +1 -0
  180. package/dist/chunks/index.113137fb.js +21 -0
  181. package/dist/chunks/index.113137fb.js.map +1 -0
  182. package/dist/chunks/{index.89dfe209.js → index.1dac266a.js} +3 -3
  183. package/dist/chunks/{index.89dfe209.js.map → index.1dac266a.js.map} +1 -1
  184. package/dist/chunks/{index.0ee895e0.js → index.45d00aad.js} +2 -2
  185. package/dist/chunks/{index.0ee895e0.js.map → index.45d00aad.js.map} +1 -1
  186. package/dist/chunks/{index.4d2a13e1.js → index.80078bf9.js} +2 -2
  187. package/dist/chunks/{index.4d2a13e1.js.map → index.80078bf9.js.map} +1 -1
  188. package/dist/chunks/{index.85832db5.js → index.a4a6e52f.js} +3 -3
  189. package/dist/chunks/{index.85832db5.js.map → index.a4a6e52f.js.map} +1 -1
  190. package/dist/chunks/index.cf561336.js +622 -0
  191. package/dist/chunks/index.cf561336.js.map +1 -0
  192. package/dist/chunks/{index.c6fecf1c.js → index.ef1c4d59.js} +33 -33
  193. package/dist/chunks/{index.c6fecf1c.js.map → index.ef1c4d59.js.map} +1 -1
  194. package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.ff6d6f32.js} +3 -3
  195. package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.ff6d6f32.js.map} +1 -1
  196. package/dist/chunks/listbox.dd9883c5.js +1419 -0
  197. package/dist/chunks/listbox.dd9883c5.js.map +1 -0
  198. package/dist/chunks/{loading-button.4b88e24d.js → loading-button.30c5fede.js} +19 -19
  199. package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.30c5fede.js.map} +1 -1
  200. package/dist/chunks/{tooltip.27c32d36.js → tooltip.785993dd.js} +15 -15
  201. package/dist/chunks/tooltip.785993dd.js.map +1 -0
  202. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
  203. package/dist/chunks/useCountryItems.d2a1f224.js +29 -0
  204. package/dist/chunks/{useCountryItems.e83ef8f0.js.map → useCountryItems.d2a1f224.js.map} +1 -1
  205. package/dist/code-snippet.js +136 -138
  206. package/dist/code-snippet.js.map +1 -1
  207. package/dist/country.js +51 -5912
  208. package/dist/country.js.map +1 -1
  209. package/dist/currency.js +1 -1
  210. package/dist/data-grid.js +1325 -1021
  211. package/dist/data-grid.js.map +1 -1
  212. package/dist/date-picker.js +20 -20
  213. package/dist/date-picker.js.map +1 -1
  214. package/dist/date-range-picker.js +2 -2
  215. package/dist/date.js +1 -1
  216. package/dist/divider.js +2 -10
  217. package/dist/divider.js.map +1 -1
  218. package/dist/dropdown.js +51 -50
  219. package/dist/dropdown.js.map +1 -1
  220. package/dist/empty-state.js +23 -23
  221. package/dist/empty-state.js.map +1 -1
  222. package/dist/filter-bar.js +759 -747
  223. package/dist/filter-bar.js.map +1 -1
  224. package/dist/focus-trap.js +1 -1
  225. package/dist/form-layout.js +2 -2
  226. package/dist/form-layout.js.map +1 -1
  227. package/dist/header.js +3 -3
  228. package/dist/index.js +194 -185
  229. package/dist/index.js.map +1 -1
  230. package/dist/info-icon.js +3 -3
  231. package/dist/input-field.js +4 -4
  232. package/dist/internal.js +17 -15
  233. package/dist/link.js +2 -2
  234. package/dist/loading-indicator.js +1 -1
  235. package/dist/menu.js +1 -1
  236. package/dist/modal.js +67 -64
  237. package/dist/modal.js.map +1 -1
  238. package/dist/pagination.js +15 -13
  239. package/dist/pagination.js.map +1 -1
  240. package/dist/payment-method.js +2 -2
  241. package/dist/popover.js +1 -1
  242. package/dist/popper-container.js +1 -1
  243. package/dist/radio-group.js +69 -67
  244. package/dist/radio-group.js.map +1 -1
  245. package/dist/search-bar.js +8 -8
  246. package/dist/secondary-nav.js +110 -0
  247. package/dist/secondary-nav.js.map +1 -0
  248. package/dist/segmented-control.js +3 -3
  249. package/dist/sidepanel.js +5 -5
  250. package/dist/status.js +2 -2
  251. package/dist/stepper.js +3 -3
  252. package/dist/structured-list.js +1 -1
  253. package/dist/summary-grid.js +3 -3
  254. package/dist/tabs.js +3 -3
  255. package/dist/tag.js +3 -3
  256. package/dist/textarea.js +173 -161
  257. package/dist/textarea.js.map +1 -1
  258. package/dist/timeline.js +244 -237
  259. package/dist/timeline.js.map +1 -1
  260. package/dist/toast.js +3 -3
  261. package/dist/toggle.js +2 -2
  262. package/dist/tutorial.js +5 -5
  263. package/dist/typography.js +1 -1
  264. package/dist/web-types.json +1 -1
  265. package/package.json +2 -2
  266. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  267. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  268. package/dist/chunks/base-modal.a629cb32.js.map +0 -1
  269. package/dist/chunks/button.82ed953e.js +0 -148
  270. package/dist/chunks/button.82ed953e.js.map +0 -1
  271. package/dist/chunks/checkbox.731dc0ab.js +0 -264
  272. package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
  273. package/dist/chunks/controls-group.d6543674.js.map +0 -1
  274. package/dist/chunks/copy.330d594e.js +0 -126
  275. package/dist/chunks/copy.330d594e.js.map +0 -1
  276. package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
  277. package/dist/chunks/dropdown.63de9aac.js.map +0 -1
  278. package/dist/chunks/index.73ed22a7.js +0 -594
  279. package/dist/chunks/index.73ed22a7.js.map +0 -1
  280. package/dist/chunks/index.75f3672e.js +0 -124
  281. package/dist/chunks/index.75f3672e.js.map +0 -1
  282. package/dist/chunks/index.edcaf766.js +0 -150
  283. package/dist/chunks/index.edcaf766.js.map +0 -1
  284. package/dist/chunks/listbox.ac43f8ab.js +0 -1309
  285. package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
  286. package/dist/chunks/tooltip.27c32d36.js.map +0 -1
  287. package/dist/chunks/useCountryItems.e83ef8f0.js +0 -29
  288. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  289. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  290. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  292. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
@@ -0,0 +1,29 @@
1
+ import { computed as t } from "vue";
2
+ import { B as a, u as s, a as l, b as n } from "./country.types.002caff2.js";
3
+ import { u as C } from "./i18n.6c402773.js";
4
+ const y = (o, u) => {
5
+ const { locale: r } = C(void 0, !0);
6
+ return t(() => {
7
+ switch (o == null ? void 0 : o.value) {
8
+ case a.PHONE_CODE:
9
+ return u.value.map(({ value: e }) => ({
10
+ value: e,
11
+ label: n(e).value
12
+ }));
13
+ case a.CAPITAL:
14
+ return u.value.map(({ value: e }) => ({
15
+ value: e,
16
+ label: l(e, r).value
17
+ }));
18
+ case a.NAME:
19
+ return u.value.map(({ value: e }) => ({ value: e, label: s(e, r).value }));
20
+ case a.CUSTOM:
21
+ default:
22
+ return u.value;
23
+ }
24
+ });
25
+ };
26
+ export {
27
+ y as u
28
+ };
29
+ //# sourceMappingURL=useCountryItems.d2a1f224.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCountryItems.e83ef8f0.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.ts"],"sourcesContent":["import { computed, ComputedRef, Ref } from 'vue';\nimport { BentoCountryVariant, useCountryCapital, useCountryName, useCountryPhoneCode } from '@/components/country';\nimport { BentoCountryListboxOptions } from '../dropdown-country.types';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { BentoListboxOptions } from '@/types';\n\nexport const useCountryItems = (\n variant: Ref<BentoCountryVariant | `${BentoCountryVariant}`>,\n items: Ref<BentoCountryListboxOptions>\n) => {\n const { locale } = useI18n(undefined, true);\n\n return computed(() => {\n switch (variant?.value) {\n case BentoCountryVariant.PHONE_CODE:\n return items.value.map(({ value }) => ({\n value,\n label: useCountryPhoneCode(value).value,\n }));\n case BentoCountryVariant.CAPITAL:\n return items.value.map(({ value }) => ({\n value,\n label: useCountryCapital(value, locale).value,\n }));\n case BentoCountryVariant.NAME:\n return items.value.map(({ value }) => ({ value, label: useCountryName(value, locale).value }));\n case BentoCountryVariant.CUSTOM:\n default:\n return items.value;\n }\n }) as ComputedRef<BentoListboxOptions>;\n};\n"],"names":["useCountryItems","variant","items","locale","useI18n","computed","BentoCountryVariant","value","useCountryPhoneCode","useCountryCapital","useCountryName"],"mappings":";;;AAMa,MAAAA,IAAkB,CAC3BC,GACAC,MACC;AACD,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAQ,QAAW,EAAI;AAE1C,SAAOC,EAAS,MAAM;AAClB,YAAQJ,KAAA,gBAAAA,EAAS,OAAO;AAAA,MACpB,KAAKK,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,SAAa;AAAA,UACnC,OAAAA;AAAA,UACA,OAAOC,EAAoBD,CAAK,EAAE;AAAA,QACpC,EAAA;AAAA,MACN,KAAKD,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,SAAa;AAAA,UACnC,OAAAA;AAAA,UACA,OAAOE,EAAkBF,GAAOJ,CAAM,EAAE;AAAA,QAC1C,EAAA;AAAA,MACN,KAAKG,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,EAAM,OAAO,EAAE,OAAAA,GAAO,OAAOG,EAAeH,GAAOJ,CAAM,EAAE,QAAQ;AAAA,MACjG,KAAKG,EAAoB;AAAA,MACzB;AACI,eAAOJ,EAAM;AAAA,IACrB;AAAA,EAAA,CACH;AACL;"}
1
+ {"version":3,"file":"useCountryItems.d2a1f224.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.ts"],"sourcesContent":["import { computed, ComputedRef, Ref } from 'vue';\nimport { BentoCountryVariant, useCountryCapital, useCountryName, useCountryPhoneCode } from '@/components/country';\nimport { BentoCountryListboxOptions } from '../dropdown-country.types';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { BentoListboxOptions } from '@/types';\n\nexport const useCountryItems = (\n variant: Ref<BentoCountryVariant | `${BentoCountryVariant}`>,\n items: Ref<BentoCountryListboxOptions>\n) => {\n const { locale } = useI18n(undefined, true);\n\n return computed(() => {\n switch (variant?.value) {\n case BentoCountryVariant.PHONE_CODE:\n return items.value.map(({ value }) => ({\n value,\n label: useCountryPhoneCode(value).value,\n }));\n case BentoCountryVariant.CAPITAL:\n return items.value.map(({ value }) => ({\n value,\n label: useCountryCapital(value, locale).value,\n }));\n case BentoCountryVariant.NAME:\n return items.value.map(({ value }) => ({ value, label: useCountryName(value, locale).value }));\n case BentoCountryVariant.CUSTOM:\n default:\n return items.value;\n }\n }) as ComputedRef<BentoListboxOptions>;\n};\n"],"names":["useCountryItems","variant","items","locale","useI18n","computed","BentoCountryVariant","value","useCountryPhoneCode","useCountryCapital","useCountryName"],"mappings":";;;AAMa,MAAAA,IAAkB,CAC3BC,GACAC,MACC;AACD,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAQ,QAAW,EAAI;AAE1C,SAAOC,EAAS,MAAM;AAClB,YAAQJ,KAAA,gBAAAA,EAAS,OAAO;AAAA,MACpB,KAAKK,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,SAAa;AAAA,UACnC,OAAAA;AAAA,UACA,OAAOC,EAAoBD,CAAK,EAAE;AAAA,QACpC,EAAA;AAAA,MACN,KAAKD,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,SAAa;AAAA,UACnC,OAAAA;AAAA,UACA,OAAOE,EAAkBF,GAAOJ,CAAM,EAAE;AAAA,QAC1C,EAAA;AAAA,MACN,KAAKG,EAAoB;AACrB,eAAOJ,EAAM,MAAM,IAAI,CAAC,EAAE,OAAAK,EAAM,OAAO,EAAE,OAAAA,GAAO,OAAOG,EAAeH,GAAOJ,CAAM,EAAE,QAAQ;AAAA,MACjG,KAAKG,EAAoB;AAAA,MACzB;AACI,eAAOJ,EAAM;AAAA,IACrB;AAAA,EAAA,CACH;AACL;"}
@@ -1,22 +1,22 @@
1
- import { openBlock as z, createElementBlock as le, mergeProps as qe, toDisplayString as Ae, createCommentVNode as q, createElementVNode as ae, defineComponent as Ye, ref as ge, computed as ue, shallowRef as Te, onMounted as et, watch as tt, watchEffect as nt, resolveComponent as K, normalizeClass as $e, createBlock as oe, createVNode as me, withCtx as fe, createTextVNode as He, renderSlot as rt, normalizeProps as it, guardReactiveProps as st, pushScopeId as ot, popScopeId as lt } from "vue";
2
- import { highlightActiveLine as at, keymap as ut, EditorView as Ve, lineNumbers as ft } from "@codemirror/view";
1
+ import { openBlock as z, createElementBlock as le, mergeProps as qe, toDisplayString as Ae, createCommentVNode as q, createElementVNode as ae, defineComponent as Ye, ref as ge, computed as ue, shallowRef as Te, onMounted as et, watch as tt, watchEffect as nt, resolveComponent as K, normalizeClass as $e, createBlock as oe, createVNode as me, withCtx as he, createTextVNode as He, renderSlot as rt, normalizeProps as it, guardReactiveProps as st, pushScopeId as ot, popScopeId as lt } from "vue";
2
+ import { highlightActiveLine as at, keymap as ut, EditorView as Ve, lineNumbers as ht } from "@codemirror/view";
3
3
  import { Compartment as Ne, EditorState as je } from "@codemirror/state";
4
- import { indentWithTab as ht, history as dt } from "@codemirror/commands";
5
- import { syntaxHighlighting as ct, HighlightStyle as pt } from "@codemirror/language";
4
+ import { indentWithTab as ft, history as ct } from "@codemirror/commands";
5
+ import { syntaxHighlighting as dt, HighlightStyle as pt } from "@codemirror/language";
6
6
  import { json as gt } from "@codemirror/lang-json";
7
7
  import { xml as mt } from "@codemirror/lang-xml";
8
8
  import { javascript as bt } from "@codemirror/lang-javascript";
9
9
  import { java as yt } from "@codemirror/lang-java";
10
- import { B as xt } from "./chunks/dropdown.63de9aac.js";
11
- import { f as kt } from "./chunks/base-modal.a629cb32.js";
12
- import { a as _t } from "./chunks/button.82ed953e.js";
13
- import { B as vt } from "./chunks/index.75f3672e.js";
14
- import { b as wt } from "./chunks/tooltip.27c32d36.js";
10
+ import { B as xt } from "./chunks/dropdown.96431c25.js";
11
+ import { f as kt } from "./chunks/base-modal.161ce8f0.js";
12
+ import { a as _t } from "./chunks/button.623a46d2.js";
13
+ import { B as vt } from "./chunks/index.09f7f1b5.js";
14
+ import { b as wt } from "./chunks/tooltip.785993dd.js";
15
15
  import { BentoLoadingIndicator as Ct } from "./loading-indicator.js";
16
16
  import { u as Nt } from "./chunks/i18n.6c402773.js";
17
17
  import { _ as Fe } from "./chunks/_plugin-vue_export-helper.dad06003.js";
18
- import { C as St } from "./chunks/copy.330d594e.js";
19
- import "./assets/index10.css";
18
+ import { C as St } from "./chunks/copy.2a9cddc1.js";
19
+ import "./assets/index17.css";
20
20
  const At = 1024;
21
21
  let It = 0;
22
22
  class v {
@@ -231,7 +231,7 @@ class R {
231
231
  [`resolveInner`](#common.Tree.resolveInner) instead.
232
232
  */
233
233
  resolve(e, t = 0) {
234
- let n = ce(be.get(this) || this.topNode, e, t, !1);
234
+ let n = de(be.get(this) || this.topNode, e, t, !1);
235
235
  return be.set(this, n), n;
236
236
  }
237
237
  /**
@@ -242,7 +242,7 @@ class R {
242
242
  the host trees).
243
243
  */
244
244
  resolveInner(e, t = 0) {
245
- let n = ce(Re.get(this) || this.topNode, e, t, !0);
245
+ let n = de(Re.get(this) || this.topNode, e, t, !0);
246
246
  return Re.set(this, n), n;
247
247
  }
248
248
  /**
@@ -264,15 +264,15 @@ class R {
264
264
  */
265
265
  iterate(e) {
266
266
  let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0, u = (o & I.IncludeAnonymous) > 0;
267
- for (let h = this.cursor(o | I.IncludeAnonymous); ; ) {
267
+ for (let f = this.cursor(o | I.IncludeAnonymous); ; ) {
268
268
  let x = !1;
269
- if (h.from <= s && h.to >= i && (!u && h.type.isAnonymous || t(h) !== !1)) {
270
- if (h.firstChild())
269
+ if (f.from <= s && f.to >= i && (!u && f.type.isAnonymous || t(f) !== !1)) {
270
+ if (f.firstChild())
271
271
  continue;
272
272
  x = !0;
273
273
  }
274
- for (; x && n && (u || !h.type.isAnonymous) && n(h), !h.nextSibling(); ) {
275
- if (!h.parent())
274
+ for (; x && n && (u || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
275
+ if (!f.parent())
276
276
  return;
277
277
  x = !0;
278
278
  }
@@ -379,7 +379,7 @@ class Q {
379
379
  */
380
380
  findChild(e, t, n, i, s) {
381
381
  let { buffer: o } = this, u = -1;
382
- for (let h = e; h != t && !(Xe(s, i, o[h + 1], o[h + 2]) && (u = h, n > 0)); h = o[h + 3])
382
+ for (let f = e; f != t && !(Xe(s, i, o[f + 1], o[f + 2]) && (u = f, n > 0)); f = o[f + 3])
383
383
  ;
384
384
  return u;
385
385
  }
@@ -388,10 +388,10 @@ class Q {
388
388
  */
389
389
  slice(e, t, n) {
390
390
  let i = this.buffer, s = new Uint16Array(t - e), o = 0;
391
- for (let u = e, h = 0; u < t; ) {
392
- s[h++] = i[u++], s[h++] = i[u++] - n;
393
- let x = s[h++] = i[u++] - n;
394
- s[h++] = i[u++] - e, o = Math.max(o, x);
391
+ for (let u = e, f = 0; u < t; ) {
392
+ s[f++] = i[u++], s[f++] = i[u++] - n;
393
+ let x = s[f++] = i[u++] - n;
394
+ s[f++] = i[u++] - e, o = Math.max(o, x);
395
395
  }
396
396
  return new Q(s, o, this.set);
397
397
  }
@@ -412,7 +412,7 @@ function Xe(r, e, t, n) {
412
412
  return !0;
413
413
  }
414
414
  }
415
- function ce(r, e, t, n) {
415
+ function de(r, e, t, n) {
416
416
  for (var i; r.from == r.to || (t < 1 ? r.from >= e : r.from > e) || (t > -1 ? r.to <= e : r.to < e); ) {
417
417
  let o = !n && r instanceof E && r.index < 0 ? null : r.parent;
418
418
  if (!o)
@@ -442,10 +442,10 @@ class Ze {
442
442
  return De(this, e, t, n);
443
443
  }
444
444
  resolve(e, t = 0) {
445
- return ce(this, e, t, !1);
445
+ return de(this, e, t, !1);
446
446
  }
447
447
  resolveInner(e, t = 0) {
448
- return ce(this, e, t, !0);
448
+ return de(this, e, t, !0);
449
449
  }
450
450
  matchContext(e) {
451
451
  return Ie(this, e);
@@ -482,8 +482,8 @@ class E extends Ze {
482
482
  }
483
483
  nextChild(e, t, n, i, s = 0) {
484
484
  for (let o = this; ; ) {
485
- for (let { children: u, positions: h } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
486
- let w = u[e], C = h[e] + o.from;
485
+ for (let { children: u, positions: f } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
486
+ let w = u[e], C = f[e] + o.from;
487
487
  if (Xe(i, n, C, C + w.length)) {
488
488
  if (w instanceof Q) {
489
489
  if (s & I.ExcludeBuffers)
@@ -752,7 +752,7 @@ function zt(r, e, t) {
752
752
  let o = we.get(s.tree);
753
753
  if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
754
754
  let u = new E(o.tree, o.overlay[0].from + s.from, -1, s);
755
- (i || (i = [n])).push(ce(u, e, t, !1));
755
+ (i || (i = [n])).push(de(u, e, t, !1));
756
756
  }
757
757
  }
758
758
  return i ? Qe(i) : n;
@@ -1059,24 +1059,24 @@ function ze(r) {
1059
1059
  }
1060
1060
  function Et(r) {
1061
1061
  var e;
1062
- let { buffer: t, nodeSet: n, maxBufferLength: i = At, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Oe(t, t.length) : t, h = n.types, x = 0, w = 0;
1063
- function C(g, b, f, y, p, m) {
1064
- let { id: d, start: c, end: _, size: k } = u, L = w;
1062
+ let { buffer: t, nodeSet: n, maxBufferLength: i = At, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Oe(t, t.length) : t, f = n.types, x = 0, w = 0;
1063
+ function C(g, b, h, y, p, m) {
1064
+ let { id: c, start: d, end: _, size: k } = u, L = w;
1065
1065
  for (; k < 0; )
1066
1066
  if (u.next(), k == -1) {
1067
- let W = s[d];
1068
- f.push(W), y.push(c - g);
1067
+ let W = s[c];
1068
+ h.push(W), y.push(d - g);
1069
1069
  return;
1070
1070
  } else if (k == -3) {
1071
- x = d;
1071
+ x = c;
1072
1072
  return;
1073
1073
  } else if (k == -4) {
1074
- w = d;
1074
+ w = c;
1075
1075
  return;
1076
1076
  } else
1077
1077
  throw new RangeError(`Unrecognized record size: ${k}`);
1078
- let Y = h[d], ie, ee, Me = c - g;
1079
- if (_ - c <= i && (ee = M(u.pos - b, p))) {
1078
+ let Y = f[c], ie, ee, Me = d - g;
1079
+ if (_ - d <= i && (ee = M(u.pos - b, p))) {
1080
1080
  let W = new Uint16Array(ee.size - ee.skip), O = u.pos - ee.size, T = W.length;
1081
1081
  for (; u.pos > O; )
1082
1082
  T = D(ee.start, W, T);
@@ -1084,110 +1084,110 @@ function Et(r) {
1084
1084
  } else {
1085
1085
  let W = u.pos - k;
1086
1086
  u.next();
1087
- let O = [], T = [], te = d >= o ? d : -1, se = 0, pe = _;
1087
+ let O = [], T = [], te = c >= o ? c : -1, se = 0, pe = _;
1088
1088
  for (; u.pos > W; )
1089
- te >= 0 && u.id == te && u.size >= 0 ? (u.end <= pe - i && (N(O, T, c, se, u.end, pe, te, L), se = O.length, pe = u.end), u.next()) : m > 2500 ? A(c, W, O, T) : C(c, W, O, T, te, m + 1);
1090
- if (te >= 0 && se > 0 && se < O.length && N(O, T, c, se, c, pe, te, L), O.reverse(), T.reverse(), te > -1 && se > 0) {
1089
+ te >= 0 && u.id == te && u.size >= 0 ? (u.end <= pe - i && (N(O, T, d, se, u.end, pe, te, L), se = O.length, pe = u.end), u.next()) : m > 2500 ? A(d, W, O, T) : C(d, W, O, T, te, m + 1);
1090
+ if (te >= 0 && se > 0 && se < O.length && N(O, T, d, se, d, pe, te, L), O.reverse(), T.reverse(), te > -1 && se > 0) {
1091
1091
  let Pe = B(Y);
1092
- ie = Ee(Y, O, T, 0, O.length, 0, _ - c, Pe, Pe);
1092
+ ie = Ee(Y, O, T, 0, O.length, 0, _ - d, Pe, Pe);
1093
1093
  } else
1094
- ie = P(Y, O, T, _ - c, L - _);
1094
+ ie = P(Y, O, T, _ - d, L - _);
1095
1095
  }
1096
- f.push(ie), y.push(Me);
1096
+ h.push(ie), y.push(Me);
1097
1097
  }
1098
- function A(g, b, f, y) {
1099
- let p = [], m = 0, d = -1;
1098
+ function A(g, b, h, y) {
1099
+ let p = [], m = 0, c = -1;
1100
1100
  for (; u.pos > b; ) {
1101
- let { id: c, start: _, end: k, size: L } = u;
1101
+ let { id: d, start: _, end: k, size: L } = u;
1102
1102
  if (L > 4)
1103
1103
  u.next();
1104
1104
  else {
1105
- if (d > -1 && _ < d)
1105
+ if (c > -1 && _ < c)
1106
1106
  break;
1107
- d < 0 && (d = k - i), p.push(c, _, k), m++, u.next();
1107
+ c < 0 && (c = k - i), p.push(d, _, k), m++, u.next();
1108
1108
  }
1109
1109
  }
1110
1110
  if (m) {
1111
- let c = new Uint16Array(m * 4), _ = p[p.length - 2];
1111
+ let d = new Uint16Array(m * 4), _ = p[p.length - 2];
1112
1112
  for (let k = p.length - 3, L = 0; k >= 0; k -= 3)
1113
- c[L++] = p[k], c[L++] = p[k + 1] - _, c[L++] = p[k + 2] - _, c[L++] = L;
1114
- f.push(new Q(c, p[2] - _, n)), y.push(_ - g);
1113
+ d[L++] = p[k], d[L++] = p[k + 1] - _, d[L++] = p[k + 2] - _, d[L++] = L;
1114
+ h.push(new Q(d, p[2] - _, n)), y.push(_ - g);
1115
1115
  }
1116
1116
  }
1117
1117
  function B(g) {
1118
- return (b, f, y) => {
1119
- let p = 0, m = b.length - 1, d, c;
1120
- if (m >= 0 && (d = b[m]) instanceof R) {
1121
- if (!m && d.type == g && d.length == y)
1122
- return d;
1123
- (c = d.prop(v.lookAhead)) && (p = f[m] + d.length + c);
1118
+ return (b, h, y) => {
1119
+ let p = 0, m = b.length - 1, c, d;
1120
+ if (m >= 0 && (c = b[m]) instanceof R) {
1121
+ if (!m && c.type == g && c.length == y)
1122
+ return c;
1123
+ (d = c.prop(v.lookAhead)) && (p = h[m] + c.length + d);
1124
1124
  }
1125
- return P(g, b, f, y, p);
1125
+ return P(g, b, h, y, p);
1126
1126
  };
1127
1127
  }
1128
- function N(g, b, f, y, p, m, d, c) {
1128
+ function N(g, b, h, y, p, m, c, d) {
1129
1129
  let _ = [], k = [];
1130
1130
  for (; g.length > y; )
1131
- _.push(g.pop()), k.push(b.pop() + f - p);
1132
- g.push(P(n.types[d], _, k, m - p, c - m)), b.push(p - f);
1131
+ _.push(g.pop()), k.push(b.pop() + h - p);
1132
+ g.push(P(n.types[c], _, k, m - p, d - m)), b.push(p - h);
1133
1133
  }
1134
- function P(g, b, f, y, p = 0, m) {
1134
+ function P(g, b, h, y, p = 0, m) {
1135
1135
  if (x) {
1136
- let d = [v.contextHash, x];
1137
- m = m ? [d].concat(m) : [d];
1136
+ let c = [v.contextHash, x];
1137
+ m = m ? [c].concat(m) : [c];
1138
1138
  }
1139
1139
  if (p > 25) {
1140
- let d = [v.lookAhead, p];
1141
- m = m ? [d].concat(m) : [d];
1140
+ let c = [v.lookAhead, p];
1141
+ m = m ? [c].concat(m) : [c];
1142
1142
  }
1143
- return new R(g, b, f, y, m);
1143
+ return new R(g, b, h, y, m);
1144
1144
  }
1145
1145
  function M(g, b) {
1146
- let f = u.fork(), y = 0, p = 0, m = 0, d = f.end - i, c = { size: 0, start: 0, skip: 0 };
1146
+ let h = u.fork(), y = 0, p = 0, m = 0, c = h.end - i, d = { size: 0, start: 0, skip: 0 };
1147
1147
  e:
1148
- for (let _ = f.pos - g; f.pos > _; ) {
1149
- let k = f.size;
1150
- if (f.id == b && k >= 0) {
1151
- c.size = y, c.start = p, c.skip = m, m += 4, y += 4, f.next();
1148
+ for (let _ = h.pos - g; h.pos > _; ) {
1149
+ let k = h.size;
1150
+ if (h.id == b && k >= 0) {
1151
+ d.size = y, d.start = p, d.skip = m, m += 4, y += 4, h.next();
1152
1152
  continue;
1153
1153
  }
1154
- let L = f.pos - k;
1155
- if (k < 0 || L < _ || f.start < d)
1154
+ let L = h.pos - k;
1155
+ if (k < 0 || L < _ || h.start < c)
1156
1156
  break;
1157
- let Y = f.id >= o ? 4 : 0, ie = f.start;
1158
- for (f.next(); f.pos > L; ) {
1159
- if (f.size < 0)
1160
- if (f.size == -3)
1157
+ let Y = h.id >= o ? 4 : 0, ie = h.start;
1158
+ for (h.next(); h.pos > L; ) {
1159
+ if (h.size < 0)
1160
+ if (h.size == -3)
1161
1161
  Y += 4;
1162
1162
  else
1163
1163
  break e;
1164
1164
  else
1165
- f.id >= o && (Y += 4);
1166
- f.next();
1165
+ h.id >= o && (Y += 4);
1166
+ h.next();
1167
1167
  }
1168
1168
  p = ie, y += k, m += Y;
1169
1169
  }
1170
- return (b < 0 || y == g) && (c.size = y, c.start = p, c.skip = m), c.size > 4 ? c : void 0;
1171
- }
1172
- function D(g, b, f) {
1173
- let { id: y, start: p, end: m, size: d } = u;
1174
- if (u.next(), d >= 0 && y < o) {
1175
- let c = f;
1176
- if (d > 4) {
1177
- let _ = u.pos - (d - 4);
1170
+ return (b < 0 || y == g) && (d.size = y, d.start = p, d.skip = m), d.size > 4 ? d : void 0;
1171
+ }
1172
+ function D(g, b, h) {
1173
+ let { id: y, start: p, end: m, size: c } = u;
1174
+ if (u.next(), c >= 0 && y < o) {
1175
+ let d = h;
1176
+ if (c > 4) {
1177
+ let _ = u.pos - (c - 4);
1178
1178
  for (; u.pos > _; )
1179
- f = D(g, b, f);
1179
+ h = D(g, b, h);
1180
1180
  }
1181
- b[--f] = c, b[--f] = m - g, b[--f] = p - g, b[--f] = y;
1181
+ b[--h] = d, b[--h] = m - g, b[--h] = p - g, b[--h] = y;
1182
1182
  } else
1183
- d == -3 ? x = y : d == -4 && (w = y);
1184
- return f;
1183
+ c == -3 ? x = y : c == -4 && (w = y);
1184
+ return h;
1185
1185
  }
1186
1186
  let U = [], S = [];
1187
1187
  for (; u.pos > 0; )
1188
1188
  C(r.start || 0, r.bufferStart || 0, U, S, -1, 0);
1189
1189
  let J = (e = r.length) !== null && e !== void 0 ? e : U.length ? S[0] + U[0].length : 0;
1190
- return new R(h[r.topID], U.reverse(), S.reverse(), J);
1190
+ return new R(f[r.topID], U.reverse(), S.reverse(), J);
1191
1191
  }
1192
1192
  const Ue = /* @__PURE__ */ new WeakMap();
1193
1193
  function _e(r, e) {
@@ -1207,7 +1207,7 @@ function _e(r, e) {
1207
1207
  }
1208
1208
  return t;
1209
1209
  }
1210
- function Ee(r, e, t, n, i, s, o, u, h) {
1210
+ function Ee(r, e, t, n, i, s, o, u, f) {
1211
1211
  let x = 0;
1212
1212
  for (let N = n; N < i; N++)
1213
1213
  x += _e(r, e[N]);
@@ -1219,26 +1219,26 @@ function Ee(r, e, t, n, i, s, o, u, h) {
1219
1219
  for (let S = M; S < D; ) {
1220
1220
  let J = S, g = P[S], b = _e(r, N[S]);
1221
1221
  for (S++; S < D; S++) {
1222
- let f = _e(r, N[S]);
1223
- if (b + f >= w)
1222
+ let h = _e(r, N[S]);
1223
+ if (b + h >= w)
1224
1224
  break;
1225
- b += f;
1225
+ b += h;
1226
1226
  }
1227
1227
  if (S == J + 1) {
1228
1228
  if (b > w) {
1229
- let f = N[J];
1230
- B(f.children, f.positions, 0, f.children.length, P[J] + U);
1229
+ let h = N[J];
1230
+ B(h.children, h.positions, 0, h.children.length, P[J] + U);
1231
1231
  continue;
1232
1232
  }
1233
1233
  C.push(N[J]);
1234
1234
  } else {
1235
- let f = P[S - 1] + N[S - 1].length - g;
1236
- C.push(Ee(r, N, P, J, S, g, f, null, h));
1235
+ let h = P[S - 1] + N[S - 1].length - g;
1236
+ C.push(Ee(r, N, P, J, S, g, h, null, f));
1237
1237
  }
1238
1238
  A.push(g + U - s);
1239
1239
  }
1240
1240
  }
1241
- return B(e, t, n, i, 0), (u || h)(C, A, o);
1241
+ return B(e, t, n, i, 0), (u || f)(C, A, o);
1242
1242
  }
1243
1243
  new v({ perNode: !0 });
1244
1244
  let Mt = 0;
@@ -1299,8 +1299,8 @@ class Ce {
1299
1299
  let o = $t(t);
1300
1300
  for (let u of e.set)
1301
1301
  if (!u.modified.length)
1302
- for (let h of o)
1303
- i.push(Ce.get(u, h));
1302
+ for (let f of o)
1303
+ i.push(Ce.get(u, f));
1304
1304
  return s;
1305
1305
  }
1306
1306
  }
@@ -1328,8 +1328,8 @@ function Ht(r, e) {
1328
1328
  style: (s) => {
1329
1329
  let o = i;
1330
1330
  for (let u of s)
1331
- for (let h of u.set) {
1332
- let x = t[h.id];
1331
+ for (let f of u.set) {
1332
+ let x = t[f.id];
1333
1333
  if (x) {
1334
1334
  o = o ? o + " " + x : x;
1335
1335
  break;
@@ -1340,7 +1340,7 @@ function Ht(r, e) {
1340
1340
  scope: n
1341
1341
  };
1342
1342
  }
1343
- const a = j.define, ye = a(), F = a(), Je = a(F), We = a(F), X = a(), xe = a(X), Se = a(X), V = a(), ne = a(V), $ = a(), H = a(), Be = a(), he = a(Be), ke = a(), l = {
1343
+ const a = j.define, ye = a(), F = a(), Je = a(F), We = a(F), X = a(), xe = a(X), Se = a(X), V = a(), ne = a(V), $ = a(), H = a(), Be = a(), fe = a(Be), ke = a(), l = {
1344
1344
  /**
1345
1345
  A comment.
1346
1346
  */
@@ -1544,27 +1544,27 @@ const a = j.define, ye = a(), F = a(), Je = a(F), We = a(F), X = a(), xe = a(X),
1544
1544
  /**
1545
1545
  Bracket-style [punctuation](#highlight.tags.punctuation).
1546
1546
  */
1547
- bracket: he,
1547
+ bracket: fe,
1548
1548
  /**
1549
1549
  Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
1550
1550
  tokens).
1551
1551
  */
1552
- angleBracket: a(he),
1552
+ angleBracket: a(fe),
1553
1553
  /**
1554
1554
  Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
1555
1555
  tokens).
1556
1556
  */
1557
- squareBracket: a(he),
1557
+ squareBracket: a(fe),
1558
1558
  /**
1559
1559
  Parentheses (usually `(` and `)` tokens). Subtag of
1560
1560
  [bracket](#highlight.tags.bracket).
1561
1561
  */
1562
- paren: a(he),
1562
+ paren: a(fe),
1563
1563
  /**
1564
1564
  Braces (usually `{` and `}` tokens). Subtag of
1565
1565
  [bracket](#highlight.tags.bracket).
1566
1566
  */
1567
- brace: a(he),
1567
+ brace: a(fe),
1568
1568
  /**
1569
1569
  Content, for example plain text in XML or markup documents.
1570
1570
  */
@@ -1811,16 +1811,14 @@ const Vt = "#c72727", jt = "#9b5700", Rt = "#067934", Dt = "#0063d7", Ut = {
1811
1811
  tag: l.invalid,
1812
1812
  color: r.invalid
1813
1813
  }
1814
- ]), Wt = ct(Jt(Ut));
1815
- var ve = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(ve || {}), re = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r))(re || {}), de = /* @__PURE__ */ ((r) => (r.ACTION = "action", r.CHANGE = "change", r))(de || {});
1814
+ ]), Wt = dt(Jt(Ut));
1815
+ var ve = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(ve || {}), re = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r))(re || {}), ce = /* @__PURE__ */ ((r) => (r.ACTION = "action", r.CHANGE = "change", r))(ce || {});
1816
1816
  const Gt = {
1817
1817
  [re.JSON]: gt,
1818
1818
  [re.XML]: mt,
1819
1819
  [re.JAVASCRIPT]: bt,
1820
1820
  [re.JAVA]: yt
1821
- }, Kt = (r) => ({
1822
- loadLang: async () => Gt[r]
1823
- });
1821
+ }, Kt = (r) => async () => Gt[r];
1824
1822
  let Ge = 0;
1825
1823
  const qt = {
1826
1824
  beforeCreate() {
@@ -1934,32 +1932,32 @@ const Yt = /* @__PURE__ */ Fe(qt, [["render", Qt]]), Ke = {
1934
1932
  default: !1
1935
1933
  }
1936
1934
  },
1937
- emits: [de.ACTION, de.CHANGE],
1935
+ emits: [ce.ACTION, ce.CHANGE],
1938
1936
  setup(r, { emit: e }) {
1939
1937
  const { t } = Nt({ messages: Ke }), n = ge(null), i = [], s = () => {
1940
- }, o = ue(() => r.langLabel ?? r.lang.toUpperCase()), u = ue(() => r.variant === ve.INLINE), h = ue(() => ({
1938
+ }, o = ue(() => r.langLabel ?? r.lang.toUpperCase()), u = ue(() => r.variant === ve.INLINE), f = ue(() => ({
1941
1939
  "b-code-snippet--inline": u.value,
1942
1940
  "b-code-snippet--scrollable": !u.value
1943
1941
  })), x = ue(() => ({
1944
1942
  "b-code-snippet__code-area-content--editable": r.editable
1945
- })), { loadLang: w } = Kt(r.lang), C = Te(), A = Te(), B = new Ne(), N = new Ne(), P = new Ne(), M = ge(null), D = ge(0);
1943
+ })), w = Kt(r.lang), C = Te(), A = Te(), B = new Ne(), N = new Ne(), P = new Ne(), M = ge(null), D = ge(0);
1946
1944
  et(async () => {
1947
1945
  const g = await w();
1948
1946
  M.value = r.content;
1949
1947
  const b = ({ state: p }) => {
1950
1948
  M.value = p.doc.toString();
1951
- }, f = [
1949
+ }, h = [
1952
1950
  at(),
1953
- ut.of([ht]),
1951
+ ut.of([ft]),
1954
1952
  B.of(g()),
1955
1953
  N.of(Wt),
1956
1954
  P.of(je.readOnly.of(!r.editable)),
1957
1955
  Ve.updateListener.of((p) => b(p))
1958
1956
  ];
1959
- r.variant === "multiline" && f.push([ft(), dt()]);
1957
+ r.variant === "multiline" && h.push([ht(), ct()]);
1960
1958
  const y = je.create({
1961
1959
  doc: r.content,
1962
- extensions: [...f]
1960
+ extensions: [...h]
1963
1961
  });
1964
1962
  D.value = y.doc.length, A.value = new Ve({
1965
1963
  state: y,
@@ -1981,17 +1979,17 @@ const Yt = /* @__PURE__ */ Fe(qt, [["render", Qt]]), Ke = {
1981
1979
  }
1982
1980
  );
1983
1981
  const U = ue(() => t(r.actionableText)), S = () => {
1984
- e(de.ACTION, M.value);
1982
+ e(ce.ACTION, M.value);
1985
1983
  };
1986
1984
  nt(() => {
1987
- M.value !== null && e(de.CHANGE, M.value);
1985
+ M.value !== null && e(ce.CHANGE, M.value);
1988
1986
  });
1989
1987
  const J = ge(!1);
1990
1988
  return {
1991
1989
  // Values
1992
1990
  availableLanguages: i,
1993
1991
  codeAreaContentConditionalClasses: x,
1994
- conditionalClasses: h,
1992
+ conditionalClasses: f,
1995
1993
  container: C,
1996
1994
  currentContents: M,
1997
1995
  displayedLang: o,
@@ -2008,7 +2006,7 @@ const Yt = /* @__PURE__ */ Fe(qt, [["render", Qt]]), Ke = {
2008
2006
  };
2009
2007
  }
2010
2008
  });
2011
- const tn = (r) => (ot("data-v-fdff494b"), r = r(), lt(), r), nn = {
2009
+ const tn = (r) => (ot("data-v-887f22c0"), r = r(), lt(), r), nn = {
2012
2010
  key: 0,
2013
2011
  class: "b-code-snippet__action-bar"
2014
2012
  }, rn = { class: "b-code-snippet__action-bar--start" }, sn = { class: "b-code-snippet__action-bar--end" }, on = {
@@ -2016,7 +2014,7 @@ const tn = (r) => (ot("data-v-fdff494b"), r = r(), lt(), r), nn = {
2016
2014
  class: "b-code-snippet__code-area"
2017
2015
  }, ln = { key: 2 }, an = /* @__PURE__ */ tn(() => /* @__PURE__ */ ae("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
2018
2016
  function un(r, e, t, n, i, s) {
2019
- const o = K("bento-dropdown"), u = K("bento-typography"), h = K("bento-loading-indicator"), x = K("copy"), w = K("expand-icon"), C = K("bento-button"), A = K("bento-code-snippet"), B = K("base-modal");
2017
+ const o = K("bento-dropdown"), u = K("bento-typography"), f = K("bento-loading-indicator"), x = K("copy"), w = K("expand-icon"), C = K("bento-button"), A = K("bento-code-snippet"), B = K("base-modal");
2020
2018
  return z(), le("div", {
2021
2019
  class: $e(["b-code-snippet", r.conditionalClasses])
2022
2020
  }, [
@@ -2036,14 +2034,14 @@ function un(r, e, t, n, i, s) {
2036
2034
  el: "span",
2037
2035
  stronger: ""
2038
2036
  }, {
2039
- default: fe(() => [
2037
+ default: he(() => [
2040
2038
  He(Ae(r.displayedLang), 1)
2041
2039
  ]),
2042
2040
  _: 1
2043
2041
  })
2044
2042
  ]),
2045
2043
  ae("div", sn, [
2046
- r.loading ? (z(), oe(h, { key: 0 })) : q("", !0),
2044
+ r.loading ? (z(), oe(f, { key: 0 })) : q("", !0),
2047
2045
  r.currentContents !== null ? (z(), oe(x, {
2048
2046
  key: 1,
2049
2047
  class: "b-structured-list__icon",
@@ -2056,7 +2054,7 @@ function un(r, e, t, n, i, s) {
2056
2054
  "aria-label": r.t("expand"),
2057
2055
  onClick: e[1] || (e[1] = (N) => r.showModal = !0)
2058
2056
  }, {
2059
- iconLeft: fe(() => [
2057
+ iconLeft: he(() => [
2060
2058
  me(w)
2061
2059
  ]),
2062
2060
  _: 1
@@ -2068,12 +2066,12 @@ function un(r, e, t, n, i, s) {
2068
2066
  condensed: "",
2069
2067
  onClick: r.onActionClicked
2070
2068
  }, {
2071
- iconLeft: fe(() => [
2069
+ iconLeft: he(() => [
2072
2070
  me(u, {
2073
2071
  el: "span",
2074
2072
  class: "b-code-snippet__action-button"
2075
2073
  }, {
2076
- default: fe(() => [
2074
+ default: he(() => [
2077
2075
  He(Ae(r.runText), 1)
2078
2076
  ]),
2079
2077
  _: 1
@@ -2103,17 +2101,17 @@ function un(r, e, t, n, i, s) {
2103
2101
  size: "large",
2104
2102
  onCloseModal: e[2] || (e[2] = (N) => r.showModal = !1)
2105
2103
  }, {
2106
- content: fe(() => [
2104
+ content: he(() => [
2107
2105
  me(A, it(st({ ...r.$props, expandable: !1 })), null, 16)
2108
2106
  ]),
2109
2107
  _: 1
2110
2108
  }, 8, ["is-open"])) : q("", !0)
2111
2109
  ], 2);
2112
2110
  }
2113
- const In = /* @__PURE__ */ Fe(en, [["render", un], ["__scopeId", "data-v-fdff494b"]]);
2111
+ const In = /* @__PURE__ */ Fe(en, [["render", un], ["__scopeId", "data-v-887f22c0"]]);
2114
2112
  export {
2115
2113
  In as BentoCodeSnippet,
2116
- de as BentoCodeSnippetEvent,
2114
+ ce as BentoCodeSnippetEvent,
2117
2115
  re as BentoCodeSnippetSupportedLanguage,
2118
2116
  ve as BentoCodeSnippetVariant
2119
2117
  };