bitboss-ui 3.0.0-beta.47 → 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 +167 -14
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +28 -8
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbCollapsible.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +8 -0
- package/dist/ai/BbConfirmPortal.md +1 -1
- 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 +19 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +47 -40
- package/dist/ai/BbPopoverPortal.md +1 -1
- 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 +107 -106
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +3 -3
- package/dist/ai/BbTooltip.md +29 -13
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/CommonPopover.md +1 -1
- package/dist/ai/changelog.json +297 -6
- package/dist/ai/components.json +50 -45
- 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 +45 -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 +143 -28
- package/dist/ai/guides/migration/v3-beta-css-classes.md +29 -27
- 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 +4 -4
- 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/BbAccordion.json +1 -1
- 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 +2 -1
- package/dist/ai/manifest/components/BbButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCollapsible.json +1 -1
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.json +5 -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/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +2 -2
- 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 +2 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +2 -2
- 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/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +8 -7
- 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 +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +2 -2
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +5 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +8 -5
- package/dist/ai/manifest/types.wrapper.json +1 -0
- 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 +14 -10
- package/dist/ai/source/BbBadgeButton.md +17 -12
- 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 +84 -38
- 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/BbCollapsible.md +2 -1
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbColorPalette.md +2 -1
- package/dist/ai/source/BbConfirm.md +18 -1
- package/dist/ai/source/BbConfirmPortal.md +20 -6
- 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 +231 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +127 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbHoverCard.md +30 -3
- package/dist/ai/source/BbHoverCardPortal.md +18 -3
- 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 +185 -12
- package/dist/ai/source/BbPopoverPortal.md +30 -3
- 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 +30 -24
- package/dist/ai/source/BbTabsList.md +29 -23
- package/dist/ai/source/BbTabsPanels.md +29 -23
- package/dist/ai/source/BbTabsRoot.md +28 -22
- 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 +88 -11
- 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 +8 -1
- 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 +88 -70
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +12 -4
- package/dist/components/BbButton/types.js +5 -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/BbCollapsible/types.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbColorPalette/types.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -5
- package/dist/components/BbConfirm/types.d.ts +15 -0
- 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 +120 -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/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +145 -142
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/types.d.ts +14 -1
- 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 -162
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -2
- package/dist/components/BbPopover/types.d.ts +26 -1
- 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 +28 -22
- 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 +99 -86
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +10 -3
- 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/CommonPopover/types.d.ts +2 -1
- 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/directives/directivePortal.d.ts +13 -7
- package/dist/directives/directivePortal.js +1 -4
- 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 +4 -4
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1914 -1714
- package/dist/llms-medium.txt +76 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +1 -1
- package/dist/types/ptComponentMap.d.ts +2 -2
- 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 +17 -4
- package/scripts/lib/eslint-plugin.d.ts +9 -1
- package/scripts/lib/eslint-plugin.mjs +256 -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/portal-names.mjs +458 -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/unimported-components.mjs +5 -2
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The locale table (owner ruling 2026-10-07): every locale the library
|
|
3
|
+
* accepts, the dictionary it reads, its BCP 47 tag and its Day.js pack.
|
|
4
|
+
*
|
|
5
|
+
* - A key is the locale's canonical spelling: the bare language where the
|
|
6
|
+
* language has one dictionary (`it` is `it-IT`, CLDR's likely subtags), the
|
|
7
|
+
* full code for a region (`fr-CA`) and for a language with several
|
|
8
|
+
* dictionaries (`pt-BR` / `pt-PT`, `zh-CN` / `zh-TW` / `zh-HK`; `es-MX`
|
|
9
|
+
* next to `es`).
|
|
10
|
+
* - Regions share their language's dictionary and differ in formats only
|
|
11
|
+
* (dates, numbers, week start). A region is on the list only where that
|
|
12
|
+
* dictionary's words are right; `en-GB` and `de-CH` read spelling variants
|
|
13
|
+
* (`colour`, `ss` for `ß`) for that reason, and `es-MX` / `zh-HK` have
|
|
14
|
+
* their own (Mexican key names and a.m. / p.m.; Hong Kong's 選單, 對話框
|
|
15
|
+
* and day-first dates).
|
|
16
|
+
* - Input is case-insensitive and takes aliases (`localeKeyOf`): the full
|
|
17
|
+
* code of a default region (`it-IT`, `en-US`), the bare `pt` / `zh` and the
|
|
18
|
+
* pre-table spelling `zh-cn`.
|
|
19
|
+
*
|
|
20
|
+
* Runtime-light by design: no dictionary is imported here (see `./index.ts`).
|
|
21
|
+
*/
|
|
22
|
+
/** A dictionary file in `./locales/` (`<id>.json`). */
|
|
23
|
+
export type DictionaryId = 'cs' | 'da' | 'de' | 'de-CH' | 'el' | 'en' | 'en-GB' | 'es' | 'es-MX' | 'fi' | 'fr' | 'hu' | 'it' | 'ja' | 'ko' | 'nb' | 'nl' | 'pl' | 'pt-BR' | 'pt-PT' | 'ro' | 'ru' | 'sv' | 'tr' | 'uk' | 'zh-CN' | 'zh-HK' | 'zh-TW';
|
|
24
|
+
export interface LocaleRow {
|
|
25
|
+
/** The BCP 47 tag `Intl` formats with. */
|
|
26
|
+
tag: string;
|
|
27
|
+
/** The dictionary its strings come from. */
|
|
28
|
+
dictionary: DictionaryId;
|
|
29
|
+
/** The Day.js pack (`dayjs/locale/<pack>`); `null` = Day.js core (US English). */
|
|
30
|
+
dayjs: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The first day of the week (0 = Sunday) where the pack disagrees with
|
|
33
|
+
* CLDR: the pack decides otherwise (Q60.13).
|
|
34
|
+
*/
|
|
35
|
+
weekStart?: number;
|
|
36
|
+
}
|
|
37
|
+
/** Every accepted locale, by canonical key. */
|
|
38
|
+
export declare const LOCALE_TABLE: {
|
|
39
|
+
readonly cs: {
|
|
40
|
+
readonly tag: "cs-CZ";
|
|
41
|
+
readonly dictionary: "cs";
|
|
42
|
+
readonly dayjs: "cs";
|
|
43
|
+
};
|
|
44
|
+
readonly da: {
|
|
45
|
+
readonly tag: "da-DK";
|
|
46
|
+
readonly dictionary: "da";
|
|
47
|
+
readonly dayjs: "da";
|
|
48
|
+
};
|
|
49
|
+
readonly de: {
|
|
50
|
+
readonly tag: "de-DE";
|
|
51
|
+
readonly dictionary: "de";
|
|
52
|
+
readonly dayjs: "de";
|
|
53
|
+
};
|
|
54
|
+
readonly 'de-AT': {
|
|
55
|
+
readonly tag: "de-AT";
|
|
56
|
+
readonly dictionary: "de";
|
|
57
|
+
readonly dayjs: "de-at";
|
|
58
|
+
};
|
|
59
|
+
readonly 'de-CH': {
|
|
60
|
+
readonly tag: "de-CH";
|
|
61
|
+
readonly dictionary: "de-CH";
|
|
62
|
+
readonly dayjs: "de-ch";
|
|
63
|
+
};
|
|
64
|
+
readonly el: {
|
|
65
|
+
readonly tag: "el-GR";
|
|
66
|
+
readonly dictionary: "el";
|
|
67
|
+
readonly dayjs: "el";
|
|
68
|
+
};
|
|
69
|
+
readonly en: {
|
|
70
|
+
readonly tag: "en-US";
|
|
71
|
+
readonly dictionary: "en";
|
|
72
|
+
readonly dayjs: null;
|
|
73
|
+
};
|
|
74
|
+
readonly 'en-AU': {
|
|
75
|
+
readonly tag: "en-AU";
|
|
76
|
+
readonly dictionary: "en-GB";
|
|
77
|
+
readonly dayjs: "en-au";
|
|
78
|
+
};
|
|
79
|
+
readonly 'en-CA': {
|
|
80
|
+
readonly tag: "en-CA";
|
|
81
|
+
readonly dictionary: "en-GB";
|
|
82
|
+
readonly dayjs: "en-ca";
|
|
83
|
+
};
|
|
84
|
+
readonly 'en-GB': {
|
|
85
|
+
readonly tag: "en-GB";
|
|
86
|
+
readonly dictionary: "en-GB";
|
|
87
|
+
readonly dayjs: "en-gb";
|
|
88
|
+
};
|
|
89
|
+
readonly 'en-IE': {
|
|
90
|
+
readonly tag: "en-IE";
|
|
91
|
+
readonly dictionary: "en-GB";
|
|
92
|
+
readonly dayjs: "en-ie";
|
|
93
|
+
};
|
|
94
|
+
readonly es: {
|
|
95
|
+
readonly tag: "es-ES";
|
|
96
|
+
readonly dictionary: "es";
|
|
97
|
+
readonly dayjs: "es";
|
|
98
|
+
};
|
|
99
|
+
readonly 'es-MX': {
|
|
100
|
+
readonly tag: "es-MX";
|
|
101
|
+
readonly dictionary: "es-MX";
|
|
102
|
+
readonly dayjs: "es-mx";
|
|
103
|
+
};
|
|
104
|
+
readonly fi: {
|
|
105
|
+
readonly tag: "fi-FI";
|
|
106
|
+
readonly dictionary: "fi";
|
|
107
|
+
readonly dayjs: "fi";
|
|
108
|
+
};
|
|
109
|
+
readonly fr: {
|
|
110
|
+
readonly tag: "fr-FR";
|
|
111
|
+
readonly dictionary: "fr";
|
|
112
|
+
readonly dayjs: "fr";
|
|
113
|
+
};
|
|
114
|
+
readonly 'fr-BE': {
|
|
115
|
+
readonly tag: "fr-BE";
|
|
116
|
+
readonly dictionary: "fr";
|
|
117
|
+
readonly dayjs: "fr";
|
|
118
|
+
};
|
|
119
|
+
readonly 'fr-CA': {
|
|
120
|
+
readonly tag: "fr-CA";
|
|
121
|
+
readonly dictionary: "fr";
|
|
122
|
+
readonly dayjs: "fr-ca";
|
|
123
|
+
};
|
|
124
|
+
readonly 'fr-CH': {
|
|
125
|
+
readonly tag: "fr-CH";
|
|
126
|
+
readonly dictionary: "fr";
|
|
127
|
+
readonly dayjs: "fr-ch";
|
|
128
|
+
};
|
|
129
|
+
readonly hu: {
|
|
130
|
+
readonly tag: "hu-HU";
|
|
131
|
+
readonly dictionary: "hu";
|
|
132
|
+
readonly dayjs: "hu";
|
|
133
|
+
};
|
|
134
|
+
readonly it: {
|
|
135
|
+
readonly tag: "it-IT";
|
|
136
|
+
readonly dictionary: "it";
|
|
137
|
+
readonly dayjs: "it";
|
|
138
|
+
};
|
|
139
|
+
readonly 'it-CH': {
|
|
140
|
+
readonly tag: "it-CH";
|
|
141
|
+
readonly dictionary: "it";
|
|
142
|
+
readonly dayjs: "it-ch";
|
|
143
|
+
};
|
|
144
|
+
readonly ja: {
|
|
145
|
+
readonly tag: "ja-JP";
|
|
146
|
+
readonly dictionary: "ja";
|
|
147
|
+
readonly dayjs: "ja";
|
|
148
|
+
};
|
|
149
|
+
readonly ko: {
|
|
150
|
+
readonly tag: "ko-KR";
|
|
151
|
+
readonly dictionary: "ko";
|
|
152
|
+
readonly dayjs: "ko";
|
|
153
|
+
};
|
|
154
|
+
readonly nb: {
|
|
155
|
+
readonly tag: "nb-NO";
|
|
156
|
+
readonly dictionary: "nb";
|
|
157
|
+
readonly dayjs: "nb";
|
|
158
|
+
};
|
|
159
|
+
readonly nl: {
|
|
160
|
+
readonly tag: "nl-NL";
|
|
161
|
+
readonly dictionary: "nl";
|
|
162
|
+
readonly dayjs: "nl";
|
|
163
|
+
};
|
|
164
|
+
readonly 'nl-BE': {
|
|
165
|
+
readonly tag: "nl-BE";
|
|
166
|
+
readonly dictionary: "nl";
|
|
167
|
+
readonly dayjs: "nl-be";
|
|
168
|
+
};
|
|
169
|
+
readonly pl: {
|
|
170
|
+
readonly tag: "pl-PL";
|
|
171
|
+
readonly dictionary: "pl";
|
|
172
|
+
readonly dayjs: "pl";
|
|
173
|
+
};
|
|
174
|
+
readonly 'pt-BR': {
|
|
175
|
+
readonly tag: "pt-BR";
|
|
176
|
+
readonly dictionary: "pt-BR";
|
|
177
|
+
readonly dayjs: "pt-br";
|
|
178
|
+
};
|
|
179
|
+
readonly 'pt-PT': {
|
|
180
|
+
readonly tag: "pt-PT";
|
|
181
|
+
readonly dictionary: "pt-PT";
|
|
182
|
+
readonly dayjs: "pt";
|
|
183
|
+
readonly weekStart: 0;
|
|
184
|
+
};
|
|
185
|
+
readonly ro: {
|
|
186
|
+
readonly tag: "ro-RO";
|
|
187
|
+
readonly dictionary: "ro";
|
|
188
|
+
readonly dayjs: "ro";
|
|
189
|
+
};
|
|
190
|
+
readonly ru: {
|
|
191
|
+
readonly tag: "ru-RU";
|
|
192
|
+
readonly dictionary: "ru";
|
|
193
|
+
readonly dayjs: "ru";
|
|
194
|
+
};
|
|
195
|
+
readonly sv: {
|
|
196
|
+
readonly tag: "sv-SE";
|
|
197
|
+
readonly dictionary: "sv";
|
|
198
|
+
readonly dayjs: "sv";
|
|
199
|
+
};
|
|
200
|
+
readonly 'sv-FI': {
|
|
201
|
+
readonly tag: "sv-FI";
|
|
202
|
+
readonly dictionary: "sv";
|
|
203
|
+
readonly dayjs: "sv-fi";
|
|
204
|
+
};
|
|
205
|
+
readonly tr: {
|
|
206
|
+
readonly tag: "tr-TR";
|
|
207
|
+
readonly dictionary: "tr";
|
|
208
|
+
readonly dayjs: "tr";
|
|
209
|
+
};
|
|
210
|
+
readonly uk: {
|
|
211
|
+
readonly tag: "uk-UA";
|
|
212
|
+
readonly dictionary: "uk";
|
|
213
|
+
readonly dayjs: "uk";
|
|
214
|
+
};
|
|
215
|
+
readonly 'zh-CN': {
|
|
216
|
+
readonly tag: "zh-CN";
|
|
217
|
+
readonly dictionary: "zh-CN";
|
|
218
|
+
readonly dayjs: "zh-cn";
|
|
219
|
+
};
|
|
220
|
+
readonly 'zh-HK': {
|
|
221
|
+
readonly tag: "zh-HK";
|
|
222
|
+
readonly dictionary: "zh-HK";
|
|
223
|
+
readonly dayjs: "zh-hk";
|
|
224
|
+
};
|
|
225
|
+
readonly 'zh-TW': {
|
|
226
|
+
readonly tag: "zh-TW";
|
|
227
|
+
readonly dictionary: "zh-TW";
|
|
228
|
+
readonly dayjs: "zh-tw";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/** A canonical locale key. */
|
|
232
|
+
export type BuiltinLocaleKey = keyof typeof LOCALE_TABLE;
|
|
233
|
+
/**
|
|
234
|
+
* Every locale the library ships, by canonical key. Shipping ≠ bundling: only
|
|
235
|
+
* the enabled subset reaches the build. The vite plugin imports it; a node
|
|
236
|
+
* test pins the dictionaries it names against the directory listing.
|
|
237
|
+
*/
|
|
238
|
+
export declare const BUILTIN_LOCALE_KEYS: BuiltinLocaleKey[];
|
|
239
|
+
/** Other spellings of a canonical key, typed so they type-check too. */
|
|
240
|
+
export declare const LOCALE_ALIASES: {
|
|
241
|
+
readonly pt: "pt-BR";
|
|
242
|
+
readonly zh: "zh-CN";
|
|
243
|
+
readonly 'zh-cn': "zh-CN";
|
|
244
|
+
readonly 'cs-CZ': "cs";
|
|
245
|
+
readonly 'da-DK': "da";
|
|
246
|
+
readonly 'de-DE': "de";
|
|
247
|
+
readonly 'el-GR': "el";
|
|
248
|
+
readonly 'en-US': "en";
|
|
249
|
+
readonly 'es-ES': "es";
|
|
250
|
+
readonly 'fi-FI': "fi";
|
|
251
|
+
readonly 'fr-FR': "fr";
|
|
252
|
+
readonly 'hu-HU': "hu";
|
|
253
|
+
readonly 'it-IT': "it";
|
|
254
|
+
readonly 'ja-JP': "ja";
|
|
255
|
+
readonly 'ko-KR': "ko";
|
|
256
|
+
readonly 'nb-NO': "nb";
|
|
257
|
+
readonly 'nl-NL': "nl";
|
|
258
|
+
readonly 'pl-PL': "pl";
|
|
259
|
+
readonly 'ro-RO': "ro";
|
|
260
|
+
readonly 'ru-RU': "ru";
|
|
261
|
+
readonly 'sv-SE': "sv";
|
|
262
|
+
readonly 'tr-TR': "tr";
|
|
263
|
+
readonly 'uk-UA': "uk";
|
|
264
|
+
};
|
|
265
|
+
export type LocaleAlias = keyof typeof LOCALE_ALIASES;
|
|
266
|
+
/** What `locale` / `enabledLocales` accept: a canonical key or an alias. */
|
|
267
|
+
export type BuiltinLocaleInput = BuiltinLocaleKey | LocaleAlias;
|
|
268
|
+
/**
|
|
269
|
+
* The canonical key of a locale as written (`zh-cn`, `ZH-CN`, `pt`, `it-IT`,
|
|
270
|
+
* `en_GB`), or `undefined` for a locale the library does not ship.
|
|
271
|
+
*/
|
|
272
|
+
export declare const localeKeyOf: (input: string | null | undefined) => BuiltinLocaleKey | undefined;
|
|
273
|
+
/** The aliases that resolve to `key` (for the generated `LocaleRegistry`). */
|
|
274
|
+
export declare const aliasesOf: (key: BuiltinLocaleKey) => LocaleAlias[];
|
|
275
|
+
/**
|
|
276
|
+
* The BCP 47 tag of the region a dictionary was written for: its date hints
|
|
277
|
+
* are that region's, so another region reading it gets them rewritten
|
|
278
|
+
* (`regionHints`).
|
|
279
|
+
*/
|
|
280
|
+
export declare const DICTIONARY_HOME: Record<DictionaryId, string>;
|
|
281
|
+
/**
|
|
282
|
+
* A locale the library does not ship, as written, and the nearest one it
|
|
283
|
+
* does: same language first (`en-UK` → `en-GB`, `pt-pt` is fine, `de-LU` →
|
|
284
|
+
* `de`), else nothing. For `check` and the plugin's warning.
|
|
285
|
+
*/
|
|
286
|
+
export declare const nearestLocaleKey: (input: string) => BuiltinLocaleKey | undefined;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
//#region src/i18n/regions.ts
|
|
2
|
+
var e = {
|
|
3
|
+
cs: {
|
|
4
|
+
tag: "cs-CZ",
|
|
5
|
+
dictionary: "cs",
|
|
6
|
+
dayjs: "cs"
|
|
7
|
+
},
|
|
8
|
+
da: {
|
|
9
|
+
tag: "da-DK",
|
|
10
|
+
dictionary: "da",
|
|
11
|
+
dayjs: "da"
|
|
12
|
+
},
|
|
13
|
+
de: {
|
|
14
|
+
tag: "de-DE",
|
|
15
|
+
dictionary: "de",
|
|
16
|
+
dayjs: "de"
|
|
17
|
+
},
|
|
18
|
+
"de-AT": {
|
|
19
|
+
tag: "de-AT",
|
|
20
|
+
dictionary: "de",
|
|
21
|
+
dayjs: "de-at"
|
|
22
|
+
},
|
|
23
|
+
"de-CH": {
|
|
24
|
+
tag: "de-CH",
|
|
25
|
+
dictionary: "de-CH",
|
|
26
|
+
dayjs: "de-ch"
|
|
27
|
+
},
|
|
28
|
+
el: {
|
|
29
|
+
tag: "el-GR",
|
|
30
|
+
dictionary: "el",
|
|
31
|
+
dayjs: "el"
|
|
32
|
+
},
|
|
33
|
+
en: {
|
|
34
|
+
tag: "en-US",
|
|
35
|
+
dictionary: "en",
|
|
36
|
+
dayjs: null
|
|
37
|
+
},
|
|
38
|
+
"en-AU": {
|
|
39
|
+
tag: "en-AU",
|
|
40
|
+
dictionary: "en-GB",
|
|
41
|
+
dayjs: "en-au"
|
|
42
|
+
},
|
|
43
|
+
"en-CA": {
|
|
44
|
+
tag: "en-CA",
|
|
45
|
+
dictionary: "en-GB",
|
|
46
|
+
dayjs: "en-ca"
|
|
47
|
+
},
|
|
48
|
+
"en-GB": {
|
|
49
|
+
tag: "en-GB",
|
|
50
|
+
dictionary: "en-GB",
|
|
51
|
+
dayjs: "en-gb"
|
|
52
|
+
},
|
|
53
|
+
"en-IE": {
|
|
54
|
+
tag: "en-IE",
|
|
55
|
+
dictionary: "en-GB",
|
|
56
|
+
dayjs: "en-ie"
|
|
57
|
+
},
|
|
58
|
+
es: {
|
|
59
|
+
tag: "es-ES",
|
|
60
|
+
dictionary: "es",
|
|
61
|
+
dayjs: "es"
|
|
62
|
+
},
|
|
63
|
+
"es-MX": {
|
|
64
|
+
tag: "es-MX",
|
|
65
|
+
dictionary: "es-MX",
|
|
66
|
+
dayjs: "es-mx"
|
|
67
|
+
},
|
|
68
|
+
fi: {
|
|
69
|
+
tag: "fi-FI",
|
|
70
|
+
dictionary: "fi",
|
|
71
|
+
dayjs: "fi"
|
|
72
|
+
},
|
|
73
|
+
fr: {
|
|
74
|
+
tag: "fr-FR",
|
|
75
|
+
dictionary: "fr",
|
|
76
|
+
dayjs: "fr"
|
|
77
|
+
},
|
|
78
|
+
"fr-BE": {
|
|
79
|
+
tag: "fr-BE",
|
|
80
|
+
dictionary: "fr",
|
|
81
|
+
dayjs: "fr"
|
|
82
|
+
},
|
|
83
|
+
"fr-CA": {
|
|
84
|
+
tag: "fr-CA",
|
|
85
|
+
dictionary: "fr",
|
|
86
|
+
dayjs: "fr-ca"
|
|
87
|
+
},
|
|
88
|
+
"fr-CH": {
|
|
89
|
+
tag: "fr-CH",
|
|
90
|
+
dictionary: "fr",
|
|
91
|
+
dayjs: "fr-ch"
|
|
92
|
+
},
|
|
93
|
+
hu: {
|
|
94
|
+
tag: "hu-HU",
|
|
95
|
+
dictionary: "hu",
|
|
96
|
+
dayjs: "hu"
|
|
97
|
+
},
|
|
98
|
+
it: {
|
|
99
|
+
tag: "it-IT",
|
|
100
|
+
dictionary: "it",
|
|
101
|
+
dayjs: "it"
|
|
102
|
+
},
|
|
103
|
+
"it-CH": {
|
|
104
|
+
tag: "it-CH",
|
|
105
|
+
dictionary: "it",
|
|
106
|
+
dayjs: "it-ch"
|
|
107
|
+
},
|
|
108
|
+
ja: {
|
|
109
|
+
tag: "ja-JP",
|
|
110
|
+
dictionary: "ja",
|
|
111
|
+
dayjs: "ja"
|
|
112
|
+
},
|
|
113
|
+
ko: {
|
|
114
|
+
tag: "ko-KR",
|
|
115
|
+
dictionary: "ko",
|
|
116
|
+
dayjs: "ko"
|
|
117
|
+
},
|
|
118
|
+
nb: {
|
|
119
|
+
tag: "nb-NO",
|
|
120
|
+
dictionary: "nb",
|
|
121
|
+
dayjs: "nb"
|
|
122
|
+
},
|
|
123
|
+
nl: {
|
|
124
|
+
tag: "nl-NL",
|
|
125
|
+
dictionary: "nl",
|
|
126
|
+
dayjs: "nl"
|
|
127
|
+
},
|
|
128
|
+
"nl-BE": {
|
|
129
|
+
tag: "nl-BE",
|
|
130
|
+
dictionary: "nl",
|
|
131
|
+
dayjs: "nl-be"
|
|
132
|
+
},
|
|
133
|
+
pl: {
|
|
134
|
+
tag: "pl-PL",
|
|
135
|
+
dictionary: "pl",
|
|
136
|
+
dayjs: "pl"
|
|
137
|
+
},
|
|
138
|
+
"pt-BR": {
|
|
139
|
+
tag: "pt-BR",
|
|
140
|
+
dictionary: "pt-BR",
|
|
141
|
+
dayjs: "pt-br"
|
|
142
|
+
},
|
|
143
|
+
"pt-PT": {
|
|
144
|
+
tag: "pt-PT",
|
|
145
|
+
dictionary: "pt-PT",
|
|
146
|
+
dayjs: "pt",
|
|
147
|
+
weekStart: 0
|
|
148
|
+
},
|
|
149
|
+
ro: {
|
|
150
|
+
tag: "ro-RO",
|
|
151
|
+
dictionary: "ro",
|
|
152
|
+
dayjs: "ro"
|
|
153
|
+
},
|
|
154
|
+
ru: {
|
|
155
|
+
tag: "ru-RU",
|
|
156
|
+
dictionary: "ru",
|
|
157
|
+
dayjs: "ru"
|
|
158
|
+
},
|
|
159
|
+
sv: {
|
|
160
|
+
tag: "sv-SE",
|
|
161
|
+
dictionary: "sv",
|
|
162
|
+
dayjs: "sv"
|
|
163
|
+
},
|
|
164
|
+
"sv-FI": {
|
|
165
|
+
tag: "sv-FI",
|
|
166
|
+
dictionary: "sv",
|
|
167
|
+
dayjs: "sv-fi"
|
|
168
|
+
},
|
|
169
|
+
tr: {
|
|
170
|
+
tag: "tr-TR",
|
|
171
|
+
dictionary: "tr",
|
|
172
|
+
dayjs: "tr"
|
|
173
|
+
},
|
|
174
|
+
uk: {
|
|
175
|
+
tag: "uk-UA",
|
|
176
|
+
dictionary: "uk",
|
|
177
|
+
dayjs: "uk"
|
|
178
|
+
},
|
|
179
|
+
"zh-CN": {
|
|
180
|
+
tag: "zh-CN",
|
|
181
|
+
dictionary: "zh-CN",
|
|
182
|
+
dayjs: "zh-cn"
|
|
183
|
+
},
|
|
184
|
+
"zh-HK": {
|
|
185
|
+
tag: "zh-HK",
|
|
186
|
+
dictionary: "zh-HK",
|
|
187
|
+
dayjs: "zh-hk"
|
|
188
|
+
},
|
|
189
|
+
"zh-TW": {
|
|
190
|
+
tag: "zh-TW",
|
|
191
|
+
dictionary: "zh-TW",
|
|
192
|
+
dayjs: "zh-tw"
|
|
193
|
+
}
|
|
194
|
+
}, t = Object.keys(e), n = {
|
|
195
|
+
pt: "pt-BR",
|
|
196
|
+
zh: "zh-CN",
|
|
197
|
+
"zh-cn": "zh-CN",
|
|
198
|
+
"cs-CZ": "cs",
|
|
199
|
+
"da-DK": "da",
|
|
200
|
+
"de-DE": "de",
|
|
201
|
+
"el-GR": "el",
|
|
202
|
+
"en-US": "en",
|
|
203
|
+
"es-ES": "es",
|
|
204
|
+
"fi-FI": "fi",
|
|
205
|
+
"fr-FR": "fr",
|
|
206
|
+
"hu-HU": "hu",
|
|
207
|
+
"it-IT": "it",
|
|
208
|
+
"ja-JP": "ja",
|
|
209
|
+
"ko-KR": "ko",
|
|
210
|
+
"nb-NO": "nb",
|
|
211
|
+
"nl-NL": "nl",
|
|
212
|
+
"pl-PL": "pl",
|
|
213
|
+
"ro-RO": "ro",
|
|
214
|
+
"ru-RU": "ru",
|
|
215
|
+
"sv-SE": "sv",
|
|
216
|
+
"tr-TR": "tr",
|
|
217
|
+
"uk-UA": "uk"
|
|
218
|
+
}, r = /* @__PURE__ */ new Map();
|
|
219
|
+
for (let e of t) r.set(e.toLowerCase(), e);
|
|
220
|
+
for (let [e, t] of Object.entries(n)) r.set(e.toLowerCase(), t);
|
|
221
|
+
var i = (e) => typeof e == "string" ? r.get(e.trim().replace(/_/g, "-").toLowerCase()) : void 0, a = (e) => Object.keys(n).filter((t) => n[t] === e), o = {
|
|
222
|
+
cs: "cs-CZ",
|
|
223
|
+
da: "da-DK",
|
|
224
|
+
de: "de-DE",
|
|
225
|
+
"de-CH": "de-CH",
|
|
226
|
+
el: "el-GR",
|
|
227
|
+
en: "en-US",
|
|
228
|
+
"en-GB": "en-GB",
|
|
229
|
+
es: "es-ES",
|
|
230
|
+
"es-MX": "es-MX",
|
|
231
|
+
fi: "fi-FI",
|
|
232
|
+
fr: "fr-FR",
|
|
233
|
+
hu: "hu-HU",
|
|
234
|
+
it: "it-IT",
|
|
235
|
+
ja: "ja-JP",
|
|
236
|
+
ko: "ko-KR",
|
|
237
|
+
nb: "nb-NO",
|
|
238
|
+
nl: "nl-NL",
|
|
239
|
+
pl: "pl-PL",
|
|
240
|
+
"pt-BR": "pt-BR",
|
|
241
|
+
"pt-PT": "pt-PT",
|
|
242
|
+
ro: "ro-RO",
|
|
243
|
+
ru: "ru-RU",
|
|
244
|
+
sv: "sv-SE",
|
|
245
|
+
tr: "tr-TR",
|
|
246
|
+
uk: "uk-UA",
|
|
247
|
+
"zh-CN": "zh-CN",
|
|
248
|
+
"zh-HK": "zh-HK",
|
|
249
|
+
"zh-TW": "zh-TW"
|
|
250
|
+
}, s = (e) => {
|
|
251
|
+
if (i(e)) return;
|
|
252
|
+
let [t, n] = e.trim().replace(/_/g, "-").split("-");
|
|
253
|
+
if (!t) return;
|
|
254
|
+
let r = t.toLowerCase(), a = n ? {
|
|
255
|
+
UK: "GB",
|
|
256
|
+
EN: "GB"
|
|
257
|
+
}[n.toUpperCase()] ?? n.toUpperCase() : void 0;
|
|
258
|
+
if (a) {
|
|
259
|
+
let e = i(`${r}-${a}`);
|
|
260
|
+
if (e) return e;
|
|
261
|
+
}
|
|
262
|
+
return i(r);
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
export { t as BUILTIN_LOCALE_KEYS, o as DICTIONARY_HOME, n as LOCALE_ALIASES, e as LOCALE_TABLE, a as aliasesOf, i as localeKeyOf, s as nearestLocaleKey };
|
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export type { BbAlertProps, BbAlertEvents } from './components/BbAlert/types';
|
|
|
153
153
|
export type { BbAvatarProps } from './components/BbAvatar/BbAvatar.vue';
|
|
154
154
|
export type { BbBadgeProps, BbBadgeEvents, BbBadgeButtonProps, } from './components/BbBadge/types';
|
|
155
155
|
export type { BbAsteriskProps } from './components/BbAsterisk/types';
|
|
156
|
-
export type { BbConfirmProps } from './components/BbConfirm/types';
|
|
156
|
+
export type { BbConfirmProps, BbConfirmPortalSlotProps, } from './components/BbConfirm/types';
|
|
157
157
|
export type { BbIndicatorProps, BbIndicatorSlots, } from './components/BbIndicator/types';
|
|
158
158
|
export type { BbBreadcrumbsProps, Item as BbBreadcrumbsItem, } from './components/BbBreadcrumbs/types';
|
|
159
159
|
export type { BbButtonProps } from './components/BbButton/types';
|
|
@@ -175,11 +175,11 @@ export type { BbDropdownButtonEvents, BbDropdownButtonProps, } from './component
|
|
|
175
175
|
export type { BbDropdownGroupModel, BbDropdownGroupProps, BbDropdownProps, BbDropdownEvents, DropdownGroupItemsGetter, Item as BbDropdownItem, BbDropdownItemProps, BbDropdownItemSlotProps, BbDropdownSlotGroup, } from './components/BbDropdown/types';
|
|
176
176
|
export type { BbDropzoneProps, DropZoneError, BbDropzoneEvents, } from './components/BbDropzone/types';
|
|
177
177
|
export type { BbIconProps, BbIconSize } from './components/BbIcon/types';
|
|
178
|
-
export type { BbNumberInputProps, BbNumberInputEvents, } from './components/BbNumberInput/types';
|
|
178
|
+
export type { BbNumberInputProps, BbNumberInputEvents, BbNumberSimpleUnit, BbNumberUnit, } from './components/BbNumberInput/types';
|
|
179
179
|
export type { BbOffCanvasProps, BbOffCanvasEvents, } from './components/BbOffCanvas/types';
|
|
180
180
|
export type { BbPaginationProps, BbPaginationEvents, } from './components/BbPagination/types';
|
|
181
|
-
export type { BbPopoverProps, BbPopoverEvents, } from './components/BbPopover/types';
|
|
182
|
-
export type { BbHoverCardProps, BbHoverCardEvents, BbHoverCardSlots, } from './components/BbHoverCard/types';
|
|
181
|
+
export type { BbPopoverProps, BbPopoverEvents, BbPopoverPortalSlotProps, } from './components/BbPopover/types';
|
|
182
|
+
export type { BbHoverCardProps, BbHoverCardEvents, BbHoverCardSlots, BbHoverCardPortalSlotProps, } from './components/BbHoverCard/types';
|
|
183
183
|
export type { BbProgressProps } from './components/BbProgress/BbProgress.vue';
|
|
184
184
|
export type { BbPtScopeName, BbPtScopeProps, BbPtScopeSlots, } from './components/BbPtScope/types';
|
|
185
185
|
export type { BbRadioGroupEvents, BbRadioGroupProps, } from './components/BbRadioGroup/types';
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import r from "./components/BbTooltip/BbTooltip.vue.js";
|
|
|
7
7
|
import i, { BbTooltipDirectivePlugin as a } from "./directives/bbTooltip.js";
|
|
8
8
|
import { useBbDropdownContext as o } from "./composables/useBbDropdownContext.js";
|
|
9
9
|
import { useMobile as s } from "./composables/useMobile.js";
|
|
10
|
-
import c from "./components/
|
|
11
|
-
import l from "./components/
|
|
12
|
-
import u from "./components/
|
|
10
|
+
import c from "./components/BbIcon/BbIcon.vue.js";
|
|
11
|
+
import l from "./components/BbSpinner/BbSpinner.vue.js";
|
|
12
|
+
import u from "./components/BbBaseButton/BbBaseButton.vue.js";
|
|
13
13
|
import d from "./components/BbBadge/BbBadgeButton.vue.js";
|
|
14
14
|
import f from "./components/BbBadge/BbBadge.vue.js";
|
|
15
15
|
import p from "./components/BbOffCanvas/BbOffCanvas.vue.js";
|
|
@@ -85,4 +85,4 @@ import Pe from "./components/BbTree/BbTree.vue.js";
|
|
|
85
85
|
import { useBbFormContext as Fe } from "./composables/useBbFormContext.js";
|
|
86
86
|
import { useBbFormField as Ie } from "./composables/useBbFormField.js";
|
|
87
87
|
import Le from "./components/BbForm/BbForm.vue.js";
|
|
88
|
-
export { W as BbAccordion, G as BbAlert, K as BbAsterisk, q as BbAvatar, f as BbBadge, d as BbBadgeButton,
|
|
88
|
+
export { W as BbAccordion, G as BbAlert, K as BbAsterisk, q as BbAvatar, f as BbBadge, d as BbBadgeButton, u as BbBaseButton, X as BbBaseCheckboxIcon, pe as BbBaseRadioIcon, be as BbBaseSwitchIcon, Y as BbBreadcrumbs, h as BbButton, C as BbCalendar, Z as BbCheckbox, Q as BbCheckboxGroup, U as BbCollapsible, S as BbColorDirectivePlugin, $ as BbColorInput, b as BbColorPalette, te as BbConfirm, ne as BbConfirmPortal, E as BbDateDirectivePlugin, w as BbDatePicker, re as BbDatePickerInput, ee as BbDialog, _ as BbDropdown, ie as BbDropdownButton, y as BbDropdownDirectivePlugin, ae as BbDropdownGroup, oe as BbDropzone, Le as BbForm, A as BbHoverCard, M as BbHoverCardDirectivePlugin, se as BbHoverCardPortal, c as BbIcon, J as BbIndicator, ce as BbNumberInput, p as BbOffCanvas, le as BbPagination, N as BbPopover, F as BbPopoverDirectivePlugin, ue as BbPopoverPortal, de as BbProgress, fe as BbPtScope, me as BbRadio, he as BbRadioGroup, ge as BbRating, ve as BbSelect, _e as BbSelectPopover, ye as BbSlider, m as BbSmoothHeight, l as BbSpinner, xe as BbSwitch, Se as BbSwitchGroup, Ce as BbTable, Ee as BbTabs, we as BbTabsList, Te as BbTabsPanels, De as BbTabsRoot, Oe as BbTag, Ae as BbTextInput, ke as BbTextarea, k as BbTimeDirectivePlugin, D as BbTimePicker, je as BbTimePickerInput, Me as BbToast, Ne as BbToastPortal, r as BbTooltip, a as BbTooltipDirectivePlugin, Pe as BbTree, g as SSR_STATE_INJECTION_KEY, I as bitbossUiPlugin, n as slotKey, L as useBbConfig, o as useBbDropdownContext, Fe as useBbFormContext, Ie as useBbFormField, e as useBbTableContext, R as useBbTabsContext, z as useConfirm, B as useCountdown, t as useId, s as useMobile, V as useSafeArea, H as useToast, x as vBbColor, T as vBbDate, v as vBbDropdown, j as vBbHoverCard, P as vBbPopover, O as vBbTime, i as vBbTooltip };
|