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
|
@@ -8,38 +8,40 @@ import { useMobile as re } from "../../composables/useMobile.js";
|
|
|
8
8
|
import { useConfigDefaults as r } from "../../composables/useConfigDefaults.js";
|
|
9
9
|
import { useFormBinding as ie } from "../../composables/useFormBinding.js";
|
|
10
10
|
import { useOpenProp as i } from "../../composables/useOpenModel.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
11
|
+
import { useOwnModel as a } from "../../composables/useOwnModel.js";
|
|
12
|
+
import { useLocale as o } from "../../composables/useLocale.js";
|
|
13
|
+
import { SELECT_CONTROL_NATIVE_ATTRS as s, formControlPtActive as ae, usePassthrough as c, variantPt as l } from "../../composables/usePassthrough.js";
|
|
14
|
+
import { removedPropsFor as u } from "../../deprecation/removedProps.js";
|
|
15
|
+
import { warnRemovedAttrs as d } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
16
|
+
import { hasVnodeListener as oe } from "../../utilities/functions/hasVnodeListener.js";
|
|
17
|
+
import { isNotEmpty as se } from "../../utilities/functions/isNotEmpty.js";
|
|
18
|
+
import { throttle as ce } from "../../utilities/functions/throttle.js";
|
|
19
|
+
import { when as le } from "../../utilities/functions/when.js";
|
|
20
|
+
import { hash as ue } from "../../utilities/functions/hash.js";
|
|
21
|
+
import { reject as de } from "../../utilities/functions/reject.js";
|
|
22
|
+
import fe from "../../assets/svgs/chevron_down.svg_raw.js";
|
|
23
|
+
import { provideSheetChipAttrs as pe } from "../BbSelectPopover/sheetChipAttrs.js";
|
|
24
|
+
import { provideReclickClears as me } from "../BbSelectPopover/reclickClears.js";
|
|
25
|
+
import { KnownItemsScope as he, indexKnownRows as ge, knownRowsCover as _e } from "../BbSelectPopover/knownItems.js";
|
|
26
|
+
import { BB_SELECT_PT as f } from "./types.js";
|
|
27
|
+
import { useInternalIcon as ve } from "../../composables/useInternalIcon.js";
|
|
28
|
+
import { Fragment as p, computed as m, createBlock as ye, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as be, createVNode as y, defineComponent as xe, getCurrentInstance as Se, guardReactiveProps as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeProps as w, onMounted as Ce, onUnmounted as we, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as Te, watch as j, withCtx as M, withDirectives as Ee, withModifiers as De } from "vue";
|
|
27
29
|
// src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
-
var
|
|
30
|
+
var Oe = ["id"], ke = [
|
|
29
31
|
"id",
|
|
30
32
|
"aria-labelledby",
|
|
31
33
|
"aria-readonly",
|
|
32
34
|
"aria-required",
|
|
33
35
|
"autofocus",
|
|
34
36
|
"disabled"
|
|
35
|
-
],
|
|
37
|
+
], Ae = {
|
|
36
38
|
key: 1,
|
|
37
39
|
class: "bb-select__max-reached"
|
|
38
|
-
},
|
|
40
|
+
}, je = {
|
|
39
41
|
key: 2,
|
|
40
42
|
class: "bb-select__display-value bb-select__placeholder"
|
|
41
|
-
},
|
|
42
|
-
mixins: [
|
|
43
|
+
}, Me = ["id"], N = /*@__PURE__*/ xe({
|
|
44
|
+
mixins: [l(f)],
|
|
43
45
|
inheritAttrs: !1,
|
|
44
46
|
__name: "BbSelect",
|
|
45
47
|
props: {
|
|
@@ -221,6 +223,14 @@ var Te = ["id"], Ee = [
|
|
|
221
223
|
"pt:list:errors": {},
|
|
222
224
|
"pt:list:open": {},
|
|
223
225
|
"pt:list:loading": {},
|
|
226
|
+
"pt:groupHeader": {},
|
|
227
|
+
"pt:groupHeader:hasValue": {},
|
|
228
|
+
"pt:groupHeader:readonly": {},
|
|
229
|
+
"pt:groupHeader:disabled": {},
|
|
230
|
+
"pt:groupHeader:warnings": {},
|
|
231
|
+
"pt:groupHeader:errors": {},
|
|
232
|
+
"pt:groupHeader:open": {},
|
|
233
|
+
"pt:groupHeader:loading": {},
|
|
224
234
|
"pt:option": {},
|
|
225
235
|
"pt:option:hasValue": {},
|
|
226
236
|
"pt:option:selected": {},
|
|
@@ -283,6 +293,7 @@ var Te = ["id"], Ee = [
|
|
|
283
293
|
"pt:comma:open": {},
|
|
284
294
|
"pt:comma:loading": {},
|
|
285
295
|
open: { type: Boolean },
|
|
296
|
+
query: {},
|
|
286
297
|
pt: {},
|
|
287
298
|
adaptive: {
|
|
288
299
|
type: Boolean,
|
|
@@ -375,6 +386,7 @@ var Te = ["id"], Ee = [
|
|
|
375
386
|
"shown",
|
|
376
387
|
"hide",
|
|
377
388
|
"update:open",
|
|
389
|
+
"update:query",
|
|
378
390
|
"hidden",
|
|
379
391
|
"blur",
|
|
380
392
|
"change",
|
|
@@ -386,35 +398,35 @@ var Te = ["id"], Ee = [
|
|
|
386
398
|
"update:modelValue",
|
|
387
399
|
"option:add"
|
|
388
400
|
],
|
|
389
|
-
setup(
|
|
390
|
-
let P =
|
|
401
|
+
setup(l, { emit: xe }) {
|
|
402
|
+
let N = l, P = xe, Ne = ve("expandChevron", fe), { props: F, emit: I, showAsterisk: Pe, errors: Fe, ariaRequired: Ie, required: Le, model: Re, readonly: L } = ie(N, P, {
|
|
391
403
|
componentName: "BbSelect",
|
|
392
|
-
identifierFallback: () =>
|
|
404
|
+
identifierFallback: () => N.label,
|
|
393
405
|
leaveOn: "inactive"
|
|
394
|
-
}),
|
|
395
|
-
process.env.NODE_ENV !== "production" &&
|
|
396
|
-
let R =
|
|
406
|
+
}), ze = m(() => Ie.value ?? (Le.value ? !0 : void 0)), { t: Be } = o();
|
|
407
|
+
process.env.NODE_ENV !== "production" && d("BbSelect", u("BbSelect"));
|
|
408
|
+
let R = E(!1), { isMobile: Ve } = re(), He = m(() => F.persistentHint || R.value), z = m(() => se(F.modelValue)), Ue = m(() => !!F.clearable && z.value), B = r("BbSelect", F, {
|
|
397
409
|
labelMode: "outside",
|
|
398
410
|
compact: !1,
|
|
399
411
|
reverse: !1
|
|
400
|
-
}),
|
|
412
|
+
}), We = m(() => B.labelMode), V = E(!1), { model: Ge, set: Ke } = i(N, P), { model: qe, set: Je } = a(N, "query", P, () => ""), H = c({
|
|
401
413
|
component: "BbSelect",
|
|
402
|
-
attrs:
|
|
403
|
-
controlAttrs:
|
|
414
|
+
attrs: Te(),
|
|
415
|
+
controlAttrs: s,
|
|
404
416
|
props: F,
|
|
405
|
-
parts:
|
|
406
|
-
states:
|
|
417
|
+
parts: f.parts,
|
|
418
|
+
states: f.states,
|
|
407
419
|
active: {
|
|
408
|
-
...
|
|
420
|
+
...ae(F, () => z.value),
|
|
409
421
|
open: () => V.value
|
|
410
422
|
},
|
|
411
423
|
variant: {
|
|
412
|
-
...
|
|
424
|
+
...f.variant,
|
|
413
425
|
current: () => F.variant ?? "outline"
|
|
414
426
|
}
|
|
415
427
|
});
|
|
416
|
-
|
|
417
|
-
let
|
|
428
|
+
pe((e) => H.part("badge", {}, e)), me(() => !!F.clearable);
|
|
429
|
+
let Ye = () => ({
|
|
418
430
|
...H.forward([
|
|
419
431
|
"panel",
|
|
420
432
|
"sheet",
|
|
@@ -424,70 +436,71 @@ var Te = ["id"], Ee = [
|
|
|
424
436
|
"list"
|
|
425
437
|
], n.states.filter((e) => e !== "disabled")),
|
|
426
438
|
...H.forward([
|
|
439
|
+
"groupHeader",
|
|
427
440
|
"option",
|
|
428
441
|
"itemText",
|
|
429
442
|
"itemIcon",
|
|
430
443
|
"itemDescription",
|
|
431
444
|
"check"
|
|
432
445
|
], n.states)
|
|
433
|
-
}),
|
|
446
|
+
}), Xe = [
|
|
434
447
|
"box",
|
|
435
448
|
"icon",
|
|
436
449
|
"spinner",
|
|
437
450
|
"clear",
|
|
438
451
|
"prefix",
|
|
439
452
|
"suffix"
|
|
440
|
-
],
|
|
453
|
+
], Ze = (e) => Object.fromEntries(Xe.map((t) => [t, H.part(t, { loading: e })])), Qe = m(() => ({
|
|
441
454
|
title: F.label,
|
|
442
455
|
...F.offCanvasProps
|
|
443
|
-
})),
|
|
456
|
+
})), $e = m(() => F["append:icon"] === void 0 ? Ne.value : F["append:icon"]), U = m(() => F.maxSelectedLabels === void 0 ? Infinity : F.maxSelectedLabels), W = {
|
|
444
457
|
rows: () => F.knownItems,
|
|
445
458
|
prefill: () => F.prefill
|
|
446
|
-
},
|
|
459
|
+
}, et = (e) => ({
|
|
447
460
|
known: !!W.isKnown?.(e),
|
|
448
461
|
item: e
|
|
449
|
-
}),
|
|
462
|
+
}), tt = m(() => _e(ge(F.knownItems), F.modelValue, F.multiple)), nt = m(() => z.value && !tt.value ? !0 : F.prefill ?? "interaction"), G = E(), K = E(), rt = E(), q = m(() => F.multiple ? Array.isArray(F.modelValue) ? F.modelValue.length : F.modelValue == null ? 0 : 1 : 0), it = m(() => U.value !== Infinity), J = m(() => !it.value), Y = E(!1), X = m(() => q.value <= 1 ? !1 : it.value ? q.value > U.value : Y.value), Z = m(() => !F.disabled && !F.readonly), at = (e) => {
|
|
450
463
|
if (Z.value) {
|
|
451
464
|
if (W.userUnpick?.([e.value]), F.multiple) {
|
|
452
|
-
let t =
|
|
465
|
+
let t = de(F.modelValue, e.value);
|
|
453
466
|
I("update:modelValue", t);
|
|
454
467
|
} else I("update:modelValue", null);
|
|
455
468
|
}
|
|
456
|
-
},
|
|
469
|
+
}, ot = () => {
|
|
457
470
|
(G.value?.$el)?.querySelector(".bb-select__activator")?.focus();
|
|
458
|
-
},
|
|
459
|
-
let e =
|
|
471
|
+
}, st = m(() => F.selectedLabelsFn ? F.selectedLabelsFn(q.value) : Be("select.multipleMaxReached", q.value).value), ct = (e) => F.multiple && X.value ? st.value : e || F.placeholder || "", Q = ce(() => {
|
|
472
|
+
let e = rt.value;
|
|
460
473
|
!J.value || !e || q.value <= 1 ? Y.value = !1 : Y.value = e.scrollWidth > e.clientWidth + 1;
|
|
461
474
|
}, 100, {
|
|
462
475
|
leading: !0,
|
|
463
476
|
trailing: !0
|
|
464
|
-
}), $ = null,
|
|
465
|
-
$?.disconnect(), $ = null, J.value && ($ = new ResizeObserver(Q), K.value && $.observe(K.value),
|
|
477
|
+
}), $ = null, lt = () => {
|
|
478
|
+
$?.disconnect(), $ = null, J.value && ($ = new ResizeObserver(Q), K.value && $.observe(K.value), S(() => {
|
|
466
479
|
Q();
|
|
467
480
|
}));
|
|
468
481
|
};
|
|
469
|
-
|
|
482
|
+
Ce(lt), j(J, lt, { flush: "post" }), we(() => {
|
|
470
483
|
$?.disconnect(), Q.cancel();
|
|
471
|
-
}),
|
|
472
|
-
J.value &&
|
|
484
|
+
}), j(() => [F.modelValue, U.value], () => {
|
|
485
|
+
J.value && S(() => {
|
|
473
486
|
Q();
|
|
474
487
|
});
|
|
475
|
-
}),
|
|
488
|
+
}), j(() => [
|
|
476
489
|
B.compact,
|
|
477
490
|
F.comma,
|
|
478
491
|
F["prepend:icon"]
|
|
479
492
|
], () => {
|
|
480
|
-
J.value &&
|
|
493
|
+
J.value && S(() => {
|
|
481
494
|
Q();
|
|
482
495
|
});
|
|
483
496
|
});
|
|
484
|
-
let
|
|
497
|
+
let ut = le((e) => typeof e != "string", JSON.stringify), dt = m(() => (F.multiple ? [].concat(F.modelValue ?? []) : [F.modelValue]).filter((e) => e != null).map((e) => ({
|
|
485
498
|
disabled: F.disabled,
|
|
486
499
|
name: F.name,
|
|
487
500
|
required: F.required,
|
|
488
501
|
type: "hidden",
|
|
489
|
-
value:
|
|
490
|
-
}))),
|
|
502
|
+
value: ut(e)
|
|
503
|
+
}))), ft = {
|
|
491
504
|
onBlur: (e) => {
|
|
492
505
|
R.value = !1, I("blur", e);
|
|
493
506
|
},
|
|
@@ -512,184 +525,188 @@ var Te = ["id"], Ee = [
|
|
|
512
525
|
},
|
|
513
526
|
onInput: (e) => I("input", e),
|
|
514
527
|
"onUpdate:modelValue": (e) => I("update:modelValue", e)
|
|
515
|
-
},
|
|
516
|
-
...
|
|
528
|
+
}, pt = {
|
|
529
|
+
...ft,
|
|
517
530
|
"onOption:add": (e) => I("option:add", e)
|
|
518
|
-
},
|
|
519
|
-
return (n, re) => (
|
|
520
|
-
id:
|
|
531
|
+
}, mt = Se(), ht = () => oe(mt, "option:add") ? pt : ft;
|
|
532
|
+
return (n, re) => (T(), ye(t, x({
|
|
533
|
+
id: l.id,
|
|
521
534
|
class: "bb-select",
|
|
522
|
-
clearable:
|
|
523
|
-
compact:
|
|
524
|
-
description:
|
|
525
|
-
disabled:
|
|
526
|
-
errors:
|
|
527
|
-
"has-errors":
|
|
535
|
+
clearable: Ue.value,
|
|
536
|
+
compact: A(B).compact,
|
|
537
|
+
description: l.description,
|
|
538
|
+
disabled: l.disabled,
|
|
539
|
+
errors: A(Fe),
|
|
540
|
+
"has-errors": l.hasErrors,
|
|
528
541
|
"has-value": z.value,
|
|
529
|
-
"has-warnings":
|
|
530
|
-
"hide-label":
|
|
531
|
-
hint:
|
|
532
|
-
"input-align":
|
|
533
|
-
label:
|
|
534
|
-
"label-align":
|
|
535
|
-
"label-mode":
|
|
536
|
-
"label-position":
|
|
537
|
-
layout:
|
|
538
|
-
loading:
|
|
539
|
-
mobile:
|
|
540
|
-
name:
|
|
541
|
-
passthrough:
|
|
542
|
-
readonly:
|
|
543
|
-
reverse:
|
|
544
|
-
"show-asterisk":
|
|
545
|
-
"show-hint":
|
|
546
|
-
warnings:
|
|
547
|
-
},
|
|
548
|
-
label:
|
|
549
|
-
input:
|
|
550
|
-
default:
|
|
542
|
+
"has-warnings": l.hasWarnings,
|
|
543
|
+
"hide-label": l.hideLabel,
|
|
544
|
+
hint: l.hint,
|
|
545
|
+
"input-align": l.inputAlign,
|
|
546
|
+
label: l.label,
|
|
547
|
+
"label-align": l.labelAlign,
|
|
548
|
+
"label-mode": We.value,
|
|
549
|
+
"label-position": l.labelPosition,
|
|
550
|
+
layout: A(B).layout,
|
|
551
|
+
loading: l.loading,
|
|
552
|
+
mobile: A(Ve),
|
|
553
|
+
name: l.name,
|
|
554
|
+
passthrough: A(H),
|
|
555
|
+
readonly: A(L),
|
|
556
|
+
reverse: A(B).reverse,
|
|
557
|
+
"show-asterisk": A(Pe),
|
|
558
|
+
"show-hint": He.value,
|
|
559
|
+
warnings: l.warnings
|
|
560
|
+
}, A(H).forwardAttrs), v({
|
|
561
|
+
label: M((e) => [O(n.$slots, "label", w(b(e)))]),
|
|
562
|
+
input: M(({ id: t, hasErrors: r, hasWarnings: ie, ariaDescribedby: i }) => [y(A(he), { source: W }, {
|
|
563
|
+
default: M(() => [y(ne, x({
|
|
551
564
|
id: t,
|
|
552
|
-
adaptive:
|
|
565
|
+
adaptive: A(B).adaptive,
|
|
553
566
|
anchor: G.value,
|
|
554
567
|
"aria-describedby": i,
|
|
555
568
|
"aria-invalid": r || void 0,
|
|
556
|
-
autocomplete:
|
|
557
|
-
compact:
|
|
558
|
-
dependencies:
|
|
559
|
-
"deps-debounce-time":
|
|
560
|
-
"disable-writing":
|
|
561
|
-
disabled:
|
|
562
|
-
"empty-text":
|
|
563
|
-
"enforce-coherence":
|
|
564
|
-
"failed-text":
|
|
565
|
-
"filter-by": Array.isArray(
|
|
566
|
-
"group-by":
|
|
567
|
-
"header-height":
|
|
568
|
-
"item-height":
|
|
569
|
-
"item-props":
|
|
570
|
-
"item-text":
|
|
571
|
-
"item-value":
|
|
572
|
-
items:
|
|
573
|
-
loading:
|
|
574
|
-
"loading-text":
|
|
575
|
-
max:
|
|
576
|
-
"min-query-length":
|
|
577
|
-
"model-value":
|
|
578
|
-
"model-value-debounce-time":
|
|
579
|
-
multiple:
|
|
580
|
-
"off-canvas-props":
|
|
581
|
-
open:
|
|
582
|
-
prefill:
|
|
583
|
-
pt:
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
569
|
+
autocomplete: A(B).autocomplete,
|
|
570
|
+
compact: A(B).compact,
|
|
571
|
+
dependencies: l.dependencies,
|
|
572
|
+
"deps-debounce-time": l.depsDebounceTime,
|
|
573
|
+
"disable-writing": l.disableWriting,
|
|
574
|
+
disabled: l.disabled,
|
|
575
|
+
"empty-text": l.emptyText,
|
|
576
|
+
"enforce-coherence": l.enforceCoherence,
|
|
577
|
+
"failed-text": l.failedText,
|
|
578
|
+
"filter-by": Array.isArray(l.filterBy) || l.filterBy === !1 ? l.filterBy : void 0,
|
|
579
|
+
"group-by": l.groupBy,
|
|
580
|
+
"header-height": l.headerHeight,
|
|
581
|
+
"item-height": l.itemHeight,
|
|
582
|
+
"item-props": l.itemProps,
|
|
583
|
+
"item-text": l.itemText,
|
|
584
|
+
"item-value": l.itemValue,
|
|
585
|
+
items: l.items,
|
|
586
|
+
loading: l.loading,
|
|
587
|
+
"loading-text": l.loadingText,
|
|
588
|
+
max: l.max,
|
|
589
|
+
"min-query-length": l.minQueryLength,
|
|
590
|
+
"model-value": A(Re),
|
|
591
|
+
"model-value-debounce-time": l.modelValueDebounceTime,
|
|
592
|
+
multiple: l.multiple,
|
|
593
|
+
"off-canvas-props": Qe.value,
|
|
594
|
+
open: A(Ge),
|
|
595
|
+
prefill: nt.value,
|
|
596
|
+
pt: Ye(),
|
|
597
|
+
query: A(qe),
|
|
598
|
+
"query-debounce-time": l.queryDebounceTime,
|
|
599
|
+
readonly: A(L),
|
|
600
|
+
selectable: l.selectable,
|
|
601
|
+
stash: l.stash,
|
|
602
|
+
"transition-duration": l.transitionDuration,
|
|
589
603
|
width: "100%"
|
|
590
|
-
},
|
|
591
|
-
|
|
604
|
+
}, ht(), {
|
|
605
|
+
"onUpdate:open": A(Ke),
|
|
606
|
+
"onUpdate:query": A(Je)
|
|
607
|
+
}), v({
|
|
608
|
+
activator: M(({ props: ne, shown: i, loading: a, text: o, selectedOptions: s, clear: ae, query: c, focus: u, close: d, toggle: oe }) => [y(ee, {
|
|
592
609
|
ref_key: "wrapperRef",
|
|
593
610
|
ref: G,
|
|
594
611
|
active: i,
|
|
595
|
-
"append:icon":
|
|
596
|
-
class:
|
|
612
|
+
"append:icon": $e.value,
|
|
613
|
+
class: C(["bb-select__field", {
|
|
597
614
|
"bb-select__field--shown": i,
|
|
598
|
-
"bb-select__field--disabled":
|
|
599
|
-
"bb-select__field--readonly":
|
|
615
|
+
"bb-select__field--disabled": l.disabled,
|
|
616
|
+
"bb-select__field--readonly": A(L)
|
|
600
617
|
}]),
|
|
601
|
-
clearable:
|
|
602
|
-
compact:
|
|
603
|
-
disabled:
|
|
618
|
+
clearable: l.clearable,
|
|
619
|
+
compact: A(B).compact,
|
|
620
|
+
disabled: l.disabled,
|
|
604
621
|
"has-errors": r,
|
|
605
622
|
"has-value": z.value,
|
|
606
623
|
"has-warnings": ie,
|
|
607
624
|
loading: a,
|
|
608
|
-
passthrough:
|
|
609
|
-
"prepend:icon":
|
|
610
|
-
readonly:
|
|
611
|
-
variant:
|
|
625
|
+
passthrough: Ze(a),
|
|
626
|
+
"prepend:icon": N["prepend:icon"],
|
|
627
|
+
readonly: A(L),
|
|
628
|
+
variant: l.variant,
|
|
612
629
|
"onClick:clear": () => {
|
|
613
|
-
ae(),
|
|
630
|
+
ae(), S(ot);
|
|
614
631
|
},
|
|
615
|
-
"onContainer:click":
|
|
616
|
-
},
|
|
617
|
-
"append:outer":
|
|
618
|
-
query:
|
|
632
|
+
"onContainer:click": oe
|
|
633
|
+
}, v({
|
|
634
|
+
"append:outer": M(() => [O(n.$slots, "append:outer", w(b({
|
|
635
|
+
query: c,
|
|
619
636
|
close: d
|
|
620
637
|
})))]),
|
|
621
|
-
append:
|
|
622
|
-
query:
|
|
638
|
+
append: M(() => [O(n.$slots, "append", w(b({
|
|
639
|
+
query: c,
|
|
623
640
|
focus: u,
|
|
624
641
|
close: d
|
|
625
642
|
})))]),
|
|
626
|
-
prepend:
|
|
627
|
-
query:
|
|
643
|
+
prepend: M(() => [O(n.$slots, "prepend", w(b({
|
|
644
|
+
query: c,
|
|
628
645
|
focus: u,
|
|
629
646
|
close: d
|
|
630
647
|
})))]),
|
|
631
|
-
"prepend:outer":
|
|
632
|
-
query:
|
|
648
|
+
"prepend:outer": M(() => [O(n.$slots, "prepend:outer", w(b({
|
|
649
|
+
query: c,
|
|
633
650
|
close: d
|
|
634
651
|
})))]),
|
|
635
|
-
default:
|
|
652
|
+
default: M(() => [_("span", {
|
|
636
653
|
id: `${t}__value`,
|
|
637
654
|
ref_key: "valueRef",
|
|
638
655
|
ref: K,
|
|
639
656
|
class: "bb-select__value"
|
|
640
|
-
}, [
|
|
657
|
+
}, [Ee(_("input", x({
|
|
641
658
|
id: t,
|
|
642
659
|
"aria-labelledby": `${t}__label ${t}__selection`,
|
|
643
|
-
"aria-readonly":
|
|
644
|
-
"aria-required":
|
|
645
|
-
autofocus:
|
|
660
|
+
"aria-readonly": A(L) || void 0,
|
|
661
|
+
"aria-required": ze.value,
|
|
662
|
+
autofocus: l.autofocus,
|
|
646
663
|
class: "bb-select__activator",
|
|
647
|
-
disabled:
|
|
664
|
+
disabled: l.disabled,
|
|
648
665
|
type: "button"
|
|
649
|
-
},
|
|
650
|
-
J.value || !X.value ? (
|
|
666
|
+
}, x(ne, A(H).part("activator", { loading: a }))), null, 16, ke), [[A(e)]]), l.multiple ? (T(), g(p, { key: 0 }, [
|
|
667
|
+
J.value || !X.value ? (T(), g("span", {
|
|
651
668
|
key: 0,
|
|
652
669
|
ref_key: "chipsContainerRef",
|
|
653
|
-
ref:
|
|
654
|
-
class:
|
|
670
|
+
ref: rt,
|
|
671
|
+
class: C(["bb-select__chips-row", {
|
|
655
672
|
"bb-select__chips-row--hidden": X.value,
|
|
656
|
-
"bb-select__chips-row--chips": !
|
|
673
|
+
"bb-select__chips-row--chips": !l.comma && !!s.length
|
|
657
674
|
}]),
|
|
658
|
-
onVnodeUpdated: re[0] ||= (e) => J.value &&
|
|
659
|
-
}, [
|
|
660
|
-
key:
|
|
675
|
+
onVnodeUpdated: re[0] ||= (e) => J.value && A(Q)()
|
|
676
|
+
}, [l.comma ? (T(!0), g(p, { key: 0 }, D(s, (e) => (T(), g("span", x({
|
|
677
|
+
key: A(ue)(e.value),
|
|
661
678
|
class: "bb-select__comma"
|
|
662
|
-
}, { ref_for: !0 },
|
|
663
|
-
deselect: () =>
|
|
679
|
+
}, { ref_for: !0 }, A(H).part("comma", {}, e.item)), k(e.text), 17))), 128)) : (T(!0), g(p, { key: 1 }, D(s, (e) => O(n.$slots, "chip", x({
|
|
680
|
+
deselect: () => at(e),
|
|
664
681
|
disabled: !Z.value,
|
|
665
682
|
text: e.text,
|
|
666
683
|
value: e.value
|
|
667
|
-
}, { ref_for: !0 },
|
|
684
|
+
}, { ref_for: !0 }, et(e.item)), () => [y(te, x({
|
|
668
685
|
class: "bb-select__badge",
|
|
669
686
|
clearable: Z.value,
|
|
670
687
|
size: "lg",
|
|
671
688
|
variant: "secondary"
|
|
672
|
-
}, { ref_for: !0 },
|
|
673
|
-
default:
|
|
689
|
+
}, { ref_for: !0 }, A(H).part("badge", {}, e.item), { "onClick:clear": De((t) => at(e), ["stop"]) }), {
|
|
690
|
+
default: M(() => [be(k(e.text), 1)]),
|
|
674
691
|
_: 2
|
|
675
|
-
}, 1040, ["clearable", "onClick:clear"])], void 0,
|
|
676
|
-
X.value ? (
|
|
677
|
-
!s.length &&
|
|
678
|
-
], 64)) : (
|
|
692
|
+
}, 1040, ["clearable", "onClick:clear"])], void 0, A(ue)(e.value))), 128))], 2)) : h("", !0),
|
|
693
|
+
X.value ? (T(), g("span", Ae, k(st.value), 1)) : h("", !0),
|
|
694
|
+
!s.length && l.placeholder ? (T(), g("span", je, k(l.placeholder), 1)) : h("", !0)
|
|
695
|
+
], 64)) : (T(), g("span", {
|
|
679
696
|
key: 1,
|
|
680
|
-
class:
|
|
681
|
-
},
|
|
697
|
+
class: C(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
|
|
698
|
+
}, k(o || l.placeholder), 3))], 8, Oe), _("span", {
|
|
682
699
|
id: `${t}__selection`,
|
|
683
700
|
hidden: ""
|
|
684
|
-
},
|
|
701
|
+
}, k(ct(o)), 9, Me)]),
|
|
685
702
|
_: 2
|
|
686
703
|
}, [n.$slots.prefix ? {
|
|
687
704
|
name: "prefix",
|
|
688
|
-
fn:
|
|
705
|
+
fn: M(() => [O(n.$slots, "prefix")]),
|
|
689
706
|
key: "0"
|
|
690
707
|
} : void 0, n.$slots.suffix ? {
|
|
691
708
|
name: "suffix",
|
|
692
|
-
fn:
|
|
709
|
+
fn: M(() => [O(n.$slots, "suffix")]),
|
|
693
710
|
key: "1"
|
|
694
711
|
} : void 0]), 1032, [
|
|
695
712
|
"active",
|
|
@@ -708,36 +725,36 @@ var Te = ["id"], Ee = [
|
|
|
708
725
|
"variant",
|
|
709
726
|
"onClick:clear",
|
|
710
727
|
"onContainer:click"
|
|
711
|
-
]), (
|
|
712
|
-
loading:
|
|
713
|
-
empty:
|
|
714
|
-
group:
|
|
728
|
+
]), (T(!0), g(p, null, D(dt.value, (e) => (T(), g("input", x({ key: e.value }, { ref_for: !0 }, x(e, A(H).controlAttrs)), null, 16))), 128))]),
|
|
729
|
+
loading: M((e) => [O(n.$slots, "loading", w(b(e)))]),
|
|
730
|
+
empty: M((e) => [O(n.$slots, "empty", w(b(e)))]),
|
|
731
|
+
group: M((e) => [O(n.$slots, "group", w(b(e)))]),
|
|
715
732
|
_: 2
|
|
716
733
|
}, [
|
|
717
734
|
n.$slots.header ? {
|
|
718
735
|
name: "header",
|
|
719
|
-
fn:
|
|
736
|
+
fn: M((e) => [O(n.$slots, "header", w(b(e)))]),
|
|
720
737
|
key: "0"
|
|
721
738
|
} : void 0,
|
|
722
739
|
n.$slots.footer ? {
|
|
723
740
|
name: "footer",
|
|
724
|
-
fn:
|
|
741
|
+
fn: M((e) => [O(n.$slots, "footer", w(b(e)))]),
|
|
725
742
|
key: "1"
|
|
726
743
|
} : void 0,
|
|
727
744
|
n.$slots.option ? {
|
|
728
745
|
name: "option",
|
|
729
|
-
fn:
|
|
746
|
+
fn: M((e) => [O(n.$slots, "option", x({ hasErrors: r }, e))]),
|
|
730
747
|
key: "2"
|
|
731
748
|
} : void 0
|
|
732
|
-
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.open.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration.onUpdate:open".split("."))]),
|
|
749
|
+
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.open.prefill.pt.query.query-debounce-time.readonly.selectable.stash.transition-duration.onUpdate:open.onUpdate:query".split("."))]),
|
|
733
750
|
_: 2
|
|
734
751
|
}, 1024)]),
|
|
735
752
|
_: 2
|
|
736
753
|
}, [n.$slots.description ? {
|
|
737
754
|
name: "description",
|
|
738
|
-
fn:
|
|
755
|
+
fn: M((e) => [O(n.$slots, "description", w(b(e)))]),
|
|
739
756
|
key: "0"
|
|
740
757
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
741
758
|
}
|
|
742
759
|
});
|
|
743
|
-
export {
|
|
760
|
+
export { N as default };
|