sprintify-ui 0.0.5 → 0.0.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/sprintify-ui.es.js
CHANGED
|
@@ -426,7 +426,7 @@ const wi = /* @__PURE__ */ Bt(gi, [["render", bi]]), lr = /* @__PURE__ */ Me({
|
|
|
426
426
|
}, j = () => {
|
|
427
427
|
o.value || (g.value++, T());
|
|
428
428
|
}, T = () => {
|
|
429
|
-
s.value || (s.value = !0, r.value = !0,
|
|
429
|
+
s.value || (s.value = !0, r.value = !0, Le.http.get(n.url, {
|
|
430
430
|
params: {
|
|
431
431
|
[n.queryKey]: h.value,
|
|
432
432
|
page: g.value
|
|
@@ -607,7 +607,7 @@ const wi = /* @__PURE__ */ Bt(gi, [["render", bi]]), lr = /* @__PURE__ */ Me({
|
|
|
607
607
|
},
|
|
608
608
|
emits: ["update:modelValue"],
|
|
609
609
|
setup(e, { emit: t }) {
|
|
610
|
-
const n = e, r =
|
|
610
|
+
const n = e, r = Le.http, s = ce(n.currentModel);
|
|
611
611
|
at(
|
|
612
612
|
() => n.modelValue,
|
|
613
613
|
(o, h) => {
|
|
@@ -2118,7 +2118,7 @@ function Eo(e, t, n, r, s, a) {
|
|
|
2118
2118
|
const Bo = /* @__PURE__ */ Bt(Oo, [["render", Eo]]);
|
|
2119
2119
|
function Np(e, t) {
|
|
2120
2120
|
let n = "";
|
|
2121
|
-
t = t ||
|
|
2121
|
+
t = t || Le.i18n.global.t("sui.and");
|
|
2122
2122
|
for (let r = 0; r < e.length; r++) {
|
|
2123
2123
|
const s = e[r];
|
|
2124
2124
|
n += s, r < e.length - 2 ? n += ", " : r == e.length - 2 && (n += " " + t + " ");
|
|
@@ -2127,11 +2127,11 @@ function Np(e, t) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function Pp(e) {
|
|
2129
2129
|
const t = Math.floor(Math.log(e) / Math.log(1024)), n = [
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2130
|
+
Le.i18n.global.t("sui.units.b"),
|
|
2131
|
+
Le.i18n.global.t("sui.units.kb"),
|
|
2132
|
+
Le.i18n.global.t("sui.units.mb"),
|
|
2133
|
+
Le.i18n.global.t("sui.units.gb"),
|
|
2134
|
+
Le.i18n.global.t("sui.units.tb")
|
|
2135
2135
|
];
|
|
2136
2136
|
return +(e / Math.pow(1024, t)).toFixed(2) * 1 + " " + n[t];
|
|
2137
2137
|
}
|
|
@@ -2840,7 +2840,7 @@ const No = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Po = { class: "min
|
|
|
2840
2840
|
"update:query"
|
|
2841
2841
|
],
|
|
2842
2842
|
setup(e, { expose: t }) {
|
|
2843
|
-
const n = e, r =
|
|
2843
|
+
const n = e, r = Le.http, s = ce(null), a = ce(null), o = fi(), h = hi(), g = o.name, k = Rs(), x = ce(!1), A = ce(!0), P = ce(!1), j = ce(!1), T = ce("");
|
|
2844
2844
|
let $ = "", w = "";
|
|
2845
2845
|
const O = ce(rt(n.defaultQuery)), C = ni(), R = ye(() => k.smaller("lg").value), L = ye(() => C.filters !== void 0), Z = ye(() => L.value || C.sidebarTop !== void 0 || C.sidebarBottom !== void 0);
|
|
2846
2846
|
function v(i, u) {
|
|
@@ -2858,8 +2858,8 @@ const No = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Po = { class: "min
|
|
|
2858
2858
|
const u = h.resolve({
|
|
2859
2859
|
path: o.path,
|
|
2860
2860
|
params: o.params
|
|
2861
|
-
}), p =
|
|
2862
|
-
if (
|
|
2861
|
+
}), p = Le.formatQueryString(i), D = u.fullPath + "?" + p, Y = ee();
|
|
2862
|
+
if (Le.formatQueryString(Y) != p) {
|
|
2863
2863
|
if (!x.value) {
|
|
2864
2864
|
h.replace(D);
|
|
2865
2865
|
return;
|
|
@@ -2894,7 +2894,7 @@ const No = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Po = { class: "min
|
|
|
2894
2894
|
}
|
|
2895
2895
|
);
|
|
2896
2896
|
function ee() {
|
|
2897
|
-
return
|
|
2897
|
+
return Le.parseQueryString(window.location.search.replace(/^(\?)/, ""));
|
|
2898
2898
|
}
|
|
2899
2899
|
function se() {
|
|
2900
2900
|
if (!n.historyMode || o.name != g)
|
|
@@ -2904,11 +2904,11 @@ const No = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Po = { class: "min
|
|
|
2904
2904
|
}
|
|
2905
2905
|
function G(i = !1) {
|
|
2906
2906
|
var we;
|
|
2907
|
-
const u = d.value.split(/[?#]/), p = u[0], D = (we = u[1]) != null ? we : null, Y =
|
|
2907
|
+
const u = d.value.split(/[?#]/), p = u[0], D = (we = u[1]) != null ? we : null, Y = Le.parseQueryString(D), U = us(
|
|
2908
2908
|
rt(O.value),
|
|
2909
2909
|
rt(n.urlQuery),
|
|
2910
2910
|
rt(Y)
|
|
2911
|
-
), oe =
|
|
2911
|
+
), oe = Le.formatQueryString(U), ke = p + "?" + oe;
|
|
2912
2912
|
$ == ke && !i || (A.value = !0, $ = ke, r.get(ke).then((Fe) => {
|
|
2913
2913
|
le.value = Fe.data, A.value = !1, P.value = !1, x.value = !0;
|
|
2914
2914
|
}).catch(() => {
|
|
@@ -3918,7 +3918,7 @@ const Ws = /* @__PURE__ */ Bt(Wl, [["__scopeId", "data-v-c943591d"]]), js = Me({
|
|
|
3918
3918
|
"check"
|
|
3919
3919
|
],
|
|
3920
3920
|
setup(e, { expose: t, emit: n }) {
|
|
3921
|
-
Ar(),
|
|
3921
|
+
Ar(), Le.http;
|
|
3922
3922
|
const r = ce(null), s = ce(null);
|
|
3923
3923
|
function a(C) {
|
|
3924
3924
|
n("click", C);
|
|
@@ -4509,8 +4509,8 @@ var Ue = 0, pt = 1, st = 2, Pe = 3, Xe = 4, mt = 5, Tt = 6, Tu = 7, Ou = 8;
|
|
|
4509
4509
|
function Iu(e, t) {
|
|
4510
4510
|
return (e % t + t) % t;
|
|
4511
4511
|
}
|
|
4512
|
-
var
|
|
4513
|
-
Array.prototype.indexOf ?
|
|
4512
|
+
var Be;
|
|
4513
|
+
Array.prototype.indexOf ? Be = Array.prototype.indexOf : Be = function(e) {
|
|
4514
4514
|
var t;
|
|
4515
4515
|
for (t = 0; t < this.length; ++t)
|
|
4516
4516
|
if (this[t] === e)
|
|
@@ -4566,7 +4566,7 @@ function Fu(e, t, n) {
|
|
|
4566
4566
|
a,
|
|
4567
4567
|
""
|
|
4568
4568
|
).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(a, "").toLocaleLowerCase();
|
|
4569
|
-
return n ? t === "MMM" ? (s =
|
|
4569
|
+
return n ? t === "MMM" ? (s = Be.call(this._shortMonthsParse, o), s !== -1 ? s : null) : (s = Be.call(this._longMonthsParse, o), s !== -1 ? s : null) : t === "MMM" ? (s = Be.call(this._shortMonthsParse, o), s !== -1 ? s : (s = Be.call(this._longMonthsParse, o), s !== -1 ? s : null)) : (s = Be.call(this._longMonthsParse, o), s !== -1 ? s : (s = Be.call(this._shortMonthsParse, o), s !== -1 ? s : null));
|
|
4570
4570
|
}
|
|
4571
4571
|
function Ru(e, t, n) {
|
|
4572
4572
|
var r, s, a;
|
|
@@ -4802,7 +4802,7 @@ function ac(e, t, n) {
|
|
|
4802
4802
|
a,
|
|
4803
4803
|
""
|
|
4804
4804
|
).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(a, "").toLocaleLowerCase();
|
|
4805
|
-
return n ? t === "dddd" ? (s =
|
|
4805
|
+
return n ? t === "dddd" ? (s = Be.call(this._weekdaysParse, o), s !== -1 ? s : null) : t === "ddd" ? (s = Be.call(this._shortWeekdaysParse, o), s !== -1 ? s : null) : (s = Be.call(this._minWeekdaysParse, o), s !== -1 ? s : null) : t === "dddd" ? (s = Be.call(this._weekdaysParse, o), s !== -1 || (s = Be.call(this._shortWeekdaysParse, o), s !== -1) ? s : (s = Be.call(this._minWeekdaysParse, o), s !== -1 ? s : null)) : t === "ddd" ? (s = Be.call(this._shortWeekdaysParse, o), s !== -1 || (s = Be.call(this._weekdaysParse, o), s !== -1) ? s : (s = Be.call(this._minWeekdaysParse, o), s !== -1 ? s : null)) : (s = Be.call(this._minWeekdaysParse, o), s !== -1 || (s = Be.call(this._weekdaysParse, o), s !== -1) ? s : (s = Be.call(this._shortWeekdaysParse, o), s !== -1 ? s : null));
|
|
4806
4806
|
}
|
|
4807
4807
|
function ic(e, t, n) {
|
|
4808
4808
|
var r, s, a;
|
|
@@ -5363,7 +5363,7 @@ var Gc = function() {
|
|
|
5363
5363
|
function zc(e) {
|
|
5364
5364
|
var t, n = !1, r, s = qt.length;
|
|
5365
5365
|
for (t in e)
|
|
5366
|
-
if (xe(e, t) && !(
|
|
5366
|
+
if (xe(e, t) && !(Be.call(qt, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
5367
5367
|
return !1;
|
|
5368
5368
|
for (r = 0; r < s; ++r)
|
|
5369
5369
|
if (e[qt[r]]) {
|
|
@@ -7040,15 +7040,15 @@ const ih = Us.exports, oh = { class: "relative" }, lh = { class: "pointer-events
|
|
|
7040
7040
|
},
|
|
7041
7041
|
emits: ["update:modelValue"],
|
|
7042
7042
|
setup(e, { emit: t }) {
|
|
7043
|
-
const n = e, r = Ar(), s = ce(null), a = yn.months("long", { locale:
|
|
7043
|
+
const n = e, r = Ar(), s = ce(null), a = yn.months("long", { locale: r.locale.value }).map(
|
|
7044
7044
|
(A) => ir(A)
|
|
7045
7045
|
), o = x(
|
|
7046
|
-
yn.weekdays("long", { locale:
|
|
7046
|
+
yn.weekdays("long", { locale: r.locale.value }).map(
|
|
7047
7047
|
(A) => ir(A)
|
|
7048
7048
|
),
|
|
7049
7049
|
!0
|
|
7050
7050
|
), h = x(
|
|
7051
|
-
yn.weekdays("short", { locale:
|
|
7051
|
+
yn.weekdays("short", { locale: r.locale.value }).map(
|
|
7052
7052
|
(A) => ir(A)
|
|
7053
7053
|
),
|
|
7054
7054
|
!0
|
|
@@ -8604,7 +8604,7 @@ Cette action est irr\xE9versible.`,
|
|
|
8604
8604
|
const Cp = 100, Wp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8605
8605
|
__proto__: null,
|
|
8606
8606
|
MAGIC_NUM: Cp
|
|
8607
|
-
}, Symbol.toStringTag, { value: "Module" })), jp = { en: Qa, fr: Ka },
|
|
8607
|
+
}, Symbol.toStringTag, { value: "Module" })), jp = { en: Qa, fr: Ka }, Le = {
|
|
8608
8608
|
i18n: di({
|
|
8609
8609
|
messages: { en: Qa, fr: Ka }
|
|
8610
8610
|
}),
|
|
@@ -8623,7 +8623,7 @@ const Cp = 100, Wp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
8623
8623
|
function Tp(e, t) {
|
|
8624
8624
|
for (const n in Ys)
|
|
8625
8625
|
e.component(n, Ys[n]);
|
|
8626
|
-
t != null && t.i18n && (
|
|
8626
|
+
t != null && t.i18n && (Le.i18n = t.i18n), t != null && t.http && (Le.http = t.http), t != null && t.upload_url && (Le.upload_url = t.upload_url), t != null && t.formatQueryString && (Le.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (Le.parseQueryString = t.parseQueryString);
|
|
8627
8627
|
}
|
|
8628
8628
|
const Up = { install: Tp };
|
|
8629
8629
|
export {
|
|
@@ -8652,7 +8652,7 @@ export {
|
|
|
8652
8652
|
Ws as BaseTable,
|
|
8653
8653
|
js as BaseTableColumn,
|
|
8654
8654
|
Wp as MyConstants,
|
|
8655
|
-
|
|
8655
|
+
Le as config,
|
|
8656
8656
|
Up as default,
|
|
8657
8657
|
Lo as disableScroll,
|
|
8658
8658
|
Fo as enableScroll,
|
package/package.json
CHANGED
|
@@ -38,7 +38,6 @@ import { PropType, Ref } from 'vue';
|
|
|
38
38
|
import Pikaday from 'pikaday';
|
|
39
39
|
import { capitalize, padStart } from 'lodash';
|
|
40
40
|
import { DateTime, Info } from 'luxon';
|
|
41
|
-
import { config } from '@/index';
|
|
42
41
|
|
|
43
42
|
const props = defineProps({
|
|
44
43
|
modelValue: {
|
|
@@ -77,17 +76,17 @@ const i18n = useI18n();
|
|
|
77
76
|
|
|
78
77
|
const datepicker = ref(null) as Ref<HTMLInputElement | null>;
|
|
79
78
|
|
|
80
|
-
const months = Info.months('long', { locale:
|
|
81
|
-
|
|
79
|
+
const months = Info.months('long', { locale: i18n.locale.value }).map((m) =>
|
|
80
|
+
capitalize(m)
|
|
82
81
|
);
|
|
83
82
|
const weekdays = arrayRotate(
|
|
84
|
-
Info.weekdays('long', { locale:
|
|
83
|
+
Info.weekdays('long', { locale: i18n.locale.value }).map((m) =>
|
|
85
84
|
capitalize(m)
|
|
86
85
|
),
|
|
87
86
|
true
|
|
88
87
|
);
|
|
89
88
|
const weekdaysShort = arrayRotate(
|
|
90
|
-
Info.weekdays('short', { locale:
|
|
89
|
+
Info.weekdays('short', { locale: i18n.locale.value }).map((m) =>
|
|
91
90
|
capitalize(m)
|
|
92
91
|
),
|
|
93
92
|
true
|