@lenne.tech/ng-base 15.0.0-beta → 15.0.0-beta-3

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 (111) hide show
  1. package/base-components/base-components.module.d.ts +3 -1
  2. package/base-components/components/input/input.component.d.ts +2 -1
  3. package/base-components/components/model-table/model-table.component.d.ts +16 -4
  4. package/base-components/components/refence-input/refence-input.component.d.ts +10 -2
  5. package/base-components/components/select/select.component.d.ts +2 -1
  6. package/base-components/components/tags/tags.component.d.ts +2 -1
  7. package/base-components/components/textarea/textarea.component.d.ts +9 -2
  8. package/base-components/components/upload-image/upload-image.component.d.ts +19 -4
  9. package/base-components/directives/sort.directive.d.ts +3 -2
  10. package/base-prototype/pages/login/login.component.d.ts +5 -8
  11. package/base-prototype/pages/profile/profile.component.d.ts +5 -29
  12. package/base-prototype/pages/register/register.component.d.ts +6 -2
  13. package/esm2020/base-cms/base-cms-routing.module.mjs +4 -4
  14. package/esm2020/base-cms/base-cms.module.mjs +4 -4
  15. package/esm2020/base-cms/pages/base-cms/base-cms.component.mjs +5 -5
  16. package/esm2020/base-components/base-components.module.mjs +9 -7
  17. package/esm2020/base-components/components/breadcrumb/breadcrumb.component.mjs +3 -3
  18. package/esm2020/base-components/components/change-password/change-password.component.mjs +3 -3
  19. package/esm2020/base-components/components/checkbox/checkbox.component.mjs +3 -3
  20. package/esm2020/base-components/components/delete-account/delete-account.component.mjs +3 -3
  21. package/esm2020/base-components/components/fab-button/fab-button.component.mjs +3 -3
  22. package/esm2020/base-components/components/input/input.component.mjs +8 -5
  23. package/esm2020/base-components/components/loading-bar/loading-bar.component.mjs +3 -3
  24. package/esm2020/base-components/components/model-form/model-form-base.component.mjs +3 -3
  25. package/esm2020/base-components/components/model-form/model-form.component.mjs +14 -14
  26. package/esm2020/base-components/components/model-form-sub/model-form-sub.component.mjs +5 -5
  27. package/esm2020/base-components/components/model-table/model-table.component.mjs +78 -19
  28. package/esm2020/base-components/components/refence-input/refence-input.component.mjs +24 -10
  29. package/esm2020/base-components/components/select/select.component.mjs +9 -6
  30. package/esm2020/base-components/components/skeleton-loader/skeleton-loader.component.mjs +3 -3
  31. package/esm2020/base-components/components/tags/tags.component.mjs +8 -5
  32. package/esm2020/base-components/components/textarea/textarea.component.mjs +41 -7
  33. package/esm2020/base-components/components/toast/toast.component.mjs +3 -3
  34. package/esm2020/base-components/components/upload-image/upload-image.component.mjs +100 -28
  35. package/esm2020/base-components/directives/back-button.directive.mjs +3 -3
  36. package/esm2020/base-components/directives/context-menu.directive.mjs +3 -3
  37. package/esm2020/base-components/directives/sort.directive.mjs +10 -7
  38. package/esm2020/base-components/directives/stop-propagation.directive.mjs +3 -3
  39. package/esm2020/base-components/pipes/ellipses.pipe.mjs +3 -3
  40. package/esm2020/base-prototype/base-prototype.module.mjs +4 -4
  41. package/esm2020/base-prototype/pages/email-verification/email-verification.component.mjs +3 -3
  42. package/esm2020/base-prototype/pages/forgot-password/forgot-password.component.mjs +3 -3
  43. package/esm2020/base-prototype/pages/login/login.component.mjs +17 -10
  44. package/esm2020/base-prototype/pages/profile/profile.component.mjs +15 -5
  45. package/esm2020/base-prototype/pages/register/register.component.mjs +15 -8
  46. package/esm2020/base-prototype/pages/set-password/set-password.component.mjs +3 -3
  47. package/esm2020/shared/classes/auth.class.mjs +2 -1
  48. package/esm2020/shared/interfaces/cms-field-config.interface.mjs +1 -1
  49. package/esm2020/shared/interfaces/cropping-options.interface.mjs +2 -0
  50. package/esm2020/shared/interfaces/login-config.interface.mjs +2 -0
  51. package/esm2020/shared/public-api.mjs +3 -1
  52. package/esm2020/shared/services/auth.service.mjs +88 -17
  53. package/esm2020/shared/services/breadcrumb.service.mjs +9 -9
  54. package/esm2020/shared/services/cms.service.mjs +3 -3
  55. package/esm2020/shared/services/file.service.mjs +3 -3
  56. package/esm2020/shared/services/forms.service.mjs +3 -3
  57. package/esm2020/shared/services/graphql-meta.service.mjs +3 -3
  58. package/esm2020/shared/services/graphql-plus.service.mjs +3 -3
  59. package/esm2020/shared/services/graphql.service.mjs +3 -3
  60. package/esm2020/shared/services/image.service.mjs +3 -3
  61. package/esm2020/shared/services/loader.service.mjs +3 -3
  62. package/esm2020/shared/services/navigation.service.mjs +3 -3
  63. package/esm2020/shared/services/scroll.service.mjs +3 -3
  64. package/esm2020/shared/services/storage.service.mjs +3 -3
  65. package/esm2020/shared/services/toast.service.mjs +3 -3
  66. package/esm2020/shared/services/user.service.mjs +12 -10
  67. package/esm2020/shared/services/ws.service.mjs +3 -3
  68. package/esm2020/src/base.module.mjs +4 -4
  69. package/esm2020/src/directives/lazy-load.directive.mjs +3 -3
  70. package/esm2020/src/directives/match-height.directive.mjs +9 -4
  71. package/esm2020/src/directives/resizable.directive.mjs +3 -3
  72. package/esm2020/src/factories/apollo-options.factory.mjs +47 -4
  73. package/esm2020/src/guards/auth.guard.mjs +28 -9
  74. package/esm2020/src/guards/can-deactivate.guard.mjs +3 -3
  75. package/esm2020/src/guards/logout.guard.mjs +3 -3
  76. package/esm2020/src/pipes/date-ago.pipe.mjs +3 -3
  77. package/esm2020/src/pipes/safe-html.pipe.mjs +3 -3
  78. package/esm2020/src/services/fullscreen.service.mjs +3 -3
  79. package/esm2020/src/services/seo.service.mjs +3 -3
  80. package/esm2020/src/services/theme.service.mjs +14 -14
  81. package/fesm2015/lenne.tech-ng-base-base-cms.mjs +13 -13
  82. package/fesm2015/lenne.tech-ng-base-base-cms.mjs.map +1 -1
  83. package/fesm2015/lenne.tech-ng-base-base-components.mjs +307 -130
  84. package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
  85. package/fesm2015/lenne.tech-ng-base-base-prototype.mjs +56 -33
  86. package/fesm2015/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
  87. package/fesm2015/lenne.tech-ng-base-shared.mjs +354 -283
  88. package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
  89. package/fesm2015/lenne.tech-ng-base.mjs +122 -58
  90. package/fesm2015/lenne.tech-ng-base.mjs.map +1 -1
  91. package/fesm2020/lenne.tech-ng-base-base-cms.mjs +13 -13
  92. package/fesm2020/lenne.tech-ng-base-base-cms.mjs.map +1 -1
  93. package/fesm2020/lenne.tech-ng-base-base-components.mjs +314 -130
  94. package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
  95. package/fesm2020/lenne.tech-ng-base-base-prototype.mjs +56 -33
  96. package/fesm2020/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
  97. package/fesm2020/lenne.tech-ng-base-shared.mjs +351 -278
  98. package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
  99. package/fesm2020/lenne.tech-ng-base.mjs +123 -57
  100. package/fesm2020/lenne.tech-ng-base.mjs.map +1 -1
  101. package/package.json +9 -7
  102. package/shared/classes/auth.class.d.ts +1 -0
  103. package/shared/interfaces/cms-field-config.interface.d.ts +6 -1
  104. package/shared/interfaces/cropping-options.interface.d.ts +12 -0
  105. package/shared/interfaces/field.interface.d.ts +1 -1
  106. package/shared/interfaces/login-config.interface.d.ts +6 -0
  107. package/shared/public-api.d.ts +2 -0
  108. package/shared/services/auth.service.d.ts +16 -4
  109. package/shared/types/graphql-fields.type.d.ts +1 -1
  110. package/shared/types/storage.type.d.ts +1 -1
  111. package/src/directives/match-height.directive.d.ts +1 -0
