@sumaris-net/ngx-components 18.18.9 → 18.18.10

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 (81) hide show
  1. package/esm2022/public_api.mjs +5 -4
  2. package/esm2022/src/app/core/core.testing.module.mjs +15 -1
  3. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +13 -9
  4. package/esm2022/src/app/{shared/material → core/form}/text/testing/text-form.testing.mjs +4 -4
  5. package/esm2022/src/app/core/form/text/testing/text-form.testing.module.mjs +25 -0
  6. package/esm2022/src/app/core/form/text/text-form.component.mjs +205 -0
  7. package/esm2022/src/app/core/form/text/text-form.module.mjs +31 -0
  8. package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +4 -12
  9. package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +4 -4
  10. package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +5 -4
  11. package/esm2022/src/app/core/services/base-entity-service.class.mjs +1 -1
  12. package/esm2022/src/app/core/table/column/row-field.component.mjs +1 -1
  13. package/esm2022/src/app/shared/file/csv.utils.mjs +1 -1
  14. package/esm2022/src/app/shared/form/field.component.mjs +1 -1
  15. package/esm2022/src/app/shared/form/field.model.mjs +1 -1
  16. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +1 -1
  17. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +1 -1
  18. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +1 -1
  19. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +1 -1
  20. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +1 -1
  21. package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +1 -1
  22. package/esm2022/src/app/shared/material/chips/material.chips.mjs +1 -1
  23. package/esm2022/src/app/shared/material/datetime/material.date.mjs +1 -1
  24. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +1 -1
  25. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +1 -1
  26. package/esm2022/src/app/shared/material/duration/material.duration.mjs +1 -1
  27. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +1 -1
  28. package/esm2022/src/app/shared/material/material.module.mjs +4 -9
  29. package/esm2022/src/app/shared/material/material.testing.module.mjs +1 -12
  30. package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +1 -1
  31. package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +1 -1
  32. package/esm2022/src/app/shared/pipes/string.pipes.mjs +1 -1
  33. package/esm2022/src/app/shared/pipes/types.pipes.mjs +1 -1
  34. package/esm2022/src/app/shared/services/entity-service.class.mjs +1 -1
  35. package/esm2022/src/app/shared/types.mjs +1 -1
  36. package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +1 -1
  37. package/esm2022/src/app/social/user-event/user-event.service.mjs +1 -1
  38. package/esm2022/src/environments/environment.class.mjs +1 -1
  39. package/fesm2022/sumaris-net.ngx-components.mjs +4302 -4318
  40. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  41. package/package.json +1 -1
  42. package/public_api.d.ts +4 -3
  43. package/src/app/core/core.testing.module.d.ts +5 -4
  44. package/src/app/core/form/entity/entity-editor.class.d.ts +12 -12
  45. package/src/app/core/form/text/testing/text-form.testing.module.d.ts +14 -0
  46. package/src/app/{shared/material → core/form}/text/text-form.component.d.ts +2 -2
  47. package/src/app/core/form/text/text-form.module.d.ts +9 -0
  48. package/src/app/core/form/text-popover/testing/text-popover.testing.module.d.ts +1 -1
  49. package/src/app/core/form/text-popover/text-popover.component.d.ts +1 -1
  50. package/src/app/core/form/text-popover/text-popover.module.d.ts +3 -2
  51. package/src/app/core/services/base-entity-service.class.d.ts +11 -19
  52. package/src/app/core/table/column/row-field.component.d.ts +2 -1
  53. package/src/app/shared/file/csv.utils.d.ts +1 -1
  54. package/src/app/shared/form/field.component.d.ts +2 -2
  55. package/src/app/shared/form/field.model.d.ts +1 -6
  56. package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +1 -1
  57. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -1
  58. package/src/app/shared/material/autocomplete/material.autocomplete.utils.d.ts +1 -1
  59. package/src/app/shared/material/boolean/material.boolean.d.ts +1 -1
  60. package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +1 -1
  61. package/src/app/shared/material/chips/material.chips.d.ts +1 -1
  62. package/src/app/shared/material/datetime/material.date.d.ts +1 -1
  63. package/src/app/shared/material/datetime/material.dateshort.d.ts +1 -1
  64. package/src/app/shared/material/datetime/material.datetime.d.ts +1 -1
  65. package/src/app/shared/material/duration/material.duration.d.ts +1 -1
  66. package/src/app/shared/material/latlong/material.latlong.d.ts +1 -1
  67. package/src/app/shared/material/material.module.d.ts +1 -2
  68. package/src/app/shared/material/material.testing.module.d.ts +16 -17
  69. package/src/app/shared/material/swipe/material.swipe.d.ts +1 -1
  70. package/src/app/shared/material/swipe/testing/swipe.test.d.ts +1 -1
  71. package/src/app/shared/pipes/string.pipes.d.ts +1 -2
  72. package/src/app/shared/pipes/types.pipes.d.ts +1 -1
  73. package/src/app/shared/services/entity-service.class.d.ts +21 -4
  74. package/src/app/shared/types.d.ts +5 -0
  75. package/src/app/social/user-event/testing/user-event.testing.service.d.ts +2 -3
  76. package/src/app/social/user-event/user-event.service.d.ts +5 -5
  77. package/src/assets/manifest.json +1 -1
  78. package/esm2022/src/app/shared/material/text/text-form.component.mjs +0 -205
  79. package/esm2022/src/app/shared/material/text/text-form.module.mjs +0 -63
  80. package/src/app/shared/material/text/text-form.module.d.ts +0 -16
  81. /package/src/app/{shared/material → core/form}/text/testing/text-form.testing.d.ts +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.18.9",
