@rosoftlab/rdict 1.0.4-alpha-10 → 1.0.21-alpha-1
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/fesm2022/rosoftlab-rdict.mjs +136 -326
- package/fesm2022/rosoftlab-rdict.mjs.map +1 -1
- package/package.json +34 -34
- package/types/rosoftlab-rdict.d.ts +288 -0
- package/index.d.ts +0 -5
- package/lib/components/index.d.ts +0 -3
- package/lib/components/layouts/full/full.component.d.ts +0 -43
- package/lib/components/layouts/full/kendo-toolbar-span.d.ts +0 -14
- package/lib/components/rdict-crud/rdict-crud.component.d.ts +0 -54
- package/lib/components/rdict-crud/rsl-reactive-dictionary.module.d.ts +0 -7
- package/lib/components/rdict-generic-table/rdict-generic-table.component.d.ts +0 -102
- package/lib/components/rdict-generic-table/rdict-kendo.d.ts +0 -4
- package/lib/components/rdict-generic-table/rdict-table-title.d.ts +0 -11
- package/lib/core.d.ts +0 -4
- package/lib/models/index.d.ts +0 -3
- package/lib/models/menu.d.ts +0 -15
- package/lib/models/right.d.ts +0 -14
- package/lib/models/user.d.ts +0 -8
- package/lib/reactive-dictionary.d.ts +0 -40
- package/lib/services/file.service.d.ts +0 -24
- package/lib/services/index.d.ts +0 -3
- package/lib/services/material-dialog.service.d.ts +0 -18
- package/lib/services/socket.service.d.ts +0 -31
- package/lib/services/user.service.d.ts +0 -15
- package/lib/socket-config.token.d.ts +0 -2
- package/lib/translate.extension.d.ts +0 -17
- package/public-api.d.ts +0 -2
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import * as i6 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Inject, Injectable, forwardRef, ViewChild, Input, Component, NgModule, HostBinding, EventEmitter, ElementRef, Output, ViewEncapsulation
|
|
5
|
-
import * as i1 from '@angular/router';
|
|
2
|
+
import { InjectionToken, Inject, Injectable, forwardRef, ViewChild, Input, Component, NgModule, HostBinding, EventEmitter, ElementRef, Output, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/router';
|
|
6
4
|
import { RouterModule, UrlSegment, NavigationStart } from '@angular/router';
|
|
7
5
|
import * as i2 from '@ngx-translate/core';
|
|
8
6
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
7
|
import { ButtonsModule, KENDO_BUTTONS } from '@progress/kendo-angular-buttons';
|
|
10
8
|
import { KENDO_SVGICON } from '@progress/kendo-angular-icons';
|
|
11
|
-
import * as
|
|
9
|
+
import * as i6$1 from '@progress/kendo-angular-layout';
|
|
12
10
|
import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
13
|
-
import * as
|
|
11
|
+
import * as i9 from '@progress/kendo-angular-toolbar';
|
|
14
12
|
import { ToolBarToolComponent, ToolBarModule, KENDO_TOOLBAR } from '@progress/kendo-angular-toolbar';
|
|
15
13
|
import * as allIcons from '@progress/kendo-svg-icons';
|
|
16
14
|
import { menuIcon, userIcon, logoutIcon, saveIcon, arrowLeftIcon, pencilIcon, trashIcon, plusIcon } from '@progress/kendo-svg-icons';
|
|
17
|
-
import * as
|
|
18
|
-
import { BaseModel, Attribute, BaseModelConfig, BaseService } from '@rosoftlab/core';
|
|
15
|
+
import * as i1 from '@rosoftlab/core';
|
|
19
16
|
import { Subject, fromEvent, Observable, defer, mergeMap, filter, race, first, map, timeout, from, tap, catchError, throwError, BehaviorSubject } from 'rxjs';
|
|
20
17
|
import { v4 } from 'uuid';
|
|
21
18
|
import { io } from 'socket.io-client';
|
|
22
|
-
import * as
|
|
23
|
-
import {
|
|
24
|
-
import * as i3 from '@progress/kendo-angular-notification';
|
|
25
|
-
import { __decorate, __metadata } from 'tslib';
|
|
19
|
+
import * as i6 from '@angular/common';
|
|
20
|
+
import { CommonModule } from '@angular/common';
|
|
26
21
|
import * as i8 from '@angular/forms';
|
|
27
22
|
import { FormGroup, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
28
|
-
import * as i7
|
|
23
|
+
import * as i7 from '@ngx-formly/core';
|
|
29
24
|
import { FORMLY_CONFIG, FormlyModule } from '@ngx-formly/core';
|
|
30
25
|
import { FormlyKendoModule } from '@ngx-formly/kendo';
|
|
31
|
-
import * as
|
|
26
|
+
import * as i2$1 from '@progress/kendo-angular-dialog';
|
|
27
|
+
import { DialogCloseResult, KENDO_DIALOG } from '@progress/kendo-angular-dialog';
|
|
28
|
+
import * as i8$1 from '@progress/kendo-angular-grid';
|
|
32
29
|
import { KENDO_GRID } from '@progress/kendo-angular-grid';
|
|
33
|
-
import * as i1$
|
|
30
|
+
import * as i1$3 from '@progress/kendo-angular-label';
|
|
34
31
|
import { KENDO_LABEL } from '@progress/kendo-angular-label';
|
|
32
|
+
import * as i3 from '@progress/kendo-angular-notification';
|
|
35
33
|
import * as i6$2 from '@progress/kendo-angular-intl';
|
|
36
|
-
import * as i1$
|
|
34
|
+
import * as i1$2 from '@angular/common/http';
|
|
37
35
|
import { HttpHeaders, HttpRequest, HttpEventType, HttpResponse } from '@angular/common/http';
|
|
38
36
|
import { filter as filter$1, map as map$1 } from 'rxjs/operators';
|
|
39
37
|
|
|
38
|
+
// projects/my-library/src/lib/socket-config.token.ts
|
|
39
|
+
const SOCKET_URL = new InjectionToken('SocketUrl');
|
|
40
|
+
|
|
40
41
|
class SocketService {
|
|
41
42
|
constructor(socketUrl) {
|
|
42
43
|
this.disconnect$ = new Subject();
|
|
@@ -305,10 +306,10 @@ class SocketService {
|
|
|
305
306
|
// takeUntil(this.disconnect$)
|
|
306
307
|
);
|
|
307
308
|
}
|
|
308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SocketService, deps: [{ token: SOCKET_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
310
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SocketService, providedIn: 'root' }); }
|
|
310
311
|
}
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SocketService, decorators: [{
|
|
312
313
|
type: Injectable,
|
|
313
314
|
args: [{
|
|
314
315
|
providedIn: 'root'
|
|
@@ -618,267 +619,17 @@ class ReactiveDictionary extends Map {
|
|
|
618
619
|
return throwError(() => err);
|
|
619
620
|
}));
|
|
620
621
|
}
|
|
621
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
622
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
622
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ReactiveDictionary, deps: [{ token: SocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
623
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ReactiveDictionary, providedIn: 'root' // This makes the service a singleton and available throughout the app
|
|
623
624
|
}); }
|
|
624
625
|
}
|
|
625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ReactiveDictionary, decorators: [{
|
|
626
627
|
type: Injectable,
|
|
627
628
|
args: [{
|
|
628
629
|
providedIn: 'root' // This makes the service a singleton and available throughout the app
|
|
629
630
|
}]
|
|
630
631
|
}], ctorParameters: () => [{ type: SocketService }] });
|
|
631
632
|
|
|
632
|
-
class MaterialDialogService {
|
|
633
|
-
constructor(translate, dialogService, notificationService) {
|
|
634
|
-
this.translate = translate;
|
|
635
|
-
this.dialogService = dialogService;
|
|
636
|
-
this.notificationService = notificationService;
|
|
637
|
-
this.state = {
|
|
638
|
-
content: "Your data has been saved.",
|
|
639
|
-
type: { style: "success", icon: true },
|
|
640
|
-
animation: { type: "slide", duration: 400 },
|
|
641
|
-
hideAfter: 3000,
|
|
642
|
-
};
|
|
643
|
-
}
|
|
644
|
-
confirmDelete() {
|
|
645
|
-
return this.confirm(this.translate.instant("Are you sure you want to delete this record ?"), this.translate.instant("Delete Record"), this.translate.instant("General.Yes"), this.translate.instant("General.No"));
|
|
646
|
-
}
|
|
647
|
-
confirm(content, title, confirmButtonText, cancelButtonText) {
|
|
648
|
-
const dialog = this.dialogService.open({
|
|
649
|
-
title: title || "Confirm",
|
|
650
|
-
content: content || "Are you sure?",
|
|
651
|
-
actions: [
|
|
652
|
-
{ text: cancelButtonText || "No", result: false },
|
|
653
|
-
{ text: confirmButtonText || "Yes", themeColor: "primary", result: true }
|
|
654
|
-
],
|
|
655
|
-
width: 450,
|
|
656
|
-
height: 200,
|
|
657
|
-
minWidth: 250,
|
|
658
|
-
});
|
|
659
|
-
// Return an Observable<boolean>
|
|
660
|
-
return new Observable((observer) => {
|
|
661
|
-
dialog.result.subscribe((result) => {
|
|
662
|
-
if (result instanceof DialogCloseResult) {
|
|
663
|
-
// Dialog was closed without an action
|
|
664
|
-
observer.next(false);
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
const actionResult = result;
|
|
668
|
-
observer.next(actionResult.result);
|
|
669
|
-
}
|
|
670
|
-
observer.complete(); // Complete the observable
|
|
671
|
-
});
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
showError(content, title, confirmButtonText, cancelButtonText) {
|
|
675
|
-
const dialog = this.dialogService.open({
|
|
676
|
-
title: title || "Error",
|
|
677
|
-
content: content || "Error message?",
|
|
678
|
-
width: 450,
|
|
679
|
-
height: 200,
|
|
680
|
-
minWidth: 250,
|
|
681
|
-
});
|
|
682
|
-
// Return an Observable<boolean>
|
|
683
|
-
return new Observable((observer) => {
|
|
684
|
-
dialog.result.subscribe((result) => {
|
|
685
|
-
if (result instanceof DialogCloseResult) {
|
|
686
|
-
// Dialog was closed without an action
|
|
687
|
-
observer.next(false);
|
|
688
|
-
}
|
|
689
|
-
else {
|
|
690
|
-
const actionResult = result;
|
|
691
|
-
observer.next(actionResult.result);
|
|
692
|
-
}
|
|
693
|
-
observer.complete(); // Complete the observable
|
|
694
|
-
});
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
showSaveMessage(message) {
|
|
698
|
-
this.state.content = message || "Your data has been saved.";
|
|
699
|
-
this.state.type = { style: "success", icon: true };
|
|
700
|
-
this.notificationService.show(this.state);
|
|
701
|
-
}
|
|
702
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: MaterialDialogService, deps: [{ token: i2.TranslateService }, { token: i2$1.DialogService }, { token: i3.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
703
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: MaterialDialogService, providedIn: 'root' }); }
|
|
704
|
-
}
|
|
705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: MaterialDialogService, decorators: [{
|
|
706
|
-
type: Injectable,
|
|
707
|
-
args: [{
|
|
708
|
-
providedIn: 'root'
|
|
709
|
-
}]
|
|
710
|
-
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i2$1.DialogService }, { type: i3.NotificationService }] });
|
|
711
|
-
|
|
712
|
-
let Menu = class Menu extends BaseModel {
|
|
713
|
-
};
|
|
714
|
-
__decorate([
|
|
715
|
-
Attribute({ serializedName: 'id' }),
|
|
716
|
-
__metadata("design:type", String)
|
|
717
|
-
], Menu.prototype, "id", void 0);
|
|
718
|
-
__decorate([
|
|
719
|
-
Attribute({ serializedName: 'header' }),
|
|
720
|
-
__metadata("design:type", String)
|
|
721
|
-
], Menu.prototype, "header", void 0);
|
|
722
|
-
__decorate([
|
|
723
|
-
Attribute({ serializedName: 'icon' }),
|
|
724
|
-
__metadata("design:type", String)
|
|
725
|
-
], Menu.prototype, "icon", void 0);
|
|
726
|
-
__decorate([
|
|
727
|
-
Attribute({ serializedName: 'link' }),
|
|
728
|
-
__metadata("design:type", String)
|
|
729
|
-
], Menu.prototype, "link", void 0);
|
|
730
|
-
__decorate([
|
|
731
|
-
Attribute({ serializedName: 'title' }),
|
|
732
|
-
__metadata("design:type", String)
|
|
733
|
-
], Menu.prototype, "title", void 0);
|
|
734
|
-
__decorate([
|
|
735
|
-
Attribute({ serializedName: 'sublinks' }),
|
|
736
|
-
__metadata("design:type", Array)
|
|
737
|
-
], Menu.prototype, "sublinks", void 0);
|
|
738
|
-
__decorate([
|
|
739
|
-
Attribute({ serializedName: 'target' }),
|
|
740
|
-
__metadata("design:type", String)
|
|
741
|
-
], Menu.prototype, "target", void 0);
|
|
742
|
-
__decorate([
|
|
743
|
-
Attribute({ serializedName: 'external' }),
|
|
744
|
-
__metadata("design:type", Boolean)
|
|
745
|
-
], Menu.prototype, "external", void 0);
|
|
746
|
-
__decorate([
|
|
747
|
-
Attribute({ serializedName: 'description' }),
|
|
748
|
-
__metadata("design:type", String)
|
|
749
|
-
], Menu.prototype, "description", void 0);
|
|
750
|
-
__decorate([
|
|
751
|
-
Attribute({ serializedName: 'order' }),
|
|
752
|
-
__metadata("design:type", Number)
|
|
753
|
-
], Menu.prototype, "order", void 0);
|
|
754
|
-
__decorate([
|
|
755
|
-
Attribute({ serializedName: 'translationKey' }),
|
|
756
|
-
__metadata("design:type", String)
|
|
757
|
-
], Menu.prototype, "translationKey", void 0);
|
|
758
|
-
__decorate([
|
|
759
|
-
Attribute({ serializedName: 'color' }),
|
|
760
|
-
__metadata("design:type", String)
|
|
761
|
-
], Menu.prototype, "color", void 0);
|
|
762
|
-
Menu = __decorate([
|
|
763
|
-
BaseModelConfig({
|
|
764
|
-
type: 'user',
|
|
765
|
-
modelEndpointUrl: 'user/menus'
|
|
766
|
-
})
|
|
767
|
-
], Menu);
|
|
768
|
-
|
|
769
|
-
// import { Attribute, BaseModel, BaseModelConfig } from '@rosoftlab/core';
|
|
770
|
-
;
|
|
771
|
-
let Right = class Right extends BaseModel {
|
|
772
|
-
};
|
|
773
|
-
__decorate([
|
|
774
|
-
Attribute({ serializedName: 'id' }),
|
|
775
|
-
__metadata("design:type", String)
|
|
776
|
-
], Right.prototype, "id", void 0);
|
|
777
|
-
__decorate([
|
|
778
|
-
Attribute({ serializedName: 'name' }),
|
|
779
|
-
__metadata("design:type", String)
|
|
780
|
-
], Right.prototype, "name", void 0);
|
|
781
|
-
__decorate([
|
|
782
|
-
Attribute({ serializedName: 'rightKey' }),
|
|
783
|
-
__metadata("design:type", String)
|
|
784
|
-
], Right.prototype, "rightKey", void 0);
|
|
785
|
-
__decorate([
|
|
786
|
-
Attribute({ serializedName: 'pagePath' }),
|
|
787
|
-
__metadata("design:type", String)
|
|
788
|
-
], Right.prototype, "pagePath", void 0);
|
|
789
|
-
__decorate([
|
|
790
|
-
Attribute({ serializedName: 'order' }),
|
|
791
|
-
__metadata("design:type", Number)
|
|
792
|
-
], Right.prototype, "order", void 0);
|
|
793
|
-
__decorate([
|
|
794
|
-
Attribute({ serializedName: 'isMenu' }),
|
|
795
|
-
__metadata("design:type", Boolean)
|
|
796
|
-
], Right.prototype, "isMenu", void 0);
|
|
797
|
-
__decorate([
|
|
798
|
-
Attribute({ serializedName: 'resourceName' }),
|
|
799
|
-
__metadata("design:type", String)
|
|
800
|
-
], Right.prototype, "resourceName", void 0);
|
|
801
|
-
__decorate([
|
|
802
|
-
Attribute({ serializedName: 'parentId' }),
|
|
803
|
-
__metadata("design:type", String)
|
|
804
|
-
], Right.prototype, "parentId", void 0);
|
|
805
|
-
__decorate([
|
|
806
|
-
Attribute({ serializedName: 'color' }),
|
|
807
|
-
__metadata("design:type", String)
|
|
808
|
-
], Right.prototype, "color", void 0);
|
|
809
|
-
__decorate([
|
|
810
|
-
Attribute({ serializedName: 'defaultRoles' }),
|
|
811
|
-
__metadata("design:type", String)
|
|
812
|
-
], Right.prototype, "defaultRoles", void 0);
|
|
813
|
-
__decorate([
|
|
814
|
-
Attribute({ serializedName: 'icon' }),
|
|
815
|
-
__metadata("design:type", String)
|
|
816
|
-
], Right.prototype, "icon", void 0);
|
|
817
|
-
Right = __decorate([
|
|
818
|
-
BaseModelConfig({
|
|
819
|
-
type: 'right',
|
|
820
|
-
modelEndpointUrl: 'user/rights'
|
|
821
|
-
})
|
|
822
|
-
], Right);
|
|
823
|
-
|
|
824
|
-
;
|
|
825
|
-
let User = class User extends BaseModel {
|
|
826
|
-
get fullName() {
|
|
827
|
-
return this.firstName + ' ' + this.lastName;
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
__decorate([
|
|
831
|
-
Attribute({ serializedName: 'id' }),
|
|
832
|
-
__metadata("design:type", String)
|
|
833
|
-
], User.prototype, "id", void 0);
|
|
834
|
-
__decorate([
|
|
835
|
-
Attribute({ serializedName: 'firstName' }),
|
|
836
|
-
__metadata("design:type", String)
|
|
837
|
-
], User.prototype, "firstName", void 0);
|
|
838
|
-
__decorate([
|
|
839
|
-
Attribute({ serializedName: 'lastName' }),
|
|
840
|
-
__metadata("design:type", String)
|
|
841
|
-
], User.prototype, "lastName", void 0);
|
|
842
|
-
__decorate([
|
|
843
|
-
Attribute({ serializedName: 'email' }),
|
|
844
|
-
__metadata("design:type", String)
|
|
845
|
-
], User.prototype, "email", void 0);
|
|
846
|
-
User = __decorate([
|
|
847
|
-
BaseModelConfig({
|
|
848
|
-
type: 'user'
|
|
849
|
-
})
|
|
850
|
-
], User);
|
|
851
|
-
|
|
852
|
-
class UserService extends BaseService {
|
|
853
|
-
constructor(datastore) {
|
|
854
|
-
super(datastore);
|
|
855
|
-
this.setModelType(User);
|
|
856
|
-
}
|
|
857
|
-
getRights() {
|
|
858
|
-
const response = this.datastore.findAll(Right);
|
|
859
|
-
return response;
|
|
860
|
-
}
|
|
861
|
-
hasRightForLink(link) {
|
|
862
|
-
if (this.userRights && link) {
|
|
863
|
-
const right = this.userRights.find(f => link.indexOf(f.pagePath) >= 0);
|
|
864
|
-
return true;
|
|
865
|
-
}
|
|
866
|
-
return false;
|
|
867
|
-
}
|
|
868
|
-
getMenus() {
|
|
869
|
-
const response = this.datastore.findAll(Menu);
|
|
870
|
-
return response;
|
|
871
|
-
}
|
|
872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: UserService, deps: [{ token: i4.DatastoreCore }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
874
|
-
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: UserService, decorators: [{
|
|
876
|
-
type: Injectable,
|
|
877
|
-
args: [{
|
|
878
|
-
providedIn: 'root'
|
|
879
|
-
}]
|
|
880
|
-
}], ctorParameters: () => [{ type: i4.DatastoreCore }] });
|
|
881
|
-
|
|
882
633
|
class KendoToolbarSpanComponent extends ToolBarToolComponent {
|
|
883
634
|
constructor() {
|
|
884
635
|
super();
|
|
@@ -886,14 +637,14 @@ class KendoToolbarSpanComponent extends ToolBarToolComponent {
|
|
|
886
637
|
this.text = '';
|
|
887
638
|
this.cssClass = '';
|
|
888
639
|
}
|
|
889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
890
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
640
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: KendoToolbarSpanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
641
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: KendoToolbarSpanComponent, isStandalone: true, selector: "kendo-toolbar-span", inputs: { text: "text", cssClass: "cssClass" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => KendoToolbarSpanComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
891
642
|
<ng-template #toolbarTemplate>
|
|
892
643
|
<span [ngClass]="cssClass" [textContent]="text"></span>
|
|
893
644
|
</ng-template>
|
|
894
645
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
895
646
|
}
|
|
896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: KendoToolbarSpanComponent, decorators: [{
|
|
897
648
|
type: Component,
|
|
898
649
|
args: [{
|
|
899
650
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => KendoToolbarSpanComponent) }],
|
|
@@ -999,16 +750,14 @@ class FullComponent {
|
|
|
999
750
|
});
|
|
1000
751
|
return drawerItems;
|
|
1001
752
|
}
|
|
1002
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1003
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
753
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FullComponent, deps: [{ token: i1.UserService }, { token: i1$1.Router }, { token: i2.TranslateService }, { token: ReactiveDictionary }, { token: i1.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
754
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: FullComponent, isStandalone: true, selector: "rdict-full", ngImport: i0, template: "<!-- <div class=\"custom-toolbar\">\r\n <button kendoButton [svgIcon]=\"menuSvg\" fillMode=\"flat\" (click)=\"drawer.toggle()\"></button>\r\n <span class=\"app-title\">{{apptitle}}</span>\r\n</div> -->\r\n<kendo-toolbar>\r\n <kendo-toolbar-span text=\"{{apptitle}}\" cssClass=\"app-title\"></kendo-toolbar-span>\r\n <kendo-toolbar-button [svgIcon]=\"menuSvg\" fillMode=\"flat\" (click)=\"drawer.toggle()\"></kendo-toolbar-button>\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <kendo-toolbar-dropdownbutton text=\"{{auth_service?.name}}\" [svgIcon]=\"userSvg\" [data]=\"user_menu\"></kendo-toolbar-dropdownbutton>\r\n</kendo-toolbar>\r\n<kendo-drawer-container>\r\n <kendo-drawer #drawer [items]=\"items\" mode=\"push\" [mini]=\"true\" [expanded]=\"true\" (select)=\"onSelect($event)\"\r\n [autoCollapse]=\"false\" [isItemExpanded]=\"isItemExpanded\">\r\n </kendo-drawer>\r\n\r\n <kendo-drawer-content>\r\n <router-outlet></router-outlet>\r\n </kendo-drawer-content>\r\n</kendo-drawer-container>", styles: ["html,body,rdict-full{padding:0;height:100%}rdict-full{display:flex;flex-direction:column}kendo-drawer-container{flex:1 1 auto;overflow-y:auto}.k-icon{font-size:20px}.custom-toolbar{width:100%;background-color:#f6f6f6;line-height:10px;border-bottom:inset;border-bottom-width:1px;color:#656565}.custom-toolbar button{margin:3px 0 3px 8px}.app-title{margin-left:20px;font-weight:700;font-size:17px}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: ButtonsModule }, { kind: "ngmodule", type: ToolBarModule }, { kind: "component", type: i9.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i9.ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "rounded", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "component", type: i9.ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: ["arrowIcon", "title", "showText", "showIcon", "text", "icon", "svgIcon", "iconClass", "imageUrl", "popupSettings", "look", "primary", "fillMode", "themeColor", "buttonClass", "textField", "disabled", "data"], outputs: ["itemClick", "open", "close"], exportAs: ["kendoToolBarDropDownButton"] }, { kind: "component", type: i9.ToolBarSpacerComponent, selector: "kendo-toolbar-spacer", exportAs: ["kendoToolBarSpacer"] }, { kind: "ngmodule", type: LayoutModule }, { kind: "component", type: i6$1.DrawerComponent, selector: "kendo-drawer", inputs: ["mode", "position", "mini", "expanded", "width", "miniWidth", "autoCollapse", "items", "isItemExpanded", "animation"], outputs: ["expand", "collapse", "select", "expandedChange"], exportAs: ["kendoDrawer"] }, { kind: "component", type: i6$1.DrawerContainerComponent, selector: "kendo-drawer-container" }, { kind: "component", type: i6$1.DrawerContentComponent, selector: "kendo-drawer-content" }, { kind: "component", type: KendoToolbarSpanComponent, selector: "kendo-toolbar-span", inputs: ["text", "cssClass"] }] }); }
|
|
1004
755
|
}
|
|
1005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FullComponent, decorators: [{
|
|
1006
757
|
type: Component,
|
|
1007
758
|
args: [{ selector: 'rdict-full', imports: [
|
|
1008
|
-
CommonModule,
|
|
1009
759
|
RouterModule,
|
|
1010
760
|
TranslateModule,
|
|
1011
|
-
CommonModule,
|
|
1012
761
|
ButtonsModule,
|
|
1013
762
|
ToolBarModule,
|
|
1014
763
|
LayoutModule,
|
|
@@ -1016,7 +765,87 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
1016
765
|
KENDO_TOOLBAR,
|
|
1017
766
|
KendoToolbarSpanComponent
|
|
1018
767
|
], template: "<!-- <div class=\"custom-toolbar\">\r\n <button kendoButton [svgIcon]=\"menuSvg\" fillMode=\"flat\" (click)=\"drawer.toggle()\"></button>\r\n <span class=\"app-title\">{{apptitle}}</span>\r\n</div> -->\r\n<kendo-toolbar>\r\n <kendo-toolbar-span text=\"{{apptitle}}\" cssClass=\"app-title\"></kendo-toolbar-span>\r\n <kendo-toolbar-button [svgIcon]=\"menuSvg\" fillMode=\"flat\" (click)=\"drawer.toggle()\"></kendo-toolbar-button>\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <kendo-toolbar-dropdownbutton text=\"{{auth_service?.name}}\" [svgIcon]=\"userSvg\" [data]=\"user_menu\"></kendo-toolbar-dropdownbutton>\r\n</kendo-toolbar>\r\n<kendo-drawer-container>\r\n <kendo-drawer #drawer [items]=\"items\" mode=\"push\" [mini]=\"true\" [expanded]=\"true\" (select)=\"onSelect($event)\"\r\n [autoCollapse]=\"false\" [isItemExpanded]=\"isItemExpanded\">\r\n </kendo-drawer>\r\n\r\n <kendo-drawer-content>\r\n <router-outlet></router-outlet>\r\n </kendo-drawer-content>\r\n</kendo-drawer-container>", styles: ["html,body,rdict-full{padding:0;height:100%}rdict-full{display:flex;flex-direction:column}kendo-drawer-container{flex:1 1 auto;overflow-y:auto}.k-icon{font-size:20px}.custom-toolbar{width:100%;background-color:#f6f6f6;line-height:10px;border-bottom:inset;border-bottom-width:1px;color:#656565}.custom-toolbar button{margin:3px 0 3px 8px}.app-title{margin-left:20px;font-weight:700;font-size:17px}\n"] }]
|
|
1019
|
-
}], ctorParameters: () => [{ type: UserService }, { type: i1.Router }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type:
|
|
768
|
+
}], ctorParameters: () => [{ type: i1.UserService }, { type: i1$1.Router }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type: i1.AuthService }] });
|
|
769
|
+
|
|
770
|
+
class MaterialDialogService {
|
|
771
|
+
constructor(translate, dialogService, notificationService) {
|
|
772
|
+
this.translate = translate;
|
|
773
|
+
this.dialogService = dialogService;
|
|
774
|
+
this.notificationService = notificationService;
|
|
775
|
+
this.state = {
|
|
776
|
+
content: "Your data has been saved.",
|
|
777
|
+
type: { style: "success", icon: true },
|
|
778
|
+
animation: { type: "slide", duration: 400 },
|
|
779
|
+
hideAfter: 3000,
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
confirmDelete() {
|
|
783
|
+
return this.confirm(this.translate.instant("Are you sure you want to delete this record ?"), this.translate.instant("Delete Record"), this.translate.instant("General.Yes"), this.translate.instant("General.No"));
|
|
784
|
+
}
|
|
785
|
+
confirm(content, title, confirmButtonText, cancelButtonText) {
|
|
786
|
+
const dialog = this.dialogService.open({
|
|
787
|
+
title: title || "Confirm",
|
|
788
|
+
content: content || "Are you sure?",
|
|
789
|
+
actions: [
|
|
790
|
+
{ text: cancelButtonText || "No", result: false },
|
|
791
|
+
{ text: confirmButtonText || "Yes", themeColor: "primary", result: true }
|
|
792
|
+
],
|
|
793
|
+
width: 450,
|
|
794
|
+
height: 200,
|
|
795
|
+
minWidth: 250,
|
|
796
|
+
});
|
|
797
|
+
// Return an Observable<boolean>
|
|
798
|
+
return new Observable((observer) => {
|
|
799
|
+
dialog.result.subscribe((result) => {
|
|
800
|
+
if (result instanceof DialogCloseResult) {
|
|
801
|
+
// Dialog was closed without an action
|
|
802
|
+
observer.next(false);
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
const actionResult = result;
|
|
806
|
+
observer.next(actionResult.result);
|
|
807
|
+
}
|
|
808
|
+
observer.complete(); // Complete the observable
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
showError(content, title, confirmButtonText, cancelButtonText) {
|
|
813
|
+
const dialog = this.dialogService.open({
|
|
814
|
+
title: title || "Error",
|
|
815
|
+
content: content || "Error message?",
|
|
816
|
+
width: 450,
|
|
817
|
+
height: 200,
|
|
818
|
+
minWidth: 250,
|
|
819
|
+
});
|
|
820
|
+
// Return an Observable<boolean>
|
|
821
|
+
return new Observable((observer) => {
|
|
822
|
+
dialog.result.subscribe((result) => {
|
|
823
|
+
if (result instanceof DialogCloseResult) {
|
|
824
|
+
// Dialog was closed without an action
|
|
825
|
+
observer.next(false);
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
const actionResult = result;
|
|
829
|
+
observer.next(actionResult.result);
|
|
830
|
+
}
|
|
831
|
+
observer.complete(); // Complete the observable
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
showSaveMessage(message) {
|
|
836
|
+
this.state.content = message || "Your data has been saved.";
|
|
837
|
+
this.state.type = { style: "success", icon: true };
|
|
838
|
+
this.notificationService.show(this.state);
|
|
839
|
+
}
|
|
840
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MaterialDialogService, deps: [{ token: i2.TranslateService }, { token: i2$1.DialogService }, { token: i3.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
841
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MaterialDialogService, providedIn: 'root' }); }
|
|
842
|
+
}
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MaterialDialogService, decorators: [{
|
|
844
|
+
type: Injectable,
|
|
845
|
+
args: [{
|
|
846
|
+
providedIn: 'root'
|
|
847
|
+
}]
|
|
848
|
+
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i2$1.DialogService }, { type: i3.NotificationService }] });
|
|
1020
849
|
|
|
1021
850
|
class TranslateExtension {
|
|
1022
851
|
constructor(translate) {
|
|
@@ -1067,13 +896,13 @@ function registerTranslateExtension(translate) {
|
|
|
1067
896
|
}
|
|
1068
897
|
|
|
1069
898
|
class CrudFormlyTransaltionModule {
|
|
1070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1071
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1072
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
899
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CrudFormlyTransaltionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
900
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: CrudFormlyTransaltionModule, imports: [CommonModule] }); }
|
|
901
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CrudFormlyTransaltionModule, providers: [
|
|
1073
902
|
{ provide: FORMLY_CONFIG, multi: true, useFactory: registerTranslateExtension, deps: [TranslateService] },
|
|
1074
903
|
], imports: [CommonModule] }); }
|
|
1075
904
|
}
|
|
1076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CrudFormlyTransaltionModule, decorators: [{
|
|
1077
906
|
type: NgModule,
|
|
1078
907
|
args: [{
|
|
1079
908
|
imports: [
|
|
@@ -1102,6 +931,7 @@ class RdictCrudComponent {
|
|
|
1102
931
|
this.hostClass = '';
|
|
1103
932
|
this.saveIcon = saveIcon;
|
|
1104
933
|
this.backIcon = arrowLeftIcon;
|
|
934
|
+
console.log('RdictCrudComponent constructor');
|
|
1105
935
|
}
|
|
1106
936
|
async ngOnInit() {
|
|
1107
937
|
this.setValueFromSnapshot(this, this.route.snapshot, 'fileLayout', '');
|
|
@@ -1188,19 +1018,6 @@ class RdictCrudComponent {
|
|
|
1188
1018
|
this.fields = this.transformFields(fieldsTmp);
|
|
1189
1019
|
// this.transformJsonToFormlyFields()
|
|
1190
1020
|
}
|
|
1191
|
-
// transformJsonToFormlyFields(json: any[]): FormlyFieldConfig[] {
|
|
1192
|
-
// // return json.map(field => {
|
|
1193
|
-
// // if (field.type === 'select' && field.props.options) {
|
|
1194
|
-
// // field.props.options = this.getSelectData(field.props.options);
|
|
1195
|
-
// // }
|
|
1196
|
-
// // return {
|
|
1197
|
-
// // key: field.key,
|
|
1198
|
-
// // type: field.type,
|
|
1199
|
-
// // props: field.props,
|
|
1200
|
-
// // fieldGroup: field?.fieldGroup
|
|
1201
|
-
// // };
|
|
1202
|
-
// // });
|
|
1203
|
-
// }
|
|
1204
1021
|
transformFields(fields) {
|
|
1205
1022
|
return fields.map((field) => this.transformField(field));
|
|
1206
1023
|
}
|
|
@@ -1295,24 +1112,26 @@ class RdictCrudComponent {
|
|
|
1295
1112
|
this.router.navigate([this.routeHistory.getPreviousUrl() || '/']);
|
|
1296
1113
|
}
|
|
1297
1114
|
}
|
|
1298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1299
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: RdictCrudComponent, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }, { token: i2.TranslateService }, { token: ReactiveDictionary }, { token: i1.LocalFileService }, { token: MaterialDialogService }, { token: i1.RouteHistoryService }, { token: i6.Location }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1116
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: RdictCrudComponent, isStandalone: true, selector: "app-rdict-crud", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "\r\n<kendo-toolbar>\r\n <kendo-toolbar-button text=\"Back\" showText=\"both\" [svgIcon]=\"backIcon\" showIcon=\"both\" themeColor=\"primary\"\r\n [disabled]=\"false\" (click)=\"onBack()\">\r\n </kendo-toolbar-button>\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <kendo-toolbar-button text=\"Save\" showText=\"both\" [svgIcon]=\"saveIcon\" showIcon=\"both\" themeColor=\"success\"\r\n [disabled]=\"false\" (click)=\"onSave()\">\r\n </kendo-toolbar-button>\r\n</kendo-toolbar>\r\n<div>Test</div>\r\n <form [formGroup]=\"baseForm\" (ngSubmit)=\"onSubmit(model)\">\r\n <formly-form [form]=\"baseForm\" [fields]=\"fields\" [model]=\"model\" [options]=\"options\"></formly-form>\r\n </form>\r\n<div kendoDialogContainer></div>", styles: ["::ng-deep formly-field{padding:.3rem;display:block}\n"], dependencies: [{ kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i7.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyKendoModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: CrudFormlyTransaltionModule }, { kind: "component", type: i9.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i9.ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "rounded", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "component", type: i9.ToolBarSpacerComponent, selector: "kendo-toolbar-spacer", exportAs: ["kendoToolBarSpacer"] }, { kind: "directive", type: i2$1.DialogContainerDirective, selector: "[kendoDialogContainer]" }] }); }
|
|
1300
1117
|
}
|
|
1301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: RdictCrudComponent, decorators: [{
|
|
1302
1119
|
type: Component,
|
|
1303
1120
|
args: [{ selector: 'app-rdict-crud', imports: [
|
|
1304
1121
|
FormlyModule,
|
|
1122
|
+
CommonModule,
|
|
1305
1123
|
ReactiveFormsModule,
|
|
1306
1124
|
FormlyKendoModule,
|
|
1307
1125
|
TranslateModule,
|
|
1308
1126
|
CrudFormlyTransaltionModule,
|
|
1127
|
+
// forwardRef(() => CrudFormlyTransaltionModule ), // Delays evaluation
|
|
1309
1128
|
KENDO_GRID,
|
|
1310
1129
|
KENDO_TOOLBAR,
|
|
1311
1130
|
KENDO_LABEL,
|
|
1312
1131
|
KENDO_BUTTONS,
|
|
1313
1132
|
KENDO_DIALOG
|
|
1314
|
-
], template: "<kendo-toolbar>\r\n <kendo-toolbar-button text=\"Back\" showText=\"both\" [svgIcon]=\"backIcon\" showIcon=\"both\" themeColor=\"primary\"\r\n [disabled]=\"false\" (click)=\"onBack()\">\r\n </kendo-toolbar-button>\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <kendo-toolbar-button text=\"Save\" showText=\"both\" [svgIcon]=\"saveIcon\" showIcon=\"both\" themeColor=\"success\"\r\n [disabled]=\"false\" (click)=\"onSave()\">\r\n </kendo-toolbar-button>\r\n</kendo-toolbar>\r\n
|
|
1315
|
-
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type:
|
|
1133
|
+
], template: "\r\n<kendo-toolbar>\r\n <kendo-toolbar-button text=\"Back\" showText=\"both\" [svgIcon]=\"backIcon\" showIcon=\"both\" themeColor=\"primary\"\r\n [disabled]=\"false\" (click)=\"onBack()\">\r\n </kendo-toolbar-button>\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <kendo-toolbar-button text=\"Save\" showText=\"both\" [svgIcon]=\"saveIcon\" showIcon=\"both\" themeColor=\"success\"\r\n [disabled]=\"false\" (click)=\"onSave()\">\r\n </kendo-toolbar-button>\r\n</kendo-toolbar>\r\n<div>Test</div>\r\n <form [formGroup]=\"baseForm\" (ngSubmit)=\"onSubmit(model)\">\r\n <formly-form [form]=\"baseForm\" [fields]=\"fields\" [model]=\"model\" [options]=\"options\"></formly-form>\r\n </form>\r\n<div kendoDialogContainer></div>", styles: ["::ng-deep formly-field{padding:.3rem;display:block}\n"] }]
|
|
1134
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type: i1.LocalFileService }, { type: MaterialDialogService }, { type: i1.RouteHistoryService }, { type: i6.Location }], propDecorators: { hostClasses: [{
|
|
1316
1135
|
type: HostBinding,
|
|
1317
1136
|
args: ['class']
|
|
1318
1137
|
}] } });
|
|
@@ -1448,13 +1267,13 @@ class FileService {
|
|
|
1448
1267
|
}
|
|
1449
1268
|
}));
|
|
1450
1269
|
}
|
|
1451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1452
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FileService, deps: [{ token: i1$2.HttpClient }, { token: SOCKET_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1271
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
1453
1272
|
}
|
|
1454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FileService, decorators: [{
|
|
1455
1274
|
type: Injectable,
|
|
1456
1275
|
args: [{ providedIn: 'root' }]
|
|
1457
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1276
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: undefined, decorators: [{
|
|
1458
1277
|
type: Inject,
|
|
1459
1278
|
args: [SOCKET_URL]
|
|
1460
1279
|
}] }] });
|
|
@@ -1663,14 +1482,14 @@ class RdictTableTitle extends ToolBarToolComponent {
|
|
|
1663
1482
|
super();
|
|
1664
1483
|
this.tabindex = -1;
|
|
1665
1484
|
}
|
|
1666
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1667
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: RdictTableTitle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1486
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: RdictTableTitle, isStandalone: true, selector: "table-title", inputs: { text: "text" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => RdictTableTitle) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1668
1487
|
<ng-template #toolbarTemplate>
|
|
1669
1488
|
<kendo-label>{{text}}</kendo-label>
|
|
1670
1489
|
</ng-template>
|
|
1671
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$
|
|
1490
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$3.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }] }); }
|
|
1672
1491
|
}
|
|
1673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: RdictTableTitle, decorators: [{
|
|
1674
1493
|
type: Component,
|
|
1675
1494
|
args: [{
|
|
1676
1495
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => RdictTableTitle) }],
|
|
@@ -2085,19 +1904,13 @@ class GenericRdictTableComponent {
|
|
|
2085
1904
|
return 'boolean';
|
|
2086
1905
|
return 'text';
|
|
2087
1906
|
}
|
|
2088
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2089
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2090
|
-
// MatPaginatorModule,
|
|
2091
|
-
// MatTableModule,
|
|
2092
|
-
TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "component", type: i9.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i9.GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: i9.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterable", "editable"] }, { kind: "directive", type: i9.FocusableDirective, selector: "[kendoGridFocusable], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridCancelCommand], [kendoGridSelectionCheckbox] ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: i9.CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: i9.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "component", type: i9.EditCommandDirective, selector: "[kendoGridEditCommand]" }, { kind: "component", type: i9.RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }, { kind: "directive", type: i9.AddCommandToolbarDirective, selector: "[kendoGridAddTool]" }, { kind: "component", type: i6$1.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i6$1.ToolbarCustomMessagesComponent, selector: "kendo-toolbar-messages" }, { kind: "component", type: i6$1.ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "component", type: i6$1.ToolBarSpacerComponent, selector: "kendo-toolbar-spacer", exportAs: ["kendoToolBarSpacer"] }, { kind: "directive", type: i2$1.DialogContainerDirective, selector: "[kendoDialogContainer]" }, { kind: "component", type: RdictTableTitle, selector: "table-title", inputs: ["text"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericRdictTableComponent, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }, { token: i2.TranslateService }, { token: i0.Injector }, { token: i1.LocalFileService }, { token: ReactiveDictionary }, { token: MaterialDialogService }, { token: i6$2.IntlService }, { token: FileService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: GenericRdictTableComponent, isStandalone: true, selector: "rsl-rdict-generic-table", inputs: { showSerach: "showSerach", searchFields: "searchFields", customInclude: "customInclude", defaultSort: "defaultSort", deletePropertyName: "deletePropertyName", defaultFilter: "defaultFilter", showHeader: "showHeader", hasAdd: "hasAdd", canDelete: "canDelete", canEdit: "canEdit", editOnClick: "editOnClick", editOnDblClick: "editOnDblClick" }, outputs: { selectedObject: "selectedObject", click: "click", editModel: "editModel" }, providers: [], viewQueries: [{ propertyName: "filter", first: true, predicate: ElementRef, descendants: true }], ngImport: i0, template: "<kendo-grid [data]=\"dataSource\" [sortable]=\"true\" [filterable]=\"showSerach\" [resizable]=\"true\" (add)=\"addHandler()\"\r\n (edit)=\"editHandler($event)\" (remove)=\"removeHandler($event)\"\r\n (filterChange)=\"filterChange($event)\"\r\n (dataStateChange)=\"dataStateChange($event)\"\r\n\r\n [pageable]=\"{pageSizes:pageSizes}\" [pageSize]=\"state.take\"\r\n [skip]=\"state.skip\" [sort]=\"state.sort\" >\r\n <kendo-toolbar>\r\n <table-title text=\"{{title}}\"></table-title>\r\n <kendo-toolbar-messages>Test</kendo-toolbar-messages>\r\n <!-- <kendo-toolbar-separator></kendo-toolbar-separator> -->\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n @if (hasAdd) {\r\n <kendo-toolbar-button kendoButton [svgIcon]=\"svgAdd\" text=\"Add new\" kendoGridAddTool></kendo-toolbar-button>\r\n }\r\n </kendo-toolbar>\r\n\r\n <!-- <kendo-toolbar>\r\n\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <button kendoGridAddCommand type=\"button\">Add new</button>\r\n</kendo-toolbar> -->\r\n<!-- <kendo-grid-column *ngFor=\"let column of allColumns\" field=\"{{ column.propertyName }}\"\r\ntitle=\" {{column.translateKey | translate}}\">\r\n</kendo-grid-column> -->\r\n\r\n@for (column of allColumns; track column) {\r\n <kendo-grid-column [field]=\"column.propertyName\"\r\n [title]=\"column.translateKey | translate\" [format]=\"column.format\" [filter]=\"inferFilterType(column)\">\r\n <!-- Use ng-template to customize the column content -->\r\n @if (column.isEditLink) {\r\n <ng-template kendoGridCellTemplate let-dataItem>\r\n <!-- Create a link that calls editHandler(dataItem) -->\r\n <a href=\"javascript:void(0)\" (click)=\"edit(dataItem,column)\" class=\"edit-link\">\r\n {{ getCellValue(dataItem,column) }}\r\n </a>\r\n </ng-template>\r\n } @else {\r\n {{ getCellValue(dataItem,column) }}\r\n }\r\n <!-- <ng-template *ngIf=\"column.type=='reference'; else defaultTemplate\" kendoGridCellTemplate let-dataItem>\r\n <a href=\"javascript:void(0)\" (click)=\"edit(dataItem)\" class=\"edit-link\">\r\n {{ getCellValue$(dataItem,column) | async }}\r\n </a>\r\n </ng-template> -->\r\n <!-- Default template for non-link columns -->\r\n</kendo-grid-column>\r\n}\r\n\r\n\r\n@if (canEdit && canDelete) {\r\n <kendo-grid-command-column title=\"\" [width]=\"100\">\r\n <ng-template kendoGridCellTemplate>\r\n <!-- <button kendoButton kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\" ></button>\r\n <button kendoButton kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button> -->\r\n @if (canEdit) {\r\n <button kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\"></button>\r\n }\r\n @if (canDelete) {\r\n <button kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button>\r\n }\r\n </ng-template>\r\n </kendo-grid-command-column>\r\n}\r\n</kendo-grid>\r\n<div kendoDialogContainer></div>", styles: [".edit-link{color:#00f!important;text-decoration:underline!important;cursor:pointer!important}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: i8$1.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "adaptiveMode", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "showInactiveTools", "isDetailExpanded", "isGroupExpanded", "dataLayoutMode"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "gridStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i8$1.GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: i8$1.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterVariant", "filterable", "editable"] }, { kind: "directive", type: i8$1.FocusableDirective, selector: "[kendoGridFocusable], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridCancelCommand], [kendoGridSelectionCheckbox] ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: i8$1.CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: i8$1.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "component", type: i8$1.EditCommandDirective, selector: "[kendoGridEditCommand]" }, { kind: "component", type: i8$1.RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }, { kind: "directive", type: i8$1.AddCommandToolbarDirective, selector: "[kendoGridAddTool]" }, { kind: "component", type: i9.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i9.ToolbarCustomMessagesComponent, selector: "kendo-toolbar-messages" }, { kind: "component", type: i9.ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "rounded", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "component", type: i9.ToolBarSpacerComponent, selector: "kendo-toolbar-spacer", exportAs: ["kendoToolBarSpacer"] }, { kind: "directive", type: i2$1.DialogContainerDirective, selector: "[kendoDialogContainer]" }, { kind: "component", type: RdictTableTitle, selector: "table-title", inputs: ["text"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2093
1909
|
}
|
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericRdictTableComponent, decorators: [{
|
|
2095
1911
|
type: Component,
|
|
2096
1912
|
args: [{ selector: 'rsl-rdict-generic-table', encapsulation: ViewEncapsulation.None, imports: [
|
|
2097
|
-
CommonModule,
|
|
2098
1913
|
RouterModule,
|
|
2099
|
-
// MatPaginatorModule,
|
|
2100
|
-
// MatTableModule,
|
|
2101
1914
|
TranslateModule,
|
|
2102
1915
|
KENDO_GRID,
|
|
2103
1916
|
KENDO_TOOLBAR,
|
|
@@ -2105,8 +1918,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
2105
1918
|
KENDO_BUTTONS,
|
|
2106
1919
|
KENDO_DIALOG,
|
|
2107
1920
|
RdictTableTitle
|
|
2108
|
-
], providers: [], template: "<kendo-grid [data]=\"dataSource\" [sortable]=\"true\" [filterable]=\"showSerach\" [resizable]=\"true\" (add)=\"addHandler()\"\r\n (edit)=\"editHandler($event)\" (remove)=\"removeHandler($event)\"\r\n (filterChange)=\"filterChange($event)\"\r\n (dataStateChange)=\"dataStateChange($event)\"\r\n
|
|
2109
|
-
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.TranslateService }, { type: i0.Injector }, { type:
|
|
1921
|
+
], providers: [], template: "<kendo-grid [data]=\"dataSource\" [sortable]=\"true\" [filterable]=\"showSerach\" [resizable]=\"true\" (add)=\"addHandler()\"\r\n (edit)=\"editHandler($event)\" (remove)=\"removeHandler($event)\"\r\n (filterChange)=\"filterChange($event)\"\r\n (dataStateChange)=\"dataStateChange($event)\"\r\n\r\n [pageable]=\"{pageSizes:pageSizes}\" [pageSize]=\"state.take\"\r\n [skip]=\"state.skip\" [sort]=\"state.sort\" >\r\n <kendo-toolbar>\r\n <table-title text=\"{{title}}\"></table-title>\r\n <kendo-toolbar-messages>Test</kendo-toolbar-messages>\r\n <!-- <kendo-toolbar-separator></kendo-toolbar-separator> -->\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n @if (hasAdd) {\r\n <kendo-toolbar-button kendoButton [svgIcon]=\"svgAdd\" text=\"Add new\" kendoGridAddTool></kendo-toolbar-button>\r\n }\r\n </kendo-toolbar>\r\n\r\n <!-- <kendo-toolbar>\r\n\r\n <kendo-toolbar-spacer></kendo-toolbar-spacer>\r\n <button kendoGridAddCommand type=\"button\">Add new</button>\r\n</kendo-toolbar> -->\r\n<!-- <kendo-grid-column *ngFor=\"let column of allColumns\" field=\"{{ column.propertyName }}\"\r\ntitle=\" {{column.translateKey | translate}}\">\r\n</kendo-grid-column> -->\r\n\r\n@for (column of allColumns; track column) {\r\n <kendo-grid-column [field]=\"column.propertyName\"\r\n [title]=\"column.translateKey | translate\" [format]=\"column.format\" [filter]=\"inferFilterType(column)\">\r\n <!-- Use ng-template to customize the column content -->\r\n @if (column.isEditLink) {\r\n <ng-template kendoGridCellTemplate let-dataItem>\r\n <!-- Create a link that calls editHandler(dataItem) -->\r\n <a href=\"javascript:void(0)\" (click)=\"edit(dataItem,column)\" class=\"edit-link\">\r\n {{ getCellValue(dataItem,column) }}\r\n </a>\r\n </ng-template>\r\n } @else {\r\n {{ getCellValue(dataItem,column) }}\r\n }\r\n <!-- <ng-template *ngIf=\"column.type=='reference'; else defaultTemplate\" kendoGridCellTemplate let-dataItem>\r\n <a href=\"javascript:void(0)\" (click)=\"edit(dataItem)\" class=\"edit-link\">\r\n {{ getCellValue$(dataItem,column) | async }}\r\n </a>\r\n </ng-template> -->\r\n <!-- Default template for non-link columns -->\r\n</kendo-grid-column>\r\n}\r\n\r\n\r\n@if (canEdit && canDelete) {\r\n <kendo-grid-command-column title=\"\" [width]=\"100\">\r\n <ng-template kendoGridCellTemplate>\r\n <!-- <button kendoButton kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\" ></button>\r\n <button kendoButton kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button> -->\r\n @if (canEdit) {\r\n <button kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\"></button>\r\n }\r\n @if (canDelete) {\r\n <button kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button>\r\n }\r\n </ng-template>\r\n </kendo-grid-command-column>\r\n}\r\n</kendo-grid>\r\n<div kendoDialogContainer></div>", styles: [".edit-link{color:#00f!important;text-decoration:underline!important;cursor:pointer!important}\n"] }]
|
|
1922
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: i2.TranslateService }, { type: i0.Injector }, { type: i1.LocalFileService }, { type: ReactiveDictionary }, { type: MaterialDialogService }, { type: i6$2.IntlService }, { type: FileService }], propDecorators: { showSerach: [{
|
|
2110
1923
|
type: Input
|
|
2111
1924
|
}], searchFields: [{
|
|
2112
1925
|
type: Input
|
|
@@ -2141,9 +1954,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
2141
1954
|
type: Output
|
|
2142
1955
|
}] } });
|
|
2143
1956
|
|
|
2144
|
-
// projects/my-library/src/lib/socket-config.token.ts
|
|
2145
|
-
const SOCKET_URL = new InjectionToken('SocketUrl');
|
|
2146
|
-
|
|
2147
1957
|
/*
|
|
2148
1958
|
* Public API Surface of rdict
|
|
2149
1959
|
*/
|
|
@@ -2152,5 +1962,5 @@ const SOCKET_URL = new InjectionToken('SocketUrl');
|
|
|
2152
1962
|
* Generated bundle index. Do not edit.
|
|
2153
1963
|
*/
|
|
2154
1964
|
|
|
2155
|
-
export { FullComponent, GenericRdictTableComponent, MaterialDialogService,
|
|
1965
|
+
export { FileService, FullComponent, GenericRdictTableComponent, MaterialDialogService, RdictCrudComponent, ReactiveDictionary, SOCKET_URL, SocketService };
|
|
2156
1966
|
//# sourceMappingURL=rosoftlab-rdict.mjs.map
|