bitboss-ui 2.1.131 → 2.1.132

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 (190) hide show
  1. package/dist/ai/BbTable.md +25 -11
  2. package/dist/components/BbTable/types.d.ts +6 -4
  3. package/dist/index.css +1 -1
  4. package/dist/index109.js +9 -9
  5. package/dist/index110.js +18 -18
  6. package/dist/index118.js +1 -1
  7. package/dist/index124.js +3 -3
  8. package/dist/index126.js +183 -180
  9. package/dist/index134.js +1 -1
  10. package/dist/index136.js +4 -4
  11. package/dist/index138.js +1 -1
  12. package/dist/index14.js +1 -1
  13. package/dist/index142.js +2 -2
  14. package/dist/index146.js +1 -1
  15. package/dist/index148.js +2 -2
  16. package/dist/index151.js +2 -2
  17. package/dist/index16.js +3 -3
  18. package/dist/index18.js +3 -3
  19. package/dist/index20.js +9 -9
  20. package/dist/index22.js +14 -14
  21. package/dist/index224.js +138 -2
  22. package/dist/index225.js +2 -138
  23. package/dist/index227.js +3 -4
  24. package/dist/index228.js +13 -8
  25. package/dist/index229.js +20 -4
  26. package/dist/index230.js +5 -13
  27. package/dist/index231.js +5 -373
  28. package/dist/index232.js +7 -0
  29. package/dist/index233.js +5 -160
  30. package/dist/{index252.js → index234.js} +1 -1
  31. package/dist/index235.js +2 -25
  32. package/dist/index236.js +6 -2
  33. package/dist/index237.js +8 -2
  34. package/dist/index238.js +268 -2
  35. package/dist/index239.js +52 -7
  36. package/dist/index24.js +10 -10
  37. package/dist/index240.js +52 -2
  38. package/dist/index241.js +32 -7
  39. package/dist/index242.js +60 -3
  40. package/dist/index243.js +5 -34
  41. package/dist/index244.js +8 -5
  42. package/dist/index245.js +10 -5
  43. package/dist/index246.js +3 -5
  44. package/dist/index247.js +4 -5
  45. package/dist/index248.js +3 -5
  46. package/dist/index249.js +373 -5
  47. package/dist/index251.js +158 -6
  48. package/dist/index253.js +6 -17
  49. package/dist/index254.js +2 -12
  50. package/dist/index255.js +5 -51
  51. package/dist/index256.js +5 -18
  52. package/dist/index257.js +5 -12
  53. package/dist/index258.js +3 -17
  54. package/dist/index259.js +6 -30
  55. package/dist/index26.js +3 -3
  56. package/dist/index260.js +16 -18
  57. package/dist/index261.js +2 -4
  58. package/dist/index262.js +11 -106
  59. package/dist/index263.js +88 -0
  60. package/dist/index265.js +32 -0
  61. package/dist/index266.js +17 -107
  62. package/dist/index267.js +50 -12
  63. package/dist/index268.js +18 -11
  64. package/dist/index269.js +11 -9
  65. package/dist/index270.js +17 -2
  66. package/dist/index271.js +9 -3
  67. package/dist/index272.js +2 -86
  68. package/dist/index273.js +4 -0
  69. package/dist/index274.js +33 -8
  70. package/dist/index275.js +33 -23
  71. package/dist/index276.js +27 -22
  72. package/dist/index278.js +4 -7
  73. package/dist/index279.js +25 -9
  74. package/dist/index28.js +1 -1
  75. package/dist/index280.js +106 -5
  76. package/dist/index282.js +99 -187
  77. package/dist/index284.js +9 -33
  78. package/dist/index285.js +44 -28
  79. package/dist/index286.js +55 -0
  80. package/dist/index287.js +12 -8
  81. package/dist/index288.js +13 -44
  82. package/dist/index289.js +22 -52
  83. package/dist/index290.js +18 -2
  84. package/dist/index291.js +12 -5
  85. package/dist/index292.js +107 -6
  86. package/dist/index293.js +5 -267
  87. package/dist/index294.js +20 -51
  88. package/dist/index295.js +188 -52
  89. package/dist/index296.js +3 -32
  90. package/dist/index297.js +8 -59
  91. package/dist/index298.js +23 -3
  92. package/dist/index299.js +3 -21
  93. package/dist/index30.js +3 -3
  94. package/dist/index300.js +2 -67
  95. package/dist/index301.js +7 -6
  96. package/dist/index302.js +6 -3
  97. package/dist/index303.js +3 -20
  98. package/dist/index304.js +5 -6
  99. package/dist/index305.js +66 -15
  100. package/dist/index306.js +7 -4
  101. package/dist/index307.js +280 -7
  102. package/dist/index308.js +2 -3
  103. package/dist/index309.js +16 -5
  104. package/dist/index310.js +2 -2
  105. package/dist/index311.js +18 -0
  106. package/dist/index312.js +2 -7
  107. package/dist/index313.js +27 -3
  108. package/dist/index314.js +2 -280
  109. package/dist/index315.js +2 -2
  110. package/dist/index316.js +2 -125
  111. package/dist/index317.js +2 -2
  112. package/dist/index318.js +2 -15
  113. package/dist/index319.js +28 -2
  114. package/dist/index32.js +2 -2
  115. package/dist/index320.js +2 -16
  116. package/dist/index321.js +3 -2
  117. package/dist/index322.js +17 -16
  118. package/dist/index323.js +3 -2
  119. package/dist/index324.js +3 -19
  120. package/dist/index325.js +2 -2
  121. package/dist/index326.js +4 -3
  122. package/dist/index328.js +7 -17
  123. package/dist/index329.js +3 -28
  124. package/dist/index330.js +125 -3
  125. package/dist/index331.js +2 -3
  126. package/dist/index332.js +15 -2
  127. package/dist/index333.js +2 -4
  128. package/dist/index334.js +19 -5
  129. package/dist/index335.js +2 -27
  130. package/dist/index336.js +719 -2
  131. package/dist/index337.js +366 -2
  132. package/dist/index338.js +57 -2
  133. package/dist/index339.js +3 -2
  134. package/dist/index34.js +8 -8
  135. package/dist/index340.js +3 -2
  136. package/dist/index341.js +1 -1
  137. package/dist/index342.js +5 -2
  138. package/dist/index343.js +6 -719
  139. package/dist/index344.js +2 -366
  140. package/dist/index345.js +5 -57
  141. package/dist/index348.js +3 -227
  142. package/dist/index349.js +5 -6
  143. package/dist/index350.js +6 -34
  144. package/dist/index351.js +17 -128
  145. package/dist/index352.js +7 -397
  146. package/dist/index353.js +12 -90
  147. package/dist/index354.js +7 -200
  148. package/dist/index355.js +34 -258
  149. package/dist/index356.js +129 -6
  150. package/dist/index357.js +396 -16
  151. package/dist/index358.js +200 -9
  152. package/dist/index359.js +258 -14
  153. package/dist/index36.js +4 -4
  154. package/dist/index360.js +21 -4
  155. package/dist/index362.js +89 -130
  156. package/dist/index363.js +133 -21
  157. package/dist/index364.js +4 -0
  158. package/dist/index365.js +1 -1
  159. package/dist/index366.js +228 -2
  160. package/dist/index370.js +1 -1
  161. package/dist/index38.js +21 -21
  162. package/dist/index40.js +7 -7
  163. package/dist/index42.js +2 -2
  164. package/dist/index44.js +8 -8
  165. package/dist/index46.js +6 -6
  166. package/dist/index50.js +2 -2
  167. package/dist/index54.js +1 -1
  168. package/dist/index56.js +1 -1
  169. package/dist/index58.js +2 -2
  170. package/dist/index60.js +2 -2
  171. package/dist/index62.js +5 -5
  172. package/dist/index68.js +1 -1
  173. package/dist/index74.js +4 -4
  174. package/dist/index82.js +6 -6
  175. package/dist/index84.js +1 -1
  176. package/dist/index86.js +2 -2
  177. package/dist/index88.js +3 -3
  178. package/dist/index90.js +1 -1
  179. package/dist/index93.js +3 -3
  180. package/dist/index95.js +2 -2
  181. package/dist/index97.js +5 -5
  182. package/dist/index99.js +1 -1
  183. package/package.json +2 -2
  184. package/dist/index250.js +0 -5
  185. package/dist/index264.js +0 -102
  186. package/dist/index277.js +0 -15
  187. package/dist/index281.js +0 -4
  188. package/dist/index283.js +0 -5
  189. package/dist/index327.js +0 -5
  190. package/dist/index361.js +0 -9
