@ecodev/natural 55.9.0 → 56.0.2

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 (151) hide show
  1. package/esm2022/lib/classes/abstract-controller.mjs +3 -3
  2. package/esm2022/lib/classes/abstract-detail.mjs +5 -5
  3. package/esm2022/lib/classes/abstract-editable-list.mjs +4 -4
  4. package/esm2022/lib/classes/abstract-list.mjs +5 -5
  5. package/esm2022/lib/classes/abstract-navigable-list.mjs +12 -12
  6. package/esm2022/lib/classes/apollo-utils.mjs +3 -2
  7. package/esm2022/lib/classes/data-source.mjs +1 -1
  8. package/esm2022/lib/classes/query-variable-manager-utils.mjs +1 -1
  9. package/esm2022/lib/classes/query-variable-manager.mjs +3 -3
  10. package/esm2022/lib/classes/signing.mjs +1 -1
  11. package/esm2022/lib/classes/utility.mjs +1 -1
  12. package/esm2022/lib/classes/validators.mjs +2 -2
  13. package/esm2022/lib/directives/http-prefix.directive.mjs +5 -5
  14. package/esm2022/lib/modules/alert/alert.service.mjs +5 -5
  15. package/esm2022/lib/modules/alert/confirm.component.mjs +6 -6
  16. package/esm2022/lib/modules/avatar/component/avatar.component.mjs +39 -43
  17. package/esm2022/lib/modules/avatar/service/avatar.service.mjs +4 -4
  18. package/esm2022/lib/modules/avatar/service/md5.mjs +1 -1
  19. package/esm2022/lib/modules/avatar/sources/gravatar.mjs +1 -1
  20. package/esm2022/lib/modules/avatar/sources/initials.mjs +1 -1
  21. package/esm2022/lib/modules/columns-picker/columns-picker.component.mjs +10 -10
  22. package/esm2022/lib/modules/common/directives/linkable-tab.directive.mjs +6 -6
  23. package/esm2022/lib/modules/common/directives/src-density.directive.mjs +5 -5
  24. package/esm2022/lib/modules/common/pipes/capitalize.pipe.mjs +4 -4
  25. package/esm2022/lib/modules/common/pipes/ellipsis.pipe.mjs +3 -3
  26. package/esm2022/lib/modules/common/pipes/enum.pipe.mjs +4 -4
  27. package/esm2022/lib/modules/common/pipes/swiss-date.pipe.mjs +3 -3
  28. package/esm2022/lib/modules/common/pipes/time-ago.pipe.mjs +6 -6
  29. package/esm2022/lib/modules/common/services/memory-storage.mjs +4 -4
  30. package/esm2022/lib/modules/common/services/seo.service.mjs +7 -7
  31. package/esm2022/lib/modules/detail-header/detail-header.component.mjs +7 -9
  32. package/esm2022/lib/modules/dialog-trigger/dialog-trigger.component.mjs +5 -5
  33. package/esm2022/lib/modules/dropdown-components/abstract-association-select-component.directive.mjs +6 -6
  34. package/esm2022/lib/modules/dropdown-components/type-boolean/type-boolean.component.mjs +8 -9
  35. package/esm2022/lib/modules/dropdown-components/type-date/type-date.component.mjs +10 -13
  36. package/esm2022/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +7 -9
  37. package/esm2022/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.mjs +6 -8
  38. package/esm2022/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.mjs +5 -8
  39. package/esm2022/lib/modules/dropdown-components/type-number/type-number.component.mjs +8 -18
  40. package/esm2022/lib/modules/dropdown-components/type-options/type-options.component.mjs +8 -10
  41. package/esm2022/lib/modules/dropdown-components/type-select/type-select.component.mjs +11 -21
  42. package/esm2022/lib/modules/dropdown-components/type-text/type-text.component.mjs +8 -10
  43. package/esm2022/lib/modules/dropdown-components/types.mjs +1 -1
  44. package/esm2022/lib/modules/dropdown-components/utils.mjs +1 -1
  45. package/esm2022/lib/modules/file/abstract-file.mjs +6 -6
  46. package/esm2022/lib/modules/file/component/file.component.mjs +10 -10
  47. package/esm2022/lib/modules/file/file-drop.directive.mjs +4 -4
  48. package/esm2022/lib/modules/file/file-select.directive.mjs +3 -3
  49. package/esm2022/lib/modules/file/file.service.mjs +6 -6
  50. package/esm2022/lib/modules/file/utils.mjs +1 -1
  51. package/esm2022/lib/modules/fixed-button/fixed-button.component.mjs +5 -5
  52. package/esm2022/lib/modules/fixed-button-detail/fixed-button-detail.component.mjs +7 -9
  53. package/esm2022/lib/modules/hierarchic-selector/classes/flat-node.mjs +1 -1
  54. package/esm2022/lib/modules/hierarchic-selector/classes/hierarchic-configuration.mjs +1 -1
  55. package/esm2022/lib/modules/hierarchic-selector/classes/hierarchic-filters-configuration.mjs +1 -1
  56. package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.mjs +17 -17
  57. package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.mjs +5 -5
  58. package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.mjs +7 -7
  59. package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.mjs +4 -4
  60. package/esm2022/lib/modules/icon/icon.directive.mjs +6 -6
  61. package/esm2022/lib/modules/logger/error-handler.mjs +6 -6
  62. package/esm2022/lib/modules/logger/error.module.mjs +1 -1
  63. package/esm2022/lib/modules/matomo/matomo.service.mjs +6 -6
  64. package/esm2022/lib/modules/panels/abstract-panel.mjs +5 -5
  65. package/esm2022/lib/modules/panels/fallback-if-no-opened-panels.urlmatcher.mjs +1 -1
  66. package/esm2022/lib/modules/panels/panels.component.mjs +5 -5
  67. package/esm2022/lib/modules/panels/panels.service.mjs +7 -7
  68. package/esm2022/lib/modules/panels/panels.urlmatcher.mjs +2 -2
  69. package/esm2022/lib/modules/panels/types.mjs +1 -1
  70. package/esm2022/lib/modules/relations/relations.component.mjs +16 -16
  71. package/esm2022/lib/modules/search/classes/graphql-doctrine.mjs +2 -2
  72. package/esm2022/lib/modules/search/classes/graphql-doctrine.types.mjs +1 -1
  73. package/esm2022/lib/modules/search/classes/transformers.mjs +1 -1
  74. package/esm2022/lib/modules/search/classes/url.mjs +9 -9
  75. package/esm2022/lib/modules/search/classes/utils.mjs +1 -1
  76. package/esm2022/lib/modules/search/dropdown-container/dropdown-container.component.mjs +8 -10
  77. package/esm2022/lib/modules/search/dropdown-container/dropdown.service.mjs +5 -5
  78. package/esm2022/lib/modules/search/facet-selector/facet-selector.component.mjs +8 -10
  79. package/esm2022/lib/modules/search/group/group.component.mjs +5 -7
  80. package/esm2022/lib/modules/search/input/input.component.mjs +34 -37
  81. package/esm2022/lib/modules/search/search/search.component.mjs +7 -7
  82. package/esm2022/lib/modules/search/types/dropdown-component.mjs +1 -1
  83. package/esm2022/lib/modules/search/types/facet.mjs +1 -1
  84. package/esm2022/lib/modules/search/types/values.mjs +1 -1
  85. package/esm2022/lib/modules/select/abstract-select.component.mjs +6 -6
  86. package/esm2022/lib/modules/select/select/select.component.mjs +12 -10
  87. package/esm2022/lib/modules/select/select-enum/select-enum.component.mjs +7 -7
  88. package/esm2022/lib/modules/select/select-hierarchic/select-hierarchic.component.mjs +11 -14
  89. package/esm2022/lib/modules/sidenav/sidenav/sidenav.component.mjs +5 -5
  90. package/esm2022/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +6 -6
  91. package/esm2022/lib/modules/sidenav/sidenav-content/sidenav-content.component.mjs +5 -5
  92. package/esm2022/lib/modules/sidenav/sidenav-stack.service.mjs +4 -4
  93. package/esm2022/lib/modules/sidenav/sidenav.service.mjs +6 -6
  94. package/esm2022/lib/modules/stamp/stamp.component.mjs +5 -7
  95. package/esm2022/lib/modules/table-button/table-button.component.mjs +7 -9
  96. package/esm2022/lib/services/abstract-model.service.mjs +4 -4
  97. package/esm2022/lib/services/debounce.service.mjs +29 -10
  98. package/esm2022/lib/services/enum.service.mjs +6 -6
  99. package/esm2022/lib/services/link-mutation.service.mjs +6 -6
  100. package/esm2022/lib/services/persistence.service.mjs +10 -6
  101. package/esm2022/lib/services/swiss-parsing-date-adapter.service.mjs +4 -4
  102. package/esm2022/lib/types/types.mjs +1 -1
  103. package/esm2022/public-api.mjs +2 -3
  104. package/fesm2022/ecodev-natural.mjs +499 -495
  105. package/fesm2022/ecodev-natural.mjs.map +1 -1
  106. package/lib/classes/abstract-editable-list.d.ts +1 -1
  107. package/lib/classes/abstract-list.d.ts +2 -2
  108. package/lib/classes/data-source.d.ts +2 -2
  109. package/lib/classes/query-variable-manager.d.ts +7 -7
  110. package/lib/classes/utility.d.ts +1 -1
  111. package/lib/modules/alert/confirm.component.d.ts +2 -2
  112. package/lib/modules/columns-picker/columns-picker.component.d.ts +1 -1
  113. package/lib/modules/common/services/seo.service.d.ts +4 -4
  114. package/lib/modules/dialog-trigger/dialog-trigger.component.d.ts +2 -2
  115. package/lib/modules/dropdown-components/type-boolean/type-boolean.component.d.ts +2 -2
  116. package/lib/modules/dropdown-components/type-date/type-date.component.d.ts +2 -2
  117. package/lib/modules/dropdown-components/type-date-range/type-date-range.component.d.ts +2 -2
  118. package/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.d.ts +6 -6
  119. package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts +2 -2
  120. package/lib/modules/dropdown-components/type-number/type-number.component.d.ts +2 -2
  121. package/lib/modules/dropdown-components/type-options/type-options.component.d.ts +4 -4
  122. package/lib/modules/dropdown-components/type-select/type-select.component.d.ts +2 -2
  123. package/lib/modules/dropdown-components/types.d.ts +4 -4
  124. package/lib/modules/file/abstract-file.d.ts +4 -4
  125. package/lib/modules/file/component/file.component.d.ts +1 -1
  126. package/lib/modules/hierarchic-selector/classes/hierarchic-configuration.d.ts +4 -4
  127. package/lib/modules/hierarchic-selector/classes/hierarchic-filters-configuration.d.ts +3 -3
  128. package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.d.ts +4 -4
  129. package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.d.ts +1 -3
  130. package/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.d.ts +4 -4
  131. package/lib/modules/icon/icon.directive.d.ts +3 -5
  132. package/lib/modules/logger/error-handler.d.ts +4 -4
  133. package/lib/modules/panels/types.d.ts +14 -16
  134. package/lib/modules/relations/relations.component.d.ts +1 -1
  135. package/lib/modules/search/classes/graphql-doctrine.types.d.ts +37 -41
  136. package/lib/modules/search/dropdown-container/dropdown-container.component.d.ts +2 -2
  137. package/lib/modules/search/dropdown-container/dropdown.service.d.ts +2 -2
  138. package/lib/modules/search/facet-selector/facet-selector.component.d.ts +2 -2
  139. package/lib/modules/search/input/input.component.d.ts +1 -1
  140. package/lib/modules/search/types/dropdown-component.d.ts +2 -2
  141. package/lib/modules/search/types/facet.d.ts +7 -7
  142. package/lib/modules/search/types/values.d.ts +6 -6
  143. package/lib/modules/select/select/select.component.d.ts +1 -1
  144. package/lib/services/abstract-model.service.d.ts +7 -13
  145. package/lib/services/debounce.service.d.ts +10 -2
  146. package/lib/services/enum.service.d.ts +2 -2
  147. package/lib/services/link-mutation.service.d.ts +2 -2
  148. package/lib/types/types.d.ts +1 -3
  149. package/package.json +10 -10
  150. package/public-api.d.ts +0 -1
  151. package/src/lib/_natural.theme.scss +5 -2
