imng-kendo-data-entry 6.140.2 → 6.140.5

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 (34) hide show
  1. package/esm2022/lib/base-data-entry.component.mjs +114 -0
  2. package/esm2022/lib/data-entry-dialog.component.mjs +127 -0
  3. package/esm2022/lib/dialog-buttons.directive.mjs +15 -0
  4. package/esm2022/lib/imng-kendo-data-entry.module.mjs +21 -0
  5. package/{fesm2020 → fesm2022}/imng-kendo-data-entry.mjs +17 -17
  6. package/{fesm2020 → fesm2022}/imng-kendo-data-entry.mjs.map +1 -1
  7. package/lib/base-data-entry.component.d.ts +1 -1
  8. package/lib/data-entry-dialog.component.d.ts +1 -1
  9. package/package.json +14 -22
  10. package/esm2020/lib/base-data-entry.component.mjs +0 -113
  11. package/esm2020/lib/data-entry-dialog.component.mjs +0 -126
  12. package/esm2020/lib/dialog-buttons.directive.mjs +0 -14
  13. package/esm2020/lib/imng-kendo-data-entry.module.mjs +0 -20
  14. package/fesm2015/imng-kendo-data-entry-testing.mjs +0 -178
  15. package/fesm2015/imng-kendo-data-entry-testing.mjs.map +0 -1
  16. package/fesm2015/imng-kendo-data-entry.mjs +0 -304
  17. package/fesm2015/imng-kendo-data-entry.mjs.map +0 -1
  18. /package/{esm2020 → esm2022}/imng-kendo-data-entry.mjs +0 -0
  19. /package/{esm2020 → esm2022}/index.mjs +0 -0
  20. /package/{esm2020 → esm2022}/lib/data-delete-facade.mjs +0 -0
  21. /package/{esm2020 → esm2022}/lib/data-entry-facade.mjs +0 -0
  22. /package/{esm2020 → esm2022}/lib/form-group-patcher.mjs +0 -0
  23. /package/{esm2020 → esm2022}/lib/reducer-collection-logic.mjs +0 -0
  24. /package/{esm2020 → esm2022}/testing/data-delete-facade-http-tests.mjs +0 -0
  25. /package/{esm2020 → esm2022}/testing/data-delete-mock.facade.mjs +0 -0
  26. /package/{esm2020 → esm2022}/testing/data-entry-facade-http-tests.mjs +0 -0
  27. /package/{esm2020 → esm2022}/testing/data-entry-facade-tests.mjs +0 -0
  28. /package/{esm2020 → esm2022}/testing/data-entry-mock.facade.mjs +0 -0
  29. /package/{esm2020 → esm2022}/testing/imng-kendo-data-entry-testing.mjs +0 -0
  30. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  31. /package/{esm2020 → esm2022}/testing/mock-data-entry-dialog.component.mjs +0 -0
  32. /package/{esm2020 → esm2022}/testing/test-trigger-event-helpers.mjs +0 -0
  33. /package/{fesm2020 → fesm2022}/imng-kendo-data-entry-testing.mjs +0 -0
  34. /package/{fesm2020 → fesm2022}/imng-kendo-data-entry-testing.mjs.map +0 -0
