bitboss-ui 2.0.159 → 2.0.160

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 (165) hide show
  1. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +2 -2
  2. package/dist/index100.js +8 -8
  3. package/dist/index111.js +11 -11
  4. package/dist/index119.js +2 -2
  5. package/dist/index121.js +5 -5
  6. package/dist/index123.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index13.js +1 -1
  12. package/dist/index131.js +1 -1
  13. package/dist/index133.js +1 -1
  14. package/dist/index134.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +8 -8
  18. package/dist/index207.js +2 -4
  19. package/dist/index208.js +2 -41
  20. package/dist/index209.js +64 -18
  21. package/dist/index21.js +16 -16
  22. package/dist/index211.js +15 -0
  23. package/dist/index212.js +41 -200
  24. package/dist/index213.js +8 -0
  25. package/dist/index214.js +7 -66
  26. package/dist/index215.js +17 -0
  27. package/dist/index216.js +13 -13
  28. package/dist/index217.js +33 -12
  29. package/dist/index218.js +3 -2
  30. package/dist/index219.js +5 -86
  31. package/dist/{index247.js → index220.js} +2 -2
  32. package/dist/index221.js +16 -29
  33. package/dist/index222.js +15 -16
  34. package/dist/index223.js +19 -51
  35. package/dist/index224.js +15 -15
  36. package/dist/index225.js +2 -3
  37. package/dist/index226.js +2 -12
  38. package/dist/index227.js +19 -15
  39. package/dist/index228.js +94 -5
  40. package/dist/index23.js +16 -16
  41. package/dist/index230.js +2 -16
  42. package/dist/index231.js +2 -19
  43. package/dist/index232.js +4 -15
  44. package/dist/index233.js +2 -19
  45. package/dist/index234.js +4 -27
  46. package/dist/index235.js +200 -2
  47. package/dist/index237.js +17 -248
  48. package/dist/index238.js +26 -51
  49. package/dist/index239.js +3 -44
  50. package/dist/index240.js +8 -5
  51. package/dist/index241.js +243 -53
  52. package/dist/index242.js +52 -3
  53. package/dist/index243.js +43 -5
  54. package/dist/index244.js +5 -7
  55. package/dist/index245.js +56 -11
  56. package/dist/index246.js +84 -32
  57. package/dist/index248.js +29 -2
  58. package/dist/index249.js +17 -2
  59. package/dist/index25.js +5 -5
  60. package/dist/index250.js +51 -2
  61. package/dist/index251.js +15 -4
  62. package/dist/index252.js +12 -2
  63. package/dist/index253.js +16 -2
  64. package/dist/index254.js +17 -105
  65. package/dist/{index259.js → index255.js} +2 -2
  66. package/dist/index256.js +53 -47
  67. package/dist/index258.js +99 -17
  68. package/dist/index261.js +3 -3
  69. package/dist/index262.js +1 -1
  70. package/dist/index268.js +9 -6
  71. package/dist/index269.js +23 -16
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +3 -3
  74. package/dist/index272.js +7 -23
  75. package/dist/index273.js +1 -1
  76. package/dist/index274.js +2 -3
  77. package/dist/index275.js +7 -3
  78. package/dist/index276.js +11 -3
  79. package/dist/index277.js +4 -0
  80. package/dist/index278.js +224 -7
  81. package/dist/index279.js +199 -6
  82. package/dist/index280.js +280 -10
  83. package/dist/index281.js +6 -3
  84. package/dist/index282.js +2 -17
  85. package/dist/index283.js +2 -9
  86. package/dist/index284.js +2 -28
  87. package/dist/index285.js +2 -200
  88. package/dist/index286.js +2 -281
  89. package/dist/index287.js +2 -6
  90. package/dist/index288.js +3 -2
  91. package/dist/index289.js +4 -2
  92. package/dist/index29.js +3 -3
  93. package/dist/index290.js +3 -2
  94. package/dist/index291.js +9 -2
  95. package/dist/index292.js +6 -2
  96. package/dist/index293.js +16 -2
  97. package/dist/index294.js +3 -2
  98. package/dist/index295.js +9 -2
  99. package/dist/index296.js +8 -2
  100. package/dist/index297.js +2 -2
  101. package/dist/index298.js +2 -2
  102. package/dist/index299.js +1 -21
  103. package/dist/index300.js +4 -0
  104. package/dist/index301.js +2 -224
  105. package/dist/index303.js +28 -2
  106. package/dist/index304.js +22 -2
  107. package/dist/index306.js +3 -8
  108. package/dist/index307.js +17 -4
  109. package/dist/index308.js +126 -3
  110. package/dist/index31.js +2 -2
  111. package/dist/index310.js +3 -126
  112. package/dist/index314.js +2 -8
  113. package/dist/index315.js +67 -6
  114. package/dist/index316.js +32 -7
  115. package/dist/index317.js +28 -5
  116. package/dist/index319.js +5 -8
  117. package/dist/index320.js +5 -67
  118. package/dist/index321.js +7 -479
  119. package/dist/index322.js +480 -2
  120. package/dist/index323.js +58 -7
  121. package/dist/index324.js +33 -33
  122. package/dist/index325.js +4 -58
  123. package/dist/index326.js +87 -31
  124. package/dist/index327.js +7 -28
  125. package/dist/index328.js +9 -0
  126. package/dist/index329.js +18 -3
  127. package/dist/index33.js +8 -8
  128. package/dist/index330.js +46 -6
  129. package/dist/index331.js +3 -19
  130. package/dist/index332.js +3 -3
  131. package/dist/index333.js +58 -3
  132. package/dist/index334.js +7 -57
  133. package/dist/index335.js +5 -88
  134. package/dist/index336.js +8 -47
  135. package/dist/index337.js +1 -1
  136. package/dist/index339.js +1 -1
  137. package/dist/index340.js +424 -2
  138. package/dist/index341.js +2 -424
  139. package/dist/index35.js +4 -4
  140. package/dist/index37.js +19 -19
  141. package/dist/index39.js +3 -3
  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 +2 -2
  147. package/dist/index53.js +1 -1
  148. package/dist/index55.js +1 -1
  149. package/dist/index57.js +1 -1
  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 +2 -2
  157. package/dist/index88.js +4 -4
  158. package/dist/index90.js +1 -1
  159. package/package.json +1 -1
  160. package/dist/index210.js +0 -96
  161. package/dist/index229.js +0 -18
  162. package/dist/index236.js +0 -10
  163. package/dist/index271.js +0 -11
  164. package/dist/index305.js +0 -11
  165. package/dist/index318.js +0 -7
