bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.75
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/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +11 -6
- package/dist/ai/BbDatePicker.md +12 -0
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +3 -1
- package/dist/ai/BbDropdown.md +155 -60
- package/dist/ai/BbDropdownButton.md +25 -6
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +17 -16
- package/dist/ai/BbTimePicker.md +12 -0
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +163 -6
- package/dist/ai/components.json +32 -34
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +22 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -0
- package/dist/ai/manifest/components/BbDropdown.json +20 -14
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +4 -0
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/source/BbAvatar.md +119 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +52 -54
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +18 -0
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +40 -1
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +211 -39
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +104 -38
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +72 -26
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +15 -0
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +213 -202
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +65 -41
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +573 -276
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +4 -1
- package/llms.txt +1 -1
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/validate-bb-markup.mjs +20 -0
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -133,7 +133,9 @@ and parses its own digits. Any other attribute lands on the field root; a
|
|
|
133
133
|
|
|
134
134
|
`min` / `max` (`HH:mm`) clamp typed times when interaction ends — the value
|
|
135
135
|
snaps to the nearest bound and an `error` event with code `disabled_time`
|
|
136
|
-
fires (`{ original, normalized }`).
|
|
136
|
+
fires (`{ original, normalized }`). A value your app sets past a bound stays
|
|
137
|
+
as it is while nobody touches the field; once the user focuses it and leaves,
|
|
138
|
+
it is clamped like a typed one. In `range` mode the model is `[start,
|
|
137
139
|
end]`; typing an inverted pair swaps it on blur with the usual
|
|
138
140
|
`end_before_start` error.
|
|
139
141
|
|
|
@@ -162,6 +164,15 @@ title and ✕: none of the input's own parts reach inside the sheet). `disableWr
|
|
|
162
164
|
interaction, and a tap anywhere on the field opens them (Enter or Space too;
|
|
163
165
|
the ✕ still only clears).
|
|
164
166
|
|
|
167
|
+
### Opening from code: `v-model:open`
|
|
168
|
+
|
|
169
|
+
`v-model` is the value; `v-model:open` is whether the time panel is open. Bound,
|
|
170
|
+
your ref opens and closes it, and every open and close the user makes is
|
|
171
|
+
written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
|
|
172
|
+
listener is only the initial state. An open from code is the same open a
|
|
173
|
+
click makes, and `disabled` / `readonly` refuse it (the ref is set back
|
|
174
|
+
to `false`).
|
|
175
|
+
|
|
165
176
|
### Events & v-model
|
|
166
177
|
|
|
167
178
|
| Event | Payload | When |
|
|
@@ -295,6 +306,7 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
295
306
|
## v-model
|
|
296
307
|
|
|
297
308
|
- `v-model` — type: `string \| string[] \| null \| undefined`
|
|
309
|
+
- `v-model:open` — type: `boolean \| undefined`
|
|
298
310
|
|
|
299
311
|
## Props
|
|
300
312
|
|
|
@@ -330,6 +342,7 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
330
342
|
| `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 array when `range` is true. |
|
|
331
343
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
332
344
|
| `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. |
|
|
345
|
+
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
333
346
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
334
347
|
| `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
|
|
335
348
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
@@ -398,6 +411,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
398
411
|
- `show` — `(): void` — Emitted as soon as the time panel (the popover, or the sheet on a phone) starts to open.
|
|
399
412
|
- `shown` — `(): void` — Emitted once the time panel is open and its open transition has finished.
|
|
400
413
|
- `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted whenever the selected time changes. `null` for cleared values, a `HH:mm(:ss)` string, or an array in range mode.
|
|
414
|
+
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
401
415
|
|
|
402
416
|
## Slots
|
|
403
417
|
|
package/dist/ai/BbToast.md
CHANGED
|
@@ -365,8 +365,9 @@ positions form independent stacks.
|
|
|
365
365
|
### Action buttons
|
|
366
366
|
|
|
367
367
|
Pass an `actions` array to render buttons in a row below the text. While a
|
|
368
|
-
button's `onClick` runs it shows a spinner, its siblings
|
|
369
|
-
|
|
368
|
+
button's `onClick` runs it shows a spinner, its siblings ignore clicks (they
|
|
369
|
+
keep their look and leave the tab order), and the auto-dismiss countdown is
|
|
370
|
+
held; the toast dismisses itself when the callback
|
|
370
371
|
resolves. A rejected callback keeps the toast open and the countdown resumes.
|
|
371
372
|
Defaults per button: `variant: 'primary'`, `size: 'sm'`. An action's `text`
|
|
372
373
|
is its button label; the toast's own `text` is the body copy above them.
|
package/dist/ai/BbTree.md
CHANGED
|
@@ -471,6 +471,10 @@ and `#<depth>:children` slots that **replace the children container** of the
|
|
|
471
471
|
matching node — the recursion stops there and your content renders instead,
|
|
472
472
|
useful for a custom layout or an inline empty state under one branch.
|
|
473
473
|
|
|
474
|
+
A slot that renders nothing for a node (its content behind a `v-if` that is
|
|
475
|
+
false there) is skipped: `#<value>` falls to `#<depth>`, then `default`; an
|
|
476
|
+
empty `:children` slot leaves that node its default children.
|
|
477
|
+
|
|
474
478
|
**Sections, pages and a special trash node**
|
|
475
479
|
|
|
476
480
|
```vue
|
|
@@ -1216,7 +1220,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1216
1220
|
- `default` — scope: `BbTreeNodeSlotProps<Meta>` `{ meta: Meta; item: BbTreeItem<Meta>; parent?: BbTreeItem<Meta>; index: number; depth: number; value: any; expanded: boolean; expandable: boolean; toggleExpanded: () => void; expandProps: BbTreeExpandControllerProps }`
|
|
1217
1221
|
- `#<value>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node, by its resolved `item-value` (string or number) through `slotKey`; beats `<depth>`, which beats `default`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
|
|
1218
1222
|
- `#<depth>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — Every node at one depth (`0` = root); a numeric value can share this name. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
|
|
1219
|
-
- `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too.
|
|
1223
|
+
- `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too; empty, the default children.
|
|
1220
1224
|
- `#<depth>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — The children container of every node at one depth.
|
|
1221
1225
|
|
|
1222
1226
|
## CSS custom properties
|
package/dist/ai/CommonPopover.md
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
| `anchor` | `ElementOrComponentRef \| VirtualAnchor \| undefined` | | | The element the popover positions itself relative to. Accepts an HTMLElement, a Vue component ref, or a virtual element with a `getBoundingClientRect` method. |
|
|
20
20
|
| `arrowPadding` | `number \| undefined` | | | Space the arrow will maintain to the edge of the dropdown. Useful when the floating element has border radius so it won't appear broken |
|
|
21
21
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Keeps the popover inside this element alongside its anchor (sideways above or below, vertically beside it); away from the anchor it may pass the edge, and only the viewport flips it. It never clamps the size (that is `overflowBoundary`). An HTMLElement, component ref or selector. |
|
|
22
|
+
| `boundaryX` | `Element \| undefined` | | | Internal: keeps the popover inside this element's left and right edges only; its top and bottom stay the viewport's. Ignored when `boundary` is set. A dropdown inside a table passes the table. |
|
|
22
23
|
| `bubbleAttrs` | `Record<string, unknown> \| ((space: CommonPopoverAvailableSpace) => Record<string, unknown>) \| undefined` | | | Attributes bound on the bubble (`class`, `style`, `inert`, …) after its own class, so the owner can make the bubble its layout container. The function form receives the default slot's free space (for a height cap). |
|
|
23
24
|
| `dialog` | `boolean \| undefined` | `false` | | Renders the popover as a `<dialog>` element (modal overlay) instead of a `<span>` with the Popover API. |
|
|
24
25
|
| `disableFlip` | `boolean \| undefined` | `false` | | Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default). |
|
package/dist/ai/FlatListBox.md
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
50
50
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
51
51
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
52
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
52
53
|
|
|
53
54
|
## Slots
|
|
54
55
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
51
51
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
52
52
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
53
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
53
54
|
|
|
54
55
|
## Slots
|
|
55
56
|
|
package/dist/ai/ListBox.md
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
56
56
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
57
57
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
58
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
58
59
|
|
|
59
60
|
## Slots
|
|
60
61
|
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
| --- | --- | --- | --- | --- |
|
|
15
15
|
| `block` | `string` | | yes | The owning group's public BEM block (`bb-checkbox-group`): the nodes are its elements (`__list`, `__loading`, `__item`, `__label`, …), named after the `pt` parts. |
|
|
16
16
|
| `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
|
|
17
|
-
| `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the
|
|
18
|
-
| `failedText` | `string \| undefined` | | |
|
|
17
|
+
| `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the list shows the failure row (`failedText` and "Try again"), never the `empty` slot. Internal. |
|
|
18
|
+
| `failedText` | `string \| undefined` | | | The failure row's message while `error` is set. |
|
|
19
19
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
20
20
|
| `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Attaches a `--warnings` CSS class; suppressed when `hasErrors` is true. |
|
|
21
21
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
|
|
35
35
|
## Events
|
|
36
36
|
|
|
37
|
-
-
|
|
37
|
+
- `retry` — `(event: MouseEvent): void` — The failure row's "Try again" was pressed: the group runs the failed load again.
|
|
38
38
|
|
|
39
39
|
## Slots
|
|
40
40
|
|
|
41
41
|
- `append` — scope: `object` — Content rendered after the last option, inside the options container.
|
|
42
|
-
- `empty` — scope: `
|
|
42
|
+
- `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the failure row.
|
|
43
43
|
- `input` — scope: `OptionsContainerInputSlotProps<T>` `{ index: number; option: Option<T>; labelId: string; descriptionId: string; rowStates: Partial<Record<RowPtState, boolean>> }` — The actual input element for each option (e.g. radio or checkbox).
|
|
44
44
|
- `label` — scope: `OptionsContainerLabelSlotProps<T>` `{ checked: boolean; item: T; text: string; description: string }` — Replaces the default label text for each option.
|
|
45
45
|
- `loading` — scope: `object` — Content shown while options are loading (replaces the default loading text).
|
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.75",
|
|
5
5
|
"upgrade": "v2-to-v3",
|
|
6
6
|
"guide": "ai/guides/migration/v2-to-v3.md",
|
|
7
7
|
"legend": {
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"3.0.0-beta.71",
|
|
84
84
|
"3.0.0-beta.72",
|
|
85
85
|
"3.0.0-beta.73",
|
|
86
|
-
"3.0.0-beta.74"
|
|
86
|
+
"3.0.0-beta.74",
|
|
87
|
+
"3.0.0-beta.75"
|
|
87
88
|
],
|
|
88
89
|
"unpublished": [
|
|
89
90
|
"3.0.0-alpha.2",
|
|
@@ -105,19 +106,19 @@
|
|
|
105
106
|
"3.0.0-beta.55"
|
|
106
107
|
],
|
|
107
108
|
"summary": {
|
|
108
|
-
"renames":
|
|
109
|
-
"behaviourBreaks":
|
|
109
|
+
"renames": 239,
|
|
110
|
+
"behaviourBreaks": 341,
|
|
110
111
|
"bySurface": {
|
|
111
112
|
"prop": 22,
|
|
112
113
|
"option": 1,
|
|
113
114
|
"pt": 15,
|
|
114
|
-
"slot":
|
|
115
|
+
"slot": 23,
|
|
115
116
|
"item": 6,
|
|
116
117
|
"cssVar": 32,
|
|
117
118
|
"class": 140
|
|
118
119
|
},
|
|
119
120
|
"unreleased": 0,
|
|
120
|
-
"added":
|
|
121
|
+
"added": 604
|
|
121
122
|
},
|
|
122
123
|
"added": {
|
|
123
124
|
"3.0.0-alpha.1": [
|
|
@@ -2779,6 +2780,73 @@
|
|
|
2779
2780
|
},
|
|
2780
2781
|
"table · the table paints its own --bg, one solid surface",
|
|
2781
2782
|
"report · an app can turn reporting off in its package.json"
|
|
2783
|
+
],
|
|
2784
|
+
"3.0.0-beta.75": [
|
|
2785
|
+
"gate · the landing train (q96.17 s2)",
|
|
2786
|
+
"gate · a static red names its culprit by merge prefix",
|
|
2787
|
+
{
|
|
2788
|
+
"text": "items · empty means empty, failure row ends with try again",
|
|
2789
|
+
"components": [
|
|
2790
|
+
"BbCheckboxGroup",
|
|
2791
|
+
"BbDropdown",
|
|
2792
|
+
"BbRadioGroup",
|
|
2793
|
+
"BbSelect",
|
|
2794
|
+
"BbSelectPopover",
|
|
2795
|
+
"BbSwitchGroup",
|
|
2796
|
+
"BbTable",
|
|
2797
|
+
"FlatListBox",
|
|
2798
|
+
"GroupedListBox",
|
|
2799
|
+
"ListBox",
|
|
2800
|
+
"OptionsContainer"
|
|
2801
|
+
]
|
|
2802
|
+
},
|
|
2803
|
+
"avatar · name for initials and the label, color from a stable palette",
|
|
2804
|
+
"dropdown · group title is #<groupId>:label, #group draws groupBy headings",
|
|
2805
|
+
"dropdown · min-query-length on searchable groups, as on BbSelect",
|
|
2806
|
+
"dropdown · a box pt part for the searchable group's search box",
|
|
2807
|
+
"dropdown · v-model is the open state, as on BbDialog and BbOffCanvas",
|
|
2808
|
+
{
|
|
2809
|
+
"text": "dropdown-button · forward the menu's box and list pt parts",
|
|
2810
|
+
"components": [
|
|
2811
|
+
"BbDropdown",
|
|
2812
|
+
"BbDropdownButton"
|
|
2813
|
+
]
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"text": "dropdown · inside a table the menu keeps to the table's left and right edges",
|
|
2817
|
+
"components": [
|
|
2818
|
+
"CommonPopover"
|
|
2819
|
+
]
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
"text": "select · sticky group headers, and an opening list shows the selection's header",
|
|
2823
|
+
"components": [
|
|
2824
|
+
"BbDropdown",
|
|
2825
|
+
"BbSelectPopover",
|
|
2826
|
+
"GroupedListBox"
|
|
2827
|
+
]
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"text": "select · a create row for option:add",
|
|
2831
|
+
"components": [
|
|
2832
|
+
"BbSelectPopover",
|
|
2833
|
+
"FlatListBox",
|
|
2834
|
+
"GroupedListBox"
|
|
2835
|
+
]
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"text": "select · v-model:open on the value components, through their own open and close",
|
|
2839
|
+
"components": [
|
|
2840
|
+
"BbColorInput",
|
|
2841
|
+
"BbColorPalette",
|
|
2842
|
+
"BbDatePicker",
|
|
2843
|
+
"BbDatePickerInput",
|
|
2844
|
+
"BbDropdownButton",
|
|
2845
|
+
"BbSelectPopover",
|
|
2846
|
+
"BbTimePicker",
|
|
2847
|
+
"BbTimePickerInput"
|
|
2848
|
+
]
|
|
2849
|
+
}
|
|
2782
2850
|
]
|
|
2783
2851
|
},
|
|
2784
2852
|
"breaking": [
|
|
@@ -3710,6 +3778,19 @@
|
|
|
3710
3778
|
"default": "—",
|
|
3711
3779
|
"firstReleasedIn": "3.0.0-beta.72"
|
|
3712
3780
|
},
|
|
3781
|
+
{
|
|
3782
|
+
"id": "f511",
|
|
3783
|
+
"kind": "rename",
|
|
3784
|
+
"surface": "slot",
|
|
3785
|
+
"components": [
|
|
3786
|
+
"BbDropdown",
|
|
3787
|
+
"BbDropdownButton"
|
|
3788
|
+
],
|
|
3789
|
+
"from": "<groupId>",
|
|
3790
|
+
"to": "<groupId>:label",
|
|
3791
|
+
"default": "—",
|
|
3792
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
3793
|
+
},
|
|
3713
3794
|
{
|
|
3714
3795
|
"id": "f015",
|
|
3715
3796
|
"kind": "rename",
|
|
@@ -10411,6 +10492,51 @@
|
|
|
10411
10492
|
"guide": "migration/v2-to-v3.md",
|
|
10412
10493
|
"firstReleasedIn": "3.0.0-beta.72"
|
|
10413
10494
|
},
|
|
10495
|
+
{
|
|
10496
|
+
"id": "f507",
|
|
10497
|
+
"kind": "behaviour",
|
|
10498
|
+
"summary": "`#empty` means empty: its scope has no `error` and a failed load shows the failure row; move the failure copy to `failed-text`, drop retry counters from `dependencies`",
|
|
10499
|
+
"components": [
|
|
10500
|
+
"BbSelect",
|
|
10501
|
+
"BbSelectPopover",
|
|
10502
|
+
"BbTable",
|
|
10503
|
+
"BbCheckboxGroup",
|
|
10504
|
+
"BbRadioGroup",
|
|
10505
|
+
"BbSwitchGroup"
|
|
10506
|
+
],
|
|
10507
|
+
"description": "#empty means empty in BbSelect / BbSelectPopover / BbTable / BbCheckboxGroup / BbRadioGroup / BbSwitchGroup, as in BbDropdown: its scope loses error and it never renders for a failed load (prereleases ≤ beta.74 handed it the rejection). A failed load always shows the library's failure row, worded by failed-text: move an #empty v-if=\"error\" branch's copy to failed-text and drop the retry counter from dependencies",
|
|
10508
|
+
"guide": "migration/v2-to-v3.md § 6 item 37",
|
|
10509
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
10510
|
+
},
|
|
10511
|
+
{
|
|
10512
|
+
"id": "f508",
|
|
10513
|
+
"kind": "behaviour",
|
|
10514
|
+
"summary": "The failure row ends with a built-in \"Try again\" (same query, click only); BbDropdown draws it next to the menu as `.bb-dropdown__failed` (was `.bb-dropdown__placeholder--failed`)",
|
|
10515
|
+
"components": [
|
|
10516
|
+
"BbSelect",
|
|
10517
|
+
"BbSelectPopover",
|
|
10518
|
+
"BbDropdown",
|
|
10519
|
+
"BbTable",
|
|
10520
|
+
"BbCheckboxGroup",
|
|
10521
|
+
"BbRadioGroup",
|
|
10522
|
+
"BbSwitchGroup"
|
|
10523
|
+
],
|
|
10524
|
+
"description": "The failure row ends with a built-in \"Try again\" (BbSelect, BbDropdown, BbTable, the choice groups): a button that runs the failed provider call again with the same query, on click only, and hands focus to the search field or the field; label common.retryLabel. BbDropdown draws a root group's failure row next to the menu (.bb-dropdown__failed), no longer as .bb-dropdown__placeholder--failed inside it; BbTable's status region announces the failure",
|
|
10525
|
+
"guide": "migration/v2-to-v3.md § 6 item 37",
|
|
10526
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
10527
|
+
},
|
|
10528
|
+
{
|
|
10529
|
+
"id": "f513",
|
|
10530
|
+
"kind": "behaviour",
|
|
10531
|
+
"summary": "Creatable BbSelect / BbSelectPopover (`option:add`): an unmatched query shows a \"Create «query»\" row, alone in place of `#empty` when nothing matches",
|
|
10532
|
+
"components": [
|
|
10533
|
+
"BbSelect",
|
|
10534
|
+
"BbSelectPopover"
|
|
10535
|
+
],
|
|
10536
|
+
"description": "BbSelect / BbSelectPopover with an option:add listener: a typed query no option matches exactly (case aside) shows a \"Create «query»\" option row, last after the matches or alone, so when nothing matches the panel shows that row instead of the no-results text and #empty. Its click and arrow keys + Enter emit option:add, as Enter already did. A #empty that offered a create link or button is now redundant: drop it, the row does the same",
|
|
10537
|
+
"guide": "migration/v2-to-v3.md § 6 item 169",
|
|
10538
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
10539
|
+
},
|
|
10414
10540
|
{
|
|
10415
10541
|
"id": "f504",
|
|
10416
10542
|
"kind": "behaviour",
|
|
@@ -10432,6 +10558,37 @@
|
|
|
10432
10558
|
"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
10559
|
"guide": "migration/v2-to-v3.md",
|
|
10434
10560
|
"firstReleasedIn": "3.0.0-beta.74"
|
|
10561
|
+
},
|
|
10562
|
+
{
|
|
10563
|
+
"id": "f506",
|
|
10564
|
+
"kind": "behaviour",
|
|
10565
|
+
"summary": "Types `BbCarouselSlotProps` / `BbDropdownItemSlotProps` removed → `Parameters<BbCarouselSlots<T>['slide']>[0]` / `Parameters<BbDropdownSlots['item:prepend']>[0]`",
|
|
10566
|
+
"components": [
|
|
10567
|
+
"BbCarousel",
|
|
10568
|
+
"BbDropdown"
|
|
10569
|
+
],
|
|
10570
|
+
"description": "Type exports BbCarouselSlotProps and BbDropdownItemSlotProps removed (v3 prereleases ≤ beta.74; v2 never exported them): index the component's slots type, Parameters<BbCarouselSlots<T>['slide']>[0], Parameters<BbDropdownSlots['item:prepend']>[0]. The four portal *PortalSlotProps<P> stay",
|
|
10571
|
+
"guide": "migration/v2-to-v3.md §5.5",
|
|
10572
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
10573
|
+
},
|
|
10574
|
+
{
|
|
10575
|
+
"id": "f512",
|
|
10576
|
+
"kind": "behaviour",
|
|
10577
|
+
"summary": "`v-model:open` on BbDropdownButton, BbSelect, BbSelectPopover and the date, time and colour pickers and inputs: the panel's open state (`v-model` stays the value); an `open` attribute is now this prop",
|
|
10578
|
+
"components": [
|
|
10579
|
+
"BbColorInput",
|
|
10580
|
+
"BbColorPalette",
|
|
10581
|
+
"BbDatePicker",
|
|
10582
|
+
"BbDatePickerInput",
|
|
10583
|
+
"BbDropdownButton",
|
|
10584
|
+
"BbSelect",
|
|
10585
|
+
"BbSelectPopover",
|
|
10586
|
+
"BbTimePicker",
|
|
10587
|
+
"BbTimePickerInput"
|
|
10588
|
+
],
|
|
10589
|
+
"description": "v-model:open on BbDropdownButton, BbSelect, BbSelectPopover, BbDatePicker, BbDatePickerInput, BbTimePicker, BbTimePickerInput, BbColorPalette, BbColorInput: the panel's open state, bound or as the initial state (v-model stays the value); an open attribute no longer falls through to the root",
|
|
10590
|
+
"guide": "the component guides",
|
|
10591
|
+
"firstReleasedIn": "3.0.0-beta.75"
|
|
10435
10592
|
}
|
|
10436
10593
|
]
|
|
10437
10594
|
}
|