bitboss-ui 0.2.17 → 0.2.19

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 (148) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -0
  3. package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -0
  4. package/dist/index101.js +1 -1
  5. package/dist/index103.js +2 -2
  6. package/dist/index109.js +1 -1
  7. package/dist/index11.js +2 -2
  8. package/dist/index111.js +4 -4
  9. package/dist/index113.js +1 -1
  10. package/dist/index116.js +1 -1
  11. package/dist/index117.js +1 -1
  12. package/dist/index118.js +1 -1
  13. package/dist/index119.js +1 -1
  14. package/dist/index125.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index131.js +2 -2
  17. package/dist/index15.js +8 -8
  18. package/dist/index17.js +9 -9
  19. package/dist/index19.js +3 -3
  20. package/dist/index197.js +235 -5
  21. package/dist/index197.js.map +1 -1
  22. package/dist/index198.js +3 -16
  23. package/dist/index198.js.map +1 -1
  24. package/dist/index199.js +35 -16
  25. package/dist/index199.js.map +1 -1
  26. package/dist/index200.js +6 -19
  27. package/dist/index200.js.map +1 -1
  28. package/dist/index201.js +2 -20
  29. package/dist/index201.js.map +1 -1
  30. package/dist/index202.js +4 -29
  31. package/dist/index202.js.map +1 -1
  32. package/dist/index203.js +10 -8
  33. package/dist/index203.js.map +1 -1
  34. package/dist/index204.js +5 -2
  35. package/dist/index204.js.map +1 -1
  36. package/dist/index205.js +16 -2
  37. package/dist/index205.js.map +1 -1
  38. package/dist/index206.js +16 -4
  39. package/dist/index206.js.map +1 -1
  40. package/dist/index207.js +17 -376
  41. package/dist/index207.js.map +1 -1
  42. package/dist/index208.js +17 -131
  43. package/dist/index208.js.map +1 -1
  44. package/dist/index209.js +29 -2
  45. package/dist/index209.js.map +1 -1
  46. package/dist/index21.js +2 -2
  47. package/dist/index210.js +8 -174
  48. package/dist/index210.js.map +1 -1
  49. package/dist/index211.js +2 -23
  50. package/dist/index211.js.map +1 -1
  51. package/dist/index212.js +3 -373
  52. package/dist/index212.js.map +1 -1
  53. package/dist/index213.js +3 -3
  54. package/dist/index213.js.map +1 -1
  55. package/dist/index214.js +376 -33
  56. package/dist/index214.js.map +1 -1
  57. package/dist/index215.js +134 -6
  58. package/dist/index215.js.map +1 -1
  59. package/dist/index216.js +2 -235
  60. package/dist/index216.js.map +1 -1
  61. package/dist/index217.js +174 -2
  62. package/dist/index217.js.map +1 -1
  63. package/dist/index218.js +23 -10
  64. package/dist/index218.js.map +1 -1
  65. package/dist/index219.js +370 -25
  66. package/dist/index219.js.map +1 -1
  67. package/dist/index220.js +2 -13
  68. package/dist/index220.js.map +1 -1
  69. package/dist/index221.js +2 -3
  70. package/dist/index221.js.map +1 -1
  71. package/dist/index222.js +9 -3
  72. package/dist/index222.js.map +1 -1
  73. package/dist/index223.js +121 -2
  74. package/dist/index223.js.map +1 -1
  75. package/dist/index224.js +27 -8
  76. package/dist/index224.js.map +1 -1
  77. package/dist/index225.js +12 -120
  78. package/dist/index225.js.map +1 -1
  79. package/dist/index226.js +1 -1
  80. package/dist/index228.js +4 -295
  81. package/dist/index228.js.map +1 -1
  82. package/dist/index229.js +434 -5
  83. package/dist/index229.js.map +1 -1
  84. package/dist/index230.js +89 -2
  85. package/dist/index230.js.map +1 -1
  86. package/dist/index231.js +162 -2
  87. package/dist/index231.js.map +1 -1
  88. package/dist/index232.js +2 -2
  89. package/dist/index233.js +69 -2
  90. package/dist/index233.js.map +1 -1
  91. package/dist/index234.js +2 -2
  92. package/dist/index234.js.map +1 -1
  93. package/dist/index235.js +2 -2
  94. package/dist/index236.js +199 -3
  95. package/dist/index236.js.map +1 -1
  96. package/dist/index237.js +295 -2
  97. package/dist/index237.js.map +1 -1
  98. package/dist/index238.js +5 -116
  99. package/dist/index238.js.map +1 -1
  100. package/dist/index239.js +2 -106
  101. package/dist/index239.js.map +1 -1
  102. package/dist/index240.js +2 -162
  103. package/dist/index240.js.map +1 -1
  104. package/dist/index241.js +2 -2
  105. package/dist/index242.js +2 -435
  106. package/dist/index242.js.map +1 -1
  107. package/dist/index243.js +2 -89
  108. package/dist/index243.js.map +1 -1
  109. package/dist/index244.js +2 -200
  110. package/dist/index244.js.map +1 -1
  111. package/dist/index245.js +224 -2
  112. package/dist/index245.js.map +1 -1
  113. package/dist/index246.js +257 -68
  114. package/dist/index246.js.map +1 -1
  115. package/dist/index247.js +2 -38
  116. package/dist/index247.js.map +1 -1
  117. package/dist/index248.js +117 -2
  118. package/dist/index248.js.map +1 -1
  119. package/dist/index249.js +106 -2
  120. package/dist/index249.js.map +1 -1
  121. package/dist/index25.js +2 -2
  122. package/dist/index250.js +37 -223
  123. package/dist/index250.js.map +1 -1
  124. package/dist/index251.js +2 -258
  125. package/dist/index251.js.map +1 -1
  126. package/dist/index252.js +2 -2
  127. package/dist/index252.js.map +1 -1
  128. package/dist/index254.js +2 -3
  129. package/dist/index254.js.map +1 -1
  130. package/dist/index255.js +3 -2
  131. package/dist/index255.js.map +1 -1
  132. package/dist/index29.js +3 -3
  133. package/dist/index31.js +42 -40
  134. package/dist/index31.js.map +1 -1
  135. package/dist/index33.js +1 -1
  136. package/dist/index35.js +2 -2
  137. package/dist/index47.js +1 -1
  138. package/dist/index49.js +1 -1
  139. package/dist/index65.js +5 -5
  140. package/dist/index69.js +2 -2
  141. package/dist/index72.js +1 -1
  142. package/dist/index75.js +1 -1
  143. package/dist/index79.js +70 -62
  144. package/dist/index79.js.map +1 -1
  145. package/dist/index91.js +18 -16
  146. package/dist/index91.js.map +1 -1
  147. package/dist/style.css +1 -1
  148. package/package.json +1 -1
