bitboss-ui 0.1.113 → 0.1.114

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 (105) hide show
  1. package/dist/components/BbTab/BbTab.vue.d.ts +12 -1
  2. package/dist/index101.js +2 -2
  3. package/dist/index103.js +2 -2
  4. package/dist/index109.js +1 -1
  5. package/dist/index11.js +2 -2
  6. package/dist/index111.js +2 -2
  7. package/dist/index113.js +1 -1
  8. package/dist/index116.js +1 -1
  9. package/dist/index117.js +1 -1
  10. package/dist/index118.js +1 -1
  11. package/dist/index119.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 +5 -5
  16. package/dist/index19.js +3 -3
  17. package/dist/index205.js +3 -2
  18. package/dist/index205.js.map +1 -1
  19. package/dist/index206.js +35 -4
  20. package/dist/index206.js.map +1 -1
  21. package/dist/index207.js +6 -16
  22. package/dist/index207.js.map +1 -1
  23. package/dist/index208.js +2 -16
  24. package/dist/index208.js.map +1 -1
  25. package/dist/index209.js +4 -20
  26. package/dist/index209.js.map +1 -1
  27. package/dist/index21.js +2 -2
  28. package/dist/index210.js +235 -29
  29. package/dist/index210.js.map +1 -1
  30. package/dist/index211.js +3 -8
  31. package/dist/index211.js.map +1 -1
  32. package/dist/index212.js +3 -3
  33. package/dist/index212.js.map +1 -1
  34. package/dist/index213.js +2 -3
  35. package/dist/index213.js.map +1 -1
  36. package/dist/index214.js +10 -3
  37. package/dist/index214.js.map +1 -1
  38. package/dist/index215.js +16 -35
  39. package/dist/index215.js.map +1 -1
  40. package/dist/index216.js +16 -6
  41. package/dist/index216.js.map +1 -1
  42. package/dist/index217.js +20 -2
  43. package/dist/index217.js.map +1 -1
  44. package/dist/index218.js +29 -10
  45. package/dist/index218.js.map +1 -1
  46. package/dist/index219.js +8 -2
  47. package/dist/index219.js.map +1 -1
  48. package/dist/index220.js +2 -235
  49. package/dist/index220.js.map +1 -1
  50. package/dist/index223.js +3 -3
  51. package/dist/index233.js +434 -3
  52. package/dist/index233.js.map +1 -1
  53. package/dist/index234.js +89 -2
  54. package/dist/index234.js.map +1 -1
  55. package/dist/index235.js +2 -2
  56. package/dist/index235.js.map +1 -1
  57. package/dist/index236.js +4 -2
  58. package/dist/index236.js.map +1 -1
  59. package/dist/index237.js +200 -2
  60. package/dist/index237.js.map +1 -1
  61. package/dist/index238.js +69 -224
  62. package/dist/index238.js.map +1 -1
  63. package/dist/index239.js +161 -257
  64. package/dist/index239.js.map +1 -1
  65. package/dist/index240.js +2 -2
  66. package/dist/index240.js.map +1 -1
  67. package/dist/index241.js +2 -435
  68. package/dist/index241.js.map +1 -1
  69. package/dist/index242.js +218 -83
  70. package/dist/index242.js.map +1 -1
  71. package/dist/index243.js +258 -200
  72. package/dist/index243.js.map +1 -1
  73. package/dist/index244.js +2 -162
  74. package/dist/index244.js.map +1 -1
  75. package/dist/index245.js +2 -2
  76. package/dist/index246.js +2 -69
  77. package/dist/index246.js.map +1 -1
  78. package/dist/index247.js +2 -2
  79. package/dist/index247.js.map +1 -1
  80. package/dist/index248.js +2 -38
  81. package/dist/index248.js.map +1 -1
  82. package/dist/index249.js +38 -2
  83. package/dist/index249.js.map +1 -1
  84. package/dist/index25.js +2 -2
  85. package/dist/index250.js +2 -2
  86. package/dist/index250.js.map +1 -1
  87. package/dist/index251.js +2 -2
  88. package/dist/index251.js.map +1 -1
  89. package/dist/index252.js +2 -3
  90. package/dist/index252.js.map +1 -1
  91. package/dist/index253.js +3 -2
  92. package/dist/index253.js.map +1 -1
  93. package/dist/index29.js +2 -2
  94. package/dist/index31.js +3 -3
  95. package/dist/index33.js +1 -1
  96. package/dist/index35.js +2 -2
  97. package/dist/index47.js +1 -1
  98. package/dist/index49.js +1 -1
  99. package/dist/index72.js +1 -1
  100. package/dist/index75.js +1 -1
  101. package/dist/index79.js +1 -1
  102. package/dist/index99.js +129 -96
  103. package/dist/index99.js.map +1 -1
  104. package/dist/style.css +1 -1
  105. package/package.json +3 -2
