@lukfel/ng-scaffold 20.0.10 → 20.0.12

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 (107) hide show
  1. package/README.md +95 -0
  2. package/fesm2022/lukfel-ng-scaffold.mjs +1518 -0
  3. package/fesm2022/lukfel-ng-scaffold.mjs.map +1 -0
  4. package/index.d.ts +663 -0
  5. package/package.json +37 -28
  6. package/styles/_theme.scss +1 -0
  7. package/styles/_variables.scss +1 -1
  8. package/.eslintrc.json +0 -37
  9. package/ng-package.json +0 -8
  10. package/src/lib/components/bottom-bar/bottom-bar.component.html +0 -29
  11. package/src/lib/components/bottom-bar/bottom-bar.component.scss +0 -33
  12. package/src/lib/components/bottom-bar/bottom-bar.component.spec.ts +0 -24
  13. package/src/lib/components/bottom-bar/bottom-bar.component.ts +0 -31
  14. package/src/lib/components/content-title-card/content-title-card.component.html +0 -25
  15. package/src/lib/components/content-title-card/content-title-card.component.scss +0 -17
  16. package/src/lib/components/content-title-card/content-title-card.component.spec.ts +0 -108
  17. package/src/lib/components/content-title-card/content-title-card.component.ts +0 -24
  18. package/src/lib/components/drawer/drawer.component.html +0 -33
  19. package/src/lib/components/drawer/drawer.component.scss +0 -10
  20. package/src/lib/components/drawer/drawer.component.spec.ts +0 -52
  21. package/src/lib/components/drawer/drawer.component.ts +0 -30
  22. package/src/lib/components/floating-button/floating-button.component.html +0 -32
  23. package/src/lib/components/floating-button/floating-button.component.scss +0 -20
  24. package/src/lib/components/floating-button/floating-button.component.spec.ts +0 -84
  25. package/src/lib/components/floating-button/floating-button.component.ts +0 -57
  26. package/src/lib/components/footer/footer.component.html +0 -38
  27. package/src/lib/components/footer/footer.component.scss +0 -39
  28. package/src/lib/components/footer/footer.component.spec.ts +0 -118
  29. package/src/lib/components/footer/footer.component.ts +0 -14
  30. package/src/lib/components/header/header.component.html +0 -170
  31. package/src/lib/components/header/header.component.scss +0 -102
  32. package/src/lib/components/header/header.component.spec.ts +0 -134
  33. package/src/lib/components/header/header.component.ts +0 -53
  34. package/src/lib/components/loading-overlay/loading-overlay.component.html +0 -3
  35. package/src/lib/components/loading-overlay/loading-overlay.component.scss +0 -16
  36. package/src/lib/components/loading-overlay/loading-overlay.component.spec.ts +0 -24
  37. package/src/lib/components/loading-overlay/loading-overlay.component.ts +0 -10
  38. package/src/lib/components/navbar/navbar.component.html +0 -43
  39. package/src/lib/components/navbar/navbar.component.scss +0 -71
  40. package/src/lib/components/navbar/navbar.component.spec.ts +0 -43
  41. package/src/lib/components/navbar/navbar.component.ts +0 -35
  42. package/src/lib/components/scaffold/scaffold.component.html +0 -74
  43. package/src/lib/components/scaffold/scaffold.component.scss +0 -48
  44. package/src/lib/components/scaffold/scaffold.component.spec.ts +0 -119
  45. package/src/lib/components/scaffold/scaffold.component.ts +0 -191
  46. package/src/lib/interceptors/loading.interceptor.ts +0 -51
  47. package/src/lib/models/bottom-bar-config.model.ts +0 -8
  48. package/src/lib/models/confirm-dialog-config.model.ts +0 -6
  49. package/src/lib/models/content-title-card-config.model.ts +0 -6
  50. package/src/lib/models/drawer-config.model.ts +0 -6
  51. package/src/lib/models/floating-button-config.model.ts +0 -13
  52. package/src/lib/models/footer-config.model.ts +0 -10
  53. package/src/lib/models/header-config.model.ts +0 -26
  54. package/src/lib/models/index.ts +0 -15
  55. package/src/lib/models/library-config.model.ts +0 -4
  56. package/src/lib/models/menu-button.model.ts +0 -10
  57. package/src/lib/models/navbar-config.model.ts +0 -8
  58. package/src/lib/models/navigation-link.model.ts +0 -6
  59. package/src/lib/models/placeholder-config.model.ts +0 -7
  60. package/src/lib/models/scaffold-config.model.ts +0 -21
  61. package/src/lib/models/seo-config.model.ts +0 -6
  62. package/src/lib/scaffold.module.ts +0 -54
  63. package/src/lib/services/breakpoint.service.spec.ts +0 -15
  64. package/src/lib/services/breakpoint.service.ts +0 -16
  65. package/src/lib/services/dialog.service.spec.ts +0 -18
  66. package/src/lib/services/dialog.service.ts +0 -58
  67. package/src/lib/services/index.ts +0 -9
  68. package/src/lib/services/local-storage.service.spec.ts +0 -15
  69. package/src/lib/services/local-storage.service.ts +0 -125
  70. package/src/lib/services/logger.service.spec.ts +0 -15
  71. package/src/lib/services/logger.service.ts +0 -46
  72. package/src/lib/services/router.service.spec.ts +0 -15
  73. package/src/lib/services/router.service.ts +0 -91
  74. package/src/lib/services/scaffold.service.spec.ts +0 -15
  75. package/src/lib/services/scaffold.service.ts +0 -77
  76. package/src/lib/services/seo.service.spec.ts +0 -15
  77. package/src/lib/services/seo.service.ts +0 -75
  78. package/src/lib/services/snackbar.service.spec.ts +0 -18
  79. package/src/lib/services/snackbar.service.ts +0 -38
  80. package/src/lib/services/theme.service.spec.ts +0 -20
  81. package/src/lib/services/theme.service.ts +0 -71
  82. package/src/lib/shared/components/dialogs/confirm-dialog/confirm-dialog.component.html +0 -24
  83. package/src/lib/shared/components/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -0
  84. package/src/lib/shared/components/dialogs/confirm-dialog/confirm-dialog.component.spec.ts +0 -85
  85. package/src/lib/shared/components/dialogs/confirm-dialog/confirm-dialog.component.ts +0 -14
  86. package/src/lib/shared/components/file-upload/file-upload.component.html +0 -21
  87. package/src/lib/shared/components/file-upload/file-upload.component.scss +0 -5
  88. package/src/lib/shared/components/file-upload/file-upload.component.spec.ts +0 -25
  89. package/src/lib/shared/components/file-upload/file-upload.component.ts +0 -43
  90. package/src/lib/shared/components/icon/icon.component.html +0 -17
  91. package/src/lib/shared/components/icon/icon.component.scss +0 -9
  92. package/src/lib/shared/components/icon/icon.component.spec.ts +0 -22
  93. package/src/lib/shared/components/icon/icon.component.ts +0 -17
  94. package/src/lib/shared/components/input/input.component.html +0 -38
  95. package/src/lib/shared/components/input/input.component.scss +0 -31
  96. package/src/lib/shared/components/input/input.component.spec.ts +0 -62
  97. package/src/lib/shared/components/input/input.component.ts +0 -72
  98. package/src/lib/shared/components/placeholder/placeholder.component.html +0 -21
  99. package/src/lib/shared/components/placeholder/placeholder.component.scss +0 -30
  100. package/src/lib/shared/components/placeholder/placeholder.component.spec.ts +0 -24
  101. package/src/lib/shared/components/placeholder/placeholder.component.ts +0 -16
  102. package/src/lib/shared/modules/material.module.ts +0 -77
  103. package/src/lib/shared/shared.module.ts +0 -18
  104. package/src/public-api.ts +0 -16
  105. package/tsconfig.lib.json +0 -14
  106. package/tsconfig.lib.prod.json +0 -10
  107. package/tsconfig.spec.json +0 -14
