bitboss-ui 2.0.96 → 2.0.97

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 (168) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +13 -1
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +65 -19
  4. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  5. package/dist/composables/useBbConfig.d.ts +3 -0
  6. package/dist/composables/useLocale.d.ts +5 -0
  7. package/dist/i18n/en.d.ts +8 -0
  8. package/dist/i18n/index.d.ts +3 -0
  9. package/dist/i18n/it.d.ts +8 -0
  10. package/dist/index100.js +4 -4
  11. package/dist/index111.js +5 -5
  12. package/dist/index119.js +2 -2
  13. package/dist/index121.js +5 -5
  14. package/dist/index123.js +1 -1
  15. package/dist/index127.js +1 -1
  16. package/dist/index128.js +1 -1
  17. package/dist/index129.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index131.js +1 -1
  20. package/dist/index133.js +2 -2
  21. package/dist/index134.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +49 -48
  25. package/dist/index206.js +2 -81
  26. package/dist/index207.js +81 -2
  27. package/dist/index208.js +51 -6
  28. package/dist/index21.js +63 -56
  29. package/dist/index210.js +13 -5
  30. package/dist/index211.js +5 -125
  31. package/dist/index212.js +15 -18
  32. package/dist/index213.js +10 -10
  33. package/dist/index214.js +18 -15
  34. package/dist/index215.js +19 -2
  35. package/dist/index216.js +27 -2
  36. package/dist/index217.js +3 -41
  37. package/dist/index218.js +2 -20
  38. package/dist/index219.js +7 -5
  39. package/dist/index220.js +244 -47
  40. package/dist/index221.js +54 -0
  41. package/dist/index222.js +44 -13
  42. package/dist/index223.js +4 -4
  43. package/dist/index224.js +58 -10
  44. package/dist/index225.js +2 -369
  45. package/dist/index226.js +4 -19
  46. package/dist/index227.js +2 -27
  47. package/dist/index228.js +126 -3
  48. package/dist/index229.js +120 -245
  49. package/dist/index23.js +31 -31
  50. package/dist/index230.js +2 -52
  51. package/dist/index231.js +41 -44
  52. package/dist/index232.js +20 -5
  53. package/dist/index233.js +5 -59
  54. package/dist/index234.js +5 -164
  55. package/dist/index235.js +10 -82
  56. package/dist/index236.js +371 -0
  57. package/dist/index237.js +164 -3
  58. package/dist/index238.js +84 -7
  59. package/dist/index240.js +8 -4
  60. package/dist/index241.js +3 -2
  61. package/dist/index242.js +7 -4
  62. package/dist/index243.js +1 -1
  63. package/dist/index244.js +4 -2
  64. package/dist/index245.js +105 -17
  65. package/dist/{index248.js → index247.js} +1 -1
  66. package/dist/index249.js +4 -0
  67. package/dist/index25.js +6 -6
  68. package/dist/index250.js +2 -2
  69. package/dist/index251.js +17 -9
  70. package/dist/index252.js +9 -2
  71. package/dist/index253.js +2 -8
  72. package/dist/index254.js +3 -23
  73. package/dist/index256.js +9 -0
  74. package/dist/index257.js +4 -6
  75. package/dist/index258.js +281 -16
  76. package/dist/index259.js +5 -8
  77. package/dist/index260.js +2 -9
  78. package/dist/index261.js +2 -8
  79. package/dist/index262.js +2 -3
  80. package/dist/index263.js +2 -12
  81. package/dist/index264.js +2 -9
  82. package/dist/index265.js +2 -17
  83. package/dist/index266.js +2 -4
  84. package/dist/index267.js +2 -281
  85. package/dist/index268.js +2 -6
  86. package/dist/index269.js +2 -2
  87. package/dist/index270.js +28 -2
  88. package/dist/index271.js +22 -2
  89. package/dist/index273.js +89 -2
  90. package/dist/index275.js +9 -2
  91. package/dist/index276.js +5 -1
  92. package/dist/index277.js +16 -2
  93. package/dist/index278.js +9 -2
  94. package/dist/index279.js +23 -28
  95. package/dist/index280.js +3 -22
  96. package/dist/index281.js +14 -0
  97. package/dist/index282.js +9 -7
  98. package/dist/index283.js +9 -2
  99. package/dist/index284.js +15 -124
  100. package/dist/index285.js +3 -430
  101. package/dist/index286.js +6 -175
  102. package/dist/index287.js +11 -3
  103. package/dist/index288.js +4 -0
  104. package/dist/index289.js +125 -21
  105. package/dist/index29.js +3 -3
  106. package/dist/index290.js +433 -0
  107. package/dist/index291.js +176 -2
  108. package/dist/index292.js +22 -4
  109. package/dist/index294.js +2 -436
  110. package/dist/index295.js +87 -125
  111. package/dist/index296.js +218 -83
  112. package/dist/index297.js +8 -224
  113. package/dist/index298.js +200 -3
  114. package/dist/index299.js +436 -3
  115. package/dist/index300.js +126 -212
  116. package/dist/index301.js +2 -65
  117. package/dist/index302.js +3 -5
  118. package/dist/index304.js +5 -3
  119. package/dist/index305.js +66 -3
  120. package/dist/index306.js +213 -3
  121. package/dist/index307.js +32 -57
  122. package/dist/index308.js +4 -10
  123. package/dist/index309.js +7 -6
  124. package/dist/index31.js +2 -2
  125. package/dist/index310.js +3 -19
  126. package/dist/index311.js +3 -6
  127. package/dist/index312.js +2 -32
  128. package/dist/index313.js +3 -47
  129. package/dist/index314.js +57 -4
  130. package/dist/index315.js +6 -7
  131. package/dist/index316.js +7 -2
  132. package/dist/index317.js +18 -3
  133. package/dist/index318.js +7 -479
  134. package/dist/index319.js +10 -0
  135. package/dist/index320.js +43 -420
  136. package/dist/index321.js +2 -47
  137. package/dist/index322.js +480 -2
  138. package/dist/index324.js +426 -0
  139. package/dist/index325.js +49 -0
  140. package/dist/index33.js +2 -2
  141. package/dist/index35.js +3 -3
  142. package/dist/index37.js +14 -14
  143. package/dist/index39.js +4 -4
  144. package/dist/index4.js +5 -4
  145. package/dist/index41.js +2 -2
  146. package/dist/index43.js +2 -2
  147. package/dist/index45.js +6 -6
  148. package/dist/index47.js +2 -2
  149. package/dist/index49.js +2 -2
  150. package/dist/index55.js +1 -1
  151. package/dist/index57.js +1 -1
  152. package/dist/index61.js +2 -2
  153. package/dist/index75.js +3 -3
  154. package/dist/index77.js +36 -34
  155. package/dist/index79.js +2 -2
  156. package/dist/index81.js +1 -1
  157. package/dist/index84.js +3 -3
  158. package/dist/index86.js +1 -1
  159. package/dist/index88.js +4 -4
  160. package/dist/index90.js +1 -1
  161. package/package.json +1 -1
  162. package/dist/index209.js +0 -128
  163. package/dist/index239.js +0 -4
  164. package/dist/index246.js +0 -108
  165. package/dist/index255.js +0 -91
  166. package/dist/index274.js +0 -4
  167. package/dist/index293.js +0 -202
  168. /package/dist/{index272.js → index326.js} +0 -0
