bitboss-ui 0.2.31 → 0.2.32

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 (326) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +6 -6
  2. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
  5. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
  6. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
  7. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
  8. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
  9. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
  10. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
  11. package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
  12. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
  13. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
  14. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
  15. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
  16. package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
  17. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
  18. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
  19. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
  20. package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
  21. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
  22. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  23. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
  24. package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
  25. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
  26. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
  27. package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
  28. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
  29. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
  30. package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
  31. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
  32. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
  33. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
  34. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
  35. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
  36. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
  37. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  38. package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
  39. package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
  40. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
  41. package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
  42. package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
  43. package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
  44. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  45. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
  46. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
  47. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
  48. package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
  49. package/dist/components/BbTable/BbTable.vue.d.ts +11 -11
  50. package/dist/components/BbTable/types.d.ts +107 -107
  51. package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
  52. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
  53. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
  54. package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
  55. package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
  56. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
  57. package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
  58. package/dist/composables/useConfirm.d.ts +10 -10
  59. package/dist/composables/useOptions.d.ts +2 -2
  60. package/dist/composables/useRoute.d.ts +2 -2
  61. package/dist/composables/useRouter.d.ts +1 -1
  62. package/dist/composables/useToast.d.ts +5 -5
  63. package/dist/composables/useWizard.d.ts +1 -1
  64. package/dist/index.d.ts +126 -126
  65. package/dist/index101.js +32 -37
  66. package/dist/index101.js.map +1 -1
  67. package/dist/index103.js +19 -19
  68. package/dist/index103.js.map +1 -1
  69. package/dist/index105.js +16 -16
  70. package/dist/index105.js.map +1 -1
  71. package/dist/index107.js +15 -15
  72. package/dist/index107.js.map +1 -1
  73. package/dist/index109.js.map +1 -1
  74. package/dist/index11.js +7 -7
  75. package/dist/index11.js.map +1 -1
  76. package/dist/index111.js +16 -16
  77. package/dist/index111.js.map +1 -1
  78. package/dist/index113.js +3 -3
  79. package/dist/index113.js.map +1 -1
  80. package/dist/index115.js +6 -6
  81. package/dist/index115.js.map +1 -1
  82. package/dist/index116.js +1 -1
  83. package/dist/index116.js.map +1 -1
  84. package/dist/index117.js +1 -1
  85. package/dist/index117.js.map +1 -1
  86. package/dist/index118.js +4 -4
  87. package/dist/index118.js.map +1 -1
  88. package/dist/index119.js +5 -5
  89. package/dist/index119.js.map +1 -1
  90. package/dist/index120.js.map +1 -1
  91. package/dist/index121.js.map +1 -1
  92. package/dist/index122.js.map +1 -1
  93. package/dist/index124.js.map +1 -1
  94. package/dist/index125.js +4 -4
  95. package/dist/index125.js.map +1 -1
  96. package/dist/index126.js +1 -1
  97. package/dist/index126.js.map +1 -1
  98. package/dist/index127.js +1 -1
  99. package/dist/index128.js +4 -1
  100. package/dist/index128.js.map +1 -1
  101. package/dist/index129.js.map +1 -1
  102. package/dist/index13.js +11 -11
  103. package/dist/index13.js.map +1 -1
  104. package/dist/index130.js.map +1 -1
  105. package/dist/index131.js +2 -2
  106. package/dist/index15.js +226 -224
  107. package/dist/index15.js.map +1 -1
  108. package/dist/index17.js +61 -62
  109. package/dist/index17.js.map +1 -1
  110. package/dist/index19.js +22 -22
  111. package/dist/index19.js.map +1 -1
  112. package/dist/index196.js.map +1 -1
  113. package/dist/index197.js +2 -5
  114. package/dist/index197.js.map +1 -1
  115. package/dist/index198.js +4 -16
  116. package/dist/index198.js.map +1 -1
  117. package/dist/index199.js +293 -14
  118. package/dist/index199.js.map +1 -1
  119. package/dist/index2.js +23 -23
  120. package/dist/index2.js.map +1 -1
  121. package/dist/index200.js +15 -18
  122. package/dist/index200.js.map +1 -1
  123. package/dist/index201.js +13 -17
  124. package/dist/index201.js.map +1 -1
  125. package/dist/index202.js +18 -28
  126. package/dist/index202.js.map +1 -1
  127. package/dist/index203.js +20 -8
  128. package/dist/index203.js.map +1 -1
  129. package/dist/index204.js +29 -2
  130. package/dist/index204.js.map +1 -1
  131. package/dist/index205.js +8 -378
  132. package/dist/index205.js.map +1 -1
  133. package/dist/index206.js +2 -134
  134. package/dist/index206.js.map +1 -1
  135. package/dist/index207.js +235 -2
  136. package/dist/index207.js.map +1 -1
  137. package/dist/index208.js +3 -174
  138. package/dist/index208.js.map +1 -1
  139. package/dist/index209.js +35 -23
  140. package/dist/index209.js.map +1 -1
  141. package/dist/index21.js +4 -4
  142. package/dist/index21.js.map +1 -1
  143. package/dist/index210.js +6 -373
  144. package/dist/index210.js.map +1 -1
  145. package/dist/index211.js +10 -2
  146. package/dist/index211.js.map +1 -1
  147. package/dist/index212.js +378 -4
  148. package/dist/index212.js.map +1 -1
  149. package/dist/index213.js +134 -3
  150. package/dist/index213.js.map +1 -1
  151. package/dist/index214.js +2 -3
  152. package/dist/index214.js.map +1 -1
  153. package/dist/index215.js +172 -8
  154. package/dist/index215.js.map +1 -1
  155. package/dist/index216.js +23 -3
  156. package/dist/index216.js.map +1 -1
  157. package/dist/index217.js +369 -31
  158. package/dist/index217.js.map +1 -1
  159. package/dist/index218.js +3 -6
  160. package/dist/index218.js.map +1 -1
  161. package/dist/index219.js +3 -2
  162. package/dist/index219.js.map +1 -1
  163. package/dist/index220.js.map +1 -1
  164. package/dist/index221.js +26 -233
  165. package/dist/index221.js.map +1 -1
  166. package/dist/index222.js +16 -8
  167. package/dist/index222.js.map +1 -1
  168. package/dist/index223.js +2 -121
  169. package/dist/index223.js.map +1 -1
  170. package/dist/index224.js +8 -27
  171. package/dist/index224.js.map +1 -1
  172. package/dist/index225.js +120 -12
  173. package/dist/index225.js.map +1 -1
  174. package/dist/index226.js +1 -1
  175. package/dist/index227.js +4 -295
  176. package/dist/index227.js.map +1 -1
  177. package/dist/index228.js +2 -6
  178. package/dist/index228.js.map +1 -1
  179. package/dist/index229.js +6 -2
  180. package/dist/index229.js.map +1 -1
  181. package/dist/index23.js +14 -16
  182. package/dist/index23.js.map +1 -1
  183. package/dist/index230.js +2 -2
  184. package/dist/index235.js +2 -2
  185. package/dist/index236.js +428 -110
  186. package/dist/index236.js.map +1 -1
  187. package/dist/index237.js +88 -105
  188. package/dist/index237.js.map +1 -1
  189. package/dist/index238.js +199 -3
  190. package/dist/index238.js.map +1 -1
  191. package/dist/index239.js +1 -1
  192. package/dist/index240.js +1 -1
  193. package/dist/index241.js +2 -435
  194. package/dist/index241.js.map +1 -1
  195. package/dist/index242.js +115 -87
  196. package/dist/index242.js.map +1 -1
  197. package/dist/index243.js +104 -198
  198. package/dist/index243.js.map +1 -1
  199. package/dist/index244.js +160 -2
  200. package/dist/index244.js.map +1 -1
  201. package/dist/index245.js +2 -2
  202. package/dist/index245.js.map +1 -1
  203. package/dist/index246.js +9 -9
  204. package/dist/index246.js.map +1 -1
  205. package/dist/index247.js +5 -162
  206. package/dist/index247.js.map +1 -1
  207. package/dist/index248.js +1 -1
  208. package/dist/index249.js +37 -14
  209. package/dist/index249.js.map +1 -1
  210. package/dist/index25.js +4 -4
  211. package/dist/index25.js.map +1 -1
  212. package/dist/index250.js +2 -38
  213. package/dist/index250.js.map +1 -1
  214. package/dist/index251.js +2 -2
  215. package/dist/index251.js.map +1 -1
  216. package/dist/index252.js +15 -2
  217. package/dist/index252.js.map +1 -1
  218. package/dist/index253.js +3 -2
  219. package/dist/index253.js.map +1 -1
  220. package/dist/index255.js +2 -3
  221. package/dist/index255.js.map +1 -1
  222. package/dist/index27.js +7 -7
  223. package/dist/index27.js.map +1 -1
  224. package/dist/index29.js +15 -15
  225. package/dist/index29.js.map +1 -1
  226. package/dist/index3.js +2 -1
  227. package/dist/index3.js.map +1 -1
  228. package/dist/index31.js +28 -28
  229. package/dist/index31.js.map +1 -1
  230. package/dist/index33.js +10 -11
  231. package/dist/index33.js.map +1 -1
  232. package/dist/index35.js +2 -2
  233. package/dist/index35.js.map +1 -1
  234. package/dist/index37.js +12 -12
  235. package/dist/index37.js.map +1 -1
  236. package/dist/index39.js +5 -7
  237. package/dist/index39.js.map +1 -1
  238. package/dist/index4.js.map +1 -1
  239. package/dist/index41.js +5 -5
  240. package/dist/index41.js.map +1 -1
  241. package/dist/index43.js +19 -16
  242. package/dist/index43.js.map +1 -1
  243. package/dist/index45.js +9 -9
  244. package/dist/index45.js.map +1 -1
  245. package/dist/index47.js +4 -4
  246. package/dist/index47.js.map +1 -1
  247. package/dist/index49.js +1 -1
  248. package/dist/index49.js.map +1 -1
  249. package/dist/index5.js +7 -6
  250. package/dist/index5.js.map +1 -1
  251. package/dist/index51.js +6 -6
  252. package/dist/index51.js.map +1 -1
  253. package/dist/index53.js.map +1 -1
  254. package/dist/index55.js +20 -20
  255. package/dist/index55.js.map +1 -1
  256. package/dist/index57.js +35 -35
  257. package/dist/index57.js.map +1 -1
  258. package/dist/index59.js +8 -8
  259. package/dist/index59.js.map +1 -1
  260. package/dist/index6.js +38 -38
  261. package/dist/index6.js.map +1 -1
  262. package/dist/index61.js +27 -27
  263. package/dist/index61.js.map +1 -1
  264. package/dist/index63.js +4 -4
  265. package/dist/index63.js.map +1 -1
  266. package/dist/index65.js +20 -20
  267. package/dist/index65.js.map +1 -1
  268. package/dist/index67.js +26 -26
  269. package/dist/index67.js.map +1 -1
  270. package/dist/index69.js +21 -19
  271. package/dist/index69.js.map +1 -1
  272. package/dist/index7.js.map +1 -1
  273. package/dist/index71.js +2 -2
  274. package/dist/index71.js.map +1 -1
  275. package/dist/index72.js +3 -3
  276. package/dist/index72.js.map +1 -1
  277. package/dist/index73.js +14 -14
  278. package/dist/index73.js.map +1 -1
  279. package/dist/index75.js +18 -18
  280. package/dist/index75.js.map +1 -1
  281. package/dist/index77.js +11 -11
  282. package/dist/index77.js.map +1 -1
  283. package/dist/index79.js +15 -15
  284. package/dist/index79.js.map +1 -1
  285. package/dist/index8.js +10 -7
  286. package/dist/index8.js.map +1 -1
  287. package/dist/index81.js.map +1 -1
  288. package/dist/index83.js +20 -20
  289. package/dist/index83.js.map +1 -1
  290. package/dist/index85.js +34 -34
  291. package/dist/index85.js.map +1 -1
  292. package/dist/index87.js +18 -18
  293. package/dist/index87.js.map +1 -1
  294. package/dist/index89.js.map +1 -1
  295. package/dist/index9.js.map +1 -1
  296. package/dist/index91.js +53 -53
  297. package/dist/index91.js.map +1 -1
  298. package/dist/index93.js +16 -16
  299. package/dist/index93.js.map +1 -1
  300. package/dist/index95.js +21 -21
  301. package/dist/index95.js.map +1 -1
  302. package/dist/index97.js +37 -37
  303. package/dist/index97.js.map +1 -1
  304. package/dist/index99.js +18 -18
  305. package/dist/index99.js.map +1 -1
  306. package/dist/style.css +1 -1
  307. package/dist/types/CommonProps.d.ts +18 -18
  308. package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
  309. package/dist/types/ExtractGenericFromRef.d.ts +1 -1
  310. package/dist/types/VoidHtmlElements.d.ts +1 -1
  311. package/dist/utilities/functions/cloneDeep.d.ts +1 -1
  312. package/dist/utilities/functions/debounce.d.ts +1 -1
  313. package/dist/utilities/functions/flow.d.ts +1 -1
  314. package/dist/utilities/functions/get.d.ts +1 -1
  315. package/dist/utilities/functions/isNotNil.d.ts +1 -1
  316. package/dist/utilities/functions/mapValues.d.ts +1 -1
  317. package/dist/utilities/functions/merge.d.ts +1 -1
  318. package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
  319. package/dist/utilities/functions/overEvery.d.ts +1 -1
  320. package/dist/utilities/functions/percentage.d.ts +4 -4
  321. package/dist/utilities/functions/pick.d.ts +1 -1
  322. package/dist/utilities/functions/pickBy.d.ts +1 -1
  323. package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
  324. package/package.json +93 -77
  325. package/dist/index256.js +0 -5
  326. package/dist/index256.js.map +0 -1
