bitboss-ui 0.1.2 → 0.1.4

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 (284) hide show
  1. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -0
  2. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +151 -0
  3. package/dist/components/BbPopover/BbPopover.vue.d.ts +96 -0
  4. package/dist/components/BbRatio/BbRatio.vue.d.ts +12 -0
  5. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +104 -98
  8. package/dist/index.js.map +1 -1
  9. package/dist/index10.js +123 -95
  10. package/dist/index10.js.map +1 -1
  11. package/dist/index100.js +43 -3
  12. package/dist/index100.js.map +1 -1
  13. package/dist/index101.js +2 -2
  14. package/dist/index102.js +2 -2
  15. package/dist/index103.js +2 -2
  16. package/dist/index104.js +2 -2
  17. package/dist/index105.js +2 -2
  18. package/dist/index106.js +2 -2
  19. package/dist/index107.js +2 -2
  20. package/dist/index108.js +2 -2
  21. package/dist/index109.js +2 -2
  22. package/dist/index110.js +2 -2
  23. package/dist/index111.js +2 -2
  24. package/dist/index112.js +2 -2
  25. package/dist/index113.js +2 -2
  26. package/dist/index114.js +2 -2
  27. package/dist/index115.js +2 -2
  28. package/dist/index116.js +2 -2
  29. package/dist/index117.js +2 -2
  30. package/dist/index118.js +2 -2
  31. package/dist/index119.js +3 -2
  32. package/dist/index119.js.map +1 -1
  33. package/dist/index12.js +4 -4
  34. package/dist/index120.js +2 -2
  35. package/dist/index121.js +3 -2
  36. package/dist/index121.js.map +1 -1
  37. package/dist/index123.js +2 -2
  38. package/dist/index124.js +2 -3
  39. package/dist/index124.js.map +1 -1
  40. package/dist/index125.js +2 -2
  41. package/dist/index126.js +2 -3
  42. package/dist/index126.js.map +1 -1
  43. package/dist/index127.js +2 -2
  44. package/dist/index128.js +2 -2
  45. package/dist/index129.js +3 -2
  46. package/dist/index129.js.map +1 -1
  47. package/dist/index130.js +2 -2
  48. package/dist/index131.js +2 -2
  49. package/dist/index132.js +2 -2
  50. package/dist/index133.js +2 -2
  51. package/dist/index134.js +2 -3
  52. package/dist/index134.js.map +1 -1
  53. package/dist/index135.js +2 -2
  54. package/dist/index136.js +2 -2
  55. package/dist/index137.js +2 -2
  56. package/dist/index138.js +2 -2
  57. package/dist/index139.js +2 -2
  58. package/dist/index14.js +6 -6
  59. package/dist/index140.js +3 -2
  60. package/dist/index140.js.map +1 -1
  61. package/dist/index141.js +2 -2
  62. package/dist/index142.js +3 -2
  63. package/dist/index142.js.map +1 -1
  64. package/dist/index145.js +2 -2
  65. package/dist/index146.js +2 -3
  66. package/dist/index146.js.map +1 -1
  67. package/dist/index147.js +2 -2
  68. package/dist/index148.js +2 -3
  69. package/dist/index148.js.map +1 -1
  70. package/dist/index149.js +2 -2
  71. package/dist/index150.js +2 -2
  72. package/dist/index151.js +3 -2
  73. package/dist/index151.js.map +1 -1
  74. package/dist/index152.js +3 -4
  75. package/dist/index152.js.map +1 -1
  76. package/dist/index153.js +3 -8
  77. package/dist/index153.js.map +1 -1
  78. package/dist/index154.js +3 -2
  79. package/dist/index154.js.map +1 -1
  80. package/dist/index155.js +3 -2
  81. package/dist/index155.js.map +1 -1
  82. package/dist/index156.js +3 -5
  83. package/dist/index156.js.map +1 -1
  84. package/dist/index157.js +348 -17
  85. package/dist/index157.js.map +1 -1
  86. package/dist/index158.js +131 -17
  87. package/dist/index158.js.map +1 -1
  88. package/dist/index159.js +5 -29
  89. package/dist/index159.js.map +1 -1
  90. package/dist/index16.js +1 -1
  91. package/dist/index160.js +19 -2
  92. package/dist/index160.js.map +1 -1
  93. package/dist/index162.js +2 -2
  94. package/dist/index162.js.map +1 -1
  95. package/dist/index163.js +184 -14
  96. package/dist/index163.js.map +1 -1
  97. package/dist/index164.js +2 -13
  98. package/dist/index164.js.map +1 -1
  99. package/dist/index165.js +23 -2
  100. package/dist/index165.js.map +1 -1
  101. package/dist/index166.js +328 -3
  102. package/dist/index166.js.map +1 -1
  103. package/dist/index167.js +16 -2
  104. package/dist/index167.js.map +1 -1
  105. package/dist/index168.js +12 -5
  106. package/dist/index168.js.map +1 -1
  107. package/dist/index169.js +2 -350
  108. package/dist/index169.js.map +1 -1
  109. package/dist/index170.js +2 -134
  110. package/dist/index170.js.map +1 -1
  111. package/dist/index171.js +2 -186
  112. package/dist/index171.js.map +1 -1
  113. package/dist/index172.js +4 -23
  114. package/dist/index172.js.map +1 -1
  115. package/dist/index173.js +8 -328
  116. package/dist/index173.js.map +1 -1
  117. package/dist/index174.js +20 -2
  118. package/dist/index174.js.map +1 -1
  119. package/dist/index175.js +29 -21
  120. package/dist/index175.js.map +1 -1
  121. package/dist/index176.js +2 -3
  122. package/dist/index176.js.map +1 -1
  123. package/dist/index177.js +3 -3
  124. package/dist/index177.js.map +1 -1
  125. package/dist/index178.js +6 -38
  126. package/dist/index178.js.map +1 -1
  127. package/dist/index179.js +2 -28
  128. package/dist/index179.js.map +1 -1
  129. package/dist/index18.js +2 -2
  130. package/dist/index180.js +2 -13
  131. package/dist/index180.js.map +1 -1
  132. package/dist/index181.js +20 -8
  133. package/dist/index181.js.map +1 -1
  134. package/dist/index182.js +3 -96
  135. package/dist/index182.js.map +1 -1
  136. package/dist/index183.js +3 -4
  137. package/dist/index183.js.map +1 -1
  138. package/dist/index184.js +38 -295
  139. package/dist/index184.js.map +1 -1
  140. package/dist/index185.js +9 -6
  141. package/dist/index185.js.map +1 -1
  142. package/dist/index186.js +96 -2
  143. package/dist/index186.js.map +1 -1
  144. package/dist/index187.js +28 -2
  145. package/dist/index187.js.map +1 -1
  146. package/dist/index188.js +13 -2
  147. package/dist/index188.js.map +1 -1
  148. package/dist/index189.js +6 -2
  149. package/dist/index189.js.map +1 -1
  150. package/dist/index190.js +2 -235
  151. package/dist/index190.js.map +1 -1
  152. package/dist/index191.js +294 -88
  153. package/dist/index191.js.map +1 -1
  154. package/dist/index192.js +2 -2
  155. package/dist/index193.js +2 -117
  156. package/dist/index193.js.map +1 -1
  157. package/dist/index194.js +111 -100
  158. package/dist/index194.js.map +1 -1
  159. package/dist/index195.js +105 -78
  160. package/dist/index195.js.map +1 -1
  161. package/dist/index196.js +4 -224
  162. package/dist/index196.js.map +1 -1
  163. package/dist/index197.js +226 -249
  164. package/dist/index197.js.map +1 -1
  165. package/dist/index198.js +2 -38
  166. package/dist/index198.js.map +1 -1
  167. package/dist/index199.js +2 -2
  168. package/dist/index199.js.map +1 -1
  169. package/dist/index20.js +4 -4
  170. package/dist/index200.js +89 -2
  171. package/dist/index200.js.map +1 -1
  172. package/dist/index201.js +79 -2
  173. package/dist/index201.js.map +1 -1
  174. package/dist/index202.js +49 -8
  175. package/dist/index202.js.map +1 -1
  176. package/dist/index203.js +223 -5
  177. package/dist/index203.js.map +1 -1
  178. package/dist/index204.js +261 -0
  179. package/dist/index204.js.map +1 -0
  180. package/dist/index205.js +41 -0
  181. package/dist/index205.js.map +1 -0
  182. package/dist/index206.js +5 -0
  183. package/dist/index206.js.map +1 -0
  184. package/dist/index207.js +5 -0
  185. package/dist/index207.js.map +1 -0
  186. package/dist/index208.js +12 -0
  187. package/dist/index208.js.map +1 -0
  188. package/dist/index209.js +9 -0
  189. package/dist/index209.js.map +1 -0
  190. package/dist/index210.js +5 -0
  191. package/dist/index210.js.map +1 -0
  192. package/dist/index211.js +14 -0
  193. package/dist/index211.js.map +1 -0
  194. package/dist/index212.js +434 -0
  195. package/dist/index212.js.map +1 -0
  196. package/dist/index213.js +12 -0
  197. package/dist/index213.js.map +1 -0
  198. package/dist/index214.js +203 -0
  199. package/dist/index214.js.map +1 -0
  200. package/dist/index22.js +14 -14
  201. package/dist/index24.js +4 -4
  202. package/dist/index26.js +2 -2
  203. package/dist/index28.js +4 -4
  204. package/dist/index34.js +2 -2
  205. package/dist/index36.js +50 -37
  206. package/dist/index36.js.map +1 -1
  207. package/dist/index38.js +39 -39
  208. package/dist/index38.js.map +1 -1
  209. package/dist/index4.js +2 -2
  210. package/dist/index40.js +36 -82
  211. package/dist/index40.js.map +1 -1
  212. package/dist/index42.js +44 -57
  213. package/dist/index42.js.map +1 -1
  214. package/dist/index44.js +98 -79
  215. package/dist/index44.js.map +1 -1
  216. package/dist/index46.js +79 -81
  217. package/dist/index46.js.map +1 -1
  218. package/dist/index48.js +80 -40
  219. package/dist/index48.js.map +1 -1
  220. package/dist/index50.js +40 -283
  221. package/dist/index50.js.map +1 -1
  222. package/dist/index52.js +279 -95
  223. package/dist/index52.js.map +1 -1
  224. package/dist/index54.js +98 -212
  225. package/dist/index54.js.map +1 -1
  226. package/dist/index56.js +213 -44
  227. package/dist/index56.js.map +1 -1
  228. package/dist/index58.js +45 -40
  229. package/dist/index58.js.map +1 -1
  230. package/dist/index59.js +2 -96
  231. package/dist/index59.js.map +1 -1
  232. package/dist/index6.js +4 -4
  233. package/dist/index60.js +44 -2
  234. package/dist/index60.js.map +1 -1
  235. package/dist/index61.js +89 -211
  236. package/dist/index61.js.map +1 -1
  237. package/dist/index63.js +210 -130
  238. package/dist/index63.js.map +1 -1
  239. package/dist/index65.js +134 -18
  240. package/dist/index65.js.map +1 -1
  241. package/dist/index67.js +145 -74
  242. package/dist/index67.js.map +1 -1
  243. package/dist/index69.js +18 -98
  244. package/dist/index69.js.map +1 -1
  245. package/dist/index71.js +77 -17
  246. package/dist/index71.js.map +1 -1
  247. package/dist/index73.js +48 -66
  248. package/dist/index73.js.map +1 -1
  249. package/dist/index75.js +21 -78
  250. package/dist/index75.js.map +1 -1
  251. package/dist/index77.js +77 -46
  252. package/dist/index77.js.map +1 -1
  253. package/dist/index79.js +44 -61
  254. package/dist/index79.js.map +1 -1
  255. package/dist/index8.js +188 -181
  256. package/dist/index8.js.map +1 -1
  257. package/dist/index81.js +82 -106
  258. package/dist/index81.js.map +1 -1
  259. package/dist/index83.js +88 -370
  260. package/dist/index83.js.map +1 -1
  261. package/dist/index85.js +106 -74
  262. package/dist/index85.js.map +1 -1
  263. package/dist/index87.js +371 -68
  264. package/dist/index87.js.map +1 -1
  265. package/dist/index89.js +75 -111
  266. package/dist/index89.js.map +1 -1
  267. package/dist/index91.js +76 -87
  268. package/dist/index91.js.map +1 -1
  269. package/dist/index93.js +111 -32
  270. package/dist/index93.js.map +1 -1
  271. package/dist/index94.js +2 -37
  272. package/dist/index94.js.map +1 -1
  273. package/dist/index95.js +87 -42
  274. package/dist/index95.js.map +1 -1
  275. package/dist/index96.js +2 -43
  276. package/dist/index96.js.map +1 -1
  277. package/dist/index97.js +38 -3
  278. package/dist/index97.js.map +1 -1
  279. package/dist/index98.js +37 -3
  280. package/dist/index98.js.map +1 -1
  281. package/dist/index99.js +47 -3
  282. package/dist/index99.js.map +1 -1
  283. package/dist/style.css +1 -1
  284. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index48.js","sources":["../src/components/BbDialog/BbDialog.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, renderList as _renderList, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed } from \"vue\";\nimport BaseDialog from \"../BaseDialog/BaseDialog.vue\";\nimport type { Classes } from \"@/types/Classes\";\nimport type { BaseDialogProps } from \"../BaseDialog/BaseDialog.vue\";\nexport type { BaseDialogProps as BbDialogProps } from \"../BaseDialog/BaseDialog.vue\";\n\nexport type Sizes = {\n sm: number;\n md: number;\n lg: number;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDialog',\n props: {\n closeLabel: {},\n color: {},\n compact: { type: Boolean },\n description: {},\n disabled: { type: Boolean },\n eager: { type: Boolean },\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] },\n panelClasses: {},\n overlayClasses: {},\n persistent: { type: Boolean },\n showClose: { type: Boolean, default: true },\n size: {},\n title: {},\n transition: {},\n transitionDuration: {}\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n\n\nconst panelClasses = computed<Classes>(() => {\n let base: Classes = [\"bb-dialog\"];\n if (props.panelClasses) {\n base = base.concat(props.panelClasses);\n }\n return base;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseDialog, _mergeProps(_ctx.$props, {\n panelClasses: panelClasses.value,\n onShown: _cache[0] || (_cache[0] = (...params: any[]) => _ctx.$emit('shown', ...params)),\n onHidden: _cache[1] || (_cache[1] = (...params: any[]) => _ctx.$emit('hidden', ...params)),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = (...params: any[]) => _ctx.$emit('update:modelValue', ...params))\n }), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"panelClasses\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","panelClasses","computed","base","_ctx","_cache","_openBlock","_createBlock","BaseDialog","_mergeProps","params","_createSlots","_renderList","_","name","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps"],"mappings":";;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,OAAO,CAAC;AAAA,IACR,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,YAAY,EAAE,MAAM,CAAC,SAAS,IAAI,EAAE;AAAA,IACpC,cAAc,CAAC;AAAA,IACf,gBAAgB,CAAC;AAA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ePickerInput/BbDatePickerInput.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, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseDatePickerInput from \"../BaseDatePickerInput/BaseDatePickerInput.vue\";\nimport type { BaseDatePickerInputEvents, BaseDatePickerInputProps } from \"../BaseDatePickerInput/BaseDatePickerInput.vue\";\n\nexport interface BbDatePickerInputProps {\n autocomplete?: string;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n firstDayOfWeek?: number;\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n inputPosition?: \"left\" | \"center\" | \"right\";\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n labelTag?: string;\n modelValue: string | null | string[];\n name?: string;\n placeholder?: string;\n range?: boolean;\n readonly?: boolean;\n reverse?: boolean;\n tag?: string;\n width?: string | number, \n}\n\nexport type BbDatePickerInputEvents = BaseDatePickerInputEvents\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDatePickerInput',\n props: {\n autocomplete: {},\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n firstDayOfWeek: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: {},\n label: {},\n labelPosition: {},\n labelTag: {},\n modelValue: {},\n name: {},\n placeholder: {},\n range: { type: Boolean },\n readonly: { type: Boolean },\n reverse: { type: Boolean },\n tag: {},\n width: {}\n },\n emits: [\"update:modelValue\", \"inactive\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n \"onInactive\": () => emit(\"inactive\"),\n \"onUpdate:modelValue\": (value: BaseDatePickerInputProps['modelValue']) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-date-picker-input\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n inputPosition: _ctx.inputPosition,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({\n id,\n name,\n hasErrors,\n }) => [\n _createVNode(BaseDatePickerInput, _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n firstDayOfWeek: _ctx.firstDayOfWeek,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n range: _ctx.range,\n readonly: _ctx.readonly,\n width: _ctx.width\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"autocomplete\", \"autofocus\", \"disabled\", \"firstDayOfWeek\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"range\", \"readonly\", \"width\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseDatePickerInput","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAkCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,gBAAgB,CAAC;AAAA,IACjB,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,CAAC;AAAA,IAChB,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,KAAK,CAAC;AAAA,IACN,OAAO,CAAC;AAAA,EACV;AAAA,EACA,OAAO,CAAC,qBAAqB,UAAU;AAAA,EACvC,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAShC,UAAMC,IAAiB;AAAA,MACrB,YAAc,MAAMD,EAAK,UAAU;AAAA,MACnC,uBAAuB,CAACE,MAAkDF,EAAK,qBAAqBE,CAAK;AAAA,IAAA;AAGpG,WAAA,CAACC,GAAUC,OACRC,EAAA,GAAcC,EAAaC,GAAoB;AAAA,MACrD,OAAO;AAAA,MACP,WAAWJ,EAAK;AAAA,MAChB,QAAQA,EAAK;AAAA,MACb,WAAWA,EAAK;AAAA,MAChB,WAAWA,EAAK;AAAA,MAChB,IAAIA,EAAK;AAAA,MACT,eAAeA,EAAK;AAAA,MACpB,OAAO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AC;"}
