bitboss-ui 3.0.0-beta.74 → 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/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- 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 +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- 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-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-icon.md +4 -4
- 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 +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- 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 +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
- 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 +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- 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 +9 -1
- 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 +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -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/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 +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- 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/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- 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/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- 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.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -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 +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- 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/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- 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 +208 -196
- 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 +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -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 +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- 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 +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -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/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/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- 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 +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- 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 +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- 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 +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- 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/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/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- 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 +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- 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/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- 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.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { vAutofocus as e } from "../../utilities/misc/autofocus.js";
|
|
2
2
|
import t from "../CommonField/CommonField.vue.js";
|
|
3
3
|
import n from "../OptionsContainer/OptionsContainer.vue.js";
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { runRetry as r } from "../../utils/loadRetry.js";
|
|
5
|
+
import i from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
|
|
6
|
+
import { aliasParts as a, formControlPtActive as o, pickActive as s, usePassthrough as c } from "../../composables/usePassthrough.js";
|
|
7
|
+
import { isNotEmpty as l } from "../../utilities/functions/isNotEmpty.js";
|
|
8
|
+
import { withItemDescribedby as u } from "../../utilities/functions/itemProps.js";
|
|
9
|
+
import { hash as d } from "../../utilities/functions/hash.js";
|
|
10
|
+
import { preventReadonlyClick as ee, preventReadonlyKeydown as te, revertReadonlyChange as ne, syncCheckedToData as f, syncIndeterminate as p, toggleInputAttrs as re, toggleInputValue as ie } from "../../utilities/functions/toggleInput.js";
|
|
10
11
|
import { useToggleListFocus as ae } from "../../composables/useToggleInput.js";
|
|
11
12
|
import { useItemsGetter as oe } from "../../composables/useItemsGetter.js";
|
|
12
|
-
import { useIndexById as
|
|
13
|
+
import { useIndexById as m } from "../../composables/useIndexById.js";
|
|
13
14
|
import { useBaseOptions as se } from "../../composables/useBaseOptions.js";
|
|
14
15
|
import { useCoherence as ce } from "../../composables/useCoherence.js";
|
|
15
|
-
import { useHashedWatcher as
|
|
16
|
-
import { usePrefill as
|
|
17
|
-
import { useLogger as
|
|
18
|
-
import { useActiveInactiveState as
|
|
19
|
-
import { useOnFalsy as
|
|
20
|
-
import { useOnTruthy as
|
|
16
|
+
import { useHashedWatcher as h } from "../../composables/useHashedWatcher.js";
|
|
17
|
+
import { usePrefill as g } from "../../composables/usePrefill.js";
|
|
18
|
+
import { useLogger as le } from "../../composables/useLogger.js";
|
|
19
|
+
import { useActiveInactiveState as ue } from "../../composables/useActiveInactiveState.js";
|
|
20
|
+
import { useOnFalsy as de } from "../../composables/useOnFalsy.js";
|
|
21
|
+
import { useOnTruthy as _ } from "../../composables/useOnTruthy.js";
|
|
21
22
|
import { removedPropsFor as fe } from "../../deprecation/removedProps.js";
|
|
22
23
|
import { warnRemovedAttrs as pe } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
23
|
-
import { BB_SWITCH_GROUP_PT as
|
|
24
|
+
import { BB_SWITCH_GROUP_PT as v } from "./types.js";
|
|
24
25
|
import { useFormBinding as me } from "../../composables/useFormBinding.js";
|
|
25
26
|
import { useConfigDefaults as he } from "../../composables/useConfigDefaults.js";
|
|
26
|
-
import { computed as
|
|
27
|
+
import { computed as y, createBlock as ge, createElementVNode as _e, createSlots as ve, createVNode as b, defineComponent as x, guardReactiveProps as S, mergeProps as C, normalizeProps as w, onBeforeMount as ye, openBlock as be, ref as xe, renderSlot as T, shallowRef as Se, toRef as E, unref as D, useAttrs as Ce, withCtx as O, withDirectives as k } from "vue";
|
|
27
28
|
// src/components/BbSwitchGroup/BbSwitchGroup.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
-
var
|
|
29
|
+
var A = /*@__PURE__*/ x({
|
|
29
30
|
inheritAttrs: !1,
|
|
30
31
|
__name: "BbSwitchGroup",
|
|
31
32
|
props: {
|
|
@@ -192,140 +193,142 @@ var k = /*@__PURE__*/ b({
|
|
|
192
193
|
"mouseup",
|
|
193
194
|
"update:modelValue"
|
|
194
195
|
],
|
|
195
|
-
setup(
|
|
196
|
-
let
|
|
196
|
+
setup(x, { emit: A }) {
|
|
197
|
+
let j = x, we = A, M = he("BbSwitchGroup", j, {
|
|
197
198
|
inputPosition: "start",
|
|
198
199
|
compact: !1,
|
|
199
200
|
itemReverse: !1,
|
|
200
201
|
reverse: !1,
|
|
201
202
|
block: !1
|
|
202
|
-
}), { props:
|
|
203
|
+
}), { props: N, emit: P, showAsterisk: Te, errors: Ee, readonly: F } = me(j, we, {
|
|
203
204
|
componentName: "BbSwitchGroup",
|
|
204
|
-
identifierFallback: () =>
|
|
205
|
+
identifierFallback: () => j.legend,
|
|
205
206
|
emptyValue: () => [],
|
|
206
207
|
leaveOn: "inactive"
|
|
207
208
|
});
|
|
208
209
|
process.env.NODE_ENV !== "production" && pe("BbSwitchGroup", fe("BbSwitchGroup"));
|
|
209
|
-
let De =
|
|
210
|
+
let De = le();
|
|
210
211
|
ye(() => {
|
|
211
|
-
|
|
212
|
+
N.multiple && !Array.isArray(N.modelValue) && De.throw("BbSwitchGroup: multiple is set to \"true\" but modelValue is not an array.");
|
|
212
213
|
});
|
|
213
|
-
let Oe = [],
|
|
214
|
-
|
|
215
|
-
}, { active:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}),
|
|
219
|
-
|
|
214
|
+
let Oe = [], I = y(() => N.items === void 0 ? Oe : N.items), L = Se(null), ke = (e) => {
|
|
215
|
+
L.value = e?.$el ?? null;
|
|
216
|
+
}, { active: R } = ue(L), z = xe(!1), Ae = y(() => N.persistentHint || z.value);
|
|
217
|
+
de(R, () => {
|
|
218
|
+
z.value = !1, P("inactive");
|
|
219
|
+
}), _(R, () => {
|
|
220
|
+
z.value = !0, P("active");
|
|
220
221
|
});
|
|
221
|
-
let { getter:
|
|
222
|
-
items:
|
|
222
|
+
let { getter: B, clientReproducible: je, hydratedFromSsr: Me, items: Ne, loading: V, error: Pe, retry: Fe, ssrMarker: Ie } = oe({
|
|
223
|
+
items: I,
|
|
223
224
|
marker: !0
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
},
|
|
225
|
+
}), H = () => {
|
|
226
|
+
N.enforceCoherence && !q.value && P("update:modelValue", He.value);
|
|
227
|
+
}, Le = async () => {
|
|
228
|
+
await Fe() === "applied" && H();
|
|
229
|
+
}, { hasPrefilled: U, whenPrefilled: Re } = g({
|
|
227
230
|
alreadyLoaded: Me,
|
|
228
231
|
clientReproducible: je,
|
|
229
232
|
trigger: !0,
|
|
230
|
-
currentValue:
|
|
231
|
-
multiple: !!
|
|
233
|
+
currentValue: N.modelValue,
|
|
234
|
+
multiple: !!N.multiple,
|
|
232
235
|
fn: async () => {
|
|
233
|
-
await
|
|
236
|
+
await B(void 0, "initial", N.modelValue) === "applied" && H();
|
|
234
237
|
}
|
|
235
|
-
}),
|
|
236
|
-
disabled:
|
|
238
|
+
}), W = y(() => N.multiple ? [].concat(N.modelValue) : [N.modelValue]), { data: G } = m({ items: W }), { options: K } = se({
|
|
239
|
+
disabled: E(() => N.disabled),
|
|
237
240
|
items: Ne,
|
|
238
|
-
itemText:
|
|
239
|
-
itemProps:
|
|
240
|
-
itemValue:
|
|
241
|
+
itemText: N.itemText,
|
|
242
|
+
itemProps: E(() => N.itemProps),
|
|
243
|
+
itemValue: N.itemValue,
|
|
241
244
|
optionDefaults: !0,
|
|
242
|
-
max:
|
|
243
|
-
selectable:
|
|
244
|
-
selectedIndexedByHash:
|
|
245
|
-
}),
|
|
246
|
-
|
|
247
|
-
},
|
|
248
|
-
if (!
|
|
249
|
-
|
|
245
|
+
max: E(() => N.max),
|
|
246
|
+
selectable: E(() => N.selectable),
|
|
247
|
+
selectedIndexedByHash: G
|
|
248
|
+
}), ze = (e) => {
|
|
249
|
+
N.multiple ? P("update:modelValue", [...W.value, e.value]) : P("update:modelValue", e.value);
|
|
250
|
+
}, Be = (e) => {
|
|
251
|
+
if (!N.multiple) {
|
|
252
|
+
P("update:modelValue", null);
|
|
250
253
|
return;
|
|
251
254
|
}
|
|
252
|
-
let t = { ...
|
|
253
|
-
delete t[e.valueHash],
|
|
254
|
-
}, { data:
|
|
255
|
-
items:
|
|
255
|
+
let t = { ...G.value };
|
|
256
|
+
delete t[e.valueHash], P("update:modelValue", Object.values(t));
|
|
257
|
+
}, { data: Ve } = m({
|
|
258
|
+
items: K,
|
|
256
259
|
key: "valueHash"
|
|
257
|
-
}), { coherent:
|
|
258
|
-
modelValue:
|
|
259
|
-
multiple: !!
|
|
260
|
-
iteratee: (e) => !!
|
|
261
|
-
}),
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}, { debounce:
|
|
265
|
-
|
|
266
|
-
}, { debounce:
|
|
267
|
-
let
|
|
260
|
+
}), { coherent: q, coherentValue: He } = ce({
|
|
261
|
+
modelValue: E(() => N.modelValue),
|
|
262
|
+
multiple: !!N.multiple,
|
|
263
|
+
iteratee: (e) => !!Ve.value[d(e)]
|
|
264
|
+
}), J = 0;
|
|
265
|
+
h(() => N.modelValue, async () => {
|
|
266
|
+
J++, q.value || await B(void 0, "model", N.modelValue) === "applied" && H(), J--;
|
|
267
|
+
}, { debounce: N.modelValueDebounceTime === void 0 ? 0 : N.modelValueDebounceTime }), h(() => [N.dependencies, I.value], async () => {
|
|
268
|
+
U.value || await Re(), U.value && (J++, await B(void 0, "dependencies", N.modelValue) === "applied" && J === 1 && H(), J--);
|
|
269
|
+
}, { debounce: N.depsDebounceTime === void 0 ? 0 : N.depsDebounceTime });
|
|
270
|
+
let Y = y(() => l(N.modelValue)), X = c({
|
|
268
271
|
component: "BbSwitchGroup",
|
|
269
272
|
attrs: Ce(),
|
|
270
|
-
props:
|
|
271
|
-
parts:
|
|
272
|
-
states:
|
|
273
|
+
props: N,
|
|
274
|
+
parts: v.parts,
|
|
275
|
+
states: v.states,
|
|
273
276
|
active: {
|
|
274
|
-
...o(
|
|
277
|
+
...s(o(N, () => Y.value), [
|
|
275
278
|
"errors",
|
|
276
279
|
"warnings",
|
|
277
280
|
"disabled",
|
|
278
281
|
"readonly",
|
|
279
282
|
"hasValue"
|
|
280
283
|
]),
|
|
281
|
-
loading: () =>
|
|
284
|
+
loading: () => V.value
|
|
282
285
|
}
|
|
283
|
-
}),
|
|
286
|
+
}), Ue = a(X, { label: "legend" }), Z = ae(), Q = (e) => e.value === void 0 || e.value, $ = (e, t) => {
|
|
284
287
|
if (t) return [t, e.valueHash].filter(Boolean).join("-");
|
|
285
|
-
},
|
|
286
|
-
|
|
287
|
-
},
|
|
288
|
+
}, We = (e, t) => {
|
|
289
|
+
P("change", e), t.selected ? Be(t) : ze(t);
|
|
290
|
+
}, Ge = (e) => ({
|
|
288
291
|
onBlur: (t) => {
|
|
289
|
-
Z.onBlur(e.valueHash),
|
|
292
|
+
Z.onBlur(e.valueHash), P("blur", t);
|
|
290
293
|
},
|
|
291
294
|
onChange: (t) => {
|
|
292
295
|
if (!(t.target instanceof HTMLInputElement)) return;
|
|
293
|
-
if (
|
|
294
|
-
|
|
296
|
+
if (ne(t.target, N.readonly, !!e.selected)) {
|
|
297
|
+
p(t.target, !1);
|
|
295
298
|
return;
|
|
296
299
|
}
|
|
297
|
-
|
|
300
|
+
p(t.target, !1), We(t, e);
|
|
298
301
|
let n = t.target;
|
|
299
|
-
|
|
302
|
+
f(() => n, () => !!K.value.find((t) => t.valueHash === e.valueHash)?.selected);
|
|
300
303
|
},
|
|
301
304
|
onFocus: (t) => {
|
|
302
|
-
Z.onFocus(e.valueHash, t),
|
|
305
|
+
Z.onFocus(e.valueHash, t), z.value = !0, P("focus", t);
|
|
303
306
|
},
|
|
304
307
|
onClick: (e) => {
|
|
305
|
-
|
|
308
|
+
ee(e, N.readonly), P("click", e);
|
|
306
309
|
},
|
|
307
|
-
onInput: (e) =>
|
|
310
|
+
onInput: (e) => P("input", e),
|
|
308
311
|
onKeydown: (e) => {
|
|
309
|
-
|
|
312
|
+
te(e, N.readonly), P("keydown", e);
|
|
310
313
|
},
|
|
311
|
-
onMousedown: (e) =>
|
|
312
|
-
onMouseup: (e) =>
|
|
313
|
-
}),
|
|
314
|
+
onMousedown: (e) => P("mousedown", e),
|
|
315
|
+
onMouseup: (e) => P("mouseup", e)
|
|
316
|
+
}), Ke = (e, t, n, r, i, a) => ({
|
|
314
317
|
...re("switch", {
|
|
315
|
-
ariaDescribedby:
|
|
318
|
+
ariaDescribedby: u(r, a),
|
|
316
319
|
ariaLabelledby: i,
|
|
317
|
-
autofocus:
|
|
320
|
+
autofocus: N.autofocus && !t,
|
|
318
321
|
checked: !!e.selected,
|
|
319
322
|
disabled: e.disabled,
|
|
320
323
|
id: $(e, n),
|
|
321
324
|
indeterminate: !1,
|
|
322
|
-
name:
|
|
323
|
-
readonly:
|
|
325
|
+
name: N.name,
|
|
326
|
+
readonly: N.readonly,
|
|
324
327
|
required: !1,
|
|
325
328
|
value: Q(e)
|
|
326
329
|
}),
|
|
327
|
-
...
|
|
328
|
-
}),
|
|
330
|
+
...Ge(e)
|
|
331
|
+
}), qe = (e, t, n, r) => {
|
|
329
332
|
let i = !!e.selected;
|
|
330
333
|
return {
|
|
331
334
|
checked: i,
|
|
@@ -337,82 +340,83 @@ var k = /*@__PURE__*/ b({
|
|
|
337
340
|
hasWarnings: !!r && !n,
|
|
338
341
|
id: $(e, t),
|
|
339
342
|
indeterminate: !1,
|
|
340
|
-
name:
|
|
343
|
+
name: N.name,
|
|
341
344
|
parsedValue: ie("switch", Q(e)),
|
|
342
|
-
readonly: !!
|
|
345
|
+
readonly: !!N.readonly,
|
|
343
346
|
trueValue: Q(e),
|
|
344
347
|
value: i ? Q(e) : !1
|
|
345
348
|
};
|
|
346
349
|
};
|
|
347
|
-
return (
|
|
348
|
-
id:
|
|
350
|
+
return (a, o) => (be(), ge(t, C({
|
|
351
|
+
id: x.id,
|
|
349
352
|
class: "bb-switch-group",
|
|
350
|
-
compact:
|
|
351
|
-
description:
|
|
352
|
-
disabled:
|
|
353
|
-
errors:
|
|
354
|
-
"has-errors":
|
|
355
|
-
"has-value":
|
|
356
|
-
"has-warnings":
|
|
357
|
-
"hide-label":
|
|
358
|
-
hint:
|
|
359
|
-
"input-align":
|
|
360
|
-
"input-position":
|
|
361
|
-
label:
|
|
362
|
-
"label-align":
|
|
363
|
-
"label-mode":
|
|
364
|
-
"label-position":
|
|
353
|
+
compact: D(M).compact,
|
|
354
|
+
description: x.description,
|
|
355
|
+
disabled: x.disabled,
|
|
356
|
+
errors: D(Ee),
|
|
357
|
+
"has-errors": x.hasErrors,
|
|
358
|
+
"has-value": Y.value,
|
|
359
|
+
"has-warnings": x.hasWarnings,
|
|
360
|
+
"hide-label": x.hideLegend,
|
|
361
|
+
hint: x.hint,
|
|
362
|
+
"input-align": x.inputAlign,
|
|
363
|
+
"input-position": D(M).inputPosition,
|
|
364
|
+
label: x.legend,
|
|
365
|
+
"label-align": x.labelAlign,
|
|
366
|
+
"label-mode": x.legendMode,
|
|
367
|
+
"label-position": x.legendPosition,
|
|
365
368
|
"label-tag": "legend",
|
|
366
|
-
layout:
|
|
367
|
-
loading:
|
|
368
|
-
name:
|
|
369
|
-
passthrough:
|
|
370
|
-
readonly:
|
|
371
|
-
reverse:
|
|
372
|
-
"show-asterisk":
|
|
369
|
+
layout: D(M).layout,
|
|
370
|
+
loading: D(V),
|
|
371
|
+
name: x.name,
|
|
372
|
+
passthrough: D(Ue),
|
|
373
|
+
readonly: D(F),
|
|
374
|
+
reverse: D(M).reverse,
|
|
375
|
+
"show-asterisk": D(Te),
|
|
373
376
|
"show-hint": Ae.value,
|
|
374
|
-
"ssr-marker":
|
|
377
|
+
"ssr-marker": D(Ie),
|
|
375
378
|
tag: "fieldset",
|
|
376
|
-
warnings:
|
|
377
|
-
},
|
|
378
|
-
label:
|
|
379
|
-
input:
|
|
379
|
+
warnings: x.warnings
|
|
380
|
+
}, D(X).forwardAttrs), ve({
|
|
381
|
+
label: O((e) => [T(a.$slots, "legend", w(S(e)))]),
|
|
382
|
+
input: O(({ id: t, hasErrors: s, hasWarnings: c, ariaDescribedby: l }) => [b(n, {
|
|
380
383
|
ref: ke,
|
|
381
384
|
block: "bb-switch-group",
|
|
382
|
-
"empty-text":
|
|
383
|
-
error:
|
|
384
|
-
"failed-text":
|
|
385
|
-
"has-errors":
|
|
386
|
-
"has-warnings":
|
|
387
|
-
"hide-label":
|
|
388
|
-
"item-input-align":
|
|
389
|
-
"item-label-align":
|
|
390
|
-
"item-layout":
|
|
391
|
-
"item-reverse":
|
|
392
|
-
"list-block":
|
|
393
|
-
"list-layout":
|
|
394
|
-
loading: !!
|
|
395
|
-
"loading-text":
|
|
396
|
-
options:
|
|
397
|
-
passthrough:
|
|
385
|
+
"empty-text": x.emptyText,
|
|
386
|
+
error: D(Pe),
|
|
387
|
+
"failed-text": x.failedText,
|
|
388
|
+
"has-errors": s,
|
|
389
|
+
"has-warnings": c,
|
|
390
|
+
"hide-label": x.hideLabel,
|
|
391
|
+
"item-input-align": x.itemInputAlign,
|
|
392
|
+
"item-label-align": x.itemLabelAlign,
|
|
393
|
+
"item-layout": D(M).itemLayout,
|
|
394
|
+
"item-reverse": D(M).itemReverse,
|
|
395
|
+
"list-block": D(M).block,
|
|
396
|
+
"list-layout": D(M).listLayout,
|
|
397
|
+
loading: !!D(V),
|
|
398
|
+
"loading-text": x.loadingText,
|
|
399
|
+
options: D(K),
|
|
400
|
+
passthrough: D(X),
|
|
401
|
+
onRetry: o[0] ||= (e) => D(r)(e, Le, () => L.value)
|
|
398
402
|
}, {
|
|
399
|
-
prepend:
|
|
400
|
-
loading:
|
|
401
|
-
empty:
|
|
402
|
-
label:
|
|
403
|
-
input:
|
|
403
|
+
prepend: O(() => [T(a.$slots, "prepend")]),
|
|
404
|
+
loading: O(() => [T(a.$slots, "loading")]),
|
|
405
|
+
empty: O((e) => [T(a.$slots, "empty", w(S(e)))]),
|
|
406
|
+
label: O((e) => [T(a.$slots, "label", w(S(e)))]),
|
|
407
|
+
input: O(({ option: n, index: r, labelId: o, descriptionId: u, rowStates: d }) => [k(_e("input", w(S(Ke(n, r, t, l, o, u))), null, 16), [[D(e)]]), T(a.$slots, "icon", C({
|
|
404
408
|
item: n.item,
|
|
405
409
|
text: n.text
|
|
406
|
-
},
|
|
410
|
+
}, qe(n, t, s, c)), () => [b(i, C({
|
|
407
411
|
checked: !!n.selected,
|
|
408
412
|
disabled: !!n.disabled,
|
|
409
|
-
"focus-visible":
|
|
410
|
-
focused:
|
|
411
|
-
"has-errors": !!
|
|
412
|
-
"has-warnings": !!
|
|
413
|
+
"focus-visible": D(Z).focusVisible(n.valueHash),
|
|
414
|
+
focused: D(Z).focused(n.valueHash),
|
|
415
|
+
"has-errors": !!s,
|
|
416
|
+
"has-warnings": !!c && !s,
|
|
413
417
|
indeterminate: !1,
|
|
414
|
-
readonly: !!
|
|
415
|
-
},
|
|
418
|
+
readonly: !!D(F)
|
|
419
|
+
}, D(X).part("icon", d, n.item)), null, 16, [
|
|
416
420
|
"checked",
|
|
417
421
|
"disabled",
|
|
418
422
|
"focus-visible",
|
|
@@ -421,7 +425,7 @@ var k = /*@__PURE__*/ b({
|
|
|
421
425
|
"has-warnings",
|
|
422
426
|
"readonly"
|
|
423
427
|
])])]),
|
|
424
|
-
append:
|
|
428
|
+
append: O(() => [T(a.$slots, "append")]),
|
|
425
429
|
_: 2
|
|
426
430
|
}, 1032, [
|
|
427
431
|
"empty-text",
|
|
@@ -442,11 +446,11 @@ var k = /*@__PURE__*/ b({
|
|
|
442
446
|
"passthrough"
|
|
443
447
|
])]),
|
|
444
448
|
_: 2
|
|
445
|
-
}, [
|
|
449
|
+
}, [a.$slots.description ? {
|
|
446
450
|
name: "description",
|
|
447
|
-
fn:
|
|
451
|
+
fn: O((e) => [T(a.$slots, "description", w(S(e)))]),
|
|
448
452
|
key: "0"
|
|
449
453
|
} : void 0]), 1040, /* @__PURE__ */ "id.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.input-position.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.ssr-marker.warnings".split(".")));
|
|
450
454
|
}
|
|
451
455
|
});
|
|
452
|
-
export {
|
|
456
|
+
export { A as default };
|
|
@@ -84,13 +84,10 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
84
84
|
loading?: (props: object) => any;
|
|
85
85
|
/**
|
|
86
86
|
* Content shown when no options are available (replaces the default "no
|
|
87
|
-
* data" text).
|
|
88
|
-
*
|
|
89
|
-
* rows, so this slot is where it shows.
|
|
87
|
+
* data" text). Empty only: a failed load shows the library's failure row
|
|
88
|
+
* instead (its message is `failed-text`, and it ends with "Try again").
|
|
90
89
|
*/
|
|
91
|
-
empty?: (props:
|
|
92
|
-
error: unknown;
|
|
93
|
-
}) => any;
|
|
90
|
+
empty?: (props: object) => any;
|
|
94
91
|
/**
|
|
95
92
|
* Replaces the default switch track visual for each option. Receives the
|
|
96
93
|
* switch state plus the source item and its display text.
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {},
|
|
|
22
22
|
} & {
|
|
23
23
|
itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
|
|
24
24
|
multiple?: MultipleInput<M, true>;
|
|
25
|
-
} & Omit<import('vue').HTMLAttributes & import('vue').FieldsetHTMLAttributes, "legend" | "sort" | `pt:${string}&${string}` | "fixed" | "readonly" | "disabled" | "highlighted" | "loading" | "page" | "pt" | "dependencies" | "compact" | "modelValue" | "
|
|
25
|
+
} & Omit<import('vue').HTMLAttributes & import('vue').FieldsetHTMLAttributes, "legend" | "sort" | `pt:${string}&${string}` | "fixed" | "readonly" | "disabled" | "highlighted" | "loading" | "page" | "pt" | "dependencies" | "compact" | "modelValue" | "id" | "name" | "multiple" | "max" | "selectable" | "enforceCoherence" | "items" | "loadingText" | "emptyText" | "failedText" | "interactiveWhileLoading" | "depsDebounceTime" | "itemValue" | "caption" | keyof import('./ptKeys.generated.js').BbTablePtKeys | "accessibleLabel" | "actionsText" | "align" | "columns" | "disableSelectAll" | "displayCaption" | "expandedItems" | "fixedActions" | "fixedFirst" | "fixedHeaders" | "fixedLast" | "fixedSelect" | "headerRowClass" | "highlightable" | "inheritColumnWidths" | "keyboardNavigation" | "multiSort" | "order" | "perPage" | "reorderable" | "reorderableRows" | "resizable" | "rowClass" | "rowMenu" | "selectAll" | "selectAllLabel" | "selectText" | "tdClass" | "thClass" | "totalItems" | "totalPages" | "unselectedItems" | "virtual"> & {} & {
|
|
26
26
|
selectAll?: boolean;
|
|
27
27
|
sort?: BbTableSortEntry[];
|
|
28
28
|
order?: string[];
|
|
@@ -74,9 +74,7 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {},
|
|
|
74
74
|
loading?: ((props: {
|
|
75
75
|
items: Item[];
|
|
76
76
|
}) => any) | undefined;
|
|
77
|
-
empty?: (props:
|
|
78
|
-
error: unknown;
|
|
79
|
-
}) => any;
|
|
77
|
+
empty?: (props: object) => any;
|
|
80
78
|
actions?: ((props: {
|
|
81
79
|
expanded?: boolean;
|
|
82
80
|
expandProps?: import('./types.js').ExpandControllerProps;
|