@rosoftlab/rdict 1.0.4-alpha-11 → 1.0.4-alpha-12
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 +103 -275
- package/fesm2022/rosoftlab-rdict.mjs.map +1 -1
- package/lib/components/layouts/full/full.component.d.ts +1 -3
- package/lib/core.d.ts +0 -1
- package/lib/services/index.d.ts +0 -1
- package/package.json +28 -28
- 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/services/user.service.d.ts +0 -15
|
@@ -2,38 +2,36 @@ import * as i6 from '@angular/common';
|
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Inject, Injectable, forwardRef, ViewChild, Input, Component, NgModule, HostBinding, EventEmitter, ElementRef, Output, ViewEncapsulation, InjectionToken } from '@angular/core';
|
|
5
|
-
import * as i1 from '@angular/router';
|
|
5
|
+
import * as i1$1 from '@angular/router';
|
|
6
6
|
import { RouterModule, UrlSegment, NavigationStart } from '@angular/router';
|
|
7
7
|
import * as i2 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import { ButtonsModule, KENDO_BUTTONS } from '@progress/kendo-angular-buttons';
|
|
10
10
|
import { KENDO_SVGICON } from '@progress/kendo-angular-icons';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i6$1 from '@progress/kendo-angular-layout';
|
|
12
12
|
import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i5 from '@progress/kendo-angular-toolbar';
|
|
14
14
|
import { ToolBarToolComponent, ToolBarModule, KENDO_TOOLBAR } from '@progress/kendo-angular-toolbar';
|
|
15
15
|
import * as allIcons from '@progress/kendo-svg-icons';
|
|
16
16
|
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';
|
|
17
|
+
import * as i1 from '@rosoftlab/core';
|
|
19
18
|
import { Subject, fromEvent, Observable, defer, mergeMap, filter, race, first, map, timeout, from, tap, catchError, throwError, BehaviorSubject } from 'rxjs';
|
|
20
19
|
import { v4 } from 'uuid';
|
|
21
20
|
import { io } from 'socket.io-client';
|
|
22
|
-
import * as i2$1 from '@progress/kendo-angular-dialog';
|
|
23
|
-
import { DialogCloseResult, KENDO_DIALOG } from '@progress/kendo-angular-dialog';
|
|
24
|
-
import * as i3 from '@progress/kendo-angular-notification';
|
|
25
|
-
import { __decorate, __metadata } from 'tslib';
|
|
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';
|
|
26
|
+
import * as i2$1 from '@progress/kendo-angular-dialog';
|
|
27
|
+
import { DialogCloseResult, KENDO_DIALOG } from '@progress/kendo-angular-dialog';
|
|
31
28
|
import * as i9 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
|
|
|
@@ -629,256 +627,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
629
627
|
}]
|
|
630
628
|
}], ctorParameters: () => [{ type: SocketService }] });
|
|
631
629
|
|
|
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
630
|
class KendoToolbarSpanComponent extends ToolBarToolComponent {
|
|
883
631
|
constructor() {
|
|
884
632
|
super();
|
|
@@ -999,8 +747,8 @@ class FullComponent {
|
|
|
999
747
|
});
|
|
1000
748
|
return drawerItems;
|
|
1001
749
|
}
|
|
1002
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FullComponent, deps: [{ token: UserService }, { token: i1.Router }, { token: i2.TranslateService }, { token: ReactiveDictionary }, { token:
|
|
1003
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", 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: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.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:
|
|
750
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FullComponent, deps: [{ token: i1.UserService }, { token: i1$1.Router }, { token: i2.TranslateService }, { token: ReactiveDictionary }, { token: i1.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
751
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", 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: CommonModule }, { 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: i5.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i5.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: i5.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: i5.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
752
|
}
|
|
1005
753
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FullComponent, decorators: [{
|
|
1006
754
|
type: Component,
|
|
@@ -1016,7 +764,87 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
1016
764
|
KENDO_TOOLBAR,
|
|
1017
765
|
KendoToolbarSpanComponent
|
|
1018
766
|
], 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:
|
|
767
|
+
}], ctorParameters: () => [{ type: i1.UserService }, { type: i1$1.Router }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type: i1.AuthService }] });
|
|
768
|
+
|
|
769
|
+
class MaterialDialogService {
|
|
770
|
+
constructor(translate, dialogService, notificationService) {
|
|
771
|
+
this.translate = translate;
|
|
772
|
+
this.dialogService = dialogService;
|
|
773
|
+
this.notificationService = notificationService;
|
|
774
|
+
this.state = {
|
|
775
|
+
content: "Your data has been saved.",
|
|
776
|
+
type: { style: "success", icon: true },
|
|
777
|
+
animation: { type: "slide", duration: 400 },
|
|
778
|
+
hideAfter: 3000,
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
confirmDelete() {
|
|
782
|
+
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"));
|
|
783
|
+
}
|
|
784
|
+
confirm(content, title, confirmButtonText, cancelButtonText) {
|
|
785
|
+
const dialog = this.dialogService.open({
|
|
786
|
+
title: title || "Confirm",
|
|
787
|
+
content: content || "Are you sure?",
|
|
788
|
+
actions: [
|
|
789
|
+
{ text: cancelButtonText || "No", result: false },
|
|
790
|
+
{ text: confirmButtonText || "Yes", themeColor: "primary", result: true }
|
|
791
|
+
],
|
|
792
|
+
width: 450,
|
|
793
|
+
height: 200,
|
|
794
|
+
minWidth: 250,
|
|
795
|
+
});
|
|
796
|
+
// Return an Observable<boolean>
|
|
797
|
+
return new Observable((observer) => {
|
|
798
|
+
dialog.result.subscribe((result) => {
|
|
799
|
+
if (result instanceof DialogCloseResult) {
|
|
800
|
+
// Dialog was closed without an action
|
|
801
|
+
observer.next(false);
|
|
802
|
+
}
|
|
803
|
+
else {
|
|
804
|
+
const actionResult = result;
|
|
805
|
+
observer.next(actionResult.result);
|
|
806
|
+
}
|
|
807
|
+
observer.complete(); // Complete the observable
|
|
808
|
+
});
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
showError(content, title, confirmButtonText, cancelButtonText) {
|
|
812
|
+
const dialog = this.dialogService.open({
|
|
813
|
+
title: title || "Error",
|
|
814
|
+
content: content || "Error message?",
|
|
815
|
+
width: 450,
|
|
816
|
+
height: 200,
|
|
817
|
+
minWidth: 250,
|
|
818
|
+
});
|
|
819
|
+
// Return an Observable<boolean>
|
|
820
|
+
return new Observable((observer) => {
|
|
821
|
+
dialog.result.subscribe((result) => {
|
|
822
|
+
if (result instanceof DialogCloseResult) {
|
|
823
|
+
// Dialog was closed without an action
|
|
824
|
+
observer.next(false);
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
const actionResult = result;
|
|
828
|
+
observer.next(actionResult.result);
|
|
829
|
+
}
|
|
830
|
+
observer.complete(); // Complete the observable
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
showSaveMessage(message) {
|
|
835
|
+
this.state.content = message || "Your data has been saved.";
|
|
836
|
+
this.state.type = { style: "success", icon: true };
|
|
837
|
+
this.notificationService.show(this.state);
|
|
838
|
+
}
|
|
839
|
+
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 }); }
|
|
840
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: MaterialDialogService, providedIn: 'root' }); }
|
|
841
|
+
}
|
|
842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: MaterialDialogService, decorators: [{
|
|
843
|
+
type: Injectable,
|
|
844
|
+
args: [{
|
|
845
|
+
providedIn: 'root'
|
|
846
|
+
}]
|
|
847
|
+
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i2$1.DialogService }, { type: i3.NotificationService }] });
|
|
1020
848
|
|
|
1021
849
|
class TranslateExtension {
|
|
1022
850
|
constructor(translate) {
|
|
@@ -1295,8 +1123,8 @@ class RdictCrudComponent {
|
|
|
1295
1123
|
this.router.navigate([this.routeHistory.getPreviousUrl() || '/']);
|
|
1296
1124
|
}
|
|
1297
1125
|
}
|
|
1298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: RdictCrudComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.TranslateService }, { token: ReactiveDictionary }, { token:
|
|
1299
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", type: RdictCrudComponent, isStandalone: true, selector: "app-rdict-crud", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, 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\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
|
|
1126
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", 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 }); }
|
|
1127
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", type: RdictCrudComponent, isStandalone: true, selector: "app-rdict-crud", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, 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\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.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { 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],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: i5.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i5.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: i5.ToolBarSpacerComponent, selector: "kendo-toolbar-spacer", exportAs: ["kendoToolBarSpacer"] }, { kind: "directive", type: i2$1.DialogContainerDirective, selector: "[kendoDialogContainer]" }] }); }
|
|
1300
1128
|
}
|
|
1301
1129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: RdictCrudComponent, decorators: [{
|
|
1302
1130
|
type: Component,
|
|
@@ -1312,7 +1140,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
1312
1140
|
KENDO_BUTTONS,
|
|
1313
1141
|
KENDO_DIALOG
|
|
1314
1142
|
], 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\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"] }]
|
|
1315
|
-
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.TranslateService }, { type: ReactiveDictionary }, { type:
|
|
1143
|
+
}], 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
1144
|
type: HostBinding,
|
|
1317
1145
|
args: ['class']
|
|
1318
1146
|
}] } });
|
|
@@ -1448,13 +1276,13 @@ class FileService {
|
|
|
1448
1276
|
}
|
|
1449
1277
|
}));
|
|
1450
1278
|
}
|
|
1451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FileService, deps: [{ token: i1$
|
|
1279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FileService, deps: [{ token: i1$2.HttpClient }, { token: SOCKET_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1452
1280
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
1453
1281
|
}
|
|
1454
1282
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FileService, decorators: [{
|
|
1455
1283
|
type: Injectable,
|
|
1456
1284
|
args: [{ providedIn: 'root' }]
|
|
1457
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1285
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: undefined, decorators: [{
|
|
1458
1286
|
type: Inject,
|
|
1459
1287
|
args: [SOCKET_URL]
|
|
1460
1288
|
}] }] });
|
|
@@ -1668,7 +1496,7 @@ class RdictTableTitle extends ToolBarToolComponent {
|
|
|
1668
1496
|
<ng-template #toolbarTemplate>
|
|
1669
1497
|
<kendo-label>{{text}}</kendo-label>
|
|
1670
1498
|
</ng-template>
|
|
1671
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$
|
|
1499
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$3.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }] }); }
|
|
1672
1500
|
}
|
|
1673
1501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: RdictTableTitle, decorators: [{
|
|
1674
1502
|
type: Component,
|
|
@@ -2085,11 +1913,11 @@ class GenericRdictTableComponent {
|
|
|
2085
1913
|
return 'boolean';
|
|
2086
1914
|
return 'text';
|
|
2087
1915
|
}
|
|
2088
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: GenericRdictTableComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.TranslateService }, { token: i0.Injector }, { token:
|
|
1916
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", 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 }); }
|
|
2089
1917
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", 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 <kendo-toolbar-button *ngIf=\"hasAdd\" kendoButton [svgIcon]=\"svgAdd\" text=\"Add new\" kendoGridAddTool></kendo-toolbar-button>\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\n title=\" {{column.translateKey | translate}}\">\r\n </kendo-grid-column> -->\r\n\r\n <kendo-grid-column *ngFor=\"let column of allColumns\" [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 <ng-template *ngIf=\"column.isEditLink; else defaultTemplate\" 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 \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 <ng-template #defaultTemplate kendoGridCellTemplate let-dataItem>\r\n {{ getCellValue(dataItem,column) }}\r\n </ng-template>\r\n </kendo-grid-column>\r\n\r\n\r\n <kendo-grid-command-column *ngIf=\"canEdit && canDelete\" 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 <button *ngIf=\"canEdit\" kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\"></button>\r\n <button *ngIf=\"canDelete\" kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button>\r\n </ng-template>\r\n </kendo-grid-command-column>\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: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
|
|
2090
1918
|
// MatPaginatorModule,
|
|
2091
1919
|
// 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", "
|
|
1920
|
+
TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "component", type: i9.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: 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", "filterVariant", "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: i5.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: i5.ToolbarCustomMessagesComponent, selector: "kendo-toolbar-messages" }, { kind: "component", type: i5.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: i5.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 }); }
|
|
2093
1921
|
}
|
|
2094
1922
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: GenericRdictTableComponent, decorators: [{
|
|
2095
1923
|
type: Component,
|
|
@@ -2106,7 +1934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
2106
1934
|
KENDO_DIALOG,
|
|
2107
1935
|
RdictTableTitle
|
|
2108
1936
|
], 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 <kendo-toolbar-button *ngIf=\"hasAdd\" kendoButton [svgIcon]=\"svgAdd\" text=\"Add new\" kendoGridAddTool></kendo-toolbar-button>\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\n title=\" {{column.translateKey | translate}}\">\r\n </kendo-grid-column> -->\r\n\r\n <kendo-grid-column *ngFor=\"let column of allColumns\" [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 <ng-template *ngIf=\"column.isEditLink; else defaultTemplate\" 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 \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 <ng-template #defaultTemplate kendoGridCellTemplate let-dataItem>\r\n {{ getCellValue(dataItem,column) }}\r\n </ng-template>\r\n </kendo-grid-column>\r\n\r\n\r\n <kendo-grid-command-column *ngIf=\"canEdit && canDelete\" 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 <button *ngIf=\"canEdit\" kendoGridEditCommand [svgIcon]=\"svgEdit\" themeColor=\"light\"></button>\r\n <button *ngIf=\"canDelete\" kendoGridRemoveCommand [svgIcon]=\"svgDelete\" themeColor=\"error\"></button>\r\n </ng-template>\r\n </kendo-grid-command-column>\r\n</kendo-grid>\r\n<div kendoDialogContainer></div>", styles: [".edit-link{color:#00f!important;text-decoration:underline!important;cursor:pointer!important}\n"] }]
|
|
2109
|
-
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.TranslateService }, { type: i0.Injector }, { type:
|
|
1937
|
+
}], 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
1938
|
type: Input
|
|
2111
1939
|
}], searchFields: [{
|
|
2112
1940
|
type: Input
|
|
@@ -2152,5 +1980,5 @@ const SOCKET_URL = new InjectionToken('SocketUrl');
|
|
|
2152
1980
|
* Generated bundle index. Do not edit.
|
|
2153
1981
|
*/
|
|
2154
1982
|
|
|
2155
|
-
export { FullComponent, GenericRdictTableComponent, MaterialDialogService,
|
|
1983
|
+
export { FullComponent, GenericRdictTableComponent, MaterialDialogService, RdictCrudComponent, ReactiveDictionary, SOCKET_URL, SocketService };
|
|
2156
1984
|
//# sourceMappingURL=rosoftlab-rdict.mjs.map
|