@flux-ui/dashboard 3.0.0-next.23 → 3.0.0-next.25
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/component/FluxDashboard.d.ts +17 -0
- package/dist/component/FluxDashboardContent.d.ts +14 -0
- package/dist/component/FluxDashboardHeader.d.ts +21 -0
- package/dist/component/FluxDashboardMenu.d.ts +23 -0
- package/dist/component/FluxDashboardNavigation.d.ts +18 -0
- package/dist/component/FluxDashboardSide.d.ts +21 -0
- package/dist/component/FluxDashboardTopBar.d.ts +14 -0
- package/dist/component/index.d.ts +6 -7
- package/dist/composable/index.d.ts +0 -1
- package/dist/composable/useDashboardInjection.d.ts +0 -1
- package/dist/data/index.d.ts +0 -1
- package/dist/index.css +25 -25
- package/dist/index.d.ts +0 -1
- package/dist/index.js +26 -26
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
- package/src/component/FluxDashboard.vue +2 -2
- package/src/composable/useDashboardInjection.ts +1 -1
- package/src/css/component/Dashboard.module.scss +5 -5
- package/src/css/component/DashboardContent.module.scss +1 -1
- package/src/css/component/DashboardNavigation.module.scss +11 -11
- package/src/css/component/DashboardPane.module.scss +6 -6
- package/src/css/component/DashboardTopBar.module.scss +2 -2
- package/tsconfig.json +4 -42
- package/dist/component/FluxDashboard.vue.d.ts +0 -29
- package/dist/component/FluxDashboard.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardContent.vue.d.ts +0 -18
- package/dist/component/FluxDashboardContent.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardHeader.vue.d.ts +0 -24
- package/dist/component/FluxDashboardHeader.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardMenu.vue.d.ts +0 -25
- package/dist/component/FluxDashboardMenu.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardNavigation.vue.d.ts +0 -26
- package/dist/component/FluxDashboardNavigation.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardSide.vue.d.ts +0 -23
- package/dist/component/FluxDashboardSide.vue.d.ts.map +0 -1
- package/dist/component/FluxDashboardTopBar.vue.d.ts +0 -18
- package/dist/component/FluxDashboardTopBar.vue.d.ts.map +0 -1
- package/dist/component/index.d.ts.map +0 -1
- package/dist/composable/index.d.ts.map +0 -1
- package/dist/composable/useDashboardInjection.d.ts.map +0 -1
- package/dist/data/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default(): VNode;
|
|
4
|
+
header?(): VNode;
|
|
5
|
+
navigation?(): VNode;
|
|
6
|
+
menu?(): VNode;
|
|
7
|
+
side?(): VNode;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
readonly icon?: FluxIconName;
|
|
5
|
+
readonly title?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_8: {}, __VLS_20: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
start?: (props: typeof __VLS_8) => any;
|
|
10
|
+
} & {
|
|
11
|
+
end?: (props: typeof __VLS_20) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
readonly icon?: FluxIconName;
|
|
5
|
+
readonly title?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_7: {}, __VLS_19: {}, __VLS_21: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
'top-bar-start'?: (props: typeof __VLS_7) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'top-bar-end'?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_21) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FluxTo } from '@flux-ui/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
logoLocation?: FluxTo;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): any;
|
|
8
|
+
logo?(): any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_7: {}, __VLS_14: {}, __VLS_16: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
'top-bar-start'?: (props: typeof __VLS_7) => any;
|
|
8
|
+
} & {
|
|
9
|
+
'top-bar-end'?: (props: typeof __VLS_14) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_16) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { default as FluxDashboard } from './FluxDashboard
|
|
2
|
-
export { default as FluxDashboardContent } from './FluxDashboardContent
|
|
3
|
-
export { default as FluxDashboardHeader } from './FluxDashboardHeader
|
|
4
|
-
export { default as FluxDashboardMenu } from './FluxDashboardMenu
|
|
5
|
-
export { default as FluxDashboardNavigation } from './FluxDashboardNavigation
|
|
6
|
-
export { default as FluxDashboardSide } from './FluxDashboardSide
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { default as FluxDashboard } from './FluxDashboard';
|
|
2
|
+
export { default as FluxDashboardContent } from './FluxDashboardContent';
|
|
3
|
+
export { default as FluxDashboardHeader } from './FluxDashboardHeader';
|
|
4
|
+
export { default as FluxDashboardMenu } from './FluxDashboardMenu';
|
|
5
|
+
export { default as FluxDashboardNavigation } from './FluxDashboardNavigation';
|
|
6
|
+
export { default as FluxDashboardSide } from './FluxDashboardSide';
|
package/dist/data/index.d.ts
CHANGED
package/dist/index.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--dashboard-background: var(--gray-
|
|
2
|
+
--dashboard-background: var(--gray-25);
|
|
3
3
|
--dashboard-duration: 360ms;
|
|
4
|
-
--dashboard-navigation-background: var(--primary-
|
|
5
|
-
--dashboard-navigation-foreground: var(--primary-
|
|
4
|
+
--dashboard-navigation-background: var(--primary-950);
|
|
5
|
+
--dashboard-navigation-foreground: var(--primary-25);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
[dark] {
|
|
9
|
-
--dashboard-navigation-background: color-mix(in
|
|
10
|
-
--dashboard-navigation-foreground: var(--gray-
|
|
9
|
+
--dashboard-navigation-background: color-mix(in srgb, var(--gray-25), black 25%);
|
|
10
|
+
--dashboard-navigation-foreground: var(--gray-800);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
body:has(.root > .dashboard) {
|
|
@@ -84,7 +84,7 @@ body:has(.root > .dashboard) {
|
|
|
84
84
|
padding-right: 30px;
|
|
85
85
|
}
|
|
86
86
|
.dashboard-content > .table {
|
|
87
|
-
border-top: 1px solid var(--
|
|
87
|
+
border-top: 1px solid var(--surface-stroke);
|
|
88
88
|
}
|
|
89
89
|
.dashboard-content > .table .table-cell:first-child .table-cell-content {
|
|
90
90
|
padding-left: 30px;
|
|
@@ -107,7 +107,7 @@ body:has(.root > .dashboard) {
|
|
|
107
107
|
align-items: center;
|
|
108
108
|
flex-flow: row;
|
|
109
109
|
gap: 15px;
|
|
110
|
-
background:
|
|
110
|
+
background: rgb(from var(--gray-25) r g b/0.9);
|
|
111
111
|
backdrop-filter: blur(10px) saturate(180%);
|
|
112
112
|
z-index: 100;
|
|
113
113
|
}
|
|
@@ -133,7 +133,7 @@ body:has(.root > .dashboard) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
[dark] .dashboard-header-scrolled {
|
|
136
|
-
box-shadow: 0 1px 0 var(--gray-
|
|
136
|
+
box-shadow: 0 1px 0 var(--gray-50), var(--shadow-md);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
@media (max-width: 1023.98px) {
|
|
@@ -144,18 +144,18 @@ body:has(.root > .dashboard) {
|
|
|
144
144
|
display: none;
|
|
145
145
|
}
|
|
146
146
|
}.dashboard-pane {
|
|
147
|
-
background: var(--gray-
|
|
147
|
+
background: var(--gray-50);
|
|
148
148
|
overflow: auto;
|
|
149
149
|
z-index: 200;
|
|
150
150
|
}
|
|
151
151
|
.dashboard-pane .menu-sub-header {
|
|
152
|
-
background: linear-gradient(to bottom, var(--gray-
|
|
152
|
+
background: linear-gradient(to bottom, var(--gray-50) 75%, transparent);
|
|
153
153
|
}
|
|
154
154
|
.dashboard-pane .dashboard-top-bar {
|
|
155
|
-
background:
|
|
155
|
+
background: rgb(from var(--gray-50) r g b/0.9);
|
|
156
156
|
}
|
|
157
157
|
.dashboard-pane .filter {
|
|
158
|
-
--background: var(--gray-
|
|
158
|
+
--background: var(--gray-50);
|
|
159
159
|
max-height: calc(100dvh - 84px);
|
|
160
160
|
margin-top: -9px;
|
|
161
161
|
padding: 9px 18px 18px;
|
|
@@ -182,7 +182,7 @@ body:has(.root > .dashboard) {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.dashboard-menu {
|
|
185
|
-
border-right: 1px solid var(--
|
|
185
|
+
border-right: 1px solid var(--surface-stroke);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.dashboard-menu-body {
|
|
@@ -190,7 +190,7 @@ body:has(.root > .dashboard) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.dashboard-side {
|
|
193
|
-
border-left: 1px solid var(--
|
|
193
|
+
border-left: 1px solid var(--surface-stroke);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
@media (min-width: 1024px) {
|
|
@@ -222,7 +222,7 @@ body:has(.root > .dashboard) {
|
|
|
222
222
|
margin: 3px 15px;
|
|
223
223
|
}
|
|
224
224
|
.dashboard-navigation .divider-line {
|
|
225
|
-
background: var(--primary-
|
|
225
|
+
background: var(--primary-900);
|
|
226
226
|
}
|
|
227
227
|
.dashboard-navigation .menu {
|
|
228
228
|
flex-grow: 1;
|
|
@@ -237,14 +237,14 @@ body:has(.root > .dashboard) {
|
|
|
237
237
|
}
|
|
238
238
|
@media (hover: hover) {
|
|
239
239
|
.dashboard-navigation .menu-item:hover {
|
|
240
|
-
background: var(--primary-
|
|
240
|
+
background: var(--primary-900);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
.dashboard-navigation .menu-item:active {
|
|
244
|
-
background: var(--primary-
|
|
244
|
+
background: var(--primary-800);
|
|
245
245
|
}
|
|
246
246
|
.dashboard-navigation .menu-item-highlighted {
|
|
247
|
-
background:
|
|
247
|
+
background: var(--primary-900);
|
|
248
248
|
}
|
|
249
249
|
.dashboard-navigation .menu-item-icon {
|
|
250
250
|
color: var(--dashboard-navigation-foreground);
|
|
@@ -260,18 +260,18 @@ body:has(.root > .dashboard) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
[dark] .dashboard-navigation .divider-line {
|
|
263
|
-
background: var(--gray-
|
|
263
|
+
background: var(--gray-100);
|
|
264
264
|
}
|
|
265
265
|
@media (hover: hover) {
|
|
266
266
|
[dark] .dashboard-navigation .menu-item:hover {
|
|
267
|
-
background: var(--gray-
|
|
267
|
+
background: var(--gray-100);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
[dark] .dashboard-navigation .menu-item:active {
|
|
271
|
-
background: var(--gray-
|
|
271
|
+
background: var(--gray-200);
|
|
272
272
|
}
|
|
273
273
|
[dark] .dashboard-navigation .menu-item-highlighted {
|
|
274
|
-
background: var(--gray-
|
|
274
|
+
background: var(--gray-50);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
.dashboard-navigation-logo {
|
|
@@ -301,11 +301,11 @@ body:has(.root > .dashboard) {
|
|
|
301
301
|
display: block;
|
|
302
302
|
inset: 0;
|
|
303
303
|
content: "";
|
|
304
|
-
background: var(--gray-
|
|
304
|
+
background: var(--gray-50);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.dashboard:not(:has(.dashboard-menu)) .dashboard-navigation-rounding-fix::before {
|
|
308
|
-
background: var(--gray-
|
|
308
|
+
background: var(--gray-25);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
@media (min-width: 1024px) {
|
|
@@ -364,7 +364,7 @@ body:has(.root > .dashboard) {
|
|
|
364
364
|
width: 100dvw;
|
|
365
365
|
height: 100dvh;
|
|
366
366
|
content: "";
|
|
367
|
-
background:
|
|
367
|
+
background: rgb(from var(--gray-200) r g b/0.5);
|
|
368
368
|
backdrop-filter: blur(3px) saturate(180%);
|
|
369
369
|
transition: var(--dashboard-duration) var(--swift-out);
|
|
370
370
|
transition-property: background, backdrop-filter;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -18,19 +18,19 @@ var X = class {
|
|
|
18
18
|
}
|
|
19
19
|
#t = [];
|
|
20
20
|
#e = [];
|
|
21
|
-
add(e, t,
|
|
22
|
-
let
|
|
21
|
+
add(e, t, n = !0) {
|
|
22
|
+
let o = {
|
|
23
23
|
id: e,
|
|
24
24
|
setEnabled: t,
|
|
25
25
|
isEnabled: !0
|
|
26
26
|
};
|
|
27
|
-
if (this.current && this.toggle(this.current, !1), this.#e.push(
|
|
27
|
+
if (this.current && this.toggle(this.current, !1), this.#e.push(o), n) this.toggle(o, !0), this.emit();
|
|
28
28
|
}
|
|
29
29
|
remove(e) {
|
|
30
30
|
let t = this.#e.find((s) => s.id === e);
|
|
31
31
|
t && this.toggle(t, !1);
|
|
32
|
-
let
|
|
33
|
-
this.#e = this.#e.filter((s) => s.id !== e),
|
|
32
|
+
let o = this.current?.id === e;
|
|
33
|
+
this.#e = this.#e.filter((s) => s.id !== e), o && this.current && this.toggle(this.current, !0), this.emit();
|
|
34
34
|
}
|
|
35
35
|
emit() {
|
|
36
36
|
this.#t.forEach((e) => e(this.active, this.#e));
|
|
@@ -44,41 +44,41 @@ var X = class {
|
|
|
44
44
|
};
|
|
45
45
|
new X();
|
|
46
46
|
globalThis.document;
|
|
47
|
-
function k(e, t,
|
|
47
|
+
function k(e, t, n, o = { passive: !0 }) {
|
|
48
48
|
watch(e, (s, r, a) => {
|
|
49
49
|
if (!s) return;
|
|
50
|
-
s.addEventListener(t,
|
|
50
|
+
s.addEventListener(t, n, o), a(() => s.removeEventListener(t, n));
|
|
51
51
|
}, { immediate: !0 });
|
|
52
52
|
}
|
|
53
53
|
function ne(e, t) {
|
|
54
|
-
let
|
|
54
|
+
let n = `flux/${e}`, o = ref(s() ?? t);
|
|
55
55
|
function s() {
|
|
56
|
-
if (
|
|
57
|
-
let r = JSON.parse(localStorage.getItem(
|
|
56
|
+
if (n in localStorage) {
|
|
57
|
+
let r = JSON.parse(localStorage.getItem(n));
|
|
58
58
|
if (Array.isArray(r) && r[0] === "DateTime") r = DateTime.fromISO(r[1]);
|
|
59
59
|
return r;
|
|
60
60
|
}
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
return watch(
|
|
63
|
+
return watch(o, (r) => {
|
|
64
64
|
let a = r;
|
|
65
65
|
if (DateTime.isDateTime(r)) a = ["DateTime", r.toISO({
|
|
66
66
|
includeOffset: !0,
|
|
67
67
|
extendedZone: !0
|
|
68
68
|
})];
|
|
69
|
-
localStorage.setItem(
|
|
70
|
-
}),
|
|
69
|
+
localStorage.setItem(n, JSON.stringify(a));
|
|
70
|
+
}), o;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
let t = ref(0),
|
|
72
|
+
function se(e) {
|
|
73
|
+
let t = ref(0), n = ref(0);
|
|
74
74
|
if (!e) e = ref(document);
|
|
75
75
|
return k(e, "scroll", () => {
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
t.value =
|
|
76
|
+
let o = unref(e);
|
|
77
|
+
if (o instanceof Document) o = o.scrollingElement;
|
|
78
|
+
t.value = o?.scrollLeft ?? 0, n.value = o?.scrollTop ?? 0;
|
|
79
79
|
}), {
|
|
80
80
|
x: t,
|
|
81
|
-
y:
|
|
81
|
+
y: n
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
const FluxDashboardInjectionKey = Symbol();
|
|
@@ -97,7 +97,7 @@ var FluxDashboard_default = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
setup(__props) {
|
|
98
98
|
const isMenuCollapsed = ne("dashboard-menu-collapsed", true);
|
|
99
99
|
const isNavigationCollapsed = ne("dashboard-navigation-collapsed", true);
|
|
100
|
-
const isResizing
|
|
100
|
+
const isResizing = ref(false);
|
|
101
101
|
provide(FluxDashboardInjectionKey, {
|
|
102
102
|
isMenuCollapsed,
|
|
103
103
|
isNavigationCollapsed
|
|
@@ -106,14 +106,14 @@ var FluxDashboard_default = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
let timeout;
|
|
107
107
|
function onResize() {
|
|
108
108
|
clearTimeout(timeout);
|
|
109
|
-
isResizing
|
|
110
|
-
timeout = setTimeout(() => isResizing
|
|
109
|
+
isResizing.value = true;
|
|
110
|
+
timeout = setTimeout(() => isResizing.value = false, 10);
|
|
111
111
|
}
|
|
112
112
|
window.addEventListener("resize", onResize, { passive: true });
|
|
113
113
|
onCleanup(() => window.removeEventListener("resize", onResize));
|
|
114
114
|
}, { immediate: true });
|
|
115
115
|
return (_ctx, _cache) => {
|
|
116
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(Dashboard_module_default).dashboard, isResizing
|
|
116
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(Dashboard_module_default).dashboard, isResizing.value && unref(Dashboard_module_default).isResizing]) }, [
|
|
117
117
|
renderSlot(_ctx.$slots, "navigation"),
|
|
118
118
|
renderSlot(_ctx.$slots, "menu"),
|
|
119
119
|
createElementVNode("div", { class: normalizeClass(unref(Dashboard_module_default).dashboardMount) }, [renderSlot(_ctx.$slots, "header"), renderSlot(_ctx.$slots, "default")], 2),
|
|
@@ -174,7 +174,7 @@ var FluxDashboardHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
174
174
|
title: {}
|
|
175
175
|
},
|
|
176
176
|
setup(__props) {
|
|
177
|
-
const { y } =
|
|
177
|
+
const { y } = se();
|
|
178
178
|
return (_ctx, _cache) => {
|
|
179
179
|
return openBlock(), createBlock(FluxDashboardTopBar_default, { class: normalizeClass(unref(y) > 0 ? unref(DashboardTopBar_module_default).dashboardHeaderScrolled : unref(DashboardTopBar_module_default).dashboardHeader) }, {
|
|
180
180
|
default: withCtx(() => [
|
|
@@ -255,12 +255,12 @@ var FluxDashboardNavigation_default = /* @__PURE__ */ defineComponent({
|
|
|
255
255
|
inheritAttrs: false,
|
|
256
256
|
__name: "FluxDashboardNavigation",
|
|
257
257
|
props: { logoLocation: {} },
|
|
258
|
-
setup(__props) {
|
|
258
|
+
setup(__props, { attrs: $attrs }) {
|
|
259
259
|
const slots = useSlots();
|
|
260
260
|
const { isMenuCollapsed, isNavigationCollapsed } = useDashboardInjection_default();
|
|
261
261
|
return (_ctx, _cache) => {
|
|
262
262
|
const _component_router_link = resolveComponent("router-link");
|
|
263
|
-
return openBlock(), createElementBlock("nav", mergeProps(
|
|
263
|
+
return openBlock(), createElementBlock("nav", mergeProps($attrs, { class: unref(isNavigationCollapsed) ? unref(DashboardNavigation_module_default).dashboardNavigationCollapsed : unref(DashboardNavigation_module_default).dashboardNavigation }), [
|
|
264
264
|
createElementVNode("header", { class: normalizeClass(unref(DashboardNavigation_module_default).dashboardNavigationHeader) }, [
|
|
265
265
|
createVNode(unref(FluxMenuItem), {
|
|
266
266
|
"icon-leading": "bars",
|