bitboss-ui 2.0.93 → 2.0.94

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.
Files changed (248) hide show
  1. package/dist/components/BbRows/BbRows.vue.d.ts +105 -0
  2. package/dist/components/BbTable/BbTable.vue.d.ts +2 -2
  3. package/dist/components/BbTable/types.d.ts +10 -8
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +35 -33
  6. package/dist/index100.js +97 -172
  7. package/dist/index101.js +179 -0
  8. package/dist/{index108.js → index109.js} +5 -5
  9. package/dist/index11.js +1 -1
  10. package/dist/{index110.js → index111.js} +35 -35
  11. package/dist/{index118.js → index119.js} +2 -2
  12. package/dist/index12.js +6 -6
  13. package/dist/{index120.js → index121.js} +6 -6
  14. package/dist/{index122.js → index123.js} +1 -1
  15. package/dist/index125.js +35 -39
  16. package/dist/index126.js +39 -46
  17. package/dist/index127.js +46 -42
  18. package/dist/index128.js +43 -31
  19. package/dist/index129.js +35 -2
  20. package/dist/index13.js +1 -1
  21. package/dist/index130.js +2 -21
  22. package/dist/index131.js +21 -2
  23. package/dist/index132.js +2 -340
  24. package/dist/index133.js +337 -22
  25. package/dist/index134.js +25 -2
  26. package/dist/index135.js +2 -5
  27. package/dist/index136.js +5 -9
  28. package/dist/index137.js +8 -5
  29. package/dist/index138.js +6 -3
  30. package/dist/index139.js +1 -1
  31. package/dist/index140.js +1 -1
  32. package/dist/index141.js +1 -1
  33. package/dist/index142.js +1 -1
  34. package/dist/index143.js +1 -1
  35. package/dist/index144.js +1 -1
  36. package/dist/index145.js +1 -1
  37. package/dist/index146.js +1 -1
  38. package/dist/index147.js +1 -1
  39. package/dist/index148.js +1 -1
  40. package/dist/index149.js +1 -1
  41. package/dist/index15.js +4 -4
  42. package/dist/index150.js +1 -1
  43. package/dist/index151.js +1 -1
  44. package/dist/index152.js +1 -1
  45. package/dist/index153.js +1 -1
  46. package/dist/index154.js +1 -1
  47. package/dist/index155.js +1 -1
  48. package/dist/index156.js +1 -1
  49. package/dist/index157.js +1 -1
  50. package/dist/index158.js +1 -1
  51. package/dist/index159.js +1 -1
  52. package/dist/index160.js +1 -1
  53. package/dist/index161.js +1 -1
  54. package/dist/index162.js +1 -1
  55. package/dist/index163.js +1 -1
  56. package/dist/index164.js +1 -1
  57. package/dist/index165.js +2 -2
  58. package/dist/{index195.js → index168.js} +1 -1
  59. package/dist/index17.js +3 -3
  60. package/dist/index170.js +1 -1
  61. package/dist/index171.js +1 -1
  62. package/dist/index172.js +1 -1
  63. package/dist/index173.js +1 -1
  64. package/dist/index174.js +1 -1
  65. package/dist/index175.js +1 -1
  66. package/dist/index176.js +2 -2
  67. package/dist/index177.js +5 -0
  68. package/dist/index179.js +2 -3
  69. package/dist/index180.js +1 -1
  70. package/dist/index181.js +1 -1
  71. package/dist/index182.js +1 -1
  72. package/dist/index183.js +1 -1
  73. package/dist/index184.js +1 -1
  74. package/dist/index185.js +1 -1
  75. package/dist/index186.js +1 -1
  76. package/dist/index187.js +1 -1
  77. package/dist/index188.js +2 -2
  78. package/dist/index189.js +2 -3
  79. package/dist/index19.js +2 -2
  80. package/dist/index190.js +1 -1
  81. package/dist/index191.js +5 -0
  82. package/dist/index194.js +1 -1
  83. package/dist/index196.js +1 -1
  84. package/dist/index197.js +1 -1
  85. package/dist/index198.js +1 -1
  86. package/dist/index199.js +1 -1
  87. package/dist/index200.js +1 -1
  88. package/dist/index201.js +1 -1
  89. package/dist/index202.js +1 -1
  90. package/dist/index203.js +1 -1
  91. package/dist/index204.js +3 -5
  92. package/dist/index205.js +3 -16
  93. package/dist/index206.js +81 -16
  94. package/dist/index207.js +2 -19
  95. package/dist/index208.js +124 -17
  96. package/dist/index209.js +5 -27
  97. package/dist/index21.js +14 -14
  98. package/dist/index210.js +125 -3
  99. package/dist/index211.js +19 -2
  100. package/dist/index212.js +16 -8
  101. package/dist/index213.js +14 -247
  102. package/dist/index214.js +2 -52
  103. package/dist/index215.js +2 -44
  104. package/dist/index216.js +41 -5
  105. package/dist/index217.js +18 -58
  106. package/dist/index218.js +6 -2
  107. package/dist/index219.js +53 -4
  108. package/dist/index221.js +13 -126
  109. package/dist/index222.js +5 -125
  110. package/dist/index223.js +12 -2
  111. package/dist/index224.js +366 -38
  112. package/dist/index225.js +3 -20
  113. package/dist/index226.js +4 -6
  114. package/dist/index227.js +18 -52
  115. package/dist/index228.js +29 -0
  116. package/dist/index229.js +3 -13
  117. package/dist/index23.js +18 -18
  118. package/dist/index230.js +8 -5
  119. package/dist/index231.js +247 -10
  120. package/dist/index232.js +50 -367
  121. package/dist/index233.js +44 -2
  122. package/dist/index234.js +5 -81
  123. package/dist/index235.js +59 -163
  124. package/dist/index236.js +164 -84
  125. package/dist/index237.js +86 -0
  126. package/dist/index239.js +2 -3
  127. package/dist/index240.js +4 -7
  128. package/dist/index241.js +2 -4
  129. package/dist/index242.js +3 -2
  130. package/dist/index243.js +7 -18
  131. package/dist/index244.js +2 -106
  132. package/dist/index245.js +20 -0
  133. package/dist/index246.js +53 -47
  134. package/dist/index248.js +100 -2
  135. package/dist/index25.js +7 -7
  136. package/dist/index250.js +2 -3
  137. package/dist/index251.js +9 -3
  138. package/dist/index252.js +3 -281
  139. package/dist/index253.js +223 -5
  140. package/dist/index254.js +281 -2
  141. package/dist/index255.js +6 -2
  142. package/dist/index256.js +2 -2
  143. package/dist/index257.js +2 -2
  144. package/dist/index260.js +2 -2
  145. package/dist/index261.js +126 -2
  146. package/dist/index262.js +431 -2
  147. package/dist/index263.js +176 -2
  148. package/dist/index264.js +3 -28
  149. package/dist/index266.js +9 -0
  150. package/dist/index267.js +22 -7
  151. package/dist/index269.js +2 -126
  152. package/dist/index27.js +4 -4
  153. package/dist/index270.js +6 -431
  154. package/dist/index271.js +16 -176
  155. package/dist/index272.js +9 -3
  156. package/dist/index273.js +25 -0
  157. package/dist/index274.js +83 -16
  158. package/dist/index276.js +9 -2
  159. package/dist/index277.js +2 -9
  160. package/dist/index278.js +2 -23
  161. package/dist/index279.js +2 -89
  162. package/dist/index280.js +4 -0
  163. package/dist/index281.js +1 -5
  164. package/dist/index282.js +2 -16
  165. package/dist/index283.js +28 -3
  166. package/dist/index284.js +22 -12
  167. package/dist/index286.js +436 -9
  168. package/dist/index287.js +126 -16
  169. package/dist/index288.js +200 -4
  170. package/dist/index289.js +3 -9
  171. package/dist/index29.js +3 -3
  172. package/dist/index290.js +11 -435
  173. package/dist/index291.js +7 -125
  174. package/dist/index292.js +8 -199
  175. package/dist/index293.js +17 -224
  176. package/dist/index294.js +3 -88
  177. package/dist/index295.js +8 -3
  178. package/dist/index296.js +4 -3
  179. package/dist/index297.js +88 -210
  180. package/dist/index298.js +3 -2
  181. package/dist/index299.js +2 -65
  182. package/dist/index300.js +211 -5
  183. package/dist/index301.js +66 -5
  184. package/dist/index302.js +2 -8
  185. package/dist/index303.js +5 -7
  186. package/dist/index304.js +5 -3
  187. package/dist/index305.js +7 -6
  188. package/dist/index306.js +3 -19
  189. package/dist/index307.js +3 -4
  190. package/dist/index308.js +58 -3
  191. package/dist/index309.js +4 -3
  192. package/dist/index31.js +2 -2
  193. package/dist/index310.js +3 -58
  194. package/dist/index311.js +6 -32
  195. package/dist/index312.js +18 -10
  196. package/dist/index313.js +32 -46
  197. package/dist/index314.js +7 -2
  198. package/dist/index315.js +10 -479
  199. package/dist/index316.js +49 -0
  200. package/dist/index317.js +2 -424
  201. package/dist/index319.js +480 -2
  202. package/dist/index320.js +426 -0
  203. package/dist/index322.js +4 -0
  204. package/dist/index33.js +2 -2
  205. package/dist/index35.js +4 -4
  206. package/dist/index37.js +18 -18
  207. package/dist/index39.js +7 -7
  208. package/dist/index41.js +2 -2
  209. package/dist/index43.js +2 -2
  210. package/dist/index45.js +8 -8
  211. package/dist/index47.js +3 -3
  212. package/dist/index49.js +2 -2
  213. package/dist/index51.js +1 -1
  214. package/dist/index53.js +2 -2
  215. package/dist/index55.js +2 -2
  216. package/dist/index57.js +2 -2
  217. package/dist/index6.js +1 -1
  218. package/dist/index61.js +4 -4
  219. package/dist/index69.js +1 -1
  220. package/dist/index7.js +2 -2
  221. package/dist/index75.js +6 -6
  222. package/dist/index77.js +2 -2
  223. package/dist/index79.js +3 -3
  224. package/dist/index81.js +1 -1
  225. package/dist/index84.js +4 -4
  226. package/dist/index86.js +1 -1
  227. package/dist/index88.js +5 -5
  228. package/dist/index9.js +1 -1
  229. package/dist/index90.js +2 -2
  230. package/dist/utilities/functions/indexBy.d.ts +1 -1
  231. package/package.json +1 -1
  232. package/dist/index124.js +0 -42
  233. package/dist/index169.js +0 -5
  234. package/dist/index178.js +0 -4
  235. package/dist/index220.js +0 -4
  236. package/dist/index238.js +0 -5
  237. package/dist/index249.js +0 -12
  238. package/dist/index265.js +0 -24
  239. package/dist/index268.js +0 -4
  240. package/dist/index285.js +0 -11
  241. /package/dist/{index102.js → index103.js} +0 -0
  242. /package/dist/{index104.js → index105.js} +0 -0
  243. /package/dist/{index106.js → index107.js} +0 -0
  244. /package/dist/{index112.js → index113.js} +0 -0
  245. /package/dist/{index114.js → index115.js} +0 -0
  246. /package/dist/{index116.js → index117.js} +0 -0
  247. /package/dist/{index167.js → index166.js} +0 -0
  248. /package/dist/{index318.js → index321.js} +0 -0
