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/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":["../src/components/BbIcon/BbIcon.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n ref,\n watch,\n} from \"vue\";\nimport { isCssColor } from \"@/utilities/functions/isCssColor\";\nimport { Classes } from \"@/types/Classes\";\nexport type Size = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport interface BbIconProps {\n color?: \"primary\" | \"secondary\" | \"tertiary\" | \"link\" | \"icon\" | string;\n size?: Size | string | number;\n type: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbIcon',\n props: {\n color: {},\n size: { default: \"md\" },\n type: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nlet icons: Record<string, () => Promise<string>> | undefined;\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nif (isNuxt) {\n// @ts-ignore\n icons = useNuxtApp()[`$icons`];\n} else {\n icons = inject('icons');\n}\nconst container = ref<HTMLElement | null>(null);\n\nconst sizeMap: Record<Size, number> = {\n xs: 12,\n sm: 16,\n md: 24,\n lg: 28,\n xl: 36,\n xxl: 40,\n};\n\nconst iconAttributes = computed(() => {\n const classes: Classes = {\n \"bb-icon\": true,\n };\n const width = computed(() => {\n let dimension: number;\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 return dimension + `px`;\n });\n let style: { [key: string]: any } = { width: width.value };\n\n if (props.color) {\n if (isCssColor(props.color)) {\n style.color = props.color;\n } else {\n classes[`text-${props.color}`] = true;\n }\n }\n return {\n class: classes,\n style,\n };\n});\n\nconst setIcon = () => {\n if (icons) {\n if (typeof icons[props.type] === \"undefined\")\n throw new Error(`Icon \"${props.type}\" does not exist.`);\n return icons[props.type]().then((content) => {\n if (container.value) {\n container.value.innerHTML = content;\n }\n });\n }\n};\n\nonMounted(setIcon);\nwatch(() => props.type, setIcon);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"i\", _mergeProps(iconAttributes.value, {\n ref_key: \"container\",\n ref: container\n }), null, 16))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","icons","_b","_a","getCurrentInstance","inject","container","ref","sizeMap","iconAttributes","computed","classes","style","dimension","isCssColor","setIcon","content","onMounted","watch","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps"],"mappings":";;AAqBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,MAAM,EAAE,SAAS,KAAK;AAAA,IACtB,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;;AAEtB,UAAMC,IAAQD;AAGV,QAAAE;AAIJ,IAFe,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,SAIpCD,IAAA,WAAA,EAAa,SAErBA,IAAQI,EAAO,OAAO;AAElB,UAAAC,IAAYC,EAAwB,IAAI,GAExCC,IAAgC;AAAA,MACpC,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA,IAAA,GAGDC,IAAiBC,EAAS,MAAM;AACpC,YAAMC,IAAmB;AAAA,QACvB,WAAW;AAAA,MAAA;AAWb,UAAIC,IAAgC,EAAE,OATxBF,EAAS,MAAM;AACvB,YAAAG;AACA,eAAA,OAAOb,EAAM,QAAS,WACxBa,IAAYL,EAAQR,EAAM,IAAY,KAAK,SAASA,EAAM,MAAM,EAAE,IAElEa,IAAYb,EAAM,MAEba,IAAY;AAAA,MAAA,CACpB,EACkD,MAAM;AAEzD,aAAIb,EAAM,UACJc,EAAWd,EAAM,KAAK,IACxBY,EAAM,QAAQZ,EAAM,QAEpBW,EAAQ,QAAQX,EAAM,KAAK,EAAE,IAAI,KAG9B;AAAA,QACL,OAAOW;AAAA,QACP,OAAAC;AAAA,MAAA;AAAA,IACF,CACD,GAEKG,IAAU,MAAM;AACpB,UAAId,GAAO;AACT,YAAI,OAAOA,EAAMD,EAAM,IAAI,IAAM;AAC/B,gBAAM,IAAI,MAAM,SAASA,EAAM,IAAI,mBAAmB;AACxD,eAAOC,EAAMD,EAAM,IAAI,IAAI,KAAK,CAACgB,MAAY;AAC3C,UAAIV,EAAU,UACZA,EAAU,MAAM,YAAYU;AAAA,QAC9B,CACD;AAAA,MACH;AAAA,IAAA;AAGF,WAAAC,EAAUF,CAAO,GACXG,EAAA,MAAMlB,EAAM,MAAMe,CAAO,GAExB,CAACI,GAAUC,OACRC,EAAc,GAAAC,EAAoB,KAAKC,EAAYd,EAAe,OAAO;AAAA,MAC/E,SAAS;AAAA,MACT,KAAKH;AAAA,IAAA,CACN,GAAG,MAAM,EAAE;AAAA,EAEd;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index56.js","sources":["../src/components/BbDropzone/BbDropzone.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, withModifiers as _withModifiers, unref as _unref, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, withCtx as _withCtx, createVNode as _createVNode, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = [\"onDrop\", \"onDragenter\", \"onDragover\", \"onDragleave\"]\nconst _hoisted_2 = [\"accept\", \"autofocus\", \"disabled\", \"multiple\"]\nconst _hoisted_3 = {\n class: \"bb-dropzone__submittable-label\",\n \"aria-hidden\": \"true\"\n}\nconst _hoisted_4 = [\"id\", \"name\", \"multiple\", \"disabled\"]\nconst _hoisted_5 = { class: \"bb-dropzone__errors\" }\n\nimport { computed, ref, watch } from \"vue\";\nimport { findInTree } from \"@/utilities/functions/findInTree\";\nimport { nanoid } from \"nanoid\";\nimport BbSmoothHeight from \"../BbSmoothHeight/BbSmoothHeight.vue\";\n\nexport type DropZoneError = ReturnType<\n (typeof createError)[keyof typeof createError]\n>;\n\nexport interface BbDropzoneProps {\n accept?: string[];\n autofocus?: boolean;\n disabled?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n id?: string;\n maxFiles?: number;\n maxSize?: number;\n modelValue: any;\n multiple?: boolean;\n name?: string;\n tag?: string;\n}\n\n// This is the dynamic import for mime\nexport type BbDropzoneEvents = {\n (e: \"blur\", event: FocusEvent): void;\n (e: \"error\", data: DropZoneError): void;\n (e: \"focus\", event: FocusEvent): void;\n (e: \"update:modelValue\", data: any): void;\n};\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDropzone',\n props: {\n accept: {},\n autofocus: { type: Boolean },\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n id: {},\n maxFiles: {},\n maxSize: {},\n modelValue: {},\n multiple: { type: Boolean },\n name: {},\n tag: { default: \"div\" }\n },\n emits: [\"blur\", \"error\", \"focus\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\nconst props = __props;\n\nlet mime: any;\n\n\n\n\nconst submittable = ref<any | null>(null);\n\nif (props.accept) {\n if (!Array.isArray(props.accept)) {\n throw new Error(\"Property accept is not an array\");\n }\n}\nif (props.multiple) {\n if (!Array.isArray(props.modelValue)) {\n throw new Error(\n \"Component is set to multiple but modelValue is not an array\"\n );\n }\n}\n\n/** Allow dropzone to be submittable (this is flimsy and might break) */\nwatch(\n () => props.modelValue,\n () => {\n let container = new DataTransfer();\n if (Array.isArray(props.modelValue)) {\n if (props.modelValue.length) {\n props.modelValue.forEach((file) => container.items.add(file));\n }\n } else {\n if (props.modelValue) container.items.add(props.modelValue);\n }\n if (submittable.value) {\n if (container.items.length) {\n submittable.value.files = container.files;\n } else {\n submittable.value.files = null;\n }\n }\n }\n);\n\nconst acceptedMimeTypes = ref<string[]>([]);\nconst acceptedMimeTypesString = computed(() =>\n acceptedMimeTypes.value.join(\",\")\n);\nwatch(\n () => props.accept,\n async () => {\n if (props.accept) {\n let accumulated = [];\n for (let i = 0; i < props.accept.length; i++) {\n const element = props.accept[i];\n if (element.includes(\"/\")) accumulated.push(element);\n else {\n if (!mime) mime = await import(\"mime\");\n const foundMime = mime.getType(element);\n if (!foundMime) {\n throw new Error(\n `Could not detect the correct mime associated with ${element}`\n );\n }\n accumulated.push(foundMime);\n }\n }\n acceptedMimeTypes.value = accumulated;\n }\n },\n { immediate: true }\n);\n\n/**\n * Component state\n */\nconst id = props.id || `${nanoid()}`;\nconst containerId = `bb_dz_${id}`;\n\nconst dragging = ref(false);\n// Add a timeout to prevent browser flickering\nlet draggingTimeout: ReturnType<typeof setTimeout>;\n\nconst classes = computed(() => {\n return {\n \"bb-dropzone\": true,\n \"bb-dropzone--errors\": hasErrors.value,\n \"bb-dropzone--dragging\": dragging.value,\n };\n});\nconst slotAttributes = computed(() => {\n return {\n dragging: dragging.value,\n id: id,\n };\n});\n\n/**\n * Component handlers\n */\nconst onDrop = (event: DragEvent) => {\n dragging.value = false;\n\n if (event.dataTransfer) {\n event.stopImmediatePropagation();\n let files;\n files = Array.from(event.dataTransfer.files);\n files = parseFiles(files);\n if (props.multiple) {\n if (Array.isArray(props.modelValue)) {\n emit(\"update:modelValue\", [...props.modelValue, ...files]);\n }\n } else {\n files = files[0];\n emit(\"update:modelValue\", files);\n }\n if (event.currentTarget instanceof HTMLLabelElement) {\n const innerInput = event.currentTarget.querySelector(\"input[type=file]\");\n if (innerInput instanceof HTMLInputElement) {\n innerInput.focus();\n }\n }\n }\n};\nconst onChange = (event: Event) => {\n if (event.target instanceof HTMLInputElement) {\n if (event.target.files) {\n let files;\n files = parseFiles(Array.from(event.target.files));\n if (props.multiple) {\n if (Array.isArray(props.modelValue)) {\n emit(\"update:modelValue\", [...props.modelValue, ...files]);\n }\n } else {\n files = files[0];\n emit(\"update:modelValue\", files);\n }\n }\n event.target.value = \"\";\n event.target.files = null;\n }\n};\n\nconst parseFiles = (files: File[]) => {\n return files.filter((file, index) => {\n // Sizecheck\n if (props.maxSize) {\n let passing = file.size <= props.maxSize;\n if (!passing) {\n emit(\"error\", createError.maxSize(file));\n return false;\n }\n }\n // Uniqueness check\n let alreadyExists = false;\n if (props.modelValue) {\n if (Array.isArray(props.modelValue)) {\n alreadyExists = props.modelValue.some((current) =>\n compareFiles(current, file)\n );\n } else {\n alreadyExists = compareFiles(props.modelValue, file);\n }\n }\n if (alreadyExists) {\n emit(\"error\", createError.uniqueness(file));\n return false;\n }\n // Mime type check\n if (props.accept) {\n const mimePassed = acceptedMimeTypes.value.some((mime) => {\n let found = false;\n if (mime.includes(\"*\"))\n found = found || mime.split(\"/\")[0] === file.type.split(\"/\")[0];\n else found = found || mime === file.type;\n return found;\n });\n if (!mimePassed) {\n emit(\"error\", createError.accept(file));\n return false;\n }\n }\n // Max files check\n if (props.maxFiles) {\n if (Array.isArray(props.modelValue)) {\n if (props.modelValue.length + index + 1 > props.maxFiles) {\n emit(\n \"error\",\n createError.maxFiles(file, props.modelValue.length + index)\n );\n return false;\n }\n }\n }\n return true;\n });\n};\n\nconst onDragOver = (event: Event) => {\n // Find the closest dropzone in case of nested dropzones\n const target = event.target;\n if (target instanceof HTMLElement) {\n const closestDropzone = findInTree([target], \"parentElement\", (el) =>\n el.classList.contains(\"bb-dropzone\")\n );\n if (closestDropzone) {\n /* When dragging over this dropzone set as dragging */\n if (closestDropzone.id === containerId) {\n setDragging();\n /* When dragging over a nested dropzone do not highlight this dropzone */\n } else {\n unsetDragging();\n }\n }\n }\n};\n\nconst setDragging = () => {\n clearTimeout(draggingTimeout);\n dragging.value = true;\n};\n\nconst unsetDragging = () => {\n draggingTimeout = setTimeout(() => {\n dragging.value = false;\n }, 100);\n};\n\nconst bytesToUnit = (bytes: number, decimals = 2) => {\n if (!bytes) return \"0 B\";\n const k = 1024;\n const dm = decimals || 0;\n const sizes = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + \" \" + sizes[i];\n};\n\n/**\n * Returns true if files are identical by the properties that are accessible\n * @param file The file to check\n * @param otherFile The file to check against\n */\nconst compareFiles = (file: File, otherFile: File) => {\n const properties: (keyof File)[] = [\"name\", \"size\", \"lastModified\", \"type\"];\n return !properties.some((key) => file[key] !== otherFile[key]);\n};\n\n/**\n * Helper that creates errors based on component properties\n */\nconst createError = {\n maxSize: (file: File) => {\n // Todo update to isNil\n if (props.maxSize) {\n return {\n type: \"maxSize\",\n file: file,\n formattedMaxSize: bytesToUnit(+props.maxSize),\n formattedSize: bytesToUnit(file.size),\n filename: file.name,\n };\n }\n },\n uniqueness: (file: File) => {\n // Todo update to isNil\n if (props.maxSize) {\n return {\n type: \"uniqueness\",\n file: file,\n filename: file.name,\n };\n }\n },\n accept: (file: File) => {\n return {\n type: \"accept\",\n file: file,\n acceptedMimeTypes: acceptedMimeTypes.value,\n mimeType: file.type,\n filename: file.name,\n };\n },\n maxFiles: (file: File, totalFiles: number) => {\n return {\n type: \"maxFiles\",\n file: file,\n maxFiles: props.maxFiles,\n totalFiles,\n filename: file.name,\n };\n },\n};\n\nconst computedErrors = computed(() => {\n return props.errors ? ([] as string[]).concat(props.errors) : [];\n});\n\nconst hasErrors = computed(\n () => Boolean(computedErrors.value.length) || props.hasErrors\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {\n class: _normalizeClass(classes.value),\n id: containerId\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"label\", {\n onDrop: _withModifiers(onDrop, [\"prevent\"]),\n onDragenter: _withModifiers(setDragging, [\"prevent\"]),\n onDragover: _withModifiers(onDragOver, [\"prevent\"]),\n onDragleave: _withModifiers(unsetDragging, [\"prevent\"])\n }, [\n _createElementVNode(\"input\", {\n type: \"file\",\n accept: acceptedMimeTypesString.value,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n multiple: _ctx.multiple,\n onChange: onChange,\n onFocus: _cache[0] || (_cache[0] = (event) => _ctx.$emit('focus', event)),\n onBlur: _cache[1] || (_cache[1] = (event) => _ctx.$emit('blur', event))\n }, null, 40, _hoisted_2),\n _renderSlot(_ctx.$slots, \"default\", _normalizeProps(_guardReactiveProps(slotAttributes.value)))\n ], 40, _hoisted_1),\n _createElementVNode(\"label\", _hoisted_3, [\n _createTextVNode(\" Server files \"),\n _createElementVNode(\"input\", {\n class: \"bb-dropzone__submittable-input\",\n type: \"file\",\n id: _unref(id),\n name: _ctx.name,\n ref_key: \"submittable\",\n ref: submittable,\n multiple: _ctx.multiple,\n disabled: _ctx.disabled\n }, null, 8, _hoisted_4)\n ]),\n _createElementVNode(\"span\", _hoisted_5, [\n _createVNode(BbSmoothHeight, { tag: \"span\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(computedErrors.value, (error) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: \"bb-dropzone__error\",\n key: error\n }, _toDisplayString(error), 1))\n }), 128))\n ]),\n _: 1\n })\n ])\n ]),\n _: 3\n }, 8, [\"class\"]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","mime","submittable","ref","watch","container","file","acceptedMimeTypes","acceptedMimeTypesString","computed","accumulated","i","element","foundMime","id","nanoid","containerId","dragging","draggingTimeout","classes","hasErrors","slotAttributes","onDrop","event","files","parseFiles","innerInput","onChange","index","createError","alreadyExists","current","compareFiles","found","onDragOver","target","closestDropzone","findInTree","el","setDragging","unsetDragging","bytesToUnit","bytes","decimals","k","dm","sizes","otherFile","key","totalFiles","computedErrors","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeClass","_withCtx","_createElementVNode","_withModifiers","_renderSlot","_normalizeProps","_guardReactiveProps","_createTextVNode","_unref","_createVNode","BbSmoothHeight","_createElementBlock","_Fragment","_renderList","error","_toDisplayString"],"mappings":";;;;;AAGA,MAAMA,KAAa,CAAC,UAAU,eAAe,cAAc,aAAa,GAClEC,KAAa,CAAC,UAAU,aAAa,YAAY,UAAU,GAC3DC,KAAa;AAAA,EACjB,OAAO;AAAA,EACP,eAAe;AACjB,GACMC,KAAa,CAAC,MAAM,QAAQ,YAAY,UAAU,GAClDC,KAAa,EAAE,OAAO,yBAkCAC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,UAAU,CAAC;AAAA,IACX,SAAS,CAAC;AAAA,IACV,YAAY,CAAC;AAAA,IACb,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,KAAK,EAAE,SAAS,MAAM;AAAA,EACxB;AAAA,EACA,OAAO,CAAC,QAAQ,SAAS,SAAS,mBAAmB;AAAA,EACrD,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAEhC,UAAMC,IAAQF;AAEV,QAAAG;AAKE,UAAAC,IAAcC,EAAgB,IAAI;AAExC,QAAIH,EAAM,UACJ,CAAC,MAAM,QAAQA,EAAM,MAAM;AACvB,YAAA,IAAI,MAAM,iCAAiC;AAGrD,QAAIA,EAAM,YACJ,CAAC,MAAM,QAAQA,EAAM,UAAU;AACjC,YAAM,IAAI;AAAA,QACR;AAAA,MAAA;AAMN,IAAAI;AAAA,MACE,MAAMJ,EAAM;AAAA,MACZ,MAAM;AACA,YAAAK,IAAY,IAA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AAoB,SAASjE,IAAY;AAAA,UACvCsE,EAAiB,gBAAgB;AAAA,UACjCL,EAAoB,SAAS;AAAA,YAC3B,OAAO;AAAA,YACP,MAAM;AAAA,YACN,IAAIM,EAAOlD,CAAE;AAAA,YACb,MAAMqC,EAAK;AAAA,YACX,SAAS;AAAA,YACT,KAAKjD;AAAA,YACL,UAAUiD,EAAK;AAAA,YACf,UAAUA,EAAK;AAAA,UAAA,GACd,MAAM,GAAGzD,EAAU;AAAA,QAAA,CACvB;AAAA,QACDgE,EAAoB,QAAQ/D,IAAY;AAAA,UACtCsE,EAAaC,IAAgB,EAAE,KAAK,UAAU;AAAA,YAC5C,SAAST,EAAS,MAAM;AAAA,eACrBJ,EAAW,EAAI,GAAGc,EAAoBC,GAAW,MAAMC,EAAYnB,EAAe,OAAO,CAACoB,OACjFjB,EAAA,GAAcc,EAAoB,QAAQ;AAAA,gBAChD,OAAO;AAAA,gBACP,KAAKG;AAAA,cACJ,GAAAC,EAAiBD,CAAK,GAAG,CAAC,EAC9B,GAAG,GAAG;AAAA,YAAA,CACR;AAAA,YACD,GAAG;AAAA,UAAA,CACJ;AAAA,QAAA,CACF;AAAA,MAAA,CACF;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,OAAO,CAAC;AAAA,EAEjB;AAEA,CAAC;"}
|
package/dist/index58.js
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
__name: "
|
|
1
|
+
import { defineComponent as m, getCurrentInstance as x, inject as y, ref as h, computed as u, onMounted as _, watch as w, openBlock as z, createElementBlock as I, mergeProps as b } from "vue";
|
|
2
|
+
import { isCssColor as g } from "./index171.js";
|
|
3
|
+
const k = /* @__PURE__ */ m({
|
|
4
|
+
__name: "BbIcon",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
threshold: [0, 0.2, 0.4, 0.6, 0.8, 1]
|
|
10
|
-
}) },
|
|
11
|
-
tag: { default: "div" }
|
|
6
|
+
color: {},
|
|
7
|
+
size: { default: "md" },
|
|
8
|
+
type: {}
|
|
12
9
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
10
|
+
setup(p) {
|
|
11
|
+
var i, c;
|
|
12
|
+
const e = p;
|
|
13
|
+
let t;
|
|
14
|
+
!!((c = (i = x()) == null ? void 0 : i.proxy) != null && c.$nuxt) ? t = useNuxtApp().$icons : t = y("icons");
|
|
15
|
+
const n = h(null), a = {
|
|
16
|
+
xs: 12,
|
|
17
|
+
sm: 16,
|
|
18
|
+
md: 24,
|
|
19
|
+
lg: 28,
|
|
20
|
+
xl: 36,
|
|
21
|
+
xxl: 40
|
|
22
|
+
}, f = u(() => {
|
|
23
|
+
const o = {
|
|
24
|
+
"bb-icon": !0
|
|
25
|
+
};
|
|
26
|
+
let l = { width: u(() => {
|
|
27
|
+
let s;
|
|
28
|
+
return typeof e.size == "string" ? s = a[e.size] ?? parseInt(e.size, 10) : s = e.size, s + "px";
|
|
29
|
+
}).value };
|
|
30
|
+
return e.color && (g(e.color) ? l.color = e.color : o[`text-${e.color}`] = !0), {
|
|
31
|
+
class: o,
|
|
32
|
+
style: l
|
|
33
|
+
};
|
|
34
|
+
}), r = () => {
|
|
35
|
+
if (t) {
|
|
36
|
+
if (typeof t[e.type] > "u")
|
|
37
|
+
throw new Error(`Icon "${e.type}" does not exist.`);
|
|
38
|
+
return t[e.type]().then((o) => {
|
|
39
|
+
n.value && (n.value.innerHTML = o);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return _(r), w(() => e.type, r), (o, d) => (z(), I("i", b(f.value, {
|
|
44
|
+
ref_key: "container",
|
|
45
|
+
ref: n
|
|
46
|
+
}), null, 16));
|
|
42
47
|
}
|
|
43
48
|
});
|
|
44
49
|
export {
|
|
45
|
-
|
|
50
|
+
k as default
|
|
46
51
|
};
|
|
47
52
|
//# sourceMappingURL=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index58.js","sources":["../src/components/BbIcon/BbIcon.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n ref,\n watch,\n} from \"vue\";\nimport { isCssColor } from \"@/utilities/functions/isCssColor\";\nimport { Classes } from \"@/types/Classes\";\nexport type Size = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport interface BbIconProps {\n color?: \"primary\" | \"secondary\" | \"tertiary\" | \"link\" | \"icon\" | string;\n size?: Size | string | number;\n type: string;\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbIcon',\n props: {\n color: {},\n size: { default: \"md\" },\n type: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nlet icons: Record<string, () => Promise<string>> | undefined;\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nif (isNuxt) {\n// @ts-ignore\n icons = useNuxtApp()[`$icons`];\n} else {\n icons = inject('icons');\n}\nconst container = ref<HTMLElement | null>(null);\n\nconst sizeMap: Record<Size, number> = {\n xs: 12,\n sm: 16,\n md: 24,\n lg: 28,\n xl: 36,\n xxl: 40,\n};\n\nconst iconAttributes = computed(() => {\n const classes: Classes = {\n \"bb-icon\": true,\n };\n const width = computed(() => {\n let dimension: number;\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 return dimension + `px`;\n });\n let style: { [key: string]: any } = { width: width.value };\n\n if (props.color) {\n if (isCssColor(props.color)) {\n style.color = props.color;\n } else {\n classes[`text-${props.color}`] = true;\n }\n }\n return {\n class: classes,\n style,\n };\n});\n\nconst setIcon = () => {\n if (icons) {\n if (typeof icons[props.type] === \"undefined\")\n throw new Error(`Icon \"${props.type}\" does not exist.`);\n return icons[props.type]().then((content) => {\n if (container.value) {\n container.value.innerHTML = content;\n }\n });\n }\n};\n\nonMounted(setIcon);\nwatch(() => props.type, setIcon);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"i\", _mergeProps(iconAttributes.value, {\n ref_key: \"container\",\n ref: container\n }), null, 16))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","icons","_b","_a","getCurrentInstance","inject","container","ref","sizeMap","iconAttributes","computed","classes","style","dimension","isCssColor","setIcon","content","onMounted","watch","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps"],"mappings":";;AAqBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,MAAM,EAAE,SAAS,KAAK;AAAA,IACtB,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;;AAEtB,UAAMC,IAAQD;AAGV,QAAAE;AAIJ,IAFe,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,SAIpCD,IAAA,WAAA,EAAa,SAErBA,IAAQI,EAAO,OAAO;AAElB,UAAAC,IAAYC,EAAwB,IAAI,GAExCC,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";
|
|
4
|
-
import V from "./index16.js";
|
|
5
|
-
import "./index17.js";
|
|
6
|
-
const I = /* @__PURE__ */ m({
|
|
7
|
-
__name: "BbNumberInput",
|
|
8
|
-
props: {
|
|
9
|
-
autocomplete: {},
|
|
10
|
-
autofocus: { type: Boolean },
|
|
11
|
-
direction: {},
|
|
12
|
-
disabled: { type: Boolean },
|
|
13
|
-
errors: {},
|
|
14
|
-
handles: { type: Boolean },
|
|
15
|
-
hasErrors: { type: Boolean },
|
|
16
|
-
hideLabel: { type: Boolean },
|
|
17
|
-
id: {},
|
|
18
|
-
inputPosition: {},
|
|
19
|
-
label: {},
|
|
20
|
-
labelPosition: {},
|
|
21
|
-
labelTag: {},
|
|
22
|
-
max: {},
|
|
23
|
-
min: {},
|
|
24
|
-
modelValue: {},
|
|
25
|
-
name: {},
|
|
26
|
-
placeholder: {},
|
|
27
|
-
readonly: { type: Boolean },
|
|
28
|
-
reverse: { type: Boolean },
|
|
29
|
-
step: {},
|
|
30
|
-
tag: {}
|
|
31
|
-
},
|
|
32
|
-
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
33
|
-
setup(g, { emit: o }) {
|
|
34
|
-
const i = {
|
|
35
|
-
onBlur: (e) => o("blur", e),
|
|
36
|
-
onChange: (e) => o("change", e),
|
|
37
|
-
onClick: (e) => o("click", e),
|
|
38
|
-
onDecrease: (e) => o("decrease", e),
|
|
39
|
-
onFocus: (e) => o("focus", e),
|
|
40
|
-
onIncrease: (e) => o("increase", e),
|
|
41
|
-
onInput: (e) => o("input", e),
|
|
42
|
-
onKeydown: (e) => o("keydown", e),
|
|
43
|
-
onMousedown: (e) => o("mousedown", e),
|
|
44
|
-
onMouseup: (e) => o("mouseup", e),
|
|
45
|
-
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
46
|
-
};
|
|
47
|
-
return (e, k) => (b(), c(P, {
|
|
48
|
-
class: "bb-number-input",
|
|
49
|
-
direction: e.direction,
|
|
50
|
-
errors: e.errors,
|
|
51
|
-
hasErrors: e.hasErrors,
|
|
52
|
-
hideLabel: e.hideLabel,
|
|
53
|
-
id: e.id,
|
|
54
|
-
inputPosition: e.inputPosition,
|
|
55
|
-
label: e.label,
|
|
56
|
-
labelPosition: e.labelPosition,
|
|
57
|
-
modelValue: e.modelValue,
|
|
58
|
-
name: e.name,
|
|
59
|
-
reverse: e.reverse
|
|
60
|
-
}, {
|
|
61
|
-
label: l((a) => [
|
|
62
|
-
r(e.$slots, "label", s(d(a)))
|
|
63
|
-
]),
|
|
64
|
-
input: l(({
|
|
65
|
-
id: a,
|
|
66
|
-
name: u,
|
|
67
|
-
hasErrors: p
|
|
68
|
-
}) => [
|
|
69
|
-
h(V, f({
|
|
70
|
-
autocomplete: e.autocomplete,
|
|
71
|
-
autofocus: e.autofocus,
|
|
72
|
-
disabled: e.disabled,
|
|
73
|
-
handles: e.handles,
|
|
74
|
-
hasErrors: p,
|
|
75
|
-
id: a,
|
|
76
|
-
max: e.max,
|
|
77
|
-
min: e.min,
|
|
78
|
-
modelValue: e.modelValue,
|
|
79
|
-
name: u,
|
|
80
|
-
placeholder: e.placeholder,
|
|
81
|
-
readonly: e.readonly,
|
|
82
|
-
step: e.step
|
|
83
|
-
}, i), y({ _: 2 }, [
|
|
84
|
-
B(e.$slots, (w, n) => ({
|
|
85
|
-
name: n,
|
|
86
|
-
fn: l((t) => [
|
|
87
|
-
r(e.$slots, n, s(d(t)))
|
|
88
|
-
])
|
|
89
|
-
}))
|
|
90
|
-
]), 1040, ["autocomplete", "autofocus", "disabled", "handles", "hasErrors", "id", "max", "min", "modelValue", "name", "placeholder", "readonly", "step"])
|
|
91
|
-
]),
|
|
92
|
-
_: 3
|
|
93
|
-
}, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "modelValue", "name", "reverse"]));
|
|
94
|
-
}
|
|
95
|
-
});
|
|
1
|
+
const e = "";
|
|
96
2
|
export {
|
|
97
|
-
|
|
3
|
+
e as default
|
|
98
4
|
};
|
|
99
5
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":[
|
|
1
|
+
{"version":3,"file":"index59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index6.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as U, ref as b, useSlots as W, computed as E, watch as N, openBlock as c, createElementBlock as f, normalizeClass as S, createElementVNode as _, renderSlot as r, createTextVNode as C, toDisplayString as L, createCommentVNode as X, Fragment as F, renderList as D, createVNode as Y, mergeProps as $, createSlots as Z, unref as ee, withCtx as te } from "vue";
|
|
2
2
|
import { identity as oe } from "./index161.js";
|
|
3
|
-
import { useItemText as ne } from "./
|
|
4
|
-
import { useItemValue as ae } from "./
|
|
5
|
-
import { isNil as le } from "./
|
|
6
|
-
import { omit as se } from "./
|
|
3
|
+
import { useItemText as ne } from "./index167.js";
|
|
4
|
+
import { useItemValue as ae } from "./index168.js";
|
|
5
|
+
import { isNil as le } from "./index169.js";
|
|
6
|
+
import { omit as se } from "./index170.js";
|
|
7
7
|
import re from "./index4.js";
|
|
8
8
|
import "./index5.js";
|
|
9
9
|
const ie = { class: "bb-base-checkbox-group__container" }, ue = {
|
package/dist/index60.js
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as v, ref as t, onMounted as h, onBeforeUnmount as p, openBlock as m, createBlock as g, resolveDynamicComponent as b, withCtx as w, renderSlot as _ } from "vue";
|
|
2
|
+
import { throttle as i } from "./index177.js";
|
|
3
|
+
const C = /* @__PURE__ */ v({
|
|
4
|
+
__name: "BbIntersection",
|
|
5
|
+
props: {
|
|
6
|
+
debounceTime: { default: 0 },
|
|
7
|
+
options: { default: () => ({
|
|
8
|
+
root: null,
|
|
9
|
+
threshold: [0, 0.2, 0.4, 0.6, 0.8, 1]
|
|
10
|
+
}) },
|
|
11
|
+
tag: { default: "div" }
|
|
12
|
+
},
|
|
13
|
+
emits: ["shown", "hidden", "intersected"],
|
|
14
|
+
setup(c, { emit: l }) {
|
|
15
|
+
const u = c, n = t(null), r = t(null), o = t(!1), s = t(!0), a = t(0);
|
|
16
|
+
h(() => {
|
|
17
|
+
n.value = new IntersectionObserver((e) => {
|
|
18
|
+
d(e[0]);
|
|
19
|
+
}, u.options), r.value && n.value.observe(r.value);
|
|
20
|
+
}), p(() => {
|
|
21
|
+
n.value && n.value.disconnect();
|
|
22
|
+
});
|
|
23
|
+
const d = i((e) => {
|
|
24
|
+
e.isIntersecting ? (a.value = Math.trunc(e.intersectionRatio * 100), e.intersectionRatio === 1 ? (o.value = !0, s.value = !1, l("shown")) : (o.value = !1, s.value = !1, f(Math.trunc(e.intersectionRatio * 100)))) : (o.value = !1, s.value = !0, l("hidden"));
|
|
25
|
+
}), f = i((e) => {
|
|
26
|
+
l("intersected", e);
|
|
27
|
+
});
|
|
28
|
+
return (e, I) => (m(), g(b(e.tag), {
|
|
29
|
+
class: "bb-intersection",
|
|
30
|
+
ref_key: "infinitescrolltrigger",
|
|
31
|
+
ref: r
|
|
32
|
+
}, {
|
|
33
|
+
default: w(() => [
|
|
34
|
+
_(e.$slots, "default", {
|
|
35
|
+
hidden: s.value,
|
|
36
|
+
percentage: a.value,
|
|
37
|
+
shown: o.value
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 512));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
2
44
|
export {
|
|
3
|
-
|
|
45
|
+
C as default
|
|
4
46
|
};
|
|
5
47
|
//# sourceMappingURL=index60.js.map
|
package/dist/index60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index60.js","sources":["../src/components/BbIntersection/BbIntersection.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { throttle } from \"@/utilities/functions/throttle\";\nimport { onBeforeUnmount, onMounted, ref } from \"vue\";\n\nexport interface BbIntersectionProps {\n debounceTime?: number;\n options?: IntersectionObserverInit;\n tag?: string;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbIntersection',\n props: {\n debounceTime: { default: 0 },\n options: { default: () => ({\n root: null,\n threshold: [0, 0.2, 0.4, 0.6, 0.8, 1],\n }) },\n tag: { default: \"div\" }\n },\n emits: [\"shown\", \"hidden\", \"intersected\"],\n setup(__props: any, { emit }) {\n\nconst props = __props;\n\n\n\n\n\nconst observer = ref<IntersectionObserver | null>(null);\nconst infinitescrolltrigger = ref<Element | null>(null);\nconst shown = ref(false);\nconst hidden = ref(true);\nconst percentage = ref(0);\n\nonMounted(() => {\n observer.value = new IntersectionObserver((entries) => {\n handleIntersect(entries[0]);\n }, props.options);\n if (infinitescrolltrigger.value) {\n observer.value.observe(infinitescrolltrigger.value);\n }\n});\nonBeforeUnmount(() => {\n if (observer.value) observer.value.disconnect();\n});\n\nconst handleIntersect = throttle((entry: IntersectionObserverEntry) => {\n if (entry.isIntersecting) {\n percentage.value = Math.trunc(entry.intersectionRatio * 100);\n if (entry.intersectionRatio === 1) {\n shown.value = true;\n hidden.value = false;\n emit(\"shown\");\n } else {\n shown.value = false;\n hidden.value = false;\n emitIntersected(Math.trunc(entry.intersectionRatio * 100));\n }\n } else {\n shown.value = false;\n hidden.value = true;\n emit(\"hidden\");\n }\n});\n\nconst emitIntersected = throttle((percentage: number) => {\n emit(\"intersected\", percentage);\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {\n class: \"bb-intersection\",\n ref_key: \"infinitescrolltrigger\",\n ref: infinitescrolltrigger\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {\n hidden: hidden.value,\n percentage: percentage.value,\n shown: shown.value\n })\n ]),\n _: 3\n }, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","props","observer","ref","infinitescrolltrigger","shown","hidden","percentage","onMounted","entries","handleIntersect","onBeforeUnmount","throttle","entry","emitIntersected","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_withCtx","_renderSlot"],"mappings":";;AAaA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,EAAE,SAAS,EAAE;AAAA,IAC3B,SAAS,EAAE,SAAS,OAAO;AAAA,MAC3B,MAAM;AAAA,MACN,WAAW,CAAC,GAAG,KAAK,KAAK,KAAK,KAAK,CAAC;AAAA,IAAA,GACnC;AAAA,IACD,KAAK,EAAE,SAAS,MAAM;AAAA,EACxB;AAAA,EACA,OAAO,CAAC,SAAS,UAAU,aAAa;AAAA,EACxC,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAEhC,UAAMC,IAAQF,GAMRG,IAAWC,EAAiC,IAAI,GAChDC,IAAwBD,EAAoB,IAAI,GAChDE,IAAQF,EAAI,EAAK,GACjBG,IAASH,EAAI,EAAI,GACjBI,IAAaJ,EAAI,CAAC;AAExB,IAAAK,EAAU,MAAM;AACd,MAAAN,EAAS,QAAQ,IAAI,qBAAqB,CAACO,MAAY;AACrC,QAAAC,EAAAD,EAAQ,CAAC,CAAC;AAAA,MAAA,GACzBR,EAAM,OAAO,GACZG,EAAsB,SACfF,EAAA,MAAM,QAAQE,EAAsB,KAAK;AAAA,IACpD,CACD,GACDO,EAAgB,MAAM;AACpB,MAAIT,EAAS,SAAOA,EAAS,MAAM;IAAW,CAC/C;AAEK,UAAAQ,IAAkBE,EAAS,CAACC,MAAqC;AACrE,MAAIA,EAAM,kBACRN,EAAW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