bitboss-ui 2.0.105 → 2.0.106

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 (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +2 -2
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +1 -1
  22. package/dist/index131.js +1 -1
  23. package/dist/index132.js +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index205.js +2 -115
  29. package/dist/index206.js +86 -2
  30. package/dist/index208.js +25 -4
  31. package/dist/index209.js +17 -2
  32. package/dist/index21.js +110 -103
  33. package/dist/index210.js +46 -279
  34. package/dist/index211.js +15 -16
  35. package/dist/index212.js +3 -16
  36. package/dist/index213.js +12 -19
  37. package/dist/index214.js +16 -19
  38. package/dist/index215.js +2 -27
  39. package/dist/index216.js +4 -3
  40. package/dist/index217.js +2 -2
  41. package/dist/index219.js +3 -250
  42. package/dist/index220.js +41 -52
  43. package/dist/index221.js +5 -43
  44. package/dist/index222.js +7 -5
  45. package/dist/index223.js +10 -58
  46. package/dist/index224.js +12 -83
  47. package/dist/index225.js +55 -0
  48. package/dist/index227.js +13 -25
  49. package/dist/index228.js +5 -17
  50. package/dist/index229.js +15 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +16 -15
  53. package/dist/index231.js +19 -12
  54. package/dist/index232.js +15 -16
  55. package/dist/index233.js +19 -3
  56. package/dist/index234.js +26 -40
  57. package/dist/index235.js +2 -6
  58. package/dist/index236.js +250 -7
  59. package/dist/index237.js +50 -10
  60. package/dist/index238.js +39 -48
  61. package/dist/index239.js +7 -0
  62. package/dist/index240.js +60 -13
  63. package/dist/index241.js +20 -3
  64. package/dist/index242.js +3 -125
  65. package/dist/index243.js +123 -122
  66. package/dist/index244.js +125 -2
  67. package/dist/index245.js +2 -20
  68. package/dist/index246.js +2 -2
  69. package/dist/index247.js +2 -2
  70. package/dist/index248.js +114 -3
  71. package/dist/index249.js +3 -2
  72. package/dist/index25.js +44 -41
  73. package/dist/index250.js +2 -2
  74. package/dist/index251.js +18 -2
  75. package/dist/index252.js +105 -17
  76. package/dist/{index255.js → index254.js} +2 -2
  77. package/dist/index256.js +14 -0
  78. package/dist/index257.js +2 -12
  79. package/dist/index258.js +2 -10
  80. package/dist/index259.js +9 -2
  81. package/dist/index260.js +3 -6
  82. package/dist/index261.js +3 -16
  83. package/dist/index262.js +17 -9
  84. package/dist/index263.js +8 -8
  85. package/dist/index264.js +28 -23
  86. package/dist/index265.js +4 -89
  87. package/dist/index266.js +433 -0
  88. package/dist/index267.js +2 -4
  89. package/dist/index268.js +88 -5
  90. package/dist/index269.js +7 -2
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +11 -2
  93. package/dist/index271.js +3 -2
  94. package/dist/index273.js +7 -2
  95. package/dist/index274.js +200 -2
  96. package/dist/index275.js +281 -2
  97. package/dist/index276.js +6 -2
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +2 -2
  100. package/dist/index279.js +2 -28
  101. package/dist/index280.js +2 -22
  102. package/dist/index282.js +2 -7
  103. package/dist/index283.js +2 -3
  104. package/dist/index284.js +2 -7
  105. package/dist/index285.js +2 -11
  106. package/dist/index286.js +2 -17
  107. package/dist/index287.js +2 -9
  108. package/dist/index288.js +20 -429
  109. package/dist/index29.js +3 -3
  110. package/dist/index290.js +8 -88
  111. package/dist/index291.js +23 -3
  112. package/dist/index292.js +91 -0
  113. package/dist/index294.js +171 -195
  114. package/dist/index297.js +22 -176
  115. package/dist/index299.js +11 -0
  116. package/dist/index300.js +6 -8
  117. package/dist/index301.js +15 -435
  118. package/dist/index302.js +8 -127
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -3
  123. package/dist/index307.js +3 -3
  124. package/dist/index308.js +212 -56
  125. package/dist/index309.js +67 -7
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -19
  128. package/dist/index311.js +5 -66
  129. package/dist/index312.js +4 -6
  130. package/dist/index313.js +8 -2
  131. package/dist/index314.js +6 -4
  132. package/dist/index315.js +18 -7
  133. package/dist/index316.js +45 -0
  134. package/dist/index317.js +47 -2
  135. package/dist/index318.js +7 -5
  136. package/dist/index319.js +32 -2
  137. package/dist/index321.js +2 -32
  138. package/dist/index322.js +3 -47
  139. package/dist/index323.js +3 -2
  140. package/dist/index324.js +49 -471
  141. package/dist/index325.js +49 -0
  142. package/dist/index326.js +2 -424
  143. package/dist/index327.js +479 -46
  144. package/dist/index329.js +426 -0
  145. package/dist/index33.js +45 -45
  146. package/dist/index330.js +49 -0
  147. package/dist/index35.js +56 -55
  148. package/dist/index37.js +166 -165
  149. package/dist/index39.js +5 -5
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +70 -71
  152. package/dist/index45.js +7 -7
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +2 -2
  155. package/dist/index53.js +28 -27
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +32 -31
  159. package/dist/index75.js +3 -3
  160. package/dist/index77.js +87 -86
  161. package/dist/index79.js +2 -2
  162. package/dist/index81.js +1 -1
  163. package/dist/index84.js +45 -44
  164. package/dist/index86.js +67 -66
  165. package/dist/index88.js +69 -67
  166. package/dist/index90.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -4
  169. package/dist/index226.js +0 -10
  170. package/dist/index253.js +0 -108
  171. package/dist/index289.js +0 -4
  172. package/dist/index293.js +0 -226
  173. package/dist/index298.js +0 -24
  174. /package/dist/{index272.js → index281.js} +0 -0
  175. /package/dist/{index328.js → index331.js} +0 -0
package/dist/index35.js CHANGED
@@ -1,9 +1,10 @@
1
- import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index209.js";
3
- import { identity as F } from "./index244.js";
4
- import { isCssColor as v } from "./index207.js";
5
- import { isNotNil as T } from "./index134.js";
6
- const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
1
+ import { defineComponent as I, ref as v, computed as f, openBlock as l, createElementBlock as r, mergeProps as h, createElementVNode as i, renderSlot as p, Fragment as V, renderList as M, normalizeClass as D, toDisplayString as F, unref as y } from "vue";
2
+ import { booleanishToBoolean as T } from "./index217.js";
3
+ import { identity as $ } from "./index245.js";
4
+ import { isCssColor as k } from "./index215.js";
5
+ import { isNotNil as q } from "./index134.js";
6
+ import { useLocale as x } from "./index224.js";
7
+ const H = { class: "bb-base-rating__inner-container" }, S = { class: "bb-base-rating__label-text sr-only" }, N = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], j = ["height", "width"], W = /* @__PURE__ */ I({
7
8
  __name: "BaseRating",
8
9
  props: {
9
10
  ariaDescribedby: {},
@@ -20,29 +21,29 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
20
21
  size: {}
21
22
  },
22
23
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
23
- setup(y, { emit: k }) {
24
- const a = y, s = k, u = g(), o = g(!1), _ = {
25
- onBlur: (e) => s("blur", e),
24
+ setup(_, { emit: z }) {
25
+ const a = _, t = z, { t: g } = x(), u = v(), o = v(!1), w = {
26
+ onBlur: (e) => t("blur", e),
26
27
  onChange: (e) => {
27
- s("change", e), e.target instanceof HTMLInputElement && e.target.checked && s("update:modelValue", +e.target.value);
28
+ t("change", e), e.target instanceof HTMLInputElement && e.target.checked && t("update:modelValue", +e.target.value);
28
29
  },
29
30
  onClick: (e) => {
30
- s("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === a.modelValue && s("update:modelValue", null);
31
+ t("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === a.modelValue && t("update:modelValue", null);
31
32
  },
32
33
  onFocus: (e) => {
33
- s("focus", e), o.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
34
+ t("focus", e), o.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
34
35
  },
35
- onInput: (e) => s("input", e),
36
- onKeydown: (e) => s("keydown", e),
37
- onMousedown: (e) => s("mousedown", e),
38
- onMouseup: (e) => s("mouseup", e)
36
+ onInput: (e) => t("input", e),
37
+ onKeydown: (e) => t("keydown", e),
38
+ onMousedown: (e) => t("mousedown", e),
39
+ onMouseup: (e) => t("mouseup", e)
39
40
  }, c = (e) => {
40
- var t;
41
- e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (s("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
41
+ var n;
42
+ e.target instanceof HTMLElement && ((n = u.value) != null && n.contains(e.target) || (t("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
42
43
  }, d = (e) => {
43
- var t;
44
- e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (s("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
45
- }, z = {
44
+ var n;
45
+ e.target instanceof HTMLElement && ((n = u.value) != null && n.contains(e.target) || (t("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
46
+ }, E = {
46
47
  xs: 12,
47
48
  sm: 16,
48
49
  md: 24,
@@ -51,75 +52,75 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
51
52
  xxl: 40
52
53
  }, m = f(() => {
53
54
  let e;
54
- return typeof a.size == "string" ? e = z[a.size] ?? parseInt(a.size, 10) : e = a.size, e;
55
- }), w = f(() => new Array(a.stars).fill(0).map((e, t) => t + 1).map((e) => {
56
- const t = a.id ? [a.id, e].filter(F).join("_") : void 0, n = e === a.modelValue, b = !!(a.modelValue && e <= a.modelValue), L = !!(a.disabled || T(a.readonly) && D(a.readonly));
55
+ return typeof a.size == "string" ? e = E[a.size] ?? parseInt(a.size, 10) : e = a.size, e;
56
+ }), L = f(() => new Array(a.stars).fill(0).map((e, n) => n + 1).map((e) => {
57
+ const n = a.id ? [a.id, e].filter($).join("_") : void 0, s = e === a.modelValue, b = !!(a.modelValue && e <= a.modelValue), B = !!(a.disabled || q(a.readonly) && T(a.readonly));
57
58
  return {
58
- checked: n,
59
- disabled: L,
59
+ checked: s,
60
+ disabled: B,
60
61
  highlighted: b,
61
- id: t,
62
+ id: n,
62
63
  name: a.name,
63
64
  size: m.value,
64
65
  value: e
65
66
  };
66
- })), E = f(() => {
67
+ })), C = f(() => {
67
68
  let e = {};
68
- return a.color && v(a.color) && (e["--color"] = a.color), m.value && (e["--size"] = `${m.value}px`), {
69
+ return a.color && k(a.color) && (e["--color"] = a.color), m.value && (e["--size"] = `${m.value}px`), {
69
70
  class: {
70
71
  "bb-base-rating": !0,
71
72
  "bb-base-rating--has-value": a.modelValue,
72
73
  "bb-base-rating--disabled": a.disabled,
73
74
  "bb-base-rating--errors": a.hasErrors,
74
75
  "bb-base-rating--readonly": a.readonly,
75
- [`bb-base-rating--${a.color}`]: a.color && !v(a.color)
76
+ [`bb-base-rating--${a.color}`]: a.color && !k(a.color)
76
77
  },
77
78
  style: e
78
79
  };
79
80
  });
80
- return (e, t) => (l(), i("span", h(E.value, {
81
+ return (e, n) => (l(), r("span", h(C.value, {
81
82
  ref_key: "container",
82
83
  ref: u
83
84
  }), [
84
- r("span", $, [
85
+ i("span", H, [
85
86
  p(e.$slots, "prepend"),
86
- (l(!0), i(B, null, I(w.value, (n, b) => (l(), i("label", {
87
- key: n.value,
88
- class: V(["bb-base-rating__option", { "bb-base-rating__option--highlighted": n.highlighted }])
87
+ (l(!0), r(V, null, M(L.value, (s, b) => (l(), r("label", {
88
+ key: s.value,
89
+ class: D(["bb-base-rating__option", { "bb-base-rating__option--highlighted": s.highlighted }])
89
90
  }, [
90
- r("span", q, M(n.value), 1),
91
- r("input", h({
92
- id: n.id,
91
+ i("span", S, F(s.value == 1 ? y(g)("rating.singleStar", s.value, a.stars).value : y(g)("rating.multipleStars", s.value, a.stars).value), 1),
92
+ i("input", h({
93
+ id: s.id,
93
94
  "aria-describedby": e.ariaDescribedby,
94
95
  autofocus: e.autofocus && !b,
95
- checked: n.checked,
96
+ checked: s.checked,
96
97
  class: "sr-only",
97
- disabled: n.disabled,
98
- name: n.name,
98
+ disabled: s.disabled,
99
+ name: s.name,
99
100
  required: e.required,
100
101
  type: "radio",
101
- value: n.value,
102
+ value: s.value,
102
103
  ref_for: !0
103
- }, _), null, 16, x),
104
+ }, w), null, 16, N),
104
105
  p(e.$slots, "icon", {
105
- id: n.id,
106
- checked: n.checked,
107
- disabled: n.disabled,
108
- size: n.size,
109
- value: n.value
106
+ id: s.id,
107
+ checked: s.checked,
108
+ disabled: s.disabled,
109
+ size: s.size,
110
+ value: s.value
110
111
  }, () => [
111
- (l(), i("svg", {
112
- height: n.size,
112
+ (l(), r("svg", {
113
+ height: s.size,
113
114
  viewBox: "0 0 24 24",
114
- width: n.size,
115
+ width: s.size,
115
116
  xmlns: "http://www.w3.org/2000/svg"
116
- }, t[0] || (t[0] = [
117
- r("path", {
117
+ }, n[0] || (n[0] = [
118
+ i("path", {
118
119
  d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
119
120
  "stroke-linecap": "round",
120
121
  "stroke-linejoin": "round"
121
122
  }, null, -1)
122
- ]), 8, H))
123
+ ]), 8, j))
123
124
  ])
124
125
  ], 2))), 128)),
125
126
  p(e.$slots, "append")
@@ -128,5 +129,5 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
128
129
  }
129
130
  });
130
131
  export {
131
- J as default
132
+ W as default
132
133
  };