bitboss-ui 2.0.5 → 2.0.8
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/BaseDialog/BaseDialog.vue.d.ts +1 -3
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/index.js +89 -87
- package/dist/index.js.map +1 -1
- package/dist/index10.js +7 -39
- package/dist/index10.js.map +1 -1
- package/dist/index101.js +60 -87
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +113 -258
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +254 -388
- package/dist/index105.js.map +1 -1
- package/dist/index107.js +387 -98
- package/dist/index107.js.map +1 -1
- package/dist/index109.js +52 -48
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +74 -188
- package/dist/index11.js.map +1 -1
- package/dist/index111.js +35 -34
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +105 -23
- package/dist/index113.js.map +1 -1
- package/dist/index115.js +23 -156
- package/dist/index115.js.map +1 -1
- package/dist/index117.js +153 -112
- package/dist/index117.js.map +1 -1
- package/dist/index119.js +115 -39
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +38 -80
- package/dist/index12.js.map +1 -1
- package/dist/index121.js +36 -40
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +34 -37
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +30 -21
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +47 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +35 -21
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +21 -312
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -24
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +312 -2
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +196 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +24 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -9
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -6
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +9 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +6 -3
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index137.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index14.js +73 -121
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +2 -2
- package/dist/index16.js +119 -118
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +6 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +1 -1
- package/dist/index163.js +2 -2
- package/dist/index165.js +1 -1
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index168.js +1 -1
- package/dist/index169.js +2 -2
- package/dist/index170.js +6 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +3 -2
- package/dist/index171.js.map +1 -1
- package/dist/index173.js +2 -3
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +1 -1
- package/dist/index179.js +1 -1
- package/dist/index18.js +120 -208
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +2 -2
- package/dist/index184.js +6 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index189.js +1 -1
- package/dist/index190.js +1 -1
- package/dist/index191.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index193.js +1 -1
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +3 -81
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +81 -5
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +193 -275
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +2 -16
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -16
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +124 -17
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +5 -19
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +119 -23
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +19 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +16 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +16 -8
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -249
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -0
- package/dist/index209.js.map +1 -0
- package/dist/index210.js +35 -52
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +173 -36
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +39 -36
- package/dist/index213.js.map +1 -1
- package/dist/index215.js +13 -4
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -2
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -40
- package/dist/index218.js.map +1 -1
- package/dist/{index214.js → index219.js} +1 -1
- package/dist/{index214.js.map → index219.js.map} +1 -1
- package/dist/index22.js +287 -247
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +4 -13
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -158
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -84
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +19 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +26 -34
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +3 -6
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +249 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +49 -123
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +44 -123
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +49 -174
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +158 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +83 -368
- package/dist/index233.js.map +1 -1
- package/dist/index235.js +2 -18
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +17 -105
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +109 -0
- package/dist/index237.js.map +1 -0
- package/dist/{index238.js → index239.js} +3 -3
- package/dist/{index238.js.map → index239.js.map} +1 -1
- package/dist/index24.js +249 -120
- package/dist/index24.js.map +1 -1
- package/dist/index241.js +2 -10
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +9 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +3 -224
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -281
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +23 -6
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +6 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +16 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +224 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +281 -2
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +6 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +2 -2
- package/dist/index256.js +122 -24
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +429 -20
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +6 -0
- package/dist/index258.js.map +1 -0
- package/dist/index26.js +119 -142
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +6 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +21 -8
- package/dist/index261.js.map +1 -1
- package/dist/index263.js +9 -3
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +439 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +127 -6
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +199 -15
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +4 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +89 -3
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +2 -12
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +2 -9
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +2 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +2 -17
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +2 -431
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +2 -89
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +28 -2
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +17 -64
- package/dist/index276.js.map +1 -1
- package/dist/index278.js +3 -200
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +12 -2
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +138 -83
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +7 -124
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +7 -20
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +20 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +2 -436
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +68 -126
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -3
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +1 -1
- package/dist/index287.js +3 -211
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +214 -0
- package/dist/index288.js.map +1 -0
- package/dist/index290.js +4 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +4 -19
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +58 -6
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +35 -4
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -4
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +6 -58
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +18 -34
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +2 -11
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +47 -2
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +10 -46
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +85 -115
- package/dist/index30.js.map +1 -1
- package/dist/index32.js +111 -112
- package/dist/index32.js.map +1 -1
- package/dist/index34.js +114 -365
- package/dist/index34.js.map +1 -1
- package/dist/index36.js +361 -283
- package/dist/index36.js.map +1 -1
- package/dist/index38.js +288 -106
- package/dist/index38.js.map +1 -1
- package/dist/index40.js +114 -121
- package/dist/index40.js.map +1 -1
- package/dist/index42.js +113 -200
- package/dist/index42.js.map +1 -1
- package/dist/index44.js +180 -90
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +110 -78
- package/dist/index46.js.map +1 -1
- package/dist/index48.js +89 -54
- package/dist/index48.js.map +1 -1
- package/dist/index5.js +14 -78
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +54 -84
- package/dist/index50.js.map +1 -1
- package/dist/index52.js +86 -60
- package/dist/index52.js.map +1 -1
- package/dist/index54.js +59 -40
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +42 -55
- package/dist/index56.js.map +1 -1
- package/dist/index58.js +53 -103
- package/dist/index58.js.map +1 -1
- package/dist/index6.js +36 -58
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +103 -89
- package/dist/index60.js.map +1 -1
- package/dist/index62.js +61 -88
- package/dist/index62.js.map +1 -1
- package/dist/index64.js +119 -77
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +77 -91
- package/dist/index66.js.map +1 -1
- package/dist/index68.js +88 -49
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +78 -20
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +51 -304
- package/dist/index70.js.map +1 -1
- package/dist/index72.js +299 -115
- package/dist/index72.js.map +1 -1
- package/dist/index74.js +120 -214
- package/dist/index74.js.map +1 -1
- package/dist/index76.js +213 -36
- package/dist/index76.js.map +1 -1
- package/dist/index78.js +47 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +119 -230
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +61 -7
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +227 -154
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +154 -207
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +215 -26
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +27 -88
- package/dist/index87.js.map +1 -1
- package/dist/index89.js +53 -88
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +17 -76
- package/dist/index9.js.map +1 -1
- package/dist/index91.js +75 -44
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +89 -15
- package/dist/index93.js.map +1 -1
- package/dist/index95.js +15 -166
- package/dist/index95.js.map +1 -1
- package/dist/index97.js +120 -59
- package/dist/index97.js.map +1 -1
- package/dist/index99.js +66 -52
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index120.js +0 -47
- package/dist/index120.js.map +0 -1
- package/dist/index164.js +0 -6
- package/dist/index164.js.map +0 -1
- package/dist/index172.js +0 -6
- package/dist/index172.js.map +0 -1
- package/dist/index188.js +0 -6
- package/dist/index188.js.map +0 -1
- package/dist/index234.js +0 -6
- package/dist/index234.js.map +0 -1
- package/dist/index240.js +0 -5
- package/dist/index240.js.map +0 -1
- package/dist/index259.js +0 -10
- package/dist/index259.js.map +0 -1
- package/dist/index262.js +0 -26
- package/dist/index262.js.map +0 -1
- package/dist/index277.js +0 -8
- package/dist/index277.js.map +0 -1
- package/dist/index3.js +0 -17
- package/dist/index3.js.map +0 -1
- package/dist/index4.js +0 -43
- package/dist/index4.js.map +0 -1
- package/dist/index77.js +0 -130
- package/dist/index77.js.map +0 -1
package/dist/index111.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as w, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as r, renderSlot as a, normalizeProps as d, guardReactiveProps as p, createVNode as $, mergeProps as k } from "vue";
|
|
2
|
+
import V from "./index26.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
4
|
+
import P from "./index46.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
__name: "
|
|
6
|
+
const M = /* @__PURE__ */ w({
|
|
7
|
+
__name: "BbTextarea",
|
|
8
8
|
props: {
|
|
9
9
|
"append:icon": {},
|
|
10
10
|
autocomplete: {},
|
|
11
11
|
autofocus: {},
|
|
12
|
+
autoGrow: { type: Boolean },
|
|
12
13
|
direction: {},
|
|
13
14
|
disabled: { type: Boolean },
|
|
14
15
|
errors: {},
|
|
@@ -27,11 +28,11 @@ const I = /* @__PURE__ */ h({
|
|
|
27
28
|
readonly: {},
|
|
28
29
|
required: { type: Boolean },
|
|
29
30
|
reverse: { type: Boolean },
|
|
30
|
-
|
|
31
|
+
rows: {}
|
|
31
32
|
},
|
|
32
33
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
34
|
+
setup(t, { emit: u }) {
|
|
35
|
+
const n = t, o = u, l = y(!1), m = v(() => n.persistentHint || l.value), h = {
|
|
35
36
|
onBlur: (e) => {
|
|
36
37
|
l.value = !1, o("blur", e);
|
|
37
38
|
},
|
|
@@ -46,9 +47,9 @@ const I = /* @__PURE__ */ h({
|
|
|
46
47
|
onMouseup: (e) => o("mouseup", e),
|
|
47
48
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
48
49
|
};
|
|
49
|
-
return (e,
|
|
50
|
+
return (e, q) => (B(), g(V, {
|
|
50
51
|
id: e.id,
|
|
51
|
-
class: "bb-
|
|
52
|
+
class: "bb-textarea",
|
|
52
53
|
direction: e.direction,
|
|
53
54
|
errors: e.errors,
|
|
54
55
|
"has-errors": e.hasErrors,
|
|
@@ -59,55 +60,55 @@ const I = /* @__PURE__ */ h({
|
|
|
59
60
|
"model-value": e.modelValue,
|
|
60
61
|
name: e.name,
|
|
61
62
|
reverse: e.reverse,
|
|
62
|
-
"show-hint":
|
|
63
|
+
"show-hint": m.value
|
|
63
64
|
}, {
|
|
64
65
|
label: r((s) => [
|
|
65
|
-
|
|
66
|
+
a(e.$slots, "label", d(p(s)))
|
|
66
67
|
]),
|
|
67
|
-
input: r(({ id: s, name:
|
|
68
|
-
|
|
68
|
+
input: r(({ id: s, name: b, hasErrors: c, ariaDescribedby: f }) => [
|
|
69
|
+
$(P, k({
|
|
69
70
|
id: s,
|
|
70
|
-
"append:icon":
|
|
71
|
-
"aria-describedby":
|
|
72
|
-
|
|
71
|
+
"append:icon": n["append:icon"],
|
|
72
|
+
"aria-describedby": f,
|
|
73
|
+
"auto-grow": e.autoGrow,
|
|
73
74
|
autofocus: e.autofocus,
|
|
74
75
|
disabled: e.disabled,
|
|
75
|
-
"has-errors":
|
|
76
|
+
"has-errors": c,
|
|
76
77
|
loading: e.loading,
|
|
77
78
|
"model-value": e.modelValue,
|
|
78
|
-
name:
|
|
79
|
+
name: b,
|
|
79
80
|
placeholder: e.placeholder,
|
|
80
|
-
"prepend:icon":
|
|
81
|
+
"prepend:icon": n["prepend:icon"],
|
|
81
82
|
readonly: e.readonly,
|
|
82
83
|
required: e.required,
|
|
83
|
-
|
|
84
|
-
},
|
|
84
|
+
rows: e.rows
|
|
85
|
+
}, h), {
|
|
85
86
|
"append-outer": r(() => [
|
|
86
|
-
|
|
87
|
+
a(e.$slots, "append-outer")
|
|
87
88
|
]),
|
|
88
89
|
append: r(() => [
|
|
89
|
-
|
|
90
|
-
]),
|
|
91
|
-
prefix: r(() => [
|
|
92
|
-
n(e.$slots, "prefix")
|
|
93
|
-
]),
|
|
94
|
-
suffix: r(() => [
|
|
95
|
-
n(e.$slots, "suffix")
|
|
90
|
+
a(e.$slots, "append")
|
|
96
91
|
]),
|
|
97
92
|
prepend: r(() => [
|
|
98
|
-
|
|
93
|
+
a(e.$slots, "prepend")
|
|
99
94
|
]),
|
|
100
95
|
"prepend-outer": r(() => [
|
|
101
|
-
|
|
96
|
+
a(e.$slots, "prepend-outer")
|
|
97
|
+
]),
|
|
98
|
+
prefix: r((i) => [
|
|
99
|
+
a(e.$slots, "prefix", d(p(i)))
|
|
100
|
+
]),
|
|
101
|
+
suffix: r((i) => [
|
|
102
|
+
a(e.$slots, "suffix", d(p(i)))
|
|
102
103
|
]),
|
|
103
104
|
_: 2
|
|
104
|
-
}, 1040, ["id", "append:icon", "aria-describedby", "
|
|
105
|
+
}, 1040, ["id", "append:icon", "aria-describedby", "auto-grow", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "rows"])
|
|
105
106
|
]),
|
|
106
107
|
_: 3
|
|
107
108
|
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
M as default
|
|
112
113
|
};
|
|
113
114
|
//# sourceMappingURL=index111.js.map
|
package/dist/index111.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index111.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index111.js","sources":["../src/components/BbTextarea/BbTextarea.vue"],"sourcesContent":["<template>\n\t<BaseInputContainer\n\t\t:id=\"id\"\n\t\tclass=\"bb-textarea\"\n\t\t:direction=\"direction\"\n\t\t:errors=\"errors\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:hint=\"hint\"\n\t\t:label=\"label\"\n\t\t:label-position=\"labelPosition\"\n\t\t:model-value=\"modelValue\"\n\t\t:name=\"name\"\n\t\t:reverse=\"reverse\"\n\t\t:show-hint=\"showHint\"\n\t>\n\t\t<template #label=\"data\"><slot name=\"label\" v-bind=\"data\"></slot></template>\n\t\t<template #input=\"{ id, name, hasErrors, ariaDescribedby }\">\n\t\t\t<BaseTextarea\n\t\t\t\t:id=\"id\"\n\t\t\t\t:append:icon=\"props['append:icon']\"\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t:auto-grow=\"autoGrow\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:loading=\"loading\"\n\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:prepend:icon=\"props['prepend:icon']\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:required=\"required\"\n\t\t\t\t:rows=\"rows\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t>\n\t\t\t\t<template #append-outer><slot name=\"append-outer\" /></template>\n\t\t\t\t<template #append><slot name=\"append\" /></template>\n\t\t\t\t<template #prepend><slot name=\"prepend\" /></template>\n\t\t\t\t<template #prepend-outer><slot name=\"prepend-outer\" /></template>\n\t\t\t\t<template #prefix=\"data\"><slot name=\"prefix\" v-bind=\"data\" /></template>\n\t\t\t\t<template #suffix=\"data\"><slot name=\"suffix\" v-bind=\"data\" /></template>\n\t\t\t</BaseTextarea>\n\t\t</template>\n\t</BaseInputContainer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed } from 'vue';\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTextarea from '../BaseTextarea/BaseTextarea.vue';\nimport type {\n\tBaseTextareaEvents,\n\tBaseTextareaSlots,\n} from '../BaseTextarea/BaseTextarea.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTextareaProps = {\n\t/**\n\t * Name of the icon to be added at the end of the input.\n\t */\n\t// eslint-disable-next-line vue/prop-name-casing\n\t'append:icon'?: string;\n\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Expands the textarea to match its content\n\t */\n\tautoGrow?: boolean;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * Text box to be displayed near the input, usually to indicate instructions.\n\t */\n\thint?: string;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Sets the component in a loading state, usually triggering some visual styles.\n\t */\n\tloading?: boolean;\n\n\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: string | null;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Keeps the hint displayed.\n\t */\n\tpersistentHint?: boolean;\n\n\t/**\n\t * String displayed when there's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Name of the icon to be added at the start of the input.\n\t */\n\t// eslint-disable-next-line vue/prop-name-casing\n\t'prepend:icon'?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Sets the input as required.\n\t */\n\trequired?: boolean;\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\trows?: string | number;\n};\n\nconst props = defineProps<BbTextareaProps>();\n\nexport type BbTextareaEvents = BaseTextareaEvents;\nconst emit = defineEmits<BbTextareaEvents>();\n\nexport type BbTextareaSlots = BaseTextareaSlots & {\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BbTextareaSlots>();\n\nconst active = ref(false);\nconst showHint = computed(() => props.persistentHint || active.value);\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => {\n\t\tactive.value = false;\n\t\temit('blur', event);\n\t},\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => {\n\t\tactive.value = true;\n\t\temit('focus', event);\n\t},\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t'onUpdate:modelValue': (value: string | null) =>\n\t\temit('update:modelValue', value),\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTextarea';\n</style>\n"],"names":["props","__props","emit","__emit","active","ref","showHint","computed","eventListeners","event","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiLA,UAAMA,IAAQC,GAGRC,IAAOC,GAQPC,IAASC,EAAI,EAAK,GAClBC,IAAWC,EAAS,MAAMP,EAAM,kBAAkBI,EAAO,KAAK,GAK9DI,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsB;AAC9B,QAAAL,EAAO,QAAQ,IACfF,EAAK,QAAQO,CAAK;AAAA,MACnB;AAAA,MACA,UAAU,CAACA,MAAiBP,EAAK,UAAUO,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBP,EAAK,SAASO,CAAK;AAAA,MACnD,SAAS,CAACA,MAAsB;AAC/B,QAAAL,EAAO,QAAQ,IACfF,EAAK,SAASO,CAAK;AAAA,MACpB;AAAA,MACA,SAAS,CAACA,MAAiBP,EAAK,SAASO,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBP,EAAK,WAAWO,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBP,EAAK,aAAaO,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBP,EAAK,WAAWO,CAAK;AAAA,MACvD,uBAAuB,CAACC,MACvBR,EAAK,qBAAqBQ,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index113.js
CHANGED
|
@@ -1,31 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent as h, ref as b, computed as f, openBlock as y, createBlock as v, withCtx as r, renderSlot as n, normalizeProps as B, guardReactiveProps as w, createVNode as g, mergeProps as $ } from "vue";
|
|
2
|
+
import k from "./index26.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import V from "./index48.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const I = /* @__PURE__ */ h({
|
|
7
|
+
__name: "BbTextInput",
|
|
6
8
|
props: {
|
|
7
|
-
|
|
9
|
+
"append:icon": {},
|
|
10
|
+
autocomplete: {},
|
|
11
|
+
autofocus: {},
|
|
12
|
+
direction: {},
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
errors: {},
|
|
15
|
+
hasErrors: { type: Boolean },
|
|
16
|
+
hideLabel: { type: Boolean },
|
|
17
|
+
hint: {},
|
|
18
|
+
id: {},
|
|
19
|
+
label: {},
|
|
20
|
+
labelPosition: {},
|
|
21
|
+
loading: { type: Boolean },
|
|
22
|
+
modelValue: {},
|
|
23
|
+
name: {},
|
|
24
|
+
persistentHint: { type: Boolean },
|
|
25
|
+
placeholder: {},
|
|
26
|
+
"prepend:icon": {},
|
|
27
|
+
readonly: {},
|
|
28
|
+
required: { type: Boolean },
|
|
29
|
+
reverse: { type: Boolean },
|
|
30
|
+
type: {}
|
|
8
31
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
32
|
+
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
33
|
+
setup(i, { emit: p }) {
|
|
34
|
+
const a = i, o = p, l = b(!1), d = f(() => a.persistentHint || l.value), t = {
|
|
35
|
+
onBlur: (e) => {
|
|
36
|
+
l.value = !1, o("blur", e);
|
|
37
|
+
},
|
|
38
|
+
onChange: (e) => o("change", e),
|
|
39
|
+
onClick: (e) => o("click", e),
|
|
40
|
+
onFocus: (e) => {
|
|
41
|
+
l.value = !0, o("focus", e);
|
|
42
|
+
},
|
|
43
|
+
onInput: (e) => o("input", e),
|
|
44
|
+
onKeydown: (e) => o("keydown", e),
|
|
45
|
+
onMousedown: (e) => o("mousedown", e),
|
|
46
|
+
onMouseup: (e) => o("mouseup", e),
|
|
47
|
+
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
48
|
+
};
|
|
49
|
+
return (e, P) => (y(), v(k, {
|
|
50
|
+
id: e.id,
|
|
51
|
+
class: "bb-text-input",
|
|
52
|
+
direction: e.direction,
|
|
53
|
+
errors: e.errors,
|
|
54
|
+
"has-errors": e.hasErrors,
|
|
55
|
+
"hide-label": e.hideLabel,
|
|
56
|
+
hint: e.hint,
|
|
57
|
+
label: e.label,
|
|
58
|
+
"label-position": e.labelPosition,
|
|
59
|
+
"model-value": e.modelValue,
|
|
60
|
+
name: e.name,
|
|
61
|
+
reverse: e.reverse,
|
|
62
|
+
"show-hint": d.value
|
|
63
|
+
}, {
|
|
64
|
+
label: r((s) => [
|
|
65
|
+
n(e.$slots, "label", B(w(s)))
|
|
66
|
+
]),
|
|
67
|
+
input: r(({ id: s, name: u, hasErrors: m, ariaDescribedby: c }) => [
|
|
68
|
+
g(V, $({
|
|
69
|
+
id: s,
|
|
70
|
+
"append:icon": a["append:icon"],
|
|
71
|
+
"aria-describedby": c,
|
|
72
|
+
autocomplete: e.autocomplete,
|
|
73
|
+
autofocus: e.autofocus,
|
|
74
|
+
disabled: e.disabled,
|
|
75
|
+
"has-errors": m,
|
|
76
|
+
loading: e.loading,
|
|
77
|
+
"model-value": e.modelValue,
|
|
78
|
+
name: u,
|
|
79
|
+
placeholder: e.placeholder,
|
|
80
|
+
"prepend:icon": a["prepend:icon"],
|
|
81
|
+
readonly: e.readonly,
|
|
82
|
+
required: e.required,
|
|
83
|
+
type: e.type
|
|
84
|
+
}, t), {
|
|
85
|
+
"append-outer": r(() => [
|
|
86
|
+
n(e.$slots, "append-outer")
|
|
21
87
|
]),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
88
|
+
append: r(() => [
|
|
89
|
+
n(e.$slots, "append")
|
|
90
|
+
]),
|
|
91
|
+
prefix: r(() => [
|
|
92
|
+
n(e.$slots, "prefix")
|
|
93
|
+
]),
|
|
94
|
+
suffix: r(() => [
|
|
95
|
+
n(e.$slots, "suffix")
|
|
96
|
+
]),
|
|
97
|
+
prepend: r(() => [
|
|
98
|
+
n(e.$slots, "prepend")
|
|
99
|
+
]),
|
|
100
|
+
"prepend-outer": r(() => [
|
|
101
|
+
n(e.$slots, "prepend-outer")
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
|
26
108
|
}
|
|
27
109
|
});
|
|
28
110
|
export {
|
|
29
|
-
|
|
111
|
+
I as default
|
|
30
112
|
};
|
|
31
113
|
//# sourceMappingURL=index113.js.map
|
package/dist/index113.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index113.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index113.js","sources":["../src/components/BbTextInput/BbTextInput.vue"],"sourcesContent":["<template>\n\t<BaseInputContainer\n\t\t:id=\"id\"\n\t\tclass=\"bb-text-input\"\n\t\t:direction=\"direction\"\n\t\t:errors=\"errors\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:hint=\"hint\"\n\t\t:label=\"label\"\n\t\t:label-position=\"labelPosition\"\n\t\t:model-value=\"modelValue\"\n\t\t:name=\"name\"\n\t\t:reverse=\"reverse\"\n\t\t:show-hint=\"showHint\"\n\t>\n\t\t<template #label=\"data\"><slot name=\"label\" v-bind=\"data\"></slot></template>\n\t\t<template #input=\"{ id, name, hasErrors, ariaDescribedby }\">\n\t\t\t<BaseTextInput\n\t\t\t\t:id=\"id\"\n\t\t\t\t:append:icon=\"props['append:icon']\"\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t:autocomplete=\"autocomplete\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:loading=\"loading\"\n\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:prepend:icon=\"props['prepend:icon']\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:required=\"required\"\n\t\t\t\t:type=\"type\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t>\n\t\t\t\t<template #append-outer><slot name=\"append-outer\" /></template>\n\t\t\t\t<template #append><slot name=\"append\" /></template>\n\t\t\t\t<template #prefix><slot name=\"prefix\" /></template>\n\t\t\t\t<template #suffix><slot name=\"suffix\" /></template>\n\t\t\t\t<template #prepend><slot name=\"prepend\" /></template>\n\t\t\t\t<template #prepend-outer><slot name=\"prepend-outer\" /></template>\n\t\t\t</BaseTextInput>\n\t\t</template>\n\t</BaseInputContainer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed } from 'vue';\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTextInput from '../BaseTextInput/BaseTextInput.vue';\nimport type {\n\tBaseTextInputEvents,\n\tBaseTextInputSlots,\n} from '../BaseTextInput/BaseTextInput.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTextInputProps = {\n\t/**\n\t * Name of the icon to be added at the end of the input.\n\t */\n\t// eslint-disable-next-line vue/prop-name-casing\n\t'append:icon'?: string;\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * Text box to be displayed near the input, usually to indicate instructions.\n\t */\n\thint?: string;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Sets the component in a loading state, usually triggering some visual styles.\n\t */\n\tloading?: boolean;\n\n\t/**\n\t * Used my v-model\n\t */\n\tmodelValue: string | null;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Keeps the hint displayed.\n\t */\n\tpersistentHint?: boolean;\n\n\t/**\n\t * String displayed when there's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Name of the icon to be added at the start of the input.\n\t */\n\t// eslint-disable-next-line vue/prop-name-casing\n\t'prepend:icon'?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Sets the input as required.\n\t */\n\trequired?: boolean;\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * Type of the input. Returns the content type of the object.\n\t */\n\ttype?: HTMLInputElement['type'];\n};\n\nconst props = defineProps<BbTextInputProps>();\n\nexport type BbTextInputEvents = BaseTextInputEvents;\nconst emit = defineEmits<BaseTextInputEvents>();\n\nexport type BbTextInputSlots = BaseTextInputSlots & {\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BbTextInputSlots>();\n\nconst active = ref(false);\nconst showHint = computed(() => props.persistentHint || active.value);\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => {\n\t\tactive.value = false;\n\t\temit('blur', event);\n\t},\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => {\n\t\tactive.value = true;\n\t\temit('focus', event);\n\t},\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t'onUpdate:modelValue': (value: string | null) =>\n\t\temit('update:modelValue', value),\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTextInput';\n</style>\n"],"names":["props","__props","emit","__emit","active","ref","showHint","computed","eventListeners","event","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2KA,UAAMA,IAAQC,GAGRC,IAAOC,GAQPC,IAASC,EAAI,EAAK,GAClBC,IAAWC,EAAS,MAAMP,EAAM,kBAAkBI,EAAO,KAAK,GAK9DI,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsB;AAC9B,QAAAL,EAAO,QAAQ,IACfF,EAAK,QAAQO,CAAK;AAAA,MACnB;AAAA,MACA,UAAU,CAACA,MAAiBP,EAAK,UAAUO,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBP,EAAK,SAASO,CAAK;AAAA,MACnD,SAAS,CAACA,MAAsB;AAC/B,QAAAL,EAAO,QAAQ,IACfF,EAAK,SAASO,CAAK;AAAA,MACpB;AAAA,MACA,SAAS,CAACA,MAAiBP,EAAK,SAASO,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBP,EAAK,WAAWO,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBP,EAAK,aAAaO,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBP,EAAK,WAAWO,CAAK;AAAA,MACvD,uBAAuB,CAACC,MACvBR,EAAK,qBAAqBQ,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index115.js
CHANGED
|
@@ -1,164 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { throttle as w } from "./index224.js";
|
|
8
|
-
import { waitFor as Y } from "./index226.js";
|
|
9
|
-
import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./index233.js";
|
|
10
|
-
const ae = { class: "bb-tooltip__bubble" }, ne = /* @__PURE__ */ c("svg", {
|
|
11
|
-
fill: "none",
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
14
|
-
}, [
|
|
15
|
-
/* @__PURE__ */ c("path", {
|
|
16
|
-
d: "M23 23L1 1M23 1L1 23",
|
|
17
|
-
stroke: "currentColor",
|
|
18
|
-
"stroke-linecap": "round",
|
|
19
|
-
"stroke-width": "2"
|
|
20
|
-
})
|
|
21
|
-
], -1), fe = /* @__PURE__ */ A({
|
|
22
|
-
__name: "BbTooltip",
|
|
1
|
+
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
|
|
2
|
+
import { state as k, useToast as C } from "./index12.js";
|
|
3
|
+
import B from "./index284.js";
|
|
4
|
+
const N = /* @__PURE__ */ s({
|
|
5
|
+
__name: "BbToast",
|
|
23
6
|
props: {
|
|
24
|
-
|
|
25
|
-
block: { type: Boolean },
|
|
26
|
-
disabled: { type: Boolean },
|
|
27
|
-
eager: { type: Boolean },
|
|
28
|
-
id: {},
|
|
29
|
-
padding: { default: 10 },
|
|
30
|
-
placement: { default: "top" },
|
|
31
|
-
showClose: { type: Boolean, default: !0 },
|
|
32
|
-
theme: { default: "default" },
|
|
33
|
-
transitionDuration: { default: 250 }
|
|
7
|
+
placement: { default: "bottom" }
|
|
34
8
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
placement: t.placement,
|
|
41
|
-
whileElementsMounted: Z,
|
|
42
|
-
middleware: [
|
|
43
|
-
ee(),
|
|
44
|
-
te({ padding: t.padding }),
|
|
45
|
-
K({
|
|
46
|
-
element: h,
|
|
47
|
-
padding: t.arrowPadding
|
|
48
|
-
}),
|
|
49
|
-
oe()
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
let y = () => {
|
|
54
|
-
};
|
|
55
|
-
const k = o(!0), a = o(!1), l = o(!1), r = o(!1), s = o(!0), S = $(() => {
|
|
56
|
-
if (f.value.arrow) {
|
|
57
|
-
const { x: e, y: n } = f.value.arrow;
|
|
58
|
-
return {
|
|
59
|
-
style: {
|
|
60
|
-
left: `${e}px`,
|
|
61
|
-
top: `${n}px`
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
}), B = () => {
|
|
66
|
-
l.value || a.value || t.disabled || (V(), document.addEventListener("mouseover", C, { passive: !0 }), document.addEventListener("keydown", E, { passive: !0 }));
|
|
67
|
-
}, H = B, C = w((e) => {
|
|
68
|
-
const n = e.target;
|
|
69
|
-
if (n && n instanceof HTMLElement) {
|
|
70
|
-
let v = !0;
|
|
71
|
-
p.value && p.value.contains(n) && (v = !1), d.value && d.value.contains(n) && (v = !1), v && i();
|
|
72
|
-
}
|
|
73
|
-
}, t.transitionDuration), E = (e) => {
|
|
74
|
-
l.value && e.key === "Escape" && i();
|
|
75
|
-
}, N = () => {
|
|
76
|
-
k.value = !1, i();
|
|
77
|
-
}, m = o(!1), V = w(async () => {
|
|
78
|
-
k.value && (m.value = !0, s.value = !1, r.value = !1, a.value = !0, await T(50), l.value = !0, a.value = !1, y = I(
|
|
79
|
-
() => {
|
|
80
|
-
var e;
|
|
81
|
-
return (e = f.value.hide) == null ? void 0 : e.referenceHidden;
|
|
82
|
-
},
|
|
83
|
-
async (e) => {
|
|
84
|
-
!r.value && !s.value && e && await i();
|
|
85
|
-
}
|
|
86
|
-
));
|
|
87
|
-
}, t.transitionDuration), i = w(async () => {
|
|
88
|
-
await Y(() => !a.value), document.removeEventListener("mouseover", C), document.removeEventListener("keydown", E), l.value = !1, a.value = !1, r.value = !0, await T(t.transitionDuration), r.value = !1, s.value = !0, y();
|
|
89
|
-
}, t.transitionDuration), x = $(() => ({
|
|
90
|
-
class: {
|
|
91
|
-
"bb-tooltip--block": t.block,
|
|
92
|
-
[`bb-tooltip--theme-${t.theme}`]: t.theme
|
|
93
|
-
}
|
|
94
|
-
}));
|
|
95
|
-
return (e, n) => (b(), D("span", L({ class: "bb-tooltip" }, x.value), [
|
|
96
|
-
c("span", {
|
|
97
|
-
ref_key: "wrapper",
|
|
98
|
-
ref: p,
|
|
99
|
-
class: "bb-tooltip__wrapper"
|
|
9
|
+
setup(T) {
|
|
10
|
+
const { dismiss: n } = C();
|
|
11
|
+
return (a, h) => (e(), o(l, { to: "body" }, [
|
|
12
|
+
c("div", {
|
|
13
|
+
class: m(["bb-toast", { [`bb-toast--${a.placement}`]: !0 }])
|
|
100
14
|
}, [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
open: l.value,
|
|
113
|
-
opening: a.value,
|
|
114
|
-
placement: u(g)
|
|
115
|
-
})))
|
|
116
|
-
], 512),
|
|
117
|
-
(b(), O(W, { to: "body" }, [
|
|
118
|
-
m.value || e.eager ? (b(), D("span", {
|
|
119
|
-
key: 0,
|
|
120
|
-
id: _,
|
|
121
|
-
ref_key: "content",
|
|
122
|
-
ref: d,
|
|
123
|
-
class: j(["bb-tooltip__bubble-container", {
|
|
124
|
-
[`bb-tooltip__bubble-container--${u(g)}`]: !0,
|
|
125
|
-
[`bb-tooltip__bubble-container--${e.theme}`]: e.theme,
|
|
126
|
-
"bb-tooltip__bubble-container--hidden": s.value,
|
|
127
|
-
"bb-tooltip__bubble-container--closing": r.value,
|
|
128
|
-
"bb-tooltip__bubble-container--opening": a.value,
|
|
129
|
-
"bb-tooltip__bubble-container--open": l.value
|
|
130
|
-
}]),
|
|
131
|
-
style: q({
|
|
132
|
-
...u(z),
|
|
133
|
-
transitionDuration: `${t.transitionDuration}ms`
|
|
134
|
-
})
|
|
135
|
-
}, [
|
|
136
|
-
c("span", L({
|
|
137
|
-
ref_key: "bubblearrow",
|
|
138
|
-
ref: h,
|
|
139
|
-
class: "bb-tooltip__arrow"
|
|
140
|
-
}, S.value), null, 16),
|
|
141
|
-
c("span", ae, [
|
|
142
|
-
e.showClose ? (b(), O(X, {
|
|
143
|
-
key: 0,
|
|
144
|
-
"aria-hidden": "true",
|
|
145
|
-
class: "bb-tooltip__close",
|
|
146
|
-
tabindex: "-1",
|
|
147
|
-
onClick: N
|
|
148
|
-
}, {
|
|
149
|
-
default: G(() => [
|
|
150
|
-
ne
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
})) : P("", !0),
|
|
154
|
-
M(e.$slots, "default")
|
|
155
|
-
])
|
|
156
|
-
], 6)) : P("", !0)
|
|
157
|
-
]))
|
|
158
|
-
], 16));
|
|
15
|
+
i(p, { name: "toast" }, {
|
|
16
|
+
default: u(() => [
|
|
17
|
+
(e(!0), f(d, null, _(r(k).stack, (t) => (e(), o(B, b({
|
|
18
|
+
key: t.id,
|
|
19
|
+
ref_for: !0
|
|
20
|
+
}, t, { "onClick:close": r(n) }), null, 16, ["onClick:close"]))), 128))
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
})
|
|
24
|
+
], 2)
|
|
25
|
+
]));
|
|
159
26
|
}
|
|
160
27
|
});
|
|
161
28
|
export {
|
|
162
|
-
|
|
29
|
+
N as default
|
|
163
30
|
};
|
|
164
31
|
//# sourceMappingURL=index115.js.map
|
package/dist/index115.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index115.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index115.js","sources":["../src/components/BbToast/BbToast.vue"],"sourcesContent":["<template>\n\t<teleport to=\"body\">\n\t\t<div class=\"bb-toast\" :class=\"{ [`bb-toast--${placement}`]: true }\">\n\t\t\t<TransitionGroup name=\"toast\">\n\t\t\t\t<BbToastMessage\n\t\t\t\t\tv-for=\"message in state.stack\"\n\t\t\t\t\t:key=\"message.id\"\n\t\t\t\t\tv-bind=\"message\"\n\t\t\t\t\t@click:close=\"dismiss\"\n\t\t\t\t/>\n\t\t\t</TransitionGroup>\n\t\t</div>\n\t</teleport>\n</template>\n\n<script setup lang=\"ts\">\nimport { state, useToast } from '../../composables/useToast';\nconst { dismiss } = useToast();\n\nimport BbToastMessage from './BbToastMessage.vue';\nexport type BbToastProps = {\n\t/**\n\t * Placement of the messages on the screen.\n\t */\n\tplacement?:\n\t\t| 'bottom'\n\t\t| 'bottom-start'\n\t\t| 'bottom-end'\n\t\t| 'top'\n\t\t| 'top-start'\n\t\t| 'top-end';\n};\n\nwithDefaults(defineProps<BbToastProps>(), {\n\tplacement: 'bottom',\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbToast';\n</style>\n"],"names":["dismiss","useToast"],"mappings":";;;;;;;;;AAiBM,UAAA,EAAE,SAAAA,MAAYC;;;;;;;;;;;;;;;;;;"}
|