4
+ "version": "18.18.10",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -32,8 +32,8 @@ export * from './src/app/shared/material/swipe/swipe.module';
32
32
  export * from './src/app/shared/material/swipe/material.swipe';
33
33
  export * from './src/app/shared/material/badge/badge.module';
34
34
  export * from './src/app/shared/material/badge/badge.directive';
35
- export * from './src/app/shared/material/text/text-form.component';
36
- export * from './src/app/shared/material/text/text-form.module';
35
+ export * from './src/app/core/form/text/text-form.component';
36
+ export * from './src/app/core/form/text/text-form.module';
37
37
  export * from './src/app/shared/inputs';
38
38
  export { AppFormField } from './src/app/shared/form/field.component';
39
39
  export * from './src/app/shared/form/loading-spinner';
@@ -309,7 +309,6 @@ export * from './src/app/shared/material/datetime/testing/mat-date-time.test';
309
309
  export * from './src/app/shared/material/datetime/testing/mat-date.test';
310
310
  export * from './src/app/shared/material/datetime/testing/mat-dateshort.test';
311
311
  export * from './src/app/shared/material/chips/testing/chips.test';
312
- export * from './src/app/shared/material/text/testing/text-form.testing';
313
312
  export * from './src/app/shared/testing/observable.test';
314
313
  export * from './src/app/shared/material/badge/badge.test';
315
314
  export * from './src/app/shared/material/testing/common.test';
@@ -336,6 +335,8 @@ export * from './src/app/core/services/testing/referential.validator';
336
335
  export * from './src/app/core/table/testing/table.testing.module';
337
336
  export * from './src/app/core/table/testing/table.testing';
338
337
  export * from './src/app/core/table/testing/table2.testing';
338
+ export * from './src/app/core/form/text/testing/text-form.testing';
339
+ export * from './src/app/core/form/text/testing/text-form.testing.module';
339
340
  export * from './src/app/core/form/text-popover/testing/text-popover.testing.module';
340
341
  export * from './src/app/core/form/text-popover/testing/text-popover.testing';
341
342
  export * from './src/app/core/form/properties/testing/properties-form.test';
@@ -4,12 +4,13 @@ import * as i1 from "@angular/common";
4
4
  import * as i2 from "@ngx-translate/core";
5
5
  import * as i3 from "@angular/router";
6
6
  import * as i4 from "./table/testing/table.testing.module";
7
- import * as i5 from "./form/text-popover/testing/text-popover.testing.module";
8
- import * as i6 from "./form/properties/testing/properties-form.testing.module";
9
- import * as i7 from "./form/array/testing/form-array-test.module";
7
+ import * as i5 from "./form/text/testing/text-form.testing.module";
8
+ import * as i6 from "./form/text-popover/testing/text-popover.testing.module";
9
+ import * as i7 from "./form/properties/testing/properties-form.testing.module";
10
+ import * as i8 from "./form/array/testing/form-array-test.module";
10
11
  export declare const CORE_TESTING_PAGES: TestingPage[];
11
12
  export declare class CoreTestingModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreTestingModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreTestingModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.RouterModule, typeof i4.TableTestingModule, typeof i5.TextPopoverTestingModule, typeof i6.PropertiesFormTestingModule, typeof i7.FormArrayTestModule], [typeof i3.RouterModule, typeof i4.TableTestingModule, typeof i5.TextPopoverTestingModule, typeof i6.PropertiesFormTestingModule, typeof i7.FormArrayTestModule]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreTestingModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.RouterModule, typeof i4.TableTestingModule, typeof i5.TextFormTestingModule, typeof i6.TextPopoverTestingModule, typeof i7.PropertiesFormTestingModule, typeof i8.FormArrayTestModule], [typeof i3.RouterModule, typeof i4.TableTestingModule, typeof i5.TextFormTestingModule, typeof i6.TextPopoverTestingModule, typeof i7.PropertiesFormTestingModule, typeof i8.FormArrayTestModule]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<CoreTestingModule>;
15
16
  }
