bitboss-ui 2.0.105 → 2.0.107

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/BbRows/BbRows.vue.d.ts +1 -0
  8. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  9. package/dist/components/BbTable/types.d.ts +13 -0
  10. package/dist/components/ListBox.vue.d.ts +0 -2
  11. package/dist/composables/useLocale.d.ts +1 -1
  12. package/dist/i18n/en.d.ts +45 -0
  13. package/dist/i18n/it.d.ts +45 -0
  14. package/dist/index100.js +46 -45
  15. package/dist/index111.js +223 -205
  16. package/dist/index119.js +2 -2
  17. package/dist/index121.js +55 -54
  18. package/dist/index123.js +1 -1
  19. package/dist/index125.js +14 -13
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.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/index207.js +8 -2
  29. package/dist/index208.js +3 -4
  30. package/dist/index209.js +53 -2
  31. package/dist/index21.js +110 -103
  32. package/dist/index211.js +13 -16
  33. package/dist/index212.js +3 -16
  34. package/dist/index213.js +40 -18
  35. package/dist/index214.js +6 -19
  36. package/dist/index215.js +7 -27
  37. package/dist/index216.js +12 -3
  38. package/dist/index217.js +13 -2
  39. package/dist/index218.js +2 -8
  40. package/dist/index219.js +4 -250
  41. package/dist/index220.js +2 -52
  42. package/dist/index221.js +3 -44
  43. package/dist/index222.js +20 -5
  44. package/dist/index223.js +4 -60
  45. package/dist/index224.js +281 -84
  46. package/dist/index225.js +18 -0
  47. package/dist/index226.js +16 -8
  48. package/dist/index227.js +18 -24
  49. package/dist/index228.js +14 -16
  50. package/dist/index229.js +18 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +27 -15
  53. package/dist/index231.js +2 -12
  54. package/dist/index232.js +250 -16
  55. package/dist/index233.js +52 -3
  56. package/dist/index234.js +44 -41
  57. package/dist/index235.js +5 -6
  58. package/dist/index236.js +60 -7
  59. package/dist/index237.js +126 -12
  60. package/dist/index238.js +124 -52
  61. package/dist/index239.js +4 -0
  62. package/dist/index240.js +4 -12
  63. package/dist/index241.js +369 -3
  64. package/dist/index242.js +85 -125
  65. package/dist/index244.js +25 -2
  66. package/dist/index245.js +16 -19
  67. package/dist/index246.js +48 -5
  68. package/dist/index247.js +12 -366
  69. package/dist/index248.js +12 -4
  70. package/dist/index249.js +16 -2
  71. package/dist/index25.js +44 -41
  72. package/dist/index250.js +2 -2
  73. package/dist/index251.js +18 -2
  74. package/dist/index252.js +105 -17
  75. package/dist/{index255.js → index254.js} +2 -2
  76. package/dist/index256.js +14 -0
  77. package/dist/index257.js +2 -12
  78. package/dist/index258.js +2 -10
  79. package/dist/index259.js +9 -2
  80. package/dist/index260.js +3 -6
  81. package/dist/index261.js +8 -15
  82. package/dist/index262.js +23 -9
  83. package/dist/index263.js +88 -8
  84. package/dist/index265.js +6 -89
  85. package/dist/index266.js +18 -0
  86. package/dist/index267.js +9 -4
  87. package/dist/index268.js +9 -6
  88. package/dist/index269.js +8 -2
  89. package/dist/index27.js +1 -1
  90. package/dist/index270.js +28 -2
  91. package/dist/index271.js +3 -2
  92. package/dist/index273.js +7 -2
  93. package/dist/index274.js +431 -2
  94. package/dist/index275.js +1 -1
  95. package/dist/index276.js +89 -2
  96. package/dist/index277.js +7 -2
  97. package/dist/index278.js +11 -2
  98. package/dist/index279.js +4 -28
  99. package/dist/index280.js +224 -22
  100. package/dist/index281.js +202 -0
  101. package/dist/index282.js +175 -6
  102. package/dist/index283.js +6 -3
  103. package/dist/index284.js +2 -7
  104. package/dist/index285.js +2 -11
  105. package/dist/index286.js +2 -17
  106. package/dist/index287.js +2 -9
  107. package/dist/index288.js +2 -431
  108. package/dist/index289.js +2 -2
  109. package/dist/index29.js +2 -2
  110. package/dist/index290.js +2 -89
  111. package/dist/index291.js +2 -3
  112. package/dist/index292.js +4 -0
  113. package/dist/index293.js +2 -224
  114. package/dist/index294.js +2 -200
  115. package/dist/index295.js +22 -2
  116. package/dist/index297.js +2 -176
  117. package/dist/index298.js +125 -21
  118. package/dist/index299.js +24 -0
  119. package/dist/index301.js +3 -436
  120. package/dist/index302.js +16 -126
  121. package/dist/index303.js +436 -3
  122. package/dist/index304.js +127 -3
  123. package/dist/index305.js +3 -213
  124. package/dist/index306.js +3 -3
  125. package/dist/index307.js +214 -3
  126. package/dist/index308.js +3 -58
  127. package/dist/index309.js +3 -7
  128. package/dist/index31.js +2 -2
  129. package/dist/index310.js +3 -19
  130. package/dist/index311.js +56 -64
  131. package/dist/index312.js +2 -7
  132. package/dist/index313.js +67 -2
  133. package/dist/index314.js +5 -5
  134. package/dist/index315.js +32 -7
  135. package/dist/index316.js +7 -8
  136. package/dist/index317.js +18 -7
  137. package/dist/index318.js +53 -5
  138. package/dist/index319.js +53 -3
  139. package/dist/index320.js +46 -3
  140. package/dist/index321.js +6 -32
  141. package/dist/index322.js +4 -46
  142. package/dist/index323.js +8 -2
  143. package/dist/index324.js +2 -2
  144. package/dist/index325.js +6 -0
  145. package/dist/index326.js +2 -424
  146. package/dist/index328.js +424 -2
  147. package/dist/index33.js +45 -45
  148. package/dist/index35.js +56 -55
  149. package/dist/index37.js +166 -165
  150. package/dist/index39.js +4 -4
  151. package/dist/index41.js +2 -2
  152. package/dist/index43.js +70 -71
  153. package/dist/index45.js +7 -7
  154. package/dist/index47.js +2 -2
  155. package/dist/index49.js +2 -2
  156. package/dist/index53.js +28 -27
  157. package/dist/index55.js +1 -1
  158. package/dist/index57.js +2 -2
  159. package/dist/index61.js +32 -31
  160. package/dist/index75.js +3 -3
  161. package/dist/index77.js +87 -86
  162. package/dist/index79.js +2 -2
  163. package/dist/index81.js +1 -1
  164. package/dist/index84.js +45 -44
  165. package/dist/index86.js +67 -66
  166. package/dist/index88.js +69 -67
  167. package/package.json +1 -1
  168. package/dist/index210.js +0 -283
  169. package/dist/index243.js +0 -127
  170. package/dist/index253.js +0 -108
  171. package/dist/index264.js +0 -25
  172. package/dist/index296.js +0 -128
  173. package/dist/index300.js +0 -10
  174. /package/dist/{index327.js → index329.js} +0 -0
  175. /package/dist/{index272.js → index330.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 "./index220.js";
3
+ import { identity as $ } from "./index239.js";
4
+ import { isCssColor as k } from "./index218.js";
5
+ import { isNotNil as q } from "./index134.js";
6
+ import { useLocale as x } from "./index217.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
  };