@@ -6,6 +6,7 @@
6
6
  <template>
7
7
  <component
8
8
  :is="containerTag"
9
+ :id="id"
9
10
  ref="containerRef"
10
11
  :aria-busy="loading"
11
12
  :aria-rowcount="hasProvidedAccessibilityData ? props.totalItems : undefined"
@@ -471,7 +472,6 @@ const props = withDefaults(defineProps<InternalProps<T>>(), {
471
472
  max: Infinity,
472
473
  multiple: true,
473
474
  modelValue: () => [],
474
- inheritColumnWidths: true,
475
475
  unselectedItems: () => [],
476
476
  });
477
477
 
@@ -529,17 +529,29 @@ const {
529
529
  : undefined,
530
530
  });
531
531
 
532
- const inheritColumnWidths = computed(() => props.inheritColumnWidths !== false);
532
+ /** Any column pinned to a parent track range — a per-column inherit signal. */
533
+ const hasSnap = computed(() => props.columns.some((c) => c.snap != null));
534
+
535
+ // Opt-in: inherit when explicitly enabled (`true`, or an ancestor id string),
536
+ // or implicitly when any column carries a `snap` — a snap only resolves against
537
+ // a parent's tracks, so asking for one is asking to inherit. An absent prop with
538
+ // no snaps does not inherit, so a plain nested table stays independent. An
539
+ // explicit `false` is authoritative and overrides the implicit snap signal.
540
+ const inheritColumnWidths = computed(
541
+ () => !!props.inheritColumnWidths || hasSnap.value
542
+ );
533
543
 
