@posiwise/admin-module 0.0.171 → 0.0.173

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.
@@ -2,19 +2,21 @@ import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { AdminService } from '@posiwise/admin-module-utils';
4
4
  import { AppBaseComponent } from '@posiwise/app-base-component';
5
- import { TagService } from '@posiwise/common-services';
5
+ import { SubscriptionService, TagService } from '@posiwise/common-services';
6
6
  import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ResourceAdminDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
9
9
  private readonly modalService;
10
10
  private readonly adminService;
11
11
  private readonly tagService;
12
+ private readonly subscriptionService;
12
13
  form: UntypedFormGroup;
13
14
  submitted: boolean;
14
15
  id: number;
15
16
  slug: string;
16
17
  blog: {
17
18
  id: string;
19
+ author_id: number;
18
20
  title: string;
19
21
  body: string;
20
22
  view: string;
@@ -41,6 +43,9 @@ export declare class ResourceAdminDetailsComponent extends AppBaseComponent impl
41
43
  subscriptionId: number;
42
44
  isLoading: boolean;
43
45
  isBlogAdmin: boolean;
46
+ availableAuthors: any[];
47
+ authorsLoading: boolean;
48
+ isSubscriptionSuperAdmin: boolean;
44
49
  editorConfig: any;
45
50
  routers: {
46
51
  globalConfigDetails: string;
@@ -84,7 +89,7 @@ export declare class ResourceAdminDetailsComponent extends AppBaseComponent impl
84
89
  source: string;
85
90
  value: number;
86
91
  };
87
- constructor(modalService: NgbModal, adminService: AdminService, injector: Injector, tagService: TagService);
92
+ constructor(modalService: NgbModal, adminService: AdminService, injector: Injector, tagService: TagService, subscriptionService: SubscriptionService);
88
93
  ngAfterViewInit(): void;
89
94
  ngOnInit(): void;
90
95
  get f(): {
@@ -116,6 +121,11 @@ export declare class ResourceAdminDetailsComponent extends AppBaseComponent impl
116
121
  private getPostTags;
117
122
  search(event: any): void;
118
123
  postTags(id: number | string): void;
124
+ /**
125
+ * Gets the list of members for the subscription to populate the Author dropdown
126
+ * Uses the same API and pattern as Enterprise/Members UI
127
+ */
128
+ private getAvailableAuthors;
119
129
  ngOnDestroy(): void;
120
130
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceAdminDetailsComponent, never>;
121
131
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceAdminDetailsComponent, "pw-resources-details-index", never, {}, {}, never, never, false, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/admin-module",
3
- "version": "0.0.171",
3
+ "version": "0.0.173",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",