@@ -24,8 +24,10 @@ import * as i22 from "./pipes/ellipses.pipe";
24
24
  import * as i23 from "@angular/forms";
25
25
  import * as i24 from "@angular/common";
26
26
  import * as i25 from "@angular/router";
27
+ import * as i26 from "ngx-image-cropper";
28
+ import * as i27 from "@ng-bootstrap/ng-bootstrap";
27
29
  export declare class BaseComponentsModule {
28
30
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentsModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentsModule, [typeof i1.SortDirective, typeof i2.BackButtonDirective, typeof i3.ContextMenuDirective, typeof i4.StopPropagationDirective, typeof i5.InputComponent, typeof i6.SelectComponent, typeof i7.CheckboxComponent, typeof i8.TextareaComponent, typeof i9.ToastComponent, typeof i10.TagsComponent, typeof i11.LoadingBarComponent, typeof i12.SkeletonLoaderComponent, typeof i13.BreadcrumbComponent, typeof i14.ModelFormComponent, typeof i15.ModelTableComponent, typeof i16.ModelFormSubComponent, typeof i17.UploadImageComponent, typeof i18.RefenceInputComponent, typeof i19.ChangePasswordComponent, typeof i20.DeleteAccountComponent, typeof i21.FabButtonComponent, typeof i22.EllipsesPipe], [typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.CommonModule, typeof i25.RouterModule], [typeof i1.SortDirective, typeof i2.BackButtonDirective, typeof i3.ContextMenuDirective, typeof i4.StopPropagationDirective, typeof i5.InputComponent, typeof i6.SelectComponent, typeof i7.CheckboxComponent, typeof i8.TextareaComponent, typeof i9.ToastComponent, typeof i10.TagsComponent, typeof i11.LoadingBarComponent, typeof i12.SkeletonLoaderComponent, typeof i13.BreadcrumbComponent, typeof i14.ModelFormComponent, typeof i15.ModelTableComponent, typeof i16.ModelFormSubComponent, typeof i17.UploadImageComponent, typeof i18.RefenceInputComponent, typeof i19.ChangePasswordComponent, typeof i20.DeleteAccountComponent, typeof i21.FabButtonComponent, typeof i22.EllipsesPipe]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentsModule, [typeof i1.SortDirective, typeof i2.BackButtonDirective, typeof i3.ContextMenuDirective, typeof i4.StopPropagationDirective, typeof i5.InputComponent, typeof i6.SelectComponent, typeof i7.CheckboxComponent, typeof i8.TextareaComponent, typeof i9.ToastComponent, typeof i10.TagsComponent, typeof i11.LoadingBarComponent, typeof i12.SkeletonLoaderComponent, typeof i13.BreadcrumbComponent, typeof i14.ModelFormComponent, typeof i15.ModelTableComponent, typeof i16.ModelFormSubComponent, typeof i17.UploadImageComponent, typeof i18.RefenceInputComponent, typeof i19.ChangePasswordComponent, typeof i20.DeleteAccountComponent, typeof i21.FabButtonComponent, typeof i22.EllipsesPipe], [typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.ImageCropperModule, typeof i27.NgbTooltipModule], [typeof i1.SortDirective, typeof i2.BackButtonDirective, typeof i3.ContextMenuDirective, typeof i4.StopPropagationDirective, typeof i5.InputComponent, typeof i6.SelectComponent, typeof i7.CheckboxComponent, typeof i8.TextareaComponent, typeof i9.ToastComponent, typeof i10.TagsComponent, typeof i11.LoadingBarComponent, typeof i12.SkeletonLoaderComponent, typeof i13.BreadcrumbComponent, typeof i14.ModelFormComponent, typeof i15.ModelTableComponent, typeof i16.ModelFormSubComponent, typeof i17.UploadImageComponent, typeof i18.RefenceInputComponent, typeof i19.ChangePasswordComponent, typeof i20.DeleteAccountComponent, typeof i21.FabButtonComponent, typeof i22.EllipsesPipe]>;
30
32
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentsModule>;
31
33
  }
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class InputComponent {
4
4
  id: string;
5
5
  name: string;
6
+ infoText: string;
6
7
  label?: string;
7
8
  placeholder?: string;
8
9
  autocomplete?: string;
@@ -22,5 +23,5 @@ export declare class InputComponent {
22
23
  */
23
24
  togglePasswordType(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "base-input", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "type": "type"; "required": "required"; "eyeButton": "eyeButton"; "objectPath": "objectPath"; }, { "enter": "enter"; }, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "base-input", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "type": "type"; "required": "required"; "eyeButton": "eyeButton"; "objectPath": "objectPath"; }, { "enter": "enter"; }, never, never, false, never>;
26
27
  }
