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
|
@@ -174,6 +174,9 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
|
|
|
174
174
|
"root:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
175
175
|
"icon:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
176
176
|
"label:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
177
|
+
"description:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
178
|
+
"message:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
179
|
+
"hint:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
177
180
|
"label:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
178
181
|
"label:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
179
182
|
"legend:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -181,13 +184,10 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
|
|
|
181
184
|
"legend:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
182
185
|
"root:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
183
186
|
"root:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
184
|
-
"description:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
185
187
|
"description:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
186
188
|
"description:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
187
|
-
"message:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
188
189
|
"message:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
189
190
|
"message:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
190
|
-
"hint:outline"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
191
191
|
"hint:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
192
192
|
"hint:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
193
193
|
"icon:pill"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -210,7 +210,7 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
|
|
|
210
210
|
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
211
211
|
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
212
212
|
multiple?: MultipleInput<M, true>;
|
|
213
|
-
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" |
|
|
213
|
+
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | "multiple" | "max" | "selectable" | "itemText" | "enforceCoherence" | "items" | "loadingText" | "emptyText" | "failedText" | "hideLegend" | "legendMode" | "legendPosition" | "depsDebounceTime" | "itemProps" | "itemValue" | "modelValueDebounceTime" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | keyof import('./ptKeys.generated.js').BbCheckboxGroupPtKeys | "itemLabelAlign" | "itemInputAlign" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
|
|
214
214
|
onActive?: (() => any) | undefined;
|
|
215
215
|
onInput?: ((event: Event) => any) | undefined;
|
|
216
216
|
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
|
package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -2,32 +2,33 @@ 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 {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
5
|
+
import { runRetry as i } from "../../utils/loadRetry.js";
|
|
6
|
+
import a from "../BbBaseCheckboxIcon/BbBaseCheckboxIcon.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 { isNotEmpty as d } from "../../utilities/functions/isNotEmpty.js";
|
|
9
|
+
import { withItemDescribedby as ee } from "../../utilities/functions/itemProps.js";
|
|
10
|
+
import { hash as te } from "../../utilities/functions/hash.js";
|
|
11
|
+
import { preventReadonlyClick as ne, preventReadonlyKeydown as re, revertReadonlyChange as ie, syncCheckedToData as ae, syncIndeterminate as f, toggleInputAttrs as oe, toggleInputValue as se } from "../../utilities/functions/toggleInput.js";
|
|
12
|
+
import { useToggleListFocus as ce } from "../../composables/useToggleInput.js";
|
|
13
|
+
import { useChoiceIndicator as le } from "../../composables/useChoiceIndicator.js";
|
|
14
|
+
import { useItemsGetter as ue } from "../../composables/useItemsGetter.js";
|
|
15
|
+
import { useIndexById as p } from "../../composables/useIndexById.js";
|
|
16
|
+
import { useBaseOptions as m } from "../../composables/useBaseOptions.js";
|
|
17
|
+
import { useCoherence as de } from "../../composables/useCoherence.js";
|
|
18
|
+
import { useHashedWatcher as h } from "../../composables/useHashedWatcher.js";
|
|
19
|
+
import { usePrefill as fe } from "../../composables/usePrefill.js";
|
|
20
|
+
import { useLogger as pe } from "../../composables/useLogger.js";
|
|
21
|
+
import { useActiveInactiveState as me } from "../../composables/useActiveInactiveState.js";
|
|
22
|
+
import { useOnFalsy as he } from "../../composables/useOnFalsy.js";
|
|
23
|
+
import { useOnTruthy as ge } from "../../composables/useOnTruthy.js";
|
|
24
|
+
import { removedPropsFor as _e } from "../../deprecation/removedProps.js";
|
|
25
|
+
import { warnRemovedAttrs as ve } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
26
|
+
import { BB_CHECKBOX_GROUP_PT as g } from "./types.js";
|
|
27
|
+
import { useFormBinding as ye } from "../../composables/useFormBinding.js";
|
|
28
|
+
import { Fragment as be, computed as _, createBlock as xe, createElementBlock as v, createElementVNode as Se, createSlots as Ce, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as S, normalizeProps as C, onBeforeMount as we, openBlock as w, ref as Te, renderList as Ee, renderSlot as T, shallowRef as E, toRef as D, unref as O, useAttrs as De, withCtx as k, withDirectives as Oe } from "vue";
|
|
28
29
|
// src/components/BbCheckboxGroup/BbCheckboxGroup.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
-
var A = /*@__PURE__*/
|
|
30
|
-
mixins: [
|
|
30
|
+
var A = /*@__PURE__*/ b({
|
|
31
|
+
mixins: [u(g)],
|
|
31
32
|
inheritAttrs: !1,
|
|
32
33
|
__name: "BbCheckboxGroup",
|
|
33
34
|
props: {
|
|
@@ -235,49 +236,51 @@ var A = /*@__PURE__*/ x({
|
|
|
235
236
|
"mouseup",
|
|
236
237
|
"update:modelValue"
|
|
237
238
|
],
|
|
238
|
-
setup(
|
|
239
|
-
let A =
|
|
239
|
+
setup(u, { emit: b }) {
|
|
240
|
+
let A = u, ke = b, j = e("BbCheckboxGroup", A, {
|
|
240
241
|
inputPosition: "start",
|
|
241
242
|
compact: !1,
|
|
242
243
|
itemReverse: !1,
|
|
243
244
|
reverse: !1,
|
|
244
245
|
block: !1
|
|
245
|
-
}), { props: M, emit: N, showAsterisk:
|
|
246
|
+
}), { props: M, emit: N, showAsterisk: Ae, errors: je, readonly: P } = ye(A, ke, {
|
|
246
247
|
componentName: "BbCheckboxGroup",
|
|
247
248
|
identifierFallback: () => A.legend,
|
|
248
249
|
emptyValue: () => [],
|
|
249
250
|
leaveOn: "inactive"
|
|
250
251
|
});
|
|
251
|
-
process.env.NODE_ENV !== "production" &&
|
|
252
|
-
let
|
|
253
|
-
|
|
254
|
-
M.multiple && !Array.isArray(M.modelValue) &&
|
|
252
|
+
process.env.NODE_ENV !== "production" && ve("BbCheckboxGroup", _e("BbCheckboxGroup"));
|
|
253
|
+
let Me = pe();
|
|
254
|
+
we(() => {
|
|
255
|
+
M.multiple && !Array.isArray(M.modelValue) && Me.throw("BbCheckboxGroup: multiple is set to \"true\" but modelValue is not an array.");
|
|
255
256
|
});
|
|
256
|
-
let
|
|
257
|
+
let Ne = [], F = _(() => M.items === void 0 ? Ne : M.items), I = E(null), Pe = (e) => {
|
|
257
258
|
I.value = e?.$el ?? null;
|
|
258
|
-
}, { active: L } =
|
|
259
|
-
|
|
259
|
+
}, { active: L } = me(I), R = Te(!1), Fe = _(() => M.persistentHint || R.value);
|
|
260
|
+
he(L, () => {
|
|
260
261
|
R.value = !1, N("inactive");
|
|
261
|
-
}),
|
|
262
|
+
}), ge(L, () => {
|
|
262
263
|
R.value = !0, N("active");
|
|
263
264
|
});
|
|
264
|
-
let { getter: z, clientReproducible:
|
|
265
|
+
let { getter: z, clientReproducible: Ie, hydratedFromSsr: Le, items: Re, loading: B, error: ze, retry: Be, ssrMarker: Ve } = ue({
|
|
265
266
|
items: F,
|
|
266
267
|
marker: !0
|
|
267
268
|
}), V = () => {
|
|
268
|
-
M.enforceCoherence && !K.value && N("update:modelValue",
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
M.enforceCoherence && !K.value && N("update:modelValue", qe.value);
|
|
270
|
+
}, He = async () => {
|
|
271
|
+
await Be() === "applied" && V();
|
|
272
|
+
}, { hasPrefilled: H, whenPrefilled: Ue } = fe({
|
|
273
|
+
alreadyLoaded: Le,
|
|
274
|
+
clientReproducible: Ie,
|
|
272
275
|
trigger: !0,
|
|
273
276
|
currentValue: M.modelValue,
|
|
274
277
|
multiple: !!M.multiple,
|
|
275
278
|
fn: async () => {
|
|
276
279
|
await z(void 0, "initial", M.modelValue) === "applied" && V();
|
|
277
280
|
}
|
|
278
|
-
}), U =
|
|
281
|
+
}), U = _(() => M.multiple ? [].concat(M.modelValue) : [M.modelValue]), { data: W } = p({ items: U }), { options: G } = m({
|
|
279
282
|
disabled: D(() => M.disabled),
|
|
280
|
-
items:
|
|
283
|
+
items: Re,
|
|
281
284
|
itemText: M.itemText,
|
|
282
285
|
itemProps: D(() => M.itemProps),
|
|
283
286
|
itemValue: M.itemValue,
|
|
@@ -285,40 +288,40 @@ var A = /*@__PURE__*/ x({
|
|
|
285
288
|
max: D(() => M.max),
|
|
286
289
|
selectable: D(() => M.selectable),
|
|
287
290
|
selectedIndexedByHash: W
|
|
288
|
-
}),
|
|
291
|
+
}), We = (e) => {
|
|
289
292
|
M.multiple ? N("update:modelValue", [...U.value, e.value]) : N("update:modelValue", e.value);
|
|
290
|
-
},
|
|
293
|
+
}, Ge = (e) => {
|
|
291
294
|
if (!M.multiple) {
|
|
292
295
|
N("update:modelValue", null);
|
|
293
296
|
return;
|
|
294
297
|
}
|
|
295
298
|
let t = { ...W.value };
|
|
296
299
|
delete t[e.valueHash], N("update:modelValue", Object.values(t));
|
|
297
|
-
}, { data:
|
|
300
|
+
}, { data: Ke } = p({
|
|
298
301
|
items: G,
|
|
299
302
|
key: "valueHash"
|
|
300
|
-
}), { coherent: K, coherentValue:
|
|
303
|
+
}), { coherent: K, coherentValue: qe } = de({
|
|
301
304
|
modelValue: D(() => M.modelValue),
|
|
302
305
|
multiple: !!M.multiple,
|
|
303
|
-
iteratee: (e) => !!
|
|
306
|
+
iteratee: (e) => !!Ke.value[te(e)]
|
|
304
307
|
}), q = 0;
|
|
305
|
-
|
|
308
|
+
h(() => M.modelValue, async () => {
|
|
306
309
|
q++, K.value || await z(void 0, "model", M.modelValue) === "applied" && V(), q--;
|
|
307
|
-
}, { debounce: M.modelValueDebounceTime === void 0 ? 0 : M.modelValueDebounceTime }),
|
|
308
|
-
H.value || await
|
|
310
|
+
}, { debounce: M.modelValueDebounceTime === void 0 ? 0 : M.modelValueDebounceTime }), h(() => [M.dependencies, F.value], async () => {
|
|
311
|
+
H.value || await Ue(), H.value && (q++, await z(void 0, "dependencies", M.modelValue) === "applied" && q === 1 && V(), q--);
|
|
309
312
|
}, { debounce: M.depsDebounceTime === void 0 ? 0 : M.depsDebounceTime });
|
|
310
|
-
let J =
|
|
313
|
+
let J = _(() => d(M.modelValue)), Y = l({
|
|
311
314
|
component: "BbCheckboxGroup",
|
|
312
|
-
attrs:
|
|
315
|
+
attrs: De(),
|
|
313
316
|
props: M,
|
|
314
|
-
parts:
|
|
315
|
-
states:
|
|
317
|
+
parts: g.parts,
|
|
318
|
+
states: g.states,
|
|
316
319
|
variant: {
|
|
317
|
-
...
|
|
320
|
+
...g.variant,
|
|
318
321
|
current: () => M.variant
|
|
319
322
|
},
|
|
320
323
|
active: {
|
|
321
|
-
...s(
|
|
324
|
+
...c(s(M, () => J.value), [
|
|
322
325
|
"errors",
|
|
323
326
|
"warnings",
|
|
324
327
|
"disabled",
|
|
@@ -327,46 +330,46 @@ var A = /*@__PURE__*/ x({
|
|
|
327
330
|
]),
|
|
328
331
|
loading: () => B.value
|
|
329
332
|
}
|
|
330
|
-
}),
|
|
333
|
+
}), Je = _(() => j.listLayout === "vertical"), { boxes: Ye, ready: Xe, styleOf: Ze } = le({
|
|
331
334
|
kind: "checkbox",
|
|
332
335
|
variant: () => M.variant,
|
|
333
|
-
vertical: () =>
|
|
336
|
+
vertical: () => Je.value,
|
|
334
337
|
list: () => I.value,
|
|
335
338
|
rows: () => G.value,
|
|
336
339
|
rowClass: "bb-checkbox-group__item"
|
|
337
|
-
}),
|
|
340
|
+
}), X = o(Y, { label: "legend" }), Z = ce(), Q = (e) => e.value === void 0 || e.value, $ = (e, t) => {
|
|
338
341
|
if (t) return [t, e.valueHash].filter(Boolean).join("-");
|
|
339
|
-
},
|
|
340
|
-
N("change", e), t.selected ?
|
|
341
|
-
},
|
|
342
|
+
}, Qe = (e, t) => {
|
|
343
|
+
N("change", e), t.selected ? Ge(t) : We(t);
|
|
344
|
+
}, $e = (e) => ({
|
|
342
345
|
onBlur: (t) => {
|
|
343
346
|
Z.onBlur(e.valueHash), N("blur", t);
|
|
344
347
|
},
|
|
345
348
|
onChange: (t) => {
|
|
346
349
|
if (!(t.target instanceof HTMLInputElement)) return;
|
|
347
|
-
if (
|
|
348
|
-
|
|
350
|
+
if (ie(t.target, M.readonly, !!e.selected)) {
|
|
351
|
+
f(t.target, !1);
|
|
349
352
|
return;
|
|
350
353
|
}
|
|
351
|
-
|
|
354
|
+
f(t.target, !1), Qe(t, e);
|
|
352
355
|
let n = t.target;
|
|
353
|
-
|
|
356
|
+
ae(() => n, () => !!G.value.find((t) => t.valueHash === e.valueHash)?.selected);
|
|
354
357
|
},
|
|
355
358
|
onFocus: (t) => {
|
|
356
359
|
Z.onFocus(e.valueHash, t), R.value = !0, N("focus", t);
|
|
357
360
|
},
|
|
358
361
|
onClick: (e) => {
|
|
359
|
-
|
|
362
|
+
ne(e, M.readonly), N("click", e);
|
|
360
363
|
},
|
|
361
364
|
onInput: (e) => N("input", e),
|
|
362
365
|
onKeydown: (e) => {
|
|
363
|
-
|
|
366
|
+
re(e, M.readonly), N("keydown", e);
|
|
364
367
|
},
|
|
365
368
|
onMousedown: (e) => N("mousedown", e),
|
|
366
369
|
onMouseup: (e) => N("mouseup", e)
|
|
367
|
-
}),
|
|
368
|
-
...
|
|
369
|
-
ariaDescribedby:
|
|
370
|
+
}), et = (e, t, n, r, i, a) => ({
|
|
371
|
+
...oe("checkbox", {
|
|
372
|
+
ariaDescribedby: ee(r, a),
|
|
370
373
|
ariaLabelledby: i,
|
|
371
374
|
autofocus: M.autofocus && !t,
|
|
372
375
|
checked: !!e.selected,
|
|
@@ -378,8 +381,8 @@ var A = /*@__PURE__*/ x({
|
|
|
378
381
|
required: !1,
|
|
379
382
|
value: Q(e)
|
|
380
383
|
}),
|
|
381
|
-
|
|
382
|
-
}),
|
|
384
|
+
...$e(e)
|
|
385
|
+
}), tt = (e, t, n, r) => {
|
|
383
386
|
let i = !!e.selected;
|
|
384
387
|
return {
|
|
385
388
|
checked: i,
|
|
@@ -392,85 +395,86 @@ var A = /*@__PURE__*/ x({
|
|
|
392
395
|
id: $(e, t),
|
|
393
396
|
indeterminate: !1,
|
|
394
397
|
name: M.name,
|
|
395
|
-
parsedValue:
|
|
398
|
+
parsedValue: se("checkbox", Q(e)),
|
|
396
399
|
readonly: !!M.readonly,
|
|
397
400
|
trueValue: Q(e),
|
|
398
401
|
value: i ? Q(e) : !1
|
|
399
402
|
};
|
|
400
403
|
};
|
|
401
|
-
return (e,
|
|
402
|
-
id:
|
|
404
|
+
return (e, o) => (w(), xe(n, S({
|
|
405
|
+
id: u.id,
|
|
403
406
|
class: "bb-checkbox-group",
|
|
404
407
|
compact: O(j).compact,
|
|
405
|
-
description:
|
|
406
|
-
disabled:
|
|
407
|
-
errors: O(
|
|
408
|
-
"has-errors":
|
|
408
|
+
description: u.description,
|
|
409
|
+
disabled: u.disabled,
|
|
410
|
+
errors: O(je),
|
|
411
|
+
"has-errors": u.hasErrors,
|
|
409
412
|
"has-value": J.value,
|
|
410
|
-
"has-warnings":
|
|
411
|
-
"hide-label":
|
|
412
|
-
hint:
|
|
413
|
-
"input-align":
|
|
413
|
+
"has-warnings": u.hasWarnings,
|
|
414
|
+
"hide-label": u.hideLegend,
|
|
415
|
+
hint: u.hint,
|
|
416
|
+
"input-align": u.inputAlign,
|
|
414
417
|
"input-position": O(j).inputPosition,
|
|
415
|
-
label:
|
|
416
|
-
"label-align":
|
|
417
|
-
"label-mode":
|
|
418
|
-
"label-position":
|
|
418
|
+
label: u.legend,
|
|
419
|
+
"label-align": u.labelAlign,
|
|
420
|
+
"label-mode": u.legendMode,
|
|
421
|
+
"label-position": u.legendPosition,
|
|
419
422
|
"label-tag": "legend",
|
|
420
423
|
layout: O(j).layout,
|
|
421
424
|
loading: O(B),
|
|
422
|
-
name:
|
|
423
|
-
passthrough: O(
|
|
425
|
+
name: u.name,
|
|
426
|
+
passthrough: O(X),
|
|
424
427
|
readonly: O(P),
|
|
425
428
|
reverse: O(j).reverse,
|
|
426
|
-
"show-asterisk": O(
|
|
427
|
-
"show-hint":
|
|
428
|
-
"ssr-marker": O(
|
|
429
|
+
"show-asterisk": O(Ae),
|
|
430
|
+
"show-hint": Fe.value,
|
|
431
|
+
"ssr-marker": O(Ve),
|
|
429
432
|
tag: "fieldset",
|
|
430
|
-
warnings:
|
|
431
|
-
}, O(Y).forwardAttrs),
|
|
432
|
-
label: k((t) => [
|
|
433
|
-
input: k(({ id: n, hasErrors:
|
|
434
|
-
ref:
|
|
433
|
+
warnings: u.warnings
|
|
434
|
+
}, O(Y).forwardAttrs), Ce({
|
|
435
|
+
label: k((t) => [T(e.$slots, "legend", C(x(t)))]),
|
|
436
|
+
input: k(({ id: n, hasErrors: s, hasWarnings: c, ariaDescribedby: l }) => [y(r, {
|
|
437
|
+
ref: Pe,
|
|
435
438
|
block: "bb-checkbox-group",
|
|
436
|
-
"empty-text":
|
|
437
|
-
error: O(
|
|
438
|
-
"failed-text":
|
|
439
|
-
"has-errors":
|
|
440
|
-
"has-warnings":
|
|
441
|
-
"hide-label":
|
|
442
|
-
"indicator-ready": O(
|
|
443
|
-
"item-input-align":
|
|
444
|
-
"item-label-align":
|
|
439
|
+
"empty-text": u.emptyText,
|
|
440
|
+
error: O(ze),
|
|
441
|
+
"failed-text": u.failedText,
|
|
442
|
+
"has-errors": s,
|
|
443
|
+
"has-warnings": c,
|
|
444
|
+
"hide-label": u.hideLabel,
|
|
445
|
+
"indicator-ready": O(Xe),
|
|
446
|
+
"item-input-align": u.itemInputAlign,
|
|
447
|
+
"item-label-align": u.itemLabelAlign,
|
|
445
448
|
"item-layout": O(j).itemLayout,
|
|
446
449
|
"item-reverse": O(j).itemReverse,
|
|
447
450
|
"list-block": O(j).block,
|
|
448
451
|
"list-layout": O(j).listLayout,
|
|
449
452
|
loading: !!O(B),
|
|
450
|
-
"loading-text":
|
|
453
|
+
"loading-text": u.loadingText,
|
|
451
454
|
options: O(G),
|
|
452
455
|
passthrough: O(Y),
|
|
453
|
-
variant:
|
|
456
|
+
variant: u.variant,
|
|
457
|
+
onRetry: o[0] ||= (e) => O(i)(e, He, () => I.value)
|
|
454
458
|
}, {
|
|
455
|
-
prepend: k(() => [(
|
|
459
|
+
prepend: k(() => [(w(!0), v(be, null, Ee(O(Ye), (e) => (w(), v("span", S({
|
|
456
460
|
key: e.key,
|
|
457
461
|
"aria-hidden": "true",
|
|
458
462
|
class: "bb-checkbox-group__indicator",
|
|
459
|
-
style: O(
|
|
460
|
-
}, { ref_for: !0 }, O(Y).indicator), null, 16))), 128)),
|
|
461
|
-
loading: k(() => [
|
|
462
|
-
empty: k((t) => [
|
|
463
|
-
label: k((t) => [
|
|
464
|
-
input: k(({ option: r, index:
|
|
463
|
+
style: O(Ze)(e)
|
|
464
|
+
}, { ref_for: !0 }, O(Y).indicator), null, 16))), 128)), T(e.$slots, "prepend")]),
|
|
465
|
+
loading: k(() => [T(e.$slots, "loading")]),
|
|
466
|
+
empty: k((t) => [T(e.$slots, "empty", C(x(t)))]),
|
|
467
|
+
label: k((t) => [T(e.$slots, "label", C(x(t)))]),
|
|
468
|
+
input: k(({ option: r, index: i, labelId: o, descriptionId: u, rowStates: d }) => [Oe(Se("input", C(x(et(r, i, n, l, o, u))), null, 16), [[O(t)]]), T(e.$slots, "icon", S({
|
|
465
469
|
item: r.item,
|
|
466
470
|
text: r.text
|
|
467
|
-
},
|
|
471
|
+
}, tt(r, n, s, c)), () => [y(a, S({
|
|
468
472
|
checked: !!r.selected,
|
|
469
473
|
disabled: !!r.disabled,
|
|
470
474
|
"focus-visible": O(Z).focusVisible(r.valueHash),
|
|
471
475
|
focused: O(Z).focused(r.valueHash),
|
|
472
|
-
"has-errors": !!
|
|
473
|
-
"has-warnings": !!
|
|
476
|
+
"has-errors": !!s,
|
|
477
|
+
"has-warnings": !!c && !s,
|
|
474
478
|
indeterminate: !1,
|
|
475
479
|
readonly: !!O(P)
|
|
476
480
|
}, O(Y).part("icon", d, r.item)), null, 16, [
|
|
@@ -482,7 +486,7 @@ var A = /*@__PURE__*/ x({
|
|
|
482
486
|
"has-warnings",
|
|
483
487
|
"readonly"
|
|
484
488
|
])])]),
|
|
485
|
-
append: k(() => [
|
|
489
|
+
append: k(() => [T(e.$slots, "append")]),
|
|
486
490
|
_: 2
|
|
487
491
|
}, 1032, [
|
|
488
492
|
"empty-text",
|
|
@@ -507,7 +511,7 @@ var A = /*@__PURE__*/ x({
|
|
|
507
511
|
_: 2
|
|
508
512
|
}, [e.$slots.description ? {
|
|
509
513
|
name: "description",
|
|
510
|
-
fn: k((t) => [
|
|
514
|
+
fn: k((t) => [T(e.$slots, "description", C(x(t)))]),
|
|
511
515
|
key: "0"
|
|
512
516
|
} : 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(".")));
|
|
513
517
|
}
|
|
@@ -145,11 +145,10 @@ export type BbCheckboxGroupBaseProps<T> = {
|
|
|
145
145
|
*/
|
|
146
146
|
inputPosition?: 'left' | 'center' | 'right' | 'start' | 'end';
|
|
147
147
|
/**
|
|
148
|
-
* The options: an array, or a provider called with
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* gets the `error`.
|
|
148
|
+
* The options: an array, or a provider called with `{ reason, modelValue,
|
|
149
|
+
* signal }`, sync or async. A provider fails by THROWING, never by
|
|
150
|
+
* returning `[]`: the rows clear and the failure row shows `failed-text`
|
|
151
|
+
* with "Try again".
|
|
153
152
|
*/
|
|
154
153
|
items: T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>);
|
|
155
154
|
/**
|
|
@@ -430,13 +429,10 @@ export type BbCheckboxGroupSlots<T> = {
|
|
|
430
429
|
loading?: (props: object) => any;
|
|
431
430
|
/**
|
|
432
431
|
* Content shown when no options are available (replaces the default "no
|
|
433
|
-
* data" text).
|
|
434
|
-
*
|
|
435
|
-
* rows, so this slot is where it shows.
|
|
432
|
+
* data" text). Empty only: a failed load shows the library's failure row
|
|
433
|
+
* instead (its message is `failed-text`, and it ends with "Try again").
|
|
436
434
|
*/
|
|
437
|
-
empty?: (props:
|
|
438
|
-
error: unknown;
|
|
439
|
-
}) => any;
|
|
435
|
+
empty?: (props: object) => any;
|
|
440
436
|
/**
|
|
441
437
|
* Replaces the default checkmark icon for each checkbox option.
|
|
442
438
|
*/
|
|
@@ -22,6 +22,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
22
22
|
show: () => any;
|
|
23
23
|
shown: () => any;
|
|
24
24
|
hidden: () => any;
|
|
25
|
+
"update:open": (value: boolean) => any;
|
|
25
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
27
|
onInput?: ((event: Event) => any) | undefined;
|
|
27
28
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
@@ -40,6 +41,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
40
41
|
onShow?: (() => any) | undefined;
|
|
41
42
|
onShown?: (() => any) | undefined;
|
|
42
43
|
onHidden?: (() => any) | undefined;
|
|
44
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
43
45
|
}>, {
|
|
44
46
|
reverse: boolean;
|
|
45
47
|
compact: boolean;
|