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.
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +151 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +96 -0
- package/dist/components/BbRatio/BbRatio.vue.d.ts +12 -0
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +104 -98
- package/dist/index.js.map +1 -1
- package/dist/index10.js +123 -95
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +43 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index103.js +2 -2
- package/dist/index104.js +2 -2
- package/dist/index105.js +2 -2
- package/dist/index106.js +2 -2
- package/dist/index107.js +2 -2
- package/dist/index108.js +2 -2
- package/dist/index109.js +2 -2
- package/dist/index110.js +2 -2
- package/dist/index111.js +2 -2
- package/dist/index112.js +2 -2
- package/dist/index113.js +2 -2
- package/dist/index114.js +2 -2
- package/dist/index115.js +2 -2
- package/dist/index116.js +2 -2
- package/dist/index117.js +2 -2
- package/dist/index118.js +2 -2
- package/dist/index119.js +3 -2
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +4 -4
- package/dist/index120.js +2 -2
- package/dist/index121.js +3 -2
- package/dist/index121.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.js +2 -3
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -3
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index129.js +3 -2
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index131.js +2 -2
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -3
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +6 -6
- package/dist/index140.js +3 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index142.js +3 -2
- package/dist/index142.js.map +1 -1
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -2
- package/dist/index150.js +2 -2
- package/dist/index151.js +3 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +3 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +3 -8
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +3 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +348 -17
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +131 -17
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -29
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +19 -2
- package/dist/index160.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +184 -14
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -13
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +23 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +328 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +16 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +12 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -350
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -134
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -186
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -23
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +8 -328
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +29 -21
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +2 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +3 -3
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -38
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -28
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.js +2 -13
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +20 -8
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -96
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +3 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +38 -295
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -6
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +96 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +28 -2
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -2
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +6 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -235
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +294 -88
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -117
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +111 -100
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +105 -78
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +4 -224
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +226 -249
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -38
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -2
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +4 -4
- package/dist/index200.js +89 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +79 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +49 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +223 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +261 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +41 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +5 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +5 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +12 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +9 -0
- package/dist/index209.js.map +1 -0
- package/dist/index210.js +5 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +14 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +434 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +12 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +203 -0
- package/dist/index214.js.map +1 -0
- package/dist/index22.js +14 -14
- package/dist/index24.js +4 -4
- package/dist/index26.js +2 -2
- package/dist/index28.js +4 -4
- package/dist/index34.js +2 -2
- package/dist/index36.js +50 -37
- package/dist/index36.js.map +1 -1
- package/dist/index38.js +39 -39
- package/dist/index38.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +36 -82
- package/dist/index40.js.map +1 -1
- package/dist/index42.js +44 -57
- package/dist/index42.js.map +1 -1
- package/dist/index44.js +98 -79
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +79 -81
- package/dist/index46.js.map +1 -1
- package/dist/index48.js +80 -40
- package/dist/index48.js.map +1 -1
- package/dist/index50.js +40 -283
- package/dist/index50.js.map +1 -1
- package/dist/index52.js +279 -95
- package/dist/index52.js.map +1 -1
- package/dist/index54.js +98 -212
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +213 -44
- package/dist/index56.js.map +1 -1
- package/dist/index58.js +45 -40
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -96
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +44 -2
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +89 -211
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +210 -130
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +134 -18
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +145 -74
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +18 -98
- package/dist/index69.js.map +1 -1
- package/dist/index71.js +77 -17
- package/dist/index71.js.map +1 -1
- package/dist/index73.js +48 -66
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +21 -78
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +77 -46
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +44 -61
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +188 -181
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +82 -106
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +88 -370
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +106 -74
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +371 -68
- package/dist/index87.js.map +1 -1
- package/dist/index89.js +75 -111
- package/dist/index89.js.map +1 -1
- package/dist/index91.js +76 -87
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +111 -32
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +2 -37
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +87 -42
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +2 -43
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +38 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +37 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +47 -3
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index36.js","sources":["../src/components/
|
|
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
|
|
2
|
-
import l from "./
|
|
3
|
-
import "./
|
|
4
|
-
const
|
|
5
|
-
__name: "
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
44
|
+
S as default
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=index38.js.map
|
package/dist/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":["../src/components/
|
|
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,MA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
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 "./
|
|
3
|
-
import { when as M } from "./
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
activeClass: {},
|
|
8
|
+
ariaCurrentValue: {},
|
|
9
|
+
block: { type: Boolean },
|
|
10
|
+
custom: { type: Boolean },
|
|
11
|
+
data: {},
|
|
13
12
|
disabled: { type: Boolean },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
},
|
|
40
|
+
}, 16));
|
|
87
41
|
}
|
|
88
42
|
});
|
|
89
43
|
export {
|
|
90
|
-
|
|
44
|
+
f as default
|
|
91
45
|
};
|
|
92
46
|
//# sourceMappingURL=index40.js.map
|
package/dist/index40.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index40.js","sources":["../src/components/
|
|
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
|
|
2
|
-
import
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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", "
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
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,
|
|
51
|
-
class: "bb-checkbox
|
|
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.
|
|
48
|
+
hideLabel: e.hideLabel,
|
|
56
49
|
id: e.id,
|
|
57
50
|
inputPosition: e.inputPosition,
|
|
58
|
-
label: e.
|
|
59
|
-
labelPosition: e.
|
|
60
|
-
labelTag: "
|
|
51
|
+
label: e.label,
|
|
52
|
+
labelPosition: e.labelPosition,
|
|
53
|
+
labelTag: "span",
|
|
61
54
|
name: e.name,
|
|
62
55
|
reverse: e.reverse,
|
|
63
|
-
tag: "
|
|
56
|
+
tag: "label"
|
|
64
57
|
}, {
|
|
65
|
-
label:
|
|
66
|
-
|
|
58
|
+
label: l((a) => [
|
|
59
|
+
n(e.$slots, "label", c(h(a)))
|
|
67
60
|
]),
|
|
68
|
-
input:
|
|
69
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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:
|
|
93
|
-
|
|
79
|
+
fn: l((t) => [
|
|
80
|
+
n(e.$slots, r, s(t, { text: e.label }))
|
|
94
81
|
])
|
|
95
82
|
}))
|
|
96
|
-
]), 1040, ["autofocus", "
|
|
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
|
-
|
|
90
|
+
$ as default
|
|
104
91
|
};
|
|
105
92
|
//# sourceMappingURL=index42.js.map
|
package/dist/index42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.js","sources":["../src/components/
|
|
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","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