@doug-williamson/ng-rhombus 0.0.21 → 1.0.0

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.21",
3
+ "version": "1.0.0",
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;
@@ -111,9 +124,11 @@ declare class IBlog {
111
124
  timestamp: Timestamp;
112
125
  }
113
126
 
114
- declare class NgRhombusBlogListComponent {
127
+ declare class NgRhombusBlogListComponent implements OnInit {
128
+ #private;
115
129
  goToRoute: EventEmitter<string>;
116
130
  dataSource: i0.InputSignal<IBlog[]>;
131
+ ngOnInit(): void;
117
132
  goToBlogPost(id: string): void;
118
133
  static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusBlogListComponent, never>;
119
134
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusBlogListComponent, "ng-rhombus-blog-list", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; }, { "goToRoute": "goToRoute"; }, never, never, true, never>;
@@ -127,6 +142,7 @@ declare class NgRhombusBlogPostLatestComponent {
127
142
 
128
143
  declare class NgRhombusBlogService {
129
144
  private firestore;
145
+ private injector;
130
146
  private blogCollectionRef;
131
147
  blogPosts: i0.WritableSignal<IBlog[]>;
132
148
  selectedBlogPost: i0.WritableSignal<IBlog | undefined>;
@@ -162,7 +178,28 @@ declare class NgRhombusBlogTableComponent {
162
178
  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
179
  }
164
180
 
181
+ interface AppTheme {
182
+ name: string;
183
+ icon: string;
184
+ }
185
+ declare class ThemeService {
186
+ private platformId;
187
+ private appTheme;
188
+ private readonly PREFERRED_THEME_COOKIE;
189
+ private themes;
190
+ selectedTheme: i0.Signal<AppTheme | undefined>;
191
+ isDarkMode: i0.Signal<boolean>;
192
+ getThemes(): AppTheme[];
193
+ setTheme(theme: string): void;
194
+ setThemeInLocalStorage(theme: string): void;
195
+ getThemeFromLocalStorage(): string;
196
+ constructor();
197
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
198
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
199
+ }
200
+
165
201
  declare class NgRhombusBlogAddEditComponent {
202
+ themeService: ThemeService;
166
203
  blogPost: i0.InputSignal<IBlog | undefined>;
167
204
  cancelEvent: i0.OutputEmitterRef<void>;
168
205
  submitEvent: i0.OutputEmitterRef<IBlog>;
@@ -186,8 +223,11 @@ declare class NgRhombusBlogAddEditComponent {
186
223
  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
224
  }
188
225
 
189
- declare class NgRhombusBlogPostComponent {
226
+ declare class NgRhombusBlogPostComponent implements OnInit {
227
+ #private;
190
228
  dataSource: i0.InputSignal<IBlog | undefined>;
229
+ themeService: ThemeService;
230
+ ngOnInit(): void;
191
231
  static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusBlogPostComponent, never>;
192
232
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusBlogPostComponent, "ng-rhombus-blog-post", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
193
233
  }
@@ -230,6 +270,7 @@ interface ISocial {
230
270
  }
231
271
  declare class NgRhombusSocialsService {
232
272
  private firestore;
273
+ private injector;
233
274
  private socialsRef;
234
275
  socials: i0.WritableSignal<ISocial[]>;
235
276
  fetchAll(): Promise<ISocial[]>;
@@ -243,7 +284,7 @@ declare class NgRhombusSocialsService {
243
284
 
244
285
  declare class NgRhombusSocialsListComponent {
245
286
  socials: i0.InputSignal<ISocial[]>;
246
- iconFor(source?: SocialsSource): string;
287
+ iconFor(source?: SocialsSource): IconDefinition;
247
288
  openUrl(url?: string): void;
248
289
  static ɵfac: i0.ɵɵFactoryDeclaration<NgRhombusSocialsListComponent, never>;
249
290
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusSocialsListComponent, "ng-rhombus-socials-list", never, { "socials": { "alias": "socials"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -272,5 +313,5 @@ declare class NgRhombusSocialsTableComponent {
272
313
  static ɵcmp: i0.ɵɵComponentDeclaration<NgRhombusSocialsTableComponent, "ng-rhombus-socials-table", never, { "socials": { "alias": "socials"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
273
314
  }
274
315
 
275
- export { IBlog, NgRhombusBlogAddEditComponent, NgRhombusBlogDeletePostComponent, NgRhombusBlogListComponent, NgRhombusBlogPostComponent, NgRhombusBlogPostLatestComponent, NgRhombusBlogPostThumbnailService, NgRhombusBlogService, NgRhombusBlogTableComponent, NgRhombusHomeAdminComponent, NgRhombusLoginComponent, NgRhombusSocialsListComponent, NgRhombusSocialsService, NgRhombusSocialsTableComponent, NgRhombusWrapperComponent, SocialsSource, ThemeEnum, WrapperService };
316
+ export { IBlog, NgRhombusBlogAddEditComponent, NgRhombusBlogDeletePostComponent, NgRhombusBlogListComponent, NgRhombusBlogPostComponent, NgRhombusBlogPostLatestComponent, NgRhombusBlogPostThumbnailService, NgRhombusBlogService, NgRhombusBlogTableComponent, NgRhombusHomeAdminComponent, NgRhombusLoginComponent, NgRhombusPageComponent, NgRhombusSocialsListComponent, NgRhombusSocialsService, NgRhombusSocialsTableComponent, NgRhombusSpinnerComponent, NgRhombusWrapperComponent, SocialsSource, ThemeEnum, WrapperService };
276
317
  export type { Breadcrumb, ILoginCredentials, ISocial, NgRhombusNavItem, Theme };