bitboss-ui 2.0.152 → 2.0.154

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 (166) hide show
  1. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  3. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  4. package/dist/index100.js +9 -9
  5. package/dist/index111.js +11 -11
  6. package/dist/index117.js +14 -12
  7. package/dist/index119.js +2 -2
  8. package/dist/index121.js +6 -6
  9. package/dist/index123.js +1 -1
  10. package/dist/index125.js +1 -1
  11. package/dist/index127.js +1 -1
  12. package/dist/index128.js +1 -1
  13. package/dist/index129.js +1 -1
  14. package/dist/index13.js +1 -1
  15. package/dist/index133.js +1 -1
  16. package/dist/index134.js +2 -2
  17. package/dist/index15.js +8 -8
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index208.js +2 -4
  21. package/dist/index209.js +34 -41
  22. package/dist/index21.js +16 -16
  23. package/dist/index210.js +3 -20
  24. package/dist/index211.js +4 -94
  25. package/dist/index212.js +43 -0
  26. package/dist/index213.js +18 -198
  27. package/dist/index214.js +96 -0
  28. package/dist/index216.js +202 -0
  29. package/dist/index218.js +65 -12
  30. package/dist/index220.js +13 -4
  31. package/dist/index221.js +13 -2
  32. package/dist/index222.js +3 -5
  33. package/dist/index223.js +6 -125
  34. package/dist/index224.js +7 -16
  35. package/dist/index225.js +8 -16
  36. package/dist/index226.js +15 -19
  37. package/dist/index227.js +5 -15
  38. package/dist/index228.js +16 -2
  39. package/dist/index229.js +16 -2
  40. package/dist/index23.js +16 -16
  41. package/dist/index230.js +19 -6
  42. package/dist/index231.js +15 -2
  43. package/dist/index232.js +19 -3
  44. package/dist/index233.js +22 -14
  45. package/dist/index234.js +3 -27
  46. package/dist/index235.js +2 -3
  47. package/dist/index236.js +248 -6
  48. package/dist/index237.js +42 -240
  49. package/dist/index238.js +35 -43
  50. package/dist/index239.js +5 -44
  51. package/dist/index240.js +60 -5
  52. package/dist/index241.js +80 -54
  53. package/dist/index243.js +31 -0
  54. package/dist/index244.js +13 -25
  55. package/dist/index245.js +48 -14
  56. package/dist/index246.js +12 -48
  57. package/dist/index247.js +11 -14
  58. package/dist/index248.js +15 -11
  59. package/dist/index249.js +125 -16
  60. package/dist/index25.js +7 -7
  61. package/dist/index250.js +2 -34
  62. package/dist/index251.js +2 -3
  63. package/dist/index252.js +2 -7
  64. package/dist/index253.js +4 -15
  65. package/dist/index254.js +2 -2
  66. package/dist/index255.js +18 -2
  67. package/dist/index256.js +126 -2
  68. package/dist/index257.js +106 -176
  69. package/dist/{index260.js → index259.js} +2 -2
  70. package/dist/index261.js +14 -0
  71. package/dist/index262.js +227 -17
  72. package/dist/index263.js +353 -110
  73. package/dist/index264.js +2 -12
  74. package/dist/index265.js +2 -228
  75. package/dist/index266.js +162 -355
  76. package/dist/index269.js +6 -9
  77. package/dist/index27.js +1 -1
  78. package/dist/index270.js +16 -23
  79. package/dist/index271.js +9 -6
  80. package/dist/index272.js +23 -16
  81. package/dist/index274.js +2 -431
  82. package/dist/index275.js +224 -3
  83. package/dist/index276.js +431 -3
  84. package/dist/index277.js +1 -1
  85. package/dist/index278.js +5 -0
  86. package/dist/index279.js +3 -7
  87. package/dist/index281.js +7 -11
  88. package/dist/index282.js +6 -3
  89. package/dist/index283.js +11 -200
  90. package/dist/index284.js +2 -281
  91. package/dist/index285.js +88 -5
  92. package/dist/index286.js +9 -2
  93. package/dist/index287.js +8 -2
  94. package/dist/index288.js +281 -2
  95. package/dist/index289.js +6 -2
  96. package/dist/index29.js +2 -2
  97. package/dist/index290.js +2 -2
  98. package/dist/index292.js +2 -224
  99. package/dist/index295.js +2 -2
  100. package/dist/index296.js +2 -2
  101. package/dist/index297.js +1 -1
  102. package/dist/index298.js +1 -1
  103. package/dist/index299.js +2 -28
  104. package/dist/index300.js +1 -21
  105. package/dist/index301.js +30 -0
  106. package/dist/index302.js +22 -3
  107. package/dist/index304.js +199 -8
  108. package/dist/index305.js +2 -2
  109. package/dist/index306.js +4 -8
  110. package/dist/index307.js +3 -2
  111. package/dist/index308.js +15 -87
  112. package/dist/index309.js +126 -3
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +1 -1
  115. package/dist/index311.js +3 -126
  116. package/dist/index312.js +1 -1
  117. package/dist/index315.js +480 -2
  118. package/dist/index316.js +5 -67
  119. package/dist/index317.js +2 -5
  120. package/dist/index321.js +4 -32
  121. package/dist/index322.js +8 -28
  122. package/dist/index324.js +5 -6
  123. package/dist/index325.js +8 -19
  124. package/dist/index326.js +65 -56
  125. package/dist/index327.js +32 -57
  126. package/dist/index328.js +28 -7
  127. package/dist/index33.js +8 -8
  128. package/dist/index330.js +3 -5
  129. package/dist/index331.js +57 -7
  130. package/dist/index332.js +57 -479
  131. package/dist/index333.js +6 -4
  132. package/dist/index334.js +18 -7
  133. package/dist/index335.js +6 -46
  134. package/dist/index336.js +46 -3
  135. package/dist/index337.js +1 -1
  136. package/dist/index339.js +1 -1
  137. package/dist/index340.js +2 -424
  138. package/dist/index341.js +424 -2
  139. package/dist/index35.js +4 -4
  140. package/dist/index37.js +22 -22
  141. package/dist/index39.js +4 -4
  142. package/dist/index41.js +2 -2
  143. package/dist/index43.js +8 -8
  144. package/dist/index45.js +8 -8
  145. package/dist/index47.js +2 -2
  146. package/dist/index49.js +4 -3
  147. package/dist/index53.js +1 -1
  148. package/dist/index55.js +1 -1
  149. package/dist/index57.js +2 -2
  150. package/dist/index61.js +1 -1
  151. package/dist/index75.js +3 -3
  152. package/dist/index77.js +1 -1
  153. package/dist/index79.js +2 -2
  154. package/dist/index81.js +1 -1
  155. package/dist/index84.js +4 -4
  156. package/dist/index86.js +1 -1
  157. package/dist/index88.js +5 -5
  158. package/package.json +1 -1
  159. package/dist/index215.js +0 -68
  160. package/dist/index217.js +0 -15
  161. package/dist/index219.js +0 -4
  162. package/dist/index242.js +0 -88
  163. package/dist/index258.js +0 -108
  164. package/dist/index280.js +0 -9
  165. package/dist/index303.js +0 -19
  166. /package/dist/{index329.js → index323.js} +0 -0
