imng-kendo-data-entry 3.278.5 → 3.280.4

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 (76) hide show
  1. package/bundles/imng-kendo-data-entry.umd.js +80 -48
  2. package/bundles/imng-kendo-data-entry.umd.js.map +1 -1
  3. package/esm2015/lib/base-data-entry.component.js +17 -15
  4. package/esm2015/lib/base-data-entry.component.js.map +1 -1
  5. package/esm2015/lib/data-entry-dialog.component.js +24 -14
  6. package/esm2015/lib/data-entry-dialog.component.js.map +1 -1
  7. package/esm2015/lib/data-entry.module.js +12 -7
  8. package/esm2015/lib/data-entry.module.js.map +1 -1
  9. package/esm2015/lib/dialog-buttons.directive.js +7 -6
  10. package/esm2015/lib/dialog-buttons.directive.js.map +1 -1
  11. package/fesm2015/imng-kendo-data-entry.js +57 -42
  12. package/fesm2015/imng-kendo-data-entry.js.map +1 -1
  13. package/imng-kendo-data-entry.d.ts +2 -0
  14. package/imng-kendo-data-entry.d.ts.map +1 -0
  15. package/index.d.ts +1 -0
  16. package/index.d.ts.map +1 -0
  17. package/lib/base-data-entry.component.d.ts +6 -3
  18. package/lib/base-data-entry.component.d.ts.map +1 -0
  19. package/lib/data-delete-facade.d.ts +1 -0
  20. package/lib/data-delete-facade.d.ts.map +1 -0
  21. package/lib/data-entry-dialog.component.d.ts +4 -0
  22. package/lib/data-entry-dialog.component.d.ts.map +1 -0
  23. package/lib/data-entry-facade.d.ts +1 -0
  24. package/lib/data-entry-facade.d.ts.map +1 -0
  25. package/lib/data-entry.module.d.ts +9 -0
  26. package/lib/data-entry.module.d.ts.map +1 -0
  27. package/lib/dialog-buttons.directive.d.ts +4 -0
  28. package/lib/dialog-buttons.directive.d.ts.map +1 -0
  29. package/lib/form-group-patcher.d.ts +1 -0
  30. package/lib/form-group-patcher.d.ts.map +1 -0
  31. package/lib/reducer-collection-logic.d.ts +1 -0
  32. package/lib/reducer-collection-logic.d.ts.map +1 -0
  33. package/package.json +6 -7
  34. package/testing/data-delete-facade-http-tests.d.ts +1 -0
  35. package/testing/data-delete-facade-http-tests.d.ts.map +1 -0
  36. package/testing/data-delete-mock.facade.d.ts +1 -0
  37. package/testing/data-delete-mock.facade.d.ts.map +1 -0
  38. package/testing/data-entry-facade-http-tests.d.ts +1 -0
  39. package/testing/data-entry-facade-http-tests.d.ts.map +1 -0
  40. package/testing/data-entry-facade-tests.d.ts +1 -0
  41. package/testing/data-entry-facade-tests.d.ts.map +1 -0
  42. package/testing/data-entry-mock.facade.d.ts +1 -0
  43. package/testing/data-entry-mock.facade.d.ts.map +1 -0
  44. package/testing/imng-kendo-data-entry-testing.d.ts +2 -0
  45. package/testing/imng-kendo-data-entry-testing.d.ts.map +1 -0
  46. package/testing/index.d.ts +1 -0
  47. package/testing/index.d.ts.map +1 -0
  48. package/testing/mock-data-entry-dialog.component.d.ts +1 -0
  49. package/testing/mock-data-entry-dialog.component.d.ts.map +1 -0
  50. package/testing/package.json +0 -1
  51. package/testing/public_api.d.ts +1 -0
  52. package/testing/public_api.d.ts.map +1 -0
  53. package/testing/test-trigger-event-helpers.d.ts +1 -0
  54. package/testing/test-trigger-event-helpers.d.ts.map +1 -0
  55. package/esm2015/imng-kendo-data-entry.metadata.json +0 -1
  56. package/esm2015/index.metadata.json +0 -1
  57. package/esm2015/lib/base-data-entry.component.metadata.json +0 -1
  58. package/esm2015/lib/data-delete-facade.metadata.json +0 -1
  59. package/esm2015/lib/data-entry-dialog.component.metadata.json +0 -1
  60. package/esm2015/lib/data-entry-facade.metadata.json +0 -1
  61. package/esm2015/lib/data-entry.module.metadata.json +0 -1
  62. package/esm2015/lib/dialog-buttons.directive.metadata.json +0 -1
  63. package/esm2015/lib/form-group-patcher.metadata.json +0 -1
  64. package/esm2015/lib/reducer-collection-logic.metadata.json +0 -1
  65. package/esm2015/testing/data-delete-facade-http-tests.metadata.json +0 -1
  66. package/esm2015/testing/data-delete-mock.facade.metadata.json +0 -1
  67. package/esm2015/testing/data-entry-facade-http-tests.metadata.json +0 -1
  68. package/esm2015/testing/data-entry-facade-tests.metadata.json +0 -1
  69. package/esm2015/testing/data-entry-mock.facade.metadata.json +0 -1
  70. package/esm2015/testing/imng-kendo-data-entry-testing.metadata.json +0 -1
  71. package/esm2015/testing/index.metadata.json +0 -1
  72. package/esm2015/testing/mock-data-entry-dialog.component.metadata.json +0 -1
  73. package/esm2015/testing/public_api.metadata.json +0 -1
  74. package/esm2015/testing/test-trigger-event-helpers.metadata.json +0 -1
  75. package/imng-kendo-data-entry.metadata.json +0 -1
  76. package/testing/imng-kendo-data-entry-testing.metadata.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-buttons.directive.js","sourceRoot":"","sources":["../../../../../libs/imng-kendo-data-entry/src/lib/dialog-buttons.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGvD,MAAM,OAAO,sBAAsB;IACjC,YAAmB,GAAyB;QAAzB,QAAG,GAAH,GAAG,CAAsB;IAAI,CAAC;;;YAFlD,SAAS,SAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE;;;YAFvB,WAAW","sourcesContent":["import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[imngDialogBtns]' })\nexport class DialogButtonsDirective {\n constructor(public tpl: TemplateRef<unknown>) { }\n}\n"]}
