bootstrap-vue-next 1.2.3 → 1.2.5

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 (189) hide show
  1. package/dist/{BAccordion-nQptHiXD.js → BAccordion-BfaVicrj.js} +2 -2
  2. package/dist/{BAccordion-nQptHiXD.js.map → BAccordion-BfaVicrj.js.map} +1 -1
  3. package/dist/{BAlert-Bl3TOay3.js → BAlert-Czy83dU3.js} +5 -5
  4. package/dist/{BAlert-Bl3TOay3.js.map → BAlert-Czy83dU3.js.map} +1 -1
  5. package/dist/{BApp-Bg5xEz8H.js → BApp-DZ9AITOm.js} +22 -3
  6. package/dist/BApp-DZ9AITOm.js.map +1 -0
  7. package/dist/BAutocomplete-Bh4Bp5AI.js +437 -0
  8. package/dist/BAutocomplete-Bh4Bp5AI.js.map +1 -0
  9. package/dist/{BAvatar-BsStQrBF.js → BAvatar-BJNeQ1fe.js} +2 -2
  10. package/dist/{BAvatar-BsStQrBF.js.map → BAvatar-BJNeQ1fe.js.map} +1 -1
  11. package/dist/{BButton-KZu5jczf.js → BButton-DlOQ5sem.js} +2 -2
  12. package/dist/{BButton-KZu5jczf.js.map → BButton-DlOQ5sem.js.map} +1 -1
  13. package/dist/{BCard-DELccMG-.js → BCard-Bc1wed-3.js} +2 -2
  14. package/dist/{BCard-DELccMG-.js.map → BCard-Bc1wed-3.js.map} +1 -1
  15. package/dist/{BCarousel-BV2EiQRM.js → BCarousel-B-WZR469.js} +4 -5
  16. package/dist/{BCarousel-BV2EiQRM.js.map → BCarousel-B-WZR469.js.map} +1 -1
  17. package/dist/{BCollapse-B2q9Ya2S.js → BCollapse-DCjKiTxo.js} +2 -2
  18. package/dist/{BCollapse-B2q9Ya2S.js.map → BCollapse-DCjKiTxo.js.map} +1 -1
  19. package/dist/BDateField-Oh-cU-4i.js +456 -0
  20. package/dist/BDateField-Oh-cU-4i.js.map +1 -0
  21. package/dist/BDatePicker-HNI11eCe.js +632 -0
  22. package/dist/BDatePicker-HNI11eCe.js.map +1 -0
  23. package/dist/{BDropdown-D4gLdtmX.js → BDropdown-04nGcMhm.js} +6 -7
  24. package/dist/{BDropdown-D4gLdtmX.js.map → BDropdown-04nGcMhm.js.map} +1 -1
  25. package/dist/{BFormCheckbox-BYNGQgr2.js → BFormCheckbox-zjr8OsNd.js} +2 -2
  26. package/dist/{BFormCheckbox-BYNGQgr2.js.map → BFormCheckbox-zjr8OsNd.js.map} +1 -1
  27. package/dist/{BFormFile-C2DnrbK7.js → BFormFile-D_s8tf1m.js} +2 -2
  28. package/dist/{BFormFile-C2DnrbK7.js.map → BFormFile-D_s8tf1m.js.map} +1 -1
  29. package/dist/{BFormInput-_AkAy6Wk.js → BFormInput-DnIBPLCx.js} +2 -2
  30. package/dist/{BFormInput-_AkAy6Wk.js.map → BFormInput-DnIBPLCx.js.map} +1 -1
  31. package/dist/BFormOtp-Dx2RxPAW.js +150 -0
  32. package/dist/BFormOtp-Dx2RxPAW.js.map +1 -0
  33. package/dist/{BFormRadio-DAddcnfE.js → BFormRadio-DUz60sBI.js} +2 -2
  34. package/dist/{BFormRadio-DAddcnfE.js.map → BFormRadio-DUz60sBI.js.map} +1 -1
  35. package/dist/{BFormRating-iKFgSFet.js → BFormRating-CtMmDgrF.js} +2 -2
  36. package/dist/{BFormRating-iKFgSFet.js.map → BFormRating-CtMmDgrF.js.map} +1 -1
  37. package/dist/{BFormSelect-CSS-_kul.js → BFormSelect-CeslPN3i.js} +2 -3
  38. package/dist/{BFormSelect-CSS-_kul.js.map → BFormSelect-CeslPN3i.js.map} +1 -1
  39. package/dist/{BFormSpinbutton-fkVMbQC3.js → BFormSpinbutton-BR9YTfYy.js} +2 -3
  40. package/dist/{BFormSpinbutton-fkVMbQC3.js.map → BFormSpinbutton-BR9YTfYy.js.map} +1 -1
  41. package/dist/{BFormTags-CUcyRTCK.js → BFormTags-6qQn0Vlv.js} +2 -3
  42. package/dist/{BFormTags-CUcyRTCK.js.map → BFormTags-6qQn0Vlv.js.map} +1 -1
  43. package/dist/{BFormTextarea-CBBlEcrV.js → BFormTextarea-DvLrtG08.js} +3 -3
  44. package/dist/{BFormTextarea-CBBlEcrV.js.map → BFormTextarea-DvLrtG08.js.map} +1 -1
  45. package/dist/{BImg-knz2UZQE.js → BImg-Dd8Pc1Ln.js} +2 -2
  46. package/dist/{BImg-knz2UZQE.js.map → BImg-Dd8Pc1Ln.js.map} +1 -1
  47. package/dist/{BModal-BjmeVZen.js → BModal-DOmTYI6F.js} +5 -6
  48. package/dist/{BModal-BjmeVZen.js.map → BModal-DOmTYI6F.js.map} +1 -1
  49. package/dist/{BNav-B2PlMEMD.js → BNav-D3XbyI1R.js} +2 -2
  50. package/dist/{BNav-B2PlMEMD.js.map → BNav-D3XbyI1R.js.map} +1 -1
  51. package/dist/{BOffcanvas-DfR32-ZP.js → BOffcanvas-DyPG7s8I.js} +5 -5
  52. package/dist/{BOffcanvas-DfR32-ZP.js.map → BOffcanvas-DyPG7s8I.js.map} +1 -1
  53. package/dist/{BPagination-CfrsVgDp.js → BPagination-DGvgWeYG.js} +3 -3
  54. package/dist/{BPagination-CfrsVgDp.js.map → BPagination-DGvgWeYG.js.map} +1 -1
  55. package/dist/{BPlaceholder-DI12zz0a.js → BPlaceholder-BrBmbfIg.js} +3 -3
  56. package/dist/{BPlaceholder-DI12zz0a.js.map → BPlaceholder-BrBmbfIg.js.map} +1 -1
  57. package/dist/{BProgress-BNxYppi-.js → BProgress-CXhe6hsN.js} +2 -2
  58. package/dist/{BProgress-BNxYppi-.js.map → BProgress-CXhe6hsN.js.map} +1 -1
  59. package/dist/{BTable-BZxX17YU.js → BTable-8jp3wPAI.js} +2 -2
  60. package/dist/{BTable-BZxX17YU.js.map → BTable-8jp3wPAI.js.map} +1 -1
  61. package/dist/{BTabs-Zp8CvCL_.js → BTabs-Cfe8HOGE.js} +2 -2
  62. package/dist/{BTabs-Zp8CvCL_.js.map → BTabs-Cfe8HOGE.js.map} +1 -1
  63. package/dist/BTimeField-vdultTwg.js +138 -0
  64. package/dist/BTimeField-vdultTwg.js.map +1 -0
  65. package/dist/{BToast-CqE2VMW2.js → BToast-vxfpFGe3.js} +5 -5
  66. package/dist/{BToast-CqE2VMW2.js.map → BToast-vxfpFGe3.js.map} +1 -1
  67. package/dist/{BTooltip-BHFBLXnr.js → BTooltip-CV5Ogidy.js} +5 -11
  68. package/dist/BTooltip-CV5Ogidy.js.map +1 -0
  69. package/dist/bootstrap-vue-next.mjs +36 -36
  70. package/dist/{classes-BEWWGbj5.js → classes-DCjKFM2E.js} +12 -2
  71. package/dist/classes-DCjKFM2E.js.map +1 -0
  72. package/dist/components/BTooltip/BTooltip.vue.d.mts +3 -3
  73. package/dist/components/BTooltip/BTooltip.vue.d.ts +3 -3
  74. package/dist/composables/usePopover/index.d.mts +9 -9
  75. package/dist/composables/usePopover/index.d.ts +9 -9
  76. package/dist/{floatingUi-Stb1SUvw.js → floatingUi-BhgR4GBJ.js} +10 -168
  77. package/dist/floatingUi-BhgR4GBJ.js.map +1 -0
  78. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  79. package/dist/src/components/BAccordion/index.mjs +1 -1
  80. package/dist/src/components/BAlert/index.mjs +1 -1
  81. package/dist/src/components/BApp/index.mjs +1 -1
  82. package/dist/src/components/BAutocomplete/index.mjs +1 -1
  83. package/dist/src/components/BAvatar/index.mjs +1 -1
  84. package/dist/src/components/BButton/index.mjs +1 -1
  85. package/dist/src/components/BCard/index.mjs +1 -1
  86. package/dist/src/components/BCarousel/index.mjs +1 -1
  87. package/dist/src/components/BCollapse/index.mjs +1 -1
  88. package/dist/src/components/BDateField/index.mjs +1 -1
  89. package/dist/src/components/BDatePicker/index.mjs +1 -1
  90. package/dist/src/components/BDropdown/index.mjs +1 -1
  91. package/dist/src/components/BFormCheckbox/index.mjs +1 -1
  92. package/dist/src/components/BFormFile/index.mjs +1 -1
  93. package/dist/src/components/BFormInput/index.mjs +1 -1
  94. package/dist/src/components/BFormOtp/index.mjs +1 -1
  95. package/dist/src/components/BFormRadio/index.mjs +1 -1
  96. package/dist/src/components/BFormRating/index.mjs +1 -1
  97. package/dist/src/components/BFormSelect/index.mjs +1 -1
  98. package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
  99. package/dist/src/components/BFormTags/index.mjs +1 -1
  100. package/dist/src/components/BFormTextarea/index.mjs +1 -1
  101. package/dist/src/components/BImg/index.mjs +1 -1
  102. package/dist/src/components/BModal/index.mjs +1 -1
  103. package/dist/src/components/BNav/index.mjs +1 -1
  104. package/dist/src/components/BOffcanvas/index.mjs +1 -1
  105. package/dist/src/components/BPagination/index.mjs +1 -1
  106. package/dist/src/components/BPlaceholder/index.mjs +1 -1
  107. package/dist/src/components/BPopover/index.mjs +1 -1
  108. package/dist/src/components/BProgress/index.mjs +1 -1
  109. package/dist/src/components/BTable/index.mjs +1 -1
  110. package/dist/src/components/BTabs/index.mjs +1 -1
  111. package/dist/src/components/BTimeField/index.mjs +1 -1
  112. package/dist/src/components/BToast/index.mjs +1 -1
  113. package/dist/src/components/BTooltip/index.mjs +1 -1
  114. package/dist/src/components/index.mjs +36 -36
  115. package/dist/src/composables/index.mjs +1 -1
  116. package/dist/src/composables/orchestratorShared/index.mjs +145 -27
  117. package/dist/src/composables/orchestratorShared/index.mjs.map +1 -1
  118. package/dist/src/composables/useColorMode/index.mjs +1 -1
  119. package/dist/src/composables/useModal/index.mjs +1 -1
  120. package/dist/src/composables/usePopover/index.mjs +2 -2
  121. package/dist/src/composables/useScrollLock/index.mjs +1 -2
  122. package/dist/src/composables/useScrollLock/index.mjs.map +1 -1
  123. package/dist/src/composables/useScrollspy/index.mjs +1 -2
  124. package/dist/src/composables/useScrollspy/index.mjs.map +1 -1
  125. package/dist/src/composables/useToast/index.mjs +1 -1
  126. package/dist/src/directives/BPopover/index.mjs +2 -2
  127. package/dist/src/directives/BScrollspy/index.mjs +1 -1
  128. package/dist/src/directives/BToggle/index.mjs +1 -1
  129. package/dist/src/directives/BTooltip/index.mjs +2 -2
  130. package/dist/src/directives/index.mjs +1 -1
  131. package/dist/src/plugins/index.mjs +1 -1
  132. package/dist/src/resolvers/index.mjs +1 -1
  133. package/dist/src/types/index.mjs +1 -1
  134. package/dist/src/utils/index.mjs +2 -2
  135. package/dist/types/ComponentOrchestratorTypes.d.mts +8 -1
  136. package/dist/types/ComponentOrchestratorTypes.d.ts +8 -1
  137. package/dist/{useCountdownHover-BN8vJIQW.js → useCountdownHover-HZSJZkHq.js} +2 -2
  138. package/dist/{useCountdownHover-BN8vJIQW.js.map → useCountdownHover-HZSJZkHq.js.map} +1 -1
  139. package/dist/{useFormInput-C-iXRxog.js → useFormInput-CMtXFoM2.js} +2 -3
  140. package/dist/{useFormInput-C-iXRxog.js.map → useFormInput-CMtXFoM2.js.map} +1 -1
  141. package/dist/useSafeScrollLock-BT4KKhxB.js +89 -0
  142. package/dist/useSafeScrollLock-BT4KKhxB.js.map +1 -0
  143. package/dist/{useShowHide-B6RQbFDt.js → useShowHide-BLIZLD9E.js} +125 -56
  144. package/dist/useShowHide-BLIZLD9E.js.map +1 -0
  145. package/dist/utils/classes.d.mts +10 -0
  146. package/dist/utils/classes.d.ts +10 -0
  147. package/dist/{utils-CK56zzsO.js → utils-CvjliJBf.js} +2 -2
  148. package/dist/{utils-CK56zzsO.js.map → utils-CvjliJBf.js.map} +1 -1
  149. package/package.json +3 -23
  150. package/dist/BApp-Bg5xEz8H.js.map +0 -1
  151. package/dist/BAutocomplete-BFbbKtpz.js +0 -2490
  152. package/dist/BAutocomplete-BFbbKtpz.js.map +0 -1
  153. package/dist/BDateField-Bj-Jz7u4.js +0 -906
  154. package/dist/BDateField-Bj-Jz7u4.js.map +0 -1
  155. package/dist/BDatePicker-AVTYcVLy.js +0 -5210
  156. package/dist/BDatePicker-AVTYcVLy.js.map +0 -1
  157. package/dist/BFormOtp-ClDACqXM.js +0 -577
  158. package/dist/BFormOtp-ClDACqXM.js.map +0 -1
  159. package/dist/BTimeField-CbRGjaI6.js +0 -516
  160. package/dist/BTimeField-CbRGjaI6.js.map +0 -1
  161. package/dist/BTooltip-BHFBLXnr.js.map +0 -1
  162. package/dist/DateRangeFieldInput-Cbzjg8iF.js +0 -761
  163. package/dist/DateRangeFieldInput-Cbzjg8iF.js.map +0 -1
  164. package/dist/PopperContent-C9eeL6LH.js +0 -1726
  165. package/dist/PopperContent-C9eeL6LH.js.map +0 -1
  166. package/dist/VisuallyHidden-BYzyjJiY.js +0 -182
  167. package/dist/VisuallyHidden-BYzyjJiY.js.map +0 -1
  168. package/dist/VisuallyHiddenInput-CUrc8XXa.js +0 -180
  169. package/dist/VisuallyHiddenInput-CUrc8XXa.js.map +0 -1
  170. package/dist/classes-BEWWGbj5.js.map +0 -1
  171. package/dist/dist-9-XTMhb-.js +0 -1302
  172. package/dist/dist-9-XTMhb-.js.map +0 -1
  173. package/dist/dist-B-regXAP.js +0 -123
  174. package/dist/dist-B-regXAP.js.map +0 -1
  175. package/dist/dist-DKc2ivHS.js +0 -411
  176. package/dist/dist-DKc2ivHS.js.map +0 -1
  177. package/dist/floating-ui.dom-C7UZexJK.js +0 -1484
  178. package/dist/floating-ui.dom-C7UZexJK.js.map +0 -1
  179. package/dist/floatingUi-Stb1SUvw.js.map +0 -1
  180. package/dist/rolldown-runtime-BBjsoOtd.js +0 -27
  181. package/dist/useDateField-CQZb799C.js +0 -3679
  182. package/dist/useDateField-CQZb799C.js.map +0 -1
  183. package/dist/useForwardExpose-DDvk7mir.js +0 -60
  184. package/dist/useForwardExpose-DDvk7mir.js.map +0 -1
  185. package/dist/useKbd-DRsaFU_f.js +0 -76
  186. package/dist/useKbd-DRsaFU_f.js.map +0 -1
  187. package/dist/useSafeScrollLock-PVgSASYu.js +0 -1326
  188. package/dist/useSafeScrollLock-PVgSASYu.js.map +0 -1
  189. package/dist/useShowHide-B6RQbFDt.js.map +0 -1
