bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.75
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/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +11 -6
- package/dist/ai/BbDatePicker.md +12 -0
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +3 -1
- package/dist/ai/BbDropdown.md +155 -60
- package/dist/ai/BbDropdownButton.md +25 -6
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +17 -16
- package/dist/ai/BbTimePicker.md +12 -0
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +163 -6
- package/dist/ai/components.json +32 -34
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +22 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -0
- package/dist/ai/manifest/components/BbDropdown.json +20 -14
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +4 -0
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/source/BbAvatar.md +119 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +52 -54
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +18 -0
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +40 -1
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +211 -39
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +104 -38
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +72 -26
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +15 -0
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +213 -202
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +65 -41
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +573 -276
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +4 -1
- package/llms.txt +1 -1
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/validate-bb-markup.mjs +20 -0
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -2,34 +2,35 @@ import { useConfigDefaults as e } from "../../composables/useConfigDefaults.js";
|
|
|
2
2
|
import { vAutofocus as t } from "../../utilities/misc/autofocus.js";
|
|
3
3
|
import n from "../CommonField/CommonField.vue.js";
|
|
4
4
|
import r from "../OptionsContainer/OptionsContainer.vue.js";
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
5
|
+
import { runRetry as i } from "../../utils/loadRetry.js";
|
|
6
|
+
import a from "../BbBaseRadioIcon/BbBaseRadioIcon.vue.js";
|
|
7
|
+
import { aliasParts as o, formControlPtActive as s, pickActive as c, usePassthrough as l, variantPt as u } from "../../composables/usePassthrough.js";
|
|
8
|
+
import { useId as d } from "../../composables/useId.js";
|
|
9
|
+
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
10
|
+
import { isNotEmpty as te } from "../../utilities/functions/isNotEmpty.js";
|
|
11
|
+
import { withItemDescribedby as ne } from "../../utilities/functions/itemProps.js";
|
|
12
|
+
import { hash as re } from "../../utilities/functions/hash.js";
|
|
13
|
+
import { createClickCount as ie } from "../../utilities/functions/clickCount.js";
|
|
14
|
+
import { preventReadonlyClick as ae, preventReadonlyKeydown as oe, revertReadonlyChange as se, toggleInputAttrs as ce, toggleInputValue as le } from "../../utilities/functions/toggleInput.js";
|
|
15
|
+
import { useToggleListFocus as ue } from "../../composables/useToggleInput.js";
|
|
16
|
+
import { useChoiceIndicator as de } from "../../composables/useChoiceIndicator.js";
|
|
17
|
+
import { useItemsGetter as fe } from "../../composables/useItemsGetter.js";
|
|
18
|
+
import { usePrefill as pe } from "../../composables/usePrefill.js";
|
|
18
19
|
import { useIndexById as f } from "../../composables/useIndexById.js";
|
|
19
|
-
import { useBaseOptions as
|
|
20
|
-
import { useCoherence as
|
|
20
|
+
import { useBaseOptions as me } from "../../composables/useBaseOptions.js";
|
|
21
|
+
import { useCoherence as he } from "../../composables/useCoherence.js";
|
|
21
22
|
import { useHashedWatcher as p } from "../../composables/useHashedWatcher.js";
|
|
22
|
-
import { useActiveInactiveState as
|
|
23
|
-
import { useOnFalsy as
|
|
24
|
-
import { useOnTruthy as
|
|
25
|
-
import { removedPropsFor as
|
|
26
|
-
import { warnRemovedAttrs as
|
|
23
|
+
import { useActiveInactiveState as ge } from "../../composables/useActiveInactiveState.js";
|
|
24
|
+
import { useOnFalsy as _e } from "../../composables/useOnFalsy.js";
|
|
25
|
+
import { useOnTruthy as ve } from "../../composables/useOnTruthy.js";
|
|
26
|
+
import { removedPropsFor as ye } from "../../deprecation/removedProps.js";
|
|
27
|
+
import { warnRemovedAttrs as be } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
27
28
|
import { BB_RADIO_GROUP_PT as m } from "./types.js";
|
|
28
|
-
import { useFormBinding as
|
|
29
|
-
import { Fragment as
|
|
29
|
+
import { useFormBinding as xe } from "../../composables/useFormBinding.js";
|
|
30
|
+
import { Fragment as Se, computed as h, createBlock as Ce, createCommentVNode as we, createElementBlock as g, createElementVNode as Te, createSlots as Ee, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as x, normalizeProps as S, openBlock as C, ref as De, renderList as Oe, renderSlot as w, shallowRef as ke, toDisplayString as Ae, toRef as T, unref as E, useAttrs as je, useSlots as Me, withCtx as D, withDirectives as Ne } from "vue";
|
|
30
31
|
// src/components/BbRadioGroup/BbRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
31
|
-
var
|
|
32
|
-
mixins: [
|
|
32
|
+
var Pe = ["id"], O = /*@__PURE__*/ v({
|
|
33
|
+
mixins: [u(m)],
|
|
33
34
|
inheritAttrs: !1,
|
|
34
35
|
__name: "BbRadioGroup",
|
|
35
36
|
props: {
|
|
@@ -234,67 +235,69 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
234
235
|
"mouseup",
|
|
235
236
|
"update:modelValue"
|
|
236
237
|
],
|
|
237
|
-
setup(
|
|
238
|
-
let O =
|
|
238
|
+
setup(u, { emit: v }) {
|
|
239
|
+
let O = u, Fe = v, Ie = Me(), k = e("BbRadioGroup", O, {
|
|
239
240
|
inputPosition: "start",
|
|
240
241
|
compact: !1,
|
|
241
242
|
itemReverse: !1,
|
|
242
243
|
reverse: !1,
|
|
243
244
|
block: !1
|
|
244
|
-
}), { props: A, emit: j, showAsterisk:
|
|
245
|
+
}), { props: A, emit: j, showAsterisk: Le, errors: Re, ariaRequired: ze, readonly: M } = xe(O, Fe, {
|
|
245
246
|
componentName: "BbRadioGroup",
|
|
246
247
|
identifierFallback: () => O.legend,
|
|
247
248
|
leaveOn: "inactive"
|
|
248
|
-
}), N = () => !!A.legend || !!
|
|
249
|
-
process.env.NODE_ENV !== "production" &&
|
|
250
|
-
let
|
|
249
|
+
}), N = () => !!A.legend || !!Ie.legend;
|
|
250
|
+
process.env.NODE_ENV !== "production" && be("BbRadioGroup", ye("BbRadioGroup"));
|
|
251
|
+
let Be = d().id, P = h(() => A.name || Be.value), { t: Ve } = ee(), F = d().id, He = Ve("radioGroup.clearHint"), I = h(() => A.clearable && !A.disabled && !A.readonly), Ue = [], L = h(() => A.items === void 0 ? Ue : A.items), R = ke(null), We = (e) => {
|
|
251
252
|
R.value = e?.$el ?? null;
|
|
252
|
-
}, { active: z } =
|
|
253
|
-
|
|
253
|
+
}, { active: z } = ge(R), B = De(!1), Ge = h(() => A.persistentHint || B.value);
|
|
254
|
+
_e(z, () => {
|
|
254
255
|
B.value = !1, j("inactive");
|
|
255
|
-
}),
|
|
256
|
+
}), ve(z, () => {
|
|
256
257
|
B.value = !0, j("active");
|
|
257
258
|
});
|
|
258
|
-
let { getter: V, clientReproducible:
|
|
259
|
+
let { getter: V, clientReproducible: Ke, hydratedFromSsr: qe, items: Je, loading: H, error: Ye, retry: Xe, ssrMarker: Ze } = fe({
|
|
259
260
|
items: L,
|
|
260
261
|
marker: !0
|
|
261
262
|
}), U = () => {
|
|
262
263
|
A.enforceCoherence && !K.value && j("update:modelValue", null);
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
}, Qe = async () => {
|
|
265
|
+
await Xe() === "applied" && U();
|
|
266
|
+
}, { hasPrefilled: W, whenPrefilled: $e } = pe({
|
|
267
|
+
alreadyLoaded: qe,
|
|
268
|
+
clientReproducible: Ke,
|
|
266
269
|
trigger: !0,
|
|
267
270
|
currentValue: A.modelValue,
|
|
268
271
|
multiple: !1,
|
|
269
272
|
fn: async () => {
|
|
270
273
|
await V(void 0, "initial", A.modelValue) === "applied" && U();
|
|
271
274
|
}
|
|
272
|
-
}), { data:
|
|
275
|
+
}), { data: et } = f({ items: h(() => [A.modelValue]) }), { options: G } = me({
|
|
273
276
|
disabled: T(() => A.disabled),
|
|
274
|
-
items:
|
|
277
|
+
items: Je,
|
|
275
278
|
itemText: A.itemText,
|
|
276
279
|
itemProps: T(() => A.itemProps),
|
|
277
280
|
itemValue: A.itemValue,
|
|
278
281
|
optionDefaults: !0,
|
|
279
282
|
max: Infinity,
|
|
280
283
|
selectable: T(() => A.selectable),
|
|
281
|
-
selectedIndexedByHash:
|
|
282
|
-
}), { data:
|
|
284
|
+
selectedIndexedByHash: et
|
|
285
|
+
}), { data: tt } = f({
|
|
283
286
|
items: G,
|
|
284
287
|
key: "valueHash"
|
|
285
|
-
}), { coherent: K } =
|
|
288
|
+
}), { coherent: K } = he({
|
|
286
289
|
modelValue: T(() => A.modelValue),
|
|
287
290
|
multiple: !1,
|
|
288
|
-
iteratee: (e) => !!
|
|
291
|
+
iteratee: (e) => !!tt.value[re(e)]
|
|
289
292
|
}), q = 0;
|
|
290
293
|
p(() => A.modelValue, async () => {
|
|
291
294
|
q++, K.value || await V(void 0, "model", A.modelValue) === "applied" && U(), q--;
|
|
292
295
|
}, { debounce: A.modelValueDebounceTime === void 0 ? 0 : A.modelValueDebounceTime }), p(() => [A.dependencies, L.value], async () => {
|
|
293
|
-
W.value || await
|
|
296
|
+
W.value || await $e(), W.value && (q++, await V(void 0, "dependencies", A.modelValue) === "applied" && q === 1 && U(), q--);
|
|
294
297
|
}, { debounce: A.depsDebounceTime === void 0 ? 0 : A.depsDebounceTime });
|
|
295
|
-
let J = h(() =>
|
|
298
|
+
let J = h(() => te(A.modelValue)), Y = l({
|
|
296
299
|
component: "BbRadioGroup",
|
|
297
|
-
attrs:
|
|
300
|
+
attrs: je(),
|
|
298
301
|
props: A,
|
|
299
302
|
parts: m.parts,
|
|
300
303
|
states: m.states,
|
|
@@ -303,7 +306,7 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
303
306
|
current: () => A.variant
|
|
304
307
|
},
|
|
305
308
|
active: {
|
|
306
|
-
...s(
|
|
309
|
+
...c(s(A, () => J.value), [
|
|
307
310
|
"errors",
|
|
308
311
|
"warnings",
|
|
309
312
|
"disabled",
|
|
@@ -312,55 +315,55 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
312
315
|
]),
|
|
313
316
|
loading: () => H.value
|
|
314
317
|
}
|
|
315
|
-
}),
|
|
318
|
+
}), nt = h(() => k.listLayout === "vertical"), { boxes: rt, ready: it, styleOf: at } = de({
|
|
316
319
|
kind: "radio",
|
|
317
320
|
variant: () => A.variant,
|
|
318
|
-
vertical: () =>
|
|
321
|
+
vertical: () => nt.value,
|
|
319
322
|
list: () => R.value,
|
|
320
323
|
rows: () => G.value,
|
|
321
324
|
rowClass: "bb-radio-group__item"
|
|
322
|
-
}),
|
|
325
|
+
}), ot = o(Y, { label: "legend" }), X = ue(), Z = (e, t) => [t, e.valueHash].filter(Boolean).join("-"), st = (e, t) => t ? Z(e, t) : void 0, Q = () => {
|
|
323
326
|
let e = R.value?.querySelectorAll("input[type=\"radio\"]") ?? [];
|
|
324
327
|
e.length === G.value.length && G.value.forEach((t, n) => {
|
|
325
328
|
e[n].checked = !!t.selected;
|
|
326
329
|
});
|
|
327
|
-
},
|
|
330
|
+
}, ct = ie(), $ = (e) => !A.clearable || A.readonly || e.disabled || !e.selected ? !1 : (j("update:modelValue", null), x(Q), !0), lt = (e) => ({
|
|
328
331
|
onBlur: (t) => {
|
|
329
332
|
X.onBlur(e.valueHash), j("blur", t);
|
|
330
333
|
},
|
|
331
334
|
onChange: (t) => {
|
|
332
|
-
A.readonly ? t.target instanceof HTMLInputElement &&
|
|
335
|
+
A.readonly ? t.target instanceof HTMLInputElement && se(t.target, A.readonly, !!e.selected) : (j("change", t), j("update:modelValue", e.value), x(Q));
|
|
333
336
|
},
|
|
334
337
|
onClick: (t) => {
|
|
335
|
-
|
|
338
|
+
ae(t, A.readonly), j("click", t), ct.count(t) <= 1 && $(e);
|
|
336
339
|
},
|
|
337
340
|
onFocus: (t) => {
|
|
338
341
|
X.onFocus(e.valueHash, t), B.value = !0, j("focus", t);
|
|
339
342
|
},
|
|
340
343
|
onInput: (e) => j("input", e),
|
|
341
344
|
onKeydown: (e) => {
|
|
342
|
-
|
|
345
|
+
oe(e, A.readonly), j("keydown", e);
|
|
343
346
|
},
|
|
344
347
|
onKeyup: (t) => {
|
|
345
|
-
t.key === " " &&
|
|
348
|
+
t.key === " " && $(e) && t.preventDefault();
|
|
346
349
|
},
|
|
347
350
|
onMousedown: (e) => j("mousedown", e),
|
|
348
351
|
onMouseup: (e) => j("mouseup", e)
|
|
349
|
-
}),
|
|
350
|
-
...
|
|
351
|
-
ariaDescribedby: [
|
|
352
|
+
}), ut = (e, t, n, r, i, a) => ({
|
|
353
|
+
...ce("radio", {
|
|
354
|
+
ariaDescribedby: [ne(r, a), I.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
352
355
|
ariaLabelledby: i,
|
|
353
356
|
autofocus: A.autofocus && !t,
|
|
354
357
|
checked: !!e.selected,
|
|
355
358
|
disabled: e.disabled,
|
|
356
|
-
id:
|
|
359
|
+
id: st(e, n),
|
|
357
360
|
name: P.value,
|
|
358
361
|
readonly: A.readonly,
|
|
359
362
|
required: A.required,
|
|
360
363
|
value: e.value
|
|
361
364
|
}),
|
|
362
|
-
...
|
|
363
|
-
}),
|
|
365
|
+
...lt(e)
|
|
366
|
+
}), dt = (e, t, n, r) => ({
|
|
364
367
|
checked: !!e.selected,
|
|
365
368
|
disabled: !!e.disabled,
|
|
366
369
|
focused: X.focused(e.valueHash),
|
|
@@ -369,96 +372,97 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
369
372
|
hasWarnings: !!r && !n,
|
|
370
373
|
id: Z(e, t),
|
|
371
374
|
name: P.value,
|
|
372
|
-
parsedValue:
|
|
375
|
+
parsedValue: le("radio", e.value),
|
|
373
376
|
readonly: !!A.readonly,
|
|
374
377
|
value: e.value
|
|
375
378
|
});
|
|
376
|
-
return (e,
|
|
377
|
-
id:
|
|
379
|
+
return (e, o) => (C(), Ce(n, b({
|
|
380
|
+
id: u.id,
|
|
378
381
|
class: "bb-radio-group",
|
|
379
382
|
compact: E(k).compact,
|
|
380
|
-
description:
|
|
381
|
-
disabled:
|
|
382
|
-
errors: E(
|
|
383
|
-
"has-errors":
|
|
383
|
+
description: u.description,
|
|
384
|
+
disabled: u.disabled,
|
|
385
|
+
errors: E(Re),
|
|
386
|
+
"has-errors": u.hasErrors,
|
|
384
387
|
"has-value": J.value,
|
|
385
|
-
"has-warnings":
|
|
386
|
-
"hide-label":
|
|
387
|
-
hint:
|
|
388
|
-
"input-align":
|
|
388
|
+
"has-warnings": u.hasWarnings,
|
|
389
|
+
"hide-label": u.hideLegend,
|
|
390
|
+
hint: u.hint,
|
|
391
|
+
"input-align": u.inputAlign,
|
|
389
392
|
"input-position": E(k).inputPosition,
|
|
390
|
-
label:
|
|
391
|
-
"label-align":
|
|
392
|
-
"label-mode":
|
|
393
|
-
"label-position":
|
|
393
|
+
label: u.legend,
|
|
394
|
+
"label-align": u.labelAlign,
|
|
395
|
+
"label-mode": u.legendMode,
|
|
396
|
+
"label-position": u.legendPosition,
|
|
394
397
|
"label-tag": "legend",
|
|
395
398
|
layout: E(k).layout,
|
|
396
399
|
loading: E(H),
|
|
397
400
|
name: P.value,
|
|
398
|
-
passthrough: E(
|
|
401
|
+
passthrough: E(ot),
|
|
399
402
|
readonly: E(M),
|
|
400
403
|
reverse: E(k).reverse,
|
|
401
|
-
"show-asterisk": E(
|
|
402
|
-
"show-hint":
|
|
403
|
-
"ssr-marker": E(
|
|
404
|
+
"show-asterisk": E(Le),
|
|
405
|
+
"show-hint": Ge.value,
|
|
406
|
+
"ssr-marker": E(Ze),
|
|
404
407
|
tag: "fieldset",
|
|
405
|
-
warnings:
|
|
406
|
-
}, E(Y).forwardAttrs),
|
|
408
|
+
warnings: u.warnings
|
|
409
|
+
}, E(Y).forwardAttrs), Ee({
|
|
407
410
|
label: D((t) => [w(e.$slots, "legend", S(y(t)))]),
|
|
408
|
-
input: D(({ id: n, hasErrors:
|
|
409
|
-
ref:
|
|
411
|
+
input: D(({ id: n, hasErrors: s, hasWarnings: c, ariaDescribedby: l }) => [_(r, {
|
|
412
|
+
ref: We,
|
|
410
413
|
"aria-labelledby": N() ? `${n}__label` : void 0,
|
|
411
414
|
"aria-readonly": N() && E(M) ? !0 : void 0,
|
|
412
|
-
"aria-required": N() ? E(
|
|
415
|
+
"aria-required": N() ? E(ze) : void 0,
|
|
413
416
|
block: "bb-radio-group",
|
|
414
|
-
"empty-text":
|
|
415
|
-
error: E(
|
|
416
|
-
"failed-text":
|
|
417
|
-
"has-errors":
|
|
418
|
-
"has-warnings":
|
|
419
|
-
"hide-label":
|
|
420
|
-
"indicator-ready": E(
|
|
421
|
-
"item-input-align":
|
|
422
|
-
"item-label-align":
|
|
417
|
+
"empty-text": u.emptyText,
|
|
418
|
+
error: E(Ye),
|
|
419
|
+
"failed-text": u.failedText,
|
|
420
|
+
"has-errors": s,
|
|
421
|
+
"has-warnings": c,
|
|
422
|
+
"hide-label": u.hideLabel,
|
|
423
|
+
"indicator-ready": E(it),
|
|
424
|
+
"item-input-align": u.itemInputAlign,
|
|
425
|
+
"item-label-align": u.itemLabelAlign,
|
|
423
426
|
"item-layout": E(k).itemLayout,
|
|
424
427
|
"item-reverse": E(k).itemReverse,
|
|
425
428
|
"list-block": E(k).block,
|
|
426
429
|
"list-layout": E(k).listLayout,
|
|
427
430
|
loading: !!E(H),
|
|
428
|
-
"loading-text":
|
|
431
|
+
"loading-text": u.loadingText,
|
|
429
432
|
options: E(G),
|
|
430
433
|
passthrough: E(Y),
|
|
431
434
|
role: N() ? "radiogroup" : void 0,
|
|
432
|
-
variant:
|
|
433
|
-
onMousedownCapture: E(
|
|
435
|
+
variant: u.variant,
|
|
436
|
+
onMousedownCapture: E(ct).onPress,
|
|
437
|
+
onRetry: o[0] ||= (e) => E(i)(e, Qe, () => R.value)
|
|
434
438
|
}, {
|
|
435
439
|
prepend: D(() => [
|
|
436
|
-
(C(!0), g(
|
|
440
|
+
(C(!0), g(Se, null, Oe(E(rt), (e) => (C(), g("span", b({
|
|
437
441
|
key: e.key,
|
|
438
442
|
"aria-hidden": "true",
|
|
439
443
|
class: "bb-radio-group__indicator",
|
|
440
|
-
style: E(
|
|
444
|
+
style: E(at)(e)
|
|
441
445
|
}, { ref_for: !0 }, E(Y).indicator), null, 16))), 128)),
|
|
442
446
|
I.value ? (C(), g("span", {
|
|
443
447
|
key: 0,
|
|
444
448
|
id: E(F),
|
|
445
449
|
hidden: ""
|
|
446
|
-
},
|
|
450
|
+
}, Ae(E(He)), 9, Pe)) : we("", !0),
|
|
447
451
|
w(e.$slots, "prepend")
|
|
448
452
|
]),
|
|
449
453
|
loading: D(() => [w(e.$slots, "loading")]),
|
|
450
454
|
empty: D((t) => [w(e.$slots, "empty", S(y(t)))]),
|
|
451
455
|
label: D((t) => [w(e.$slots, "label", S(y(t)))]),
|
|
452
|
-
input: D(({ option: r, index:
|
|
456
|
+
input: D(({ option: r, index: i, labelId: o, descriptionId: u, rowStates: d }) => [Ne(Te("input", S(y(ut(r, i, n, l, o, u))), null, 16), [[E(t)]]), w(e.$slots, "icon", b({
|
|
453
457
|
item: r.item,
|
|
454
458
|
text: r.text
|
|
455
|
-
},
|
|
459
|
+
}, dt(r, n, s, c)), () => [_(a, b({
|
|
456
460
|
checked: !!r.selected,
|
|
457
461
|
disabled: !!r.disabled,
|
|
458
462
|
"focus-visible": E(X).focusVisible(r.valueHash),
|
|
459
463
|
focused: E(X).focused(r.valueHash),
|
|
460
|
-
"has-errors": !!
|
|
461
|
-
"has-warnings": !!
|
|
464
|
+
"has-errors": !!s,
|
|
465
|
+
"has-warnings": !!c && !s,
|
|
462
466
|
readonly: !!E(M)
|
|
463
467
|
}, E(Y).part("icon", d, r.item)), null, 16, [
|
|
464
468
|
"checked",
|
|
@@ -161,7 +161,7 @@ export type BbRadioGroupProps<T> = BbRadioGroupPtProps & {
|
|
|
161
161
|
* The options: an array, or a provider called with a
|
|
162
162
|
* `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or
|
|
163
163
|
* async. A provider fails by THROWING, never by returning `[]`: the rows
|
|
164
|
-
* clear and
|
|
164
|
+
* clear and the failure row shows `failed-text` with "Try again".
|
|
165
165
|
*/
|
|
166
166
|
items: T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>);
|
|
167
167
|
/**
|
|
@@ -422,13 +422,10 @@ export type BbRadioGroupSlots<T> = {
|
|
|
422
422
|
loading?: (props: object) => any;
|
|
423
423
|
/**
|
|
424
424
|
* Content shown when no options are available (replaces the default "no
|
|
425
|
-
* data" text).
|
|
426
|
-
*
|
|
427
|
-
* rows, so this slot is where it shows.
|
|
425
|
+
* data" text). Empty only: a failed load shows the library's failure row
|
|
426
|
+
* instead (its message is `failed-text`, and it ends with "Try again").
|
|
428
427
|
*/
|
|
429
|
-
empty?: (props:
|
|
430
|
-
error: unknown;
|
|
431
|
-
}) => any;
|
|
428
|
+
empty?: (props: object) => any;
|
|
432
429
|
/**
|
|
433
430
|
* Replaces the default radio dot icon for each option. Receives the radio
|
|
434
431
|
* state plus the source item and its display text.
|
|
@@ -36,6 +36,7 @@ declare const __VLS_export: <const T = any, Known extends BbSelectKnownItems | u
|
|
|
36
36
|
"pt:badge"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<T>, import('./types.js').BbSelectPtState, never, BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<T>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
|
|
37
37
|
"pt:comma"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<T>, import('./types.js').BbSelectPtState, never, BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<T>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
|
|
38
38
|
} & {
|
|
39
|
+
open?: boolean;
|
|
39
40
|
pt?: ({
|
|
40
41
|
label?: import('../../types/passthrough.js').PtValue | undefined;
|
|
41
42
|
root?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -343,7 +344,7 @@ declare const __VLS_export: <const T = any, Known extends BbSelectKnownItems | u
|
|
|
343
344
|
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
344
345
|
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
345
346
|
multiple?: MultipleInput<M>;
|
|
346
|
-
} & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt" | "onClick" | "variant" | "prepend:icon" | "append:icon" | "dependencies" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "disableWriting" | "queryDebounceTime" | "comma" | keyof import('./ptKeys.generated.js').BbSelectPtKeys | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "maxSelectedLabels" | "minQueryLength" | "prefill" | "selectedLabelsFn" | "stash" | "onFocus" | "onBlur" | "onChange" | "onInput"> & {} & ControlAttrs<"input", "form">) & {
|
|
347
|
+
} & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "open" | "loading" | "description" | "hint" | "pt" | "onClick" | "variant" | "prepend:icon" | "append:icon" | "dependencies" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "disableWriting" | "queryDebounceTime" | "comma" | keyof import('./ptKeys.generated.js').BbSelectPtKeys | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "maxSelectedLabels" | "minQueryLength" | "prefill" | "selectedLabelsFn" | "stash" | "onFocus" | "onBlur" | "onChange" | "onInput"> & {} & ControlAttrs<"input", "form">) & {
|
|
347
348
|
onActive?: (() => any) | undefined;
|
|
348
349
|
onInput?: ((event: Event) => any) | undefined;
|
|
349
350
|
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
|
|
@@ -356,6 +357,7 @@ declare const __VLS_export: <const T = any, Known extends BbSelectKnownItems | u
|
|
|
356
357
|
onShow?: (() => any) | undefined;
|
|
357
358
|
onShown?: (() => any) | undefined;
|
|
358
359
|
onHidden?: (() => any) | undefined;
|
|
360
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
359
361
|
"onOption:add"?: ((text: string) => any) | undefined;
|
|
360
362
|
}> & (typeof globalThis extends {
|
|
361
363
|
__VLS_PROPS_FALLBACK: infer P;
|