bitboss-ui 2.1.62 → 2.1.64

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 (180) hide show
  1. package/dist/composables/useConfirm.d.ts +20 -94
  2. package/dist/index107.js +9 -9
  3. package/dist/index11.js +1 -1
  4. package/dist/index112.js +1 -1
  5. package/dist/index114.js +1 -1
  6. package/dist/index120.js +1 -1
  7. package/dist/index122.js +12 -12
  8. package/dist/index13.js +1 -1
  9. package/dist/index130.js +1 -1
  10. package/dist/index132.js +6 -6
  11. package/dist/index134.js +1 -1
  12. package/dist/index136.js +2 -2
  13. package/dist/index139.js +11 -2
  14. package/dist/index140.js +2 -11
  15. package/dist/index142.js +1 -1
  16. package/dist/index143.js +2 -2
  17. package/dist/index15.js +5 -5
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index21.js +16 -16
  21. package/dist/index215.js +2 -2
  22. package/dist/index216.js +2 -2
  23. package/dist/index217.js +3 -4
  24. package/dist/index218.js +13 -8
  25. package/dist/index219.js +19 -32
  26. package/dist/index220.js +188 -80
  27. package/dist/index222.js +119 -28
  28. package/dist/index224.js +5 -51
  29. package/dist/index225.js +8 -15
  30. package/dist/index226.js +9 -3
  31. package/dist/index227.js +2 -12
  32. package/dist/index228.js +8 -16
  33. package/dist/index229.js +3 -2
  34. package/dist/index23.js +11 -11
  35. package/dist/index230.js +29 -4
  36. package/dist/index231.js +15 -9
  37. package/dist/index232.js +16 -2
  38. package/dist/index233.js +51 -13
  39. package/dist/index234.js +11 -12
  40. package/dist/index235.js +3 -13
  41. package/dist/index236.js +32 -8
  42. package/dist/index237.js +26 -118
  43. package/dist/index239.js +2 -23
  44. package/dist/index240.js +13 -4
  45. package/dist/index241.js +3 -22
  46. package/dist/index242.js +23 -3
  47. package/dist/index243.js +12 -187
  48. package/dist/index244.js +33 -2
  49. package/dist/index245.js +2 -106
  50. package/dist/index246.js +6 -0
  51. package/dist/index247.js +2 -100
  52. package/dist/index248.js +88 -0
  53. package/dist/index25.js +67 -61
  54. package/dist/index250.js +15 -2
  55. package/dist/index251.js +10 -2
  56. package/dist/index252.js +3 -9
  57. package/dist/index253.js +2 -11
  58. package/dist/index254.js +7 -8
  59. package/dist/index255.js +2 -3
  60. package/dist/index256.js +6 -3
  61. package/dist/index257.js +5 -20
  62. package/dist/index258.js +8 -193
  63. package/dist/index259.js +25 -0
  64. package/dist/index260.js +188 -5
  65. package/dist/index261.js +11 -6
  66. package/dist/index262.js +7 -15
  67. package/dist/index263.js +5 -33
  68. package/dist/index264.js +5 -28
  69. package/dist/index265.js +7 -0
  70. package/dist/index266.js +5 -9
  71. package/dist/index267.js +5 -5
  72. package/dist/index268.js +5 -5
  73. package/dist/index269.js +2 -5
  74. package/dist/index27.js +2 -2
  75. package/dist/index270.js +3 -5
  76. package/dist/index271.js +106 -5
  77. package/dist/index273.js +100 -2
  78. package/dist/index275.js +67 -2
  79. package/dist/index276.js +5 -7
  80. package/dist/index277.js +5 -7
  81. package/dist/index278.js +263 -59
  82. package/dist/index279.js +52 -5
  83. package/dist/index280.js +44 -5
  84. package/dist/index281.js +5 -271
  85. package/dist/index282.js +51 -43
  86. package/dist/index283.js +7 -44
  87. package/dist/index284.js +6 -5
  88. package/dist/index285.js +15 -59
  89. package/dist/index286.js +9 -8
  90. package/dist/index287.js +3 -18
  91. package/dist/index288.js +17 -11
  92. package/dist/index289.js +12 -229
  93. package/dist/index29.js +3 -3
  94. package/dist/index290.js +229 -7
  95. package/dist/index291.js +7 -0
  96. package/dist/index293.js +3 -5
  97. package/dist/index294.js +3 -4
  98. package/dist/index295.js +3 -2
  99. package/dist/index296.js +2 -2
  100. package/dist/index297.js +28 -3
  101. package/dist/index298.js +1 -1
  102. package/dist/index299.js +2 -28
  103. package/dist/index300.js +2 -3
  104. package/dist/index301.js +1 -1
  105. package/dist/index302.js +4 -3
  106. package/dist/index303.js +3 -4
  107. package/dist/index304.js +1 -1
  108. package/dist/index305.js +280 -5
  109. package/dist/index306.js +2 -719
  110. package/dist/index307.js +125 -366
  111. package/dist/index308.js +2 -57
  112. package/dist/index309.js +13 -278
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +2 -2
  115. package/dist/index311.js +12 -121
  116. package/dist/index312.js +2 -2
  117. package/dist/index313.js +11 -10
  118. package/dist/index315.js +15 -12
  119. package/dist/index317.js +12 -9
  120. package/dist/index319.js +25 -17
  121. package/dist/index322.js +2 -19
  122. package/dist/index323.js +2 -2
  123. package/dist/index324.js +2 -27
  124. package/dist/index325.js +22 -2
  125. package/dist/index327.js +719 -2
  126. package/dist/index328.js +366 -2
  127. package/dist/index329.js +57 -2
  128. package/dist/index33.js +8 -8
  129. package/dist/index330.js +5 -22
  130. package/dist/index331.js +8 -0
  131. package/dist/index332.js +35 -2
  132. package/dist/index333.js +6 -35
  133. package/dist/index334.js +129 -6
  134. package/dist/index335.js +382 -113
  135. package/dist/index336.js +7 -397
  136. package/dist/index337.js +6 -58
  137. package/dist/index338.js +7 -57
  138. package/dist/index339.js +57 -92
  139. package/dist/index340.js +58 -6
  140. package/dist/index341.js +92 -7
  141. package/dist/index342.js +2 -6
  142. package/dist/index343.js +4 -8
  143. package/dist/index344.js +131 -225
  144. package/dist/index348.js +225 -131
  145. package/dist/index349.js +2 -2
  146. package/dist/index35.js +4 -4
  147. package/dist/index350.js +424 -503
  148. package/dist/index351.js +114 -427
  149. package/dist/index352.js +516 -124
  150. package/dist/index37.js +19 -19
  151. package/dist/index39.js +8 -8
  152. package/dist/index41.js +2 -2
  153. package/dist/index43.js +8 -8
  154. package/dist/index45.js +6 -6
  155. package/dist/index49.js +1 -1
  156. package/dist/index53.js +1 -1
  157. package/dist/index55.js +2 -2
  158. package/dist/index57.js +2 -2
  159. package/dist/index6.js +47 -41
  160. package/dist/index61.js +3 -3
  161. package/dist/index67.js +1 -1
  162. package/dist/index7.js +2 -2
  163. package/dist/index73.js +54 -45
  164. package/dist/index75.js +6 -6
  165. package/dist/index80.js +33 -33
  166. package/dist/index82.js +1 -1
  167. package/dist/index84.js +2 -2
  168. package/dist/index86.js +3 -3
  169. package/dist/index88.js +1 -1
  170. package/dist/index91.js +4 -4
  171. package/dist/index93.js +2 -2
  172. package/dist/index95.js +5 -5
  173. package/dist/index97.js +2 -2
  174. package/package.json +1 -1
  175. package/dist/index223.js +0 -19
  176. package/dist/index249.js +0 -5
  177. package/dist/index272.js +0 -7
  178. package/dist/index274.js +0 -4
  179. package/dist/index292.js +0 -5
  180. package/dist/index326.js +0 -4