@@ -28,10 +28,20 @@ export declare class BvEvent {
28
28
  export declare class BvTriggerableEvent extends BvEvent {
29
29
  readonly trigger: string | null;
30
30
  ok: boolean | null | undefined;
31
+ /**
32
+ * On show and hide request events (`show`, `hide`, `ok`, `cancel`, `close`, and the `-prevented`
33
+ * events): aborted once the component commits to its next show or hide, or unmounts. Pass it to
34
+ * async work started from a listener that prevents the event (for example validating in `ok`), so
35
+ * that work stops if the component is closed or reopened another way in the meantime.
36
+ * If the listener does not prevent the event, the component commits right after it, and the signal
37
+ * is already aborted. `null` on other events
38
+ */
39
+ readonly signal: AbortSignal | null;
31
40
  constructor(eventType: string, eventInit?: Partial<Omit<BvTriggerableEvent, BvEventConstructorOmittables>>);
32
41
  static get Defaults(): {
33
42
  trigger: null;
34
43
  ok: undefined;
44
+ signal: null;
35
45
  cancelable: boolean;
36
46
  componentId: null;
37
47
  eventType: string;
@@ -1,6 +1,6 @@
1
1
  import { l as defaultsKey } from "./keys-BgLwJbLV.js";
2
2
  import { t as error } from "./console-DaUCJgpk.js";
3
- import { c as unbind, i as resolveActiveStatus, l as updateBind, o as resolveContent, s as resolveDirectiveProps, t as bind } from "./floatingUi-Stb1SUvw.js";
3
+ import { c as unbind, i as resolveActiveStatus, l as updateBind, o as resolveContent, s as resolveDirectiveProps, t as bind } from "./floatingUi-BhgR4GBJ.js";
4
4
  //#region src/directives/utils.ts
5
5
  /**
6
6
  * Gets the component instance UID from a directive binding
@@ -170,4 +170,4 @@ function createFloatingDirective(propertyName, componentDefaultsKey, buildProps)
170
170
  //#endregion
171
171
  export { findProvides as n, getDirectiveUid as r, createFloatingDirective as t };
172
172
 
173
- //# sourceMappingURL=utils-CK56zzsO.js.map
173
+ //# sourceMappingURL=utils-CvjliJBf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-CK56zzsO.js","names":[],"sources":["../src/directives/utils.ts"],"sourcesContent":["import type {ComponentInternalInstance, Directive, DirectiveBinding, Ref, VNode} from 'vue'\nimport type {BPopoverProps} from '../types/ComponentProps'\nimport {error} from '../utils/console'\nimport {\n bind,\n type ElementWithPopper,\n resolveActiveStatus,\n resolveContent,\n resolveDirectiveProps,\n unbind,\n updateBind,\n} from '../utils/floatingUi'\nimport {defaultsKey} from '../utils/keys'\n\ninterface _ComponentInternalInstance extends ComponentInternalInstance {\n provides?: Record<string, unknown>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setupState?: any\n}\n\ninterface _VNode extends VNode {\n ctx?: _ComponentInternalInstance | null\n ssContent?: VNode | null\n}\n\n/**\n * Represents per-instance state for directives using UID namespacing\n */\nexport interface DirectiveInstanceState {\n binding: string // JSON.stringify cache for change detection\n destroying: boolean // Flag to prevent race conditions during cleanup\n}\n\n/**\n * Gets the component instance UID from a directive binding\n * @throws Error if binding.instance is not available\n */\nexport function getDirectiveUid(binding: DirectiveBinding): number {\n if (!binding.instance) {\n throw new Error('[Bootstrap-Vue-Next] Directive binding.instance is not available')\n }\n return binding.instance.$.uid\n}\n\n/**\n * Initializes UID-namespaced storage on an element for a directive\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n * @param binding - The directive binding value to cache\n * @returns The initialized instance state\n */\nexport function initDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number,\n binding: DirectiveBinding\n): DirectiveInstanceState {\n // Initialize UID namespace for this directive\n const elWithProps = el as Record<string, unknown>\n elWithProps[propertyName] = elWithProps[propertyName] ?? Object.create(null)\n\n // Store per-instance state with JSON cache for change detection\n const state: DirectiveInstanceState = {\n binding: JSON.stringify([binding.modifiers, binding.value]),\n destroying: false,\n }\n\n ;(elWithProps[propertyName] as Record<string, unknown>)[uid] = state\n return state\n}\n\n/**\n * Gets the instance state for a directive, if it exists\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n * @returns The instance state or undefined if not found\n */\nexport function getDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number\n): DirectiveInstanceState | undefined {\n const elWithProps = el as Record<string, unknown>\n return (elWithProps[propertyName] as Record<string, unknown> | undefined)?.[uid] as\n | DirectiveInstanceState\n | undefined\n}\n\n/**\n * Checks if the directive binding has changed for this instance\n * @param instance - The directive instance state\n * @param binding - The current directive binding\n * @returns true if the binding has changed, false otherwise\n */\nexport function hasBindingChanged(\n instance: DirectiveInstanceState,\n binding: DirectiveBinding\n): boolean {\n const newBinding = JSON.stringify([binding.modifiers, binding.value])\n return instance.binding !== newBinding\n}\n\n/**\n * Updates the cached binding value for a directive instance\n * @param instance - The directive instance state\n * @param binding - The new directive binding\n */\nexport function updateBindingCache(\n instance: DirectiveInstanceState,\n binding: DirectiveBinding\n): void {\n instance.binding = JSON.stringify([binding.modifiers, binding.value])\n}\n\n/**\n * Cleans up a directive instance\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n */\nexport function cleanupDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number\n): void {\n const elWithProps = el as Record<string, unknown>\n const instance = (elWithProps[propertyName] as Record<string, unknown> | undefined)?.[uid] as\n | DirectiveInstanceState\n | undefined\n if (instance) {\n instance.destroying = true\n delete (elWithProps[propertyName] as Record<string, unknown>)[uid]\n }\n}\n\n// taken from vuetify https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/directiveComponent.ts\n\nexport function findProvides(\n binding: DirectiveBinding,\n vnode: _VNode,\n suppressParentNotFoundError = false\n): Record<string, unknown> {\n const provides =\n (vnode.ctx === binding.instance!.$\n ? findComponentParent(vnode, binding.instance!.$, suppressParentNotFoundError)?.provides\n : vnode.ctx?.provides) ?? binding.instance!.$.provides\n\n return provides\n}\n\nexport function findComponentParent(\n vnode: VNode,\n root: ComponentInternalInstance,\n suppressNotFoundError = false\n): _ComponentInternalInstance | null {\n // Walk the tree from root until we find the child vnode\n const stack = new Set<VNode>()\n const walk = (children: _VNode[]): boolean => {\n for (const child of children) {\n if (!child) continue\n\n if (child === vnode || (child.el && vnode.el && child.el === vnode.el)) {\n return true\n }\n\n stack.add(child)\n let result\n if (child.suspense) {\n result = walk([child.ssContent!])\n } else if (Array.isArray(child.children)) {\n result = walk(child.children as VNode[])\n } else if (child.component?.vnode) {\n result = walk([child.component?.subTree])\n }\n if (result) {\n return result\n }\n stack.delete(child)\n }\n\n return false\n }\n if (!walk([root.subTree])) {\n if (!suppressNotFoundError) {\n error('directive-utils', 'Could not find original vnode, will not inherit provides')\n }\n return root\n }\n\n // Return the first component parent\n const result = Array.from(stack).reverse()\n for (const child of result) {\n if (child.component) {\n return child.component\n }\n }\n return root\n}\n\n/**\n * Creates a floating UI directive (tooltip or popover) with UID-namespaced state management\n * @param propertyName - The property name for storing state (e.g., '$__tooltip', '$__popover')\n * @param componentDefaultsKey - The key for accessing component defaults (e.g., 'BTooltip', 'BPopover')\n * @param buildProps - Optional function to customize the props passed to bind()\n * @returns A Vue directive object\n */\nexport function createFloatingDirective(\n propertyName: string,\n componentDefaultsKey: string,\n buildProps?: (\n text: {title?: string; body?: string},\n defaults: unknown,\n binding: Readonly<DirectiveBinding>,\n el: Readonly<HTMLElement>\n ) => BPopoverProps\n): Directive<ElementWithPopper> {\n return {\n mounted(el, binding, vnode) {\n const uid = getDirectiveUid(binding)\n const defaultsMap = (findProvides(binding, vnode) as Record<symbol, Ref>)[defaultsKey]\n ?.value as Record<string, unknown> | undefined\n const isActive = resolveActiveStatus(binding.value)\n if (!isActive) return\n\n const text = resolveContent(binding.value, el)\n\n if (!text.body && !text.title) return\n\n // Initialize per-instance state with UID namespacing\n initDirectiveInstance(el, propertyName, uid, binding)\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n bind(el, binding, props)\n },\n\n updated(el, binding, vnode) {\n const uid = getDirectiveUid(binding)\n let instance = getDirectiveInstance(el, propertyName, uid)\n\n const defaultsMap = (findProvides(binding, vnode) as Record<symbol, Ref>)[defaultsKey]\n ?.value as Record<string, unknown> | undefined\n\n const isActive = resolveActiveStatus(binding.value)\n\n // If inactive, clean up existing instance if present\n if (!isActive) {\n if (instance && el.$__element) {\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n }\n return\n }\n\n const text = resolveContent(binding.value, el)\n\n if (!text.body && !text.title) {\n // Clean up if no content\n if (instance && el.$__element) {\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n }\n return\n }\n\n // If instance doesn't exist, this is a transition from inactive/no-content to active\n // Initialize the instance now (similar to mounted)\n if (!instance) {\n instance = initDirectiveInstance(el, propertyName, uid, binding)\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n bind(el, binding, props)\n return\n }\n\n // Check if binding changed for THIS instance\n if (!hasBindingChanged(instance, binding)) return\n\n // Prevent race conditions during update\n if (instance.destroying) return\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n // Update props in-place so the tooltip stays visible if it was open\n updateBind(el, binding, props)\n\n // Update THIS instance's cache\n updateBindingCache(instance, binding)\n },\n\n beforeUnmount(el, binding) {\n const uid = getDirectiveUid(binding)\n const instance = getDirectiveInstance(el, propertyName, uid)\n\n if (!instance) return\n\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n },\n }\n}\n"],"mappings":";;;;;;;;AAqCA,SAAgB,gBAAgB,SAAmC;CACjE,IAAI,CAAC,QAAQ,UACX,MAAM,IAAI,MAAM,kEAAkE;CAEpF,OAAO,QAAQ,SAAS,EAAE;AAC5B;;;;;;;;;AAUA,SAAgB,sBACd,IACA,cACA,KACA,SACwB;CAExB,MAAM,cAAc;CACpB,YAAY,gBAA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Y,GAAG,YAAY;KAC7B,OAAO,EAAE;KACT,yBAAyB,IAAI,cAAc,GAAG;IAChD;IACA;GACF;GAEA,MAAM,OAAO,eAAe,QAAQ,OAAO,EAAE;GAE7C,IAAI,CAAC,KAAK,QAAQ,CAAC,KAAK,OAAO;IAE7B,IAAI,YAAY,GAAG,YAAY;KAC7B,OAAO,EAAE;KACT,yBAAyB,IAAI,cAAc,GAAG;IAChD;IACA;GACF;GAIA,IAAI,CAAC,UAAU;IACb,WAAW,sBAAsB,IAAI,cAAc,KAAK,OAAO;IAE/D,MAAM,QAAQ,aACV,WAAW,MAAM,cAAc,uBAAuB,SAAS,EAAE,IACjE;KACE,GAAI,cAAc,yBAAyB,KAAA;KAC3C,GAAG,sBAAsB,SAAS,EAAE;KACpC,GAAG;IACL;IAEJ,KAAK,IAAI,SAAS,KAAK;IACvB;GACF;GAGA,IAAI,CAAC,kBAAkB,UAAU,OAAO,GAAG;GAG3C,IAAI,SAAS,YAAY;GAEzB,MAAM,QAAQ,aACV,WAAW,MAAM,cAAc,uBAAuB,SAAS,EAAE,IACjE;IACE,GAAI,cAAc,yBAAyB,KAAA;IAC3C,GAAG,sBAAsB,SAAS,EAAE;IACpC,GAAG;GACL;GAGJ,WAAW,IAAI,SAAS,KAAK;GAG7B,mBAAmB,UAAU,OAAO;EACtC;EAEA,cAAc,IAAI,SAAS;GACzB,MAAM,MAAM,gBAAgB,OAAO;GAGnC,IAAI,CAFa,qBAAqB,IAAI,cAAc,GAEnD,GAAU;GAEf,OAAO,EAAE;GACT,yBAAyB,IAAI,cAAc,GAAG;EAChD;CACF;AACF"}
1
+ {"version":3,"file":"utils-CvjliJBf.js","names":[],"sources":["../src/directives/utils.ts"],"sourcesContent":["import type {ComponentInternalInstance, Directive, DirectiveBinding, Ref, VNode} from 'vue'\nimport type {BPopoverProps} from '../types/ComponentProps'\nimport {error} from '../utils/console'\nimport {\n bind,\n type ElementWithPopper,\n resolveActiveStatus,\n resolveContent,\n resolveDirectiveProps,\n unbind,\n updateBind,\n} from '../utils/floatingUi'\nimport {defaultsKey} from '../utils/keys'\n\ninterface _ComponentInternalInstance extends ComponentInternalInstance {\n provides?: Record<string, unknown>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setupState?: any\n}\n\ninterface _VNode extends VNode {\n ctx?: _ComponentInternalInstance | null\n ssContent?: VNode | null\n}\n\n/**\n * Represents per-instance state for directives using UID namespacing\n */\nexport interface DirectiveInstanceState {\n binding: string // JSON.stringify cache for change detection\n destroying: boolean // Flag to prevent race conditions during cleanup\n}\n\n/**\n * Gets the component instance UID from a directive binding\n * @throws Error if binding.instance is not available\n */\nexport function getDirectiveUid(binding: DirectiveBinding): number {\n if (!binding.instance) {\n throw new Error('[Bootstrap-Vue-Next] Directive binding.instance is not available')\n }\n return binding.instance.$.uid\n}\n\n/**\n * Initializes UID-namespaced storage on an element for a directive\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n * @param binding - The directive binding value to cache\n * @returns The initialized instance state\n */\nexport function initDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number,\n binding: DirectiveBinding\n): DirectiveInstanceState {\n // Initialize UID namespace for this directive\n const elWithProps = el as Record<string, unknown>\n elWithProps[propertyName] = elWithProps[propertyName] ?? Object.create(null)\n\n // Store per-instance state with JSON cache for change detection\n const state: DirectiveInstanceState = {\n binding: JSON.stringify([binding.modifiers, binding.value]),\n destroying: false,\n }\n\n ;(elWithProps[propertyName] as Record<string, unknown>)[uid] = state\n return state\n}\n\n/**\n * Gets the instance state for a directive, if it exists\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n * @returns The instance state or undefined if not found\n */\nexport function getDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number\n): DirectiveInstanceState | undefined {\n const elWithProps = el as Record<string, unknown>\n return (elWithProps[propertyName] as Record<string, unknown> | undefined)?.[uid] as\n | DirectiveInstanceState\n | undefined\n}\n\n/**\n * Checks if the directive binding has changed for this instance\n * @param instance - The directive instance state\n * @param binding - The current directive binding\n * @returns true if the binding has changed, false otherwise\n */\nexport function hasBindingChanged(\n instance: DirectiveInstanceState,\n binding: DirectiveBinding\n): boolean {\n const newBinding = JSON.stringify([binding.modifiers, binding.value])\n return instance.binding !== newBinding\n}\n\n/**\n * Updates the cached binding value for a directive instance\n * @param instance - The directive instance state\n * @param binding - The new directive binding\n */\nexport function updateBindingCache(\n instance: DirectiveInstanceState,\n binding: DirectiveBinding\n): void {\n instance.binding = JSON.stringify([binding.modifiers, binding.value])\n}\n\n/**\n * Cleans up a directive instance\n * @param el - The HTML element\n * @param propertyName - The property name (e.g., '$__tooltip', '$__popover')\n * @param uid - The component instance UID\n */\nexport function cleanupDirectiveInstance(\n el: HTMLElement & Record<string, unknown>,\n propertyName: string,\n uid: number\n): void {\n const elWithProps = el as Record<string, unknown>\n const instance = (elWithProps[propertyName] as Record<string, unknown> | undefined)?.[uid] as\n | DirectiveInstanceState\n | undefined\n if (instance) {\n instance.destroying = true\n delete (elWithProps[propertyName] as Record<string, unknown>)[uid]\n }\n}\n\n// taken from vuetify https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/directiveComponent.ts\n\nexport function findProvides(\n binding: DirectiveBinding,\n vnode: _VNode,\n suppressParentNotFoundError = false\n): Record<string, unknown> {\n const provides =\n (vnode.ctx === binding.instance!.$\n ? findComponentParent(vnode, binding.instance!.$, suppressParentNotFoundError)?.provides\n : vnode.ctx?.provides) ?? binding.instance!.$.provides\n\n return provides\n}\n\nexport function findComponentParent(\n vnode: VNode,\n root: ComponentInternalInstance,\n suppressNotFoundError = false\n): _ComponentInternalInstance | null {\n // Walk the tree from root until we find the child vnode\n const stack = new Set<VNode>()\n const walk = (children: _VNode[]): boolean => {\n for (const child of children) {\n if (!child) continue\n\n if (child === vnode || (child.el && vnode.el && child.el === vnode.el)) {\n return true\n }\n\n stack.add(child)\n let result\n if (child.suspense) {\n result = walk([child.ssContent!])\n } else if (Array.isArray(child.children)) {\n result = walk(child.children as VNode[])\n } else if (child.component?.vnode) {\n result = walk([child.component?.subTree])\n }\n if (result) {\n return result\n }\n stack.delete(child)\n }\n\n return false\n }\n if (!walk([root.subTree])) {\n if (!suppressNotFoundError) {\n error('directive-utils', 'Could not find original vnode, will not inherit provides')\n }\n return root\n }\n\n // Return the first component parent\n const result = Array.from(stack).reverse()\n for (const child of result) {\n if (child.component) {\n return child.component\n }\n }\n return root\n}\n\n/**\n * Creates a floating UI directive (tooltip or popover) with UID-namespaced state management\n * @param propertyName - The property name for storing state (e.g., '$__tooltip', '$__popover')\n * @param componentDefaultsKey - The key for accessing component defaults (e.g., 'BTooltip', 'BPopover')\n * @param buildProps - Optional function to customize the props passed to bind()\n * @returns A Vue directive object\n */\nexport function createFloatingDirective(\n propertyName: string,\n componentDefaultsKey: string,\n buildProps?: (\n text: {title?: string; body?: string},\n defaults: unknown,\n binding: Readonly<DirectiveBinding>,\n el: Readonly<HTMLElement>\n ) => BPopoverProps\n): Directive<ElementWithPopper> {\n return {\n mounted(el, binding, vnode) {\n const uid = getDirectiveUid(binding)\n const defaultsMap = (findProvides(binding, vnode) as Record<symbol, Ref>)[defaultsKey]\n ?.value as Record<string, unknown> | undefined\n const isActive = resolveActiveStatus(binding.value)\n if (!isActive) return\n\n const text = resolveContent(binding.value, el)\n\n if (!text.body && !text.title) return\n\n // Initialize per-instance state with UID namespacing\n initDirectiveInstance(el, propertyName, uid, binding)\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n bind(el, binding, props)\n },\n\n updated(el, binding, vnode) {\n const uid = getDirectiveUid(binding)\n let instance = getDirectiveInstance(el, propertyName, uid)\n\n const defaultsMap = (findProvides(binding, vnode) as Record<symbol, Ref>)[defaultsKey]\n ?.value as Record<string, unknown> | undefined\n\n const isActive = resolveActiveStatus(binding.value)\n\n // If inactive, clean up existing instance if present\n if (!isActive) {\n if (instance && el.$__element) {\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n }\n return\n }\n\n const text = resolveContent(binding.value, el)\n\n if (!text.body && !text.title) {\n // Clean up if no content\n if (instance && el.$__element) {\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n }\n return\n }\n\n // If instance doesn't exist, this is a transition from inactive/no-content to active\n // Initialize the instance now (similar to mounted)\n if (!instance) {\n instance = initDirectiveInstance(el, propertyName, uid, binding)\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n bind(el, binding, props)\n return\n }\n\n // Check if binding changed for THIS instance\n if (!hasBindingChanged(instance, binding)) return\n\n // Prevent race conditions during update\n if (instance.destroying) return\n\n const props = buildProps\n ? buildProps(text, defaultsMap?.[componentDefaultsKey], binding, el)\n : {\n ...(defaultsMap?.[componentDefaultsKey] || undefined),\n ...resolveDirectiveProps(binding, el),\n ...text,\n }\n\n // Update props in-place so the tooltip stays visible if it was open\n updateBind(el, binding, props)\n\n // Update THIS instance's cache\n updateBindingCache(instance, binding)\n },\n\n beforeUnmount(el, binding) {\n const uid = getDirectiveUid(binding)\n const instance = getDirectiveInstance(el, propertyName, uid)\n\n if (!instance) return\n\n unbind(el)\n cleanupDirectiveInstance(el, propertyName, uid)\n },\n }\n}\n"],"mappings":";;;;;;;;AAqCA,SAAgB,gBAAgB,SAAmC;CACjE,IAAI,CAAC,QAAQ,UACX,MAAM,IAAI,MAAM,kEAAkE;CAEpF,OAAO,QAAQ,SAAS,EAAE;AAC5B;;;;;;;;;AAUA,SAAgB,sBACd,IACA,cACA,KACA,SACwB;CAExB,MAAM,cAAc;CACpB,YAAY,gBAAgB,YAAY,iBA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;KAC7B,OAAO,EAAE;KACT,yBAAyB,IAAI,cAAc,GAAG;IAChD;IACA;GACF;GAEA,MAAM,OAAO,eAAe,QAAQ,OAAO,EAAE;GAE7C,IAAI,CAAC,KAAK,QAAQ,CAAC,KAAK,OAAO;IAE7B,IAAI,YAAY,GAAG,YAAY;KAC7B,OAAO,EAAE;KACT,yBAAyB,IAAI,cAAc,GAAG;IAChD;IACA;GACF;GAIA,IAAI,CAAC,UAAU;IACb,WAAW,sBAAsB,IAAI,cAAc,KAAK,OAAO;IAE/D,MAAM,QAAQ,aACV,WAAW,MAAM,cAAc,uBAAuB,SAAS,EAAE,IACjE;KACE,GAAI,cAAc,yBAAyB,KAAA;KAC3C,GAAG,sBAAsB,SAAS,EAAE;KACpC,GAAG;IACL;IAEJ,KAAK,IAAI,SAAS,KAAK;IACvB;GACF;GAGA,IAAI,CAAC,kBAAkB,UAAU,OAAO,GAAG;GAG3C,IAAI,SAAS,YAAY;GAEzB,MAAM,QAAQ,aACV,WAAW,MAAM,cAAc,uBAAuB,SAAS,EAAE,IACjE;IACE,GAAI,cAAc,yBAAyB,KAAA;IAC3C,GAAG,sBAAsB,SAAS,EAAE;IACpC,GAAG;GACL;GAGJ,WAAW,IAAI,SAAS,KAAK;GAG7B,mBAAmB,UAAU,OAAO;EACtC;EAEA,cAAc,IAAI,SAAS;GACzB,MAAM,MAAM,gBAAgB,OAAO;GAGnC,IAAI,CAFa,qBAAqB,IAAI,cAAc,GAEnD,GAAU;GAEf,OAAO,EAAE;GACT,yBAAyB,IAAI,cAAc,GAAG;EAChD;CACF;AACF"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "bootstrap-vue-next",
3
3
  "displayName": "BootstrapVueNext",
4
4
  "description": "Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development",
5
- "version": "1.2.3",
5
+ "version": "1.2.5",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "main": "./dist/bootstrap-vue-next.mjs",
@@ -74,35 +74,15 @@
74
74
  ],
75
75
  "private": false,
76
76
  "peerDependencies": {
77
- "@floating-ui/vue": "*",
78
77
  "@internationalized/date": "*",
79
- "@vueuse/core": "*",
80
- "@vueuse/integrations": "*",
81
78
  "bootstrap": "^5.3.0",
82
- "focus-trap": "*",
83
- "reka-ui": "*",
84
79
  "vue": "^3.5.13",
85
80
  "vue-router": "*"
86
81
  },
87
82
  "peerDependenciesMeta": {
88
- "@floating-ui/vue": {
89
- "optional": true
90
- },
91
83
  "@internationalized/date": {
92
84
  "optional": true
93
85
  },
94
- "@vueuse/core": {
95
- "optional": true
96
- },
97
- "@vueuse/integrations": {
98
- "optional": true
99
- },
100
- "focus-trap": {
101
- "optional": true
102
- },
103
- "reka-ui": {
104
- "optional": true
105
- },
106
86
  "vue-router": {
107
87
  "optional": true
108
88
  }
@@ -111,6 +91,8 @@
111
91
  "@floating-ui/core": "^1.8.0",
112
92
  "@floating-ui/vue": "^2.0.1",
113
93
  "@vueuse/core": "~14.2.1",
94
+ "@vueuse/integrations": "^14.4.0",
95
+ "focus-trap": "^8.2.2",
114
96
  "reka-ui": "^2.10.3"
115
97
  },
116
98
  "devDependencies": {
@@ -124,14 +106,12 @@
124
106
  "@vue/runtime-core": "3.5.41",
125
107
  "@vue/test-utils": "^2.4.11",
126
108
  "@vue/tsconfig": "^0.9.1",
127
- "@vueuse/integrations": "^14.4.0",
128
109
  "@vueuse/shared": "^14.4.0",
129
110
  "bootstrap": "^5.3.8",
130
111
  "eslint": "^10.8.1",
131
112
  "eslint-config-prettier": "^10.1.8",
132
113
  "eslint-plugin-oxlint": "^1.78.0",
133
114
  "eslint-plugin-vue": "^10.10.0",
134
- "focus-trap": "^8.2.2",
135
115
  "happy-dom": "^20.11.2",
136
116
  "jiti": "^2.7.0",
137
117
  "npm-run-all2": "^9.0.3",
@@ -1 +0,0 @@
1
- {"version":3,"file":"BApp-Bg5xEz8H.js","names":["$attrs","$attrs"],"sources":["../src/utils/positionClasses.ts","../src/components/BApp/BOrchestrator.vue","../src/components/BApp/BOrchestrator.vue","../src/components/BApp/BApp.vue","../src/components/BApp/BApp.vue"],"sourcesContent":["import type {ContainerPosition} from '../types/Alignment'\n\nexport const positionClasses = {\n 'top-start': 'top-0 start-0',\n 'top-center': 'top-0 start-50 translate-middle-x',\n 'top-end': 'top-0 end-0',\n 'middle-start': 'top-50 start-0 translate-middle-y',\n 'middle-center': 'top-50 start-50 translate-middle',\n 'middle-end': 'top-50 end-0 translate-middle-y',\n 'bottom-start': 'bottom-0 start-0',\n 'bottom-center': 'bottom-0 start-50 translate-middle-x',\n 'bottom-end': 'bottom-0 end-0',\n} as const satisfies Record<ContainerPosition, string>\n","<template>\n <ConditionalTeleport :to=\"teleportTo\" :disabled=\"!teleportTo\">\n <div class=\"orchestrator-container\" v-bind=\"$attrs\">\n <div\n v-for=\"(value, key) in positionedItems\"\n :key=\"key\"\n :class=\"value.class\"\n :style=\"value.style\"\n >\n <TransitionGroup :name=\"value.transitionGroupName\">\n <span\n v-for=\"{\n component,\n fns: {setRef, resolve: resolvePromise},\n props: componentProps,\n id,\n slots,\n options,\n } in value.items\"\n :key=\"id\"\n >\n <component\n :is=\"component\"\n v-bind=\"componentProps\"\n :ref=\"setRef\"\n initial-animation\n :teleport-disabled=\"true\"\n @hide=\"\n (e: BvTriggerableEvent) => {\n setEventOk(e)\n componentProps.onHide?.(e)\n if (e.defaultPrevented) {\n return\n }\n if (options?.resolveOnHide) {\n resolvePromise(e)\n }\n }\n \"\n @hidden=\"\n (e: BvTriggerableEvent) => {\n setEventOk(e)\n componentProps.onHidden?.(e)\n if (e.defaultPrevented) {\n return\n }\n if (!options?.resolveOnHide) {\n resolvePromise(e)\n }\n }\n \"\n >\n <template v-for=\"(comp, slot) in slots\" #[slot]=\"scope\" :key=\"slot\">\n <component :is=\"comp\" v-bind=\"scope\" />\n </template>\n </component>\n </span>\n </TransitionGroup>\n </div>\n </div>\n </ConditionalTeleport>\n</template>\n\n<script setup lang=\"ts\">\nimport {computed, inject, watch} from 'vue'\nimport {warn} from '../../utils/console'\nimport {orchestratorRegistryKey, type OrchestratorStoreObject} from '../../utils/keys'\nimport {positionClasses} from '../../utils/positionClasses'\nimport type {BvTriggerableEvent} from '../../utils'\nimport type {BOrchestratorProps, ContainerPosition} from '../../types'\nimport ConditionalTeleport from '../ConditionalTeleport.vue'\nimport type {ValueInMapRecord} from '../../composables/orchestratorShared'\n\nconst setEventOk = (event: BvTriggerableEvent): void => {\n event.ok = event.trigger === 'ok' ? true : event.trigger === 'cancel' ? false : null\n}\n\nconst props = withDefaults(defineProps<BOrchestratorProps>(), {\n noPopovers: false,\n noToasts: false,\n noModals: false,\n appendToast: false,\n filter: undefined,\n})\n\nconst orchestratorRegistry = inject(orchestratorRegistryKey, null)\n\nif (orchestratorRegistry) {\n if (!orchestratorRegistry._isOrchestratorInstalled.value) {\n orchestratorRegistry._setOrchestratorInstalled(true)\n }\n} else {\n warn(\n 'BOrchestrator',\n 'The orchestrator registry not found. Please use BApp, useRegistry or provide the plugin.'\n )\n}\n\nwatch(\n () => props.appendToast,\n (value) => {\n orchestratorRegistry?._setToastAppend(value)\n },\n {immediate: true}\n)\n\nconst items = computed(() => {\n const store = orchestratorRegistry?.store.value\n let filteredStore = {\n tooltip:\n !props.noPopovers && store?.tooltip ? [...store.tooltip.values()].map((e) => e.value) : [],\n modal: !props.noModals && store?.modal ? [...store.modal.values()].map((e) => e.value) : [],\n popover:\n !props.noPopovers && store?.popover ? [...store.popover.values()].map((e) => e.value) : [],\n toast: !props.noToasts && store?.toast ? [...store.toast.values()].map((e) => e.value) : [],\n } satisfies Record<keyof OrchestratorStoreObject, unknown>\n\n if (props.filter) {\n filteredStore = {\n tooltip: filteredStore.tooltip.filter(props.filter),\n modal: filteredStore.modal.filter(props.filter),\n popover: filteredStore.popover.filter(props.filter),\n toast: filteredStore.toast.filter(props.filter),\n }\n }\n\n return filteredStore\n})\n\ntype ItemObject = {\n class?: string\n style?: string\n transitionGroupName?: string\n items: ValueInMapRecord<OrchestratorStoreObject[keyof OrchestratorStoreObject]>['value'][]\n}\nconst positionedItems = computed<\n Record<ContainerPosition | keyof Omit<OrchestratorStoreObject, 'toast'>, ItemObject>\n>(() => {\n const toastDefaultPosition: ContainerPosition = 'bottom-start'\n const toastDefaults = (cls: ContainerPosition) =>\n ({\n class: `${positionClasses[cls]} toast-container position-fixed p-3`,\n style: 'width: calc(var(--bs-toast-max-width, 350px) + var(--bs-toast-padding-x, 1rem) * 2)',\n transitionGroupName: 'b-list',\n }) satisfies Partial<ItemObject>\n const groupedToastItems = items.value.toast.reduce(\n (acc, item) => {\n const pos = item.props.position ?? toastDefaultPosition\n ;(acc[pos] ??= {\n ...toastDefaults(pos),\n items: [],\n }).items.push(item)\n\n return acc\n },\n {} as Record<ContainerPosition, ItemObject>\n )\n\n const allGroups = {\n ...groupedToastItems,\n modal: {items: items.value.modal},\n popover: {items: items.value.popover},\n tooltip: {items: items.value.tooltip},\n }\n\n // Skip rendering empty containers (e.g. popover/tooltip/modal groups with no active items)\n return Object.fromEntries(\n Object.entries(allGroups).filter(([, value]) => value.items.length > 0)\n ) as Record<ContainerPosition | keyof Omit<OrchestratorStoreObject, 'toast'>, ItemObject>\n})\n</script>\n","<template>\n <ConditionalTeleport :to=\"teleportTo\" :disabled=\"!teleportTo\">\n <div class=\"orchestrator-container\" v-bind=\"$attrs\">\n <div\n v-for=\"(value, key) in positionedItems\"\n :key=\"key\"\n :class=\"value.class\"\n :style=\"value.style\"\n >\n <TransitionGroup :name=\"value.transitionGroupName\">\n <span\n v-for=\"{\n component,\n fns: {setRef, resolve: resolvePromise},\n props: componentProps,\n id,\n slots,\n options,\n } in value.items\"\n :key=\"id\"\n >\n <component\n :is=\"component\"\n v-bind=\"componentProps\"\n :ref=\"setRef\"\n initial-animation\n :teleport-disabled=\"true\"\n @hide=\"\n (e: BvTriggerableEvent) => {\n setEventOk(e)\n componentProps.onHide?.(e)\n if (e.defaultPrevented) {\n return\n }\n if (options?.resolveOnHide) {\n resolvePromise(e)\n }\n }\n \"\n @hidden=\"\n (e: BvTriggerableEvent) => {\n setEventOk(e)\n componentProps.onHidden?.(e)\n if (e.defaultPrevented) {\n return\n }\n if (!options?.resolveOnHide) {\n resolvePromise(e)\n }\n }\n \"\n >\n <template v-for=\"(comp, slot) in slots\" #[slot]=\"scope\" :key=\"slot\">\n <component :is=\"comp\" v-bind=\"scope\" />\n </template>\n </component>\n </span>\n </TransitionGroup>\n </div>\n </div>\n </ConditionalTeleport>\n</template>\n\n<script setup lang=\"ts\">\nimport {computed, inject, watch} from 'vue'\nimport {warn} from '../../utils/console'\nimport {orchestratorRegistryKey, type OrchestratorStoreObject} from '../../utils/keys'\nimport {positionClasses} from '../../utils/positionClasses'\nimport type {BvTriggerableEvent} from '../../utils'\nimport type {BOrchestratorProps, ContainerPosition} from '../../types'\nimport ConditionalTeleport from '../ConditionalTeleport.vue'\nimport type {ValueInMapRecord} from '../../composables/orchestratorShared'\n\nconst setEventOk = (event: BvTriggerableEvent): void => {\n event.ok = event.trigger === 'ok' ? true : event.trigger === 'cancel' ? false : null\n}\n\nconst props = withDefaults(defineProps<BOrchestratorProps>(), {\n noPopovers: false,\n noToasts: false,\n noModals: false,\n appendToast: false,\n filter: undefined,\n})\n\nconst orchestratorRegistry = inject(orchestratorRegistryKey, null)\n\nif (orchestratorRegistry) {\n if (!orchestratorRegistry._isOrchestratorInstalled.value) {\n orchestratorRegistry._setOrchestratorInstalled(true)\n }\n} else {\n warn(\n 'BOrchestrator',\n 'The orchestrator registry not found. Please use BApp, useRegistry or provide the plugin.'\n )\n}\n\nwatch(\n () => props.appendToast,\n (value) => {\n orchestratorRegistry?._setToastAppend(value)\n },\n {immediate: true}\n)\n\nconst items = computed(() => {\n const store = orchestratorRegistry?.store.value\n let filteredStore = {\n tooltip:\n !props.noPopovers && store?.tooltip ? [...store.tooltip.values()].map((e) => e.value) : [],\n modal: !props.noModals && store?.modal ? [...store.modal.values()].map((e) => e.value) : [],\n popover:\n !props.noPopovers && store?.popover ? [...store.popover.values()].map((e) => e.value) : [],\n toast: !props.noToasts && store?.toast ? [...store.toast.values()].map((e) => e.value) : [],\n } satisfies Record<keyof OrchestratorStoreObject, unknown>\n\n if (props.filter) {\n filteredStore = {\n tooltip: filteredStore.tooltip.filter(props.filter),\n modal: filteredStore.modal.filter(props.filter),\n popover: filteredStore.popover.filter(props.filter),\n toast: filteredStore.toast.filter(props.filter),\n }\n }\n\n return filteredStore\n})\n\ntype ItemObject = {\n class?: string\n style?: string\n transitionGroupName?: string\n items: ValueInMapRecord<OrchestratorStoreObject[keyof OrchestratorStoreObject]>['value'][]\n}\nconst positionedItems = computed<\n Record<ContainerPosition | keyof Omit<OrchestratorStoreObject, 'toast'>, ItemObject>\n>(() => {\n const toastDefaultPosition: ContainerPosition = 'bottom-start'\n const toastDefaults = (cls: ContainerPosition) =>\n ({\n class: `${positionClasses[cls]} toast-container position-fixed p-3`,\n style: 'width: calc(var(--bs-toast-max-width, 350px) + var(--bs-toast-padding-x, 1rem) * 2)',\n transitionGroupName: 'b-list',\n }) satisfies Partial<ItemObject>\n const groupedToastItems = items.value.toast.reduce(\n (acc, item) => {\n const pos = item.props.position ?? toastDefaultPosition\n ;(acc[pos] ??= {\n ...toastDefaults(pos),\n items: [],\n }).items.push(item)\n\n return acc\n },\n {} as Record<ContainerPosition, ItemObject>\n )\n\n const allGroups = {\n ...groupedToastItems,\n modal: {items: items.value.modal},\n popover: {items: items.value.popover},\n tooltip: {items: items.value.tooltip},\n }\n\n // Skip rendering empty containers (e.g. popover/tooltip/modal groups with no active items)\n return Object.fromEntries(\n Object.entries(allGroups).filter(([, value]) => value.items.length > 0)\n ) as Record<ContainerPosition | keyof Omit<OrchestratorStoreObject, 'toast'>, ItemObject>\n})\n</script>\n","<template>\n <BOrchestrator v-if=\"!noOrchestrator\" :append-toast=\"appendToast\" :teleport-to=\"teleportTo\" />\n <slot v-bind=\"$attrs\" />\n</template>\n\n<script setup lang=\"ts\">\nimport type {BAppProps} from '../../types'\nimport BOrchestrator from './BOrchestrator.vue'\nimport {useProvideDefaults} from '../../composables/useProvideDefaults'\nimport {useRegistry} from '../../composables/useRegistry'\nimport {useOrchestratorRegistry} from '../../composables/orchestratorShared'\nimport {toRef} from 'vue'\n\ndefineOptions({\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<BAppProps>(), {\n appendToast: false,\n teleportTo: undefined,\n defaults: undefined,\n mergeDefaults: false,\n noOrchestrator: false,\n rtl: false,\n})\n\nuseProvideDefaults(\n toRef(() => props.defaults),\n props.mergeDefaults\n)\nuseRegistry(props.rtl)\nif (!props.noOrchestrator) {\n useOrchestratorRegistry()\n}\n</script>\n","<template>\n <BOrchestrator v-if=\"!noOrchestrator\" :append-toast=\"appendToast\" :teleport-to=\"teleportTo\" />\n <slot v-bind=\"$attrs\" />\n</template>\n\n<script setup lang=\"ts\">\nimport type {BAppProps} from '../../types'\nimport BOrchestrator from './BOrchestrator.vue'\nimport {useProvideDefaults} from '../../composables/useProvideDefaults'\nimport {useRegistry} from '../../composables/useRegistry'\nimport {useOrchestratorRegistry} from '../../composables/orchestratorShared'\nimport {toRef} from 'vue'\n\ndefineOptions({\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<BAppProps>(), {\n appendToast: false,\n teleportTo: undefined,\n defaults: undefined,\n mergeDefaults: false,\n noOrchestrator: false,\n rtl: false,\n})\n\nuseProvideDefaults(\n toRef(() => props.defaults),\n props.mergeDefaults\n)\nuseRegistry(props.rtl)\nif (!props.noOrchestrator) {\n useOrchestratorRegistry()\n}\n</script>\n"],"mappings":";;;;;;;;AAEA,IAAa,kBAAkB;CAC7B,aAAa;CACb,cAAc;CACd,WAAW;CACX,gBAAgB;CAChB,iBAAiB;CACjB,cAAc;CACd,gBAAgB;CAChB,iBAAiB;CACjB,cAAc;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EC6DA,MAAM,cAAc,UAAoC;GACtD,MAAM,KAAK,MAAM,YAAY,OAA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