package/dist/index31.js CHANGED
@@ -1,26 +1,26 @@
1
- import { defineComponent as Ne, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as x, renderSlot as h, createElementVNode as w, Fragment as D, renderList as j, toDisplayString as L, createBlock as se, withModifiers as B, withCtx as Le, createTextVNode as ee, createCommentVNode as ie, withDirectives as Fe, vModelDynamic as Ae, Teleport as Me, normalizeStyle as Je, createVNode as qe, mergeProps as ze, nextTick as oe } from "vue";
1
+ import { defineComponent as Ne, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as x, renderSlot as h, createElementVNode as w, Fragment as D, renderList as j, toDisplayString as L, createBlock as se, withModifiers as B, withCtx as Le, createTextVNode as ee, createCommentVNode as oe, withDirectives as Fe, vModelDynamic as Ae, Teleport as Me, normalizeStyle as Je, createVNode as qe, mergeProps as ze, nextTick as ie } from "vue";
2
2
  import Pe from "./index115.js";
3
3
  import "./index158.js";
4
4
  import He from "./index119.js";
5
5
  import "./index185.js";
6
- import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index207.js";
6
+ import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index214.js";
7
7
  import { deepEqual as re } from "./index123.js";
8
- import { head as le } from "./index223.js";
8
+ import { head as le } from "./index221.js";
9
9
  import { isNotNil as I } from "./index124.js";
