bitboss-ui 2.1.126 → 2.1.127
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/ai/BbButton.md +0 -10
- package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +6 -6
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +6 -6
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -4
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +6 -6
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +1 -1
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +8 -8
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +6 -6
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +3 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +6 -6
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -2
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +7 -7
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +6 -6
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +6 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +6 -6
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -4
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +8 -8
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +3 -3
- package/dist/components/BbRating/BbRating.vue.d.ts +6 -6
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +2 -2
- package/dist/components/BbSlider/BbSlider.vue.d.ts +6 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +3 -3
- package/dist/components/BbTag/BbTag.vue.d.ts +6 -6
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +6 -6
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +6 -6
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/directives/bbDropdown.d.ts +8 -2
- package/dist/directives/bbTooltip.d.ts +7 -2
- package/dist/index240.js +58 -61
- package/package.json +1 -1
package/dist/index240.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import o from "./
|
|
8
|
-
import
|
|
9
|
-
import c from "
|
|
10
|
-
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineAsyncComponent as g, defineComponent as _, mergeModels as v, mergeProps as y, normalizeClass as b, openBlock as x, ref as S, renderSlot as C, toDisplayString as w, toRef as T, unref as E, useAttrs as D, useModel as O, withCtx as k } from "vue";
|
|
1
|
+
import e from "./index36.js";
|
|
2
|
+
import { useLocale as t } from "./index42.js";
|
|
3
|
+
import { extractDomContainer as n } from "./index45.js";
|
|
4
|
+
import { isEqual as r } from "./index82.js";
|
|
5
|
+
import { noop as i } from "./index142.js";
|
|
6
|
+
import a from "./index219.js";
|
|
7
|
+
import { pickBy as o } from "./index239.js";
|
|
8
|
+
import s from "./index254.js";
|
|
9
|
+
import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineAsyncComponent as h, defineComponent as g, mergeModels as _, mergeProps as v, normalizeClass as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useAttrs as E, useModel as D, withCtx as O } from "vue";
|
|
11
10
|
//#region src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
11
|
+
var k = {
|
|
13
12
|
key: 2,
|
|
14
13
|
class: "bb-button__loading-label sr-only"
|
|
15
|
-
},
|
|
14
|
+
}, A = /* @__PURE__ */ g({
|
|
16
15
|
inheritAttrs: !1,
|
|
17
16
|
__name: "BbButton",
|
|
18
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ _({
|
|
19
18
|
autoLoading: { type: Boolean },
|
|
20
19
|
activeClass: {},
|
|
21
20
|
ariaCurrentValue: {},
|
|
@@ -64,28 +63,26 @@ var A = {
|
|
|
64
63
|
modelModifiers: {}
|
|
65
64
|
}),
|
|
66
65
|
emits: ["update:modelValue"],
|
|
67
|
-
setup(
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}, B = l(() => {
|
|
73
|
-
let { onClick: e, ...t } = L;
|
|
66
|
+
setup(g, { expose: _ }) {
|
|
67
|
+
let A = h(() => import("./index345.js")), j = g, M = D(g, "modelValue"), N = c(() => M.value !== void 0), P = c(() => r(M.value, j.trueValue)), { t: F } = t(), I = E(), L = x(), R = (e) => {
|
|
68
|
+
L.value = n(e) ?? void 0;
|
|
69
|
+
}, z = c(() => {
|
|
70
|
+
let { onClick: e, ...t } = I;
|
|
74
71
|
return t;
|
|
75
|
-
}),
|
|
76
|
-
if (
|
|
77
|
-
if (
|
|
78
|
-
let e =
|
|
79
|
-
|
|
72
|
+
}), B = x(0), V = c(() => j.loading || !!B.value && j.autoLoading), H = c(() => j.disabled), U = async (e) => {
|
|
73
|
+
if (V.value && !j.enabledWhileLoading) return (j.type === "submit" || j.href || j.to) && e.preventDefault(), null;
|
|
74
|
+
if (N.value) {
|
|
75
|
+
let e = j.trueValue, t = j.falseValue;
|
|
76
|
+
M.value = r(M.value, e) ? t : e;
|
|
80
77
|
}
|
|
81
|
-
|
|
82
|
-
},
|
|
78
|
+
B.value++, await (I.onClick ?? i)(e), B.value--;
|
|
79
|
+
}, W = typeof j.size == "string" ? { default: j.size } : {
|
|
83
80
|
default: "md",
|
|
84
|
-
...
|
|
85
|
-
},
|
|
86
|
-
...
|
|
87
|
-
...
|
|
88
|
-
...
|
|
81
|
+
...j.size
|
|
82
|
+
}, G = Object.entries(W).reduce((e, [t, n]) => (t === "default" ? e[`data-${n}`] = "" : e[`data-${t}:${n}`] = "", e), {}), K = w(() => ({
|
|
83
|
+
...z.value,
|
|
84
|
+
...G,
|
|
85
|
+
...o(j, (e, t) => ![
|
|
89
86
|
"append:icon",
|
|
90
87
|
"autoLoading",
|
|
91
88
|
"disabled",
|
|
@@ -102,51 +99,51 @@ var A = {
|
|
|
102
99
|
"trueValue"
|
|
103
100
|
].includes(t))
|
|
104
101
|
}));
|
|
105
|
-
return
|
|
106
|
-
"aria-disabled":
|
|
107
|
-
"aria-pressed":
|
|
102
|
+
return _({ $el: L }), (t, n) => (b(), l(T(e), v({ ref: R }, K.value, {
|
|
103
|
+
"aria-disabled": V.value ? !0 : void 0,
|
|
104
|
+
"aria-pressed": N.value ? P.value : void 0,
|
|
108
105
|
class: {
|
|
109
106
|
"bb-button": !0,
|
|
110
|
-
"bb-button--loading":
|
|
111
|
-
"bb-button--group":
|
|
112
|
-
"bb-button--icon": !!
|
|
113
|
-
"bb-button--active":
|
|
107
|
+
"bb-button--loading": V.value,
|
|
108
|
+
"bb-button--group": j.group,
|
|
109
|
+
"bb-button--icon": !!t.icon,
|
|
110
|
+
"bb-button--active": N.value && P.value
|
|
114
111
|
},
|
|
115
|
-
disabled:
|
|
116
|
-
tabindex:
|
|
117
|
-
onClick:
|
|
112
|
+
disabled: H.value,
|
|
113
|
+
tabindex: V.value ? -1 : void 0,
|
|
114
|
+
onClick: U
|
|
118
115
|
}), {
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
default: O(() => [
|
|
117
|
+
m(T(s), { class: "bb-button__spinner" }),
|
|
118
|
+
j.icon ? (b(), l(a, {
|
|
122
119
|
key: 0,
|
|
123
120
|
class: "bb-button__icon",
|
|
124
|
-
type:
|
|
125
|
-
}, null, 8, ["type"])) :
|
|
121
|
+
type: j.icon
|
|
122
|
+
}, null, 8, ["type"])) : j["prepend:icon"] ? (b(), l(a, {
|
|
126
123
|
key: 1,
|
|
127
124
|
class: "bb-button__prepend-icon",
|
|
128
|
-
type:
|
|
129
|
-
}, null, 8, ["type"])) :
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
!
|
|
125
|
+
type: j["prepend:icon"]
|
|
126
|
+
}, null, 8, ["type"])) : u("", !0),
|
|
127
|
+
f("span", { class: y(["bb-button__content", { "sr-only": !!t.icon }]) }, [S(t.$slots, "default", {}, () => [p(C(t.text), 1)])], 2),
|
|
128
|
+
V.value ? (b(), d("span", k, C(T(F)("common.loadingText")), 1)) : u("", !0),
|
|
129
|
+
!t.icon && j["append:icon"] ? (b(), l(a, {
|
|
133
130
|
key: 3,
|
|
134
131
|
class: "bb-button__append-icon",
|
|
135
|
-
type:
|
|
136
|
-
}, null, 8, ["type"])) :
|
|
137
|
-
|
|
132
|
+
type: j["append:icon"]
|
|
133
|
+
}, null, 8, ["type"])) : u("", !0),
|
|
134
|
+
t.tooltip != null || t.$slots.tooltip ? (b(), l(T(A), {
|
|
138
135
|
key: 4,
|
|
139
|
-
activator:
|
|
140
|
-
placement:
|
|
141
|
-
timeout:
|
|
136
|
+
activator: L.value,
|
|
137
|
+
placement: t.tooltipPlacement,
|
|
138
|
+
timeout: t.tooltipTimeout
|
|
142
139
|
}, {
|
|
143
|
-
default:
|
|
140
|
+
default: O(() => [S(t.$slots, "tooltip", { text: t.tooltip }, () => [p(C(t.tooltip), 1)])]),
|
|
144
141
|
_: 3
|
|
145
142
|
}, 8, [
|
|
146
143
|
"activator",
|
|
147
144
|
"placement",
|
|
148
145
|
"timeout"
|
|
149
|
-
])) :
|
|
146
|
+
])) : u("", !0)
|
|
150
147
|
]),
|
|
151
148
|
_: 3
|
|
152
149
|
}, 16, [
|
|
@@ -159,4 +156,4 @@ var A = {
|
|
|
159
156
|
}
|
|
160
157
|
});
|
|
161
158
|
//#endregion
|
|
162
|
-
export {
|
|
159
|
+
export { A as default };
|