@@ -1,6 +1,6 @@
1
1
  import { BaseTextInputEvents, BaseTextInputSlots } from '../BaseTextInput/BaseTextInput.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
- import { MaskOptions } from 'maska';
3
+ import { MaskInputOptions } from 'maska';
4
4
  export type BbTextInputProps = {
5
5
  /**
6
6
  * Name of the icon to be added at the end of the input.
@@ -75,7 +75,7 @@ export type BbTextInputProps = {
75
75
  * The mask to be applied to the input.
76
76
  * Please visit https://beholdr.github.io/maska/v3 for syntax examples
77
77
  */
78
- mask?: MaskOptions;
78
+ mask?: MaskInputOptions;
79
79
  /**
80
80
  * Used my v-model
81
81
  */
package/dist/index100.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, reactive as E, watch as m, ref as L, openBlock as b, createElementBlock as B, Fragment as g, renderSlot as i, unref as P, createCommentVNode as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index283.js";
2
+ import { useItemValue as G } from "./index295.js";
3
3
  import { isNil as k } from "./index264.js";
4
- import { indexBy as U } from "./index306.js";
5
- import { hash as p } from "./index225.js";
6
- import { useItemsGetter as W } from "./index221.js";
7
- import { usePrefill as q } from "./index227.js";
8
- import { useIndexById as z } from "./index222.js";
9
- import { useBaseOptions as J } from "./index223.js";
10
- import { useHashedWatcher as K } from "./index226.js";
4
+ import { indexBy as U } from "./index296.js";
5
+ import { hash as p } from "./index239.js";
6
+ import { useItemsGetter as W } from "./index248.js";
7
+ import { usePrefill as q } from "./index253.js";
8
+ import { useIndexById as z } from "./index249.js";
9
+ import { useBaseOptions as J } from "./index250.js";
10
+ import { useHashedWatcher as K } from "./index252.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index111.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, openBlock as n, createBlock as Q, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, toDisplayString as m, createCommentVNode as g, createElementVNode as o, 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 "./index322.js";
3
- import { clamp as ke } from "./index218.js";
2
+ import { add as ve } from "./index314.js";
3
+ import { clamp as ke } from "./index207.js";
4
4
  import { isNil as T } from "./index264.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index283.js";
7
- import { when as Ce } from "./index251.js";
6
+ import { useItemValue as ge } from "./index295.js";
7
+ import { when as Ce } from "./index232.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 "./index225.js";
13
- import { useItemsGetter as Ie } from "./index221.js";
14
- import { usePrefill as Ve } from "./index227.js";
15
- import { useIndexById as Ae } from "./index222.js";
16
- import { useBaseOptions as Be } from "./index223.js";
17
- import { useHashedWatcher as Te } from "./index226.js";
18
- import { useLocale as $e } from "./index217.js";
12
+ import { hash as E } from "./index239.js";
13
+ import { useItemsGetter as Ie } from "./index248.js";
14
+ import { usePrefill as Ve } from "./index253.js";
15
+ import { useIndexById as Ae } from "./index249.js";
16
+ import { useBaseOptions as Be } from "./index250.js";
17
+ import { useHashedWatcher as Te } from "./index252.js";
18
+ import { useLocale as $e } from "./index216.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index119.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { state as k, useToast as b } from "./index11.js";
3
- import C from "./index245.js";
4
- import B from "./index320.js";
3
+ import C from "./index215.js";
4
+ import B from "./index315.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index121.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as H, ref as o, watch as I, computed as z, openBlock as B, createElementBlock as R, mergeProps as S, createElementVNode as p, renderSlot as C, normalizeProps as U, guardReactiveProps as W, unref as u, createVNode as j, withCtx as L, createBlock as q, createCommentVNode as A } from "vue";
2
- import { useFloating as G, arrow as J } from "./index259.js";
2
+ import { useFloating as G, arrow as J } from "./index255.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as Q } from "./index130.js";
5
5
  import X from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as b } from "./index270.js";