package/dist/index61.js CHANGED
@@ -7,8 +7,8 @@ import r from "./index127.js";
7
7
  /* empty css */
8
8
  import P from "./index129.js";
9
9
  /* empty css */
10
- import { pickBy as $ } from "./index251.js";
11
- import { noop as A } from "./index252.js";
10
+ import { pickBy as $ } from "./index252.js";
11
+ import { noop as A } from "./index253.js";
12
12
  const T = {
13
13
  key: 2,
14
14
  class: "bb-button__loading-label sr-only"
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as X, computed as A, ref as y, openBlock as h, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
2
- import { findRightIndex as I } from "./index253.js";
2
+ import { findRightIndex as I } from "./index278.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index132.js";
5
5
  import { useIntersectionObserver as ae } from "./index133.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import V from "./index254.js";
9
- import se from "./index255.js";
8
+ import V from "./index279.js";
9
+ import se from "./index273.js";
10
10
  /* empty css */
11
11
  import j from "./index127.js";
12
12
  /* empty css */
package/dist/index77.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, ref as E, computed as B, openBlock as s, createElementBlock as $, normalizeClass as W, createVNode as l, mergeProps as C, withCtx as t, unref as m, createBlock as L, createCommentVNode as w, createElementVNode as u, toDisplayString as P, createSlots as A, renderSlot as a, normalizeProps as d, guardReactiveProps as r, renderList as I } from "vue";
1
+ import { defineComponent as z, ref as E, computed as f, openBlock as s, createElementBlock as $, normalizeClass as W, createVNode as l, mergeProps as C, withCtx as t, unref as w, createBlock as L, createCommentVNode as g, createElementVNode as m, toDisplayString as P, createSlots as A, renderSlot as a, normalizeProps as d, guardReactiveProps as r, renderList as I } from "vue";
2
2
  import D from "./index13.js";
