bitboss-ui 0.2.29 → 0.2.30
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.
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -7
- package/dist/index101.js +3 -3
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +4 -4
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index196.js +5 -10
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +16 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +10 -10
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +18 -15
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +19 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +23 -14
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +8 -29
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +3 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +35 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -35
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +378 -4
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -235
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +373 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +1 -1
- package/dist/index214.js +1 -1
- package/dist/index215.js +2 -2
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -9
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +131 -118
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +174 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +23 -378
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -371
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +234 -133
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +6 -171
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +121 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +435 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +82 -428
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +197 -86
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +293 -198
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -294
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -2
- package/dist/index238.js +4 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -3
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +100 -218
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -258
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +224 -69
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +255 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +1 -1
- package/dist/index246.js +69 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -106
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -117
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +15 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index253.js +1 -1
- package/dist/index254.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index31.js +34 -35
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +5 -5
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index91.js +16 -18
- package/dist/index91.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index201.js
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
1
|
+
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index231.js";
|
|
2
2
|
import { __module as n } from "./index237.js";
|
|
3
|
-
(function(
|
|
4
|
-
(function(
|
|
5
|
-
|
|
6
|
-
})(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
(function(f, p) {
|
|
4
|
+
(function(r, e) {
|
|
5
|
+
f.exports = e();
|
|
6
|
+
})(k, function() {
|
|
7
|
+
var r = "week", e = "year";
|
|
8
|
+
return function(w, u, a) {
|
|
9
|
+
var o = u.prototype;
|
|
10
|
+
o.week = function(t) {
|
|
11
|
+
if (t === void 0 && (t = null), t !== null)
|
|
12
|
+
return this.add(7 * (t - this.week()), "day");
|
|
13
|
+
var s = this.$locale().yearStart || 1;
|
|
14
|
+
if (this.month() === 11 && this.date() > 25) {
|
|
15
|
+
var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
|
|
16
|
+
if (l.isBefore(d))
|
|
17
|
+
return 1;
|
|
18
|
+
}
|
|
19
|
+
var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
|
|
20
|
+
return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
|
|
21
|
+
}, o.weeks = function(t) {
|
|
22
|
+
return t === void 0 && (t = null), this.week(t);
|
|
14
23
|
};
|
|
15
24
|
};
|
|
16
25
|
});
|
|
17
26
|
})(n);
|
|
18
|
-
var
|
|
19
|
-
const x = /* @__PURE__ */
|
|
27
|
+
var m = n.exports;
|
|
28
|
+
const x = /* @__PURE__ */ c(m);
|
|
20
29
|
export {
|
|
21
30
|
x as default
|
|
22
31
|
};
|
package/dist/index201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index201.js","sources":["../node_modules/dayjs/plugin/
|
|
1
|
+
{"version":3,"file":"index201.js","sources":["../node_modules/dayjs/plugin/weekOfYear.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_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
|
package/dist/index202.js
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return function(w, u, a) {
|
|
9
|
-
var o = u.prototype;
|
|
10
|
-
o.week = function(t) {
|
|
11
|
-
if (t === void 0 && (t = null), t !== null)
|
|
12
|
-
return this.add(7 * (t - this.week()), "day");
|
|
13
|
-
var s = this.$locale().yearStart || 1;
|
|
14
|
-
if (this.month() === 11 && this.date() > 25) {
|
|
15
|
-
var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
|
|
16
|
-
if (l.isBefore(d))
|
|
17
|
-
return 1;
|
|
18
|
-
}
|
|
19
|
-
var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
|
|
20
|
-
return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
|
|
21
|
-
}, o.weeks = function(t) {
|
|
22
|
-
return t === void 0 && (t = null), this.week(t);
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
})(n);
|
|
27
|
-
var m = n.exports;
|
|
28
|
-
const x = /* @__PURE__ */ c(m);
|
|
1
|
+
const s = (t, o) => t.reduce(
|
|
2
|
+
(e, r, u, p) => {
|
|
3
|
+
const n = o(r, u, p);
|
|
4
|
+
return n in e || (e[n] = []), e[n].push(r), e;
|
|
5
|
+
},
|
|
6
|
+
{}
|
|
7
|
+
);
|
|
29
8
|
export {
|
|
30
|
-
|
|
9
|
+
s as groupBy
|
|
31
10
|
};
|
|
32
11
|
//# sourceMappingURL=index202.js.map
|
package/dist/index202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index202.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index202.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n arr: T[],\n iteratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n return arr.reduce(\n (acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n const key = iteratee(curr, index, arr);\n if (!(key in acc)) {\n acc[key] = [];\n }\n acc[key].push(curr);\n return acc;\n },\n {}\n );\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACrBC,GACAC,MAEOD,EAAI;AAAA,EACT,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACtE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACPA,EAAAG,CAAG,IAAI,KAETH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACT;AAAA,EACA,CAAC;AAAA;"}
|
package/dist/index203.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
(e, r, u, p) => {
|
|
3
|
-
const n = o(r, u, p);
|
|
4
|
-
return n in e || (e[n] = []), e[n].push(r), e;
|
|
5
|
-
},
|
|
6
|
-
{}
|
|
7
|
-
);
|
|
1
|
+
const e = (t) => t[t.length - 1];
|
|
8
2
|
export {
|
|
9
|
-
|
|
3
|
+
e as last
|
|
10
4
|
};
|
|
11
5
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index203.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1] "],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}
|
package/dist/index204.js
CHANGED
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index204.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/index205.js
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { unrefElement as m } from "./index131.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 "./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
|
+
}
|
|
3
35
|
export {
|
|
4
|
-
|
|
36
|
+
O as useFocusTrap
|
|
5
37
|
};
|
|
6
38
|
//# sourceMappingURL=index205.js.map
|
package/dist/index205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index205.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index205.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/index206.js
CHANGED
|
@@ -1,38 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 i = (e, t = 50) => new Promise((r) => {
|
|
2
|
+
let a = setInterval(() => {
|
|
3
|
+
e() && (clearInterval(a), r());
|
|
4
|
+
}, t);
|
|
5
|
+
});
|
|
35
6
|
export {
|
|
36
|
-
|
|
7
|
+
i as waitFor
|
|
37
8
|
};
|
|
38
9
|
//# sourceMappingURL=index206.js.map
|
package/dist/index206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index206.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index206.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/index207.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
let a = setInterval(() => {
|
|
3
|
-
e() && (clearInterval(a), r());
|
|
4
|
-
}, t);
|
|
5
|
-
});
|
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
s as isCssColor
|
|
8
4
|
};
|
|
9
5
|
//# sourceMappingURL=index207.js.map
|
package/dist/index207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index207.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index207.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/index208.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { curry as e } from "./index238.js";
|
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
t as baseWhen,
|
|
5
|
+
s as when
|
|
4
6
|
};
|
|
5
7
|
//# sourceMappingURL=index208.js.map
|
package/dist/index208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index208.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index208.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;"}
|