8
- import { waitFor as Y } from "./index243.js";
9
- import Z from "./index210.js";
7
+ import { throttle as b } from "./index294.js";
8
+ import { waitFor as Y } from "./index213.js";
9
+ import Z from "./index228.js";
10
10
  /* empty css */
11
- import { useLocale as x } from "./index217.js";
11
+ import { useLocale as x } from "./index216.js";
12
12
  import { autoUpdate as ee, flip as te, shift as oe, hide as ae } from "./index262.js";
13
13
  const ne = { class: "bb-tooltip__content" }, ge = /* @__PURE__ */ H({
14
14
  __name: "BbTooltip",
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock 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 "./index317.js";
2
+ import { flattenTree as T } from "./index319.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/index125.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
2
- import { useLocale as f } from "./index217.js";
2
+ import { useLocale as f } from "./index216.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index250.js";
2
+ import { isCssColor as I } from "./index231.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
2
- import { throttle as g } from "./index270.js";
2
+ import { throttle as g } from "./index294.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index250.js";
2
+ import { isCssColor as u } from "./index231.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as h, computed as r, openBlock as i, createBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as C } from "vue";
2
- import S from "./index246.js";
2
+ import S from "./index217.js";
3
3
  const A = /* @__PURE__ */ m({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index218.js";
1
+ import { clamp as o } from "./index207.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index133.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index253.js";
1
+ import { urlAlphabet as l } from "./index208.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index318.js";
2
- import { isPlainObject as c } from "./index319.js";
1
+ import { isArray as p } from "./index320.js";
2
+ import { isPlainObject as c } from "./index321.js";
3
3
  function i(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,18 +1,18 @@
1
1
  import { defineComponent as H, ref as u, computed as D, openBlock as E, createElementBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, renderSlot as r, unref as s, createElementVNode as c, normalizeStyle as F, withModifiers as T, withDirectives as q, mergeProps as L, nextTick as N } from "vue";
2
- import { isHex as O } from "./index207.js";
2
+ import { isHex as O } from "./index234.js";
3
3
  import { isNotNil as z } from "./index135.js";
4
- import { useFocusTrap as S } from "./index208.js";
4
+ import { useFocusTrap as S } from "./index212.js";
5
5
  import { useId as A } from "./index8.js";
6
- import { vMaska as K } from "./index209.js";
7
- import P from "./index210.js";
6
+ import { vMaska as K } from "./index227.js";
7
+ import P from "./index228.js";
8
8
  /* empty css */
9
- import R from "./index212.js";
9
+ import R from "./index235.js";
10
10
  /* empty css */
11
- import U from "./index214.js";
11
+ import U from "./index209.js";
12
12
  /* empty css */
13
- import j from "./index216.js";
13
+ import j from "./index211.js";
14
14
  import { wait as G } from "./index130.js";
15
- import { useLocale as J } from "./index217.js";
15
+ import { useLocale as J } from "./index216.js";
16
16
  const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], W = ["aria-label"], X = { class: "bb-common-input-inner-container__suffix" }, ce = /* @__PURE__ */ H({
17
17
  __name: "BaseColorInput",
18
18
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index250.js";
3
- import { when as N } from "./index251.js";
4
- import { booleanishToBoolean as S } from "./index252.js";
2
+ import { isCssColor as y } from "./index231.js";
3
+ import { when as N } from "./index232.js";
4
+ import { booleanishToBoolean as S } from "./index233.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 d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
2
2
  import W from "./index17.js";
3
3
  /* empty css */
4
- import K from "./index219.js";
4
+ import K from "./index246.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index221.js";
7
- import { useIndexById as w } from "./index222.js";
8
- import { useBaseOptions as U } from "./index223.js";
9
- import { useCoherence as q } from "./index224.js";
10
- import { hash as J } from "./index225.js";
11
- import { useHashedWatcher as C } from "./index226.js";
12
- import { usePrefill as Q } from "./index227.js";
6
+ import { useItemsGetter as N } from "./index248.js";
7
+ import { useIndexById as w } from "./index249.js";
8
+ import { useBaseOptions as U } from "./index250.js";
9
+ import { useCoherence as q } from "./index251.js";
10
+ import { hash as J } from "./index239.js";
11
+ import { useHashedWatcher as C } from "./index252.js";
12
+ import { usePrefill as Q } from "./index253.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index207.js CHANGED
@@ -1,6 +1,4 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
4
2
  export {
5
- x as isHex
3
+ n as clamp
6
4
  };
package/dist/index208.js CHANGED
@@ -1,43 +1,4 @@
1
- import { unrefElement as A } from "./index132.js";
2
- import { toValue as n, notNullish as g, tryOnScopeDispose as y } from "./index206.js";
3
- import { ref as i, computed as D, watch as F } from "vue";
4
- import { createFocusTrap as T } from "./index273.js";
5
- function E(f, a = {}) {
6
- let e;
7
- const { immediate: l, ...p } = a, r = i(!1), s = i(!1), c = (t) => e && e.activate(t), u = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, m = () => {
10
- e && (e.unpause(), s.value = !1);
11
- }, d = D(() => {
12
- const t = n(f);
13
- return (Array.isArray(t) ? t : [t]).map((h) => {
14
- const o = n(h);
15
- return typeof o == "string" ? o : A(o);
16
- }).filter(g);
17
- });
18
- return F(
19
- d,
20
- (t) => {
21
- t.length && (e = T(t, {
22
- ...p,
23
- onActivate() {
24
- r.value = !0, a.onActivate && a.onActivate();
25
- },
26
- onDeactivate() {
27
- r.value = !1, a.onDeactivate && a.onDeactivate();
28
- }
29
- }), l && c());
30
- },
31
- { flush: "post" }
32
- ), y(() => u()), {
33
- hasFocus: r,
34
- isPaused: s,
35
- activate: c,
36
- deactivate: u,
37
- pause: v,
38
- unpause: m
39
- };
40
- }
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
41
2
  export {
42
- E as useFocusTrap
3
+ t as urlAlphabet
43
4
  };
package/dist/index209.js CHANGED
@@ -1,22 +1,68 @@
1
- import { MaskInput as r } from "./index265.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 == null ? void 0 : 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);
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 "./index316.js";
9
+ import B from "./index317.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();
15
26
  };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
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));
17
64
  }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
- };
65
+ });
20
66
  export {
21
- k as vMaska
67
+ A as default
22
68
  };
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import f from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index228.js";
9
- import G from "./index229.js";
10
- import J from "./index230.js";
11
- import K from "./index231.js";
12
- import Q from "./index232.js";
13
- import X from "./index233.js";
14
- import ee from "./index234.js";
15
- import { hash as M } from "./index225.js";
16
- import { last as ae } from "./index235.js";
17
- import { useLogger as te } from "./index236.js";
18
- import oe from "./index237.js";
19
- import le from "./index238.js";
20
- import re from "./index239.js";
21
- import B from "./index240.js";
22
- import se from "./index241.js";
23
- import { useLocale as de } from "./index217.js";
8
+ import s from "./index219.js";
9
+ import G from "./index221.js";
10
+ import J from "./index222.js";
11
+ import K from "./index223.js";
12
+ import Q from "./index224.js";
13
+ import X from "./index237.js";
14
+ import ee from "./index238.js";
15
+ import { hash as M } from "./index239.js";
16
+ import { last as ae } from "./index226.js";
17
+ import { useLogger as te } from "./index240.js";
18
+ import oe from "./index241.js";
19
+ import le from "./index242.js";
20
+ import re from "./index243.js";
21
+ import B from "./index244.js";
22
+ import se from "./index245.js";
23
+ import { useLocale as de } from "./index216.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",
@@ -0,0 +1,15 @@
1
+ import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
+ /* empty css */
3
+ import r from "./index272.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
+ };