bitboss-ui 0.2.1 → 0.2.2

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 (119) hide show
  1. package/dist/index101.js +1 -1
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index111.js +5 -5
  5. package/dist/index113.js +1 -1
  6. package/dist/index116.js +1 -1
  7. package/dist/index118.js +1 -1
  8. package/dist/index125.js +1 -1
  9. package/dist/index126.js +1 -1
  10. package/dist/index15.js +8 -8
  11. package/dist/index17.js +9 -9
  12. package/dist/index19.js +3 -3
  13. package/dist/index197.js +1 -1
  14. package/dist/index198.js +235 -3
  15. package/dist/index198.js.map +1 -1
  16. package/dist/index199.js +2 -35
  17. package/dist/index199.js.map +1 -1
  18. package/dist/index200.js +2 -6
  19. package/dist/index200.js.map +1 -1
  20. package/dist/index201.js +3 -351
  21. package/dist/index201.js.map +1 -1
  22. package/dist/index202.js +34 -133
  23. package/dist/index202.js.map +1 -1
  24. package/dist/index203.js +6 -295
  25. package/dist/index203.js.map +1 -1
  26. package/dist/index204.js +5 -19
  27. package/dist/index204.js.map +1 -1
  28. package/dist/index205.js +16 -2
  29. package/dist/index205.js.map +1 -1
  30. package/dist/index206.js +16 -2
  31. package/dist/index206.js.map +1 -1
  32. package/dist/index207.js +17 -184
  33. package/dist/index207.js.map +1 -1
  34. package/dist/index208.js +20 -23
  35. package/dist/index208.js.map +1 -1
  36. package/dist/index209.js +27 -367
  37. package/dist/index209.js.map +1 -1
  38. package/dist/index21.js +2 -2
  39. package/dist/index210.js +8 -235
  40. package/dist/index210.js.map +1 -1
  41. package/dist/index211.js +2 -16
  42. package/dist/index211.js.map +1 -1
  43. package/dist/index212.js +349 -14
  44. package/dist/index212.js.map +1 -1
  45. package/dist/index213.js +131 -17
  46. package/dist/index213.js.map +1 -1
  47. package/dist/index214.js +184 -27
  48. package/dist/index214.js.map +1 -1
  49. package/dist/index215.js +23 -8
  50. package/dist/index215.js.map +1 -1
  51. package/dist/index216.js +369 -3
  52. package/dist/index216.js.map +1 -1
  53. package/dist/index217.js +3 -3
  54. package/dist/index217.js.map +1 -1
  55. package/dist/index218.js +3 -2
  56. package/dist/index218.js.map +1 -1
  57. package/dist/index220.js +2 -2
  58. package/dist/index220.js.map +1 -1
  59. package/dist/index221.js +113 -25
  60. package/dist/index221.js.map +1 -1
  61. package/dist/index222.js +27 -12
  62. package/dist/index222.js.map +1 -1
  63. package/dist/index223.js +12 -8
  64. package/dist/index223.js.map +1 -1
  65. package/dist/index224.js +7 -114
  66. package/dist/index224.js.map +1 -1
  67. package/dist/index225.js +1 -1
  68. package/dist/index226.js +2 -4
  69. package/dist/index226.js.map +1 -1
  70. package/dist/index227.js +4 -2
  71. package/dist/index227.js.map +1 -1
  72. package/dist/index228.js +1 -1
  73. package/dist/index229.js +1 -1
  74. package/dist/index230.js +6 -200
  75. package/dist/index230.js.map +1 -1
  76. package/dist/index231.js +2 -6
  77. package/dist/index231.js.map +1 -1
  78. package/dist/index232.js +295 -2
  79. package/dist/index232.js.map +1 -1
  80. package/dist/index237.js +200 -2
  81. package/dist/index237.js.map +1 -1
  82. package/dist/index241.js +2 -2
  83. package/dist/index241.js.map +1 -1
  84. package/dist/index242.js +224 -162
  85. package/dist/index242.js.map +1 -1
  86. package/dist/index243.js +258 -2
  87. package/dist/index243.js.map +1 -1
  88. package/dist/index244.js +154 -61
  89. package/dist/index244.js.map +1 -1
  90. package/dist/index245.js +2 -224
  91. package/dist/index245.js.map +1 -1
  92. package/dist/index246.js +68 -257
  93. package/dist/index246.js.map +1 -1
  94. package/dist/index247.js +2 -2
  95. package/dist/index247.js.map +1 -1
  96. package/dist/index248.js +2 -38
  97. package/dist/index248.js.map +1 -1
  98. package/dist/index249.js +38 -2
  99. package/dist/index249.js.map +1 -1
  100. package/dist/index250.js +2 -2
  101. package/dist/index250.js.map +1 -1
  102. package/dist/index251.js +2 -3
  103. package/dist/index251.js.map +1 -1
  104. package/dist/index252.js +1 -1
  105. package/dist/index253.js +3 -2
  106. package/dist/index253.js.map +1 -1
  107. package/dist/index254.js +5 -0
  108. package/dist/index254.js.map +1 -0
  109. package/dist/index29.js +2 -2
  110. package/dist/index31.js +5 -5
  111. package/dist/index65.js +5 -5
  112. package/dist/index69.js +2 -2
  113. package/dist/index72.js +1 -1
  114. package/dist/index75.js +1 -1
  115. package/dist/index79.js +4 -4
  116. package/dist/index8.js +60 -60
  117. package/dist/index8.js.map +1 -1
  118. package/dist/style.css +1 -1
  119. package/package.json +1 -1
