bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +1 -1
- package/dist/ai/BbDatePickerInput.md +1 -1
- package/dist/ai/BbDialog.md +3 -2
- package/dist/ai/BbDropdown.md +23 -21
- package/dist/ai/BbDropdownButton.md +13 -11
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbSelect.md +153 -43
- package/dist/ai/BbSelectPopover.md +115 -9
- package/dist/ai/BbTable.md +1 -1
- package/dist/ai/BbTimePicker.md +1 -1
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/GroupedListBox.md +2 -2
- package/dist/ai/ListBox.md +3 -2
- package/dist/ai/changelog.json +153 -7
- package/dist/ai/components.json +12 -12
- package/dist/ai/guides/agent-contract.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/v2-to-v3.md +48 -19
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +19 -17
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
- package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +44 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
- package/dist/ai/manifest/components/BbTable.tree.json +5 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +9 -2
- package/dist/ai/source/BbBadge.md +6 -2
- package/dist/ai/source/BbBreadcrumbs.md +5 -2
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +10 -6
- package/dist/ai/source/BbColorPalette.md +5 -2
- package/dist/ai/source/BbDatePickerInput.md +7 -2
- package/dist/ai/source/BbDropdown.md +91 -66
- package/dist/ai/source/BbDropdownButton.md +36 -19
- package/dist/ai/source/BbDropdownGroup.md +91 -66
- package/dist/ai/source/BbGallery.md +6 -5
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +130 -106
- package/dist/ai/source/BbSelectPopover.md +128 -21
- package/dist/ai/source/BbTable.md +42 -9
- package/dist/ai/source/BbTimePickerInput.md +6 -2
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +7 -2
- package/dist/ai/source/GroupedListBox.md +22 -3
- package/dist/ai/source/ListBox.md +7 -1
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
- package/dist/components/BbDropdown/types.d.ts +51 -53
- package/dist/components/BbDropdown/types.js +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
- package/dist/components/BbDropdownButton/types.d.ts +12 -10
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +101 -105
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +22 -13
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/llms-full.txt +477 -187
- package/dist/llms-medium.txt +25 -24
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +4 -4
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +319 -306
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +73 -12
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
{"name":"padding","type":"number","default":"10","description":"Minimum page padding used by floating shift middleware."},
|
|
50
50
|
{"name":"placement","type":"Placement","default":"\"bottom\"","values":["start","end","top","bottom","left","right","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end","start-start","start-end","end-start","end-end"],"description":"Floating placement of the popover."},
|
|
51
51
|
{"name":"prefill","type":"boolean | \"interaction\"","default":"\"interaction\"","description":"When the options first load: `'interaction'` on first open, `true` on mount (and in SSR), `false` once the user types (on open with `disable-writing` or a non-empty model). An array `items` always resolves on mount; else a seeded model's text waits for the first open."},
|
|
52
|
-
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"input\", \"clear\", \"list\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"header\", \"footer\"]; readonly states: readonly [\"selected\", \"disabled\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly option: readonly [\"selected\", \"disabled\"]; readonly itemText: readonly [\"selected\", \"disabled\"]; readonly itemIcon: readonly [\"selected\", \"disabled\"]; readonly itemDescription: readonly [\"selected\", \"disabled\"]; readonly check: readonly [\"selected\", \"disabled\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; clear?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemDescription?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemText?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemIcon?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; check?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
52
|
+
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"input\", \"clear\", \"list\", \"groupHeader\", \"option\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"header\", \"footer\"]; readonly states: readonly [\"selected\", \"disabled\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly option: readonly [\"selected\", \"disabled\"]; readonly itemText: readonly [\"selected\", \"disabled\"]; readonly itemIcon: readonly [\"selected\", \"disabled\"]; readonly itemDescription: readonly [\"selected\", \"disabled\"]; readonly check: readonly [\"selected\", \"disabled\"]; readonly groupHeader: readonly [\"disabled\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; clear?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"clear:open\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; groupHeader?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"groupHeader:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"groupHeader:disabled\"?: PtValue | undefined; \"option:open\"?: PtValue | undefined; \"option:disabled\"?: PtValue | undefined; \"option:selected\"?: PtValue | undefined; } & { option?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemDescription?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemText?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; itemIcon?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; check?: PtValue | PtItemFn<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
53
|
+
{"name":"query","type":"string","description":"The search field's text (`v-model:query`): raw per keystroke, `''` when the component empties it; a write searches at once (guide § Reading and restoring the search)."},
|
|
53
54
|
{"name":"queryDebounceTime","type":"number","default":"500","description":"Debounce delay (ms) before triggering search queries after user input stops."},
|
|
54
55
|
{"name":"readonly","type":"boolean","default":"false","description":"Prevents opening the popover while keeping the activator accessible."},
|
|
55
56
|
{"name":"searchInputAriaLabel","type":"string","default":"`t('select.searchLabel')` (`'Search options'`)","description":"Accessible label used by the search input rendered inside the popover. Falls back to the localized `select.searchLabel` key when omitted."},
|
|
@@ -72,7 +73,8 @@
|
|
|
72
73
|
{"name":"show","signature":"(): void","description":"Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone)."},
|
|
73
74
|
{"name":"shown","signature":"(): void","description":"Emitted once the options surface is open and its open transition has finished."},
|
|
74
75
|
{"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the next selection value whenever selection changes."},
|
|
75
|
-
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."}
|
|
76
|
+
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."},
|
|
77
|
+
{"name":"update:query","signature":"(value: string): void","description":"`v-model:query`: the search field's text."}
|
|
76
78
|
],
|
|
77
79
|
"slots": [
|
|
78
80
|
{"name":"activator","type":"BbSelectPopoverActivatorSlotProps","fields":["clear: () => void","close: () => Promise<void>","focus: () => void","disabled: boolean","loading: boolean","open: () => Promise<void>","props: { ref: (reference: unknown) => void; }","query: string","readonly: boolean","selectedOptions: BbSelectResolvedOption<any>[]","shown: boolean","text: string","toggle: () => Promise<void>"],"description":"Replaces the default trigger element that opens the select popover."},
|
|
@@ -86,7 +88,8 @@
|
|
|
86
88
|
"exposed": [],
|
|
87
89
|
"models": [
|
|
88
90
|
{"name":"modelValue","type":"any"},
|
|
89
|
-
{"name":"open","type":"boolean | undefined"}
|
|
91
|
+
{"name":"open","type":"boolean | undefined"},
|
|
92
|
+
{"name":"query","type":"string | undefined"}
|
|
90
93
|
],
|
|
91
94
|
"pt": {
|
|
92
95
|
"parts": [
|
|
@@ -95,18 +98,19 @@
|
|
|
95
98
|
{"name":"sheet","description":"The bottom sheet the surface becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.","states":["open"]},
|
|
96
99
|
{"name":"input","description":"The search field.","states":["open"]},
|
|
97
100
|
{"name":"clear","description":"The ✕ that empties the search field.","states":["open"]},
|
|
98
|
-
{"name":"list","description":"The `role=\"listbox\"` node
|
|
101
|
+
{"name":"list","description":"The `role=\"listbox\"` node holding the options. Virtualised: the list writes its height and places its rows, which limits layout utilities there. A group's box and the chips are not parts.","states":["open"]},
|
|
102
|
+
{"name":"groupHeader","description":"Every `groupBy` heading (sticky). `#group` replaces its content.","states":["disabled","open"]},
|
|
99
103
|
{"name":"option","description":"One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item.","rowType":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined"},
|
|
100
104
|
{"name":"itemText","description":"An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined"},
|
|
101
105
|
{"name":"itemIcon","description":"An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined"},
|
|
102
106
|
{"name":"itemDescription","description":"An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined"},
|
|
103
|
-
{"name":"check","description":"The tick
|
|
107
|
+
{"name":"check","description":"The tick at a chosen option's end (on every option, drawn on the chosen). A custom `#option` slot keeps it; `pt:check=\"hidden\"` removes it, sparing your slot's glyph. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<Item, BbSelectPopoverPtState, never, BbSelectSlotRow<Item, Known>>) => PtItemResult) | undefined"},
|
|
104
108
|
{"name":"header","description":"The flyout's header band.","states":["open"]},
|
|
105
109
|
{"name":"footer","description":"The flyout's footer band.","states":["open"]}
|
|
106
110
|
],
|
|
107
111
|
"states": [
|
|
108
112
|
{"name":"selected","description":"Per node, on `option`, its `item-*` parts and `check`: a chosen option."},
|
|
109
|
-
{"name":"disabled","description":"Per node, on `option`, its `item-*` parts and `check`: an option that is disabled."},
|
|
113
|
+
{"name":"disabled","description":"Per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: every option of its group is."},
|
|
110
114
|
{"name":"open","description":"Component-wide: the options surface is showing."}
|
|
111
115
|
]
|
|
112
116
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{"name":"CommonPopover","kind":"internal"},
|
|
21
21
|
{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},
|
|
22
22
|
{"name":"WarningIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-warning-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},
|
|
23
|
-
{"name":"ListBox","kind":"internal","children":[{"name":"FlatListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]},{"name":"GroupedListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}]},
|
|
23
|
+
{"name":"ListBox","kind":"internal","children":[{"name":"FlatListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]},{"name":"GroupedListBox","kind":"internal","vocabulary":"BbSelectPopover","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"groupHeader","target":"span.bb-listbox__group-header"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}]},
|
|
24
24
|
{"name":"BbSmoothHeight","kind":"public"}
|
|
25
25
|
]
|
|
26
26
|
},
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"__option--selected",
|
|
59
59
|
"__option-append-icon",
|
|
60
60
|
"__option-check",
|
|
61
|
+
"__option-check--own",
|
|
61
62
|
"__option-content",
|
|
62
63
|
"__option-prepend-icon",
|
|
63
64
|
"__outer-container",
|
|
@@ -155,6 +156,7 @@
|
|
|
155
156
|
{"class":"bb-listbox__option--selected","reads":["--option-font-size"]},
|
|
156
157
|
{"class":"bb-listbox__option-append-icon","reads":["--option-font-size"]},
|
|
157
158
|
{"class":"bb-listbox__option-check","reads":["--option-font-size"]},
|
|
159
|
+
{"class":"bb-listbox__option-check--own"},
|
|
158
160
|
{"class":"bb-listbox__option-content"},
|
|
159
161
|
{"class":"bb-listbox__option-prepend-icon","reads":["--option-font-size"]},
|
|
160
162
|
{"class":"bb-listbox__outer-container","reads":["--bg","--transition-duration"]},
|
|
@@ -186,6 +188,7 @@
|
|
|
186
188
|
],
|
|
187
189
|
"lands": [
|
|
188
190
|
{"part":"list","target":"span.bb-listbox__list"},
|
|
191
|
+
{"part":"groupHeader","target":"span.bb-listbox__group-header"},
|
|
189
192
|
{"part":"option","target":"span.bb-listbox__option"},
|
|
190
193
|
{"part":"itemText","target":"span.bb-listbox__item-text"},
|
|
191
194
|
{"part":"itemDescription","target":"span.bb-listbox__item-description"}
|
|
@@ -106,9 +106,11 @@
|
|
|
106
106
|
"__row--menu",
|
|
107
107
|
"__row-handle",
|
|
108
108
|
"__row-handle-icon",
|
|
109
|
+
"__row-handle-icon--own",
|
|
109
110
|
"__row-reorder-status",
|
|
110
111
|
"__select-icon",
|
|
111
112
|
"__sort-icon",
|
|
113
|
+
"__sort-icon--own-desc",
|
|
112
114
|
"__table",
|
|
113
115
|
"__table--hold-*"
|
|
114
116
|
],
|
|
@@ -367,7 +369,9 @@
|
|
|
367
369
|
{"class":"bb-table__row--menu","reads":["--row-bg"]},
|
|
368
370
|
{"class":"bb-table__row-handle"},
|
|
369
371
|
{"class":"bb-table__row-handle-icon"},
|
|
370
|
-
{"class":"bb-table__row-
|
|
372
|
+
{"class":"bb-table__row-handle-icon--own"},
|
|
373
|
+
{"class":"bb-table__row-reorder-status","tag":"span"},
|
|
374
|
+
{"class":"bb-table__sort-icon--own-desc","tag":"BbIcon"}
|
|
371
375
|
],
|
|
372
376
|
"unaligned": {
|
|
373
377
|
"parts": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{"name":"multiple","type":"boolean","default":"false","description":"Allows multiple options to be selected simultaneously."},
|
|
23
23
|
{"name":"open","type":"boolean","default":"false","description":"Whether the listbox is open (visible)."},
|
|
24
24
|
{"name":"optionHeight","type":"number","description":"Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},
|
|
25
|
-
{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\">","description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},
|
|
25
|
+
{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"groupHeader\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\">","description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},
|
|
26
26
|
{"name":"transitionDuration","type":"number","default":"250","description":"Duration of open/close transition in milliseconds."}
|
|
27
27
|
],
|
|
28
28
|
"events": [
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"tree": {
|
|
4
4
|
"bindings": [
|
|
5
5
|
{"part":"list","target":"span.bb-listbox__list"},
|
|
6
|
+
{"part":"groupHeader","target":"span.bb-listbox__group-header"},
|
|
6
7
|
{"part":"option","target":"span.bb-listbox__option"},
|
|
7
8
|
{"part":"itemIcon","target":"BbIcon"},
|
|
8
9
|
{"part":"itemText","target":"span.bb-listbox__item-text"},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{"name":"open","type":"boolean","default":"false","description":"Whether the listbox is open (visible)."},
|
|
24
24
|
{"name":"optionHeight","type":"number","description":"Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport."},
|
|
25
25
|
{"name":"options","type":"Option<Item>[]","description":"Flat option list. Used when `groups` is not provided."},
|
|
26
|
-
{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\">","description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},
|
|
26
|
+
{"name":"passthrough","type":"PtBindings<\"option\" | \"list\" | \"itemDescription\" | \"itemText\" | \"groupHeader\" | \"itemIcon\" | \"check\", \"disabled\" | \"selected\">","description":"Passthrough resolver handed down by the select popover: `list` is the `role=\"listbox\"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal."},
|
|
27
27
|
{"name":"transitionDuration","type":"number","description":"Duration of open/close transition in milliseconds."}
|
|
28
28
|
],
|
|
29
29
|
"events": [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tree": {
|
|
4
4
|
"nodes": [
|
|
5
5
|
{"name":"FlatListBox","kind":"internal","vocabulary":"ListBox","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]}]},
|
|
6
|
-
{"name":"GroupedListBox","kind":"internal","vocabulary":"ListBox","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}
|
|
6
|
+
{"name":"GroupedListBox","kind":"internal","vocabulary":"ListBox","bindings":[{"part":"list","target":"span.bb-listbox__list"},{"part":"groupHeader","target":"span.bb-listbox__group-header"},{"part":"option","target":"span.bb-listbox__option"},{"part":"itemIcon","target":"BbIcon"},{"part":"itemText","target":"span.bb-listbox__item-text"},{"part":"itemDescription","target":"span.bb-listbox__item-description"},{"part":"check","target":"BbIcon"}],"children":[{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","repeated":true}]}
|
|
7
7
|
]
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"library": "bitboss-ui",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
5
|
-
"generatedAt": "2026-11-
|
|
4
|
+
"version": "3.0.0-beta.76",
|
|
5
|
+
"generatedAt": "2026-11-14T16:30:38.000Z",
|
|
6
6
|
"about": "The bitboss-ui API for agents: open components/<Name>.json for one component (every prop, event, slot, v-model, pt part and state, and the public types its API uses; one member per line; a row or pt part written { name, common: true } is whole once in common.json, read it once). components/<Name>.tree.json has its component tree and CSS internals; files.removed the old names. The machine file with everything in one place is ../components.json.",
|
|
7
7
|
"reading": {
|
|
8
8
|
"components[]": "one row per component; description = its first sentence. Its API file is files.component with <Name> = name; its components/<Name>.tree.json (component tree, css classes, CSS custom properties) exists unless the row says tree: false.",
|
|
@@ -194,7 +194,7 @@ export default defineConfig({
|
|
|
194
194
|
laravel({ input: 'resources/js/app.ts', refresh: true }),
|
|
195
195
|
vue(),
|
|
196
196
|
bitbossUi({
|
|
197
|
-
|
|
197
|
+
icons: { dir: './resources/js/assets/icons' },
|
|
198
198
|
components: {
|
|
199
199
|
BbBadge: {
|
|
200
200
|
variants: [
|
|
@@ -359,7 +359,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
359
359
|
|
|
360
360
|
// Icon names are full static literals: the production icon scanner bundles
|
|
361
361
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
362
|
-
// from the single-colour UI icons in `<
|
|
362
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
363
363
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
364
364
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
365
365
|
{
|
|
@@ -374,7 +374,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
374
374
|
|
|
375
375
|
// Icon names are full static literals: the production icon scanner bundles
|
|
376
376
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
377
|
-
// from the single-colour UI icons in `<
|
|
377
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
378
378
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
379
379
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
380
380
|
{
|
|
@@ -25,7 +25,7 @@ Sibling recipes: [Nuxt](../nuxt/onboarding.md) ·
|
|
|
25
25
|
those files before anything below, and do not hand-roll replacements —
|
|
26
26
|
the peek stack, the close semantics and the sidebar's out-of-flow
|
|
27
27
|
behaviour are all load-bearing here.
|
|
28
|
-
- **Four brand glyphs in the plugin's `
|
|
28
|
+
- **Four brand glyphs in the plugin's `icons.dir`**: `stripe.svg`, `slack.svg`,
|
|
29
29
|
`google-drive.svg` and `quickbooks.svg` (any single-colour SVG; the
|
|
30
30
|
integrations list names them `local:stripe` and so on). Without them each
|
|
31
31
|
integration row logs a missing-icon error; or swap the names for
|
|
@@ -305,7 +305,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
305
305
|
|
|
306
306
|
// Icon names are full static literals: the production icon scanner bundles
|
|
307
307
|
// only literals it can see. The logos are fixed-colour brand art, kept apart
|
|
308
|
-
// from the single-colour UI icons in `<
|
|
308
|
+
// from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
|
|
309
309
|
// is still `local:stripe`: names flatten to the file's basename).
|
|
310
310
|
const integrations = reactive<WorkspaceIntegration[]>([
|
|
311
311
|
{
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
64
64
|
import { computed, h, useAttrs, type FunctionalComponent } from 'vue';
|
|
65
65
|
import { useId } from '@/composables/useId';
|
|
66
|
-
import
|
|
66
|
+
import chevronDownSvgBuiltin from '@/assets/svgs/chevron_down.svg?raw';
|
|
67
67
|
import BbBaseButton from '../BbBaseButton/BbBaseButton.vue';
|
|
68
68
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
69
69
|
import BbCollapsible from '../BbCollapsible/BbCollapsible.vue';
|
|
@@ -75,8 +75,7 @@ import {
|
|
|
75
75
|
} from './types';
|
|
76
76
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
77
77
|
import { transitions } from '@/utilities/misc/transitions';
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
80
79
|
defineOptions({ inheritAttrs: false });
|
|
81
80
|
/**
|
|
82
81
|
* Open / closed, or with `value` the key a group of accordions shares: open
|
|
@@ -84,7 +83,6 @@ defineOptions({ inheritAttrs: false });
|
|
|
84
83
|
*/
|
|
85
84
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a boolean, or with `value` whatever key the app's group uses (see `value`): typed narrower, a `v-model` on a boolean ref would reject the write-back
|
|
86
85
|
const model = defineModel<any>({ default: false });
|
|
87
|
-
|
|
88
86
|
const props = withDefaults(
|
|
89
87
|
defineProps<
|
|
90
88
|
BbAccordionProps &
|
|
@@ -94,8 +92,9 @@ const props = withDefaults(
|
|
|
94
92
|
transitionDuration: transitions.medium,
|
|
95
93
|
}
|
|
96
94
|
);
|
|
97
|
-
|
|
98
95
|
defineSlots<BbAccordionSlots>();
|
|
96
|
+
const chevronDownSvg = useInternalIcon('expandChevron', chevronDownSvgBuiltin);
|
|
97
|
+
export type { BbAccordionProps, BbAccordionEvents, BbAccordionSlots };
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* Passthrough. `panel` is our own div inside the collapsible (the region); `header` is the trigger; `title` and `icon` (the chevron) exist only without a `#header` slot.
|
|
@@ -60,14 +60,15 @@ import { useLogger } from '@/composables/useLogger';
|
|
|
60
60
|
import { removedPropsFor } from '@/deprecation/removedProps';
|
|
61
61
|
import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
|
|
62
62
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
63
|
-
import
|
|
63
|
+
import defaultFallbackIconBuiltin from '@/assets/svgs/user.svg?raw';
|
|
64
64
|
import { BB_AVATAR_PT, type BbAvatarProps, type BbAvatarSlots } from './types';
|
|
65
65
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
66
66
|
import { useConfig } from '@/composables/useConfig';
|
|
67
67
|
import { LOCALE_TABLE, localeKeyOf } from '@/i18n/regions';
|
|
68
68
|
import { avatarHue, initialsOf } from './avatarIdentity';
|
|
69
|
-
|
|
69
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
70
70
|
defineOptions({ inheritAttrs: false });
|
|
71
|
+
|
|
71
72
|
const props = withDefaults(
|
|
72
73
|
defineProps<
|
|
73
74
|
BbAvatarProps & /* @vue-ignore */ FallthroughAttrs<'span', BbAvatarProps>
|
|
@@ -81,6 +82,12 @@ const props = withDefaults(
|
|
|
81
82
|
);
|
|
82
83
|
|
|
83
84
|
defineSlots<BbAvatarSlots>();
|
|
85
|
+
|
|
86
|
+
const defaultFallbackIcon = useInternalIcon(
|
|
87
|
+
'avatar',
|
|
88
|
+
defaultFallbackIconBuiltin
|
|
89
|
+
);
|
|
90
|
+
|
|
84
91
|
/**
|
|
85
92
|
* Passthrough. `root` is the frame; `icon` the default user glyph, which exists only while the fallback shows and the default slot is not overridden. Everything it paints is configuration, not state.
|
|
86
93
|
*/
|
|
@@ -76,7 +76,7 @@ import BadgeBodyContent from './BadgeBodyContent.vue';
|
|
|
76
76
|
import BbBadgeButton from './BbBadgeButton.vue';
|
|
77
77
|
import { provideBadgeHost, type HostValue } from './badgeButtonContext';
|
|
78
78
|
import type { LinkState } from '../BbBaseButton/useLinkState';
|
|
79
|
-
import
|
|
79
|
+
import clearIconBuiltin from '@/assets/svgs/clear.svg?raw';
|
|
80
80
|
import {
|
|
81
81
|
BB_BADGE_PT,
|
|
82
82
|
type BbBadgeProps,
|
|
@@ -85,12 +85,13 @@ import {
|
|
|
85
85
|
type BbBadgeSlots,
|
|
86
86
|
} from './types';
|
|
87
87
|
import { usePassthrough, variantPt } from '@/composables/usePassthrough';
|
|
88
|
-
|
|
88
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
89
89
|
defineOptions({
|
|
90
90
|
// An app's own variants as declared `pt:<part>:<name>` props.
|
|
91
91
|
mixins: [variantPt(BB_BADGE_PT)],
|
|
92
92
|
inheritAttrs: false,
|
|
93
93
|
});
|
|
94
|
+
|
|
94
95
|
const props = withDefaults(
|
|
95
96
|
defineProps<
|
|
96
97
|
BbBadgeProps &
|
|
@@ -101,10 +102,13 @@ const props = withDefaults(
|
|
|
101
102
|
variant: undefined,
|
|
102
103
|
}
|
|
103
104
|
);
|
|
105
|
+
|
|
104
106
|
const emit = defineEmits<BbBadgeEvents>();
|
|
105
107
|
|
|
106
108
|
const slots = defineSlots<BbBadgeSlots>();
|
|
107
109
|
|
|
110
|
+
const clearIcon = useInternalIcon('clear', clearIconBuiltin);
|
|
111
|
+
|
|
108
112
|
const configDefaults = useConfigDefaults('BbBadge', props, {
|
|
109
113
|
size: 'md',
|
|
110
114
|
variant: 'primary',
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
estimateBreadcrumbItemWidth,
|
|
213
213
|
estimateEllipsisWidth,
|
|
214
214
|
} from './estimateBreadcrumbItemWidth';
|
|
215
|
-
import
|
|
215
|
+
import chevronRightBuiltin from '@/assets/svgs/chevron_right.svg?raw';
|
|
216
216
|
import {
|
|
217
217
|
BB_BREADCRUMBS_PT,
|
|
218
218
|
type BbBreadcrumbsProps,
|
|
@@ -222,8 +222,9 @@ import {
|
|
|
222
222
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
223
223
|
import type { InternalItem as DropdownItem } from '../BbDropdown/types';
|
|
224
224
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
225
|
-
|
|
225
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
226
226
|
defineOptions({ inheritAttrs: false });
|
|
227
|
+
|
|
227
228
|
const props = withDefaults(
|
|
228
229
|
defineProps<
|
|
229
230
|
BbBreadcrumbsProps &
|
|
@@ -239,6 +240,8 @@ const props = withDefaults(
|
|
|
239
240
|
|
|
240
241
|
defineSlots<BbBreadcrumbsSlots>();
|
|
241
242
|
|
|
243
|
+
const chevronRight = useInternalIcon('separator', chevronRightBuiltin);
|
|
244
|
+
|
|
242
245
|
/**
|
|
243
246
|
* The crumbs that exist: a `hidden` crumb is out before width
|
|
244
247
|
* estimation, overflow, the trail and the overflow menu alike — everything
|
|
@@ -430,8 +430,8 @@
|
|
|
430
430
|
generic="R extends boolean = false, M extends boolean = false"
|
|
431
431
|
>
|
|
432
432
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
433
|
-
import
|
|
434
|
-
import
|
|
433
|
+
import chevronLeftSmallSvgBuiltin from '@/assets/svgs/chevron_left_small.svg?raw';
|
|
434
|
+
import chevronRightSmallSvgBuiltin from '@/assets/svgs/chevron_right_small.svg?raw';
|
|
435
435
|
import type { Dayjs } from 'dayjs';
|
|
436
436
|
import type { ShapeErasedProps } from '@/types/ShapeErased';
|
|
437
437
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
@@ -494,11 +494,10 @@ import type {
|
|
|
494
494
|
BbCalendarSlots,
|
|
495
495
|
} from './types';
|
|
496
496
|
import { BB_CALENDAR_PT } from './types';
|
|
497
|
-
|
|
497
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
498
498
|
// The consumer's `class` and attributes land on the root through the resolver
|
|
499
499
|
// (`rootAttrs`), where `pt:root` merges after them.
|
|
500
500
|
defineOptions({ inheritAttrs: false });
|
|
501
|
-
|
|
502
501
|
const declaredProps = withDefaults(
|
|
503
502
|
defineProps<
|
|
504
503
|
BbCalendarBaseProps &
|
|
@@ -513,10 +512,13 @@ const declaredProps = withDefaults(
|
|
|
513
512
|
type: 'date',
|
|
514
513
|
}
|
|
515
514
|
);
|
|
516
|
-
|
|
517
515
|
const declaredEmit = defineEmits<BbCalendarEvents<R, M>>();
|
|
518
|
-
|
|
519
516
|
defineSlots<BbCalendarSlots>();
|
|
517
|
+
const chevronRightSmallSvg = useInternalIcon(
|
|
518
|
+
'next',
|
|
519
|
+
chevronRightSmallSvgBuiltin
|
|
520
|
+
);
|
|
521
|
+
const chevronLeftSmallSvg = useInternalIcon('prev', chevronLeftSmallSvgBuiltin);
|
|
520
522
|
|
|
521
523
|
// `R` / `M` type the v-model for the caller; inside, the value is either shape.
|
|
522
524
|
const props = declaredProps as unknown as ShapeErasedProps<
|
|
@@ -276,10 +276,10 @@ import {
|
|
|
276
276
|
} from 'vue';
|
|
277
277
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
278
278
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
279
|
-
import
|
|
280
|
-
import
|
|
281
|
-
import
|
|
282
|
-
import
|
|
279
|
+
import chevronLeftSvgBuiltin from '@/assets/svgs/chevron_left.svg?raw';
|
|
280
|
+
import chevronRightSvgBuiltin from '@/assets/svgs/chevron_right.svg?raw';
|
|
281
|
+
import pauseSvgBuiltin from '@/assets/svgs/pause.svg?raw';
|
|
282
|
+
import playSvgBuiltin from '@/assets/svgs/play.svg?raw';
|
|
283
283
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
284
284
|
import { useLocale } from '@/composables/useLocale';
|
|
285
285
|
import {
|
|
@@ -293,9 +293,8 @@ import {
|
|
|
293
293
|
dragVelocity,
|
|
294
294
|
quickRelease,
|
|
295
295
|
} from './dragRelease';
|
|
296
|
-
|
|
296
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
297
297
|
defineOptions({ inheritAttrs: false });
|
|
298
|
-
|
|
299
298
|
/** The current slide: any slide, 0 to the last. The view shows the page
|
|
300
299
|
* that holds it; a value out of range is brought back in and written back. */
|
|
301
300
|
const current = defineModel<number>({ default: 0 });
|
|
@@ -318,6 +317,11 @@ const props = withDefaults(
|
|
|
318
317
|
}
|
|
319
318
|
);
|
|
320
319
|
const slots = defineSlots<BbCarouselSlots<T>>();
|
|
320
|
+
const playSvg = useInternalIcon('play', playSvgBuiltin);
|
|
321
|
+
const pauseSvg = useInternalIcon('pause', pauseSvgBuiltin);
|
|
322
|
+
const chevronRightSvg = useInternalIcon('next', chevronRightSvgBuiltin);
|
|
323
|
+
const chevronLeftSvg = useInternalIcon('prev', chevronLeftSvgBuiltin);
|
|
324
|
+
|
|
321
325
|
/** The snap position the view rests on (the slide sitting first): internal,
|
|
322
326
|
* one of the page starts. */
|
|
323
327
|
const index = ref(current.value);
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
<script setup lang="ts">
|
|
252
252
|
import { inlineStep } from '@/composables/useDirection';
|
|
253
253
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
254
|
-
import
|
|
254
|
+
import eyedropperSvgBuiltin from '@/assets/svgs/eyedropper.svg?raw';
|
|
255
255
|
import { asSheetAttrs } from '../BbOffCanvas/sheetAttrs';
|
|
256
256
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
257
257
|
import {
|
|
@@ -295,7 +295,7 @@ import {
|
|
|
295
295
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
296
296
|
import { withoutPt } from '@/utils/passthrough';
|
|
297
297
|
import { transitions } from '@/utilities/misc/transitions';
|
|
298
|
-
|
|
298
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
299
299
|
// The activator slot plus a floating surface is a fragment, so Vue could not
|
|
300
300
|
// inherit `class` / `$attrs` anywhere; they merge into `root` instead — the
|
|
301
301
|
// floating element, where a `class` lands on BbPopover (T21).
|
|
@@ -326,10 +326,13 @@ const props = withDefaults(
|
|
|
326
326
|
transitionDuration: transitions.medium,
|
|
327
327
|
}
|
|
328
328
|
);
|
|
329
|
+
|
|
329
330
|
const emit = defineEmits<BbColorPaletteEvents>();
|
|
330
331
|
|
|
331
332
|
defineSlots<BbColorPaletteSlots>();
|
|
332
333
|
|
|
334
|
+
const eyedropperSvg = useInternalIcon('eyedropper', eyedropperSvgBuiltin);
|
|
335
|
+
|
|
333
336
|
// No `v-model`: the picker keeps its own value, like an input.
|
|
334
337
|
const { model: ownModel, set: setModel } = useOwnModel<
|
|
335
338
|
'modelValue',
|
|
@@ -361,7 +361,7 @@ import { isNotNil } from '@/utilities/functions/isNotNil';
|
|
|
361
361
|
import { normalizeDateBound } from '@/utilities/functions/normalizeDateBound';
|
|
362
362
|
import { isDateDisabled as isDateDisabledIn } from '@/utilities/functions/isDateDisabled';
|
|
363
363
|
import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
|
|
364
|
-
import
|
|
364
|
+
import calendarIconBuiltin from '@/assets/svgs/calendar.svg?raw';
|
|
365
365
|
import { calendars, localeOf } from '@/utilities/calendar';
|
|
366
366
|
import type { InternationalCalendarId } from '@/utilities/calendar/types';
|
|
367
367
|
// `null` in a build whose locales are all Gregorian: the calendar fields
|
|
@@ -409,12 +409,13 @@ import {
|
|
|
409
409
|
matchEra,
|
|
410
410
|
type CalendarFieldValues,
|
|
411
411
|
} from './calendarFields';
|
|
412
|
-
|
|
412
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
413
413
|
defineOptions({
|
|
414
414
|
// An app's own variants as declared `pt:<part>:<name>` props.
|
|
415
415
|
mixins: [variantPt(BB_DATE_PICKER_INPUT_PT)],
|
|
416
416
|
inheritAttrs: false,
|
|
417
417
|
});
|
|
418
|
+
|
|
418
419
|
const declaredProps = withDefaults(
|
|
419
420
|
defineProps<
|
|
420
421
|
BbDatePickerInputBaseProps &
|
|
@@ -449,7 +450,11 @@ const declaredProps = withDefaults(
|
|
|
449
450
|
);
|
|
450
451
|
|
|
451
452
|
const declaredEmit = defineEmits<BbDatePickerInputEvents<R>>();
|
|
453
|
+
|
|
452
454
|
const slots = defineSlots<BbDatePickerInputSlots>();
|
|
455
|
+
|
|
456
|
+
const calendarIcon = useInternalIcon('calendar', calendarIconBuiltin);
|
|
457
|
+
|
|
453
458
|
// `R` types the v-model for the caller; inside, the value is either shape.
|
|
454
459
|
const anyRangeProps = declaredProps as unknown as ShapeErasedProps<
|
|
455
460
|
BbDatePickerInputProps,
|