@@ -31,7 +31,7 @@ export declare class NaturalAbstractEditableList<TService extends NaturalAbstrac
31
31
  readonly form: UntypedFormGroup;
32
32
  readonly formArray: UntypedFormArray;
33
33
  readonly variablesManager: NaturalQueryVariablesManager<ExtractVall<TService>>;
34
- readonly dataSource: MatTableDataSource<AbstractControl<any, any>, import("@angular/material/table").MatTableDataSourcePaginator>;
34
+ readonly dataSource: MatTableDataSource<AbstractControl<any, any>, import("@angular/material/paginator").MatPaginator>;
35
35
  constructor(service: TService);
36
36
  /**
37
37
  * Set the list of items (overwriting what may have existed)
@@ -53,7 +53,7 @@ export declare class NaturalAbstractList<TService extends NaturalAbstractModelSe
53
53
  /**
54
54
  * Source of the list
55
55
  */
56
- dataSource?: NaturalDataSource<Tall>;
56
+ dataSource: NaturalDataSource<Tall> | undefined;
57
57
  /**
58
58
  * Selection for bulk actions
59
59
  */
@@ -89,7 +89,7 @@ export declare class NaturalAbstractList<TService extends NaturalAbstractModelSe
89
89
  /**
90
90
  * Initial sorting
91
91
  */
