UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

44 lines (43 loc) 3.12 kB
//#region src/utils/keys.ts var genericBvnPrefix = "BootstrapVueNext__"; var withBvnPrefix = (value, suffix = "") => { const suffixWithTrail = `${suffix}___`; return `${genericBvnPrefix}ID__${value}__${suffix ? suffixWithTrail : ""}`; }; var createBvnInjectionKey = (name) => withBvnPrefix(name); var createBvnRegistryInjectionKey = (name) => withBvnPrefix(`${name}__registry`); var carouselInjectionKey = createBvnInjectionKey("carousel"); var tabsInjectionKey = createBvnInjectionKey("tabs"); var progressInjectionKey = createBvnInjectionKey("progress"); var listGroupInjectionKey = createBvnInjectionKey("listGroup"); var avatarGroupInjectionKey = createBvnInjectionKey("avatarGroup"); var accordionInjectionKey = createBvnInjectionKey("accordion"); var checkboxGroupKey = createBvnInjectionKey("checkboxGroup"); var radioGroupKey = createBvnInjectionKey("radioGroup"); var collapseInjectionKey = createBvnInjectionKey("collapse"); var showHideRegistryKey = createBvnRegistryInjectionKey("showHide"); var dropdownInjectionKey = createBvnInjectionKey("dropdown"); var navbarInjectionKey = createBvnInjectionKey("navbar"); var rtlRegistryKey = createBvnRegistryInjectionKey("rtl"); var breadcrumbGlobalIndexKey = `${genericBvnPrefix}global_breadcrumb`; var breadcrumbRegistryKey = createBvnRegistryInjectionKey("breadcrumb"); var modalManagerKey = createBvnRegistryInjectionKey("modalManager"); var defaultsKey = createBvnRegistryInjectionKey("defaults"); var inputGroupKey = createBvnInjectionKey("inputGroup"); var buttonGroupKey = createBvnInjectionKey("buttonGroup"); var orchestratorRegistryKey = createBvnRegistryInjectionKey("orchestrator"); /** * Provided by an ancestor BFormGroup (or boundary like BFormFloatingLabel). Called once at * descendant setup to obtain state/disabled and a `track` callback. Call `track(idRef)` to * claim the group's `<label for="...">` target — used by form controls without their own * label (BFormInput, BFormTextarea, BFormSelect, or a plain BFormCheckbox/BFormRadio with * no slot). Skip `track` entirely when the consumer only needs state/disabled and must not * claim label-for (BFormCheckbox/BFormRadio that render their own label, BFormFloatingLabel * acting as a boundary, ARIA-role custom widgets). */ var formGroupKey = createBvnInjectionKey("formGroupPlugin"); var formSelectKey = createBvnInjectionKey("formSelect"); var tableKeyboardNavigationKey = createBvnInjectionKey("tableKeyboardNavigation"); //#endregion export { tabsInjectionKey as C, tableKeyboardNavigationKey as S, orchestratorRegistryKey as _, buttonGroupKey as a, rtlRegistryKey as b, collapseInjectionKey as c, formGroupKey as d, formSelectKey as f, navbarInjectionKey as g, modalManagerKey as h, breadcrumbRegistryKey as i, defaultsKey as l, listGroupInjectionKey as m, avatarGroupInjectionKey as n, carouselInjectionKey as o, inputGroupKey as p, breadcrumbGlobalIndexKey as r, checkboxGroupKey as s, accordionInjectionKey as t, dropdownInjectionKey as u, progressInjectionKey as v, withBvnPrefix as w, showHideRegistryKey as x, radioGroupKey as y }; //# sourceMappingURL=keys-BgLwJbLV.js.map