@flux-ui/dashboard 3.0.0-next.58 → 3.0.0-next.59
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/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/component/FluxDashboard.vue +2 -2
- package/src/component/FluxDashboardContent.vue +2 -2
- package/src/component/FluxDashboardHeader.vue +1 -1
- package/src/component/FluxDashboardMenu.vue +2 -2
- package/src/component/FluxDashboardNavigation.vue +2 -2
- package/src/component/FluxDashboardSide.vue +1 -1
- package/src/component/FluxDashboardTopBar.vue +2 -2
- package/src/composable/useDashboardInjection.ts +1 -1
- package/src/css/component/DashboardTopBar.module.scss +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, customRef, defineComponent, guardReactiveProps, inject, markRaw, mergeProps, normalizeClass, normalizeProps, openBlock, provide, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
import { FluxIcon, FluxMenuItem, FluxSpacer } from "@flux-ui/components";
|
|
4
|
-
//#region ../../node_modules/.bun/@basmilius+utils@3.
|
|
5
|
-
function x$
|
|
4
|
+
//#region ../../node_modules/.bun/@basmilius+utils@3.24.0/node_modules/@basmilius/utils/dist/index.mjs
|
|
5
|
+
function x$1(e) {
|
|
6
6
|
let t = {};
|
|
7
7
|
do {
|
|
8
8
|
if (e.name === ``) break;
|
|
@@ -932,7 +932,7 @@ var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
|
|
|
932
932
|
};
|
|
933
933
|
//#endregion
|
|
934
934
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
|
|
935
|
-
var k$
|
|
935
|
+
var k$5 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
936
936
|
var e$2 = Math.pow(6, 3) / Math.pow(29, 3);
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/constants.js
|
|
@@ -950,7 +950,7 @@ Math.pow(29, 3) / Math.pow(3, 3);
|
|
|
950
950
|
Math.pow(6, 3) / Math.pow(29, 3);
|
|
951
951
|
//#endregion
|
|
952
952
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
|
|
953
|
-
var fn$1 = (v) => Math.pow(v, 3) > e$2 ? Math.pow(v, 3) : (116 * v - 16) / k$
|
|
953
|
+
var fn$1 = (v) => Math.pow(v, 3) > e$2 ? Math.pow(v, 3) : (116 * v - 16) / k$5;
|
|
954
954
|
var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
955
955
|
if (l === void 0) l = 0;
|
|
956
956
|
if (a === void 0) a = 0;
|
|
@@ -972,7 +972,7 @@ var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
|
972
972
|
var convertLab65ToRgb = (lab) => convertXyz65ToRgb(convertLab65ToXyz65(lab));
|
|
973
973
|
//#endregion
|
|
974
974
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
|
|
975
|
-
var f$2 = (value) => value > e$2 ? Math.cbrt(value) : (k$
|
|
975
|
+
var f$2 = (value) => value > e$2 ? Math.cbrt(value) : (k$5 * value + 16) / 116;
|
|
976
976
|
var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
|
|
977
977
|
if (x === void 0) x = 0;
|
|
978
978
|
if (y === void 0) y = 0;
|
|
@@ -1834,11 +1834,11 @@ var definition$16 = {
|
|
|
1834
1834
|
};
|
|
1835
1835
|
//#endregion
|
|
1836
1836
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
|
|
1837
|
-
var k$
|
|
1837
|
+
var k$3 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
1838
1838
|
var e = Math.pow(6, 3) / Math.pow(29, 3);
|
|
1839
1839
|
//#endregion
|
|
1840
1840
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
|
|
1841
|
-
var fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k$
|
|
1841
|
+
var fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k$3;
|
|
1842
1842
|
var convertLabToXyz50 = ({ l, a, b, alpha }) => {
|
|
1843
1843
|
if (l === void 0) l = 0;
|
|
1844
1844
|
if (a === void 0) a = 0;
|
|
@@ -1887,7 +1887,7 @@ var convertRgbToXyz50 = (rgb) => {
|
|
|
1887
1887
|
};
|
|
1888
1888
|
//#endregion
|
|
1889
1889
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
|
|
1890
|
-
var f$1 = (value) => value > e ? Math.cbrt(value) : (k$
|
|
1890
|
+
var f$1 = (value) => value > e ? Math.cbrt(value) : (k$3 * value + 16) / 116;
|
|
1891
1891
|
var convertXyz50ToLab = ({ x, y, z, alpha }) => {
|
|
1892
1892
|
if (x === void 0) x = 0;
|
|
1893
1893
|
if (y === void 0) y = 0;
|
|
@@ -2093,7 +2093,7 @@ var u_fn$1 = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
|
|
|
2093
2093
|
var v_fn$1 = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
|
|
2094
2094
|
var un$1 = u_fn$1(D50.X, D50.Y, D50.Z);
|
|
2095
2095
|
var vn$1 = v_fn$1(D50.X, D50.Y, D50.Z);
|
|
2096
|
-
var l_fn = (value) => value <= e ? k$
|
|
2096
|
+
var l_fn = (value) => value <= e ? k$3 * value : 116 * Math.cbrt(value) - 16;
|
|
2097
2097
|
var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
|
|
2098
2098
|
if (x === void 0) x = 0;
|
|
2099
2099
|
if (y === void 0) y = 0;
|
|
@@ -2133,7 +2133,7 @@ var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
|
|
|
2133
2133
|
if (v === void 0) v = 0;
|
|
2134
2134
|
let up = u / (13 * l) + un;
|
|
2135
2135
|
let vp = v / (13 * l) + vn;
|
|
2136
|
-
let y = D50.Y * (l <= 8 ? l / k$
|
|
2136
|
+
let y = D50.Y * (l <= 8 ? l / k$3 : Math.pow((l + 16) / 116, 3));
|
|
2137
2137
|
let res = {
|
|
2138
2138
|
mode: "xyz50",
|
|
2139
2139
|
x: y * (9 * up) / (4 * vp),
|
|
@@ -3102,7 +3102,7 @@ useMode(definition$2);
|
|
|
3102
3102
|
useMode(definition$1);
|
|
3103
3103
|
useMode(definition);
|
|
3104
3104
|
//#endregion
|
|
3105
|
-
//#region ../../node_modules/.bun/@basmilius+http-client@3.
|
|
3105
|
+
//#region ../../node_modules/.bun/@basmilius+http-client@3.24.0+96a7401e32316653/node_modules/@basmilius/http-client/dist/index.mjs
|
|
3106
3106
|
function c(e) {
|
|
3107
3107
|
return class extends e {
|
|
3108
3108
|
constructor(...e) {
|
|
@@ -3117,7 +3117,7 @@ var l = Symbol(), u = Symbol(), d = Symbol(), f = Symbol(), p = Symbol(), m = Sy
|
|
|
3117
3117
|
function v(e) {
|
|
3118
3118
|
return e && typeof e == `object` && !!e[p];
|
|
3119
3119
|
}
|
|
3120
|
-
function y
|
|
3120
|
+
function y(e) {
|
|
3121
3121
|
if (!v(e)) throw Error(`@dto assert given object is not a class decorated with @Dto.`);
|
|
3122
3122
|
}
|
|
3123
3123
|
var ae = Symbol();
|
|
@@ -3138,17 +3138,17 @@ function b(e, t = 0, n) {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
};
|
|
3140
3140
|
}
|
|
3141
|
-
function x
|
|
3142
|
-
return y
|
|
3141
|
+
function x(e) {
|
|
3142
|
+
return y(e), e[f];
|
|
3143
3143
|
}
|
|
3144
3144
|
var S = b(function(e, t, n, r) {
|
|
3145
3145
|
let i = e[ie];
|
|
3146
3146
|
i(e, t, n, r), e[m] && S(e[m], e[h], e[m][e[h]]);
|
|
3147
|
-
}, 0, 1), C
|
|
3148
|
-
y
|
|
3147
|
+
}, 0, 1), C = b(function(e) {
|
|
3148
|
+
y(e), e[f] && (e[f] = !1, S(e, f, !1, !0)), !(!e[u] || e[u].length === 0) && e[u].filter(x).forEach(C);
|
|
3149
3149
|
});
|
|
3150
3150
|
var w = b(function(e, t) {
|
|
3151
|
-
y
|
|
3151
|
+
y(e), e[f] || (e[f] = !0, S(e, f, !0, !1)), e[m] && w(e[m], e[h]);
|
|
3152
3152
|
});
|
|
3153
3153
|
function T(e, t, n) {
|
|
3154
3154
|
t[u] ??= [], !t[u].includes(e) && t[u].push(e), e[m] !== t && (e[m] = t), e[h] !== n && (e[h] = n);
|
|
@@ -3164,7 +3164,7 @@ function le(e, t) {
|
|
|
3164
3164
|
let n = e[re];
|
|
3165
3165
|
n(e, t);
|
|
3166
3166
|
}
|
|
3167
|
-
function D(e, t) {
|
|
3167
|
+
function D$1(e, t) {
|
|
3168
3168
|
if (u in t) {
|
|
3169
3169
|
let n = t[u].indexOf(e);
|
|
3170
3170
|
n !== -1 && t[u].splice(n, 1);
|
|
@@ -3172,14 +3172,14 @@ function D(e, t) {
|
|
|
3172
3172
|
e[m] = void 0, e[h] = void 0;
|
|
3173
3173
|
}
|
|
3174
3174
|
function ue(e, t) {
|
|
3175
|
-
if (v(t)) D(t, e);
|
|
3175
|
+
if (v(t)) D$1(t, e);
|
|
3176
3176
|
else if (Array.isArray(t)) {
|
|
3177
|
-
for (let n of t) v(n) && D(n, e);
|
|
3177
|
+
for (let n of t) v(n) && D$1(n, e);
|
|
3178
3178
|
t[m] = void 0, t[h] = void 0;
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
var O$1 = {};
|
|
3182
|
-
var k$
|
|
3182
|
+
var k$2 = {
|
|
3183
3183
|
deleteProperty(e, t) {
|
|
3184
3184
|
if (Reflect.deleteProperty(e, t), A$1(e, t)) return !0;
|
|
3185
3185
|
let n = e[m];
|
|
@@ -3220,7 +3220,7 @@ var de = {
|
|
|
3220
3220
|
let i = e[d][t];
|
|
3221
3221
|
if (!i || !i.set) return Reflect.set(e, t, n, r);
|
|
3222
3222
|
let a = i.get?.call(e) ?? void 0;
|
|
3223
|
-
return ne(n, a) ? !0 : (ue(e, a), Array.isArray(n) && !n[_] && (n = new Proxy(n, k$
|
|
3223
|
+
return ne(n, a) ? !0 : (ue(e, a), Array.isArray(n) && !n[_] && (n = new Proxy(n, k$2)), i.set.call(e, n), E(e, t, n), w(e, t), S(e, t, n, a), !0);
|
|
3224
3224
|
}
|
|
3225
3225
|
}, fe$1 = {
|
|
3226
3226
|
get(e, t, n) {
|
|
@@ -3236,7 +3236,7 @@ var de = {
|
|
|
3236
3236
|
return t in e ? Reflect.set(e, t, n, r) : Reflect.set(e.value, t, n);
|
|
3237
3237
|
}
|
|
3238
3238
|
}, pe$1 = { construct(e, t, n) {
|
|
3239
|
-
t = t.map((e) => Array.isArray(e) ? new Proxy(e, k$
|
|
3239
|
+
t = t.map((e) => Array.isArray(e) ? new Proxy(e, k$2) : e);
|
|
3240
3240
|
let r = customRef((r, i) => {
|
|
3241
3241
|
let a = markRaw(Reflect.construct(e, t, n));
|
|
3242
3242
|
a[l] = t, a[f] = !1, a[re] = r, a[ie] = i;
|
|
@@ -3250,7 +3250,7 @@ var de = {
|
|
|
3250
3250
|
} };
|
|
3251
3251
|
function me() {
|
|
3252
3252
|
let e = this;
|
|
3253
|
-
y
|
|
3253
|
+
y(e);
|
|
3254
3254
|
let t = O$1[e[p]], n = new t(...e[l]);
|
|
3255
3255
|
for (let [e, t] of Object.entries(this[d])) t.set && (n[e] = v(this[e]) ? this[e].clone() : this[e]);
|
|
3256
3256
|
return n;
|
|
@@ -3269,9 +3269,9 @@ function ge() {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
return e;
|
|
3271
3271
|
}
|
|
3272
|
-
function j(e) {
|
|
3272
|
+
function j$1(e) {
|
|
3273
3273
|
ve(e);
|
|
3274
|
-
let t = Object.freeze(x$
|
|
3274
|
+
let t = Object.freeze(x$1(e)), a = Object.keys(t);
|
|
3275
3275
|
return K$1(e.prototype, d, t), K$1(e.prototype, p, e.name), K$1(e.prototype, g, a), K$1(e, Symbol.hasInstance, (t) => typeof t == `object` && t?.[p] === e.name), G$1(e, `clone`, me), G$1(e, `fill`, he), G$1(e, `toJSON`, ge), _e(e);
|
|
3276
3276
|
}
|
|
3277
3277
|
function _e(e) {
|
|
@@ -3301,7 +3301,7 @@ var V = class {
|
|
|
3301
3301
|
this.#e = e, this.#t = t;
|
|
3302
3302
|
}
|
|
3303
3303
|
};
|
|
3304
|
-
V = B([j], V);
|
|
3304
|
+
V = B([j$1], V);
|
|
3305
3305
|
var U = class {
|
|
3306
3306
|
get items() {
|
|
3307
3307
|
return this.#e;
|
|
@@ -3327,7 +3327,7 @@ var U = class {
|
|
|
3327
3327
|
this.#e = e, this.#t = t, this.#n = n, this.#r = r, this.#i = i;
|
|
3328
3328
|
}
|
|
3329
3329
|
};
|
|
3330
|
-
U = B([j], U);
|
|
3330
|
+
U = B([j$1], U);
|
|
3331
3331
|
var W = U;
|
|
3332
3332
|
var G = class {
|
|
3333
3333
|
get code() {
|
|
@@ -3350,7 +3350,7 @@ var G = class {
|
|
|
3350
3350
|
this.#e = e, this.#t = t, this.#n = n, this.#r = r;
|
|
3351
3351
|
}
|
|
3352
3352
|
};
|
|
3353
|
-
G = B([j], G);
|
|
3353
|
+
G = B([j$1], G);
|
|
3354
3354
|
var K = G;
|
|
3355
3355
|
var q = class {
|
|
3356
3356
|
get code() {
|
|
@@ -3377,7 +3377,7 @@ var q = class {
|
|
|
3377
3377
|
this.#e = e, this.#t = t, this.#n = n, this.#r = r, this.#i = i;
|
|
3378
3378
|
}
|
|
3379
3379
|
};
|
|
3380
|
-
q = B([j], q);
|
|
3380
|
+
q = B([j$1], q);
|
|
3381
3381
|
var J = q, Y;
|
|
3382
3382
|
var X = Y = class {
|
|
3383
3383
|
static parsePaginatedAdapter(e, t) {
|
|
@@ -3403,13 +3403,13 @@ X = Y = B([c], X);
|
|
|
3403
3403
|
converter(`oklch`);
|
|
3404
3404
|
RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
|
|
3405
3405
|
//#endregion
|
|
3406
|
-
//#region ../internals/dist/composable-
|
|
3407
|
-
function
|
|
3406
|
+
//#region ../internals/dist/composable-Cp0PgZry.js
|
|
3407
|
+
function D(e, t, n, r = { passive: !0 }) {
|
|
3408
3408
|
watch(e, (e, i, a) => {
|
|
3409
3409
|
e && (e.addEventListener(t, n, r), a(() => e.removeEventListener(t, n)));
|
|
3410
3410
|
}, { immediate: !0 });
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function k(e, t) {
|
|
3413
3413
|
let n = `flux/${e}`, r = ref(i() ?? t);
|
|
3414
3414
|
function i() {
|
|
3415
3415
|
if (n in localStorage) {
|
|
@@ -3426,9 +3426,9 @@ function x(e, t) {
|
|
|
3426
3426
|
})]), localStorage.setItem(n, JSON.stringify(t));
|
|
3427
3427
|
}), r;
|
|
3428
3428
|
}
|
|
3429
|
-
function
|
|
3429
|
+
function j(e) {
|
|
3430
3430
|
let t = ref(0), n = ref(0);
|
|
3431
|
-
return e ||= ref(document),
|
|
3431
|
+
return e ||= ref(document), D(e, `scroll`, () => {
|
|
3432
3432
|
let r = unref(e);
|
|
3433
3433
|
r instanceof Document && (r = r.scrollingElement), t.value = r?.scrollLeft ?? 0, n.value = r?.scrollTop ?? 0;
|
|
3434
3434
|
}), {
|
|
@@ -3454,8 +3454,8 @@ var Dashboard_module_default = {
|
|
|
3454
3454
|
var FluxDashboard_default = /* @__PURE__ */ defineComponent({
|
|
3455
3455
|
__name: "FluxDashboard",
|
|
3456
3456
|
setup(__props) {
|
|
3457
|
-
const isMenuCollapsed =
|
|
3458
|
-
const isNavigationCollapsed =
|
|
3457
|
+
const isMenuCollapsed = k("dashboard-menu-collapsed", true);
|
|
3458
|
+
const isNavigationCollapsed = k("dashboard-navigation-collapsed", true);
|
|
3459
3459
|
const isResizing = ref(false);
|
|
3460
3460
|
provide(FluxDashboardInjectionKey, {
|
|
3461
3461
|
isMenuCollapsed,
|
|
@@ -3543,7 +3543,7 @@ var FluxDashboardHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
3543
3543
|
title: {}
|
|
3544
3544
|
},
|
|
3545
3545
|
setup(__props) {
|
|
3546
|
-
const { y } =
|
|
3546
|
+
const { y } = j();
|
|
3547
3547
|
return (_ctx, _cache) => {
|
|
3548
3548
|
return openBlock(), createBlock(FluxDashboardTopBar_default, { class: normalizeClass(unref(y) > 0 ? unref(DashboardTopBar_module_default).dashboardHeaderScrolled : unref(DashboardTopBar_module_default).dashboardHeader) }, {
|
|
3549
3549
|
default: withCtx(() => [
|