imng-kendo-data-entry 3.279.2 → 3.283.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/imng-kendo-data-entry.umd.js +81 -49
- package/bundles/imng-kendo-data-entry.umd.js.map +1 -1
- package/esm2015/lib/base-data-entry.component.js +17 -15
- package/esm2015/lib/base-data-entry.component.js.map +1 -1
- package/esm2015/lib/data-entry-dialog.component.js +23 -14
- package/esm2015/lib/data-entry-dialog.component.js.map +1 -1
- package/esm2015/lib/data-entry.module.js +14 -9
- package/esm2015/lib/data-entry.module.js.map +1 -1
- package/esm2015/lib/dialog-buttons.directive.js +7 -6
- package/esm2015/lib/dialog-buttons.directive.js.map +1 -1
- package/fesm2015/imng-kendo-data-entry.js +57 -43
- package/fesm2015/imng-kendo-data-entry.js.map +1 -1
- package/imng-kendo-data-entry.d.ts +2 -0
- package/imng-kendo-data-entry.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -0
- package/lib/base-data-entry.component.d.ts +6 -3
- package/lib/base-data-entry.component.d.ts.map +1 -0
- package/lib/data-delete-facade.d.ts +1 -0
- package/lib/data-delete-facade.d.ts.map +1 -0
- package/lib/data-entry-dialog.component.d.ts +4 -0
- package/lib/data-entry-dialog.component.d.ts.map +1 -0
- package/lib/data-entry-facade.d.ts +1 -0
- package/lib/data-entry-facade.d.ts.map +1 -0
- package/lib/data-entry.module.d.ts +8 -0
- package/lib/data-entry.module.d.ts.map +1 -0
- package/lib/dialog-buttons.directive.d.ts +4 -0
- package/lib/dialog-buttons.directive.d.ts.map +1 -0
- package/lib/form-group-patcher.d.ts +1 -0
- package/lib/form-group-patcher.d.ts.map +1 -0
- package/lib/reducer-collection-logic.d.ts +1 -0
- package/lib/reducer-collection-logic.d.ts.map +1 -0
- package/package.json +6 -7
- package/testing/data-delete-facade-http-tests.d.ts +1 -0
- package/testing/data-delete-facade-http-tests.d.ts.map +1 -0
- package/testing/data-delete-mock.facade.d.ts +1 -0
- package/testing/data-delete-mock.facade.d.ts.map +1 -0
- package/testing/data-entry-facade-http-tests.d.ts +1 -0
- package/testing/data-entry-facade-http-tests.d.ts.map +1 -0
- package/testing/data-entry-facade-tests.d.ts +1 -0
- package/testing/data-entry-facade-tests.d.ts.map +1 -0
- package/testing/data-entry-mock.facade.d.ts +1 -0
- package/testing/data-entry-mock.facade.d.ts.map +1 -0
- package/testing/imng-kendo-data-entry-testing.d.ts +2 -0
- package/testing/imng-kendo-data-entry-testing.d.ts.map +1 -0
- package/testing/index.d.ts +1 -0
- package/testing/index.d.ts.map +1 -0
- package/testing/mock-data-entry-dialog.component.d.ts +1 -0
- package/testing/mock-data-entry-dialog.component.d.ts.map +1 -0
- package/testing/package.json +0 -1
- package/testing/public_api.d.ts +1 -0
- package/testing/public_api.d.ts.map +1 -0
- package/testing/test-trigger-event-helpers.d.ts +1 -0
- package/testing/test-trigger-event-helpers.d.ts.map +1 -0
- package/esm2015/imng-kendo-data-entry.metadata.json +0 -1
- package/esm2015/index.metadata.json +0 -1
- package/esm2015/lib/base-data-entry.component.metadata.json +0 -1
- package/esm2015/lib/data-delete-facade.metadata.json +0 -1
- package/esm2015/lib/data-entry-dialog.component.metadata.json +0 -1
- package/esm2015/lib/data-entry-facade.metadata.json +0 -1
- package/esm2015/lib/data-entry.module.metadata.json +0 -1
- package/esm2015/lib/dialog-buttons.directive.metadata.json +0 -1
- package/esm2015/lib/form-group-patcher.metadata.json +0 -1
- package/esm2015/lib/reducer-collection-logic.metadata.json +0 -1
- package/esm2015/testing/data-delete-facade-http-tests.metadata.json +0 -1
- package/esm2015/testing/data-delete-mock.facade.metadata.json +0 -1
- package/esm2015/testing/data-entry-facade-http-tests.metadata.json +0 -1
- package/esm2015/testing/data-entry-facade-tests.metadata.json +0 -1
- package/esm2015/testing/data-entry-mock.facade.metadata.json +0 -1
- package/esm2015/testing/imng-kendo-data-entry-testing.metadata.json +0 -1
- package/esm2015/testing/index.metadata.json +0 -1
- package/esm2015/testing/mock-data-entry-dialog.component.metadata.json +0 -1
- package/esm2015/testing/public_api.metadata.json +0 -1
- package/esm2015/testing/test-trigger-event-helpers.metadata.json +0 -1
- package/imng-kendo-data-entry.metadata.json +0 -1
- 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
|
|
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,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Directive, Inject, Input, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
2
4
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { DialogModule } from '@progress/kendo-angular-dialog';
|
|
4
5
|
import { BehaviorSubject } from 'rxjs';
|
|
5
6
|
import { Subscriptions } from 'imng-ngrx-utils';
|
|
6
7
|
import { filter, take, tap } from 'rxjs/operators';
|
|
7
8
|
|
|
8
|
-
const FACADE = new InjectionToken('facade');
|
|
9
|
+
const FACADE = new InjectionToken('imng-data-entry-facade');
|
|
9
10
|
/**
|
|
10
11
|
* The extending class has to implement the following properties on ngInit
|
|
11
12
|
* dialogTitle: string - This will be the text displayed at the top of the modal title bar
|
|
@@ -19,17 +20,13 @@ const FACADE = new InjectionToken('facade');
|
|
|
19
20
|
* @class BaseDataEntryComponent>
|
|
20
21
|
*/
|
|
21
22
|
class BaseDataEntryComponent {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.injectedFacade = injectedFacade;
|
|
23
|
+
constructor(facade) {
|
|
24
|
+
this.facade = facade;
|
|
25
25
|
this.allSubscriptions = new Subscriptions();
|
|
26
26
|
this._submitted$ = new BehaviorSubject(false);
|
|
27
27
|
this.loading$ = this.facade.loading$;
|
|
28
28
|
this.initForm();
|
|
29
29
|
}
|
|
30
|
-
get facade() {
|
|
31
|
-
return this.injectedFacade;
|
|
32
|
-
}
|
|
33
30
|
get submitted$() {
|
|
34
31
|
return this._submitted$.asObservable();
|
|
35
32
|
}
|
|
@@ -65,25 +62,30 @@ class BaseDataEntryComponent {
|
|
|
65
62
|
return this.addEditForm.invalid;
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
BaseDataEntryComponent
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
BaseDataEntryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseDataEntryComponent, deps: [{ token: FACADE }], target: i0.ɵɵFactoryTarget.Directive });
|
|
66
|
+
BaseDataEntryComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: BaseDataEntryComponent, inputs: { width: "width", height: "height" }, ngImport: i0 });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseDataEntryComponent, decorators: [{
|
|
68
|
+
type: Directive
|
|
69
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
70
|
+
type: Inject,
|
|
71
|
+
args: [FACADE]
|
|
72
|
+
}] }]; }, propDecorators: { width: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], height: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}] } });
|
|
75
77
|
|
|
76
78
|
class DialogButtonsDirective {
|
|
77
79
|
constructor(tpl) {
|
|
78
80
|
this.tpl = tpl;
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
|
-
DialogButtonsDirective
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
];
|
|
83
|
+
DialogButtonsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DialogButtonsDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
DialogButtonsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: DialogButtonsDirective, selector: "[imngDialogBtns]", ngImport: i0 });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DialogButtonsDirective, decorators: [{
|
|
86
|
+
type: Directive,
|
|
87
|
+
args: [{ selector: '[imngDialogBtns]' }]
|
|
88
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
87
89
|
|
|
88
90
|
class DataEntryDialogComponent {
|
|
89
91
|
constructor() {
|
|
@@ -110,30 +112,42 @@ class DataEntryDialogComponent {
|
|
|
110
112
|
return { $implicit: { cancel: () => this.cancel(), submit: () => this.submit() } };
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
|
-
DataEntryDialogComponent
|
|
114
|
-
{ type:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
115
|
+
DataEntryDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DataEntryDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
+
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", directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DataEntryDialogComponent, decorators: [{
|
|
118
|
+
type: Component,
|
|
119
|
+
args: [{
|
|
120
|
+
selector: 'imng-data-entry-dialog[parentComponent]',
|
|
121
|
+
templateUrl: './data-entry-dialog.component.html',
|
|
122
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
123
|
+
}]
|
|
124
|
+
}], propDecorators: { width: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], height: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], parentComponent: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], saveButtonText: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], dialogBtnsTemplate: [{
|
|
133
|
+
type: ContentChild,
|
|
134
|
+
args: [DialogButtonsDirective, { static: true, read: TemplateRef }]
|
|
135
|
+
}] } });
|
|
127
136
|
|
|
128
137
|
class ImngDataEntryDialogModule {
|
|
129
138
|
}
|
|
130
|
-
ImngDataEntryDialogModule
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
]
|
|
139
|
+
ImngDataEntryDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
140
|
+
ImngDataEntryDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, declarations: [DataEntryDialogComponent, DialogButtonsDirective], imports: [CommonModule], exports: [DataEntryDialogComponent, DialogButtonsDirective] });
|
|
141
|
+
ImngDataEntryDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, imports: [[CommonModule]] });
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ImngDataEntryDialogModule, decorators: [{
|
|
143
|
+
type: NgModule,
|
|
144
|
+
args: [{
|
|
145
|
+
imports: [CommonModule],
|
|
146
|
+
declarations: [DataEntryDialogComponent, DialogButtonsDirective],
|
|
147
|
+
exports: [DataEntryDialogComponent, DialogButtonsDirective],
|
|
148
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
149
|
+
}]
|
|
150
|
+
}] });
|
|
137
151
|
|
|
138
152
|
function updateStateCollectionItem(collection, item) {
|
|
139
153
|
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,sBAAsB;;IA2B1C,YAA6C,cAAmB;QAAnB,mBAAc,GAAd,cAAc,CAAK;QApBzD,qBAAgB,GAAG,IAAI,aAAa,EAAE,CAAC;QAM7B,gBAAW,GAA6B,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;QAelF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IA3BD,IAAc,MAAM;QAClB,OAAO,IAAI,CAAC,cAAc,CAAC;KAC5B;IAUD,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;IAQM,WAAW;QAChB,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;KACxC;IAEM,SAAS;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAA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K,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACvB,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,sBAAsB,CAAqC,UAAoB,EAAE,IAAY;IAC3G,MAAM,KAAK,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;IAC9B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,KAAK,CAAC;AACf;;MCrBa,gBAAgB,GAAG,CAAU,WAAsB,KAAK,CAAC,MAA2B,KAC/F,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAChB,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,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, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DataEntryDialogComponent } from './data-entry-dialog.component';\nimport { DialogButtonsDirective } from './dialog-buttons.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [DataEntryDialogComponent, DialogButtonsDirective],\n exports: [DataEntryDialogComponent, DialogButtonsDirective],\n schemas: [NO_ERRORS_SCHEMA],\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,eAA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E,IAAY;IAC3G,MAAM,KAAK,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;IAC9B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,KAAK,CAAC;AACf;;MCrBa,gBAAgB,GAAG,CAAU,WAAsB,KAAK,CAAC,MAA2B,KAC/F,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAChB,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;;ACRvC;;;;;;"}
|
|
@@ -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
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
|
-
|
|
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(
|
|
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,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-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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,CAAC;IAClC,kBAAkB,IAAI,IAAI,CAAC;CAC5B"}
|
|
@@ -1,2 +1,10 @@
|
|
|
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";
|
|
1
5
|
export declare class ImngDataEntryDialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImngDataEntryDialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImngDataEntryDialogModule, [typeof i1.DataEntryDialogComponent, typeof i2.DialogButtonsDirective], [typeof i3.CommonModule], [typeof i1.DataEntryDialogComponent, typeof i2.DialogButtonsDirective]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ImngDataEntryDialogModule>;
|
|
2
9
|
}
|
|
10
|
+
//# 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":";;;;AAKA,qBAMa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAG"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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.
|
|
3
|
+
"version": "3.283.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": ">=2.x"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/common": ">=
|
|
10
|
-
"@angular/core": ">=
|
|
11
|
-
"@angular/forms": ">=
|
|
12
|
-
"@angular/platform-browser": ">=
|
|
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": ">=
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
package/testing/index.d.ts
CHANGED
|
@@ -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"}
|
|
@@ -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"}
|
package/testing/package.json
CHANGED
|
@@ -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
|
}
|
package/testing/public_api.d.ts
CHANGED
|
@@ -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"}}}]
|