package/dist/index97.js CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, openBlock as u, createBlock as c, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as l, createVNode as h, mergeProps as b } from "vue";
1
+ import { defineComponent as m, openBlock as u, createBlock as c, withCtx as a, renderSlot as r, normalizeProps as l, guardReactiveProps as i, createVNode as h, mergeProps as b } from "vue";
2
2
  import g from "./index21.js";
3
3
  import "./index22.js";
4
- import T from "./index37.js";
4
+ import f from "./index37.js";
5
5
  import "./index38.js";
6
- const w = /* @__PURE__ */ m({
6
+ const D = /* @__PURE__ */ m({
7
7
  __name: "BbSwitchGroup",
8
8
  props: {
9
9
  autofocus: {},
@@ -32,8 +32,8 @@ const w = /* @__PURE__ */ m({
32
32
  legend: {}
33
33
  },
34
34
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
35
- setup(f, { emit: d }) {
36
- const n = d, t = {
35
+ setup(y, { emit: s }) {
36
+ const n = s, t = {
37
37
  onBlur: (e) => n("blur", e),
38
38
  onChange: (e) => n("change", e),
39
39
  onClick: (e) => n("click", e),
@@ -45,76 +45,76 @@ const w = /* @__PURE__ */ m({
45
45
  onMouseup: (e) => n("mouseup", e),
46
46
  "onUpdate:modelValue": (e) => n("update:modelValue", e)
47
47
  };
48
- return (e, y) => (u(), c(g, {
48
+ return (e, v) => (u(), c(g, {
49
+ id: e.id,
49
50
  class: "bb-switch-group",
50
51
  errors: e.errors,
51
- hasErrors: e.hasErrors,
52
- hideLabel: e.hideLegend,
53
- id: e.id,
52
+ "has-errors": e.hasErrors,
53
+ "hide-label": e.hideLegend,
54
54
  label: e.legend,
55
- labelTag: "legend",
55
+ "label-tag": "legend",
56
56
  name: e.name,
57
57
  reverse: e.reverse,
58
58
  tag: "fieldset"
59
59
  }, {
60
- label: a((s) => [
61
- r(e.$slots, "legend", i(l(s)))
60
+ label: a((d) => [
61
+ r(e.$slots, "legend", l(i(d)))
62
62
  ]),
63
- input: a(({ id: s, name: p }) => [
64
- h(T, b({
63
+ input: a(({ id: d, name: p }) => [
64
+ h(f, b({
65
+ id: d,
65
66
  autofocus: e.autofocus,
66
67
  color: e.color,
67
68
  dependencies: e.dependencies,
68
- depsDebounceTime: e.depsDebounceTime,
69
+ "deps-debounce-time": e.depsDebounceTime,
69
70
  direction: e.inputDirection,
70
71
  disabled: e.disabled,
71
- enforceCoherence: e.enforceCoherence,
72
- hasErrors: e.hasErrors,
73
- hideLabel: e.hideLabel,
74
- id: s,
72
+ "enforce-coherence": e.enforceCoherence,
73
+ "has-errors": e.hasErrors,
74
+ "hide-label": e.hideLabel,
75
+ "item-text": e.itemText,
76
+ "item-value": e.itemValue,
75
77
  items: e.items,
76
- itemText: e.itemText,
77
- itemValue: e.itemValue,
78
- loadingText: e.loadingText,
79
- matchStrategy: e.matchStrategy,
80
- modelValue: e.modelValue,
81
- modelValueDebounceTime: e.modelValueDebounceTime,
78
+ "loading-text": e.loadingText,
79
+ "match-strategy": e.matchStrategy,
80
+ "model-value": e.modelValue,
81
+ "model-value-debounce-time": e.modelValueDebounceTime,
82
82
  name: p,
83
- noDataText: e.noDataText,
83
+ "no-data-text": e.noDataText,
84
84
  readonly: e.readonly
85
85
  }, t), {
86
86
  prepend: a((o) => [
87
- r(e.$slots, "prepend", i(l(o)))
87
+ r(e.$slots, "prepend", l(i(o)))
88
88
  ]),
89
89
  loading: a((o) => [
90
- r(e.$slots, "loading", i(l(o)))
90
+ r(e.$slots, "loading", l(i(o)))
91
91
  ]),
92
92
  "no-data": a((o) => [
93
- r(e.$slots, "no-data", i(l(o)))
93
+ r(e.$slots, "no-data", l(i(o)))
94
94
  ]),
95
95
  "option:prepend": a((o) => [
96
- r(e.$slots, "option:prepend", i(l(o)))
96
+ r(e.$slots, "option:prepend", l(i(o)))
97
97
  ]),
98
98
  icon: a((o) => [
99
- r(e.$slots, "icon", i(l(o)))
99
+ r(e.$slots, "icon", l(i(o)))
100
100
  ]),
101
101
  label: a((o) => [
102
- r(e.$slots, "label", i(l(o)))
102
+ r(e.$slots, "label", l(i(o)))
103
103
  ]),
104
104
  "option:append": a((o) => [
105
- r(e.$slots, "option:append", i(l(o)))
105
+ r(e.$slots, "option:append", l(i(o)))
106
106
  ]),
107
107
  append: a((o) => [
108
- r(e.$slots, "append", i(l(o)))
108
+ r(e.$slots, "append", l(i(o)))
109
109
  ]),
110
110
  _: 2
111
- }, 1040, ["autofocus", "color", "dependencies", "depsDebounceTime", "direction", "disabled", "enforceCoherence", "hasErrors", "hideLabel", "id", "items", "itemText", "itemValue", "loadingText", "matchStrategy", "modelValue", "modelValueDebounceTime", "name", "noDataText", "readonly"])
111
+ }, 1040, ["id", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "match-strategy", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
112
112
  ]),
113
113
  _: 3
114
- }, 8, ["errors", "hasErrors", "hideLabel", "id", "label", "name", "reverse"]));
114
+ }, 8, ["id", "errors", "has-errors", "hide-label", "label", "name", "reverse"]));
115
115
  }
116
116
  });
117
117
  export {
118
- w as default
118
+ D as default
119
119
  };
120
120
  //# sourceMappingURL=index97.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index97.js","sources":["../src/components/BbSwitchGroup/BbSwitchGroup.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseSwitchGroup from \"../BaseSwitchGroup/BaseSwitchGroup.vue\";\nimport type { SlotAttributes } from \"../BaseCheckbox/BaseCheckbox.vue\";\nimport type { BbCheckboxGroupEvents, BbCheckboxGroupProps } from \"../BbCheckboxGroup/BbCheckboxGroup.vue\";\n\nexport type BbSwitchGroupProps<T> = BbCheckboxGroupProps<T>;\n\nexport type BbSwitchGroupEvents = BbCheckboxGroupEvents;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSwitchGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n items: { type: [Array, Function] },\n itemText: {},\n itemValue: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: {},\n errors: {},\n hideLabel: { type: Boolean },\n reverse: { type: Boolean },\n hideLegend: { type: Boolean },\n inputDirection: {},\n legend: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInactive: () => emit(\"inactive\"),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (event: any) => emit(\"update:modelValue\", event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-switch-group\",\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLegend,\n id: _ctx.id,\n label: _ctx.legend,\n labelTag: 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseSwitchGroup, _mergeProps({\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n depsDebounceTime: _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n enforceCoherence: _ctx.enforceCoherence,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: id,\n items: (_ctx.items as any),\n itemText: (_ctx.itemText as any),\n itemValue: (_ctx.itemValue as any),\n loadingText: _ctx.loadingText,\n matchStrategy: _ctx.matchStrategy,\n modelValue: _ctx.modelValue,\n modelValueDebounceTime: _ctx.modelValueDebounceTime,\n name: name,\n noDataText: _ctx.noDataText,\n readonly: _ctx.readonly\n }, eventListeners), {\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n loading: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"loading\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"no-data\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"no-data\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"autofocus\", \"color\", \"dependencies\", \"depsDebounceTime\", \"direction\", \"disabled\", \"enforceCoherence\", \"hasErrors\", \"hideLabel\", \"id\", \"items\", \"itemText\", \"itemValue\", \"loadingText\", \"matchStrategy\", \"modelValue\", \"modelValueDebounceTime\", \"name\", \"noDataText\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseSwitchGroup","_mergeProps"],"mappings":";;;;;AAaA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,WAAW,EAAE,M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witchGroup.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseSwitchGroup from '../BaseSwitchGroup/BaseSwitchGroup.vue';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\nimport type {\n\tBbCheckboxGroupEvents,\n\tBbCheckboxGroupProps,\n} from '../BbCheckboxGroup/BbCheckboxGroup.vue';\n\nexport type BbSwitchGroupProps<T> = BbCheckboxGroupProps<T>;\n\nexport type BbSwitchGroupEvents = BbCheckboxGroupEvents;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSwitchGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n items: { type: [Array, Function] },\n itemText: {},\n itemValue: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: {},\n errors: {},\n hideLabel: { type: Boolean },\n reverse: { type: Boolean },\n hideLegend: { type: Boolean },\n inputDirection: {},\n legend: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInactive: () => emit('inactive'),\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t'onUpdate:modelValue': (event: any) => emit('update:modelValue', event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-switch-group\",\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLegend,\n label: _ctx.legend,\n \"label-tag\": 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseSwitchGroup, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n \"deps-debounce-time\": _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n \"enforce-coherence\": _ctx.enforceCoherence,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n \"item-text\": _ctx.itemText as any,\n \"item-value\": _ctx.itemValue as any,\n items: _ctx.items as any,\n \"loading-text\": _ctx.loadingText,\n \"match-strategy\": _ctx.matchStrategy,\n \"model-value\": _ctx.modelValue,\n \"model-value-debounce-time\": _ctx.modelValueDebounceTime,\n name: name,\n \"no-data-text\": _ctx.noDataText,\n readonly: _ctx.readonly\n }, eventListeners), {\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n loading: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"loading\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"no-data\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"no-data\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"color\", \"dependencies\", \"deps-debounce-time\", \"direction\", \"disabled\", \"enforce-coherence\", \"has-errors\", \"hide-label\", \"item-text\", \"item-value\", \"items\", \"loading-text\", \"match-strategy\", \"model-value\", \"model-value-debounce-time\", \"name\", \"no-data-text\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"id\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseSwitchGroup","_mergeProps"],"mappings":";;;;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,EAAE,MAAM,CAAC,OAAO,QAAQ,EAAE;AAAA,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S;AAAA,YAC5BC,EAAYP,EAAK,QAAQ,WAAWQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,kBAAkBD,EAAS,CAACC,MAAS;AAAA,YACnCC,EAAYP,EAAK,QAAQ,kBAAkBQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CACtF;AAAA,UACD,MAAMD,EAAS,CAACC,MAAS;AAAA,YACvBC,EAAYP,EAAK,QAAQ,QAAQQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC5E;AAAA,UACD,OAAOD,EAAS,CAACC,MAAS;AAAA,YACxBC,EAAYP,EAAK,QAAQ,SAASQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC7E;AAAA,UACD,iBAAiBD,EAAS,CAACC,MAAS;AAAA,YAClCC,EAAYP,EAAK,QAAQ,iBAAiBQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CACrF;AAAA,UACD,QAAQD,EAAS,CAACC,MAAS;AAAA,YACzBC,EAAYP,EAAK,QAAQ,UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,GAAG;AAAA,QACL,GAAG,MAAM,CAAC,MAAM,aAAa,SAAS,gBAAgB,sBAAsB,aAAa,YAAY,qBAAqB,cAAc,cAAc,aAAa,cAAc,SAAS,gBAAgB,kBAAkB,eAAe,6BAA6B,QAAQ,gBAAgB,UAAU,CAAC;AAAA,MAAA,CAC5S;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,MAAM,UAAU,cAAc,cAAc,SAAS,QAAQ,SAAS,CAAC;AAAA,EAEhF;AAEA,CAAC;"}
package/dist/index99.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, getCurrentInstance as z, ref as K, computed as v, watch as R, openBlock as u, createElementBlock as d, normalizeClass as h, unref as H, createElementVNode as p, Fragment as g, renderList as B, createVNode as J, withCtx as O, renderSlot as _, toDisplayString as j, createCommentVNode as G } from "vue";
1
+ import { defineComponent as D, getCurrentInstance as z, ref as K, computed as v, watch as R, openBlock as u, createElementBlock as d, unref as H, normalizeClass as h, createElementVNode as p, Fragment as g, renderList as B, createVNode as J, withCtx as O, renderSlot as _, toDisplayString as j, createCommentVNode as G } from "vue";
2
2
  import { useId as M } from "./index7.js";
3
3
  import { useRoute as Q } from "./index129.js";
4
4
  import { useRouter as W } from "./index130.js";
@@ -6,8 +6,8 @@ import { wait as X } from "./index122.js";
6
6
  import Y from "./index9.js";
7
7
  import "./index10.js";
8
8
  const Z = ["id"], ee = {
9
- role: "tablist",
10
- class: "bb-tab__label-container"
9
+ class: "bb-tab__label-container",
10
+ role: "tablist"
11
11
  }, ae = { class: "bb-tab__label" }, le = { class: "bb-tab__panes-container" }, te = ["id", "aria-labelledby"], ce = /* @__PURE__ */ D({
12
12
  __name: "BbTab",
13
13
  props: {
@@ -120,22 +120,22 @@ const Z = ["id"], ee = {
120
120
  currentIndex: i,
121
121
  goTo: r
122
122
  }), (e, s) => (u(), d("div", {
123
+ id: H(w),
123
124
  class: h(["bb-tab", {
124
125
  [`bb-tab--${e.direction}`]: !0,
125
126
  "bb-tab--disabled": !0
126
- }]),
127
- id: H(w)
127
+ }])
128
128
  }, [
129
129
  p("ul", ee, [
130
130
  (u(!0), d(g, null, B(e.items, (a) => (u(), d("li", {
131
- role: "presentation",
132
- key: a.key
131
+ key: a.key,
132
+ role: "presentation"
133
133
  }, [
134
134
  J(Y, {
135
- class: h(["bb-tab__btn", { "bb-tab__btn--active": t.value === a.key }]),
135
+ id: `${y}_tab_${a.key}`,
136
136
  "aria-selected": t.value === a.key,
137
+ class: h(["bb-tab__btn", { "bb-tab__btn--active": t.value === a.key }]),
137
138
  disabled: a.disabled || e.disabled,
138
- id: `${y}_tab_${a.key}`,
139
139
  role: "tab",
140
140
  tabindex: t.value === a.key ? 0 : -1,
141
141
  onClick: (n) => c(a.key),
@@ -146,30 +146,30 @@ const Z = ["id"], ee = {
146
146
  current: t.value,
147
147
  currentIndex: i.value,
148
148
  disabled: !!(a.disabled || e.disabled),
149
+ goTo: r,
149
150
  isFirst: b.value,
150
151
  isLast: f.value,
151
152
  selected: t.value === a.key,
152
153
  text: a.label,
153
- value: a.key,
154
- goTo: r
154
+ value: a.key
155
155
  }, () => [
156
156
  _(e.$slots, "label", {
157
157
  current: t.value,
158
158
  currentIndex: i.value,
159
159
  disabled: !!(a.disabled || e.disabled),
160
+ goTo: r,
160
161
  isFirst: b.value,
161
162
  isLast: f.value,
162
163
  selected: t.value === a.key,
163
164
  text: a.label,
164
- value: a.key,
165
- goTo: r
165
+ value: a.key
166
166
  }, () => [
167
167
  p("span", ae, j(a.label), 1)
168
168
  ])
169
169
  ])
170
170
  ]),
171
171
  _: 2
172
- }, 1032, ["aria-selected", "class", "disabled", "id", "tabindex", "onClick"])
172
+ }, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
173
173
  ]))), 128))
174
174
  ]),
175
175
  p("div", le, [
@@ -178,24 +178,24 @@ const Z = ["id"], ee = {
178
178
  }, [
179
179
  t.value === a.key || e.eager || a.eager ? (u(), d("section", {
180
180
  key: 0,
181
+ id: `${y}_tabpanel_${a.key}`,
182
+ "aria-labelledby": `${y}_tab_${a.key}`,
181
183
  class: h(["bb-tab__pane", {
182
184
  "bb-tab__pane--shown": t.value === a.key
183
185
  }]),
184
186
  role: "tabpanel",
185
- id: `${y}_tabpanel_${a.key}`,
186
- "aria-labelledby": `${y}_tab_${a.key}`,
187
187
  tabindex: "0"
188
188
  }, [
189
189
  _(e.$slots, a.key, {
190
190
  current: t.value,
191
191
  currentIndex: i.value,
192
192
  disabled: !!(a.disabled || e.disabled),
193
+ goTo: r,
193
194
  isFirst: b.value,
194
195
  isLast: f.value,
195
196
  selected: t.value === a.key,
196
197
  text: a.label,
197
- value: a.key,
198
- goTo: r
198
+ value: a.key
199
199
  })
200
200
  ], 10, te)) : G("", !0)
201
201
  ], 64))), 128))
@@ -1 +1 @@
1
- {"version":3,"file":"index99.js","sources":["../src/components/BbTab/BbTab.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = [\"id\"]\nconst _hoisted_2 = {\n role: \"tablist\",\n class: \"bb-tab__label-container\"\n}\nconst _hoisted_3 = { class: \"bb-tab__label\" }\nconst _hoisted_4 = { class: \"bb-tab__panes-container\" }\nconst _hoisted_5 = [\"id\", \"aria-labelledby\"]\n\nimport { ref, watch, getCurrentInstance, computed } from \"vue\";\nimport { useId } from \"@/composables/useId\";\nimport { useRoute } from \"@/composables/useRoute\";\nimport { useRouter } from \"@/composables/useRouter\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport type { CommonProps } from \"@/types/CommonProps\";\n\nexport type BbTabItem = Pick<CommonProps, \"disabled\"> & {\n /**\n * Used to render a tab even when not visible.\n * It's useful if you want the content of a tab in the DOM\n * immediately rendered\n * even when not visible for SEO purposes.\n */\n eager?: boolean;\n /**\n * String that identifies the tab.\n */\n key: string;\n /**\n * Label to use as the tab text.\n */\n label?: string;\n};\n\nexport type BbTabProps = Pick<CommonProps, \"disabled\" | \"eager\" | \"id\"> & {\n /**\n * Direction of the tabs component\n */\n direction?: \"horizontal\" | \"vertical\";\n /**\n * Array of items that define the tabs in the component.\n */\n items: BbTabItem[];\n /**\n * The current tab. Used by v-model.\n */\n modelValue?: null | BbTabItem[\"key\"];\n /**\n * Synchronizes the current tab with the url.\n */\n navigation?: boolean;\n /**\n * Defines the query key to reference for maintaining navigation\n */\n querykey?: string;\n};\n\nexport type BbTabEvents = {\n (e: \"update:modelValue\", value: (typeof props.items)[number][\"key\"]): void;\n};\ntype BbStepSlots = {\n label?: (props: {\n current: string | null;\n currentIndex: number;\n disabled: boolean;\n isFirst: boolean;\n isLast: boolean;\n selected: boolean;\n text: BbTabItem[\"label\"];\n value: string;\n goTo: typeof goTo\n }) => any;\n} & {\n [key: string]: (props: {\n current: string | null;\n currentIndex: number;\n disabled: boolean;\n isFirst: boolean;\n isLast: boolean;\n selected: boolean;\n text: BbTabItem[\"label\"];\n value: string;\n goTo: typeof goTo\n }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTab',\n props: {\n disabled: { type: Boolean },\n eager: { type: Boolean },\n id: {},\n direction: { default: \"horizontal\" },\n items: {},\n modelValue: {},\n navigation: { type: Boolean },\n querykey: { default: \"tab\" }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst id = props.id ?? useId().id.value;\nconst instanceid = `bb-tab_${id}`;\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\nconst selectedTab = ref<BbTabItem[\"key\"] | null>(null);\n\nconst currentTabIndex = computed(() =>\n props.items.findIndex((el) => el.key === selectedTab.value)\n);\nconst isFirst = computed(() => currentTabIndex.value === 0);\nconst isLast = computed(() => currentTabIndex.value === props.items.length - 1);\n\nprops.items.forEach((item) => {\n if (!item.key) {\n console.error(`A tab item has no key`, item);\n throw new Error(\"A tab item has no key \" + JSON.stringify(item));\n }\n});\n\n/* \nThis section retrieves the current tab that should be selected\n*/\n// Retrieve tab from url on load for vue apps\nif (props.navigation && route.value?.query?.[props.querykey]) {\n selectedTab.value = route.value?.query?.[props.querykey] as string;\n // Retrieve tab from url on load for inertia app\n} else if (\n props.navigation &&\n isInertia &&\n globalThis?.location?.href &&\n new URL(globalThis.location.href).searchParams.get(props.querykey)\n) {\n selectedTab.value = new URL(globalThis.location.href).searchParams.get(\n props.querykey\n ) as string;\n // Else whatever tab is passed first\n} else if (props.modelValue) {\n selectedTab.value = props.modelValue;\n // Else whatever tab is passed first\n} else if (props.items[0]) {\n const firstSelectableTab = props.items.find((item) => !item.disabled);\n if (!firstSelectableTab) {\n throw new Error(\n \"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected.\"\n );\n }\n const key = firstSelectableTab.key;\n selectedTab.value = key;\n}\n/* \nOnce the current tab is found update external variables\n*/\n\nconst onTabSelected = async (tab: BbTabItem[\"key\"], replace = false) => {\n /* For Vue or Nuxt context */\n if (\n props.navigation &&\n route.value &&\n route.value?.query?.[props.querykey] !== tab\n ) {\n router?.push({\n ...route,\n query: { ...route.value?.query, [props.querykey]: tab },\n replace\n });\n /* Inertia context */\n } else if (\n props.navigation &&\n isInertia &&\n globalThis?.location?.href &&\n new URL(globalThis.location.href).searchParams.get(props.querykey) !== tab\n ) {\n const url = new URL(globalThis.location.href);\n url.searchParams.set(props.querykey, tab);\n wait(0).then(() => {\n if(replace) {\n history.replaceState({}, \"\", url.toString());\n } else {\n history.pushState({}, \"\", url.toString());\n }\n });\n }\n if (props.modelValue !== tab) {\n emit(\"update:modelValue\", tab);\n }\n selectedTab.value = tab;\n};\n\nif (selectedTab.value) {\n onTabSelected(selectedTab.value, true);\n}\n\nconst goTo = (target: \"first\" | \"previous\" | \"next\" | \"last\") => {\n var nextTabIndex: number | null = null;\n switch (target) {\n case \"first\":\n nextTabIndex = 0;\n break;\n case \"previous\":\n nextTabIndex =\n (currentTabIndex.value + props.items.length - 1) % props.items.length;\n break;\n case \"next\":\n nextTabIndex = (currentTabIndex.value + 1) % props.items.length;\n break;\n case \"last\":\n nextTabIndex = props.items.length - 1;\n break;\n default:\n break;\n }\n if (nextTabIndex === null) {\n throw new Error(\"Could not navigate to next tab\");\n }\n if (props.items[nextTabIndex].disabled) return;\n const targetKey = props.items[nextTabIndex].key;\n const button: HTMLButtonElement | null = document.querySelector(\n `#${instanceid}_tab_${targetKey}`\n );\n button?.focus();\n onTabSelected(targetKey);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n if (props.disabled) return;\n if (event.key === \"ArrowRight\") {\n goTo(\"next\");\n } else if (event.key === \"ArrowLeft\") {\n goTo(\"previous\");\n } else if (event.key === \"Home\") {\n event.preventDefault();\n goTo(\"first\");\n } else if (event.key === \"End\") {\n event.preventDefault();\n goTo(\"last\");\n } else {\n return;\n }\n};\n\nwatch(\n () => props.modelValue,\n (value) => {\n if (value) {\n onTabSelected(value);\n }\n }\n);\n\nwatch(\n () => route.value?.query?.[props.querykey],\n (value) => {\n if (value && typeof value === \"string\") {\n onTabSelected(value);\n }\n }\n);\n\n__expose({\n isFirst,\n isLast,\n current: selectedTab,\n currentIndex: currentTabIndex,\n goTo,\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"bb-tab\", {\n [`bb-tab--${_ctx.direction}`]: true,\n 'bb-tab--disabled': true,\n }]),\n id: _unref(id)\n }, [\n _createElementVNode(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.items, (tab) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n role: \"presentation\",\n key: tab.key\n }, [\n _createVNode(BaseButton, {\n class: _normalizeClass([\"bb-tab__btn\", { 'bb-tab__btn--active': selectedTab.value === tab.key }]),\n \"aria-selected\": selectedTab.value === tab.key,\n disabled: tab.disabled || _ctx.disabled,\n id: `${instanceid}_tab_${tab.key}`,\n role: 'tab',\n tabindex: selectedTab.value === tab.key ? 0 : -1,\n onClick: ($event: any) => (onTabSelected(tab.key)),\n onKeydown: onKeydown\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, `label-${tab.key}`, {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key,\n goTo: goTo\n }, () => [\n _renderSlot(_ctx.$slots, \"label\", {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key,\n goTo: goTo\n }, () => [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(tab.label), 1)\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"aria-selected\", \"class\", \"disabled\", \"id\", \"tabindex\", \"onClick\"])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.items, (tab) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: tab.key\n }, [\n (selectedTab.value === tab.key || _ctx.eager || tab.eager)\n ? (_openBlock(), _createElementBlock(\"section\", {\n key: 0,\n class: _normalizeClass([\"bb-tab__pane\", {\n 'bb-tab__pane--shown': selectedTab.value === tab.key,\n }]),\n role: \"tabpanel\",\n id: `${instanceid}_tabpanel_${tab.key}`,\n \"aria-labelledby\": `${instanceid}_tab_${tab.key}`,\n tabindex: \"0\"\n }, [\n _renderSlot(_ctx.$slots, tab.key, {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key,\n goTo: goTo\n })\n ], 10, _hoisted_5))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ])\n ], 10, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","__expose","__emit","props","emit","route","useRoute","router","useRouter","id","useId","instanceid","isInertia","_b","_a","getCurrentInstance","selectedTab","ref","currentTabIndex","computed","el","isFirst","isLast","item","_d","_c","_f","_e","_g","firstSelectableTab","key","onTabSelected","tab","replace","url","wait","goTo","target","nextTabIndex","targetKey","button","onKeydown","event","watch","value","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_Fragment","_renderList","_createVNode","BaseButton","$event","_withCtx","_renderSlot","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;AAGA,MAAMA,IAAa,CAAC,IAAI,GAClBC,KAAa;AAAA,EACjB,MAAM;AAAA,EACN,OAAO;AACT,GACMC,KAAa,EAAE,OAAO,mBACtBC,KAAa,EAAE,OAAO,6BACtBC,KAAa,CAAC,MAAM,iBAAiB,GAiFfC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,IAAI,CAAC;AAAA,IACL,WAAW,EAAE,SAAS,aAAa;AAAA,IACnC,OAAO,CAAC;AAAA,IACR,YAAY,CAAC;AAAA,IACb,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,UAAU,EAAE,SAAS,MAAM;AAAA,EAC7B;AAAA,EACA,OAAO,CAAC,mBAAmB;AAAA,EAC3B,MAAMC,GAAc,EAAE,QAAQC,GAAU,MAAMC,KAAU;;AAE1D,UAAMC,IAAQH,GAERI,IAAOF,GAIPG,IAAQC,KACRC,IAASC,KAETC,IAAKN,EAAM,MAAMO,IAAQ,GAAG,OAC5BC,IAAa,UAAUF,CAAE,IAIzBG,IAAY,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,WAE3CG,IAAcC,EAA6B,IAAI,GAE/CC,IAAkBC;AAAA,MAAS,MAC/BhB,EAAM,MAAM,UAAU,CAACiB,MAAOA,EAAG,QAAQJ,EAA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AAA,CACD;AAAA,aACA,IAAIvC,EAAU,KACjB+D,EAAoB,IAAI,EAAI;AAAA,WAC/B,EAAE,EACN,GAAG,GAAG;AAAA,MAAA,CACR;AAAA,IAAA,GACA,IAAInE,CAAU;AAAA,EAEnB;AAEA,CAAC;"}
1
+ {"version":3,"file":"index99.js","sources":["../src/components/BbTab/BbTab.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = [\"id\"]\nconst _hoisted_2 = {\n class: \"bb-tab__label-container\",\n role: \"tablist\"\n}\nconst _hoisted_3 = { class: \"bb-tab__label\" }\nconst _hoisted_4 = { class: \"bb-tab__panes-container\" }\nconst _hoisted_5 = [\"id\", \"aria-labelledby\"]\n\nimport { ref, watch, getCurrentInstance, computed } from 'vue';\nimport { useId } from '@/composables/useId';\nimport { useRoute } from '@/composables/useRoute';\nimport { useRouter } from '@/composables/useRouter';\nimport { wait } from '@/utilities/functions/wait';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbTabItem = Pick<CommonProps, 'disabled'> & {\n\t/**\n\t * Used to render a tab even when not visible.\n\t * It's useful if you want the content of a tab in the DOM\n\t * immediately rendered\n\t * even when not visible for SEO purposes.\n\t */\n\teager?: boolean;\n\t/**\n\t * String that identifies the tab.\n\t */\n\tkey: string;\n\t/**\n\t * Label to use as the tab text.\n\t */\n\tlabel?: string;\n};\n\nexport type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {\n\t/**\n\t * Direction of the tabs component\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\t/**\n\t * Array of items that define the tabs in the component.\n\t */\n\titems: BbTabItem[];\n\t/**\n\t * The current tab. Used by v-model.\n\t */\n\tmodelValue?: null | BbTabItem['key'];\n\t/**\n\t * Synchronizes the current tab with the url.\n\t */\n\tnavigation?: boolean;\n\t/**\n\t * Defines the query key to reference for maintaining navigation\n\t */\n\tquerykey?: string;\n};\n\nexport type BbTabEvents = {\n\t(e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;\n};\ntype BbStepSlots = {\n\tlabel?: (props: {\n\t\tcurrent: string | null;\n\t\tcurrentIndex: number;\n\t\tdisabled: boolean;\n\t\tisFirst: boolean;\n\t\tisLast: boolean;\n\t\tselected: boolean;\n\t\ttext: BbTabItem['label'];\n\t\tvalue: string;\n\t\tgoTo: typeof goTo;\n\t}) => any;\n} & {\n\t[key: string]: (props: {\n\t\tcurrent: string | null;\n\t\tcurrentIndex: number;\n\t\tdisabled: boolean;\n\t\tisFirst: boolean;\n\t\tisLast: boolean;\n\t\tselected: boolean;\n\t\ttext: BbTabItem['label'];\n\t\tvalue: string;\n\t\tgoTo: typeof goTo;\n\t}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTab',\n props: {\n disabled: { type: Boolean },\n eager: { type: Boolean },\n id: {},\n direction: { default: 'horizontal' },\n items: {},\n modelValue: {},\n navigation: { type: Boolean },\n querykey: { default: 'tab' }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst id = props.id ?? useId().id.value;\nconst instanceid = `bb-tab_${id}`;\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\nconst selectedTab = ref<BbTabItem['key'] | null>(null);\n\nconst currentTabIndex = computed(() =>\n\tprops.items.findIndex((el) => el.key === selectedTab.value)\n);\nconst isFirst = computed(() => currentTabIndex.value === 0);\nconst isLast = computed(() => currentTabIndex.value === props.items.length - 1);\n\nprops.items.forEach((item) => {\n\tif (!item.key) {\n\t\tconsole.error(`A tab item has no key`, item);\n\t\tthrow new Error('A tab item has no key ' + JSON.stringify(item));\n\t}\n});\n\n/* \nThis section retrieves the current tab that should be selected\n*/\n// Retrieve tab from url on load for vue apps\nif (props.navigation && route.value?.query?.[props.querykey]) {\n\tselectedTab.value = route.value?.query?.[props.querykey] as string;\n\t// Retrieve tab from url on load for inertia app\n} else if (\n\tprops.navigation &&\n\tisInertia &&\n\tglobalThis?.location?.href &&\n\tnew URL(globalThis.location.href).searchParams.get(props.querykey)\n) {\n\tselectedTab.value = new URL(globalThis.location.href).searchParams.get(\n\t\tprops.querykey\n\t) as string;\n\t// Else whatever tab is passed first\n} else if (props.modelValue) {\n\tselectedTab.value = props.modelValue;\n\t// Else whatever tab is passed first\n} else if (props.items[0]) {\n\tconst firstSelectableTab = props.items.find((item) => !item.disabled);\n\tif (!firstSelectableTab) {\n\t\tthrow new Error(\n\t\t\t'No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected.'\n\t\t);\n\t}\n\tconst key = firstSelectableTab.key;\n\tselectedTab.value = key;\n}\n/* \nOnce the current tab is found update external variables\n*/\n\nconst onTabSelected = async (tab: BbTabItem['key'], replace = false) => {\n\t/* For Vue or Nuxt context */\n\tif (\n\t\tprops.navigation &&\n\t\troute.value &&\n\t\troute.value?.query?.[props.querykey] !== tab\n\t) {\n\t\trouter?.push({\n\t\t\t...route,\n\t\t\tquery: { ...route.value?.query, [props.querykey]: tab },\n\t\t\treplace,\n\t\t});\n\t\t/* Inertia context */\n\t} else if (\n\t\tprops.navigation &&\n\t\tisInertia &&\n\t\tglobalThis?.location?.href &&\n\t\tnew URL(globalThis.location.href).searchParams.get(props.querykey) !== tab\n\t) {\n\t\tconst url = new URL(globalThis.location.href);\n\t\turl.searchParams.set(props.querykey, tab);\n\t\twait(0).then(() => {\n\t\t\tif (replace) {\n\t\t\t\thistory.replaceState({}, '', url.toString());\n\t\t\t} else {\n\t\t\t\thistory.pushState({}, '', url.toString());\n\t\t\t}\n\t\t});\n\t}\n\tif (props.modelValue !== tab) {\n\t\temit('update:modelValue', tab);\n\t}\n\tselectedTab.value = tab;\n};\n\nif (selectedTab.value) {\n\tonTabSelected(selectedTab.value, true);\n}\n\nconst goTo = (target: 'first' | 'previous' | 'next' | 'last') => {\n\tvar nextTabIndex: number | null = null;\n\tswitch (target) {\n\t\tcase 'first':\n\t\t\tnextTabIndex = 0;\n\t\t\tbreak;\n\t\tcase 'previous':\n\t\t\tnextTabIndex =\n\t\t\t\t(currentTabIndex.value + props.items.length - 1) % props.items.length;\n\t\t\tbreak;\n\t\tcase 'next':\n\t\t\tnextTabIndex = (currentTabIndex.value + 1) % props.items.length;\n\t\t\tbreak;\n\t\tcase 'last':\n\t\t\tnextTabIndex = props.items.length - 1;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\tif (nextTabIndex === null) {\n\t\tthrow new Error('Could not navigate to next tab');\n\t}\n\tif (props.items[nextTabIndex].disabled) return;\n\tconst targetKey = props.items[nextTabIndex].key;\n\tconst button: HTMLButtonElement | null = document.querySelector(\n\t\t`#${instanceid}_tab_${targetKey}`\n\t);\n\tbutton?.focus();\n\tonTabSelected(targetKey);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n\tif (props.disabled) return;\n\tif (event.key === 'ArrowRight') {\n\t\tgoTo('next');\n\t} else if (event.key === 'ArrowLeft') {\n\t\tgoTo('previous');\n\t} else if (event.key === 'Home') {\n\t\tevent.preventDefault();\n\t\tgoTo('first');\n\t} else if (event.key === 'End') {\n\t\tevent.preventDefault();\n\t\tgoTo('last');\n\t} else {\n\t\treturn;\n\t}\n};\n\nwatch(\n\t() => props.modelValue,\n\t(value) => {\n\t\tif (value) {\n\t\t\tonTabSelected(value);\n\t\t}\n\t}\n);\n\nwatch(\n\t() => route.value?.query?.[props.querykey],\n\t(value) => {\n\t\tif (value && typeof value === 'string') {\n\t\t\tonTabSelected(value);\n\t\t}\n\t}\n);\n\n__expose({\n\tisFirst,\n\tisLast,\n\tcurrent: selectedTab,\n\tcurrentIndex: currentTabIndex,\n\tgoTo,\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n id: _unref(id),\n class: _normalizeClass([\"bb-tab\", {\n\t\t\t[`bb-tab--${_ctx.direction}`]: true,\n\t\t\t'bb-tab--disabled': true,\n\t\t}])\n }, [\n _createElementVNode(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.items, (tab) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: tab.key,\n role: \"presentation\"\n }, [\n _createVNode(BaseButton, {\n id: `${instanceid}_tab_${tab.key}`,\n \"aria-selected\": selectedTab.value === tab.key,\n class: _normalizeClass([\"bb-tab__btn\", { 'bb-tab__btn--active': selectedTab.value === tab.key }]),\n disabled: tab.disabled || _ctx.disabled,\n role: 'tab',\n tabindex: selectedTab.value === tab.key ? 0 : -1,\n onClick: ($event: any) => (onTabSelected(tab.key)),\n onKeydown: onKeydown\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, `label-${tab.key}`, {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n goTo: goTo,\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key\n }, () => [\n _renderSlot(_ctx.$slots, \"label\", {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n goTo: goTo,\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key\n }, () => [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(tab.label), 1)\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"id\", \"aria-selected\", \"class\", \"disabled\", \"tabindex\", \"onClick\"])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.items, (tab) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: tab.key\n }, [\n (selectedTab.value === tab.key || _ctx.eager || tab.eager)\n ? (_openBlock(), _createElementBlock(\"section\", {\n key: 0,\n id: `${instanceid}_tabpanel_${tab.key}`,\n \"aria-labelledby\": `${instanceid}_tab_${tab.key}`,\n class: _normalizeClass([\"bb-tab__pane\", {\n\t\t\t\t\t\t'bb-tab__pane--shown': selectedTab.value === tab.key,\n\t\t\t\t\t}]),\n role: \"tabpanel\",\n tabindex: \"0\"\n }, [\n _renderSlot(_ctx.$slots, tab.key, {\n current: selectedTab.value,\n currentIndex: currentTabIndex.value,\n disabled: !!(tab.disabled || _ctx.disabled),\n goTo: goTo,\n isFirst: isFirst.value,\n isLast: isLast.value,\n selected: selectedTab.value === tab.key,\n text: tab.label,\n value: tab.key\n })\n ], 10, _hoisted_5))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ])\n ], 10, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","__expose","__emit","props","emit","route","useRoute","router","useRouter","id","useId","instanceid","isInertia","_b","_a","getCurrentInstance","selectedTab","ref","currentTabIndex","computed","el","isFirst","isLast","item","_d","_c","_f","_e","_g","firstSelectableTab","key","onTabSelected","tab","replace","url","wait","goTo","target","nextTabIndex","targetKey","button","onKeydown","event","watch","value","_ctx","_cache","_openBlock","_createElementBlock","_unref","_normalizeClass","_createElementVNode","_Fragment","_renderList","_createVNode","BaseButton","$event","_withCtx","_renderSlot","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;AAGA,MAAMA,IAAa,CAAC,IAAI,GAClBC,KAAa;AAAA,EACjB,OAAO;AAAA,EACP,MAAM;AACR,GACMC,KAAa,EAAE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