@juice-js/layout 1.0.0-alpha.10
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/README.md +24 -0
- package/esm2022/juice-js-layout.mjs +5 -0
- package/esm2022/lib/components/dark-mode/dark-mode.component.mjs +53 -0
- package/esm2022/lib/components/expandable-menu/expandable-menu.component.mjs +27 -0
- package/esm2022/lib/components/nav-menu/nav-menu.component.mjs +67 -0
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +48 -0
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +48 -0
- package/esm2022/lib/components/tooltip/tooltip.directive.mjs +84 -0
- package/esm2022/lib/components/tooltip/tooltip.module.mjs +31 -0
- package/esm2022/lib/components/user-profile/profile-dialog.service.mjs +4 -0
- package/esm2022/lib/components/user-profile/user-profile.component.mjs +80 -0
- package/esm2022/lib/components/user-profile/user-profile.model.mjs +2 -0
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.component.mjs +53 -0
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.module.mjs +46 -0
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.service.mjs +19 -0
- package/esm2022/lib/dev.guard.mjs +25 -0
- package/esm2022/lib/layout.config.mjs +22 -0
- package/esm2022/lib/layout.module.mjs +111 -0
- package/esm2022/lib/layout.service.mjs +75 -0
- package/esm2022/lib/page/page.component.mjs +118 -0
- package/esm2022/lib/pages/page-notfound/page-notfound.component.mjs +12 -0
- package/esm2022/lib/services/search.service.mjs +37 -0
- package/esm2022/public-api.mjs +16 -0
- package/fesm2022/juice-js-layout.mjs +865 -0
- package/fesm2022/juice-js-layout.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/dark-mode/dark-mode.component.d.ts +17 -0
- package/lib/components/expandable-menu/expandable-menu.component.d.ts +13 -0
- package/lib/components/nav-menu/nav-menu.component.d.ts +24 -0
- package/lib/components/search-bar/search-bar.component.d.ts +11 -0
- package/lib/components/tooltip/tooltip.component.d.ts +15 -0
- package/lib/components/tooltip/tooltip.directive.d.ts +28 -0
- package/lib/components/tooltip/tooltip.module.d.ts +9 -0
- package/lib/components/user-profile/profile-dialog.service.d.ts +3 -0
- package/lib/components/user-profile/user-profile.component.d.ts +19 -0
- package/lib/components/user-profile/user-profile.model.d.ts +6 -0
- package/lib/components/user-profile-dialog/user-profile-dialog.component.d.ts +16 -0
- package/lib/components/user-profile-dialog/user-profile-dialog.module.d.ts +11 -0
- package/lib/components/user-profile-dialog/user-profile-dialog.service.d.ts +9 -0
- package/lib/dev.guard.d.ts +8 -0
- package/lib/layout.config.d.ts +28 -0
- package/lib/layout.module.d.ts +29 -0
- package/lib/layout.service.d.ts +22 -0
- package/lib/page/page.component.d.ts +16 -0
- package/lib/pages/page-notfound/page-notfound.component.d.ts +5 -0
- package/lib/services/search.service.d.ts +12 -0
- package/package.json +45 -0
- package/public-api.d.ts +12 -0
- package/styles/_theming.scss +94 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@mixin layout-component-themes($theme) {
|
|
6
|
+
.mat-sidenav {
|
|
7
|
+
.mat-expansion-panel-body{
|
|
8
|
+
.mat-mdc-list-item-title{
|
|
9
|
+
font-size: 0.9rem;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
@include mat.list-density(-2);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html {
|
|
16
|
+
scroll-behavior: smooth;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
html, body, app-root, app-page, app-page>.container{
|
|
20
|
+
height: 100%;
|
|
21
|
+
margin: 0;
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include layout-component-colors($theme);
|
|
26
|
+
}
|
|
27
|
+
@mixin layout-component-colors($theme) {
|
|
28
|
+
$color-config: mat.get-color-config($theme);
|
|
29
|
+
$primary-palette: map-get($color-config, 'primary');
|
|
30
|
+
$background-palette: map-get($color-config, 'background');
|
|
31
|
+
$accent-palette: map-get($color-config, 'accent');
|
|
32
|
+
$is-dark-theme: map.get($theme, is-dark);
|
|
33
|
+
|
|
34
|
+
$primary: map-get($primary-palette, 500);
|
|
35
|
+
$powderPrimary: map-get($primary-palette, 200);
|
|
36
|
+
$lightPrimary: map-get($primary-palette, A100);
|
|
37
|
+
$darkPrimary: map-get($primary-palette, 800);
|
|
38
|
+
|
|
39
|
+
$gray-palette: mat.define-palette(mat.$gray-palette);
|
|
40
|
+
|
|
41
|
+
$black: #0A1014;
|
|
42
|
+
$superlightgray: map-get($gray-palette, 50);
|
|
43
|
+
$lightgray: map-get($gray-palette, 200);
|
|
44
|
+
$darkgray: map-get($gray-palette, 700);
|
|
45
|
+
$deepgray: map-get($gray-palette, 900);
|
|
46
|
+
|
|
47
|
+
/** Scrollbar */
|
|
48
|
+
/* width */
|
|
49
|
+
::-webkit-scrollbar {
|
|
50
|
+
width: 10px;
|
|
51
|
+
height: 10px;
|
|
52
|
+
}
|
|
53
|
+
::-webkit-scrollbar-thumb {
|
|
54
|
+
background: map-get($accent-palette, 300);
|
|
55
|
+
border-radius: 10px;
|
|
56
|
+
}
|
|
57
|
+
/* Track */
|
|
58
|
+
::-webkit-scrollbar-track {
|
|
59
|
+
box-shadow: inset 0 0 5px grey;
|
|
60
|
+
border-radius: 10px;
|
|
61
|
+
}
|
|
62
|
+
/** Scrollbar */
|
|
63
|
+
|
|
64
|
+
/** Sidenav */
|
|
65
|
+
.mat-sidenav {
|
|
66
|
+
.mdc-list-item--with-leading-icon{
|
|
67
|
+
.mdc-list-item__start{
|
|
68
|
+
color: map-get($accent-palette, 400);
|
|
69
|
+
}
|
|
70
|
+
&:hover{
|
|
71
|
+
.mdc-list-item__start{
|
|
72
|
+
color: map-get($accent-palette, 600);
|
|
73
|
+
}
|
|
74
|
+
.mdc-list-item__primary-text{
|
|
75
|
+
color: if($is-dark-theme, $powderPrimary, $primary);
|
|
76
|
+
text-shadow: 0 0 5px if($is-dark-theme, $black, white);
|
|
77
|
+
}
|
|
78
|
+
&.active {
|
|
79
|
+
.mdc-list-item__primary-text{
|
|
80
|
+
color: if($is-dark-theme, $powderPrimary, $darkPrimary);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
&.active{
|
|
85
|
+
background-color: if($is-dark-theme, $darkgray, $lightgray);
|
|
86
|
+
|
|
87
|
+
.mdc-list-item__primary-text{
|
|
88
|
+
color: if($is-dark-theme, $lightPrimary, $darkPrimary);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Sidenav */
|
|
94
|
+
}
|