bitboss-ui 2.1.32 → 2.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +13 -12
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +11 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
- package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +30 -38
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +8 -3
- package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
- package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
- package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
- package/dist/composables/useCancelableFunction.d.ts +17 -0
- package/dist/composables/useToast.d.ts +4 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +111 -93
- package/dist/index133.js +1 -1
- package/dist/index135.js +2 -2
- package/dist/index140.js +292 -250
- package/dist/index142.js +2 -2
- package/dist/index15.js +72 -74
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +16 -16
- package/dist/index212.js +3 -3
- package/dist/index215.js +86 -4
- package/dist/index217.js +27 -9
- package/dist/index218.js +16 -19
- package/dist/index219.js +49 -195
- package/dist/index220.js +17 -0
- package/dist/index221.js +3 -117
- package/dist/index222.js +14 -0
- package/dist/index223.js +16 -34
- package/dist/index224.js +2 -86
- package/dist/index225.js +4 -0
- package/dist/index226.js +2 -29
- package/dist/index227.js +106 -17
- package/dist/index229.js +100 -15
- package/dist/index23.js +152 -152
- package/dist/index231.js +2 -12
- package/dist/index232.js +4 -16
- package/dist/index233.js +5 -2
- package/dist/index234.js +5 -2
- package/dist/index235.js +5 -2
- package/dist/index236.js +5 -5
- package/dist/index237.js +4 -4
- package/dist/index238.js +5 -5
- package/dist/index239.js +2 -5
- package/dist/index240.js +13 -5
- package/dist/index241.js +20 -5
- package/dist/index242.js +121 -5
- package/dist/index244.js +17 -7
- package/dist/index245.js +12 -250
- package/dist/index246.js +222 -45
- package/dist/index247.js +13 -44
- package/dist/index248.js +4 -5
- package/dist/index249.js +190 -53
- package/dist/index25.js +3 -3
- package/dist/index251.js +7 -3
- package/dist/index252.js +33 -12
- package/dist/index253.js +2 -106
- package/dist/index254.js +185 -0
- package/dist/index255.js +3 -100
- package/dist/index256.js +4 -0
- package/dist/index257.js +7 -2
- package/dist/index258.js +6 -182
- package/dist/index259.js +12 -6
- package/dist/index260.js +5 -2
- package/dist/index261.js +5 -2
- package/dist/index262.js +8 -7
- package/dist/index263.js +250 -7
- package/dist/index264.js +50 -16
- package/dist/index265.js +44 -12
- package/dist/index266.js +5 -6
- package/dist/index267.js +54 -223
- package/dist/index268.js +6 -5
- package/dist/index269.js +16 -10
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -3
- package/dist/index271.js +4 -9
- package/dist/index272.js +23 -23
- package/dist/index273.js +9 -3
- package/dist/index274.js +23 -9
- package/dist/index275.js +10 -6
- package/dist/index276.js +3 -16
- package/dist/index277.js +3 -9
- package/dist/index278.js +9 -8
- package/dist/index279.js +8 -33
- package/dist/index280.js +33 -28
- package/dist/index281.js +30 -0
- package/dist/index283.js +2 -5
- package/dist/index284.js +67 -8
- package/dist/index285.js +5 -2
- package/dist/index286.js +5 -5
- package/dist/index287.js +8 -3
- package/dist/index288.js +4 -3
- package/dist/index289.js +3 -7
- package/dist/index29.js +2 -2
- package/dist/index290.js +17 -11
- package/dist/index291.js +28 -2
- package/dist/index292.js +3 -4
- package/dist/index293.js +1 -1
- package/dist/index294.js +4 -17
- package/dist/index295.js +279 -27
- package/dist/index296.js +2 -4
- package/dist/index297.js +125 -5
- package/dist/index298.js +2 -280
- package/dist/index299.js +15 -2
- package/dist/index300.js +2 -16
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -16
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -19
- package/dist/index305.js +19 -2
- package/dist/index306.js +2 -15
- package/dist/index307.js +3 -2
- package/dist/index308.js +7 -19
- package/dist/index309.js +11 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -27
- package/dist/index311.js +3 -2
- package/dist/index312.js +6 -2
- package/dist/index313.js +1 -1
- package/dist/index314.js +5 -2
- package/dist/index315.js +19 -2
- package/dist/index316.js +2 -22
- package/dist/index317.js +29 -0
- package/dist/index318.js +2 -3
- package/dist/index319.js +2 -3
- package/dist/index320.js +2 -6
- package/dist/index321.js +1 -1
- package/dist/index322.js +2 -125
- package/dist/index323.js +22 -2
- package/dist/index328.js +7 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +3 -2
- package/dist/index331.js +2 -8
- package/dist/index332.js +34 -5
- package/dist/index333.js +6 -8
- package/dist/index334.js +128 -57
- package/dist/index335.js +367 -56
- package/dist/index336.js +47 -8
- package/dist/index337.js +57 -128
- package/dist/index338.js +56 -367
- package/dist/index339.js +7 -6
- package/dist/index340.js +5 -18
- package/dist/index341.js +8 -228
- package/dist/index343.js +227 -46
- package/dist/index344.js +6 -92
- package/dist/index345.js +17 -127
- package/dist/index346.js +87 -430
- package/dist/index347.js +123 -121
- package/dist/index348.js +1 -1
- package/dist/index349.js +430 -44
- package/dist/index35.js +4 -4
- package/dist/index350.js +129 -0
- package/dist/index351.js +52 -0
- package/dist/index37.js +261 -271
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +60 -62
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +6 -6
- package/dist/index67.js +1 -1
- package/dist/index79.js +206 -182
- package/dist/index81.js +2 -2
- package/dist/index83.js +2 -2
- package/dist/index85.js +3 -3
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +121 -117
- package/dist/types/Icon.d.ts +9 -0
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
- package/dist/utilities/functions/parseWidthString.d.ts +6 -0
- package/package.json +1 -1
- package/dist/index216.js +0 -15
- package/dist/index228.js +0 -53
- package/dist/index230.js +0 -5
- package/dist/index243.js +0 -4
- package/dist/index250.js +0 -6
- package/dist/index282.js +0 -69
- package/dist/index324.js +0 -7
- package/dist/index329.js +0 -5
package/dist/index142.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as i } from "./
|
1
|
+
import { isArray as p } from "./index286.js";
|
2
|
+
import { isPlainObject as i } from "./index287.js";
|
3
3
|
function f(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -1,18 +1,17 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { isHex as
|
3
|
-
import { isNotNil as
|
4
|
-
import { useId as
|
5
|
-
import { useLocale as
|
6
|
-
import {
|
7
|
-
import
|
8
|
-
import T from "./index219.js";
|
1
|
+
import { defineComponent as H, ref as s, computed as D, createBlock as E, openBlock as I, normalizeClass as L, withCtx as l, createVNode as d, unref as u, withDirectives as M, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
|
2
|
+
import { isHex as z } from "./index248.js";
|
3
|
+
import { isNotNil as F } from "./index143.js";
|
4
|
+
import { useId as S } from "./index8.js";
|
5
|
+
import { useLocale as U } from "./index240.js";
|
6
|
+
import { vMaska as A } from "./index241.js";
|
7
|
+
import K from "./index249.js";
|
9
8
|
/* empty css */
|
10
|
-
import
|
9
|
+
import O from "./index135.js";
|
11
10
|
/* empty css */
|
12
|
-
import
|
13
|
-
import
|
11
|
+
import P from "./index137.js";
|
12
|
+
import T from "./index242.js";
|
14
13
|
/* empty css */
|
15
|
-
const
|
14
|
+
const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, re = /* @__PURE__ */ H({
|
16
15
|
__name: "BaseColorInput",
|
17
16
|
props: {
|
18
17
|
"append:icon": {},
|
@@ -34,18 +33,18 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
34
33
|
transitionDuration: { default: 250 }
|
35
34
|
},
|
36
35
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
37
|
-
setup(
|
38
|
-
const n =
|
36
|
+
setup(b, { emit: f }) {
|
37
|
+
const n = b, a = f, y = s(
|
39
38
|
null
|
40
|
-
), v = n.id ?? `bb_${
|
39
|
+
), v = n.id ?? `bb_${S().id.value}`, c = s(null), k = s(null), { t: V } = U(), C = D(() => ({
|
41
40
|
"bb-base-color-input": !0,
|
42
41
|
"bb-base-color-input--disabled": n.disabled,
|
43
42
|
"bb-base-color-input--errors": n.hasErrors,
|
44
43
|
"bb-base-color-input--loading": n.loading,
|
45
44
|
"bb-base-color-input--readonly": n.readonly,
|
46
45
|
"bb-base-color-input--compact": n.compact,
|
47
|
-
"bb-base-color-input--active":
|
48
|
-
})),
|
46
|
+
"bb-base-color-input--active": t.value
|
47
|
+
})), h = {
|
49
48
|
onBlur: (e) => a("blur", e),
|
50
49
|
onChange: (e) => a("change", e),
|
51
50
|
onClick: (e) => a("click", e),
|
@@ -58,89 +57,68 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
58
57
|
onMouseup: (e) => a("mouseup", e),
|
59
58
|
onMaska: (e) => {
|
60
59
|
const o = e.detail;
|
61
|
-
|
60
|
+
z(o.masked) ? a("update:modelValue", o.masked) : o.masked === "" && a("update:modelValue", null);
|
62
61
|
}
|
63
|
-
},
|
64
|
-
|
65
|
-
},
|
62
|
+
}, g = () => {
|
63
|
+
$();
|
64
|
+
}, w = {
|
66
65
|
mask: "!#HHHHHH",
|
67
66
|
tokens: {
|
68
67
|
H: { pattern: /[0-9a-fA-F]/ }
|
69
68
|
},
|
70
69
|
eager: !0
|
71
|
-
},
|
70
|
+
}, t = s(!1), m = (e) => {
|
72
71
|
const o = e.target;
|
73
|
-
o && o instanceof HTMLDialogElement &&
|
74
|
-
},
|
75
|
-
|
76
|
-
},
|
77
|
-
|
72
|
+
o && o instanceof HTMLDialogElement && B();
|
73
|
+
}, $ = async () => {
|
74
|
+
t.value = !0, document.addEventListener("click", m, { passive: !0 });
|
75
|
+
}, B = async () => {
|
76
|
+
t.value = !1, document.removeEventListener("click", m);
|
78
77
|
};
|
79
|
-
return (e, o) => (
|
78
|
+
return (e, o) => (I(), E(P, {
|
80
79
|
ref_key: "wrapper",
|
81
|
-
ref:
|
82
|
-
class:
|
80
|
+
ref: y,
|
81
|
+
class: L(C.value)
|
83
82
|
}, {
|
84
|
-
"prepend-outer":
|
83
|
+
"prepend-outer": l(() => [
|
85
84
|
r(e.$slots, "prepend-outer")
|
86
85
|
]),
|
87
|
-
"append-outer":
|
86
|
+
"append-outer": l(() => [
|
88
87
|
r(e.$slots, "append-outer")
|
89
88
|
]),
|
90
|
-
default:
|
91
|
-
|
89
|
+
default: l(() => [
|
90
|
+
d(O, {
|
92
91
|
ref_key: "innerContainer",
|
93
|
-
ref:
|
92
|
+
ref: c,
|
94
93
|
"append:icon": n["append:icon"],
|
95
|
-
clearable: e.clearable &&
|
94
|
+
clearable: e.clearable && u(F)(e.modelValue),
|
96
95
|
"prepend:icon": n["prepend:icon"],
|
97
|
-
"onClick:clear": o[
|
96
|
+
"onClick:clear": o[0] || (o[0] = (i) => e.$emit("update:modelValue", null))
|
98
97
|
}, {
|
99
|
-
prepend:
|
98
|
+
prepend: l(() => [
|
100
99
|
r(e.$slots, "prepend")
|
101
100
|
]),
|
102
|
-
prefix:
|
101
|
+
prefix: l(() => [
|
103
102
|
r(e.$slots, "prefix")
|
104
103
|
]),
|
105
|
-
append:
|
106
|
-
|
104
|
+
append: l(() => [
|
105
|
+
p("button", {
|
107
106
|
ref: "indicator",
|
108
|
-
"aria-label":
|
107
|
+
"aria-label": u(V)("colorInput.paletteLabel").value,
|
109
108
|
class: "bb-base-color-input__indicator",
|
110
|
-
style:
|
109
|
+
style: N({ backgroundColor: n.modelValue ?? void 0 }),
|
111
110
|
type: "button",
|
112
|
-
onClick:
|
113
|
-
}, null, 12,
|
111
|
+
onClick: q(g, ["stop"])
|
112
|
+
}, null, 12, G),
|
114
113
|
r(e.$slots, "append", {}, () => [
|
115
|
-
|
114
|
+
p("span", J, [
|
116
115
|
r(e.$slots, "suffix")
|
117
116
|
])
|
118
117
|
])
|
119
118
|
]),
|
120
|
-
default:
|
121
|
-
|
122
|
-
|
123
|
-
modelValue: l.value,
|
124
|
-
"onUpdate:modelValue": o[1] || (o[1] = (s) => l.value = s),
|
125
|
-
block: !0,
|
126
|
-
class: "bb-base-color-input__pallette",
|
127
|
-
dialog: "",
|
128
|
-
offset: 4,
|
129
|
-
"transition-duration": e.transitionDuration
|
130
|
-
}, {
|
131
|
-
default: t(() => [
|
132
|
-
b(T, {
|
133
|
-
ref_key: "pallette",
|
134
|
-
ref: V,
|
135
|
-
inert: !l.value,
|
136
|
-
"model-value": e.modelValue,
|
137
|
-
"onUpdate:modelValue": o[0] || (o[0] = (s) => a("update:modelValue", s))
|
138
|
-
}, null, 8, ["inert", "model-value"])
|
139
|
-
]),
|
140
|
-
_: 1
|
141
|
-
}, 8, ["modelValue", "transition-duration"])) : _("", !0),
|
142
|
-
N(d("input", q(w, {
|
143
|
-
id: i(v),
|
119
|
+
default: l(() => [
|
120
|
+
M(p("input", _(h, {
|
121
|
+
id: u(v),
|
144
122
|
"aria-describedby": e.ariaDescribedby,
|
145
123
|
"aria-invalid": e.hasErrors ? !0 : void 0,
|
146
124
|
autocomplete: e.autocomplete,
|
@@ -154,17 +132,37 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
154
132
|
size: "1",
|
155
133
|
type: "text",
|
156
134
|
value: e.modelValue
|
157
|
-
}), null, 16,
|
158
|
-
[
|
135
|
+
}), null, 16, j), [
|
136
|
+
[u(A), w]
|
159
137
|
])
|
160
138
|
]),
|
161
139
|
_: 3
|
162
|
-
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
140
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
141
|
+
d(T, {
|
142
|
+
modelValue: t.value,
|
143
|
+
"onUpdate:modelValue": o[2] || (o[2] = (i) => t.value = i),
|
144
|
+
anchor: c.value,
|
145
|
+
class: "bb-base-color-input__pallette",
|
146
|
+
dialog: "",
|
147
|
+
offset: 4,
|
148
|
+
"transition-duration": e.transitionDuration
|
149
|
+
}, {
|
150
|
+
default: l(() => [
|
151
|
+
d(K, {
|
152
|
+
ref_key: "pallette",
|
153
|
+
ref: k,
|
154
|
+
inert: !t.value,
|
155
|
+
"model-value": e.modelValue,
|
156
|
+
"onUpdate:modelValue": o[1] || (o[1] = (i) => a("update:modelValue", i))
|
157
|
+
}, null, 8, ["inert", "model-value"])
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
}, 8, ["modelValue", "anchor", "transition-duration"])
|
163
161
|
]),
|
164
162
|
_: 3
|
165
163
|
}, 8, ["class"]));
|
166
164
|
}
|
167
165
|
});
|
168
166
|
export {
|
169
|
-
|
167
|
+
re as default
|
170
168
|
};
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
2
|
+
import { isCssColor as y } from "./index224.js";
|
3
|
+
import { when as N } from "./index232.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index253.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index19.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
|
2
2
|
import W from "./index17.js";
|
3
3
|
/* empty css */
|
4
|
-
import K from "./
|
4
|
+
import K from "./index215.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as N } from "./
|
7
|
-
import { useIndexById as w } from "./
|
8
|
-
import { useBaseOptions as U } from "./
|
9
|
-
import { useCoherence as q } from "./
|
10
|
-
import { hash as J } from "./
|
11
|
-
import { useHashedWatcher as C } from "./
|
12
|
-
import { usePrefill as Q } from "./
|
6
|
+
import { useItemsGetter as N } from "./index217.js";
|
7
|
+
import { useIndexById as w } from "./index218.js";
|
8
|
+
import { useBaseOptions as U } from "./index219.js";
|
9
|
+
import { useCoherence as q } from "./index220.js";
|
10
|
+
import { hash as J } from "./index221.js";
|
11
|
+
import { useHashedWatcher as C } from "./index222.js";
|
12
|
+
import { usePrefill as Q } from "./index223.js";
|
13
13
|
const de = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseCheckboxGroup",
|
15
15
|
props: {
|
package/dist/index21.js
CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
|
|
5
5
|
import { useId as F } from "./index8.js";
|
6
6
|
import f from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import s from "./
|
9
|
-
import G from "./
|
10
|
-
import J from "./
|
11
|
-
import K from "./
|
12
|
-
import Q from "./
|
13
|
-
import X from "./
|
14
|
-
import ee from "./
|
15
|
-
import { hash as M } from "./
|
16
|
-
import { last as ae } from "./
|
17
|
-
import { useLogger as te } from "./
|
18
|
-
import oe from "./
|
19
|
-
import le from "./
|
20
|
-
import re from "./
|
21
|
-
import B from "./
|
22
|
-
import se from "./
|
23
|
-
import { useLocale as de } from "./
|
8
|
+
import s from "./index233.js";
|
9
|
+
import G from "./index236.js";
|
10
|
+
import J from "./index237.js";
|
11
|
+
import K from "./index238.js";
|
12
|
+
import Q from "./index235.js";
|
13
|
+
import X from "./index260.js";
|
14
|
+
import ee from "./index261.js";
|
15
|
+
import { hash as M } from "./index221.js";
|
16
|
+
import { last as ae } from "./index226.js";
|
17
|
+
import { useLogger as te } from "./index262.js";
|
18
|
+
import oe from "./index263.js";
|
19
|
+
import le from "./index264.js";
|
20
|
+
import re from "./index265.js";
|
21
|
+
import B from "./index266.js";
|
22
|
+
import se from "./index267.js";
|
23
|
+
import { useLocale as de } from "./index240.js";
|
24
24
|
const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
|
25
25
|
style: { transform: "rotate(180deg)" },
|
26
26
|
viewBox: "0 0 24 24",
|
package/dist/index212.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { onMounted as O, nextTick as W, getCurrentScope as S, onScopeDispose as C, watch as F, getCurrentInstance as g, isRef as P, toValue as b, hasInjectionContext as k, inject as v } from "vue";
|
2
2
|
function V(e) {
|
3
|
-
return
|
3
|
+
return S() ? (C(e), !0) : !1;
|
4
4
|
}
|
5
5
|
const w = /* @__PURE__ */ new WeakMap(), E = (...e) => {
|
6
6
|
var r;
|
@@ -89,7 +89,7 @@ function N(e, r, n = {}) {
|
|
89
89
|
);
|
90
90
|
}
|
91
91
|
function K(e, r = !0, n) {
|
92
|
-
L() ?
|
92
|
+
L() ? O(e, n) : r ? e() : W(e);
|
93
93
|
}
|
94
94
|
function Q(e, r, n = {}) {
|
95
95
|
const {
|
package/dist/index215.js
CHANGED
@@ -1,6 +1,88 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
import { defineComponent as h, createElementBlock as n, openBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createCommentVNode as p, createTextVNode as o, toDisplayString as d, unref as b, Fragment as m, renderList as u } from "vue";
|
2
|
+
import { useLocale as g } from "./index240.js";
|
3
|
+
const k = { class: "bb-cr-container__container" }, y = {
|
4
|
+
key: 0,
|
5
|
+
class: "bb-cr-container__loading-container"
|
6
|
+
}, $ = {
|
7
|
+
key: 1,
|
8
|
+
class: "bb-cr-container__no-data-container"
|
9
|
+
}, C = /* @__PURE__ */ h({
|
10
|
+
__name: "OptionsContainer",
|
11
|
+
props: {
|
12
|
+
direction: {},
|
13
|
+
hasErrors: { type: Boolean },
|
14
|
+
hideLabel: { type: Boolean },
|
15
|
+
loadingText: {},
|
16
|
+
loading: { type: Boolean },
|
17
|
+
noDataText: {},
|
18
|
+
options: {}
|
19
|
+
},
|
20
|
+
setup(f) {
|
21
|
+
const { t: i } = g();
|
22
|
+
return (a, T) => (s(), n("span", {
|
23
|
+
ref: "container",
|
24
|
+
class: r(["bb-cr-container", {
|
25
|
+
"bb-cr-container--errors": a.hasErrors,
|
26
|
+
"bb-cr-container--horizontal": a.direction === "horizontal",
|
27
|
+
"bb-cr-container--vertical": a.direction === "vertical"
|
28
|
+
}])
|
29
|
+
}, [
|
30
|
+
l("span", k, [
|
31
|
+
t(a.$slots, "prepend"),
|
32
|
+
!a.options.length && a.loading ? (s(), n("span", y, [
|
33
|
+
t(a.$slots, "loading", {}, () => [
|
34
|
+
o(d(a.loadingText || b(i)("common.loadingText")), 1)
|
35
|
+
])
|
36
|
+
])) : a.options.length ? p("", !0) : (s(), n("span", $, [
|
37
|
+
t(a.$slots, "no-data", {}, () => [
|
38
|
+
o(d(a.noDataText || b(i)("common.noDataText")), 1)
|
39
|
+
])
|
40
|
+
])),
|
41
|
+
(s(!0), n(m, null, u(a.options, (e, c) => (s(), n(m, {
|
42
|
+
key: (e == null ? void 0 : e.valueHash) || c
|
43
|
+
}, [
|
44
|
+
t(a.$slots, "option:prepend", {
|
45
|
+
id: e.valueHash,
|
46
|
+
checked: !!e.selected,
|
47
|
+
disabled: !!e.disabled,
|
48
|
+
item: e.item,
|
49
|
+
text: e.text
|
50
|
+
}),
|
51
|
+
l("label", {
|
52
|
+
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
53
|
+
}, [
|
54
|
+
t(a.$slots, "input", {
|
55
|
+
index: c,
|
56
|
+
option: e
|
57
|
+
}),
|
58
|
+
l("span", {
|
59
|
+
class: r({
|
60
|
+
"bb-cr-container-option__text": !0,
|
61
|
+
"sr-only": a.hideLabel
|
62
|
+
})
|
63
|
+
}, [
|
64
|
+
t(a.$slots, "label", {
|
65
|
+
checked: !!e.selected,
|
66
|
+
item: e.item,
|
67
|
+
text: e.text
|
68
|
+
}, () => [
|
69
|
+
o(d(e.text), 1)
|
70
|
+
])
|
71
|
+
], 2)
|
72
|
+
], 2),
|
73
|
+
t(a.$slots, "option:append", {
|
74
|
+
id: e.valueHash,
|
75
|
+
checked: !!e.selected,
|
76
|
+
disabled: !!e.disabled,
|
77
|
+
item: e.item,
|
78
|
+
text: e.text
|
79
|
+
})
|
80
|
+
], 64))), 128)),
|
81
|
+
t(a.$slots, "append")
|
82
|
+
])
|
83
|
+
], 2));
|
84
|
+
}
|
85
|
+
});
|
4
86
|
export {
|
5
|
-
|
87
|
+
C as default
|
6
88
|
};
|
package/dist/index217.js
CHANGED
@@ -1,13 +1,31 @@
|
|
1
|
-
import { ref as a,
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
(
|
6
|
-
|
1
|
+
import { ref as a, computed as s, unref as v } from "vue";
|
2
|
+
import { useDebounceFn as f } from "./index212.js";
|
3
|
+
const p = (u) => {
|
4
|
+
const e = a(0), r = s(() => v(u.items)), t = a([]), n = async (...l) => {
|
5
|
+
if (Array.isArray(r.value))
|
6
|
+
t.value = r.value;
|
7
|
+
else if (typeof r.value == "function") {
|
8
|
+
const i = ++e.value;
|
9
|
+
try {
|
10
|
+
const o = await r.value(...l);
|
11
|
+
if (i < e.value) {
|
12
|
+
e.value--;
|
13
|
+
return;
|
14
|
+
} else
|
15
|
+
t.value = o;
|
16
|
+
} catch (o) {
|
17
|
+
console.error(o);
|
18
|
+
}
|
19
|
+
e.value--;
|
7
20
|
}
|
8
|
-
);
|
9
|
-
return
|
21
|
+
}, c = f(n, u.debounce || 0);
|
22
|
+
return {
|
23
|
+
getter: n,
|
24
|
+
debouncedGetter: c,
|
25
|
+
items: t,
|
26
|
+
loading: s(() => !!e.value)
|
27
|
+
};
|
10
28
|
};
|
11
29
|
export {
|
12
|
-
|
30
|
+
p as useItemsGetter
|
13
31
|
};
|
package/dist/index218.js
CHANGED
@@ -1,22 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
-
}
|
18
|
-
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
1
|
+
import { computed as i, unref as m } from "vue";
|
2
|
+
import { hash as s } from "./index221.js";
|
3
|
+
const p = ({ items: a, key: r }) => {
|
4
|
+
const n = i(() => {
|
5
|
+
const t = {}, c = new Array().concat(m(a));
|
6
|
+
for (let e = 0; e < c.length; e++) {
|
7
|
+
const o = c[e], u = r ? String(o[r]) : s(o);
|
8
|
+
t[u] = o;
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
});
|
12
|
+
return {
|
13
|
+
data: n,
|
14
|
+
get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
|
15
|
+
};
|
19
16
|
};
|
20
17
|
export {
|
21
|
-
|
18
|
+
p as useIndexById
|
22
19
|
};
|