@thecodeblogs/blog 0.14.0 → 0.15.1

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.
Files changed (47) hide show
  1. package/esm2020/lib/components/entry-creator/entry-creator.component.mjs +28 -33
  2. package/esm2020/lib/components/entry-renderer/entry-renderer.component.mjs +7 -7
  3. package/esm2020/lib/components/entry-renderer-wrapper/entry-renderer-wrapper.component.mjs +7 -7
  4. package/esm2020/lib/components/entry-selector-dialog/entry-selector-dialog.component.mjs +26 -17
  5. package/esm2020/lib/components/entry-summary/entry-summary.component.mjs +4 -4
  6. package/esm2020/lib/components/json-renderer/json-renderer.component.mjs +8 -8
  7. package/esm2020/lib/components/landing-page/landing-page.component.mjs +4 -4
  8. package/esm2020/lib/components/main/main.component.mjs +4 -4
  9. package/esm2020/lib/components/media-upload-modal/media-upload-modal.component.mjs +17 -17
  10. package/esm2020/lib/components/outline-view/outline-view.component.mjs +5 -7
  11. package/esm2020/lib/components/schedule-publish-dialog/schedule-publish-dialog.component.mjs +6 -6
  12. package/esm2020/lib/components/side-navigation/side-navigation.component.mjs +4 -4
  13. package/esm2020/lib/components/static-html/static-html.component.mjs +4 -4
  14. package/esm2020/lib/core.module.mjs +9 -5
  15. package/esm2020/lib/pipes/LinkyPipe.mjs +4 -4
  16. package/esm2020/lib/pipes/TimeAgoPipe.mjs +4 -4
  17. package/esm2020/lib/services/analytics/interaction.service.mjs +4 -4
  18. package/esm2020/lib/services/analytics/view.service.mjs +4 -4
  19. package/esm2020/lib/services/comment.service.mjs +4 -4
  20. package/esm2020/lib/services/django-rest-framework-endpoint.service.mjs +4 -4
  21. package/esm2020/lib/services/entry.service.mjs +19 -16
  22. package/esm2020/lib/services/identity.service.mjs +4 -4
  23. package/esm2020/lib/services/prism.service.mjs +4 -4
  24. package/esm2020/lib/services/static-html.service.mjs +4 -4
  25. package/esm2020/lib/services/tag.service.mjs +9 -9
  26. package/esm2020/lib/services/upload.service.mjs +4 -4
  27. package/esm2020/lib/services/visitor-profile.service.mjs +4 -4
  28. package/fesm2015/thecodeblogs-blog.mjs +176 -164
  29. package/fesm2015/thecodeblogs-blog.mjs.map +1 -1
  30. package/fesm2020/thecodeblogs-blog.mjs +176 -164
  31. package/fesm2020/thecodeblogs-blog.mjs.map +1 -1
  32. package/lib/components/entry-creator/entry-creator.component.d.ts +1 -1
  33. package/lib/components/entry-renderer/entry-renderer.component.d.ts +1 -1
  34. package/lib/components/entry-renderer-wrapper/entry-renderer-wrapper.component.d.ts +1 -1
  35. package/lib/components/entry-selector-dialog/entry-selector-dialog.component.d.ts +4 -3
  36. package/lib/components/entry-summary/entry-summary.component.d.ts +1 -1
  37. package/lib/components/json-renderer/json-renderer.component.d.ts +1 -1
  38. package/lib/components/landing-page/landing-page.component.d.ts +1 -1
  39. package/lib/components/main/main.component.d.ts +1 -1
  40. package/lib/components/media-upload-modal/media-upload-modal.component.d.ts +1 -1
  41. package/lib/components/outline-view/outline-view.component.d.ts +1 -1
  42. package/lib/components/schedule-publish-dialog/schedule-publish-dialog.component.d.ts +1 -1
  43. package/lib/components/side-navigation/side-navigation.component.d.ts +1 -1
  44. package/lib/components/static-html/static-html.component.d.ts +1 -1
  45. package/lib/core.module.d.ts +5 -4
  46. package/lib/services/entry.service.d.ts +1 -0
  47. package/package.json +14 -14
