bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76

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.
Files changed (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -2,7 +2,7 @@
2
2
  var e = /* @__PURE__ */ new Map(), t = {
3
3
  content: null,
4
4
  attributes: {}
5
- }, n = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M9.3 9.4a2.8 2.8 0 0 1 5.4.9c0 1.9-2.7 2.3-2.7 4\"/><path d=\"M12 17.6h.01\"/></svg>", r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (e) => e.startsWith("local:") ? `[bitboss-ui] icon "${e}" does not exist — there is no "${e.slice(6)}.svg" in the plugin's iconDir.` : `[bitboss-ui] icon "${e}" does not exist in the icon registry.`, o = (t, n) => {
5
+ }, n = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M9.3 9.4a2.8 2.8 0 0 1 5.4.9c0 1.9-2.7 2.3-2.7 4\"/><path d=\"M12 17.6h.01\"/></svg>", r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (e) => e.startsWith("local:") ? `[bitboss-ui] icon "${e}" does not exist — there is no "${e.slice(6)}.svg" in the plugin's icons.dir.` : `[bitboss-ui] icon "${e}" does not exist in the icon registry.`, o = (t, n) => {
6
6
  let o = e.get(t);
7
7
  if (o) return Promise.resolve(o);
8
8
  if (r.has(t)) return Promise.resolve(c);
@@ -42,8 +42,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
42
42
  compact: boolean;
43
43
  autocomplete: string;
44
44
  disableFormatting: boolean;
45
- max: number;
46
45
  min: number;
46
+ max: number;
47
47
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
48
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
49
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,8 @@
1
1
  import { FallthroughAttrs } from '../../types/fallthrough.js';
2
2
  import { BbPaginationProps, BbPaginationEvents, BbPaginationSlots } from './types.js';
3
- export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
4
3
  type __VLS_Props = BbPaginationProps & FallthroughAttrs<'div', BbPaginationProps>;
5
4
  type __VLS_Slots = BbPaginationSlots;
5
+ export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
6
6
  type __VLS_ModelProps = {
7
7
  /**
8
8
  * Used by v-model. The 1-based index of the current page — pagination starts
@@ -19,8 +19,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
19
19
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
20
20
  }>, {
21
21
  queryKey: string;
22
- maxSize: number | string;
23
22
  align: "left" | "center" | "right" | "start" | "end";
23
+ maxSize: number | string;
24
24
  ellipsis: string;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,23 +1,25 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
- import t from "../../assets/svgs/caret_down.svg_raw.js";
3
- import n from "../BbBaseButton/BbBaseButton.vue.js";
4
- import { useLocale as r } from "../../composables/useLocale.js";
5
- import { useRoute as i } from "../../composables/useRoute.js";
6
- import { useFrameworkDetection as ee } from "../../composables/useFrameworkDetection.js";
7
- import { removedPropsFor as te } from "../../deprecation/removedProps.js";
8
- import { warnRemovedAttrs as ne } from "../../utilities/functions/warnRemovedAttrs.js";
9
- import { useBbTable as re, useBbTableHasHost as a, useBbTablePageIsSet as o } from "../../composables/useBbTable.js";
10
- import { useLogger as s } from "../../composables/useLogger.js";
11
- import { parseCount as c, parsePositiveInteger as l } from "../../utilities/functions/parsePaginationNumber.js";
12
- import { BB_PAGINATION_PT as u } from "./types.js";
13
- import { usePassthrough as d } from "../../composables/usePassthrough.js";
14
- import { computeNextMaxSize as f } from "./paginationFit.js";
15
- import { Fragment as ie, computed as p, createBlock as ae, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, getCurrentInstance as oe, guardReactiveProps as v, mergeModels as y, mergeProps as b, normalizeProps as x, onBeforeUnmount as se, onMounted as ce, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, unref as D, useAttrs as le, useModel as ue, watch as O, withCtx as k } from "vue";
2
+ import t from "../../assets/svgs/chevron_left.svg_raw.js";
3
+ import n from "../../assets/svgs/chevron_right.svg_raw.js";
4
+ import { useInternalIcon as r } from "../../composables/useInternalIcon.js";
5
+ import i from "../BbBaseButton/BbBaseButton.vue.js";
6
+ import { useLocale as ee } from "../../composables/useLocale.js";
7
+ import { useRoute as te } from "../../composables/useRoute.js";
8
+ import { useFrameworkDetection as ne } from "../../composables/useFrameworkDetection.js";
9
+ import { removedPropsFor as re } from "../../deprecation/removedProps.js";
10
+ import { warnRemovedAttrs as ie } from "../../utilities/functions/warnRemovedAttrs.js";
11
+ import { useBbTable as ae, useBbTableHasHost as a, useBbTablePageIsSet as o } from "../../composables/useBbTable.js";
12
+ import { useLogger as oe } from "../../composables/useLogger.js";
13
+ import { parseCount as s, parsePositiveInteger as c } from "../../utilities/functions/parsePaginationNumber.js";
14
+ import { BB_PAGINATION_PT as l } from "./types.js";
15
+ import { usePassthrough as se } from "../../composables/usePassthrough.js";
16
+ import { computeNextMaxSize as ce } from "./paginationFit.js";
17
+ import { Fragment as u, computed as d, createBlock as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as le, guardReactiveProps as _, mergeModels as v, mergeProps as y, normalizeProps as b, onBeforeUnmount as x, onMounted as S, openBlock as C, ref as w, renderList as ue, renderSlot as T, toDisplayString as E, unref as D, useAttrs as de, useModel as fe, watch as O, withCtx as k } from "vue";
16
18
  // src/components/BbPagination/BbPagination.vue?vue&type=script&setup=true&lang.ts
17
- var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" }, j = { class: "bb-pagination__page-label" }, M = { class: "bb-pagination__page-label" }, N = { class: "bb-pagination__page-label bb-sr-only" }, P = /*@__PURE__*/ _({
19
+ var A = ["aria-label"], j = { class: "bb-pagination__page-label bb-sr-only" }, M = { class: "bb-pagination__page-label" }, N = { class: "bb-pagination__page-label" }, P = { class: "bb-pagination__page-label bb-sr-only" }, F = /*@__PURE__*/ g({
18
20
  inheritAttrs: !1,
19
21
  __name: "BbPagination",
20
- props: /*@__PURE__*/ y({
22
+ props: /*@__PURE__*/ v({
21
23
  "pt:root": {},
22
24
  "pt:root:disabled": {},
23
25
  "pt:item": {},
@@ -47,144 +49,144 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
47
49
  modelModifiers: {}
48
50
  }),
49
51
  emits: ["update:modelValue"],
50
- setup(_) {
51
- let y = ue(_, "modelValue"), P = _, F = d({
52
+ setup(g) {
53
+ let v = fe(g, "modelValue"), F = g, I = r("prev", t), L = r("next", n), R = se({
52
54
  component: "BbPagination",
53
- attrs: le(),
54
- props: P,
55
- parts: u.parts,
56
- states: u.states,
57
- active: { disabled: () => !!P.disabled }
55
+ attrs: de(),
56
+ props: F,
57
+ parts: l.parts,
58
+ states: l.states,
59
+ active: { disabled: () => !!F.disabled }
58
60
  });
59
- process.env.NODE_ENV !== "production" && ne("BbPagination", te("BbPagination"));
60
- let { t: I } = r(), L = i(), R = oe(), { isInertia: z } = ee(), B = re(() => P.tableId), V = o(() => P.tableId);
61
- a(() => P.tableId), s();
62
- let fe = p(() => {
63
- let e = c(P.totalItems);
61
+ process.env.NODE_ENV !== "production" && ie("BbPagination", re("BbPagination"));
62
+ let { t: z } = ee(), B = te(), V = le(), { isInertia: pe } = ne(), H = ae(() => F.tableId), me = o(() => F.tableId);
63
+ a(() => F.tableId), oe();
64
+ let he = d(() => {
65
+ let e = s(F.totalItems);
64
66
  if (e !== void 0) {
65
- let t = c(P.perPage);
67
+ let t = s(F.perPage);
66
68
  return t ? Math.max(1, Math.ceil(e / t)) : 1;
67
69
  }
68
- return P.totalPages === void 0 ? 1 : l(P.totalPages, 1);
69
- }), H = p(() => (P.tableId && B.isReady.value ? B.totalPages.value : void 0) ?? fe.value);
70
+ return F.totalPages === void 0 ? 1 : c(F.totalPages, 1);
71
+ }), U = d(() => (F.tableId && H.isReady.value ? H.totalPages.value : void 0) ?? he.value);
70
72
  O([
71
- () => P.totalItems,
72
- () => P.perPage,
73
- () => P.totalPages,
74
- () => P.tableId
73
+ () => F.totalItems,
74
+ () => F.perPage,
75
+ () => F.totalPages,
76
+ () => F.tableId
75
77
  ], ([e, t, n]) => {
76
- if (!P.tableId) return;
77
- let r = c(e);
78
- r !== void 0 && (B.totalItems.value = r);
79
- let i = c(t);
80
- i && (B.perPage.value = i), n !== void 0 && (B.totalPages.value = l(n, 1));
78
+ if (!F.tableId) return;
79
+ let r = s(e);
80
+ r !== void 0 && (H.totalItems.value = r);
81
+ let i = s(t);
82
+ i && (H.perPage.value = i), n !== void 0 && (H.totalPages.value = c(n, 1));
81
83
  }, { immediate: !0 });
82
- let U = C(1), W = C(l(P.maxSize, 6)), G = C(), K = C(), q = C(Infinity), J = (e) => Math.min(Math.max(1, Math.trunc(e)), H.value), Y = (e) => {
83
- if (!P.navigation || e < 1 || e > H.value) return {};
84
+ let W = w(1), G = w(c(F.maxSize, 6)), K = w(), q = w(), J = w(Infinity), Y = (e) => Math.min(Math.max(1, Math.trunc(e)), U.value), X = (e) => {
85
+ if (!F.navigation || e < 1 || e > U.value) return {};
84
86
  let t = e.toString();
85
- if (L.value) return {
87
+ if (B.value) return {
86
88
  to: {
87
- path: L.value.path,
89
+ path: B.value.path,
88
90
  query: {
89
- ...L.value.query,
90
- [P.queryKey]: t
91
+ ...B.value.query,
92
+ [F.queryKey]: t
91
93
  }
92
94
  },
93
- replace: P.replace
95
+ replace: F.replace
94
96
  };
95
- let n = z ? R?.proxy?.$page?.url : void 0, r = globalThis.location?.href ?? n;
97
+ let n = pe ? V?.proxy?.$page?.url : void 0, r = globalThis.location?.href ?? n;
96
98
  if (!r) return {};
97
99
  let i = new URL(r, "http://localhost");
98
- return i.searchParams.set(P.queryKey, t), {
100
+ return i.searchParams.set(F.queryKey, t), {
99
101
  href: `${i.pathname}${i.search}`,
100
- replace: P.replace
102
+ replace: F.replace
101
103
  };
102
- }, X = null, Z = () => {
103
- X === null && globalThis.requestAnimationFrame && (X = globalThis.requestAnimationFrame(() => {
104
- X = null, pe();
104
+ }, Z = null, Q = () => {
105
+ Z === null && globalThis.requestAnimationFrame && (Z = globalThis.requestAnimationFrame(() => {
106
+ Z = null, ge();
105
107
  }));
106
- }, pe = () => {
107
- if (!G.value || !K.value) return;
108
- let e = f({
109
- available: G.value.clientWidth,
110
- used: K.value.clientWidth,
111
- footprint: q.value,
112
- current: W.value,
113
- target: l(P.maxSize, 6)
108
+ }, ge = () => {
109
+ if (!K.value || !q.value) return;
110
+ let e = ce({
111
+ available: K.value.clientWidth,
112
+ used: q.value.clientWidth,
113
+ footprint: J.value,
114
+ current: G.value,
115
+ target: c(F.maxSize, 6)
114
116
  });
115
- e !== W.value && (W.value = e, Z());
117
+ e !== G.value && (G.value = e, Q());
116
118
  };
117
119
  if (globalThis.ResizeObserver) {
118
- let e = new ResizeObserver(Z);
119
- ce(() => {
120
- if (G.value && K.value) {
121
- let t = G.value.querySelectorAll(".bb-pagination__page")[1];
120
+ let e = new ResizeObserver(Q);
121
+ S(() => {
122
+ if (K.value && q.value) {
123
+ let t = K.value.querySelectorAll(".bb-pagination__page")[1];
122
124
  if (t) {
123
- let e = getComputedStyle(K.value).columnGap, n = Number.parseFloat(e) || 0;
124
- q.value = t.clientWidth + n;
125
+ let e = getComputedStyle(q.value).columnGap, n = Number.parseFloat(e) || 0;
126
+ J.value = t.clientWidth + n;
125
127
  }
126
- e.observe(G.value);
128
+ e.observe(K.value);
127
129
  }
128
- }), se(() => {
129
- e.disconnect(), X !== null && globalThis.cancelAnimationFrame && globalThis.cancelAnimationFrame(X);
130
+ }), x(() => {
131
+ e.disconnect(), Z !== null && globalThis.cancelAnimationFrame && globalThis.cancelAnimationFrame(Z);
130
132
  });
131
133
  }
132
- O(() => P.maxSize, (e) => {
133
- W.value = l(e, 6), Z();
134
- }), O([y, H], ([e]) => {
135
- if (P.tableId) return;
136
- let t = J(e);
137
- e !== t && (y.value = t);
138
- }, { immediate: !0 }), O(() => B.page.value, (e) => {
139
- P.tableId && V.value && e != null && e !== y.value && (y.value = e);
140
- }, { immediate: !0 }), O([y, () => P.tableId], ([e]) => {
141
- P.tableId && e !== B.page.value && (B.page.value = e);
134
+ O(() => F.maxSize, (e) => {
135
+ G.value = c(e, 6), Q();
136
+ }), O([v, U], ([e]) => {
137
+ if (F.tableId) return;
138
+ let t = Y(e);
139
+ e !== t && (v.value = t);
140
+ }, { immediate: !0 }), O(() => H.page.value, (e) => {
141
+ F.tableId && me.value && e != null && e !== v.value && (v.value = e);
142
+ }, { immediate: !0 }), O([v, () => F.tableId], ([e]) => {
143
+ F.tableId && e !== H.page.value && (H.page.value = e);
142
144
  }, { immediate: !0 });
143
- let Q = p(() => {
144
- if (H.value <= 0 || isNaN(H.value) || H.value > 2 ** 53 - 1) return [];
145
- if (W.value <= 1) return [y.value];
146
- if (H.value <= W.value) return $(H.value, U.value);
147
- let e = W.value % 2 == 0, t = e ? W.value / 2 : Math.floor(W.value / 2), n = e ? t : t + 1, r = H.value - t;
148
- if (n - y.value >= 0) return [
149
- ...$(Math.max(1, W.value - 1), U.value),
150
- P.ellipsis,
151
- H.value
145
+ let _e = d(() => {
146
+ if (U.value <= 0 || isNaN(U.value) || U.value > 2 ** 53 - 1) return [];
147
+ if (G.value <= 1) return [v.value];
148
+ if (U.value <= G.value) return $(U.value, W.value);
149
+ let e = G.value % 2 == 0, t = e ? G.value / 2 : Math.floor(G.value / 2), n = e ? t : t + 1, r = U.value - t;
150
+ if (n - v.value >= 0) return [
151
+ ...$(Math.max(1, G.value - 1), W.value),
152
+ F.ellipsis,
153
+ U.value
152
154
  ];
153
- if (y.value - r >= +!!e) {
154
- let e = W.value - 1, t = H.value - e + U.value;
155
+ if (v.value - r >= +!!e) {
156
+ let e = G.value - 1, t = U.value - e + W.value;
155
157
  return [
156
- U.value,
157
- P.ellipsis,
158
+ W.value,
159
+ F.ellipsis,
158
160
  ...$(e, t)
159
161
  ];
160
162
  }
161
163
  {
162
- let e = Math.max(1, W.value - 3), t = e === 1 ? y.value : y.value - Math.ceil(e / 2) + U.value;
164
+ let e = Math.max(1, G.value - 3), t = e === 1 ? v.value : v.value - Math.ceil(e / 2) + W.value;
163
165
  return [
164
- U.value,
165
- P.ellipsis,
166
+ W.value,
167
+ F.ellipsis,
166
168
  ...$(e, t),
167
- P.ellipsis,
168
- H.value
169
+ F.ellipsis,
170
+ U.value
169
171
  ];
170
172
  }
171
- }), me = p(() => Q.value.map((e, t) => typeof e == "string" ? {
173
+ }), ve = d(() => _e.value.map((e, t) => typeof e == "string" ? {
172
174
  active: !1,
173
175
  key: `ellipsis-${t}`,
174
176
  page: e,
175
177
  ellipsis: !0,
176
178
  disabled: !0
177
179
  } : {
178
- active: e === y.value,
180
+ active: e === v.value,
179
181
  key: e,
180
182
  page: e,
181
183
  ellipsis: !1,
182
- disabled: !!P.disabled
183
- })), $ = (e, t = 0) => Array.from({ length: e }, (e, n) => t + n), he = p(() => {
184
- let e = J(y.value - 1), t = {
185
- disabled: y.value <= 1 || P.disabled,
184
+ disabled: !!F.disabled
185
+ })), $ = (e, t = 0) => Array.from({ length: e }, (e, n) => t + n), ye = d(() => {
186
+ let e = Y(v.value - 1), t = {
187
+ disabled: v.value <= 1 || F.disabled,
186
188
  onClick: () => {
187
- y.value > 1 && --y.value;
189
+ v.value > 1 && --v.value;
188
190
  },
189
191
  class: [
190
192
  "bb-pagination__arrow",
@@ -192,25 +194,25 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
192
194
  "bb-pagination__page--previous"
193
195
  ]
194
196
  };
195
- return t.disabled || Object.assign(t, Y(e)), b(t, F.part("arrow", { disabled: t.disabled || void 0 }));
196
- }), ge = (e) => {
197
+ return t.disabled || Object.assign(t, X(e)), y(t, R.part("arrow", { disabled: t.disabled || void 0 }));
198
+ }), be = (e) => {
197
199
  let t = {
198
200
  class: ["bb-pagination__item", "bb-pagination__page"],
199
201
  disabled: e.disabled,
200
202
  "aria-current": e.active ? "page" : null,
201
203
  onClick: () => {
202
- typeof e.key == "number" && (y.value = e.key);
204
+ typeof e.key == "number" && (v.value = e.key);
203
205
  }
204
206
  };
205
- return e.active && t.class.push("bb-pagination__page--active"), e.ellipsis && t.class.push("bb-pagination__page--ellipsis"), !t.disabled && typeof e.page == "number" && Object.assign(t, Y(e.page)), b(t, F.part("item", {
207
+ return e.active && t.class.push("bb-pagination__page--active"), e.ellipsis && t.class.push("bb-pagination__page--ellipsis"), !t.disabled && typeof e.page == "number" && Object.assign(t, X(e.page)), y(t, R.part("item", {
206
208
  active: !!e.active,
207
209
  disabled: t.disabled || void 0
208
210
  }));
209
- }, _e = p(() => {
210
- let e = J(y.value + 1), t = {
211
- disabled: y.value >= H.value || P.disabled,
211
+ }, xe = d(() => {
212
+ let e = Y(v.value + 1), t = {
213
+ disabled: v.value >= U.value || F.disabled,
212
214
  onClick: () => {
213
- y.value < H.value && (y.value += 1);
215
+ v.value < U.value && (v.value += 1);
214
216
  },
215
217
  class: [
216
218
  "bb-pagination__arrow",
@@ -218,52 +220,52 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
218
220
  "bb-pagination__page--next"
219
221
  ]
220
222
  };
221
- return t.disabled || Object.assign(t, Y(e)), b(t, F.part("arrow", { disabled: t.disabled || void 0 }));
223
+ return t.disabled || Object.assign(t, X(e)), y(t, R.part("arrow", { disabled: t.disabled || void 0 }));
222
224
  });
223
- return (r, i) => (S(), m("div", b({
225
+ return (t, n) => (C(), p("div", y({
224
226
  ref_key: "outercontainer",
225
- ref: G,
227
+ ref: K,
226
228
  class: ["bb-pagination", {
227
- [`bb-pagination--${_.align}`]: !0,
228
- "bb-pagination--disabled": _.disabled
229
+ [`bb-pagination--${g.align}`]: !0,
230
+ "bb-pagination--disabled": g.disabled
229
231
  }]
230
- }, D(F).rootAttrs), [h("nav", { "aria-label": _.label || D(I)("pagination.label").value }, [h("ul", {
232
+ }, D(R).rootAttrs), [m("nav", { "aria-label": g.label || D(z)("pagination.label").value }, [m("ul", {
231
233
  ref_key: "innercontainer",
232
- ref: K,
234
+ ref: q,
233
235
  class: "bb-pagination__pages"
234
236
  }, [
235
- h("li", null, [g(n, x(v(he.value)), {
236
- default: k(() => [T(r.$slots, "previous", {}, () => [h("span", A, E(D(I)("pagination.previous").value), 1), g(e, b({
237
+ m("li", null, [h(i, b(_(ye.value)), {
238
+ default: k(() => [T(t.$slots, "previous", {}, () => [m("span", j, E(D(z)("pagination.previous").value), 1), h(e, y({
237
239
  class: "bb-pagination__icon",
238
- icon: D(t),
240
+ icon: D(I),
239
241
  size: "16"
240
- }, D(F).icon), null, 16, ["icon"])])]),
242
+ }, D(R).icon), null, 16, ["icon"])])]),
241
243
  _: 3
242
244
  }, 16)]),
243
- (S(!0), m(ie, null, w(me.value, (e) => (S(), m("li", { key: e.key }, [e.ellipsis === !0 ? (S(), m("span", b({
245
+ (C(!0), p(u, null, ue(ve.value, (e) => (C(), p("li", { key: e.key }, [e.ellipsis === !0 ? (C(), p("span", y({
244
246
  key: 0,
245
247
  "aria-hidden": "true",
246
248
  class: "bb-pagination__ellipsis bb-pagination__page bb-pagination__page--ellipsis"
247
- }, { ref_for: !0 }, D(F).ellipsis), [T(r.$slots, "ellipsis", {}, () => [h("span", j, E(P.ellipsis), 1)])], 16)) : (S(), ae(n, b({
249
+ }, { ref_for: !0 }, D(R).ellipsis), [T(t.$slots, "ellipsis", {}, () => [m("span", M, E(F.ellipsis), 1)])], 16)) : (C(), f(i, y({
248
250
  key: 1,
249
251
  ref_for: !0
250
- }, ge(e)), {
251
- default: k(() => [T(r.$slots, "item", {
252
+ }, be(e)), {
253
+ default: k(() => [T(t.$slots, "item", {
252
254
  active: e.active,
253
255
  disabled: e.disabled,
254
256
  item: e.page
255
- }, () => [h("span", M, E(e.page), 1)])]),
257
+ }, () => [m("span", N, E(e.page), 1)])]),
256
258
  _: 2
257
259
  }, 1040))]))), 128)),
258
- h("li", null, [g(n, x(v(_e.value)), {
259
- default: k(() => [T(r.$slots, "next", {}, () => [h("span", N, E(D(I)("pagination.next").value), 1), g(e, b({
260
+ m("li", null, [h(i, b(_(xe.value)), {
261
+ default: k(() => [T(t.$slots, "next", {}, () => [m("span", P, E(D(z)("pagination.next").value), 1), h(e, y({
260
262
  class: "bb-pagination__icon",
261
- icon: D(t),
263
+ icon: D(L),
262
264
  size: "16"
263
- }, D(F).icon), null, 16, ["icon"])])]),
265
+ }, D(R).icon), null, 16, ["icon"])])]),
264
266
  _: 3
265
267
  }, 16)])
266
- ], 512)], 8, de)], 16));
268
+ ], 512)], 8, A)], 16));
267
269
  }
268
270
  });
269
- export { P as default };
271
+ export { F as default };
@@ -7,8 +7,8 @@ export type { BbProgressProps };
7
7
  type __VLS_Props = BbProgressProps & /* @vue-ignore */ FallthroughAttrs<'div', BbProgressProps>;
8
8
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  modelValue: number | null;
10
- max: number;
11
10
  min: number;
11
+ max: number;
12
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -130,6 +130,9 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
130
130
  "root:outline"?: import('../../types/passthrough.js').PtValue | undefined;
131
131
  "icon:outline"?: import('../../types/passthrough.js').PtValue | undefined;
132
132
  "label:outline"?: import('../../types/passthrough.js').PtValue | undefined;
133
+ "description:outline"?: import('../../types/passthrough.js').PtValue | undefined;
134
+ "message:outline"?: import('../../types/passthrough.js').PtValue | undefined;
135
+ "hint:outline"?: import('../../types/passthrough.js').PtValue | undefined;
133
136
  "label:pill"?: import('../../types/passthrough.js').PtValue | undefined;
134
137
  "label:line"?: import('../../types/passthrough.js').PtValue | undefined;
135
138
  "legend:outline"?: import('../../types/passthrough.js').PtValue | undefined;
@@ -137,13 +140,10 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
137
140
  "legend:line"?: import('../../types/passthrough.js').PtValue | undefined;
138
141
  "root:pill"?: import('../../types/passthrough.js').PtValue | undefined;
139
142
  "root:line"?: import('../../types/passthrough.js').PtValue | undefined;
140
- "description:outline"?: import('../../types/passthrough.js').PtValue | undefined;
141
143
  "description:pill"?: import('../../types/passthrough.js').PtValue | undefined;
142
144
  "description:line"?: import('../../types/passthrough.js').PtValue | undefined;
143
- "message:outline"?: import('../../types/passthrough.js').PtValue | undefined;
144
145
  "message:pill"?: import('../../types/passthrough.js').PtValue | undefined;
145
146
  "message:line"?: import('../../types/passthrough.js').PtValue | undefined;
146
- "hint:outline"?: import('../../types/passthrough.js').PtValue | undefined;
147
147
  "hint:pill"?: import('../../types/passthrough.js').PtValue | undefined;
148
148
  "hint:line"?: import('../../types/passthrough.js').PtValue | undefined;
149
149
  "icon:pill"?: import('../../types/passthrough.js').PtValue | undefined;
@@ -209,7 +209,7 @@ declare const __VLS_export: <const T = any, A extends string | ((...args: never[
209
209
  } & import('../../composables/useFormBinding.js').FormFieldProps<any> & {
210
210
  itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
211
211
  itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
212
- } & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | keyof import('./ptKeys.generated.js').BbRadioGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
212
+ } & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | "required" | "selectable" | "itemText" | "enforceCoherence" | "items" | "loadingText" | "emptyText" | "failedText" | "hideLegend" | "legendMode" | "legendPosition" | "depsDebounceTime" | "itemProps" | "itemValue" | "modelValueDebounceTime" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "itemLabelAlign" | "itemInputAlign" | keyof import('./ptKeys.generated.js').BbRadioGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
213
213
  onActive?: (() => any) | undefined;
214
214
  onInput?: ((event: Event) => any) | undefined;
215
215
  "onUpdate:modelValue"?: ((value: OptionValueOf<T, A>) => any) | undefined;
@@ -1,8 +1,8 @@
1
1
  import { FallthroughAttrs } from '../../types/fallthrough.js';
2
2
  import { BbRatingProps, BbRatingEvents, BbRatingSlots } from './types.js';
3
- export type { BbRatingProps, BbRatingEvents, BbRatingSlots };
4
3
  type __VLS_Props = BbRatingProps & FallthroughAttrs<'div', BbRatingProps, BbRatingEvents>;
5
4
  type __VLS_Slots = BbRatingSlots;
5
+ export type { BbRatingProps, BbRatingEvents, BbRatingSlots };
6
6
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
7
  active: () => any;
8
8
  input: (event: Event) => any;