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":"index36.js","sources":["../src/components/BbBadge/BbBadge.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-badge__wrapper\" }\nconst _hoisted_2 = { class: \"bb-badge__content-inner\" }\n\nimport { isCssColor } from \"@/utilities/functions/isCssColor\";\nimport { isNil } from \"@/utilities/functions/isNil\";\nimport { computed, useSlots } from \"vue\";\nexport interface BbBadgeProps {\n bottom?: boolean;\n color?: string;\n content?: string | number | null;\n left?: boolean;\n floating?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbBadge',\n props: {\n bottom: { type: Boolean },\n color: {},\n content: {},\n left: { type: Boolean },\n floating: { type: Boolean }\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst slots = useSlots();\n\n\n\nconst classes = computed(() => {\n return {\n \"bb-badge\": true,\n \"bb-badge--bottom\": props.bottom,\n \"bb-badge--left\": props.left,\n \"bb-badge--positioned\": slots.default,\n \"bb-badge--floating\": props.floating,\n \"bb-badge--empty\": isNil(props.content),\n [`bb-badge--${props.color}`]: props.color && !isCssColor(props.color),\n };\n});\n\nconst contentAttributes = computed(() => {\n let style: Record<string, string> = {};\n if (props.color && isCssColor(props.color)) {\n style.backgroundColor = props.color;\n }\n\n let accessibilityAttributes: Record<string, string | boolean> = {};\n if (slots.wrap) {\n accessibilityAttributes[\"aria-atomic\"] = true;\n accessibilityAttributes[\"aria-live\"] = \"polite\";\n accessibilityAttributes[\"role\"] = \"status\";\n }\n return {\n style,\n ...accessibilityAttributes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass(classes.value)\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"default\"),\n _createElementVNode(\"span\", _mergeProps({ class: \"bb-badge__content-container\" }, contentAttributes.value), [\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.content), 1)\n ], 16)\n ])\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","slots","useSlots","classes","computed","isNil","isCssColor","contentAttributes","style","accessibilityAttributes","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_mergeProps","_toDisplayString"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,uBACtBC,IAAa,EAAE,OAAO,6BAcAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,QAAQ,EAAE,MAAM,QAAQ;AAAA,IACxB,OAAO,CAAC;AAAA,IACR,SAAS,CAAC;AAAA,IACV,MAAM,EAAE,MAAM,QAAQ;AAAA,IACtB,UAAU,EAAE,MAAM,QAAQ;AAAA,EAC5B;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAERE,IAAQC,KAIRC,IAAUC,EAAS,OAChB;AAAA,MACL,YAAY;AAAA,MACZ,oBAAoBJ,EAAM;AAAA,MAC1B,kBAAkBA,EAAM;AAAA,MACxB,wBAAwBC,EAAM;AAAA,MAC9B,sBAAsBD,EAAM;AAAA,MAC5B,mBAAmBK,EAAML,EAAM,OAAO;AAAA,MACtC,CAAC,aAAaA,EAAM,KAAK,EAAE,GAAGA,EAAM,SAAS,CAACM,EAAWN,EAAM,KAAK;AAAA,IAAA,EAEvE,GAEKO,IAAoBH,EAAS,MAAM;AACvC,UAAII,IAAgC,CAAA;AACpC,MAAIR,EAAM,SAASM,EAAWN,EAAM,KAAK,MACvCQ,EAAM,kBAAkBR,EAAM;AAGhC,UAAIS,IAA4D,CAAA;AAChE,aAAIR,EAAM,SACRQ,EAAwB,aAAa,IAAI,IACzCA,EAAwB,WAAW,IAAI,UACvCA,EAAwB,OAAU,WAE7B;AAAA,QACL,OAAAD;AAAA,QACA,GAAGC;AAAA,MAAA;AAAA,IACL,CACD;AAEM,WAAA,CAACC,GAAUC,OACRC,EAAA,GAAcC,EAAoB,QAAQ;AAAA,MAChD,OAAOC,EAAgBX,EAAQ,KAAK;AAAA,IAAA,GACnC;AAAA,MACDY,EAAoB,QAAQpB,GAAY;AAAA,QACtCqB,EAAYN,EAAK,QAAQ,SAAS;AAAA,QAClCK,EAAoB,QAAQE,EAAY,EAAE,OAAO,iCAAiCV,EAAkB,KAAK,GAAG;AAAA,UAC1GQ,EAAoB,QAAQnB,GAAYsB,EAAiBR,EAAK,OAAO,GAAG,CAAC;AAAA,WACxE,EAAE;AAAA,MAAA,CACN;AAAA,OACA,CAAC;AAAA,EAEN;AAEA,CAAC;"}
1
+ {"version":3,"file":"index36.js","sources":["../src/components/BbAvatar/BbAvatar.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-avatar__fallback\" }\nconst _hoisted_2 = [\"src\"]\n\nimport { Classes } from \"@/types/Classes\";\nimport { computed, ref, watch } from \"vue\";\nimport { isCssColor } from \"@/utilities/functions/isCssColor\";\nimport type { Size } from \"../BbSpinner/BbSpinner.vue\";\n\nexport type BbAvatarProps =\n | {\n color?: string;\n size?: Size;\n sizes?: HTMLImageElement[\"sizes\"];\n } & (\n | {\n alt: string;\n src: string;\n srcset?: string;\n }\n | {\n alt: string;\n src?: string;\n srcset: string;\n }\n | {\n alt?: string;\n src?: string;\n srcset: string;\n }\n );\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbAvatar',\n props: {\n color: {},\n size: {},\n sizes: {},\n alt: {},\n src: {},\n srcset: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst sizeMap: Record<Size, number> = {\n xs: 24,\n sm: 32,\n md: 40,\n lg: 56,\n xl: 80,\n xxl: 104,\n};\n\nconst attributes = computed(() => {\n const classes: Classes = {\n \"bb-avatar\": true,\n };\n let dimension: any;\n if (props.size) {\n if (typeof props.size === \"string\") {\n dimension = sizeMap[props.size as Size] ?? parseInt(props.size, 10);\n } else {\n dimension = props.size;\n }\n dimension += `px`;\n }\n\n let style: { [key: string]: any } = {\n width: dimension,\n height: dimension,\n };\n if (props.color) {\n if (isCssColor(props.color)) {\n style.backgroundColor = props.color;\n } else {\n classes[`bg-${props.color}`] = true;\n }\n }\n return {\n class: classes,\n style,\n };\n});\n\nconst imageHasErrored = ref(false);\nconst onImageError = () => {\n imageHasErrored.value = true;\n};\nwatch(\n () => [props.src, props.srcset],\n () => {\n imageHasErrored.value = false;\n }\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _normalizeProps(_guardReactiveProps(attributes.value)), [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n (!!(_ctx.src || _ctx.srcset) && !imageHasErrored.value)\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n src: _ctx.src,\n class: \"bb-avatar__img\",\n onError: onImageError\n }, null, 40, _hoisted_2))\n : _createCommentVNode(\"\", true)\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","sizeMap","attributes","computed","classes","dimension","style","isCssColor","imageHasErrored","ref","onImageError","watch","_ctx","_cache","_openBlock","_createElementBlock","_normalizeProps","_guardReactiveProps","_createElementVNode","_renderSlot","_createCommentVNode"],"mappings":";;AAGA,MAAMA,IAAa,EAAE,OAAO,yBACtBC,IAAa,CAAC,KAAK,GA+BGC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,MAAM,CAAC;AAAA,IACP,OAAO,CAAC;AAAA,IACR,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,QAAQ,CAAC;AAAA,EACX;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIRE,IAAgC;AAAA,MACpC,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA,IAAA,GAGDC,IAAaC,EAAS,MAAM;AAChC,YAAMC,IAAmB;AAAA,QACvB,aAAa;AAAA,MAAA;AAEX,UAAAC;AACJ,MAAIL,EAAM,SACJ,OAAOA,EAAM,QAAS,WACxBK,IAAYJ,EAAQD,EAAM,IAAY,KAAK,SAASA,EAAM,MAAM,EAAE,IAElEK,IAAYL,EAAM,MAEPK,KAAA;AAGf,UAAIC,IAAgC;AAAA,QAClC,OAAOD;AAAA,QACP,QAAQA;AAAA,MAAA;AAEV,aAAIL,EAAM,UACJO,EAAWP,EAAM,KAAK,IACxBM,EAAM,kBAAkBN,EAAM,QAE9BI,EAAQ,MAAMJ,EAAM,KAAK,EAAE,IAAI,KAG5B;AAAA,QACL,OAAOI;AAAA,QACP,OAAAE;AAAA,MAAA;AAAA,IACF,CACD,GAEKE,IAAkBC,EAAI,EAAK,GAC3BC,IAAe,MAAM;AACzB,MAAAF,EAAgB,QAAQ;AAAA,IAAA;AAE1B,WAAAG;AAAA,MACE,MAAM,CAACX,EAAM,KAAKA,EAAM,MAAM;AAAA,MAC9B,MAAM;AACJ,QAAAQ,EAAgB,QAAQ;AAAA,MAC1B;AAAA,IAAA,GAGK,CAACI,GAAUC,OACRC,EAAA,GAAcC,EAAoB,QAAQC,EAAgBC,EAAoBf,EAAW,KAAK,CAAC,GAAG;AAAA,MACxGgB,EAAoB,QAAQvB,GAAY;AAAA,QACtCwB,EAAYP,EAAK,QAAQ,SAAS;AAAA,MAAA,CACnC;AAAA,OACGA,EAAK,OAAOA,EAAK,WAAW,CAACJ,EAAgB,SAC5CM,KAAcC,EAAoB,OAAO;AAAA,QACxC,KAAK;AAAA,QACL,KAAKH,EAAK;AAAA,QACV,OAAO;AAAA,QACP,SAASF;AAAA,MAAA,GACR,MAAM,IAAId,CAAU,KACvBwB,EAAoB,IAAI,EAAI;AAAA,OAC/B,EAAE;AAAA,EAEP;AAEA,CAAC;"}
package/dist/index38.js CHANGED
@@ -1,46 +1,46 @@
1
- import { defineComponent as t, openBlock as o, createBlock as n, unref as r, mergeProps as a, withCtx as p, renderSlot as c } from "vue";
2
- import l from "./index2.js";
3
- import "./index3.js";
4
- const f = /* @__PURE__ */ t({
5
- __name: "BbButton",
1
+ import { defineComponent as i, useSlots as p, computed as n, openBlock as d, createElementBlock as m, normalizeClass as u, createElementVNode as a, renderSlot as g, mergeProps as f, toDisplayString as _ } from "vue";
2
+ import { isCssColor as l } from "./index171.js";
3
+ import { isNil as y } from "./index169.js";
4
+ const B = { class: "bb-badge__wrapper" }, C = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ i({
5
+ __name: "BbBadge",
6
6
  props: {
7
- activeClass: {},
8
- ariaCurrentValue: {},
9
- block: { type: Boolean },
10
- custom: { type: Boolean },
11
- data: {},
12
- disabled: { type: Boolean },
13
- exactActiveClass: {},
14
- headers: {},
15
- href: {},
16
- method: {},
17
- onBefore: { type: Function },
18
- onCancel: { type: Function },
19
- onCancelToken: { type: Function },
20
- onFinish: { type: Function },
21
- only: {},
22
- onProgress: { type: Function },
23
- onStart: { type: Function },
24
- onSuccess: { type: Function },
25
- preserveScroll: { type: [Boolean, Function] },
26
- preserveState: { type: [Boolean, Function, null] },
27
- queryStringArrayFormat: {},
28
- replace: { type: Boolean },
29
- tag: {},
30
- target: {},
31
- to: {},
32
- type: {}
7
+ bottom: { type: Boolean },
8
+ color: {},
9
+ content: {},
10
+ left: { type: Boolean },
11
+ floating: { type: Boolean }
33
12
  },
34
- setup(s) {
35
- return (e, u) => (o(), n(r(l), a(e.$props, { class: "bb-button" }), {
36
- default: p(() => [
37
- c(e.$slots, "default")
38
- ]),
39
- _: 3
40
- }, 16));
13
+ setup(r) {
14
+ const e = r, s = p(), b = n(() => ({
15
+ "bb-badge": !0,
16
+ "bb-badge--bottom": e.bottom,
17
+ "bb-badge--left": e.left,
18
+ "bb-badge--positioned": s.default,
19
+ "bb-badge--floating": e.floating,
20
+ "bb-badge--empty": y(e.content),
21
+ [`bb-badge--${e.color}`]: e.color && !l(e.color)
22
+ })), c = n(() => {
23
+ let o = {};
24
+ e.color && l(e.color) && (o.backgroundColor = e.color);
25
+ let t = {};
26
+ return s.wrap && (t["aria-atomic"] = !0, t["aria-live"] = "polite", t.role = "status"), {
27
+ style: o,
28
+ ...t
29
+ };
30
+ });
31
+ return (o, t) => (d(), m("span", {
32
+ class: u(b.value)
33
+ }, [
34
+ a("span", B, [
35
+ g(o.$slots, "default"),
36
+ a("span", f({ class: "bb-badge__content-container" }, c.value), [
37
+ a("span", C, _(o.content), 1)
38
+ ], 16)
39
+ ])
40
+ ], 2));
41
41
  }
42
42
  });
43
43
  export {
44
- f as default
44
+ S as default
45
45
  };
46
46
  //# sourceMappingURL=index38.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index38.js","sources":["../src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { BaseButtonProps } from \"../BaseButton/BaseButton.vue\"\nimport { BaseButton } from \"@/index\";\n\nexport type BbButtonProps = BaseButtonProps;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbButton',\n props: {\n activeClass: {},\n ariaCurrentValue: {},\n block: { type: Boolean },\n custom: { type: Boolean },\n data: {},\n disabled: { type: Boolean },\n exactActiveClass: {},\n headers: {},\n href: {},\n method: {},\n onBefore: { type: Function },\n onCancel: { type: Function },\n onCancelToken: { type: Function },\n onFinish: { type: Function },\n only: {},\n onProgress: { type: Function },\n onStart: { type: Function },\n onSuccess: { type: Function },\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n replace: { type: Boolean },\n tag: {},\n target: {},\n to: {},\n type: {}\n },\n setup(__props: any) {\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(BaseButton), _mergeProps(_ctx.$props, { class: \"bb-button\" }), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","_ctx","_cache","_openBlock","_createBlock","_unref","BaseButton","_mergeProps","_withCtx","_renderSlot"],"mappings":";;;AAQA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,QAAQ,EAAE,MAAM,QAAQ;AAAA,IACxB,MAAM,CAAC;AAAA,IACP,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,CAAC;AAAA,IACnB,SAAS,CAAC;AAAA,IACV,MAAM,CAAC;AAAA,IACP,QAAQ,CAAC;AAAA,IACT,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,eAAe,EAAE,MAAM,SAAS;AAAA,IAChC,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,MAAM,CAAC;AAAA,IACP,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,WAAW,EAAE,MAAM,SAAS;AAAA,IAC5B,gBAAgB,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE;AAAA,IAC5C,eAAe,EAAE,MAAM,CAAC,SAAS,UAAU,IAAI,EAAE;AAAA,IACjD,wBAAwB,CAAC;AAAA,IACzB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,KAAK,CAAC;AAAA,IACN,QAAQ,CAAC;AAAA,IACT,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAKf,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAaC,EAAOC,CAAU,GAAGC,EAAYN,EAAK,QAAQ,EAAE,OAAO,YAAa,CAAA,GAAG;AAAA,MACvG,SAASO,EAAS,MAAM;AAAA,QACtBC,EAAYR,EAAK,QAAQ,SAAS;AAAA,MAAA,CACnC;AAAA,MACD,GAAG;AAAA,OACF,EAAE;AAAA,EAEP;AAEA,CAAC;"}
1
+ {"version":3,"file":"index38.js","sources":["../src/components/BbBadge/BbBadge.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-badge__wrapper\" }\nconst _hoisted_2 = { class: \"bb-badge__content-inner\" }\n\nimport { isCssColor } from \"@/utilities/functions/isCssColor\";\nimport { isNil } from \"@/utilities/functions/isNil\";\nimport { computed, useSlots } from \"vue\";\nexport interface BbBadgeProps {\n bottom?: boolean;\n color?: string;\n content?: string | number | null;\n left?: boolean;\n floating?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbBadge',\n props: {\n bottom: { type: Boolean },\n color: {},\n content: {},\n left: { type: Boolean },\n floating: { type: Boolean }\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst slots = useSlots();\n\n\n\nconst classes = computed(() => {\n return {\n \"bb-badge\": true,\n \"bb-badge--bottom\": props.bottom,\n \"bb-badge--left\": props.left,\n \"bb-badge--positioned\": slots.default,\n \"bb-badge--floating\": props.floating,\n \"bb-badge--empty\": isNil(props.content),\n [`bb-badge--${props.color}`]: props.color && !isCssColor(props.color),\n };\n});\n\nconst contentAttributes = computed(() => {\n let style: Record<string, string> = {};\n if (props.color && isCssColor(props.color)) {\n style.backgroundColor = props.color;\n }\n\n let accessibilityAttributes: Record<string, string | boolean> = {};\n if (slots.wrap) {\n accessibilityAttributes[\"aria-atomic\"] = true;\n accessibilityAttributes[\"aria-live\"] = \"polite\";\n accessibilityAttributes[\"role\"] = \"status\";\n }\n return {\n style,\n ...accessibilityAttributes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass(classes.value)\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"default\"),\n _createElementVNode(\"span\", _mergeProps({ class: \"bb-badge__content-container\" }, contentAttributes.value), [\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.content), 1)\n ], 16)\n ])\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","slots","useSlots","classes","computed","isNil","isCssColor","contentAttributes","style","accessibilityAttributes","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_mergeProps","_toDisplayString"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,uBACtBC,IAAa,EAAE,OAAO,6BAcAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,QAAQ,EAAE,MAAM,QAAQ;AAAA,IACxB,OAAO,CAAC;AAAA,IACR,SAAS,CAAC;AAAA,IACV,MAAM,EAAE,MAAM,QAAQ;AAAA,IACtB,UAAU,EAAE,MAAM,QAAQ;AAAA,EAC5B;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAERE,IAAQC,KAIRC,IAAUC,EAAS,OAChB;AAAA,MACL,YAAY;AAAA,MACZ,oBAAoBJ,EAAM;AAAA,MAC1B,kBAAkBA,EAAM;AAAA,MACxB,wBAAwBC,EAAM;AAAA,MAC9B,sBAAsBD,EAAM;AAAA,MAC5B,mBAAmBK,EAAML,EAAM,OAAO;AAAA,MACtC,CAAC,aAAaA,EAAM,KAAK,EAAE,GAAGA,EAAM,SAAS,CAACM,EAAWN,EAAM,KAAK;AAAA,IAAA,EAEvE,GAEKO,IAAoBH,EAAS,MAAM;AACvC,UAAII,IAAgC,CAAA;AACpC,MAAIR,EAAM,SAASM,EAAWN,EAAM,KAAK,MACvCQ,EAAM,kBAAkBR,EAAM;AAGhC,UAAIS,IAA4D,CAAA;AAChE,aAAIR,EAAM,SACRQ,EAAwB,aAAa,IAAI,IACzCA,EAAwB,WAAW,IAAI,UACvCA,EAAwB,OAAU,WAE7B;AAAA,QACL,OAAAD;AAAA,QACA,GAAGC;AAAA,MAAA;AAAA,IACL,CACD;AAEM,WAAA,CAACC,GAAUC,OACRC,EAAA,GAAcC,EAAoB,QAAQ;AAAA,MAChD,OAAOC,EAAgBX,EAAQ,KAAK;AAAA,IAAA,GACnC;AAAA,MACDY,EAAoB,QAAQpB,GAAY;AAAA,QACtCqB,EAAYN,EAAK,QAAQ,SAAS;AAAA,QAClCK,EAAoB,QAAQE,EAAY,EAAE,OAAO,iCAAiCV,EAAkB,KAAK,GAAG;AAAA,UAC1GQ,EAAoB,QAAQnB,GAAYsB,EAAiBR,EAAK,OAAO,GAAG,CAAC;AAAA,WACxE,EAAE;AAAA,MAAA,CACN;AAAA,OACA,CAAC;AAAA,EAEN;AAEA,CAAC;"}
package/dist/index4.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as h, computed as t, watch as w, openBlock as c, createElementBlock as d, normalizeClass as L, normalizeProps as f, mergeProps as i, createCommentVNode as E, createElementVNode as s, renderSlot as I, guardReactiveProps as F } from "vue";
2
- import { isCssColor as m } from "./index151.js";
3
- import { when as M } from "./index152.js";
2
+ import { isCssColor as m } from "./index171.js";
3
+ import { when as M } from "./index172.js";
4
4
  const N = {
5
5
  class: "bb-base-checkbox-container",
6
6
  "aria-hidden": "true"
package/dist/index40.js CHANGED
@@ -1,92 +1,46 @@
1
- import { defineComponent as p, openBlock as b, createBlock as m, withCtx as l, renderSlot as n, normalizeProps as c, guardReactiveProps as h, createVNode as f, mergeProps as s, createSlots as y, renderList as V } from "vue";
2
- import k from "./index14.js";
3
- import "./index15.js";
4
- import B from "./index4.js";
5
- import "./index5.js";
6
- const $ = /* @__PURE__ */ p({
7
- __name: "BbCheckbox",
1
+ import { defineComponent as t, openBlock as o, createBlock as n, unref as r, mergeProps as a, withCtx as p, renderSlot as c } from "vue";
2
+ import l from "./index2.js";
3
+ import "./index3.js";
4
+ const f = /* @__PURE__ */ t({
5
+ __name: "BbButton",
8
6
  props: {
9
- autofocus: { type: Boolean },
10
- checked: { type: Boolean },
11
- color: {},
12
- direction: { default: "auto" },
7
+ activeClass: {},
8
+ ariaCurrentValue: {},
9
+ block: { type: Boolean },
10
+ custom: { type: Boolean },
11
+ data: {},
13
12
  disabled: { type: Boolean },
14
- errors: {},
15
- falseValue: {},
16
- hasErrors: { type: Boolean },
17
- hideLabel: { type: Boolean },
18
- id: {},
19
- indeterminate: { type: Boolean },
20
- inputPosition: {},
21
- label: {},
22
- labelPosition: {},
23
- modelValue: {},
24
- name: {},
25
- readonly: { type: Boolean },
26
- reverse: { type: Boolean, default: !0 },
27
- submitWhenFalse: { type: Boolean },
28
- trueValue: {}
13
+ exactActiveClass: {},
14
+ headers: {},
15
+ href: {},
16
+ method: {},
17
+ onBefore: { type: Function },
18
+ onCancel: { type: Function },
19
+ onCancelToken: { type: Function },
20
+ onFinish: { type: Function },
21
+ only: {},
22
+ onProgress: { type: Function },
23
+ onStart: { type: Function },
24
+ onSuccess: { type: Function },
25
+ preserveScroll: { type: [Boolean, Function] },
26
+ preserveState: { type: [Boolean, Function, null] },
27
+ queryStringArrayFormat: {},
28
+ replace: { type: Boolean },
29
+ tag: {},
30
+ target: {},
31
+ to: {},
32
+ type: {}
29
33
  },
30
- emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
31
- setup(P, { emit: o }) {
32
- const i = {
33
- onBlur: (e) => o("blur", e),
34
- onChange: (e) => o("change", e),
35
- onClick: (e) => o("click", e),
36
- onFocus: (e) => o("focus", e),
37
- onInput: (e) => o("input", e),
38
- onKeydown: (e) => o("keydown", e),
39
- onMousedown: (e) => o("mousedown", e),
40
- onMouseup: (e) => o("mouseup", e),
41
- "onUpdate:modelValue": (e) => o("update:modelValue", e)
42
- };
43
- return (e, g) => (b(), m(k, {
44
- class: "bb-checkbox",
45
- direction: e.direction,
46
- errors: e.errors,
47
- hasErrors: e.hasErrors,
48
- hideLabel: e.hideLabel,
49
- id: e.id,
50
- inputPosition: e.inputPosition,
51
- label: e.label,
52
- labelPosition: e.labelPosition,
53
- labelTag: "span",
54
- name: e.name,
55
- reverse: e.reverse,
56
- tag: "label"
57
- }, {
58
- label: l((a) => [
59
- n(e.$slots, "label", c(h(a)))
60
- ]),
61
- input: l(({ id: a, name: u, hasErrors: d }) => [
62
- f(B, s({
63
- autofocus: e.autofocus,
64
- checked: e.checked,
65
- color: e.color,
66
- disabled: e.disabled,
67
- hasErrors: d,
68
- id: a,
69
- indeterminate: e.indeterminate,
70
- modelValue: e.modelValue,
71
- name: u,
72
- readonly: e.readonly,
73
- submitWhenFalse: e.submitWhenFalse,
74
- trueValue: e.trueValue,
75
- falseValue: e.falseValue
76
- }, i), y({ _: 2 }, [
77
- V(e.$slots, (w, r) => ({
78
- name: r,
79
- fn: l((t) => [
80
- n(e.$slots, r, s(t, { text: e.label }))
81
- ])
82
- }))
83
- ]), 1040, ["autofocus", "checked", "color", "disabled", "hasErrors", "id", "indeterminate", "modelValue", "name", "readonly", "submitWhenFalse", "trueValue", "falseValue"])
34
+ setup(s) {
35
+ return (e, u) => (o(), n(r(l), a(e.$props, { class: "bb-button" }), {
36
+ default: p(() => [
37
+ c(e.$slots, "default")
84
38
  ]),
85
39
  _: 3
86
- }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "name", "reverse"]));
40
+ }, 16));
87
41
  }
88
42
  });
89
43
  export {
90
- $ as default
44
+ f as default
91
45
  };
92
46
  //# sourceMappingURL=index40.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index40.js","sources":["../src/components/BbCheckbox/BbCheckbox.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 BaseCheckbox from \"../BaseCheckbox/BaseCheckbox.vue\";\nimport type { BaseCheckboxEvents } from \"../BaseCheckbox/BaseCheckbox.vue\";\n\nexport type BbCheckboxEvents = BaseCheckboxEvents\n\nexport interface BbCheckboxProps {\n autofocus?: boolean;\n checked?: boolean;\n color?: string;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n falseValue?: any;\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n indeterminate?: boolean;\n inputPosition?: \"left\" | \"center\" | \"right\";\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: any;\n name?: string;\n readonly?: boolean;\n reverse?: boolean;\n submitWhenFalse?: boolean;\n trueValue?: any;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbCheckbox',\n props: {\n autofocus: { type: Boolean },\n checked: { type: Boolean },\n color: {},\n direction: { default: 'auto' },\n disabled: { type: Boolean },\n errors: {},\n falseValue: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n indeterminate: { type: Boolean },\n inputPosition: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean, default: true },\n submitWhenFalse: { type: Boolean },\n trueValue: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: any) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-checkbox\",\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 labelTag: 'span',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'label'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseCheckbox, _mergeProps({\n autofocus: _ctx.autofocus,\n checked: _ctx.checked,\n color: _ctx.color,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n indeterminate: _ctx.indeterminate,\n modelValue: _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n submitWhenFalse: _ctx.submitWhenFalse,\n trueValue: _ctx.trueValue,\n falseValue: _ctx.falseValue\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _mergeProps(data, { text: _ctx.label }))\n ])\n }\n })\n ]), 1040, [\"autofocus\", \"checked\", \"color\", \"disabled\", \"hasErrors\", \"id\", \"indeterminate\", \"modelValue\", \"name\", \"readonly\", \"submitWhenFalse\", \"trueValue\", \"falseValue\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseCheckbox","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAiCA,MAA4BA,IAAiBC,g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E,MAAMN,EAAK,MAAM,CAAC,CAAC;AAAA,YAAA,CACvE;AAAA,UAAA,EAEJ;AAAA,QAAA,CACF,GAAG,MAAM,CAAC,aAAa,WAAW,SAAS,YAAY,aAAa,MAAM,iBAAiB,cAAc,QAAQ,YAAY,mBAAmB,aAAa,YAAY,CAAC;AAAA,MAAA,CAC5K;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,iBAAiB,SAAS,iBAAiB,QAAQ,SAAS,CAAC;AAAA,EAE7H;AAEA,CAAC;"}
1
+ {"version":3,"file":"index40.js","sources":["../src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { BaseButtonProps } from \"../BaseButton/BaseButton.vue\"\nimport { BaseButton } from \"@/index\";\n\nexport type BbButtonProps = BaseButtonProps;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbButton',\n props: {\n activeClass: {},\n ariaCurrentValue: {},\n block: { type: Boolean },\n custom: { type: Boolean },\n data: {},\n disabled: { type: Boolean },\n exactActiveClass: {},\n headers: {},\n href: {},\n method: {},\n onBefore: { type: Function },\n onCancel: { type: Function },\n onCancelToken: { type: Function },\n onFinish: { type: Function },\n only: {},\n onProgress: { type: Function },\n onStart: { type: Function },\n onSuccess: { type: Function },\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n replace: { type: Boolean },\n tag: {},\n target: {},\n to: {},\n type: {}\n },\n setup(__props: any) {\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(BaseButton), _mergeProps(_ctx.$props, { class: \"bb-button\" }), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","_ctx","_cache","_openBlock","_createBlock","_unref","BaseButton","_mergeProps","_withCtx","_renderSlot"],"mappings":";;;AAQA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,QAAQ,EAAE,MAAM,QAAQ;AAAA,IACxB,MAAM,CAAC;AAAA,IACP,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,CAAC;AAAA,IACnB,SAAS,CAAC;AAAA,IACV,MAAM,CAAC;AAAA,IACP,QAAQ,CAAC;AAAA,IACT,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,eAAe,EAAE,MAAM,SAAS;AAAA,IAChC,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,MAAM,CAAC;AAAA,IACP,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,WAAW,EAAE,MAAM,SAAS;AAAA,IAC5B,gBAAgB,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE;AAAA,IAC5C,eAAe,EAAE,MAAM,CAAC,SAAS,UAAU,IAAI,EAAE;AAAA,IACjD,wBAAwB,CAAC;AAAA,IACzB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,KAAK,CAAC;AAAA,IACN,QAAQ,CAAC;AAAA,IACT,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAKf,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAaC,EAAOC,CAAU,GAAGC,EAAYN,EAAK,QAAQ,EAAE,OAAO,YAAa,CAAA,GAAG;AAAA,MACvG,SAASO,EAAS,MAAM;AAAA,QACtBC,EAAYR,EAAK,QAAQ,SAAS;AAAA,MAAA,CACnC;AAAA,MACD,GAAG;AAAA,OACF,EAAE;AAAA,EAEP;AAEA,CAAC;"}
package/dist/index42.js CHANGED
@@ -1,105 +1,92 @@
1
- import { defineComponent as p, openBlock as m, createBlock as c, withCtx as i, renderSlot as a, normalizeProps as l, guardReactiveProps as s, createVNode as b, mergeProps as h, createSlots as g, renderList as T } from "vue";
2
- import f from "./index6.js";
3
- import "./index7.js";
4
- import y from "./index14.js";
1
+ import { defineComponent as p, openBlock as b, createBlock as m, withCtx as l, renderSlot as n, normalizeProps as c, guardReactiveProps as h, createVNode as f, mergeProps as s, createSlots as y, renderList as V } from "vue";
2
+ import k from "./index14.js";
5
3
  import "./index15.js";
6
- const w = /* @__PURE__ */ p({
7
- __name: "BbCheckboxGroup",
4
+ import B from "./index4.js";
5
+ import "./index5.js";
6
+ const $ = /* @__PURE__ */ p({
7
+ __name: "BbCheckbox",
8
8
  props: {
9
9
  autofocus: { type: Boolean },
10
+ checked: { type: Boolean },
10
11
  color: {},
11
- dependencies: {},
12
- depsDebounceTime: {},
13
- direction: {},
14
- inputDirection: {},
12
+ direction: { default: "auto" },
15
13
  disabled: { type: Boolean },
16
- enforceCoherence: { type: Boolean },
17
14
  errors: {},
15
+ falseValue: {},
18
16
  hasErrors: { type: Boolean },
19
- hideLegend: { type: Boolean },
20
17
  hideLabel: { type: Boolean },
21
18
  id: {},
19
+ indeterminate: { type: Boolean },
22
20
  inputPosition: {},
23
- items: { type: [Array, Function] },
24
- itemText: { type: [String, Function] },
25
- itemValue: { type: [String, Function] },
26
- legend: {},
27
- legendPosition: {},
28
- loadingText: {},
21
+ label: {},
22
+ labelPosition: {},
29
23
  modelValue: {},
30
- modelValueDebounceTime: {},
31
24
  name: {},
32
- noDataText: {},
33
25
  readonly: { type: Boolean },
34
- reverse: { type: Boolean }
26
+ reverse: { type: Boolean, default: !0 },
27
+ submitWhenFalse: { type: Boolean },
28
+ trueValue: {}
35
29
  },
36
- emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
37
- setup(V, { emit: o }) {
38
- const d = {
30
+ emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
31
+ setup(P, { emit: o }) {
32
+ const i = {
39
33
  onBlur: (e) => o("blur", e),
40
34
  onChange: (e) => o("change", e),
41
35
  onClick: (e) => o("click", e),
42
36
  onFocus: (e) => o("focus", e),
43
- onInactive: () => o("inactive"),
44
37
  onInput: (e) => o("input", e),
45
38
  onKeydown: (e) => o("keydown", e),
46
39
  onMousedown: (e) => o("mousedown", e),
47
40
  onMouseup: (e) => o("mouseup", e),
48
41
  "onUpdate:modelValue": (e) => o("update:modelValue", e)
49
42
  };
50
- return (e, D) => (m(), c(y, {
51
- class: "bb-checkbox-group",
43
+ return (e, g) => (b(), m(k, {
44
+ class: "bb-checkbox",
52
45
  direction: e.direction,
53
46
  errors: e.errors,
54
47
  hasErrors: e.hasErrors,
55
- hideLabel: e.hideLegend,
48
+ hideLabel: e.hideLabel,
56
49
  id: e.id,
57
50
  inputPosition: e.inputPosition,
58
- label: e.legend,
59
- labelPosition: e.legendPosition,
60
- labelTag: "legend",
51
+ label: e.label,
52
+ labelPosition: e.labelPosition,
53
+ labelTag: "span",
61
54
  name: e.name,
62
55
  reverse: e.reverse,
63
- tag: "fieldset"
56
+ tag: "label"
64
57
  }, {
65
- label: i((n) => [
66
- a(e.$slots, "legend", l(s(n)))
58
+ label: l((a) => [
59
+ n(e.$slots, "label", c(h(a)))
67
60
  ]),
68
- input: i(({ id: n, name: t }) => [
69
- b(f, h({
61
+ input: l(({ id: a, name: u, hasErrors: d }) => [
62
+ f(B, s({
70
63
  autofocus: e.autofocus,
64
+ checked: e.checked,
71
65
  color: e.color,
72
- dependencies: e.dependencies,
73
- depsDebounceTime: e.depsDebounceTime,
74
- direction: e.inputDirection,
75
66
  disabled: e.disabled,
76
- enforceCoherence: e.enforceCoherence,
77
- hasErrors: e.hasErrors,
78
- hideLabel: e.hideLabel,
79
- id: n,
80
- items: e.items,
81
- itemText: e.itemText,
82
- itemValue: e.itemValue,
83
- loadingText: e.loadingText,
67
+ hasErrors: d,
68
+ id: a,
69
+ indeterminate: e.indeterminate,
84
70
  modelValue: e.modelValue,
85
- modelValueDebounceTime: e.modelValueDebounceTime,
86
- name: t,
87
- noDataText: e.noDataText,
88
- readonly: e.readonly
89
- }, d), g({ _: 2 }, [
90
- T(e.$slots, (B, r) => ({
71
+ name: u,
72
+ readonly: e.readonly,
73
+ submitWhenFalse: e.submitWhenFalse,
74
+ trueValue: e.trueValue,
75
+ falseValue: e.falseValue
76
+ }, i), y({ _: 2 }, [
77
+ V(e.$slots, (w, r) => ({
91
78
  name: r,
92
- fn: i((u) => [
93
- a(e.$slots, r, l(s(u)))
79
+ fn: l((t) => [
80
+ n(e.$slots, r, s(t, { text: e.label }))
94
81
  ])
95
82
  }))
96
- ]), 1040, ["autofocus", "color", "dependencies", "depsDebounceTime", "direction", "disabled", "enforceCoherence", "hasErrors", "hideLabel", "id", "items", "itemText", "itemValue", "loadingText", "modelValue", "modelValueDebounceTime", "name", "noDataText", "readonly"])
83
+ ]), 1040, ["autofocus", "checked", "color", "disabled", "hasErrors", "id", "indeterminate", "modelValue", "name", "readonly", "submitWhenFalse", "trueValue", "falseValue"])
97
84
  ]),
98
85
  _: 3
99
86
  }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "name", "reverse"]));
100
87
  }
101
88
  });
102
89
  export {
103
- w as default
90
+ $ as default
104
91
  };
105
92
  //# sourceMappingURL=index42.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index42.js","sources":["../src/components/BbCheckboxGroup/BbCheckboxGroup.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 BaseCheckboxGroup from \"../BaseCheckboxGroup/BaseCheckboxGroup.vue\";\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport { BaseCheckboxGroupEvents } from \"../BaseCheckboxGroup/BaseCheckboxGroup.vue\"\nexport type BbCheckboxGroupEvents = BaseCheckboxGroupEvents;\nexport interface BbCheckboxGroupProps {\n autofocus?: boolean;\n color?: string;\n dependencies?: any[];\n depsDebounceTime?: number;\n direction?: \"horizontal\" | \"vertical\" | \"auto\";\n inputDirection?: \"horizontal\" | \"vertical\";\n disabled?: boolean;\n enforceCoherence?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLegend?: boolean;\n hideLabel?: boolean;\n id?: string;\n inputPosition?: \"left\" | \"center\" | \"right\";\n items: | any[] | ((prefill: boolean, modelValue: any) => Promise<any[]>) | ((prefill: boolean, modelValue: any) => any[]);\n itemText?: string | ((item: any) => string);\n itemValue?: string | ((item: any) => any);\n legend: string;\n legendPosition?: \"left\" | \"center\" | \"right\";\n loadingText?: string;\n modelValue?: any;\n modelValueDebounceTime?: number;\n name?: string;\n noDataText?: string;\n readonly?: boolean;\n reverse?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbCheckboxGroup',\n props: {\n autofocus: { type: Boolean },\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n direction: {},\n inputDirection: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLegend: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: {},\n items: { type: [Array, Function] },\n itemText: { type: [String, Function] },\n itemValue: { type: [String, Function] },\n legend: {},\n legendPosition: {},\n loadingText: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInactive: () => emit(\"inactive\"),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (event: any) => emit(\"update:modelValue\", event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-checkbox-group\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLegend,\n id: _ctx.id,\n inputPosition: _ctx.inputPosition,\n label: _ctx.legend,\n labelPosition: _ctx.legendPosition,\n labelTag: 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseCheckboxGroup, _mergeProps({\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n depsDebounceTime: _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n enforceCoherence: _ctx.enforceCoherence,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: id,\n items: _ctx.items,\n itemText: _ctx.itemText,\n itemValue: _ctx.itemValue,\n loadingText: _ctx.loadingText,\n modelValue: _ctx.modelValue,\n modelValueDebounceTime: _ctx.modelValueDebounceTime,\n name: name,\n noDataText: _ctx.noDataText,\n readonly: _ctx.readonly\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, [\"autofocus\", \"color\", \"dependencies\", \"depsDebounceTime\", \"direction\", \"disabled\", \"enforceCoherence\", \"hasErrors\", \"hideLabel\", \"id\", \"items\", \"itemText\", \"itemValue\", \"loadingText\", \"modelValue\", \"modelValueDebounceTime\", \"name\", \"noDataText\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseCheckboxGroup","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAqCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,WAAW,CAAC;AAAA,IACZ,gBAAgB,CAAC;AAAA,IACjB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,CAAC;AAAA,IAChB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AG,MAAM,CAAC,aAAa,SAAS,gBAAgB,oBAAoB,aAAa,YAAY,oBAAoB,aAAa,aAAa,MAAM,SAAS,YAAY,aAAa,eAAe,cAAc,0BAA0B,QAAQ,cAAc,UAAU,CAAC;AAAA,MAAA,CAC7Q;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,iBAAiB,SAAS,iBAAiB,QAAQ,SAAS,CAAC;AAAA,EAE7H;AAEA,CAAC;"}
1
+ {"version":3,"file":"index42.js","sources":["../src/components/BbCheckbox/BbCheckbox.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 BaseCheckbox from \"../BaseCheckbox/BaseCheckbox.vue\";\nimport type { BaseCheckboxEvents } from \"../BaseCheckbox/BaseCheckbox.vue\";\n\nexport type BbCheckboxEvents = BaseCheckboxEvents\n\nexport interface BbCheckboxProps {\n autofocus?: boolean;\n checked?: boolean;\n color?: string;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n falseValue?: any;\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n indeterminate?: boolean;\n inputPosition?: \"left\" | \"center\" | \"right\";\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: any;\n name?: string;\n readonly?: boolean;\n reverse?: boolean;\n submitWhenFalse?: boolean;\n trueValue?: any;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbCheckbox',\n props: {\n autofocus: { type: Boolean },\n checked: { type: Boolean },\n color: {},\n direction: { default: 'auto' },\n disabled: { type: Boolean },\n errors: {},\n falseValue: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n indeterminate: { type: Boolean },\n inputPosition: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean, default: true },\n submitWhenFalse: { type: Boolean },\n trueValue: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: any) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-checkbox\",\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 labelTag: 'span',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'label'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseCheckbox, _mergeProps({\n autofocus: _ctx.autofocus,\n checked: _ctx.checked,\n color: _ctx.color,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n indeterminate: _ctx.indeterminate,\n modelValue: _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n submitWhenFalse: _ctx.submitWhenFalse,\n trueValue: _ctx.trueValue,\n falseValue: _ctx.falseValue\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _mergeProps(data, { text: _ctx.label }))\n ])\n }\n })\n ]), 1040, [\"autofocus\", \"checked\", \"color\", \"disabled\", \"hasErrors\", \"id\", \"indeterminate\", \"modelValue\", \"name\", \"readonly\", \"submitWhenFalse\", \"trueValue\", \"falseValue\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseCheckbox","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAiCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,OAAO,CAAC;AAAA,IACR,WAAW,EAAE,SAAS,OAAO;AAAA,IAC7B,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,YAAY,CAAC;AAAA,IACb,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,EAAE,MAAM,QAAQ;AAAA,IAC/B,eAAe,CAAC;AAAA,IAChB,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;A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