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
|
@@ -4,9 +4,10 @@ import { provideLinkState as n, useLinkState as r } from "../BbBaseButton/useLin
|
|
|
4
4
|
import { SlotChain as i } from "../../utilities/functions/slotContent.js";
|
|
5
5
|
import a from "../../assets/svgs/check_stroke.svg_raw.js";
|
|
6
6
|
import o from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useInternalIcon as s } from "../../composables/useInternalIcon.js";
|
|
8
|
+
import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
8
9
|
// src/components/BbDropdown/DropdownRow.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var y = { class: "item__content" }, b = ["id"], x = ["id"], S = /*@__PURE__*/ p({
|
|
10
11
|
__name: "DropdownRow",
|
|
11
12
|
props: {
|
|
12
13
|
group: {},
|
|
@@ -15,87 +16,87 @@ var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f(
|
|
|
15
16
|
selected: { type: Boolean },
|
|
16
17
|
row: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
let
|
|
19
|
+
setup(p) {
|
|
20
|
+
let S = p, C = s("next", o), w = s("check", a), T = r({
|
|
20
21
|
get to() {
|
|
21
|
-
return
|
|
22
|
+
return S.item.to;
|
|
22
23
|
},
|
|
23
24
|
get href() {
|
|
24
|
-
return
|
|
25
|
+
return S.item.href;
|
|
25
26
|
},
|
|
26
27
|
get disabled() {
|
|
27
|
-
return
|
|
28
|
+
return S.item.disabled;
|
|
28
29
|
},
|
|
29
30
|
get external() {
|
|
30
|
-
return
|
|
31
|
+
return S.item.external;
|
|
31
32
|
},
|
|
32
33
|
get target() {
|
|
33
|
-
return
|
|
34
|
+
return S.item.target;
|
|
34
35
|
},
|
|
35
36
|
get replace() {
|
|
36
|
-
return
|
|
37
|
+
return S.item.replace;
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
|
-
return n(
|
|
40
|
-
ref: (e) =>
|
|
40
|
+
return n(T), (n, r) => (h(), c(e, m({
|
|
41
|
+
ref: (e) => p.row.setItemEl(p.index, e),
|
|
41
42
|
class: "bb-dropdown__item"
|
|
42
|
-
},
|
|
43
|
-
default:
|
|
44
|
-
|
|
45
|
-
props:
|
|
43
|
+
}, p.row.itemAttrs(p.group, p.item, p.index, p.selected, _(T))), {
|
|
44
|
+
default: v(() => [
|
|
45
|
+
f(_(i), {
|
|
46
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
46
47
|
slots: [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
p.row.itemSlot(p.item, "prepend"),
|
|
49
|
+
p.row.groupRowSlot(p.group, "prepend"),
|
|
50
|
+
p.row.slots["item:prepend"]
|
|
50
51
|
]
|
|
51
52
|
}, {
|
|
52
|
-
default:
|
|
53
|
+
default: v(() => [p.item["prepend:icon"] ? (h(), c(t, m({
|
|
53
54
|
key: 0,
|
|
54
55
|
class: "bb-dropdown__item-icon item__prepend-icon",
|
|
55
|
-
icon:
|
|
56
|
-
},
|
|
56
|
+
icon: p.item["prepend:icon"]
|
|
57
|
+
}, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
|
|
57
58
|
_: 1
|
|
58
59
|
}, 8, ["props", "slots"]),
|
|
59
|
-
|
|
60
|
-
props:
|
|
61
|
-
slots: [
|
|
60
|
+
f(_(i), {
|
|
61
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
62
|
+
slots: [p.row.itemSlot(p.item), p.row.groupRowSlot(p.group)]
|
|
62
63
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
id:
|
|
64
|
+
default: v(() => [d("span", y, [d("span", m({
|
|
65
|
+
id: p.row.rowTextId(p.index),
|
|
65
66
|
class: "bb-dropdown__item-text"
|
|
66
|
-
},
|
|
67
|
+
}, p.row.rowPart("itemText", p.item, p.selected, _(T))), g(p.item.label), 17, b), p.item.description ? (h(), u("span", m({
|
|
67
68
|
key: 0,
|
|
68
|
-
id:
|
|
69
|
+
id: p.row.rowDescriptionId(p.index),
|
|
69
70
|
class: "bb-dropdown__item-description"
|
|
70
|
-
},
|
|
71
|
+
}, p.row.rowPart("itemDescription", p.item, p.selected, _(T))), g(p.item.description), 17, x)) : l("", !0)])]),
|
|
71
72
|
_: 1
|
|
72
73
|
}, 8, ["props", "slots"]),
|
|
73
|
-
|
|
74
|
+
p.group.selectable ? (h(), c(t, m({
|
|
74
75
|
key: 0,
|
|
75
76
|
"aria-hidden": "true",
|
|
76
|
-
class: "item__check",
|
|
77
|
-
icon:
|
|
78
|
-
},
|
|
79
|
-
|
|
77
|
+
class: ["item__check", { "item__check--own": _(w) !== _(a) }],
|
|
78
|
+
icon: _(w)
|
|
79
|
+
}, p.row.rowPart("check", p.item, p.selected, _(T))), null, 16, ["class", "icon"])) : l("", !0),
|
|
80
|
+
p.selected ? l("", !0) : (h(), c(_(i), {
|
|
80
81
|
key: 1,
|
|
81
|
-
props:
|
|
82
|
-
slots: [
|
|
82
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
83
|
+
slots: [p.row.itemSlot(p.item, "append")]
|
|
83
84
|
}, {
|
|
84
|
-
default:
|
|
85
|
+
default: v(() => [p.item.items ? (h(), c(t, {
|
|
85
86
|
key: 0,
|
|
86
87
|
"aria-hidden": "true",
|
|
87
88
|
class: "item__chevron",
|
|
88
|
-
icon:
|
|
89
|
-
}, null, 8, ["icon"])) : (
|
|
89
|
+
icon: _(C)
|
|
90
|
+
}, null, 8, ["icon"])) : (h(), c(_(i), {
|
|
90
91
|
key: 1,
|
|
91
|
-
props:
|
|
92
|
-
slots: [
|
|
92
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
93
|
+
slots: [p.row.groupRowSlot(p.group, "append"), p.row.slots["item:append"]]
|
|
93
94
|
}, {
|
|
94
|
-
default:
|
|
95
|
+
default: v(() => [p.item["append:icon"] ? (h(), c(t, m({
|
|
95
96
|
key: 0,
|
|
96
97
|
class: "bb-dropdown__item-icon item__append-icon",
|
|
97
|
-
icon:
|
|
98
|
-
},
|
|
98
|
+
icon: p.item["append:icon"]
|
|
99
|
+
}, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
|
|
99
100
|
_: 1
|
|
100
101
|
}, 8, ["props", "slots"]))]),
|
|
101
102
|
_: 1
|
|
@@ -105,4 +106,4 @@ var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f(
|
|
|
105
106
|
}, 16));
|
|
106
107
|
}
|
|
107
108
|
});
|
|
108
|
-
export {
|
|
109
|
+
export { S as default };
|
|
@@ -2,11 +2,11 @@ import { PtValue } from '../../types/passthrough.js';
|
|
|
2
2
|
/** Every `pt:<part>` / `pt:<part>:<state>` attribute of `BbDropdown`, documented. */
|
|
3
3
|
export interface BbDropdownPtKeys {
|
|
4
4
|
/**
|
|
5
|
-
* The floating element
|
|
5
|
+
* The floating element, an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet (style `panel` there).
|
|
6
6
|
*/
|
|
7
7
|
'pt:root'?: PtValue;
|
|
8
8
|
/**
|
|
9
|
-
* The floating element
|
|
9
|
+
* The floating element, an invisible positioning wrapper; a `class` on the component lands here. While `open`: the menu is open. See `pt:root`.
|
|
10
10
|
*/
|
|
11
11
|
'pt:root:open'?: PtValue;
|
|
12
12
|
/**
|
|
@@ -18,11 +18,11 @@ export interface BbDropdownPtKeys {
|
|
|
18
18
|
*/
|
|
19
19
|
'pt:panel:open'?: PtValue;
|
|
20
20
|
/**
|
|
21
|
-
* The bottom sheet
|
|
21
|
+
* The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict.
|
|
22
22
|
*/
|
|
23
23
|
'pt:sheet'?: PtValue;
|
|
24
24
|
/**
|
|
25
|
-
* The bottom sheet
|
|
25
|
+
* The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict. While `open`: the menu is open.
|
|
26
26
|
*/
|
|
27
27
|
'pt:sheet:open'?: PtValue;
|
|
28
28
|
/**
|
|
@@ -50,27 +50,43 @@ export interface BbDropdownPtKeys {
|
|
|
50
50
|
*/
|
|
51
51
|
'pt:box:open'?: PtValue;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Every searchable group's search field, desktop and phone alike. Its magnifier glyph is chrome.
|
|
54
54
|
*/
|
|
55
55
|
'pt:input'?: PtValue;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Every searchable group's search field, desktop and phone alike. While `open`: the menu is open. See `pt:input`.
|
|
58
58
|
*/
|
|
59
59
|
'pt:input:open'?: PtValue;
|
|
60
60
|
/**
|
|
61
|
-
* The top-level
|
|
61
|
+
* The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). A submenu's list is not reached.
|
|
62
62
|
*/
|
|
63
63
|
'pt:list'?: PtValue;
|
|
64
64
|
/**
|
|
65
|
-
* The top-level
|
|
65
|
+
* The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). While `open`: the menu is open. See `pt:list`.
|
|
66
66
|
*/
|
|
67
67
|
'pt:list:open'?: PtValue;
|
|
68
|
+
/**
|
|
69
|
+
* Every group's label row (its `label` and icons; the row an `onClick` group activates). `#<id>:label` replaces its content.
|
|
70
|
+
*/
|
|
71
|
+
'pt:groupLabel'?: PtValue;
|
|
72
|
+
/**
|
|
73
|
+
* Every group's label row (its `label` and icons; the row an `onClick` group activates). While `open`: the menu is open. See `pt:groupLabel`.
|
|
74
|
+
*/
|
|
75
|
+
'pt:groupLabel:open'?: PtValue;
|
|
76
|
+
/**
|
|
77
|
+
* Every `groupBy` heading (sticky). `#group` / `#<id>:group` replace its content.
|
|
78
|
+
*/
|
|
79
|
+
'pt:groupHeader'?: PtValue;
|
|
80
|
+
/**
|
|
81
|
+
* Every `groupBy` heading (sticky). While `open`: the menu is open. See `pt:groupHeader`.
|
|
82
|
+
*/
|
|
83
|
+
'pt:groupHeader:open'?: PtValue;
|
|
68
84
|
/**
|
|
69
85
|
* One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.
|
|
70
86
|
*/
|
|
71
87
|
'pt:item'?: unknown;
|
|
72
88
|
/**
|
|
73
|
-
* One menu entry, submenus included — a broadcast resolved per entry. While `activeLink`: an entry whose link (`to` / `href`)
|
|
89
|
+
* One menu entry, submenus included — a broadcast resolved per entry. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:item`.
|
|
74
90
|
*/
|
|
75
91
|
'pt:item:activeLink'?: PtValue;
|
|
76
92
|
/**
|
|
@@ -102,7 +118,7 @@ export interface BbDropdownPtKeys {
|
|
|
102
118
|
*/
|
|
103
119
|
'pt:itemText'?: unknown;
|
|
104
120
|
/**
|
|
105
|
-
* An entry's label (its `label`) — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`)
|
|
121
|
+
* An entry's label (its `label`) — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemText`.
|
|
106
122
|
*/
|
|
107
123
|
'pt:itemText:activeLink'?: PtValue;
|
|
108
124
|
/**
|
|
@@ -134,7 +150,7 @@ export interface BbDropdownPtKeys {
|
|
|
134
150
|
*/
|
|
135
151
|
'pt:itemIcon'?: unknown;
|
|
136
152
|
/**
|
|
137
|
-
* An entry's prepend / append icons — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`)
|
|
153
|
+
* An entry's prepend / append icons — resolved with that entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemIcon`.
|
|
138
154
|
*/
|
|
139
155
|
'pt:itemIcon:activeLink'?: PtValue;
|
|
140
156
|
/**
|
|
@@ -162,35 +178,35 @@ export interface BbDropdownPtKeys {
|
|
|
162
178
|
*/
|
|
163
179
|
'pt:itemIcon:destructive'?: PtValue;
|
|
164
180
|
/**
|
|
165
|
-
* An entry's muted second line (its `description`)
|
|
181
|
+
* An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function.
|
|
166
182
|
*/
|
|
167
183
|
'pt:itemDescription'?: unknown;
|
|
168
184
|
/**
|
|
169
|
-
* An entry's muted second line (its `description`)
|
|
185
|
+
* An entry's muted second line (its `description`), with the entry's states. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:itemDescription`.
|
|
170
186
|
*/
|
|
171
187
|
'pt:itemDescription:activeLink'?: PtValue;
|
|
172
188
|
/**
|
|
173
|
-
* An entry's muted second line (its `description`)
|
|
189
|
+
* An entry's muted second line (its `description`), with the entry's states. While `exactActiveLink`: an entry whose link points at the current page itself — its `exactActiveClass` is on. See `pt:itemDescription`.
|
|
174
190
|
*/
|
|
175
191
|
'pt:itemDescription:exactActiveLink'?: PtValue;
|
|
176
192
|
/**
|
|
177
|
-
* An entry's muted second line (its `description`)
|
|
193
|
+
* An entry's muted second line (its `description`), with the entry's states. While `selected`: a selectable group's checked entry. See `pt:itemDescription`.
|
|
178
194
|
*/
|
|
179
195
|
'pt:itemDescription:selected'?: PtValue;
|
|
180
196
|
/**
|
|
181
|
-
* An entry's muted second line (its `description`)
|
|
197
|
+
* An entry's muted second line (its `description`), with the entry's states. While `disabled`: an entry that is disabled. See `pt:itemDescription`.
|
|
182
198
|
*/
|
|
183
199
|
'pt:itemDescription:disabled'?: PtValue;
|
|
184
200
|
/**
|
|
185
|
-
* An entry's muted second line (its `description`)
|
|
201
|
+
* An entry's muted second line (its `description`), with the entry's states. While `open`: the menu is open. See `pt:itemDescription`.
|
|
186
202
|
*/
|
|
187
203
|
'pt:itemDescription:open'?: PtValue;
|
|
188
204
|
/**
|
|
189
|
-
* An entry's muted second line (its `description`)
|
|
205
|
+
* An entry's muted second line (its `description`), with the entry's states. While `default`: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. See `pt:itemDescription`.
|
|
190
206
|
*/
|
|
191
207
|
'pt:itemDescription:default'?: PtValue;
|
|
192
208
|
/**
|
|
193
|
-
* An entry's muted second line (its `description`)
|
|
209
|
+
* An entry's muted second line (its `description`), with the entry's states. While `destructive`: `variant: 'destructive'`. Below the real states, like every variant. See `pt:itemDescription`.
|
|
194
210
|
*/
|
|
195
211
|
'pt:itemDescription:destructive'?: PtValue;
|
|
196
212
|
/**
|
|
@@ -198,7 +214,7 @@ export interface BbDropdownPtKeys {
|
|
|
198
214
|
*/
|
|
199
215
|
'pt:check'?: unknown;
|
|
200
216
|
/**
|
|
201
|
-
* A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. While `activeLink`: an entry whose link (`to` / `href`)
|
|
217
|
+
* A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. While `activeLink`: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. See `pt:check`.
|
|
202
218
|
*/
|
|
203
219
|
'pt:check:activeLink'?: PtValue;
|
|
204
220
|
/**
|
|
@@ -581,29 +581,31 @@ export type MappedItem = InternalItem & {
|
|
|
581
581
|
onKeydown: (event: KeyboardEvent) => void;
|
|
582
582
|
};
|
|
583
583
|
/**
|
|
584
|
-
* Passthrough parts of `BbDropdown`.
|
|
585
|
-
*
|
|
584
|
+
* Passthrough parts of `BbDropdown`. A group's
|
|
585
|
+
* items box and the dividers are not parts.
|
|
586
586
|
*
|
|
587
587
|
* Per-item functions: on the instance, an entry part (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`) and `submenu` (called with the entry that opens it) also accept `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the menu entry (an `Item`: its `label`, `value`, `description`, whatever else you put on it), every state a boolean beside it, on for it (`selected`, `disabled`, …), and the entry's `variant` as a string (`default` when it has none) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the entry as it was. See the passthrough guide, _Per-item functions_.
|
|
588
588
|
*
|
|
589
|
-
* @part root - The floating element
|
|
590
|
-
* `class` on the component lands here. No node on the phone sheet
|
|
591
|
-
*
|
|
589
|
+
* @part root - The floating element, an invisible positioning wrapper; a
|
|
590
|
+
* `class` on the component lands here. No node on the phone sheet (style
|
|
591
|
+
* `panel` there).
|
|
592
592
|
* @part panel - The menu surface you see — the bordered flyout box on
|
|
593
593
|
* desktop, the sheet itself on a phone.
|
|
594
|
-
* @part sheet - The bottom sheet the
|
|
595
|
-
*
|
|
594
|
+
* @part sheet - The phone's bottom sheet (the `BbOffCanvas` root), never the
|
|
595
|
+
* desktop surface; applied after `panel`, so it wins a conflict.
|
|
596
596
|
* @part header - The menu's header band.
|
|
597
597
|
* @part footer - The menu's footer band.
|
|
598
598
|
* @part box - Every searchable group's search box (field and magnifier),
|
|
599
599
|
* as `box` on a field; desktop and phone.
|
|
600
|
-
* @part input -
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
600
|
+
* @part input - Every searchable group's search field, desktop and phone
|
|
601
|
+
* alike. Its magnifier glyph is chrome.
|
|
602
|
+
* @part list - The top-level entries' container between the bands (a flex
|
|
603
|
+
* column, 1px gap; on a phone, the sheet's). A submenu's list is not
|
|
604
|
+
* reached.
|
|
605
|
+
* @part groupLabel - Every group's label row (its `label` and icons; the
|
|
606
|
+
* row an `onClick` group activates). `#<id>:label` replaces its content.
|
|
607
|
+
* @part groupHeader - Every `groupBy` heading (sticky). `#group` /
|
|
608
|
+
* `#<id>:group` replace its content.
|
|
607
609
|
* @part item - One menu entry, submenus included — a broadcast resolved per
|
|
608
610
|
* entry. Also takes a per-item function, called with the entry.
|
|
609
611
|
* @part itemText - An entry's label (its `label`) — resolved with that
|
|
@@ -611,17 +613,17 @@ export type MappedItem = InternalItem & {
|
|
|
611
613
|
* per-item function.
|
|
612
614
|
* @part itemIcon - An entry's prepend / append icons — resolved with that
|
|
613
615
|
* entry's states. Also takes a per-item function.
|
|
614
|
-
* @part itemDescription - An entry's muted second line (its `description`)
|
|
615
|
-
*
|
|
616
|
-
*
|
|
616
|
+
* @part itemDescription - An entry's muted second line (its `description`),
|
|
617
|
+
* with the entry's states. A per-entry `#<value>` slot replaces it. Also
|
|
618
|
+
* takes a per-item function.
|
|
617
619
|
* @part check - A checked entry's tick, outside the row slots:
|
|
618
620
|
* `pt:check="hidden"` spares your own glyph. Also takes a per-item function.
|
|
619
621
|
* @part submenu - Every submenu's flyout box (desktop only). Also takes a
|
|
620
622
|
* per-item function, called with the entry that opens it.
|
|
621
623
|
*/
|
|
622
|
-
export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
|
|
624
|
+
export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'groupLabel' | 'groupHeader' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
|
|
623
625
|
/** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
|
|
624
|
-
export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list';
|
|
626
|
+
export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'groupLabel' | 'groupHeader';
|
|
625
627
|
/** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
|
|
626
628
|
export type BbDropdownItemPtPart = 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check';
|
|
627
629
|
/**
|
|
@@ -634,8 +636,8 @@ export type BbDropdownItemFnPtPart = 'item' | 'itemText' | 'itemIcon' | 'itemDes
|
|
|
634
636
|
* (the link states: while the entry's `activeClass` / `exactActiveClass` are).
|
|
635
637
|
*
|
|
636
638
|
* @state activeLink - Per node, on the entry parts: an entry whose link
|
|
637
|
-
* (`to` / `href`)
|
|
638
|
-
*
|
|
639
|
+
* (`to` / `href`) is the current page or an ancestor (its `activeClass` is
|
|
640
|
+
* on). The weakest state.
|
|
639
641
|
* @state exactActiveLink - Per node, on the entry parts: an entry whose link
|
|
640
642
|
* points at the current page itself — its `exactActiveClass` is on.
|
|
641
643
|
* @state selected - Per node, on the entry parts: a selectable group's
|
|
@@ -653,7 +655,7 @@ export type BbDropdownEntryPtState = 'activeLink' | 'exactActiveLink' | 'selecte
|
|
|
653
655
|
export type BbDropdownPtKey = BbDropdownPtPart | `${BbDropdownPtPart}:open` | `${BbDropdownItemPtPart}:${BbDropdownEntryPtState}`;
|
|
654
656
|
/** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
|
|
655
657
|
export declare const BB_DROPDOWN_PT: {
|
|
656
|
-
readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "box", "input", "list", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
|
|
658
|
+
readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "box", "input", "list", "groupLabel", "groupHeader", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
|
|
657
659
|
readonly states: readonly ["activeLink", "exactActiveLink", "selected", "disabled", "open"];
|
|
658
660
|
/** On every part: what the resolver's `active` map turns on. */
|
|
659
661
|
readonly wide: readonly ["open"];
|
|
@@ -695,26 +697,24 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
695
697
|
*/
|
|
696
698
|
activator?: ElementOrComponentRef;
|
|
697
699
|
/**
|
|
698
|
-
* On mobile (below `config.mobileMaxWidth`),
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
* `all.adaptive`.
|
|
700
|
+
* On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet
|
|
701
|
+
* drilling into submenus a level at a time, not hover flyouts; slots and
|
|
702
|
+
* selection unchanged. Unset: the global `all.adaptive`.
|
|
702
703
|
*
|
|
703
704
|
* @defaultValue `all.adaptive` (`true`)
|
|
704
705
|
*/
|
|
705
706
|
adaptive?: boolean;
|
|
706
707
|
/**
|
|
707
|
-
* Whether a selection closes the menu. Unset: a
|
|
708
|
-
*
|
|
709
|
-
* open. `true`: every
|
|
708
|
+
* Whether a selection closes the menu. Unset: a single-choice group's
|
|
709
|
+
* change closes it (an untick too, any depth), a `multiple` group stays
|
|
710
|
+
* open. `true`: every change closes it; `false`: none.
|
|
710
711
|
*
|
|
711
712
|
* @defaultValue unset (close after a single-choice change)
|
|
712
713
|
*/
|
|
713
714
|
closeOnSelect?: boolean;
|
|
714
715
|
/**
|
|
715
|
-
* Compact density, the `BbSelect` ladder: flyout rows
|
|
716
|
-
*
|
|
717
|
-
* not change.
|
|
716
|
+
* Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows
|
|
717
|
+
* 44 → 36px (still a touch target). The label size stays.
|
|
718
718
|
*/
|
|
719
719
|
compact?: boolean;
|
|
720
720
|
/**
|
|
@@ -730,8 +730,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
730
730
|
/**
|
|
731
731
|
* Keeps the panel inside this element beside its trigger (sideways under a
|
|
732
732
|
* menu); away from it only the viewport flips it. An element, component ref
|
|
733
|
-
* or CSS selector (a `useTemplateRef`, not `$refs.x`).
|
|
734
|
-
*
|
|
733
|
+
* or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its
|
|
734
|
+
* left and right edges.
|
|
735
735
|
*/
|
|
736
736
|
boundary?: ElementOrComponentRef | string;
|
|
737
737
|
/**
|
|
@@ -739,9 +739,9 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
739
739
|
*/
|
|
740
740
|
disabled?: boolean;
|
|
741
741
|
/**
|
|
742
|
-
* Renders the
|
|
743
|
-
*
|
|
744
|
-
*
|
|
742
|
+
* Renders the panel (the phone sheet's too) at mount, not on the first
|
|
743
|
+
* open, and keeps its rows after a close; otherwise rows mount on each open
|
|
744
|
+
* and go after the close.
|
|
745
745
|
*/
|
|
746
746
|
eager?: boolean;
|
|
747
747
|
/**
|
|
@@ -811,18 +811,16 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
811
811
|
*/
|
|
812
812
|
queryDebounceTime?: number;
|
|
813
813
|
/**
|
|
814
|
-
* The open / close transition
|
|
815
|
-
*
|
|
816
|
-
*
|
|
814
|
+
* The open / close transition (ms). Menus take the fast 150, not the
|
|
815
|
+
* popovers' 250: a menu is picked from and gone, quicker than a panel you
|
|
816
|
+
* read or edit.
|
|
817
817
|
*
|
|
818
818
|
* @defaultValue `150`
|
|
819
819
|
*/
|
|
820
820
|
transitionDuration?: number;
|
|
821
821
|
/**
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
* - `'click'` — left-click / tap (default)
|
|
825
|
-
* - `'contextMenu'` — right-click on desktop, long-press on mobile
|
|
822
|
+
* What opens the menu, one or an array: `'click'` (left-click / tap) or
|
|
823
|
+
* `'contextMenu'` (right-click; long-press on mobile).
|
|
826
824
|
*
|
|
827
825
|
* @defaultValue `'click'`
|
|
828
826
|
*/
|
|
@@ -846,9 +844,9 @@ export type BbDropdownEvents = {
|
|
|
846
844
|
/** Emitted once the menu has finished closing. */
|
|
847
845
|
(e: 'hidden'): void;
|
|
848
846
|
/**
|
|
849
|
-
* The user selected a row in a selectable group, at the click
|
|
850
|
-
* controlled companion's app then refuses
|
|
851
|
-
*
|
|
847
|
+
* The user selected a row in a selectable group, at the click, even when a
|
|
848
|
+
* controlled companion's app then refuses it. Payload: the row's value
|
|
849
|
+
* (`item-value` for pipeline groups, else `value`).
|
|
852
850
|
*/
|
|
853
851
|
(e: 'item:selected', value: any): void;
|
|
854
852
|
/**
|
|
@@ -1015,9 +1013,9 @@ export type BbDropdownSlots = {
|
|
|
1015
1013
|
*/
|
|
1016
1014
|
loading?: (props: BbDropdownPlaceholderSlotProps) => any;
|
|
1017
1015
|
/**
|
|
1018
|
-
* Replaces the
|
|
1019
|
-
*
|
|
1020
|
-
*
|
|
1016
|
+
* Replaces the placeholder row of a pipeline group that resolved to no
|
|
1017
|
+
* items, once per empty group. A failed load is not empty: it keeps its
|
|
1018
|
+
* own row (error icon, `failedText`).
|
|
1021
1019
|
*/
|
|
1022
1020
|
empty?: (props: BbDropdownPlaceholderSlotProps) => any;
|
|
1023
1021
|
/**
|
|
@@ -1035,9 +1033,9 @@ export type BbDropdownSlots = {
|
|
|
1035
1033
|
*/
|
|
1036
1034
|
'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
|
|
1037
1035
|
/**
|
|
1038
|
-
* The trailing region of every row (and group
|
|
1039
|
-
* `append:icon` wherever it renders. A named slot wins;
|
|
1040
|
-
*
|
|
1036
|
+
* The trailing region of every row (and group label), replacing its
|
|
1037
|
+
* `append:icon` wherever it renders. A named slot wins; a submenu chevron
|
|
1038
|
+
* or a selected row's check takes its place.
|
|
1041
1039
|
*/
|
|
1042
1040
|
'item:append'?: (props: BbDropdownItemSlotProps) => any;
|
|
1043
1041
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FallthroughAttrs } from '../../types/fallthrough.js';
|
|
2
2
|
import { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots } from './types.js';
|
|
3
|
-
export type { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots, };
|
|
4
3
|
type __VLS_Props = BbDropdownButtonProps & FallthroughAttrs<'span' | 'button' | 'a', BbDropdownButtonProps, BbDropdownButtonEvents>;
|
|
5
4
|
type __VLS_Slots = BbDropdownButtonSlots;
|
|
5
|
+
export type { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots, };
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
7
|
"item:selected": (value: any) => any;
|
|
8
8
|
hide: () => any;
|