@@ -1,12 +1,15 @@
1
- import { AfterViewInit, ComponentRef, EventEmitter, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
- import { CMSFieldConfig, CMSModelConfig, CmsService, CMSTableField, GraphQLMeta, GraphQLMetaService, GraphQLService, GraphQLType, ScrollService, ToastService } from '@lenne.tech/ng-base/shared';
1
+ import { AfterViewInit, ComponentRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { CMSFieldConfig, CMSModelConfig, CmsService, CMSTableField, GraphQLMeta, GraphQLMetaService, GraphQLService, GraphQLType, ScrollService, StorageService, ToastService } from '@lenne.tech/ng-base/shared';
3
+ import { FormControl } from '@angular/forms';
4
+ import { Subscription } from 'rxjs';
3
5
  import * as i0 from "@angular/core";
4
- export declare class ModelTableComponent implements OnInit, OnChanges, AfterViewInit {
6
+ export declare class ModelTableComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
5
7
  private graphQLMetaService;
6
8
  private graphQLService;
7
9
  private cmsService;
8
10
  private toastService;
9
11
  private scrollService;
12
+ private storageService;
10
13
  modelName: string;
11
14
  objectId: string;
12
15
  createMode: boolean;
@@ -38,15 +41,23 @@ export declare class ModelTableComponent implements OnInit, OnChanges, AfterView
38
41
  totalCount: number;
39
42
  selectedPageIndex: number;
40
43
  pages: any[];
41
- constructor(graphQLMetaService: GraphQLMetaService, graphQLService: GraphQLService, cmsService: CmsService, toastService: ToastService, scrollService: ScrollService);
44
+ pageItemsLimitControl: FormControl<number>;
45
+ pageOptions: {
46
+ text: string;
47
+ value: number;
48
+ }[];
49
+ subscription: Subscription;
50
+ constructor(graphQLMetaService: GraphQLMetaService, graphQLService: GraphQLService, cmsService: CmsService, toastService: ToastService, scrollService: ScrollService, storageService: StorageService);
42
51
  ngAfterViewInit(): void;
43
52
  ngOnInit(): void;
44
53
  ngOnChanges(changes: SimpleChanges): void;
54
+ ngOnDestroy(): void;
45
55
  /**
46
56
  * We're using the `meta` service to get the fields that are available for the `find` query for the model we're working
47
57
  * with. We're then using that information to populate the `availableFields` array
48
58
  */
49
59
  init(): Promise<void>;
60
+ subscribeToPageItems(): void;
50
61
  integrateCustomFormComponent(): void;
51
62
  setChangesInComponentRef(): void;
52
63
  /**
@@ -67,6 +78,7 @@ export declare class ModelTableComponent implements OnInit, OnChanges, AfterView
67
78
  * selectedId property
68
79
  */
69
80
  selectId(object: any): void;
81
+ openNewTab(object: any): void;
70
82
  /**
71
83
  * It calls the duplicateObject function in the cmsService, passing in the id of the object to be duplicated and the
72
84
  * modelName of the object
@@ -1,11 +1,14 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { GraphQLService } from '@lenne.tech/ng-base/shared';
3
3
  import { Subscription } from 'rxjs';
4
+ import { Router } from '@angular/router';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class RefenceInputComponent implements OnInit, OnDestroy {
6
7
  private graphQLService;
8
+ private router;
7
9
  id: string;
8
10
  name: string;
11
+ infoText: string;
9
12
  label?: string;
10
13
  isList: boolean;
11
14
  search: boolean;
@@ -21,14 +24,19 @@ export declare class RefenceInputComponent implements OnInit, OnDestroy {
21
24
  valueField: string;
22
25
  objectPath: string;
23
26
  nameField: string[] | string;
27
+ creationLink: string;
24
28
  objects: any[];
25
29
  currentValue: any;
26
30
  optionsForTagInput: any[];
27
31
  selectedElement: HTMLElement;
28
32
  subscription: Subscription;
29
- constructor(graphQLService: GraphQLService);
33
+ constructor(graphQLService: GraphQLService, router: Router);
30
34
  ngOnInit(): Promise<void>;
31
35
  ngOnDestroy(): void;
36
+ /**
37
+ * Open creation link for new reference if enabled
38
+ */
39
+ openLink(): void;
32
40
  /**
33
41
  * It gets the references from the GraphQL server and sets the value of the select
34
42
  */
@@ -72,5 +80,5 @@ export declare class RefenceInputComponent implements OnInit, OnDestroy {
72
80
  */
73
81
  checkForNameFields(object: any): any;
74
82
  static ɵfac: i0.ɵɵFactoryDeclaration<RefenceInputComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<RefenceInputComponent, "base-refence-input", never, { "id": "id"; "name": "name"; "label": "label"; "isList": "isList"; "search": "search"; "useParamAsArg": "useParamAsArg"; "param": "param"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "required": "required"; "method": "method"; "fields": "fields"; "valueField": "valueField"; "objectPath": "objectPath"; "nameField": "nameField"; }, {}, never, never, false, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<RefenceInputComponent, "base-refence-input", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "isList": "isList"; "search": "search"; "useParamAsArg": "useParamAsArg"; "param": "param"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "required": "required"; "method": "method"; "fields": "fields"; "valueField": "valueField"; "objectPath": "objectPath"; "nameField": "nameField"; "creationLink": "creationLink"; }, {}, never, never, false, never>;
76
84
  }
@@ -8,6 +8,7 @@ export declare class SelectComponent implements OnInit {
8
8
  select: ElementRef;
9
9
  id: string;
10
10
  name: string;
11
+ infoText: string;
11
12
  label?: string;
12
13
  placeholder?: string;
13
14
  objectPath: string;
@@ -19,6 +20,6 @@ export declare class SelectComponent implements OnInit {
19
20
  options: Option[];
20
21
  ngOnInit(): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "base-select", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "objectPath": "objectPath"; "control": "control"; "tabIndex": "tabIndex"; "required": "required"; "multiple": "multiple"; "search": "search"; "options": "options"; }, {}, never, never, false, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "base-select", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "placeholder": "placeholder"; "objectPath": "objectPath"; "control": "control"; "tabIndex": "tabIndex"; "required": "required"; "multiple": "multiple"; "search": "search"; "options": "options"; }, {}, never, never, false, never>;
23
24
  }
24
25
  export {};
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class TagsComponent {
4
4
  id: string;
5
5
  name: string;
6
+ infoText: string;
6
7
  label?: string;
7
8
  placeholder?: string;
8
9
  autocomplete?: string;
@@ -55,5 +56,5 @@ export declare class TagsComponent {
55
56
  */
56
57
  onFocus(event?: any): void;
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<TagsComponent, never>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<TagsComponent, "base-tags", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "options": "options"; "custom": "custom"; "removeByKey": "removeByKey"; "required": "required"; "objectPath": "objectPath"; "validators": "validators"; }, {}, never, never, false, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagsComponent, "base-tags", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "options": "options"; "custom": "custom"; "removeByKey": "removeByKey"; "required": "required"; "objectPath": "objectPath"; "validators": "validators"; }, {}, never, never, false, never>;
59
60
  }
