bitboss-ui 2.0.165 → 2.0.166
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/index207.js +2 -2
- package/dist/index208.js +2 -4
- package/dist/index209.js +2 -41
- package/dist/index21.js +17 -17
- package/dist/index210.js +4 -20
- package/dist/index211.js +2 -94
- package/dist/index212.js +43 -0
- package/dist/index213.js +5 -199
- package/dist/index215.js +11 -62
- package/dist/index216.js +15 -0
- package/dist/index217.js +34 -13
- package/dist/index218.js +4 -13
- package/dist/index219.js +20 -5
- package/dist/index220.js +94 -16
- package/dist/index222.js +199 -18
- package/dist/index224.js +65 -18
- package/dist/index226.js +13 -3
- package/dist/index227.js +2 -2
- package/dist/index228.js +6 -8
- package/dist/index229.js +14 -248
- package/dist/index23.js +25 -25
- package/dist/index230.js +8 -51
- package/dist/index231.js +11 -44
- package/dist/index232.js +101 -5
- package/dist/index234.js +23 -3
- package/dist/index235.js +2 -86
- package/dist/index236.js +179 -0
- package/dist/index237.js +3 -29
- package/dist/index238.js +5 -17
- package/dist/index239.js +5 -51
- package/dist/index240.js +5 -15
- package/dist/index241.js +5 -12
- package/dist/index242.js +5 -16
- package/dist/index243.js +5 -125
- package/dist/index244.js +2 -2
- package/dist/index245.js +2 -6
- package/dist/index246.js +9 -2
- package/dist/index247.js +3 -9
- package/dist/index248.js +51 -2
- package/dist/index249.js +17 -4
- package/dist/index25.js +8 -8
- package/dist/index250.js +106 -2
- package/dist/index252.js +96 -11
- package/dist/index254.js +2 -2
- package/dist/index255.js +3 -2
- package/dist/index256.js +86 -2
- package/dist/index258.js +26 -123
- package/dist/index259.js +15 -106
- package/dist/index260.js +14 -0
- package/dist/index261.js +16 -100
- package/dist/index262.js +12 -0
- package/dist/index263.js +2 -11
- package/dist/index264.js +17 -227
- package/dist/index265.js +112 -353
- package/dist/index266.js +11 -175
- package/dist/index267.js +228 -10
- package/dist/index268.js +367 -2
- package/dist/index269.js +5 -9
- package/dist/index27.js +18 -18
- package/dist/index270.js +5 -23
- package/dist/index271.js +8 -3
- package/dist/index272.js +250 -6
- package/dist/index273.js +50 -14
- package/dist/index274.js +43 -280
- package/dist/index275.js +5 -6
- package/dist/index276.js +60 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +8 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +5 -2
- package/dist/index281.js +67 -2
- package/dist/index282.js +4 -2
- package/dist/index283.js +471 -2
- package/dist/index284.js +1 -1
- package/dist/index285.js +7 -2
- package/dist/index286.js +11 -2
- package/dist/index287.js +2 -28
- package/dist/index288.js +3 -22
- package/dist/index289.js +5 -0
- package/dist/index29.js +6 -6
- package/dist/index290.js +3 -7
- package/dist/index292.js +7 -11
- package/dist/index293.js +189 -420
- package/dist/index294.js +701 -3
- package/dist/index295.js +354 -3
- package/dist/index296.js +58 -3
- package/dist/index297.js +5 -0
- package/dist/index298.js +5 -224
- package/dist/index299.js +280 -3
- package/dist/index300.js +2 -17
- package/dist/index301.js +125 -9
- package/dist/index302.js +2 -200
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -4
- package/dist/index305.js +16 -2
- package/dist/index306.js +2 -2
- package/dist/index307.js +19 -8
- package/dist/index308.js +2 -126
- package/dist/index309.js +15 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +2 -3
- package/dist/index311.js +5 -2
- package/dist/index312.js +3 -436
- package/dist/index313.js +3 -127
- package/dist/index314.js +17 -2
- package/dist/index315.js +6 -67
- package/dist/index316.js +5 -5
- package/dist/index317.js +7 -88
- package/dist/index318.js +28 -3
- package/dist/index319.js +3 -3
- package/dist/index320.js +3 -57
- package/dist/index321.js +18 -32
- package/dist/index322.js +2 -28
- package/dist/index323.js +29 -0
- package/dist/index324.js +2 -480
- package/dist/index325.js +2 -7
- package/dist/index326.js +2 -7
- package/dist/index327.js +2 -19
- package/dist/index328.js +2 -8
- package/dist/index329.js +22 -6
- package/dist/index33.js +10 -10
- package/dist/index331.js +128 -57
- package/dist/index332.js +2 -58
- package/dist/index333.js +381 -4
- package/dist/index334.js +125 -7
- package/dist/index335.js +2 -4
- package/dist/index336.js +92 -46
- package/dist/index337.js +58 -2
- package/dist/index338.js +60 -0
- package/dist/index339.js +228 -3
- package/dist/index340.js +8 -2
- package/dist/index341.js +5 -423
- package/dist/index342.js +6 -45
- package/dist/index343.js +9 -0
- package/dist/index344.js +7 -0
- package/dist/index345.js +35 -0
- package/dist/index346.js +30 -0
- package/dist/index348.js +9 -0
- package/dist/index349.js +21 -0
- package/dist/index35.js +9 -9
- package/dist/index350.js +49 -0
- package/dist/index352.js +5 -0
- package/dist/index353.js +483 -0
- package/dist/index354.js +4 -0
- package/dist/index355.js +484 -0
- package/dist/index356.js +49 -0
- package/dist/index37.js +33 -33
- package/dist/index39.js +16 -16
- 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 +11 -11
- 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 +26 -27
- 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/index221.js +0 -18
- package/dist/index223.js +0 -17
- package/dist/index225.js +0 -29
- package/dist/index233.js +0 -62
- package/dist/index253.js +0 -36
- package/dist/index257.js +0 -20
- package/dist/index291.js +0 -9
- package/dist/index330.js +0 -10
- package/dist/index82.js +0 -136
- package/dist/index84.js +0 -247
- package/dist/index86.js +0 -238
- /package/dist/{index251.js → index214.js} +0 -0
package/dist/index94.js
CHANGED
@@ -1,131 +1,149 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as V, useTemplateRef as b, ref as D, computed as w, createBlock as h, openBlock as c, normalizeClass as M, withCtx as u, createElementBlock as z, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as f, toDisplayString as O, normalizeProps as S, guardReactiveProps as H, nextTick as I } from "vue";
|
2
|
+
import { useId as N } from "./index8.js";
|
3
|
+
import { useIntersectionObserver as R } from "./index137.js";
|
4
|
+
import { useLocale as U } from "./index216.js";
|
5
|
+
import { useUntil as W } from "./index231.js";
|
6
|
+
import q from "./index13.js";
|
3
7
|
/* empty css */
|
4
|
-
import
|
5
|
-
/* empty css
|
6
|
-
const
|
7
|
-
__name: "
|
8
|
+
import A from "./index232.js";
|
9
|
+
/* empty css */
|
10
|
+
const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ V({
|
11
|
+
__name: "BbPopover",
|
8
12
|
props: {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
dependencies: {},
|
13
|
-
depsDebounceTime: {},
|
13
|
+
arrowPadding: { default: 10 },
|
14
|
+
closeLabel: {},
|
15
|
+
block: { type: Boolean },
|
14
16
|
disabled: { type: Boolean },
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
itemValue: {},
|
26
|
-
legend: {},
|
27
|
-
loadingText: {},
|
28
|
-
modelValue: {},
|
29
|
-
modelValueDebounceTime: {},
|
30
|
-
name: {},
|
31
|
-
noDataText: {},
|
32
|
-
persistentHint: { type: Boolean },
|
33
|
-
readonly: { type: Boolean },
|
34
|
-
required: { type: Boolean },
|
35
|
-
reverse: { type: Boolean }
|
17
|
+
eager: { type: Boolean },
|
18
|
+
offset: { default: 3 },
|
19
|
+
padding: { default: 10 },
|
20
|
+
placement: { default: "bottom" },
|
21
|
+
showClose: { type: Boolean, default: !0 },
|
22
|
+
theme: { default: "default" },
|
23
|
+
transitionDuration: { default: 300 },
|
24
|
+
teleportTarget: {},
|
25
|
+
focusTarget: {},
|
26
|
+
width: {}
|
36
27
|
},
|
37
|
-
emits: ["
|
38
|
-
setup(
|
39
|
-
const
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
d.value = !0, n("focus", e);
|
28
|
+
emits: ["shown", "hidden"],
|
29
|
+
setup(C, { expose: $, emit: L }) {
|
30
|
+
const a = C, n = L, { t: _ } = U(), { id: B } = N(), i = `bbp_${B.value}`, r = b("wrapper"), d = b("content");
|
31
|
+
R(
|
32
|
+
r,
|
33
|
+
async ([{ intersectionRatio: e }]) => {
|
34
|
+
e !== 1 && o.value && (await l(), n("hidden"));
|
45
35
|
},
|
46
|
-
|
47
|
-
|
36
|
+
{ threshold: [0, 1] }
|
37
|
+
);
|
38
|
+
const o = D(!1), T = W(o), m = (e) => {
|
39
|
+
var t;
|
40
|
+
e.target instanceof HTMLElement && ((t = d.value) != null && t.contains(e.target) || l());
|
41
|
+
}, P = async () => {
|
42
|
+
o.value = !0, document.addEventListener("click", m);
|
43
|
+
}, l = async () => {
|
44
|
+
o.value = !1, document.removeEventListener("click", m);
|
45
|
+
}, v = async () => {
|
46
|
+
var s;
|
47
|
+
if (o.value) {
|
48
|
+
await l(), n("hidden");
|
49
|
+
return;
|
50
|
+
}
|
51
|
+
if (a.disabled) return;
|
52
|
+
await P();
|
53
|
+
let e = a.focusTarget ?? ".bb-popover__close";
|
54
|
+
await I();
|
55
|
+
const t = (s = d.value) == null ? void 0 : s.querySelector(e);
|
56
|
+
t instanceof HTMLElement && (t.focus(), n("shown"));
|
57
|
+
}, p = async () => {
|
58
|
+
await l(), n("hidden");
|
59
|
+
}, E = w(() => {
|
60
|
+
if (a.width) {
|
61
|
+
let e;
|
62
|
+
return typeof a.width == "string" && /^\d+[a-zA-Z%]+$/.test(a.width) ? a.width.includes("%") ? r.value ? `${r.value.$el.clientWidth * (+a.width.replace("%", "") / 100)}px` : void 0 : a.width : (e = `${a.width}px`, `${e}px`);
|
63
|
+
}
|
64
|
+
});
|
65
|
+
return $({
|
66
|
+
open: v,
|
67
|
+
close: p,
|
68
|
+
closed: w(() => !o.value)
|
69
|
+
}), (e, t) => (c(), h(A, {
|
70
|
+
ref_key: "wrapper",
|
71
|
+
ref: r,
|
72
|
+
modelValue: o.value,
|
73
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
|
74
|
+
"arrow-padding": e.arrowPadding,
|
75
|
+
block: e.block,
|
76
|
+
class: M(["bb-popover", {
|
77
|
+
[`bb-popover--${e.theme}`]: !0
|
78
|
+
}]),
|
79
|
+
"container-attributes": {
|
80
|
+
id: `popover_${i}`,
|
81
|
+
style: {
|
82
|
+
width: E.value
|
83
|
+
}
|
48
84
|
},
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
"
|
54
|
-
};
|
55
|
-
return (e, k) => (B(), $(V, {
|
56
|
-
id: e.id,
|
57
|
-
class: "bb-radio-group",
|
58
|
-
compact: e.compact,
|
59
|
-
direction: "vertical",
|
60
|
-
errors: e.errors,
|
61
|
-
"has-errors": e.hasErrors,
|
62
|
-
"hide-label": e.hideLegend,
|
63
|
-
hint: e.hint,
|
64
|
-
label: e.legend,
|
65
|
-
"label-tag": "legend",
|
66
|
-
name: e.name,
|
67
|
-
reverse: e.reverse,
|
68
|
-
"show-hint": m.value,
|
69
|
-
tag: "fieldset"
|
85
|
+
offset: e.offset,
|
86
|
+
padding: e.padding,
|
87
|
+
placement: e.placement,
|
88
|
+
tag: "dialog",
|
89
|
+
"transition-duration": e.transitionDuration
|
70
90
|
}, {
|
71
|
-
|
72
|
-
|
91
|
+
activator: u(() => [
|
92
|
+
y(e.$slots, "activator", S(H({
|
93
|
+
props: {
|
94
|
+
"aria-controls": `popover_${i}`,
|
95
|
+
"aria-expanded": o.value,
|
96
|
+
onClick: v,
|
97
|
+
id: i,
|
98
|
+
disabled: !!e.disabled
|
99
|
+
},
|
100
|
+
disabled: !!e.disabled,
|
101
|
+
open: o.value,
|
102
|
+
placement: e.placement
|
103
|
+
})))
|
73
104
|
]),
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
"
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
"
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
i(e.$slots, "icon", r(l(o)))
|
112
|
-
]),
|
113
|
-
label: a((o) => [
|
114
|
-
i(e.$slots, "label", r(l(o)))
|
115
|
-
]),
|
116
|
-
"option:append": a((o) => [
|
117
|
-
i(e.$slots, "option:append", r(l(o)))
|
118
|
-
]),
|
119
|
-
append: a((o) => [
|
120
|
-
i(e.$slots, "append", r(l(o)))
|
121
|
-
]),
|
122
|
-
_: 2
|
123
|
-
}, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly", "required"])
|
105
|
+
default: u(() => [
|
106
|
+
k(T) ? (c(), z("span", {
|
107
|
+
key: 0,
|
108
|
+
ref_key: "content",
|
109
|
+
ref: d,
|
110
|
+
class: "bb-popover__content",
|
111
|
+
inert: !o.value
|
112
|
+
}, [
|
113
|
+
e.showClose ? (c(), h(q, {
|
114
|
+
key: 0,
|
115
|
+
class: "bb-popover__close",
|
116
|
+
onClick: p
|
117
|
+
}, {
|
118
|
+
default: u(() => [
|
119
|
+
f("span", j, O(e.closeLabel || k(_)("common.closeLabel").value), 1),
|
120
|
+
t[1] || (t[1] = f("svg", {
|
121
|
+
fill: "none",
|
122
|
+
viewBox: "0 0 24 24",
|
123
|
+
xmlns: "http://www.w3.org/2000/svg"
|
124
|
+
}, [
|
125
|
+
f("path", {
|
126
|
+
d: "M23 23L1 1M23 1L1 23",
|
127
|
+
stroke: "currentColor",
|
128
|
+
"stroke-linecap": "round",
|
129
|
+
"stroke-width": "2"
|
130
|
+
})
|
131
|
+
], -1))
|
132
|
+
]),
|
133
|
+
_: 1
|
134
|
+
})) : g("", !0),
|
135
|
+
y(e.$slots, "default", {
|
136
|
+
close: p,
|
137
|
+
disabled: !!e.disabled,
|
138
|
+
open: o.value,
|
139
|
+
placement: e.placement
|
140
|
+
})
|
141
|
+
], 8, Z)) : g("", !0)
|
124
142
|
]),
|
125
143
|
_: 3
|
126
|
-
}, 8, ["
|
144
|
+
}, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "transition-duration"]));
|
127
145
|
}
|
128
146
|
});
|
129
147
|
export {
|
130
|
-
|
148
|
+
oe as default
|
131
149
|
};
|
package/dist/index96.js
CHANGED
@@ -1,100 +1,33 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const I = /* @__PURE__ */ f({
|
7
|
-
__name: "BbRating",
|
1
|
+
import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
+
import { clamp as p } from "./index208.js";
|
3
|
+
import { getAsPercentageBetween as i } from "./index136.js";
|
4
|
+
const _ = /* @__PURE__ */ r({
|
5
|
+
__name: "BbProgress",
|
8
6
|
props: {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
disabled: { type: Boolean },
|
13
|
-
errors: {},
|
14
|
-
hasErrors: { type: Boolean },
|
15
|
-
hideLegend: { type: Boolean },
|
16
|
-
hint: {},
|
17
|
-
id: {},
|
18
|
-
inputPosition: { default: "left" },
|
19
|
-
legend: {},
|
20
|
-
legendPosition: {},
|
21
|
-
modelValue: {},
|
22
|
-
name: {},
|
23
|
-
persistentHint: { type: Boolean },
|
24
|
-
readonly: { type: Boolean },
|
25
|
-
reverse: { type: Boolean },
|
26
|
-
stars: {},
|
27
|
-
size: {}
|
7
|
+
modelValue: { default: 0 },
|
8
|
+
min: { default: 0 },
|
9
|
+
max: { default: 100 }
|
28
10
|
},
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
return (e, $) => (y(), B(P, {
|
48
|
-
id: e.id,
|
49
|
-
class: "bb-rating",
|
50
|
-
compact: e.compact,
|
51
|
-
direction: "vertical",
|
52
|
-
errors: e.errors,
|
53
|
-
"has-errors": e.hasErrors,
|
54
|
-
"hide-label": e.hideLegend,
|
55
|
-
hint: e.hint,
|
56
|
-
"input-position": e.inputPosition,
|
57
|
-
label: e.legend,
|
58
|
-
"label-position": e.legendPosition,
|
59
|
-
"label-tag": "legend",
|
60
|
-
name: e.name,
|
61
|
-
reverse: e.reverse,
|
62
|
-
"show-hint": m.value,
|
63
|
-
tag: "fieldset"
|
64
|
-
}, {
|
65
|
-
label: s((t) => [
|
66
|
-
a(e.$slots, "legend", r(i(t)))
|
67
|
-
]),
|
68
|
-
input: s(({ id: t, hasErrors: h, ariaDescribedby: b }) => [
|
69
|
-
w(V, k({
|
70
|
-
id: t,
|
71
|
-
"aria-describedby": b,
|
72
|
-
autofocus: e.autofocus,
|
73
|
-
color: e.color,
|
74
|
-
disabled: e.disabled,
|
75
|
-
"has-errors": h,
|
76
|
-
"model-value": e.modelValue,
|
77
|
-
name: e.name,
|
78
|
-
readonly: e.readonly,
|
79
|
-
size: e.size,
|
80
|
-
stars: e.stars
|
81
|
-
}, c), {
|
82
|
-
prepend: s((n) => [
|
83
|
-
a(e.$slots, "prepend", r(i(n)))
|
84
|
-
]),
|
85
|
-
append: s((n) => [
|
86
|
-
a(e.$slots, "append", r(i(n)))
|
87
|
-
]),
|
88
|
-
icon: s((n) => [
|
89
|
-
a(e.$slots, "icon", r(i(n)))
|
90
|
-
]),
|
91
|
-
_: 2
|
92
|
-
}, 1040, ["id", "aria-describedby", "autofocus", "color", "disabled", "has-errors", "model-value", "name", "readonly", "size", "stars"])
|
93
|
-
]),
|
94
|
-
_: 3
|
95
|
-
}, 8, ["id", "compact", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
|
11
|
+
setup(t) {
|
12
|
+
const e = t, o = a(
|
13
|
+
() => p(
|
14
|
+
i(e.modelValue || e.min, e.min, e.max),
|
15
|
+
0,
|
16
|
+
100
|
17
|
+
)
|
18
|
+
);
|
19
|
+
return (d, u) => (s(), l("div", {
|
20
|
+
class: m(["bb-progress", {
|
21
|
+
"bb-progress--horizontal": !0
|
22
|
+
}])
|
23
|
+
}, [
|
24
|
+
n("div", {
|
25
|
+
class: "bb-progress-bar",
|
26
|
+
style: c({ width: o.value + "%" })
|
27
|
+
}, null, 4)
|
28
|
+
]));
|
96
29
|
}
|
97
30
|
});
|
98
31
|
export {
|
99
|
-
|
32
|
+
_ as default
|
100
33
|
};
|
package/dist/index98.js
CHANGED
@@ -1,24 +1,94 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
1
|
+
import { defineComponent as f, ref as v, computed as y, createBlock as k, openBlock as B, withCtx as l, createVNode as w, mergeProps as n, renderSlot as i, normalizeProps as g, guardReactiveProps as P } from "vue";
|
2
|
+
import V from "./index27.js";
|
3
|
+
/* empty css */
|
4
|
+
import q from "./index31.js";
|
5
|
+
/* empty css */
|
6
|
+
const R = /* @__PURE__ */ f({
|
7
|
+
__name: "BbRadio",
|
4
8
|
props: {
|
5
|
-
|
6
|
-
|
9
|
+
autofocus: {},
|
10
|
+
checked: {},
|
11
|
+
color: {},
|
12
|
+
direction: { default: "auto" },
|
13
|
+
disabled: { type: Boolean },
|
14
|
+
errors: {},
|
15
|
+
hasErrors: { type: Boolean },
|
16
|
+
hideLabel: { type: Boolean },
|
17
|
+
hint: {},
|
18
|
+
id: {},
|
19
|
+
inputPosition: {},
|
20
|
+
label: {},
|
21
|
+
labelPosition: {},
|
22
|
+
modelValue: {},
|
23
|
+
name: {},
|
24
|
+
persistentHint: { type: Boolean },
|
25
|
+
readonly: { type: Boolean },
|
26
|
+
required: { type: Boolean },
|
27
|
+
reverse: { type: Boolean, default: !0 },
|
28
|
+
value: {}
|
7
29
|
},
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
30
|
+
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
31
|
+
setup(s, { emit: t }) {
|
32
|
+
const d = s, o = t, r = v(!1), u = y(() => d.persistentHint || r.value), p = {
|
33
|
+
onBlur: (e) => {
|
34
|
+
r.value = !1, o("blur", e);
|
35
|
+
},
|
36
|
+
onChange: (e) => o("change", e),
|
37
|
+
onClick: (e) => o("click", e),
|
38
|
+
onFocus: (e) => {
|
39
|
+
r.value = !0, o("focus", e);
|
40
|
+
},
|
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, C) => (B(), k(V, {
|
48
|
+
id: e.id,
|
49
|
+
class: "bb-radio",
|
50
|
+
direction: e.direction,
|
51
|
+
errors: e.errors,
|
52
|
+
"has-errors": e.hasErrors,
|
53
|
+
"hide-label": e.hideLabel,
|
54
|
+
hint: e.hint,
|
55
|
+
"input-position": e.inputPosition,
|
56
|
+
label: e.label,
|
57
|
+
"label-position": e.labelPosition,
|
58
|
+
"label-tag": "span",
|
59
|
+
name: e.name,
|
60
|
+
reverse: e.reverse,
|
61
|
+
"show-hint": u.value,
|
62
|
+
tag: "label"
|
14
63
|
}, {
|
15
|
-
|
16
|
-
|
64
|
+
label: l((a) => [
|
65
|
+
i(e.$slots, "label", g(P(a)))
|
66
|
+
]),
|
67
|
+
input: l(({ id: a, name: m, hasErrors: c, ariaDescribedby: b }) => [
|
68
|
+
w(q, n({
|
69
|
+
id: a,
|
70
|
+
"aria-describedby": b,
|
71
|
+
autofocus: e.autofocus,
|
72
|
+
checked: e.checked,
|
73
|
+
color: e.color,
|
74
|
+
disabled: e.disabled,
|
75
|
+
"has-errors": c,
|
76
|
+
"model-value": e.modelValue,
|
77
|
+
name: m,
|
78
|
+
readonly: e.readonly,
|
79
|
+
required: e.required,
|
80
|
+
value: e.value
|
81
|
+
}, p), {
|
82
|
+
icon: l((h) => [
|
83
|
+
i(e.$slots, "icon", n(h, { text: e.label }))
|
84
|
+
]),
|
85
|
+
_: 2
|
86
|
+
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
|
17
87
|
]),
|
18
88
|
_: 3
|
19
|
-
}, 8, ["
|
89
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
|
20
90
|
}
|
21
91
|
});
|
22
92
|
export {
|
23
|
-
|
93
|
+
R as default
|
24
94
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bitboss-ui",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.166",
|
4
4
|
"type": "module",
|
5
5
|
"sideEffects": false,
|
6
6
|
"scripts": {
|
@@ -18,21 +18,20 @@
|
|
18
18
|
"prepare": "husky install"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@floating-ui/
|
22
|
-
"@floating-ui/vue": "^1.1.4",
|
21
|
+
"@floating-ui/vue": "^1.1.6",
|
23
22
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@latest",
|
24
|
-
"@tanstack/vue-virtual": "^3.
|
25
|
-
"copy-anything": "^4.0.
|
23
|
+
"@tanstack/vue-virtual": "^3.13.3",
|
24
|
+
"copy-anything": "^4.0.3",
|
26
25
|
"dayjs": "^1.11.13",
|
27
26
|
"doublet": "^1.0.1",
|
28
|
-
"focus-trap": "^7.
|
27
|
+
"focus-trap": "^7.6.4",
|
29
28
|
"focusable-selectors": "^0.8.4",
|
30
29
|
"lodash.clonedeepwith": "^4.5.0",
|
31
30
|
"lodash.deburr": "^4.1.0",
|
32
31
|
"lodash.throttle": "^4.1.1",
|
33
|
-
"maska": "^3.0
|
34
|
-
"mime": "^4.0.
|
35
|
-
"nanoid": "^5.
|
32
|
+
"maska": "^3.1.0",
|
33
|
+
"mime": "^4.0.6",
|
34
|
+
"nanoid": "^5.1.3",
|
36
35
|
"object-code": "^1.3.3"
|
37
36
|
},
|
38
37
|
"peerDependencies": {
|
@@ -50,34 +49,34 @@
|
|
50
49
|
"@types/lodash.snakecase": "^4.1.9",
|
51
50
|
"@types/lodash.throttle": "^4.1.9",
|
52
51
|
"@types/mime": "^4.0.0",
|
53
|
-
"@types/node": "^22.
|
54
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
55
|
-
"@typescript-eslint/parser": "^8.
|
56
|
-
"@vitejs/plugin-vue": "^5.1
|
57
|
-
"autoprefixer": "^10.4.
|
52
|
+
"@types/node": "^22.13.10",
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
54
|
+
"@typescript-eslint/parser": "^8.26.1",
|
55
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
56
|
+
"autoprefixer": "^10.4.21",
|
58
57
|
"cypress": "^13.14.2",
|
59
58
|
"eslint": "^8.57.0",
|
60
59
|
"eslint-config-prettier": "^9.1.0",
|
61
60
|
"eslint-import-resolver-alias": "^1.1.2",
|
62
61
|
"eslint-plugin-perfectionist": "^3.5.0",
|
63
62
|
"eslint-plugin-vue": "^9.28.0",
|
64
|
-
"husky": "^9.1.
|
65
|
-
"lightningcss": "^1.
|
66
|
-
"lint-staged": "^15.
|
67
|
-
"postcss": "^8.
|
63
|
+
"husky": "^9.1.7",
|
64
|
+
"lightningcss": "^1.29.2",
|
65
|
+
"lint-staged": "^15.5.0",
|
66
|
+
"postcss": "^8.5.3",
|
68
67
|
"postcss-import": "^16.1.0",
|
69
|
-
"prettier": "3.
|
70
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
68
|
+
"prettier": "3.5.3",
|
69
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
71
70
|
"rollup-plugin-typescript2": "^0.36.0",
|
72
|
-
"stylelint": "^16.
|
71
|
+
"stylelint": "^16.15.0",
|
73
72
|
"stylelint-order": "^6.0.4",
|
74
73
|
"tailwindcss": "^3.4.10",
|
75
|
-
"typescript": "^5.
|
76
|
-
"vite": "^
|
77
|
-
"vite-plugin-dts": "^4.
|
78
|
-
"vitepress": "^1.3
|
79
|
-
"vue-router": "^4.
|
80
|
-
"vue-tsc": "^2.
|
74
|
+
"typescript": "^5.8.2",
|
75
|
+
"vite": "^6.2.1",
|
76
|
+
"vite-plugin-dts": "^4.5.3",
|
77
|
+
"vitepress": "^1.6.3",
|
78
|
+
"vue-router": "^4.5.0",
|
79
|
+
"vue-tsc": "^2.2.8"
|
81
80
|
},
|
82
81
|
"files": [
|
83
82
|
"dist"
|