10
- import { last as Re } from "./index204.js";
10
+ import { last as Re } from "./index211.js";
11
11
  import { useItemText as Ke } from "./index125.js";
12
12
  import { useItemValue as Ye } from "./index126.js";
13
13
  import { wait as q } from "./index122.js";
14
- import { waitFor as Ze } from "./index215.js";
15
- import { when as Ge } from "./index206.js";
16
- import { offset as Xe } from "./index212.js";
17
- const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "disabled", "id", "placeholder", "readonly"], tl = {
14
+ import { waitFor as Ze } from "./index200.js";
15
+ import { when as Ge } from "./index202.js";
16
+ import { offset as Xe } from "./index219.js";
17
+ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "autofocus", "disabled", "id", "placeholder", "readonly"], tl = {
18
18
  key: 0,
19
19
  class: "bb-base-select__loading-container"
20
20
  }, al = {
21
21
  key: 1,
22
22
  class: "bb-base-select__no-data-container"
23
- }, nl = ["aria-selected", "id"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" }, il = { class: "bb-base-select__chevron" }, ol = /* @__PURE__ */ w("svg", {
23
+ }, nl = ["aria-selected", "id"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" }, ol = { class: "bb-base-select__chevron" }, il = /* @__PURE__ */ w("svg", {
24
24
  viewBox: "0 0 16 8",
25
25
  fill: "none",
26
26
  xmlns: "http://www.w3.org/2000/svg"
@@ -35,6 +35,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
35
35
  __name: "BaseSelect",
36
36
  props: {
37
37
  allowWriting: { type: Boolean, default: !0 },
38
+ autocomplete: {},
38
39
  autofocus: {},
39
40
  dependencies: {},
40
41
  depsDebounceTime: { default: 0 },
@@ -69,7 +70,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
69
70
  const l = de, c = ce;
70
71
  if (l.multiple && !Array.isArray(l.modelValue))
71
72
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
72
- const F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() => o.value.length ? "" : l.placeholder), d = f(0), ve = l.transitionDuration / 1e3 + "s";
73
+ const F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() => i.value.length ? "" : l.placeholder), d = f(0), ve = l.transitionDuration / 1e3 + "s";
73
74
  let te;