92
- protected defaultSorting?: Array<Sorting>;
92
+ protected defaultSorting?: Sorting[];
93
93
  protected readonly router: Router;
94
94
  protected readonly route: ActivatedRoute;
95
95
  protected readonly alertService: NaturalAlertService;
@@ -1,13 +1,13 @@
1
1
  import { DataSource } from '@angular/cdk/collections';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Literal } from '../types/types';
4
- export interface PaginatedData<T> {
4
+ export type PaginatedData<T> = {
5
5
  readonly items: readonly T[];
6
6
  readonly offset?: number | null;
7
7
  readonly pageSize: number;
8
8
  readonly pageIndex: number;
9
9
  readonly length: number;
10
- }
10
+ };
11
11
  /**
12
12
  * A NaturalDataSource will connect immediately, in order to know as soon as possible if
13
13
  * we need to show a template at all (as seen in my-ichtus)
@@ -1,20 +1,20 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
- export interface QueryVariables {
2
+ export type QueryVariables = {
3
3
  filter?: any | null;
4
4
  pagination?: PaginationInput | null;
5
- sorting?: Array<Sorting> | null;
6
- }
7
- export interface PaginationInput {
5
+ sorting?: Sorting[] | null;
6
+ };
7
+ export type PaginationInput = {
8
8
  offset?: number | null;
9
9
  pageIndex?: number | null;
10
10
  pageSize?: number | null;
11
- }
12
- export interface Sorting {
11
+ };
12
+ export type Sorting = {
13
13
  field: any;
14
14
  order?: SortingOrder | null;
15
15
  nullAsHighest?: boolean | null;
16
16
  emptyStringAsHighest?: boolean | null;
17
- }
17
+ };
18
18
  export declare enum SortingOrder {
19
19
  ASC = "ASC",
20
20
  DESC = "DESC"
@@ -71,7 +71,7 @@ export declare function validatePagination(data: unknown): PaginationInput | nul
71
71
  /**
72
72
  * Return a valid Sortings from whatever is available from data. Invalid properties/types will be dropped.
73
73
  */