3
3
  /* empty css */
4
4
  import M from "./index75.js";
@@ -34,38 +34,40 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
34
34
  "prepend:icon": {}
35
35
  },
36
36
  setup(S) {
37
- const n = S, b = E(0), c = B(
38
- () => n.loading || !!b.value && n.autoLoading
37
+ const n = S, u = E(0), b = f(
38
+ () => n.loading || !!u.value && n.autoLoading
39
39
  ), V = (e) => async (...p) => {
40
- c.value && n.disabledWhileLoading || (b.value++, await e(...p), b.value--);
41
- }, g = n.items.map((e) => e.onClick ? {
42
- ...e,
43
- onClick: V(e.onClick)
44
- } : e), y = B(() => {
45
- const e = { ...g[0] };
40
+ b.value && n.disabledWhileLoading || (u.value++, await e(...p), u.value--);
41
+ }, y = f(
42
+ () => n.items.map((e) => e.onClick ? {
43
+ ...e,
44
+ onClick: V(e.onClick)
45
+ } : e)
46
+ ), _ = f(() => {
47
+ const e = { ...y.value[0] };
46
48
  return e.disabled = e.disabled || n.disabled, e;
47
49
  });
48
50
  return (e, p) => (s(), $("span", {
49
51
  class: W(["bb-dropdown-button", {
50
52
  "bb-dropdown-button--block": e.block,
51
- "bb-dropdown-button--loading": c.value
53
+ "bb-dropdown-button--loading": b.value
52
54
  }])
53
55
  }, [
54
- l(D, C(y.value, { class: "bb-dropdown-button__main-btn" }), {
56
+ l(D, C(_.value, { class: "bb-dropdown-button__main-btn" }), {
55
57
  default: t(() => [
56
- l(m(R), { class: "bb-dropdown-button__spinner" }),
57
- n["prepend:icon"] ? (s(), L(m(N), {
58
+ l(w(R), { class: "bb-dropdown-button__spinner" }),
59
+ n["prepend:icon"] ? (s(), L(w(N), {
58
60
  key: 0,
59
61
  class: "bb-dropdown-button__prepend-icon",
60
62
  type: n["prepend:icon"]
61
- }, null, 8, ["type"])) : w("", !0),
62
- u("span", Z, P(y.value.text), 1),
63
- c.value ? (s(), $("span", j, "caricamento")) : w("", !0),
64
- n["append:icon"] ? (s(), L(m(N), {
63
+ }, null, 8, ["type"])) : g("", !0),
64
+ m("span", Z, P(_.value.text), 1),
65
+ b.value ? (s(), $("span", j, "caricamento")) : g("", !0),
66
+ n["append:icon"] ? (s(), L(w(N), {
65
67
  key: 2,
66
68
  class: "bb-dropdown-button__append-icon",
67
69
  type: n["append:icon"]
68
- }, null, 8, ["type"])) : w("", !0)
70
+ }, null, 8, ["type"])) : g("", !0)
69
71
  ]),
70
72
  _: 1
71
73
  }, 16),
@@ -74,7 +76,7 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
74
76
  "arrow-padding": e.arrowPadding,
75
77
  disabled: e.disabled,
76
78
  eager: e.eager,
77
- items: m(g),
79
+ items: y.value,
78
80
  offset: e.offset,
79
81
  padding: e.padding,
80
82
  placement: e.placement,
@@ -85,38 +87,38 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
85
87
  activator: t(({
86
88
  props: o,
87
89
  opening: i,
88
- open: f,
89
- closed: _,
90
- closing: h,
90
+ open: c,
91
+ closed: h,
92
+ closing: v,
91
93
  disabled: k,
92
- placement: v
94
+ placement: B
93
95
  }) => [
94
96
  a(e.$slots, "activator", {
95
- closed: _,
96
- closing: h,
97
+ closed: h,
98
+ closing: v,
97
99
  disabled: k,
98
- open: f,
100
+ open: c,
99
101
  opening: i,
100
- placement: v,
102
+ placement: B,
101
103
  props: o
102
104
  }, () => [
103
105
  l(D, C(o, { class: "bb-dropdown-button__dropdown-btn" }), {
104
106
  default: t(() => [
105
- u("span", q, P(f || i ? "Chiudi" : "Apri") + " il menu", 1),
107
+ m("span", q, P(c || i ? "Chiudi" : "Apri") + " il menu", 1),
106
108
  a(e.$slots, "right-btn", {
107
- closed: _,
108
- closing: h,
109
+ closed: h,
110
+ closing: v,
109
111
  disabled: k,
110
- open: f,
112
+ open: c,
111
113
  opening: i,
112
- placement: v
114
+ placement: B
113
115
  }, () => [
114
- p[0] || (p[0] = u("svg", {
116
+ p[0] || (p[0] = m("svg", {
115
117
  class: "bb-dropdown-button__dropdown-chevron",
116
118
  viewBox: "0 0 24 24",
117
119
  xmlns: "http://www.w3.org/2000/svg"
118
120
  }, [
119
- u("path", {
121
+ m("path", {
120
122
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
121
123
  fill: "currentColor"
122
124
  })
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index258.js";
2
+ import { findInTree as ae } from "./index277.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index257.js")).default);
56
+ b || (b = (await import("./index276.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index237.js";
2
+ import { throttle as c } from "./index241.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as le, ref as l, useAttrs as se, computed as u, getCurrentInstance as ae, nextTick as ne, onBeforeUnmount as O, onMounted as ie, watch as re, openBlock as g, createBlock as ue, withCtx as ce, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as de, toDisplayString as A, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as fe } from "./index217.js";
2
+ import { useFocusTrap as fe } from "./index231.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index132.js";
5
- import { useModalsState as b } from "./index238.js";
6
- import ve from "./index224.js";
5
+ import { useModalsState as b } from "./index242.js";
6
+ import ve from "./index235.js";
7
7
  import { useMobile as pe } from "./index9.js";
8
8
  const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"], Ve = /* @__PURE__ */ le({
9
9
  __name: "BbOffCanvas",
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index259.js";
2
+ import { debounce as F } from "./index275.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index217.js";
2
+ import { useFocusTrap as z } from "./index231.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { useIntersectionObserver as R } from "./index133.js";
5
- import { waitFor as j } from "./index219.js";
5
+ import { waitFor as j } from "./index233.js";
6
6
  import G from "./index13.js";
7
7
  /* empty css */
8
- import J from "./index255.js";
8
+ import J from "./index273.js";
9
9
  /* empty css */
10
- import { useDebounceFn as K } from "./index206.js";
10
+ import { useDebounceFn as K } from "./index207.js";
11
11
  const re = /* @__PURE__ */ M({
12
12
  __name: "BbPopover",
13
13
  props: {
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index207.js";
2
+ import { clamp as p } from "./index206.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.96",
3
+ "version": "2.0.97",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index209.js DELETED
@@ -1,128 +0,0 @@
1
- import { arrow as j, computePosition as A } from "./index225.js";
2
- import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index225.js";
3
- import { isNode as B, getNodeName as F } from "./index284.js";
4
- import { getOverflowAncestors as le } from "./index284.js";
5
- import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
- function z(e) {
7
- return e != null && typeof e == "object" && "$el" in e;
8
- }
9
- function g(e) {
10
- if (z(e)) {
11
- const l = e.$el;
12
- return B(l) && F(l) === "#comment" ? null : l;
13
- }
14
- return e;
15
- }
16
- function o(e) {
17
- return typeof e == "function" ? e() : q(e);
18
- }
19
- function K(e) {
20
- return {
21
- name: "arrow",
22
- options: e,
23
- fn(l) {
24
- const t = g(o(e.element));
25
- return t == null ? {} : j({
26
- element: t,
27
- padding: e.padding
28
- }).fn(l);
29
- }
30
- };
31
- }
32
- function M(e) {
33
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
- }
35
- function C(e, l) {
36
- const t = M(e);
37
- return Math.round(l * t) / t;
38
- }
39
- function L(e, l, t) {
40
- t === void 0 && (t = {});
41
- const x = t.whileElementsMounted, V = a(() => {
42
- var n;
43
- return (n = o(t.open)) != null ? n : !0;
44
- }), D = a(() => o(t.middleware)), d = a(() => {
45
- var n;
46
- return (n = o(t.placement)) != null ? n : "bottom";
47
- }), v = a(() => {
48
- var n;
49
- return (n = o(t.strategy)) != null ? n : "absolute";
50
- }), S = a(() => {
51
- var n;
52
- return (n = o(t.transform)) != null ? n : !0;
53
- }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
- const n = {
55
- position: c.value,
56
- left: "0",
57
- top: "0"
58
- };
59
- if (!u.value)
60
- return n;
61
- const R = C(u.value, p.value), b = C(u.value, w.value);
62
- return S.value ? {
63
- ...n,
64
- transform: "translate(" + R + "px, " + b + "px)",
65
- ...M(u.value) >= 1.5 && {
66
- willChange: "transform"
67
- }
68
- } : {
69
- position: c.value,
70
- left: R + "px",
71
- top: b + "px"
72
- };
73
- });
74
- let s;
75
- function m() {
76
- i.value == null || u.value == null || A(i.value, u.value, {
77
- middleware: D.value,
78
- placement: d.value,
79
- strategy: v.value
80
- }).then((n) => {
81
- p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
- });
83
- }
84
- function E() {
85
- typeof s == "function" && (s(), s = void 0);
86
- }
87
- function N() {
88
- if (E(), x === void 0) {
89
- m();
90
- return;
91
- }
92
- if (i.value != null && u.value != null) {
93
- s = x(i.value, u.value, m);
94
- return;
95
- }
96
- }
97
- function $() {
98
- V.value || (y.value = !1);
99
- }
100
- return h([D, d, v], m, {
101
- flush: "sync"
102
- }), h([i, u], N, {
103
- flush: "sync"
104
- }), h(V, $, {
105
- flush: "sync"
106
- }), U() && k(E), {
107
- x: r(p),
108
- y: r(w),
109
- strategy: r(c),
110
- placement: r(O),
111
- middlewareData: r(P),
112
- isPositioned: r(y),
113
- floatingStyles: _,
114
- update: m
115
- };
116
- }
117
- export {
118
- K as arrow,
119
- W as autoUpdate,
120
- A as computePosition,
121
- X as flip,
122
- le as getOverflowAncestors,
123
- Y as hide,
124
- Z as offset,
125
- ee as platform,
126
- ne as shift,
127
- L as useFloating
128
- };
package/dist/index239.js DELETED
@@ -1,4 +0,0 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
- export {
3
- s as isCssColor
4
- };
package/dist/index246.js DELETED
@@ -1,108 +0,0 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index228.js";
3
- import { isNil as l } from "./index130.js";
4
- import E from "./index125.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: O({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": P((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
- }
105
- });
106
- export {
107
- K as default
108
- };
package/dist/index255.js DELETED
@@ -1,91 +0,0 @@
1
- import { defineComponent as h, toRef as y, ref as n, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
2
- import C from "./index224.js";
3
- import f from "./index318.js";
4
- import { useFloating as D, arrow as E } from "./index209.js";
5
- import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index225.js";
6
- const j = /* @__PURE__ */ h({
7
- __name: "CommonFloating",
8
- props: {
9
- arrowPadding: {},
10
- eager: { type: Boolean },
11
- offset: {},
12
- padding: {},
13
- placement: {},
14
- theme: {},
15
- transitionDuration: {},
16
- containerAttributes: { default: () => ({}) },
17
- bubbleAttributes: {},
18
- wrapper: {},
19
- baseClass: {},
20
- open: { type: Boolean }
21
- },
22
- setup(d) {
23
- const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
24
- r,
25
- l,
26
- {
27
- placement: e.placement,
28
- whileElementsMounted: P,
29
- middleware: [
30
- F(),
31
- S(e.offset),
32
- M({ padding: e.padding }),
33
- E({
34
- element: i,
35
- padding: e.arrowPadding
36
- })
37
- ]
38
- }
39
- ), _ = a(() => {
40
- if (s.value.arrow) {
41
- const { x: t, y: u } = s.value.arrow;
42
- return {
43
- style: {
44
- left: `${t}px`,
45
- top: `${u}px`
46
- }
47
- };
48
- }
49
- }), p = a(() => f({}, e.containerAttributes, {
50
- class: {
51
- "bb-floating": !0,
52
- [`bb-floating--${w.value}`]: !0,
53
- [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
54
- "bb-floating--hidden": !e.open,
55
- "bb-floating--open": e.open
56
- },
57
- style: {
58
- ...g.value,
59
- "--transition-duration": `${e.transitionDuration}ms`
60
- },
61
- tabindex: e.open ? void 0 : -1
62
- })), v = a(() => f({}, e.bubbleAttributes, {}));
63
- return $(
64
- () => e.open,
65
- (t) => {
66
- t && (r.value = m.value);
67
- }
68
- ), (t, u) => (b(), A(C, null, {
69
- default: k(() => [
70
- (b(), x("span", o(p.value, {
71
- key: p.value.id,
72
- ref_key: "content",
73
- ref: l
74
- }), [
75
- c("span", o({
76
- ref_key: "bubblearrow",
77
- ref: i,
78
- class: "bb-floating__arrow"
79
- }, _.value), null, 16),
80
- c("span", o({ class: "bb-floating__bubble" }, v.value), [
81
- B(t.$slots, "default")
82
- ], 16)
83
- ], 16))
84
- ]),
85
- _: 3
86
- }));
87
- }
88
- });
89
- export {
90
- j as default
91
- };
package/dist/index274.js DELETED
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };