bitboss-ui 1.0.23 → 1.0.25
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/index.d.ts +0 -1
- package/dist/index.js +73 -75
- package/dist/index.js.map +1 -1
- package/dist/index100.js +1 -129
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +240 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -240
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +437 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -437
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +103 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -103
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +99 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -99
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +98 -1
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +1 -98
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +29 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -29
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +151 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -151
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +122 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -122
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +46 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +32 -39
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +39 -32
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +3 -3
- package/dist/index120.js +42 -39
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +39 -43
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -43
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +21 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +2 -21
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +224 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -224
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +18 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +10 -16
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +24 -12
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +5 -24
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +9 -5
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -8
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +207 -5
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +3 -208
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -2
- package/dist/index149.js +2 -2
- package/dist/index150.js +2 -2
- package/dist/index151.js +2 -2
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +2 -2
- package/dist/index158.js +2 -2
- package/dist/index159.js +2 -2
- package/dist/index16.js +9 -9
- package/dist/index160.js +2 -2
- package/dist/index161.js +1 -5
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +5 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +2 -2
- package/dist/index168.js +2 -2
- package/dist/index169.js +2 -2
- package/dist/index170.js +2 -2
- package/dist/index171.js +1 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -3
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +5 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +3 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +2 -2
- package/dist/index176.js +2 -2
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -2
- package/dist/index179.js +2 -2
- package/dist/index18.js +22 -22
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +2 -2
- package/dist/index184.js +2 -2
- package/dist/index185.js +1 -5
- package/dist/index185.js.map +1 -1
- package/dist/index188.js +2 -2
- package/dist/index189.js +5 -1
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -2
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +2 -2
- package/dist/index195.js +2 -2
- package/dist/index196.js +2 -2
- package/dist/index197.js +2 -2
- package/dist/index198.js +235 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +121 -3
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +3 -3
- package/dist/index200.js +134 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +2 -235
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +35 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +174 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -16
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +366 -14
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +372 -18
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +13 -17
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +13 -26
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +20 -8
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +29 -2
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +8 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +79 -3
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -121
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +4 -134
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -35
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -174
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +2 -6
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +3 -368
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -373
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +1 -1
- package/dist/index225.js +9 -78
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +17 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +78 -8
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -23
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +23 -6
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -17
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -78
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -2
- package/dist/index235.js +2 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -2
- package/dist/index237.js +106 -2
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +435 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index242.js +2 -224
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +2 -258
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +200 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +117 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +4 -106
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +67 -433
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -117
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +224 -200
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +257 -68
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -5
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +89 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -89
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +4 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +61 -4
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -4
- package/dist/index256.js.map +1 -1
- package/dist/index26.js +2 -2
- package/dist/index30.js +4 -4
- package/dist/index32.js +20 -20
- package/dist/index32.js.map +1 -1
- package/dist/index34.js +7 -7
- package/dist/index36.js +2 -2
- package/dist/index4.js +1 -1
- package/dist/index40.js +7 -7
- package/dist/index46.js +2 -2
- package/dist/index48.js +4 -4
- package/dist/index5.js +2 -2
- package/dist/index50.js +1 -1
- package/dist/index52.js +2 -2
- package/dist/index56.js +5 -5
- package/dist/index6.js +1 -1
- package/dist/index62.js +2 -2
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index68.js +6 -6
- package/dist/index7.js +4 -4
- package/dist/index72.js +4 -4
- package/dist/index74.js +41 -19
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +95 -37
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -104
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +229 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +1 -229
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +165 -1
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +1 -165
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +213 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -213
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +35 -1
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -35
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +92 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -92
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +129 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -129
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +92 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +6 -6
- package/dist/index90.js +1 -92
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +30 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -30
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +166 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -166
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +112 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -112
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +98 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -98
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +129 -1
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/BbHover/BbHover.vue.d.ts +0 -21
- package/dist/index257.js +0 -64
- package/dist/index257.js.map +0 -1
- package/dist/index258.js +0 -5
- package/dist/index258.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export { default as BbDialog } from './components/BbDialog/BbDialog.vue';
|
|
|
41
41
|
export { default as BbDropdown } from './components/BbDropdown/BbDropdown.vue';
|
|
42
42
|
export { default as BbDropdownButton } from './components/BbDropdownButton/BbDropdownButton.vue';
|
|
43
43
|
export { default as BbDropzone } from './components/BbDropzone/BbDropzone.vue';
|
|
44
|
-
export { default as BbHover } from './components/BbHover/BbHover.vue';
|
|
45
44
|
export { default as BbIcon } from './components/BbIcon/BbIcon.vue';
|
|
46
45
|
export { default as BbIntersection } from './components/BbIntersection/BbIntersection.vue';
|
|
47
46
|
export { default as BbNumberInput } from './components/BbNumberInput/BbNumberInput.vue';
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,9 @@ import { default as vo } from "./index22.js";
|
|
|
22
22
|
import "./index23.js";
|
|
23
23
|
import { default as Ao } from "./index24.js";
|
|
24
24
|
import "./index25.js";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as Oo } from "./index26.js";
|
|
26
26
|
import "./index27.js";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as yo } from "./index28.js";
|
|
28
28
|
import "./index29.js";
|
|
29
29
|
import { default as Ko } from "./index30.js";
|
|
30
30
|
import "./index31.js";
|
|
@@ -72,53 +72,52 @@ import { default as kt } from "./index72.js";
|
|
|
72
72
|
import "./index73.js";
|
|
73
73
|
import { default as Gt } from "./index74.js";
|
|
74
74
|
import { default as vt } from "./index75.js";
|
|
75
|
-
import
|
|
76
|
-
import "./index77.js";
|
|
77
|
-
import
|
|
78
|
-
import "./index79.js";
|
|
79
|
-
import
|
|
80
|
-
import "./index81.js";
|
|
81
|
-
import
|
|
82
|
-
import "./index83.js";
|
|
83
|
-
import
|
|
84
|
-
import "./index85.js";
|
|
85
|
-
import
|
|
86
|
-
import "./index87.js";
|
|
87
|
-
import
|
|
88
|
-
import "./index89.js";
|
|
89
|
-
import
|
|
90
|
-
import "./index91.js";
|
|
91
|
-
import
|
|
92
|
-
import "./index93.js";
|
|
93
|
-
import
|
|
94
|
-
import "./index95.js";
|
|
95
|
-
import
|
|
96
|
-
import "./index97.js";
|
|
97
|
-
import
|
|
98
|
-
import "./index99.js";
|
|
99
|
-
import
|
|
100
|
-
import "./index101.js";
|
|
101
|
-
import
|
|
102
|
-
import "./index103.js";
|
|
103
|
-
import
|
|
104
|
-
import "./index105.js";
|
|
105
|
-
import
|
|
106
|
-
import "./index107.js";
|
|
107
|
-
import
|
|
108
|
-
import "./index109.js";
|
|
109
|
-
import
|
|
110
|
-
import "./index111.js";
|
|
111
|
-
import
|
|
112
|
-
import "./index113.js";
|
|
113
|
-
import
|
|
114
|
-
import "./index115.js";
|
|
115
|
-
import
|
|
116
|
-
import "./index117.js";
|
|
75
|
+
import "./index76.js";
|
|
76
|
+
import { default as At } from "./index77.js";
|
|
77
|
+
import "./index78.js";
|
|
78
|
+
import { default as Ot } from "./index79.js";
|
|
79
|
+
import "./index80.js";
|
|
80
|
+
import { default as yt } from "./index81.js";
|
|
81
|
+
import "./index82.js";
|
|
82
|
+
import { default as Kt } from "./index83.js";
|
|
83
|
+
import "./index84.js";
|
|
84
|
+
import { default as qt } from "./index85.js";
|
|
85
|
+
import "./index86.js";
|
|
86
|
+
import { default as Ft } from "./index87.js";
|
|
87
|
+
import "./index88.js";
|
|
88
|
+
import { default as Lt } from "./index89.js";
|
|
89
|
+
import "./index90.js";
|
|
90
|
+
import { default as Qt } from "./index91.js";
|
|
91
|
+
import "./index92.js";
|
|
92
|
+
import { default as Vt } from "./index93.js";
|
|
93
|
+
import "./index94.js";
|
|
94
|
+
import { default as Yt } from "./index95.js";
|
|
95
|
+
import "./index96.js";
|
|
96
|
+
import { default as _t } from "./index97.js";
|
|
97
|
+
import "./index98.js";
|
|
98
|
+
import { default as or } from "./index99.js";
|
|
99
|
+
import "./index100.js";
|
|
100
|
+
import { default as rr } from "./index101.js";
|
|
101
|
+
import "./index102.js";
|
|
102
|
+
import { default as ar } from "./index103.js";
|
|
103
|
+
import "./index104.js";
|
|
104
|
+
import { default as fr } from "./index105.js";
|
|
105
|
+
import "./index106.js";
|
|
106
|
+
import { default as sr } from "./index107.js";
|
|
107
|
+
import "./index108.js";
|
|
108
|
+
import { default as ur } from "./index109.js";
|
|
109
|
+
import "./index110.js";
|
|
110
|
+
import { default as xr } from "./index111.js";
|
|
111
|
+
import "./index112.js";
|
|
112
|
+
import { default as Br } from "./index113.js";
|
|
113
|
+
import "./index114.js";
|
|
114
|
+
import { default as nr } from "./index115.js";
|
|
115
|
+
import "./index116.js";
|
|
116
|
+
import { default as hr } from "./index117.js";
|
|
117
117
|
import { default as Ir } from "./index118.js";
|
|
118
118
|
import { default as gr } from "./index119.js";
|
|
119
119
|
import { default as wr } from "./index120.js";
|
|
120
120
|
import { default as kr } from "./index121.js";
|
|
121
|
-
import { default as Gr } from "./index122.js";
|
|
122
121
|
export {
|
|
123
122
|
ho as BaseButton,
|
|
124
123
|
Io as BaseCheckbox,
|
|
@@ -128,8 +127,8 @@ export {
|
|
|
128
127
|
Go as BaseDialog,
|
|
129
128
|
vo as BaseInputContainer,
|
|
130
129
|
Ao as BaseNumberInput,
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
Oo as BaseRadio,
|
|
131
|
+
yo as BaseRadioGroup,
|
|
133
132
|
Ko as BaseRating,
|
|
134
133
|
qo as BaseSelect,
|
|
135
134
|
Fo as BaseSlider,
|
|
@@ -146,40 +145,39 @@ export {
|
|
|
146
145
|
ut as BbButton,
|
|
147
146
|
xt as BbCheckbox,
|
|
148
147
|
Bt as BbCheckboxGroup,
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
hr as BbChip,
|
|
149
|
+
Ir as BbCollapsible,
|
|
151
150
|
nt as BbConfirm,
|
|
152
151
|
ht as BbDatePickerInput,
|
|
153
152
|
It as BbDialog,
|
|
154
153
|
gt as BbDropdown,
|
|
155
154
|
wt as BbDropdownButton,
|
|
156
155
|
kt as BbDropzone,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
vt as
|
|
160
|
-
At as
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
Kt as
|
|
164
|
-
qt as
|
|
165
|
-
Ft as
|
|
166
|
-
Lt as
|
|
167
|
-
Qt as
|
|
168
|
-
Vt as
|
|
169
|
-
Yt as
|
|
170
|
-
|
|
171
|
-
kr as
|
|
172
|
-
|
|
173
|
-
or as
|
|
174
|
-
rr as
|
|
175
|
-
ar as
|
|
176
|
-
fr as
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Br as
|
|
181
|
-
nr as
|
|
182
|
-
hr as BbTree,
|
|
156
|
+
gr as BbIcon,
|
|
157
|
+
Gt as BbIntersection,
|
|
158
|
+
vt as BbNumberInput,
|
|
159
|
+
At as BbOffCanvas,
|
|
160
|
+
Ot as BbPagination,
|
|
161
|
+
yt as BbPopover,
|
|
162
|
+
Kt as BbProgress,
|
|
163
|
+
qt as BbRadio,
|
|
164
|
+
Ft as BbRadioGroup,
|
|
165
|
+
Lt as BbRating,
|
|
166
|
+
Qt as BbRatio,
|
|
167
|
+
Vt as BbSelect,
|
|
168
|
+
Yt as BbSlider,
|
|
169
|
+
wr as BbSmoothHeight,
|
|
170
|
+
kr as BbSpinner,
|
|
171
|
+
_t as BbSwitch,
|
|
172
|
+
or as BbSwitchGroup,
|
|
173
|
+
rr as BbTab,
|
|
174
|
+
ar as BbTable,
|
|
175
|
+
fr as BbTag,
|
|
176
|
+
ur as BbTextInput,
|
|
177
|
+
sr as BbTextarea,
|
|
178
|
+
xr as BbToast,
|
|
179
|
+
Br as BbTooltip,
|
|
180
|
+
nr as BbTree,
|
|
183
181
|
ro as useBroadcastChannelInstance,
|
|
184
182
|
ao as useConfirm,
|
|
185
183
|
fo as useCountdown,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index100.js
CHANGED
|
@@ -1,130 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import V from "./index22.js";
|
|
3
|
-
import "./index23.js";
|
|
4
|
-
import D from "./index38.js";
|
|
5
|
-
import "./index39.js";
|
|
6
|
-
const E = /* @__PURE__ */ f({
|
|
7
|
-
__name: "BbSwitchGroup",
|
|
8
|
-
props: {
|
|
9
|
-
autofocus: {},
|
|
10
|
-
color: {},
|
|
11
|
-
dependencies: {},
|
|
12
|
-
depsDebounceTime: {},
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
enforceCoherence: { type: Boolean },
|
|
15
|
-
errors: {},
|
|
16
|
-
hasErrors: { type: Boolean },
|
|
17
|
-
hideLabel: { type: Boolean },
|
|
18
|
-
hideLegend: { type: Boolean },
|
|
19
|
-
hint: {},
|
|
20
|
-
id: {},
|
|
21
|
-
inputDirection: {},
|
|
22
|
-
items: { type: [Array, Function] },
|
|
23
|
-
itemText: {},
|
|
24
|
-
itemValue: {},
|
|
25
|
-
legend: {},
|
|
26
|
-
loadingText: {},
|
|
27
|
-
matchStrategy: {},
|
|
28
|
-
modelValue: {},
|
|
29
|
-
modelValueDebounceTime: {},
|
|
30
|
-
name: {},
|
|
31
|
-
noDataText: {},
|
|
32
|
-
persistentHint: { type: Boolean },
|
|
33
|
-
readonly: {},
|
|
34
|
-
reverse: { type: Boolean }
|
|
35
|
-
},
|
|
36
|
-
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
37
|
-
setup(d, { emit: p }) {
|
|
38
|
-
const u = d, n = p, l = y(!1), m = v(() => u.persistentHint || l.value), c = {
|
|
39
|
-
onBlur: (e) => n("blur", e),
|
|
40
|
-
onChange: (e) => n("change", e),
|
|
41
|
-
onClick: (e) => n("click", e),
|
|
42
|
-
onFocus: (e) => {
|
|
43
|
-
l.value = !0, n("focus", e);
|
|
44
|
-
},
|
|
45
|
-
onInactive: () => {
|
|
46
|
-
l.value = !1, n("inactive");
|
|
47
|
-
},
|
|
48
|
-
onInput: (e) => n("input", e),
|
|
49
|
-
onKeydown: (e) => n("keydown", e),
|
|
50
|
-
onMousedown: (e) => n("mousedown", e),
|
|
51
|
-
onMouseup: (e) => n("mouseup", e),
|
|
52
|
-
"onUpdate:modelValue": (e) => n("update:modelValue", e)
|
|
53
|
-
};
|
|
54
|
-
return (e, k) => (w(), B(V, {
|
|
55
|
-
direction: "vertical",
|
|
56
|
-
errors: e.errors,
|
|
57
|
-
"has-errors": e.hasErrors,
|
|
58
|
-
"hide-label": e.hideLegend,
|
|
59
|
-
hint: e.hint,
|
|
60
|
-
id: e.id,
|
|
61
|
-
"label-tag": "legend",
|
|
62
|
-
label: e.legend,
|
|
63
|
-
name: e.name,
|
|
64
|
-
reverse: e.reverse,
|
|
65
|
-
"show-hint": m.value,
|
|
66
|
-
tag: "fieldset",
|
|
67
|
-
class: "bb-switch-group"
|
|
68
|
-
}, {
|
|
69
|
-
label: a((s) => [
|
|
70
|
-
i(e.$slots, "legend", t(r(s)))
|
|
71
|
-
]),
|
|
72
|
-
input: a(({ id: s, name: h, hasErrors: b, ariaDescribedby: g }) => [
|
|
73
|
-
$(D, T({
|
|
74
|
-
"aria-describedby": g,
|
|
75
|
-
autofocus: e.autofocus,
|
|
76
|
-
color: e.color,
|
|
77
|
-
dependencies: e.dependencies,
|
|
78
|
-
"deps-debounce-time": e.depsDebounceTime,
|
|
79
|
-
direction: e.inputDirection,
|
|
80
|
-
disabled: e.disabled,
|
|
81
|
-
"enforce-coherence": e.enforceCoherence,
|
|
82
|
-
"has-errors": b,
|
|
83
|
-
"hide-label": e.hideLabel,
|
|
84
|
-
id: s,
|
|
85
|
-
"item-text": e.itemText,
|
|
86
|
-
"item-value": e.itemValue,
|
|
87
|
-
items: e.items,
|
|
88
|
-
"loading-text": e.loadingText,
|
|
89
|
-
"match-strategy": e.matchStrategy,
|
|
90
|
-
"model-value-debounce-time": e.modelValueDebounceTime,
|
|
91
|
-
"model-value": e.modelValue,
|
|
92
|
-
name: h,
|
|
93
|
-
"no-data-text": e.noDataText,
|
|
94
|
-
readonly: e.readonly
|
|
95
|
-
}, c), {
|
|
96
|
-
prepend: a((o) => [
|
|
97
|
-
i(e.$slots, "prepend", t(r(o)))
|
|
98
|
-
]),
|
|
99
|
-
loading: a((o) => [
|
|
100
|
-
i(e.$slots, "loading", t(r(o)))
|
|
101
|
-
]),
|
|
102
|
-
"no-data": a((o) => [
|
|
103
|
-
i(e.$slots, "no-data", t(r(o)))
|
|
104
|
-
]),
|
|
105
|
-
"option:prepend": a((o) => [
|
|
106
|
-
i(e.$slots, "option:prepend", t(r(o)))
|
|
107
|
-
]),
|
|
108
|
-
icon: a((o) => [
|
|
109
|
-
i(e.$slots, "icon", t(r(o)))
|
|
110
|
-
]),
|
|
111
|
-
label: a((o) => [
|
|
112
|
-
i(e.$slots, "label", t(r(o)))
|
|
113
|
-
]),
|
|
114
|
-
"option:append": a((o) => [
|
|
115
|
-
i(e.$slots, "option:append", t(r(o)))
|
|
116
|
-
]),
|
|
117
|
-
append: a((o) => [
|
|
118
|
-
i(e.$slots, "append", t(r(o)))
|
|
119
|
-
]),
|
|
120
|
-
_: 2
|
|
121
|
-
}, 1040, ["aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "id", "item-text", "item-value", "items", "loading-text", "match-strategy", "model-value-debounce-time", "model-value", "name", "no-data-text", "readonly"])
|
|
122
|
-
]),
|
|
123
|
-
_: 3
|
|
124
|
-
}, 8, ["errors", "has-errors", "hide-label", "hint", "id", "label", "name", "reverse", "show-hint"]));
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
export {
|
|
128
|
-
E as default
|
|
129
|
-
};
|
|
1
|
+
|
|
130
2
|
//# sourceMappingURL=index100.js.map
|
package/dist/index100.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index100.js","sources":[
|
|
1
|
+
{"version":3,"file":"index100.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index101.js
CHANGED
|
@@ -1,2 +1,241 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as M, ref as _, computed as k, getCurrentInstance as Q, watch as w, nextTick as W, openBlock as u, createElementBlock as d, unref as X, normalizeClass as $, createElementVNode as c, renderSlot as y, normalizeProps as U, guardReactiveProps as z, Fragment as q, renderList as D, createVNode as Y, withCtx as Z, toDisplayString as ee, createCommentVNode as ae } from "vue";
|
|
2
|
+
import { useId as le } from "./index8.js";
|
|
3
|
+
import { useRoute as te } from "./index131.js";
|
|
4
|
+
import { useRouter as se } from "./index132.js";
|
|
5
|
+
import { wait as re } from "./index124.js";
|
|
6
|
+
import { useScroll as ie } from "./index133.js";
|
|
7
|
+
import oe from "./index10.js";
|
|
8
|
+
import "./index11.js";
|
|
9
|
+
const ne = ["id"], ue = { class: "bb-tab__label-boundary" }, de = { class: "bb-tab__label" }, ce = { class: "bb-tab__panes-container" }, be = ["id", "aria-labelledby"], _e = /* @__PURE__ */ M({
|
|
10
|
+
__name: "BbTab",
|
|
11
|
+
props: {
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
eager: { type: Boolean },
|
|
14
|
+
id: {},
|
|
15
|
+
direction: { default: "horizontal" },
|
|
16
|
+
items: {},
|
|
17
|
+
modelValue: {},
|
|
18
|
+
navigation: { type: Boolean },
|
|
19
|
+
querykey: { default: "tab" }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(K, { expose: H, emit: J }) {
|
|
23
|
+
var L, C, R, E, B, P, F;
|
|
24
|
+
const l = K, O = J, o = te(), h = se(), p = _(), S = l.id ?? le().id.value, f = `bb-tab_${S}`, T = _(), { isScrolling: j, arrivedState: I } = ie(T), V = k(() => ({
|
|
25
|
+
isScrolling: j.value,
|
|
26
|
+
left: I.left,
|
|
27
|
+
right: I.right
|
|
28
|
+
})), x = !!((C = (L = Q()) == null ? void 0 : L.proxy) != null && C.$inertia), t = _(null), r = k(
|
|
29
|
+
() => l.items.findIndex((e) => e.key === t.value)
|
|
30
|
+
), v = k(() => r.value === 0), m = k(() => r.value === l.items.length - 1);
|
|
31
|
+
if (l.items.forEach((e) => {
|
|
32
|
+
if (!e.key)
|
|
33
|
+
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
|
34
|
+
}), l.navigation && ((E = (R = o.value) == null ? void 0 : R.query) != null && E[l.querykey]))
|
|
35
|
+
t.value = (P = (B = o.value) == null ? void 0 : B.query) == null ? void 0 : P[l.querykey];
|
|
36
|
+
else if (l.navigation && x && ((F = globalThis == null ? void 0 : globalThis.location) != null && F.href) && new URL(globalThis.location.href).searchParams.get(l.querykey))
|
|
37
|
+
t.value = new URL(globalThis.location.href).searchParams.get(
|
|
38
|
+
l.querykey
|
|
39
|
+
);
|
|
40
|
+
else if (l.modelValue)
|
|
41
|
+
t.value = l.modelValue;
|
|
42
|
+
else if (l.items[0]) {
|
|
43
|
+
const e = l.items.find((a) => !a.disabled);
|
|
44
|
+
if (!e)
|
|
45
|
+
throw new Error(
|
|
46
|
+
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
|
47
|
+
);
|
|
48
|
+
const s = e.key;
|
|
49
|
+
t.value = s;
|
|
50
|
+
}
|
|
51
|
+
const b = async (e, s = !1) => {
|
|
52
|
+
var a, n, N, A;
|
|
53
|
+
if (l.navigation && o.value && ((n = (a = o.value) == null ? void 0 : a.query) == null ? void 0 : n[l.querykey]) !== e)
|
|
54
|
+
h == null || h.push({
|
|
55
|
+
...o,
|
|
56
|
+
query: { ...(N = o.value) == null ? void 0 : N.query, [l.querykey]: e },
|
|
57
|
+
replace: s
|
|
58
|
+
});
|
|
59
|
+
else if (l.navigation && x && ((A = globalThis == null ? void 0 : globalThis.location) != null && A.href) && new URL(globalThis.location.href).searchParams.get(l.querykey) !== e) {
|
|
60
|
+
const g = new URL(globalThis.location.href);
|
|
61
|
+
g.searchParams.set(l.querykey, e), re(0).then(() => {
|
|
62
|
+
s ? history.replaceState({}, "", g.toString()) : history.pushState({}, "", g.toString());
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
l.modelValue !== e && O("update:modelValue", e), t.value = e;
|
|
66
|
+
};
|
|
67
|
+
t.value && b(t.value, !0);
|
|
68
|
+
const i = (e) => {
|
|
69
|
+
var s = null;
|
|
70
|
+
switch (e) {
|
|
71
|
+
case "first":
|
|
72
|
+
s = 0;
|
|
73
|
+
break;
|
|
74
|
+
case "previous":
|
|
75
|
+
s = (r.value + l.items.length - 1) % l.items.length;
|
|
76
|
+
break;
|
|
77
|
+
case "next":
|
|
78
|
+
s = (r.value + 1) % l.items.length;
|
|
79
|
+
break;
|
|
80
|
+
case "last":
|
|
81
|
+
s = l.items.length - 1;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
if (s === null)
|
|
85
|
+
throw new Error("Could not navigate to next tab");
|
|
86
|
+
if (l.items[s].disabled)
|
|
87
|
+
return;
|
|
88
|
+
const a = l.items[s].key, n = document.querySelector(
|
|
89
|
+
`#${f}_tab_${a}`
|
|
90
|
+
);
|
|
91
|
+
n == null || n.focus(), b(a);
|
|
92
|
+
}, G = (e) => {
|
|
93
|
+
if (!l.disabled)
|
|
94
|
+
if (e.key === "ArrowRight")
|
|
95
|
+
i("next");
|
|
96
|
+
else if (e.key === "ArrowLeft")
|
|
97
|
+
i("previous");
|
|
98
|
+
else if (e.key === "Home")
|
|
99
|
+
e.preventDefault(), i("first");
|
|
100
|
+
else if (e.key === "End")
|
|
101
|
+
e.preventDefault(), i("last");
|
|
102
|
+
else
|
|
103
|
+
return;
|
|
104
|
+
};
|
|
105
|
+
return w(
|
|
106
|
+
() => l.modelValue,
|
|
107
|
+
(e) => {
|
|
108
|
+
e && b(e);
|
|
109
|
+
}
|
|
110
|
+
), w(
|
|
111
|
+
() => {
|
|
112
|
+
var e, s;
|
|
113
|
+
return (s = (e = o.value) == null ? void 0 : e.query) == null ? void 0 : s[l.querykey];
|
|
114
|
+
},
|
|
115
|
+
(e) => {
|
|
116
|
+
e && typeof e == "string" && b(e);
|
|
117
|
+
}
|
|
118
|
+
), w(
|
|
119
|
+
t,
|
|
120
|
+
async () => {
|
|
121
|
+
if (p.value) {
|
|
122
|
+
const e = p.value.querySelector(
|
|
123
|
+
"[role=tablist] .bb-tab__btn--active"
|
|
124
|
+
);
|
|
125
|
+
e && (await W(), e.scrollIntoView({
|
|
126
|
+
behavior: "smooth",
|
|
127
|
+
block: "nearest",
|
|
128
|
+
inline: "nearest"
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{ flush: "post" }
|
|
133
|
+
), H({
|
|
134
|
+
isFirst: v,
|
|
135
|
+
isLast: m,
|
|
136
|
+
current: t,
|
|
137
|
+
currentIndex: r,
|
|
138
|
+
goTo: i
|
|
139
|
+
}), (e, s) => (u(), d("div", {
|
|
140
|
+
id: X(S),
|
|
141
|
+
ref_key: "tabs",
|
|
142
|
+
ref: p,
|
|
143
|
+
class: $(["bb-tab", {
|
|
144
|
+
[`bb-tab--${e.direction}`]: !0,
|
|
145
|
+
"bb-tab--disabled": !0
|
|
146
|
+
}])
|
|
147
|
+
}, [
|
|
148
|
+
c("div", ue, [
|
|
149
|
+
c("span", null, [
|
|
150
|
+
y(e.$slots, "header:prepend", U(z(V.value)))
|
|
151
|
+
]),
|
|
152
|
+
c("ul", {
|
|
153
|
+
class: "bb-tab__label-container",
|
|
154
|
+
role: "tablist",
|
|
155
|
+
ref_key: "tablist",
|
|
156
|
+
ref: T
|
|
157
|
+
}, [
|
|
158
|
+
(u(!0), d(q, null, D(e.items, (a) => (u(), d("li", {
|
|
159
|
+
key: a.key,
|
|
160
|
+
role: "presentation"
|
|
161
|
+
}, [
|
|
162
|
+
Y(oe, {
|
|
163
|
+
id: `${f}_tab_${a.key}`,
|
|
164
|
+
"aria-selected": t.value === a.key,
|
|
165
|
+
class: $(["bb-tab__btn", { "bb-tab__btn--active": t.value === a.key }]),
|
|
166
|
+
disabled: a.disabled || e.disabled,
|
|
167
|
+
role: "tab",
|
|
168
|
+
tabindex: t.value === a.key ? 0 : -1,
|
|
169
|
+
onClick: (n) => b(a.key),
|
|
170
|
+
onKeydown: G
|
|
171
|
+
}, {
|
|
172
|
+
default: Z(() => [
|
|
173
|
+
y(e.$slots, `label-${a.key}`, {
|
|
174
|
+
current: t.value,
|
|
175
|
+
currentIndex: r.value,
|
|
176
|
+
disabled: !!(a.disabled || e.disabled),
|
|
177
|
+
goTo: i,
|
|
178
|
+
isFirst: v.value,
|
|
179
|
+
isLast: m.value,
|
|
180
|
+
selected: t.value === a.key,
|
|
181
|
+
text: a.label,
|
|
182
|
+
value: a.key
|
|
183
|
+
}, () => [
|
|
184
|
+
y(e.$slots, "label", {
|
|
185
|
+
current: t.value,
|
|
186
|
+
currentIndex: r.value,
|
|
187
|
+
disabled: !!(a.disabled || e.disabled),
|
|
188
|
+
goTo: i,
|
|
189
|
+
isFirst: v.value,
|
|
190
|
+
isLast: m.value,
|
|
191
|
+
selected: t.value === a.key,
|
|
192
|
+
text: a.label,
|
|
193
|
+
value: a.key
|
|
194
|
+
}, () => [
|
|
195
|
+
c("span", de, ee(a.label), 1)
|
|
196
|
+
])
|
|
197
|
+
])
|
|
198
|
+
]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
|
201
|
+
]))), 128))
|
|
202
|
+
], 512),
|
|
203
|
+
c("span", null, [
|
|
204
|
+
y(e.$slots, "header:append", U(z(V.value)))
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
c("div", ce, [
|
|
208
|
+
(u(!0), d(q, null, D(e.items, (a) => (u(), d(q, {
|
|
209
|
+
key: a.key
|
|
210
|
+
}, [
|
|
211
|
+
t.value === a.key || e.eager || a.eager ? (u(), d("section", {
|
|
212
|
+
key: 0,
|
|
213
|
+
id: `${f}_tabpanel_${a.key}`,
|
|
214
|
+
"aria-labelledby": `${f}_tab_${a.key}`,
|
|
215
|
+
class: $(["bb-tab__pane", {
|
|
216
|
+
"bb-tab__pane--shown": t.value === a.key
|
|
217
|
+
}]),
|
|
218
|
+
role: "tabpanel",
|
|
219
|
+
tabindex: "0"
|
|
220
|
+
}, [
|
|
221
|
+
y(e.$slots, a.key, {
|
|
222
|
+
current: t.value,
|
|
223
|
+
currentIndex: r.value,
|
|
224
|
+
disabled: !!(a.disabled || e.disabled),
|
|
225
|
+
goTo: i,
|
|
226
|
+
isFirst: v.value,
|
|
227
|
+
isLast: m.value,
|
|
228
|
+
selected: t.value === a.key,
|
|
229
|
+
text: a.label,
|
|
230
|
+
value: a.key
|
|
231
|
+
})
|
|
232
|
+
], 10, be)) : ae("", !0)
|
|
233
|
+
], 64))), 128))
|
|
234
|
+
])
|
|
235
|
+
], 10, ne));
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
export {
|
|
239
|
+
_e as default
|
|
240
|
+
};
|
|
2
241
|
//# sourceMappingURL=index101.js.map
|
package/dist/index101.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index101.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index101.js","sources":["../src/components/BbTab/BbTab.vue"],"sourcesContent":["<template>\n\t<div\n\t\t:id=\"id\"\n\t\tref=\"tabs\"\n\t\tclass=\"bb-tab\"\n\t\t:class=\"{\n\t\t\t[`bb-tab--${direction}`]: true,\n\t\t\t'bb-tab--disabled': true,\n\t\t}\"\n\t>\n\t\t<div class=\"bb-tab__label-boundary\">\n\t\t\t<span><slot name=\"header:prepend\" v-bind=\"scrollStatus\"></slot></span>\n\t\t\t<ul class=\"bb-tab__label-container\" role=\"tablist\" ref=\"tablist\">\n\t\t\t\t<li v-for=\"tab in items\" :key=\"tab.key\" role=\"presentation\">\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\t:id=\"`${instanceid}_tab_${tab.key}`\"\n\t\t\t\t\t\t:aria-selected=\"selectedTab === tab.key\"\n\t\t\t\t\t\tclass=\"bb-tab__btn\"\n\t\t\t\t\t\t:class=\"{ 'bb-tab__btn--active': selectedTab === tab.key }\"\n\t\t\t\t\t\t:disabled=\"tab.disabled || disabled\"\n\t\t\t\t\t\t:role=\"'tab'\"\n\t\t\t\t\t\t:tabindex=\"selectedTab === tab.key ? 0 : -1\"\n\t\t\t\t\t\t@click=\"onTabSelected(tab.key)\"\n\t\t\t\t\t\t@keydown=\"onKeydown\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t:current=\"selectedTab\"\n\t\t\t\t\t\t\t:current-index=\"currentTabIndex\"\n\t\t\t\t\t\t\t:disabled=\"!!(tab.disabled || disabled)\"\n\t\t\t\t\t\t\t:go-to=\"goTo\"\n\t\t\t\t\t\t\t:is-first=\"isFirst\"\n\t\t\t\t\t\t\t:is-last=\"isLast\"\n\t\t\t\t\t\t\t:name=\"`label-${tab.key}`\"\n\t\t\t\t\t\t\t:selected=\"selectedTab === tab.key\"\n\t\t\t\t\t\t\t:text=\"tab.label\"\n\t\t\t\t\t\t\t:value=\"tab.key\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:current=\"selectedTab\"\n\t\t\t\t\t\t\t\t:current-index=\"currentTabIndex\"\n\t\t\t\t\t\t\t\t:disabled=\"!!(tab.disabled || disabled)\"\n\t\t\t\t\t\t\t\t:go-to=\"goTo\"\n\t\t\t\t\t\t\t\t:is-first=\"isFirst\"\n\t\t\t\t\t\t\t\t:is-last=\"isLast\"\n\t\t\t\t\t\t\t\tname=\"label\"\n\t\t\t\t\t\t\t\t:selected=\"selectedTab === tab.key\"\n\t\t\t\t\t\t\t\t:text=\"tab.label\"\n\t\t\t\t\t\t\t\t:value=\"tab.key\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"bb-tab__label\">{{ tab.label }}</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</slot>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<span><slot name=\"header:append\" v-bind=\"scrollStatus\"></slot></span>\n\t\t</div>\n\t\t<div class=\"bb-tab__panes-container\">\n\t\t\t<template v-for=\"tab in items\" :key=\"tab.key\">\n\t\t\t\t<section\n\t\t\t\t\tv-if=\"selectedTab === tab.key || eager || tab.eager\"\n\t\t\t\t\t:id=\"`${instanceid}_tabpanel_${tab.key}`\"\n\t\t\t\t\t:aria-labelledby=\"`${instanceid}_tab_${tab.key}`\"\n\t\t\t\t\tclass=\"bb-tab__pane\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'bb-tab__pane--shown': selectedTab === tab.key,\n\t\t\t\t\t}\"\n\t\t\t\t\trole=\"tabpanel\"\n\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t>\n\t\t\t\t\t<slot\n\t\t\t\t\t\t:current=\"selectedTab\"\n\t\t\t\t\t\t:current-index=\"currentTabIndex\"\n\t\t\t\t\t\t:disabled=\"!!(tab.disabled || disabled)\"\n\t\t\t\t\t\t:go-to=\"goTo\"\n\t\t\t\t\t\t:is-first=\"isFirst\"\n\t\t\t\t\t\t:is-last=\"isLast\"\n\t\t\t\t\t\t:name=\"tab.key\"\n\t\t\t\t\t\t:selected=\"selectedTab === tab.key\"\n\t\t\t\t\t\t:text=\"tab.label\"\n\t\t\t\t\t\t:value=\"tab.key\"\n\t\t\t\t\t></slot>\n\t\t\t\t</section>\n\t\t\t</template>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch, getCurrentInstance, computed, nextTick } from 'vue';\nimport { useId } from '@/composables/useId';\nimport { useRoute } from '@/composables/useRoute';\nimport { useRouter } from '@/composables/useRouter';\nimport { wait } from '@/utilities/functions/wait';\nimport { useScroll } from '@vueuse/core';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbTabItem = Pick<CommonProps, 'disabled'> & {\n\t/**\n\t * Used to render a tab even when not visible.\n\t * It's useful if you want the content of a tab in the DOM\n\t * immediately rendered\n\t * even when not visible for SEO purposes.\n\t */\n\teager?: boolean;\n\t/**\n\t * String that identifies the tab.\n\t */\n\tkey: string;\n\t/**\n\t * Label to use as the tab text.\n\t */\n\tlabel?: string;\n};\n\nexport type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {\n\t/**\n\t * Direction of the tabs component\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\t/**\n\t * Array of items that define the tabs in the component.\n\t */\n\titems: BbTabItem[];\n\t/**\n\t * The current tab. Used by v-model.\n\t */\n\tmodelValue?: null | BbTabItem['key'];\n\t/**\n\t * Synchronizes the current tab with the url.\n\t */\n\tnavigation?: boolean;\n\t/**\n\t * Defines the query key to reference for maintaining navigation\n\t */\n\tquerykey?: string;\n};\n\nconst props = withDefaults(defineProps<BbTabProps>(), {\n\tdirection: 'horizontal',\n\tquerykey: 'tab',\n});\n\nexport type BbTabEvents = {\n\t(e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;\n};\nconst emit = defineEmits<BbTabEvents>();\n\ntype BbStepSlots = {\n\t'header:prepend'?: (props: {\n\t\tisScrolling: boolean;\n\t\tleft: boolean;\n\t\tright: boolean;\n\t}) => any;\n\t'header:append'?: (props: {\n\t\tisScrolling: boolean;\n\t\tleft: boolean;\n\t\tright: boolean;\n\t}) => any;\n\tlabel?: (props: {\n\t\tcurrent: string | null;\n\t\tcurrentIndex: number;\n\t\tdisabled: boolean;\n\t\tisFirst: boolean;\n\t\tisLast: boolean;\n\t\tselected: boolean;\n\t\ttext: BbTabItem['label'];\n\t\tvalue: string;\n\t\tgoTo: typeof goTo;\n\t}) => any;\n} & {\n\t[key: string]: (props: {\n\t\tcurrent: string | null;\n\t\tcurrentIndex: number;\n\t\tdisabled: boolean;\n\t\tisFirst: boolean;\n\t\tisLast: boolean;\n\t\tselected: boolean;\n\t\ttext: BbTabItem['label'];\n\t\tvalue: string;\n\t\tgoTo: typeof goTo;\n\t}) => any;\n};\n\ndefineSlots<BbStepSlots>();\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst tabs = ref();\n\nconst id = props.id ?? useId().id.value;\nconst instanceid = `bb-tab_${id}`;\n\nconst tablist = ref();\nconst { isScrolling, arrivedState } = useScroll(tablist);\nconst scrollStatus = computed(() => ({\n\tisScrolling: isScrolling.value,\n\tleft: arrivedState.left,\n\tright: arrivedState.right,\n}));\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\nconst selectedTab = ref<BbTabItem['key'] | null>(null);\n\nconst currentTabIndex = computed(() =>\n\tprops.items.findIndex((el) => el.key === selectedTab.value)\n);\nconst isFirst = computed(() => currentTabIndex.value === 0);\nconst isLast = computed(() => currentTabIndex.value === props.items.length - 1);\n\nprops.items.forEach((item) => {\n\tif (!item.key) {\n\t\tconsole.error(`A tab item has no key`, item);\n\t\tthrow new Error('A tab item has no key ' + JSON.stringify(item));\n\t}\n});\n\n/* \nThis section retrieves the current tab that should be selected\n*/\n// Retrieve tab from url on load for vue apps\nif (props.navigation && route.value?.query?.[props.querykey]) {\n\tselectedTab.value = route.value?.query?.[props.querykey] as string;\n\t// Retrieve tab from url on load for inertia app\n} else if (\n\tprops.navigation &&\n\tisInertia &&\n\tglobalThis?.location?.href &&\n\tnew URL(globalThis.location.href).searchParams.get(props.querykey)\n) {\n\tselectedTab.value = new URL(globalThis.location.href).searchParams.get(\n\t\tprops.querykey\n\t) as string;\n\t// Else whatever tab is passed first\n} else if (props.modelValue) {\n\tselectedTab.value = props.modelValue;\n\t// Else whatever tab is passed first\n} else if (props.items[0]) {\n\tconst firstSelectableTab = props.items.find((item) => !item.disabled);\n\tif (!firstSelectableTab) {\n\t\tthrow new Error(\n\t\t\t'No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected.'\n\t\t);\n\t}\n\tconst key = firstSelectableTab.key;\n\tselectedTab.value = key;\n}\n/* \nOnce the current tab is found update external variables\n*/\n\nconst onTabSelected = async (tab: BbTabItem['key'], replace = false) => {\n\t/* For Vue or Nuxt context */\n\tif (\n\t\tprops.navigation &&\n\t\troute.value &&\n\t\troute.value?.query?.[props.querykey] !== tab\n\t) {\n\t\trouter?.push({\n\t\t\t...route,\n\t\t\tquery: { ...route.value?.query, [props.querykey]: tab },\n\t\t\treplace,\n\t\t});\n\t\t/* Inertia context */\n\t} else if (\n\t\tprops.navigation &&\n\t\tisInertia &&\n\t\tglobalThis?.location?.href &&\n\t\tnew URL(globalThis.location.href).searchParams.get(props.querykey) !== tab\n\t) {\n\t\tconst url = new URL(globalThis.location.href);\n\t\turl.searchParams.set(props.querykey, tab);\n\t\twait(0).then(() => {\n\t\t\tif (replace) {\n\t\t\t\thistory.replaceState({}, '', url.toString());\n\t\t\t} else {\n\t\t\t\thistory.pushState({}, '', url.toString());\n\t\t\t}\n\t\t});\n\t}\n\tif (props.modelValue !== tab) {\n\t\temit('update:modelValue', tab);\n\t}\n\tselectedTab.value = tab;\n};\n\nif (selectedTab.value) {\n\tonTabSelected(selectedTab.value, true);\n}\n\nconst goTo = (target: 'first' | 'previous' | 'next' | 'last') => {\n\tvar nextTabIndex: number | null = null;\n\tswitch (target) {\n\t\tcase 'first':\n\t\t\tnextTabIndex = 0;\n\t\t\tbreak;\n\t\tcase 'previous':\n\t\t\tnextTabIndex =\n\t\t\t\t(currentTabIndex.value + props.items.length - 1) % props.items.length;\n\t\t\tbreak;\n\t\tcase 'next':\n\t\t\tnextTabIndex = (currentTabIndex.value + 1) % props.items.length;\n\t\t\tbreak;\n\t\tcase 'last':\n\t\t\tnextTabIndex = props.items.length - 1;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\tif (nextTabIndex === null) {\n\t\tthrow new Error('Could not navigate to next tab');\n\t}\n\tif (props.items[nextTabIndex].disabled) return;\n\tconst targetKey = props.items[nextTabIndex].key;\n\tconst button: HTMLButtonElement | null = document.querySelector(\n\t\t`#${instanceid}_tab_${targetKey}`\n\t);\n\tbutton?.focus();\n\tonTabSelected(targetKey);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n\tif (props.disabled) return;\n\tif (event.key === 'ArrowRight') {\n\t\tgoTo('next');\n\t} else if (event.key === 'ArrowLeft') {\n\t\tgoTo('previous');\n\t} else if (event.key === 'Home') {\n\t\tevent.preventDefault();\n\t\tgoTo('first');\n\t} else if (event.key === 'End') {\n\t\tevent.preventDefault();\n\t\tgoTo('last');\n\t} else {\n\t\treturn;\n\t}\n};\n\nwatch(\n\t() => props.modelValue,\n\t(value) => {\n\t\tif (value) {\n\t\t\tonTabSelected(value);\n\t\t}\n\t}\n);\n\nwatch(\n\t() => route.value?.query?.[props.querykey],\n\t(value) => {\n\t\tif (value && typeof value === 'string') {\n\t\t\tonTabSelected(value);\n\t\t}\n\t}\n);\n\nwatch(\n\tselectedTab,\n\tasync () => {\n\t\tif (tabs.value) {\n\t\t\tconst element = tabs.value.querySelector(\n\t\t\t\t`[role=tablist] .bb-tab__btn--active`\n\t\t\t);\n\t\t\tif (element) {\n\t\t\t\tawait nextTick();\n\t\t\t\telement.scrollIntoView({\n\t\t\t\t\tbehavior: 'smooth',\n\t\t\t\t\tblock: 'nearest',\n\t\t\t\t\tinline: 'nearest',\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n\t{ flush: 'post' }\n);\n\ndefineExpose({\n\tisFirst,\n\tisLast,\n\tcurrent: selectedTab,\n\tcurrentIndex: currentTabIndex,\n\tgoTo,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTab';\n</style>\n"],"names":["props","__props","emit","__emit","route","useRoute","router","useRouter","tabs","ref","id","useId","instanceid","tablist","isScrolling","arrivedState","useScroll","scrollStatus","computed","isInertia","_b","_a","getCurrentInstance","selectedTab","currentTabIndex","el","isFirst","isLast","item","_d","_c","_f","_e","_g","firstSelectableTab","key","onTabSelected","tab","replace","url","wait","goTo","target","nextTabIndex","targetKey","button","onKeydown","event","watch","value","element","nextTick","__expose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA2IA,UAAMA,IAAQC,G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