@ecodev/natural 42.0.0 → 42.3.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.
Files changed (110) hide show
  1. package/esm2020/lib/classes/abstract-controller.mjs +3 -3
  2. package/esm2020/lib/classes/abstract-detail.mjs +3 -3
  3. package/esm2020/lib/classes/abstract-editable-list.mjs +3 -3
  4. package/esm2020/lib/classes/abstract-list.mjs +3 -3
  5. package/esm2020/lib/classes/abstract-navigable-list.mjs +3 -3
  6. package/esm2020/lib/classes/query-variable-manager.mjs +20 -9
  7. package/esm2020/lib/directives/http-prefix.directive.mjs +3 -3
  8. package/esm2020/lib/modules/alert/alert.module.mjs +4 -4
  9. package/esm2020/lib/modules/alert/alert.service.mjs +3 -3
  10. package/esm2020/lib/modules/alert/confirm.component.mjs +3 -3
  11. package/esm2020/lib/modules/avatar/avatar.module.mjs +4 -4
  12. package/esm2020/lib/modules/avatar/component/avatar.component.mjs +21 -18
  13. package/esm2020/lib/modules/avatar/service/avatar.service.mjs +3 -3
  14. package/esm2020/lib/modules/columns-picker/columns-picker-column.directive.mjs +3 -3
  15. package/esm2020/lib/modules/columns-picker/columns-picker.component.mjs +3 -3
  16. package/esm2020/lib/modules/columns-picker/columns-picker.module.mjs +4 -4
  17. package/esm2020/lib/modules/common/common-module.mjs +5 -9
  18. package/esm2020/lib/modules/common/directives/linkable-tab.directive.mjs +3 -3
  19. package/esm2020/lib/modules/common/directives/src-density.directive.mjs +3 -3
  20. package/esm2020/lib/modules/common/pipes/capitalize.pipe.mjs +3 -3
  21. package/esm2020/lib/modules/common/pipes/ellipsis.pipe.mjs +3 -3
  22. package/esm2020/lib/modules/common/pipes/enum.pipe.mjs +3 -3
  23. package/esm2020/lib/modules/common/pipes/swiss-date.pipe.mjs +3 -3
  24. package/esm2020/lib/modules/common/public-api.mjs +1 -2
  25. package/esm2020/lib/modules/common/services/memory-storage.mjs +3 -3
  26. package/esm2020/lib/modules/common/services/seo.service.mjs +3 -3
  27. package/esm2020/lib/modules/detail-header/detail-header.component.mjs +3 -3
  28. package/esm2020/lib/modules/detail-header/detail-header.module.mjs +4 -4
  29. package/esm2020/lib/modules/dialog-trigger/dialog-trigger.component.mjs +3 -3
  30. package/esm2020/lib/modules/dialog-trigger/dialog-trigger.module.mjs +4 -4
  31. package/esm2020/lib/modules/dropdown-components/abstract-association-select-component.directive.mjs +3 -3
  32. package/esm2020/lib/modules/dropdown-components/natural-dropdown-components.module.mjs +4 -4
  33. package/esm2020/lib/modules/dropdown-components/type-date/type-date.component.mjs +3 -3
  34. package/esm2020/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +3 -3
  35. package/esm2020/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.mjs +3 -3
  36. package/esm2020/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.mjs +3 -3
  37. package/esm2020/lib/modules/dropdown-components/type-number/type-number.component.mjs +3 -3
  38. package/esm2020/lib/modules/dropdown-components/type-select/type-select.component.mjs +3 -3
  39. package/esm2020/lib/modules/dropdown-components/type-text/type-text.component.mjs +3 -3
  40. package/esm2020/lib/modules/file/abstract-file.mjs +3 -3
  41. package/esm2020/lib/modules/file/component/file.component.mjs +3 -3
  42. package/esm2020/lib/modules/file/file-drop.directive.mjs +3 -3
  43. package/esm2020/lib/modules/file/file-select.directive.mjs +3 -3
  44. package/esm2020/lib/modules/file/file.module.mjs +4 -4
  45. package/esm2020/lib/modules/file/file.service.mjs +3 -3
  46. package/esm2020/lib/modules/fixed-button/fixed-button.component.mjs +3 -3
  47. package/esm2020/lib/modules/fixed-button/fixed-button.module.mjs +4 -4
  48. package/esm2020/lib/modules/fixed-button-detail/fixed-button-detail.component.mjs +3 -3
  49. package/esm2020/lib/modules/fixed-button-detail/fixed-button-detail.module.mjs +4 -4
  50. package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.mjs +3 -3
  51. package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.mjs +3 -3
  52. package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.mjs +3 -3
  53. package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.mjs +3 -3
  54. package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector.module.mjs +4 -4
  55. package/esm2020/lib/modules/icon/icon.component.mjs +3 -3
  56. package/esm2020/lib/modules/icon/icon.module.mjs +4 -4
  57. package/esm2020/lib/modules/logger/error-handler.mjs +59 -0
  58. package/esm2020/lib/modules/logger/error.module.mjs +36 -0
  59. package/esm2020/lib/modules/logger/public-api.mjs +5 -0
  60. package/esm2020/lib/modules/matomo/matomo-module.module.mjs +4 -4
  61. package/esm2020/lib/modules/matomo/matomo.service.mjs +3 -3
  62. package/esm2020/lib/modules/panels/abstract-panel.mjs +3 -3
  63. package/esm2020/lib/modules/panels/panels.component.mjs +3 -3
  64. package/esm2020/lib/modules/panels/panels.module.mjs +4 -4
  65. package/esm2020/lib/modules/panels/panels.service.mjs +3 -3
  66. package/esm2020/lib/modules/relations/relations.component.mjs +3 -3
  67. package/esm2020/lib/modules/relations/relations.module.mjs +4 -4
  68. package/esm2020/lib/modules/search/dropdown-container/dropdown-container.component.mjs +3 -3
  69. package/esm2020/lib/modules/search/dropdown-container/dropdown.service.mjs +3 -3
  70. package/esm2020/lib/modules/search/facet-selector/facet-selector.component.mjs +3 -3
  71. package/esm2020/lib/modules/search/group/group.component.mjs +3 -3
  72. package/esm2020/lib/modules/search/input/input.component.mjs +5 -5
  73. package/esm2020/lib/modules/search/search/search.component.mjs +3 -3
  74. package/esm2020/lib/modules/search/search.module.mjs +4 -4
  75. package/esm2020/lib/modules/select/abstract-select.component.mjs +3 -3
  76. package/esm2020/lib/modules/select/select/select.component.mjs +8 -9
  77. package/esm2020/lib/modules/select/select-enum/select-enum.component.mjs +13 -8
  78. package/esm2020/lib/modules/select/select-hierarchic/select-hierarchic.component.mjs +8 -9
  79. package/esm2020/lib/modules/select/select.module.mjs +4 -4
  80. package/esm2020/lib/modules/sidenav/sidenav/sidenav.component.mjs +3 -3
  81. package/esm2020/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +3 -3
  82. package/esm2020/lib/modules/sidenav/sidenav-content/sidenav-content.component.mjs +3 -3
  83. package/esm2020/lib/modules/sidenav/sidenav-stack.service.mjs +3 -3
  84. package/esm2020/lib/modules/sidenav/sidenav.module.mjs +4 -4
  85. package/esm2020/lib/modules/sidenav/sidenav.service.mjs +3 -3
  86. package/esm2020/lib/modules/stamp/stamp-module.module.mjs +4 -4
  87. package/esm2020/lib/modules/stamp/stamp.component.mjs +3 -3
  88. package/esm2020/lib/modules/table-button/table-button.component.mjs +3 -3
  89. package/esm2020/lib/modules/table-button/table-button.module.mjs +4 -4
  90. package/esm2020/lib/services/enum.service.mjs +3 -3
  91. package/esm2020/lib/services/link-mutation.service.mjs +3 -3
  92. package/esm2020/lib/services/persistence.service.mjs +3 -3
  93. package/esm2020/lib/services/swiss-parsing-date-adapter.service.mjs +3 -3
  94. package/esm2020/public-api.mjs +2 -1
  95. package/fesm2015/ecodev-natural.mjs +430 -350
  96. package/fesm2015/ecodev-natural.mjs.map +1 -1
  97. package/fesm2020/ecodev-natural.mjs +427 -347
  98. package/fesm2020/ecodev-natural.mjs.map +1 -1
  99. package/lib/classes/query-variable-manager.d.ts +19 -8
  100. package/lib/modules/avatar/component/avatar.component.d.ts +1 -0
  101. package/lib/modules/common/common-module.d.ts +8 -9
  102. package/lib/modules/common/public-api.d.ts +0 -1
  103. package/lib/modules/logger/error-handler.d.ts +19 -0
  104. package/lib/modules/logger/error.module.d.ts +10 -0
  105. package/lib/modules/logger/public-api.d.ts +1 -0
  106. package/lib/modules/select/select-enum/select-enum.component.d.ts +7 -3
  107. package/package.json +1 -1
  108. package/public-api.d.ts +1 -0
  109. package/esm2020/lib/modules/common/directives/reactive-asterisk.directive.mjs +0 -33
  110. package/lib/modules/common/directives/reactive-asterisk.directive.d.ts +0 -13
