bitboss-ui 3.0.0-beta.70 → 3.0.0-beta.71
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/BbBreadcrumbs.md +3 -0
- package/dist/ai/BbCheckbox.md +5 -6
- package/dist/ai/BbCheckboxGroup.md +25 -26
- package/dist/ai/BbColorInput.md +3 -4
- package/dist/ai/BbDatePickerInput.md +3 -4
- package/dist/ai/BbDropdown.md +35 -1
- package/dist/ai/BbDropdownButton.md +4 -3
- package/dist/ai/BbNumberInput.md +3 -4
- package/dist/ai/BbRadio.md +5 -6
- package/dist/ai/BbRadioGroup.md +24 -30
- package/dist/ai/BbRating.md +3 -9
- package/dist/ai/BbSelect.md +10 -11
- package/dist/ai/BbSlider.md +3 -9
- package/dist/ai/BbSwitch.md +6 -6
- package/dist/ai/BbSwitchGroup.md +4 -7
- package/dist/ai/BbTag.md +3 -4
- package/dist/ai/BbTextInput.md +11 -11
- package/dist/ai/BbTextarea.md +8 -8
- package/dist/ai/BbTimePickerInput.md +3 -4
- package/dist/ai/BbTooltip.md +17 -13
- package/dist/ai/CommonField.md +2 -10
- package/dist/ai/OptionsContainer.md +5 -13
- package/dist/ai/changelog.json +44 -5
- package/dist/ai/components.json +26 -26
- package/dist/ai/guides/migration/v2-to-v3.md +26 -2
- package/dist/ai/guides/preset-components.md +35 -10
- package/dist/ai/helpers/definePreset.json +8 -1
- package/dist/ai/helpers/definePreset.ts +35 -10
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/common.json +2 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbCheckbox.json +2 -2
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
- package/dist/ai/manifest/components/BbColorInput.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
- package/dist/ai/manifest/components/BbRating.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +15 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +5 -10
- package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/types.advanced.json +1 -1
- package/dist/ai/manifest/types.api.json +2 -2
- package/dist/ai/source/BbBreadcrumbs.md +31 -12
- package/dist/ai/source/BbCheckbox.md +36 -42
- package/dist/ai/source/BbCheckboxGroup.md +2 -4
- package/dist/ai/source/BbColorInput.md +2 -4
- package/dist/ai/source/BbDatePickerInput.md +2 -4
- package/dist/ai/source/BbDropdown.md +11 -2
- package/dist/ai/source/BbDropdownButton.md +4 -1
- package/dist/ai/source/BbDropdownGroup.md +9 -2
- package/dist/ai/source/BbNumberInput.md +2 -4
- package/dist/ai/source/BbRadio.md +36 -42
- package/dist/ai/source/BbRadioGroup.md +2 -4
- package/dist/ai/source/BbRating.md +2 -14
- package/dist/ai/source/BbSelect.md +30 -13
- package/dist/ai/source/BbSlider.md +2 -4
- package/dist/ai/source/BbSwitch.md +34 -38
- package/dist/ai/source/BbTable.md +4 -1
- package/dist/ai/source/BbTag.md +2 -4
- package/dist/ai/source/BbTextInput.md +2 -4
- package/dist/ai/source/BbTextarea.md +2 -4
- package/dist/ai/source/BbTimePickerInput.md +2 -4
- package/dist/ai/source/BbTooltip.md +9 -3
- package/dist/ai/source/CommonField.md +17 -106
- package/dist/ai/source/GuidesComponent.md +3 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
- package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
- package/dist/components/BbCheckbox/types.d.ts +2 -4
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -4
- package/dist/components/BbColorInput/types.d.ts +2 -4
- package/dist/components/BbDatePickerInput/types.d.ts +2 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
- package/dist/components/BbDropdown/normalizeGroups.js +37 -33
- package/dist/components/BbDropdown/types.d.ts +9 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +95 -94
- package/dist/components/BbNumberInput/types.d.ts +2 -4
- package/dist/components/BbRadio/types.d.ts +2 -4
- package/dist/components/BbRadioGroup/types.d.ts +2 -4
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +116 -118
- package/dist/components/BbRating/types.d.ts +2 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +10 -4
- package/dist/components/BbSelect/types.d.ts +4 -6
- package/dist/components/BbSlider/types.d.ts +2 -4
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTag/types.d.ts +2 -4
- package/dist/components/BbTextInput/types.d.ts +2 -4
- package/dist/components/BbTextarea/types.d.ts +2 -4
- package/dist/components/BbTimePickerInput/types.d.ts +2 -4
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
- package/dist/components/BbTooltip/types.d.ts +3 -1
- package/dist/components/CommonField/types.d.ts +2 -4
- package/dist/composables/useChoiceIndicator.js +67 -64
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/llms-full.txt +246 -201
- package/dist/styles.css +2 -2
- package/dist/types/FieldLayout.d.ts +4 -1
- package/dist/types/ItemAccessor.d.ts +3 -1
- package/dist/types/ItemPath.d.ts +33 -0
- package/dist/utils/versionCheck.js +1 -1
- package/package.json +6 -4
- package/scripts/README.md +31 -29
- package/scripts/lib/define-preset-copy.mjs +1 -1
- package/scripts/lib/setup.mjs +8 -0
- package/scripts/lib/toolchain-check.mjs +125 -7
- package/scripts/lib/validate-bb-markup.mjs +1 -1
|
@@ -7,27 +7,27 @@ import a from "../BbBaseButton/BbBaseButton.vue.js";
|
|
|
7
7
|
import o from "../BbDropdown/BbDropdown.vue.js";
|
|
8
8
|
import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
|
|
9
9
|
import l from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
10
|
-
import { BB_BREADCRUMBS_PT as
|
|
11
|
-
import { usePassthrough as
|
|
12
|
-
import
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { useResizeObserver as
|
|
10
|
+
import { BB_BREADCRUMBS_PT as ee } from "./types.js";
|
|
11
|
+
import { usePassthrough as te } from "../../composables/usePassthrough.js";
|
|
12
|
+
import u from "../BbIcon/BbIcon.vue.js";
|
|
13
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ne, createTextVNode as re, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeProps as x, onBeforeUnmount as ie, openBlock as S, ref as C, renderList as ae, renderSlot as w, toDisplayString as oe, unref as T, useAttrs as se, useSlots as ce, watch as le, withCtx as E } from "vue";
|
|
14
|
+
import { useResizeObserver as ue } from "@vueuse/core";
|
|
15
15
|
// src/components/BbBreadcrumbs/BbBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
-
var
|
|
16
|
+
var de = ["aria-label"], fe = { class: "bb-breadcrumbs__container" }, pe = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--prepend"
|
|
19
|
-
},
|
|
19
|
+
}, me = { class: "bb-breadcrumbs__list" }, he = ["aria-label", "disabled"], ge = {
|
|
20
20
|
key: 0,
|
|
21
21
|
"aria-hidden": "true",
|
|
22
22
|
class: "bb-breadcrumbs__divider"
|
|
23
|
-
},
|
|
23
|
+
}, _e = ["title"], ve = {
|
|
24
24
|
key: 0,
|
|
25
25
|
"aria-hidden": "true",
|
|
26
26
|
class: "bb-breadcrumbs__divider"
|
|
27
|
-
},
|
|
27
|
+
}, ye = {
|
|
28
28
|
key: 1,
|
|
29
29
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--append"
|
|
30
|
-
},
|
|
30
|
+
}, D = 20, be = 1, O = 8.5, xe = .5, Se = 8, Ce = 200, k = /*@__PURE__*/ v({
|
|
31
31
|
inheritAttrs: !1,
|
|
32
32
|
__name: "BbBreadcrumbs",
|
|
33
33
|
props: {
|
|
@@ -51,30 +51,30 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
|
|
|
51
51
|
estimationBias: { default: 1.12 },
|
|
52
52
|
ellipsisWidth: {}
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
let A =
|
|
56
|
-
process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", r("BbBreadcrumbs"), { slotKeys: () =>
|
|
57
|
-
let j =
|
|
54
|
+
setup(v) {
|
|
55
|
+
let k = v, A = f(() => k.items.filter((e) => !e.hidden));
|
|
56
|
+
process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", r("BbBreadcrumbs"), { slotKeys: () => k.items.map((e) => e.value) });
|
|
57
|
+
let j = te({
|
|
58
58
|
component: "BbBreadcrumbs",
|
|
59
|
-
attrs:
|
|
60
|
-
props:
|
|
61
|
-
parts:
|
|
62
|
-
states:
|
|
63
|
-
active: { disabled: () => !!
|
|
59
|
+
attrs: se(),
|
|
60
|
+
props: k,
|
|
61
|
+
parts: ee.parts,
|
|
62
|
+
states: ee.states,
|
|
63
|
+
active: { disabled: () => !!k.disabled }
|
|
64
64
|
}), { t: M } = e();
|
|
65
65
|
t();
|
|
66
|
-
let N =
|
|
66
|
+
let N = ce(), we = /* @__PURE__ */ new Set([
|
|
67
67
|
"prepend",
|
|
68
68
|
"append",
|
|
69
69
|
"ellipsis",
|
|
70
70
|
"divider",
|
|
71
71
|
"activator"
|
|
72
|
-
]), P = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), F = (e, t) => t === A.
|
|
73
|
-
let { "prepend:icon": n, "append:icon": r, value: i, label: a,
|
|
72
|
+
]), P = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), F = (e, t) => t === A.value.length - 1 && !e.href && !e.to && !e.onClick, Te = (e, t) => {
|
|
73
|
+
let { "prepend:icon": n, "append:icon": r, value: i, label: a, hidden: o, ...s } = e;
|
|
74
74
|
return F(e, t) ? {
|
|
75
|
-
...
|
|
75
|
+
...s,
|
|
76
76
|
"aria-current": "page"
|
|
77
|
-
} :
|
|
77
|
+
} : s;
|
|
78
78
|
}, I = (e, t) => {
|
|
79
79
|
let n = `${P(e)}:${t}`;
|
|
80
80
|
return N[n] ? {
|
|
@@ -87,35 +87,35 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
|
|
|
87
87
|
name: n,
|
|
88
88
|
exists: !1
|
|
89
89
|
};
|
|
90
|
-
},
|
|
90
|
+
}, Ee = f(() => Object.keys(N).filter((e) => !we.has(e))), L = C(null), R = C(0), z = f(() => k.gapWidth), B = f(() => Math.max(0, k.offsetWidth)), De = f(() => k.estimationBias), V = f(() => k.ellipsisWidth ?? c(O)), Oe = f(() => M("breadcrumbs.label").value), ke = f(() => M("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => {
|
|
91
91
|
let t = e.label ?? "";
|
|
92
92
|
return s(t, {
|
|
93
|
-
estimationBias:
|
|
94
|
-
fontWidth:
|
|
93
|
+
estimationBias: De.value,
|
|
94
|
+
fontWidth: O
|
|
95
95
|
});
|
|
96
|
-
},
|
|
97
|
-
let e = A.
|
|
96
|
+
}, Ae = f(() => {
|
|
97
|
+
let e = A.value.length;
|
|
98
98
|
if (e === 0) return 0;
|
|
99
|
-
let t =
|
|
100
|
-
return A.
|
|
101
|
-
}), U = C(!1),
|
|
99
|
+
let t = k.dividerWidth, n = z.value;
|
|
100
|
+
return A.value.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + D + 12;
|
|
101
|
+
}), U = C(!1), je = () => {
|
|
102
102
|
let e = L.value?.parentElement;
|
|
103
103
|
if (!e) return;
|
|
104
104
|
let t = getComputedStyle(e);
|
|
105
105
|
U.value = t.display.includes("flex") && t.flexDirection.startsWith("column");
|
|
106
|
-
},
|
|
107
|
-
"--flex-basis": U.value ? "auto" : `${Math.ceil(
|
|
106
|
+
}, Me = f(() => ({
|
|
107
|
+
"--flex-basis": U.value ? "auto" : `${Math.ceil(Ae.value)}px`,
|
|
108
108
|
"--flex-grow": R.value > 0 ? "1" : "0",
|
|
109
109
|
"--gap": `${z.value}px`
|
|
110
|
-
})),
|
|
111
|
-
let t = A.
|
|
110
|
+
})), Ne = (e) => {
|
|
111
|
+
let t = A.value.length;
|
|
112
112
|
if (t === 0) {
|
|
113
113
|
R.value = 0;
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
let n = Math.max(0, e -
|
|
116
|
+
let n = Math.max(0, e - be - B.value - D), r = k.dividerWidth, i = V.value, a = z.value, o = A.value.map(H), s = Array.from({ length: t + 1 }, () => 0);
|
|
117
117
|
for (let e = t - 1; e >= 0; e--) s[e] = s[e + 1] + o[e];
|
|
118
|
-
let c = (e) => n - e <=
|
|
118
|
+
let c = (e) => n - e <= D / 2, l = s[0] + (t > 1 ? (t - 1) * (r + 2 * a) : 0);
|
|
119
119
|
if (l <= n) {
|
|
120
120
|
if (t > 1 && c(l)) {
|
|
121
121
|
R.value = 1;
|
|
@@ -136,135 +136,135 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
|
|
|
136
136
|
}
|
|
137
137
|
R.value = t - 1;
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, W = f(() => L.value), Pe = f(() => A.value.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), G = null, K = null, q = null, J = null, Y = 0, X = null, Z = (e, t) => Math.abs(e - t) <= xe, Q = () => {
|
|
140
140
|
X != null && clearTimeout(X), X = setTimeout(() => {
|
|
141
141
|
X = null, Y = 0;
|
|
142
|
-
},
|
|
143
|
-
},
|
|
142
|
+
}, Ce);
|
|
143
|
+
}, Fe = () => {
|
|
144
144
|
if (K = null, G == null) return;
|
|
145
145
|
let e = G;
|
|
146
|
-
G = null, q != null && Z(e, q) ? Q() : (Y = J != null && q != null && Z(e, J) && !Z(e, q) ? Y + 1 : 0, Y >=
|
|
146
|
+
G = null, q != null && Z(e, q) ? Q() : (Y = J != null && q != null && Z(e, J) && !Z(e, q) ? Y + 1 : 0, Y >= Se ? (J = q, q = e, Q()) : (J = q, q = e, Ne(e), Q()));
|
|
147
147
|
}, $ = (e) => {
|
|
148
|
-
G = e, K ??= requestAnimationFrame(
|
|
148
|
+
G = e, K ??= requestAnimationFrame(Fe);
|
|
149
149
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
() =>
|
|
156
|
-
() =>
|
|
157
|
-
() =>
|
|
158
|
-
() =>
|
|
159
|
-
() =>
|
|
150
|
+
ue(W, ([e]) => {
|
|
151
|
+
je(), $(e.contentRect.width);
|
|
152
|
+
}), le([
|
|
153
|
+
W,
|
|
154
|
+
Pe,
|
|
155
|
+
() => k.dividerWidth,
|
|
156
|
+
() => k.gapWidth,
|
|
157
|
+
() => k.offsetWidth,
|
|
158
|
+
() => k.estimationBias,
|
|
159
|
+
() => k.ellipsisWidth
|
|
160
160
|
], ([e]) => {
|
|
161
|
-
e && (
|
|
161
|
+
e && (je(), $(e.clientWidth));
|
|
162
162
|
}, { immediate: !0 }), ie(() => {
|
|
163
163
|
K != null && cancelAnimationFrame(K), X != null && clearTimeout(X);
|
|
164
164
|
});
|
|
165
|
-
let
|
|
165
|
+
let Ie = f(() => A.value.slice(0, R.value).map((e) => ({
|
|
166
166
|
...e,
|
|
167
167
|
label: e.label ?? ""
|
|
168
168
|
})));
|
|
169
|
-
return (e, t) => (S(),
|
|
169
|
+
return (e, t) => (S(), h("nav", b({
|
|
170
170
|
ref_key: "navRef",
|
|
171
171
|
ref: L,
|
|
172
|
-
"aria-label":
|
|
172
|
+
"aria-label": Oe.value,
|
|
173
173
|
class: "bb-breadcrumbs",
|
|
174
|
-
style:
|
|
175
|
-
},
|
|
176
|
-
e.$slots.prepend ? (S(),
|
|
177
|
-
|
|
174
|
+
style: Me.value
|
|
175
|
+
}, T(j).rootAttrs), [g("div", fe, [
|
|
176
|
+
e.$slots.prepend ? (S(), h("div", pe, [w(e.$slots, "prepend", { disabled: v.disabled })])) : m("", !0),
|
|
177
|
+
g("ol", me, [R.value > 0 ? (S(), h("li", b({
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "bb-breadcrumbs__item"
|
|
180
|
-
},
|
|
181
|
-
items:
|
|
180
|
+
}, T(j).part("item", { disabled: v.disabled || void 0 })), [_(o, {
|
|
181
|
+
items: Ie.value,
|
|
182
182
|
padding: 0,
|
|
183
183
|
placement: "bottom-start"
|
|
184
|
-
},
|
|
185
|
-
activator:
|
|
186
|
-
"aria-label":
|
|
184
|
+
}, ne({
|
|
185
|
+
activator: E(({ props: n }) => [g("button", b(n, {
|
|
186
|
+
"aria-label": ke.value,
|
|
187
187
|
class: "bb-breadcrumbs__ellipsis",
|
|
188
|
-
disabled:
|
|
188
|
+
disabled: v.disabled,
|
|
189
189
|
type: "button"
|
|
190
|
-
}), [
|
|
190
|
+
}), [w(e.$slots, "ellipsis", x(y({
|
|
191
191
|
props: n,
|
|
192
|
-
disabled:
|
|
192
|
+
disabled: v.disabled,
|
|
193
193
|
overflowCount: R.value,
|
|
194
194
|
ellipsisWidth: V.value
|
|
195
|
-
})), () => [t[0] ||=
|
|
195
|
+
})), () => [t[0] ||= re(" … ", -1)])], 16, he)]),
|
|
196
196
|
_: 2
|
|
197
|
-
}, [
|
|
197
|
+
}, [ae(Ee.value, (t) => ({
|
|
198
198
|
name: t,
|
|
199
|
-
fn:
|
|
200
|
-
}))]), 1032, ["items"]), R.value <
|
|
201
|
-
icon:
|
|
199
|
+
fn: E((n) => [w(e.$slots, t, x(y(n)))])
|
|
200
|
+
}))]), 1032, ["items"]), R.value < A.value.length ? (S(), h("span", ge, [w(e.$slots, "divider", {}, () => [_(u, {
|
|
201
|
+
icon: T(l),
|
|
202
202
|
size: "14"
|
|
203
|
-
}, null, 8, ["icon"])])])) :
|
|
203
|
+
}, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0), (S(!0), h(d, null, ae(A.value, (t, n) => (S(), h(d, { key: t.value ?? `:keyless-${n}` }, [n >= R.value ? (S(), h("li", b({
|
|
204
204
|
key: 0,
|
|
205
205
|
class: ["bb-breadcrumbs__item", {
|
|
206
206
|
"bb-breadcrumbs__item--active": F(t, n),
|
|
207
|
-
"bb-breadcrumbs__item--compressed":
|
|
207
|
+
"bb-breadcrumbs__item--compressed": A.value.length > 1 && R.value === A.value.length - 1
|
|
208
208
|
}]
|
|
209
|
-
}, { ref_for: !0 },
|
|
209
|
+
}, { ref_for: !0 }, T(j).part("item", {
|
|
210
210
|
active: F(t, n),
|
|
211
|
-
disabled: t.disabled ||
|
|
212
|
-
})), [
|
|
211
|
+
disabled: t.disabled || v.disabled || void 0
|
|
212
|
+
})), [_(a, b({ ref_for: !0 }, Te(t, n), {
|
|
213
213
|
class: "bb-breadcrumbs__breadcrumb",
|
|
214
|
-
disabled: t.disabled ||
|
|
214
|
+
disabled: t.disabled || v.disabled,
|
|
215
215
|
tag: F(t, n) ? "span" : void 0
|
|
216
216
|
}), {
|
|
217
|
-
default:
|
|
218
|
-
|
|
219
|
-
disabled: !!(t.disabled ||
|
|
217
|
+
default: E(() => [
|
|
218
|
+
w(e.$slots, I(t, "prepend").name, {
|
|
219
|
+
disabled: !!(t.disabled || v.disabled),
|
|
220
220
|
index: n,
|
|
221
221
|
item: t,
|
|
222
222
|
label: t.label
|
|
223
223
|
}),
|
|
224
|
-
!I(t, "prepend").exists && t["prepend:icon"] ? (S(),
|
|
224
|
+
!I(t, "prepend").exists && t["prepend:icon"] ? (S(), p(u, b({
|
|
225
225
|
key: 0,
|
|
226
226
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
|
|
227
227
|
icon: t["prepend:icon"],
|
|
228
228
|
size: "14"
|
|
229
|
-
}, { ref_for: !0 },
|
|
229
|
+
}, { ref_for: !0 }, T(j).part("icon", {
|
|
230
230
|
active: F(t, n),
|
|
231
|
-
disabled: t.disabled ||
|
|
232
|
-
})), null, 16, ["icon"])) :
|
|
233
|
-
|
|
231
|
+
disabled: t.disabled || v.disabled || void 0
|
|
232
|
+
})), null, 16, ["icon"])) : m("", !0),
|
|
233
|
+
g("span", b({
|
|
234
234
|
class: "bb-breadcrumbs__text",
|
|
235
|
-
title:
|
|
236
|
-
}, { ref_for: !0 },
|
|
235
|
+
title: A.value.length > 1 && R.value === A.value.length - 1 ? t.label : void 0
|
|
236
|
+
}, { ref_for: !0 }, T(j).part("text", {
|
|
237
237
|
active: F(t, n),
|
|
238
|
-
disabled: t.disabled ||
|
|
239
|
-
})), [
|
|
240
|
-
disabled: !!(t.disabled ||
|
|
238
|
+
disabled: t.disabled || v.disabled || void 0
|
|
239
|
+
})), [w(e.$slots, P(t), {
|
|
240
|
+
disabled: !!(t.disabled || v.disabled),
|
|
241
241
|
index: n,
|
|
242
242
|
item: t,
|
|
243
243
|
label: t.label
|
|
244
|
-
}, () => [
|
|
245
|
-
|
|
246
|
-
disabled: !!(t.disabled ||
|
|
244
|
+
}, () => [re(oe(t.label), 1)])], 16, _e),
|
|
245
|
+
w(e.$slots, I(t, "append").name, {
|
|
246
|
+
disabled: !!(t.disabled || v.disabled),
|
|
247
247
|
index: n,
|
|
248
248
|
item: t,
|
|
249
249
|
label: t.label
|
|
250
250
|
}),
|
|
251
|
-
!I(t, "append").exists && t["append:icon"] ? (S(),
|
|
251
|
+
!I(t, "append").exists && t["append:icon"] ? (S(), p(u, b({
|
|
252
252
|
key: 1,
|
|
253
253
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
|
|
254
254
|
icon: t["append:icon"],
|
|
255
255
|
size: "14"
|
|
256
|
-
}, { ref_for: !0 },
|
|
256
|
+
}, { ref_for: !0 }, T(j).part("icon", {
|
|
257
257
|
active: F(t, n),
|
|
258
|
-
disabled: t.disabled ||
|
|
259
|
-
})), null, 16, ["icon"])) :
|
|
258
|
+
disabled: t.disabled || v.disabled || void 0
|
|
259
|
+
})), null, 16, ["icon"])) : m("", !0)
|
|
260
260
|
]),
|
|
261
261
|
_: 2
|
|
262
|
-
}, 1040, ["disabled", "tag"]), n <
|
|
263
|
-
icon:
|
|
262
|
+
}, 1040, ["disabled", "tag"]), n < A.value.length - 1 ? (S(), h("span", ve, [w(e.$slots, "divider", {}, () => [_(u, {
|
|
263
|
+
icon: T(l),
|
|
264
264
|
size: "14"
|
|
265
|
-
}, null, 8, ["icon"])])])) :
|
|
266
|
-
e.$slots.append ? (S(),
|
|
267
|
-
])], 16,
|
|
265
|
+
}, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0)], 64))), 128))]),
|
|
266
|
+
e.$slots.append ? (S(), h("div", ye, [w(e.$slots, "append", { disabled: v.disabled })])) : m("", !0)
|
|
267
|
+
])], 16, de));
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
|
-
export {
|
|
270
|
+
export { k as default };
|
|
@@ -18,6 +18,12 @@ export type Item = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 'text'> &
|
|
|
18
18
|
* the same `label` and `value`.
|
|
19
19
|
*/
|
|
20
20
|
value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Leaves the crumb out entirely: not in the trail, not in the overflow
|
|
23
|
+
* menu, and never the current page — the same `hidden` a dropdown row
|
|
24
|
+
* takes (an overflowed crumb is one).
|
|
25
|
+
*/
|
|
26
|
+
hidden?: boolean;
|
|
21
27
|
/** Crumbs have no `key` (that is `value`). Guards against the old shape. */
|
|
22
28
|
key?: never;
|
|
23
29
|
/** Crumbs have no `text` (that is `label`). Guards against the old shape. */
|
|
@@ -67,14 +67,12 @@ export type BbCheckboxFieldProps = {
|
|
|
67
67
|
layout?: Responsive<FieldLayout>;
|
|
68
68
|
/**
|
|
69
69
|
* Vertical position of the label block in a side-by-side row; not
|
|
70
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
71
|
-
* meets the control's.
|
|
70
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
72
71
|
*/
|
|
73
72
|
labelAlign?: FieldCrossAlign;
|
|
74
73
|
/**
|
|
75
74
|
* Vertical position of the control in a side-by-side row; not
|
|
76
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
77
|
-
* meets the label's.
|
|
75
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
78
76
|
*/
|
|
79
77
|
inputAlign?: FieldCrossAlign;
|
|
80
78
|
/**
|
|
@@ -77,14 +77,12 @@ export type BbCheckboxGroupBaseProps<T> = {
|
|
|
77
77
|
layout?: Responsive<FieldLayout>;
|
|
78
78
|
/**
|
|
79
79
|
* Vertical position of the label block in a side-by-side row; not
|
|
80
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
81
|
-
* meets the control's.
|
|
80
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
82
81
|
*/
|
|
83
82
|
labelAlign?: FieldCrossAlign;
|
|
84
83
|
/**
|
|
85
84
|
* Vertical position of the control in a side-by-side row; not
|
|
86
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
87
|
-
* meets the label's.
|
|
85
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
88
86
|
*/
|
|
89
87
|
inputAlign?: FieldCrossAlign;
|
|
90
88
|
/**
|
|
@@ -145,14 +145,12 @@ export type BbColorInputProps = BbColorInputPtProps & {
|
|
|
145
145
|
layout?: Responsive<FieldLayout>;
|
|
146
146
|
/**
|
|
147
147
|
* Vertical position of the label block in a side-by-side row; not
|
|
148
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
149
|
-
* meets the control's.
|
|
148
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
150
149
|
*/
|
|
151
150
|
labelAlign?: FieldCrossAlign;
|
|
152
151
|
/**
|
|
153
152
|
* Vertical position of the control in a side-by-side row; not
|
|
154
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
155
|
-
* meets the label's.
|
|
153
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
156
154
|
*/
|
|
157
155
|
inputAlign?: FieldCrossAlign;
|
|
158
156
|
/**
|
|
@@ -180,14 +180,12 @@ export type BbDatePickerInputBaseProps = BbDatePickerInputPtProps & {
|
|
|
180
180
|
layout?: Responsive<FieldLayout>;
|
|
181
181
|
/**
|
|
182
182
|
* Vertical position of the label block in a side-by-side row; not
|
|
183
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
184
|
-
* meets the control's.
|
|
183
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
185
184
|
*/
|
|
186
185
|
labelAlign?: FieldCrossAlign;
|
|
187
186
|
/**
|
|
188
187
|
* Vertical position of the control in a side-by-side row; not
|
|
189
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
190
|
-
* meets the label's.
|
|
188
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
191
189
|
*/
|
|
192
190
|
inputAlign?: FieldCrossAlign;
|
|
193
191
|
/**
|
|
@@ -276,6 +276,7 @@ var He = [
|
|
|
276
276
|
multiple: t.multiple ?? e.multiple,
|
|
277
277
|
label: t.label ?? e.label,
|
|
278
278
|
hideLabel: t.hideLabel ?? e.hideLabel,
|
|
279
|
+
hidden: t.hidden ?? e.hidden,
|
|
279
280
|
items: t.items ?? e.items,
|
|
280
281
|
"prepend:icon": t["prepend:icon"] ?? e["prepend:icon"],
|
|
281
282
|
"append:icon": t["append:icon"] ?? e["append:icon"],
|
|
@@ -286,6 +287,7 @@ var He = [
|
|
|
286
287
|
id: e.key,
|
|
287
288
|
label: e.label ?? t?.label,
|
|
288
289
|
hideLabel: e.hideLabel ?? t?.hideLabel,
|
|
290
|
+
hidden: e.hidden ?? t?.hidden,
|
|
289
291
|
items: e.items ?? t?.items ?? [],
|
|
290
292
|
selectable: e.selectable ?? t?.selectable,
|
|
291
293
|
multiple: e.multiple ?? t?.multiple,
|