74
75
  $e(async () => {
75
76
  E.value && v.value && (te = je(
@@ -123,7 +124,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
123
124
  );
124
125
  }), k = g(() => {
125
126
  let e = [];
126
- return s.value && !o.value.some(
127
+ return s.value && !i.value.some(
127
128
  (a) => a.text === s.value
128
129
  ) ? e = C.value.filter((a) => {
129
130
  let t = !1;
@@ -192,7 +193,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
192
193
  };
193
194
  } else
194
195
  throw new Error("No match strategy has been defined");
195
- }), o = g(() => [].concat(l.modelValue).reduce((e, a) => {
196
+ }), i = g(() => [].concat(l.modelValue).reduce((e, a) => {
196
197
  const t = p.value.get(a);
197
198
  return t && e.push(t), e;
198
199
  }, [])), A = (e) => {
@@ -339,8 +340,8 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
339
340
  }
340
341
  }, Ce = (e) => c("change", e), ke = (e) => {
341
342
  c("input", e), s.value === "" && (l.multiple || c("update:modelValue", null)), typeof l.items == "function" && Se();
342
- }, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value), i = f(null), _e = () => {
343
- r.value !== null ? r.value++ : r.value = 0, oe().then(() => {
343
+ }, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value), o = f(null), _e = () => {
344
+ r.value !== null ? r.value++ : r.value = 0, ie().then(() => {
344
345
  var e;
345
346
  if (O.value !== null) {
346
347
  const a = (e = v.value) == null ? void 0 : e.querySelector(
@@ -354,7 +355,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
354
355
  }
355
356
  });
356
357
  }, Oe = () => {
357
- r.value !== null ? r.value-- : r.value = C.value.length - 1, oe().then(() => {
358
+ r.value !== null ? r.value-- : r.value = C.value.length - 1, ie().then(() => {
358
359
  var e;
359
360
  if (O.value !== null) {
360
361
  const a = (e = v.value) == null ? void 0 : e.querySelector(
@@ -378,29 +379,29 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
378
379
  {
379
380
  if (e.preventDefault(), d.value)
380
381
  return;
381
- i.value = null, _.value ? Oe() : (o.value.length && (r.value = le(o.value).index), await $());
382
+ o.value = null, _.value ? Oe() : (i.value.length && (r.value = le(i.value).index), await $());
382
383
  }
383
384
  break;
384
385
  case "ArrowDown":
385
386
  {
386
387
  if (e.preventDefault(), d.value)
387
388
  return;
388
- i.value = null, _.value ? _e() : (o.value.length && (r.value = le(o.value).index), await $());
389
+ o.value = null, _.value ? _e() : (i.value.length && (r.value = le(i.value).index), await $());
389
390
  }
390
391
  break;
391
392
  case "ArrowLeft":
392
393
  {
393
394
  if (d.value)
394
395
  return;
395
- if (!s.value && o.value.length && (i.value === null ? i.value = o.value.length - 1 : i.value > 0 ? i.value-- : i.value = null, i.value !== null)) {
396
- let n = o.value[i.value], u = (a = v.value) == null ? void 0 : a.querySelector(
396
+ if (!s.value && i.value.length && (o.value === null ? o.value = i.value.length - 1 : o.value > 0 ? o.value-- : o.value = null, o.value !== null)) {
397
+ let n = i.value[o.value], u = (a = v.value) == null ? void 0 : a.querySelector(
397
398
  `#${n.id}`
398
399
  );
399
400
  u && (u.scrollIntoView({
400
401
  behavior: "smooth",
401
402
  block: "nearest",
402
403
  inline: "start"
403
- }), r.value = z.value[o.value[i.value].id].index);
404
+ }), r.value = z.value[i.value[o.value].id].index);
404
405
  }
405
406
  }
406
407
  break;
@@ -408,15 +409,15 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
408
409
  {
409
410
  if (d.value)
410
411
  return;
411
- if (!s.value && o.value.length && (i.value === null ? i.value = 0 : i.value < o.value.length - 1 ? i.value++ : i.value = null, i.value !== null)) {
412
- let n = o.value[i.value], u = (t = v.value) == null ? void 0 : t.querySelector(
412
+ if (!s.value && i.value.length && (o.value === null ? o.value = 0 : o.value < i.value.length - 1 ? o.value++ : o.value = null, o.value !== null)) {
413
+ let n = i.value[o.value], u = (t = v.value) == null ? void 0 : t.querySelector(
413
414
  `#${n.id}`
414
415
  );
415
416
  u && (u.scrollIntoView({
416
417
  behavior: "smooth",
417
418
  block: "nearest",
418
419
  inline: "start"
419
- }), r.value = z.value[o.value[i.value].id].index);
420
+ }), r.value = z.value[i.value[o.value].id].index);
420
421
  }
421
422
  }
422
423
  break;
@@ -425,7 +426,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
425
426
  if (e.preventDefault(), d.value)
426
427
  return;
427
428
  if (!_.value)
428
- k.value.length && o.value.length && (r.value = le(o.value).index), await $();
429
+ k.value.length && i.value.length && (r.value = le(i.value).index), await $();
429
430
  else if (O.value !== null) {
430
431
  if (k.value[O.value].disabled)
431
432
  return;
@@ -447,7 +448,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
447
448
  break;
448
449
  case "Tab":
449
450
  case "Escape":
450
- _.value && await M(), c("inactive"), i.value = null, r.value = null;
451
+ _.value && await M(), c("inactive"), o.value = null, r.value = null;
451
452
  break;
452
453
  case "Shift":
453
454
  if (d.value)
@@ -457,19 +458,19 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
457
458
  {
458
459
  if (d.value)
459
460
  return;
460
- s.value || o.value.length && (i.value === null ? i.value = o.value.length - 1 : (A(
461
- o.value[i.value]
462
- ), o.value.length ? i.value = Math.max(
461
+ s.value || i.value.length && (o.value === null ? o.value = i.value.length - 1 : (A(
462
+ i.value[o.value]
463
+ ), i.value.length ? o.value = Math.max(
463
464
  Math.min(
464
- i.value,
465
- o.value.length - 2
465
+ o.value,
466
+ i.value.length - 2
466
467
  ),
467
468
  0
468
- ) : i.value = null)), await $();
469
+ ) : o.value = null)), await $();
469
470
  }
470
471
  break;
471
472
  default:
472
- i.value = null, r.value = null, await $();
473
+ o.value = null, r.value = null, await $();
473
474
  break;
474
475
  }
475
476
  };
@@ -532,18 +533,18 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
532
533
  h(e.$slots, "prepend"),
533
534
  w("span", el, [
534
535
  e.multiple ? (b(), y(D, { key: 0 }, [
535
- e.comma ? (b(!0), y(D, { key: 0 }, j(o.value, (t, n) => (b(), y("span", {
536
+ e.comma ? (b(!0), y(D, { key: 0 }, j(i.value, (t, n) => (b(), y("span", {
536
537
  class: x({
537
538
  "bb-base-select__selected": !0,
538
539
  "bb-base-select__selected--comma": !0,
539
- "bb-base-select__selected--focused": n === i.value
540
+ "bb-base-select__selected--focused": n === o.value
540
541
  }),
541
542
  key: t.id
542
- }, L(t.text) + L(n < o.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(o.value, (t, n) => (b(), se(Pe, {
543
+ }, L(t.text) + L(n < i.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(i.value, (t, n) => (b(), se(Pe, {
543
544
  class: x({
544
545
  "bb-base-select__selected": !0,
545
546
  "bb-base-select__selected--chip": !0,
546
- "bb-base-select__selected--focused": n === i.value
547
+ "bb-base-select__selected--focused": n === o.value
547
548
  }),
548
549
  clearable: !0,
549
550
  key: t.id,
@@ -567,8 +568,9 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
567
568
  ]),
568
569
  _: 2
569
570
  }, 1032, ["class", "text", "onClick:clear"]))), 128))
570
- ], 64)) : ie("", !0),
571
+ ], 64)) : oe("", !0),
571
572
  Fe(w("input", {
573
+ autocomplete: e.autocomplete,
572
574
  autofocus: e.autofocus,
573
575
  class: x("bb-base-select__text-input"),
574
576
  disabled: e.disabled,
@@ -607,7 +609,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
607
609
  h(e.$slots, "loading", { query: s.value }, () => [
608
610
  ee(L(e.loadingText), 1)
609
611
  ])
610
- ])) : k.value.length ? ie("", !0) : (b(), y("span", al, [
612
+ ])) : k.value.length ? oe("", !0) : (b(), y("span", al, [
611
613
  h(e.$slots, "no-data", { query: s.value }, () => [
612
614
  ee(L(e.noDataText), 1)
613
615
  ])
@@ -655,12 +657,12 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
655
657
  ], 6)
656
658
  ]))
657
659
  ]),
658
- w("span", il, [
660
+ w("span", ol, [
659
661
  h(e.$slots, "chevron", {
660
662
  loading: !!d.value,
661
663
  shown: _.value
662
664
  }, () => [
663
- ol
665
+ il
664
666
  ])
665
667
  ]),
666
668
  d.value ? (b(), y("span", {