@@ -0,0 +1,179 @@
1
+ import { defineComponent as h, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as n, renderSlot as a, normalizeProps as i, guardReactiveProps as l, createVNode as $, mergeProps as T } from "vue";
2
+ import V from "./index27.js";
3
+ /* empty css */
4
+ import q from "./index37.js";
5
+ /* empty css */
6
+ const L = /* @__PURE__ */ h({
7
+ __name: "BbSelect",
8
+ props: {
9
+ addOptions: { type: Boolean },
10
+ allowWriting: { type: [Boolean, String], default: !0 },
11
+ "append:icon": {},
12
+ autocomplete: {},
13
+ autofocus: {},
14
+ comma: { type: Boolean },
15
+ dependencies: {},
16
+ depsDebounceTime: {},
17
+ direction: {},
18
+ disabled: { type: Boolean },
19
+ enforceCoherence: { type: Boolean },
20
+ errors: {},
21
+ filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
22
+ hasErrors: { type: Boolean },
23
+ hideLabel: { type: Boolean },
24
+ hint: {},
25
+ id: {},
26
+ items: {},
27
+ itemText: {},
28
+ itemValue: {},
29
+ label: {},
30
+ labelPosition: {},
31
+ loading: { type: Boolean },
32
+ loadingText: {},
33
+ max: {},
34
+ maxSelectedLabels: {},
35
+ modelValue: {},
36
+ modelValueDebounceTime: {},
37
+ multiple: { type: Boolean },
38
+ name: {},
39
+ noDataText: {},
40
+ persistentHint: { type: Boolean },
41
+ placeholder: {},
42
+ prefill: { type: [Boolean, String], default: "focus" },
43
+ "prepend:icon": {},
44
+ required: { type: Boolean },
45
+ queryDebounceTime: {},
46
+ readonly: { type: Boolean },
47
+ resetQueryOnOptionSelected: { type: Boolean },
48
+ reverse: { type: Boolean },
49
+ stash: { type: Boolean },
50
+ transitionDuration: {},
51
+ updateOnAnimationFrame: { type: Boolean }
52
+ },
53
+ emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
54
+ setup(d, { emit: u }) {
55
+ const r = d, t = u, s = y(!1), m = v(() => r.persistentHint || s.value), b = {
56
+ onBlur: (e) => t("blur", e),
57
+ onChange: (e) => t("change", e),
58
+ onClick: (e) => t("click", e),
59
+ onFocus: (e) => {
60
+ s.value = !0, t("focus", e);
61
+ },
62
+ onInactive: () => {
63
+ s.value = !1, t("inactive");
64
+ },
65
+ onInput: (e) => t("input", e),
66
+ "onUpdate:modelValue": (e) => t("update:modelValue", e)
67
+ };
68
+ return (e, w) => (B(), g(V, {
69
+ id: e.id,
70
+ class: "bb-select",
71
+ direction: e.direction,
72
+ errors: e.errors,
73
+ "has-errors": e.hasErrors,
74
+ "hide-label": e.hideLabel,
75
+ hint: e.hint,
76
+ label: e.label,
77
+ "label-position": e.labelPosition,
78
+ "model-value": e.modelValue,
79
+ name: e.name,
80
+ reverse: e.reverse,
81
+ "show-hint": m.value
82
+ }, {
83
+ label: n((p) => [
84
+ a(e.$slots, "label", i(l(p)))
85
+ ]),
86
+ input: n(({ id: p, hasErrors: c, ariaDescribedby: f }) => [
87
+ $(q, T({
88
+ id: p,
89
+ "add-options": e.addOptions,
90
+ "allow-writing": e.allowWriting,
91
+ "append:icon": r["append:icon"],
92
+ "aria-describedby": f,
93
+ autocomplete: e.autocomplete,
94
+ autofocus: e.autofocus,
95
+ comma: e.comma,
96
+ dependencies: e.dependencies,
97
+ "deps-debounce-time": e.depsDebounceTime,
98
+ disabled: e.disabled,
99
+ "enforce-coherence": e.enforceCoherence,
100
+ "filter-by": e.filterBy,
101
+ "has-errors": c,
102
+ "item-text": e.itemText,
103
+ "item-value": e.itemValue,
104
+ items: e.items,
105
+ loading: e.loading,
106
+ "loading-text": e.loadingText,
107
+ max: e.max,
108
+ "max-selected-labels": e.maxSelectedLabels,
109
+ "model-value": e.modelValue,
110
+ "model-value-debounce-time": e.modelValueDebounceTime,
111
+ multiple: e.multiple,
112
+ name: e.name,
113
+ "no-data-text": e.noDataText,
114
+ placeholder: e.placeholder,
115
+ prefill: e.prefill,
116
+ "prepend:icon": r["prepend:icon"],
117
+ "query-debounce-time": e.queryDebounceTime,
118
+ readonly: e.readonly,
119
+ required: e.required,
120
+ "reset-query-on-option-selected": e.resetQueryOnOptionSelected,
121
+ stash: e.stash,
122
+ "transition-duration": e.transitionDuration,
123
+ "update-on-animation-frame": e.updateOnAnimationFrame
124
+ }, b), {
125
+ "append-outer": n((o) => [
126
+ a(e.$slots, "append-outer", i(l(o)))
127
+ ]),
128
+ append: n((o) => [
129
+ a(e.$slots, "append", i(l(o)))
130
+ ]),
131
+ prefix: n((o) => [
132
+ a(e.$slots, "prefix", i(l(o)))
133
+ ]),
134
+ chevron: n((o) => [
135
+ a(e.$slots, "chevron", i(l(o)))
136
+ ]),
137
+ loading: n((o) => [
138
+ a(e.$slots, "loading", i(l(o)))
139
+ ]),
140
+ "no-data": n((o) => [
141
+ a(e.$slots, "no-data", i(l(o)))
142
+ ]),
143
+ "option:append": n((o) => [
144
+ a(e.$slots, "option:append", i(l(o)))
145
+ ]),
146
+ "option:prepend": n((o) => [
147
+ a(e.$slots, "option:prepend", i(l(o)))
148
+ ]),
149
+ option: n((o) => [
150
+ a(e.$slots, "option", i(l(o)))
151
+ ]),
152
+ "options:append": n((o) => [
153
+ a(e.$slots, "options:append", i(l(o)))
154
+ ]),
155
+ "options:prepend": n((o) => [
156
+ a(e.$slots, "options:prepend", i(l(o)))
157
+ ]),
158
+ "prepend-outer": n((o) => [
159
+ a(e.$slots, "prepend-outer", i(l(o)))
160
+ ]),
161
+ prepend: n((o) => [
162
+ a(e.$slots, "prepend", i(l(o)))
163
+ ]),
164
+ suffix: n((o) => [
165
+ a(e.$slots, "suffix", i(l(o)))
166
+ ]),
167
+ spinner: n((o) => [
168
+ a(e.$slots, "spinner", i(l(o)))
169
+ ]),
170
+ _: 2
171
+ }, 1040, ["id", "add-options", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
172
+ ]),
173
+ _: 3
174
+ }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
175
+ }
176
+ });
177
+ export {
178
+ L as default
179
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ee, ref as n, computed as $, getCurrentInstance as te, watch as b, nextTick as le, onMounted as ae, openBlock as f, createElementBlock as p, unref as ie, normalizeClass as T, createElementVNode as h, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as se, Fragment as K, renderList as O, createVNode as J, withCtx as I, toDisplayString as re, createBlock as ne, Transition as oe, createCommentVNode as ue } from "vue";
2
2
  import { useId as de } from "./index8.js";
3
- import { useRoute as ce } from "./index136.js";
4
- import { useRouter as be } from "./index137.js";
5
- import { wait as fe } from "./index131.js";
6
- import { useScroll as he, useResizeObserver as ye } from "./index132.js";
3
+ import { useRoute as ce } from "./index137.js";
4
+ import { useRouter as be } from "./index138.js";
5
+ import { wait as fe } from "./index132.js";
6
+ import { useScroll as he, useResizeObserver as ye } from "./index133.js";
7
7
  import me from "./index13.js";
8
8
  /* empty css */
9
- import ve from "./index127.js";
9
+ import ve from "./index128.js";
10
10
  /* empty css */
11
11
  const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-tab__label" }, _e = { class: "bb-tab__panes-container" }, we = ["id", "aria-labelledby"], Re = /* @__PURE__ */ ee({
12
12
  __name: "BbTab",
package/dist/index11.js CHANGED
@@ -1,4 +1,4 @@
1
- import { wait as p } from "./index131.js";
1
+ import { wait as p } from "./index132.js";
2
2
  import { reactive as d } from "vue";
3
3
  import { useId as h } from "./index8.js";
4
4
  const i = d({
@@ -1,16 +1,16 @@
1
- import { defineComponent as ue, mergeModels as P, ref as Q, computed as k, toRef as A, useModel as U, watch as W, reactive as pe, openBlock as n, createBlock as G, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as K, createTextVNode as he, mergeProps as ke } from "vue";
2
- import { add as ve } from "./index298.js";
3
- import { clamp as _e } from "./index233.js";
4
- import { isNil as X } from "./index129.js";
1
+ import { defineComponent as re, mergeModels as P, ref as ue, computed as k, toRef as A, useModel as Q, watch as U, reactive as pe, openBlock as n, createBlock as W, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as G, createTextVNode as he, mergeProps as ke } from "vue";
2
+ import { add as ve } from "./index302.js";
3
+ import { clamp as _e } from "./index207.js";
4
+ import { isNil as K } from "./index130.js";
5
5
  import { useId as Ce } from "./index8.js";
6
- import { useItemValue as ge } from "./index286.js";
7
- import { when as we } from "./index219.js";
8
- import Y from "./index17.js";
6
+ import { useItemValue as ge } from "./index292.js";
7
+ import { when as we } from "./index240.js";
8
+ import X from "./index17.js";
9
9
  /* empty css */
10
10
  import Te from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as Ve } from "./index235.js";
13
- import { hash as Z } from "./index210.js";
12
+ import { useOptions as Ve } from "./index236.js";
13
+ import { hash as Y } from "./index229.js";
14
14
  const $e = {
15
15
  key: 0,
16
16
  class: "sr-only"
@@ -20,7 +20,7 @@ const $e = {
20
20
  }, De = { class: "bb-table-header__content" }, Le = { class: "bb-table-header__content sr-only" }, Ie = { class: "bb-table-loading__row" }, Re = ["colspan"], He = { class: "bb-table-loading__text sr-only" }, ze = {
21
21
  class: "bb-table-skeleton__container",
22
22
  role: "status"
23
- }, Me = { class: "bb-table-no-data__row" }, xe = ["colspan"], Oe = { class: "bb-table-no-data__text" }, qe = ["onClick", "onContextmenu", "onDblclick"], Ee = { class: "bb-table-check__label-text sr-only" }, Fe = { class: "bb-table-radio__label-text sr-only" }, tl = /* @__PURE__ */ ue({
23
+ }, Me = { class: "bb-table-no-data__row" }, xe = ["colspan"], Oe = { class: "bb-table-no-data__text" }, qe = ["onClick", "onContextmenu", "onDblclick"], Ee = { class: "bb-table-check__label-text sr-only" }, Fe = { class: "bb-table-radio__label-text sr-only" }, tl = /* @__PURE__ */ re({
24
24
  __name: "BbTable",
25
25
  props: /* @__PURE__ */ P({
26
26
  accessibleLabel: { type: Function, default: (g) => ["Seleziona"].concat(g.map((D) => D.content)).join(" ") },
@@ -64,7 +64,7 @@ const $e = {
64
64
  }),
65
65
  emits: /* @__PURE__ */ P(["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"], ["update:select-all", "update:unselected-items"]),
66
66
  setup(g, { emit: D }) {
67
- const { getItemValue: ee } = ge(), M = Ce().id.value, t = g, v = D, $ = Q(), le = t.accessibleLabel, te = t.loadingText, ae = t.noDataText, x = t.selectText, se = k(() => t.selectable ? "fieldset" : "div"), oe = Q(!1), O = k(() => t.loading || oe.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
67
+ const { getItemValue: Z } = ge(), M = Ce().id.value, t = g, v = D, $ = ue(), ee = t.accessibleLabel, le = t.loadingText, te = t.noDataText, x = t.selectText, ae = k(() => t.selectable ? "fieldset" : "div"), O = k(() => t.loading || ne.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
68
68
  (e, s) => e + +!!s,
69
69
  t.columns.length
70
70
  )), E = k(
@@ -75,7 +75,7 @@ const $e = {
75
75
  },
76
76
  {}
77
77
  )
78
- ), { options: B, selectOption: ne, unselectOption: de, internalItems: F } = Ve({
78
+ ), { options: B, selectOption: se, unselectOption: oe, internalItems: F, innerLoading: ne } = Ve({
79
79
  emit: v,
80
80
  itemText: void 0,
81
81
  itemValue: t.itemValue,
@@ -92,7 +92,7 @@ const $e = {
92
92
  depsDebounceTime: t.depsDebounceTime,
93
93
  queryDebounceTime: 0,
94
94
  disabled: A(t, "disabled")
95
- }), ce = k(
95
+ }), de = k(
96
96
  () => t.columns.map((e) => {
97
97
  const s = e.align || "left", { label: l, key: f } = e, R = `header:${E.value[e.key]}`;
98
98
  let a = [`bb-table-header--${s}`];
@@ -109,9 +109,9 @@ const $e = {
109
109
  typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
110
110
  const l = t.columns.map((a) => {
111
111
  const c = E.value[a.key], h = a.align || "left", { label: S, key: H } = a;
112
- let m = ee(e.item, a.key);
112
+ let m = Z(e.item, a.key);
113
113
  a.formatter && // By default the formatter runs anyway
114
- (!X(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && X(m) && (m = a.placeholder);
114
+ (!K(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && K(m) && (m = a.placeholder);
115
115
  let b = [`bb-table-data__cell--${h}`];
116
116
  if (t.tdClass)
117
117
  if (typeof t.tdClass == "function") {
@@ -133,7 +133,7 @@ const $e = {
133
133
  };
134
134
  });
135
135
  return {
136
- accessibleLabel: le(l, e.item),
136
+ accessibleLabel: ee(l, e.item),
137
137
  cols: l,
138
138
  onRowClick: (a) => v("click:row", a, e, !!e.selected),
139
139
  onRowContextMenu: (a) => v("contextmenu:row", a, e, !!e.selected),
@@ -146,30 +146,30 @@ const $e = {
146
146
  disabled: s
147
147
  };
148
148
  }));
149
- let y = U(g, "select-all");
150
- W(y, () => {
149
+ let y = Q(g, "select-all");
150
+ U(y, () => {
151
151
  w.clear(), N.value = [], v("update:modelValue", []);
152
152
  });
153
153
  const j = k(() => {
154
154
  var e;
155
155
  return (e = t.modelValue) != null && e.length ? L.value.some((s) => !s.selected) : !!(y.value && w.size);
156
- }), w = pe(/* @__PURE__ */ new Set()), N = U(g, "unselected-items"), J = (e) => {
157
- I(e) ? (de(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.item)) : (y.value || ne(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
158
- (s) => Z(s) !== Z(e.item)
156
+ }), w = pe(/* @__PURE__ */ new Set()), N = Q(g, "unselected-items"), J = (e) => {
157
+ I(e) ? (oe(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.item)) : (y.value || se(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
158
+ (s) => Y(s) !== Y(e.item)
159
159
  ));
160
- }, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ie = we(
160
+ }, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ce = we(
161
161
  (e) => typeof e != "string",
162
162
  JSON.stringify
163
- ), be = k(() => [].concat(t.modelValue).map((e) => {
164
- const s = ie(e);
163
+ ), ie = k(() => [].concat(t.modelValue).map((e) => {
164
+ const s = ce(e);
165
165
  return {
166
166
  disabled: t.disabled,
167
167
  name: t.name,
168
168
  type: "hidden",
169
169
  value: s
170
170
  };
171
- })), re = k(() => _e(B.value.length, 4, 10));
172
- return W(
171
+ })), be = k(() => _e(B.value.length, 4, 10));
172
+ return U(
173
173
  () => L.value,
174
174
  () => {
175
175
  var e;
@@ -201,7 +201,7 @@ const $e = {
201
201
  {
202
202
  flush: "post"
203
203
  }
204
- ), (e, s) => (n(), G(fe(se.value), {
204
+ ), (e, s) => (n(), W(fe(ae.value), {
205
205
  ref_key: "container",
206
206
  ref: $,
207
207
  class: r({
@@ -245,7 +245,7 @@ const $e = {
245
245
  "bb-table-check__label--disabled": e.disabled
246
246
  }])
247
247
  }, [
248
- (n(), G(Y, {
248
+ (n(), W(X, {
249
249
  key: j.value.toString(),
250
250
  modelValue: i(y),
251
251
  "onUpdate:modelValue": s[0] || (s[0] = (l) => ye(y) ? y.value = l : y = l),
@@ -260,7 +260,7 @@ const $e = {
260
260
  ])
261
261
  ])
262
262
  ], 2)) : C("", !0),
263
- (n(!0), d(T, null, V(ce.value, (l) => (n(), d("th", {
263
+ (n(!0), d(T, null, V(de.value, (l) => (n(), d("th", {
264
264
  key: l.key,
265
265
  class: r(["bb-table-header", l.classes]),
266
266
  scope: "col"
@@ -296,9 +296,9 @@ const $e = {
296
296
  class: "bb-table-loading__cell",
297
297
  colspan: q.value
298
298
  }, [
299
- o("span", He, u(i(te)), 1),
299
+ o("span", He, u(i(le)), 1),
300
300
  o("div", ze, [
301
- (n(!0), d(T, null, V(re.value, (l) => (n(), d("div", {
301
+ (n(!0), d(T, null, V(be.value, (l) => (n(), d("div", {
302
302
  key: l,
303
303
  class: "bb-table-skeleton-item"
304
304
  }, s[1] || (s[1] = [
@@ -339,7 +339,7 @@ const $e = {
339
339
  "bb-table-check__label--disabled": l.disabled
340
340
  }])
341
341
  }, [
342
- K(Y, {
342
+ G(X, {
343
343
  checked: I(l),
344
344
  class: "bb-table-check",
345
345
  disabled: l.disabled,
@@ -353,7 +353,7 @@ const $e = {
353
353
  "bb-table-radio__label--disabled": l.disabled
354
354
  }])
355
355
  }, [
356
- K(Te, {
356
+ G(Te, {
357
357
  checked: l.selected,
358
358
  class: "bb-table-radio",
359
359
  disabled: l.disabled,
@@ -395,7 +395,7 @@ const $e = {
395
395
  class: "bb-table-no-data__cell",
396
396
  colspan: q.value
397
397
  }, [
398
- o("span", Oe, u(i(ae)), 1)
398
+ o("span", Oe, u(i(te)), 1)
399
399
  ], 8, xe)
400
400
  ])
401
401
  ])
@@ -404,7 +404,7 @@ const $e = {
404
404
  p(e.$slots, "tfoot")
405
405
  ])
406
406
  ]),
407
- (n(!0), d(T, null, V(be.value, (l) => (n(), d("input", ke({
407
+ (n(!0), d(T, null, V(ie.value, (l) => (n(), d("input", ke({
408
408
  key: l.value,
409
409
  ref_for: !0
410
410
  }, l), null, 16))), 128))
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { state as k, useToast as b } from "./index11.js";
3
- import C from "./index231.js";
4
- import B from "./index299.js";
3
+ import C from "./index223.js";
4
+ import B from "./index301.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index12.js CHANGED
@@ -1,10 +1,10 @@
1
- import { copy as D } from "./index133.js";
1
+ import { copy as D } from "./index134.js";
2
2
  import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
3
- import { isNotNil as a } from "./index134.js";
4
- import { mapValues as X } from "./index135.js";
5
- import { useRoute as Z } from "./index136.js";
6
- import { useRouter as _ } from "./index137.js";
7
- import { useStepper as ee } from "./index132.js";
3
+ import { isNotNil as a } from "./index135.js";
4
+ import { mapValues as X } from "./index136.js";
5
+ import { useRoute as Z } from "./index137.js";
6
+ import { useRouter as _ } from "./index138.js";
7
+ import { useStepper as ee } from "./index133.js";
8
8
  const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
9
9
  var r, u;
10
10
  const e = i.match(x);
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
2
- import { useFloating as q, arrow as A } from "./index221.js";
2
+ import { useFloating as q, arrow as A } from "./index208.js";
3
3
  import { useId as G } from "./index8.js";
4
- import { wait as _ } from "./index131.js";
4
+ import { wait as _ } from "./index132.js";
5
5
  import J from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index239.js";
8
- import { waitFor as K } from "./index226.js";
9
- import Q from "./index279.js";
7
+ import { throttle as m } from "./index242.js";
8
+ import { waitFor as K } from "./index218.js";
9
+ import Q from "./index274.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index232.js";
11
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index224.js";
12
12
  const pe = /* @__PURE__ */ N({
13
13
  __name: "BbTooltip",
14
14
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index300.js";
2
+ import { flattenTree as T } from "./index303.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index125.js CHANGED
@@ -1,46 +1,42 @@
1
- import { defineComponent as p, ref as o, watch as d, computed as m, openBlock as n, createBlock as s, resolveDynamicComponent as r, normalizeProps as b, guardReactiveProps as f, withCtx as u, normalizeStyle as v, renderSlot as y, createCommentVNode as g } from "vue";
2
- const B = /* @__PURE__ */ p({
3
- __name: "BbCollapsible",
1
+ import { defineComponent as c, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as i, createTextVNode as p, toDisplayString as b, withModifiers as d, createCommentVNode as m } from "vue";
2
+ const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-label"], k = /* @__PURE__ */ c({
3
+ __name: "BbChip",
4
4
  props: {
5
- eager: { type: Boolean },
6
- transitionDuration: { default: 250 },
7
- modelValue: { type: Boolean },
8
- tag: { default: "div" }
5
+ text: {},
6
+ clearable: { type: Boolean, default: !0 },
7
+ clearableLabel: { default: "Elimina" }
9
8
  },
10
- setup(i) {
11
- const l = i, c = o(l.modelValue), t = o(c.value);
12
- d(
13
- () => l.modelValue,
14
- (e) => {
15
- e && !t.value && (t.value = !0);
16
- }
17
- );
18
- const a = m(() => ({
19
- class: {
20
- "bb-collapsible": !0,
21
- "bb-collapsible--open": l.modelValue,
22
- "bb-collapsible--closed": !l.modelValue
23
- },
24
- style: {
25
- transitionDuration: l.transitionDuration + "ms"
26
- }
27
- }));
28
- return (e, V) => (n(), s(r(e.tag), b(f(a.value)), {
29
- default: u(() => [
30
- (n(), s(r(e.tag), {
31
- class: "bb-collapsible__content",
32
- style: v(a.value.style)
33
- }, {
34
- default: u(() => [
35
- e.eager || t.value ? y(e.$slots, "default", { key: 0 }) : g("", !0)
36
- ]),
37
- _: 3
38
- }, 8, ["style"]))
9
+ emits: ["click:clear"],
10
+ setup(h, { emit: r }) {
11
+ const n = r, s = (e) => {
12
+ n("click:clear", e);
13
+ };
14
+ return (e, l) => (o(), a("span", u, [
15
+ t("span", _, [
16
+ i(e.$slots, "default", {}, () => [
17
+ p(b(e.text), 1)
18
+ ])
39
19
  ]),
40
- _: 3
41
- }, 16));
20
+ e.clearable ? (o(), a("button", {
21
+ key: 0,
22
+ "aria-label": e.clearableLabel,
23
+ class: "bb-chip__clear-button",
24
+ type: "button",
25
+ onClick: d(s, ["stop", "prevent"])
26
+ }, l[0] || (l[0] = [
27
+ t("svg", {
28
+ viewBox: "0 0 24 24",
29
+ xmlns: "http://www.w3.org/2000/svg"
30
+ }, [
31
+ t("path", {
32
+ d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z",
33
+ fill: "currentColor"
34
+ })
35
+ ], -1)
36
+ ]), 8, f)) : m("", !0)
37
+ ]));
42
38
  }
43
39
  });
44
40
  export {
45
- B as default
41
+ k as default
46
42
  };
package/dist/index126.js CHANGED
@@ -1,53 +1,46 @@
1
- import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index218.js";
3
- const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
- __name: "BbIcon",
1
+ import { defineComponent as p, ref as o, watch as d, computed as m, openBlock as n, createBlock as s, resolveDynamicComponent as r, normalizeProps as b, guardReactiveProps as f, withCtx as u, normalizeStyle as v, renderSlot as y, createCommentVNode as g } from "vue";
2
+ const B = /* @__PURE__ */ p({
3
+ __name: "BbCollapsible",
5
4
  props: {
6
- size: { default: "md" },
7
- color: {},
8
- type: {}
5
+ eager: { type: Boolean },
6
+ transitionDuration: { default: 250 },
7
+ modelValue: { type: Boolean },
8
+ tag: { default: "div" }
9
9
  },
10
- setup(m) {
11
- var l, a;
12
- const e = m;
13
- let t = p();
14
- const r = p(null), x = !!((a = (l = c()) == null ? void 0 : l.proxy) != null && a.$nuxt), i = async () => {
15
- if (t.value) {
16
- if (typeof t.value[e.type] > "u")
17
- throw new Error(`Icon "${e.type}" does not exist.`);
18
- r.value = await t.value[e.type]();
10
+ setup(i) {
11
+ const l = i, c = o(l.modelValue), t = o(c.value);
12
+ d(
13
+ () => l.modelValue,
14
+ (e) => {
15
+ e && !t.value && (t.value = !0);
19
16
  }
20
- };
21
- w(async () => {
22
- var o, n;
23
- t.value = (n = (o = c()) == null ? void 0 : o.proxy) == null ? void 0 : n.$nuxt.$icons, await i();
24
- }), z(async () => {
25
- var o, n;
26
- t.value || (x ? t.value = (n = (o = c()) == null ? void 0 : o.proxy) == null ? void 0 : n.$nuxt.$icons : t.value = _("icons")), r.value || await i();
27
- }), b(() => e.type, i);
28
- const y = {
29
- xs: 12,
30
- sm: 16,
31
- md: 24,
32
- lg: 28,
33
- xl: 36,
34
- xxl: 40
35
- }, d = f(() => {
36
- const o = {
37
- "bb-icon": !0
38
- };
39
- let u = { "--size": f(() => {
40
- let s;
41
- return typeof e.size == "string" ? s = y[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? s = e.size : s = 24, s + "px";
42
- }).value };
43
- return e.color && (I(e.color) ? u.color = e.color : o[`bb-icon--${e.color}`] = !0), {
44
- class: o,
45
- style: u
46
- };
47
- });
48
- return (o, n) => (h(), $("span", g(d.value, { innerHTML: r.value }), null, 16, B));
17
+ );
18
+ const a = m(() => ({
19
+ class: {
20
+ "bb-collapsible": !0,
21
+ "bb-collapsible--open": l.modelValue,
22
+ "bb-collapsible--closed": !l.modelValue
23
+ },
24
+ style: {
25
+ transitionDuration: l.transitionDuration + "ms"
26
+ }
27
+ }));
28
+ return (e, V) => (n(), s(r(e.tag), b(f(a.value)), {
29
+ default: u(() => [
30
+ (n(), s(r(e.tag), {
31
+ class: "bb-collapsible__content",
32
+ style: v(a.value.style)
33
+ }, {
34
+ default: u(() => [
35
+ e.eager || t.value ? y(e.$slots, "default", { key: 0 }) : g("", !0)
36
+ ]),
37
+ _: 3
38
+ }, 8, ["style"]))
39
+ ]),
40
+ _: 3
41
+ }, 16));
49
42
  }
50
43
  });
51
44
  export {
52
- k as default
45
+ B as default
53
46
  };