package/dist/index221.js CHANGED
@@ -1,31 +1,119 @@
1
- import { getDefaultExportFromCjs as f } from "./index231.js";
2
- import { M as s } from "./index248.js";
3
- import { s as m } from "./index249.js";
4
- import { o as p } from "./index250.js";
5
- function c(r, i) {
6
- for (var o = 0; o < i.length; o++) {
7
- const e = i[o];
8
- if (typeof e != "string" && !Array.isArray(e)) {
9
- for (const t in e)
10
- if (t !== "default" && !(t in r)) {
11
- const a = Object.getOwnPropertyDescriptor(e, t);
12
- a && Object.defineProperty(r, t, a.get ? a : {
13
- enumerable: !0,
14
- get: () => e[t]
15
- });
16
- }
1
+ import { computePosition as F } from "./index212.js";
2
+ import { autoUpdate as L, platform as N } from "./index212.js";
3
+ import { unref as o, computed as u, ref as i, shallowRef as U, watch as g, getCurrentScope as j, onScopeDispose as k, shallowReadonly as a } from "vue";
4
+ import { arrow as q } from "./index216.js";
5
+ import { detectOverflow as T, flip as W, offset as X, shift as Y } from "./index216.js";
6
+ function h(t) {
7
+ var l;
8
+ return (l = t == null ? void 0 : t.$el) != null ? l : t;
9
+ }
10
+ function H(t) {
11
+ return {
12
+ name: "arrow",
13
+ options: t,
14
+ fn(l) {
15
+ const n = h(o(t.element));
16
+ return n == null ? {} : q({
17
+ element: n,
18
+ padding: t.padding
19
+ }).fn(l);
17
20
  }
21
+ };
22
+ }
23
+ function C(t) {
24
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
25
+ }
26
+ function S(t, l) {
27
+ const n = C(t);
28
+ return Math.round(l * n) / n;
29
+ }
30
+ function I(t, l, n) {
31
+ n === void 0 && (n = {});
32
+ const x = n.whileElementsMounted, D = u(() => {
33
+ var e;
34
+ return (e = o(n.open)) != null ? e : !0;
35
+ }), O = u(() => o(n.middleware)), v = u(() => {
36
+ var e;
37
+ return (e = o(n.placement)) != null ? e : "bottom";
38
+ }), m = u(() => {
39
+ var e;
40
+ return (e = o(n.strategy)) != null ? e : "absolute";
41
+ }), V = u(() => {
42
+ var e;
43
+ return (e = o(n.transform)) != null ? e : !0;
44
+ }), f = u(() => h(t.value)), r = u(() => h(l.value)), p = i(0), w = i(0), c = i(m.value), E = i(v.value), P = U({}), y = i(!1), $ = u(() => {
45
+ const e = {
46
+ position: c.value,
47
+ left: "0",
48
+ top: "0"
49
+ };
50
+ if (!r.value)
51
+ return e;
52
+ const _ = S(r.value, p.value), M = S(r.value, w.value);
53
+ return V.value ? {
54
+ ...e,
55
+ transform: "translate(" + _ + "px, " + M + "px)",
56
+ ...C(r.value) >= 1.5 && {
57
+ willChange: "transform"
58
+ }
59
+ } : {
60
+ position: c.value,
61
+ left: _ + "px",
62
+ top: M + "px"
63
+ };
64
+ });
65
+ let s;
66
+ function d() {
67
+ f.value == null || r.value == null || F(f.value, r.value, {
68
+ middleware: O.value,
69
+ placement: v.value,
70
+ strategy: m.value
71
+ }).then((e) => {
72
+ p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, P.value = e.middlewareData, y.value = !0;
73
+ });
74
+ }
75
+ function R() {
76
+ typeof s == "function" && (s(), s = void 0);
77
+ }
78
+ function b() {
79
+ if (R(), x === void 0) {
80
+ d();
81
+ return;
82
+ }
83
+ if (f.value != null && r.value != null) {
84
+ s = x(f.value, r.value, d);
85
+ return;
86
+ }
87
+ }
88
+ function B() {
89
+ D.value || (y.value = !1);
18
90
  }
19
- return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
91
+ return g([O, v, m], d, {
92
+ flush: "sync"
93
+ }), g([f, r], b, {
94
+ flush: "sync"
95
+ }), g(D, B, {
96
+ flush: "sync"
97
+ }), j() && k(R), {
98
+ x: a(p),
99
+ y: a(w),
100
+ strategy: a(c),
101
+ placement: a(E),
102
+ middlewareData: a(P),
103
+ isPositioned: a(y),
104
+ floatingStyles: $,
105
+ update: d
106
+ };
20
107
  }
21
- let l = s;
22
- var n = new l(m, p);
23
- const d = /* @__PURE__ */ f(n), _ = /* @__PURE__ */ c({
24
- __proto__: null,
25
- default: d
26
- }, [n]);
27
108
  export {
28
- d as default,
29
- _ as i
109
+ H as arrow,
110
+ L as autoUpdate,
111
+ F as computePosition,
112
+ T as detectOverflow,
113
+ W as flip,
114
+ X as offset,
115
+ N as platform,
116
+ Y as shift,
117
+ I as useFloating
30
118
  };
31
119
  //# sourceMappingURL=index221.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index221.js","sources":["../node_modules/mime/index.js"],"sourcesContent":["'use strict';\n\nlet Mime = require('./Mime');\nmodule.exports = new Mime(require('./types/standard'), require('./types/other'));\n"],"names":["Mime","require$$0","mime","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,IAAIA,IAAOC;AACX,IAAAC,IAAiB,IAAIF,EAAKG,GAA6BC,CAAwB;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index221.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.esm.js"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction unwrapElement(element) {\n var _$el;\n return (_$el = element == null ? void 0 : element.$el) != null ? _$el : element;\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(unref(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _unref;\n return (_unref = unref(options.open)) != null ? _unref : true;\n });\n const middlewareOption = computed(() => unref(options.middleware));\n const placementOption = computed(() => {\n var _unref2;\n return (_unref2 = unref(options.placement)) != null ? _unref2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _unref3;\n return (_unref3 = unref(options.strategy)) != null ? _unref3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _unref4;\n return (_unref4 = unref(options.transform)) != null ? _unref4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["unwrapElement","element","_$el","arrow","options","args","unref","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_unref","middlewareOption","placementOption","_unref2","strategyOption","_unref3","transformOption","_unref4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":";;;;;AAIA,SAASA,EAAcC,GAAS;AAC9B,MAAIC;AACJ,UAAQA,IAAOD,KAAW,OAAO,SAASA,EAAQ,QAAQ,OAAOC,IAAOD;AAC1E;AAOA,SAASE,EAAMC,GAAS;AACtB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAA;AAAA,IACA,GAAGC,GAAM;AACP,YAAMJ,IAAUD,EAAcM,EAAMF,EAAQ,OAAO,CAAC;AACpD,aAAIH,KAAW,OACN,KAEFM,EAAQ;AAAA,QACb,SAAAN;AAAA,QACA,SAASG,EAAQ;AAAA,MACzB,CAAO,EAAE,GAAGC,CAAI;AAAA,IACX;AAAA,EACL;AACA;AAEA,SAASG,EAAOP,GAAS;AACvB,SAAI,OAAO,SAAW,MACb,KAEGA,EAAQ,cAAc,eAAe,QACtC,oBAAoB;AACjC;AAEA,SAASQ,EAAWR,GAASS,GAAO;AAClC,QAAMC,IAAMH,EAAOP,CAAO;AAC1B,SAAO,KAAK,MAAMS,IAAQC,CAAG,IAAIA;AACnC;AASA,SAASC,EAAYC,GAAWC,GAAUV,GAAS;AACjD,EAAIA,MAAY,WACdA,IAAU,CAAA;AAEZ,QAAMW,IAA6BX,EAAQ,sBACrCY,IAAaC,EAAS,MAAM;AAChC,QAAIC;AACJ,YAAQA,IAASZ,EAAMF,EAAQ,IAAI,MAAM,OAAOc,IAAS;AAAA,EAC7D,CAAG,GACKC,IAAmBF,EAAS,MAAMX,EAAMF,EAAQ,UAAU,CAAC,GAC3DgB,IAAkBH,EAAS,MAAM;AACrC,QAAII;AACJ,YAAQA,IAAUf,EAAMF,EAAQ,SAAS,MAAM,OAAOiB,IAAU;AAAA,EACpE,CAAG,GACKC,IAAiBL,EAAS,MAAM;AACpC,QAAIM;AACJ,YAAQA,IAAUjB,EAAMF,EAAQ,QAAQ,MAAM,OAAOmB,IAAU;AAAA,EACnE,CAAG,GAC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,QAAQe,EAAS,GACnBb,EAAE,QAAQa,EAAS,GACnBZ,EAAS,QAAQY,EAAS,UAC1BX,EAAU,QAAQW,EAAS,WAC3BV,EAAe,QAAQU,EAAS,gBAChCR,EAAa,QAAQ;AAAA,IAC3B,CAAK;AAAA,EACF;AACD,WAASS,IAAU;AACjB,IAAI,OAAOJ,KAAgC,eACzCA,KACAA,IAA8B;AAAA,EAEjC;AACD,WAASK,IAAS;AAEhB,QADAD,KACI7B,MAA+B,QAAW;AAC5C,MAAA0B;AACA;AAAA,IACD;AACD,QAAIf,EAAiB,SAAS,QAAQC,EAAgB,SAAS,MAAM;AACnE,MAAAa,IAA8BzB,EAA2BW,EAAiB,OAAOC,EAAgB,OAAOc,CAAM;AAC9G;AAAA,IACD;AAAA,EACF;AACD,WAASK,IAAQ;AACf,IAAK9B,EAAW,UACdmB,EAAa,QAAQ;AAAA,EAExB;AACD,SAAAY,EAAM,CAAC5B,GAAkBC,GAAiBE,CAAc,GAAGmB,GAAQ;AAAA,IACjE,OAAO;AAAA,EACX,CAAG,GACDM,EAAM,CAACrB,GAAkBC,CAAe,GAAGkB,GAAQ;AAAA,IACjD,OAAO;AAAA,EACX,CAAG,GACDE,EAAM/B,GAAY8B,GAAO;AAAA,IACvB,OAAO;AAAA,EACX,CAAG,GACGE,EAAe,KACjBC,EAAeL,CAAO,GAEjB;AAAA,IACL,GAAGM,EAAgBtB,CAAC;AAAA,IACpB,GAAGsB,EAAgBpB,CAAC;AAAA,IACpB,UAAUoB,EAAgBnB,CAAQ;AAAA,IAClC,WAAWmB,EAAgBlB,CAAS;AAAA,IACpC,gBAAgBkB,EAAgBjB,CAAc;AAAA,IAC9C,cAAciB,EAAgBf,CAAY;AAAA,IAC1C,gBAAAC;AAAA,IACA,QAAAK;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
package/dist/index222.js CHANGED
@@ -1,16 +1,31 @@
1
- const l = (e, r, f) => e.reduce((t, n) => {
2
- if (t)
3
- return t;
4
- if (f(n))
5
- return n;
6
- if (r in n) {
7
- let i = l([].concat(n[r]), r, f);
8
- if (i)
9
- return i;
1
+ import { getDefaultExportFromCjs as f } from "./index230.js";
2
+ import { M as s } from "./index249.js";
3
+ import { s as m } from "./index250.js";
4
+ import { o as p } from "./index251.js";
5
+ function c(r, i) {
6
+ for (var o = 0; o < i.length; o++) {
7
+ const e = i[o];
8
+ if (typeof e != "string" && !Array.isArray(e)) {
9
+ for (const t in e)
10
+ if (t !== "default" && !(t in r)) {
11
+ const a = Object.getOwnPropertyDescriptor(e, t);
12
+ a && Object.defineProperty(r, t, a.get ? a : {
13
+ enumerable: !0,
14
+ get: () => e[t]
15
+ });
16
+ }
17
+ }
10
18
  }
11
- return t;
12
- }, null);
19
+ return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
20
+ }
21
+ let l = s;
22
+ var n = new l(m, p);
23
+ const d = /* @__PURE__ */ f(n), _ = /* @__PURE__ */ c({
24
+ __proto__: null,
25
+ default: d
26
+ }, [n]);
13
27
  export {
14
- l as findInTree
28
+ d as default,
29
+ _ as i
15
30
  };
16
31
  //# sourceMappingURL=index222.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index222.js","sources":["../src/utilities/functions/findInTree.ts"],"sourcesContent":["/**\n * Find the eleemnt for which iteratee rfeturns true in a tree like structure\n */\nexport const findInTree = <T extends Record<string, any>>(\n items: T[],\n keyName: keyof T,\n iteratee: (item: T) => boolean\n): null | T => {\n return items.reduce((acc: null | T, curr) => {\n if (acc) return acc;\n if (iteratee(curr)) {\n return curr;\n }\n\n if (keyName in curr) {\n let fromChildren = findInTree([].concat(curr[keyName]), keyName, iteratee);\n if (fromChildren) {\n return fromChildren;\n }\n }\n return acc;\n }, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACxBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AACvC,MAAAD;AAAY,WAAAA;AACZ,MAAAD,EAASE,CAAI;AACR,WAAAA;AAGT,MAAIH,KAAWG,GAAM;AACf,QAAAC,IAAeN,EAAW,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC,GAAGA,GAASC,CAAQ;AACzE,QAAIG;AACK,aAAAA;AAAA,EAEX;AACO,SAAAF;GACN,IAAI;"}
1
+ {"version":3,"file":"index222.js","sources":["../node_modules/mime/index.js"],"sourcesContent":["'use strict';\n\nlet Mime = require('./Mime');\nmodule.exports = new Mime(require('./types/standard'), require('./types/other'));\n"],"names":["Mime","require$$0","mime","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,IAAIA,IAAOC;AACX,IAAAC,IAAiB,IAAIF,EAAKG,GAA6BC,CAAwB;;;;;","x_google_ignoreList":[0]}
package/dist/index223.js CHANGED
@@ -1,12 +1,16 @@
1
- const o = (n, t) => {
2
- for (let e = n.length - 1; e >= 0; e--) {
3
- const i = n[e];
4
- if (t(i, e, n))
5
- return e;
1
+ const l = (e, r, f) => e.reduce((t, n) => {
2
+ if (t)
3
+ return t;
4
+ if (f(n))
5
+ return n;
6
+ if (r in n) {
7
+ let i = l([].concat(n[r]), r, f);
8
+ if (i)
9
+ return i;
6
10
  }
7
- return -1;
8
- };
11
+ return t;
12
+ }, null);
9
13
  export {
10
- o as findRightIndex
14
+ l as findInTree
11
15
  };
12
16
  //# sourceMappingURL=index223.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index223.js","sources":["../src/utilities/functions/findRightIndex.ts"],"sourcesContent":["/**\n * Same as find but from the end of an array\n */\nexport const findRightIndex = <T>(arr: T[], iteratee: (value: T, index: number, arr: T[]) => boolean) => {\n for (let index = arr.length - 1; index >= 0; index--) {\n const element = arr[index];\n if(iteratee(element, index, arr)) {\n return index\n }\n }\n return -1;\n}"],"names":["findRightIndex","arr","iteratee","index","element"],"mappings":"AAGa,MAAAA,IAAiB,CAAIC,GAAUC,MAA6D;AACrG,WAASC,IAAQF,EAAI,SAAS,GAAGE,KAAS,GAAGA,KAAS;AAC5C,UAAAC,IAAUH,EAAIE,CAAK;AACzB,QAAGD,EAASE,GAASD,GAAOF,CAAG;AACpB,aAAAE;AAAA,EAEf;AACO,SAAA;AACX;"}
1
+ {"version":3,"file":"index223.js","sources":["../src/utilities/functions/findInTree.ts"],"sourcesContent":["/**\n * Find the eleemnt for which iteratee rfeturns true in a tree like structure\n */\nexport const findInTree = <T extends Record<string, any>>(\n items: T[],\n keyName: keyof T,\n iteratee: (item: T) => boolean\n): null | T => {\n return items.reduce((acc: null | T, curr) => {\n if (acc) return acc;\n if (iteratee(curr)) {\n return curr;\n }\n\n if (keyName in curr) {\n let fromChildren = findInTree([].concat(curr[keyName]), keyName, iteratee);\n if (fromChildren) {\n return fromChildren;\n }\n }\n return acc;\n }, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACxBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AACvC,MAAAD;AAAY,WAAAA;AACZ,MAAAD,EAASE,CAAI;AACR,WAAAA;AAGT,MAAIH,KAAWG,GAAM;AACf,QAAAC,IAAeN,EAAW,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC,GAAGA,GAASC,CAAQ;AACzE,QAAIG;AACK,aAAAA;AAAA,EAEX;AACO,SAAAF;GACN,IAAI;"}
package/dist/index224.js CHANGED
@@ -1,119 +1,12 @@
1
- import { computePosition as F } from "./index201.js";
2
- import { autoUpdate as L, platform as N } from "./index201.js";
3
- import { unref as o, computed as u, ref as i, shallowRef as U, watch as g, getCurrentScope as j, onScopeDispose as k, shallowReadonly as a } from "vue";
4
- import { arrow as q } from "./index209.js";
5
- import { detectOverflow as T, flip as W, offset as X, shift as Y } from "./index209.js";
6
- function h(t) {
7
- var l;
8
- return (l = t == null ? void 0 : t.$el) != null ? l : t;
9
- }
10
- function H(t) {
11
- return {
12
- name: "arrow",
13
- options: t,
14
- fn(l) {
15
- const n = h(o(t.element));
16
- return n == null ? {} : q({
17
- element: n,
18
- padding: t.padding
19
- }).fn(l);
20
- }
21
- };
22
- }
23
- function C(t) {
24
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
25
- }
26
- function S(t, l) {
27
- const n = C(t);
28
- return Math.round(l * n) / n;
29
- }
30
- function I(t, l, n) {
31
- n === void 0 && (n = {});
32
- const x = n.whileElementsMounted, D = u(() => {
33
- var e;
34
- return (e = o(n.open)) != null ? e : !0;
35
- }), O = u(() => o(n.middleware)), v = u(() => {
36
- var e;
37
- return (e = o(n.placement)) != null ? e : "bottom";
38
- }), m = u(() => {
39
- var e;
40
- return (e = o(n.strategy)) != null ? e : "absolute";
41
- }), V = u(() => {
42
- var e;
43
- return (e = o(n.transform)) != null ? e : !0;
44
- }), f = u(() => h(t.value)), r = u(() => h(l.value)), p = i(0), w = i(0), c = i(m.value), E = i(v.value), P = U({}), y = i(!1), $ = u(() => {
45
- const e = {
46
- position: c.value,
47
- left: "0",
48
- top: "0"
49
- };
50
- if (!r.value)
1
+ const o = (n, t) => {
2
+ for (let e = n.length - 1; e >= 0; e--) {
3
+ const i = n[e];
4
+ if (t(i, e, n))
51
5
  return e;
52
- const _ = S(r.value, p.value), M = S(r.value, w.value);
53
- return V.value ? {
54
- ...e,
55
- transform: "translate(" + _ + "px, " + M + "px)",
56
- ...C(r.value) >= 1.5 && {
57
- willChange: "transform"
58
- }
59
- } : {
60
- position: c.value,
61
- left: _ + "px",
62
- top: M + "px"
63
- };
64
- });
65
- let s;
66
- function d() {
67
- f.value == null || r.value == null || F(f.value, r.value, {
68
- middleware: O.value,
69
- placement: v.value,
70
- strategy: m.value
71
- }).then((e) => {
72
- p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, P.value = e.middlewareData, y.value = !0;
73
- });
74
6
  }
75
- function R() {
76
- typeof s == "function" && (s(), s = void 0);
77
- }
78
- function b() {
79
- if (R(), x === void 0) {
80
- d();
81
- return;
82
- }
83
- if (f.value != null && r.value != null) {
84
- s = x(f.value, r.value, d);
85
- return;
86
- }
87
- }
88
- function B() {
89
- D.value || (y.value = !1);
90
- }
91
- return g([O, v, m], d, {
92
- flush: "sync"
93
- }), g([f, r], b, {
94
- flush: "sync"
95
- }), g(D, B, {
96
- flush: "sync"
97
- }), j() && k(R), {
98
- x: a(p),
99
- y: a(w),
100
- strategy: a(c),
101
- placement: a(E),
102
- middlewareData: a(P),
103
- isPositioned: a(y),
104
- floatingStyles: $,
105
- update: d
106
- };
107
- }
7
+ return -1;
8
+ };
108
9
  export {
109
- H as arrow,
110
- L as autoUpdate,
111
- F as computePosition,
112
- T as detectOverflow,
113
- W as flip,
114
- X as offset,
115
- N as platform,
116
- Y as shift,
117
- I as useFloating
10
+ o as findRightIndex
118
11
  };
119
12
  //# sourceMappingURL=index224.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index224.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.esm.js"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction unwrapElement(element) {\n var _$el;\n return (_$el = element == null ? void 0 : element.$el) != null ? _$el : element;\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(unref(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _unref;\n return (_unref = unref(options.open)) != null ? _unref : true;\n });\n const middlewareOption = computed(() => unref(options.middleware));\n const placementOption = computed(() => {\n var _unref2;\n return (_unref2 = unref(options.placement)) != null ? _unref2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _unref3;\n return (_unref3 = unref(options.strategy)) != null ? _unref3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _unref4;\n return (_unref4 = unref(options.transform)) != null ? _unref4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["unwrapElement","element","_$el","arrow","options","args","unref","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_unref","middlewareOption","placementOption","_unref2","strategyOption","_unref3","transformOption","_unref4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":";;;;;AAIA,SAASA,EAAcC,GAAS;AAC9B,MAAIC;AACJ,UAAQA,IAAOD,KAAW,OAAO,SAASA,EAAQ,QAAQ,OAAOC,IAAOD;AAC1E;AAOA,SAASE,EAAMC,GAAS;AACtB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAA;AAAA,IACA,GAAGC,GAAM;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7B,MAA+B,QAAW;AAC5C,MAAA0B;AACA;AAAA,IACD;AACD,QAAIf,EAAiB,SAAS,QAAQC,EAAgB,SAAS,MAAM;AACnE,MAAAa,IAA8BzB,EAA2BW,EAAiB,OAAOC,EAAgB,OAAOc,CAAM;AAC9G;AAAA,IACD;AAAA,EACF;AACD,WAASK,IAAQ;AACf,IAAK9B,EAAW,UACdmB,EAAa,QAAQ;AAAA,EAExB;AACD,SAAAY,EAAM,CAAC5B,GAAkBC,GAAiBE,CAAc,GAAGmB,GAAQ;AAAA,IACjE,OAAO;AAAA,EACX,CAAG,GACDM,EAAM,CAACrB,GAAkBC,CAAe,GAAGkB,GAAQ;AAAA,IACjD,OAAO;AAAA,EACX,CAAG,GACDE,EAAM/B,GAAY8B,GAAO;AAAA,IACvB,OAAO;AAAA,EACX,CAAG,GACGE,EAAe,KACjBC,EAAeL,CAAO,GAEjB;AAAA,IACL,GAAGM,EAAgBtB,CAAC;AAAA,IACpB,GAAGsB,EAAgBpB,CAAC;AAAA,IACpB,UAAUoB,EAAgBnB,CAAQ;AAAA,IAClC,WAAWmB,EAAgBlB,CAAS;AAAA,IACpC,gBAAgBkB,EAAgBjB,CAAc;AAAA,IAC9C,cAAciB,EAAgBf,CAAY;AAAA,IAC1C,gBAAAC;AAAA,IACA,QAAAK;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index224.js","sources":["../src/utilities/functions/findRightIndex.ts"],"sourcesContent":["/**\n * Same as find but from the end of an array\n */\nexport const findRightIndex = <T>(arr: T[], iteratee: (value: T, index: number, arr: T[]) => boolean) => {\n for (let index = arr.length - 1; index >= 0; index--) {\n const element = arr[index];\n if(iteratee(element, index, arr)) {\n return index\n }\n }\n return -1;\n}"],"names":["findRightIndex","arr","iteratee","index","element"],"mappings":"AAGa,MAAAA,IAAiB,CAAIC,GAAUC,MAA6D;AACrG,WAASC,IAAQF,EAAI,SAAS,GAAGE,KAAS,GAAGA,KAAS;AAC5C,UAAAC,IAAUH,EAAIE,CAAK;AACzB,QAAGD,EAASE,GAASD,GAAOF,CAAG;AACpB,aAAAE;AAAA,EAEf;AACO,SAAA;AACX;"}
package/dist/index225.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index231.js";
1
+ import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index230.js";
2
2
  var M = "Expected a function", S = 0 / 0, N = "[object Symbol]", W = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof g == "object" && g && g.Object === Object && g, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, T = function() {
3
3
  return P.Date.now();
4
4
  };
package/dist/index226.js CHANGED
@@ -1,7 +1,5 @@
1
- const e = function(t) {
2
- return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
- };
1
+ const t = (d, o) => +d + +o;
4
2
  export {
5
- e as curry
3
+ t as add
6
4
  };
7
5
  //# sourceMappingURL=index226.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index226.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> =\n <P extends Partial<A>>(...args: P) => P extends A ? R :\n A extends [...SameLength<P>, ...infer S] ? S extends any[] ? Curried<S, R>\n : never : never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>\n\nexport const curry = function<A extends any[], R>(fn: (...args: A) => R): Curried<A, R> {\n return (...args: any[]): any =>\n args.length >= fn.length ? fn(...args as any) : curry((fn as any).bind(undefined, ...args));\n }"],"names":["curry","fn","args"],"mappings":"AAOa,MAAAA,IAAQ,SAA6BC,GAAsC;AACpF,SAAO,IAAIC,MACTA,EAAK,UAAUD,EAAG,SAASA,EAAG,GAAGC,CAAW,IAAIF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC9F;"}
1
+ {"version":3,"file":"index226.js","sources":["../src/utilities/functions/add.ts"],"sourcesContent":["export const add = (a:number | string, b: number | string) => +a + +b;"],"names":["add","a","b"],"mappings":"AAAO,MAAMA,IAAM,CAACC,GAAmBC,MAAuB,CAACD,IAAI,CAACC;"}
package/dist/index227.js CHANGED
@@ -1,5 +1,7 @@
1
- const t = (d, o) => +d + +o;
1
+ const e = function(t) {
2
+ return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
+ };
2
4
  export {
3
- t as add
5
+ e as curry
4
6
  };
5
7
  //# sourceMappingURL=index227.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index227.js","sources":["../src/utilities/functions/add.ts"],"sourcesContent":["export const add = (a:number | string, b: number | string) => +a + +b;"],"names":["add","a","b"],"mappings":"AAAO,MAAMA,IAAM,CAACC,GAAmBC,MAAuB,CAACD,IAAI,CAACC;"}
1
+ {"version":3,"file":"index227.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> =\n <P extends Partial<A>>(...args: P) => P extends A ? R :\n A extends [...SameLength<P>, ...infer S] ? S extends any[] ? Curried<S, R>\n : never : never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>\n\nexport const curry = function<A extends any[], R>(fn: (...args: A) => R): Curried<A, R> {\n return (...args: any[]): any =>\n args.length >= fn.length ? fn(...args as any) : curry((fn as any).bind(undefined, ...args));\n }"],"names":["curry","fn","args"],"mappings":"AAOa,MAAAA,IAAQ,SAA6BC,GAAsC;AACpF,SAAO,IAAIC,MACTA,EAAK,UAAUD,EAAG,SAASA,EAAG,GAAGC,CAAW,IAAIF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC9F;"}
package/dist/index228.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isFocusable as G, tabbable as te, focusable as ae, isTabbable as T, getTabIndex as K } from "./index230.js";
1
+ import { isFocusable as G, tabbable as te, focusable as ae, isTabbable as T, getTabIndex as K } from "./index237.js";
2
2
  /*!
3
3
  * focus-trap 7.5.4
4
4
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
package/dist/index229.js CHANGED
@@ -1,4 +1,4 @@
1
- import { commonjsGlobal as b, getDefaultExportFromCjs as M } from "./index231.js";
1
+ import { commonjsGlobal as b, getDefaultExportFromCjs as M } from "./index230.js";
2
2
  var k = "Expected a function", E = 0 / 0, N = "[object Symbol]", $ = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof b == "object" && b && b.Object === Object && b, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, v = function() {
3
3
  return P.Date.now();
4
4
  };