@@ -1,12 +1,13 @@
1
+ import { DeepReadonly, Ref } from 'vue';
1
2
  import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
2
- type State = {
3
+ export type ConfirmState = {
3
4
  current: StackMessage | null;
4
5
  processing: boolean;
5
6
  yesBusy: boolean;
6
7
  noBusy: boolean;
7
8
  loading: boolean;
8
9
  };
9
- type Message = {
10
+ export type ConfirmMessage = {
10
11
  text?: string;
11
12
  theme?: string;
12
13
  size?: keyof Sizes;
@@ -15,8 +16,8 @@ type Message = {
15
16
  no?: boolean;
16
17
  yesText?: string;
17
18
  noText?: string;
18
- onYes?: (...args: any[]) => any;
19
- onNo?: (...args: any[]) => any;
19
+ onYes?: () => unknown | Promise<unknown>;
20
+ onNo?: () => unknown | Promise<unknown>;
20
21
  returning?: boolean;
21
22
  autoClose?: boolean;
22
23
  timeout?: number;
@@ -27,99 +28,24 @@ type Message = {
27
28
  hideHeader?: false;
28
29
  title: string;
29
30
  });
30
- type StackMessage = Message & {
31
- resolve: (...args: any[]) => any;
32
- reject: (...args: any[]) => any;
31
+ type StackMessage = ConfirmMessage & {
32
+ resolve: (value: unknown) => void;
33
+ reject: (reason?: unknown) => void;
33
34
  };
34
- export declare const state: import('vue').Ref<{
35
- current: {
36
- text?: string | undefined;
37
- theme?: string | undefined;
38
- size?: keyof Sizes | undefined;
39
- actions?: boolean | undefined;
40
- yes?: boolean | undefined;
41
- no?: boolean | undefined;
42
- yesText?: string | undefined;
43
- noText?: string | undefined;
44
- onYes?: ((...args: any[]) => any) | undefined;
45
- onNo?: ((...args: any[]) => any) | undefined;
46
- returning?: boolean | undefined;
47
- autoClose?: boolean | undefined;
48
- timeout?: number | undefined;
49
- hideHeader: true;
50
- title?: string | undefined;
51
- resolve: (...args: any[]) => any;
52
- reject: (...args: any[]) => any;
53
- } | {
54
- text?: string | undefined;
55
- theme?: string | undefined;
56
- size?: keyof Sizes | undefined;
57
- actions?: boolean | undefined;
58
- yes?: boolean | undefined;
59
- no?: boolean | undefined;
60
- yesText?: string | undefined;
61
- noText?: string | undefined;
62
- onYes?: ((...args: any[]) => any) | undefined;
63
- onNo?: ((...args: any[]) => any) | undefined;
64
- returning?: boolean | undefined;
65
- autoClose?: boolean | undefined;
66
- timeout?: number | undefined;
67
- hideHeader?: false | undefined;
68
- title: string;
69
- resolve: (...args: any[]) => any;
70
- reject: (...args: any[]) => any;
71
- } | null;
72
- processing: boolean;
73
- yesBusy: boolean;
74
- noBusy: boolean;
75
- loading: boolean;
76
- }, State | {
77
- current: {
78
- text?: string | undefined;
79
- theme?: string | undefined;
80
- size?: keyof Sizes | undefined;
81
- actions?: boolean | undefined;
82
- yes?: boolean | undefined;
83
- no?: boolean | undefined;
84
- yesText?: string | undefined;
85
- noText?: string | undefined;
86
- onYes?: ((...args: any[]) => any) | undefined;
87
- onNo?: ((...args: any[]) => any) | undefined;
88
- returning?: boolean | undefined;
89
- autoClose?: boolean | undefined;
90
- timeout?: number | undefined;
91
- hideHeader: true;
92
- title?: string | undefined;
93
- resolve: (...args: any[]) => any;
94
- reject: (...args: any[]) => any;
95
- } | {
96
- text?: string | undefined;
97
- theme?: string | undefined;
98
- size?: keyof Sizes | undefined;
99
- actions?: boolean | undefined;
100
- yes?: boolean | undefined;
101
- no?: boolean | undefined;
102
- yesText?: string | undefined;
103
- noText?: string | undefined;
104
- onYes?: ((...args: any[]) => any) | undefined;
105
- onNo?: ((...args: any[]) => any) | undefined;
106
- returning?: boolean | undefined;
107
- autoClose?: boolean | undefined;
108
- timeout?: number | undefined;
109
- hideHeader?: false | undefined;
110
- title: string;
111
- resolve: (...args: any[]) => any;
112
- reject: (...args: any[]) => any;
113
- } | null;
114
- processing: boolean;
115
- yesBusy: boolean;
116
- noBusy: boolean;
117
- loading: boolean;
118
- }>;
35
+ /**
36
+ * Exposes confirm state for the BbConfirm component.
37
+ * This ref should be treated as read-only by consumers.
38
+ */
39
+ export declare const confirmState: Ref<DeepReadonly<ConfirmState>>;
40
+ /**
41
+ * Handles user interaction with the confirm dialog.
42
+ * Executes the appropriate callback and resolves/rejects the promise.
43
+ */
119
44
  export declare const processMessage: (value: boolean) => Promise<void>;
45
+ /** Composable for programmatically showing confirm dialogs. */
120
46
  export declare const useConfirm: () => {
121
- confirm: <T extends Message>(message: T) => Promise<ReturnedValue<T>>;
122
- close: () => Promise<void>;
47
+ confirm: <T extends ConfirmMessage>(message: T) => Promise<ReturnedValue<T>>;
48
+ close: () => void;
123
49
  setLoading: (value: boolean) => void;
124
50
  };
125
51
  /**
package/dist/index107.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index252.js";
3
- import { isNil as k } from "./index251.js";
4
- import { indexBy as U } from "./index286.js";
5
- import { hash as p } from "./index226.js";
6
- import { useItemsGetter as W } from "./index222.js";
7
- import { usePrefill as q } from "./index228.js";
8
- import { useIndexById as z } from "./index223.js";
9
- import { useBaseOptions as J } from "./index224.js";
10
- import { useHashedWatcher as K } from "./index227.js";
2
+ import { useItemValue as G } from "./index226.js";
3
+ import { isNil as k } from "./index227.js";
4
+ import { indexBy as U } from "./index228.js";
5
+ import { hash as p } from "./index229.js";
6
+ import { useItemsGetter as W } from "./index230.js";
7
+ import { usePrefill as q } from "./index231.js";
8
+ import { useIndexById as z } from "./index232.js";
9
+ import { useBaseOptions as J } from "./index233.js";
10
+ import { useHashedWatcher as K } from "./index234.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index11.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { nanoid as p } from "./index142.js";
2
2
  import { reactive as d } from "vue";
3
- import { wait as h } from "./index139.js";
3
+ import { wait as h } from "./index140.js";
4
4
  const i = d({
5
5
  stack: []
6
6
  }), b = () => {
package/dist/index112.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
2
- import { throttle as g } from "./index242.js";
2
+ import { throttle as g } from "./index235.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index114.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
2
- import { isCssColor as m } from "./index229.js";
2
+ import { isCssColor as m } from "./index239.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index120.js CHANGED
@@ -2,7 +2,7 @@ import { defineComponent as M, ref as n, computed as g, getCurrentInstance as j,
2
2
  import { useId as ne } from "./index8.js";
3
3
  import { useRoute as re } from "./index146.js";
4
4
  import { useRouter as oe } from "./index147.js";
5
- import { wait as ue } from "./index139.js";
5
+ import { wait as ue } from "./index140.js";
6
6
  import { useScroll as de, useResizeObserver as ce } from "./index141.js";
7
7
  import be from "./index13.js";
8
8
  /* empty css */
package/dist/index122.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as y, toRef as O, watch as N, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as h, withCtx as fe, createElementBlock as d, createCommentVNode as C, createElementVNode as o, toDisplayString as m, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
2
- import { add as ve } from "./index250.js";
3
- import { clamp as ke } from "./index215.js";
4
- import { isNil as T } from "./index251.js";
2
+ import { add as ve } from "./index245.js";
3
+ import { clamp as ke } from "./index216.js";
4
+ import { isNil as T } from "./index227.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index252.js";
7
- import { when as Ce } from "./index230.js";
6
+ import { useItemValue as ge } from "./index226.js";
7
+ import { when as Ce } from "./index246.js";
8
8
  import Y from "./index17.js";
9
9
  /* empty css */
10
10
  import we from "./index31.js";
11
11
  /* empty css */
12
- import { hash as E } from "./index226.js";
13
- import { useItemsGetter as Ie } from "./index222.js";
14
- import { usePrefill as Ve } from "./index228.js";
15
- import { useIndexById as Ae } from "./index223.js";
16
- import { useBaseOptions as Be } from "./index224.js";
17
- import { useHashedWatcher as Te } from "./index227.js";
18
- import { useLocale as $e } from "./index233.js";
12
+ import { hash as E } from "./index229.js";
13
+ import { useItemsGetter as Ie } from "./index230.js";
14
+ import { usePrefill as Ve } from "./index231.js";
15
+ import { useIndexById as Ae } from "./index232.js";
16
+ import { useBaseOptions as Be } from "./index233.js";
17
+ import { useHashedWatcher as Te } from "./index234.js";
18
+ import { useLocale as $e } from "./index218.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index13.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, getCurrentInstance as g, computed as r, createBlock as i, openBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as y } from "vue";
2
- import m from "./index219.js";
2
+ import m from "./index244.js";
3
3
  const B = /* @__PURE__ */ C({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index130.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
2
2
  import { useToast as d, state as k } from "./index11.js";
3
- import b from "./index278.js";
3
+ import b from "./index275.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index132.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as S, mergeModels as z, ref as k, computed as d, useTemplateRef as F, useModel as N, createElementBlock as W, openBlock as B, Fragment as A, renderSlot as C, createVNode as U, normalizeProps as H, guardReactiveProps as I, unref as l, mergeProps as j, withCtx as E, createElementVNode as m, normalizeStyle as q, createBlock as x, createCommentVNode as G } from "vue";
2
- import { throttle as p } from "./index242.js";
2
+ import { throttle as p } from "./index235.js";
3
3
  import { useId as J } from "./index8.js";
4
- import { useLocale as K } from "./index233.js";
5
- import { useUntil as Q } from "./index235.js";
4
+ import { useLocale as K } from "./index218.js";
5
+ import { useUntil as Q } from "./index240.js";
6
6
  import X from "./index13.js";
7
7
  /* empty css */
8
- import Y from "./index237.js";
8
+ import Y from "./index222.js";
9
9
  /* empty css */
10
10
  import { useElementSize as Z } from "./index141.js";
11
- import { extractDomContainer as c } from "./index240.js";
12
- import { parseWidthString as _ } from "./index241.js";
11
+ import { extractDomContainer as c } from "./index241.js";
12
+ import { parseWidthString as _ } from "./index242.js";
13
13
  const pe = /* @__PURE__ */ S({
14
14
  inheritAttrs: !1,
15
15
  __name: "BbTooltip",
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index260.js";
2
+ import { flattenTree as T } from "./index257.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index136.js CHANGED
@@ -5,8 +5,8 @@ import m from "./index86.js";
5
5
  /* empty css */
6
6
  import N from "./index114.js";
7
7
  /* empty css */
8
- import h from "./index263.js";
9
- import v from "./index264.js";
8
+ import h from "./index236.js";
9
+ import v from "./index237.js";
10
10
  /* empty css */
11
11
  const B = { class: "bb-common-input-inner-container__prefix" }, E = { class: "bb-common-input-inner-container__suffix" }, P = /* @__PURE__ */ $({
12
12
  __name: "CommonInputInnerContainer",
package/dist/index139.js CHANGED
@@ -1,4 +1,13 @@
1
- const o = (e) => new Promise((t) => setTimeout(t, e));
1
+ import { clamp as s } from "./index216.js";
2
+ const o = (n, e, r = !1) => {
3
+ const t = n * 100 / e;
4
+ return r ? s(t, 0, 100) : t;
5
+ }, g = (n, e, r, t = !1) => o(n - e, r - e, t), l = (n, e, r) => {
6
+ const t = r - e, c = n / 100 * t;
7
+ return e + c;
8
+ };
2
9
  export {
3
- o as wait
10
+ o as getAsPercentage,
11
+ g as getAsPercentageBetween,
12
+ l as getValueFromPercentageInInterval
4
13
  };
package/dist/index140.js CHANGED
@@ -1,13 +1,4 @@
1
- import { clamp as s } from "./index215.js";
2
- const o = (n, e, r = !1) => {
3
- const t = n * 100 / e;
4
- return r ? s(t, 0, 100) : t;
5
- }, g = (n, e, r, t = !1) => o(n - e, r - e, t), l = (n, e, r) => {
6
- const t = r - e, c = n / 100 * t;
7
- return e + c;
8
- };
1
+ const o = (e) => new Promise((t) => setTimeout(t, e));
9
2
  export {
10
- o as getAsPercentage,
11
- g as getAsPercentageBetween,
12
- l as getValueFromPercentageInInterval
3
+ o as wait
13
4
  };
package/dist/index142.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index216.js";
1
+ import { urlAlphabet as l } from "./index215.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/dist/index143.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index217.js";
2
- import { isPlainObject as i } from "./index218.js";
1
+ import { isArray as p } from "./index224.js";
2
+ import { isPlainObject as i } from "./index225.js";
3
3
  function f(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, ref as s, computed as D, createBlock as E, openBlock as I, normalizeClass as L, withCtx as l, createVNode as d, unref as u, withDirectives as M, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
2
- import { isHex as z } from "./index256.js";
2
+ import { isHex as z } from "./index217.js";
3
3
  import { isNotNil as F } from "./index144.js";
4
4
  import { useId as S } from "./index8.js";
5
- import { useLocale as U } from "./index233.js";
6
- import { vMaska as A } from "./index257.js";
7
- import K from "./index258.js";
5
+ import { useLocale as U } from "./index218.js";
6
+ import { vMaska as A } from "./index219.js";
7
+ import K from "./index220.js";
8
8
  /* empty css */
9
9
  import O from "./index136.js";
10
10
  /* empty css */
11
11
  import P from "./index138.js";
12
- import T from "./index237.js";
12
+ import T from "./index222.js";
13
13
  /* empty css */
14
14
  const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, re = /* @__PURE__ */ H({
15
15
  __name: "BaseColorInput",
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index229.js";
3
- import { when as N } from "./index230.js";
4
- import { booleanishToBoolean as S } from "./index274.js";
2
+ import { isCssColor as y } from "./index239.js";
3
+ import { when as N } from "./index246.js";
4
+ import { booleanishToBoolean as S } from "./index247.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as h, computed as z, createBlock as G, openBlock as R, unref as B, withCtx as n, renderSlot as s, normalizeProps as b, guardReactiveProps as v, createVNode as W, mergeProps as T } from "vue";
2
2
  import K from "./index17.js";
3
3
  /* empty css */
4
- import N from "./index220.js";
4
+ import N from "./index248.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index222.js";
7
- import { useIndexById as w } from "./index223.js";
8
- import { useBaseOptions as q } from "./index224.js";
9
- import { useCoherence as J } from "./index225.js";
10
- import { hash as Q } from "./index226.js";
11
- import { useHashedWatcher as C } from "./index227.js";
12
- import { usePrefill as X } from "./index228.js";
6
+ import { useItemsGetter as U } from "./index230.js";
7
+ import { useIndexById as w } from "./index232.js";
8
+ import { useBaseOptions as q } from "./index233.js";
9
+ import { useCoherence as J } from "./index250.js";
10
+ import { hash as Q } from "./index229.js";
11
+ import { useHashedWatcher as C } from "./index234.js";
12
+ import { usePrefill as X } from "./index231.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as V } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import c from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index267.js";
9
- import G from "./index270.js";
10
- import J from "./index271.js";
11
- import K from "./index272.js";
12
- import Q from "./index269.js";
13
- import X from "./index279.js";
14
- import ee from "./index280.js";
15
- import { hash as B } from "./index226.js";
16
- import { last as ae } from "./index244.js";
17
- import { useLogger as te } from "./index254.js";
18
- import oe from "./index281.js";
19
- import le from "./index282.js";
20
- import re from "./index283.js";
21
- import C from "./index284.js";
22
- import se from "./index285.js";
23
- import { useLocale as de } from "./index233.js";
8
+ import s from "./index263.js";
9
+ import G from "./index266.js";
10
+ import J from "./index267.js";
11
+ import K from "./index268.js";
12
+ import Q from "./index265.js";
13
+ import X from "./index276.js";
14
+ import ee from "./index277.js";
15
+ import { hash as B } from "./index229.js";
16
+ import { last as ae } from "./index255.js";
17
+ import { useLogger as te } from "./index262.js";
18
+ import oe from "./index278.js";
19
+ import le from "./index279.js";
20
+ import re from "./index280.js";
21
+ import C from "./index281.js";
22
+ import se from "./index282.js";
23
+ import { useLocale as de } from "./index218.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, me = { class: "bb-base-date-picker__controls" }, ue = { class: "sr-only" }, pe = { class: "sr-only" }, fe = { class: "sr-only" }, ce = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",
package/dist/index215.js CHANGED
@@ -1,4 +1,4 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
2
  export {
3
- n as clamp
3
+ t as urlAlphabet
4
4
  };
package/dist/index216.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- t as urlAlphabet
3
+ n as clamp
4
4
  };
package/dist/index217.js CHANGED
@@ -1,7 +1,6 @@
1
- import { getType as t } from "./index303.js";
2
- function o(r) {
3
- return t(r) === "Array";
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
4
3
  }
5
4
  export {
6
- o as isArray
5
+ x as isHex
7
6
  };
package/dist/index218.js CHANGED
@@ -1,10 +1,15 @@
1
- import { getType as o } from "./index303.js";
2
- function c(e) {
3
- if (o(e) !== "Object")
4
- return !1;
5
- const t = Object.getPrototypeOf(e);
6
- return !!t && t.constructor === Object && t === Object.prototype;
7
- }
1
+ import { locales as t } from "./index296.js";
2
+ import { _config as m } from "./index4.js";
3
+ import { get as c } from "./index261.js";
4
+ import { readonly as l, computed as n } from "vue";
5
+ const p = (o, ...r) => l(
6
+ n(() => c(t[m.locale], o).replace(
7
+ /\{(\d+)\}/g,
8
+ (a, e) => r[e]
9
+ ))
10
+ ), d = () => ({
11
+ t: p
12
+ });
8
13
  export {
9
- c as isPlainObject
14
+ d as useLocale
10
15
  };
package/dist/index219.js CHANGED
@@ -1,35 +1,22 @@
1
- import { defineComponent as u, getCurrentInstance as o, resolveComponent as i, createBlock as l, openBlock as m, resolveDynamicComponent as c, unref as p, withCtx as f, renderSlot as k } from "vue";
2
- import { _config as e } from "./index4.js";
3
- import { useLogger as r } from "./index254.js";
4
- const L = /* @__PURE__ */ u({
5
- __name: "RouterComponent",
6
- setup(g) {
7
- const s = !!o()?.proxy?.$inertia, a = !!o()?.proxy?.$nuxt;
8
- let t;
9
- if (s) {
10
- if (t = i(e.inertiaLinkName), typeof t == "string") {
11
- const { warn: n } = r();
12
- n(
13
- `Inertia link component "${e.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
14
- );
15
- }
16
- } else if (a) {
17
- if (t = i(e.nuxtLinkName), typeof t == "string") {
18
- const { warn: n } = r();
19
- n(
20
- `Nuxt link component "${e.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
21
- );
22
- }
23
- } else
24
- t = "router-link";
25
- return (n, d) => (m(), l(c(p(t)), null, {
26
- default: f(() => [
27
- k(n.$slots, "default")
28
- ]),
29
- _: 3
30
- }));
1
+ import { MaskInput as r } from "./index260.js";
2
+ const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
+ if (a.arg == null || a.instance == null) return;
4
+ const s = "setup" in a.instance.$.type;
5
+ a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
+ }, k = (a, n) => {
7
+ var s;
8
+ const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
+ if (t == null || t?.type === "file") return;
10
+ let e = {};
11
+ if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
+ const l = (o) => {
13
+ const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
+ p(n, i);
15
+ };
16
+ e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
31
17
  }
32
- });
18
+ u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
+ };
33
20
  export {
34
- L as default
21
+ k as vMaska
35
22
  };