bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Responsive } from '../../types/ResponsiveSize';
|
|
2
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
|
-
import { PtCompoundProps, PtNoInfer, PtValue } from '../../types/passthrough';
|
|
3
|
+
import { PtCompoundProps, PtItemCtx, PtItemResult, PtNoInfer, PtScopedItemMap, PtValue } from '../../types/passthrough';
|
|
4
4
|
import { FieldCrossAlign, FieldLayout } from '../../types/FieldLayout';
|
|
5
5
|
import { FormFieldProps } from '../../composables/useFormBinding';
|
|
6
6
|
import { CommonFieldAsteriskSlotProps } from '../CommonField/types';
|
|
@@ -21,13 +21,17 @@ import { CommonFieldAsteriskSlotProps } from '../CommonField/types';
|
|
|
21
21
|
* here reach everything inside.
|
|
22
22
|
* @part track - The rail the thumbs slide on: its full length, painted with
|
|
23
23
|
* `--track-color`.
|
|
24
|
-
* @part bar -
|
|
25
|
-
*
|
|
26
|
-
* and position are set from the
|
|
24
|
+
* @part bar - A coloured piece on the rail: from the start to the value, or
|
|
25
|
+
* from the lowest to the highest thumb with `multiple`; `fill` picks other
|
|
26
|
+
* pieces. Painted with `--accent`; its size and position are set from the
|
|
27
|
+
* value (the same word as BbProgress's fill). A broadcast.
|
|
27
28
|
* @part ticks - The row that holds the tick marks (`ticks` prop).
|
|
28
29
|
* @part tick - Every tick mark; a broadcast, resolved per tick with its own
|
|
29
30
|
* `inRange`. Its content is the `tick` slot.
|
|
30
|
-
* @part thumb - Every handle — one, or
|
|
31
|
+
* @part thumb - Every handle — one, or one per value with `multiple`; a
|
|
32
|
+
* broadcast.
|
|
33
|
+
*
|
|
34
|
+
* Per-item functions: on the instance, `bar` and `tick` also accept `({ item, inRange, … }) => PtValue | false | null | undefined` — `item` is the rail segment (`{ index, from, to }`; the thumbs cut the rail into segments `0…N`) the bar paints or the tick sits on, and every state a boolean beside it — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the node as it was. See the passthrough guide, _Per-item functions_.
|
|
31
35
|
*/
|
|
32
36
|
export type BbSliderPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'track' | 'bar' | 'ticks' | 'tick' | 'thumb';
|
|
33
37
|
/**
|
|
@@ -51,25 +55,56 @@ export declare const BB_SLIDER_PT: {
|
|
|
51
55
|
readonly states: readonly ["inRange", "readonly", "disabled", "warnings", "errors", "active"];
|
|
52
56
|
/** On every part: what the resolver's `active` map turns on. */
|
|
53
57
|
readonly wide: readonly ["readonly", "disabled", "warnings", "errors", "active"];
|
|
54
|
-
/** Per node: a tick
|
|
58
|
+
/** Per node: a tick under a painted bar. */
|
|
55
59
|
readonly node: {
|
|
56
60
|
readonly tick: readonly ["inRange"];
|
|
57
61
|
};
|
|
58
62
|
};
|
|
59
|
-
/**
|
|
60
|
-
export type
|
|
61
|
-
/**
|
|
62
|
-
|
|
63
|
+
/** The parts that also take a per-item function, called with a rail segment. */
|
|
64
|
+
export type BbSliderItemPtPart = 'bar' | 'tick';
|
|
65
|
+
/**
|
|
66
|
+
* One segment of the rail: the thumbs cut it into `N + 1` segments, numbered
|
|
67
|
+
* from the start (`0`) to the end (`N`). What a `bar` paints and a `tick`
|
|
68
|
+
* sits on — the `item` of their per-item `pt` functions. With `items`,
|
|
69
|
+
* `from` / `to` are positions in the list (`0` = the first stop).
|
|
70
|
+
*/
|
|
71
|
+
export type BbSliderSegment = {
|
|
72
|
+
/** The segment's position on the rail, `0` (start) … `N` (end). */
|
|
73
|
+
readonly index: number;
|
|
74
|
+
/** Its start value: `min`, or the thumb before it. */
|
|
75
|
+
readonly from: number;
|
|
76
|
+
/** Its end value: the thumb after it, or `max`. */
|
|
77
|
+
readonly to: number;
|
|
78
|
+
};
|
|
79
|
+
/** What an `items` stop's `value` can be. */
|
|
80
|
+
export type BbSliderItemValue = string | number;
|
|
81
|
+
/**
|
|
82
|
+
* One stop of an `items` slider: the value itself (its label is the value
|
|
83
|
+
* as written), or `{ value, label }` — the label is what assistive tech
|
|
84
|
+
* announces (`aria-valuetext`) and what the `tick` / `thumb` slots receive.
|
|
85
|
+
*/
|
|
86
|
+
export type BbSliderItem<V = BbSliderItemValue> = V | {
|
|
87
|
+
readonly value: V;
|
|
88
|
+
readonly label?: string;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* A slider's emitted value: a number (an `items` value with `items`), or one
|
|
92
|
+
* per thumb with `multiple`, sorted (`[low, high]` with a bare `multiple`:
|
|
93
|
+
* two thumbs).
|
|
94
|
+
*/
|
|
95
|
+
export type BbSliderValue<M extends boolean | number = boolean | number, V = number> = boolean extends M ? V | V[] : [M] extends [false] ? V : [M] extends [true] ? [V, V] : V[];
|
|
96
|
+
/** What `modelValue` takes: `multiple` accepts any readonly array. */
|
|
97
|
+
type BbSliderModel<M extends boolean | number, V> = boolean extends M ? V | readonly V[] : [M] extends [false] ? V : readonly V[];
|
|
63
98
|
export type BbSliderBaseProps = {
|
|
64
|
-
[K in `pt:${BbSliderPtPart}` | `pt:${BbSliderPtPart}:${'readonly' | 'disabled' | 'warnings' | 'errors' | 'active'}` | 'pt:tick:inRange']?: PtValue;
|
|
99
|
+
[K in `pt:${Exclude<BbSliderPtPart, BbSliderItemPtPart>}` | `pt:${BbSliderPtPart}:${'readonly' | 'disabled' | 'warnings' | 'errors' | 'active'}` | 'pt:tick:inRange']?: PtValue;
|
|
65
100
|
} & /* @vue-ignore */ PtCompoundProps<typeof BB_SLIDER_PT> & {
|
|
101
|
+
[K in `pt:${BbSliderItemPtPart}`]?: PtValue | ((ctx: PtItemCtx<BbSliderSegment, BbSliderPtState>) => PtItemResult);
|
|
102
|
+
} & {
|
|
66
103
|
/**
|
|
67
104
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
68
105
|
* without the prefix. See the `pt:<part>` row.
|
|
69
106
|
*/
|
|
70
|
-
pt?:
|
|
71
|
-
[K in BbSliderPtKey]?: PtValue;
|
|
72
|
-
};
|
|
107
|
+
pt?: PtScopedItemMap<BbSliderPtKey, BbSliderItemPtPart, BbSliderPtState, BbSliderSegment>;
|
|
73
108
|
/**
|
|
74
109
|
* Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field.
|
|
75
110
|
*/
|
|
@@ -180,7 +215,17 @@ export type BbSliderBaseProps = {
|
|
|
180
215
|
*
|
|
181
216
|
* @defaultValue `0`
|
|
182
217
|
*/
|
|
183
|
-
modelValue?: number
|
|
218
|
+
modelValue?: Array<number | string> | number | string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Named stops instead of a numeric scale, spaced evenly in list order:
|
|
221
|
+
* strings, numbers or `{ value, label }`. `v-model` holds the `value`;
|
|
222
|
+
* `label` is announced and passed to the slots. Replaces `min` / `max`
|
|
223
|
+
* / `step` (setting them too throws).
|
|
224
|
+
*/
|
|
225
|
+
items?: ReadonlyArray<string | number | {
|
|
226
|
+
readonly value: string | number;
|
|
227
|
+
readonly label?: string;
|
|
228
|
+
}>;
|
|
184
229
|
/**
|
|
185
230
|
* Defines the name of the input.
|
|
186
231
|
*/
|
|
@@ -190,9 +235,21 @@ export type BbSliderBaseProps = {
|
|
|
190
235
|
*/
|
|
191
236
|
persistentHint?: boolean;
|
|
192
237
|
/**
|
|
193
|
-
*
|
|
238
|
+
* Several thumbs: `multiple` is two (a min–max interval), `:multiple="3"`
|
|
239
|
+
* three (at least 2). `modelValue` holds one value per thumb, always
|
|
240
|
+
* sorted, or is empty (`[]` / `null`) to start unset; another length
|
|
241
|
+
* throws. Thumbs may cross.
|
|
194
242
|
*/
|
|
195
|
-
|
|
243
|
+
multiple?: boolean | number;
|
|
244
|
+
/**
|
|
245
|
+
* Which rail segments are painted: `'normal'` start → thumb (lowest →
|
|
246
|
+
* highest with `multiple`), `'inverted'` the rest, `'segments'` every
|
|
247
|
+
* segment as its own `bar` (colour each with a `pt:bar` function on
|
|
248
|
+
* `item.index`).
|
|
249
|
+
*
|
|
250
|
+
* @defaultValue `'normal'`
|
|
251
|
+
*/
|
|
252
|
+
fill?: 'normal' | 'inverted' | 'segments';
|
|
196
253
|
/**
|
|
197
254
|
* Sets the input in a readonly state.
|
|
198
255
|
*/
|
|
@@ -220,18 +277,25 @@ export type BbSliderBaseProps = {
|
|
|
220
277
|
* Displays ticks on step.
|
|
221
278
|
*/
|
|
222
279
|
ticks?: boolean;
|
|
223
|
-
} & FormFieldProps<number
|
|
280
|
+
} & FormFieldProps<Array<number | string> | number | string | null>;
|
|
224
281
|
/**
|
|
225
282
|
* The v-model of `BbSlider`, typed by the mode props (Q28 vmodel): what the
|
|
226
283
|
* generic component adds to `BbSliderBaseProps`, whose own spelling stays
|
|
227
284
|
* non-generic so the SFC compiler keeps Vue's Boolean cast on them.
|
|
228
285
|
*/
|
|
229
|
-
export type BbSliderModelProps<
|
|
230
|
-
|
|
231
|
-
modelValue?: PtNoInfer<BbSliderModel<
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
286
|
+
export type BbSliderModelProps<M extends boolean | number = boolean | number, V = number> = {
|
|
287
|
+
multiple?: M;
|
|
288
|
+
modelValue?: PtNoInfer<BbSliderModel<M, V>> | null;
|
|
289
|
+
} & ({
|
|
290
|
+
items?: undefined;
|
|
291
|
+
} | {
|
|
292
|
+
items: ReadonlyArray<BbSliderItem<V>>;
|
|
293
|
+
step?: never;
|
|
294
|
+
min?: never;
|
|
295
|
+
max?: never;
|
|
296
|
+
});
|
|
297
|
+
export type BbSliderProps<M extends boolean | number = boolean | number, V = number> = BbSliderBaseProps & BbSliderModelProps<M, V>;
|
|
298
|
+
export type BbSliderEvents<M extends boolean | number = boolean | number, V = number> = {
|
|
235
299
|
/**
|
|
236
300
|
* Emitted when the slider gains focus and becomes interactive.
|
|
237
301
|
*/
|
|
@@ -251,7 +315,7 @@ export type BbSliderEvents<R extends boolean = boolean> = {
|
|
|
251
315
|
*/
|
|
252
316
|
(e: 'keydown', event: KeyboardEvent): void;
|
|
253
317
|
/**
|
|
254
|
-
* Emitted when a pointer device is pressed on a thumb.
|
|
318
|
+
* Emitted when a pointer device is pressed on a thumb or on the track.
|
|
255
319
|
* Forwards the original DOM `PointerEvent`.
|
|
256
320
|
*/
|
|
257
321
|
(e: 'pointerdown', event: PointerEvent): void;
|
|
@@ -267,18 +331,29 @@ export type BbSliderEvents<R extends boolean = boolean> = {
|
|
|
267
331
|
(e: 'pointerup', event: PointerEvent): void;
|
|
268
332
|
/**
|
|
269
333
|
* Emitted with new value(s) whenever the slider position changes.
|
|
270
|
-
*
|
|
334
|
+
* A number for a single slider (an `items` value with `items`), one per
|
|
335
|
+
* thumb (sorted) with `multiple`.
|
|
271
336
|
*/
|
|
272
|
-
(e: 'update:modelValue', value: BbSliderValue<
|
|
337
|
+
(e: 'update:modelValue', value: BbSliderValue<M, V>): void;
|
|
273
338
|
};
|
|
274
339
|
/**
|
|
275
|
-
* Props exposed by the `thumb
|
|
340
|
+
* Props exposed by the `thumb` slot.
|
|
276
341
|
*/
|
|
277
|
-
export type BbSliderThumbSlotProps = {
|
|
342
|
+
export type BbSliderThumbSlotProps<V = number> = {
|
|
343
|
+
/**
|
|
344
|
+
* Which thumb this is, by position from the start: `0` for a single
|
|
345
|
+
* slider, the value's index in the sorted array with `multiple`.
|
|
346
|
+
*/
|
|
347
|
+
index: number;
|
|
278
348
|
/**
|
|
279
349
|
* The current value controlled by this thumb, or `undefined` if unset.
|
|
280
350
|
*/
|
|
281
|
-
value:
|
|
351
|
+
value: V | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* The `label` of the stop under the thumb with `items`, else
|
|
354
|
+
* `undefined`.
|
|
355
|
+
*/
|
|
356
|
+
label: string | undefined;
|
|
282
357
|
/**
|
|
283
358
|
* The thumb's horizontal position as a percentage (0–100) along the track.
|
|
284
359
|
*/
|
|
@@ -304,26 +379,48 @@ export type BbSliderStepSlotProps = {
|
|
|
304
379
|
* Whether this side's stepper would do nothing, for its button's
|
|
305
380
|
* `disabled`: in `#prepend` (the decrease side) the value is at `min`, in
|
|
306
381
|
* `#append` (the increase side) at `max`; on both sides the slider is
|
|
307
|
-
* `disabled`, `readonly` or
|
|
382
|
+
* `disabled`, `readonly` or `multiple`.
|
|
308
383
|
*/
|
|
309
384
|
disabled: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* `increase()` would not move the value: it sits at `max`, or the slider is
|
|
387
|
+
* `disabled` / `readonly` / `multiple`. The same in both slots, for a slot
|
|
388
|
+
* holding both buttons.
|
|
389
|
+
*/
|
|
390
|
+
increaseDisabled: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* `decrease()` would not move the value: it sits at `min`, or the slider is
|
|
393
|
+
* `disabled` / `readonly` / `multiple`. The same in both slots, for a slot
|
|
394
|
+
* holding both buttons.
|
|
395
|
+
*/
|
|
396
|
+
decreaseDisabled: boolean;
|
|
310
397
|
};
|
|
311
398
|
/**
|
|
312
399
|
* Props exposed by the `tick` slot.
|
|
313
400
|
*/
|
|
314
|
-
export type BbSliderTickSlotProps = {
|
|
401
|
+
export type BbSliderTickSlotProps<V = number> = {
|
|
315
402
|
/**
|
|
316
|
-
* The
|
|
403
|
+
* The value this tick represents (an `items` value with `items`).
|
|
317
404
|
*/
|
|
318
|
-
value:
|
|
405
|
+
value: V;
|
|
406
|
+
/**
|
|
407
|
+
* The stop's `label` with `items`, else `undefined`.
|
|
408
|
+
*/
|
|
409
|
+
label: string | undefined;
|
|
319
410
|
/**
|
|
320
411
|
* The tick's horizontal position as a percentage (0–100) along the track.
|
|
321
412
|
*/
|
|
322
413
|
percent: number;
|
|
323
414
|
/**
|
|
324
|
-
* Whether the tick
|
|
415
|
+
* Whether the tick sits under a painted `bar` (which ones `fill` picks).
|
|
325
416
|
*/
|
|
326
417
|
active: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* The rail segment the tick sits on, `0` (start) … `N` (end) — the
|
|
420
|
+
* `item.index` of the `bar` painting it, to colour ticks like their bar.
|
|
421
|
+
* A tick on a thumb belongs to the segment before it.
|
|
422
|
+
*/
|
|
423
|
+
segment: number;
|
|
327
424
|
};
|
|
328
425
|
/** Props exposed by the `description` slot. */
|
|
329
426
|
export type BbSliderDescriptionSlotProps = {
|
|
@@ -343,15 +440,7 @@ export type BbSliderLabelSlotProps = CommonFieldAsteriskSlotProps & {
|
|
|
343
440
|
/** Whether the slider is in a warning state (suppressed when errors). */
|
|
344
441
|
hasWarnings: boolean;
|
|
345
442
|
};
|
|
346
|
-
export type BbSliderSlots = {
|
|
347
|
-
/**
|
|
348
|
-
* Replaces the default higher-value thumb in range mode (`range: true`).
|
|
349
|
-
*/
|
|
350
|
-
'thumb:higher'?: (props: BbSliderThumbSlotProps) => any;
|
|
351
|
-
/**
|
|
352
|
-
* Replaces the default lower-value thumb in range mode (`range: true`).
|
|
353
|
-
*/
|
|
354
|
-
'thumb:lower'?: (props: BbSliderThumbSlotProps) => any;
|
|
443
|
+
export type BbSliderSlots<V = number> = {
|
|
355
444
|
/**
|
|
356
445
|
* Content rendered after the slider track, typically used to add a max-value label or button.
|
|
357
446
|
*/
|
|
@@ -361,13 +450,13 @@ export type BbSliderSlots = {
|
|
|
361
450
|
*/
|
|
362
451
|
prepend?: (props: BbSliderStepSlotProps) => any;
|
|
363
452
|
/**
|
|
364
|
-
*
|
|
453
|
+
* Replaces every thumb's content; with `multiple`, tell them apart by `index`.
|
|
365
454
|
*/
|
|
366
|
-
thumb?: (props: BbSliderThumbSlotProps) => any;
|
|
455
|
+
thumb?: (props: BbSliderThumbSlotProps<V>) => any;
|
|
367
456
|
/**
|
|
368
457
|
* Replaces the default tick mark rendered at each step when ticks are enabled.
|
|
369
458
|
*/
|
|
370
|
-
tick?: (props: BbSliderTickSlotProps) => any;
|
|
459
|
+
tick?: (props: BbSliderTickSlotProps<V>) => any;
|
|
371
460
|
/**
|
|
372
461
|
* Replaces the default label text rendered above the slider.
|
|
373
462
|
*/
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = BbSwitchProps & FallthroughAttrs<'div', BbSwitchProps, BbSwit
|
|
|
5
5
|
type __VLS_Slots = BbSwitchSlots;
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
7
|
input: (event: Event) => any;
|
|
8
|
+
"update:modelValue": (value: any) => any;
|
|
8
9
|
blur: (event: FocusEvent) => any;
|
|
9
10
|
change: (event: Event) => any;
|
|
10
11
|
click: (event: MouseEvent) => any;
|
|
@@ -12,9 +13,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
12
13
|
keydown: (event: KeyboardEvent) => any;
|
|
13
14
|
mousedown: (event: MouseEvent) => any;
|
|
14
15
|
mouseup: (event: MouseEvent) => any;
|
|
15
|
-
"update:modelValue": (value: any) => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
onInput?: ((event: Event) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
18
19
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
19
20
|
onChange?: ((event: Event) => any) | undefined;
|
|
20
21
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -22,7 +23,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
22
23
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
23
24
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
24
25
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
25
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
checked: boolean;
|
|
28
28
|
layout: import('../..').Responsive<import('../..').FieldLayout>;
|
|
@@ -8,73 +8,73 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
8
8
|
"pt:icon:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
9
9
|
"pt:icon:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
10
10
|
"pt:description"?: import('../../types/passthrough').PtValue | undefined;
|
|
11
|
-
"pt:list"?: import('../../types/passthrough').PtValue | undefined;
|
|
12
|
-
"pt:item:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
13
|
-
"pt:itemDescription:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
14
11
|
"pt:message"?: import('../../types/passthrough').PtValue | undefined;
|
|
15
12
|
"pt:hint"?: import('../../types/passthrough').PtValue | undefined;
|
|
16
|
-
"pt:label:
|
|
13
|
+
"pt:label:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
17
14
|
"pt:label:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
18
15
|
"pt:label:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
19
16
|
"pt:label:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
20
17
|
"pt:label:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
21
|
-
"pt:label:
|
|
22
|
-
"pt:
|
|
18
|
+
"pt:label:focused"?: import('../../types/passthrough').PtValue | undefined;
|
|
19
|
+
"pt:label:focusVisible"?: import('../../types/passthrough').PtValue | undefined;
|
|
23
20
|
"pt:root:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
24
21
|
"pt:root:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
25
22
|
"pt:root:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
26
|
-
"pt:description:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
27
23
|
"pt:description:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
28
24
|
"pt:description:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
29
25
|
"pt:description:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
30
26
|
"pt:description:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
31
|
-
"pt:description:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
32
|
-
"pt:message:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
33
27
|
"pt:message:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
34
28
|
"pt:message:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
35
29
|
"pt:message:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
36
30
|
"pt:message:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
37
|
-
"pt:message:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
38
|
-
"pt:hint:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
39
31
|
"pt:hint:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
40
32
|
"pt:hint:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
41
33
|
"pt:hint:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
42
34
|
"pt:hint:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
43
|
-
"pt:
|
|
44
|
-
"pt:icon:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
35
|
+
"pt:icon:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
45
36
|
"pt:icon:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
46
37
|
"pt:icon:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
47
38
|
"pt:icon:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
48
|
-
"pt:item:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
49
|
-
"pt:item:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
50
|
-
"pt:item:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
51
|
-
"pt:item:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
52
|
-
"pt:item:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
53
|
-
"pt:list:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
54
|
-
"pt:label:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
55
|
-
"pt:label:focused"?: import('../../types/passthrough').PtValue | undefined;
|
|
56
|
-
"pt:label:focusVisible"?: import('../../types/passthrough').PtValue | undefined;
|
|
57
|
-
"pt:icon:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
58
39
|
"pt:icon:focused"?: import('../../types/passthrough').PtValue | undefined;
|
|
59
40
|
"pt:icon:focusVisible"?: import('../../types/passthrough').PtValue | undefined;
|
|
60
41
|
"pt:legend"?: import('../../types/passthrough').PtValue | undefined;
|
|
42
|
+
"pt:list"?: import('../../types/passthrough').PtValue | undefined;
|
|
61
43
|
"pt:legend:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
62
44
|
"pt:legend:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
63
45
|
"pt:legend:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
64
46
|
"pt:legend:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
65
47
|
"pt:legend:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
66
48
|
"pt:legend:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
49
|
+
"pt:root:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
50
|
+
"pt:description:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
51
|
+
"pt:description:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
52
|
+
"pt:message:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
53
|
+
"pt:message:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
54
|
+
"pt:hint:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
55
|
+
"pt:hint:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
67
56
|
"pt:list:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
68
57
|
"pt:list:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
58
|
+
"pt:list:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
69
59
|
"pt:list:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
70
60
|
"pt:list:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
71
61
|
"pt:list:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
62
|
+
"pt:label:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
63
|
+
"pt:label:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
64
|
+
"pt:icon:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
65
|
+
"pt:item:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
72
66
|
"pt:item:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
67
|
+
"pt:item:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
68
|
+
"pt:item:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
69
|
+
"pt:item:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
70
|
+
"pt:item:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
73
71
|
"pt:item:focused"?: import('../../types/passthrough').PtValue | undefined;
|
|
74
72
|
"pt:item:focusVisible"?: import('../../types/passthrough').PtValue | undefined;
|
|
73
|
+
"pt:item:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
75
74
|
"pt:itemDescription:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
76
75
|
"pt:itemDescription:checked"?: import('../../types/passthrough').PtValue | undefined;
|
|
77
76
|
"pt:itemDescription:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
77
|
+
"pt:itemDescription:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
78
78
|
"pt:itemDescription:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
79
79
|
"pt:itemDescription:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
80
80
|
"pt:itemDescription:focused"?: import('../../types/passthrough').PtValue | undefined;
|
|
@@ -82,9 +82,9 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
82
82
|
"pt:itemDescription:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
83
83
|
} & {
|
|
84
84
|
"pt:icon"?: import('../../types/passthrough').PtValue | ((ctx: import('../../types/passthrough').PtItemCtx<import('../../types/passthrough').PtNoInfer<T>, import('../../types/passthrough').GroupPtState>) => import('../../types/passthrough').PtItemResult) | undefined;
|
|
85
|
+
"pt:label"?: import('../../types/passthrough').PtValue | ((ctx: import('../../types/passthrough').PtItemCtx<import('../../types/passthrough').PtNoInfer<T>, import('../../types/passthrough').GroupPtState>) => import('../../types/passthrough').PtItemResult) | undefined;
|
|
85
86
|
"pt:item"?: import('../../types/passthrough').PtValue | ((ctx: import('../../types/passthrough').PtItemCtx<import('../../types/passthrough').PtNoInfer<T>, import('../../types/passthrough').GroupPtState>) => import('../../types/passthrough').PtItemResult) | undefined;
|
|
86
87
|
"pt:itemDescription"?: import('../../types/passthrough').PtValue | ((ctx: import('../../types/passthrough').PtItemCtx<import('../../types/passthrough').PtNoInfer<T>, import('../../types/passthrough').GroupPtState>) => import('../../types/passthrough').PtItemResult) | undefined;
|
|
87
|
-
"pt:label"?: import('../../types/passthrough').PtValue | ((ctx: import('../../types/passthrough').PtItemCtx<import('../../types/passthrough').PtNoInfer<T>, import('../../types/passthrough').GroupPtState>) => import('../../types/passthrough').PtItemResult) | undefined;
|
|
88
88
|
} & {
|
|
89
89
|
autofocus?: import('vue').InputHTMLAttributes["autofocus"];
|
|
90
90
|
compact?: boolean;
|
|
@@ -117,6 +117,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
117
117
|
legend: string;
|
|
118
118
|
legendMode?: "outside" | "inside";
|
|
119
119
|
listLayout?: import('../..').ListLayout;
|
|
120
|
+
block?: boolean;
|
|
120
121
|
loadingText?: string;
|
|
121
122
|
max?: number;
|
|
122
123
|
modelValue?: any;
|
|
@@ -145,18 +146,18 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
145
146
|
}> | undefined;
|
|
146
147
|
} & {
|
|
147
148
|
pt?: import('../../types/passthrough').GroupPtMap<import('../../types/passthrough').PtNoInfer<T>> | undefined;
|
|
148
|
-
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt:root" | "pt:root:disabled" | "pt" | "pt:icon" | "pt:root:loading" | "pt:icon:disabled" | "pt:icon:loading" | "dependencies" | "
|
|
149
|
+
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt:root" | "pt:root:disabled" | "pt" | "block" | "pt:icon" | "pt:root:loading" | "pt:icon:disabled" | "pt:icon:loading" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "pt:label" | "pt:description" | "pt:message" | "pt:hint" | "pt:label:checked" | "pt:label:readonly" | "pt:label:disabled" | "pt:label:warnings" | "pt:label:errors" | "pt:label:focused" | "pt:label:focusVisible" | "pt:root:readonly" | "pt:root:warnings" | "pt:root:errors" | "pt:description:readonly" | "pt:description:disabled" | "pt:description:warnings" | "pt:description:errors" | "pt:message:readonly" | "pt:message:disabled" | "pt:message:warnings" | "pt:message:errors" | "pt:hint:readonly" | "pt:hint:disabled" | "pt:hint:warnings" | "pt:hint:errors" | "pt:icon:checked" | "pt:icon:readonly" | "pt:icon:warnings" | "pt:icon:errors" | "pt:icon:focused" | "pt:icon:focusVisible" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | keyof import('../../composables/useFormBinding').FormFieldProps<any> | "pt:legend" | "pt:list" | "pt:legend:hasValue" | "pt:legend:readonly" | "pt:legend:disabled" | "pt:legend:warnings" | "pt:legend:errors" | "pt:legend:loading" | "pt:root:hasValue" | "pt:description:hasValue" | "pt:description:loading" | "pt:message:hasValue" | "pt:message:loading" | "pt:hint:hasValue" | "pt:hint:loading" | "pt:list:hasValue" | "pt:list:readonly" | "pt:list:disabled" | "pt:list:warnings" | "pt:list:errors" | "pt:list:loading" | "pt:label:hasValue" | "pt:label:loading" | "pt:icon:hasValue" | "pt:item:hasValue" | "pt:item:checked" | "pt:item:readonly" | "pt:item:disabled" | "pt:item:warnings" | "pt:item:errors" | "pt:item:focused" | "pt:item:focusVisible" | "pt:item:loading" | "pt:itemDescription:hasValue" | "pt:itemDescription:checked" | "pt:itemDescription:readonly" | "pt:itemDescription:disabled" | "pt:itemDescription:warnings" | "pt:itemDescription:errors" | "pt:itemDescription:focused" | "pt:itemDescription:focusVisible" | "pt:itemDescription:loading" | "pt:item" | "pt:itemDescription" | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup" | "onClick"> & {}) & {
|
|
149
150
|
onActive?: (() => any) | undefined;
|
|
150
151
|
onInput?: ((event: Event) => any) | undefined;
|
|
152
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
151
153
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
154
|
+
onInactive?: (() => any) | undefined;
|
|
152
155
|
onChange?: ((event: Event) => any) | undefined;
|
|
153
156
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
154
157
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
155
158
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
156
159
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
157
160
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
158
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
159
|
-
onInactive?: (() => any) | undefined;
|
|
160
161
|
}> & (typeof globalThis extends {
|
|
161
162
|
__VLS_PROPS_FALLBACK: infer P;
|
|
162
163
|
} ? P : {});
|
|
@@ -141,6 +141,7 @@ var j = /*@__PURE__*/ S({
|
|
|
141
141
|
legend: {},
|
|
142
142
|
legendMode: {},
|
|
143
143
|
listLayout: {},
|
|
144
|
+
block: { type: Boolean },
|
|
144
145
|
loadingText: {},
|
|
145
146
|
max: {},
|
|
146
147
|
modelValue: {},
|
|
@@ -369,6 +370,7 @@ var j = /*@__PURE__*/ S({
|
|
|
369
370
|
"item-label-align": S.itemLabelAlign,
|
|
370
371
|
"item-layout": S.itemLayout,
|
|
371
372
|
"item-reverse": S.itemReverse,
|
|
373
|
+
"list-block": S.block,
|
|
372
374
|
"list-layout": S.listLayout,
|
|
373
375
|
loading: !!O(V),
|
|
374
376
|
"loading-text": S.loadingText,
|
|
@@ -413,6 +415,7 @@ var j = /*@__PURE__*/ S({
|
|
|
413
415
|
"item-label-align",
|
|
414
416
|
"item-layout",
|
|
415
417
|
"item-reverse",
|
|
418
|
+
"list-block",
|
|
416
419
|
"list-layout",
|
|
417
420
|
"loading",
|
|
418
421
|
"loading-text",
|
|
@@ -10,18 +10,20 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {}>(
|
|
|
10
10
|
columns?: (Omit<BbTableColumn<Item>, "key"> & {
|
|
11
11
|
key: T;
|
|
12
12
|
})[] | undefined;
|
|
13
|
-
} & Omit<import('vue').HTMLAttributes & import('vue').FieldsetHTMLAttributes, "legend" | "sort" | `pt:${string}&${string}` | "fixed" | "readonly" | "disabled" | "highlighted" | "loading" | "pt:root" | "page" | "pt" | "pt:root:loading" | "dependencies" | "
|
|
13
|
+
} & Omit<import('vue').HTMLAttributes & import('vue').FieldsetHTMLAttributes, "legend" | "sort" | `pt:${string}&${string}` | "fixed" | "readonly" | "disabled" | "highlighted" | "loading" | "pt:root" | "page" | "pt" | "pt:root:loading" | "dependencies" | "compact" | "modelValue" | "interactiveWhileLoading" | "id" | "name" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemValue" | "loadingText" | "max" | "multiple" | "emptyText" | "failedText" | "selectable" | "pt:cellColumnHeader" | "pt:cellColumnHeader:loading" | "caption" | "pt:caption" | "pt:table" | "pt:head" | "pt:headerRow" | "pt:sortIcon" | "pt:body" | "pt:cell" | "pt:firstRow" | "pt:lastRow" | "pt:selectIcon" | "pt:dragIcon" | "pt:dragHandle" | "pt:foot" | "pt:caption:loading" | "pt:table:loading" | "pt:head:loading" | "pt:headerRow:loading" | "pt:sortIcon:loading" | "pt:body:loading" | "pt:cell:loading" | "pt:firstRow:loading" | "pt:lastRow:loading" | "pt:selectIcon:loading" | "pt:dragIcon:loading" | "pt:dragHandle:loading" | "pt:foot:loading" | "pt:row:loading" | "pt:expand:loading" | "pt:root:empty" | "pt:cellColumnHeader:empty" | "pt:caption:empty" | "pt:table:empty" | "pt:head:empty" | "pt:headerRow:empty" | "pt:sortIcon:empty" | "pt:body:empty" | "pt:selectIcon:empty" | "pt:dragIcon:empty" | "pt:foot:empty" | "pt:cellColumnHeader:sorted" | "pt:cellColumnHeader:sortedDesc" | "pt:sortIcon:sorted" | "pt:sortIcon:sortedDesc" | "pt:cell:selected" | "pt:cell:disabled" | "pt:cell:expanded" | "pt:cell:highlighted" | "pt:dragHandle:selected" | "pt:dragHandle:disabled" | "pt:dragHandle:expanded" | "pt:dragHandle:highlighted" | "pt:row:selected" | "pt:row:disabled" | "pt:row:expanded" | "pt:row:highlighted" | "pt:expand:selected" | "pt:expand:expanded" | "pt:expand:highlighted" | "pt:selectIcon:selected" | "pt:selectIcon:indeterminate" | "pt:selectIcon:disabled" | "pt:cell:value" | "pt:cell:placeholder" | "pt:row" | "pt:expand" | "accessibleLabel" | "actionsText" | "align" | "columns" | "disableSelectAll" | "displayCaption" | "expandedItems" | "fixedActions" | "fixedFirst" | "fixedHeaders" | "fixedLast" | "fixedSelect" | "headerRowClass" | "highlightable" | "inheritColumnWidths" | "keyboardNavigation" | "multiSort" | "order" | "perPage" | "reorderable" | "reorderableRows" | "resizable" | "rowClass" | "selectAll" | "selectAllLabel" | "selectText" | "tdClass" | "thClass" | "totalItems" | "totalPages" | "unselectedItems" | "virtual"> & {} & {
|
|
14
14
|
selectAll?: boolean;
|
|
15
15
|
sort?: BbTableSortEntry[];
|
|
16
16
|
order?: string[];
|
|
17
17
|
highlighted?: any;
|
|
18
18
|
expandedItems?: any[];
|
|
19
19
|
}) & {
|
|
20
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
21
|
+
"onItem:selected"?: ((value: any) => any) | undefined;
|
|
22
|
+
"onItem:unselected"?: ((value: any) => any) | undefined;
|
|
20
23
|
"onClick:row"?: ((event: MouseEvent, item: any) => any) | undefined;
|
|
21
24
|
"onContextmenu:row"?: ((event: MouseEvent, item: any) => any) | undefined;
|
|
22
25
|
"onDblclick:row"?: ((event: MouseEvent, item: any) => any) | undefined;
|
|
23
26
|
"onUpdate:highlighted"?: ((value: any) => any) | undefined;
|
|
24
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
27
|
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
26
28
|
"onUpdate:sort"?: ((value: BbTableSortEntry[]) => any) | undefined;
|
|
27
29
|
"onUpdate:order"?: ((value: string[]) => any) | undefined;
|
|
@@ -34,8 +36,6 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {}>(
|
|
|
34
36
|
"onHide:column"?: ((key: string) => any) | undefined;
|
|
35
37
|
"onUpdate:expandedItems"?: ((value: any[]) => any) | undefined;
|
|
36
38
|
"onUpdate:unselectedItems"?: ((value: any[]) => any) | undefined;
|
|
37
|
-
"onItem:selected"?: ((value: any) => any) | undefined;
|
|
38
|
-
"onItem:unselected"?: ((value: any) => any) | undefined;
|
|
39
39
|
}> & (typeof globalThis extends {
|
|
40
40
|
__VLS_PROPS_FALLBACK: infer P;
|
|
41
41
|
} ? P : {});
|