bitboss-ui 3.0.0-beta.72 → 3.0.0-beta.74
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 +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +34 -7
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbCalendar.md +4 -3
- package/dist/ai/BbColorPalette.md +8 -9
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +4 -3
- package/dist/ai/BbDialog.md +17 -4
- package/dist/ai/BbDropdown.md +23 -10
- package/dist/ai/BbDropdownButton.md +2 -2
- package/dist/ai/BbForm.md +11 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +5 -3
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbTable.md +43 -19
- package/dist/ai/BbTimePicker.md +4 -3
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/changelog.json +60 -4
- package/dist/ai/components.json +56 -20
- package/dist/ai/guides/design-tokens.md +20 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/use-confirm.md +4 -1
- package/dist/ai/guides/migration/v2-to-v3.md +24 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbColorPalette.json +3 -3
- package/dist/ai/manifest/components/BbConfirm.removed.json +4 -4
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -3
- package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
- package/dist/ai/manifest/components/BbDropdown.json +3 -3
- package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
- package/dist/ai/manifest/components/BbTable.tree.json +12 -6
- package/dist/ai/manifest/components/BbTimePicker.json +3 -3
- package/dist/ai/manifest/components/BbToast.removed.json +1 -1
- package/dist/ai/manifest/components/BbToastPortal.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 +36 -0
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +66 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +2 -0
- package/dist/ai/source/BbBreadcrumbs.md +4 -1
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbColorPalette.md +41 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +53 -22
- package/dist/ai/source/BbDatePickerInput.md +32 -8
- package/dist/ai/source/BbDialog.md +31 -1
- package/dist/ai/source/BbDropdown.md +52 -24
- package/dist/ai/source/BbDropdownGroup.md +17 -21
- package/dist/ai/source/BbForm.md +80 -6
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +5 -6
- package/dist/ai/source/BbOffCanvas.md +34 -1
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +7 -5
- package/dist/ai/source/BbTable.md +54 -6
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +50 -15
- package/dist/ai/source/BbTimePickerInput.md +30 -7
- package/dist/ai/source/BbToast.md +14 -0
- package/dist/ai/source/BbToastPortal.md +16 -4
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +4 -1
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
- package/dist/components/BbColorPalette/types.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
- package/dist/components/BbDialog/leaveGhost.js +33 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
- package/dist/components/BbDropdown/types.d.ts +8 -17
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +5 -0
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/index.d.ts +34 -30
- package/dist/llms-full.txt +874 -136
- package/dist/llms.txt +3 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/utilities/functions/hash.js +123 -3
- package/dist/utilities/functions/isEqual.js +69 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +8 -5
- package/llms.txt +3 -1
- package/package.json +2 -3
- package/scripts/README.md +43 -43
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +54 -6
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +153 -6
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +17 -2
package/dist/ai/BbNumberInput.md
CHANGED
|
@@ -225,7 +225,8 @@ the safe-integer bounds, i.e. effectively unbounded). `maxPrecision` caps the nu
|
|
|
225
225
|
which is how you pin a field to whole numbers (`0`); for money set `currency`,
|
|
226
226
|
which brings its own decimals. Extra decimals are refused as typed, never
|
|
227
227
|
rounded: with `0`, a typed `,` or `.` stays until blur and the digits after it
|
|
228
|
-
are refused (`12,5` is 12).
|
|
228
|
+
are refused (`12,5` is 12). The cap is on typing only: a model set from code
|
|
229
|
+
with more decimals shows and posts all of them. `minPrecision` (default `0`) is
|
|
229
230
|
its twin: with `2` the field always shows two decimals (`1` shows `1,00`),
|
|
230
231
|
padding with zeros the user types over, while the model stays the number
|
|
231
232
|
(`1.5`).
|
|
@@ -379,7 +380,8 @@ const formattedSubtotal = computed(() =>
|
|
|
379
380
|
`currency="EUR"` (an ISO 4217 code) shows the amount the locale's way, symbol
|
|
380
381
|
included, inside the text: `1.234,56 €` in Italian, `$1,234.56` in English,
|
|
381
382
|
`CHF-1’234.56` in Swiss German. The decimals follow the currency (2 for EUR,
|
|
382
|
-
0 for JPY, 3 for KWD
|
|
383
|
+
0 for JPY and HUF, 3 for KWD, from a table the library ships, so every browser
|
|
384
|
+
agrees); `minPrecision` / `maxPrecision` win when you set them.
|
|
383
385
|
`unit="kilogram"` does the same for a measure (`20 kg`, any unit
|
|
384
386
|
`Intl.NumberFormat` knows); `unit="percent"` holds the number you see, so `15%`
|
|
385
387
|
is `15`, not `0.15`. Set one or the other; with both, `currency` wins. The
|
|
@@ -891,7 +893,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
891
893
|
| `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
|
|
892
894
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
893
895
|
| `max` | `number \| undefined` | `Number.MAX_SAFE_INTEGER` | | Maximum value cap. |
|
|
894
|
-
| `maxPrecision` | `number \| undefined` | `8` | | Maximum
|
|
896
|
+
| `maxPrecision` | `number \| undefined` | `8` | | Maximum fraction digits the user can TYPE (more are refused, never rounded); a model with more still shows them all. With `currency`, the currency's own digits (`2` EUR, `0` JPY and HUF, `3` KWD), or `minPrecision` when that is larger. |
|
|
895
897
|
| `min` | `number \| undefined` | `Number.MIN_SAFE_INTEGER` | | Minimum value cap. Applied on blur and on Enter (before a surrounding form submits), not while typing, so a value above a `min` greater than 1 can be typed digit by digit. |
|
|
896
898
|
| `minPrecision` | `number \| undefined` | `0` | | Fraction digits always shown (`2`: `1` shows `1,00`), also while typing, where the padding zeros are placeholders; the model stays the number. Above `maxPrecision` it gives way. Applies with `disableFormatting` too. With `currency`: the currency's own digits. |
|
|
897
899
|
| `modelValue` | `string \| number \| null \| undefined` | `null` | | Used by v-model. |
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbPopoverPortalSlotProps
|
|
23
|
+
- `default` — scope: `BbPopoverPortalSlotProps<any>` `{ data: P; close: () => void }` — The popover body. `data` is the directive's `data`; `close` closes the popover.
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/BbTable.md
CHANGED
|
@@ -397,6 +397,8 @@ match; `bitboss-ui check` catches it when `columns` is in the same file, and
|
|
|
397
397
|
warns on a loop over keys it cannot see (`#[column.key]` over a prop) until
|
|
398
398
|
the name goes through `slotKey`. Keep the column in `columns`
|
|
399
399
|
even when you fully slot it: label, alignment and width still come from there.
|
|
400
|
+
A `#<key>` slot owns its cell: when it renders nothing (a `v-if` that is
|
|
401
|
+
false), the cell is empty, never the raw value.
|
|
400
402
|
|
|
401
403
|
Body cell scope: `content` (this cell, formatted), `item` (raw row), `value`
|
|
402
404
|
(the row's `item-value`, e.g. its id — not this cell), `classes`, plus the row's interaction surface —
|
|
@@ -2590,8 +2592,9 @@ being pinned.
|
|
|
2590
2592
|
A pinned cell is opaque — it paints the table's `--bg` surface because it
|
|
2591
2593
|
slides over its siblings — so a nested table sitting on a tinted expand row
|
|
2592
2594
|
(`--bb-muted` is the usual choice) shows white pinned actions unless you tell
|
|
2593
|
-
it which surface it is on: `.nest .bb-table { --bg: var(--bb-muted); }`.
|
|
2594
|
-
|
|
2595
|
+
it which surface it is on: `.nest .bb-table { --bg: var(--bb-muted); }`. A
|
|
2596
|
+
nested table paints no surface of its own, so its pinned cells are the only
|
|
2597
|
+
place its `--bg` shows (see **Styling hooks**).
|
|
2595
2598
|
|
|
2596
2599
|
#### Flush tables + inherited widths: mind the edge padding
|
|
2597
2600
|
|
|
@@ -3516,8 +3519,9 @@ Four rules:
|
|
|
3516
3519
|
positional, so a lone left-pinned column dragged to the middle sticks at
|
|
3517
3520
|
`left: 0` and slides over the columns before it — by design; lock the
|
|
3518
3521
|
pinned columns in place by normalizing `@update:order` if you need to.
|
|
3519
|
-
- **Pinned cells are opaque** — they paint the table's `--bg
|
|
3520
|
-
|
|
3522
|
+
- **Pinned cells are opaque** — they paint the table's `--bg`, the same
|
|
3523
|
+
colour the whole table paints (see Styling hooks), so they always match
|
|
3524
|
+
the cells beside them. Under a glass
|
|
3521
3525
|
theme (a translucent `--bb-panel`) the alpha is forced to 1, so the rows
|
|
3522
3526
|
never show through: the pinned column and the stuck header read as a solid
|
|
3523
3527
|
band.
|
|
@@ -3640,13 +3644,11 @@ const rows: Entry[] = Array.from({ length: 5000 }, (_, i) => ({
|
|
|
3640
3644
|
|
|
3641
3645
|
### Styling hooks
|
|
3642
3646
|
|
|
3643
|
-
**The table
|
|
3644
|
-
`.bb-table
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
as a hole). When a table sits on a surface that is not the panel colour, set
|
|
3649
|
-
the one knob and everything pinned follows:
|
|
3647
|
+
**The table paints `--bg`** (default `var(--bb-panel)`), a local on
|
|
3648
|
+
`.bb-table`: the whole table is one solid surface, and the stuck header band
|
|
3649
|
+
and pinned (`fixed`) cells paint the same colour, so they never stand out.
|
|
3650
|
+
Rows and cells stay transparent so hover, highlight and row tones lay over
|
|
3651
|
+
it. To blend into a different surface, set it once:
|
|
3650
3652
|
|
|
3651
3653
|
```css
|
|
3652
3654
|
.my-card .bb-table {
|
|
@@ -3654,6 +3656,8 @@ the one knob and everything pinned follows:
|
|
|
3654
3656
|
}
|
|
3655
3657
|
```
|
|
3656
3658
|
|
|
3659
|
+
A nested table paints nothing; it sits on its parent's rows.
|
|
3660
|
+
|
|
3657
3661
|
**The row hover.** A hovered row takes a faint wash, the hovered row's pinned
|
|
3658
3662
|
cells included. Retint it or switch it off with one local on the table, never
|
|
3659
3663
|
with a `hover:bg-*` on `pt:row`: a pinned cell can only inherit its row's
|
|
@@ -3665,6 +3669,25 @@ colour, so a transparent one lets the scrolled columns show through it.
|
|
|
3665
3669
|
}
|
|
3666
3670
|
```
|
|
3667
3671
|
|
|
3672
|
+
**A resting row tone** (overdue, archived, a status): set `--row-tone` to a
|
|
3673
|
+
colour on the row, never a `bg-*`. The table lays a faint layer of it (8%)
|
|
3674
|
+
over the row, so hover and highlighted still darken it, and pinned cells,
|
|
3675
|
+
the keyboard-lifted row and the dragged copy show the same colour.
|
|
3676
|
+
|
|
3677
|
+
```vue
|
|
3678
|
+
<BbTable
|
|
3679
|
+
:items="rows"
|
|
3680
|
+
:columns="cols"
|
|
3681
|
+
:pt:row="({ item }) => (item.overdue ? '[--row-tone:var(--bb-danger)]' : '')"
|
|
3682
|
+
/>
|
|
3683
|
+
```
|
|
3684
|
+
|
|
3685
|
+
`--row-tone-mix` sets the strength (`[--row-tone-mix:4%]`). An open row's
|
|
3686
|
+
expansion is not toned with its row; to tone it, set the same value there:
|
|
3687
|
+
`:pt:expand="({ item }) => (item.overdue ? '[--row-tone:var(--bb-danger)]' : '')"`.
|
|
3688
|
+
A `bg-*` on the row hides hover and highlighted, and pinned cells keep the
|
|
3689
|
+
table surface.
|
|
3690
|
+
|
|
3668
3691
|
**The scroll cue.** While content is hidden past an edge the root carries
|
|
3669
3692
|
`bb-table--overflow-left` / `bb-table--overflow-right`. On a side with no
|
|
3670
3693
|
pinned column a `mask-image` on the root fades that edge (to 30% over 20px,
|
|
@@ -3741,22 +3764,20 @@ Or in CSS, once for the whole app:
|
|
|
3741
3764
|
|
|
3742
3765
|
#### The table as a card
|
|
3743
3766
|
|
|
3744
|
-
The root paints no
|
|
3745
|
-
scrollport. That is exactly what makes a card
|
|
3767
|
+
The root paints `--bg` and no border or radius of its own — it is the
|
|
3768
|
+
scrollport. That is exactly what makes a card two declarations of ordinary
|
|
3746
3769
|
CSS on your own class, with no component change and nothing to keep in sync:
|
|
3747
3770
|
|
|
3748
3771
|
```css
|
|
3749
3772
|
.bb-table.card {
|
|
3750
|
-
background: var(--bg);
|
|
3751
3773
|
border: var(--bb-border-w) solid var(--bb-border);
|
|
3752
3774
|
border-radius: var(--bb-radius-surface);
|
|
3753
3775
|
}
|
|
3754
3776
|
```
|
|
3755
3777
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
still retints all three at once.
|
|
3778
|
+
The fill is already there: the card, the stuck header band and the pinned
|
|
3779
|
+
cells all paint `--bg`, so they cannot drift, and `.my-table { --bg: … }`
|
|
3780
|
+
retints them at once.
|
|
3760
3781
|
|
|
3761
3782
|
The radius needs no `overflow` beside it, and **must not be given one**. The
|
|
3762
3783
|
root already clips in both axes (`overflow-x: auto`, and `overflow-y` computes
|
|
@@ -4535,8 +4556,10 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
4535
4556
|
| Property | Set on | Default | What it is |
|
|
4536
4557
|
| --- | --- | --- | --- |
|
|
4537
4558
|
| `--min-w` | `.bb-table` | `0px` | |
|
|
4538
|
-
| `--bg` | `.bb-table` | `var(--bb-panel)` | The table's surface colour.
|
|
4559
|
+
| `--bg` | `.bb-table` | `var(--bb-panel)` | The table's surface colour. A root table PAINTS it (below), so the whole table is one solid surface: pinned cells, the stuck head band and the rows between them always match, whatever the table sits on. Set it on the table (`.my-table { --bg: … }`) to blend into another surface. Rows and cells stay transparent so the row states and tones lay over it; a nested table re-declares its own and paints nothing (it sits on its parent's rows). |
|
|
4539
4560
|
| `--row-hover` | `.bb-table` | `var(--bb-surface-hover)` | The row hover's fill: the faint wash by default. Retint it or switch it off here (`transparent`), never with a `hover:bg-*` on the row: a pinned cell can only inherit the row's colour, and a transparent one would let the scrolled cells show through it. This one knob reaches the row and its pinned cells alike. |
|
|
4561
|
+
| `--row-tone` | `.bb-table` | `initial` | A row's resting tone: set `--row-tone` on a row (`pt:row`, `row-class`) on an open row's expansion (`pt:expand`) or on a `#<key>:first` / `:last` row (`pt:firstRow` / `pt:lastRow`), never a `bg-*`. It paints as one translucent layer (`--row-tone-mix` of the colour) ABOVE every state fill, so hover and highlighted still show through it, and pinned cells and sticky rows lay the same layer over their opaque base. Re-declared on every table, so a table nested in a toned row starts untoned (the row's value would otherwise inherit into it). |
|
|
4562
|
+
| `--row-tone-mix` | `.bb-table` | `8%` | |
|
|
4540
4563
|
| `--px` | `.bb-table` | `12px` | |
|
|
4541
4564
|
| `--cell-h` | `.bb-table` | `36px` | |
|
|
4542
4565
|
| `--py` | `.bb-table` | `6px` | |
|
|
@@ -4565,6 +4588,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
4565
4588
|
| `--cue-w` | `.bb-table` | `8px` | |
|
|
4566
4589
|
| `--cue` | `.bb-table` | `rgb(0 0 0 / 0.1)` | |
|
|
4567
4590
|
| `--row-bg` | `.bb-table__row--lifted` | `var(--bb-panel)` | |
|
|
4591
|
+
| `--tone` | `.bb-table__row` | `color-mix( in oklab, var(--row-tone, transparent) var(--row-tone-mix), transpare…` | |
|
|
4568
4592
|
|
|
4569
4593
|
## Component tree
|
|
4570
4594
|
|
package/dist/ai/BbTimePicker.md
CHANGED
|
@@ -76,7 +76,8 @@ const opensAt = ref<string | null>(null);
|
|
|
76
76
|
|
|
77
77
|
The value is typed `string | string[] | null` in either mode. `v-model` needs
|
|
78
78
|
nothing: bind a `ref<string | null>` for one time, a `ref<string[]>` for a
|
|
79
|
-
range (always an array, `[]` when empty).
|
|
79
|
+
range (always an array, `[]` when empty). With no `v-model` at all the picker keeps the picked value itself, like a
|
|
80
|
+
native input, and still emits `update:modelValue`. An explicit `@update:model-value`
|
|
80
81
|
handler narrows in one line:
|
|
81
82
|
|
|
82
83
|
```ts no-check
|
|
@@ -294,7 +295,7 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
|
|
|
294
295
|
## v-model
|
|
295
296
|
|
|
296
297
|
- `v-model:activeSegment` — type: `BbTimePickerSegment \| undefined`
|
|
297
|
-
- `v-model` — type: `string \| string[] \| null`
|
|
298
|
+
- `v-model` — type: `string \| string[] \| null \| undefined`
|
|
298
299
|
|
|
299
300
|
## Props
|
|
300
301
|
|
|
@@ -313,7 +314,7 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
|
|
|
313
314
|
| `label` | `string \| undefined` | | | Accessible label. The activator is named by it followed by the activator's own text ("Due date 12 Sep"), through `aria-labelledby`. |
|
|
314
315
|
| `max` | `string \| undefined` | | | Maximum selectable time, `HH:mm` (other shapes throw at setup). The columns disable the entries no in-range time can use; a typed value (or an hour beside an out-of-range minute) is clamped with a `disabled_time` error. |
|
|
315
316
|
| `min` | `string \| undefined` | | | Minimum selectable time, `HH:mm` (other shapes throw at setup). The columns disable the entries no in-range time can use; a typed value (or an hour beside an out-of-range minute) is clamped with a `disabled_time` error. |
|
|
316
|
-
| `modelValue` | `string \| string[] \| null` | |
|
|
317
|
+
| `modelValue` | `string \| string[] \| null \| undefined` | | | v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`) string, or a two-element `[start, end]` array when `range` is true. |
|
|
317
318
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
|
|
318
319
|
| `offset` | `number \| undefined` | `4` | | Space the popover keeps from the activator. |
|
|
319
320
|
| `padding` | `number \| undefined` | | | Minimum empty space to keep from the edge of the page. |
|
package/dist/ai/BbToastPortal.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbToastPortalContext
|
|
23
|
+
- `default` — scope: `BbToastPortalContext<any>` `{ toast: BbToast; data: P; close: () => void }` — The toast's body, rendered per toast with its own context.
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/changelog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"library": "bitboss-ui",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.74",
|
|
5
5
|
"upgrade": "v2-to-v3",
|
|
6
6
|
"guide": "ai/guides/migration/v2-to-v3.md",
|
|
7
7
|
"legend": {
|
|
@@ -81,7 +81,9 @@
|
|
|
81
81
|
"3.0.0-beta.69",
|
|
82
82
|
"3.0.0-beta.70",
|
|
83
83
|
"3.0.0-beta.71",
|
|
84
|
-
"3.0.0-beta.72"
|
|
84
|
+
"3.0.0-beta.72",
|
|
85
|
+
"3.0.0-beta.73",
|
|
86
|
+
"3.0.0-beta.74"
|
|
85
87
|
],
|
|
86
88
|
"unpublished": [
|
|
87
89
|
"3.0.0-alpha.2",
|
|
@@ -104,7 +106,7 @@
|
|
|
104
106
|
],
|
|
105
107
|
"summary": {
|
|
106
108
|
"renames": 238,
|
|
107
|
-
"behaviourBreaks":
|
|
109
|
+
"behaviourBreaks": 336,
|
|
108
110
|
"bySurface": {
|
|
109
111
|
"prop": 22,
|
|
110
112
|
"option": 1,
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
"class": 140
|
|
116
118
|
},
|
|
117
119
|
"unreleased": 0,
|
|
118
|
-
"added":
|
|
120
|
+
"added": 591
|
|
119
121
|
},
|
|
120
122
|
"added": {
|
|
121
123
|
"3.0.0-alpha.1": [
|
|
@@ -2745,6 +2747,38 @@
|
|
|
2745
2747
|
"dialog · action buttons pass iconOnly and prepend:icon straight to BbButton",
|
|
2746
2748
|
"button · icon-only replaces the icon prop on BbButton, BbDropdownButton and BbBadge",
|
|
2747
2749
|
"badge · text prop and per-breakpoint size and icon-only, as on BbButton"
|
|
2750
|
+
],
|
|
2751
|
+
"3.0.0-beta.73": [
|
|
2752
|
+
"gate · browser chunks are packed by component folder"
|
|
2753
|
+
],
|
|
2754
|
+
"3.0.0-beta.74": [
|
|
2755
|
+
"gate · record what runs in a run log",
|
|
2756
|
+
"gate · every gate logs the selector's pick from the fork point (q96.17 q2)",
|
|
2757
|
+
"gate · the selector log runs niced and records its cpu seconds (q96.17 q2)",
|
|
2758
|
+
"report · npx bitboss-ui report, mcp report_issue and the agent docs for the report inbox",
|
|
2759
|
+
{
|
|
2760
|
+
"text": "types · every component exports its whole slots type",
|
|
2761
|
+
"components": [
|
|
2762
|
+
"BbConfirm",
|
|
2763
|
+
"BbForm",
|
|
2764
|
+
"BbHoverCard",
|
|
2765
|
+
"BbPopover",
|
|
2766
|
+
"BbToast"
|
|
2767
|
+
]
|
|
2768
|
+
},
|
|
2769
|
+
"table · resting row tone that hover and pinned cells build on",
|
|
2770
|
+
{
|
|
2771
|
+
"text": "pickers · the bare pickers work without v-model",
|
|
2772
|
+
"components": [
|
|
2773
|
+
"BbCalendar",
|
|
2774
|
+
"BbColorPalette",
|
|
2775
|
+
"BbDatePicker",
|
|
2776
|
+
"BbTimePicker",
|
|
2777
|
+
"CommonFieldInput"
|
|
2778
|
+
]
|
|
2779
|
+
},
|
|
2780
|
+
"table · the table paints its own --bg, one solid surface",
|
|
2781
|
+
"report · an app can turn reporting off in its package.json"
|
|
2748
2782
|
]
|
|
2749
2783
|
},
|
|
2750
2784
|
"breaking": [
|
|
@@ -10376,6 +10410,28 @@
|
|
|
10376
10410
|
"description": "BbTree with expandable unset: a node with a child that is not hidden is expandable (was: no node), so a template gated on the slot's expandable now renders a toggle on every branch. false, true, the function form and a node's own expandable are unchanged. Remove :expandable=\"(n) => !!n.children?.length\" (the default, and wrong for all-hidden children); pass :expandable=\"false\" to keep a tree without toggles",
|
|
10377
10411
|
"guide": "migration/v2-to-v3.md",
|
|
10378
10412
|
"firstReleasedIn": "3.0.0-beta.72"
|
|
10413
|
+
},
|
|
10414
|
+
{
|
|
10415
|
+
"id": "f504",
|
|
10416
|
+
"kind": "behaviour",
|
|
10417
|
+
"summary": "BbAlert renders no empty `.bb-alert__title` / `.bb-alert__icon-container`: rewrite `:has(.bb-alert__title:empty)` as `:not(:has(.bb-alert__title))`, drop `pt:title=\"hidden\"` workarounds",
|
|
10418
|
+
"components": [
|
|
10419
|
+
"BbAlert"
|
|
10420
|
+
],
|
|
10421
|
+
"description": "BbAlert renders no empty title row and no empty icon cell: with no title (prop or slot) there is no .bb-alert__title element, and with no icon there is no .bb-alert__icon-container. A selector that matched the empty containers (:has(.bb-alert__title:empty), .bb-alert__title:empty, .bb-alert__icon-container:empty) silently stops matching: write :not(:has(.bb-alert__title)) for a body-only alert, :not(:has(.bb-alert__icon-container)) for one with no icon, and drop pt:title=\"hidden\" / [&_.bb-alert__icon-container]:hidden workarounds",
|
|
10422
|
+
"guide": "migration/v2-to-v3.md",
|
|
10423
|
+
"firstReleasedIn": "3.0.0-beta.74"
|
|
10424
|
+
},
|
|
10425
|
+
{
|
|
10426
|
+
"id": "f505",
|
|
10427
|
+
"kind": "behaviour",
|
|
10428
|
+
"summary": "BbTable paints its own `--bg` (the panel colour) at rest: on another surface set `--bg` once on the table to blend in; pinned cells and the stuck header follow",
|
|
10429
|
+
"components": [
|
|
10430
|
+
"BbTable"
|
|
10431
|
+
],
|
|
10432
|
+
"description": "BbTable paints its own --bg (default --bb-panel) at rest: a root table is one solid surface, so a table on a surface that is not the panel colour now shows the panel colour (it was transparent, with only its pinned cells and stuck header painting --bg). Set --bg once on the table to blend in (.my-card .bb-table { --bg: var(--card-bg) }); pinned cells and the stuck header follow. A nested table still paints nothing. A .bb-table.card { background: var(--bg) } line is now redundant",
|
|
10433
|
+
"guide": "migration/v2-to-v3.md",
|
|
10434
|
+
"firstReleasedIn": "3.0.0-beta.74"
|
|
10379
10435
|
}
|
|
10380
10436
|
]
|
|
10381
10437
|
}
|