@@ -7,7 +7,7 @@ import { UsageMode } from '../../services/model/settings.model';
7
7
  import { FormGroup } from '@angular/forms';
8
8
  import { AppTabEditor, AppTabEditorOptions, IAppTabEditor } from './tab-editor.class';
9
9
  import { AppErrorWithDetails } from '../../services/errors';
10
- import { EntityServiceLoadOptions, IEntityService } from '../../../shared/services/entity-service.class';
10
+ import { EntityServiceDeleteOptions, EntityServiceLoadOptions, EntityServiceSaveOptions, IEntityService } from '../../../shared/services/entity-service.class';
11
11
  import { DateFormatService } from '../../../shared/pipes/date-format.pipe';
12
12
  import { Environment } from '../../../../environments/environment.class';
13
13
  import { HistoryPageReference } from '../../services/model/history.model';
@@ -34,7 +34,7 @@ export declare class AppEditorOptions extends AppTabEditorOptions {
34
34
  autoOpenNextTab?: boolean;
35
35
  i18nPrefix?: string;
36
36
  }
37
- export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends IEntityService<T, ID> = IEntityService<T, any>, ID = number, LO extends EntityServiceLoadOptions = EntityServiceLoadOptions> extends AppTabEditor<T, ID, LO> implements OnInit, OnDestroy, AfterViewInit, IAppEntityEditor<T> {
37
+ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends IEntityService<T, ID> = IEntityService<T, any>, ID = number, LO extends EntityServiceLoadOptions = EntityServiceLoadOptions, SO extends EntityServiceSaveOptions = EntityServiceSaveOptions, DO extends EntityServiceDeleteOptions = EntityServiceDeleteOptions> extends AppTabEditor<T, ID, LO> implements OnInit, OnDestroy, AfterViewInit, IAppEntityEditor<T> {
38
38
  protected dataType: new () => T;
39
39
  protected dataService?: S;
40
40
  data: T;
@@ -84,7 +84,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
84
84
  * @param id
85
85
  * @param opts
86
86
  */
87
- load(id?: ID, opts?: EntityServiceLoadOptions & {
87
+ load(id?: ID, opts?: LO & {
88
88
  emitEvent?: boolean;
89
89
  openTabIndex?: number;
90
90
  updateRoute?: boolean;
@@ -116,7 +116,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
116
116
  * Update the route location, and open the next tab
117
117
  */
118
118
  updateTabIndex(tabIndex?: number): void;
119
- saveAndClose(event: Event, options?: any): Promise<boolean>;
119
+ saveAndClose(event: Event, options?: SO): Promise<boolean>;
120
120
  close(event: Event): Promise<boolean | void>;
121
121
  /**
122
122
  * Save the editor, by calling the dataService.save().
@@ -125,12 +125,12 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
125
125
  * @param event
126
126
  * @param opts
127
127
  */
128
- save(event?: Event, opts?: any): Promise<boolean>;
128
+ save(event?: Event, opts?: SO): Promise<boolean>;
129
129
  /**
130
130
  * Save data (if dirty and valid), and return it. Otherwise, return nil value.
131
131
  */
132
132
  saveAndGetDataIfValid(): Promise<T | undefined>;
133
- delete(event?: Event): Promise<boolean>;
133
+ delete(event?: Event, opts?: DO): Promise<boolean>;
134
134
  reload(): Promise<void>;
135
135
  unload(opts?: {
136
136
  emitEvent?: boolean;
@@ -156,10 +156,10 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
156
156
  */
157
157
  protected computeNextTabIndex(): number | undefined;
158
158
  protected onBeforeEntityLoad(): Promise<void>;
159
- protected onNewEntity(data: T, options?: EntityServiceLoadOptions): Promise<void>;
160
- protected onEntityLoaded(data: T, options?: EntityServiceLoadOptions): Promise<void>;
161
- protected onEntitySaved(data: T): Promise<void>;
162
- protected onEntityDeleted(data: T): Promise<void>;
159
+ protected onNewEntity(data: T, options?: LO): Promise<void>;
160
+ protected onEntityLoaded(data: T, options?: LO): Promise<void>;
161
+ protected onEntitySaved(data: T, options?: SO): Promise<void>;
162
+ protected onEntityDeleted(data: T, options?: DO): Promise<void>;
163
163
  protected computeUsageMode(data: T): UsageMode;
164
164
  protected waitWhilePending(opts?: WaitForOptions): Promise<void>;
165
165
  getValue(): Promise<T>;
@@ -199,6 +199,6 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
199
199
  onlySelf?: boolean;
200
200
  emitEvent?: boolean;
201
201
  }): Promise<void> | void;
202
- static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any, any>, never>;
203
- static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any, any>, never, never, {}, {}, never, never, false, never>;
202
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any, any, any, any>, never>;
203
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any, any, any, any>, never, never, {}, {}, never, never, false, never>;
204
204
  }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./text-form.testing";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ionic/angular";
5
+ import * as i4 from "../../../../shared/shared.module";
6
+ import * as i5 from "../../../core.module";
7
+ import * as i6 from "@ngx-translate/core";
8
+ import * as i7 from "../text-form.module";
9
+ import * as i8 from "@angular/router";
10
+ export declare class TextFormTestingModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFormTestingModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextFormTestingModule, [typeof i1.TextFormTestingPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.SharedModule, typeof i5.CoreModule, typeof i6.TranslateModule, typeof i7.AppTextFormModule], [typeof i8.RouterModule, typeof i1.TextFormTestingPage]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<TextFormTestingModule>;
14
+ }
@@ -1,9 +1,9 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl, ValidatorFn } from '@angular/forms';
3
3
  import { CdkTextareaAutosize } from '@angular/cdk/text-field';
4
- import { AppForm } from '../../../core/form/form.class';
5
- import { AppFloatLabelType } from '../../form/field.model';
4
+ import { AppForm } from '../form.class';
6
5
  import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
6
+ import { AppFloatLabelType } from '../../../shared/types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class TextForm extends AppForm<{
9
9
  text: string;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./text-form.component";
3
+ import * as i2 from "../../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class AppTextFormModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTextFormModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppTextFormModule, [typeof i1.TextForm], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.TextForm]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppTextFormModule>;
9
+ }
@@ -6,6 +6,6 @@ import * as i4 from "@ngx-translate/core";
6
6
  import * as i5 from "@angular/router";
7
7
  export declare class TextPopoverTestingModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TextPopoverTestingModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<TextPopoverTestingModule, [typeof i1.TextPopoverTestingPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.TranslateModule, typeof i5.RouterModule], [typeof i5.RouterModule, typeof i1.TextPopoverTestingPage]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextPopoverTestingModule, [typeof i1.TextPopoverTestingPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.TranslateModule], [typeof i5.RouterModule, typeof i1.TextPopoverTestingPage]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<TextPopoverTestingModule>;
11
11
  }
@@ -2,7 +2,7 @@ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { PopoverController, PopoverOptions } from '@ionic/angular';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
- import { TextForm } from '../../../shared/material/text/text-form.component';
5
+ import { TextForm } from '../text/text-form.component';
6
6
  import { ValidatorFn } from '@angular/forms';
7
7
  import { Color, OverlayEventDetail } from '@ionic/core';
8
8
  import * as i0 from "@angular/core";
@@ -1,9 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./text-popover.component";
3
3
  import * as i2 from "../../../shared/shared.module";
4
- import * as i3 from "@ngx-translate/core";
4
+ import * as i3 from "../text/text-form.module";
5
+ import * as i4 from "@ngx-translate/core";
5
6
  export declare class AppTextPopoverModule {
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AppTextPopoverModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppTextPopoverModule, [typeof i1.TextPopover], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.TextPopover]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppTextPopoverModule, [typeof i1.TextPopover], [typeof i2.SharedModule, typeof i3.AppTextFormModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.TextPopover]>;
8
9
  static ɵinj: i0.ɵɵInjectorDeclaration<AppTextPopoverModule>;
9
10
  }
