@doug-williamson/ng-rhombus 0.0.20 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doug-williamson/ng-rhombus",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -14,6 +14,7 @@ import { Timestamp } from '@angular/fire/firestore';
14
14
  import { MatDialog } from '@angular/material/dialog';
15
15
  import { Storage, UploadTask } from '@angular/fire/storage';
16
16
  import { CdkTextareaAutosize } from '@angular/cdk/text-field';
17
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
17
18
 
18
19
  interface NgRhombusNavItem {
19
20
  label: string;
@@ -102,6 +103,18 @@ declare class NgRhombusLoginComponent implements OnInit {
102
103
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusLoginComponent, "ng-rhombus-login", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; }, never, never, true, never>;
103
104
  }
104
105
 
106
+ declare class NgRhombusSpinnerComponent {
107
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusSpinnerComponent, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusSpinnerComponent, "ng-rhombus-spinner", never, {}, {}, never, never, true, never>;
109
+ }
110
+
111
+ declare class NgRhombusPageComponent {
112
+ title: i0.InputSignal<string>;
113
+ backLink: i0.InputSignal<string | null>;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusPageComponent, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusPageComponent, "ng-rhombus-page", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "backLink": { "alias": "backLink"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
116
+ }
117
+
105
118
  declare class IBlog {
106
119
  id: string;
107
120
  title: string;
@@ -127,6 +140,7 @@ declare class NgRhombusBlogPostLatestComponent {
127
140
 
128
141
  declare class NgRhombusBlogService {
129
142
  private firestore;
143
+ private injector;
130
144
  private blogCollectionRef;
131
145
  blogPosts: i0.WritableSignal<IBlog[]>;
132
146
  selectedBlogPost: i0.WritableSignal<IBlog | undefined>;
@@ -162,7 +176,28 @@ declare class NgRhombusBlogTableComponent {
162
176
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusBlogTableComponent, "ng-rhombus-blog-table", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; }, { "editEvent": "editEvent"; "deleteEvent": "deleteEvent"; }, never, never, true, never>;
163
177
  }
164
178
 
179
+ interface AppTheme {
180
+ name: string;
181
+ icon: string;
182
+ }
183
+ declare class ThemeService {
184
+ private platformId;
185
+ private appTheme;
186
+ private readonly PREFERRED_THEME_COOKIE;
187
+ private themes;
188
+ selectedTheme: i0.Signal<AppTheme | undefined>;
189
+ isDarkMode: i0.Signal<boolean>;
190
+ getThemes(): AppTheme[];
191
+ setTheme(theme: string): void;
192
+ setThemeInLocalStorage(theme: string): void;
193
+ getThemeFromLocalStorage(): string;
194
+ constructor();
195
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
196
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
197
+ }
198
+
165
199
  declare class NgRhombusBlogAddEditComponent {
200
+ themeService: ThemeService;
166
201
  blogPost: i0.InputSignal<IBlog | undefined>;
167
202
  cancelEvent: i0.OutputEmitterRef<void>;
168
203
  submitEvent: i0.OutputEmitterRef<IBlog>;
@@ -186,8 +221,10 @@ declare class NgRhombusBlogAddEditComponent {
186
221
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusBlogAddEditComponent, "ng-rhombus-blog-form", never, { "blogPost": { "alias": "blogPost"; "required": false; "isSignal": true; }; }, { "cancelEvent": "cancelEvent"; "submitEvent": "submitEvent"; }, never, never, true, never>;
187
222
  }
188
223
 
189
- declare class NgRhombusBlogPostComponent {
224
+ declare class NgRhombusBlogPostComponent implements OnInit {
190
225
  dataSource: i0.InputSignal<IBlog | undefined>;
226
+ themeService: ThemeService;
227
+ ngOnInit(): void;
191
228
  static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusBlogPostComponent, never>;
192
229
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusBlogPostComponent, "ng-rhombus-blog-post", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
193
230
  }
@@ -230,6 +267,7 @@ interface ISocial {
230
267
  }
231
268
  declare class NgRhombusSocialsService {
232
269
  private firestore;
270
+ private injector;
233
271
  private socialsRef;
234
272
  socials: i0.WritableSignal<ISocial[]>;
235
273
  fetchAll(): Promise<ISocial[]>;
@@ -243,7 +281,7 @@ declare class NgRhombusSocialsService {
243
281
 
244
282
  declare class NgRhombusSocialsListComponent {
245
283
  socials: i0.InputSignal<ISocial[]>;
246
- iconFor(source?: SocialsSource): string;
284
+ iconFor(source?: SocialsSource): IconDefinition;
247
285
  openUrl(url?: string): void;
248
286
  static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusSocialsListComponent, never>;
249
287
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusSocialsListComponent, "ng-rhombus-socials-list", never, { "socials": { "alias": "socials"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -272,5 +310,5 @@ declare class NgRhombusSocialsTableComponent {
272
310
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusSocialsTableComponent, "ng-rhombus-socials-table", never, { "socials": { "alias": "socials"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
273
311
  }
274
312
 
275
- export { IBlog, NgRhombusBlogAddEditComponent, NgRhombusBlogDeletePostComponent, NgRhombusBlogListComponent, NgRhombusBlogPostComponent, NgRhombusBlogPostLatestComponent, NgRhombusBlogPostThumbnailService, NgRhombusBlogService, NgRhombusBlogTableComponent, NgRhombusHomeAdminComponent, NgRhombusLoginComponent, NgRhombusSocialsListComponent, NgRhombusSocialsService, NgRhombusSocialsTableComponent, NgRhombusWrapperComponent, SocialsSource, ThemeEnum, WrapperService };
313
+ export { IBlog, NgRhombusBlogAddEditComponent, NgRhombusBlogDeletePostComponent, NgRhombusBlogListComponent, NgRhombusBlogPostComponent, NgRhombusBlogPostLatestComponent, NgRhombusBlogPostThumbnailService, NgRhombusBlogService, NgRhombusBlogTableComponent, NgRhombusHomeAdminComponent, NgRhombusLoginComponent, NgRhombusPageComponent, NgRhombusSocialsListComponent, NgRhombusSocialsService, NgRhombusSocialsTableComponent, NgRhombusSpinnerComponent, NgRhombusWrapperComponent, SocialsSource, ThemeEnum, WrapperService };
276
314
  export type { Breadcrumb, ILoginCredentials, ISocial, NgRhombusNavItem, Theme };