bitboss-ui 0.2.4 → 0.2.6
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/index101.js +3 -3
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +5 -5
- 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/index128.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index195.js +2 -235
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +4 -5
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +235 -16
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +10 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +13 -17
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -26
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -3
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +349 -33
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +134 -6
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +2 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +186 -3
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +23 -351
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +361 -126
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -2
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +33 -184
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +6 -23
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +3 -369
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -10
- package/dist/index218.js.map +1 -1
- package/dist/index220.js +2 -9
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +25 -113
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +13 -2
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +8 -27
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +115 -12
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +4 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +2 -4
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +161 -294
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +69 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index233.js +295 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +6 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -2
- package/dist/index236.js +2 -2
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -69
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -162
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -2
- package/dist/index240.js +2 -224
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -258
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +110 -428
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +105 -88
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +435 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +87 -115
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +218 -100
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +258 -2
- package/dist/index247.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index252.js +3 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -3
- package/dist/index253.js.map +1 -1
- package/dist/index29.js +2 -2
- package/dist/index31.js +6 -6
- 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/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +53 -46
- package/dist/index75.js.map +1 -1
- package/dist/index79.js +4 -4
- package/dist/index8.js +72 -72
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index202.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
)
|
|
1
|
+
import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index234.js";
|
|
2
|
+
import { __module as _ } from "./index238.js";
|
|
3
|
+
import { __require as s } from "./index233.js";
|
|
4
|
+
(function(n, d) {
|
|
5
|
+
(function(t, o) {
|
|
6
|
+
n.exports = o(s());
|
|
7
|
+
})(m, function(t) {
|
|
8
|
+
function o(e) {
|
|
9
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
10
|
+
}
|
|
11
|
+
var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
|
|
12
|
+
return e + "º";
|
|
13
|
+
} };
|
|
14
|
+
return a.default.locale(r, null, !0), r;
|
|
15
|
+
});
|
|
16
|
+
})(_);
|
|
17
|
+
var u = _.exports;
|
|
18
|
+
const p = /* @__PURE__ */ i(u);
|
|
8
19
|
export {
|
|
9
|
-
|
|
20
|
+
p as default
|
|
10
21
|
};
|
|
11
22
|
//# 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":["../node_modules/dayjs/locale/it.js"],"sourcesContent":["!function(e,o){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=o(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],o):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=o(e.dayjs)}(this,(function(e){\"use strict\";function o(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var t=o(e),n={name:\"it\",weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),weekStart:1,monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),formats:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},relativeTime:{future:\"tra %s\",past:\"%s fa\",s:\"qualche secondo\",m:\"un minuto\",mm:\"%d minuti\",h:\"un' ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},ordinal:function(e){return e+\"º\"}};return t.default.locale(n,null,!0),n}));"],"names":["e","module","require$$0","this","t","n"],"mappings":";;;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAA,UAAe,EAAEC,EAAgB,CAAA;AAAA,EAA4I,GAAEC,GAAM,SAASH,GAAE;AAAc,aAAS,EAAE,GAAE;AAAC,aAAO,KAAa,OAAO,KAAjB,YAAoB,aAAY,IAAE,IAAE,EAAC,SAAQ,EAAC;AAAA,IAAC;AAAC,QAAII,IAAE,EAAEJ,CAAC,GAAEK,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,eAAc,8BAA8B,MAAM,GAAG,GAAE,aAAY,uBAAuB,MAAM,GAAG,GAAE,QAAO,gGAAgG,MAAM,GAAG,GAAE,WAAU,GAAE,aAAY,kDAAkD,MAAM,GAAG,GAAE,SAAQ,EAAC,IAAG,SAAQ,KAAI,YAAW,GAAE,cAAa,IAAG,eAAc,KAAI,qBAAoB,MAAK,yBAAwB,GAAE,cAAa,EAAC,QAAO,UAAS,MAAK,SAAQ,GAAE,mBAAkB,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,UAAS,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,WAAU,GAAE,WAAU,IAAG,UAAS,GAAE,SAAQ,SAAS,GAAE;AAAC,aAAO,IAAE;AAAA,IAAG,EAAC;AAAE,WAAOD,EAAE,QAAQ,OAAOC,GAAE,MAAK,EAAE,GAAEA;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
|
package/dist/index203.js
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index234.js";
|
|
2
|
+
import { __module as n } from "./index239.js";
|
|
3
|
+
(function(u, l) {
|
|
4
|
+
(function(c, e) {
|
|
5
|
+
u.exports = e();
|
|
6
|
+
})(s, function() {
|
|
7
|
+
return function(c, e, r) {
|
|
8
|
+
r.updateLocale = function(f, o) {
|
|
9
|
+
var t = r.Ls[f];
|
|
10
|
+
if (t)
|
|
11
|
+
return (o ? Object.keys(o) : []).forEach(function(a) {
|
|
12
|
+
t[a] = o[a];
|
|
13
|
+
}), t;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
})(n);
|
|
18
|
+
var i = n.exports;
|
|
19
|
+
const x = /* @__PURE__ */ p(i);
|
|
2
20
|
export {
|
|
3
|
-
|
|
21
|
+
x as default
|
|
4
22
|
};
|
|
5
23
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index203.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
|
package/dist/index204.js
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index234.js";
|
|
2
|
+
import { __module as n } from "./index240.js";
|
|
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);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
})(n);
|
|
27
|
+
var m = n.exports;
|
|
28
|
+
const x = /* @__PURE__ */ c(m);
|
|
2
29
|
export {
|
|
3
|
-
|
|
30
|
+
x as default
|
|
4
31
|
};
|
|
5
32
|
//# sourceMappingURL=index204.js.map
|
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index204.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/index205.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
);
|
|
3
8
|
export {
|
|
4
|
-
|
|
5
|
-
s as when
|
|
9
|
+
s as groupBy
|
|
6
10
|
};
|
|
7
11
|
//# sourceMappingURL=index205.js.map
|
package/dist/index205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index205.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index205.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/index206.js
CHANGED
package/dist/index206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index206.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index206.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/index207.js
CHANGED
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/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns \n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n return Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MACzC,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
|
package/dist/index208.js
CHANGED
|
@@ -1,38 +1,354 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
1
|
+
import { computePosition as Z } from "./index213.js";
|
|
2
|
+
import { arrow as Ct, detectOverflow as Et, flip as Ot, offset as Tt, shift as Lt } from "./index213.js";
|
|
3
|
+
import { createCoords as x, rectToClientRect as U, round as A, max as T, min as H, floor as B } from "./index242.js";
|
|
4
|
+
import { getOverflowAncestors as I, isElement as y, getWindow as E, getComputedStyle as m, getDocumentElement as b, isHTMLElement as v, isWebKit as _, getNodeName as F, isOverflowElement as z, getNodeScroll as N, isTableElement as P, isContainingBlock as K, getContainingBlock as tt, getParentNode as V, isLastTraversableNode as X } from "./index243.js";
|
|
5
|
+
function j(t) {
|
|
6
|
+
const e = m(t);
|
|
7
|
+
let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
8
|
+
const n = v(t), c = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, r = A(o) !== c || A(i) !== s;
|
|
9
|
+
return r && (o = c, i = s), {
|
|
10
|
+
width: o,
|
|
11
|
+
height: i,
|
|
12
|
+
$: r
|
|
33
13
|
};
|
|
34
14
|
}
|
|
15
|
+
function M(t) {
|
|
16
|
+
return y(t) ? t : t.contextElement;
|
|
17
|
+
}
|
|
18
|
+
function L(t) {
|
|
19
|
+
const e = M(t);
|
|
20
|
+
if (!v(e))
|
|
21
|
+
return x(1);
|
|
22
|
+
const o = e.getBoundingClientRect(), {
|
|
23
|
+
width: i,
|
|
24
|
+
height: n,
|
|
25
|
+
$: c
|
|
26
|
+
} = j(e);
|
|
27
|
+
let s = (c ? A(o.width) : o.width) / i, r = (c ? A(o.height) : o.height) / n;
|
|
28
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
29
|
+
x: s,
|
|
30
|
+
y: r
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const et = /* @__PURE__ */ x(0);
|
|
34
|
+
function G(t) {
|
|
35
|
+
const e = E(t);
|
|
36
|
+
return !_() || !e.visualViewport ? et : {
|
|
37
|
+
x: e.visualViewport.offsetLeft,
|
|
38
|
+
y: e.visualViewport.offsetTop
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ot(t, e, o) {
|
|
42
|
+
return e === void 0 && (e = !1), !o || e && o !== E(t) ? !1 : e;
|
|
43
|
+
}
|
|
44
|
+
function O(t, e, o, i) {
|
|
45
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
46
|
+
const n = t.getBoundingClientRect(), c = M(t);
|
|
47
|
+
let s = x(1);
|
|
48
|
+
e && (i ? y(i) && (s = L(i)) : s = L(t));
|
|
49
|
+
const r = ot(c, o, i) ? G(c) : x(0);
|
|
50
|
+
let l = (n.left + r.x) / s.x, f = (n.top + r.y) / s.y, p = n.width / s.x, d = n.height / s.y;
|
|
51
|
+
if (c) {
|
|
52
|
+
const w = E(c), a = i && y(i) ? E(i) : i;
|
|
53
|
+
let g = w.frameElement;
|
|
54
|
+
for (; g && i && a !== w; ) {
|
|
55
|
+
const h = L(g), R = g.getBoundingClientRect(), u = m(g), C = R.left + (g.clientLeft + parseFloat(u.paddingLeft)) * h.x, W = R.top + (g.clientTop + parseFloat(u.paddingTop)) * h.y;
|
|
56
|
+
l *= h.x, f *= h.y, p *= h.x, d *= h.y, l += C, f += W, g = E(g).frameElement;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return U({
|
|
60
|
+
width: p,
|
|
61
|
+
height: d,
|
|
62
|
+
x: l,
|
|
63
|
+
y: f
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function it(t) {
|
|
67
|
+
let {
|
|
68
|
+
rect: e,
|
|
69
|
+
offsetParent: o,
|
|
70
|
+
strategy: i
|
|
71
|
+
} = t;
|
|
72
|
+
const n = v(o), c = b(o);
|
|
73
|
+
if (o === c)
|
|
74
|
+
return e;
|
|
75
|
+
let s = {
|
|
76
|
+
scrollLeft: 0,
|
|
77
|
+
scrollTop: 0
|
|
78
|
+
}, r = x(1);
|
|
79
|
+
const l = x(0);
|
|
80
|
+
if ((n || !n && i !== "fixed") && ((F(o) !== "body" || z(c)) && (s = N(o)), v(o))) {
|
|
81
|
+
const f = O(o);
|
|
82
|
+
r = L(o), l.x = f.x + o.clientLeft, l.y = f.y + o.clientTop;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
width: e.width * r.x,
|
|
86
|
+
height: e.height * r.y,
|
|
87
|
+
x: e.x * r.x - s.scrollLeft * r.x + l.x,
|
|
88
|
+
y: e.y * r.y - s.scrollTop * r.y + l.y
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function nt(t) {
|
|
92
|
+
return Array.from(t.getClientRects());
|
|
93
|
+
}
|
|
94
|
+
function J(t) {
|
|
95
|
+
return O(b(t)).left + N(t).scrollLeft;
|
|
96
|
+
}
|
|
97
|
+
function st(t) {
|
|
98
|
+
const e = b(t), o = N(t), i = t.ownerDocument.body, n = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
99
|
+
let s = -o.scrollLeft + J(t);
|
|
100
|
+
const r = -o.scrollTop;
|
|
101
|
+
return m(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - n), {
|
|
102
|
+
width: n,
|
|
103
|
+
height: c,
|
|
104
|
+
x: s,
|
|
105
|
+
y: r
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function rt(t, e) {
|
|
109
|
+
const o = E(t), i = b(t), n = o.visualViewport;
|
|
110
|
+
let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
|
|
111
|
+
if (n) {
|
|
112
|
+
c = n.width, s = n.height;
|
|
113
|
+
const f = _();
|
|
114
|
+
(!f || f && e === "fixed") && (r = n.offsetLeft, l = n.offsetTop);
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
width: c,
|
|
118
|
+
height: s,
|
|
119
|
+
x: r,
|
|
120
|
+
y: l
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function ct(t, e) {
|
|
124
|
+
const o = O(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, c = v(t) ? L(t) : x(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = n * c.x, f = i * c.y;
|
|
125
|
+
return {
|
|
126
|
+
width: s,
|
|
127
|
+
height: r,
|
|
128
|
+
x: l,
|
|
129
|
+
y: f
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function k(t, e, o) {
|
|
133
|
+
let i;
|
|
134
|
+
if (e === "viewport")
|
|
135
|
+
i = rt(t, o);
|
|
136
|
+
else if (e === "document")
|
|
137
|
+
i = st(b(t));
|
|
138
|
+
else if (y(e))
|
|
139
|
+
i = ct(e, o);
|
|
140
|
+
else {
|
|
141
|
+
const n = G(t);
|
|
142
|
+
i = {
|
|
143
|
+
...e,
|
|
144
|
+
x: e.x - n.x,
|
|
145
|
+
y: e.y - n.y
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
return U(i);
|
|
149
|
+
}
|
|
150
|
+
function Q(t, e) {
|
|
151
|
+
const o = V(t);
|
|
152
|
+
return o === e || !y(o) || X(o) ? !1 : m(o).position === "fixed" || Q(o, e);
|
|
153
|
+
}
|
|
154
|
+
function lt(t, e) {
|
|
155
|
+
const o = e.get(t);
|
|
156
|
+
if (o)
|
|
157
|
+
return o;
|
|
158
|
+
let i = I(t, [], !1).filter((r) => y(r) && F(r) !== "body"), n = null;
|
|
159
|
+
const c = m(t).position === "fixed";
|
|
160
|
+
let s = c ? V(t) : t;
|
|
161
|
+
for (; y(s) && !X(s); ) {
|
|
162
|
+
const r = m(s), l = K(s);
|
|
163
|
+
!l && r.position === "fixed" && (n = null), (c ? !l && !n : !l && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || z(s) && !l && Q(t, s)) ? i = i.filter((p) => p !== s) : n = r, s = V(s);
|
|
164
|
+
}
|
|
165
|
+
return e.set(t, i), i;
|
|
166
|
+
}
|
|
167
|
+
function ft(t) {
|
|
168
|
+
let {
|
|
169
|
+
element: e,
|
|
170
|
+
boundary: o,
|
|
171
|
+
rootBoundary: i,
|
|
172
|
+
strategy: n
|
|
173
|
+
} = t;
|
|
174
|
+
const s = [...o === "clippingAncestors" ? lt(e, this._c) : [].concat(o), i], r = s[0], l = s.reduce((f, p) => {
|
|
175
|
+
const d = k(e, p, n);
|
|
176
|
+
return f.top = T(d.top, f.top), f.right = H(d.right, f.right), f.bottom = H(d.bottom, f.bottom), f.left = T(d.left, f.left), f;
|
|
177
|
+
}, k(e, r, n));
|
|
178
|
+
return {
|
|
179
|
+
width: l.right - l.left,
|
|
180
|
+
height: l.bottom - l.top,
|
|
181
|
+
x: l.left,
|
|
182
|
+
y: l.top
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function ut(t) {
|
|
186
|
+
return j(t);
|
|
187
|
+
}
|
|
188
|
+
function ht(t, e, o) {
|
|
189
|
+
const i = v(e), n = b(e), c = o === "fixed", s = O(t, !0, c, e);
|
|
190
|
+
let r = {
|
|
191
|
+
scrollLeft: 0,
|
|
192
|
+
scrollTop: 0
|
|
193
|
+
};
|
|
194
|
+
const l = x(0);
|
|
195
|
+
if (i || !i && !c)
|
|
196
|
+
if ((F(e) !== "body" || z(n)) && (r = N(e)), i) {
|
|
197
|
+
const f = O(e, !0, c, e);
|
|
198
|
+
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
|
199
|
+
} else
|
|
200
|
+
n && (l.x = J(n));
|
|
201
|
+
return {
|
|
202
|
+
x: s.left + r.scrollLeft - l.x,
|
|
203
|
+
y: s.top + r.scrollTop - l.y,
|
|
204
|
+
width: s.width,
|
|
205
|
+
height: s.height
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function q(t, e) {
|
|
209
|
+
return !v(t) || m(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
210
|
+
}
|
|
211
|
+
function Y(t, e) {
|
|
212
|
+
const o = E(t);
|
|
213
|
+
if (!v(t))
|
|
214
|
+
return o;
|
|
215
|
+
let i = q(t, e);
|
|
216
|
+
for (; i && P(i) && m(i).position === "static"; )
|
|
217
|
+
i = q(i, e);
|
|
218
|
+
return i && (F(i) === "html" || F(i) === "body" && m(i).position === "static" && !K(i)) ? o : i || tt(t) || o;
|
|
219
|
+
}
|
|
220
|
+
const at = async function(t) {
|
|
221
|
+
let {
|
|
222
|
+
reference: e,
|
|
223
|
+
floating: o,
|
|
224
|
+
strategy: i
|
|
225
|
+
} = t;
|
|
226
|
+
const n = this.getOffsetParent || Y, c = this.getDimensions;
|
|
227
|
+
return {
|
|
228
|
+
reference: ht(e, await n(o), i),
|
|
229
|
+
floating: {
|
|
230
|
+
x: 0,
|
|
231
|
+
y: 0,
|
|
232
|
+
...await c(o)
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
function dt(t) {
|
|
237
|
+
return m(t).direction === "rtl";
|
|
238
|
+
}
|
|
239
|
+
const gt = {
|
|
240
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: it,
|
|
241
|
+
getDocumentElement: b,
|
|
242
|
+
getClippingRect: ft,
|
|
243
|
+
getOffsetParent: Y,
|
|
244
|
+
getElementRects: at,
|
|
245
|
+
getClientRects: nt,
|
|
246
|
+
getDimensions: ut,
|
|
247
|
+
getScale: L,
|
|
248
|
+
isElement: y,
|
|
249
|
+
isRTL: dt
|
|
250
|
+
};
|
|
251
|
+
function pt(t, e) {
|
|
252
|
+
let o = null, i;
|
|
253
|
+
const n = b(t);
|
|
254
|
+
function c() {
|
|
255
|
+
clearTimeout(i), o && o.disconnect(), o = null;
|
|
256
|
+
}
|
|
257
|
+
function s(r, l) {
|
|
258
|
+
r === void 0 && (r = !1), l === void 0 && (l = 1), c();
|
|
259
|
+
const {
|
|
260
|
+
left: f,
|
|
261
|
+
top: p,
|
|
262
|
+
width: d,
|
|
263
|
+
height: w
|
|
264
|
+
} = t.getBoundingClientRect();
|
|
265
|
+
if (r || e(), !d || !w)
|
|
266
|
+
return;
|
|
267
|
+
const a = B(p), g = B(n.clientWidth - (f + d)), h = B(n.clientHeight - (p + w)), R = B(f), C = {
|
|
268
|
+
rootMargin: -a + "px " + -g + "px " + -h + "px " + -R + "px",
|
|
269
|
+
threshold: T(0, H(1, l)) || 1
|
|
270
|
+
};
|
|
271
|
+
let W = !0;
|
|
272
|
+
function S($) {
|
|
273
|
+
const D = $[0].intersectionRatio;
|
|
274
|
+
if (D !== l) {
|
|
275
|
+
if (!W)
|
|
276
|
+
return s();
|
|
277
|
+
D ? s(!1, D) : i = setTimeout(() => {
|
|
278
|
+
s(!1, 1e-7);
|
|
279
|
+
}, 100);
|
|
280
|
+
}
|
|
281
|
+
W = !1;
|
|
282
|
+
}
|
|
283
|
+
try {
|
|
284
|
+
o = new IntersectionObserver(S, {
|
|
285
|
+
...C,
|
|
286
|
+
// Handle <iframe>s
|
|
287
|
+
root: n.ownerDocument
|
|
288
|
+
});
|
|
289
|
+
} catch {
|
|
290
|
+
o = new IntersectionObserver(S, C);
|
|
291
|
+
}
|
|
292
|
+
o.observe(t);
|
|
293
|
+
}
|
|
294
|
+
return s(!0), c;
|
|
295
|
+
}
|
|
296
|
+
function yt(t, e, o, i) {
|
|
297
|
+
i === void 0 && (i = {});
|
|
298
|
+
const {
|
|
299
|
+
ancestorScroll: n = !0,
|
|
300
|
+
ancestorResize: c = !0,
|
|
301
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
302
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
|
303
|
+
animationFrame: l = !1
|
|
304
|
+
} = i, f = M(t), p = n || c ? [...f ? I(f) : [], ...I(e)] : [];
|
|
305
|
+
p.forEach((u) => {
|
|
306
|
+
n && u.addEventListener("scroll", o, {
|
|
307
|
+
passive: !0
|
|
308
|
+
}), c && u.addEventListener("resize", o);
|
|
309
|
+
});
|
|
310
|
+
const d = f && r ? pt(f, o) : null;
|
|
311
|
+
let w = -1, a = null;
|
|
312
|
+
s && (a = new ResizeObserver((u) => {
|
|
313
|
+
let [C] = u;
|
|
314
|
+
C && C.target === f && a && (a.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
|
|
315
|
+
a && a.observe(e);
|
|
316
|
+
})), o();
|
|
317
|
+
}), f && !l && a.observe(f), a.observe(e));
|
|
318
|
+
let g, h = l ? O(t) : null;
|
|
319
|
+
l && R();
|
|
320
|
+
function R() {
|
|
321
|
+
const u = O(t);
|
|
322
|
+
h && (u.x !== h.x || u.y !== h.y || u.width !== h.width || u.height !== h.height) && o(), h = u, g = requestAnimationFrame(R);
|
|
323
|
+
}
|
|
324
|
+
return o(), () => {
|
|
325
|
+
p.forEach((u) => {
|
|
326
|
+
n && u.removeEventListener("scroll", o), c && u.removeEventListener("resize", o);
|
|
327
|
+
}), d && d(), a && a.disconnect(), a = null, l && cancelAnimationFrame(g);
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
const vt = (t, e, o) => {
|
|
331
|
+
const i = /* @__PURE__ */ new Map(), n = {
|
|
332
|
+
platform: gt,
|
|
333
|
+
...o
|
|
334
|
+
}, c = {
|
|
335
|
+
...n.platform,
|
|
336
|
+
_c: i
|
|
337
|
+
};
|
|
338
|
+
return Z(t, e, {
|
|
339
|
+
...n,
|
|
340
|
+
platform: c
|
|
341
|
+
});
|
|
342
|
+
};
|
|
35
343
|
export {
|
|
36
|
-
|
|
344
|
+
Ct as arrow,
|
|
345
|
+
yt as autoUpdate,
|
|
346
|
+
vt as computePosition,
|
|
347
|
+
Et as detectOverflow,
|
|
348
|
+
Ot as flip,
|
|
349
|
+
I as getOverflowAncestors,
|
|
350
|
+
Tt as offset,
|
|
351
|
+
gt as platform,
|
|
352
|
+
Lt as shift
|
|
37
353
|
};
|
|
38
354
|
//# sourceMappingURL=index208.js.map
|