@@ -1,304 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, NgModule, InjectionToken, Inject } from '@angular/core';
3
- import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i2 from '@progress/kendo-angular-dialog';
6
- import { DialogModule } from '@progress/kendo-angular-dialog';
7
- import { BehaviorSubject } from 'rxjs';
8
- import { Subscriptions } from 'imng-ngrx-utils';
9
- import { filter, take, tap } from 'rxjs/operators';
10
-
11
- class DialogButtonsDirective {
12
- constructor(tpl) {
13
- this.tpl = tpl;
14
- }
15
- }
16
- DialogButtonsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DialogButtonsDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
17
- DialogButtonsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: DialogButtonsDirective, selector: "[imngDialogBtns]", ngImport: i0 });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DialogButtonsDirective, decorators: [{
19
- type: Directive,
20
- args: [{ selector: '[imngDialogBtns]' }]
21
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
22
-
23
- class DataEntryDialogComponent {
24
- constructor() {
25
- this.width = 800; //NOSONAR
26
- this.height = 600; //NOSONAR
27
- this.submitted = false;
28
- }
29
- ngOnInit() {
30
- var _a, _b, _c, _d;
31
- if (!this.parentComponent) {
32
- throw new TypeError(`The input 'parentComponent' is required`);
33
- }
34
- this.dialogTitle = this.parentComponent.dialogTitle;
35
- this.loading$ = this.parentComponent.loading$;
36
- this.addEditForm = this.parentComponent.addEditForm;
37
- (_a = this.saveButtonText) !== null && _a !== void 0 ? _a : (this.saveButtonText = (_b = this.parentComponent.saveButtonText) !== null && _b !== void 0 ? _b : 'Save');
38
- (_c = this.formId) !== null && _c !== void 0 ? _c : (this.formId = (_d = this.parentComponent.formId) !== null && _d !== void 0 ? _d : 'imng-form');
39
- }
40
- close() {
41
- var _a;
42
- (_a = this.parentComponent) === null || _a === void 0 ? void 0 : _a.closeForm();
43
- }
44
- cancel() {
45
- var _a;
46
- (_a = this.parentComponent) === null || _a === void 0 ? void 0 : _a.onCancel();
47
- }
48
- submit() {
49
- var _a;
50
- (_a = this.parentComponent) === null || _a === void 0 ? void 0 : _a.onSubmit();
51
- }
52
- get dialogActionBtnsCtx() {
53
- //NOSONAR
54
- return {
55
- $implicit: { cancel: () => this.cancel(), submit: () => this.submit() },
56
- };
57
- }
58
- }
59
- DataEntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DataEntryDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
- DataEntryDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DataEntryDialogComponent, selector: "imng-data-entry-dialog[parentComponent]", inputs: { minWidth: "minWidth", width: "width", height: "height", autoFocusedElement: "autoFocusedElement", parentComponent: "parentComponent", saveButtonText: "saveButtonText" }, queries: [{ propertyName: "dialogBtnsTemplate", first: true, predicate: DialogButtonsDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `<kendo-dialog
61
- [width]="width"
62
- [minWidth]="minWidth ?? width"
63
- [height]="height"
64
- (close)="close()"
65
- [autoFocusedElement]="autoFocusedElement || ''">
66
- <kendo-dialog-titlebar class="bg-primary">{{
67
- dialogTitle
68
- }}</kendo-dialog-titlebar>
69
- <ng-content></ng-content>
70
- <kendo-dialog-actions>
71
- <ng-container
72
- *ngTemplateOutlet="
73
- dialogBtnsTemplate || defaultDialogActionsTpl;
74
- context: dialogActionBtnsCtx
75
- ">
76
- </ng-container>
77
- </kendo-dialog-actions>
78
- </kendo-dialog>
79
- <ng-template #defaultDialogActionsTpl>
80
- <button kendoButton (click)="cancel()" class="btn btn-secondary btn-sm">
81
- Cancel
82
- </button>
83
- <button
84
- [attr.form]="formId"
85
- type="submit"
86
- kendoButton
87
- (click)="submit()"
88
- class="btn btn-primary btn-sm">
89
- {{ saveButtonText }}
90
- </button>
91
- </ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { kind: "component", type: i2.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: i2.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DataEntryDialogComponent, decorators: [{
93
- type: Component,
94
- args: [{
95
- selector: 'imng-data-entry-dialog[parentComponent]',
96
- template: `<kendo-dialog
97
- [width]="width"
98
- [minWidth]="minWidth ?? width"
99
- [height]="height"
100
- (close)="close()"
101
- [autoFocusedElement]="autoFocusedElement || ''">
102
- <kendo-dialog-titlebar class="bg-primary">{{
103
- dialogTitle
104
- }}</kendo-dialog-titlebar>
105
- <ng-content></ng-content>
106
- <kendo-dialog-actions>
107
- <ng-container
108
- *ngTemplateOutlet="
109
- dialogBtnsTemplate || defaultDialogActionsTpl;
110
- context: dialogActionBtnsCtx
111
- ">
112
- </ng-container>
113
- </kendo-dialog-actions>
114
- </kendo-dialog>
115
- <ng-template #defaultDialogActionsTpl>
116
- <button kendoButton (click)="cancel()" class="btn btn-secondary btn-sm">
117
- Cancel
118
- </button>
119
- <button
120
- [attr.form]="formId"
121
- type="submit"
122
- kendoButton
123
- (click)="submit()"
124
- class="btn btn-primary btn-sm">
125
- {{ saveButtonText }}
126
- </button>
127
- </ng-template>`,
128
- changeDetection: ChangeDetectionStrategy.OnPush,
129
- }]
130
- }], propDecorators: { minWidth: [{
131
- type: Input
132
- }], width: [{
133
- type: Input
134
- }], height: [{
135
- type: Input
136
- }], autoFocusedElement: [{
137
- type: Input
138
- }], parentComponent: [{
139
- type: Input
140
- }], saveButtonText: [{
141
- type: Input
142
- }], dialogBtnsTemplate: [{
143
- type: ContentChild,
144
- args: [DialogButtonsDirective, { static: true, read: TemplateRef }]
145
- }] } });
146
-
147
- class ImngDataEntryDialogModule {
148
- }
149
- ImngDataEntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ImngDataEntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
150
- ImngDataEntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: ImngDataEntryDialogModule, declarations: [DataEntryDialogComponent, DialogButtonsDirective], imports: [CommonModule, DialogModule], exports: [DataEntryDialogComponent, DialogButtonsDirective] });
151
- ImngDataEntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ImngDataEntryDialogModule, imports: [CommonModule, DialogModule] });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ImngDataEntryDialogModule, decorators: [{
153
- type: NgModule,
154
- args: [{
155
- imports: [CommonModule, DialogModule],
156
- declarations: [DataEntryDialogComponent, DialogButtonsDirective],
157
- exports: [DataEntryDialogComponent, DialogButtonsDirective],
158
- }]
159
- }] });
160
-
161
- const FACADE = new InjectionToken('imng-data-entry-facade');
162
- /**
163
- * The extending class has to implement the following properties on ngInit
164
- * dialogTitle: string - This will be the text displayed at the top of the modal title bar
165
- * props: enum - This is a helper property to make the html markup type safe
166
- *
167
- * Along with the requirements above, the extending class has to set values to the
168
- * following properties on ngInit
169
- * active$: Observable<boolean> - This typically would be assigned to the isNewActive$ or isEditActive on the facade
170
- * addEditForm: FormGroup - This will be created by your component
171
- *
172
- * @class BaseDataEntryComponent>
173
- */
174
- class BaseDataEntryComponent {
175
- constructor(facade) {
176
- this.facade = facade;
177
- this.width = 800; //NOSONAR
178
- this.height = 600; //NOSONAR
179
- this.formId = 'imng-form';
180
- this.saveButtonText = 'Save';
181
- this.MinLengthError = 'minlength';
182
- this.RequiredError = 'required';
183
- this.ENUM_DISPLAY_TEXT = 'displayText';
184
- this.ENUM_NAME = 'name';
185
- this.allSubscriptions = new Subscriptions();
186
- this.submitted$ = new BehaviorSubject(false);
187
- this.loading$ = this.facade.loading$;
188
- this.initForm();
189
- }
190
- ngOnDestroy() {
191
- this.allSubscriptions.unsubscribeAll();
192
- }
193
- closeForm() {
194
- this.initForm();
195
- this.facade.clearCurrentEntity();
196
- this.submitted$.next(false);
197
- }
198
- onCancel() {
199
- this.closeForm();
200
- }
201
- onSubmit() {
202
- this.submitted$.next(true);
203
- // stop here if form is invalid
204
- if (!this.addEditForm.valid) {
205
- console.error('form validation errors.'); //NOSONAR
206
- console.error(JSON.stringify(this.getFormErrors())); //NOSONAR
207
- return false;
208
- }
209
- this.save();
210
- this.closeForm();
211
- return true;
212
- }
213
- isDataInvalid() {
214
- return this.addEditForm.invalid;
215
- }
216
- // convenience getter for easy access to form fields
217
- formControl(controlName, controls = this.addEditForm.controls) {
218
- return controls[controlName];
219
- }
220
- formControlErrors(control, controls = this
221
- .addEditForm.controls) {
222
- const tempControl =
223
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
224
- typeof control === 'string' ? controls[control] : control;
225
- if ((tempControl === null || tempControl === void 0 ? void 0 : tempControl.valid) && !(tempControl === null || tempControl === void 0 ? void 0 : tempControl.errors)) {
226
- return null;
227
- }
228
- return tempControl === null || tempControl === void 0 ? void 0 : tempControl.errors;
229
- }
230
- formMinLengthError(controlName) {
231
- var _a;
232
- return (_a = this.formControlErrors(controlName)) === null || _a === void 0 ? void 0 : _a[this.MinLengthError];
233
- }
234
- getFormErrors(controls = this
235
- .addEditForm.controls, parentControlName) {
236
- const errors = [];
237
- for (const controlName of Object.keys(controls)) {
238
- const control = controls[controlName];
239
- const error = this.formControlErrors(control, controls);
240
- if (error) {
241
- errors.push({
242
- controlName: parentControlName
243
- ? `${parentControlName}.${controlName}`
244
- : controlName,
245
- error,
246
- });
247
- }
248
- if (control === null || control === void 0 ? void 0 : control.controls) {
249
- errors.push(...this.getFormErrors(control.controls, parentControlName
250
- ? `${parentControlName}.${controlName}`
251
- : controlName));
252
- }
253
- }
254
- return errors;
255
- }
256
- }
257
- BaseDataEntryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: BaseDataEntryComponent, deps: [{ token: FACADE }], target: i0.ɵɵFactoryTarget.Component });
258
- BaseDataEntryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: BaseDataEntryComponent, selector: "ng-component", inputs: { width: "width", height: "height" }, ngImport: i0, template: '', isInline: true });
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: BaseDataEntryComponent, decorators: [{
260
- type: Component,
261
- args: [{ template: '' }]
262
- }], ctorParameters: function () {
263
- return [{ type: undefined, decorators: [{
264
- type: Inject,
265
- args: [FACADE]
266
- }] }];
267
- }, propDecorators: { width: [{
268
- type: Input
269
- }], height: [{
270
- type: Input
271
- }] } });
272
-
273
- function updateStateCollectionItem(collection, item) {
274
- const index = collection.findIndex((val) => val.id === item.id);
275
- if (index > -1) {
276
- const items = [...collection];
277
- items.splice(index, 1, item);
278
- return items;
279
- }
280
- return collection;
281
- }
282
- function removeStateCollectionItem(collection, item) {
283
- const index = collection.findIndex((val) => val.id === item.id);
284
- if (index > -1) {
285
- const items = [...collection];
286
- items.splice(index, 1);
287
- return items;
288
- }
289
- return collection;
290
- }
291
- function addStateCollectionItem(collection, item) {
292
- const items = [...collection];
293
- items.unshift(item);
294
- return items;
295
- }
296
-
297
- const formGroupPatcher = (addEditForm) => (source) => source.pipe(filter((t) => !!t), take(1), tap((t) => addEditForm.patchValue(t)));
298
-
299
- /**
300
- * Generated bundle index. Do not edit.
301
- */
302
-
303
- export { BaseDataEntryComponent, DataEntryDialogComponent, DialogButtonsDirective, ImngDataEntryDialogModule, addStateCollectionItem, formGroupPatcher, removeStateCollectionItem, updateStateCollectionItem };
304
- //# sourceMappingURL=imng-kendo-data-entry.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"imng-kendo-data-entry.mjs","sources":["../../../../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/imng-kendo-data-entry.module.ts","../../../../libs/imng-kendo-data-entry/src/lib/base-data-entry.component.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, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[imngDialogBtns]' })\nexport class DialogButtonsDirective {\n constructor(public tpl: TemplateRef<unknown>) { }\n}\n","import {\n Component,\n OnInit,\n Input,\n ChangeDetectionStrategy,\n TemplateRef,\n ContentChild,\n} 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 template: `<kendo-dialog\n [width]=\"width\"\n [minWidth]=\"minWidth ?? width\"\n [height]=\"height\"\n (close)=\"close()\"\n [autoFocusedElement]=\"autoFocusedElement || ''\">\n <kendo-dialog-titlebar class=\"bg-primary\">{{\n dialogTitle\n }}</kendo-dialog-titlebar>\n <ng-content></ng-content>\n <kendo-dialog-actions>\n <ng-container\n *ngTemplateOutlet=\"\n dialogBtnsTemplate || defaultDialogActionsTpl;\n context: dialogActionBtnsCtx\n \">\n </ng-container>\n </kendo-dialog-actions>\n </kendo-dialog>\n <ng-template #defaultDialogActionsTpl>\n <button kendoButton (click)=\"cancel()\" class=\"btn btn-secondary btn-sm\">\n Cancel\n </button>\n <button\n [attr.form]=\"formId\"\n type=\"submit\"\n kendoButton\n (click)=\"submit()\"\n class=\"btn btn-primary btn-sm\">\n {{ saveButtonText }}\n </button>\n </ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataEntryDialogComponent implements OnInit {\n @Input() public minWidth?: number; //NOSONAR\n @Input() public width = 800; //NOSONAR\n @Input() public height = 600; //NOSONAR\n /**\n * https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/initial-focus/\n */\n @Input() public autoFocusedElement?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() public parentComponent?: BaseDataEntryComponent<any>; //NOSONAR\n @Input() public saveButtonText?: string;\n @ContentChild(DialogButtonsDirective, { static: true, read: TemplateRef })\n /**\n * Example Usage:\n * <imng-data-entry-dialog>\n * ......\n * <ng-template [imngDialogBtns] let-coreButtons>\n * <button id=\"btnCustom1\" class=\"k-button\" (click)=\"cancel()\">Close</button>\n * </ng-template>\n * </imng-data-entry-dialog>\n */\n public dialogBtnsTemplate?: TemplateRef<unknown>;\n public loading$?: Observable<boolean>;\n public addEditForm?: FormGroup;\n public formId?: string;\n public submitted = false;\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 this.saveButtonText ??= this.parentComponent.saveButtonText ?? 'Save';\n this.formId ??= this.parentComponent.formId ?? 'imng-form';\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(): object | null {\n //NOSONAR\n return {\n $implicit: { cancel: () => this.cancel(), submit: () => this.submit() },\n };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DataEntryDialogComponent } from './data-entry-dialog.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\nimport { DialogModule } from '@progress/kendo-angular-dialog';\n\n@NgModule({\n imports: [CommonModule, DialogModule],\n declarations: [DataEntryDialogComponent, DialogButtonsDirective],\n exports: [DataEntryDialogComponent, DialogButtonsDirective],\n})\nexport class ImngDataEntryDialogModule {}\n","import {\n Component,\n Inject,\n InjectionToken,\n Input,\n OnDestroy,\n} from '@angular/core';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport {\n AbstractControl,\n ValidationErrors,\n FormGroup,\n FormArray,\n} from '@angular/forms';\nimport { IBaseDataEntryFacade } from './data-entry-facade';\nimport { Subscribable, Subscriptions } from 'imng-ngrx-utils';\n\nconst FACADE = new InjectionToken<IBaseDataEntryFacade>(\n 'imng-data-entry-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 */\n@Component({ template: '' })\nexport abstract class BaseDataEntryComponent<\n FACADE extends IBaseDataEntryFacade,\n> implements OnDestroy, Subscribable\n{\n @Input() public width: string | number = 800; //NOSONAR\n @Input() public height: string | number = 600; //NOSONAR\n\n public formId = 'imng-form';\n public saveButtonText = 'Save';\n public readonly MinLengthError = 'minlength';\n public readonly RequiredError = 'required';\n public readonly ENUM_DISPLAY_TEXT = 'displayText';\n public readonly ENUM_NAME = 'name';\n public allSubscriptions = new Subscriptions();\n public abstract dialogTitle: string;\n public abstract props: unknown;\n public abstract addEditForm: FormGroup;\n public loading$: Observable<boolean>;\n public readonly submitted$: BehaviorSubject<boolean> = new BehaviorSubject(\n false as boolean,\n );\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(): boolean {\n this.submitted$.next(true);\n\n // stop here if form is invalid\n if (!this.addEditForm.valid) {\n console.error('form validation errors.'); //NOSONAR\n console.error(JSON.stringify(this.getFormErrors())); //NOSONAR\n return false;\n }\n this.save();\n this.closeForm();\n return true;\n }\n\n public isDataInvalid(): boolean {\n return this.addEditForm.invalid;\n }\n\n // convenience getter for easy access to form fields\n public formControl(\n controlName: string,\n controls: { [key: string]: AbstractControl } = this.addEditForm.controls,\n ): AbstractControl {\n return controls[controlName];\n }\n\n public formControlErrors(\n control: string | AbstractControl,\n controls: { [key: string]: AbstractControl } | AbstractControl[] = this\n .addEditForm.controls,\n ): ValidationErrors | null {\n const tempControl =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n typeof control === 'string' ? (controls as any)[control] : control;\n if (tempControl?.valid && !tempControl?.errors) {\n return null;\n }\n return tempControl?.errors;\n }\n public formMinLengthError(\n controlName: string,\n ): { requiredLength: number; actualLength: number } | null {\n return this.formControlErrors(controlName)?.[this.MinLengthError];\n }\n public getFormErrors(\n controls: { [key: string]: AbstractControl } | AbstractControl[] = this\n .addEditForm.controls,\n parentControlName?: string,\n ): { controlName: string; error: ValidationErrors }[] {\n const errors: { controlName: string; error: ValidationErrors }[] = [];\n for (const controlName of Object.keys(controls)) {\n const control = (controls as never)[controlName];\n const error = this.formControlErrors(control, controls);\n if (error) {\n errors.push({\n controlName: parentControlName\n ? `${parentControlName}.${controlName}`\n : controlName,\n error,\n });\n }\n if ((control as FormArray)?.controls) {\n errors.push(\n ...this.getFormErrors(\n (control as FormArray).controls,\n parentControlName\n ? `${parentControlName}.${controlName}`\n : controlName,\n ),\n );\n }\n }\n return errors;\n }\n\n public abstract initForm(): void;\n public abstract save(): void;\n}\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 index = collection.findIndex((val) => val.id === item.id);\n if (index > -1) {\n const items = [...collection];\n items.splice(index, 1, item);\n return items;\n }\n return collection;\n}\n\nexport function removeStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity\n): Entity[] {\n const index = collection.findIndex((val) => val.id === item.id);\n if (index > -1) {\n const items = [...collection];\n items.splice(index, 1);\n return items;\n }\n return collection;\n}\n\nexport function addStateCollectionItem<Entity extends { id?: ValueType; }>(\n collection: Entity[],\n item: Entity\n): 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';\nimport { IdType } from 'imng-nrsrx-client-utils';\n\nexport const formGroupPatcher =\n <TEntity extends { id?: IdType | null | undefined } | undefined>(\n addEditForm: FormGroup,\n ) =>\n (source: Observable<TEntity>) =>\n source.pipe(\n filter((t) => !!t),\n take(1),\n tap((t) => addEditForm.patchValue(t as never)),\n );\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAGa,sBAAsB,CAAA;AACjC,IAAA,WAAA,CAAmB,GAAyB,EAAA;AAAzB,QAAA,IAAG,CAAA,GAAA,GAAH,GAAG,CAAsB;KAAK;;mHADtC,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;uGAAtB,sBAAsB,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,CAAA;;;MC+C9B,wBAAwB,CAAA;AApCrC,IAAA,WAAA,GAAA;AAsCkB,QAAA,IAAA,CAAA,KAAK,GAAG,GAAG,CAAC;AACZ,QAAA,IAAA,CAAA,MAAM,GAAG,GAAG,CAAC;AAsBtB,QAAA,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;KA+B1B;IA1BQ,QAAQ,GAAA;;AACb,QAAA,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,MAAM,IAAI,SAAS,CAAC,CAAA,uCAAA,CAAyC,CAAC,CAAC;AAChE,SAAA;QACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,eA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changes
File without changes
File without changes