@@ -1,8 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ApolloCache, InternalRefetchQueriesInclude, MutationUpdaterFn, MutationUpdaterFunction, WatchQueryFetchPolicy } from '@apollo/client/core';
2
+ import { InternalRefetchQueriesInclude, MutationUpdaterFn, WatchQueryFetchPolicy } from '@apollo/client/core';
3
3
  import { SortDirection } from '@angular/material/sort';
4
4
  import { BaseGraphqlService } from './base-graphql-service.class';
5
- import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, EntityServiceListenChangesOptions, IEntitiesService, IEntityService, LoadResult } from '../../shared/services/entity-service.class';
5
+ import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, EntityServiceListenChangesOptions, EntityServiceSaveOptions, IEntitiesService, IEntityService, LoadResult } from '../../shared/services/entity-service.class';
6
6
  import { GraphqlService } from '../graphql/graphql.service';
7
7
  import { PlatformService } from './platform.service';
8
8
  import { Entity, EntityAsObjectOptions } from './model/entity.model';
@@ -11,6 +11,11 @@ import { EntityFilter } from './model/filter.model';
11
11
  import { DocumentNode } from 'graphql';
12
12
  import * as i0 from "@angular/core";
13
13
  export type MutableWatchQueriesUpdatePolicy = 'update-cache' | 'refetch-queries';
14
+ /**
15
+ * @deprecated Use EntityServiceSaveOptions
16
+ */
17
+ export interface EntitySaveOptions<T = any, V = any> extends EntityServiceSaveOptions<T, V> {
18
+ }
14
19
  export interface BaseEntityGraphqlQueries {
15
20
  load?: any;
16
21
  loadAll: any;
@@ -44,19 +49,6 @@ export interface BaseEntityServiceOptions<T extends Entity<any, ID>, ID = number
44
49
  defaultSortDirection?: SortDirection;
45
50
  watchQueriesUpdatePolicy?: MutableWatchQueriesUpdatePolicy;
46
51
  }
