raise-common-lib 0.0.57 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/raise-common-lib.umd.js +99 -8
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +2 -2
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.js +52 -0
- package/esm2015/lib/common-grid/grid-action/grid-action.component.js +25 -0
- package/esm2015/lib/layout/main-container/index.component.js +5 -5
- package/esm2015/lib/raise-common-lib.module.js +13 -1
- package/esm2015/public-api.js +3 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.js +58 -0
- package/esm5/lib/common-grid/grid-action/grid-action.component.js +27 -0
- package/esm5/lib/layout/main-container/index.component.js +5 -5
- package/esm5/lib/raise-common-lib.module.js +13 -1
- package/esm5/public-api.js +3 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +91 -6
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +97 -6
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.d.ts +7 -0
- package/lib/common-grid/grid-action/grid-action.component.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/grid-action-copy.svg +6 -0
- package/src/assets/img/grid-action-delete.svg +14 -0
- package/src/assets/img/grid-action-detail.svg +7 -0
- package/src/assets/img/grid-action-download.svg +7 -0
- package/src/assets/img/grid-action-edit.svg +4 -0
- package/src/assets/img/grid-action-export.svg +12 -0
- package/src/assets/img/grid-action-move.svg +8 -0
- package/src/assets/img/grid-action-note.svg +10 -0
- package/src/assets/img/grid-action-send.svg +5 -0
- package/src/assets/img/grid-action-settle.svg +13 -0
- package/src/assets/img/grid-pager-arrow-left.svg +3 -0
- package/src/assets/img/grid-pager-arrows-left.svg +4 -0
- package/src/assets/img/more.svg +5 -0
- package/src/assets/img/table-column-menu.svg +5 -0
- package/src/assets/img/table-sort-arrow.svg +6 -0
- package/src/assets/style/reset/grid.scss +465 -121
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign, __read, __spread } from 'tslib';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, ContentChild, Injectable, ɵɵdefineInjectable, ɵɵinject, HostListener, ComponentFactoryResolver, ViewContainerRef, ViewChildren, Inject, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, HostBinding, ContentChild, Injectable, ɵɵdefineInjectable, ɵɵinject, HostListener, ComponentFactoryResolver, ViewContainerRef, ViewChildren, Inject, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import { GridModule, PagerModule, GridAllModule, PageService, SortService, FilterService, ExcelExportService, EditService, ResizeService, ToolbarService, ColumnChooserService, AggregateService, ColumnMenuService, DetailRowService, SelectionService, GroupService } from '@syncfusion/ej2-angular-grids';
|
|
4
4
|
import { debounce } from 'lodash';
|
|
5
5
|
import { NavigationEnd, Router, ActivatedRoute, RouteReuseStrategy } from '@angular/router';
|
|
@@ -27,6 +27,8 @@ import { CarouselAllModule, ToolbarModule, TabModule } from '@syncfusion/ej2-ang
|
|
|
27
27
|
import { PdfViewerModule, LinkAnnotationService, BookmarkViewService, MagnificationService, ThumbnailViewService, ToolbarService as ToolbarService$1, NavigationService, TextSearchService, TextSelectionService, PrintService } from '@syncfusion/ej2-angular-pdfviewer';
|
|
28
28
|
import { DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
|
|
29
29
|
import { RichTextEditorAllModule, HtmlEditorService, ToolbarService as ToolbarService$2 } from '@syncfusion/ej2-angular-richtexteditor';
|
|
30
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
31
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* @fileoverview added by tsickle
|
|
@@ -889,6 +891,87 @@ if (false) {
|
|
|
889
891
|
CommonGridComponent.prototype.ref;
|
|
890
892
|
}
|
|
891
893
|
|
|
894
|
+
/**
|
|
895
|
+
* @fileoverview added by tsickle
|
|
896
|
+
* Generated from: lib/common-grid/grid-action/grid-action.component.ts
|
|
897
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
898
|
+
*/
|
|
899
|
+
var GridActionComponent = /** @class */ (function () {
|
|
900
|
+
function GridActionComponent() {
|
|
901
|
+
this.translation = JSON.parse(localStorage.getItem("translation"));
|
|
902
|
+
}
|
|
903
|
+
GridActionComponent.decorators = [
|
|
904
|
+
{ type: Component, args: [{
|
|
905
|
+
selector: "rs-grid-action",
|
|
906
|
+
template: "<button\r\n\tclass=\"grid-action-toggle\"\r\n\tmat-button\r\n\ttype=\"button\"\r\n\t[matMenuTriggerFor]=\"menu\"\r\n\tmatTooltip=\"{{ translation.ACTIONS }}\"\r\n>\r\n\t<mat-icon svgIcon=\"more\"></mat-icon>\r\n</button>\r\n<mat-menu #menu=\"matMenu\" class=\"grid-action-menu-content\">\r\n\t<ng-content></ng-content>\r\n</mat-menu>\r\n",
|
|
907
|
+
styles: [":host{flex:none;display:block;margin-left:auto}.grid-action-toggle{width:24px;height:24px;min-width:24px;max-width:24px;padding:0;border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;background:0 0}.grid-action-toggle:hover{background:rgba(214,227,245,.2)}.grid-action-toggle .mat-button-wrapper{max-height:24px;height:24px}.grid-action-toggle ::ng-deep .mat-icon{width:16px;height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}::ng-deep .grid-action-menu-content.mat-menu-panel{padding:8px;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.25)}::ng-deep .grid-action-menu-content.mat-menu-panel kt-grid-action-item.disabled{pointer-events:none}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;height:28px!important;padding:0 16px 0 8px;border-radius:4px;color:#44566c;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:14px}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item:hover{background-color:rgba(0,0,0,.04)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item:hover .mat-menu-ripple{background:0 0!important}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image::before{display:block;width:16px;height:16px;line-height:16px}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Detail]::before{content:url(/assets/img/grid-action-detail.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Delete]::before{content:url(/assets/img/grid-action-delete.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Send]::before{content:url(/assets/img/grid-action-send.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Copy]::before{content:url(/assets/img/grid-action-copy.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Edit]::before{content:url(/assets/img/grid-action-edit.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Note]::before{content:url(/assets/img/grid-action-note.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Settle]::before{content:url(/assets/img/grid-action-settle.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Download]::before{content:url(/assets/img/grid-action-download.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Preview]::before{content:url(/assets/img/grid-action-detail.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Export]::before{content:url(/assets/img/grid-action-export.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image[data-type=Move]::before{content:url(/assets/img/grid-action-move.svg)}::ng-deep .grid-action-menu-content.mat-menu-panel button.grid-action-item.mat-menu-item .grid-action-image img{height:16px;display:block}"]
|
|
908
|
+
}] }
|
|
909
|
+
];
|
|
910
|
+
/** @nocollapse */
|
|
911
|
+
GridActionComponent.ctorParameters = function () { return []; };
|
|
912
|
+
return GridActionComponent;
|
|
913
|
+
}());
|
|
914
|
+
if (false) {
|
|
915
|
+
/** @type {?} */
|
|
916
|
+
GridActionComponent.prototype.translation;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* @fileoverview added by tsickle
|
|
921
|
+
* Generated from: lib/common-grid/grid-action/grid-action-item/grid-action-item.component.ts
|
|
922
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
923
|
+
*/
|
|
924
|
+
var GridActionItemComponent = /** @class */ (function () {
|
|
925
|
+
function GridActionItemComponent() {
|
|
926
|
+
this.ImageType = [
|
|
927
|
+
"Detail",
|
|
928
|
+
"Edit",
|
|
929
|
+
"Download",
|
|
930
|
+
"Delete",
|
|
931
|
+
"Note",
|
|
932
|
+
"Send",
|
|
933
|
+
"Copy",
|
|
934
|
+
"Settle",
|
|
935
|
+
"Preview",
|
|
936
|
+
"Export",
|
|
937
|
+
"Move",
|
|
938
|
+
];
|
|
939
|
+
}
|
|
940
|
+
Object.defineProperty(GridActionItemComponent.prototype, "hostDisabled", {
|
|
941
|
+
get: /**
|
|
942
|
+
* @return {?}
|
|
943
|
+
*/
|
|
944
|
+
function () {
|
|
945
|
+
return !!this.disabled;
|
|
946
|
+
},
|
|
947
|
+
enumerable: true,
|
|
948
|
+
configurable: true
|
|
949
|
+
});
|
|
950
|
+
GridActionItemComponent.decorators = [
|
|
951
|
+
{ type: Component, args: [{
|
|
952
|
+
selector: "rs-grid-action-item",
|
|
953
|
+
template: "<button\r\n\tclass=\"grid-action-item\"\r\n\tmat-menu-item\r\n\ttype=\"button\"\r\n\t[disabled]=\"!!disabled\"\r\n>\r\n\t<span class=\"grid-action-image\" [attr.data-type]=\"image\">\r\n\t\t<img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n\t</span>\r\n\t<span>{{ text }}</span>\r\n</button>\r\n"
|
|
954
|
+
}] }
|
|
955
|
+
];
|
|
956
|
+
GridActionItemComponent.propDecorators = {
|
|
957
|
+
image: [{ type: Input, args: ["image",] }],
|
|
958
|
+
text: [{ type: Input, args: ["text",] }],
|
|
959
|
+
disabled: [{ type: Input, args: ["disabled",] }],
|
|
960
|
+
hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
|
|
961
|
+
};
|
|
962
|
+
return GridActionItemComponent;
|
|
963
|
+
}());
|
|
964
|
+
if (false) {
|
|
965
|
+
/** @type {?} */
|
|
966
|
+
GridActionItemComponent.prototype.image;
|
|
967
|
+
/** @type {?} */
|
|
968
|
+
GridActionItemComponent.prototype.text;
|
|
969
|
+
/** @type {?} */
|
|
970
|
+
GridActionItemComponent.prototype.disabled;
|
|
971
|
+
/** @type {?} */
|
|
972
|
+
GridActionItemComponent.prototype.ImageType;
|
|
973
|
+
}
|
|
974
|
+
|
|
892
975
|
/**
|
|
893
976
|
* @fileoverview added by tsickle
|
|
894
977
|
* Generated from: lib/float-box/index.component.ts
|
|
@@ -19474,13 +19557,13 @@ var MainContainerComponent = /** @class */ (function () {
|
|
|
19474
19557
|
/** @type {?} */
|
|
19475
19558
|
var screenWidth = window.innerWidth;
|
|
19476
19559
|
if (screenWidth <= 992) {
|
|
19477
|
-
this.headerRef.onToggleMenu(false);
|
|
19560
|
+
this.headerRef && this.headerRef.onToggleMenu(false);
|
|
19478
19561
|
}
|
|
19479
19562
|
else if (screenWidth < 1200) {
|
|
19480
|
-
this.headerRef.onToggleMenu(true);
|
|
19563
|
+
this.headerRef && this.headerRef.onToggleMenu(true);
|
|
19481
19564
|
}
|
|
19482
19565
|
else {
|
|
19483
|
-
this.headerRef.onToggleMenu(false);
|
|
19566
|
+
this.headerRef && this.headerRef.onToggleMenu(false);
|
|
19484
19567
|
}
|
|
19485
19568
|
};
|
|
19486
19569
|
/**
|
|
@@ -19502,7 +19585,7 @@ var MainContainerComponent = /** @class */ (function () {
|
|
|
19502
19585
|
/** @type {?} */
|
|
19503
19586
|
var screenWidth = window.innerWidth;
|
|
19504
19587
|
if (screenWidth <= 992 && this.isCollapsed) {
|
|
19505
|
-
this.headerRef.onToggleMenu();
|
|
19588
|
+
this.headerRef && this.headerRef.onToggleMenu();
|
|
19506
19589
|
}
|
|
19507
19590
|
};
|
|
19508
19591
|
MainContainerComponent.decorators = [
|
|
@@ -21617,6 +21700,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
21617
21700
|
{ type: NgModule, args: [{
|
|
21618
21701
|
declarations: [
|
|
21619
21702
|
CommonGridComponent,
|
|
21703
|
+
GridActionComponent,
|
|
21704
|
+
GridActionItemComponent,
|
|
21620
21705
|
FloatBoxComponent,
|
|
21621
21706
|
RsPageListComponent,
|
|
21622
21707
|
RsPageTabComponent,
|
|
@@ -21642,6 +21727,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
21642
21727
|
ReactiveFormsModule,
|
|
21643
21728
|
FormsModule,
|
|
21644
21729
|
MatSnackBarModule,
|
|
21730
|
+
MatMenuModule,
|
|
21731
|
+
MatTooltipModule,
|
|
21645
21732
|
MatDialogModule,
|
|
21646
21733
|
MatIconModule,
|
|
21647
21734
|
GridModule,
|
|
@@ -21722,6 +21809,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
21722
21809
|
ReactiveFormsModule,
|
|
21723
21810
|
FormsModule,
|
|
21724
21811
|
MatSnackBarModule,
|
|
21812
|
+
MatMenuModule,
|
|
21813
|
+
MatTooltipModule,
|
|
21725
21814
|
MatDialogModule,
|
|
21726
21815
|
GridModule,
|
|
21727
21816
|
PagerModule,
|
|
@@ -21760,6 +21849,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
21760
21849
|
SplitButtonModule,
|
|
21761
21850
|
RichTextEditorAllModule,
|
|
21762
21851
|
CommonGridComponent,
|
|
21852
|
+
GridActionComponent,
|
|
21853
|
+
GridActionItemComponent,
|
|
21763
21854
|
FloatBoxComponent,
|
|
21764
21855
|
RsPageListComponent,
|
|
21765
21856
|
RsPageTabComponent,
|
|
@@ -21799,5 +21890,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
21799
21890
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21800
21891
|
*/
|
|
21801
21892
|
|
|
21802
|
-
export { CheckboxGroupComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, FloatBoxComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RadioGroupComponent, RaiseCommonLibModule, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, TranslationService, filterShowSection, NewActionNotificationComponent as ɵa, CommonDialogComponent as ɵb, CommonDeleteComponent as ɵc };
|
|
21893
|
+
export { CheckboxGroupComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RadioGroupComponent, RaiseCommonLibModule, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, TranslationService, filterShowSection, NewActionNotificationComponent as ɵa, CommonDialogComponent as ɵb, CommonDeleteComponent as ɵc };
|
|
21803
21894
|
//# sourceMappingURL=raise-common-lib.js.map
|