package/README.md CHANGED
@@ -356,6 +356,101 @@ export class AppComponent {
356
356
 
357
357
 
358
358
 
359
+ ## Standalone Components
360
+ In addition to the components provided by default by the the `ScaffoldModule` there are several standalone components that can be utilized.
361
+
362
+ * **Note:** Standalone components must be imported manually and are not part of the `ScaffoldModule` import
363
+
364
+ ### List
365
+ A flexible, Material Design–inspired list and table hybrid component for displaying structured collections of items. It supports avatars, titles, subtitles, actions, and selection checkboxes — making it ideal for dashboards, inventories, and administrative views.
366
+
367
+ ```ts
368
+ import { ListComponent } from '@lukfel/ng-scaffold';
369
+ ```
370
+
371
+ ```ts
372
+ import { ListAction, ListItem } from '@lukfel/ng-scaffold';
373
+
374
+ public items: ListItem[] = [
375
+ { title: 'Item 1' },
376
+ { title: 'Item 2', subtitle: 'My delete action is disabled', disabledActions: ['delete'] },
377
+ { title: 'Item 3', subtitle: 'My edit action is hidden', hiddenActions: ['edit'] }
378
+ ];
379
+
380
+ public actions: ListAction[] = [
381
+ { id: 'edit', matIcon: 'edit' },
382
+ { id: 'delete', matIcon: 'delete', color: 'warn' }
383
+ ];
384
+
385
+ public onActionClick(event: { id: string, item: ListItem }): void {
386
+ // handle list actions
387
+ }
388
+
389
+ public onSelectionChange(items: ListItem[]): void {
390
+ // handle selection changes
391
+ }
392
+ ```
393
+
394
+ ```html
395
+ <lf-list
396
+ [items]="items"
397
+ [actions]="actions"
398
+ [showHeader]="true"
399
+ [enableCheckboxes]="true"
400
+ avatarFallbackPath="assets/img/error/missing.png"
401
+ (actionClick)="onActionClick($event)"
402
+ (selectionChange)="onSelectionChange($event)"></lf-list>
403
+ ```
404
+
405
+ ### File-Upload
406
+ A lightweight Angular component that provides a clean, Material Design–styled button for selecting and uploading files. It wraps a hidden native file input and exposes a simple, customizable interface with built-in icon, tooltip, and state management.
407
+
408
+ ```ts
409
+ import { FileUploadComponent } from '@lukfel/ng-scaffold';
410
+ ```
411
+
412
+ ```ts
413
+ public uploadFile(file: File): void {
414
+ // handle file upload
415
+ }
416
+ ```
417
+
418
+ ```html
419
+ <lf-file-upload
420
+ color="accent"
421
+ label="Upload File"
422
+ matIcon="upload"
423
+ [disabled]="false"
424
+ accept="*"
425
+ (fileChange)="uploadFile($event)"></lf-file-upload>
426
+ ```
427
+
428
+ ### Placeholder
429
+ A versatile UI component designed to display an informative placeholder or empty state when no data is available. It provides a structured layout for an icon, heading, message, and optional action — helping guide users toward the next step.
430
+
431
+ ```ts
432
+ import { PlaceholderComponent } from '@lukfel/ng-scaffold';
433
+ ```
434
+
435
+ ```ts
436
+ import { PlaceholderConfig } from '@lukfel/ng-scaffold';
437
+
438
+ public placeholderConfig: PlaceholderConfig = {
439
+ matIcon: 'widgets',
440
+ outlineIcon: true,
441
+ heading: 'Heading',
442
+ message: 'This is a placeholder message.',
443
+ actionLabel: 'ACTION'
444
+ }
445
+ ```
446
+
447
+ ```html
448
+ <lf-placeholder [placeholderConfig]="placeholderConfig"></lf-placeholder>
449
+ ```
450
+
451
+
452
+
453
+
359
454
  ## Interceptors
360
455
  Intercept HTTP Calls and automatically show a loading spinner.
361
456