@thecodeblogs/blog 0.15.3 → 0.15.4
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/esm2020/lib/components/side-navigation/side-navigation.component.mjs +101 -30
- package/esm2020/lib/services/entry.service.mjs +4 -1
- package/fesm2015/thecodeblogs-blog.mjs +98 -29
- package/fesm2015/thecodeblogs-blog.mjs.map +1 -1
- package/fesm2020/thecodeblogs-blog.mjs +98 -29
- package/fesm2020/thecodeblogs-blog.mjs.map +1 -1
- package/lib/components/side-navigation/side-navigation.component.d.ts +11 -2
- package/lib/services/entry.service.d.ts +1 -0
- package/package.json +1 -1
- package/version.json +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
3
4
|
import { Entry } from '../../data/entry';
|
|
4
5
|
import { Identity } from '../../data/identity';
|
|
5
6
|
import { EntryService } from '../../services/entry.service';
|
|
@@ -9,6 +10,8 @@ export declare class SideNavigationComponent implements OnInit, OnDestroy {
|
|
|
9
10
|
private entryService;
|
|
10
11
|
private router;
|
|
11
12
|
private identityService;
|
|
13
|
+
private renderer;
|
|
14
|
+
state: 'in' | 'out';
|
|
12
15
|
sourceSub: any;
|
|
13
16
|
identity: Identity;
|
|
14
17
|
entries: {
|
|
@@ -20,15 +23,21 @@ export declare class SideNavigationComponent implements OnInit, OnDestroy {
|
|
|
20
23
|
month_year_number: number;
|
|
21
24
|
entries: Entry[];
|
|
22
25
|
}[];
|
|
23
|
-
|
|
26
|
+
searchTerm: string;
|
|
27
|
+
doSearch: EventEmitter<string>;
|
|
28
|
+
divNav: ElementRef;
|
|
29
|
+
constructor(entryService: EntryService, router: Router, identityService: IdentityService, renderer: Renderer2);
|
|
24
30
|
ngOnInit(): void;
|
|
25
31
|
getEntriesWithUrl(url: string): void;
|
|
26
32
|
organizeEntries(): void;
|
|
27
33
|
getEntries(): void;
|
|
34
|
+
searchEntries(searchTerm: string): void;
|
|
28
35
|
render(): void;
|
|
29
36
|
routeTo(entry: any): void;
|
|
30
37
|
getMonthAndYearFromKey(key: string): string;
|
|
31
38
|
ngOnDestroy(): void;
|
|
39
|
+
searchControl: FormControl<string>;
|
|
40
|
+
onSearchChange(searchValue: string): void;
|
|
32
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavigationComponent, never>;
|
|
33
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavigationComponent, "app-side-navigation", never, {}, {}, never, never, false, never>;
|
|
34
43
|
}
|
|
@@ -15,6 +15,7 @@ export declare class EntryService extends DjangoRestFrameworkEndpointService<Ent
|
|
|
15
15
|
handleListResponse(obj: ListResponse<Entry>): ListResponse<Entry>;
|
|
16
16
|
constructor(http: HttpClient);
|
|
17
17
|
get(): Observable<ListResponse<Entry>>;
|
|
18
|
+
search(searchTerm: string): Observable<ListResponse<Entry>>;
|
|
18
19
|
getUnpublishedEntries(): Observable<Object>;
|
|
19
20
|
getBySlug(slug: string): Observable<unknown>;
|
|
20
21
|
getUnpublishedById(id: string): Observable<Entry>;
|
package/package.json
CHANGED
package/version.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version": "0.15.3+42a7a17ff2.8"}
|