@@ -1,14 +1,21 @@
1
+ import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
- export declare class TextareaComponent {
3
+ export declare class TextareaComponent implements OnChanges {
4
+ textarea: ElementRef;
3
5
  id: string;
4
6
  name: string;
7
+ infoText: string;
5
8
  label?: string;
6
9
  placeholder?: string;
7
10
  control: any;
8
11
  rows: number;
9
12
  required: boolean;
13
+ autoHeight: boolean;
10
14
  tabIndex?: number;
11
15
  objectPath: string;
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ adjustInitHeight(): void;
18
+ adjustHeight(event: any): void;
12
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "base-textarea", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "control": "control"; "rows": "rows"; "required": "required"; "tabIndex": "tabIndex"; "objectPath": "objectPath"; }, {}, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "base-textarea", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "placeholder": "placeholder"; "control": "control"; "rows": "rows"; "required": "required"; "autoHeight": "autoHeight"; "tabIndex": "tabIndex"; "objectPath": "objectPath"; }, {}, never, never, false, never>;
14
21
  }
@@ -1,14 +1,17 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { AuthService, CompressOptions, FileService, ToastService } from '@lenne.tech/ng-base/shared';
3
+ import { AuthService, CompressOptions, CroppingOptions, FileService, ToastService } from '@lenne.tech/ng-base/shared';
4
+ import { ImageCroppedEvent } from 'ngx-image-cropper';
4
5
  import * as i0 from "@angular/core";