534
544
  /**
535
- * Assigned column widths (frozen or inherited) are only authoritative under
536
- * `table-layout: fixed`; in auto layout they behave like a minimum. So a table
537
- * that drives widths — explicitly `fixed`, inheriting from a parent, or with a
538
- * frozen column — uses fixed layout even when `fixed` was not set.
545
+ * Assigned column widths (frozen, snapped, or inherited) are only authoritative
546
+ * under `table-layout: fixed`; in auto layout they behave like a minimum. So a
547
+ * table that drives widths — explicitly `fixed`, inheriting from a parent, or
548
+ * with a column carrying a `width` or `snap` — uses fixed layout even when
549
+ * `fixed` was not set. (`snap` is a width definition: the parent track range.)
539
550
  */
540
551
  const fixedLayout = computed(
541
552
  () =>
542
553
  props.fixed ||
554
+ hasSnap.value ||
543
555
  props.columns.some((column) => column.width != null) ||
544
556
  (inheritColumnWidths.value && !!parentId.value)
545
557
  );
@@ -1723,10 +1735,12 @@ export type BbTableProps<Item = any> = {
1723
1735
  id?: string;
1724
1736
 
1725
1737
  /**
1726
- * Controls whether unfrozen columns inherit their width from an ancestor
1727
- * table's matching track, accounting for `select`/`actions` columns.
1728
- * - `true` (the default): inherit from the nearest ancestor table.
1729
- * - `false`: do not inherit.
1738
+ * Opt a nested table into inheriting its column widths from an ancestor
1739
+ * table's matching tracks (accounting for `select`/`actions` columns). This
1740
+ * also forces `table-layout: fixed`, so it is **off by default** — a nested
1741
+ * table renders independently unless you ask for alignment.
1742
+ * - `false` (the default): do not inherit; size independently.
1743
+ * - `true`: inherit from the nearest ancestor table.
1730
1744
  * - a table id (string): inherit from the specific ancestor in the chain with
1731
1745
  * that id rather than the immediate parent. Use this when an intermediate
1732
1746
  * table has a different column count, so the extra columns would otherwise
@@ -2129,7 +2143,7 @@ export type BbTableSlots<Item = any> = {
2129
2143
  }
2130
2144
 
2131
2145
  &--fixed {
2132
- table {
2146
+ > table {
2133
2147
  table-layout: fixed;
2134
2148
  width: 100%;
2135
2149
 
@@ -118,10 +118,12 @@ export type BbTableProps<Item = any> = {
118
118
  */
119
119
  id?: string;
120
120
  /**
121
- * Controls whether unfrozen columns inherit their width from an ancestor
122
- * table's matching track, accounting for `select`/`actions` columns.
123
- * - `true` (the default): inherit from the nearest ancestor table.
124
- * - `false`: do not inherit.
121
+ * Opt a nested table into inheriting its column widths from an ancestor
122
+ * table's matching tracks (accounting for `select`/`actions` columns). This
123
+ * also forces `table-layout: fixed`, so it is **off by default** — a nested
124
+ * table renders independently unless you ask for alignment.
125
+ * - `false` (the default): do not inherit; size independently.
126
+ * - `true`: inherit from the nearest ancestor table.
125
127
  * - a table id (string): inherit from the specific ancestor in the chain with
126
128
  * that id rather than the immediate parent. Use this when an intermediate
127
129
  * table has a different column count, so the extra columns would otherwise