bitboss-ui 2.0.165 → 2.0.167
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/BaseButton/BaseButton.vue.d.ts +2 -1
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +2 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +5 -2
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +106 -4
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -3
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +5 -2
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +200 -10
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +10 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -2
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +3 -2
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +2 -4
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -4
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +8 -2
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +5 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BaseTag/BaseTag.vue.d.ts +207 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +2 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -2
- package/dist/components/BbBadge/BbBadge.vue.d.ts +3 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -2
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BbChip/BbChip.vue.d.ts +3 -2
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +241 -100
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +69 -126
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -2
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +5 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +100 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +10 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +10 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +168 -15
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +3 -2
- package/dist/components/BbRatio/BbRatio.vue.d.ts +2 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +3 -5
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BbTab/BbTab.vue.d.ts +6 -2
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTeleport.vue.d.ts +2 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +175 -7
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -1
- package/dist/components/ClearableButton.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +6 -2
- package/dist/components/CommonInputInnerContainer.vue.d.ts +5 -2
- package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -4
- package/dist/components/CommonPopover.vue.d.ts +42 -0
- package/dist/components/ErrorIcon.vue.d.ts +1 -1
- package/dist/components/ListBox.vue.d.ts +4 -6
- package/dist/components/OptionsContainer.vue.d.ts +4 -6
- package/dist/components/Transitions/Slide.vue.d.ts +2 -1
- package/dist/composables/useUntil.d.ts +7 -0
- package/dist/{style.css → index.css} +1 -1
- package/dist/index.js +148 -143
- package/dist/index100.js +122 -135
- package/dist/index102.js +100 -0
- package/dist/index104.js +24 -0
- package/dist/index106.js +144 -0
- package/dist/index107.js +106 -59
- package/dist/index109.js +101 -289
- package/dist/index11.js +2 -2
- package/dist/index111.js +37 -476
- package/dist/index113.js +31 -118
- package/dist/index115.js +43 -61
- package/dist/index117.js +86 -78
- package/dist/index119.js +296 -26
- package/dist/index12.js +6 -6
- package/dist/index121.js +470 -138
- package/dist/index123.js +117 -115
- package/dist/index125.js +110 -35
- package/dist/index127.js +115 -45
- package/dist/index129.js +28 -31
- package/dist/index13.js +5 -5
- package/dist/index131.js +117 -21
- package/dist/index133.js +120 -9
- package/dist/index135.js +2 -2
- package/dist/index136.js +21 -5
- package/dist/index137.js +375 -7
- package/dist/index138.js +9 -6
- package/dist/index139.js +25 -3
- package/dist/index140.js +2 -3
- package/dist/index141.js +5 -3
- package/dist/index142.js +9 -3
- package/dist/index143.js +6 -3
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index15.js +15 -15
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +2 -2
- package/dist/index167.js +5 -0
- package/dist/index168.js +2 -2
- package/dist/index169.js +5 -0
- package/dist/index17.js +6 -6
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +2 -2
- package/dist/index178.js +5 -0
- package/dist/index179.js +3 -2
- package/dist/index180.js +1 -1
- package/dist/index181.js +2 -3
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index188.js +2 -2
- package/dist/index189.js +3 -2
- package/dist/index19.js +10 -10
- package/dist/index190.js +1 -1
- package/dist/index191.js +2 -3
- package/dist/index192.js +1 -1
- package/dist/index193.js +5 -0
- package/dist/index194.js +1 -1
- package/dist/index195.js +5 -0
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +100 -77
- package/dist/index208.js +2 -4
- package/dist/index209.js +3 -40
- package/dist/index21.js +17 -17
- package/dist/index210.js +41 -20
- package/dist/index211.js +19 -93
- package/dist/index212.js +96 -0
- package/dist/{index213.js → index214.js} +9 -9
- package/dist/{index215.js → index216.js} +15 -15
- package/dist/index218.js +13 -13
- package/dist/index219.js +13 -5
- package/dist/index220.js +5 -16
- package/dist/index221.js +5 -16
- package/dist/index222.js +5 -19
- package/dist/index223.js +5 -15
- package/dist/index224.js +5 -19
- package/dist/index225.js +5 -27
- package/dist/index226.js +5 -3
- package/dist/index227.js +3 -2
- package/dist/index228.js +2 -8
- package/dist/index229.js +6 -248
- package/dist/index23.js +25 -25
- package/dist/index230.js +240 -42
- package/dist/index231.js +43 -35
- package/dist/index232.js +44 -5
- package/dist/index233.js +5 -60
- package/dist/index234.js +60 -3
- package/dist/index235.js +5 -85
- package/dist/index236.js +9 -0
- package/dist/index237.js +15 -29
- package/dist/index238.js +34 -17
- package/dist/index239.js +86 -51
- package/dist/index241.js +28 -11
- package/dist/index242.js +15 -14
- package/dist/index243.js +50 -124
- package/dist/index244.js +15 -2
- package/dist/index245.js +12 -6
- package/dist/index246.js +16 -2
- package/dist/index247.js +5 -9
- package/dist/index248.js +2 -2
- package/dist/index249.js +2 -4
- package/dist/index25.js +8 -8
- package/dist/index250.js +9 -2
- package/dist/index251.js +18 -7
- package/dist/index252.js +127 -14
- package/dist/index253.js +4 -34
- package/dist/index254.js +106 -2
- package/dist/index256.js +100 -2
- package/dist/index258.js +12 -126
- package/dist/index259.js +211 -89
- package/dist/index260.js +370 -0
- package/dist/index261.js +2 -100
- package/dist/index262.js +4 -0
- package/dist/index263.js +2 -12
- package/dist/index264.js +3 -228
- package/dist/index265.js +162 -354
- package/dist/index266.js +2 -176
- package/dist/index27.js +18 -18
- package/dist/index270.js +11 -23
- package/dist/index271.js +101 -3
- package/dist/index273.js +23 -16
- package/dist/index274.js +6 -281
- package/dist/index275.js +16 -6
- package/dist/index276.js +3 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +8 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +67 -2
- package/dist/index281.js +5 -2
- package/dist/index282.js +5 -2
- package/dist/index283.js +8 -2
- package/dist/index284.js +471 -2
- package/dist/index285.js +3 -2
- package/dist/index286.js +3 -2
- package/dist/index287.js +3 -28
- package/dist/index289.js +9 -0
- package/dist/index29.js +5 -5
- package/dist/index290.js +6 -6
- package/dist/index291.js +11 -7
- package/dist/index292.js +279 -10
- package/dist/index293.js +2 -431
- package/dist/index294.js +16 -3
- package/dist/index295.js +2 -3
- package/dist/index296.js +16 -3
- package/dist/index297.js +4 -0
- package/dist/index298.js +18 -223
- package/dist/index299.js +2 -3
- package/dist/index300.js +15 -17
- package/dist/index301.js +2 -9
- package/dist/index302.js +18 -199
- package/dist/index303.js +2 -2
- package/dist/index304.js +27 -4
- package/dist/index305.js +2 -2
- package/dist/index306.js +1 -1
- package/dist/index307.js +2 -8
- package/dist/index308.js +2 -126
- package/dist/index309.js +2 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +28 -3
- package/dist/index311.js +21 -1
- package/dist/index313.js +199 -126
- package/dist/index314.js +4 -2
- package/dist/index315.js +2 -67
- package/dist/index316.js +6 -5
- package/dist/index317.js +2 -89
- package/dist/index318.js +3 -3
- package/dist/index319.js +17 -3
- package/dist/index320.js +123 -56
- package/dist/index321.js +2 -33
- package/dist/index322.js +128 -27
- package/dist/index323.js +5 -0
- package/dist/index324.js +3 -480
- package/dist/index325.js +2 -7
- package/dist/index326.js +4 -7
- package/dist/index327.js +379 -16
- package/dist/index328.js +125 -7
- package/dist/index329.js +5 -6
- package/dist/index33.js +10 -10
- package/dist/index330.js +3 -8
- package/dist/index331.js +5 -58
- package/dist/index332.js +700 -57
- package/dist/index333.js +354 -5
- package/dist/index334.js +57 -7
- package/dist/index335.js +7 -3
- package/dist/index336.js +5 -46
- package/dist/index337.js +8 -2
- package/dist/index338.js +9 -0
- package/dist/index339.js +32 -2
- package/dist/index340.js +28 -2
- package/dist/index342.js +57 -46
- package/dist/index343.js +60 -0
- package/dist/index344.js +7 -0
- package/dist/index345.js +230 -0
- package/dist/index346.js +4 -0
- package/dist/index347.js +49 -0
- package/dist/index348.js +9 -0
- package/dist/index349.js +21 -0
- package/dist/index35.js +9 -9
- package/dist/index350.js +95 -0
- package/dist/index352.js +5 -0
- package/dist/index353.js +484 -0
- package/dist/index354.js +49 -0
- package/dist/index355.js +483 -0
- package/dist/index356.js +4 -0
- package/dist/index37.js +33 -33
- package/dist/index39.js +15 -15
- package/dist/index41.js +5 -5
- package/dist/index43.js +10 -10
- package/dist/index45.js +25 -25
- package/dist/index47.js +6 -6
- package/dist/index49.js +15 -15
- package/dist/index51.js +4 -4
- package/dist/index53.js +6 -6
- package/dist/index55.js +6 -6
- package/dist/index57.js +16 -16
- package/dist/index59.js +3 -3
- package/dist/index6.js +1 -1
- package/dist/index61.js +9 -9
- package/dist/index63.js +5 -5
- package/dist/index65.js +2 -2
- package/dist/index67.js +35 -107
- package/dist/index69.js +42 -85
- package/dist/index7.js +2 -2
- package/dist/index71.js +47 -56
- package/dist/index73.js +83 -54
- package/dist/index75.js +113 -273
- package/dist/index77.js +50 -158
- package/dist/index79.js +228 -194
- package/dist/index81.js +148 -40
- package/dist/index83.js +221 -0
- package/dist/index85.js +53 -0
- package/dist/index87.js +46 -0
- package/dist/index88.js +125 -184
- package/dist/index9.js +1 -1
- package/dist/index90.js +240 -26
- package/dist/index92.js +230 -86
- package/dist/index94.js +135 -117
- package/dist/index96.js +27 -94
- package/dist/index98.js +85 -15
- package/package.json +27 -28
- package/dist/index101.js +0 -178
- package/dist/index103.js +0 -116
- package/dist/index105.js +0 -100
- package/dist/index126.js +0 -46
- package/dist/index128.js +0 -49
- package/dist/index130.js +0 -4
- package/dist/index132.js +0 -346
- package/dist/index134.js +0 -27
- package/dist/index217.js +0 -15
- package/dist/index240.js +0 -17
- package/dist/index255.js +0 -4
- package/dist/index257.js +0 -20
- package/dist/index272.js +0 -8
- package/dist/index288.js +0 -24
- package/dist/index312.js +0 -438
- package/dist/index341.js +0 -426
- package/dist/index82.js +0 -136
- package/dist/index84.js +0 -247
- package/dist/index86.js +0 -238
package/dist/index83.js
ADDED
@@ -0,0 +1,221 @@
|
|
1
|
+
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
+
import { findInTree as ae } from "./index275.js";
|
3
|
+
import { useId as re } from "./index8.js";
|
4
|
+
import oe from "./index111.js";
|
5
|
+
/* empty css */
|
6
|
+
const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dropzone__submittable-label" }, ne = ["id", "disabled", "multiple", "name"], ie = { class: "bb-dropzone__errors" }, fe = /* @__PURE__ */ j({
|
7
|
+
__name: "BbDropzone",
|
8
|
+
props: {
|
9
|
+
autofocus: {},
|
10
|
+
disabled: { type: Boolean },
|
11
|
+
errors: {},
|
12
|
+
hasErrors: { type: Boolean },
|
13
|
+
id: {},
|
14
|
+
multiple: { type: Boolean },
|
15
|
+
name: {},
|
16
|
+
accept: {},
|
17
|
+
maxFiles: {},
|
18
|
+
maxSize: {},
|
19
|
+
modelValue: {},
|
20
|
+
tag: { default: "div" }
|
21
|
+
},
|
22
|
+
emits: ["blur", "error", "focus", "update:modelValue"],
|
23
|
+
setup(D, { emit: C }) {
|
24
|
+
let b;
|
25
|
+
const a = D, l = C, d = g(null);
|
26
|
+
if (a.accept && !Array.isArray(a.accept))
|
27
|
+
throw new Error("Property accept is not an array");
|
28
|
+
if (a.multiple && !Array.isArray(a.modelValue))
|
29
|
+
throw new Error(
|
30
|
+
"Component is set to multiple but modelValue is not an array"
|
31
|
+
);
|
32
|
+
const h = g(!1), I = (e) => {
|
33
|
+
h.value = !0, l("focus", e);
|
34
|
+
}, L = (e) => {
|
35
|
+
h.value = !1, l("blur", e);
|
36
|
+
};
|
37
|
+
x(
|
38
|
+
() => a.modelValue,
|
39
|
+
() => {
|
40
|
+
let e = new DataTransfer();
|
41
|
+
Array.isArray(a.modelValue) ? a.modelValue.length && a.modelValue.forEach((t) => e.items.add(t)) : a.modelValue && e.items.add(a.modelValue), d.value && (e.items.length ? d.value.files = e.files : d.value.files = null);
|
42
|
+
}
|
43
|
+
);
|
44
|
+
const p = g([]), P = m(
|
45
|
+
() => p.value.join(",")
|
46
|
+
);
|
47
|
+
x(
|
48
|
+
() => a.accept,
|
49
|
+
async () => {
|
50
|
+
if (a.accept) {
|
51
|
+
let e = [];
|
52
|
+
for (let t = 0; t < a.accept.length; t++) {
|
53
|
+
const r = a.accept[t];
|
54
|
+
if (r.includes("/")) e.push(r);
|
55
|
+
else {
|
56
|
+
b || (b = (await import("./index274.js")).default);
|
57
|
+
const o = b.getType(r);
|
58
|
+
if (!o)
|
59
|
+
throw new Error(
|
60
|
+
`Could not detect the correct mime associated with ${r}`
|
61
|
+
);
|
62
|
+
e.push(o);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
p.value = e;
|
66
|
+
}
|
67
|
+
},
|
68
|
+
{ immediate: !0 }
|
69
|
+
);
|
70
|
+
const z = a.id || `${re().id.value}`, v = `bb_dz_${z}`, i = g(!1);
|
71
|
+
let T;
|
72
|
+
const k = m(() => ({
|
73
|
+
"bb-dropzone": !0,
|
74
|
+
"bb-dropzone--errors": R.value,
|
75
|
+
"bb-dropzone--dragging": i.value
|
76
|
+
})), q = m(() => ({
|
77
|
+
dragging: i.value,
|
78
|
+
focused: h.value,
|
79
|
+
id: z
|
80
|
+
})), $ = (e) => {
|
81
|
+
if (i.value = !1, e.dataTransfer) {
|
82
|
+
e.stopImmediatePropagation();
|
83
|
+
let t;
|
84
|
+
if (t = Array.from(e.dataTransfer.files), t = B(t), a.multiple ? Array.isArray(a.modelValue) && l("update:modelValue", [...a.modelValue, ...t]) : (t = t[0], l("update:modelValue", t)), e.currentTarget instanceof HTMLLabelElement) {
|
85
|
+
const r = e.currentTarget.querySelector("input[type=file]");
|
86
|
+
r instanceof HTMLInputElement && r.focus();
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}, H = (e) => {
|
90
|
+
if (e.target instanceof HTMLInputElement) {
|
91
|
+
if (e.target.files) {
|
92
|
+
let t;
|
93
|
+
t = B(Array.from(e.target.files)), a.multiple ? Array.isArray(a.modelValue) && l("update:modelValue", [...a.modelValue, ...t]) : (t = t[0], l("update:modelValue", t));
|
94
|
+
}
|
95
|
+
e.target.value = "", e.target.files = null;
|
96
|
+
}
|
97
|
+
}, B = (e) => e.filter((t, r) => {
|
98
|
+
if (a.maxSize && !(t.size <= a.maxSize))
|
99
|
+
return l("error", f.maxSize(t)), !1;
|
100
|
+
let o = !1;
|
101
|
+
return a.modelValue && (Array.isArray(a.modelValue) ? o = a.modelValue.some(
|
102
|
+
(s) => S(s, t)
|
103
|
+
) : o = S(a.modelValue, t)), o ? (l("error", f.uniqueness(t)), !1) : a.accept && !p.value.some((n) => {
|
104
|
+
let u = !1;
|
105
|
+
return n.includes("*") ? u = u || n.split("/")[0] === t.type.split("/")[0] : u = u || n === t.type, u;
|
106
|
+
}) ? (l("error", f.accept(t)), !1) : a.maxFiles && Array.isArray(a.modelValue) && a.modelValue.length + r + 1 > a.maxFiles ? (l(
|
107
|
+
"error",
|
108
|
+
f.maxFiles(t, a.modelValue.length + r + 1)
|
109
|
+
), !1) : !0;
|
110
|
+
}), N = (e) => {
|
111
|
+
const t = e.target;
|
112
|
+
if (t instanceof HTMLElement) {
|
113
|
+
const r = ae(
|
114
|
+
[t],
|
115
|
+
"parentElement",
|
116
|
+
(o) => o.classList.contains("bb-dropzone")
|
117
|
+
);
|
118
|
+
r && (r.id === v ? E() : _());
|
119
|
+
}
|
120
|
+
}, E = () => {
|
121
|
+
clearTimeout(T), i.value = !0;
|
122
|
+
}, _ = () => {
|
123
|
+
T = setTimeout(() => {
|
124
|
+
i.value = !1;
|
125
|
+
}, 100);
|
126
|
+
}, A = (e, t = 2) => {
|
127
|
+
if (!e) return "0 B";
|
128
|
+
const r = 1024, o = t || 0, s = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], n = Math.floor(Math.log(e) / Math.log(r));
|
129
|
+
return parseFloat((e / Math.pow(r, n)).toFixed(o)) + " " + s[n];
|
130
|
+
}, S = (e, t) => !["name", "size", "lastModified", "type"].some((o) => e[o] !== t[o]), f = {
|
131
|
+
maxSize: (e) => {
|
132
|
+
if (a.maxSize)
|
133
|
+
return {
|
134
|
+
type: "maxSize",
|
135
|
+
file: e,
|
136
|
+
formattedMaxSize: A(+a.maxSize),
|
137
|
+
formattedSize: A(e.size),
|
138
|
+
filename: e.name
|
139
|
+
};
|
140
|
+
throw new Error(
|
141
|
+
"Requested to create an error for maxSize without providing a maxSize."
|
142
|
+
);
|
143
|
+
},
|
144
|
+
uniqueness: (e) => ({
|
145
|
+
type: "uniqueness",
|
146
|
+
file: e,
|
147
|
+
filename: e.name
|
148
|
+
}),
|
149
|
+
accept: (e) => ({
|
150
|
+
type: "accept",
|
151
|
+
file: e,
|
152
|
+
acceptedMimeTypes: p.value,
|
153
|
+
mimeType: e.type,
|
154
|
+
filename: e.name
|
155
|
+
}),
|
156
|
+
maxFiles: (e, t) => ({
|
157
|
+
type: "maxFiles",
|
158
|
+
file: e,
|
159
|
+
maxFiles: a.maxFiles,
|
160
|
+
totalFiles: t,
|
161
|
+
filename: e.name
|
162
|
+
})
|
163
|
+
}, w = m(() => a.errors ? [].concat(a.errors) : []), R = m(
|
164
|
+
() => !!w.value.length || a.hasErrors
|
165
|
+
);
|
166
|
+
return (e, t) => (V(), G(K(e.tag), {
|
167
|
+
id: v,
|
168
|
+
class: O(k.value)
|
169
|
+
}, {
|
170
|
+
default: M(() => [
|
171
|
+
c("label", {
|
172
|
+
onDragenter: y(E, ["prevent"]),
|
173
|
+
onDragleave: y(_, ["prevent"]),
|
174
|
+
onDragover: y(N, ["prevent"]),
|
175
|
+
onDrop: y($, ["prevent"])
|
176
|
+
}, [
|
177
|
+
c("input", {
|
178
|
+
accept: P.value,
|
179
|
+
autofocus: e.autofocus,
|
180
|
+
class: "sr-only",
|
181
|
+
disabled: e.disabled,
|
182
|
+
multiple: e.multiple,
|
183
|
+
type: "file",
|
184
|
+
onBlur: L,
|
185
|
+
onChange: H,
|
186
|
+
onFocus: I
|
187
|
+
}, null, 40, le),
|
188
|
+
U(e.$slots, "default", Y(Z(q.value)))
|
189
|
+
], 32),
|
190
|
+
c("label", se, [
|
191
|
+
t[0] || (t[0] = J(" Server files ")),
|
192
|
+
c("input", {
|
193
|
+
id: Q(z),
|
194
|
+
ref_key: "submittable",
|
195
|
+
ref: d,
|
196
|
+
class: "bb-dropzone__submittable-input",
|
197
|
+
disabled: e.disabled,
|
198
|
+
multiple: e.multiple,
|
199
|
+
name: e.name,
|
200
|
+
type: "file"
|
201
|
+
}, null, 8, ne)
|
202
|
+
]),
|
203
|
+
c("span", ie, [
|
204
|
+
W(oe, { tag: "span" }, {
|
205
|
+
default: M(() => [
|
206
|
+
(V(!0), F(X, null, ee(w.value, (r) => (V(), F("span", {
|
207
|
+
key: r,
|
208
|
+
class: "bb-dropzone__error"
|
209
|
+
}, te(r), 1))), 128))
|
210
|
+
]),
|
211
|
+
_: 1
|
212
|
+
})
|
213
|
+
])
|
214
|
+
]),
|
215
|
+
_: 3
|
216
|
+
}, 8, ["class"]));
|
217
|
+
}
|
218
|
+
});
|
219
|
+
export {
|
220
|
+
fe as default
|
221
|
+
};
|
package/dist/index85.js
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
+
import { isCssColor as I } from "./index261.js";
|
3
|
+
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
|
+
__name: "BbIcon",
|
5
|
+
props: {
|
6
|
+
size: { default: "md" },
|
7
|
+
color: {},
|
8
|
+
type: {}
|
9
|
+
},
|
10
|
+
setup(m) {
|
11
|
+
var l, a;
|
12
|
+
const e = m;
|
13
|
+
let t = p();
|
14
|
+
const r = p(null), x = !!((a = (l = c()) == null ? void 0 : l.proxy) != null && a.$nuxt), i = async () => {
|
15
|
+
if (t.value) {
|
16
|
+
if (typeof t.value[e.type] > "u")
|
17
|
+
throw new Error(`Icon "${e.type}" does not exist.`);
|
18
|
+
r.value = await t.value[e.type]();
|
19
|
+
}
|
20
|
+
};
|
21
|
+
w(async () => {
|
22
|
+
var o, n;
|
23
|
+
t.value = (n = (o = c()) == null ? void 0 : o.proxy) == null ? void 0 : n.$nuxt.$icons, await i();
|
24
|
+
}), z(async () => {
|
25
|
+
var o, n;
|
26
|
+
t.value || (x ? t.value = (n = (o = c()) == null ? void 0 : o.proxy) == null ? void 0 : n.$nuxt.$icons : t.value = _("icons")), r.value || await i();
|
27
|
+
}), b(() => e.type, i);
|
28
|
+
const y = {
|
29
|
+
xs: 12,
|
30
|
+
sm: 16,
|
31
|
+
md: 24,
|
32
|
+
lg: 28,
|
33
|
+
xl: 36,
|
34
|
+
xxl: 40
|
35
|
+
}, d = f(() => {
|
36
|
+
const o = {
|
37
|
+
"bb-icon": !0
|
38
|
+
};
|
39
|
+
let u = { "--size": f(() => {
|
40
|
+
let s;
|
41
|
+
return typeof e.size == "string" ? s = y[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? s = e.size : s = 24, s + "px";
|
42
|
+
}).value };
|
43
|
+
return e.color && (I(e.color) ? u.color = e.color : o[`bb-icon--${e.color}`] = !0), {
|
44
|
+
class: o,
|
45
|
+
style: u
|
46
|
+
};
|
47
|
+
});
|
48
|
+
return (o, n) => ($(), h("span", g(d.value, { innerHTML: r.value }), null, 16, B));
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export {
|
52
|
+
k as default
|
53
|
+
};
|
package/dist/index87.js
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
+
import { throttle as c } from "./index276.js";
|
3
|
+
const M = /* @__PURE__ */ h({
|
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(u, { emit: d }) {
|
15
|
+
const r = u, i = d, n = t(null), l = t(null), o = t(!1), s = t(!0), a = t(0);
|
16
|
+
m(() => {
|
17
|
+
n.value = new IntersectionObserver((e) => {
|
18
|
+
f(e[0]);
|
19
|
+
}, r.options), l.value && n.value.observe(l.value);
|
20
|
+
}), p(() => {
|
21
|
+
n.value && n.value.disconnect();
|
22
|
+
});
|
23
|
+
const f = c((e) => {
|
24
|
+
e.isIntersecting ? (a.value = Math.trunc(e.intersectionRatio * 100), e.intersectionRatio === 1 ? (o.value = !0, s.value = !1, i("shown")) : (o.value = !1, s.value = !1, v(Math.trunc(e.intersectionRatio * 100)))) : (o.value = !1, s.value = !0, i("hidden"));
|
25
|
+
}), v = c((e) => {
|
26
|
+
i("intersected", e);
|
27
|
+
}, r.debounceTime);
|
28
|
+
return (e, B) => (b(), g(w(e.tag), {
|
29
|
+
ref_key: "infinitescrolltrigger",
|
30
|
+
ref: l,
|
31
|
+
class: "bb-intersection"
|
32
|
+
}, {
|
33
|
+
default: _(() => [
|
34
|
+
I(e.$slots, "default", {
|
35
|
+
hidden: s.value,
|
36
|
+
percentage: a.value,
|
37
|
+
shown: o.value
|
38
|
+
})
|
39
|
+
]),
|
40
|
+
_: 3
|
41
|
+
}, 512));
|
42
|
+
}
|
43
|
+
});
|
44
|
+
export {
|
45
|
+
M as default
|
46
|
+
};
|
package/dist/index88.js
CHANGED
@@ -1,195 +1,136 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import { useId as G } from "./index8.js";
|
4
|
-
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
-
import { waitFor as K } from "./index245.js";
|
6
|
-
import Q from "./index13.js";
|
1
|
+
import { defineComponent as B, ref as u, computed as w, createBlock as g, openBlock as k, withCtx as n, createVNode as $, mergeProps as P, renderSlot as r, normalizeProps as l, guardReactiveProps as s } from "vue";
|
2
|
+
import V from "./index27.js";
|
7
3
|
/* empty css */
|
8
|
-
import
|
9
|
-
/* empty css
|
10
|
-
|
11
|
-
|
12
|
-
const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
|
13
|
-
__name: "BbPopover",
|
4
|
+
import q from "./index29.js";
|
5
|
+
/* empty css */
|
6
|
+
const D = /* @__PURE__ */ B({
|
7
|
+
__name: "BbNumberInput",
|
14
8
|
props: {
|
15
|
-
|
16
|
-
|
17
|
-
|
9
|
+
"append:icon": {},
|
10
|
+
autocomplete: {},
|
11
|
+
autofocus: {},
|
12
|
+
clearable: { type: Boolean },
|
13
|
+
compact: { type: Boolean },
|
14
|
+
direction: {},
|
18
15
|
disabled: { type: Boolean },
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
16
|
+
errors: {},
|
17
|
+
hasErrors: { type: Boolean },
|
18
|
+
hideLabel: { type: Boolean },
|
19
|
+
hint: {},
|
20
|
+
id: {},
|
21
|
+
label: {},
|
22
|
+
labelPosition: {},
|
23
|
+
loading: { type: Boolean },
|
24
|
+
max: {},
|
25
|
+
maxPrecision: { default: 1 / 0 },
|
26
|
+
min: {},
|
27
|
+
modelValue: {},
|
28
|
+
name: {},
|
29
|
+
persistentHint: { type: Boolean },
|
30
|
+
placeholder: {},
|
31
|
+
"prepend:icon": {},
|
32
|
+
readonly: { type: Boolean },
|
33
|
+
required: { type: Boolean },
|
34
|
+
reverse: { type: Boolean },
|
35
|
+
step: {}
|
29
36
|
},
|
30
|
-
emits: ["
|
31
|
-
setup(
|
32
|
-
const
|
33
|
-
|
34
|
-
|
35
|
-
* the trigger we just allow and process that in its
|
36
|
-
* own click handler.
|
37
|
-
* If we are pressing anything random on the page
|
38
|
-
* close the popover and be done
|
39
|
-
*/
|
40
|
-
clickOutsideDeactivates: (e) => {
|
41
|
-
var h;
|
42
|
-
const o = e.target;
|
43
|
-
return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (i(), s("hidden")), !0;
|
37
|
+
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "keyup", "mousedown", "mouseup", "update:modelValue"],
|
38
|
+
setup(m, { expose: c, emit: b }) {
|
39
|
+
const i = m, o = b, p = u(), d = u(!1), h = w(() => i.persistentHint || d.value), f = {
|
40
|
+
onBlur: (e) => {
|
41
|
+
d.value = !1, o("blur", e);
|
44
42
|
},
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
* THAT button and not the current trigger
|
51
|
-
*/
|
52
|
-
returnFocusOnDeactivate: !1
|
53
|
-
});
|
54
|
-
J(
|
55
|
-
r,
|
56
|
-
async ([{ intersectionRatio: e }]) => {
|
57
|
-
e !== 1 && a.value && (m(), await i(), s("hidden"));
|
43
|
+
onChange: (e) => o("change", e),
|
44
|
+
onClick: (e) => o("click", e),
|
45
|
+
onDecrease: (e) => o("decrease", e),
|
46
|
+
onFocus: (e) => {
|
47
|
+
d.value = !0, o("focus", e);
|
58
48
|
},
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
}
|
75
|
-
if (d.value || t.disabled) return;
|
76
|
-
await E();
|
77
|
-
let e = t.focusTarget ?? ".bb-popover__close";
|
78
|
-
P({
|
79
|
-
onPostActivate: Y(() => {
|
80
|
-
if (l.value) {
|
81
|
-
const o = l.value.querySelector(e);
|
82
|
-
o instanceof HTMLElement && (o.focus(), s("shown"));
|
83
|
-
}
|
84
|
-
}, 150)
|
85
|
-
});
|
86
|
-
}, u = () => {
|
87
|
-
var o;
|
88
|
-
const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
|
89
|
-
e instanceof HTMLElement && e.focus({ preventScroll: !0 });
|
90
|
-
}, f = async () => {
|
91
|
-
m(), await i(), u(), s("hidden");
|
92
|
-
}, M = v(() => {
|
93
|
-
if (t.width) {
|
94
|
-
let e;
|
95
|
-
if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
|
96
|
-
if (t.width.includes("%")) {
|
97
|
-
if (!r.value) return;
|
98
|
-
e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
|
99
|
-
} else
|
100
|
-
e = t.width;
|
101
|
-
else
|
102
|
-
e = `${t.width}`;
|
103
|
-
return `${e}px`;
|
49
|
+
onIncrease: (e) => o("increase", e),
|
50
|
+
onInput: (e) => o("input", e),
|
51
|
+
onKeydown: (e) => o("keydown", e),
|
52
|
+
onMousedown: (e) => o("mousedown", e),
|
53
|
+
onMouseup: (e) => o("mouseup", e),
|
54
|
+
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
55
|
+
};
|
56
|
+
return c({
|
57
|
+
increase: () => {
|
58
|
+
var e;
|
59
|
+
(e = p.value) == null || e.increase();
|
60
|
+
},
|
61
|
+
decrease: () => {
|
62
|
+
var e;
|
63
|
+
(e = p.value) == null || e.decrease();
|
104
64
|
}
|
105
|
-
})
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
})
|
173
|
-
], -1))
|
174
|
-
]),
|
175
|
-
_: 1
|
176
|
-
})) : A("", !0),
|
177
|
-
k(e.$slots, "default", {
|
178
|
-
close: f,
|
179
|
-
closed: g.value,
|
180
|
-
closing: b.value,
|
181
|
-
disabled: !!e.disabled,
|
182
|
-
open: a.value,
|
183
|
-
opening: d.value,
|
184
|
-
placement: e.placement
|
185
|
-
})
|
186
|
-
], 512)
|
187
|
-
]),
|
188
|
-
_: 3
|
189
|
-
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
|
190
|
-
], 16));
|
65
|
+
}), (e, H) => (k(), g(V, {
|
66
|
+
id: e.id,
|
67
|
+
class: "bb-number-input",
|
68
|
+
compact: e.compact,
|
69
|
+
direction: e.direction,
|
70
|
+
errors: e.errors,
|
71
|
+
"has-errors": e.hasErrors,
|
72
|
+
"hide-label": e.hideLabel,
|
73
|
+
hint: e.hint,
|
74
|
+
label: e.label,
|
75
|
+
"label-position": e.labelPosition,
|
76
|
+
"model-value": e.modelValue,
|
77
|
+
name: e.name,
|
78
|
+
reverse: e.reverse,
|
79
|
+
"show-hint": h.value
|
80
|
+
}, {
|
81
|
+
label: n((t) => [
|
82
|
+
r(e.$slots, "label", l(s(t)))
|
83
|
+
]),
|
84
|
+
input: n(({ id: t, hasErrors: y, ariaDescribedby: v }) => [
|
85
|
+
$(q, P({
|
86
|
+
id: t,
|
87
|
+
ref_key: "bni",
|
88
|
+
ref: p,
|
89
|
+
"append:icon": i["append:icon"],
|
90
|
+
"aria-describedby": v,
|
91
|
+
autocomplete: e.autocomplete,
|
92
|
+
autofocus: e.autofocus,
|
93
|
+
clearable: e.clearable,
|
94
|
+
compact: e.compact,
|
95
|
+
disabled: e.disabled,
|
96
|
+
"has-errors": y,
|
97
|
+
loading: e.loading,
|
98
|
+
max: e.max,
|
99
|
+
"max-precision": e.maxPrecision,
|
100
|
+
min: e.min,
|
101
|
+
"model-value": e.modelValue,
|
102
|
+
name: e.name,
|
103
|
+
placeholder: e.placeholder,
|
104
|
+
"prepend:icon": i["prepend:icon"],
|
105
|
+
readonly: e.readonly,
|
106
|
+
required: e.required,
|
107
|
+
step: e.step
|
108
|
+
}, f), {
|
109
|
+
"append-outer": n((a) => [
|
110
|
+
r(e.$slots, "append-outer", l(s(a)))
|
111
|
+
]),
|
112
|
+
append: n((a) => [
|
113
|
+
r(e.$slots, "append", l(s(a)))
|
114
|
+
]),
|
115
|
+
prefix: n((a) => [
|
116
|
+
r(e.$slots, "prefix", l(s(a)))
|
117
|
+
]),
|
118
|
+
prepend: n((a) => [
|
119
|
+
r(e.$slots, "prepend", l(s(a)))
|
120
|
+
]),
|
121
|
+
suffix: n((a) => [
|
122
|
+
r(e.$slots, "suffix", l(s(a)))
|
123
|
+
]),
|
124
|
+
"prepend-outer": n((a) => [
|
125
|
+
r(e.$slots, "prepend-outer", l(s(a)))
|
126
|
+
]),
|
127
|
+
_: 2
|
128
|
+
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "compact", "disabled", "has-errors", "loading", "max", "max-precision", "min", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "step"])
|
129
|
+
]),
|
130
|
+
_: 3
|
131
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
191
132
|
}
|
192
133
|
});
|
193
134
|
export {
|
194
|
-
|
135
|
+
D as default
|
195
136
|
};
|
package/dist/index9.js
CHANGED