bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73
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 +2 -2
- package/bin/cli.mjs +9 -3
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +233 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +100 -13
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +242 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +72 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +152 -11
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1997 -1151
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utilities/functions/hash.js +90 -3
- package/dist/utilities/functions/isEqual.js +61 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +0 -1
- package/llms.txt +2 -2
- package/package.json +12 -2
- package/scripts/README.md +43 -39
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +180 -5
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -3,11 +3,12 @@ import { IconType } from './Icon.js';
|
|
|
3
3
|
import { BbButtonProps } from '../components/BbButton/types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for a single action button rendered by a library-owned
|
|
6
|
-
* surface
|
|
7
|
-
* `
|
|
6
|
+
* surface: a dialog's or off-canvas's `ok` / `cancel` / `actions`, a confirm
|
|
7
|
+
* (`confirm({ ok, cancel, actions })`) or a toast's action row
|
|
8
|
+
* (`toast({ actions: [...] })`).
|
|
8
9
|
*/
|
|
9
10
|
export type ActionButtonConfig = {
|
|
10
|
-
/** Button label
|
|
11
|
+
/** Button label; with `iconOnly`, the accessible name. */
|
|
11
12
|
text?: string;
|
|
12
13
|
/** Visual variant. */
|
|
13
14
|
variant?: ButtonVariantType;
|
|
@@ -20,8 +21,11 @@ export type ActionButtonConfig = {
|
|
|
20
21
|
'prepend:icon'?: IconType;
|
|
21
22
|
/** Icon rendered after the label. */
|
|
22
23
|
'append:icon'?: IconType;
|
|
23
|
-
/**
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Show the icon alone (`prepend:icon`, else `append:icon`); `text` stays
|
|
26
|
+
* the accessible name.
|
|
27
|
+
*/
|
|
28
|
+
iconOnly?: boolean;
|
|
25
29
|
/** Stretch the button to fill all available width. */
|
|
26
30
|
block?: boolean;
|
|
27
31
|
/**
|
|
@@ -30,3 +34,20 @@ export type ActionButtonConfig = {
|
|
|
30
34
|
*/
|
|
31
35
|
onClick?: () => unknown | Promise<unknown>;
|
|
32
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* An `ok` / `cancel` button: `false` (or unset) = none, `true` = the locale
|
|
39
|
+
* label, a string = the label, or the whole config.
|
|
40
|
+
*/
|
|
41
|
+
export type BbAction = boolean | string | ActionButtonConfig;
|
|
42
|
+
/** What config may set for `ok` / `cancel`: the look, never a handler. */
|
|
43
|
+
export type BbActionLook = Omit<ActionButtonConfig, 'onClick'>;
|
|
44
|
+
/** The `BbButton` props of an action (the config minus `onClick`). Internal. */
|
|
45
|
+
export declare const actionButtonProps: (action: ActionButtonConfig) => {
|
|
46
|
+
text: string | undefined;
|
|
47
|
+
'prepend:icon': string | undefined;
|
|
48
|
+
'append:icon': string | undefined;
|
|
49
|
+
iconOnly: boolean | undefined;
|
|
50
|
+
block: boolean | undefined;
|
|
51
|
+
size: import('./ResponsiveSize.js').Responsive<"sm" | "md" | "lg" | "xl" | "2xl" | "xs"> | undefined;
|
|
52
|
+
variant: ButtonVariantType | undefined;
|
|
53
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/types/ActionButton.ts
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
text: e.text,
|
|
4
|
+
"prepend:icon": e["prepend:icon"],
|
|
5
|
+
"append:icon": e["append:icon"],
|
|
6
|
+
iconOnly: e.iconOnly,
|
|
7
|
+
block: e.block,
|
|
8
|
+
size: e.size,
|
|
9
|
+
variant: e.variant
|
|
10
|
+
});
|
|
11
|
+
export { e as actionButtonProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BbActionLook } from '../types/ActionButton.js';
|
|
2
|
+
import { BbIsValidationError } from '../components/BbForm/recognizeValidation.js';
|
|
1
3
|
import { BbAlertProps } from '../components/BbAlert/types.js';
|
|
2
4
|
import { BbBadgeProps } from '../components/BbBadge/types.js';
|
|
3
5
|
import { BbButtonProps } from '../components/BbButton/types.js';
|
|
@@ -66,8 +68,8 @@ export declare const DEFAULTS_ALLOWLIST: {
|
|
|
66
68
|
readonly BbSelect: readonly ["labelMode", "validationMode", "autocomplete", "compact", "layout", "reverse", "adaptive"];
|
|
67
69
|
readonly BbSelectPopover: readonly ["adaptive", "compact"];
|
|
68
70
|
readonly BbSlider: readonly ["labelMode", "validationMode", "compact", "layout", "reverse"];
|
|
69
|
-
readonly BbSwitch: readonly ["validationMode"];
|
|
70
|
-
readonly BbSwitchGroup: readonly ["validationMode"];
|
|
71
|
+
readonly BbSwitch: readonly ["validationMode", "compact", "layout", "reverse", "inputPosition"];
|
|
72
|
+
readonly BbSwitchGroup: readonly ["validationMode", "compact", "layout", "listLayout", "itemLayout", "itemReverse", "reverse", "inputPosition", "block"];
|
|
71
73
|
readonly BbTable: readonly ["compact"];
|
|
72
74
|
readonly BbTabs: readonly ["compact", "block"];
|
|
73
75
|
readonly BbTag: readonly ["labelMode", "validationMode", "autocomplete", "compact", "layout", "reverse"];
|
|
@@ -76,12 +78,24 @@ export declare const DEFAULTS_ALLOWLIST: {
|
|
|
76
78
|
readonly BbTimePicker: readonly ["adaptive"];
|
|
77
79
|
readonly BbTimePickerInput: readonly ["labelMode", "validationMode", "autocomplete", "compact", "layout", "reverse", "adaptive"];
|
|
78
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* The config keys that style the `ok` / `cancel` buttons of every BbConfirm,
|
|
83
|
+
* BbDialog and BbOffCanvas (global styling only: they never turn a button
|
|
84
|
+
* on). `*Props`, like `offCanvasProps` / `itemProps`. One place for the names.
|
|
85
|
+
*/
|
|
86
|
+
export declare const ACTION_LOOK_KEYS: {
|
|
87
|
+
readonly ok: "okProps";
|
|
88
|
+
readonly cancel: "cancelProps";
|
|
89
|
+
};
|
|
79
90
|
/**
|
|
80
91
|
* Per-component settings that are not props: a host's default the component
|
|
81
92
|
* reads where no instance prop exists (`useToast` / `useConfirm` messages).
|
|
82
93
|
*/
|
|
83
94
|
export declare const COMPONENT_SETTINGS: {
|
|
84
|
-
readonly BbConfirm: readonly ["size"];
|
|
95
|
+
readonly BbConfirm: readonly ["size", "okProps", "cancelProps"];
|
|
96
|
+
readonly BbDialog: readonly ["okProps", "cancelProps"];
|
|
97
|
+
readonly BbOffCanvas: readonly ["okProps", "cancelProps"];
|
|
98
|
+
readonly BbForm: readonly ["isValidationError"];
|
|
85
99
|
readonly BbToast: readonly ["position"];
|
|
86
100
|
};
|
|
87
101
|
/**
|
|
@@ -191,11 +205,28 @@ interface VariantsOf {
|
|
|
191
205
|
BbToast: BbIconVariantNames;
|
|
192
206
|
BbTooltip: BbVariantNames;
|
|
193
207
|
}
|
|
208
|
+
/** The look of the `ok` / `cancel` buttons, by `ACTION_LOOK_KEYS`. */
|
|
209
|
+
type ActionLooks = Partial<Record<(typeof ACTION_LOOK_KEYS)[keyof typeof ACTION_LOOK_KEYS], BbActionLook>>;
|
|
194
210
|
/** Per component, the non-prop settings (`COMPONENT_SETTINGS`). */
|
|
195
211
|
interface SettingsOf {
|
|
196
212
|
/** Default maximum width of every confirm, a `BbDialog` size; a per-call `size` wins. */
|
|
197
213
|
BbConfirm: {
|
|
198
214
|
size?: keyof Sizes;
|
|
215
|
+
} & ActionLooks;
|
|
216
|
+
/** The look of `ok` / `cancel` where a dialog writes them (never turns one on). */
|
|
217
|
+
BbDialog: ActionLooks;
|
|
218
|
+
/** The look of `ok` / `cancel` where a panel writes them (never turns one on). */
|
|
219
|
+
BbOffCanvas: ActionLooks;
|
|
220
|
+
/**
|
|
221
|
+
* Which `@submit` rejections are a validation answer (not reported, the
|
|
222
|
+
* messages land on the fields). Unset: a 422 from axios / ofetch at
|
|
223
|
+
* `data.errors`, `data.detail` (FastAPI) or `data.violations` (API
|
|
224
|
+
* Platform); `false`: only a `BbValidationError`; a function replaces
|
|
225
|
+
* the default (return the messages, `true`, or anything else for a real
|
|
226
|
+
* error).
|
|
227
|
+
*/
|
|
228
|
+
BbForm: {
|
|
229
|
+
isValidationError?: BbIsValidationError;
|
|
199
230
|
};
|
|
200
231
|
/** The viewport corner a toast renders in when the call names none. */
|
|
201
232
|
BbToast: {
|
|
@@ -69,8 +69,8 @@ var e = [
|
|
|
69
69
|
"layout",
|
|
70
70
|
"reverse"
|
|
71
71
|
],
|
|
72
|
-
BbSwitch: ["validationMode"],
|
|
73
|
-
BbSwitchGroup:
|
|
72
|
+
BbSwitch: ["validationMode", ...t],
|
|
73
|
+
BbSwitchGroup: n,
|
|
74
74
|
BbTable: ["compact"],
|
|
75
75
|
BbTabs: ["compact", "block"],
|
|
76
76
|
BbTag: e,
|
|
@@ -83,9 +83,15 @@ var e = [
|
|
|
83
83
|
BbTimePicker: ["adaptive"],
|
|
84
84
|
BbTimePickerInput: [...e, "adaptive"]
|
|
85
85
|
}, i = {
|
|
86
|
-
|
|
86
|
+
ok: "okProps",
|
|
87
|
+
cancel: "cancelProps"
|
|
88
|
+
}, a = [i.ok, i.cancel], o = {
|
|
89
|
+
BbConfirm: ["size", ...a],
|
|
90
|
+
BbDialog: a,
|
|
91
|
+
BbOffCanvas: a,
|
|
92
|
+
BbForm: ["isValidationError"],
|
|
87
93
|
BbToast: ["position"]
|
|
88
|
-
},
|
|
94
|
+
}, s = [
|
|
89
95
|
"adaptive",
|
|
90
96
|
"labelMode",
|
|
91
97
|
"validationMode",
|
|
@@ -98,18 +104,18 @@ var e = [
|
|
|
98
104
|
"reverse",
|
|
99
105
|
"inputPosition",
|
|
100
106
|
"block"
|
|
101
|
-
],
|
|
107
|
+
], c = [
|
|
102
108
|
"requiredAsterisk",
|
|
103
109
|
"autoDisableWritingThreshold",
|
|
104
110
|
"popoverOffset"
|
|
105
|
-
],
|
|
111
|
+
], l = [
|
|
106
112
|
"BbAvatar",
|
|
107
113
|
"BbDialog",
|
|
108
114
|
"BbIcon",
|
|
109
115
|
"BbOffCanvas",
|
|
110
116
|
"BbRating"
|
|
111
|
-
],
|
|
117
|
+
], u = {
|
|
112
118
|
BbTextarea: ["nullValue"],
|
|
113
119
|
BbTextInput: ["nullValue"]
|
|
114
120
|
};
|
|
115
|
-
export {
|
|
121
|
+
export { i as ACTION_LOOK_KEYS, s as ALL_PROPS, c as ALL_SETTINGS, o as COMPONENT_SETTINGS, r as DEFAULTS_ALLOWLIST, u as GLOBAL_ONLY_DEFAULTS, l as SIZE_MAP_COMPONENTS };
|
package/dist/types/ItemPath.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ type StepInto<V, K extends string> = Present<V> extends ReadonlyArray<infer E> ?
|
|
|
11
11
|
type PreviewPaths<T> = 0 extends 1 & T ? string : Extract<NestedPaths<Present<T>>, keyof Present<T> | `${keyof Present<T> & string}.${string}`>;
|
|
12
12
|
/** The paths valid at the segment `P` has reached: only that path is walked. */
|
|
13
13
|
export type ItemPath<T, P extends string> = P extends `${infer H}.${infer R}` ? H extends KeysOf<T> ? `${H}.${ItemPath<StepInto<T, H>, R>}` : KeysOf<T> : KeysOf<T>;
|
|
14
|
-
|
|
14
|
+
/** The value read at `P`, nullish where any step on the way may be. */
|
|
15
|
+
export type PathValue<T, P extends string> = P extends `${infer H}.${infer R}` ? PathValue<StepInto<T, H>, R> | Nullish<T> : StepInto<T, P> | Nullish<T>;
|
|
15
16
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
16
17
|
type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
17
18
|
/**
|
|
@@ -24,10 +25,38 @@ type DefaultOptionValue<T> = T extends {
|
|
|
24
25
|
value: infer V;
|
|
25
26
|
} ? V : T;
|
|
26
27
|
/** The value an option yields: the same chain as the runtime's. */
|
|
27
|
-
/** The value an option yields: the same chain as the runtime's. */
|
|
28
28
|
export type OptionValueOf<T, A> = [string] extends [A] ? any : IsAny<T> extends true ? any : [A] extends [undefined] ? DefaultOptionValue<T> : A extends (...args: never[]) => infer R ? R : A extends string ? T extends Primitive ? T : PathValue<T, A> : never;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The value a table row yields through `item-value`: the same chain as the
|
|
31
|
+
* runtime's `getItemValue`, which keeps the whole row when it is unset (a
|
|
32
|
+
* table never reads an own `value`, unlike an option).
|
|
33
|
+
*/
|
|
34
|
+
export type TableValueOf<T, A> = [A] extends [undefined] ? IsAny<T> extends true ? any : T : OptionValueOf<T, A>;
|
|
35
|
+
/**
|
|
36
|
+
* `boolean` when not inferred (`M` at its default `D`), so a preset can still
|
|
37
|
+
* set `multiple`. `D` is the component's own default: `true` on the groups.
|
|
38
|
+
*/
|
|
39
|
+
export type MultipleInput<M, D extends boolean = false> = [M] extends [D] ? boolean : M;
|
|
31
40
|
/** A `multiple` only known at run time leaves the model untyped. */
|
|
32
41
|
export type SelectModelOf<V, M> = [boolean] extends [M] ? any : [M] extends [true] ? V[] : V;
|
|
42
|
+
/**
|
|
43
|
+
* Whether a written column key names a field: dotless and a key, or dotted
|
|
44
|
+
* with a key first. Anything else is a virtual column (a formatter or a slot
|
|
45
|
+
* fills it). Rows with an index signature have every key.
|
|
46
|
+
*/
|
|
47
|
+
type IsFieldKey<T, K extends string> = string extends KeysOf<T> ? false : K extends `${infer H}.${string}` ? H extends KeysOf<T> ? true : false : K extends KeysOf<T> ? true : false;
|
|
48
|
+
/**
|
|
49
|
+
* What a written column key may be: a dotted field key is walked to its end,
|
|
50
|
+
* so a typo past a real field fails; any other key passes (a dotless key may
|
|
51
|
+
* name a virtual column). A dotless key stays non-conditional on `T`, so a
|
|
52
|
+
* generic wrapper's own inline columns still pass.
|
|
53
|
+
*/
|
|
54
|
+
export type ColumnKeyInput<T, K extends string> = K extends `${string}.${string}` ? IsAny<T> extends true ? K : IsFieldKey<T, K> extends true ? K extends ItemPath<T, K> ? K : ItemPath<T, K> : K : K;
|
|
55
|
+
/**
|
|
56
|
+
* The cell a formatter reads: the field's value, `any` for a virtual key.
|
|
57
|
+
* Distributed over `T`, so a generic wrapper's `T` reads through its
|
|
58
|
+
* constraint instead of staying unresolved.
|
|
59
|
+
*/
|
|
60
|
+
export type ColumnContentOf<T, K extends string> = T extends unknown ? ColumnContentOfRow<T, K> : never;
|
|
61
|
+
type ColumnContentOfRow<T, K extends string> = IsAny<T> extends true ? any : IsFieldKey<T, K> extends true ? PathValue<T, K> : any;
|
|
33
62
|
export {};
|
|
@@ -18,7 +18,7 @@ import { TooltipVariantRegistry } from './TooltipVariant.js';
|
|
|
18
18
|
* error here and a build error in the plugin.
|
|
19
19
|
*/
|
|
20
20
|
export interface BbPtComponentMap {
|
|
21
|
-
BbAccordion?: PtDataMap<'root' | 'header' | 'title' | 'icon' | 'panel', 'open'>;
|
|
21
|
+
BbAccordion?: PtDataMap<'root' | 'header' | 'title' | 'icon' | 'panel', 'disabled' | 'open'>;
|
|
22
22
|
BbAlert?: PtDataMap<'root' | 'icon' | 'title' | 'text' | 'close', never> & PtVariantDataMap<'root' | 'icon' | 'title' | 'text' | 'close', keyof AlertVariantRegistry>;
|
|
23
23
|
BbAsterisk?: PtDataMap<'root', never>;
|
|
24
24
|
BbAvatar?: PtDataMap<'root' | 'icon', never>;
|
|
@@ -1,4 +1,91 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toRaw as e } from "vue";
|
|
2
2
|
// src/utilities/functions/hash.ts
|
|
3
|
-
var t = (
|
|
4
|
-
|
|
3
|
+
var t = () => [
|
|
4
|
+
1083885398,
|
|
5
|
+
-537806866,
|
|
6
|
+
1531344004,
|
|
7
|
+
-1003682756
|
|
8
|
+
], n = (e, t) => {
|
|
9
|
+
let [n, r, i, a] = e;
|
|
10
|
+
for (let e = 0; e < t.length; e++) {
|
|
11
|
+
let o = t.charCodeAt(e);
|
|
12
|
+
n = Math.imul(n ^ o, 2654435761), r = Math.imul(r ^ o, 1597334677), i = Math.imul(i ^ o, 2246822519), a = Math.imul(a ^ o, 3266489917);
|
|
13
|
+
}
|
|
14
|
+
e[0] = n, e[1] = r, e[2] = i, e[3] = a;
|
|
15
|
+
}, r = (e, t) => (e = Math.imul(e ^ e >>> 16, 2246822507), e ^= Math.imul(t ^ t >>> 13, 3266489909), t = Math.imul(t ^ t >>> 16, 2246822507), t ^= Math.imul(e ^ e >>> 13, 3266489909), 4294967296 * (2097151 & t) + (e >>> 0)), i = (e) => e.toString(36).padStart(11, "0"), a = (e) => e === null || Object.getPrototypeOf(e) === null, o = (e) => Object.keys(e).sort(), s = (e) => {
|
|
16
|
+
let t = e.valueOf;
|
|
17
|
+
if (typeof t == "function" && t !== Object.prototype.valueOf) try {
|
|
18
|
+
let n = t.call(e);
|
|
19
|
+
if (n !== e && (typeof n != "object" || !n)) return { value: n };
|
|
20
|
+
} catch {}
|
|
21
|
+
}, c = (e) => typeof e.toString == "function" && e.toString !== Object.prototype.toString, l = (t, r, i) => {
|
|
22
|
+
switch (typeof r) {
|
|
23
|
+
case "undefined": return n(t, "u");
|
|
24
|
+
case "boolean": return n(t, r ? "t" : "f");
|
|
25
|
+
case "number": return n(t, `d${Object.is(r, -0) ? "-0" : String(r)};`);
|
|
26
|
+
case "bigint": return n(t, `g${String(r)};`);
|
|
27
|
+
case "string": return n(t, `s${r.length}:`), n(t, r);
|
|
28
|
+
case "symbol": {
|
|
29
|
+
let e = String(r.description);
|
|
30
|
+
return n(t, `y${e.length}:${e}`);
|
|
31
|
+
}
|
|
32
|
+
case "function": {
|
|
33
|
+
let e = String(r);
|
|
34
|
+
return n(t, `F${e.length}:${e}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (r === null) return n(t, "n");
|
|
38
|
+
let a = e(r), o = i.indexOf(a);
|
|
39
|
+
if (o !== -1) return n(t, `R${o};`);
|
|
40
|
+
i.push(a);
|
|
41
|
+
try {
|
|
42
|
+
f(t, a, i);
|
|
43
|
+
} finally {
|
|
44
|
+
i.pop();
|
|
45
|
+
}
|
|
46
|
+
}, u = (e, t) => n(e, `${t.length}:${t}`), d = (e, t) => [...e].map((e) => m(e, t)).sort(), f = (e, t, r) => {
|
|
47
|
+
if (Array.isArray(t)) {
|
|
48
|
+
n(e, `A${t.length}[`);
|
|
49
|
+
for (let n of t) l(e, n, r);
|
|
50
|
+
return n(e, "]");
|
|
51
|
+
}
|
|
52
|
+
if (t instanceof Date) return n(e, `D${t.getTime()};`);
|
|
53
|
+
if (t instanceof Map) {
|
|
54
|
+
let i = [...t.entries()].map(([e, t]) => `${m(e, r)}=${m(t, r)}`).sort();
|
|
55
|
+
return n(e, `M${i.length}{${i.join(",")}}`);
|
|
56
|
+
}
|
|
57
|
+
if (t instanceof Set) {
|
|
58
|
+
let i = d(t, r);
|
|
59
|
+
return n(e, `S${i.length}{${i.join(",")}}`);
|
|
60
|
+
}
|
|
61
|
+
if (typeof Blob < "u" && t instanceof Blob) return n(e, "B"), l(e, t.name ?? null, r), n(e, `${t.size};`), l(e, t.type, r), n(e, `${t.lastModified ?? ""};`);
|
|
62
|
+
if (a(Object.getPrototypeOf(t))) return p(e, t, r);
|
|
63
|
+
n(e, "C"), u(e, String(t.constructor?.name ?? ""));
|
|
64
|
+
let i = s(t);
|
|
65
|
+
return i ? (n(e, "v"), l(e, i.value, r)) : o(t).length === 0 && c(t) ? (n(e, "x"), l(e, String(t), r)) : p(e, t, r);
|
|
66
|
+
}, p = (e, t, r) => {
|
|
67
|
+
let i = o(t);
|
|
68
|
+
n(e, `O${i.length}{`);
|
|
69
|
+
for (let n of i) l(e, n, r), l(e, t[n], r);
|
|
70
|
+
n(e, "}");
|
|
71
|
+
}, m = (e, n) => {
|
|
72
|
+
let a = t();
|
|
73
|
+
return l(a, e, n), i(r(a[0], a[1])) + i(r(a[2], a[3]));
|
|
74
|
+
}, h = /^[A-Za-z0-9_-]{0,64}$/, g = (e) => {
|
|
75
|
+
if (Object.is(e, -0)) return "m0";
|
|
76
|
+
let t = String(e);
|
|
77
|
+
return /[.+-]/.test(t) ? t.replace(/[.+-]/g, (e) => e === "." ? "p" : e === "-" ? "m" : "") : t;
|
|
78
|
+
}, _ = (e, t = "bb") => {
|
|
79
|
+
switch (typeof e) {
|
|
80
|
+
case "number": return `${t}n${g(e)}`;
|
|
81
|
+
case "boolean": return `${t}${e ? "t" : "f"}`;
|
|
82
|
+
case "undefined": return `${t}u`;
|
|
83
|
+
case "bigint": return `${t}g${String(e).replace("-", "m")}`;
|
|
84
|
+
case "string":
|
|
85
|
+
if (h.test(e)) return `${t}s${e}`;
|
|
86
|
+
break;
|
|
87
|
+
default: if (e === null) return `${t}z`;
|
|
88
|
+
}
|
|
89
|
+
return `${t}h${m(e, [])}`;
|
|
90
|
+
};
|
|
91
|
+
export { c as hasCustomToString, _ as hash, s as primitiveValueOf };
|
|
@@ -1,4 +1,62 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hasCustomToString as e, primitiveValueOf as t } from "./hash.js";
|
|
2
|
+
import { toRaw as n } from "vue";
|
|
2
3
|
// src/utilities/functions/isEqual.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
4
|
+
var r = (e) => e === null || Object.getPrototypeOf(e) === null, i = (e, t) => a(e, t, []), a = (e, t, r) => {
|
|
5
|
+
if (Object.is(e, t)) return !0;
|
|
6
|
+
if (e === null || t === null || typeof e != "object" || typeof t != "object") return !1;
|
|
7
|
+
let i = n(e), a = n(t);
|
|
8
|
+
if (i === a) return !0;
|
|
9
|
+
for (let [e, t] of r) if (e === i && t === a) return !0;
|
|
10
|
+
r.push([i, a]);
|
|
11
|
+
try {
|
|
12
|
+
return o(i, a, r);
|
|
13
|
+
} finally {
|
|
14
|
+
r.pop();
|
|
15
|
+
}
|
|
16
|
+
}, o = (n, i, o) => {
|
|
17
|
+
if (Object.getPrototypeOf(n) !== Object.getPrototypeOf(i)) return !r(Object.getPrototypeOf(n)) || !r(Object.getPrototypeOf(i)) ? !1 : s(n, i, o);
|
|
18
|
+
if (Array.isArray(n)) {
|
|
19
|
+
let e = i;
|
|
20
|
+
if (n.length !== e.length) return !1;
|
|
21
|
+
for (let t = 0; t < n.length; t++) if (!a(n[t], e[t], o)) return !1;
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
if (n instanceof Date) return Object.is(n.getTime(), i.getTime());
|
|
25
|
+
if (n instanceof Map) return c(n, i, o);
|
|
26
|
+
if (n instanceof Set) return l(n, i, o);
|
|
27
|
+
if (typeof Blob < "u" && n instanceof Blob) {
|
|
28
|
+
let e = n, t = i;
|
|
29
|
+
return e.name === t.name && e.size === t.size && e.type === t.type && e.lastModified === t.lastModified;
|
|
30
|
+
}
|
|
31
|
+
if (r(Object.getPrototypeOf(n))) return s(n, i, o);
|
|
32
|
+
let u = t(n);
|
|
33
|
+
if (u) {
|
|
34
|
+
let e = t(i);
|
|
35
|
+
return !!e && Object.is(u.value, e.value);
|
|
36
|
+
}
|
|
37
|
+
return Object.keys(n).length === 0 && Object.keys(i).length === 0 && e(n) ? String(n) === String(i) : s(n, i, o);
|
|
38
|
+
}, s = (e, t, n) => {
|
|
39
|
+
let r = Object.keys(e);
|
|
40
|
+
if (r.length !== Object.keys(t).length) return !1;
|
|
41
|
+
for (let i of r) if (!Object.prototype.hasOwnProperty.call(t, i) || !a(e[i], t[i], n)) return !1;
|
|
42
|
+
return !0;
|
|
43
|
+
}, c = (e, t, n) => {
|
|
44
|
+
if (e.size !== t.size) return !1;
|
|
45
|
+
let r = [...t.entries()];
|
|
46
|
+
for (let [i, o] of e) {
|
|
47
|
+
let e = t.has(i) ? r.findIndex(([e]) => e === i || Object.is(e, i)) : r.findIndex(([e]) => a(e, i, n));
|
|
48
|
+
if (e === -1 || !a(o, r[e][1], n)) return !1;
|
|
49
|
+
r.splice(e, 1);
|
|
50
|
+
}
|
|
51
|
+
return !0;
|
|
52
|
+
}, l = (e, t, n) => {
|
|
53
|
+
if (e.size !== t.size) return !1;
|
|
54
|
+
let r = [...t];
|
|
55
|
+
for (let i of e) {
|
|
56
|
+
let e = t.has(i) ? r.findIndex((e) => e === i || Object.is(e, i)) : r.findIndex((e) => a(e, i, n));
|
|
57
|
+
if (e === -1) return !1;
|
|
58
|
+
r.splice(e, 1);
|
|
59
|
+
}
|
|
60
|
+
return !0;
|
|
61
|
+
};
|
|
62
|
+
export { i as isEqual };
|
|
@@ -9,7 +9,7 @@ function r() {
|
|
|
9
9
|
if (process.env.NODE_ENV === "production" || n || typeof window > "u") return;
|
|
10
10
|
n = !0;
|
|
11
11
|
let r = () => {
|
|
12
|
-
let n = t("3.0.0-beta.
|
|
12
|
+
let n = t("3.0.0-beta.73", getComputedStyle(document.documentElement).getPropertyValue(e));
|
|
13
13
|
n && console.warn(n);
|
|
14
14
|
};
|
|
15
15
|
document.readyState === "complete" ? setTimeout(r, 0) : window.addEventListener("load", r, { once: !0 });
|
package/dist/vite.js
CHANGED
package/llms.txt
CHANGED
|
@@ -72,7 +72,7 @@ Note: the `dist/` paths below resolve inside the installed `bitboss-ui` package
|
|
|
72
72
|
- [Migration v2→v3: BbToast and toast()](dist/ai/guides/migration/components/bb-toast.md): Host placement becomes position with a corner-based value set; toast() options rewritten (variant, duration, actions, portal).
|
|
73
73
|
- [Migration v2→v3: BbTooltip](dist/ai/guides/migration/components/bb-tooltip.md): timeout renamed to delay; theme replaced by typed variant; hideArrow is now a declared prop; block removed; modelValue is new.
|
|
74
74
|
- [Migration v2→v3: BbTree](dist/ai/guides/migration/components/bb-tree.md): Item model rewritten — payload moves under meta, open becomes expanded, identifier becomes itemValue, expansion is a v-model.
|
|
75
|
-
- [Migration v2→v3: confirm() / useConfirm](dist/ai/guides/migration/components/use-confirm.md): yesText/onYes/noText/onNo collapse into
|
|
75
|
+
- [Migration v2→v3: confirm() / useConfirm](dist/ai/guides/migration/components/use-confirm.md): yes/yesText/onYes and no/noText/onNo collapse into ok/cancel configs, actions becomes an array-or-false, theme→variant, timeout→duration, autoClose flips to default-true, labels are localized, footer buttons default md.
|
|
76
76
|
- [Migration v2→v3: useBroadcastChannelInstance](dist/ai/guides/migration/components/use-broadcast-channel-instance.md): Removed — cross-tab messaging is not a UI concern; use useBroadcastChannel from @vueuse/core.
|
|
77
77
|
- [Page Shell](dist/ai/guides/page-shell.md): App-side page layout — topbar, content, and a right details sidebar driven by a stack-based context (push a record to peek it, pop to go back). The implementation ships in the per-platform Layout Scaffold recipe; this guide covers when and how to use it.
|
|
78
78
|
- [Passthrough (pt)](dist/ai/guides/passthrough.md): Reach a named part of a component — its icon, its field box, a table row, a menu entry — with a class list, a style or an attribute, optionally only while a named state is on. One grammar for every component, typed and linted. A pt value typed in <script> (a const, a preset, a wrapper's prop, a split components map) uses <Component>Props['pt'] and satisfies BbComponentsMap; the Pt* types are not exported.
|
|
@@ -128,7 +128,7 @@ Open one platform file only (`vue` / `nuxt` / `inertia`). Full intent map: AI Ro
|
|
|
128
128
|
- [useBbOffCanvas](dist/ai/composables/useBbOffCanvas.md): Open, close and read a BbOffCanvas by id, with typed data, no v-model; the code twin of v-bb-off-canvas.
|
|
129
129
|
- [useBbTable](dist/ai/composables/useBbTable.md): Drive and read a BbTable's state (selection, sort, column order, highlight, pagination) from anywhere by id — no prop drilling, no template refs.
|
|
130
130
|
- [useBbTabs](dist/ai/composables/useBbTabs.md): Read and drive a BbTabs/BbTabsRoot group from anywhere by id — writable current tab, goTo/select, no template refs.
|
|
131
|
-
- [useConfirm](dist/ai/composables/useConfirm.md): Promise-based confirm dialogs — await the user's
|
|
131
|
+
- [useConfirm](dist/ai/composables/useConfirm.md): Promise-based confirm dialogs — await the user's OK/Cancel, with ok/cancel button configs, async onClick busy states, and portal content. The plugin renders the <BbHost /> that shows them.
|
|
132
132
|
- [useCountdown](dist/ai/composables/useCountdown.md): Reactive countdown timer with start, pause, reset, and formatted time output.
|
|
133
133
|
- [useId](dist/ai/composables/useId.md): Generate a unique, hydration-safe DOM id (prefixed bb-ui-) for aria wiring in custom markup.
|
|
134
134
|
- [useMobile](dist/ai/composables/useMobile.md): Reactive isMobile flag using the same viewport breakpoint the library's adaptive components use.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitboss-ui",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.73",
|
|
4
4
|
"description": "Vue 3 component library by BitBoss: forms, selects, layout, overlays, and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"heroicons": "^2.2.0",
|
|
209
209
|
"husky": "^9.1.7",
|
|
210
210
|
"inertia2-vue3": "npm:@inertiajs/vue3@^2.3.10",
|
|
211
|
-
"joi": "^18.2
|
|
211
|
+
"joi": "^18.3.2",
|
|
212
212
|
"lightningcss": "^1.32.0",
|
|
213
213
|
"lint-staged": "^17.0.4",
|
|
214
214
|
"nuxt": "^4.6.3",
|
|
@@ -255,7 +255,15 @@
|
|
|
255
255
|
"!scripts/lib/fixture-library.mjs",
|
|
256
256
|
"!scripts/lib/gate.mjs",
|
|
257
257
|
"!scripts/lib/wall-steps.mjs",
|
|
258
|
+
"!scripts/lib/wall-stats.mjs",
|
|
259
|
+
"!scripts/lib/step-pool.mjs",
|
|
260
|
+
"!scripts/lib/spotlight.mjs",
|
|
261
|
+
"!scripts/lib/self-tests.mjs",
|
|
258
262
|
"!scripts/lib/gate-plan.mjs",
|
|
263
|
+
"!scripts/lib/scope-plan.mjs",
|
|
264
|
+
"!scripts/lib/scope-graph.mjs",
|
|
265
|
+
"!scripts/lib/browser-chunks.mjs",
|
|
266
|
+
"!scripts/lib/gregorian-files.mjs",
|
|
259
267
|
"!scripts/lib/inertia-helpers.mjs",
|
|
260
268
|
"!scripts/lib/provenance.mjs",
|
|
261
269
|
"!scripts/lib/internal-notes.mjs",
|
|
@@ -279,7 +287,9 @@
|
|
|
279
287
|
"!scripts/lib/guide-claims.mjs",
|
|
280
288
|
"!scripts/lib/manifest-pointers.mjs",
|
|
281
289
|
"!scripts/lib/public-type-exports.mjs",
|
|
290
|
+
"!scripts/lib/heavy-admission.mjs",
|
|
282
291
|
"!scripts/lib/quiet-gate.mjs",
|
|
292
|
+
"!scripts/lib/timing-window-command.mjs",
|
|
283
293
|
"!scripts/lib/recipe-excerpts.mjs",
|
|
284
294
|
"!scripts/lib/swap-noun.mjs",
|
|
285
295
|
"!scripts/lib/token-color-mix.mjs"
|