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.
- package/dist/ai/BbTable.md +25 -11
- package/dist/components/BbTable/types.d.ts +6 -4
- package/dist/index.css +1 -1
- package/dist/index109.js +9 -9
- package/dist/index110.js +18 -18
- package/dist/index118.js +1 -1
- package/dist/index124.js +3 -3
- package/dist/index126.js +183 -180
- package/dist/index134.js +1 -1
- package/dist/index136.js +4 -4
- package/dist/index138.js +1 -1
- package/dist/index14.js +1 -1
- package/dist/index142.js +2 -2
- package/dist/index146.js +1 -1
- package/dist/index148.js +2 -2
- package/dist/index151.js +2 -2
- package/dist/index16.js +3 -3
- package/dist/index18.js +3 -3
- package/dist/index20.js +9 -9
- package/dist/index22.js +14 -14
- package/dist/index224.js +138 -2
- package/dist/index225.js +2 -138
- package/dist/index227.js +3 -4
- package/dist/index228.js +13 -8
- package/dist/index229.js +20 -4
- package/dist/index230.js +5 -13
- package/dist/index231.js +5 -373
- package/dist/index232.js +7 -0
- package/dist/index233.js +5 -160
- package/dist/{index252.js → index234.js} +1 -1
- package/dist/index235.js +2 -25
- package/dist/index236.js +6 -2
- package/dist/index237.js +8 -2
- package/dist/index238.js +268 -2
- package/dist/index239.js +52 -7
- package/dist/index24.js +10 -10
- package/dist/index240.js +52 -2
- package/dist/index241.js +32 -7
- package/dist/index242.js +60 -3
- package/dist/index243.js +5 -34
- package/dist/index244.js +8 -5
- package/dist/index245.js +10 -5
- package/dist/index246.js +3 -5
- package/dist/index247.js +4 -5
- package/dist/index248.js +3 -5
- package/dist/index249.js +373 -5
- package/dist/index251.js +158 -6
- package/dist/index253.js +6 -17
- package/dist/index254.js +2 -12
- package/dist/index255.js +5 -51
- package/dist/index256.js +5 -18
- package/dist/index257.js +5 -12
- package/dist/index258.js +3 -17
- package/dist/index259.js +6 -30
- package/dist/index26.js +3 -3
- package/dist/index260.js +16 -18
- package/dist/index261.js +2 -4
- package/dist/index262.js +11 -106
- package/dist/index263.js +88 -0
- package/dist/index265.js +32 -0
- package/dist/index266.js +17 -107
- package/dist/index267.js +50 -12
- package/dist/index268.js +18 -11
- package/dist/index269.js +11 -9
- package/dist/index270.js +17 -2
- package/dist/index271.js +9 -3
- package/dist/index272.js +2 -86
- package/dist/index273.js +4 -0
- package/dist/index274.js +33 -8
- package/dist/index275.js +33 -23
- package/dist/index276.js +27 -22
- package/dist/index278.js +4 -7
- package/dist/index279.js +25 -9
- package/dist/index28.js +1 -1
- package/dist/index280.js +106 -5
- package/dist/index282.js +99 -187
- package/dist/index284.js +9 -33
- package/dist/index285.js +44 -28
- package/dist/index286.js +55 -0
- package/dist/index287.js +12 -8
- package/dist/index288.js +13 -44
- package/dist/index289.js +22 -52
- package/dist/index290.js +18 -2
- package/dist/index291.js +12 -5
- package/dist/index292.js +107 -6
- package/dist/index293.js +5 -267
- package/dist/index294.js +20 -51
- package/dist/index295.js +188 -52
- package/dist/index296.js +3 -32
- package/dist/index297.js +8 -59
- package/dist/index298.js +23 -3
- package/dist/index299.js +3 -21
- package/dist/index30.js +3 -3
- package/dist/index300.js +2 -67
- package/dist/index301.js +7 -6
- package/dist/index302.js +6 -3
- package/dist/index303.js +3 -20
- package/dist/index304.js +5 -6
- package/dist/index305.js +66 -15
- package/dist/index306.js +7 -4
- package/dist/index307.js +280 -7
- package/dist/index308.js +2 -3
- package/dist/index309.js +16 -5
- package/dist/index310.js +2 -2
- package/dist/index311.js +18 -0
- package/dist/index312.js +2 -7
- package/dist/index313.js +27 -3
- package/dist/index314.js +2 -280
- package/dist/index315.js +2 -2
- package/dist/index316.js +2 -125
- package/dist/index317.js +2 -2
- package/dist/index318.js +2 -15
- package/dist/index319.js +28 -2
- package/dist/index32.js +2 -2
- package/dist/index320.js +2 -16
- package/dist/index321.js +3 -2
- package/dist/index322.js +17 -16
- package/dist/index323.js +3 -2
- package/dist/index324.js +3 -19
- package/dist/index325.js +2 -2
- package/dist/index326.js +4 -3
- package/dist/index328.js +7 -17
- package/dist/index329.js +3 -28
- package/dist/index330.js +125 -3
- package/dist/index331.js +2 -3
- package/dist/index332.js +15 -2
- package/dist/index333.js +2 -4
- package/dist/index334.js +19 -5
- package/dist/index335.js +2 -27
- package/dist/index336.js +719 -2
- package/dist/index337.js +366 -2
- package/dist/index338.js +57 -2
- package/dist/index339.js +3 -2
- package/dist/index34.js +8 -8
- package/dist/index340.js +3 -2
- package/dist/index341.js +1 -1
- package/dist/index342.js +5 -2
- package/dist/index343.js +6 -719
- package/dist/index344.js +2 -366
- package/dist/index345.js +5 -57
- package/dist/index348.js +3 -227
- package/dist/index349.js +5 -6
- package/dist/index350.js +6 -34
- package/dist/index351.js +17 -128
- package/dist/index352.js +7 -397
- package/dist/index353.js +12 -90
- package/dist/index354.js +7 -200
- package/dist/index355.js +34 -258
- package/dist/index356.js +129 -6
- package/dist/index357.js +396 -16
- package/dist/index358.js +200 -9
- package/dist/index359.js +258 -14
- package/dist/index36.js +4 -4
- package/dist/index360.js +21 -4
- package/dist/index362.js +89 -130
- package/dist/index363.js +133 -21
- package/dist/index364.js +4 -0
- package/dist/index365.js +1 -1
- package/dist/index366.js +228 -2
- package/dist/index370.js +1 -1
- package/dist/index38.js +21 -21
- package/dist/index40.js +7 -7
- package/dist/index42.js +2 -2
- package/dist/index44.js +8 -8
- package/dist/index46.js +6 -6
- package/dist/index50.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index60.js +2 -2
- package/dist/index62.js +5 -5
- package/dist/index68.js +1 -1
- package/dist/index74.js +4 -4
- package/dist/index82.js +6 -6
- package/dist/index84.js +1 -1
- package/dist/index86.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/index93.js +3 -3
- package/dist/index95.js +2 -2
- package/dist/index97.js +5 -5
- package/dist/index99.js +1 -1
- package/package.json +2 -2
- package/dist/index250.js +0 -5
- package/dist/index264.js +0 -102
- package/dist/index277.js +0 -15
- package/dist/index281.js +0 -4
- package/dist/index283.js +0 -5
- package/dist/index327.js +0 -5
- package/dist/index361.js +0 -9
package/dist/ai/BbTable.md
CHANGED
|
@@ -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
|
-
|
|
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
|
|
536
|
-
* `table-layout: fixed`; in auto layout they behave like a minimum. So a
|
|
537
|
-
* that drives widths — explicitly `fixed`, inheriting from a parent, or
|
|
538
|
-
*
|
|
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
|
-
*
|
|
1727
|
-
* table's matching
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
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
|
-
*
|
|
122
|
-
* table's matching
|
|
123
|
-
*
|
|
124
|
-
*
|
|
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
|