package/dist/index50.js CHANGED
@@ -1,291 +1,48 @@
1
- import { defineComponent as G, computed as I, ref as h, openBlock as D, createElementBlock as M, mergeProps as J, createElementVNode as $, renderSlot as w, normalizeProps as Q, guardReactiveProps as W, unref as b, createBlock as X, Teleport as Y, normalizeClass as q, normalizeStyle as K, Fragment as A, renderList as Z, createVNode as x, withCtx as ee, createTextVNode as oe, toDisplayString as ne } from "vue";
2
- import { findRightIndex as S } from "./index181.js";
3
- import { nanoid as te } from "./index165.js";
4
- import { useFloating as le } from "./index182.js";
5
- import { wait as B } from "./index167.js";
6
- import ae from "./index2.js";
7
- import "./index3.js";
8
- import O from "./index172.js";
9
- import { autoUpdate as se } from "./index169.js";
10
- import { flip as ie, shift as re } from "./index173.js";
11
- const de = ["id"], ue = /* @__PURE__ */ $("span", { class: "bb-dropdown__arrow" }, null, -1), ce = { class: "bb-dropdown__items-container" }, _e = /* @__PURE__ */ G({
12
- __name: "BbDropdown",
1
+ import { defineComponent as p, computed as i, openBlock as d, createBlock as m, mergeProps as u, createSlots as f, renderList as B, withCtx as C, renderSlot as y, normalizeProps as $, guardReactiveProps as b } from "vue";
2
+ import g from "./index12.js";
3
+ import "./index13.js";
4
+ const v = /* @__PURE__ */ p({
5
+ __name: "BbDialog",
13
6
  props: {
14
- block: { type: Boolean },
7
+ closeLabel: {},
8
+ color: {},
9
+ compact: { type: Boolean },
10
+ description: {},
15
11
  disabled: { type: Boolean },
16
- items: {},
17
- placement: { default: "bottom" },
18
- theme: { default: "default" },
19
- transitionDuration: { default: 150 },
20
- width: { default: 200 }
12
+ eager: { type: Boolean },
13
+ fullscreen: { type: Boolean },
14
+ modelValue: { type: [Boolean, null] },
15
+ panelClasses: {},
16
+ overlayClasses: {},
17
+ persistent: { type: Boolean },
18
+ showClose: { type: Boolean, default: !0 },
19
+ size: {},
20
+ title: {},
21
+ transition: {},
22
+ transitionDuration: {}
21
23
  },
22
- setup(P) {
23
- const u = P, p = `bb_${te()}`, v = I(() => {
24
- let o = u.items.findIndex((e) => !e.disabled), t = S(
25
- u.items,
26
- (e) => !e.disabled
27
- );
28
- return u.items.map((e, n) => {
29
- const d = `${p}-item-${e.key}`, j = async () => {
30
- await g();
31
- const a = document.querySelector(`#${p}`);
32
- if (a)
33
- a instanceof HTMLElement && a.focus();
34
- else
35
- return;
36
- e.handler && e.handler();
37
- }, R = (a) => {
38
- if (a.target instanceof HTMLElement && a.target.dataset.dropdownItem) {
39
- if (!l.value)
40
- return;
41
- if (a.key === "ArrowDown") {
42
- if (a.preventDefault(), l.value && n !== t) {
43
- const f = l.value.querySelector(
44
- O.map((k) => `#${d} ~ ${k}`).join(",")
45
- );
46
- f && f instanceof HTMLElement && f.focus();
47
- }
48
- } else if (a.key === "ArrowUp") {
49
- if (a.preventDefault(), l.value && n !== o) {
50
- const f = S(u.items, (E, T) => T < n && !E.disabled), _ = Array.from(
51
- l.value.querySelectorAll(".bb-dropdown__item")
52
- )[f];
53
- _ && _ instanceof HTMLElement && _.focus();
54
- }
55
- } else if (a.key === "Tab") {
56
- if (n === t && !a.shiftKey) {
57
- const f = O.join(","), k = Array.from(
58
- document.querySelectorAll(f)
59
- ), _ = k.findIndex(
60
- (T) => T.id === p
61
- ), E = k[_ + 1];
62
- if (E)
63
- E instanceof HTMLElement && (a.preventDefault(), g(), E.focus());
64
- else
65
- return;
66
- } else if (n === o && a.shiftKey) {
67
- const f = document.querySelector(`#${p}`);
68
- if (f)
69
- f instanceof HTMLElement && (a.preventDefault(), f.focus());
70
- else
71
- return;
72
- }
73
- }
74
- }
75
- };
76
- return {
77
- disabled: e.disabled,
78
- href: e.href,
79
- id: d,
80
- key: e.key,
81
- onClick: j,
82
- onKeydown: R,
83
- text: e.text,
84
- to: e.to
85
- };
86
- });
87
- }), y = h(), l = h(), { floatingStyles: z, placement: m } = le(y, l, {
88
- placement: u.placement,
89
- whileElementsMounted: se,
90
- middleware: [ie(), re({ padding: 6 })]
91
- }), s = h(!1), i = h(!1), r = h(!1), c = h(!0), N = () => {
92
- s.value || r.value || (i.value ? g() : L());
93
- }, U = async (o) => {
94
- let t = u.items.findIndex((n) => !n.disabled), e = S(
95
- u.items,
96
- (n) => !n.disabled
97
- );
98
- if (o.key === "ArrowDown") {
99
- if (o.preventDefault(), r.value || s.value)
100
- return;
101
- if (c.value && await L(), l.value && v.value.length && t !== -1) {
102
- const n = v.value[t].id, d = l.value.querySelector(`#${n}`);
103
- d && d instanceof HTMLElement && d.focus();
104
- }
105
- } else if (o.key === "ArrowUp") {
106
- if (o.preventDefault(), r.value || s.value)
107
- return;
108
- if (c.value && await L(), l.value && v.value.length && e !== -1) {
109
- const n = v.value[e].id, d = l.value.querySelector(`#${n}`);
110
- d && d instanceof HTMLElement && d.focus();
111
- }
112
- } else if (o.key === "Tab" && i.value && !o.shiftKey && (o.preventDefault(), l.value && v.value.length && t !== -1)) {
113
- const n = v.value[t].id, d = l.value.querySelector(`#${n}`);
114
- d && d instanceof HTMLElement && d.focus();
115
- }
116
- }, H = (o) => {
117
- const t = o.target;
118
- if (t && t instanceof HTMLElement) {
119
- let e = !0;
120
- y.value && y.value.contains(t) && (e = !1), l.value && l.value.contains(t) && (e = !1), e && g();
121
- }
122
- }, C = (o) => {
123
- const t = o.target;
124
- if (t && t instanceof HTMLElement) {
125
- let e = !0;
126
- y.value && y.value.contains(t) && (e = !1), l.value && l.value.contains(t) && (e = !1), e && g();
127
- }
128
- }, F = (o) => {
129
- var t;
130
- if (i.value && o.key === "Escape") {
131
- if (((t = document.activeElement) == null ? void 0 : t.id) !== p) {
132
- const e = document.querySelector(`#${p}`);
133
- e instanceof HTMLElement && e.focus();
134
- }
135
- g();
136
- }
137
- }, L = async () => {
138
- c.value = !1, r.value = !1, s.value = !0, await B(50), i.value = !0, s.value = !1, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", C, { passive: !0 }), document.addEventListener("keydown", F, { passive: !0 });
139
- }, g = async () => {
140
- i.value = !1, s.value = !1, r.value = !0, await B(u.transitionDuration), r.value = !1, c.value = !0, document.removeEventListener("click", H), document.removeEventListener("focusin", C), document.removeEventListener("keydown", F);
141
- }, V = I(() => ({
142
- class: {
143
- "bb-dropdown--block": u.block,
144
- [`bb-dropdown--theme-${u.theme}`]: u.theme
145
- }
146
- }));
147
- return (o, t) => (D(), M("span", J({ class: "bb-dropdown" }, V.value), [
148
- $("span", {
149
- class: "bb-dropdown__wrapper",
150
- ref_key: "wrapper",
151
- ref: y
152
- }, [
153
- w(o.$slots, "activator", Q(W({
154
- props: {
155
- "aria-expanded": i.value,
156
- "aria-controls": `menu_${p}`,
157
- id: p,
158
- onClick: N,
159
- onKeydown: U,
160
- disabled: o.disabled
161
- },
162
- closed: c.value,
163
- closing: r.value,
164
- disabled: o.disabled,
165
- open: i.value,
166
- opening: s.value,
167
- placement: b(m)
168
- })))
169
- ], 512),
170
- (D(), X(Y, { to: "body" }, [
171
- $("span", {
172
- class: q(["bb-dropdown__bubble-container", {
173
- [`bb-dropdown__bubble-container--${b(m)}`]: !0,
174
- [`bb-dropdown__bubble-container--${o.theme}`]: o.theme,
175
- "bb-dropdown__bubble-container--hidden": c.value,
176
- "bb-dropdown__bubble-container--closing": r.value,
177
- "bb-dropdown__bubble-container--opening": s.value,
178
- "bb-dropdown__bubble-container--open": i.value
179
- }]),
180
- ref_key: "content",
181
- ref: l,
182
- style: K({
183
- ...b(z),
184
- transitionDuration: `${u.transitionDuration}ms`
185
- }),
186
- "aria-labelledby": p,
187
- "aria-role": "menu",
188
- id: `menu_${p}`
189
- }, [
190
- ue,
191
- $("span", {
192
- class: "bb-dropdown__bubble",
193
- style: K({ width: `${o.width}px` })
194
- }, [
195
- w(o.$slots, "prepend", {
196
- closed: c.value,
197
- closing: r.value,
198
- disabled: o.disabled,
199
- open: i.value,
200
- opening: s.value,
201
- placement: b(m)
202
- }),
203
- $("span", ce, [
204
- (D(!0), M(A, null, Z(v.value, (e, n) => (D(), M(A, {
205
- key: e.key
206
- }, [
207
- w(o.$slots, "item:prepend", {
208
- closed: c.value,
209
- closing: r.value,
210
- disabled: o.disabled || e.disabled,
211
- index: n,
212
- item: o.items[n],
213
- open: i.value,
214
- opening: s.value,
215
- placement: b(m),
216
- text: e.text
217
- }),
218
- x(ae, {
219
- class: q(["bb-dropdown__item", {
220
- "bb-dropdown__item--first": n === 0,
221
- "bb-dropdown__item--last": n === o.items.length - 1
222
- }]),
223
- "aria-role": "menuitem",
224
- "data-dropdown-item": !0,
225
- disabled: e.disabled,
226
- href: e.href,
227
- id: e.id,
228
- to: e.to,
229
- onClick: e.onClick,
230
- onKeydown: e.onKeydown
231
- }, {
232
- default: ee(() => [
233
- w(o.$slots, e.key, {
234
- closed: c.value,
235
- closing: r.value,
236
- disabled: o.disabled || e.disabled,
237
- index: n,
238
- item: e,
239
- open: i.value,
240
- opening: s.value,
241
- placement: b(m),
242
- text: e.text
243
- }, () => [
244
- w(o.$slots, "item", {
245
- closed: c.value,
246
- closing: r.value,
247
- disabled: o.disabled || e.disabled,
248
- index: n,
249
- item: e,
250
- open: i.value,
251
- opening: s.value,
252
- placement: b(m),
253
- text: e.text
254
- }, () => [
255
- oe(ne(e.text), 1)
256
- ])
257
- ])
258
- ]),
259
- _: 2
260
- }, 1032, ["class", "disabled", "href", "id", "to", "onClick", "onKeydown"]),
261
- w(o.$slots, "item:append", {
262
- closed: c.value,
263
- closing: r.value,
264
- disabled: o.disabled || e.disabled,
265
- index: n,
266
- item: o.items[n],
267
- open: i.value,
268
- opening: s.value,
269
- placement: b(m),
270
- text: e.text
271
- })
272
- ], 64))), 128))
273
- ]),
274
- w(o.$slots, "append", {
275
- disabled: o.disabled,
276
- placement: b(m),
277
- open: i.value,
278
- opening: s.value,
279
- closing: r.value,
280
- closed: c.value
281
- })
282
- ], 4)
283
- ], 14, de)
284
- ]))
285
- ], 16));
24
+ emits: ["shown", "hidden", "update:modelValue"],
25
+ setup(t) {
26
+ const l = t, a = i(() => {
27
+ let e = ["bb-dialog"];
28
+ return l.panelClasses && (e = e.concat(l.panelClasses)), e;
29
+ });
30
+ return (e, o) => (d(), m(g, u(e.$props, {
31
+ panelClasses: a.value,
32
+ onShown: o[0] || (o[0] = (...s) => e.$emit("shown", ...s)),
33
+ onHidden: o[1] || (o[1] = (...s) => e.$emit("hidden", ...s)),
34
+ "onUpdate:modelValue": o[2] || (o[2] = (...s) => e.$emit("update:modelValue", ...s))
35
+ }), f({ _: 2 }, [
36
+ B(e.$slots, (s, n) => ({
37
+ name: n,
38
+ fn: C((r) => [
39
+ y(e.$slots, n, $(b(r)))
40
+ ])
41
+ }))
42
+ ]), 1040, ["panelClasses"]));
286
43
  }
287
44
  });
288
45
  export {
289
- _e as default
46
+ v as default
290
47
  };
291
48
  //# sourceMappingURL=index50.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.js","sources":["../src/components/BbDropdown/BbDropdown.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, normalizeStyle as _normalizeStyle, Teleport as _Teleport, createBlock as _createBlock, mergeProps as _mergeProps } from \"vue\"\n\nconst _hoisted_1 = [\"id\"]\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-dropdown__arrow\" }, null, -1)\nconst _hoisted_3 = { class: \"bb-dropdown__items-container\" }\n\nimport { computed, ref } from \"vue\";\nimport { findRightIndex } from \"@/utilities/functions/findRightIndex\";\nimport { nanoid } from \"nanoid\";\nimport { useFloating, autoUpdate, flip, shift } from \"@floating-ui/vue\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport selectors from \"focusable-selectors\";\nimport type { RouteLocationRaw } from \"vue-router\";\n\nexport type BbDropdownProps = {\n block?: boolean;\n disabled?: boolean;\n items: Item[];\n placement?:\n | \"top\"\n | \"top-start\"\n | \"top-end\"\n | \"right\"\n | \"right-start\"\n | \"right-end\"\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"left\"\n | \"left-start\"\n | \"left-end\";\n theme?: string;\n transitionDuration?: number;\n width?: number;\n};\n\nexport type Item = {\n disabled?: boolean;\n handler?: (...args: any[]) => any;\n href?: string;\n key: string;\n text: string;\n to?: RouteLocationRaw;\n};\n\ntype MappedItem = {\n disabled: Item[\"disabled\"];\n href: Item[\"href\"];\n id: string;\n key: Item[\"key\"];\n onClick: (...args: any[]) => any;\n onKeydown: (event: KeyboardEvent) => void;\n text: Item[\"text\"];\n to: Item[\"to\"];\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDropdown',\n props: {\n block: { type: Boolean },\n disabled: { type: Boolean },\n items: {},\n placement: { default: \"bottom\" },\n theme: { default: \"default\" },\n transitionDuration: { default: 150 },\n width: { default: 200 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst id = `bb_${nanoid()}`;\n\nconst mappedItems = computed<MappedItem[]>(() => {\n let firstFocusableIndex: number = props.items.findIndex((el) => !el.disabled);\n let lastFocusableIndex: number = findRightIndex(\n props.items,\n (item) => !item.disabled\n );\n\n return props.items.map((item, index) => {\n const itemid = `${id}-item-${item.key}`;\n\n /* Id a click handler has been passed close the dropdown\n * return focus and run the handler\n */\n const onClick = async () => {\n await closeDropdown();\n const nextElement = document.querySelector(`#${id}`);\n if (!nextElement) return;\n else if (nextElement instanceof HTMLElement) {\n nextElement.focus();\n }\n if (item.handler) item.handler();\n };\n\n /**\n * On keydown\n * arrow down move to the next focusable element if it's not the last\n * arrow up move to the previous focusable element if it's not the first\n * on tab search the next focusable element after the button that opens the dropdown\n * if an element is found focus on that\n * (the menu is attached to body so it's not in order)\n */\n const onKeydown = (event: KeyboardEvent) => {\n if (\n event.target instanceof HTMLElement &&\n event.target.dataset[\"dropdownItem\"]\n ) {\n if (!content.value) return;\n if (event.key === \"ArrowDown\") {\n event.preventDefault();\n if (content.value && index !== lastFocusableIndex) {\n const option = content.value.querySelector(\n selectors.map((selector) => `#${itemid} ~ ${selector}`).join(\",\")\n );\n if (option && option instanceof HTMLElement) {\n option.focus();\n }\n }\n } else if (event.key === \"ArrowUp\") {\n event.preventDefault();\n if (content.value && index !== firstFocusableIndex) {\n const indexOfPrevious = findRightIndex(props.items, (item, i) => {\n return i < index && !item.disabled;\n });\n\n const options = Array.from(\n content.value.querySelectorAll(`.bb-dropdown__item`)\n );\n\n const option = options[indexOfPrevious];\n\n if (option && option instanceof HTMLElement) {\n option.focus();\n }\n }\n } else if (event.key === \"Tab\") {\n if (index === lastFocusableIndex && !event.shiftKey) {\n const selector = selectors.join(\",\");\n const focusableElements = Array.from(\n document.querySelectorAll(selector)\n );\n const indexOfButton = focusableElements.findIndex(\n (el) => el.id === id\n );\n const nextElement = focusableElements[indexOfButton + 1];\n if (!nextElement) return;\n else if (nextElement instanceof HTMLElement) {\n event.preventDefault();\n closeDropdown();\n nextElement.focus();\n }\n } else if (index === firstFocusableIndex && event.shiftKey) {\n const nextElement = document.querySelector(`#${id}`);\n if (!nextElement) return;\n else if (nextElement instanceof HTMLElement) {\n event.preventDefault();\n nextElement.focus();\n }\n }\n }\n }\n };\n\n return {\n disabled: item.disabled,\n href: item.href,\n id: itemid,\n key: item.key,\n onClick,\n onKeydown,\n text: item.text,\n to: item.to,\n };\n });\n});\n\nconst wrapper = ref<HTMLElement>();\nconst content = ref<HTMLElement>();\n\nconst { floatingStyles, placement } = useFloating(wrapper, content, {\n placement: props.placement,\n whileElementsMounted: autoUpdate,\n middleware: [flip(), shift({ padding: 6 })],\n});\n\nconst opening = ref(false);\nconst open = ref(false);\nconst closing = ref(false);\nconst closed = ref(true);\n\n/* On click of the trigger attach elements */\nconst onClick = () => {\n if (opening.value || closing.value) return;\n if (open.value) {\n closeDropdown();\n } else {\n openDropdown();\n }\n};\n\nconst onKeydown = async (event: KeyboardEvent) => {\n let firstFocusableIndex: number = props.items.findIndex((el) => !el.disabled);\n let lastFocusableIndex: number = findRightIndex(\n props.items,\n (item) => !item.disabled\n );\n if (event.key === \"ArrowDown\") {\n event.preventDefault();\n if (closing.value || opening.value) return;\n if (closed.value) {\n await openDropdown();\n }\n if (\n content.value &&\n mappedItems.value.length &&\n firstFocusableIndex !== -1\n ) {\n const idToFocus = mappedItems.value[firstFocusableIndex].id;\n const option = content.value.querySelector(`#${idToFocus}`);\n if (option && option instanceof HTMLElement) {\n option.focus();\n }\n }\n } else if (event.key === \"ArrowUp\") {\n event.preventDefault();\n if (closing.value || opening.value) return;\n if (closed.value) {\n await openDropdown();\n }\n if (\n content.value &&\n mappedItems.value.length &&\n lastFocusableIndex !== -1\n ) {\n const idToFocus = mappedItems.value[lastFocusableIndex].id;\n const option = content.value.querySelector(`#${idToFocus}`);\n if (option && option instanceof HTMLElement) {\n option.focus();\n }\n }\n } else if (event.key === \"Tab\") {\n if (open.value && !event.shiftKey) {\n event.preventDefault();\n if (\n content.value &&\n mappedItems.value.length &&\n firstFocusableIndex !== -1\n ) {\n const idToFocus = mappedItems.value[firstFocusableIndex].id;\n const option = content.value.querySelector(`#${idToFocus}`);\n if (option && option instanceof HTMLElement) {\n option.focus();\n }\n }\n }\n }\n};\n\nconst onClickDocument = (event: Event) => {\n const target = event.target;\n if (!target) return;\n if (target instanceof HTMLElement) {\n let isOutside = true;\n\n if (wrapper.value) {\n if (wrapper.value.contains(target)) {\n isOutside = false;\n }\n }\n if (content.value) {\n if (content.value.contains(target)) {\n isOutside = false;\n }\n }\n\n if (isOutside) {\n closeDropdown();\n }\n }\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n const target = event.target;\n if (!target) return;\n if (target instanceof HTMLElement) {\n let isOutside = true;\n\n if (wrapper.value) {\n if (wrapper.value.contains(target)) {\n isOutside = false;\n }\n }\n if (content.value) {\n if (content.value.contains(target)) {\n isOutside = false;\n }\n }\n\n if (isOutside) {\n closeDropdown();\n }\n }\n};\n\nconst onEsc = (event: KeyboardEvent) => {\n if (open.value) {\n if (event.key === \"Escape\") {\n if (document.activeElement?.id !== id) {\n const button = document.querySelector(`#${id}`);\n if (button instanceof HTMLElement) {\n button.focus();\n }\n }\n closeDropdown();\n }\n }\n};\n\nconst openDropdown = async () => {\n closed.value = false;\n closing.value = false;\n opening.value = true;\n await wait(50);\n open.value = true;\n opening.value = false;\n /* Attach listeners to document so we don't have to track them one by one */\n document.addEventListener(\"click\", onClickDocument, { passive: true });\n document.addEventListener(\"focusin\", onDocumentFocus, { passive: true });\n document.addEventListener(\"keydown\", onEsc, { passive: true });\n};\n\nconst closeDropdown = async () => {\n open.value = false;\n opening.value = false;\n closing.value = true;\n await wait(props.transitionDuration);\n closing.value = false;\n closed.value = true;\n document.removeEventListener(\"click\", onClickDocument);\n document.removeEventListener(\"focusin\", onDocumentFocus);\n document.removeEventListener(\"keydown\", onEsc);\n};\n\nconst attributes = computed(() => {\n const classes = {\n \"bb-dropdown--block\": props.block,\n [`bb-dropdown--theme-${props.theme}`]: props.theme,\n };\n return {\n class: classes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({ class: \"bb-dropdown\" }, attributes.value), [\n _createElementVNode(\"span\", {\n class: \"bb-dropdown__wrapper\",\n ref_key: \"wrapper\",\n ref: wrapper\n }, [\n _renderSlot(_ctx.$slots, \"activator\", _normalizeProps(_guardReactiveProps({\n props: {\n 'aria-expanded': open.value,\n 'aria-controls': `menu_${id}`,\n id: id,\n onClick: onClick,\n onKeydown: onKeydown,\n disabled: _ctx.disabled,\n },\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n })))\n ], 512),\n (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"bb-dropdown__bubble-container\", {\n [`bb-dropdown__bubble-container--${_unref(placement)}`]: true,\n [`bb-dropdown__bubble-container--${_ctx.theme}`]: _ctx.theme,\n 'bb-dropdown__bubble-container--hidden': closed.value,\n 'bb-dropdown__bubble-container--closing': closing.value,\n 'bb-dropdown__bubble-container--opening': opening.value,\n 'bb-dropdown__bubble-container--open': open.value,\n }]),\n ref_key: \"content\",\n ref: content,\n style: _normalizeStyle({\n ..._unref(floatingStyles),\n transitionDuration: `${props.transitionDuration}ms`,\n }),\n \"aria-labelledby\": id,\n \"aria-role\": \"menu\",\n id: `menu_${id}`\n }, [\n _hoisted_2,\n _createElementVNode(\"span\", {\n class: \"bb-dropdown__bubble\",\n style: _normalizeStyle({ width: `${_ctx.width}px` })\n }, [\n _renderSlot(_ctx.$slots, \"prepend\", {\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement)\n }),\n _createElementVNode(\"span\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(mappedItems.value, (item, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: item.key\n }, [\n _renderSlot(_ctx.$slots, `item:prepend`, {\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled || item.disabled,\n index: index,\n item: _ctx.items[index],\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n text: item.text\n }),\n _createVNode(BaseButton, {\n class: _normalizeClass([\"bb-dropdown__item\", {\n 'bb-dropdown__item--first': index === 0,\n 'bb-dropdown__item--last': index === _ctx.items.length - 1,\n }]),\n \"aria-role\": 'menuitem',\n \"data-dropdown-item\": true,\n disabled: item.disabled,\n href: item.href,\n id: item.id,\n to: item.to,\n onClick: item.onClick,\n onKeydown: item.onKeydown\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, item.key, {\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled || item.disabled,\n index: index,\n item: item,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n text: item.text\n }, () => [\n _renderSlot(_ctx.$slots, \"item\", {\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled || item.disabled,\n index: index,\n item: item,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n text: item.text\n }, () => [\n _createTextVNode(_toDisplayString(item.text), 1)\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"class\", \"disabled\", \"href\", \"id\", \"to\", \"onClick\", \"onKeydown\"]),\n _renderSlot(_ctx.$slots, `item:append`, {\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled || item.disabled,\n index: index,\n item: _ctx.items[index],\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n text: item.text\n })\n ], 64))\n }), 128))\n ]),\n _renderSlot(_ctx.$slots, \"append\", {\n disabled: _ctx.disabled,\n placement: _unref(placement),\n open: open.value,\n opening: opening.value,\n closing: closing.value,\n closed: closed.value\n })\n ], 4)\n ], 14, _hoisted_1)\n ]))\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","props","id","nanoid","mappedItems","computed","firstFocusableIndex","el","lastFocusableIndex","findRightIndex","item","index","itemid","onClick","closeDropdown","nextElement","onKeydown","event","content","option","selectors","selector","indexOfPrevious","i","focusableElements","indexOfButton","wrapper","ref","floatingStyles","placement","useFloating","autoUpdate","flip","shift","opening","open","closing","closed","openDropdown","idToFocus","onClickDocument","target","isOutside","onDocumentFocus","onEsc","_a","button","wait","attributes","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_renderSlot","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_Teleport","_normalizeClass","_normalizeStyle","_Fragment","_renderList","_createVNode","BaseButton","_withCtx","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;AAGA,MAAMA,KAAa,CAAC,IAAI,GAClBC,uBAA8C,QAAQ,EAAE,OAAO,wBAA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AA,QAAA,GACH,IAAI1C,EAAU;AAAA,MAAA,CAClB;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
1
+ {"version":3,"file":"index50.js","sources":["../src/components/BbDialog/BbDialog.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, renderList as _renderList, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed } from \"vue\";\nimport BaseDialog from \"../BaseDialog/BaseDialog.vue\";\nimport type { Classes } from \"@/types/Classes\";\nimport type { BaseDialogProps } from \"../BaseDialog/BaseDialog.vue\";\nexport type { BaseDialogProps as BbDialogProps } from \"../BaseDialog/BaseDialog.vue\";\n\nexport type Sizes = {\n sm: number;\n md: number;\n lg: number;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDialog',\n props: {\n closeLabel: {},\n color: {},\n compact: { type: Boolean },\n description: {},\n disabled: { type: Boolean },\n eager: { type: Boolean },\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] },\n panelClasses: {},\n overlayClasses: {},\n persistent: { type: Boolean },\n showClose: { type: Boolean, default: true },\n size: {},\n title: {},\n transition: {},\n transitionDuration: {}\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n\n\nconst panelClasses = computed<Classes>(() => {\n let base: Classes = [\"bb-dialog\"];\n if (props.panelClasses) {\n base = base.concat(props.panelClasses);\n }\n return base;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseDialog, _mergeProps(_ctx.$props, {\n panelClasses: panelClasses.value,\n onShown: _cache[0] || (_cache[0] = (...params: any[]) => _ctx.$emit('shown', ...params)),\n onHidden: _cache[1] || (_cache[1] = (...params: any[]) => _ctx.$emit('hidden', ...params)),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = (...params: any[]) => _ctx.$emit('update:modelValue', ...params))\n }), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"panelClasses\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","panelClasses","computed","base","_ctx","_cache","_openBlock","_createBlock","BaseDialog","_mergeProps","params","_createSlots","_renderList","_","name","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps"],"mappings":";;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,OAAO,CAAC;AAAA,IACR,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,YAAY,EAAE,MAAM,CAAC,SAAS,IAAI,EAAE;AAAA,IACpC,cAAc,CAAC;AAAA,IACf,gBAAgB,CAAC;AAAA,IACjB,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,WAAW,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC1C,MAAM,CAAC;AAAA,IACP,OAAO,CAAC;AAAA,IACR,YAAY,CAAC;AAAA,IACb,oBAAoB,CAAC;AAAA,EACvB;AAAA,EACA,OAAO,CAAC,SAAS,UAAU,mBAAmB;AAAA,EAC9C,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAMRE,IAAeC,EAAkB,MAAM;AACvC,UAAAC,IAAgB,CAAC,WAAW;AAChC,aAAIH,EAAM,iBACDG,IAAAA,EAAK,OAAOH,EAAM,YAAY,IAEhCG;AAAA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