bitboss-ui 0.2.7 → 0.2.8

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 (132) hide show
  1. package/dist/index101.js +3 -3
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index128.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +9 -9
  17. package/dist/index19.js +59 -59
  18. package/dist/index19.js.map +1 -1
  19. package/dist/index195.js +2 -3
  20. package/dist/index195.js.map +1 -1
  21. package/dist/index196.js +2 -35
  22. package/dist/index196.js.map +1 -1
  23. package/dist/index197.js +4 -6
  24. package/dist/index197.js.map +1 -1
  25. package/dist/index198.js +3 -2
  26. package/dist/index198.js.map +1 -1
  27. package/dist/index199.js +35 -2
  28. package/dist/index199.js.map +1 -1
  29. package/dist/index200.js +6 -4
  30. package/dist/index200.js.map +1 -1
  31. package/dist/index201.js +324 -208
  32. package/dist/index201.js.map +1 -1
  33. package/dist/index202.js +131 -348
  34. package/dist/index202.js.map +1 -1
  35. package/dist/index203.js +5 -134
  36. package/dist/index203.js.map +1 -1
  37. package/dist/index204.js +19 -5
  38. package/dist/index204.js.map +1 -1
  39. package/dist/index205.js +2 -19
  40. package/dist/index205.js.map +1 -1
  41. package/dist/index206.js +2 -2
  42. package/dist/index206.js.map +1 -1
  43. package/dist/index207.js +186 -2
  44. package/dist/index207.js.map +1 -1
  45. package/dist/index208.js +23 -186
  46. package/dist/index208.js.map +1 -1
  47. package/dist/index209.js +369 -23
  48. package/dist/index209.js.map +1 -1
  49. package/dist/index21.js +2 -2
  50. package/dist/index210.js +3 -369
  51. package/dist/index210.js.map +1 -1
  52. package/dist/index211.js +3 -16
  53. package/dist/index211.js.map +1 -1
  54. package/dist/index212.js +235 -16
  55. package/dist/index212.js.map +1 -1
  56. package/dist/index213.js +2 -20
  57. package/dist/index213.js.map +1 -1
  58. package/dist/index214.js +10 -29
  59. package/dist/index214.js.map +1 -1
  60. package/dist/index215.js +2 -8
  61. package/dist/index215.js.map +1 -1
  62. package/dist/index216.js +16 -3
  63. package/dist/index216.js.map +1 -1
  64. package/dist/index217.js +16 -3
  65. package/dist/index217.js.map +1 -1
  66. package/dist/index218.js +20 -2
  67. package/dist/index218.js.map +1 -1
  68. package/dist/index219.js +29 -2
  69. package/dist/index219.js.map +1 -1
  70. package/dist/index220.js +8 -10
  71. package/dist/index220.js.map +1 -1
  72. package/dist/index222.js +4 -4
  73. package/dist/index223.js +1 -1
  74. package/dist/index225.js +1 -1
  75. package/dist/index226.js +3 -434
  76. package/dist/index226.js.map +1 -1
  77. package/dist/index227.js +428 -82
  78. package/dist/index227.js.map +1 -1
  79. package/dist/index228.js +89 -2
  80. package/dist/index228.js.map +1 -1
  81. package/dist/index229.js +6 -200
  82. package/dist/index229.js.map +1 -1
  83. package/dist/index23.js +1 -1
  84. package/dist/index230.js +2 -4
  85. package/dist/index230.js.map +1 -1
  86. package/dist/index231.js +294 -5
  87. package/dist/index231.js.map +1 -1
  88. package/dist/index232.js +2 -2
  89. package/dist/index233.js +2 -295
  90. package/dist/index233.js.map +1 -1
  91. package/dist/index234.js +117 -2
  92. package/dist/index234.js.map +1 -1
  93. package/dist/index235.js +106 -2
  94. package/dist/index235.js.map +1 -1
  95. package/dist/index236.js +199 -116
  96. package/dist/index236.js.map +1 -1
  97. package/dist/index237.js +2 -106
  98. package/dist/index237.js.map +1 -1
  99. package/dist/index238.js +2 -2
  100. package/dist/index238.js.map +1 -1
  101. package/dist/index239.js +69 -2
  102. package/dist/index239.js.map +1 -1
  103. package/dist/index240.js +162 -2
  104. package/dist/index240.js.map +1 -1
  105. package/dist/index241.js +2 -2
  106. package/dist/index242.js +1 -1
  107. package/dist/index243.js +1 -1
  108. package/dist/index244.js +2 -162
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +2 -2
  111. package/dist/index246.js +2 -69
  112. package/dist/index246.js.map +1 -1
  113. package/dist/index247.js +2 -2
  114. package/dist/index247.js.map +1 -1
  115. package/dist/index248.js +1 -1
  116. package/dist/index25.js +2 -2
  117. package/dist/index252.js +1 -1
  118. package/dist/index253.js +2 -2
  119. package/dist/index29.js +3 -3
  120. package/dist/index31.js +6 -6
  121. package/dist/index33.js +2 -2
  122. package/dist/index35.js +2 -2
  123. package/dist/index47.js +1 -1
  124. package/dist/index49.js +1 -1
  125. package/dist/index65.js +3 -3
  126. package/dist/index72.js +1 -1
  127. package/dist/index75.js +34 -34
  128. package/dist/index75.js.map +1 -1
  129. package/dist/index79.js +3 -3
  130. package/dist/index81.js +1 -1
  131. package/dist/style.css +1 -1
  132. package/package.json +1 -1
