bitboss-ui 0.1.2 → 0.1.4
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/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +151 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +96 -0
- package/dist/components/BbRatio/BbRatio.vue.d.ts +12 -0
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +104 -98
- package/dist/index.js.map +1 -1
- package/dist/index10.js +123 -95
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +43 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index103.js +2 -2
- package/dist/index104.js +2 -2
- package/dist/index105.js +2 -2
- package/dist/index106.js +2 -2
- package/dist/index107.js +2 -2
- package/dist/index108.js +2 -2
- package/dist/index109.js +2 -2
- package/dist/index110.js +2 -2
- package/dist/index111.js +2 -2
- package/dist/index112.js +2 -2
- package/dist/index113.js +2 -2
- package/dist/index114.js +2 -2
- package/dist/index115.js +2 -2
- package/dist/index116.js +2 -2
- package/dist/index117.js +2 -2
- package/dist/index118.js +2 -2
- package/dist/index119.js +3 -2
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +4 -4
- package/dist/index120.js +2 -2
- package/dist/index121.js +3 -2
- package/dist/index121.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.js +2 -3
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -3
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index129.js +3 -2
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index131.js +2 -2
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -3
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +6 -6
- package/dist/index140.js +3 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index142.js +3 -2
- package/dist/index142.js.map +1 -1
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -2
- package/dist/index150.js +2 -2
- package/dist/index151.js +3 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +3 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +3 -8
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +3 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +348 -17
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +131 -17
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -29
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +19 -2
- package/dist/index160.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +184 -14
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -13
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +23 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +328 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +16 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +12 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -350
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -134
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -186
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -23
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +8 -328
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +29 -21
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +2 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +3 -3
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -38
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -28
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.js +2 -13
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +20 -8
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -96
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +3 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +38 -295
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -6
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +96 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +28 -2
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -2
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +6 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -235
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +294 -88
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -117
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +111 -100
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +105 -78
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +4 -224
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +226 -249
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -38
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -2
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +4 -4
- package/dist/index200.js +89 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +79 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +49 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +223 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +261 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +41 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +5 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +5 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +12 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +9 -0
- package/dist/index209.js.map +1 -0
- package/dist/index210.js +5 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +14 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +434 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +12 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +203 -0
- package/dist/index214.js.map +1 -0
- package/dist/index22.js +14 -14
- package/dist/index24.js +4 -4
- package/dist/index26.js +2 -2
- package/dist/index28.js +4 -4
- package/dist/index34.js +2 -2
- package/dist/index36.js +50 -37
- package/dist/index36.js.map +1 -1
- package/dist/index38.js +39 -39
- package/dist/index38.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +36 -82
- package/dist/index40.js.map +1 -1
- package/dist/index42.js +44 -57
- package/dist/index42.js.map +1 -1
- package/dist/index44.js +98 -79
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +79 -81
- package/dist/index46.js.map +1 -1
- package/dist/index48.js +80 -40
- package/dist/index48.js.map +1 -1
- package/dist/index50.js +40 -283
- package/dist/index50.js.map +1 -1
- package/dist/index52.js +279 -95
- package/dist/index52.js.map +1 -1
- package/dist/index54.js +98 -212
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +213 -44
- package/dist/index56.js.map +1 -1
- package/dist/index58.js +45 -40
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -96
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +44 -2
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +89 -211
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +210 -130
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +134 -18
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +145 -74
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +18 -98
- package/dist/index69.js.map +1 -1
- package/dist/index71.js +77 -17
- package/dist/index71.js.map +1 -1
- package/dist/index73.js +48 -66
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +21 -78
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +77 -46
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +44 -61
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +188 -181
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +82 -106
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +88 -370
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +106 -74
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +371 -68
- package/dist/index87.js.map +1 -1
- package/dist/index89.js +75 -111
- package/dist/index89.js.map +1 -1
- package/dist/index91.js +76 -87
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +111 -32
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +2 -37
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +87 -42
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +2 -43
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +38 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +37 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +47 -3
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index184.js
CHANGED
|
@@ -1,298 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (typeof n == "string") {
|
|
38
|
-
var s = n.toLowerCase();
|
|
39
|
-
D[s] && (e = s), t && (D[s] = t, e = s);
|
|
40
|
-
var u = n.split("-");
|
|
41
|
-
if (!e && u.length > 1)
|
|
42
|
-
return i(u[0]);
|
|
43
|
-
} else {
|
|
44
|
-
var o = n.name;
|
|
45
|
-
D[o] = n, e = o;
|
|
46
|
-
}
|
|
47
|
-
return !r && e && (Y = e), e || !r && Y;
|
|
48
|
-
}, f = function(i, n) {
|
|
49
|
-
if (N(i))
|
|
50
|
-
return i.clone();
|
|
51
|
-
var t = typeof n == "object" ? n : {};
|
|
52
|
-
return t.date = i, t.args = arguments, new W(t);
|
|
53
|
-
}, a = P;
|
|
54
|
-
a.l = L, a.i = N, a.w = function(i, n) {
|
|
55
|
-
return f(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
56
|
-
};
|
|
57
|
-
var W = function() {
|
|
58
|
-
function i(t) {
|
|
59
|
-
this.$L = L(t.locale, null, !0), this.parse(t);
|
|
60
|
-
}
|
|
61
|
-
var n = i.prototype;
|
|
62
|
-
return n.parse = function(t) {
|
|
63
|
-
this.$d = function(r) {
|
|
64
|
-
var e = r.date, s = r.utc;
|
|
65
|
-
if (e === null)
|
|
66
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
67
|
-
if (a.u(e))
|
|
68
|
-
return /* @__PURE__ */ new Date();
|
|
69
|
-
if (e instanceof Date)
|
|
70
|
-
return new Date(e);
|
|
71
|
-
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
72
|
-
var u = e.match(B);
|
|
73
|
-
if (u) {
|
|
74
|
-
var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
|
|
75
|
-
return s ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return new Date(e);
|
|
79
|
-
}(t), this.$x = t.x || {}, this.init();
|
|
80
|
-
}, n.init = function() {
|
|
81
|
-
var t = this.$d;
|
|
82
|
-
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
83
|
-
}, n.$utils = function() {
|
|
84
|
-
return a;
|
|
85
|
-
}, n.isValid = function() {
|
|
86
|
-
return this.$d.toString() !== J;
|
|
87
|
-
}, n.isSame = function(t, r) {
|
|
88
|
-
var e = f(t);
|
|
89
|
-
return this.startOf(r) <= e && e <= this.endOf(r);
|
|
90
|
-
}, n.isAfter = function(t, r) {
|
|
91
|
-
return f(t) < this.startOf(r);
|
|
92
|
-
}, n.isBefore = function(t, r) {
|
|
93
|
-
return this.endOf(r) < f(t);
|
|
94
|
-
}, n.$g = function(t, r, e) {
|
|
95
|
-
return a.u(t) ? this[r] : this.set(e, t);
|
|
96
|
-
}, n.unix = function() {
|
|
97
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
98
|
-
}, n.valueOf = function() {
|
|
99
|
-
return this.$d.getTime();
|
|
100
|
-
}, n.startOf = function(t, r) {
|
|
101
|
-
var e = this, s = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
|
|
102
|
-
var y = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
|
|
103
|
-
return s ? y : y.endOf(M);
|
|
104
|
-
}, c = function(p, $) {
|
|
105
|
-
return a.w(e.toDate()[p].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
|
|
106
|
-
}, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
|
|
107
|
-
switch (u) {
|
|
108
|
-
case v:
|
|
109
|
-
return s ? o(1, 0) : o(31, 11);
|
|
110
|
-
case m:
|
|
111
|
-
return s ? o(1, d) : o(0, d + 1);
|
|
112
|
-
case T:
|
|
113
|
-
var g = this.$locale().weekStart || 0, x = (h < g ? h + 7 : h) - g;
|
|
114
|
-
return o(s ? l - x : l + (6 - x), d);
|
|
115
|
-
case M:
|
|
116
|
-
case O:
|
|
117
|
-
return c(b + "Hours", 0);
|
|
118
|
-
case _:
|
|
119
|
-
return c(b + "Minutes", 1);
|
|
120
|
-
case w:
|
|
121
|
-
return c(b + "Seconds", 2);
|
|
122
|
-
case S:
|
|
123
|
-
return c(b + "Milliseconds", 3);
|
|
124
|
-
default:
|
|
125
|
-
return this.clone();
|
|
126
|
-
}
|
|
127
|
-
}, n.endOf = function(t) {
|
|
128
|
-
return this.startOf(t, !1);
|
|
129
|
-
}, n.$set = function(t, r) {
|
|
130
|
-
var e, s = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[v] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[s], c = s === M ? this.$D + (r - this.$W) : r;
|
|
131
|
-
if (s === m || s === v) {
|
|
132
|
-
var h = this.clone().set(O, 1);
|
|
133
|
-
h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
|
|
134
|
-
} else
|
|
135
|
-
o && this.$d[o](c);
|
|
136
|
-
return this.init(), this;
|
|
137
|
-
}, n.set = function(t, r) {
|
|
138
|
-
return this.clone().$set(t, r);
|
|
139
|
-
}, n.get = function(t) {
|
|
140
|
-
return this[a.p(t)]();
|
|
141
|
-
}, n.add = function(t, r) {
|
|
142
|
-
var e, s = this;
|
|
143
|
-
t = Number(t);
|
|
144
|
-
var u = a.p(r), o = function(d) {
|
|
145
|
-
var l = f(s);
|
|
146
|
-
return a.w(l.date(l.date() + Math.round(d * t)), s);
|
|
147
|
-
};
|
|
148
|
-
if (u === m)
|
|
149
|
-
return this.set(m, this.$M + t);
|
|
150
|
-
if (u === v)
|
|
151
|
-
return this.set(v, this.$y + t);
|
|
152
|
-
if (u === M)
|
|
153
|
-
return o(1);
|
|
154
|
-
if (u === T)
|
|
155
|
-
return o(7);
|
|
156
|
-
var c = (e = {}, e[w] = k, e[_] = q, e[S] = j, e)[u] || 1, h = this.$d.getTime() + t * c;
|
|
157
|
-
return a.w(h, this);
|
|
158
|
-
}, n.subtract = function(t, r) {
|
|
159
|
-
return this.add(-1 * t, r);
|
|
160
|
-
}, n.format = function(t) {
|
|
161
|
-
var r = this, e = this.$locale();
|
|
162
|
-
if (!this.isValid())
|
|
163
|
-
return e.invalidDate || J;
|
|
164
|
-
var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, y, H, C) {
|
|
165
|
-
return $ && ($[y] || $(r, s)) || H[y].slice(0, C);
|
|
166
|
-
}, x = function($) {
|
|
167
|
-
return a.s(o % 12 || 12, $, "0");
|
|
168
|
-
}, p = b || function($, y, H) {
|
|
169
|
-
var C = $ < 12 ? "AM" : "PM";
|
|
170
|
-
return H ? C.toLowerCase() : C;
|
|
171
|
-
};
|
|
172
|
-
return s.replace(E, function($, y) {
|
|
173
|
-
return y || function(H) {
|
|
174
|
-
switch (H) {
|
|
175
|
-
case "YY":
|
|
176
|
-
return String(r.$y).slice(-2);
|
|
177
|
-
case "YYYY":
|
|
178
|
-
return a.s(r.$y, 4, "0");
|
|
179
|
-
case "M":
|
|
180
|
-
return h + 1;
|
|
181
|
-
case "MM":
|
|
182
|
-
return a.s(h + 1, 2, "0");
|
|
183
|
-
case "MMM":
|
|
184
|
-
return g(e.monthsShort, h, l, 3);
|
|
185
|
-
case "MMMM":
|
|
186
|
-
return g(l, h);
|
|
187
|
-
case "D":
|
|
188
|
-
return r.$D;
|
|
189
|
-
case "DD":
|
|
190
|
-
return a.s(r.$D, 2, "0");
|
|
191
|
-
case "d":
|
|
192
|
-
return String(r.$W);
|
|
193
|
-
case "dd":
|
|
194
|
-
return g(e.weekdaysMin, r.$W, d, 2);
|
|
195
|
-
case "ddd":
|
|
196
|
-
return g(e.weekdaysShort, r.$W, d, 3);
|
|
197
|
-
case "dddd":
|
|
198
|
-
return d[r.$W];
|
|
199
|
-
case "H":
|
|
200
|
-
return String(o);
|
|
201
|
-
case "HH":
|
|
202
|
-
return a.s(o, 2, "0");
|
|
203
|
-
case "h":
|
|
204
|
-
return x(1);
|
|
205
|
-
case "hh":
|
|
206
|
-
return x(2);
|
|
207
|
-
case "a":
|
|
208
|
-
return p(o, c, !0);
|
|
209
|
-
case "A":
|
|
210
|
-
return p(o, c, !1);
|
|
211
|
-
case "m":
|
|
212
|
-
return String(c);
|
|
213
|
-
case "mm":
|
|
214
|
-
return a.s(c, 2, "0");
|
|
215
|
-
case "s":
|
|
216
|
-
return String(r.$s);
|
|
217
|
-
case "ss":
|
|
218
|
-
return a.s(r.$s, 2, "0");
|
|
219
|
-
case "SSS":
|
|
220
|
-
return a.s(r.$ms, 3, "0");
|
|
221
|
-
case "Z":
|
|
222
|
-
return u;
|
|
223
|
-
}
|
|
224
|
-
return null;
|
|
225
|
-
}($) || u.replace(":", "");
|
|
226
|
-
});
|
|
227
|
-
}, n.utcOffset = function() {
|
|
228
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
229
|
-
}, n.diff = function(t, r, e) {
|
|
230
|
-
var s, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
|
|
231
|
-
return a.m(u, c);
|
|
232
|
-
};
|
|
233
|
-
switch (o) {
|
|
234
|
-
case v:
|
|
235
|
-
s = l() / 12;
|
|
236
|
-
break;
|
|
237
|
-
case m:
|
|
238
|
-
s = l();
|
|
239
|
-
break;
|
|
240
|
-
case F:
|
|
241
|
-
s = l() / 3;
|
|
242
|
-
break;
|
|
243
|
-
case T:
|
|
244
|
-
s = (d - h) / 6048e5;
|
|
245
|
-
break;
|
|
246
|
-
case M:
|
|
247
|
-
s = (d - h) / 864e5;
|
|
248
|
-
break;
|
|
249
|
-
case _:
|
|
250
|
-
s = d / q;
|
|
251
|
-
break;
|
|
252
|
-
case w:
|
|
253
|
-
s = d / k;
|
|
254
|
-
break;
|
|
255
|
-
case S:
|
|
256
|
-
s = d / j;
|
|
257
|
-
break;
|
|
258
|
-
default:
|
|
259
|
-
s = d;
|
|
260
|
-
}
|
|
261
|
-
return e ? s : a.a(s);
|
|
262
|
-
}, n.daysInMonth = function() {
|
|
263
|
-
return this.endOf(m).$D;
|
|
264
|
-
}, n.$locale = function() {
|
|
265
|
-
return D[this.$L];
|
|
266
|
-
}, n.locale = function(t, r) {
|
|
267
|
-
if (!t)
|
|
268
|
-
return this.$L;
|
|
269
|
-
var e = this.clone(), s = L(t, r, !0);
|
|
270
|
-
return s && (e.$L = s), e;
|
|
271
|
-
}, n.clone = function() {
|
|
272
|
-
return a.w(this.$d, this);
|
|
273
|
-
}, n.toDate = function() {
|
|
274
|
-
return new Date(this.valueOf());
|
|
275
|
-
}, n.toJSON = function() {
|
|
276
|
-
return this.isValid() ? this.toISOString() : null;
|
|
277
|
-
}, n.toISOString = function() {
|
|
278
|
-
return this.$d.toISOString();
|
|
279
|
-
}, n.toString = function() {
|
|
280
|
-
return this.$d.toUTCString();
|
|
281
|
-
}, i;
|
|
282
|
-
}(), Z = W.prototype;
|
|
283
|
-
return f.prototype = Z, [["$ms", A], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", v], ["$D", O]].forEach(function(i) {
|
|
284
|
-
Z[i[1]] = function(n) {
|
|
285
|
-
return this.$g(n, i[0], i[1]);
|
|
286
|
-
};
|
|
287
|
-
}), f.extend = function(i, n) {
|
|
288
|
-
return i.$i || (i(n, W, f), i.$i = !0), f;
|
|
289
|
-
}, f.locale = L, f.isDayjs = N, f.unix = function(i) {
|
|
290
|
-
return f(1e3 * i);
|
|
291
|
-
}, f.en = D[Y], f.Ls = D, f.p = {}, f;
|
|
292
|
-
});
|
|
293
|
-
}(U), U.exports);
|
|
294
|
-
}
|
|
1
|
+
import { ref as l, watch as s, reactive as n, computed as r } from "vue";
|
|
2
|
+
let t = [], e = l(null);
|
|
3
|
+
s(
|
|
4
|
+
() => e.value,
|
|
5
|
+
() => {
|
|
6
|
+
typeof e.value == "boolean" && (t.forEach((o) => o()), t = []);
|
|
7
|
+
}
|
|
8
|
+
);
|
|
9
|
+
const u = {
|
|
10
|
+
title: "",
|
|
11
|
+
text: "",
|
|
12
|
+
description: "",
|
|
13
|
+
yesText: "",
|
|
14
|
+
noText: "",
|
|
15
|
+
loading: !1,
|
|
16
|
+
open: !1,
|
|
17
|
+
yes: !0,
|
|
18
|
+
no: !0,
|
|
19
|
+
actions: !0,
|
|
20
|
+
size: "sm"
|
|
21
|
+
}, a = n({
|
|
22
|
+
...u
|
|
23
|
+
}), i = r(() => [
|
|
24
|
+
{
|
|
25
|
+
text: a.noText,
|
|
26
|
+
handler: () => {
|
|
27
|
+
e.value = !1;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
text: a.yesText,
|
|
32
|
+
handler: () => {
|
|
33
|
+
e.value = !0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]);
|
|
295
37
|
export {
|
|
296
|
-
|
|
38
|
+
i as actions,
|
|
39
|
+
a as state
|
|
297
40
|
};
|
|
298
41
|
//# sourceMappingURL=index184.js.map
|
package/dist/index184.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index184.js","sources":["../node_modules/dayjs/dayjs.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return O.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return O.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return O.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return O.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return O.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return O.s(e.$s,2,\"0\");case\"SSS\":return O.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));"],"names":["t","e","module","this","n","r","i","s","u","a","o","c","f","h","d","l","$","y","M","m","v","g","p","b","S","w","O","D","_"],"mappings":";;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAAsD,MAAAC,YAAeD,EAAmH;AAAA,IAAA,GAAEE,GAAM,WAAU;AAAc,UAAIH,IAAE,KAAIC,IAAE,KAAIG,IAAE,MAAKC,IAAE,eAAcC,IAAE,UAASC,IAAE,UAASC,IAAE,QAAOC,IAAE,OAAMC,IAAE,QAAOC,IAAE,SAAQC,IAAE,WAAUC,IAAE,QAAOC,IAAE,QAAOC,IAAE,gBAAeC,IAAE,8FAA6FC,IAAE,uFAAsFC,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,QAAO,wFAAwF,MAAM,GAAG,GAAE,SAAQ,SAASlB,GAAE;AAAC,YAAIC,IAAE,CAAC,MAAK,MAAK,MAAK,IAAI,GAAEG,IAAEJ,IAAE;AAAI,eAAM,MAAIA,KAAGC,GAAGG,IAAE,MAAI,EAAE,KAAGH,EAAEG,CAAC,KAAGH,EAAE,CAAC,KAAG;AAAA,MAAG,EAAC,GAAEkB,IAAE,SAASnB,GAAEC,GAAEG,GAAE;AAAC,YAAI,IAAE,OAAOJ,CAAC;AAAE,eAAM,CAAC,KAAG,EAAE,UAAQC,IAAED,IAAE,KAAG,MAAMC,IAAE,IAAE,EAAE,MAAM,EAAE,KAAKG,CA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,EAAE5B,EAAE,CAAC,CAAC,IAAE,SAASC,GAAE;AAAC,iBAAO,KAAK,GAAGA,GAAED,EAAE,CAAC,GAAEA,EAAE,CAAC,CAAC;AAAA,QAAC;AAAA,MAAC,IAAIyB,EAAE,SAAO,SAASzB,GAAEC,GAAE;AAAC,eAAOD,EAAE,OAAKA,EAAEC,GAAEsB,GAAEE,CAAC,GAAEzB,EAAE,KAAG,KAAIyB;AAAA,MAAC,GAAEA,EAAE,SAAOD,GAAEC,EAAE,UAAQH,GAAEG,EAAE,OAAK,SAASzB,GAAE;AAAC,eAAOyB,EAAE,MAAIzB,CAAC;AAAA,MAAC,GAAEyB,EAAE,KAAG,EAAEJ,CAAC,GAAEI,EAAE,KAAG,GAAEA,EAAE,IAAE,IAAGA;AAAA,IAAC,CAAC;AAAA;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index184.js","sources":["../src/composables/useConfirm.ts"],"sourcesContent":["import { computed, reactive, ref, watch } from \"vue\";\nimport { isNil } from \"@/utilities/functions/isNil\";\nimport type { Sizes } from \"@/components/BaseDialog/BaseDialog.vue\"\ntype State = {\n description: string;\n loading: boolean;\n noText: string;\n open: boolean;\n text: string;\n title: string;\n yesText: string;\n yes: boolean;\n no: boolean;\n actions: boolean;\n size: keyof Sizes,\n};\n\ntype UserOptions = {\n actions?: State['actions'];\n description?: State['description'];\n no?: State['no'];\n noText?: State['noText'];\n text: State['text'];\n title: State['title'];\n yes?: State['yes'];\n yesText?: State['yesText'];\n size?: State['size']\n};\n\n// Stash all instances of current dialogs\nlet subscribers: Function[] = [];\n\nlet value = ref<boolean | null>(null);\n\nwatch(\n () => value.value,\n () => {\n if (typeof value.value === \"boolean\") {\n // Every time a dialog is resolved resolve all dialogs\n subscribers.forEach((fn) => fn());\n subscribers = [];\n }\n }\n);\n\nconst defaultState: State = {\n title: \"\",\n text: \"\",\n description: \"\",\n yesText: \"\",\n noText: \"\",\n loading: false,\n open: false,\n yes: true,\n no: true,\n actions: true,\n size: 'sm'\n};\nconst defaultOption: UserOptions = {\n actions: true,\n yes: true,\n no: true,\n title: \"\",\n text: \"\",\n description: \"\",\n yesText: \"OK\",\n noText: \"Annulla\",\n};\n\nexport const state = reactive<State>({\n ...defaultState,\n});\n\nexport const actions = computed(() => [\n {\n text: state.noText,\n handler: () => {\n value.value = false;\n },\n },\n {\n text: state.yesText,\n handler: () => {\n value.value = true;\n },\n },\n]);\n\nexport const useConfirm = () => {\n return {\n confirm: (options: UserOptions) => {\n value.value = null;\n const newOptions = { ...defaultOption, ...options };\n const newState = { ...defaultState };\n newState.title = newOptions.title;\n newState.text = newOptions.text;\n if (newOptions.description) newState.description = newOptions.description;\n if (newOptions.noText) newState.noText = newOptions.noText;\n if (newOptions.yesText) newState.yesText = newOptions.yesText;\n if (newOptions.size) newState.size = newOptions.size;\n if (!isNil(newOptions.yes)) newState.yes = !!newOptions.yes;\n if (!isNil(newOptions.no)) newState.no = !!newOptions.no;\n if (!isNil(newOptions.actions)) newState.actions = !!newOptions.actions;\n\n state.description = newState.description;\n state.noText = newState.noText;\n state.text = newState.text;\n state.title = newState.title;\n state.yesText = newState.yesText;\n state.open = true;\n state.actions = newState.actions;\n state.yes = newState.yes;\n state.no = newState.no;\n state.size = newState.size;\n\n return new Promise((resolve) => {\n subscribers.push(() => resolve(value.value));\n });\n },\n setLoading: (value: boolean = true) => {\n state.loading = value;\n },\n close: () => {\n state.description = defaultState.description;\n state.loading = defaultState.loading;\n state.noText = defaultState.noText;\n state.open = defaultState.open;\n state.text = defaultState.text;\n state.title = defaultState.title;\n state.yesText = defaultState.yesText;\n value.value = false;\n return Promise.resolve().then(() => {\n value.value = null;\n });\n },\n };\n};\n"],"names":["subscribers","value","ref","watch","fn","defaultState","state","reactive","actions","computed"],"mappings":";AA8BA,IAAIA,IAA0B,CAAA,GAE1BC,IAAQC,EAAoB,IAAI;AAEpCC;AAAA,EACE,MAAMF,EAAM;AAAA,EACZ,MAAM;AACA,IAAA,OAAOA,EAAM,SAAU,cAEzBD,EAAY,QAAQ,CAACI,MAAOA,EAAI,CAAA,GAChCJ,IAAc,CAAA;AAAA,EAElB;AACF;AAEA,MAAMK,IAAsB;AAAA,EAC1B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,MAAM;AACR,GAYaC,IAAQC,EAAgB;AAAA,EACnC,GAAGF;AACL,CAAC,GAEYG,IAAUC,EAAS,MAAM;AAAA,EACpC;AAAA,IACE,MAAMH,EAAM;AAAA,IACZ,SAAS,MAAM;AACb,MAAAL,EAAM,QAAQ;AAAA,IAChB;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAMK,EAAM;AAAA,IACZ,SAAS,MAAM;AACb,MAAAL,EAAM,QAAQ;AAAA,IAChB;AAAA,EACF;AACF,CAAC;"}
|
package/dist/index185.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
6
|
+
}
|
|
7
|
+
return -1;
|
|
8
|
+
};
|
|
5
9
|
export {
|
|
6
|
-
o as
|
|
7
|
-
l as getDefaultExportFromCjs
|
|
10
|
+
o as findRightIndex
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=index185.js.map
|
package/dist/index185.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index185.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index185.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/index186.js
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
|
-
|
|
1
|
+
import { computePosition as F } from "./index157.js";
|
|
2
|
+
import { autoUpdate as I, platform as J } from "./index157.js";
|
|
3
|
+
import { computed as u, unref as i, ref as f, shallowRef as U, watch as h, getCurrentScope as j, onScopeDispose as k, shallowReadonly as r } from "vue";
|
|
4
|
+
function M(n) {
|
|
5
|
+
var a;
|
|
6
|
+
return (a = n == null ? void 0 : n.$el) != null ? a : n;
|
|
7
|
+
}
|
|
8
|
+
function C(n) {
|
|
9
|
+
return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
10
|
+
}
|
|
11
|
+
function S(n, a) {
|
|
12
|
+
const t = C(n);
|
|
13
|
+
return Math.round(a * t) / t;
|
|
14
|
+
}
|
|
15
|
+
function A(n, a, t) {
|
|
16
|
+
t === void 0 && (t = {});
|
|
17
|
+
const g = t.whileElementsMounted, x = u(() => {
|
|
18
|
+
var e;
|
|
19
|
+
return (e = i(t.open)) != null ? e : !0;
|
|
20
|
+
}), D = u(() => i(t.middleware)), d = u(() => {
|
|
21
|
+
var e;
|
|
22
|
+
return (e = i(t.placement)) != null ? e : "bottom";
|
|
23
|
+
}), m = u(() => {
|
|
24
|
+
var e;
|
|
25
|
+
return (e = i(t.strategy)) != null ? e : "absolute";
|
|
26
|
+
}), V = u(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return (e = i(t.transform)) != null ? e : !0;
|
|
29
|
+
}), o = u(() => M(n.value)), l = u(() => M(a.value)), p = f(0), w = f(0), c = f(m.value), E = f(d.value), O = U({}), y = f(!1), b = u(() => {
|
|
30
|
+
const e = {
|
|
31
|
+
position: c.value,
|
|
32
|
+
left: "0",
|
|
33
|
+
top: "0"
|
|
34
|
+
};
|
|
35
|
+
if (!l.value)
|
|
36
|
+
return e;
|
|
37
|
+
const R = S(l.value, p.value), _ = S(l.value, w.value);
|
|
38
|
+
return V.value ? {
|
|
39
|
+
...e,
|
|
40
|
+
transform: "translate(" + R + "px, " + _ + "px)",
|
|
41
|
+
...C(l.value) >= 1.5 && {
|
|
42
|
+
willChange: "transform"
|
|
43
|
+
}
|
|
44
|
+
} : {
|
|
45
|
+
position: c.value,
|
|
46
|
+
left: R + "px",
|
|
47
|
+
top: _ + "px"
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
let s;
|
|
51
|
+
function v() {
|
|
52
|
+
o.value == null || l.value == null || F(o.value, l.value, {
|
|
53
|
+
middleware: D.value,
|
|
54
|
+
placement: d.value,
|
|
55
|
+
strategy: m.value
|
|
56
|
+
}).then((e) => {
|
|
57
|
+
p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, O.value = e.middlewareData, y.value = !0;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function P() {
|
|
61
|
+
typeof s == "function" && (s(), s = void 0);
|
|
62
|
+
}
|
|
63
|
+
function $() {
|
|
64
|
+
if (P(), g === void 0) {
|
|
65
|
+
v();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (o.value != null && l.value != null) {
|
|
69
|
+
s = g(o.value, l.value, v);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function B() {
|
|
74
|
+
x.value || (y.value = !1);
|
|
75
|
+
}
|
|
76
|
+
return h([D, d, m], v, {
|
|
77
|
+
flush: "sync"
|
|
78
|
+
}), h([o, l], $, {
|
|
79
|
+
flush: "sync"
|
|
80
|
+
}), h(x, B, {
|
|
81
|
+
flush: "sync"
|
|
82
|
+
}), j() && k(P), {
|
|
83
|
+
x: r(p),
|
|
84
|
+
y: r(w),
|
|
85
|
+
strategy: r(c),
|
|
86
|
+
placement: r(E),
|
|
87
|
+
middlewareData: r(O),
|
|
88
|
+
isPositioned: r(y),
|
|
89
|
+
floatingStyles: b,
|
|
90
|
+
update: v
|
|
91
|
+
};
|
|
92
|
+
}
|
|
2
93
|
export {
|
|
3
|
-
|
|
94
|
+
I as autoUpdate,
|
|
95
|
+
F as computePosition,
|
|
96
|
+
J as platform,
|
|
97
|
+
A as useFloating
|
|
4
98
|
};
|
|
5
99
|
//# sourceMappingURL=index186.js.map
|
package/dist/index186.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index186.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index186.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","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","options","whileElementsMountedOption","openOption","computed","_unref","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;AAwBA,SAASE,EAAOF,GAAS;AACvB,S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,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,EAAMhC,GAAY+B,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/index187.js
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as f } from "./index189.js";
|
|
2
|
+
import { M as s } from "./index205.js";
|
|
3
|
+
import { s as m } from "./index206.js";
|
|
4
|
+
import { o as p } from "./index207.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
|
+
}
|
|
18
|
+
}
|
|
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]);
|
|
2
27
|
export {
|
|
3
|
-
|
|
28
|
+
d as default,
|
|
29
|
+
_ as i
|
|
4
30
|
};
|
|
5
31
|
//# sourceMappingURL=index187.js.map
|
package/dist/index187.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index187.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index187.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/index188.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
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;
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}, null);
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
l as findInTree
|
|
4
15
|
};
|
|
5
16
|
//# sourceMappingURL=index188.js.map
|
package/dist/index188.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index188.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index188.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/index189.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=index189.js.map
|
package/dist/index189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index189.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index189.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|