bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76
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/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +1 -1
- package/dist/ai/BbDatePickerInput.md +1 -1
- package/dist/ai/BbDialog.md +3 -2
- package/dist/ai/BbDropdown.md +23 -21
- package/dist/ai/BbDropdownButton.md +13 -11
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbSelect.md +153 -43
- package/dist/ai/BbSelectPopover.md +115 -9
- package/dist/ai/BbTable.md +1 -1
- package/dist/ai/BbTimePicker.md +1 -1
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/GroupedListBox.md +2 -2
- package/dist/ai/ListBox.md +3 -2
- package/dist/ai/changelog.json +153 -7
- package/dist/ai/components.json +12 -12
- package/dist/ai/guides/agent-contract.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/v2-to-v3.md +48 -19
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +19 -17
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
- package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +44 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
- package/dist/ai/manifest/components/BbTable.tree.json +5 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +9 -2
- package/dist/ai/source/BbBadge.md +6 -2
- package/dist/ai/source/BbBreadcrumbs.md +5 -2
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +10 -6
- package/dist/ai/source/BbColorPalette.md +5 -2
- package/dist/ai/source/BbDatePickerInput.md +7 -2
- package/dist/ai/source/BbDropdown.md +91 -66
- package/dist/ai/source/BbDropdownButton.md +36 -19
- package/dist/ai/source/BbDropdownGroup.md +91 -66
- package/dist/ai/source/BbGallery.md +6 -5
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +130 -106
- package/dist/ai/source/BbSelectPopover.md +128 -21
- package/dist/ai/source/BbTable.md +42 -9
- package/dist/ai/source/BbTimePickerInput.md +6 -2
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +7 -2
- package/dist/ai/source/GroupedListBox.md +22 -3
- package/dist/ai/source/ListBox.md +7 -1
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
- package/dist/components/BbDropdown/types.d.ts +51 -53
- package/dist/components/BbDropdown/types.js +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
- package/dist/components/BbDropdownButton/types.d.ts +12 -10
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +101 -105
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +22 -13
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/llms-full.txt +477 -187
- package/dist/llms-medium.txt +25 -24
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +4 -4
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +319 -306
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +73 -12
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -7,28 +7,29 @@ import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttr
|
|
|
7
7
|
import a from "../BbBaseButton/BbBaseButton.vue.js";
|
|
8
8
|
import o from "../BbDropdown/BbDropdown.vue.js";
|
|
9
9
|
import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
|
|
10
|
-
import
|
|
11
|
-
import { BB_BREADCRUMBS_PT as
|
|
12
|
-
import { usePassthrough as
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
10
|
+
import te from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
11
|
+
import { BB_BREADCRUMBS_PT as l } from "./types.js";
|
|
12
|
+
import { usePassthrough as ne } from "../../composables/usePassthrough.js";
|
|
13
|
+
import u from "../BbIcon/BbIcon.vue.js";
|
|
14
|
+
import { useInternalIcon as re } from "../../composables/useInternalIcon.js";
|
|
15
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ie, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeProps as x, normalizeProps as S, onBeforeUnmount as ae, openBlock as C, ref as w, renderList as oe, renderSlot as T, toDisplayString as se, unref as E, useAttrs as ce, useSlots as le, watch as ue, withCtx as D } from "vue";
|
|
16
|
+
import { useResizeObserver as de } from "@vueuse/core";
|
|
16
17
|
// src/components/BbBreadcrumbs/BbBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
18
|
+
var fe = ["aria-label"], pe = { class: "bb-breadcrumbs__container" }, me = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--prepend"
|
|
20
|
-
},
|
|
21
|
+
}, he = { class: "bb-breadcrumbs__list" }, ge = ["aria-label", "disabled"], _e = {
|
|
21
22
|
key: 0,
|
|
22
23
|
"aria-hidden": "true",
|
|
23
24
|
class: "bb-breadcrumbs__divider"
|
|
24
|
-
},
|
|
25
|
+
}, ve = ["title"], ye = {
|
|
25
26
|
key: 0,
|
|
26
27
|
"aria-hidden": "true",
|
|
27
28
|
class: "bb-breadcrumbs__divider"
|
|
28
|
-
},
|
|
29
|
+
}, be = {
|
|
29
30
|
key: 1,
|
|
30
31
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--append"
|
|
31
|
-
},
|
|
32
|
+
}, O = 20, xe = 1, Se = 8.5, Ce = .5, we = 8, Te = 200, k = /*@__PURE__*/ y({
|
|
32
33
|
inheritAttrs: !1,
|
|
33
34
|
__name: "BbBreadcrumbs",
|
|
34
35
|
props: {
|
|
@@ -53,212 +54,212 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
|
|
|
53
54
|
ellipsisWidth: {}
|
|
54
55
|
},
|
|
55
56
|
setup(y) {
|
|
56
|
-
let
|
|
57
|
-
process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", ee("BbBreadcrumbs"), { slotKeys: () =>
|
|
58
|
-
let
|
|
57
|
+
let k = y, A = re("separator", te), j = f(() => k.items.filter((e) => !e.hidden));
|
|
58
|
+
process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", ee("BbBreadcrumbs"), { slotKeys: () => k.items.map((e) => e.value) });
|
|
59
|
+
let M = ne({
|
|
59
60
|
component: "BbBreadcrumbs",
|
|
60
|
-
attrs:
|
|
61
|
-
props:
|
|
62
|
-
parts:
|
|
63
|
-
states:
|
|
64
|
-
active: { disabled: () => !!
|
|
65
|
-
}), { t:
|
|
61
|
+
attrs: ce(),
|
|
62
|
+
props: k,
|
|
63
|
+
parts: l.parts,
|
|
64
|
+
states: l.states,
|
|
65
|
+
active: { disabled: () => !!k.disabled }
|
|
66
|
+
}), { t: Ee } = e();
|
|
66
67
|
t();
|
|
67
|
-
let
|
|
68
|
+
let N = le(), De = /* @__PURE__ */ new Set([
|
|
68
69
|
"prepend",
|
|
69
70
|
"append",
|
|
70
71
|
"ellipsis",
|
|
71
72
|
"divider",
|
|
72
73
|
"activator"
|
|
73
|
-
]),
|
|
74
|
+
]), Oe = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), P = (e, t) => t === j.value.length - 1 && !e.href && !e.to && !e.onClick, ke = (e, t) => {
|
|
74
75
|
let { "prepend:icon": n, "append:icon": r, value: ee, label: i, hidden: a, ...o } = e;
|
|
75
|
-
return
|
|
76
|
+
return P(e, t) ? {
|
|
76
77
|
...o,
|
|
77
78
|
"aria-current": "page"
|
|
78
79
|
} : o;
|
|
79
|
-
},
|
|
80
|
-
disabled: !!(e.disabled ||
|
|
80
|
+
}, F = (e, t) => [N[`${Oe(e)}:${t}`], N[`item:${t}`]], I = (e, t) => ({
|
|
81
|
+
disabled: !!(e.disabled || k.disabled),
|
|
81
82
|
index: t,
|
|
82
83
|
item: e,
|
|
83
84
|
label: e.label
|
|
84
|
-
}),
|
|
85
|
+
}), Ae = f(() => Object.keys(N).filter((e) => !De.has(e))), L = w(null), R = w(0), z = f(() => k.gapWidth), B = f(() => Math.max(0, k.offsetWidth)), je = f(() => k.estimationBias), V = f(() => k.ellipsisWidth ?? c(Se)), Me = f(() => Ee("breadcrumbs.label").value), Ne = f(() => Ee("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => {
|
|
85
86
|
let t = e.label ?? "";
|
|
86
87
|
return s(t, {
|
|
87
|
-
estimationBias:
|
|
88
|
-
fontWidth:
|
|
88
|
+
estimationBias: je.value,
|
|
89
|
+
fontWidth: Se
|
|
89
90
|
});
|
|
90
|
-
},
|
|
91
|
-
let e =
|
|
91
|
+
}, Pe = f(() => {
|
|
92
|
+
let e = j.value.length;
|
|
92
93
|
if (e === 0) return 0;
|
|
93
|
-
let t =
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
96
|
-
let e =
|
|
94
|
+
let t = k.dividerWidth, n = z.value;
|
|
95
|
+
return j.value.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + O + 12;
|
|
96
|
+
}), U = w(!1), W = () => {
|
|
97
|
+
let e = L.value?.parentElement;
|
|
97
98
|
if (!e) return;
|
|
98
99
|
let t = getComputedStyle(e);
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
"--flex-basis":
|
|
102
|
-
"--flex-grow":
|
|
103
|
-
"--gap": `${
|
|
104
|
-
})),
|
|
105
|
-
let t =
|
|
100
|
+
U.value = t.display.includes("flex") && t.flexDirection.startsWith("column");
|
|
101
|
+
}, Fe = f(() => ({
|
|
102
|
+
"--flex-basis": U.value ? "auto" : `${Math.ceil(Pe.value)}px`,
|
|
103
|
+
"--flex-grow": R.value > 0 ? "1" : "0",
|
|
104
|
+
"--gap": `${z.value}px`
|
|
105
|
+
})), Ie = (e) => {
|
|
106
|
+
let t = j.value.length;
|
|
106
107
|
if (t === 0) {
|
|
107
|
-
|
|
108
|
+
R.value = 0;
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
let n = Math.max(0, e -
|
|
111
|
+
let n = Math.max(0, e - xe - B.value - O), r = k.dividerWidth, ee = V.value, i = z.value, a = j.value.map(H), o = Array.from({ length: t + 1 }, () => 0);
|
|
111
112
|
for (let e = t - 1; e >= 0; e--) o[e] = o[e + 1] + a[e];
|
|
112
|
-
let s = (e) => n - e <=
|
|
113
|
+
let s = (e) => n - e <= O / 2, c = o[0] + (t > 1 ? (t - 1) * (r + 2 * i) : 0);
|
|
113
114
|
if (c <= n) {
|
|
114
115
|
if (t > 1 && s(c)) {
|
|
115
|
-
|
|
116
|
+
R.value = 1;
|
|
116
117
|
return;
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
+
R.value = 0;
|
|
119
120
|
} else {
|
|
120
121
|
for (let e = t - 1; e >= 1; e--) {
|
|
121
122
|
let a = o[t - e], c = ee + e * (r + 2 * i) + a;
|
|
122
123
|
if (c <= n) {
|
|
123
124
|
if (e > 1 && s(c)) {
|
|
124
|
-
|
|
125
|
+
R.value = t - (e - 1);
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
+
R.value = t - e;
|
|
128
129
|
return;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
+
R.value = t - 1;
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
if (
|
|
139
|
-
let e =
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
134
|
+
}, G = f(() => L.value), Le = f(() => j.value.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), K = null, q = null, J = null, Y = null, X = 0, Z = null, Q = (e, t) => Math.abs(e - t) <= Ce, $ = () => {
|
|
135
|
+
Z != null && clearTimeout(Z), Z = setTimeout(() => {
|
|
136
|
+
Z = null, X = 0;
|
|
137
|
+
}, Te);
|
|
138
|
+
}, Re = () => {
|
|
139
|
+
if (q = null, K == null) return;
|
|
140
|
+
let e = K;
|
|
141
|
+
K = null, J != null && Q(e, J) ? $() : (X = Y != null && J != null && Q(e, Y) && !Q(e, J) ? X + 1 : 0, X >= we ? (Y = J, J = e, $()) : (Y = J, J = e, Ie(e), $()));
|
|
142
|
+
}, ze = (e) => {
|
|
143
|
+
K = e, q ??= requestAnimationFrame(Re);
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
-
W(),
|
|
146
|
-
}),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
() =>
|
|
150
|
-
() =>
|
|
151
|
-
() =>
|
|
152
|
-
() =>
|
|
153
|
-
() =>
|
|
145
|
+
de(G, ([e]) => {
|
|
146
|
+
W(), ze(e.contentRect.width);
|
|
147
|
+
}), ue([
|
|
148
|
+
G,
|
|
149
|
+
Le,
|
|
150
|
+
() => k.dividerWidth,
|
|
151
|
+
() => k.gapWidth,
|
|
152
|
+
() => k.offsetWidth,
|
|
153
|
+
() => k.estimationBias,
|
|
154
|
+
() => k.ellipsisWidth
|
|
154
155
|
], ([e]) => {
|
|
155
|
-
e && (W(),
|
|
156
|
-
}, { immediate: !0 }),
|
|
157
|
-
|
|
156
|
+
e && (W(), ze(e.clientWidth));
|
|
157
|
+
}, { immediate: !0 }), ae(() => {
|
|
158
|
+
q != null && cancelAnimationFrame(q), Z != null && clearTimeout(Z);
|
|
158
159
|
});
|
|
159
|
-
let
|
|
160
|
+
let Be = f(() => j.value.slice(0, R.value).map((e) => ({
|
|
160
161
|
...e,
|
|
161
162
|
label: e.label ?? ""
|
|
162
163
|
})));
|
|
163
|
-
return (e, t) => (C(),
|
|
164
|
+
return (e, t) => (C(), h("nav", x({
|
|
164
165
|
ref_key: "navRef",
|
|
165
|
-
ref:
|
|
166
|
-
"aria-label":
|
|
166
|
+
ref: L,
|
|
167
|
+
"aria-label": Me.value,
|
|
167
168
|
class: "bb-breadcrumbs",
|
|
168
|
-
style:
|
|
169
|
-
},
|
|
170
|
-
e.$slots.prepend ? (C(),
|
|
171
|
-
|
|
169
|
+
style: Fe.value
|
|
170
|
+
}, E(M).rootAttrs), [g("div", pe, [
|
|
171
|
+
e.$slots.prepend ? (C(), h("div", me, [T(e.$slots, "prepend", { disabled: y.disabled })])) : m("", !0),
|
|
172
|
+
g("ol", he, [R.value > 0 ? (C(), h("li", x({
|
|
172
173
|
key: 0,
|
|
173
174
|
class: "bb-breadcrumbs__item"
|
|
174
|
-
},
|
|
175
|
-
items:
|
|
175
|
+
}, E(M).part("item", { disabled: y.disabled || void 0 })), [v(o, {
|
|
176
|
+
items: Be.value,
|
|
176
177
|
padding: 0,
|
|
177
178
|
placement: "bottom-start"
|
|
178
|
-
},
|
|
179
|
-
activator:
|
|
180
|
-
"aria-label":
|
|
179
|
+
}, ie({
|
|
180
|
+
activator: D(({ props: n }) => [g("button", x(n, {
|
|
181
|
+
"aria-label": Ne.value,
|
|
181
182
|
class: "bb-breadcrumbs__ellipsis",
|
|
182
183
|
disabled: y.disabled,
|
|
183
184
|
type: "button"
|
|
184
|
-
}), [
|
|
185
|
+
}), [T(e.$slots, "ellipsis", S(b({
|
|
185
186
|
props: n,
|
|
186
187
|
disabled: y.disabled,
|
|
187
|
-
overflowCount:
|
|
188
|
-
ellipsisWidth:
|
|
189
|
-
})), () => [t[0] ||=
|
|
188
|
+
overflowCount: R.value,
|
|
189
|
+
ellipsisWidth: V.value
|
|
190
|
+
})), () => [t[0] ||= _(" … ", -1)])], 16, ge)]),
|
|
190
191
|
_: 2
|
|
191
|
-
}, [
|
|
192
|
+
}, [oe(Ae.value, (t) => ({
|
|
192
193
|
name: t,
|
|
193
|
-
fn:
|
|
194
|
-
}))]), 1032, ["items"]),
|
|
195
|
-
icon:
|
|
194
|
+
fn: D((n) => [T(e.$slots, t, S(b(n)))])
|
|
195
|
+
}))]), 1032, ["items"]), R.value < j.value.length ? (C(), h("span", _e, [T(e.$slots, "divider", {}, () => [v(u, {
|
|
196
|
+
icon: E(A),
|
|
196
197
|
size: "14"
|
|
197
|
-
}, null, 8, ["icon"])])])) :
|
|
198
|
+
}, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0), (C(!0), h(d, null, oe(j.value, (t, n) => (C(), h(d, { key: t.value ?? `:keyless-${n}` }, [n >= R.value ? (C(), h("li", x({
|
|
198
199
|
key: 0,
|
|
199
200
|
class: ["bb-breadcrumbs__item", {
|
|
200
|
-
"bb-breadcrumbs__item--active":
|
|
201
|
-
"bb-breadcrumbs__item--compressed":
|
|
201
|
+
"bb-breadcrumbs__item--active": P(t, n),
|
|
202
|
+
"bb-breadcrumbs__item--compressed": j.value.length > 1 && R.value === j.value.length - 1
|
|
202
203
|
}]
|
|
203
|
-
}, { ref_for: !0 },
|
|
204
|
-
active:
|
|
204
|
+
}, { ref_for: !0 }, E(M).part("item", {
|
|
205
|
+
active: P(t, n),
|
|
205
206
|
disabled: t.disabled || y.disabled || void 0
|
|
206
|
-
})), [v(a, x({ ref_for: !0 },
|
|
207
|
+
})), [v(a, x({ ref_for: !0 }, ke(t, n), {
|
|
207
208
|
class: "bb-breadcrumbs__breadcrumb",
|
|
208
209
|
disabled: t.disabled || y.disabled,
|
|
209
|
-
tag:
|
|
210
|
+
tag: P(t, n) ? "span" : void 0
|
|
210
211
|
}), {
|
|
211
|
-
default:
|
|
212
|
-
v(
|
|
213
|
-
props:
|
|
214
|
-
slots:
|
|
212
|
+
default: D(() => [
|
|
213
|
+
v(E(r), {
|
|
214
|
+
props: I(t, n),
|
|
215
|
+
slots: F(t, "prepend")
|
|
215
216
|
}, {
|
|
216
|
-
default:
|
|
217
|
+
default: D(() => [t["prepend:icon"] ? (C(), p(u, x({
|
|
217
218
|
key: 0,
|
|
218
219
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
|
|
219
220
|
icon: t["prepend:icon"],
|
|
220
221
|
size: "14"
|
|
221
|
-
}, { ref_for: !0 },
|
|
222
|
-
active:
|
|
222
|
+
}, { ref_for: !0 }, E(M).part("icon", {
|
|
223
|
+
active: P(t, n),
|
|
223
224
|
disabled: t.disabled || y.disabled || void 0
|
|
224
|
-
})), null, 16, ["icon"])) :
|
|
225
|
+
})), null, 16, ["icon"])) : m("", !0)]),
|
|
225
226
|
_: 2
|
|
226
227
|
}, 1032, ["props", "slots"]),
|
|
227
|
-
|
|
228
|
+
g("span", x({
|
|
228
229
|
class: "bb-breadcrumbs__text",
|
|
229
|
-
title:
|
|
230
|
-
}, { ref_for: !0 },
|
|
231
|
-
active:
|
|
230
|
+
title: j.value.length > 1 && R.value === j.value.length - 1 ? t.label : void 0
|
|
231
|
+
}, { ref_for: !0 }, E(M).part("text", {
|
|
232
|
+
active: P(t, n),
|
|
232
233
|
disabled: t.disabled || y.disabled || void 0
|
|
233
|
-
})), [
|
|
234
|
+
})), [T(e.$slots, Oe(t), {
|
|
234
235
|
disabled: !!(t.disabled || y.disabled),
|
|
235
236
|
index: n,
|
|
236
237
|
item: t,
|
|
237
238
|
label: t.label
|
|
238
|
-
}, () => [
|
|
239
|
-
v(
|
|
240
|
-
props:
|
|
241
|
-
slots:
|
|
239
|
+
}, () => [_(se(t.label), 1)])], 16, ve),
|
|
240
|
+
v(E(r), {
|
|
241
|
+
props: I(t, n),
|
|
242
|
+
slots: F(t, "append")
|
|
242
243
|
}, {
|
|
243
|
-
default:
|
|
244
|
+
default: D(() => [t["append:icon"] ? (C(), p(u, x({
|
|
244
245
|
key: 0,
|
|
245
246
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
|
|
246
247
|
icon: t["append:icon"],
|
|
247
248
|
size: "14"
|
|
248
|
-
}, { ref_for: !0 },
|
|
249
|
-
active:
|
|
249
|
+
}, { ref_for: !0 }, E(M).part("icon", {
|
|
250
|
+
active: P(t, n),
|
|
250
251
|
disabled: t.disabled || y.disabled || void 0
|
|
251
|
-
})), null, 16, ["icon"])) :
|
|
252
|
+
})), null, 16, ["icon"])) : m("", !0)]),
|
|
252
253
|
_: 2
|
|
253
254
|
}, 1032, ["props", "slots"])
|
|
254
255
|
]),
|
|
255
256
|
_: 2
|
|
256
|
-
}, 1040, ["disabled", "tag"]), n <
|
|
257
|
-
icon:
|
|
257
|
+
}, 1040, ["disabled", "tag"]), n < j.value.length - 1 ? (C(), h("span", ye, [T(e.$slots, "divider", {}, () => [v(u, {
|
|
258
|
+
icon: E(A),
|
|
258
259
|
size: "14"
|
|
259
|
-
}, null, 8, ["icon"])])])) :
|
|
260
|
-
e.$slots.append ? (C(),
|
|
261
|
-
])], 16,
|
|
260
|
+
}, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0)], 64))), 128))]),
|
|
261
|
+
e.$slots.append ? (C(), h("div", be, [T(e.$slots, "append", { disabled: y.disabled })])) : m("", !0)
|
|
262
|
+
])], 16, fe));
|
|
262
263
|
}
|
|
263
264
|
});
|
|
264
|
-
export {
|
|
265
|
+
export { k as default };
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
41
41
|
disabled?: boolean;
|
|
42
42
|
readonly?: boolean;
|
|
43
43
|
clearable?: boolean;
|
|
44
|
-
} & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "
|
|
44
|
+
} & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
|
|
45
45
|
"onUpdate:modelValue"?: ((value: import('./types.js').BbDateValue<R, M>) => any) | undefined;
|
|
46
46
|
"onUpdate:activeSegment"?: ((value: BbCalendarSegment) => any) | undefined;
|
|
47
47
|
"onTime-pick"?: ((payload: {
|