package/dist/index196.js CHANGED
@@ -1,38 +1,5 @@
1
- import { unrefElement as m } from "./index128.js";
2
- import { ref as u, watch as l } from "vue";
3
- import { createFocusTrap as d } from "./index226.js";
4
- import { tryOnScopeDispose as D } from "./index220.js";
5
- function O(i, a = {}) {
6
- let e;
7
- const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, p = () => {
10
- e && (e.unpause(), s.value = !1);
11
- };
12
- return l(
13
- () => m(i),
14
- (t) => {
15
- t && (e = d(t, {
16
- ...n,
17
- onActivate() {
18
- c.value = !0, a.onActivate && a.onActivate();
19
- },
20
- onDeactivate() {
21
- c.value = !1, a.onDeactivate && a.onDeactivate();
22
- }
23
- }), f && o());
24
- },
25
- { flush: "post" }
26
- ), D(() => r()), {
27
- hasFocus: c,
28
- isPaused: s,
29
- activate: o,
30
- deactivate: r,
31
- pause: v,
32
- unpause: p
33
- };
34
- }
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
35
2
  export {
36
- O as useFocusTrap
3
+ s as isCssColor
37
4
  };
38
5
  //# sourceMappingURL=index196.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index196.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index196.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n return !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MAClB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
package/dist/index197.js CHANGED
@@ -1,9 +1,7 @@
1
- const i = (e, t = 50) => new Promise((r) => {
2
- let a = setInterval(() => {
3
- e() && (clearInterval(a), r());
4
- }, t);
5
- });
1
+ import { curry as e } from "./index226.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
6
3
  export {
7
- i as waitFor
4
+ t as baseWhen,
5
+ s as when
8
6
  };
9
7
  //# sourceMappingURL=index197.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index197.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n iteratee: () => boolean,\n interval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n new Promise((resolve) => {\n let i = setInterval(() => {\n if (iteratee()) {\n clearInterval(i);\n resolve();\n }\n }, interval);\n });\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OACzC,IAAI,QAAQ,CAACC,MAAY;AACnB,MAAAC,IAAI,YAAY,MAAM;AACxB,IAAIH,QACF,cAAcG,CAAC,GACPD;KAETD,CAAQ;AACb,CAAC;"}
1
+ {"version":3,"file":"index197.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from \"./curry\"\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n iteratee: (item: T) => boolean,\n fn: (item: T) => U,\n item: T\n) => {\n if (iteratee(item)) return fn(item);\n return item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACtBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGIC,IAAOC,EAAML,CAAQ;"}
package/dist/index198.js CHANGED
@@ -1,5 +1,6 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import t from "./index228.js";
2
+ const r = t;
2
3
  export {
3
- n as clamp
4
+ r as throttle
4
5
  };
5
6
  //# sourceMappingURL=index198.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index198.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns \n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n return Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MACzC,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
1
+ {"version":3,"file":"index198.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from \"lodash.throttle\";\n\nexport const throttle = t;"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
package/dist/index199.js CHANGED
@@ -1,5 +1,38 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { unrefElement as m } from "./index128.js";
2
+ import { ref as u, watch as l } from "vue";
3
+ import { createFocusTrap as d } from "./index227.js";
4
+ import { tryOnScopeDispose as D } from "./index214.js";
5
+ function O(i, a = {}) {
6
+ let e;
7
+ const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
+ e && (e.pause(), s.value = !0);
9
+ }, p = () => {
10
+ e && (e.unpause(), s.value = !1);
11
+ };
12
+ return l(
13
+ () => m(i),
14
+ (t) => {
15
+ t && (e = d(t, {
16
+ ...n,
17
+ onActivate() {
18
+ c.value = !0, a.onActivate && a.onActivate();
19
+ },
20
+ onDeactivate() {
21
+ c.value = !1, a.onDeactivate && a.onDeactivate();
22
+ }
23
+ }), f && o());
24
+ },
25
+ { flush: "post" }
26
+ ), D(() => r()), {
27
+ hasFocus: c,
28
+ isPaused: s,
29
+ activate: o,
30
+ deactivate: r,
31
+ pause: v,
32
+ unpause: p
33
+ };
34
+ }
2
35
  export {
3
- s as isCssColor
36
+ O as useFocusTrap
4
37
  };
5
38
  //# sourceMappingURL=index199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n return !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MAClB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
1
+ {"version":3,"file":"index199.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
package/dist/index200.js CHANGED
@@ -1,7 +1,9 @@
1
- import { curry as e } from "./index230.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ const i = (e, t = 50) => new Promise((r) => {
2
+ let a = setInterval(() => {
3
+ e() && (clearInterval(a), r());
4
+ }, t);
5
+ });
3
6
  export {
4
- t as baseWhen,
5
- s as when
7
+ i as waitFor
6
8
  };
7
9
  //# sourceMappingURL=index200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from \"./curry\"\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n iteratee: (item: T) => boolean,\n fn: (item: T) => U,\n item: T\n) => {\n if (iteratee(item)) return fn(item);\n return item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACtBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGIC,IAAOC,EAAML,CAAQ;"}
1
+ {"version":3,"file":"index200.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n iteratee: () => boolean,\n interval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n new Promise((resolve) => {\n let i = setInterval(() => {\n if (iteratee()) {\n clearInterval(i);\n resolve();\n }\n }, interval);\n });\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OACzC,IAAI,QAAQ,CAACC,MAAY;AACnB,MAAAC,IAAI,YAAY,MAAM;AACxB,IAAIH,QACF,cAAcG,CAAC,GACPD;KAETD,CAAQ;AACb,CAAC;"}