@@ -70,5 +70,5 @@ export declare class EntryCreatorComponent implements OnInit {
70
70
  onDateChange(): void;
71
71
  setTime(e: any): void;
72
72
  static ɵfac: i0.ɵɵFactoryDeclaration<EntryCreatorComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<EntryCreatorComponent, "app-entry-creator", never, { "allowedMimeTypes": "allowedMimeTypes"; "uploadUrlKey": "uploadUrlKey"; }, {}, never, never, false>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntryCreatorComponent, "app-entry-creator", never, { "allowedMimeTypes": "allowedMimeTypes"; "uploadUrlKey": "uploadUrlKey"; }, {}, never, never, false, never>;
74
74
  }
@@ -32,5 +32,5 @@ export declare class EntryRendererComponent implements OnInit, AfterViewChecked
32
32
  approve(comment: any): void;
33
33
  unapprove(comment: any): void;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<EntryRendererComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<EntryRendererComponent, "app-entry-renderer", never, { "entry": "entry"; "editMode": "editMode"; }, {}, never, never, false>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntryRendererComponent, "app-entry-renderer", never, { "entry": "entry"; "editMode": "editMode"; }, {}, never, never, false, never>;
36
36
  }
@@ -20,5 +20,5 @@ export declare class EntryRendererWrapperComponent implements OnInit, OnDestroy
20
20
  ngOnInit(): void;
21
21
  ngOnDestroy(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<EntryRendererWrapperComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<EntryRendererWrapperComponent, "lib-entry-renderer-wrapper", never, {}, {}, never, never, false>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntryRendererWrapperComponent, "lib-entry-renderer-wrapper", never, {}, {}, never, never, false, never>;
24
24
  }
@@ -7,13 +7,14 @@ export declare class EntrySelectorDialogComponent implements OnInit {
7
7
  dialogRef: MatDialogRef<EntrySelectorDialogComponent>;
8
8
  data: EntrySelectorDialogData;
9
9
  private entryService;
10
+ columnsToDisplay: string[];
10
11
  static CURRENT_ENTRY: string;
11
12
  entries: any;
12
- selectedId: string;
13
13
  constructor(dialogRef: MatDialogRef<EntrySelectorDialogComponent>, data: EntrySelectorDialogData, entryService: EntryService);
14
14
  ngOnInit(): void;
15
15
  onNoClick(): void;
16
- onYesClick(): void;
16
+ select(entry: any): void;
17
+ delete(entry: any): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<EntrySelectorDialogComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<EntrySelectorDialogComponent, "app-entry-selector-dialog", never, {}, {}, never, never, false>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntrySelectorDialogComponent, "app-entry-selector-dialog", never, {}, {}, never, never, false, never>;
19
20
  }
@@ -11,5 +11,5 @@ export declare class EntrySummaryComponent implements OnInit {
11
11
  ngOnInit(): void;
12
12
  routeTo(entry: any): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<EntrySummaryComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<EntrySummaryComponent, "app-entry-summary", never, { "entry": "entry"; }, {}, never, never, false>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntrySummaryComponent, "app-entry-summary", never, { "entry": "entry"; }, {}, never, never, false, never>;
15
15
  }
