bitboss-ui 3.0.0-beta.48 → 3.0.0-beta.49
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 +24 -7
- package/bin/bitboss-ui-mcp.mjs +15 -3
- package/bin/bitboss-ui.mjs +115 -13
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +16 -5
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbDatePickerInput.md +4 -2
- package/dist/ai/BbDialog.md +1 -8
- package/dist/ai/BbDropdown.md +231 -220
- package/dist/ai/BbDropdownButton.md +65 -65
- package/dist/ai/BbDropdownGroup.md +2 -2
- package/dist/ai/BbDropzone.md +10 -10
- package/dist/ai/BbForm.md +43 -52
- package/dist/ai/BbHoverCard.md +4 -2
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +29 -23
- package/dist/ai/BbProgress.md +48 -22
- package/dist/ai/BbRadioGroup.md +13 -19
- package/dist/ai/BbSelect.md +16 -36
- package/dist/ai/BbSelectPopover.md +14 -30
- package/dist/ai/BbSmoothHeight.md +0 -2
- package/dist/ai/BbSwitchGroup.md +13 -20
- package/dist/ai/BbTable.md +11 -10
- package/dist/ai/BbTabs.md +106 -105
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +2 -2
- package/dist/ai/BbTooltip.md +24 -10
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/changelog.json +256 -5
- package/dist/ai/components.json +36 -34
- package/dist/ai/composables/useBbDropdownContext.md +16 -16
- package/dist/ai/composables/useBbFormField.md +5 -1
- package/dist/ai/composables/useBbTabsContext.md +14 -14
- package/dist/ai/guides/agent-contract.md +27 -27
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/component-picker.md +3 -3
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +10 -10
- package/dist/ai/guides/inertia-helpers.md +120 -67
- package/dist/ai/guides/installation-and-plugin-setup.md +43 -15
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
- package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
- package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
- package/dist/ai/guides/migration/components/bb-select.md +10 -2
- package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
- package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +114 -17
- package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
- package/dist/ai/guides/options-items-playbook.md +30 -24
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/guides/preset-components.md +18 -3
- package/dist/ai/guides/typescript-generic-components.md +1 -1
- package/dist/ai/guides/validated-forms.md +11 -22
- package/dist/ai/guides/validation-providers.md +4 -3
- package/dist/ai/helpers/inertia/manifest.json +636 -0
- package/dist/ai/helpers/inertia/types.ts +15 -0
- package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
- package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
- package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
- package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
- package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
- package/dist/ai/helpers/inertia/useLoading.ts +20 -0
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
- package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
- package/dist/ai/helpers/inertia/useProp.ts +63 -0
- package/dist/ai/helpers/inertia/useQuery.ts +19 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
- package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
- package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
- package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
- package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
- package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
- package/dist/ai/helpers/inertia/useUntil.ts +33 -0
- package/dist/ai/helpers/inertia/utils.ts +24 -0
- package/dist/ai/index.md +6 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +23 -20
- package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -0
- package/dist/ai/manifest/components/BbNumberInput.json +6 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -0
- package/dist/ai/manifest/components/BbProgress.json +6 -6
- package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +7 -6
- package/dist/ai/manifest/components/BbTabsList.json +3 -3
- package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +5 -4
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +2 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +5 -4
- package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
- package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
- package/dist/ai/recipes/inertia/onboarding.md +6 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
- package/dist/ai/recipes/inertia/record-form.md +11 -11
- package/dist/ai/recipes/inertia/records-workspace.md +38 -41
- package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
- package/dist/ai/recipes/inertia/upload-center.md +31 -39
- package/dist/ai/recipes/inertia/wizard-form.md +10 -19
- package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
- package/dist/ai/recipes/nuxt/onboarding.md +2 -6
- package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
- package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
- package/dist/ai/recipes/nuxt/upload-center.md +22 -29
- package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
- package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
- package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
- package/dist/ai/recipes/vue/onboarding.md +2 -6
- package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
- package/dist/ai/recipes/vue/record-form.md +5 -5
- package/dist/ai/recipes/vue/records-workspace.md +29 -31
- package/dist/ai/recipes/vue/settings-workspace.md +22 -34
- package/dist/ai/recipes/vue/upload-center.md +22 -29
- package/dist/ai/recipes/vue/wizard-form.md +3 -11
- package/dist/ai/source/BbAccordion.md +1 -1
- package/dist/ai/source/BbAlert.md +3 -3
- package/dist/ai/source/BbBadge.md +2 -2
- package/dist/ai/source/BbBadgeButton.md +5 -4
- package/dist/ai/source/BbBaseButton.md +1 -1
- package/dist/ai/source/BbBaseRadioIcon.md +1 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
- package/dist/ai/source/BbBreadcrumbs.md +63 -42
- package/dist/ai/source/BbButton.md +71 -33
- package/dist/ai/source/BbCalendar.md +17 -16
- package/dist/ai/source/BbCheckbox.md +3 -2
- package/dist/ai/source/BbCheckboxGroup.md +11 -4
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbConfirm.md +1 -1
- package/dist/ai/source/BbConfirmPortal.md +1 -1
- package/dist/ai/source/BbDatePicker.md +2 -2
- package/dist/ai/source/BbDatePickerInput.md +47 -20
- package/dist/ai/source/BbDialog.md +5 -5
- package/dist/ai/source/BbDropdown.md +230 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +126 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbIndicator.md +4 -0
- package/dist/ai/source/BbNumberInput.md +855 -19
- package/dist/ai/source/BbOffCanvas.md +27 -11
- package/dist/ai/source/BbPagination.md +3 -3
- package/dist/ai/source/BbPopover.md +152 -8
- package/dist/ai/source/BbPopoverPortal.md +11 -0
- package/dist/ai/source/BbProgress.md +82 -18
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +11 -9
- package/dist/ai/source/BbSelect.md +16 -10
- package/dist/ai/source/BbSelectPopover.md +29 -23
- package/dist/ai/source/BbSlider.md +12 -6
- package/dist/ai/source/BbSwitch.md +3 -2
- package/dist/ai/source/BbSwitchGroup.md +5 -2
- package/dist/ai/source/BbTable.md +102 -18
- package/dist/ai/source/BbTabs.md +27 -23
- package/dist/ai/source/BbTabsList.md +26 -22
- package/dist/ai/source/BbTabsPanels.md +26 -22
- package/dist/ai/source/BbTabsRoot.md +25 -21
- package/dist/ai/source/BbTag.md +10 -9
- package/dist/ai/source/BbTextInput.md +5 -4
- package/dist/ai/source/BbTextarea.md +6 -5
- package/dist/ai/source/BbTimePicker.md +1 -1
- package/dist/ai/source/BbTimePickerInput.md +46 -9
- package/dist/ai/source/BbToast.md +10 -7
- package/dist/ai/source/BbToastPortal.md +10 -7
- package/dist/ai/source/BbTooltip.md +54 -8
- package/dist/ai/source/BbTree.md +21 -3
- package/dist/ai/source/CommonField.md +6 -4
- package/dist/ai/source/CommonFieldInput.md +15 -10
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/CommonTimeSelector.md +5 -4
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
- package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +84 -71
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +4 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
- package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
- package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
- package/dist/components/BbDropdown/normalizeGroups.js +60 -46
- package/dist/components/BbDropdown/types.d.ts +119 -88
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/BbDropdownButton/types.d.ts +2 -2
- package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
- package/dist/components/BbForm/BbFormCustomField.js +1 -1
- package/dist/components/BbForm/bindFormField.js +2 -1
- package/dist/components/BbForm/formFields.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
- package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
- package/dist/components/BbNumberInput/numberDisplay.js +499 -0
- package/dist/components/BbNumberInput/types.d.ts +54 -1
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
- package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -164
- package/dist/components/BbPopover/types.d.ts +11 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
- package/dist/components/BbProgress/types.d.ts +23 -7
- package/dist/components/BbProgress/types.js +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
- package/dist/components/BbRadioGroup/types.d.ts +6 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
- package/dist/components/BbSelect/types.d.ts +6 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbSelectPopover/types.d.ts +6 -2
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/types.d.ts +25 -21
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +102 -97
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +7 -2
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/composables/formSubmitLock.d.ts +6 -0
- package/dist/composables/formSubmitLock.js +4 -0
- package/dist/composables/useBaseOptions.d.ts +7 -1
- package/dist/composables/useBaseOptions.js +32 -32
- package/dist/composables/useBbDropdownContext.d.ts +8 -8
- package/dist/composables/useBbFormField.d.ts +9 -0
- package/dist/composables/useBbFormField.js +5 -3
- package/dist/composables/useBbTabsContext.d.ts +10 -10
- package/dist/composables/useBbTabsContext.js +18 -18
- package/dist/composables/useFormBinding.d.ts +11 -0
- package/dist/composables/useFormBinding.js +15 -13
- package/dist/composables/useItemText.d.ts +5 -1
- package/dist/composables/useItemText.js +8 -3
- package/dist/composables/useItemValue.d.ts +5 -1
- package/dist/composables/useItemValue.js +8 -3
- package/dist/composables/useLocale.js +10 -9
- package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +1 -1
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/i18n/index.d.ts +7 -12
- package/dist/i18n/locales/cs.json +11 -14
- package/dist/i18n/locales/da.json +13 -16
- package/dist/i18n/locales/de-CH.json +137 -0
- package/dist/i18n/locales/de.json +14 -17
- package/dist/i18n/locales/el.json +10 -13
- package/dist/i18n/locales/en-GB.json +137 -0
- package/dist/i18n/locales/en.json +8 -11
- package/dist/i18n/locales/es-MX.json +137 -0
- package/dist/i18n/locales/es.json +16 -19
- package/dist/i18n/locales/fi.json +8 -11
- package/dist/i18n/locales/fr.json +23 -26
- package/dist/i18n/locales/hu.json +8 -11
- package/dist/i18n/locales/it.json +12 -15
- package/dist/i18n/locales/ja.json +13 -16
- package/dist/i18n/locales/ko.json +10 -13
- package/dist/i18n/locales/nb.json +13 -16
- package/dist/i18n/locales/nl.json +21 -24
- package/dist/i18n/locales/pl.json +10 -13
- package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
- package/dist/i18n/locales/pt-PT.json +137 -0
- package/dist/i18n/locales/ro.json +22 -25
- package/dist/i18n/locales/ru.json +11 -14
- package/dist/i18n/locales/sv.json +16 -19
- package/dist/i18n/locales/tr.json +14 -17
- package/dist/i18n/locales/uk.json +11 -14
- package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
- package/dist/i18n/locales/zh-HK.json +137 -0
- package/dist/i18n/locales/zh-TW.json +137 -0
- package/dist/i18n/regionHints.d.ts +16 -0
- package/dist/i18n/regionHints.js +49 -0
- package/dist/i18n/regions.d.ts +286 -0
- package/dist/i18n/regions.js +265 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1785 -1637
- package/dist/llms-medium.txt +74 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/slotKey.d.ts +2 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +22 -19
- package/dist/vite.js +309 -297
- package/llms.txt +7 -7
- package/package.json +5 -3
- package/scripts/lib/agent-manifest.mjs +2 -1
- package/scripts/lib/eslint-disable.mjs +12 -4
- package/scripts/lib/eslint-plugin.d.ts +5 -1
- package/scripts/lib/eslint-plugin.mjs +187 -6
- package/scripts/lib/helper-canon.mjs +176 -0
- package/scripts/lib/helpers-add.mjs +1303 -0
- package/scripts/lib/local-components.mjs +33 -4
- package/scripts/lib/locale-check.mjs +165 -0
- package/scripts/lib/redundant-item-accessor.mjs +398 -0
- package/scripts/lib/renamed-item-field.mjs +343 -0
- package/scripts/lib/slot-key.mjs +2 -2
- package/scripts/lib/slot-renames.mjs +1 -1
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -18,8 +18,10 @@ var h = "__bb-dropdown-group:loading__", g = "__bb-dropdown-group:no-data__", _
|
|
|
18
18
|
props: { id: {} },
|
|
19
19
|
setup(d) {
|
|
20
20
|
let v = d, y = /* @__PURE__ */ new Set([
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"value",
|
|
22
|
+
"label",
|
|
23
|
+
"rowKey",
|
|
24
|
+
"keyless",
|
|
23
25
|
"items",
|
|
24
26
|
"group",
|
|
25
27
|
"selectable",
|
|
@@ -31,7 +33,7 @@ var h = "__bb-dropdown-group:loading__", g = "__bb-dropdown-group:no-data__", _
|
|
|
31
33
|
E.value ? D.value : void 0,
|
|
32
34
|
e,
|
|
33
35
|
k()
|
|
34
|
-
], j = (e) => me(...A(e)), M = ae(!1), N = u(() => !!C.value?.stash), { array: P, add: F, remove: I } = ne(), {
|
|
36
|
+
], j = (e) => me(...A(e)), M = ae(!1), N = u(() => !!C.value?.stash), { array: P, add: F, remove: I } = ne(), { getOptionText: L } = i(), { getOptionValue: R } = a(), z = (e) => R(e, C.value?.itemValue), B = (e) => L(e, C.value?.itemText), V = u(() => s(C.value?.itemProps)), H = u(() => C.value ? ee(C.value) : void 0), fe = (e) => o(V.value.field(e, "description")), U = (e) => {
|
|
35
37
|
if (Array.isArray(e)) return e.map((e) => U(e));
|
|
36
38
|
if (!e || typeof e != "object") return e;
|
|
37
39
|
let t = e;
|
|
@@ -110,27 +112,27 @@ var h = "__bb-dropdown-group:loading__", g = "__bb-dropdown-group:no-data__", _
|
|
|
110
112
|
});
|
|
111
113
|
let xe = u(() => C.value?.multiple ?? b?.multipleFor(v.id) ?? !1), Q = u(() => G.value && Y.value.length > 0), Se = u(() => {
|
|
112
114
|
if (G.value && !Y.value.length) return [{
|
|
113
|
-
|
|
115
|
+
rowKey: h,
|
|
114
116
|
placeholder: "loading",
|
|
115
|
-
|
|
117
|
+
label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
|
|
116
118
|
disabled: !0
|
|
117
119
|
}];
|
|
118
120
|
if (E.value && de.value && !M.value) return [{
|
|
119
|
-
|
|
121
|
+
rowKey: g,
|
|
120
122
|
placeholder: "empty",
|
|
121
|
-
|
|
123
|
+
label: le.value,
|
|
122
124
|
disabled: !0
|
|
123
125
|
}];
|
|
124
126
|
let e = _e.value;
|
|
125
127
|
if (!e.length) return Q.value ? [{
|
|
126
|
-
|
|
128
|
+
rowKey: h,
|
|
127
129
|
placeholder: "loading",
|
|
128
|
-
|
|
130
|
+
label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
|
|
129
131
|
disabled: !0
|
|
130
132
|
}] : K.value === null ? [{
|
|
131
|
-
|
|
133
|
+
rowKey: g,
|
|
132
134
|
placeholder: "empty",
|
|
133
|
-
|
|
135
|
+
label: C.value?.emptyText ?? x.emptyText.value ?? se.value,
|
|
134
136
|
disabled: !0
|
|
135
137
|
}] : [$()];
|
|
136
138
|
let t = C.value?.max ?? Infinity, n = xe.value && Z.value.length >= t, r = e.map((e) => {
|
|
@@ -138,9 +140,9 @@ var h = "__bb-dropdown-group:loading__", g = "__bb-dropdown-group:no-data__", _
|
|
|
138
140
|
for (let [n, r] of Object.entries(V.value.all(e.item))) y.has(n) || (t[n] = r);
|
|
139
141
|
return {
|
|
140
142
|
...t,
|
|
141
|
-
|
|
143
|
+
rowKey: e.key,
|
|
142
144
|
slotKey: e.slotToken,
|
|
143
|
-
|
|
145
|
+
label: e.text,
|
|
144
146
|
description: e.description,
|
|
145
147
|
fetched: !0,
|
|
146
148
|
disabled: (H.value ? !H.value(e.item) : !1) || n && !Z.value.includes(e.key)
|
|
@@ -148,10 +150,10 @@ var h = "__bb-dropdown-group:loading__", g = "__bb-dropdown-group:no-data__", _
|
|
|
148
150
|
});
|
|
149
151
|
return K.value !== null && r.push($()), r;
|
|
150
152
|
}), $ = () => ({
|
|
151
|
-
|
|
153
|
+
rowKey: _,
|
|
152
154
|
placeholder: "failed",
|
|
153
155
|
error: K.value,
|
|
154
|
-
|
|
156
|
+
label: C.value?.failedText ?? x.failedText.value ?? ce.value,
|
|
155
157
|
disabled: !0
|
|
156
158
|
});
|
|
157
159
|
if (b) {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Slot, Slots } from 'vue';
|
|
2
|
+
import { BbDropdownItemSlotProps, KeyedItem, NormalizedGroup } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* What a row reads from its list: one object the list builds once, so it never
|
|
5
|
+
* changes a row's props. Everything reactive is read through it inside the
|
|
6
|
+
* row's own render, which is what lets a row re-render alone.
|
|
7
|
+
*/
|
|
8
|
+
export interface DropdownRowApi {
|
|
9
|
+
slots: Slots;
|
|
10
|
+
setItemEl: (index: number, comp: unknown) => void;
|
|
11
|
+
itemAttrs: (group: NormalizedGroup, item: KeyedItem, index: number, selected: boolean) => Record<string, unknown>;
|
|
12
|
+
rowPart: (name: 'itemText' | 'itemIcon' | 'itemDescription', item: KeyedItem, selected: boolean) => Record<string, unknown>;
|
|
13
|
+
slotProps: (group: NormalizedGroup, item: KeyedItem, index: number, selected: boolean) => BbDropdownItemSlotProps;
|
|
14
|
+
rowSlot: (group: NormalizedGroup, item: KeyedItem, suffix?: 'prepend' | 'append') => Slot | undefined;
|
|
15
|
+
itemSlot: (item: KeyedItem, suffix?: 'prepend' | 'append') => Slot | undefined;
|
|
16
|
+
groupRowSlot: (group: NormalizedGroup, suffix?: 'prepend' | 'append') => Slot | undefined;
|
|
17
|
+
rowTextId: (index: number) => string;
|
|
18
|
+
rowDescriptionId: (index: number) => string;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
23
|
+
/** The row's group, with a selection that may be stale: read `selected`. */
|
|
24
|
+
group: NormalizedGroup;
|
|
25
|
+
item: KeyedItem;
|
|
26
|
+
/** The row's flat index in its list. */
|
|
27
|
+
index: number;
|
|
28
|
+
/** Whether the row is a selectable group's pick. */
|
|
29
|
+
selected: boolean;
|
|
30
|
+
row: DropdownRowApi;
|
|
31
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
32
|
+
/** The row's group, with a selection that may be stale: read `selected`. */
|
|
33
|
+
group: NormalizedGroup;
|
|
34
|
+
item: KeyedItem;
|
|
35
|
+
/** The row's flat index in its list. */
|
|
36
|
+
index: number;
|
|
37
|
+
/** Whether the row is a selectable group's pick. */
|
|
38
|
+
selected: boolean;
|
|
39
|
+
row: DropdownRowApi;
|
|
40
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import e from "../BbIcon/BbIcon.vue.js";
|
|
2
|
+
import t from "../BbBaseButton/BbBaseButton.vue.js";
|
|
3
|
+
import n from "../../assets/svgs/check_stroke.svg_raw.js";
|
|
4
|
+
import r from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
5
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, mergeProps as u, normalizeProps as d, openBlock as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
6
|
+
//#region src/components/BbDropdown/DropdownRow.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _ = {
|
|
8
|
+
key: 4,
|
|
9
|
+
class: "item__content"
|
|
10
|
+
}, v = ["id"], y = ["id"], b = /*@__PURE__*/ l({
|
|
11
|
+
__name: "DropdownRow",
|
|
12
|
+
props: {
|
|
13
|
+
group: {},
|
|
14
|
+
item: {},
|
|
15
|
+
index: {},
|
|
16
|
+
selected: { type: Boolean },
|
|
17
|
+
row: {}
|
|
18
|
+
},
|
|
19
|
+
setup(l) {
|
|
20
|
+
return (l, b) => (f(), a(t, u({
|
|
21
|
+
ref: (e) => l.row.setItemEl(l.index, e),
|
|
22
|
+
class: "bb-dropdown__item"
|
|
23
|
+
}, l.row.itemAttrs(l.group, l.item, l.index, l.selected)), {
|
|
24
|
+
default: g(() => [
|
|
25
|
+
l.row.rowSlot(l.group, l.item, "prepend") ? (f(), a(p(l.row.rowSlot(l.group, l.item, "prepend")), d(u({ key: 0 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : l.row.slots["item:prepend"] ? (f(), a(p(l.row.slots["item:prepend"]), d(u({ key: 1 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : l.item["prepend:icon"] ? (f(), a(e, u({
|
|
26
|
+
key: 2,
|
|
27
|
+
class: "bb-dropdown__item-icon item__prepend-icon",
|
|
28
|
+
icon: l.item["prepend:icon"]
|
|
29
|
+
}, l.row.rowPart("itemIcon", l.item, l.selected)), null, 16, ["icon"])) : o("", !0),
|
|
30
|
+
l.row.rowSlot(l.group, l.item) ? (f(), a(p(l.row.rowSlot(l.group, l.item)), d(u({ key: 3 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : (f(), s("span", _, [c("span", u({
|
|
31
|
+
id: l.row.rowTextId(l.index),
|
|
32
|
+
class: "bb-dropdown__item-text"
|
|
33
|
+
}, l.row.rowPart("itemText", l.item, l.selected)), m(l.item.label), 17, v), l.item.description ? (f(), s("span", u({
|
|
34
|
+
key: 0,
|
|
35
|
+
id: l.row.rowDescriptionId(l.index),
|
|
36
|
+
class: "bb-dropdown__item-description"
|
|
37
|
+
}, l.row.rowPart("itemDescription", l.item, l.selected)), m(l.item.description), 17, y)) : o("", !0)])),
|
|
38
|
+
l.group.selectable ? (f(), a(e, {
|
|
39
|
+
key: 5,
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
class: "item__check",
|
|
42
|
+
icon: h(n)
|
|
43
|
+
}, null, 8, ["icon"])) : o("", !0),
|
|
44
|
+
l.selected ? o("", !0) : (f(), s(i, { key: 6 }, [l.row.itemSlot(l.item, "append") ? (f(), a(p(l.row.itemSlot(l.item, "append")), d(u({ key: 0 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : l.item.items ? (f(), a(e, {
|
|
45
|
+
key: 1,
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
class: "item__chevron",
|
|
48
|
+
icon: h(r)
|
|
49
|
+
}, null, 8, ["icon"])) : l.row.groupRowSlot(l.group, "append") ? (f(), a(p(l.row.groupRowSlot(l.group, "append")), d(u({ key: 2 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : l.row.slots["item:append"] ? (f(), a(p(l.row.slots["item:append"]), d(u({ key: 3 }, l.row.slotProps(l.group, l.item, l.index, l.selected))), null, 16)) : l.item["append:icon"] ? (f(), a(e, u({
|
|
50
|
+
key: 4,
|
|
51
|
+
class: "bb-dropdown__item-icon item__append-icon",
|
|
52
|
+
icon: l.item["append:icon"]
|
|
53
|
+
}, l.row.rowPart("itemIcon", l.item, l.selected)), null, 16, ["icon"])) : o("", !0)], 64))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { b as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Item, NormalizedGroup } from './types';
|
|
1
|
+
import { InternalItem, Item, NormalizedGroup } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Normalizes a (possibly mixed) {@link Item} list into a flat array of
|
|
4
4
|
* {@link NormalizedGroup}s, ready to render.
|
|
@@ -17,7 +17,7 @@ import { Item, NormalizedGroup } from './types';
|
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
19
|
* Whether a level renders a search field — any of its groups is `searchable`
|
|
20
|
-
* (a
|
|
20
|
+
* (a group without an `id` has nowhere to store a query, so it never renders one).
|
|
21
21
|
*
|
|
22
22
|
* Load-bearing for the surface's ARIA role: `role="menu"` may not own a
|
|
23
23
|
* searchbox, so a level that has one is a `dialog` whose item lists carry the
|
|
@@ -25,3 +25,9 @@ import { Item, NormalizedGroup } from './types';
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const levelHasSearch: (groups: NormalizedGroup[]) => boolean;
|
|
27
27
|
export declare const normalizeGroups: (items?: Item[]) => NormalizedGroup[];
|
|
28
|
+
/**
|
|
29
|
+
* Whether a row carries its own identity: a `value` of any type, `null`
|
|
30
|
+
* included (a group's "None" row). Only an absent (or `undefined`) value
|
|
31
|
+
* makes it an action row.
|
|
32
|
+
*/
|
|
33
|
+
export declare const hasRowValue: (item: InternalItem) => boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { hash as e } from "../../utilities/functions/hash.js";
|
|
2
|
+
import { slotKey as t } from "../../utilities/functions/slotKey.js";
|
|
3
|
+
import { groupItemsAsArray as n, isGroup as r, isSelectableGroup as i, selectablePredicateOf as a } from "./types.js";
|
|
3
4
|
//#region src/components/BbDropdown/normalizeGroups.ts
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
o.length && (
|
|
5
|
+
var o = (e) => e.some((e) => !!e.searchable && !!e.id), s = (e = []) => {
|
|
6
|
+
let t = [], o = [], s = () => {
|
|
7
|
+
o.length && (t.push({
|
|
7
8
|
selectable: !1,
|
|
8
9
|
multiple: !1,
|
|
9
10
|
selected: [],
|
|
@@ -11,60 +12,73 @@ var a = (e) => e.some((e) => !!e.searchable && !!e.key), o = (e = []) => {
|
|
|
11
12
|
divider: !1
|
|
12
13
|
}), o = []);
|
|
13
14
|
};
|
|
14
|
-
for (let
|
|
15
|
-
|
|
16
|
-
let e =
|
|
15
|
+
for (let c of e) if (r(c)) {
|
|
16
|
+
s();
|
|
17
|
+
let e = n(c.items).flat();
|
|
17
18
|
if (!e.length) continue;
|
|
18
|
-
let
|
|
19
|
+
let r = i(c) && c.id != null && c.id !== "", o = a(c), l = o ? e.map((e) => e.fetched || e.placeholder || e.disabled || o(e) ? e : {
|
|
19
20
|
...e,
|
|
20
21
|
disabled: !0
|
|
21
22
|
}) : e;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
label:
|
|
25
|
-
hideLabel:
|
|
26
|
-
selectable:
|
|
27
|
-
multiple:
|
|
28
|
-
clearable:
|
|
23
|
+
t.push({
|
|
24
|
+
id: c.id,
|
|
25
|
+
label: c.label,
|
|
26
|
+
hideLabel: c.hideLabel,
|
|
27
|
+
selectable: r,
|
|
28
|
+
multiple: c.multiple ?? !1,
|
|
29
|
+
clearable: c.clearable,
|
|
29
30
|
selected: [],
|
|
30
31
|
items: l,
|
|
31
|
-
"prepend:icon":
|
|
32
|
-
"append:icon":
|
|
33
|
-
variant:
|
|
34
|
-
onClick:
|
|
35
|
-
searchable:
|
|
36
|
-
searchPlaceholder:
|
|
37
|
-
filterBy:
|
|
38
|
-
maxHeight:
|
|
39
|
-
meta:
|
|
32
|
+
"prepend:icon": c["prepend:icon"],
|
|
33
|
+
"append:icon": c["append:icon"],
|
|
34
|
+
variant: c.variant,
|
|
35
|
+
onClick: c.onClick,
|
|
36
|
+
searchable: c.searchable,
|
|
37
|
+
searchPlaceholder: c.searchPlaceholder,
|
|
38
|
+
filterBy: c.filterBy,
|
|
39
|
+
maxHeight: c.maxHeight,
|
|
40
|
+
meta: c.meta,
|
|
40
41
|
divider: !1
|
|
41
42
|
});
|
|
42
|
-
} else Array.isArray(
|
|
43
|
+
} else Array.isArray(c) ? (s(), c.length && t.push({
|
|
43
44
|
selectable: !1,
|
|
44
45
|
multiple: !1,
|
|
45
46
|
selected: [],
|
|
46
|
-
items:
|
|
47
|
-
divider:
|
|
48
|
-
})) : o.push(
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
items: c,
|
|
48
|
+
divider: t.length > 0
|
|
49
|
+
})) : o.push(c);
|
|
50
|
+
return s(), l(t);
|
|
51
|
+
}, c = (e) => e.value !== void 0, l = (n) => {
|
|
52
|
+
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
53
|
+
let t = e || "row";
|
|
54
|
+
for (let n = 2; r.has(t); n++) t = `${e || "row"}-${n}`;
|
|
55
|
+
return r.add(t), t;
|
|
56
|
+
}, a = (e) => {
|
|
57
|
+
if (e.slotKey) return t(e.slotKey);
|
|
58
|
+
let n = e.value;
|
|
59
|
+
return typeof n == "string" || typeof n == "number" ? t(String(n)) : "";
|
|
60
|
+
};
|
|
61
|
+
return n.map((n) => ({
|
|
62
|
+
...n,
|
|
63
|
+
items: n.items.map((r) => {
|
|
64
|
+
if (r.rowKey != null || c(r)) {
|
|
65
|
+
let t = r.rowKey ?? e(r.value);
|
|
66
|
+
return {
|
|
67
|
+
...r,
|
|
68
|
+
rowKey: t,
|
|
69
|
+
domKey: i(a(r) || (r.placeholder ? t : ""))
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
let o = i(t(r.label ?? ""));
|
|
73
|
+
return {
|
|
74
|
+
...r,
|
|
75
|
+
rowKey: o,
|
|
76
|
+
domKey: o,
|
|
63
77
|
keyless: !0,
|
|
64
|
-
...
|
|
78
|
+
...n.selectable ? { disabled: !0 } : {}
|
|
65
79
|
};
|
|
66
80
|
})
|
|
67
|
-
});
|
|
81
|
+
}));
|
|
68
82
|
};
|
|
69
83
|
//#endregion
|
|
70
|
-
export {
|
|
84
|
+
export { c as hasRowValue, o as levelHasSearch, s as normalizeGroups };
|