47
- export interface EntitySaveOptions<T = any, V = any> {
48
- refetchQueries?: ((result: FetchResult<{
49
- data: T;
50
- }>) => InternalRefetchQueriesInclude) | InternalRefetchQueriesInclude;
51
- awaitRefetchQueries?: boolean;
52
- update?: MutationUpdaterFn<{
53
- data: any;
54
- }> | MutationUpdaterFunction<{
55
- data: any;
56
- }, V, any, ApolloCache<{
57
- data: any;
58
- }>>;
59
- }
60
52
  export declare abstract class BaseEntityService<T extends Entity<T, ID>, F extends EntityFilter<F, T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions<T>, LO extends EntitiesServiceLoadOptions = EntitiesServiceLoadOptions<T>, Q extends BaseEntityGraphqlQueries = BaseEntityGraphqlQueries, M extends BaseEntityGraphqlMutations = BaseEntityGraphqlMutations, S extends BaseEntityGraphqlSubscriptions = BaseEntityGraphqlSubscriptions> extends BaseGraphqlService<T, F, ID> implements IEntitiesService<T, F, WO>, IEntityService<T, ID, LO> {
61
53
  protected graphql: GraphqlService;
62
54
  protected platform: PlatformService;
@@ -82,14 +74,14 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
82
74
  }): Promise<LoadResult<T>>;
83
75
  countAll(filter?: Partial<F>, opts?: LO): Promise<number>;
84
76
  canUserWrite(data: T, opts?: any): boolean;
85
- saveAll(entities: T[], opts?: EntitySaveOptions): Promise<T[]>;
77
+ saveAll(entities: T[], opts?: EntityServiceSaveOptions | EntitySaveOptions): Promise<T[]>;
86
78
  /**
87
79
  * Save a referential entity
88
80
  *
89
81
  * @param entity
90
82
  * @param opts
91
83
  */
92
- save(entity: T, opts?: EntitySaveOptions): Promise<T>;
84
+ save(entity: T, opts?: EntityServiceSaveOptions): Promise<T>;
93
85
  /**
94
86
  * Delete referential entities
95
87
  */
@@ -99,7 +91,7 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
99
91
  /**
100
92
  * Delete a referential entity
101
93
  */
102
- delete(entity: T, opts?: EntitySaveOptions | any): Promise<any>;
94
+ delete(entity: T, opts?: EntityServiceSaveOptions | any): Promise<any>;
103
95
  listenChanges(id: ID, opts?: EntityServiceListenChangesOptions<T>): Observable<T>;
104
96
  copyIdAndUpdateDate(source: T, target: T): void;
105
97
  fromObject(source: any, opts?: {
@@ -125,7 +117,7 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
125
117
  [key: string]: any;
126
118
  }): T[];
127
119
  protected asObject(source: T, opts?: EntityAsObjectOptions): any;