@@ -9,5 +9,5 @@ export declare class JsonRendererComponent implements OnInit {
9
9
  constructor(entryService: EntryService);
10
10
  ngOnInit(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<JsonRendererComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<JsonRendererComponent, "app-json-renderer", never, { "entry": "entry"; }, {}, never, never, false>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<JsonRendererComponent, "app-json-renderer", never, { "entry": "entry"; }, {}, never, never, false, never>;
13
13
  }
@@ -13,5 +13,5 @@ export declare class LandingPageComponent implements OnInit, OnDestroy {
13
13
  ngOnInit(): void;
14
14
  ngOnDestroy(): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingPageComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LandingPageComponent, "app-landing-page", never, {}, {}, never, never, false>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<LandingPageComponent, "app-landing-page", never, {}, {}, never, never, false, never>;
17
17
  }
@@ -16,5 +16,5 @@ export declare class MainComponent implements OnInit, OnDestroy {
16
16
  onResize(event: any): void;
17
17
  ngOnDestroy(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MainComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<MainComponent, "lib-main", never, {}, {}, never, never, false>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainComponent, "lib-main", never, {}, {}, never, never, false, never>;
20
20
  }
@@ -28,5 +28,5 @@ export declare class MediaUploadModalComponent implements OnInit, OnDestroy {
28
28
  blobToFile(theBlob: any, fileName: any): any;
29
29
  onPaste(e: any): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<MediaUploadModalComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<MediaUploadModalComponent, "app-media-upload-modal", never, { "allowedMimeTypes": "allowedMimeTypes"; "uploadUrlKey": "uploadUrlKey"; "file": "file"; }, {}, never, never, false>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<MediaUploadModalComponent, "app-media-upload-modal", never, { "allowedMimeTypes": "allowedMimeTypes"; "uploadUrlKey": "uploadUrlKey"; "file": "file"; }, {}, never, never, false, never>;
32
32
  }
@@ -11,5 +11,5 @@ export declare class OutlineViewComponent implements OnInit {
11
11
  sectionDrop(e: any): void;
12
12
  contentDrop(e: any, section: any): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<OutlineViewComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<OutlineViewComponent, "app-outline-view", never, {}, {}, never, never, false>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<OutlineViewComponent, "app-outline-view", never, {}, {}, never, never, false, never>;
15
15
  }
@@ -10,5 +10,5 @@ export declare class SchedulePublishDialogComponent implements OnInit {
10
10
  onNoClick(): void;
11
11
  onYesClick(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SchedulePublishDialogComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SchedulePublishDialogComponent, "lib-schedule-publish-dialog", never, {}, {}, never, never, false>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchedulePublishDialogComponent, "lib-schedule-publish-dialog", never, {}, {}, never, never, false, never>;
14
14
  }
@@ -30,5 +30,5 @@ export declare class SideNavigationComponent implements OnInit, OnDestroy {
30
30
  getMonthAndYearFromKey(key: string): string;
31
31
  ngOnDestroy(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SideNavigationComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<SideNavigationComponent, "app-side-navigation", never, {}, {}, never, never, false>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideNavigationComponent, "app-side-navigation", never, {}, {}, never, never, false, never>;
34
34
  }
@@ -12,5 +12,5 @@ export declare class StaticHtmlComponent implements OnInit, OnChanges {
12
12
  ngOnChanges(changes: SimpleChanges): void;
13
13
  ngOnInit(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<StaticHtmlComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<StaticHtmlComponent, "app-static-html", never, { "value": "value"; }, {}, never, never, false>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<StaticHtmlComponent, "app-static-html", never, { "value": "value"; }, {}, never, never, false, never>;
16
16
  }
@@ -33,13 +33,14 @@ import * as i30 from "@angular/material/chips";
33
33
  import * as i31 from "@angular/material/icon";
34
34
  import * as i32 from "@angular/material/datepicker";
35
35
  import * as i33 from "@angular/material/core";
36
- import * as i34 from "@fortawesome/angular-fontawesome";
37
- import * as i35 from "ng2-file-upload";
38
- import * as i36 from "ngx-material-timepicker";
36
+ import * as i34 from "@angular/material/table";
37
+ import * as i35 from "@fortawesome/angular-fontawesome";
38
+ import * as i36 from "ng2-file-upload";
39
+ import * as i37 from "ngx-material-timepicker";
39
40
  export declare class CoreModule {
40
41
  private library;
41
42
  constructor(library: FaIconLibrary);
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.EntryRendererComponent, typeof i2.EntryCreatorComponent, typeof i3.LandingPageComponent, typeof i4.SideNavigationComponent, typeof i5.OutlineViewComponent, typeof i6.JsonRendererComponent, typeof i7.EntrySummaryComponent, typeof i8.EntrySelectorDialogComponent, typeof i9.MediaUploadModalComponent, typeof i10.TimeAgoPipe, typeof i11.LinkyPipe, typeof i12.StaticHtmlComponent, typeof i13.MainComponent, typeof i14.EntryRendererWrapperComponent, typeof i15.SchedulePublishDialogComponent], [typeof i16.CommonModule, typeof i17.RouterModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.DragDropModule, typeof i20.MatCardModule, typeof i21.MatSidenavModule, typeof i22.MatButtonModule, typeof i23.MatInputModule, typeof i24.MatListModule, typeof i25.MatRadioModule, typeof i26.MatDialogModule, typeof i27.MatCheckboxModule, typeof i28.MatDividerModule, typeof i29.MatAutocompleteModule, typeof i30.MatChipsModule, typeof i31.MatIconModule, typeof i32.MatDatepickerModule, typeof i33.MatNativeDateModule, typeof i34.FontAwesomeModule, typeof i35.FileUploadModule, typeof i36.NgxMaterialTimepickerModule], [typeof i1.EntryRendererComponent, typeof i2.EntryCreatorComponent, typeof i3.LandingPageComponent, typeof i4.SideNavigationComponent, typeof i5.OutlineViewComponent, typeof i6.JsonRendererComponent, typeof i7.EntrySummaryComponent, typeof i8.EntrySelectorDialogComponent, typeof i9.MediaUploadModalComponent, typeof i10.TimeAgoPipe, typeof i11.LinkyPipe, typeof i12.StaticHtmlComponent, typeof i13.MainComponent, typeof i14.EntryRendererWrapperComponent]>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.EntryRendererComponent, typeof i2.EntryCreatorComponent, typeof i3.LandingPageComponent, typeof i4.SideNavigationComponent, typeof i5.OutlineViewComponent, typeof i6.JsonRendererComponent, typeof i7.EntrySummaryComponent, typeof i8.EntrySelectorDialogComponent, typeof i9.MediaUploadModalComponent, typeof i10.TimeAgoPipe, typeof i11.LinkyPipe, typeof i12.StaticHtmlComponent, typeof i13.MainComponent, typeof i14.EntryRendererWrapperComponent, typeof i15.SchedulePublishDialogComponent], [typeof i16.CommonModule, typeof i17.RouterModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.DragDropModule, typeof i20.MatCardModule, typeof i21.MatSidenavModule, typeof i22.MatButtonModule, typeof i23.MatInputModule, typeof i24.MatListModule, typeof i25.MatRadioModule, typeof i26.MatDialogModule, typeof i27.MatCheckboxModule, typeof i28.MatDividerModule, typeof i29.MatAutocompleteModule, typeof i30.MatChipsModule, typeof i31.MatIconModule, typeof i32.MatDatepickerModule, typeof i33.MatNativeDateModule, typeof i34.MatTableModule, typeof i35.FontAwesomeModule, typeof i36.FileUploadModule, typeof i37.NgxMaterialTimepickerModule], [typeof i1.EntryRendererComponent, typeof i2.EntryCreatorComponent, typeof i3.LandingPageComponent, typeof i4.SideNavigationComponent, typeof i5.OutlineViewComponent, typeof i6.JsonRendererComponent, typeof i7.EntrySummaryComponent, typeof i8.EntrySelectorDialogComponent, typeof i9.MediaUploadModalComponent, typeof i10.TimeAgoPipe, typeof i11.LinkyPipe, typeof i12.StaticHtmlComponent, typeof i13.MainComponent, typeof i14.EntryRendererWrapperComponent]>;
44
45
  static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
45
46
  }
@@ -20,6 +20,7 @@ export declare class EntryService extends DjangoRestFrameworkEndpointService<Ent
20
20
  getUnpublishedById(id: string): Observable<Entry>;
21
21
  updateUnpublishedEntry(entry: Entry): Observable<Entry>;
22
22
  slugify(s: string): string;
23
+ delete(entity: any): Observable<any>;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<EntryService, never>;
24
25
  static ɵprov: i0.ɵɵInjectableDeclaration<EntryService>;
25
26
  }
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@thecodeblogs/blog",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "dependencies": {
5
- "tslib": "~2.3.0"
5
+ "tslib": "^2.3.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/common": "~14.2.12",
9
- "@angular/core": "~14.2.12",
10
- "@angular/cdk": "~14.2.7",
11
- "@angular/material": "~14.2.7",
12
- "@angular/router": "~14.2.12",
13
- "@fortawesome/angular-fontawesome": "~0.10.1",
14
- "@fortawesome/fontawesome-svg-core": "~1.2.27",
15
- "@fortawesome/free-solid-svg-icons": "~5.12.1",
16
- "autolinker": "~3.12.0",
17
- "ng2-file-upload": "~3.0.0",
18
- "ngx-device-detector": "~4.0.1",
19
- "ngx-material-timepicker": "~5.5.3",
8
+ "@angular/common": "^15.1.4",
9
+ "@angular/core": "^15.1.4",
10
+ "@angular/cdk": "^15.1.4",
11
+ "@angular/material": "^15.1.4",
12
+ "@angular/router": "^15.1.4",
13
+ "@fortawesome/angular-fontawesome": "^0.10.1",
14
+ "@fortawesome/fontawesome-svg-core": "^1.2.27",
15
+ "@fortawesome/free-solid-svg-icons": "^5.12.1",
16
+ "autolinker": "^3.12.0",
17
+ "ng2-file-upload": "^4.0.0",
18
+ "ngx-device-detector": "^5.0.1",
19
+ "ngx-material-timepicker": "^5.5.3",
20
20
  "prismjs": "~1.19.0",
21
21
  "@types/node": "~13.7.0"
22
22
  },