@@ -22,22 +22,33 @@ export declare enum SortingOrder {
22
22
  * Filter manager stores a set of channels that contain a variable object and exposes an observable "variables" that updates with the result
23
23
  * of all channels merged together.
24
24
  *
25
- * A channel is supposed to be used by an aspect of the GUI (pagination, sorting, search, others ?).
26
- * Each
25
+ * A channel is supposed to be used by a given aspect of the GUI (pagination, sorting, search, others ?).
27
26
  *
27
+ * ```ts
28
28
  * const fm = new QueryVariablesManager();
29
29
  * fm.merge('componentA-variables', {a : [1, 2, 3]});
30
+ * ```
30
31
  *
31
32
  * Variables attributes is a BehaviorSubject. That mean it's not mandatory to subscribe, we can just call getValue or value attributes on
32
- * it : console.log(fm.variables.value); // {a : [1, 2, 3]}
33
+ * it :
33
34
  *
34
- * Set new variables for 'componentA-variables'
35
- * fm.merge('componentA-variables', {a : [1, 2]);
36
- * console.log(fm.variables.value); // {a : [1, 2, 3]}
35
+ * ```ts
36
+ * console.log(fm.variables.value); // {a : [1, 2, 3]}
37
+ * ```
37
38
  *
38
- * Set new variables for new channel
39
- * fm.merge('componentB-variables', {a : [3, 4]);
39
+ * Set new variables for 'componentA-variables':
40
+ *
41
+ * ```ts
42
+ * fm.merge('componentA-variables', {a : [1, 2]});
43
+ * console.log(fm.variables.value); // {a : [1, 2, 3]}
44
+ * ```
45
+ *
46
+ * Set new variables for new channel:
47
+ *
48
+ * ```ts
49
+ * fm.merge('componentB-variables', {a : [3, 4]});
40
50
  * console.log(fm.variables.value); // {a : [1, 2, 3, 4]}
51
+ * ```
41
52
  */
42
53
  export declare class NaturalQueryVariablesManager<T extends QueryVariables = QueryVariables> {
43
54
  readonly variables: BehaviorSubject<T | undefined>;
@@ -36,6 +36,7 @@ export declare class AvatarComponent implements OnChanges {
36
36
  * Initialize the avatar component and its fallback system
37
37
  */
38
38
  private initializeAvatar;
39
+ private clearAvatar;
39
40
  private buildTextAvatar;
40
41
  private buildImageAvatar;
41
42
  /**
@@ -3,16 +3,15 @@ import * as i1 from "./pipes/capitalize.pipe";
3
3
  import * as i2 from "./pipes/ellipsis.pipe";
4
4
  import * as i3 from "./pipes/enum.pipe";
5
5
  import * as i4 from "./pipes/swiss-date.pipe";
6
- import * as i5 from "./directives/reactive-asterisk.directive";
7
- import * as i6 from "../../directives/http-prefix.directive";
8
- import * as i7 from "./directives/src-density.directive";
9
- import * as i8 from "./directives/linkable-tab.directive";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@angular/material/form-field";
12
- import * as i11 from "@angular/material/input";
13
- import * as i12 from "@angular/material/select";
6
+ import * as i5 from "../../directives/http-prefix.directive";
7
+ import * as i6 from "./directives/src-density.directive";
8
+ import * as i7 from "./directives/linkable-tab.directive";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/material/form-field";
11
+ import * as i10 from "@angular/material/input";
12
+ import * as i11 from "@angular/material/select";
14
13
  export declare class NaturalCommonModule {
15
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalCommonModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalCommonModule, [typeof i1.NaturalCapitalizePipe, typeof i2.NaturalEllipsisPipe, typeof i3.NaturalEnumPipe, typeof i4.NaturalSwissDatePipe, typeof i5.ReactiveAsteriskDirective, typeof i6.NaturalHttpPrefixDirective, typeof i7.NaturalSrcDensityDirective, typeof i8.NaturalLinkableTabDirective], [typeof i9.CommonModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatSelectModule], [typeof i1.NaturalCapitalizePipe, typeof i2.NaturalEllipsisPipe, typeof i3.NaturalEnumPipe, typeof i4.NaturalSwissDatePipe, typeof i5.ReactiveAsteriskDirective, typeof i6.NaturalHttpPrefixDirective, typeof i7.NaturalSrcDensityDirective, typeof i8.NaturalLinkableTabDirective]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalCommonModule, [typeof i1.NaturalCapitalizePipe, typeof i2.NaturalEllipsisPipe, typeof i3.NaturalEnumPipe, typeof i4.NaturalSwissDatePipe, typeof i5.NaturalHttpPrefixDirective, typeof i6.NaturalSrcDensityDirective, typeof i7.NaturalLinkableTabDirective], [typeof i8.CommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatSelectModule], [typeof i1.NaturalCapitalizePipe, typeof i2.NaturalEllipsisPipe, typeof i3.NaturalEnumPipe, typeof i4.NaturalSwissDatePipe, typeof i5.NaturalHttpPrefixDirective, typeof i6.NaturalSrcDensityDirective, typeof i7.NaturalLinkableTabDirective]>;
17
16
  static ɵinj: i0.ɵɵInjectorDeclaration<NaturalCommonModule>;
18
17
  }
@@ -1,5 +1,4 @@
1
1
  export * from './common-module';
2
- export * from './directives/reactive-asterisk.directive';
3
2
  export * from './directives/linkable-tab.directive';
4
3
  export * from './pipes/capitalize.pipe';
5
4
  export * from './pipes/ellipsis.pipe';
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ErrorHandler, InjectionToken } from '@angular/core';
3
+ import { Literal } from '../../types/types';
4
+ import * as i0 from "@angular/core";
5
+ export interface LoggerExtra {
6
+ getExtras(error: unknown): Literal;
7
+ }
8
+ export declare const NaturalLoggerConfigUrl: InjectionToken<string>;
9
+ export declare const NaturalLoggerConfigExtra: InjectionToken<LoggerExtra>;
10
+ export declare class NaturalErrorHandler extends ErrorHandler {
11
+ private http;
12
+ private readonly document;
13
+ private readonly url;
14
+ private readonly loggerExtra?;
15
+ constructor(http: HttpClient, document: Document, url: string, loggerExtra?: LoggerExtra | undefined);
16
+ handleError(error: any): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NaturalErrorHandler, [null, null, { optional: true; }, { optional: true; }]>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<NaturalErrorHandler>;
19
+ }
@@ -0,0 +1,10 @@
1
+ import { ModuleWithProviders, Type } from '@angular/core';
2
+ import { LoggerExtra } from './error-handler';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common/http";
5
+ export declare class NaturalErrorModule {
6
+ static forRoot(url: string | null, extraService?: Type<LoggerExtra>): ModuleWithProviders<NaturalErrorModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NaturalErrorModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalErrorModule, never, [typeof i1.HttpClientModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NaturalErrorModule>;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './error.module';
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { IEnum, NaturalEnumService } from '../../../services/enum.service';
5
5
  import { AbstractSelect } from '../abstract-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['value']> implements OnInit, ControlValueAccessor {
7
+ export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['value'] | IEnum['value'][]> implements OnInit, ControlValueAccessor {
8
8
  private readonly enumService;
9
9
  readonly ngControl: NgControl | null;
10
10
  /**
@@ -19,10 +19,14 @@ export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['va
19
19
  * Functions that receives an enum value and returns whether that value is disabled
20
20
  */
21
21
  optionDisabled?: (item: IEnum) => boolean;
22
+ /**
23
+ * Whether the user should be allowed to select multiple options
24
+ */
25
+ multiple: boolean;
22
26
  items?: Observable<IEnum[]>;
23
27
  constructor(enumService: NaturalEnumService, ngControl: NgControl | null);
24
28
  ngOnInit(): void;
25
- getDisplayFn(): (item: IEnum['value'] | null) => string;
29
+ getDisplayFn(): (item: IEnum['value'] | IEnum['value'][] | null) => string;
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectEnumComponent, [null, { optional: true; self: true; }]>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; }, {}, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; "multiple": "multiple"; }, {}, never, never>;
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "42.0.0",
3
+ "version": "42.3.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
package/public-api.d.ts CHANGED
@@ -37,4 +37,5 @@ export * from './lib/modules/table-button/public-api';
37
37
  export * from './lib/modules/dialog-trigger/public-api';
38
38
  export * from './lib/modules/avatar/public-api';
39
39
  export * from './lib/modules/matomo/public-api';
40
+ export * from './lib/modules/logger/public-api';
40
41
  export * from './lib/directives/http-prefix.directive';
@@ -1,33 +0,0 @@
1
- import { Directive, Optional } from '@angular/core';
2
- import { MatInput } from '@angular/material/input';
3
- import { MatSelect } from '@angular/material/select';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/material/form-field";
6
- /**
7
- * Input/Select into FormField consider Validator.required from reactive form if the [required] attribute is missing in the template
8
- */
9
- export class ReactiveAsteriskDirective {
10
- constructor(matFormField) {
11
- this.matFormField = matFormField;
12
- }
13
- ngAfterContentChecked() {
14
- const ctrl = this.matFormField?._control;
15
- if (ctrl instanceof MatInput || ctrl instanceof MatSelect) {
16
- // Here we cast to be able to set `required`. It should not be required and might be a bug in TypeScript ?
17
- // Try to remove and see if it compiles
18
- ctrl.required = ctrl.ngControl?.control?.validator?.({})?.required;
19
- }
20
- }
21
- }
22
- ReactiveAsteriskDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ReactiveAsteriskDirective, deps: [{ token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
23
- ReactiveAsteriskDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.5", type: ReactiveAsteriskDirective, selector: "mat-form-field:has(input:not([required])), mat-form-field:has(mat-select:not([required]))", ngImport: i0 });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ReactiveAsteriskDirective, decorators: [{
25
- type: Directive,
26
- args: [{
27
- // eslint-disable-next-line @angular-eslint/directive-selector
28
- selector: 'mat-form-field:has(input:not([required])), mat-form-field:has(mat-select:not([required]))',
29
- }]
30
- }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
31
- type: Optional
32
- }] }]; } });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhY3RpdmUtYXN0ZXJpc2suZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmF0dXJhbC9zcmMvbGliL21vZHVsZXMvY29tbW9uL2RpcmVjdGl2ZXMvcmVhY3RpdmUtYXN0ZXJpc2suZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsU0FBUyxFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUd2RSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFDakQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLDBCQUEwQixDQUFDOzs7QUFFbkQ7O0dBRUc7QUFLSCxNQUFNLE9BQU8seUJBQXlCO0lBQ2xDLFlBQXVDLFlBQWlDO1FBQWpDLGlCQUFZLEdBQVosWUFBWSxDQUFxQjtJQUFHLENBQUM7SUFFckUscUJBQXFCO1FBQ3hCLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxZQUFZLEVBQUUsUUFBUSxDQUFDO1FBQ3pDLElBQUksSUFBSSxZQUFZLFFBQVEsSUFBSSxJQUFJLFlBQVksU0FBUyxFQUFFO1lBQ3ZELDBHQUEwRztZQUMxRyx1Q0FBdUM7WUFDdEMsSUFBaUIsQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLFNBQVMsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLENBQUMsRUFBcUIsQ0FBQyxFQUFFLFFBQVEsQ0FBQztTQUN2RztJQUNMLENBQUM7O3NIQVZRLHlCQUF5QjswR0FBekIseUJBQXlCOzJGQUF6Qix5QkFBeUI7a0JBSnJDLFNBQVM7bUJBQUM7b0JBQ1AsOERBQThEO29CQUM5RCxRQUFRLEVBQUUsMkZBQTJGO2lCQUN4Rzs7MEJBRXVCLFFBQVEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0FmdGVyQ29udGVudENoZWNrZWQsIERpcmVjdGl2ZSwgT3B0aW9uYWx9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtBYnN0cmFjdENvbnRyb2x9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcbmltcG9ydCB7TWF0Rm9ybUZpZWxkfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9mb3JtLWZpZWxkJztcbmltcG9ydCB7TWF0SW5wdXR9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2lucHV0JztcbmltcG9ydCB7TWF0U2VsZWN0fSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9zZWxlY3QnO1xuXG4vKipcbiAqIElucHV0L1NlbGVjdCBpbnRvIEZvcm1GaWVsZCBjb25zaWRlciBWYWxpZGF0b3IucmVxdWlyZWQgZnJvbSByZWFjdGl2ZSBmb3JtIGlmIHRoZSBbcmVxdWlyZWRdIGF0dHJpYnV0ZSBpcyBtaXNzaW5nIGluIHRoZSB0ZW1wbGF0ZVxuICovXG5ARGlyZWN0aXZlKHtcbiAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQGFuZ3VsYXItZXNsaW50L2RpcmVjdGl2ZS1zZWxlY3RvclxuICAgIHNlbGVjdG9yOiAnbWF0LWZvcm0tZmllbGQ6aGFzKGlucHV0Om5vdChbcmVxdWlyZWRdKSksIG1hdC1mb3JtLWZpZWxkOmhhcyhtYXQtc2VsZWN0Om5vdChbcmVxdWlyZWRdKSknLFxufSlcbmV4cG9ydCBjbGFzcyBSZWFjdGl2ZUFzdGVyaXNrRGlyZWN0aXZlIGltcGxlbWVudHMgQWZ0ZXJDb250ZW50Q2hlY2tlZCB7XG4gICAgcHVibGljIGNvbnN0cnVjdG9yKEBPcHRpb25hbCgpIHByaXZhdGUgbWF0Rm9ybUZpZWxkOiBNYXRGb3JtRmllbGQgfCBudWxsKSB7fVxuXG4gICAgcHVibGljIG5nQWZ0ZXJDb250ZW50Q2hlY2tlZCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgY3RybCA9IHRoaXMubWF0Rm9ybUZpZWxkPy5fY29udHJvbDtcbiAgICAgICAgaWYgKGN0cmwgaW5zdGFuY2VvZiBNYXRJbnB1dCB8fCBjdHJsIGluc3RhbmNlb2YgTWF0U2VsZWN0KSB7XG4gICAgICAgICAgICAvLyBIZXJlIHdlIGNhc3QgdG8gYmUgYWJsZSB0byBzZXQgYHJlcXVpcmVkYC4gSXQgc2hvdWxkIG5vdCBiZSByZXF1aXJlZCBhbmQgbWlnaHQgYmUgYSBidWcgaW4gVHlwZVNjcmlwdCA/XG4gICAgICAgICAgICAvLyBUcnkgdG8gcmVtb3ZlIGFuZCBzZWUgaWYgaXQgY29tcGlsZXNcbiAgICAgICAgICAgIChjdHJsIGFzIE1hdElucHV0KS5yZXF1aXJlZCA9IGN0cmwubmdDb250cm9sPy5jb250cm9sPy52YWxpZGF0b3I/Lih7fSBhcyBBYnN0cmFjdENvbnRyb2wpPy5yZXF1aXJlZDtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
@@ -1,13 +0,0 @@
1
- import { AfterContentChecked } from '@angular/core';
2
- import { MatFormField } from '@angular/material/form-field';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Input/Select into FormField consider Validator.required from reactive form if the [required] attribute is missing in the template
6
- */
7
- export declare class ReactiveAsteriskDirective implements AfterContentChecked {
8
- private matFormField;
9
- constructor(matFormField: MatFormField | null);
10
- ngAfterContentChecked(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveAsteriskDirective, [{ optional: true; }]>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<ReactiveAsteriskDirective, "mat-form-field:has(input:not([required])), mat-form-field:has(mat-select:not([required]))", never, {}, {}, never>;
13
- }