@tilde-nlp/ngx-menu 8.1.16 → 8.1.17
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/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { MenuItem, Media } from '@tilde-nlp/strapi-models';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, OnDestroy, EventEmitter, ModuleWithProviders } from '@angular/core';
|
|
5
5
|
import * as i21 from '@tilde-nlp/ngx-common';
|
|
6
|
-
import { PlausibleEvent, IconService, DOMService } from '@tilde-nlp/ngx-common';
|
|
6
|
+
import { PlausibleEvent, IconService, DOMService, AccessibilityService } from '@tilde-nlp/ngx-common';
|
|
7
7
|
import { StrapiSubscriptionService, StrapiApiConfig, StrapiLinkService, PlaceholderComponentBase, StrapiVariablesService } from '@tilde-nlp/ngx-strapi';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
|
-
import { Observable, Subscription
|
|
9
|
+
import { Observable, Subscription } from 'rxjs';
|
|
10
10
|
import * as i12 from '@angular/router';
|
|
11
11
|
import { IsActiveMatchOptions, Router } from '@angular/router';
|
|
12
12
|
import * as _tilde_nlp_ngx_menu from '@tilde-nlp/ngx-menu';
|
|
@@ -237,27 +237,12 @@ declare class NavBaseComponent implements OnInit, OnDestroy {
|
|
|
237
237
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavBaseComponent, "nav-base", never, { "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, false, never>;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
declare class MenuAccessibilityService {
|
|
241
|
-
readonly fontSizeLocalStorageKey = "ACCESSIBILITY_FONT_SIZE_IX";
|
|
242
|
-
readonly contrastLocalStorageKey = "ACCESSIBILITY_CONTRAST";
|
|
243
|
-
sizeIncreaseSubject: Subject<boolean>;
|
|
244
|
-
contrastSubject: Subject<string>;
|
|
245
|
-
saveContrast(contrast: string): void;
|
|
246
|
-
getSavedContrast(): string;
|
|
247
|
-
getSavedFontSize(): number;
|
|
248
|
-
saveFontSize(ix: number): void;
|
|
249
|
-
setFontSize(fontSizeIx: number): void;
|
|
250
|
-
setContrast(contrast: string): void;
|
|
251
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuAccessibilityService, never>;
|
|
252
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MenuAccessibilityService>;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
240
|
declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, OnDestroy {
|
|
256
241
|
#private;
|
|
257
242
|
strapiLinkService: StrapiLinkService;
|
|
258
243
|
readonly domService: DOMService;
|
|
259
244
|
readonly menuItems: MenuItemsService;
|
|
260
|
-
readonly accessibility:
|
|
245
|
+
readonly accessibility: AccessibilityService;
|
|
261
246
|
get username(): string | undefined;
|
|
262
247
|
set username(value: string | undefined);
|
|
263
248
|
menuSettings: SideNavSettings;
|
|
@@ -276,12 +261,12 @@ declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, O
|
|
|
276
261
|
readonly EXPAND_PLAUSIBLE_EVENT: PlausibleEvent;
|
|
277
262
|
readonly COLLAPSE_PLAUSIBLE_EVENT: PlausibleEvent;
|
|
278
263
|
readonly baseUrl: string | undefined;
|
|
279
|
-
|
|
264
|
+
logoImageSource: string;
|
|
280
265
|
get sideNavWidth(): string | undefined;
|
|
281
266
|
get footerItems(): _tilde_nlp_strapi_models.MenuItem[];
|
|
282
267
|
isViewIncreased: boolean;
|
|
283
268
|
isMobileRes: boolean;
|
|
284
|
-
constructor(strapiLinkService: StrapiLinkService, domService: DOMService, menuItems: MenuItemsService, accessibility:
|
|
269
|
+
constructor(strapiLinkService: StrapiLinkService, domService: DOMService, menuItems: MenuItemsService, accessibility: AccessibilityService);
|
|
285
270
|
ngOnInit(): void;
|
|
286
271
|
login(): void;
|
|
287
272
|
logoClick(event: MouseEvent): void;
|
|
@@ -289,6 +274,7 @@ declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, O
|
|
|
289
274
|
linkCallback(link: UserMenuOptionLink): void;
|
|
290
275
|
changeLanguage(lang: string): void;
|
|
291
276
|
private watchAccessibilityChanges;
|
|
277
|
+
private setDefaultLogo;
|
|
292
278
|
private getColapsedFromLocalStorage;
|
|
293
279
|
private setColapsedFromLocalStorage;
|
|
294
280
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavMenuComponent, never>;
|
|
@@ -468,5 +454,5 @@ declare const USER_MENU_OPTIONS: {
|
|
|
468
454
|
login: (callback: () => void) => UserMenuOption;
|
|
469
455
|
};
|
|
470
456
|
|
|
471
|
-
export { MENU_ICON_STRAPI_EXTENSION, MENU_SHARED_CONFIG, MENU_VERSION,
|
|
457
|
+
export { MENU_ICON_STRAPI_EXTENSION, MENU_SHARED_CONFIG, MENU_VERSION, MenuColumnsComponent, MenuItemsService, MenuLayoutDirection, MenuModule, NavBaseComponent, SideNavMenuComponent, StarpiMenuService, StrapiDataLocation, USER_MENU_OPTIONS };
|
|
472
458
|
export type { ActiveMenuItemConfig, ActiveMenuItems, CustomMenuItem, MenuItemGroup, MenuItemGroupBase, MenuSharedConfig, SideNavSettings, UserMenuOption };
|
package/package.json
CHANGED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@angular/material" as mat;
|
|
3
|
-
|
|
4
|
-
$_palettes: (
|
|
5
|
-
primary: (
|
|
6
|
-
0: #000000,
|
|
7
|
-
10: #1b1b1b,
|
|
8
|
-
20: #303030,
|
|
9
|
-
25: #3b3b3b,
|
|
10
|
-
30: #474747,
|
|
11
|
-
35: #525252,
|
|
12
|
-
40: #5e5e5e,
|
|
13
|
-
50: #777777,
|
|
14
|
-
60: #919191,
|
|
15
|
-
70: #ababab,
|
|
16
|
-
80: #c6c6c6,
|
|
17
|
-
90: #e2e2e2,
|
|
18
|
-
95: #f1f1f1,
|
|
19
|
-
98: #f9f9f9,
|
|
20
|
-
99: #fcfcfc,
|
|
21
|
-
100: #ffffff,
|
|
22
|
-
),
|
|
23
|
-
secondary: (
|
|
24
|
-
0: #000000,
|
|
25
|
-
10: #1a1c1c,
|
|
26
|
-
20: #2f3131,
|
|
27
|
-
25: #3a3c3c,
|
|
28
|
-
30: #454747,
|
|
29
|
-
35: #515353,
|
|
30
|
-
40: #5d5f5f,
|
|
31
|
-
50: #767777,
|
|
32
|
-
60: #909191,
|
|
33
|
-
70: #aaabab,
|
|
34
|
-
80: #c6c6c7,
|
|
35
|
-
90: #e2e2e2,
|
|
36
|
-
95: #f0f1f1,
|
|
37
|
-
98: #f9f9f9,
|
|
38
|
-
99: #fcfcfc,
|
|
39
|
-
100: #ffffff,
|
|
40
|
-
),
|
|
41
|
-
tertiary: (
|
|
42
|
-
0: #000000,
|
|
43
|
-
10: #1b1b1b,
|
|
44
|
-
20: #303030,
|
|
45
|
-
25: #3b3b3b,
|
|
46
|
-
30: #474747,
|
|
47
|
-
35: #525252,
|
|
48
|
-
40: #5e5e5e,
|
|
49
|
-
50: #777777,
|
|
50
|
-
60: #919191,
|
|
51
|
-
70: #ababab,
|
|
52
|
-
80: #c6c6c6,
|
|
53
|
-
90: #e2e2e2,
|
|
54
|
-
95: #f1f1f1,
|
|
55
|
-
98: #f9f9f9,
|
|
56
|
-
99: #fcfcfc,
|
|
57
|
-
100: #ffffff,
|
|
58
|
-
),
|
|
59
|
-
neutral: (
|
|
60
|
-
0: #000000,
|
|
61
|
-
10: #1b1b1b,
|
|
62
|
-
20: #303030,
|
|
63
|
-
25: #3b3b3b,
|
|
64
|
-
30: #474747,
|
|
65
|
-
35: #525252,
|
|
66
|
-
40: #5e5e5e,
|
|
67
|
-
50: #777777,
|
|
68
|
-
60: #919191,
|
|
69
|
-
70: #ababab,
|
|
70
|
-
80: #c6c6c6,
|
|
71
|
-
90: #e2e2e2,
|
|
72
|
-
95: #f1f1f1,
|
|
73
|
-
98: #f9f9f9,
|
|
74
|
-
99: #fcfcfc,
|
|
75
|
-
100: #ffffff,
|
|
76
|
-
4: #0e0e0e,
|
|
77
|
-
6: #131313,
|
|
78
|
-
12: #1f1f1f,
|
|
79
|
-
17: #2a2a2a,
|
|
80
|
-
22: #353535,
|
|
81
|
-
24: #393939,
|
|
82
|
-
87: #dadada,
|
|
83
|
-
92: #e8e8e8,
|
|
84
|
-
94: #eeeeee,
|
|
85
|
-
96: #f3f3f3,
|
|
86
|
-
),
|
|
87
|
-
neutral-variant: (
|
|
88
|
-
0: #000000,
|
|
89
|
-
10: #201a1b,
|
|
90
|
-
20: #352f30,
|
|
91
|
-
25: #413a3b,
|
|
92
|
-
30: #4c4546,
|
|
93
|
-
35: #585052,
|
|
94
|
-
40: #645c5e,
|
|
95
|
-
50: #7e7576,
|
|
96
|
-
60: #988e90,
|
|
97
|
-
70: #b3a9aa,
|
|
98
|
-
80: #cfc4c5,
|
|
99
|
-
90: #ebe0e1,
|
|
100
|
-
95: #faeeef,
|
|
101
|
-
98: #fff8f8,
|
|
102
|
-
99: #fffbff,
|
|
103
|
-
100: #ffffff,
|
|
104
|
-
),
|
|
105
|
-
error: (
|
|
106
|
-
0: #000000,
|
|
107
|
-
10: #410002,
|
|
108
|
-
20: #690005,
|
|
109
|
-
25: #7e0007,
|
|
110
|
-
30: #93000a,
|
|
111
|
-
35: #a80710,
|
|
112
|
-
40: #ba1a1a,
|
|
113
|
-
50: #de3730,
|
|
114
|
-
60: #ff5449,
|
|
115
|
-
70: #ff897d,
|
|
116
|
-
80: #ffb4ab,
|
|
117
|
-
90: #ffdad6,
|
|
118
|
-
95: #ffedea,
|
|
119
|
-
98: #fff8f7,
|
|
120
|
-
99: #fffbff,
|
|
121
|
-
100: #ffffff,
|
|
122
|
-
),
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
$_rest: (
|
|
126
|
-
secondary: map.get($_palettes, secondary),
|
|
127
|
-
neutral: map.get($_palettes, neutral),
|
|
128
|
-
neutral-variant: map.get($_palettes, neutral-variant),
|
|
129
|
-
error: map.get($_palettes, error),
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
$primary-palette: map.merge(map.get($_palettes, primary), $_rest);
|
|
133
|
-
$tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
134
|
-
|
|
135
|
-
html.black-white {
|
|
136
|
-
--base-0: #ffffff !important;
|
|
137
|
-
--base-10: #f1f1f1 !important;
|
|
138
|
-
--base-30: #ababab !important;
|
|
139
|
-
--base-40: #919191 !important;
|
|
140
|
-
--base-65: #5e5e5e !important;
|
|
141
|
-
--base-70: #474747 !important;
|
|
142
|
-
--base-95: #1b1b1b !important;
|
|
143
|
-
--base-100: #000000 !important;
|
|
144
|
-
--neutral-50: #847374 !important;
|
|
145
|
-
--neutral-95: #fbeeee !important;
|
|
146
|
-
--overlay: #181a1b 70% !important;
|
|
147
|
-
--primary-accent: #000000 !important;
|
|
148
|
-
--primary-accent-lighter: #373737 !important;
|
|
149
|
-
--secondary-accent: #ffffff !important;
|
|
150
|
-
--info-primary: #0288d1 !important;
|
|
151
|
-
--info-dark: #014361 !important;
|
|
152
|
-
--info-light: #e5f6fd !important;
|
|
153
|
-
--success-dark: #177d61 !important;
|
|
154
|
-
--success-light: #e1f9f3 !important;
|
|
155
|
-
--warning-dark: #b25300 !important;
|
|
156
|
-
--warning-light: #fff1e5 !important;
|
|
157
|
-
--error-dark: #c42121 !important;
|
|
158
|
-
--error-light: #fdf2f2 !important;
|
|
159
|
-
--gradient: #667680 !important;
|
|
160
|
-
--accent: #000000 !important;
|
|
161
|
-
|
|
162
|
-
--mat-menu-item-label-text-color: #000000 !important;
|
|
163
|
-
--mat-menu-container-color: #e2e2e2 !important;
|
|
164
|
-
|
|
165
|
-
@include mat.dialog-overrides(
|
|
166
|
-
(
|
|
167
|
-
subhead-color: var(--base-0),
|
|
168
|
-
)
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
@include mat.tabs-overrides(
|
|
172
|
-
(
|
|
173
|
-
inactive-label-text-color: var(--base-0),
|
|
174
|
-
inactive-hover-label-text-color: var(--base-0),
|
|
175
|
-
)
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
@include mat.button-overrides((
|
|
179
|
-
outlined-label-text-color: var(--base-0),
|
|
180
|
-
outlined-outline-color: var(--base-0)
|
|
181
|
-
));
|
|
182
|
-
|
|
183
|
-
@include mat.theme(
|
|
184
|
-
(
|
|
185
|
-
color: (
|
|
186
|
-
primary: $primary-palette,
|
|
187
|
-
tertiary: $tertiary-palette,
|
|
188
|
-
theme-type: light,
|
|
189
|
-
),
|
|
190
|
-
)
|
|
191
|
-
);
|
|
192
|
-
|
|
193
|
-
body {
|
|
194
|
-
color: var(--base-0) !important;
|
|
195
|
-
background-color: var(--base-100) !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
textarea, input {
|
|
199
|
-
background-color: var(--base-100) !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.mat-mdc-outlined-button.mat-accent {
|
|
203
|
-
color: var(--base-0) !important;
|
|
204
|
-
border-color: var(--base-0) !important;
|
|
205
|
-
}
|
|
206
|
-
}
|