1
+ {"version":3,"file":"dialog-buttons.directive.js","sourceRoot":"","sources":["../../../../../libs/imng-kendo-data-entry/src/lib/dialog-buttons.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;AAGvD,MAAM,OAAO,sBAAsB;IACjC,YAAmB,GAAyB;QAAzB,QAAG,GAAH,GAAG,CAAsB;IAAI,CAAC;;mHADtC,sBAAsB;uGAAtB,sBAAsB;2FAAtB,sBAAsB;kBADlC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE","sourcesContent":["import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[imngDialogBtns]' })\nexport class DialogButtonsDirective {\n constructor(public tpl: TemplateRef<unknown>) { }\n}\n"]}
@@ -1,11 +1,14 @@
1
- import { InjectionToken, Inject, Input, Directive, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Directive, Inject, Input, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
2
4
  import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@progress/kendo-angular-dialog';
3
6
  import { DialogModule } from '@progress/kendo-angular-dialog';
4
7
  import { BehaviorSubject } from 'rxjs';
5
8
  import { Subscriptions } from 'imng-ngrx-utils';
6
9
  import { filter, take, tap } from 'rxjs/operators';
7
10
 
8
- const FACADE = new InjectionToken('facade');
11
+ const FACADE = new InjectionToken('imng-data-entry-facade');
9
12
  /**
10
13
  * The extending class has to implement the following properties on ngInit
11
14
  * dialogTitle: string - This will be the text displayed at the top of the modal title bar
@@ -19,17 +22,13 @@ const FACADE = new InjectionToken('facade');
19
22
  * @class BaseDataEntryComponent>
20
23
  */
21
24
  class BaseDataEntryComponent {
22
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
- constructor(injectedFacade) {
24
- this.injectedFacade = injectedFacade;
25
+ constructor(facade) {
26
+ this.facade = facade;
25
27
  this.allSubscriptions = new Subscriptions();
26
28
  this._submitted$ = new BehaviorSubject(false);
27
29
  this.loading$ = this.facade.loading$;
28
30
  this.initForm();
29
31
  }
30
- get facade() {
31
- return this.injectedFacade;
32
- }
33
32
  get submitted$() {
34
33
  return this._submitted$.asObservable();
35
34
  }
@@ -65,25 +64,30 @@ class BaseDataEntryComponent {
65
64
  return this.addEditForm.invalid;
66
65
  }
67
66
  }
68
- BaseDataEntryComponent.ctorParameters = () => [
69
- { type: undefined, decorators: [{ type: Inject, args: [FACADE,] }] }
70
- ];
71
- BaseDataEntryComponent.propDecorators = {
72
- width: [{ type: Input }],
73
- height: [{ type: Input }]
74
- };
67
+ BaseDataEntryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseDataEntryComponent, deps: [{ token: FACADE }], target: i0.ɵɵFactoryTarget.Directive });
68
+ BaseDataEntryComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: BaseDataEntryComponent, inputs: { width: "width", height: "height" }, ngImport: i0 });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseDataEntryComponent, decorators: [{
70
+ type: Directive
71
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
72
+ type: Inject,
73
+ args: [FACADE]
74
+ }] }]; }, propDecorators: { width: [{
75
+ type: Input
76
+ }], height: [{
77
+ type: Input
78
+ }] } });
75
79
 
76
80
  class DialogButtonsDirective {
77
81
  constructor(tpl) {
78
82
  this.tpl = tpl;
79
83
  }
80
84
  }
81
- DialogButtonsDirective.decorators = [
82
- { type: Directive, args: [{ selector: '[imngDialogBtns]' },] }
83
- ];
84
- DialogButtonsDirective.ctorParameters = () => [
85
- { type: TemplateRef }
86
- ];
85
+ DialogButtonsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DialogButtonsDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
86
+ DialogButtonsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: DialogButtonsDirective, selector: "[imngDialogBtns]", ngImport: i0 });
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DialogButtonsDirective, decorators: [{
88
+ type: Directive,
89
+ args: [{ selector: '[imngDialogBtns]' }]
90
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
87
91
 
88
92
  class DataEntryDialogComponent {
89
93
  constructor() {
@@ -110,30 +114,41 @@ class DataEntryDialogComponent {
110
114
  return { $implicit: { cancel: () => this.cancel(), submit: () => this.submit() } };
111
115
  }
112
116
  }
113
- DataEntryDialogComponent.decorators = [
114
- { type: Component, args: [{
115
- selector: 'imng-data-entry-dialog[parentComponent]',
116
- template: "<kendo-dialog [width]=\"width\" [height]=\"height\" (close)=\"close()\">\n <kendo-dialog-titlebar class=\"bg-primary\">{{ dialogTitle }}</kendo-dialog-titlebar>\n <ng-content></ng-content>\n <kendo-dialog-actions>\n <ng-container *ngTemplateOutlet=\"dialogBtnsTemplate || defaultDialogActionsTpl; context: dialogActionBtnsCtx\">\n </ng-container>\n </kendo-dialog-actions>\n</kendo-dialog>\n\n<ng-template #defaultDialogActionsTpl>\n <button id=\"btnCancel\" class=\"k-button\" (click)=\"cancel()\">Cancel</button>\n <button id=\"btnSave\" class=\"k-button k-primary\" (click)=\"submit()\">{{ saveButtonText }}</button>\n</ng-template>\n",
117
- changeDetection: ChangeDetectionStrategy.OnPush
118
- },] }
119
- ];
120
- DataEntryDialogComponent.propDecorators = {
121
- width: [{ type: Input }],
122
- height: [{ type: Input }],
123
- parentComponent: [{ type: Input }],
124
- saveButtonText: [{ type: Input }],
125
- dialogBtnsTemplate: [{ type: ContentChild, args: [DialogButtonsDirective, { static: true, read: TemplateRef },] }]
126
- };
117
+ DataEntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DataEntryDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
118
+ DataEntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: DataEntryDialogComponent, selector: "imng-data-entry-dialog[parentComponent]", inputs: { width: "width", height: "height", parentComponent: "parentComponent", saveButtonText: "saveButtonText" }, queries: [{ propertyName: "dialogBtnsTemplate", first: true, predicate: DialogButtonsDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<kendo-dialog [width]=\"width\" [height]=\"height\" (close)=\"close()\">\n <kendo-dialog-titlebar class=\"bg-primary\">{{ dialogTitle }}</kendo-dialog-titlebar>\n <ng-content></ng-content>\n <kendo-dialog-actions>\n <ng-container *ngTemplateOutlet=\"dialogBtnsTemplate || defaultDialogActionsTpl; context: dialogActionBtnsCtx\">\n </ng-container>\n </kendo-dialog-actions>\n</kendo-dialog>\n\n<ng-template #defaultDialogActionsTpl>\n <button id=\"btnCancel\" class=\"k-button\" (click)=\"cancel()\">Cancel</button>\n <button id=\"btnSave\" class=\"k-button k-primary\" (click)=\"submit()\">{{ saveButtonText }}</button>\n</ng-template>\n", components: [{ type: i1.DialogComponent, selector: "kendo-dialog", inputs: ["actionsLayout", "actions", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["layout", "actions"], outputs: ["action"] }], directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DataEntryDialogComponent, decorators: [{
120
+ type: Component,
121
+ args: [{
122
+ selector: 'imng-data-entry-dialog[parentComponent]',
123
+ templateUrl: './data-entry-dialog.component.html',
124
+ changeDetection: ChangeDetectionStrategy.OnPush,
125
+ }]
126
+ }], propDecorators: { width: [{
127
+ type: Input
128
+ }], height: [{
129
+ type: Input
130
+ }], parentComponent: [{
131
+ type: Input
132
+ }], saveButtonText: [{
133
+ type: Input
134
+ }], dialogBtnsTemplate: [{
135
+ type: ContentChild,
136
+ args: [DialogButtonsDirective, { static: true, read: TemplateRef }]
137
+ }] } });
127
138
 
128
139
  class ImngDataEntryDialogModule {
129
140
  }
130
- ImngDataEntryDialogModule.decorators = [
131
- { type: NgModule, args: [{
132
- imports: [CommonModule, DialogModule],
133
- declarations: [DataEntryDialogComponent, DialogButtonsDirective],
134
- exports: [DataEntryDialogComponent, DialogButtonsDirective],
135
- },] }
136
- ];
141
+ ImngDataEntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
142
+ ImngDataEntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, declarations: [DataEntryDialogComponent, DialogButtonsDirective], imports: [CommonModule, DialogModule], exports: [DataEntryDialogComponent, DialogButtonsDirective] });
143
+ ImngDataEntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, imports: [[CommonModule, DialogModule]] });
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, decorators: [{
145
+ type: NgModule,
146
+ args: [{
147
+ imports: [CommonModule, DialogModule],
148
+ declarations: [DataEntryDialogComponent, DialogButtonsDirective],
149
+ exports: [DataEntryDialogComponent, DialogButtonsDirective],
150
+ }]
151
+ }] });
137
152
 