@@ -52,7 +52,12 @@ export type BbTabEvents = {
52
52
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTabProps>, {
53
53
  direction: string;
54
54
  querykey: string;
55
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ }>, {
56
+ isFirst: import("vue").ComputedRef<boolean>;
57
+ isLast: import("vue").ComputedRef<boolean>;
58
+ current: import("vue").Ref<string | null>;
59
+ goTo: (target: "first" | "last" | "next" | "previous") => void;
60
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
56
61
  "update:modelValue": (value: string) => void;
57
62
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTabProps>, {
58
63
  direction: string;
@@ -64,14 +69,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
64
69
  querykey: string;
65
70
  }, {}>, Readonly<{
66
71
  label?: ((props: {
72
+ current: string | null;
67
73
  disabled: boolean;
74
+ isFirst: boolean;
75
+ isLast: boolean;
68
76
  selected: boolean;
69
77
  text: string | undefined;
70
78
  value: string;
71
79
  }) => any) | undefined;
72
80
  } & {
73
81
  [key: string]: (props: {
82
+ current: string | null;
74
83
  disabled: boolean;
84
+ isFirst: boolean;
85
+ isLast: boolean;
75
86
  selected: boolean;
76
87
  text: string | undefined;
77
88
  value: string;
package/dist/index101.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, ref as O, computed as p, onMounted as de, watch as q, openBlock as c, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as pe, mergeProps as fe } from "vue";
2
- import { add as me } from "./index240.js";
2
+ import { add as me } from "./index235.js";
3
3
  import { clamp as ye } from "./index195.js";
4
4
  import { deepEqual as he } from "./index123.js";
5
5
  import { isNil as j } from "./index120.js";
6
6
  import { isNotNil as _e } from "./index124.js";
7
7
  import { useId as ke } from "./index7.js";
8
8
  import { useItemValue as ge } from "./index126.js";
9
- import { when as ve } from "./index206.js";
9
+ import { when as ve } from "./index209.js";
10
10
  import G from "./index11.js";
11
11
  import "./index12.js";
12
12
  import Ce from "./index25.js";
package/dist/index103.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, openBlock as c, createBlock as b, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as h, mergeProps as y } from "vue";
2
2
  import f from "./index21.js";
3
3
  import "./index22.js";
4
- import v from "./index244.js";
5
- import "./index245.js";
4
+ import v from "./index239.js";
5
+ import "./index240.js";
6
6
  const w = /* @__PURE__ */ m({
7
7
  __name: "BbTag",
8
8
  props: {
package/dist/index109.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index5.js";
3
- import B from "./index246.js";
3
+ import B from "./index238.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index11.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as B, ref as h, computed as n, watch as L, openBlock as c, createElementBlock as i, normalizeClass as E, normalizeProps as p, mergeProps as d, createCommentVNode as I, createElementVNode as l, renderSlot as F, guardReactiveProps as M } from "vue";
2
- import { isCssColor as f } from "./index205.js";
3
- import { when as N } from "./index206.js";
2
+ import { isCssColor as f } from "./index208.js";
3
+ import { when as N } from "./index209.js";
4
4
  const A = {
5
5
  class: "bb-base-checkbox-container",
6
6
  "aria-hidden": "true"
package/dist/index111.js CHANGED
@@ -4,8 +4,8 @@ import { useId as K } from "./index7.js";
4
4
  import { wait as P } from "./index122.js";
5
5
  import Q from "./index9.js";
6
6
  import "./index10.js";
7
- import { throttle as v } from "./index214.js";
8
- import { waitFor as W } from "./index216.js";
7
+ import { throttle as v } from "./index205.js";
8
+ import { waitFor as W } from "./index207.js";
9
9
  import { autoUpdate as X } from "./index196.js";
10
10
  import { flip as Y, shift as Z } from "./index204.js";
11
11
  const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
package/dist/index113.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 v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index247.js";
2
+ import { flattenTree as P } from "./index241.js";
3
3
  const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index116.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, ref as a, watch as s, computed as u, openBlock as c, createElementBlock as p, normalizeProps as d, guardReactiveProps as m, createElementVNode as b, renderSlot as v, createCommentVNode as f } from "vue";
2
2
  import { wait as V } from "./index122.js";
3
- import { throttle as _ } from "./index214.js";
3
+ import { throttle as _ } from "./index205.js";
4
4
  const h = { class: "bb-collapsible__content" }, k = /* @__PURE__ */ i({
5
5
  __name: "BbCollapsible",
6
6
  props: {
package/dist/index117.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index205.js";
2
+ import { isCssColor as z } from "./index208.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index118.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index214.js";
2
+ import { throttle as g } from "./index205.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index119.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index205.js";
2
+ import { isCssColor as f } from "./index208.js";
3
3
  const _ = /* @__PURE__ */ c("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 512 512"
package/dist/index125.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index220.js";
1
+ import t from "./index210.js";
2
2
  const e = () => ({
3
3
  getItemText(r, n) {
4
4
  if (typeof r == "string" && !n)
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index220.js";
1
+ import o from "./index210.js";
2
2
  const e = () => ({
3
3
  getItemValue(n, f) {
4
4
  if (typeof f > "u")
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as B } from "./index218.js";
2
- import { tryOnScopeDispose as E } from "./index218.js";
1
+ import { toValue as B } from "./index214.js";
2
+ import { tryOnScopeDispose as E } from "./index214.js";
3
3
  import { ref as c, computed as t } from "vue";
4
4
  function h(a) {
5
5
  var l;
package/dist/index15.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as de, ref as k, computed as h, watch as ue, openBlock as d, createElementBlock as u, mergeProps as ce, createElementVNode as i, createTextVNode as be, toDisplayString as f, unref as p, withDirectives as L, createVNode as g, Transition as V, withCtx as w, vShow as z, createCommentVNode as A, normalizeClass as x, Fragment as O, renderList as S, renderSlot as R, nextTick as me } from "vue";
2
2
  import c from "./index198.js";
3
- import fe from "./index207.js";
4
- import pe from "./index208.js";
3
+ import fe from "./index215.js";
4
+ import pe from "./index216.js";
5
5
  import he from "./index199.js";
6
- import ye from "./index209.js";
7
- import _e from "./index210.js";
8
- import { groupBy as W } from "./index211.js";
6
+ import ye from "./index217.js";
7
+ import _e from "./index218.js";
8
+ import { groupBy as W } from "./index219.js";
9
9
  import { isNil as ve } from "./index120.js";
10
10
  import { last as $ } from "./index201.js";
11
11
  const ke = { class: "bb-base-date-picker__header" }, ge = ["disabled"], Ve = /* @__PURE__ */ i("span", null, null, -1), we = {
package/dist/index19.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Q, ref as o, useAttrs as X, computed as h, onMounted as T, onBeforeUnmount as A, watch as Y, nextTick as E, openBlock as _, createBlock as Z, Teleport as ee, createElementVNode as l, mergeProps as W, createElementBlock as B, renderSlot as i, createTextVNode as te, toDisplayString as V, createCommentVNode as D } from "vue";
2
- import { throttle as oe } from "./index214.js";
3
- import { useFocusTrap as le } from "./index215.js";
2
+ import { throttle as oe } from "./index205.js";
3
+ import { useFocusTrap as le } from "./index206.js";
4
4
  import { useId as R } from "./index7.js";
5
5
  import { wait as L } from "./index122.js";
6
- import { waitFor as ae } from "./index216.js";
6
+ import { waitFor as ae } from "./index207.js";
7
7
  const se = { class: "bb-base-dialog-close" }, ne = { class: "bb-base-dialog-close__content" }, ie = { class: "bb-base-dialog-close__label" }, re = /* @__PURE__ */ l("span", { class: "bb-base-dialog-close__icon" }, [
8
8
  /* @__PURE__ */ l("svg", {
9
9
  viewBox: "0 0 24 24",
package/dist/index205.js CHANGED
@@ -1,5 +1,6 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import t from "./index234.js";
2
+ const r = t;
2
3
  export {
3
- s as isCssColor
4
+ r as throttle
4
5
  };
5
6
  //# sourceMappingURL=index205.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index205.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":"index205.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/index206.js CHANGED
@@ -1,7 +1,38 @@
1
- import { curry as e } from "./index233.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { unrefElement as m } from "./index128.js";
2
+ import { ref as u, watch as l } from "vue";
3
+ import { createFocusTrap as d } from "./index233.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
+ }
3
35
  export {
4
- t as baseWhen,
5
- s as when
36
+ O as useFocusTrap
6
37
  };
7
38
  //# sourceMappingURL=index206.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index206.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":"index206.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/index207.js CHANGED
@@ -1,19 +1,9 @@
1
- import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index226.js";
2
- import { __module as e } from "./index234.js";
3
- (function(s, a) {
4
- (function(i, t) {
5
- s.exports = t();
6
- })(n, function() {
7
- return function(i, t) {
8
- t.prototype.isSameOrAfter = function(r, o) {
9
- return this.isSame(r, o) || this.isAfter(r, o);
10
- };
11
- };
12
- });
13
- })(e);
14
- var m = e.exports;
15
- const c = /* @__PURE__ */ f(m);
1
+ const i = (e, t = 50) => new Promise((r) => {
2
+ let a = setInterval(() => {
3
+ e() && (clearInterval(a), r());
4
+ }, t);
5
+ });
16
6
  export {
17
- c as default
7
+ i as waitFor
18
8
  };
19
9
  //# sourceMappingURL=index207.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index207.js","sources":["../node_modules/dayjs/plugin/isSameOrAfter.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));"],"names":["e","module","this","t"],"mappings":";;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAe,UAAA,EAAwI;AAAA,EAAA,GAAEC,GAAM,WAAU;AAAc,WAAO,SAASF,GAAE,GAAE;AAAC,QAAE,UAAU,gBAAc,SAASA,GAAEG,GAAE;AAAC,eAAO,KAAK,OAAOH,GAAEG,CAAC,KAAG,KAAK,QAAQH,GAAEG,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index207.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;"}
package/dist/index208.js CHANGED
@@ -1,19 +1,5 @@
1
- import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index226.js";
2
- import { __module as t } from "./index235.js";
3
- (function(s, a) {
4
- (function(f, o) {
5
- s.exports = o();
6
- })(n, function() {
7
- return function(f, o) {
8
- o.prototype.isSameOrBefore = function(e, r) {
9
- return this.isSame(e, r) || this.isBefore(e, r);
10
- };
11
- };
12
- });
13
- })(t);
14
- var m = t.exports;
15
- const c = /* @__PURE__ */ i(m);
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
16
2
  export {
17
- c as default
3
+ s as isCssColor
18
4
  };
19
5
  //# sourceMappingURL=index208.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index208.js","sources":["../node_modules/dayjs/plugin/isSameOrBefore.js"],"sourcesContent":["!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));"],"names":["e","i","module","this"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAyI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAE;AAAC,MAAAA,EAAE,UAAU,iBAAe,SAAS,GAAEA,GAAE;AAAC,eAAO,KAAK,OAAO,GAAEA,CAAC,KAAG,KAAK,SAAS,GAAEA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index208.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/index209.js CHANGED
@@ -1,23 +1,7 @@
1
- import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index226.js";
2
- import { __module as n } from "./index236.js";
3
- (function(u, l) {
4
- (function(c, e) {
5
- u.exports = e();
6
- })(s, function() {
7
- return function(c, e, r) {
8
- r.updateLocale = function(f, o) {
9
- var t = r.Ls[f];
10
- if (t)
11
- return (o ? Object.keys(o) : []).forEach(function(a) {
12
- t[a] = o[a];
13
- }), t;
14
- };
15
- };
16
- });
17
- })(n);
18
- var i = n.exports;
19
- const x = /* @__PURE__ */ p(i);
1
+ import { curry as e } from "./index236.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
20
3
  export {
21
- x as default
4
+ t as baseWhen,
5
+ s as when
22
6
  };
23
7
  //# sourceMappingURL=index209.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index209.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index209.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/index21.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, computed as n, openBlock as i, createElementBlock as b, createBlock as h, resolveDynamicComponent as v, normalizeProps as o, guardReactiveProps as l, withCtx as c, renderSlot as _, createTextVNode as A, toDisplayString as g, createElementVNode as E, unref as z, createVNode as S, Fragment as T, renderList as V } from "vue";
2
- import { deburr as N } from "./index212.js";
2
+ import { deburr as N } from "./index211.js";
3
3
  import { getAsPercentage as P } from "./index121.js";
4
- import { snakeCase as D } from "./index213.js";
4
+ import { snakeCase as D } from "./index212.js";
5
5
  import { useId as I } from "./index7.js";
6
6
  import F from "./index118.js";
7
7
  import "./index182.js";