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
package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -20,24 +20,25 @@ import { BB_COLOR_PALETTE_PT as de } from "./types.js";
|
|
|
20
20
|
import { usePassthrough as fe } from "../../composables/usePassthrough.js";
|
|
21
21
|
import { withoutPt as pe } from "../../utils/passthrough.js";
|
|
22
22
|
import { transitions as c } from "../../utilities/misc/transitions.js";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
23
|
+
import { useInternalIcon as me } from "../../composables/useInternalIcon.js";
|
|
24
|
+
import { Fragment as he, computed as l, createBlock as ge, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as _e, guardReactiveProps as ve, mergeProps as m, nextTick as ye, normalizeClass as be, normalizeProps as xe, normalizeStyle as h, onBeforeUnmount as Se, onDeactivated as Ce, openBlock as g, ref as _, renderList as we, renderSlot as Te, toDisplayString as Ee, unref as v, useAttrs as De, watch as y, withCtx as Oe } from "vue";
|
|
25
|
+
import { createReusableTemplate as ke } from "@vueuse/core";
|
|
25
26
|
// src/components/BbColorPalette/BbColorPalette.vue?vue&type=script&setup=true&lang.ts
|
|
26
|
-
var
|
|
27
|
+
var Ae = ["aria-label"], je = {
|
|
27
28
|
"aria-live": "polite",
|
|
28
29
|
class: "bb-color-palette__canvas-announcer",
|
|
29
30
|
role: "status"
|
|
30
|
-
},
|
|
31
|
+
}, Me = { class: "bb-color-palette__controls" }, Ne = { class: "bb-color-palette__preview-wrap" }, Pe = { class: "bb-color-palette__sliders" }, Fe = ["aria-label", "aria-valuenow"], Ie = ["aria-label", "aria-valuenow"], Le = ["aria-label", "disabled"], Re = {
|
|
31
32
|
key: 0,
|
|
32
33
|
class: "bb-color-palette__swatches"
|
|
33
|
-
},
|
|
34
|
+
}, ze = [
|
|
34
35
|
"aria-label",
|
|
35
36
|
"aria-pressed",
|
|
36
37
|
"tabindex",
|
|
37
38
|
"onClick",
|
|
38
39
|
"onFocus",
|
|
39
40
|
"onKeydown"
|
|
40
|
-
], b = /*@__PURE__*/
|
|
41
|
+
], b = /*@__PURE__*/ _e({
|
|
41
42
|
inheritAttrs: !1,
|
|
42
43
|
__name: "BbColorPalette",
|
|
43
44
|
props: {
|
|
@@ -88,87 +89,87 @@ var ke = ["aria-label"], Ae = {
|
|
|
88
89
|
"hidden",
|
|
89
90
|
"update:modelValue"
|
|
90
91
|
],
|
|
91
|
-
setup(c, { emit:
|
|
92
|
-
let b = c, x =
|
|
92
|
+
setup(c, { emit: _e }) {
|
|
93
|
+
let b = c, x = _e, Be = me("eyedropper", n), { model: Ve, set: He } = te(b, "modelValue", (e, t) => t !== null && x(e, t), () => null), Ue = a(null, "popoverOffset"), S = fe({
|
|
93
94
|
component: "BbColorPalette",
|
|
94
95
|
props: b,
|
|
95
96
|
parts: de.parts,
|
|
96
97
|
states: de.states,
|
|
97
|
-
active: { open: () =>
|
|
98
|
-
attrs:
|
|
98
|
+
active: { open: () => E.value },
|
|
99
|
+
attrs: De()
|
|
99
100
|
});
|
|
100
101
|
process.env.NODE_ENV !== "production" && ue("BbColorPalette", le("BbColorPalette"));
|
|
101
|
-
let { t: C } = re(), { isMobile:
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
102
|
+
let { t: C } = re(), { isMobile: We } = ae(), w = ee().id.value, Ge = `${w}_panel`, [Ke, qe] = ke(), T = _(), Je = _(), Ye = l(() => b.activator != null), Xe = (e) => {
|
|
103
|
+
T.value = o(e) ?? void 0;
|
|
104
|
+
}, Ze = (e) => {
|
|
105
|
+
Je.value = o(e) ?? void 0;
|
|
105
106
|
};
|
|
106
107
|
y(() => b.activator, (e) => {
|
|
107
|
-
|
|
108
|
+
T.value = o(e) ?? void 0;
|
|
108
109
|
}, { immediate: !0 }), y(() => b.anchor, (e) => {
|
|
109
|
-
|
|
110
|
+
Je.value = e == null ? void 0 : o(e) ?? void 0;
|
|
110
111
|
}, { immediate: !0 });
|
|
111
|
-
let
|
|
112
|
-
b.disabled || b.readonly || (e.stopPropagation(),
|
|
112
|
+
let Qe = l(() => Je.value ?? T.value), E = _(!1), $e = s(E, () => b.transitionDuration), et = null, tt = (e) => {
|
|
113
|
+
b.disabled || b.readonly || (e.stopPropagation(), E.value = !E.value);
|
|
113
114
|
};
|
|
114
115
|
ne(b, x, {
|
|
115
|
-
isOpen: () =>
|
|
116
|
+
isOpen: () => E.value,
|
|
116
117
|
open: () => {
|
|
117
|
-
b.disabled || b.readonly || (
|
|
118
|
+
b.disabled || b.readonly || (E.value = !0);
|
|
118
119
|
},
|
|
119
|
-
close: () =>
|
|
120
|
+
close: () => E.value = !1
|
|
120
121
|
});
|
|
121
|
-
let
|
|
122
|
+
let nt = (e) => {
|
|
122
123
|
let t = e.target;
|
|
123
|
-
t instanceof Node && ((H.value?.closest(".bb-common-popover"))?.contains(t) ||
|
|
124
|
+
t instanceof Node && ((H.value?.closest(".bb-common-popover"))?.contains(t) || T.value?.contains(t) || (E.value = !1));
|
|
124
125
|
};
|
|
125
|
-
y(
|
|
126
|
-
e ? (
|
|
126
|
+
y(E, async (e) => {
|
|
127
|
+
e ? (at.value = it(), et = document.activeElement instanceof HTMLElement ? document.activeElement : null, D.value || document.addEventListener("click", nt, {
|
|
127
128
|
passive: !0,
|
|
128
129
|
capture: !0
|
|
129
|
-
}), await
|
|
130
|
+
}), await ye(), H.value?.focus()) : (document.removeEventListener("click", nt, { capture: !0 }), et?.focus(), et = null);
|
|
130
131
|
});
|
|
131
|
-
let
|
|
132
|
+
let rt = i("BbColorPalette", b, { adaptive: !0 }), it = () => rt.adaptive && We.value ? "canvas" : "popover", at = _(it()), D = l(() => at.value === "canvas");
|
|
132
133
|
y([
|
|
133
|
-
() =>
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
() => rt.adaptive,
|
|
135
|
+
We,
|
|
136
|
+
E
|
|
136
137
|
], () => {
|
|
137
|
-
|
|
138
|
-
}), ie(() =>
|
|
139
|
-
let
|
|
138
|
+
E.value || (at.value = it());
|
|
139
|
+
}), ie(() => E.value && !D.value, () => E.value = !1);
|
|
140
|
+
let ot = l(() => ({
|
|
140
141
|
side: "bottom",
|
|
141
142
|
size: "auto",
|
|
142
143
|
draggable: !0,
|
|
143
144
|
hideClose: !0,
|
|
144
145
|
eager: b.eager,
|
|
145
146
|
transitionDuration: b.transitionDuration,
|
|
146
|
-
...b.offCanvasProps?.title ? {} : { "aria-labelledby":
|
|
147
|
+
...b.offCanvasProps?.title ? {} : { "aria-labelledby": lt.value },
|
|
147
148
|
...pe(b.offCanvasProps)
|
|
148
|
-
})),
|
|
149
|
-
|
|
149
|
+
})), st = () => {
|
|
150
|
+
T.value?.focus(), x("hidden");
|
|
150
151
|
}, O = null, k = _();
|
|
151
|
-
y(
|
|
152
|
+
y(T, (e) => {
|
|
152
153
|
if (O?.(), O = null, !e) return;
|
|
153
154
|
let t = !e.id;
|
|
154
|
-
t && (e.id = `${
|
|
155
|
-
e.removeEventListener("click",
|
|
155
|
+
t && (e.id = `${w}_activator`), k.value = e.id, e.addEventListener("click", tt), O = () => {
|
|
156
|
+
e.removeEventListener("click", tt), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), j.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), j.delete(e)), t && e.removeAttribute("id"), k.value = void 0;
|
|
156
157
|
};
|
|
157
158
|
}, { immediate: !0 });
|
|
158
|
-
let
|
|
159
|
-
ref:
|
|
159
|
+
let ct = l(() => b.label ?? C("colorInput.openPicker").value), A = `${w}_label`, lt = l(() => k.value ? `${A} ${k.value}` : A), j = /* @__PURE__ */ new WeakSet(), ut = l(() => b.disabled ? {
|
|
160
|
+
ref: Xe,
|
|
160
161
|
disabled: !0,
|
|
161
162
|
"aria-disabled": "true"
|
|
162
|
-
} : { ref:
|
|
163
|
+
} : { ref: Xe });
|
|
163
164
|
y([
|
|
164
|
-
w,
|
|
165
165
|
T,
|
|
166
|
+
E,
|
|
166
167
|
() => b.disabled,
|
|
167
168
|
() => b.readonly
|
|
168
169
|
], ([e, t, n, r]) => {
|
|
169
|
-
e && (e.setAttribute("aria-labelledby", `${A} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), j.add(e)) : j.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), j.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls",
|
|
170
|
-
}, { immediate: !0 }),
|
|
171
|
-
O?.(), document.removeEventListener("click",
|
|
170
|
+
e && (e.setAttribute("aria-labelledby", `${A} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), j.add(e)) : j.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), j.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls", Ge) : e.removeAttribute("aria-controls")));
|
|
171
|
+
}, { immediate: !0 }), Se(() => {
|
|
172
|
+
O?.(), document.removeEventListener("click", nt, { capture: !0 });
|
|
172
173
|
});
|
|
173
174
|
function M(e, t, n) {
|
|
174
175
|
let r = (r) => {
|
|
@@ -181,7 +182,7 @@ var ke = ["aria-label"], Ae = {
|
|
|
181
182
|
Math.round(r(1) * 255)
|
|
182
183
|
];
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function dt(e, t, n) {
|
|
185
186
|
let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = o - Math.min(r, i, a), ee = o === 0 ? 0 : s / o, te = o, ne = 0;
|
|
186
187
|
return s !== 0 && (ne = o === r ? ((i - a) / s + (i < a ? 6 : 0)) / 6 : o === i ? ((a - r) / s + 2) / 6 : ((r - i) / s + 4) / 6), [
|
|
187
188
|
ne * 360,
|
|
@@ -189,7 +190,7 @@ var ke = ["aria-label"], Ae = {
|
|
|
189
190
|
te
|
|
190
191
|
];
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
+
function ft(e) {
|
|
193
194
|
let t = e.replace(/^#/, "");
|
|
194
195
|
return t.length === 3 ? [
|
|
195
196
|
parseInt(t[0] + t[0], 16),
|
|
@@ -216,11 +217,11 @@ var ke = ["aria-label"], Ae = {
|
|
|
216
217
|
function N(e) {
|
|
217
218
|
return Math.round(Math.max(0, Math.min(255, e))).toString(16).padStart(2, "0");
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function pt(e, t, n, r, i) {
|
|
220
221
|
let a = `#${N(e)}${N(t)}${N(n)}`;
|
|
221
222
|
return i ? a + N(r * 255) : a;
|
|
222
223
|
}
|
|
223
|
-
let
|
|
224
|
+
let mt = [
|
|
224
225
|
[
|
|
225
226
|
"#FFCDD2",
|
|
226
227
|
"#EF9A9A",
|
|
@@ -265,11 +266,11 @@ var ke = ["aria-label"], Ae = {
|
|
|
265
266
|
]
|
|
266
267
|
], P = _(0), F = _(1), I = _(1), L = _(1), R = l(() => {
|
|
267
268
|
let [e, t, n] = M(P.value, F.value, I.value);
|
|
268
|
-
return
|
|
269
|
-
}),
|
|
269
|
+
return pt(e, t, n, L.value, b.alpha);
|
|
270
|
+
}), ht = l(() => {
|
|
270
271
|
let [e, t, n] = M(P.value, F.value, I.value);
|
|
271
272
|
return b.alpha ? `rgba(${e},${t},${n},${L.value})` : `rgb(${e},${t},${n})`;
|
|
272
|
-
}),
|
|
273
|
+
}), gt = l(() => !!b.swatches), z = l(() => Array.isArray(b.swatches) ? b.swatches : mt), B = _(null), _t = _(null), V = _(null), H = _(null), U = _(null), W = _(null), G = () => {
|
|
273
274
|
let e = B.value;
|
|
274
275
|
if (!e || e.width === 0 || e.height === 0) return;
|
|
275
276
|
let t = e.getContext("2d");
|
|
@@ -278,8 +279,8 @@ var ke = ["aria-label"], Ae = {
|
|
|
278
279
|
a.addColorStop(0, "#ffffff"), a.addColorStop(1, `rgb(${n},${r},${i})`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
|
|
279
280
|
let o = t.createLinearGradient(0, 0, 0, e.height);
|
|
280
281
|
o.addColorStop(0, "rgba(0,0,0,0)"), o.addColorStop(1, "rgba(0,0,0,1)"), t.fillStyle = o, t.fillRect(0, 0, e.width, e.height);
|
|
281
|
-
},
|
|
282
|
-
let e =
|
|
282
|
+
}, vt = () => {
|
|
283
|
+
let e = _t.value;
|
|
283
284
|
if (!e || e.width === 0 || e.height === 0) return;
|
|
284
285
|
let t = e.getContext("2d");
|
|
285
286
|
if (!t) return;
|
|
@@ -294,33 +295,33 @@ var ke = ["aria-label"], Ae = {
|
|
|
294
295
|
t.clearRect(0, 0, e.width, e.height);
|
|
295
296
|
let [n, r, i] = M(P.value, F.value, I.value), a = t.createLinearGradient(0, 0, e.width, 0);
|
|
296
297
|
a.addColorStop(0, `rgba(${n},${r},${i},0)`), a.addColorStop(1, `rgba(${n},${r},${i},1)`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
|
|
297
|
-
}, _t = () => {
|
|
298
|
-
G(), gt(), b.alpha && K();
|
|
299
|
-
}, q = null, vt = (e) => {
|
|
300
|
-
e.width = e.offsetWidth, e.height = e.offsetHeight;
|
|
301
298
|
}, yt = () => {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}, Ct = () => {
|
|
309
|
-
|
|
310
|
-
}, wt =
|
|
311
|
-
|
|
299
|
+
G(), vt(), b.alpha && K();
|
|
300
|
+
}, q = null, bt = (e) => {
|
|
301
|
+
e.width = e.offsetWidth, e.height = e.offsetHeight;
|
|
302
|
+
}, xt = () => {
|
|
303
|
+
let e = B.value, t = _t.value;
|
|
304
|
+
e && t && e.offsetWidth !== 0 && (bt(e), bt(t), b.alpha && V.value && bt(V.value), yt());
|
|
305
|
+
}, St = !1, Ct = () => {
|
|
306
|
+
P.value = 0, F.value = 1, I.value = 1, L.value = 1, jt.value = "", Y.value = !1, X.value = !1, Z.value = !1, Q.value = !1, Gt = void 0;
|
|
307
|
+
}, wt = () => {
|
|
308
|
+
St = !0, q = new ResizeObserver(xt), B.value && q.observe(B.value), Dt(Ve.value), xt();
|
|
309
|
+
}, Tt = () => {
|
|
310
|
+
St = !1, q?.disconnect(), q = null, Ct();
|
|
311
|
+
}, Et = l(() => m({
|
|
312
|
+
id: Ge,
|
|
312
313
|
class: "bb-color-palette__panel",
|
|
313
|
-
inert:
|
|
314
|
-
}, D.value ? {} : S.panel ?? {})),
|
|
314
|
+
inert: $e.value
|
|
315
|
+
}, D.value ? {} : S.panel ?? {})), Dt = (e) => {
|
|
315
316
|
if (e) try {
|
|
316
|
-
let [t, n, r, i] =
|
|
317
|
+
let [t, n, r, i] = ft(e), [a, o, s] = dt(t, n, r);
|
|
317
318
|
o > .01 && (P.value = a), F.value = o, I.value = s, L.value = i;
|
|
318
319
|
} catch {}
|
|
319
320
|
};
|
|
320
|
-
y(() =>
|
|
321
|
-
|
|
321
|
+
y(() => Ve.value, (e) => {
|
|
322
|
+
St && (e && e === R.value || (e ? Dt(e) : (P.value = 0, F.value = 1, I.value = 1, L.value = 1), G(), b.alpha && K()));
|
|
322
323
|
});
|
|
323
|
-
let J = () =>
|
|
324
|
+
let J = () => He(R.value), Y = _(!1), Ot = (e) => {
|
|
324
325
|
let t = H.value;
|
|
325
326
|
if (!t) return {
|
|
326
327
|
s: F.value,
|
|
@@ -331,19 +332,19 @@ var ke = ["aria-label"], Ae = {
|
|
|
331
332
|
s: Math.max(0, Math.min(1, (e.clientX - n.left) / n.width)),
|
|
332
333
|
v: Math.max(0, Math.min(1, 1 - (e.clientY - n.top) / n.height))
|
|
333
334
|
};
|
|
334
|
-
},
|
|
335
|
+
}, kt = (e) => {
|
|
335
336
|
H.value?.setPointerCapture(e.pointerId), Y.value = !0;
|
|
336
|
-
let { s: t, v: n } =
|
|
337
|
+
let { s: t, v: n } = Ot(e);
|
|
337
338
|
F.value = t, I.value = n, b.alpha && K(), J();
|
|
338
|
-
},
|
|
339
|
+
}, At = (e) => {
|
|
339
340
|
if (!Y.value) return;
|
|
340
|
-
let { s: t, v: n } =
|
|
341
|
+
let { s: t, v: n } = Ot(e);
|
|
341
342
|
F.value = t, I.value = n, b.alpha && K(), J();
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
H.value?.releasePointerCapture(e.pointerId), Y.value &&
|
|
346
|
-
},
|
|
343
|
+
}, jt = _(""), Mt = () => {
|
|
344
|
+
jt.value = C("colorInput.mainCanvasSelectedColor", R.value).value;
|
|
345
|
+
}, Nt = (e) => {
|
|
346
|
+
H.value?.releasePointerCapture(e.pointerId), Y.value && Mt(), Y.value = !1;
|
|
347
|
+
}, Pt = (e) => {
|
|
347
348
|
let t = e.shiftKey ? .05 : .01;
|
|
348
349
|
switch (e.key) {
|
|
349
350
|
case "ArrowLeft":
|
|
@@ -360,19 +361,19 @@ var ke = ["aria-label"], Ae = {
|
|
|
360
361
|
break;
|
|
361
362
|
default: return;
|
|
362
363
|
}
|
|
363
|
-
b.alpha && K(), J(),
|
|
364
|
-
}, X = _(!1),
|
|
364
|
+
b.alpha && K(), J(), Mt(), e.preventDefault();
|
|
365
|
+
}, X = _(!1), Ft = (e) => {
|
|
365
366
|
let t = U.value;
|
|
366
367
|
if (!t) return P.value;
|
|
367
368
|
let n = t.getBoundingClientRect();
|
|
368
369
|
return Math.max(0, Math.min(360, (e.clientX - n.left) / n.width * 360));
|
|
369
|
-
}, Pt = (e) => {
|
|
370
|
-
U.value?.setPointerCapture(e.pointerId), X.value = !0, P.value = Nt(e), G(), b.alpha && K(), J();
|
|
371
|
-
}, Ft = (e) => {
|
|
372
|
-
X.value && (P.value = Nt(e), G(), b.alpha && K(), J());
|
|
373
370
|
}, It = (e) => {
|
|
374
|
-
U.value?.
|
|
371
|
+
U.value?.setPointerCapture(e.pointerId), X.value = !0, P.value = Ft(e), G(), b.alpha && K(), J();
|
|
375
372
|
}, Lt = (e) => {
|
|
373
|
+
X.value && (P.value = Ft(e), G(), b.alpha && K(), J());
|
|
374
|
+
}, Rt = (e) => {
|
|
375
|
+
U.value?.releasePointerCapture(e.pointerId), X.value = !1;
|
|
376
|
+
}, zt = (e) => {
|
|
376
377
|
let t = e.shiftKey ? 10 : 1;
|
|
377
378
|
switch (e.key) {
|
|
378
379
|
case "ArrowLeft":
|
|
@@ -384,18 +385,18 @@ var ke = ["aria-label"], Ae = {
|
|
|
384
385
|
default: return;
|
|
385
386
|
}
|
|
386
387
|
G(), b.alpha && K(), J(), e.preventDefault();
|
|
387
|
-
}, Z = _(!1),
|
|
388
|
+
}, Z = _(!1), Bt = (e) => {
|
|
388
389
|
let t = W.value;
|
|
389
390
|
if (!t) return L.value;
|
|
390
391
|
let n = t.getBoundingClientRect();
|
|
391
392
|
return Math.max(0, Math.min(1, (e.clientX - n.left) / n.width));
|
|
392
|
-
}, zt = (e) => {
|
|
393
|
-
W.value?.setPointerCapture(e.pointerId), Z.value = !0, L.value = Rt(e), J();
|
|
394
|
-
}, Bt = (e) => {
|
|
395
|
-
Z.value && (L.value = Rt(e), J());
|
|
396
393
|
}, Vt = (e) => {
|
|
397
|
-
W.value?.
|
|
394
|
+
W.value?.setPointerCapture(e.pointerId), Z.value = !0, L.value = Bt(e), J();
|
|
398
395
|
}, Ht = (e) => {
|
|
396
|
+
Z.value && (L.value = Bt(e), J());
|
|
397
|
+
}, Ut = (e) => {
|
|
398
|
+
W.value?.releasePointerCapture(e.pointerId), Z.value = !1;
|
|
399
|
+
}, Wt = (e) => {
|
|
399
400
|
let t = e.shiftKey ? .05 : .01;
|
|
400
401
|
switch (e.key) {
|
|
401
402
|
case "ArrowLeft":
|
|
@@ -407,16 +408,16 @@ var ke = ["aria-label"], Ae = {
|
|
|
407
408
|
default: return;
|
|
408
409
|
}
|
|
409
410
|
J(), e.preventDefault();
|
|
410
|
-
},
|
|
411
|
-
if (
|
|
411
|
+
}, Gt, Kt = () => Gt ??= typeof window < "u" && "EyeDropper" in window, Q = _(!1), qt = async () => {
|
|
412
|
+
if (Kt()) try {
|
|
412
413
|
Q.value = !0;
|
|
413
414
|
let e = await new window.EyeDropper().open();
|
|
414
|
-
|
|
415
|
+
$t(e.sRGBHex);
|
|
415
416
|
} catch {} finally {
|
|
416
417
|
Q.value = !1;
|
|
417
418
|
}
|
|
418
|
-
},
|
|
419
|
-
let e =
|
|
419
|
+
}, Jt = _(null), Yt = (e) => e && z.value[e[0]]?.[e[1]] !== void 0 ? e : null, Xt = l(() => {
|
|
420
|
+
let e = Yt(Jt.value);
|
|
420
421
|
if (e) return e;
|
|
421
422
|
let t = z.value;
|
|
422
423
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -425,7 +426,7 @@ var ke = ["aria-label"], Ae = {
|
|
|
425
426
|
}
|
|
426
427
|
let n = t.findIndex((e) => e.length > 0);
|
|
427
428
|
return [Math.max(n, 0), 0];
|
|
428
|
-
}),
|
|
429
|
+
}), Zt = (e, t) => Xt.value[0] === e && Xt.value[1] === t ? 0 : -1, Qt = (t, n, r) => {
|
|
429
430
|
if (t.altKey || t.ctrlKey || t.metaKey || t.shiftKey) return;
|
|
430
431
|
let i = z.value, a = e(t.key, t.currentTarget), o = null;
|
|
431
432
|
if (a) {
|
|
@@ -445,26 +446,26 @@ var ke = ["aria-label"], Ae = {
|
|
|
445
446
|
e !== -1 && (o = [e, i[e].length - 1]);
|
|
446
447
|
} else return;
|
|
447
448
|
t.preventDefault(), o && (t.currentTarget.closest(".bb-color-palette__swatches")?.children[o[0]]?.children[o[1]])?.focus();
|
|
448
|
-
}, $ = (e) => R.value.slice(0, 7).toLowerCase() === e.slice(0, 7).toLowerCase(),
|
|
449
|
-
let [t, n, r, i] =
|
|
449
|
+
}, $ = (e) => R.value.slice(0, 7).toLowerCase() === e.slice(0, 7).toLowerCase(), $t = (e) => {
|
|
450
|
+
let [t, n, r, i] = ft(e), [a, o, s] = dt(t, n, r);
|
|
450
451
|
o > .01 && (P.value = a), F.value = o, I.value = s, L.value = i, G(), b.alpha && K(), J();
|
|
451
452
|
};
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
}), (e,
|
|
455
|
-
|
|
456
|
-
props:
|
|
457
|
-
anchorProps: { ref:
|
|
458
|
-
open:
|
|
459
|
-
value: v(
|
|
453
|
+
return Ce(() => {
|
|
454
|
+
E.value = !1;
|
|
455
|
+
}), (e, n) => (g(), d(he, null, [
|
|
456
|
+
Ye.value ? u("", !0) : Te(e.$slots, "activator", xe(ve({
|
|
457
|
+
props: ut.value,
|
|
458
|
+
anchorProps: { ref: Ze },
|
|
459
|
+
open: E.value,
|
|
460
|
+
value: v(Ve),
|
|
460
461
|
disabled: c.disabled
|
|
461
462
|
})), void 0, void 0, 0),
|
|
462
463
|
f("span", {
|
|
463
464
|
id: A,
|
|
464
465
|
hidden: ""
|
|
465
|
-
},
|
|
466
|
-
p(v(
|
|
467
|
-
default:
|
|
466
|
+
}, Ee(ct.value), 1),
|
|
467
|
+
p(v(Ke), null, {
|
|
468
|
+
default: Oe(() => [
|
|
468
469
|
f("div", {
|
|
469
470
|
ref_key: "canvasWrapRef",
|
|
470
471
|
ref: H,
|
|
@@ -473,13 +474,13 @@ var ke = ["aria-label"], Ae = {
|
|
|
473
474
|
"data-bb-no-drag": "",
|
|
474
475
|
role: "application",
|
|
475
476
|
tabindex: "0",
|
|
476
|
-
onKeydown:
|
|
477
|
-
onPointercancel:
|
|
478
|
-
onPointerdown:
|
|
479
|
-
onPointermove:
|
|
480
|
-
onPointerup:
|
|
481
|
-
onVnodeBeforeUnmount:
|
|
482
|
-
onVnodeMounted:
|
|
477
|
+
onKeydown: Pt,
|
|
478
|
+
onPointercancel: Nt,
|
|
479
|
+
onPointerdown: kt,
|
|
480
|
+
onPointermove: At,
|
|
481
|
+
onPointerup: Nt,
|
|
482
|
+
onVnodeBeforeUnmount: Tt,
|
|
483
|
+
onVnodeMounted: wt
|
|
483
484
|
}, [f("canvas", {
|
|
484
485
|
ref_key: "mainCanvasRef",
|
|
485
486
|
ref: B,
|
|
@@ -492,14 +493,14 @@ var ke = ["aria-label"], Ae = {
|
|
|
492
493
|
left: `${F.value * 100}%`,
|
|
493
494
|
top: `${(1 - I.value) * 100}%`
|
|
494
495
|
})
|
|
495
|
-
}, null, 4)], 40,
|
|
496
|
-
f("div",
|
|
497
|
-
f("div",
|
|
498
|
-
f("div", Me, [f("div", {
|
|
499
|
-
class: ye(["bb-color-palette__preview", { "bb-color-palette__preview--alpha": c.alpha }]),
|
|
500
|
-
style: h({ "--picker-preview-color": pt.value })
|
|
501
|
-
}, null, 6)]),
|
|
496
|
+
}, null, 4)], 40, Ae),
|
|
497
|
+
f("div", je, Ee(jt.value), 1),
|
|
498
|
+
f("div", Me, [
|
|
502
499
|
f("div", Ne, [f("div", {
|
|
500
|
+
class: be(["bb-color-palette__preview", { "bb-color-palette__preview--alpha": c.alpha }]),
|
|
501
|
+
style: h({ "--picker-preview-color": ht.value })
|
|
502
|
+
}, null, 6)]),
|
|
503
|
+
f("div", Pe, [f("div", {
|
|
503
504
|
ref_key: "hueWrapRef",
|
|
504
505
|
ref: U,
|
|
505
506
|
"aria-label": v(C)("colorInput.hueCanvasDesc").value,
|
|
@@ -510,21 +511,21 @@ var ke = ["aria-label"], Ae = {
|
|
|
510
511
|
"data-bb-no-drag": "",
|
|
511
512
|
role: "slider",
|
|
512
513
|
tabindex: "0",
|
|
513
|
-
onKeydown:
|
|
514
|
-
onPointercancel:
|
|
515
|
-
onPointerdown:
|
|
516
|
-
onPointermove:
|
|
517
|
-
onPointerup:
|
|
514
|
+
onKeydown: zt,
|
|
515
|
+
onPointercancel: Rt,
|
|
516
|
+
onPointerdown: It,
|
|
517
|
+
onPointermove: Lt,
|
|
518
|
+
onPointerup: Rt
|
|
518
519
|
}, [f("canvas", {
|
|
519
520
|
ref_key: "hueCanvasRef",
|
|
520
|
-
ref:
|
|
521
|
+
ref: _t,
|
|
521
522
|
"aria-hidden": "true",
|
|
522
523
|
class: "bb-color-palette__slider-track"
|
|
523
524
|
}, null, 512), f("div", {
|
|
524
525
|
"aria-hidden": "true",
|
|
525
526
|
class: "bb-color-palette__slider-thumb",
|
|
526
527
|
style: h({ left: `${P.value / 360 * 100}%` })
|
|
527
|
-
}, null, 4)], 40,
|
|
528
|
+
}, null, 4)], 40, Fe), c.alpha ? (g(), d("div", {
|
|
528
529
|
key: 0,
|
|
529
530
|
ref_key: "alphaWrapRef",
|
|
530
531
|
ref: W,
|
|
@@ -536,11 +537,11 @@ var ke = ["aria-label"], Ae = {
|
|
|
536
537
|
"data-bb-no-drag": "",
|
|
537
538
|
role: "slider",
|
|
538
539
|
tabindex: "0",
|
|
539
|
-
onKeydown:
|
|
540
|
-
onPointercancel:
|
|
541
|
-
onPointerdown:
|
|
542
|
-
onPointermove:
|
|
543
|
-
onPointerup:
|
|
540
|
+
onKeydown: Wt,
|
|
541
|
+
onPointercancel: Ut,
|
|
542
|
+
onPointerdown: Vt,
|
|
543
|
+
onPointermove: Ht,
|
|
544
|
+
onPointerup: Ut
|
|
544
545
|
}, [f("canvas", {
|
|
545
546
|
ref_key: "alphaCanvasRef",
|
|
546
547
|
ref: V,
|
|
@@ -550,77 +551,77 @@ var ke = ["aria-label"], Ae = {
|
|
|
550
551
|
"aria-hidden": "true",
|
|
551
552
|
class: "bb-color-palette__slider-thumb",
|
|
552
553
|
style: h({ left: `${L.value * 100}%` })
|
|
553
|
-
}, null, 4)], 40,
|
|
554
|
-
|
|
554
|
+
}, null, 4)], 40, Ie)) : u("", !0)]),
|
|
555
|
+
Kt() && c.eyeDropper ? (g(), d("button", {
|
|
555
556
|
key: 0,
|
|
556
557
|
"aria-label": v(C)("colorInput.eyeDropper").value,
|
|
557
558
|
class: "bb-color-palette__eyedropper",
|
|
558
559
|
disabled: Q.value || void 0,
|
|
559
560
|
type: "button",
|
|
560
|
-
onClick:
|
|
561
|
+
onClick: qt
|
|
561
562
|
}, [p(t, {
|
|
562
|
-
icon: v(
|
|
563
|
+
icon: v(Be),
|
|
563
564
|
size: "16"
|
|
564
|
-
}, null, 8, ["icon"])], 8,
|
|
565
|
+
}, null, 8, ["icon"])], 8, Le)) : u("", !0)
|
|
565
566
|
]),
|
|
566
|
-
|
|
567
|
+
gt.value ? (g(), d("div", Re, [(g(!0), d(he, null, we(z.value, (e, t) => (g(), d("div", {
|
|
567
568
|
key: t,
|
|
568
569
|
class: "bb-color-palette__swatch-group"
|
|
569
|
-
}, [(g(!0), d(
|
|
570
|
+
}, [(g(!0), d(he, null, we(e, (e, n) => (g(), d("button", m({
|
|
570
571
|
key: e,
|
|
571
572
|
"aria-label": e,
|
|
572
573
|
"aria-pressed": $(e),
|
|
573
574
|
class: ["bb-color-palette__swatch", { "bb-color-palette__swatch--active": $(e) }],
|
|
574
575
|
style: { background: e },
|
|
575
|
-
tabindex:
|
|
576
|
+
tabindex: Zt(t, n),
|
|
576
577
|
type: "button",
|
|
577
|
-
onClick: (t) =>
|
|
578
|
-
onFocus: (e) =>
|
|
579
|
-
onKeydown: (e) =>
|
|
580
|
-
}, { ref_for: !0 }, v(S).part?.("swatch", { selected: $(e) })), null, 16,
|
|
578
|
+
onClick: (t) => $t(e),
|
|
579
|
+
onFocus: (e) => Jt.value = [t, n],
|
|
580
|
+
onKeydown: (e) => Qt(e, t, n)
|
|
581
|
+
}, { ref_for: !0 }, v(S).part?.("swatch", { selected: $(e) })), null, 16, ze))), 128))]))), 128))])) : u("", !0)
|
|
581
582
|
]),
|
|
582
583
|
_: 1
|
|
583
584
|
}),
|
|
584
|
-
D.value ? (g(),
|
|
585
|
+
D.value ? (g(), ge(oe, m({
|
|
585
586
|
key: 1,
|
|
586
|
-
modelValue:
|
|
587
|
-
"onUpdate:modelValue":
|
|
587
|
+
modelValue: E.value,
|
|
588
|
+
"onUpdate:modelValue": n[0] ||= (e) => E.value = e,
|
|
588
589
|
class: "bb-color-palette__sheet",
|
|
589
590
|
pt: v(S).forward({
|
|
590
591
|
panel: "root",
|
|
591
592
|
sheet: "root"
|
|
592
593
|
}, v(se).states, () => c.offCanvasProps?.pt)
|
|
593
|
-
}, m(
|
|
594
|
-
onHidden:
|
|
595
|
-
onHide:
|
|
596
|
-
onShow:
|
|
597
|
-
onShown:
|
|
594
|
+
}, m(ot.value, v(r)(v(S).forwardAttrs)), {
|
|
595
|
+
onHidden: st,
|
|
596
|
+
onHide: n[1] ||= (e) => x("hide"),
|
|
597
|
+
onShow: n[2] ||= (e) => x("show"),
|
|
598
|
+
onShown: n[3] ||= (e) => x("shown")
|
|
598
599
|
}), {
|
|
599
|
-
default:
|
|
600
|
+
default: Oe(() => [f("div", xe(ve(Et.value)), [p(v(qe))], 16)]),
|
|
600
601
|
_: 1
|
|
601
|
-
}, 16, ["modelValue", "pt"])) : (g(),
|
|
602
|
+
}, 16, ["modelValue", "pt"])) : (g(), ge(ce, m({
|
|
602
603
|
key: 2,
|
|
603
|
-
modelValue:
|
|
604
|
-
"onUpdate:modelValue":
|
|
605
|
-
anchor:
|
|
604
|
+
modelValue: E.value,
|
|
605
|
+
"onUpdate:modelValue": n[4] ||= (e) => E.value = e,
|
|
606
|
+
anchor: Qe.value,
|
|
606
607
|
"aria-label": v(C)("colorInput.dialogLabel").value,
|
|
607
608
|
boundary: c.boundary,
|
|
608
|
-
"bubble-attrs":
|
|
609
|
+
"bubble-attrs": Et.value,
|
|
609
610
|
class: "bb-color-palette",
|
|
610
611
|
dialog: "",
|
|
611
612
|
"disable-flip": c.disableFlip,
|
|
612
613
|
eager: c.eager,
|
|
613
614
|
"hide-arrow": "",
|
|
614
|
-
offset: c.offset ?? v(
|
|
615
|
+
offset: c.offset ?? v(Ue)() ?? 4,
|
|
615
616
|
padding: c.padding,
|
|
616
617
|
placement: c.placement,
|
|
617
618
|
"transition-duration": c.transitionDuration,
|
|
618
|
-
onHidden:
|
|
619
|
-
onHide:
|
|
620
|
-
onShow:
|
|
621
|
-
onShown:
|
|
619
|
+
onHidden: n[5] ||= (e) => x("hidden"),
|
|
620
|
+
onHide: n[6] ||= (e) => x("hide"),
|
|
621
|
+
onShow: n[7] ||= (e) => x("show"),
|
|
622
|
+
onShown: n[8] ||= (e) => x("shown")
|
|
622
623
|
}, v(S).rootAttrs), {
|
|
623
|
-
default:
|
|
624
|
+
default: Oe(() => [p(v(qe))]),
|
|
624
625
|
_: 1
|
|
625
626
|
}, 16, [
|
|
626
627
|
"modelValue",
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
53
53
|
disableFlip?: boolean;
|
|
54
54
|
eager?: boolean;
|
|
55
55
|
label?: string;
|
|
56
|
-
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "
|
|
56
|
+
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
|
|
57
57
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, M>) => any) | undefined;
|
|
58
58
|
onHide?: (() => any) | undefined;
|
|
59
59
|
onShow?: (() => any) | undefined;
|