138
153
  function updateStateCollectionItem(collection, item) {
139
154
  const items = [...collection];
@@ -1 +1 @@
1
- {"version":3,"file":"imng-kendo-data-entry.js","sources":["../../../../libs/imng-kendo-data-entry/src/lib/base-data-entry.component.ts","../../../../libs/imng-kendo-data-entry/src/lib/dialog-buttons.directive.ts","../../../../libs/imng-kendo-data-entry/src/lib/data-entry-dialog.component.ts","../../../../libs/imng-kendo-data-entry/src/lib/data-entry.module.ts","../../../../libs/imng-kendo-data-entry/src/lib/reducer-collection-logic.ts","../../../../libs/imng-kendo-data-entry/src/lib/form-group-patcher.ts","../../../../libs/imng-kendo-data-entry/src/imng-kendo-data-entry.ts"],"sourcesContent":["import { Inject, Input, OnDestroy, InjectionToken } from '@angular/core';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { FormGroup, AbstractControl, ValidationErrors } from '@angular/forms';\nimport { IBaseDataEntryFacade } from './data-entry-facade';\nimport { Subscribable, Subscriptions } from 'imng-ngrx-utils';\n\nconst FACADE = new InjectionToken<{\n loading$: Observable<boolean>;\n clearCurrentEntity(): void;\n}>('facade');\n\n\n/**\n * The extending class has to implement the following properties on ngInit\n * dialogTitle: string - This will be the text displayed at the top of the modal title bar\n * props: enum - This is a helper property to make the html markup type safe\n *\n * Along with the requirements above, the extending class has to set values to the\n * following properties on ngInit\n * active$: Observable<boolean> - This typically would be assigned to the isNewActive$ or isEditActive on the facade\n * addEditForm: FormGroup - This will be created by your component\n *\n * @class BaseDataEntryComponent>\n */\nexport abstract class BaseDataEntryComponent<FACADE extends IBaseDataEntryFacade> implements OnDestroy, Subscribable {\n @Input() public width: string | number;\n @Input() public height: string | number;\n protected get facade(): FACADE {\n return this.injectedFacade;\n }\n\n public allSubscriptions = new Subscriptions();\n public abstract dialogTitle: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public abstract props: any;\n public addEditForm: FormGroup;\n public loading$: Observable<boolean>;\n private readonly _submitted$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n public get submitted$(): Observable<boolean> {\n return this._submitted$.asObservable();\n }\n // convenience getter for easy access to form fields\n public formControl(controlName: string): AbstractControl {\n return this.addEditForm.controls[controlName];\n }\n public formControlErrors(controlName: string): ValidationErrors {\n return this.addEditForm.controls[controlName].errors;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n constructor(@Inject(FACADE) private readonly injectedFacade: any) { //NOSONAR\n this.loading$ = this.facade.loading$;\n this.initForm();\n }\n\n public ngOnDestroy(): void {\n this.allSubscriptions.unsubscribeAll();\n }\n\n public closeForm(): void {\n this.initForm();\n this.facade.clearCurrentEntity();\n this._submitted$.next(false);\n }\n\n public onCancel(): void {\n this.closeForm();\n }\n\n public onSubmit(): void {\n this._submitted$.next(true);\n\n // stop here if form is invalid\n if (this.isDataInvalid()) {\n console.log('form validation errors.');\n return;\n }\n this.save();\n this.closeForm();\n }\n\n protected isDataInvalid(): boolean {\n return this.addEditForm.invalid;\n }\n\n public abstract initForm(): void;\n public abstract save(): void;\n}\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[imngDialogBtns]' })\nexport class DialogButtonsDirective {\n constructor(public tpl: TemplateRef<unknown>) { }\n}\n","import { Component, OnInit, Input, ChangeDetectionStrategy, TemplateRef, ContentChild } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { FormGroup } from '@angular/forms';\nimport { BaseDataEntryComponent } from './base-data-entry.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\n\n@Component({\n selector: 'imng-data-entry-dialog[parentComponent]',\n templateUrl: './data-entry-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataEntryDialogComponent implements OnInit {\n @Input() public width: string | number;\n @Input() public height: string | number;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() public parentComponent: BaseDataEntryComponent<any>;//NOSONAR\n @Input() public saveButtonText = 'Save';\n @ContentChild(DialogButtonsDirective, { static: true, read: TemplateRef })\n public dialogBtnsTemplate: TemplateRef<unknown>;\n public loading$: Observable<boolean>;\n public addEditForm: FormGroup;\n public submitted: boolean;\n public dialogTitle: string;\n // eslint-disable-next-line @typescript-eslint/ban-types\n public component: {};\n\n public ngOnInit(): void {\n if (!this.parentComponent) {\n throw new TypeError(`The input 'parentComponent' is required`);\n }\n this.dialogTitle = this.parentComponent.dialogTitle;\n this.loading$ = this.parentComponent.loading$;\n this.addEditForm = this.parentComponent.addEditForm;\n }\n\n public close(): void {\n this.parentComponent.closeForm();\n }\n public cancel(): void {\n this.parentComponent.onCancel();\n }\n public submit(): void {\n this.parentComponent.onSubmit();\n }\n get dialogActionBtnsCtx(): unknown {\n return { $implicit: { cancel: () => this.cancel(), submit: () => this.submit() } };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DialogModule } from '@progress/kendo-angular-dialog';\nimport { DataEntryDialogComponent } from './data-entry-dialog.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\n\n@NgModule({\n imports: [CommonModule, DialogModule],\n declarations: [DataEntryDialogComponent, DialogButtonsDirective],\n exports: [DataEntryDialogComponent, DialogButtonsDirective],\n})\nexport class ImngDataEntryDialogModule { }\n","import { ValueType } from 'imng-nrsrx-client-utils';\nexport function updateStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity,\n): Entity[] {\n const items = [...collection];\n const index = collection.indexOf(collection.find(val => val.id === item.id));\n items.splice(index, 1, item);\n return items;\n}\n\nexport function removeStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity,\n): Entity[] {\n const items = [...collection];\n const index = collection.indexOf(collection.find(val => val.id === item.id));\n items.splice(index, 1);\n return items;\n}\n\nexport function addStateCollectionItem<Entity extends { id?: ValueType; }>(collection: Entity[], item: Entity): Entity[] {\n const items = [...collection];\n items.unshift(item);\n return items;\n}\n","import { FormGroup } from '@angular/forms';\nimport { take, tap, filter } from 'rxjs/operators';\nimport { Observable } from 'rxjs';\n\nexport const formGroupPatcher = <TEntity>(addEditForm: FormGroup) => (source: Observable<TEntity>) =>\n source.pipe(\n filter(t => !!t),\n take(1),\n tap(t => addEditForm.patchValue(t)),\n );\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA,MAAM,MAAM,GAAG,IAAI,cAAc,CAG9B,QAAQ,CAAC,CAAC;AAGb;;;;;;;;;;;;MAYsB,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G,CAAC,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;;ACRvC;;;;;;"}
1
+ {"version":3,"file":"imng-kendo-data-entry.js","sources":["../../../../libs/imng-kendo-data-entry/src/lib/base-data-entry.component.ts","../../../../libs/imng-kendo-data-entry/src/lib/dialog-buttons.directive.ts","../../../../libs/imng-kendo-data-entry/src/lib/data-entry-dialog.component.ts","../../../../libs/imng-kendo-data-entry/src/lib/data-entry-dialog.component.html","../../../../libs/imng-kendo-data-entry/src/lib/data-entry.module.ts","../../../../libs/imng-kendo-data-entry/src/lib/reducer-collection-logic.ts","../../../../libs/imng-kendo-data-entry/src/lib/form-group-patcher.ts","../../../../libs/imng-kendo-data-entry/src/imng-kendo-data-entry.ts"],"sourcesContent":["import { Directive, Inject, InjectionToken, Input, OnDestroy } from '@angular/core';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { FormGroup, AbstractControl, ValidationErrors } from '@angular/forms';\nimport { IBaseDataEntryFacade } from './data-entry-facade';\nimport { Subscribable, Subscriptions } from 'imng-ngrx-utils';\n\nconst FACADE = new InjectionToken<IBaseDataEntryFacade>('imng-data-entry-facade');\n\n/**\n * The extending class has to implement the following properties on ngInit\n * dialogTitle: string - This will be the text displayed at the top of the modal title bar\n * props: enum - This is a helper property to make the html markup type safe\n *\n * Along with the requirements above, the extending class has to set values to the\n * following properties on ngInit\n * active$: Observable<boolean> - This typically would be assigned to the isNewActive$ or isEditActive on the facade\n * addEditForm: FormGroup - This will be created by your component\n *\n * @class BaseDataEntryComponent>\n */\n@Directive()\nexport abstract class BaseDataEntryComponent<FACADE extends IBaseDataEntryFacade> implements OnDestroy, Subscribable {\n @Input() public width: string | number;\n @Input() public height: string | number;\n\n public allSubscriptions = new Subscriptions();\n public abstract dialogTitle: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public abstract props: any;\n public addEditForm: FormGroup;\n public loading$: Observable<boolean>;\n private readonly _submitted$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n public get submitted$(): Observable<boolean> {\n return this._submitted$.asObservable();\n }\n // convenience getter for easy access to form fields\n public formControl(controlName: string): AbstractControl {\n return this.addEditForm.controls[controlName];\n }\n public formControlErrors(controlName: string): ValidationErrors {\n return this.addEditForm.controls[controlName].errors;\n }\n constructor(@Inject(FACADE) public readonly facade: FACADE) {\n this.loading$ = this.facade.loading$;\n this.initForm();\n }\n\n public ngOnDestroy(): void {\n this.allSubscriptions.unsubscribeAll();\n }\n\n public closeForm(): void {\n this.initForm();\n this.facade.clearCurrentEntity();\n this._submitted$.next(false);\n }\n\n public onCancel(): void {\n this.closeForm();\n }\n\n public onSubmit(): void {\n this._submitted$.next(true);\n\n // stop here if form is invalid\n if (this.isDataInvalid()) {\n console.log('form validation errors.');\n return;\n }\n this.save();\n this.closeForm();\n }\n\n protected isDataInvalid(): boolean {\n return this.addEditForm.invalid;\n }\n\n public abstract initForm(): void;\n public abstract save(): void;\n}\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[imngDialogBtns]' })\nexport class DialogButtonsDirective {\n constructor(public tpl: TemplateRef<unknown>) { }\n}\n","import { Component, OnInit, Input, ChangeDetectionStrategy, TemplateRef, ContentChild } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { FormGroup } from '@angular/forms';\nimport { BaseDataEntryComponent } from './base-data-entry.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\n\n@Component({\n selector: 'imng-data-entry-dialog[parentComponent]',\n templateUrl: './data-entry-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataEntryDialogComponent implements OnInit {\n @Input() public width: string | number;\n @Input() public height: string | number;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() public parentComponent: BaseDataEntryComponent<any>;//NOSONAR\n @Input() public saveButtonText = 'Save';\n @ContentChild(DialogButtonsDirective, { static: true, read: TemplateRef })\n public dialogBtnsTemplate: TemplateRef<unknown>;\n public loading$: Observable<boolean>;\n public addEditForm: FormGroup;\n public submitted: boolean;\n public dialogTitle: string;\n // eslint-disable-next-line @typescript-eslint/ban-types\n public component: {};\n\n public ngOnInit(): void {\n if (!this.parentComponent) {\n throw new TypeError(`The input 'parentComponent' is required`);\n }\n this.dialogTitle = this.parentComponent.dialogTitle;\n this.loading$ = this.parentComponent.loading$;\n this.addEditForm = this.parentComponent.addEditForm;\n }\n\n public close(): void {\n this.parentComponent.closeForm();\n }\n public cancel(): void {\n this.parentComponent.onCancel();\n }\n public submit(): void {\n this.parentComponent.onSubmit();\n }\n get dialogActionBtnsCtx(): unknown {\n return { $implicit: { cancel: () => this.cancel(), submit: () => this.submit() } };\n }\n}\n","<kendo-dialog [width]=\"width\" [height]=\"height\" (close)=\"close()\">\n <kendo-dialog-titlebar class=\"bg-primary\">{{ dialogTitle }}</kendo-dialog-titlebar>\n <ng-content></ng-content>\n <kendo-dialog-actions>\n <ng-container *ngTemplateOutlet=\"dialogBtnsTemplate || defaultDialogActionsTpl; context: dialogActionBtnsCtx\">\n </ng-container>\n </kendo-dialog-actions>\n</kendo-dialog>\n\n<ng-template #defaultDialogActionsTpl>\n <button id=\"btnCancel\" class=\"k-button\" (click)=\"cancel()\">Cancel</button>\n <button id=\"btnSave\" class=\"k-button k-primary\" (click)=\"submit()\">{{ saveButtonText }}</button>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DialogModule } from '@progress/kendo-angular-dialog';\nimport { DataEntryDialogComponent } from './data-entry-dialog.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\n\n@NgModule({\n imports: [CommonModule, DialogModule],\n declarations: [DataEntryDialogComponent, DialogButtonsDirective],\n exports: [DataEntryDialogComponent, DialogButtonsDirective],\n})\nexport class ImngDataEntryDialogModule { }\n","import { ValueType } from 'imng-nrsrx-client-utils';\nexport function updateStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity,\n): Entity[] {\n const items = [...collection];\n const index = collection.indexOf(collection.find(val => val.id === item.id));\n items.splice(index, 1, item);\n return items;\n}\n\nexport function removeStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity,\n): Entity[] {\n const items = [...collection];\n const index = collection.indexOf(collection.find(val => val.id === item.id));\n items.splice(index, 1);\n return items;\n}\n\nexport function addStateCollectionItem<Entity extends { id?: ValueType; }>(collection: Entity[], item: Entity): Entity[] {\n const items = [...collection];\n items.unshift(item);\n return items;\n}\n","import { FormGroup } from '@angular/forms';\nimport { take, tap, filter } from 'rxjs/operators';\nimport { Observable } from 'rxjs';\n\nexport const formGroupPatcher = <TEntity>(addEditForm: FormGroup) => (source: Observable<TEntity>) =>\n source.pipe(\n filter(t => !!t),\n take(1),\n tap(t => addEditForm.patchValue(t)),\n );\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAMA,MAAM,MAAM,GAAG,IAAI,cAAc,CAAuB,wBAAwB,CAAC,CAAC;AAElF;;;;;;;;;;;;MAasB,sBAAsB;IAsB1C,YAA4C,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAlBnD,qBAAgB,GAAG,IAAI,aAAa,EAAE,CAAC;QAM7B,gBAAW,GAA6B,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;QAalF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAbD,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;KACxC;;IAEM,WAAW,CAAC,WAAmB;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;KAC/C;IACM,iBAAiB,CAAC,WAAmB;QAC1C,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC;KACtD;IAMM,WAAW;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.
3
3
  */
4
+ /// <amd-module name="imng-kendo-data-entry" />
4
5
  export * from './index';
6
+ //# sourceMappingURL=imng-kendo-data-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imng-kendo-data-entry.d.ts","sourceRoot":"","sources":["../../../libs/imng-kendo-data-entry/src/imng-kendo-data-entry.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
package/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './lib/data-delete-facade';
6
6
  export * from './lib/reducer-collection-logic';
7
7
  export * from './lib/form-group-patcher';
8
8
  export * from './lib/dialog-buttons.directive';
9
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/imng-kendo-data-entry/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC"}
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
3
3
  import { FormGroup, AbstractControl, ValidationErrors } from '@angular/forms';
4
4
  import { IBaseDataEntryFacade } from './data-entry-facade';
5
5
  import { Subscribable, Subscriptions } from 'imng-ngrx-utils';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * The extending class has to implement the following properties on ngInit
8
9
  * dialogTitle: string - This will be the text displayed at the top of the modal title bar
@@ -16,10 +17,9 @@ import { Subscribable, Subscriptions } from 'imng-ngrx-utils';
16
17
  * @class BaseDataEntryComponent>
17
18
  */
18
19
  export declare abstract class BaseDataEntryComponent<FACADE extends IBaseDataEntryFacade> implements OnDestroy, Subscribable {
19
- private readonly injectedFacade;
20
+ readonly facade: FACADE;
20
21
  width: string | number;
21
22
  height: string | number;
22
- protected get facade(): FACADE;
23
23
  allSubscriptions: Subscriptions;
24
24
  abstract dialogTitle: string;
25
25
  abstract props: any;
@@ -29,7 +29,7 @@ export declare abstract class BaseDataEntryComponent<FACADE extends IBaseDataEnt
29
29
  get submitted$(): Observable<boolean>;
30
30
  formControl(controlName: string): AbstractControl;
31
31
  formControlErrors(controlName: string): ValidationErrors;
32
- constructor(injectedFacade: any);
32
+ constructor(facade: FACADE);
33
33
  ngOnDestroy(): void;
34
34
  closeForm(): void;
35
35
  onCancel(): void;
@@ -37,4 +37,7 @@ export declare abstract class BaseDataEntryComponent<FACADE extends IBaseDataEnt
37
37
  protected isDataInvalid(): boolean;
38
38
  abstract initForm(): void;
39
39
  abstract save(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseDataEntryComponent<any>, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseDataEntryComponent<any>, never, never, { "width": "width"; "height": "height"; }, {}, never>;
40
42
  }
43
+ //# sourceMappingURL=base-data-entry.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-data-entry.component.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/base-data-entry.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,SAAS,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,UAAU,EAAmB,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;;AAI9D;;;;;;;;;;;GAWG;AACH,8BACsB,sBAAsB,CAAC,MAAM,SAAS,oBAAoB,CAAE,YAAW,SAAS,EAAE,YAAY;aAsBtE,MAAM,EAAE,MAAM;IArB1C,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAEjC,gBAAgB,gBAAuB;IAC9C,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC,SAAgB,KAAK,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwD;IAEpF,IAAW,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,CAE3C;IAEM,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe;IAGjD,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB;gBAGnB,MAAM,EAAE,MAAM;IAKnD,WAAW,IAAI,IAAI;IAInB,SAAS,IAAI,IAAI;IAMjB,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;IAYvB,SAAS,CAAC,aAAa,IAAI,OAAO;aAIlB,QAAQ,IAAI,IAAI;aAChB,IAAI,IAAI,IAAI;yCA1DR,sBAAsB;2CAAtB,sBAAsB;CA2D3C"}
@@ -1,3 +1,4 @@
1
1
  export interface IDataDeleteFacade<Entity> {
2
2
  deleteExistingEntity(entity: Entity): void;
3
3
  }
4
+ //# sourceMappingURL=data-delete-facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-delete-facade.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/data-delete-facade.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,MAAM;IACvC,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C"}
@@ -2,6 +2,7 @@ import { OnInit, TemplateRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { BaseDataEntryComponent } from './base-data-entry.component';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class DataEntryDialogComponent implements OnInit {
6
7
  width: string | number;
7
8
  height: string | number;
@@ -18,4 +19,7 @@ export declare class DataEntryDialogComponent implements OnInit {
18
19
  cancel(): void;
19
20
  submit(): void;
20
21
  get dialogActionBtnsCtx(): unknown;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataEntryDialogComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataEntryDialogComponent, "imng-data-entry-dialog[parentComponent]", never, { "width": "width"; "height": "height"; "parentComponent": "parentComponent"; "saveButtonText": "saveButtonText"; }, {}, ["dialogBtnsTemplate"], ["*"]>;
21
24
  }
25
+ //# sourceMappingURL=data-entry-dialog.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry-dialog.component.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/data-entry-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAkC,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAGrE,qBAKa,wBAAyB,YAAW,MAAM;IACrC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB,eAAe,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAC7C,cAAc,SAAU;IAEjC,kBAAkB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC9B,WAAW,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,EAAE,CAAC;IAEd,QAAQ,IAAI,IAAI;IAShB,KAAK,IAAI,IAAI;IAGb,MAAM,IAAI,IAAI;IAGd,MAAM,IAAI,IAAI;IAGrB,IAAI,mBAAmB,IAAI,OAAO,CAEjC;yCAnCU,wBAAwB;2CAAxB,wBAAwB;CAoCpC"}
@@ -11,3 +11,4 @@ export interface IBaseDataEntryFacade {
11
11
  isNewActive$: Observable<boolean>;
12
12
  clearCurrentEntity(): void;
13
13
  }
14
+ //# sourceMappingURL=data-entry-facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry-facade.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/data-entry-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,WAAW,gBAAgB,CAAC,MAAM,CAAE,SAAQ,oBAAoB;IACpE,cAAc,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC9B,aAAa,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAClC,kBAAkB,IAAI,IAAI,CAAC;CAC5B"}
@@ -1,2 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./data-entry-dialog.component";
3
+ import * as i2 from "./dialog-buttons.directive";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@progress/kendo-angular-dialog";
1
6
  export declare class ImngDataEntryDialogModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImngDataEntryDialogModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImngDataEntryDialogModule, [typeof i1.DataEntryDialogComponent, typeof i2.DialogButtonsDirective], [typeof i3.CommonModule, typeof i4.DialogModule], [typeof i1.DataEntryDialogComponent, typeof i2.DialogButtonsDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ImngDataEntryDialogModule>;
2
10
  }
11
+ //# sourceMappingURL=data-entry.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry.module.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/data-entry.module.ts"],"names":[],"mappings":";;;;;AAMA,qBAKa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAI"}
@@ -1,5 +1,9 @@
1
1
  import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class DialogButtonsDirective {
3
4
  tpl: TemplateRef<unknown>;
4
5
  constructor(tpl: TemplateRef<unknown>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogButtonsDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DialogButtonsDirective, "[imngDialogBtns]", never, {}, {}, never>;
5
8
  }
9
+ //# sourceMappingURL=dialog-buttons.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-buttons.directive.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/dialog-buttons.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC;;AAEvD,qBACa,sBAAsB;IACd,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC;gBAAzB,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC;yCADjC,sBAAsB;2CAAtB,sBAAsB;CAElC"}
@@ -1,3 +1,4 @@
1
1
  import { FormGroup } from '@angular/forms';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const formGroupPatcher: <TEntity>(addEditForm: FormGroup) => (source: Observable<TEntity>) => Observable<TEntity>;
4
+ //# sourceMappingURL=form-group-patcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-group-patcher.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/form-group-patcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,eAAO,MAAM,gBAAgB,yBAA0B,SAAS,yDAK7D,CAAC"}
@@ -8,3 +8,4 @@ export declare function removeStateCollectionItem<Entity extends {
8
8
  export declare function addStateCollectionItem<Entity extends {
9
9
  id?: ValueType;
10
10
  }>(collection: Entity[], item: Entity): Entity[];
11
+ //# sourceMappingURL=reducer-collection-logic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducer-collection-logic.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/src/lib/reducer-collection-logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,wBAAgB,yBAAyB,CAAC,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,SAAS,CAAC;CAAE,EAC1E,UAAU,EAAE,MAAM,EAAE,EACpB,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,CAKV;AAED,wBAAgB,yBAAyB,CAAC,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,SAAS,CAAC;CAAE,EAC1E,UAAU,EAAE,MAAM,EAAE,EACpB,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,CAKV;AAED,wBAAgB,sBAAsB,CAAC,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,SAAS,CAAC;CAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAIvH"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "imng-kendo-data-entry",
3
- "version": "3.278.5",
3
+ "version": "3.280.4",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": ">=2.x"
7
7
  },
8
8
  "peerDependencies": {
9
- "@angular/common": ">=11.x",
10
- "@angular/core": ">=11.x",
11
- "@angular/forms": ">=11.x",
12
- "@angular/platform-browser": ">=11.x",
9
+ "@angular/common": ">=12.x",
10
+ "@angular/core": ">=12.x",
11
+ "@angular/forms": ">=12.x",
12
+ "@angular/platform-browser": ">=12.x",
13
13
  "@ngrx/store": ">=11.x",
14
14
  "@nrwl/angular": ">=11.x",
15
- "@progress/kendo-angular-dialog": ">=4.x",
15
+ "@progress/kendo-angular-dialog": ">=5.x",
16
16
  "imng-nrsrx-client-utils": "*",
17
17
  "imng-ngrx-utils": "*",
18
18
  "rxjs": ">=6.x"
@@ -33,6 +33,5 @@
33
33
  "esm2015": "esm2015/imng-kendo-data-entry.js",
34
34
  "fesm2015": "fesm2015/imng-kendo-data-entry.js",
35
35
  "typings": "imng-kendo-data-entry.d.ts",
36
- "metadata": "imng-kendo-data-entry.metadata.json",
37
36
  "sideEffects": false
38
37
  }
@@ -2,3 +2,4 @@ import { HttpClient } from '@angular/common/http';
2
2
  export declare function testDeleteCurrentEntity<TFacade extends {
3
3
  deleteExistingEntity(entity: unknown): void;
4
4
  }>(facade: TFacade, httpClient: HttpClient): Promise<void>;
5
+ //# sourceMappingURL=data-delete-facade-http-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-delete-facade-http-tests.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/data-delete-facade-http-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,wBAAsB,uBAAuB,CAAC,OAAO,SAAS;IAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,EAC5G,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,IAAI,CAAC,CAaf"}
@@ -4,3 +4,4 @@ export declare class DataDeleteMockFacade implements IDataDeleteFacade<any> {
4
4
  deleteExistingEntity: jest.Mock<any, any>;
5
5
  }
6
6
  export declare function createDataDeleteMockFacade(mockFacade?: IDataDeleteFacade<object> | any): IDataDeleteFacade<object>;
7
+ //# sourceMappingURL=data-delete-mock.facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-delete-mock.facade.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/data-delete-mock.facade.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBAAa,oBAAqB,YAAW,iBAAiB,CAAC,GAAG,CAAC;IACjE,oBAAoB,sBAAa;CAClC;AAGD,wBAAgB,0BAA0B,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAOlH"}
@@ -5,3 +5,4 @@ export declare function testSaveCurrentEntity<TFacade extends {
5
5
  export declare function testUpdateCurrentEntity<TFacade extends {
6
6
  updateExistingEntity(entity: unknown): void;
7
7
  }>(facade: TFacade, httpClient: HttpClient): Promise<void>;
8
+ //# sourceMappingURL=data-entry-facade-http-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry-facade-http-tests.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/data-entry-facade-http-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,wBAAsB,qBAAqB,CAAC,OAAO,SAAS;IAAE,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,EACnG,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,IAAI,CAAC,CAWf;AAED,wBAAsB,uBAAuB,CAAC,OAAO,SAAS;IAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,EAC5G,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,IAAI,CAAC,CAaf"}
@@ -8,3 +8,4 @@ export interface TestableFacade {
8
8
  setCurrentEntity(entity: unknown, parentEntity?: unknown): void;
9
9
  clearCurrentEntity(): void;
10
10
  }
11
+ //# sourceMappingURL=data-entry-facade-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry-facade-tests.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/data-entry-facade-tests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,wBAAsB,+BAA+B,CAClD,OAAO,SAAS,cAAc,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAejE;AAED,wBAAsB,gCAAgC,CAAC,OAAO,SAAS,cAAc,EACnF,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAef;AAoBD,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,aAAa,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAClC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChE,kBAAkB,IAAI,IAAI,CAAC;CAC5B"}
@@ -12,3 +12,4 @@ export declare class DataEntryMockFacade implements IDataEntryFacade<object> {
12
12
  updateExistingEntity: jest.Mock<any, any>;
13
13
  }
14
14
  export declare function createDataEntryMockFacade(mockFacade?: IDataEntryFacade<object> | any): IDataEntryFacade<object>;
15
+ //# sourceMappingURL=data-entry-mock.facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-entry-mock.facade.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/data-entry-mock.facade.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,qBAAa,mBAAoB,YAAW,gBAAgB,CAAC,MAAM,CAAC;IAC3D,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAa;IAE1C,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAY;IAC9C,aAAa,EAAE,UAAU,CAAC,OAAO,CAAC,CAAa;IAC/C,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAa;IAC9C,gBAAgB,sBAAa;IAC7B,kBAAkB,sBAAa;IAC/B,aAAa,sBAAa;IAC1B,oBAAoB,sBAAa;CACzC;AAGD,wBAAgB,yBAAyB,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAc/G"}
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="imng-kendo-data-entry/testing" />
4
5
  export * from './public_api';
6
+ //# sourceMappingURL=imng-kendo-data-entry-testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imng-kendo-data-entry-testing.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/imng-kendo-data-entry-testing.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
@@ -5,3 +5,4 @@ export * from './data-delete-facade-http-tests';
5
5
  export * from './data-delete-mock.facade';
6
6
  export * from './test-trigger-event-helpers';
7
7
  export * from './mock-data-entry-dialog.component';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
@@ -7,3 +7,4 @@ export declare class MockDataEntryComponent extends BaseDataEntryComponent<DataE
7
7
  initForm: jest.Mock<any, any>;
8
8
  save: () => jest.Mock<any, any>;
9
9
  }
10
+ //# sourceMappingURL=mock-data-entry-dialog.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-data-entry-dialog.component.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/mock-data-entry-dialog.component.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,qBAAa,sBAAuB,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;IAC9E,WAAW,SAA4B;IACvC,KAAK,KAAM;IACX,QAAQ,sBAAa;IACrB,IAAI,4BAAmB;CAC/B"}
@@ -5,7 +5,6 @@
5
5
  "esm2015": "../esm2015/testing/imng-kendo-data-entry-testing.js",
6
6
  "fesm2015": "../fesm2015/imng-kendo-data-entry-testing.js",
7
7
  "typings": "imng-kendo-data-entry-testing.d.ts",
8
- "metadata": "imng-kendo-data-entry-testing.metadata.json",
9
8
  "sideEffects": false,
10
9
  "name": "imng-kendo-data-entry/testing"
11
10
  }
@@ -1 +1,2 @@
1
1
  export * from './index';
2
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { ComponentFixture } from '@angular/core/testing';
2
2
  export declare function triggerSaveClickEvent<TComponent>(fixture: ComponentFixture<TComponent>): void;
3
3
  export declare function triggerCancelClickEvent<TComponent>(fixture: ComponentFixture<TComponent>): void;
4
+ //# sourceMappingURL=test-trigger-event-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-trigger-event-helpers.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-data-entry/testing/src/test-trigger-event-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,IAAI,CAG7F;AACD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,IAAI,CAG/F"}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"}]}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./lib/data-entry.module"},{"from":"./lib/data-entry-dialog.component"},{"from":"./lib/base-data-entry.component"},{"from":"./lib/data-entry-facade"},{"from":"./lib/data-delete-facade"},{"from":"./lib/reducer-collection-logic"},{"from":"./lib/form-group-patcher"},{"from":"./lib/dialog-buttons.directive"}]}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"BaseDataEntryComponent":{"__symbolic":"class","arity":1,"members":{"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"formControl":[{"__symbolic":"method"}],"formControlErrors":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":51,"character":15},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":19},"arguments":["facade"]}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"closeForm":[{"__symbolic":"method"}],"onCancel":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}],"isDataInvalid":[{"__symbolic":"method"}],"initForm":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}]}}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"IDataDeleteFacade":{"__symbolic":"interface"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"DataEntryDialogComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"imng-data-entry-dialog[parentComponent]","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"},"template":"<kendo-dialog [width]=\"width\" [height]=\"height\" (close)=\"close()\">\n <kendo-dialog-titlebar class=\"bg-primary\">{{ dialogTitle }}</kendo-dialog-titlebar>\n <ng-content></ng-content>\n <kendo-dialog-actions>\n <ng-container *ngTemplateOutlet=\"dialogBtnsTemplate || defaultDialogActionsTpl; context: dialogActionBtnsCtx\">\n </ng-container>\n </kendo-dialog-actions>\n</kendo-dialog>\n\n<ng-template #defaultDialogActionsTpl>\n <button id=\"btnCancel\" class=\"k-button\" (click)=\"cancel()\">Cancel</button>\n <button id=\"btnSave\" class=\"k-button k-primary\" (click)=\"submit()\">{{ saveButtonText }}</button>\n</ng-template>\n"}]}],"members":{"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"parentComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"saveButtonText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"dialogBtnsTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":17,"character":3},"arguments":[{"__symbolic":"reference","module":"./dialog-buttons.directive","name":"DialogButtonsDirective","line":17,"character":16},{"static":true,"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":17,"character":62}}]}]}],"ngOnInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"submit":[{"__symbolic":"method"}]}}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"IDataEntryFacade":{"__symbolic":"interface"},"IBaseDataEntryFacade":{"__symbolic":"interface"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ImngDataEntryDialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12},{"__symbolic":"reference","module":"@progress/kendo-angular-dialog","name":"DialogModule","line":7,"character":26}],"declarations":[{"__symbolic":"reference","module":"./data-entry-dialog.component","name":"DataEntryDialogComponent","line":8,"character":17},{"__symbolic":"reference","module":"./dialog-buttons.directive","name":"DialogButtonsDirective","line":8,"character":43}],"exports":[{"__symbolic":"reference","module":"./data-entry-dialog.component","name":"DataEntryDialogComponent","line":9,"character":12},{"__symbolic":"reference","module":"./dialog-buttons.directive","name":"DialogButtonsDirective","line":9,"character":38}]}]}]}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"DialogButtonsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[imngDialogBtns]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":4,"character":26,"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":4,"character":38}]}]}]}}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"formGroupPatcher":{"__symbolic":"error","message":"Lambda not supported","line":4,"character":32}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"updateStateCollectionItem":{"__symbolic":"function"},"removeStateCollectionItem":{"__symbolic":"function"},"addStateCollectionItem":{"__symbolic":"function"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"testDeleteCurrentEntity":{"__symbolic":"function"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"DataDeleteMockFacade":{"__symbolic":"class"},"createDataDeleteMockFacade":{"__symbolic":"function"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"testSaveCurrentEntity":{"__symbolic":"function"},"testUpdateCurrentEntity":{"__symbolic":"function"}}}]
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"testAddSetAndClearCurrentEntity":{"__symbolic":"function"},"testEditSetAndClearCurrentEntity":{"__symbolic":"function"},"TestableFacade":{"__symbolic":"interface"}}}]