package/dist/index77.js CHANGED
@@ -9,7 +9,7 @@ import S from "./index127.js";
9
9
  /* empty css */
10
10
  import R from "./index129.js";
11
11
  /* empty css */
12
- import { useLocale as T } from "./index218.js";
12
+ import { useLocale as T } from "./index221.js";
13
13
  const Z = { class: "bb-dropdown-button__content" }, q = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
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 "./index272.js";
2
+ import { findInTree as ae } from "./index270.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("./index271.js")).default);
56
+ b || (b = (await import("./index269.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 "./index251.js";
2
+ import { throttle as c } from "./index222.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, nextTick as re, onBeforeUnmount as A, onMounted as ue, watch as ce, openBlock as g, createBlock as de, withCtx as fe, createElementVNode as s, mergeProps as E, createElementBlock as $, renderSlot as n, createTextVNode as ve, toDisplayString as H, unref as pe, createCommentVNode as T } from "vue";
2
- import { useFocusTrap as be } from "./index209.js";
2
+ import { useFocusTrap as be } from "./index212.js";
3
3
  import { useId as I } from "./index8.js";
4
4
  import { wait as D } from "./index130.js";
5
- import { useModalsState as b } from "./index252.js";
6
- import me from "./index253.js";
5
+ import { useModalsState as b } from "./index224.js";
6
+ import me from "./index226.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index218.js";
8
+ import { useLocale as he } from "./index221.js";
9
9
  const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index86.js CHANGED
@@ -4,7 +4,7 @@ import { debounce as T } from "./index273.js";
4
4
  /* empty css */
5
5
  import z from "./index13.js";
6
6
  /* empty css */
7
- import { useLocale as D } from "./index218.js";
7
+ import { useLocale as D } from "./index221.js";
8
8
  const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
9
9
  __name: "BbPagination",
10
10
  props: {
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index209.js";
2
+ import { useFocusTrap as j } from "./index212.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index230.js";
5
+ import { waitFor as K } from "./index223.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index211.js";
8
+ import U from "./index214.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index218.js";
10
+ import { useLocale as X } from "./index221.js";
11
11
  import { useDebounceFn as Y } from "./index207.js";
12
12
  const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
@@ -147,7 +147,7 @@ const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
147
147
  wrapper: r.value
148
148
  }, {
149
149
  default: T(() => [
150
- p("div", {
150
+ p("span", {
151
151
  ref_key: "content",
152
152
  ref: l,
153
153
  class: "bb-popover__content"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.152",
3
+ "version": "2.0.154",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index215.js DELETED
@@ -1,68 +0,0 @@
1
- import { defineComponent as _, ref as $, openBlock as r, createElementBlock as k, normalizeClass as y, renderSlot as n, createElementVNode as c, createBlock as s, unref as p, createCommentVNode as l, createVNode as i } from "vue";
2
- /* empty css */
3
- /* empty css */
4
- import m from "./index127.js";
5
- /* empty css */
6
- import C from "./index129.js";
7
- /* empty css */
8
- import h from "./index321.js";
9
- import B from "./index322.js";
10
- /* empty css */
11
- const v = { class: "bb-common-input-inner-container__prefix" }, I = { class: "bb-common-input-inner-container__suffix" }, A = /* @__PURE__ */ _({
12
- __name: "CommonInputInnerContainer",
13
- props: {
14
- "append:icon": {},
15
- clearable: { type: Boolean },
16
- "prepend:icon": {},
17
- preventFocus: { type: Boolean }
18
- },
19
- emits: ["click:clear"],
20
- setup(u, { emit: d }) {
21
- const t = u, f = d, o = $(), a = () => {
22
- var e;
23
- !o.value || t.preventFocus || (e = o.value.querySelector("input")) == null || e.focus();
24
- }, b = () => {
25
- f("click:clear"), a();
26
- };
27
- return (e, E) => (r(), k("span", {
28
- ref_key: "container",
29
- ref: o,
30
- class: y(["bb-common-input-inner-container", {
31
- "bb-common-input-inner-container--clearable": t.clearable
32
- }]),
33
- onClick: a
34
- }, [
35
- n(e.$slots, "prepend", {}, () => [
36
- c("span", v, [
37
- n(e.$slots, "prefix")
38
- ])
39
- ]),
40
- e.$props["prepend:icon"] ? (r(), s(p(m), {
41
- key: 0,
42
- class: "bb-common-input-inner-container__prepend-icon",
43
- type: e.$props["prepend:icon"]
44
- }, null, 8, ["type"])) : l("", !0),
45
- n(e.$slots, "default"),
46
- i(B, {
47
- "aria-hidden": !e.clearable,
48
- tabindex: e.clearable ? 0 : -1,
49
- onClick: b
50
- }, null, 8, ["aria-hidden", "tabindex"]),
51
- e.$props["append:icon"] ? (r(), s(p(m), {
52
- key: 1,
53
- class: "bb-common-input-inner-container__append-icon",
54
- type: e.$props["append:icon"]
55
- }, null, 8, ["type"])) : l("", !0),
56
- i(h),
57
- i(p(C)),
58
- n(e.$slots, "append", {}, () => [
59
- c("span", I, [
60
- n(e.$slots, "suffix")
61
- ])
62
- ])
63
- ], 2));
64
- }
65
- });
66
- export {
67
- A as default
68
- };
package/dist/index217.js DELETED
@@ -1,15 +0,0 @@
1
- import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index279.js";
4
- const s = {}, c = { class: "bb-common-input-outer-container" };
5
- function p(o, a) {
6
- return t(), n("span", c, [
7
- e(o.$slots, "prepend-outer"),
8
- e(o.$slots, "default"),
9
- e(o.$slots, "append-outer")
10
- ]);
11
- }
12
- const i = /* @__PURE__ */ r(s, [["render", p]]);
13
- export {
14
- i as default
15
- };
package/dist/index219.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/index242.js DELETED
@@ -1,88 +0,0 @@
1
- import { defineComponent as h, openBlock as n, createElementBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createTextVNode as o, toDisplayString as d, unref as b, createCommentVNode as p, Fragment as m, renderList as u } from "vue";
2
- import { useLocale as g } from "./index218.js";
3
- const k = { class: "bb-cr-container__container" }, y = {
4
- key: 0,
5
- class: "bb-cr-container__loading-container"
6
- }, $ = {
7
- key: 1,
8
- class: "bb-cr-container__no-data-container"
9
- }, C = /* @__PURE__ */ h({
10
- __name: "OptionsContainer",
11
- props: {
12
- direction: {},
13
- hasErrors: { type: Boolean },
14
- hideLabel: { type: Boolean },
15
- loadingText: {},
16
- loading: { type: Boolean },
17
- noDataText: {},
18
- options: {}
19
- },
20
- setup(f) {
21
- const { t: i } = g();
22
- return (a, T) => (n(), s("span", {
23
- ref: "container",
24
- class: r(["bb-cr-container", {
25
- "bb-cr-container--errors": a.hasErrors,
26
- "bb-cr-container--horizontal": a.direction === "horizontal",
27
- "bb-cr-container--vertical": a.direction === "vertical"
28
- }])
29
- }, [
30
- l("span", k, [
31
- t(a.$slots, "prepend"),
32
- !a.options.length && a.loading ? (n(), s("span", y, [
33
- t(a.$slots, "loading", {}, () => [
34
- o(d(a.loadingText || b(i)("common.loadingText")), 1)
35
- ])
36
- ])) : a.options.length ? p("", !0) : (n(), s("span", $, [
37
- t(a.$slots, "no-data", {}, () => [
38
- o(d(a.noDataText || b(i)("common.noDataText")), 1)
39
- ])
40
- ])),
41
- (n(!0), s(m, null, u(a.options, (e, c) => (n(), s(m, {
42
- key: (e == null ? void 0 : e.valueHash) || c
43
- }, [
44
- t(a.$slots, "option:prepend", {
45
- id: e.valueHash,
46
- checked: !!e.selected,
47
- disabled: !!e.disabled,
48
- item: e.item,
49
- text: e.text
50
- }),
51
- l("label", {
52
- class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
53
- }, [
54
- t(a.$slots, "input", {
55
- index: c,
56
- option: e
57
- }),
58
- l("span", {
59
- class: r({
60
- "bb-cr-container-option__text": !0,
61
- "sr-only": a.hideLabel
62
- })
63
- }, [
64
- t(a.$slots, "label", {
65
- checked: !!e.selected,
66
- item: e.item,
67
- text: e.text
68
- }, () => [
69
- o(d(e.text), 1)
70
- ])
71
- ], 2)
72
- ], 2),
73
- t(a.$slots, "option:append", {
74
- id: e.valueHash,
75
- checked: !!e.selected,
76
- disabled: !!e.disabled,
77
- item: e.item,
78
- text: e.text
79
- })
80
- ], 64))), 128)),
81
- t(a.$slots, "append")
82
- ])
83
- ], 2));
84
- }
85
- });
86
- export {
87
- C as default
88
- };
package/dist/index258.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 "./index235.js";
3
- import { isNil as l } from "./index256.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/index280.js DELETED
@@ -1,9 +0,0 @@
1
- import o from "./index326.js";
2
- import r from "./index327.js";
3
- const e = {
4
- it: o,
5
- en: r
6
- };
7
- export {
8
- e as locales
9
- };
package/dist/index303.js DELETED
@@ -1,19 +0,0 @@
1
- import { get as t } from "./index281.js";
2
- const o = () => ({
3
- getItemText(r, n) {
4
- if (typeof r == "string" && !n) return r;
5
- if (n) {
6
- if (typeof n == "function") {
7
- let f = n(r);
8
- return typeof f != "string" && (f = JSON.stringify(f)), f;
9
- } else if (typeof n == "string") {
10
- const f = t(r, n);
11
- return typeof f == "string" ? f : JSON.stringify(f);
12
- }
13
- }
14
- return JSON.stringify(r);
15
- }
16
- });
17
- export {
18
- o as useItemText
19
- };
File without changes