128
- protected getRefetchQueriesForMutation(opts?: EntitySaveOptions): ((result: FetchResult<{
120
+ protected getRefetchQueriesForMutation(opts?: EntityServiceSaveOptions): ((result: FetchResult<{
129
121
  data: any;
130
122
  }>) => InternalRefetchQueriesInclude) | InternalRefetchQueriesInclude;
131
123
  protected getLoadQueries(): DocumentNode[];
@@ -2,9 +2,10 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ThemePalette } from '@angular/material/core';
3
3
  import { PredefinedColors } from '@ionic/core';
4
4
  import { MatFormFieldAppearance } from '@angular/material/form-field';
5
- import { AppFloatLabelType, FormFieldDefinition } from '../../../shared/form/field.model';
5
+ import { FormFieldDefinition } from '../../../shared/form/field.model';
6
6
  import { MatColumnDef, MatTable } from '@angular/material/table';
7
7
  import { AsyncTableElement, TableElement } from '@e-is/ngx-material-table';
8
+ import { AppFloatLabelType } from '../../../shared/types';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class AppRowField implements OnInit, OnDestroy {
10
11
  protected cd: ChangeDetectorRef;
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { FileEvent } from '../upload-file/upload-file.model';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
- import { DisplayFn } from '../form/field.model';
4
+ import { DisplayFn } from '../types';
5
5
  export declare class CsvUtils {
6
6
  static DEFAULT_SEPARATOR: string;
7
7
  static DEFAULT_ENCODING: string;
@@ -1,9 +1,9 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
3
- import { AppFloatLabelType, DisplayFn, FormFieldDefinition, FormFieldType } from './field.model';
3
+ import { FormFieldDefinition, FormFieldType } from './field.model';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { filterNumberInput, selectInputContentFromEvent } from '../inputs';
6
- import { Property } from '../types';
6
+ import { AppFloatLabelType, DisplayFn, Property } from '../types';
7
7
  import { ThemePalette } from '@angular/material/core';
8
8
  import { PredefinedColors } from '@ionic/core';
9
9
  import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
@@ -1,13 +1,8 @@
1
- import { ObjectMap, Property } from '../types';
1
+ import { DisplayFn, ObjectMap, Property } from '../types';
2
2
  import { InjectionToken, Injector } from '@angular/core';
3
3
  import { MatAutocompleteFieldConfig } from '../material/autocomplete/material.autocomplete.config';
4
4
  import { UserProfileLabel } from '../../core/services/model/person.model';
5
- import { FloatLabelType } from '@angular/material/form-field';
6
- export declare type DisplayFn = (obj: any) => string;
7
- export declare type EqualsFn = (o1: any, o2: any) => boolean;
8
- export declare type CompareFn = (o1: any, o2: any) => number;
9
5
  export declare type FormFieldType = 'integer' | 'double' | 'boolean' | 'string' | 'enum' | 'enums' | 'color' | 'peer' | 'entity' | 'entities' | 'date' | 'dateTime';
10
- export declare type AppFloatLabelType = FloatLabelType | 'never';
11
6
  export declare interface FormFieldDefinition<K = string, T = FormFieldType, E = any> {
12
7
  key: K;
13
8
  type: T;
@@ -1,6 +1,6 @@
1
1
  import { SuggestFn, SuggestService } from '../../services/entity-service.class';
2
2
  import { Observable } from 'rxjs';
3
- import { DisplayFn, EqualsFn } from '../../form/field.model';
3
+ import { DisplayFn, EqualsFn } from '../../types';
4
4
  export declare interface MatAutocompleteFieldConfig<T = any, F = any> {
5
5
  attributes?: string[];
6
6
  suggestFn?: SuggestFn<T, F>;
@@ -3,12 +3,12 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { SuggestFn } from '../../services/entity-service.class';
5
5
  import { InputElement } from '../../inputs';
6
- import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
7
6
  import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
8
7
  import { MatSelect, MatSelectChange } from '@angular/material/select';
9
8
  import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
10
9
  import { IonSearchbar, ModalController } from '@ionic/angular';
11
10
  import { MatAutocompleteFieldConfig } from './material.autocomplete.config';
11
+ import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../types';
12
12
  import * as i0 from "@angular/core";
13
13
  export interface MatAutocompleteFieldSelectChange {
14
14
  source: MatSelect | MatAutocomplete;
@@ -1,4 +1,4 @@
1
- import { DisplayFn } from '../../form/field.model';
1
+ import { DisplayFn } from '../../types';
2
2
  export declare class MatAutocompleteFieldUtils {
3
3
  static createDisplayFn(displayAttributes: string[], multiple?: boolean, propertySeparator?: string, itemSeparator?: string): DisplayFn;
4
4
  static defaultEquals(o1: any, o2: any): boolean;
@@ -4,7 +4,7 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
4
4
  import { MatRadioButton, MatRadioChange } from '@angular/material/radio';
5
5
  import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
6
6
  import { InputElement } from '../../inputs';
7
- import { AppFloatLabelType } from '../../form/field.model';
7
+ import { AppFloatLabelType } from '../../types';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement, OnDestroy {
10
10
  private cd;
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { AppForm } from '../../../../core/form/form.class';
3
3
  import { UntypedFormBuilder } from '@angular/forms';
4
- import { AppFloatLabelType } from '../../../form/field.model';
4
+ import { AppFloatLabelType } from '../../../types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BooleanTestPage extends AppForm<any> implements OnInit, AfterViewInit {
7
7
  protected injector: Injector;
@@ -3,11 +3,11 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { InputElement } from '../../inputs';
5
5
  import { SuggestFn } from '../../services/entity-service.class';
6
- import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
7
6
  import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
8
7
  import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete.config';
9
8
  import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
10
9
  import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
10
+ import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../types';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class MatChipsField implements OnInit, OnDestroy, InputElement, ControlValueAccessor {
13
13
  protected cd: ChangeDetectorRef;
@@ -6,8 +6,8 @@ import { InputElement } from '../../inputs';
6
6
  import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
7
7
  import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
8
8
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
9
- import { AppFloatLabelType } from '../../form/field.model';
10
9
  import { MaskitoOptions } from '@maskito/core';
10
+ import { AppFloatLabelType } from '../../types';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement {
13
13
  private dateAdapter;
@@ -6,8 +6,8 @@ import { InputElement } from '../../inputs';
6
6
  import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
7
7
  import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
8
8
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
9
- import { AppFloatLabelType } from '../../form/field.model';
10
9
  import { MaskitoOptions } from '@maskito/core';
10
+ import { AppFloatLabelType } from '../../types';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class MatDateShort implements OnInit, ControlValueAccessor, InputElement, AfterViewInit, OnDestroy {
13
13
  private dateAdapter;
@@ -6,8 +6,8 @@ import { Moment } from 'moment';
6
6
  import { InputElement } from '../../inputs';
7
7
  import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
8
8
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
9
- import { AppFloatLabelType } from '../../form/field.model';
10
9
  import { MaskitoOptions } from '@maskito/core';
10
+ import { AppFloatLabelType } from '../../types';
11
11
  import * as i0 from "@angular/core";
12
12
  declare interface NgxTimePicker {
13
13
  open(): any;
@@ -6,7 +6,7 @@ import { TranslateService } from '@ngx-translate/core';
6
6
  import { Moment } from 'moment';
7
7
  import { InputElement } from '../../inputs';
8
8
  import { MatFormFieldAppearance } from '@angular/material/form-field';
9
- import { AppFloatLabelType } from '../../form/field.model';
9
+ import { AppFloatLabelType } from '../../types';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class MatDuration implements OnInit, OnDestroy, ControlValueAccessor, InputElement {
12
12
  private dateAdapter;
@@ -1,9 +1,9 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
3
3
  import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
4
- import { AppFloatLabelType } from '../../form/field.model';
5
4
  import { LatLongPattern, LatLongSign, LatLongType } from './latlong.utils';
6
5
  import { MatLatLongFieldInput } from './material.latlong-input';
6
+ import { AppFloatLabelType } from '../../types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class MatLatLongField implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
9
9
  private cd;
@@ -37,9 +37,8 @@ import * as i35 from "./boolean/boolean.module";
37
37
  import * as i36 from "./swipe/swipe.module";
38
38
  import * as i37 from "./chips/chips.module";
39
39
  import * as i38 from "./badge/badge.module";
40
- import * as i39 from "./text/text-form.module";
41
40
  export declare class SharedMaterialModule {
42
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedMaterialModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMaterialModule, never, [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatSwipeModule, typeof i37.SharedMatChipsModule, typeof i38.SharedBadgeModule, typeof i39.SharedTextFormModule], [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatSwipeModule, typeof i37.SharedMatChipsModule, typeof i38.SharedBadgeModule, typeof i39.SharedTextFormModule]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMaterialModule, never, [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatSwipeModule, typeof i37.SharedMatChipsModule, typeof i38.SharedBadgeModule], [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatSwipeModule, typeof i37.SharedMatChipsModule, typeof i38.SharedBadgeModule]>;
44
43
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedMaterialModule>;
45
44
  }
@@ -8,25 +8,24 @@ import * as i5 from "./duration/testing/mat-duration.test";
8
8
  import * as i6 from "./autocomplete/testing/autocomplete.test";
9
9
  import * as i7 from "./boolean/testing/boolean.test.page";
10
10
  import * as i8 from "./latlong/testing/latlong.test";
11
- import * as i9 from "./text/testing/text-form.testing";
12
- import * as i10 from "./swipe/testing/swipe.test";
13
- import * as i11 from "./chips/testing/chips.test";
14
- import * as i12 from "./badge/badge.test";
15
- import * as i13 from "../testing/observable.test";
16
- import * as i14 from "../testing/maskito.test";
17
- import * as i15 from "@angular/common";
18
- import * as i16 from "@ionic/angular";
19
- import * as i17 from "@angular/forms";
20
- import * as i18 from "./material.module";
21
- import * as i19 from "@ngx-translate/core";
22
- import * as i20 from "@angular/router";
23
- import * as i21 from "../pipes/pipes.module";
24
- import * as i22 from "./badge/badge.module";
25
- import * as i23 from "@maskito/angular";
26
- import * as i24 from "./latlong/material.latlong.module";
11
+ import * as i9 from "./swipe/testing/swipe.test";
12
+ import * as i10 from "./chips/testing/chips.test";
13
+ import * as i11 from "./badge/badge.test";
14
+ import * as i12 from "../testing/observable.test";
15
+ import * as i13 from "../testing/maskito.test";
16
+ import * as i14 from "@angular/common";
17
+ import * as i15 from "@ionic/angular";
18
+ import * as i16 from "@angular/forms";
19
+ import * as i17 from "./material.module";
20
+ import * as i18 from "@ngx-translate/core";
21
+ import * as i19 from "@angular/router";
22
+ import * as i20 from "../pipes/pipes.module";
23
+ import * as i21 from "./badge/badge.module";
24
+ import * as i22 from "@maskito/angular";
25
+ import * as i23 from "./latlong/material.latlong.module";
27
26
  export declare const SHARED_MATERIAL_TESTING_PAGES: TestingPage[];
28
27
  export declare class MaterialTestingModule {
29
28
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTestingModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.MatCommonTestPage, typeof i2.DateTimeTestPage, typeof i3.DateTestPage, typeof i4.DateShortTestPage, typeof i5.DurationTestPage, typeof i6.AutocompleteTestPage, typeof i7.BooleanTestPage, typeof i8.LatLongTestPage, typeof i9.TextFormTestingPage, typeof i10.SwipeTestPage, typeof i11.ChipsTestPage, typeof i12.MatBadgeTestPage, typeof i13.ObservableTestPage, typeof i14.MaskitoTestPage], [typeof i15.CommonModule, typeof i16.IonicModule, typeof i17.ReactiveFormsModule, typeof i18.SharedMaterialModule, typeof i19.TranslateModule, typeof i20.RouterModule, typeof i21.SharedPipesModule, typeof i22.SharedBadgeModule, typeof i17.FormsModule, typeof i23.MaskitoDirective, typeof i24.SharedMatLatLongModule], [typeof i18.SharedMaterialModule, typeof i20.RouterModule, typeof i1.MatCommonTestPage, typeof i2.DateTimeTestPage, typeof i3.DateTestPage, typeof i4.DateShortTestPage, typeof i5.DurationTestPage, typeof i6.AutocompleteTestPage, typeof i7.BooleanTestPage, typeof i8.LatLongTestPage, typeof i9.TextFormTestingPage, typeof i10.SwipeTestPage, typeof i11.ChipsTestPage, typeof i12.MatBadgeTestPage, typeof i13.ObservableTestPage, typeof i14.MaskitoTestPage]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.MatCommonTestPage, typeof i2.DateTimeTestPage, typeof i3.DateTestPage, typeof i4.DateShortTestPage, typeof i5.DurationTestPage, typeof i6.AutocompleteTestPage, typeof i7.BooleanTestPage, typeof i8.LatLongTestPage, typeof i9.SwipeTestPage, typeof i10.ChipsTestPage, typeof i11.MatBadgeTestPage, typeof i12.ObservableTestPage, typeof i13.MaskitoTestPage], [typeof i14.CommonModule, typeof i15.IonicModule, typeof i16.ReactiveFormsModule, typeof i17.SharedMaterialModule, typeof i18.TranslateModule, typeof i19.RouterModule, typeof i20.SharedPipesModule, typeof i21.SharedBadgeModule, typeof i16.FormsModule, typeof i22.MaskitoDirective, typeof i23.SharedMatLatLongModule], [typeof i17.SharedMaterialModule, typeof i19.RouterModule, typeof i1.MatCommonTestPage, typeof i2.DateTimeTestPage, typeof i3.DateTestPage, typeof i4.DateShortTestPage, typeof i5.DurationTestPage, typeof i6.AutocompleteTestPage, typeof i7.BooleanTestPage, typeof i8.LatLongTestPage, typeof i9.SwipeTestPage, typeof i10.ChipsTestPage, typeof i11.MatBadgeTestPage, typeof i12.ObservableTestPage, typeof i13.MaskitoTestPage]>;
31
30
  static ɵinj: i0.ɵɵInjectorDeclaration<MaterialTestingModule>;
32
31
  }
@@ -2,10 +2,10 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { InputElement } from '../../inputs';
5
- import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
6
5
  import { Swiper } from 'swiper/types';
7
6
  import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
8
7
  import { MatButton } from '@angular/material/button';
8
+ import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../types';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, ControlValueAccessor {
11
11
  protected cd: ChangeDetectorRef;
@@ -3,7 +3,7 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import { Moment } from 'moment';
5
5
  import { DateFormatService } from '../../../pipes/date-format.pipe';
6
- import { DisplayFn } from '../../../form/field.model';
6
+ import { DisplayFn } from '../../../types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class SwipeTestPage implements OnInit {
9
9
  protected formBuilder: UntypedFormBuilder;
@@ -1,5 +1,4 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { DisplayFn } from '../form/field.model';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class IsNotNilOrBlankPipe implements PipeTransform {
5
4
  transform(value: string): boolean;
@@ -32,7 +31,7 @@ export declare class IsNilPipe implements PipeTransform {
32
31
  static ɵpipe: i0.ɵɵPipeDeclaration<IsNilPipe, "isNil", false>;
33
32
  }
34
33
  export declare class ToStringPipe implements PipeTransform {
35
- transform(value: number | object, displayWith?: DisplayFn): string;
34
+ transform(value: number | object, displayWith?: (obj: any) => string): string;
36
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ToStringPipe, never>;
37
36
  static ɵpipe: i0.ɵɵPipeDeclaration<ToStringPipe, "toString", false>;
38
37
  }
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { FloatLabelType } from '@angular/material/form-field';
4
- import { AppFloatLabelType } from '../form/field.model';
4
+ import { AppFloatLabelType } from '../types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class AsAnyPipe implements PipeTransform {
7
7
  transform<T = any>(value: unknown | any): T | null;