74
- export declare function validateSorting(data: unknown): Array<Sorting> | null;
74
+ export declare function validateSorting(data: unknown): Sorting[] | null;
75
75
  /**
76
76
  * Return valid columns from whatever is available from data. Invalid properties/types will be dropped.
77
77
  */
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- export interface NaturalConfirmData {
2
+ export type NaturalConfirmData = {
3
3
  title: string;
4
4
  message: string;
5
5
  confirmText: string;
6
6
  cancelText: string;
7
- }
7
+ };
8
8
  export declare class NaturalConfirmComponent {
9
9
  data: NaturalConfirmData;
10
10
  constructor(data: NaturalConfirmData);
@@ -34,8 +34,8 @@ export declare class NaturalColumnsPickerComponent implements OnChanges, OnDestr
34
34
  constructor(breakpointObserver: BreakpointObserver);
35
35
  private initColumns;
36
36
  updateColumns(): void;
37
- ngOnDestroy(): void;
38
37
  ngOnChanges(changes: SimpleChanges): void;
38
+ ngOnDestroy(): void;
39
39
  defaultTrue(value: boolean | undefined): boolean;
40
40
  color(button: Button): ThemePalette | null;
41
41
  useCheckbox(button: Button): boolean;
@@ -51,13 +51,13 @@ export type NaturalSeoCallback = (routeData: Data) => NaturalSeoBasic;
51
51
  export type NaturalSeoResolveData = {
52
52
  seo: NaturalSeoBasic;
53
53
  };
54
- interface Robots {
54
+ type Robots = {
55
55
  /**
56
56
  * If given will be used as robots meta tag, otherwise fallback on default value
57
57
  */
58
58
  robots?: string;
59
- }
60
- interface NaturalSeoConfigPlain {
59
+ };
60
+ type NaturalSeoConfigPlain = {
61
61
  /**
62
62
  * The name of the application that will always appear in the page title
63
63
  */
@@ -83,7 +83,7 @@ interface NaturalSeoConfigPlain {
83
83
  * <link rel="alternate" hreflang="en" href="https://www.example.com/en/page">
84
84
  */
85
85
  readonly languages?: Readonly<string[]>;
86
- }
86
+ };
87
87
  export type NaturalSeoConfig = NaturalSeoConfigPlain | Observable<NaturalSeoConfigPlain>;
88
88
  export declare const NATURAL_SEO_CONFIG: InjectionToken<NaturalSeoConfig>;
89
89
  export declare function stripTags(str: string): string;
@@ -3,11 +3,11 @@ import { OnDestroy } from '@angular/core';
3
3
  import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
4
4
  import { ActivatedRoute, Router, RouterLink } from '@angular/router';
5
5
  import * as i0 from "@angular/core";
6
- export interface NaturalDialogTriggerRoutingData<T, D> {
6
+ export type NaturalDialogTriggerRoutingData<T, D> = {
7
7
  component: ComponentType<T>;
8
8
  afterClosedRoute?: RouterLink['routerLink'];
9
9
  dialogConfig: MatDialogConfig<D>;
10
- }
10
+ };
11
11
  export type NaturalDialogTriggerProvidedData<D> = {
12
12
  data?: Readonly<D> | null;
13
13
  activatedRoute: ActivatedRoute;
@@ -3,10 +3,10 @@ import { DropdownComponent } from '../../search/types/dropdown-component';
3
3
  import { TypeOptionsComponent } from '../type-options/type-options.component';
4
4
  import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
5
5
  import * as i0 from "@angular/core";
6
- export interface TypeBooleanConfiguration {
6
+ export type TypeBooleanConfiguration = {
7
7
  displayWhenActive: string;
8
8
  displayWhenInactive: string;
9
- }
9
+ };
10
10
  export declare class TypeBooleanComponent extends TypeOptionsComponent implements DropdownComponent {
11
11
  constructor(data: NaturalDropdownData<TypeBooleanConfiguration>, dropdownRef: NaturalDropdownRef);
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TypeBooleanComponent, never>;
@@ -5,10 +5,10 @@ import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine
5
5
  import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
6
6
  import { DropdownComponent } from '../../search/types/dropdown-component';
7
7
  import * as i0 from "@angular/core";
8
- export interface TypeDateConfiguration<D = Date> {
8
+ export type TypeDateConfiguration<D = Date> = {
9
9
  min?: D | null;
10
10
  max?: D | null;
11
- }
11
+ };
12
12
  export declare class TypeDateComponent<D = any> implements DropdownComponent {
13
13
  private dateAdapter;
14
14
  private dateFormats;
@@ -5,10 +5,10 @@ import { DropdownComponent } from '../../search/types/dropdown-component';
5
5
  import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
6
6
  import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
7
7
  import * as i0 from "@angular/core";
8
- export interface TypeDateRangeConfiguration<D = any> {
8
+ export type TypeDateRangeConfiguration<D = any> = {
9
9
  min?: D | null;
10
10
  max?: D | null;
11
- }
11
+ };
12
12
  declare class InvalidWithValueStateMatcher implements ErrorStateMatcher {
13
13
  isErrorState(control: FormControl<unknown> | null, form: FormGroupDirective | NgForm | null): boolean;
14
14
  }
@@ -5,20 +5,20 @@ import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine
5
5
  import { AbstractAssociationSelectComponent } from '../abstract-association-select-component.directive';
6
6
  import { Observable } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
- export interface HierarchicFilterConfiguration<T = Literal> {
8
+ export type HierarchicFilterConfiguration<T = Literal> = {
9
9
  service: NaturalHierarchicConfiguration['service'];
10
10
  filter: T;
11
- }
12
- export type HierarchicFiltersConfiguration<T = Literal> = Array<HierarchicFilterConfiguration<T>>;
13
- export interface TypeHierarchicSelectorConfiguration {
11
+ };
12
+ export type HierarchicFiltersConfiguration<T = Literal> = HierarchicFilterConfiguration<T>[];
13
+ export type TypeHierarchicSelectorConfiguration = {
14
14
  key: string;
15
15
  service: UntypedModelService;
16
16
  config: NaturalHierarchicConfiguration[];
17
17
  filters?: HierarchicFiltersConfiguration;
18
- }
18
+ };
19
19
  export declare class TypeHierarchicSelectorComponent extends AbstractAssociationSelectComponent<TypeHierarchicSelectorConfiguration> {
20
20
  getCondition(): FilterGroupConditionField;
21
- protected reloadValue(condition: FilterGroupConditionField): Observable<any | null>;
21
+ protected reloadValue(condition: FilterGroupConditionField): Observable<unknown | null>;
22
22
  protected renderValueWithoutOperator(): string;
23
23
  selectionChange(selection: OrganizedModelSelection): void;
24
24
  /**
@@ -3,11 +3,11 @@ import { ExtractTone, ExtractVall, UntypedModelService } from '../../../types/ty
3
3
  import { AbstractAssociationSelectComponent } from '../abstract-association-select-component.directive';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
- export interface TypeSelectNaturalConfiguration<TService extends UntypedModelService> {
6
+ export type TypeSelectNaturalConfiguration<TService extends UntypedModelService> = {
7
7
  service: TService;
8
8
  placeholder: string;
9
9
  filter?: ExtractVall<TService>['filter'];
10
- }
10
+ };
11
11
  export declare class TypeNaturalSelectComponent<TService extends UntypedModelService> extends AbstractAssociationSelectComponent<TypeSelectNaturalConfiguration<TService>> {
12
12
  getCondition(): FilterGroupConditionField;
13
13
  protected reloadValue(condition: FilterGroupConditionField): Observable<ExtractTone<TService>>;
@@ -6,11 +6,11 @@ import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.se
6
6
  import { DropdownComponent } from '../../search/types/dropdown-component';
7
7
  import { InvalidWithValueStateMatcher } from '../type-text/type-text.component';
8
8
  import * as i0 from "@angular/core";
9
- export interface TypeNumberConfiguration {
9
+ export type TypeNumberConfiguration = {
10
10
  min?: number | null;
11
11
  max?: number | null;
12
12
  step?: number | null;
13
- }
13
+ };
14
14
  export declare class TypeNumberComponent implements DropdownComponent {
15
15
  protected dropdownRef: NaturalDropdownRef;
16
16
  readonly renderedValue: BehaviorSubject<string>;
@@ -6,13 +6,13 @@ import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref
6
6
  import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
7
7
  import { DropdownComponent } from '../../search/types/dropdown-component';
8
8
  import * as i0 from "@angular/core";
9
- export interface TypeOption {
9
+ export type TypeOption = {
10
10
  display: string;
11
11
  condition: Literal;
12
- }
13
- export interface TypeOptionsConfiguration {
12
+ };
13
+ export type TypeOptionsConfiguration = {
14
14
  options: TypeOption[];
15
- }
15
+ };
16
16
  export declare class TypeOptionsComponent implements DropdownComponent {
17
17
  data: NaturalDropdownData<TypeOptionsConfiguration>;
18
18
  protected dropdownRef: NaturalDropdownRef;
@@ -15,14 +15,14 @@ export type TypeSelectItem = Scalar | {
15
15
  value: Scalar;
16
16
  name: Scalar;
17
17
  };
18
- export interface TypeSelectConfiguration {
18
+ export type TypeSelectConfiguration = {
19
19
  items: TypeSelectItem[] | Observable<TypeSelectItem[]>;
20
20
  multiple?: boolean;
21
21
  /**
22
22
  * If true (default) a selectbox allows to choose an operator. Otherwise, the selectbox is hidden and the operator will always be `is`.
23
23
  */
24
24
  operators?: boolean;
25
- }
25
+ };
26
26
  export declare class TypeSelectComponent extends NaturalAbstractController implements DropdownComponent, AfterViewInit, OnDestroy {
27
27
  readonly renderedValue: BehaviorSubject<string>;
28
28
  list: MatSelectionList;
@@ -1,13 +1,13 @@
1
1
  import { FilterGroupConditionField } from '../search/classes/graphql-doctrine.types';
2
2
  export type PossibleComparableOpertorKeys = keyof Pick<FilterGroupConditionField, 'less' | 'lessOrEqual' | 'equal' | 'greaterOrEqual' | 'greater'>;
3
- export interface PossibleComparableOperator {
3
+ export type PossibleComparableOperator = {
4
4
  key: PossibleComparableOpertorKeys;
5
5
  label: string;
6
- }
6
+ };
7
7
  export declare const possibleComparableOperators: Readonly<PossibleComparableOperator[]>;
8
8
  export type PossibleDiscreteOperatorKeys = 'is' | 'isnot' | 'any' | 'none';
9
- export interface PossibleDiscreteOperator {
9
+ export type PossibleDiscreteOperator = {
10
10
  key: PossibleDiscreteOperatorKeys;
11
11
  label: string;
12
- }
12
+ };
13
13
  export declare const possibleDiscreteOperators: Readonly<PossibleDiscreteOperator[]>;
@@ -2,11 +2,11 @@ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges }
2
2
  import { NaturalFileService } from './file.service';
3
3
  import { NaturalAbstractController } from '../../classes/abstract-controller';
4
4
  import * as i0 from "@angular/core";
5
- export interface InvalidFile {
5
+ export type InvalidFile = {
6
6
  file: File;
7
7
  error: string;
8
- }
9
- export interface FileSelection {
8
+ };
9
+ export type FileSelection = {
10
10
  /**
11
11
  * The list of files that have been selected.
12
12
  */
@@ -15,7 +15,7 @@ export interface FileSelection {
15
15
  * The list of files that have been selected but are invalid according to validators.
16
16
  */
17
17
  invalid: InvalidFile[];
18
- }
18
+ };
19
19
  /**
20
20
  * A master base set of logic intended to support file select/drag/drop operations
21
21
  *
@@ -50,8 +50,8 @@ export declare class NaturalFileComponent implements OnInit, OnChanges {
50
50
  imagePreview: SafeStyle | null;
51
51
  filePreview: string | null;
52
52
  constructor(naturalFileService: NaturalFileService, alertService: NaturalAlertService, sanitizer: DomSanitizer, document: Document);
53
- ngOnInit(): void;
54
53
  ngOnChanges(changes: SimpleChanges): void;
54
+ ngOnInit(): void;
55
55
  upload(file: File): void;
56
56
  getDownloadLink(): null | string;
57
57
  private updateImage;
@@ -1,7 +1,7 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { QueryVariables } from '../../../classes/query-variable-manager';
3
3
  import { UntypedModelService } from '../../../types/types';
4
- export interface NaturalHierarchicConfiguration<T extends UntypedModelService = UntypedModelService> {
4
+ export type NaturalHierarchicConfiguration<T extends UntypedModelService = UntypedModelService> = {
5
5
  /**
6
6
  * An AbstractModelService to be used to fetch items
7
7
  */
@@ -54,7 +54,7 @@ export interface NaturalHierarchicConfiguration<T extends UntypedModelService =
54
54
  * If missing, fallback on global `NaturalHierarchicSelectorComponent.displayWith`
55
55
  */
56
56
  displayWith?: (item: any) => string;
57
- }
58
- export interface NaturalHierarchicServiceConfiguration<T extends UntypedModelService = UntypedModelService> extends NaturalHierarchicConfiguration<T> {
57
+ };
58
+ export type NaturalHierarchicServiceConfiguration<T extends UntypedModelService = UntypedModelService> = {
59
59
  injectedService: T;
60
- }
60
+ } & NaturalHierarchicConfiguration<T>;
@@ -1,7 +1,7 @@
1
1
  import { Literal } from '../../../types/types';
2
2
  import { NaturalHierarchicConfiguration } from './hierarchic-configuration';
3
- export interface HierarchicFilterConfiguration<T = Literal> {
3
+ export type HierarchicFilterConfiguration<T = Literal> = {
4
4
  service: NaturalHierarchicConfiguration['service'];
5
5
  filter: T;
6
- }
7
- export type HierarchicFiltersConfiguration<T = Literal> = Array<HierarchicFilterConfiguration<T>>;
6
+ };
7
+ export type HierarchicFiltersConfiguration<T = Literal> = HierarchicFilterConfiguration<T>[];
@@ -72,14 +72,14 @@ export declare class NaturalHierarchicSelectorComponent extends NaturalAbstractC
72
72
  */
73
73
  private flatNodeMap;
74
74
  constructor(hierarchicSelectorService: NaturalHierarchicSelectorService);
75
- /**
76
- * Angular OnInit implementation
77
- */
78
- ngOnInit(): void;
79
75
  /**
80
76
  * Angular OnChange implementation
81
77
  */
82
78
  ngOnChanges(changes: SimpleChanges): void;
79
+ /**
80
+ * Angular OnInit implementation
81
+ */
82
+ ngOnInit(): void;
83
83
  /**
84
84
  * Toggle selection of a FlatNode, considering if multiple selection is activated or not
85
85
  */
@@ -6,9 +6,7 @@ import { NaturalHierarchicConfiguration } from '../classes/hierarchic-configurat
6
6
  import { HierarchicFiltersConfiguration } from '../classes/hierarchic-filters-configuration';
7
7
  import { HierarchicModelNode } from '../classes/model-node';
8
8
  import * as i0 from "@angular/core";
9
- export interface OrganizedModelSelection {
10
- [key: string]: any[];
11
- }
9
+ export type OrganizedModelSelection = Record<string, any[]>;
12
10
  export declare class NaturalHierarchicSelectorService {
13
11
  private readonly injector;
14
12
  /**
@@ -5,11 +5,11 @@ import { NaturalHierarchicConfiguration } from '../classes/hierarchic-configurat
5
5
  import { HierarchicFiltersConfiguration } from '../classes/hierarchic-filters-configuration';
6
6
  import { OrganizedModelSelection } from '../hierarchic-selector/hierarchic-selector.service';
7
7
  import * as i0 from "@angular/core";
8
- export interface HierarchicDialogResult {
8
+ export type HierarchicDialogResult = {
9
9
  hierarchicSelection?: OrganizedModelSelection;
10
10
  searchSelections?: NaturalSearchSelections | null;
11
- }
12
- export interface HierarchicDialogConfig {
11
+ };
12
+ export type HierarchicDialogConfig = {
13
13
  /**
14
14
  * Configuration to setup rules of hierarchy
15
15
  */
@@ -38,7 +38,7 @@ export interface HierarchicDialogConfig {
38
38
  * Selections of natural search to initialize on HierarchicComponent initialisation
39
39
  */
40
40
  searchSelections?: NaturalSearchSelections | null;
41
- }
41
+ };
42
42
  export declare class NaturalHierarchicSelectorDialogComponent {
43
43
  private dialogRef;
44
44
  /**
@@ -2,14 +2,12 @@ import { InjectionToken } from '@angular/core';
2
2
  import { MatIcon, MatIconRegistry } from '@angular/material/icon';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
4
  import * as i0 from "@angular/core";
5
- export interface NaturalIconConfig {
5
+ export type NaturalIconConfig = {
6
6
  svg?: string;
7
7
  font?: string;
8
8
  class?: 'negative' | 'neutral' | 'positive';
9
- }
10
- export interface NaturalIconsConfig {
11
- [key: string]: NaturalIconConfig;
12
- }
9
+ };
10
+ export type NaturalIconsConfig = Record<string, NaturalIconConfig>;
13
11
  export declare const NATURAL_ICONS_CONFIG: InjectionToken<NaturalIconsConfig>;
14
12
  /**
15
13
  * Allows to use `<mat-icon>` without knowing where an icon comes from (SVG or font) or with aliases for Material font.
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { ErrorHandler, InjectionToken } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
- export interface NaturalLoggerType {
5
+ export type NaturalLoggerType = {
6
6
  message: string;
7
7
  stacktrace?: string;
8
8
  href?: string;
@@ -15,8 +15,8 @@ export interface NaturalLoggerType {
15
15
  userId?: string;
16
16
  user?: string;
17
17
  [key: string]: any;
18
- }
19
- export interface NaturalLoggerExtra {
18
+ };
19
+ export type NaturalLoggerExtra = {
20
20
  /**
21
21
  * Return an observable of extra data that will be logged. Those data will be merged into
22
22
  * the original data, and so it can override things.
@@ -24,7 +24,7 @@ export interface NaturalLoggerExtra {
24
24
  * Only the first emitted value will be used.
25
25
  */
26
26
  getExtras(error: unknown): Observable<Partial<NaturalLoggerType>>;
27
- }
27
+ };
28
28
  export declare const NaturalLoggerConfigUrl: InjectionToken<string>;
29
29
  export declare const NaturalLoggerConfigExtra: InjectionToken<NaturalLoggerExtra>;
30
30
  /**
@@ -8,56 +8,54 @@ import { LinkableObject } from '../../services/link-mutation.service';
8
8
  /**
9
9
  * Kind of snapshot of the instance of a panel activated route
10
10
  */
11
- export interface NaturalPanelsRouteConfig {
11
+ export type NaturalPanelsRouteConfig = {
12
12
  segments: UrlSegment[];
13
13
  path: string;
14
- }
14
+ };
15
15
  /**
16
16
  * Config required to manage url and instantiate component correctly
17
17
  */
18
- export interface NaturalPanelConfig {
18
+ export type NaturalPanelConfig = {
19
19
  component: ComponentType<NaturalAbstractPanel>;
20
20
  injector: Injector | null;
21
21
  resolve: NaturalPanelResolves;
22
22
  params: Literal;
23
23
  rule: NaturalPanelsRouterRule;
24
24
  route: NaturalPanelsRouteConfig;
25
- }
25
+ };
26
26
  /**
27
27
  * Data provided to instantiated components in context of a panel/dialog
28
28
  */
29
- export interface NaturalPanelData {
29
+ export type NaturalPanelData = {
30
30
  config: NaturalPanelConfig;
31
31
  data: Literal;
32
32
  /**
33
33
  * Related objects that should be linked to the object shown in the panel after its creation
34
34
  */
35
35
  linkableObjects: LinkableObject[];
36
- }
36
+ };
37
37
  /**
38
38
  * Similar to Angular functional resolver interface, but simpler for our panels' needs
39
39
  */
40
40
  type NaturalPanelResolve<T> = (route: NaturalPanelConfig) => Observable<T>;
41
- export type NaturalPanelResolves = {
42
- [key: string]: NaturalPanelResolve<unknown>;
43
- };
41
+ export type NaturalPanelResolves = Record<string, NaturalPanelResolve<unknown>>;
44
42
  /**
45
43
  * Configuration for a route
46
44
  */
47
- export interface NaturalPanelsRouterRule {
45
+ export type NaturalPanelsRouterRule = {
48
46
  path: string;
49
47
  component: ComponentType<NaturalAbstractPanel>;
50
48
  resolve?: NaturalPanelResolves;
51
- }
52
- export interface NaturalPanelsBeforeOpenPanel {
49
+ };
50
+ export type NaturalPanelsBeforeOpenPanel = {
53
51
  itemData: NaturalPanelData;
54
52
  panelConfig: NaturalPanelConfig;
55
53
  fullPanelsConfig: NaturalPanelConfig[];
56
54
  resolvedResult: any;
57
- }
58
- export interface NaturalPanelsHooksConfig {
55
+ };
56
+ export type NaturalPanelsHooksConfig = {
59
57
  beforeOpenPanel?: (injector: Injector, naturalPanelsBeforeOpenPanel: NaturalPanelsBeforeOpenPanel) => NaturalPanelData;
60
- }
61
- export type NaturalPanelsRoutesConfig = Array<NaturalPanelsRouterRule>;
58
+ };
59
+ export type NaturalPanelsRoutesConfig = NaturalPanelsRouterRule[];
62
60
  export declare const PanelsHooksConfig: InjectionToken<NaturalPanelsHooksConfig>;
63
61
  export {};
@@ -91,8 +91,8 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
91
91
  * the objectives that have indeed a relation to the particular action.
92
92
  */
93
93
  set filter(filter: ExtractVall<TService>['filter']);
94
- ngOnInit(): void;
95
94
  ngOnChanges(): void;
95
+ ngOnInit(): void;
96
96
  /**
97
97
  * Unlink action
98
98
  * Refetch result to display it in table