5
- export declare class UploadImageComponent {
6
+ export declare class UploadImageComponent implements OnInit {
6
7
  private httpClient;
7
8
  private authService;
8
9
  private fileService;
9
10
  private toastService;
11
+ fileInput: ElementRef;
10
12
  id: string;
11
13
  name: string;
14
+ infoText: string;
12
15
  label?: string;
13
16
  supportText: string;
14
17
  required: boolean;
@@ -25,6 +28,8 @@ export declare class UploadImageComponent {
25
28
  compressOptions: CompressOptions;
26
29
  maxSize: number;
27
30
  uploadDirectly: boolean;
31
+ croppingImage: boolean;
32
+ croppingOptions: CroppingOptions;
28
33
  objectPath: string;
29
34
  mode: 'file' | 'base64';
30
35
  imageUploaded: EventEmitter<any>;
@@ -37,9 +42,14 @@ export declare class UploadImageComponent {
37
42
  dragActive: boolean;
38
43
  dragText: string;
39
44
  selectedFile: File;
45
+ croppedFile: File;
40
46
  fileUrl: string;
41
47
  loading: boolean;
48
+ croppedInProgress: boolean;
49
+ fileEvent: any;
50
+ cOptions: CroppingOptions;
42
51
  constructor(httpClient: HttpClient, authService: AuthService, fileService: FileService, toastService: ToastService);
52
+ ngOnInit(): void;
43
53
  /**
44
54
  * The dragOver function is called when the user drags a file over the dropzone. It prevents the default action of the
45
55
  * event, and sets the dragText to 'Release to Upload' and the dragActive to true
@@ -70,6 +80,7 @@ export declare class UploadImageComponent {
70
80
  * @param file - any - this is the file that is selected by the user.
71
81
  */
72
82
  setUrl(file: File): void;
83
+ checkFile(file: File): boolean;
73
84
  /**
74
85
  * The function takes an event as an argument, and then sets the url of the file to the first file in the event's
75
86
  * target's files array
@@ -91,6 +102,10 @@ export declare class UploadImageComponent {
91
102
  * Convert a file into a BASE64 encoded string
92
103
  */
93
104
  protected getBase64(file: any): Promise<string>;
105
+ base64ToFile(base64: string, fileName: string, fileType: string): Promise<File>;
106
+ imageCropped($event: ImageCroppedEvent, fileEvent: any): Promise<void>;
107
+ finishedCropping(): void;
108
+ loadImageFailed(): void;
94
109
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadImageComponent, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadImageComponent, "base-upload-image", never, { "id": "id"; "name": "name"; "label": "label"; "supportText": "supportText"; "required": "required"; "defaultDragText": "defaultDragText"; "defaultReleaseText": "defaultReleaseText"; "preButtonText": "preButtonText"; "buttonText": "buttonText"; "validExtensions": "validExtensions"; "control": "control"; "url": "url"; "uploadPath": "uploadPath"; "deletePath": "deletePath"; "path": "path"; "compressOptions": "compressOptions"; "maxSize": "maxSize"; "uploadDirectly": "uploadDirectly"; "objectPath": "objectPath"; "mode": "mode"; }, { "imageUploaded": "imageUploaded"; "imageDeleted": "imageDeleted"; "fileChanged": "fileChanged"; }, never, never, false, never>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadImageComponent, "base-upload-image", never, { "id": "id"; "name": "name"; "infoText": "infoText"; "label": "label"; "supportText": "supportText"; "required": "required"; "defaultDragText": "defaultDragText"; "defaultReleaseText": "defaultReleaseText"; "preButtonText": "preButtonText"; "buttonText": "buttonText"; "validExtensions": "validExtensions"; "control": "control"; "url": "url"; "uploadPath": "uploadPath"; "deletePath": "deletePath"; "path": "path"; "compressOptions": "compressOptions"; "maxSize": "maxSize"; "uploadDirectly": "uploadDirectly"; "croppingImage": "croppingImage"; "croppingOptions": "croppingOptions"; "objectPath": "objectPath"; "mode": "mode"; }, { "imageUploaded": "imageUploaded"; "imageDeleted": "imageDeleted"; "fileChanged": "fileChanged"; }, never, never, false, never>;
96
111
  }
@@ -1,14 +1,15 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SortDirective {
4
4
  private renderer;
5
5
  private targetElem;
6
6
  baseSort: Array<any>;
7
+ baseSorted: EventEmitter<any[]>;
7
8
  constructor(renderer: Renderer2, targetElem: ElementRef, document: Document);
8
9
  /**
9
10
  * Sorts columns on click
10
11
  */
11
12
  sortColumn(): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SortDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[baseSort]", never, { "baseSort": "baseSort"; }, {}, never, never, false, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[baseSort]", never, { "baseSort": "baseSort"; }, { "baseSorted": "baseSorted"; }, never, never, false, never>;
14
15
  }
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { FormsService, UserService } from '@lenne.tech/ng-base/shared';
4
+ import { FormsService, LoginConfig, UserService } from '@lenne.tech/ng-base/shared';
5
5
  import { Subscription } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class LoginComponent implements OnInit, OnDestroy {
@@ -9,16 +9,13 @@ export declare class LoginComponent implements OnInit, OnDestroy {
9
9
  private userService;
10
10
  private router;
11
11
  private route;
12
+ config: LoginConfig;
12
13
  form: UntypedFormGroup;
13
14
  error: string;
14
15
  loading: boolean;
15
16
  subscription: Subscription;
16
- config: {
17
- redirectUrl: string;
18
- showPasswordForget: boolean;
19
- showRegister: boolean;
20
- logoUrl: string;
21
- };
17
+ loginConfig: LoginConfig;
18
+ redirectUrl: '';
22
19
  constructor(formsService: FormsService, userService: UserService, router: Router, route: ActivatedRoute);
23
20
  ngOnInit(): void;
24
21
  ngOnDestroy(): void;
@@ -32,5 +29,5 @@ export declare class LoginComponent implements OnInit, OnDestroy {
32
29
  submit(): void;
33
30
  scrollToTop(): void;
34
31
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "base-login", never, {}, {}, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "base-login", never, { "config": "config"; }, {}, never, never, false, never>;
36
33
  }
@@ -1,40 +1,16 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { AuthService, BasicUser, UserService } from '@lenne.tech/ng-base/shared';
2
+ import { AuthService, BasicUser, CMSFieldConfig, UserService } from '@lenne.tech/ng-base/shared';
3
3
  import { ActivatedRoute } from '@angular/router';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ProfileComponent implements OnInit {
6
6
  private authService;
7
7
  private route;
8
8
  private userService;
9
- config: any;
9
+ config: {
10
+ [key: string]: CMSFieldConfig;
11
+ };
10
12
  profileConfig: {
11
- avatar: {
12
- label: string;
13
- placeholder: string;
14
- };
15
- email: {
16
- label: string;
17
- placeholder: string;
18
- };
19
- firstName: {
20
- label: string;
21
- placeholder: string;
22
- };
23
- lastName: {
24
- label: string;
25
- placeholder: string;
26
- };
27
- roles: {
28
- exclude: boolean;
29
- roles: string[];
30
- };
31
- username: {
32
- label: string;
33
- placeholder: string;
34
- };
35
- password: {
36
- exclude: boolean;
37
- };
13
+ [key: string]: CMSFieldConfig;
38
14
  };
39
15
  currentUser: BasicUser;
40
16
  constructor(authService: AuthService, route: ActivatedRoute, userService: UserService);
@@ -1,16 +1,20 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { FormsService, UserService } from '@lenne.tech/ng-base/shared';
4
- import { Router } from '@angular/router';
4
+ import { ActivatedRoute, Router } from '@angular/router';
5
+ import { Subscription } from 'rxjs';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class RegisterComponent implements OnInit {
7
8
  private formsService;
8
9
  private userService;
9
10
  private router;
11
+ private route;
10
12
  form: UntypedFormGroup;
11
13
  error: string;
12
14
  loading: boolean;
13
- constructor(formsService: FormsService, userService: UserService, router: Router);
15
+ redirectUrl: string;
16
+ subscription: Subscription;
17
+ constructor(formsService: FormsService, userService: UserService, router: Router, route: ActivatedRoute);
14
18
  ngOnInit(): void;
15
19
  /**
16
20
  * Create login form
@@ -19,10 +19,10 @@ const routes = [
19
19
  ];
20
20
  export class BaseCMSRoutingModule {
21
21
  }
22
- BaseCMSRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
- BaseCMSRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
24
- BaseCMSRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSRoutingModule, decorators: [{
22
+ BaseCMSRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ BaseCMSRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
24
+ BaseCMSRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSRoutingModule, decorators: [{
26
26
  type: NgModule,
27
27
  args: [{
28
28
  imports: [RouterModule.forChild(routes)],
@@ -18,14 +18,14 @@ export function CMSConfigFactory() {
18
18
  }
19
19
  export class BaseCMSModule {
20
20
  }
21
- BaseCMSModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
- BaseCMSModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSModule, declarations: [BaseCmsComponent], imports: [
21
+ BaseCMSModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
+ BaseCMSModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSModule, declarations: [BaseCmsComponent], imports: [
23
23
  // Modules
24
24
  CommonModule,
25
25
  ReactiveFormsModule,
26
26
  BaseCMSRoutingModule,
27
27
  BaseComponentsModule] });
28
- BaseCMSModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSModule, providers: [
28
+ BaseCMSModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSModule, providers: [
29
29
  {
30
30
  provide: BASE_CMS_MODULE_CONFIG,
31
31
  useFactory: CMSConfigFactory,
@@ -36,7 +36,7 @@ BaseCMSModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
36
36
  ReactiveFormsModule,
37
37
  BaseCMSRoutingModule,
38
38
  BaseComponentsModule] });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: BaseCMSModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseCMSModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  imports: [