raise-common-lib-new 0.0.4 → 0.0.20
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/esm2022/lib/common-grid/index.component.mjs +2 -2
- package/esm2022/lib/dialog/common-delete-dialog/index.component.mjs +46 -0
- package/esm2022/lib/dialog/common-dialog/index.component.mjs +85 -0
- package/esm2022/lib/dialog/new-action-notification/new-action-notification.component.mjs +51 -0
- package/esm2022/lib/form/tag-input/index.component.mjs +2 -2
- package/esm2022/lib/layout/grid-box/index.component.mjs +42 -0
- package/esm2022/lib/layout/main-container/index.component.mjs +7 -3
- package/esm2022/lib/layout/multi-tab/index.component.mjs +162 -0
- package/esm2022/lib/layout/page-list/index.component.mjs +43 -0
- package/esm2022/lib/layout/page-tab/index.component.mjs +37 -0
- package/esm2022/lib/layout/rs-aside/index.component.mjs +5 -5
- package/esm2022/lib/layout/rs-header/index.component.mjs +3 -3
- package/esm2022/lib/raise-common-lib.module.mjs +72 -15
- package/esm2022/lib/service/common-function.service.mjs +39 -1
- package/esm2022/lib/service/dialog.service.mjs +132 -0
- package/esm2022/lib/service/icon-loader.service.mjs +12 -9
- package/esm2022/lib/service/keep-alive.service.mjs +44 -0
- package/esm2022/public-api.mjs +7 -2
- package/fesm2022/raise-common-lib-new.mjs +718 -58
- package/fesm2022/raise-common-lib-new.mjs.map +1 -1
- package/lib/dialog/common-delete-dialog/index.component.d.ts +29 -0
- package/lib/dialog/common-dialog/index.component.d.ts +29 -0
- package/lib/dialog/new-action-notification/new-action-notification.component.d.ts +33 -0
- package/lib/layout/grid-box/index.component.d.ts +15 -0
- package/lib/layout/main-container/index.component.d.ts +2 -1
- package/lib/layout/multi-tab/index.component.d.ts +40 -0
- package/lib/layout/page-list/index.component.d.ts +15 -0
- package/lib/layout/page-tab/index.component.d.ts +14 -0
- package/lib/raise-common-lib.module.d.ts +36 -28
- package/lib/service/common-function.service.d.ts +2 -0
- package/lib/service/dialog.service.d.ts +55 -0
- package/lib/service/icon-loader.service.d.ts +5 -3
- package/lib/service/keep-alive.service.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -1
- package/src/assets/img/calendar-disabled.svg +6 -0
- package/src/assets/img/close-url.svg +10 -0
- package/src/assets/img/close.svg +10 -0
- package/src/assets/img/desktop-refresh-btn.svg +6 -0
- package/src/assets/img/icon-more-active.svg +7 -0
- package/src/assets/img/icon-more.svg +7 -0
- package/src/assets/img/raise_loading.gif +0 -0
- package/src/assets/img/split-button-arrow.svg +3 -0
- package/src/assets/style/reset/button.scss +62 -27
- package/src/assets/style/reset/dropdown.scss +26 -8
- package/src/assets/style/reset/grid.scss +244 -0
- package/src/assets/style/reset/input.scss +35 -3
- package/src/assets/style/reset/mat-dialog.scss +3 -0
- package/src/assets/style/style.scss +2 -0
- package/src/assets/style/variables.scss +2 -0
- package/esm2022/lib/layout/common-list/index.component.mjs +0 -43
- package/lib/layout/common-list/index.component.d.ts +0 -15
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface DialogConfig {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
saveBtnLabel?: string;
|
|
8
|
+
cancelBtnLabel?: string;
|
|
9
|
+
showErrorIcon?: boolean;
|
|
10
|
+
hideCloseIcon?: boolean;
|
|
11
|
+
size?: string;
|
|
12
|
+
hideSaveBtn?: boolean;
|
|
13
|
+
hideCloseBtn?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class CommonDeleteComponent implements OnInit {
|
|
16
|
+
data: DialogConfig;
|
|
17
|
+
dialogRef: MatDialogRef<CommonDeleteComponent>;
|
|
18
|
+
translation: any;
|
|
19
|
+
title: string;
|
|
20
|
+
saveBtnLabel: string;
|
|
21
|
+
cancelBtnLabel: string;
|
|
22
|
+
description: string;
|
|
23
|
+
size: string;
|
|
24
|
+
constructor(data: DialogConfig, dialogRef: MatDialogRef<CommonDeleteComponent>);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
onSave(e: any): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDeleteComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonDeleteComponent, "kt-common-delete-dialog", never, {}, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CommonDialogComponent implements OnInit {
|
|
5
|
+
dialogRef: MatDialogRef<CommonDialogComponent>;
|
|
6
|
+
translation: any;
|
|
7
|
+
hideHeader: boolean;
|
|
8
|
+
hideCloseIcon: boolean;
|
|
9
|
+
hideCloseBtn: boolean;
|
|
10
|
+
hideSaveBtn: boolean;
|
|
11
|
+
saveBtnLabel: string;
|
|
12
|
+
cancelBtnLabel: string;
|
|
13
|
+
showErrorIcon: boolean;
|
|
14
|
+
size: string;
|
|
15
|
+
title: string;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
saveEmit: EventEmitter<Function>;
|
|
18
|
+
closeEmit: EventEmitter<Function>;
|
|
19
|
+
constructor(dialogRef: MatDialogRef<CommonDialogComponent>);
|
|
20
|
+
footerContent: any;
|
|
21
|
+
customFooter: boolean;
|
|
22
|
+
ngAfterContentInit(): void;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
onClose(res?: any): void;
|
|
25
|
+
onSave(): void;
|
|
26
|
+
private getInfo;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDialogComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonDialogComponent, "kt-common-dialog", never, { "hideHeader": { "alias": "hideHeader"; "required": false; }; "hideCloseIcon": { "alias": "hideCloseIcon"; "required": false; }; "hideCloseBtn": { "alias": "hideCloseBtn"; "required": false; }; "hideSaveBtn": { "alias": "hideSaveBtn"; "required": false; }; "saveBtnLabel": { "alias": "saveBtnLabel"; "required": false; }; "cancelBtnLabel": { "alias": "cancelBtnLabel"; "required": false; }; "showErrorIcon": { "alias": "showErrorIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "title": { "alias": "title"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "saveEmit": "saveEmit"; "closeEmit": "closeEmit"; }, ["footerContent"], ["*", "[footerSlot]"], false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AfterViewInit } from "@angular/core";
|
|
2
|
+
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type LoadingProgress = {
|
|
5
|
+
done: boolean;
|
|
6
|
+
percent?: number;
|
|
7
|
+
};
|
|
8
|
+
export interface NotificationConfig {
|
|
9
|
+
message: string;
|
|
10
|
+
snackBar: MatSnackBar;
|
|
11
|
+
loadingCallback: (callback: (progress: LoadingProgress) => void) => void;
|
|
12
|
+
status?: "Success" | "Warning" | "Error";
|
|
13
|
+
type?: "Text" | "Detail" | "Loading" | "Progress";
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class NewActionNotificationComponent implements AfterViewInit {
|
|
17
|
+
data: NotificationConfig;
|
|
18
|
+
collapsed: boolean;
|
|
19
|
+
constructor(data: NotificationConfig);
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
closeNotification(): void;
|
|
22
|
+
expandNotification(): void;
|
|
23
|
+
get config(): {
|
|
24
|
+
message: string;
|
|
25
|
+
snackBar: MatSnackBar;
|
|
26
|
+
loadingCallback: (callback: (progress: LoadingProgress) => void) => void;
|
|
27
|
+
status: string;
|
|
28
|
+
type: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
};
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NewActionNotificationComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NewActionNotificationComponent, "kt-new-action-notification", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GridBoxComponent implements OnInit {
|
|
4
|
+
gridContent: any;
|
|
5
|
+
pageTitle: any;
|
|
6
|
+
customPageTitle: boolean;
|
|
7
|
+
isInner: boolean;
|
|
8
|
+
private debouncedInput;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
searchValue: any;
|
|
11
|
+
onSeach(): void;
|
|
12
|
+
onInput(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridBoxComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridBoxComponent, "rs-grid-box", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "customPageTitle": { "alias": "customPageTitle"; "required": false; }; "isInner": { "alias": "isInner"; "required": false; }; }, {}, ["gridContent"], ["[leftToolbarBtnSlot]", "[rightToolbarBtnSlot]", "[gridSlot]"], false, never>;
|
|
15
|
+
}
|
|
@@ -2,7 +2,8 @@ import { OnInit } from "@angular/core";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MainContainerComponent implements OnInit {
|
|
4
4
|
isCollapsed: boolean;
|
|
5
|
+
singleReuseUrls: string[];
|
|
5
6
|
ngOnInit(): void;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainContainerComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MainContainerComponent, "rs-main-container", never, { "isCollapsed": { "alias": "isCollapsed"; "required": false; }; }, {}, never, ["[headerSlot]", "[leftAsideSlot]", "[routerSlot]"], false, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainContainerComponent, "rs-main-container", never, { "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "singleReuseUrls": { "alias": "singleReuseUrls"; "required": false; }; }, {}, never, ["[headerSlot]", "[leftAsideSlot]", "[routerSlot]"], false, never>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { ActivatedRoute, Router, RouterOutlet } from "@angular/router";
|
|
3
|
+
import { CommonFunctionService } from "../../service/common-function.service";
|
|
4
|
+
import { KeepAliveService } from "../../service/keep-alive.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MultiTabComponent implements OnInit {
|
|
7
|
+
router: Router;
|
|
8
|
+
cf: CommonFunctionService;
|
|
9
|
+
activatedRoute: ActivatedRoute;
|
|
10
|
+
keepAlive: KeepAliveService;
|
|
11
|
+
constructor(router: Router, cf: CommonFunctionService, activatedRoute: ActivatedRoute, keepAlive: KeepAliveService);
|
|
12
|
+
singleReuseUrls: string[];
|
|
13
|
+
TAB_WIDTH: number;
|
|
14
|
+
GAP_NORMAL: number;
|
|
15
|
+
GAP_SMALL: number;
|
|
16
|
+
textGap: any;
|
|
17
|
+
foo: RouterOutlet;
|
|
18
|
+
comRef: any;
|
|
19
|
+
tabList: any[];
|
|
20
|
+
selectedTab: number;
|
|
21
|
+
maxTabs: number;
|
|
22
|
+
screenWidth: number;
|
|
23
|
+
onResize(event: any): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
setEllipsisTitle(title?: any): any;
|
|
26
|
+
calcTabWidth(): {
|
|
27
|
+
allWidth: any;
|
|
28
|
+
leftWidth: any;
|
|
29
|
+
rightWidth: any;
|
|
30
|
+
};
|
|
31
|
+
initTab(): void;
|
|
32
|
+
closeTab(tab: any, idx: any): void;
|
|
33
|
+
changeTab(tab: any, idx: any): void;
|
|
34
|
+
addTab(url: any, title: any): void;
|
|
35
|
+
setTab(url: any, pureUrl: any, title: any): void;
|
|
36
|
+
refreshTab(): void;
|
|
37
|
+
clearCache(url: any): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiTabComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiTabComponent, "rs-multi-tab", never, { "singleReuseUrls": { "alias": "singleReuseUrls"; "required": false; }; }, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RsPageListComponent implements OnInit {
|
|
4
|
+
gridContent: any;
|
|
5
|
+
pageTitle: any;
|
|
6
|
+
customPageTitle: boolean;
|
|
7
|
+
isInner: boolean;
|
|
8
|
+
private debouncedInput;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
searchValue: any;
|
|
11
|
+
onSeach(): void;
|
|
12
|
+
onInput(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RsPageListComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RsPageListComponent, "rs-page-list", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "customPageTitle": { "alias": "customPageTitle"; "required": false; }; "isInner": { "alias": "isInner"; "required": false; }; }, {}, ["gridContent"], ["[titleSlot]", "[leftToolbarBtnSlot]", "[rightToolbarBtnSlot]", "[gridSlot]"], false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RsPageTabComponent implements OnInit {
|
|
4
|
+
pageTitle: any;
|
|
5
|
+
customPageTitle: boolean;
|
|
6
|
+
tabList: any[];
|
|
7
|
+
currentTab: any;
|
|
8
|
+
tabChange: EventEmitter<any>;
|
|
9
|
+
animation: object;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
onTabClick(e: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RsPageTabComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RsPageTabComponent, "rs-page-tab", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "customPageTitle": { "alias": "customPageTitle"; "required": false; }; "tabList": { "alias": "tabList"; "required": false; }; "currentTab": { "alias": "currentTab"; "required": false; }; }, { "tabChange": "tabChange"; }, never, ["[titleSlot]", "[tabContentSlot]"], false, never>;
|
|
14
|
+
}
|
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./common-grid/index.component";
|
|
3
3
|
import * as i2 from "./float-box/index.component";
|
|
4
|
-
import * as i3 from "./layout/
|
|
5
|
-
import * as i4 from "./layout/
|
|
6
|
-
import * as i5 from "./layout/
|
|
7
|
-
import * as i6 from "./layout/rs-
|
|
8
|
-
import * as i7 from "./layout/
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./form/
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "@
|
|
20
|
-
import * as i19 from "@
|
|
21
|
-
import * as i20 from "@
|
|
22
|
-
import * as i21 from "@
|
|
23
|
-
import * as i22 from "@
|
|
24
|
-
import * as i23 from "@
|
|
25
|
-
import * as i24 from "@syncfusion/ej2-angular-
|
|
26
|
-
import * as i25 from "@syncfusion/ej2-angular-
|
|
27
|
-
import * as i26 from "@syncfusion/ej2-angular-
|
|
28
|
-
import * as i27 from "@syncfusion/ej2-angular-
|
|
29
|
-
import * as i28 from "@syncfusion/ej2-angular-
|
|
30
|
-
import * as i29 from "angular-
|
|
4
|
+
import * as i3 from "./layout/page-list/index.component";
|
|
5
|
+
import * as i4 from "./layout/page-tab/index.component";
|
|
6
|
+
import * as i5 from "./layout/grid-box/index.component";
|
|
7
|
+
import * as i6 from "./layout/rs-header/index.component";
|
|
8
|
+
import * as i7 from "./layout/rs-footer/index.component";
|
|
9
|
+
import * as i8 from "./layout/rs-aside/index.component";
|
|
10
|
+
import * as i9 from "./layout/multi-tab/index.component";
|
|
11
|
+
import * as i10 from "./layout/main-container/index.component";
|
|
12
|
+
import * as i11 from "./form/tag-input/index.component";
|
|
13
|
+
import * as i12 from "./form/radio-group/index.component";
|
|
14
|
+
import * as i13 from "./form/checkbox-group/index.component";
|
|
15
|
+
import * as i14 from "./form/switch-input/index.component";
|
|
16
|
+
import * as i15 from "./dialog/new-action-notification/new-action-notification.component";
|
|
17
|
+
import * as i16 from "./dialog/common-dialog/index.component";
|
|
18
|
+
import * as i17 from "./dialog/common-delete-dialog/index.component";
|
|
19
|
+
import * as i18 from "@angular/common";
|
|
20
|
+
import * as i19 from "@angular/common/http";
|
|
21
|
+
import * as i20 from "@angular/forms";
|
|
22
|
+
import * as i21 from "@angular/material/snack-bar";
|
|
23
|
+
import * as i22 from "@angular/material/dialog";
|
|
24
|
+
import * as i23 from "@angular/material/icon";
|
|
25
|
+
import * as i24 from "@syncfusion/ej2-angular-grids";
|
|
26
|
+
import * as i25 from "@syncfusion/ej2-angular-buttons";
|
|
27
|
+
import * as i26 from "@syncfusion/ej2-angular-diagrams";
|
|
28
|
+
import * as i27 from "@syncfusion/ej2-angular-popups";
|
|
29
|
+
import * as i28 from "@syncfusion/ej2-angular-calendars";
|
|
30
|
+
import * as i29 from "@syncfusion/ej2-angular-inputs";
|
|
31
|
+
import * as i30 from "@syncfusion/ej2-angular-dropdowns";
|
|
32
|
+
import * as i31 from "@syncfusion/ej2-angular-pivotview";
|
|
33
|
+
import * as i32 from "@syncfusion/ej2-angular-charts";
|
|
34
|
+
import * as i33 from "@syncfusion/ej2-angular-layouts";
|
|
35
|
+
import * as i34 from "@syncfusion/ej2-angular-navigations";
|
|
36
|
+
import * as i35 from "@syncfusion/ej2-angular-pdfviewer";
|
|
37
|
+
import * as i36 from "@syncfusion/ej2-angular-splitbuttons";
|
|
38
|
+
import * as i37 from "@syncfusion/ej2-angular-richtexteditor";
|
|
31
39
|
export declare class RaiseCommonLibModule {
|
|
32
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<RaiseCommonLibModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RaiseCommonLibModule, [typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RaiseCommonLibModule, [typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.RsPageListComponent, typeof i4.RsPageTabComponent, typeof i5.GridBoxComponent, typeof i6.RSHeaderComponent, typeof i7.RSFooterComponent, typeof i8.RSAsideComponent, typeof i9.MultiTabComponent, typeof i10.MainContainerComponent, typeof i11.TagInputComponent, typeof i12.RadioGroupComponent, typeof i13.CheckboxGroupComponent, typeof i14.SwitchInputComponent, typeof i15.NewActionNotificationComponent, typeof i16.CommonDialogComponent, typeof i17.CommonDeleteComponent], [typeof i18.CommonModule, typeof i19.HttpClientModule, typeof i20.ReactiveFormsModule, typeof i20.FormsModule, typeof i21.MatSnackBarModule, typeof i22.MatDialogModule, typeof i23.MatIconModule, typeof i24.GridModule, typeof i24.PagerModule, typeof i24.GridAllModule, typeof i25.SwitchModule, typeof i25.CheckBoxModule, typeof i25.RadioButtonModule, typeof i25.ButtonModule, typeof i26.DiagramModule, typeof i27.TooltipModule, typeof i27.DialogModule, typeof i28.DatePickerModule, typeof i28.DateRangePickerModule, typeof i28.DateTimePickerModule, typeof i29.TextBoxModule, typeof i29.ColorPickerModule, typeof i29.UploaderModule, typeof i29.NumericTextBoxModule, typeof i30.DropDownListModule, typeof i30.DropDownTreeModule, typeof i30.MultiSelectAllModule, typeof i30.AutoCompleteModule, typeof i30.ListBoxModule, typeof i31.PivotViewAllModule, typeof i31.PivotFieldListAllModule, typeof i32.ChartAllModule, typeof i32.AccumulationChartAllModule, typeof i32.RangeNavigatorAllModule, typeof i32.AccumulationChartModule, typeof i33.DashboardLayoutModule, typeof i34.CarouselAllModule, typeof i34.ToolbarModule, typeof i34.TabModule, typeof i35.PdfViewerModule, typeof i36.DropDownButtonModule, typeof i36.SplitButtonModule, typeof i37.RichTextEditorAllModule], [typeof i18.CommonModule, typeof i19.HttpClientModule, typeof i20.ReactiveFormsModule, typeof i20.FormsModule, typeof i21.MatSnackBarModule, typeof i22.MatDialogModule, typeof i24.GridModule, typeof i24.PagerModule, typeof i24.GridAllModule, typeof i25.SwitchModule, typeof i25.CheckBoxModule, typeof i25.RadioButtonModule, typeof i25.ButtonModule, typeof i26.DiagramModule, typeof i27.TooltipModule, typeof i27.DialogModule, typeof i28.DatePickerModule, typeof i28.DateRangePickerModule, typeof i28.DateTimePickerModule, typeof i29.TextBoxModule, typeof i29.ColorPickerModule, typeof i29.UploaderModule, typeof i29.NumericTextBoxModule, typeof i30.DropDownListModule, typeof i30.DropDownTreeModule, typeof i30.MultiSelectAllModule, typeof i30.AutoCompleteModule, typeof i30.ListBoxModule, typeof i31.PivotViewAllModule, typeof i31.PivotFieldListAllModule, typeof i32.ChartAllModule, typeof i32.AccumulationChartAllModule, typeof i32.RangeNavigatorAllModule, typeof i32.AccumulationChartModule, typeof i33.DashboardLayoutModule, typeof i34.CarouselAllModule, typeof i34.ToolbarModule, typeof i34.TabModule, typeof i35.PdfViewerModule, typeof i36.DropDownButtonModule, typeof i36.SplitButtonModule, typeof i37.RichTextEditorAllModule, typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.RsPageListComponent, typeof i4.RsPageTabComponent, typeof i5.GridBoxComponent, typeof i6.RSHeaderComponent, typeof i7.RSFooterComponent, typeof i8.RSAsideComponent, typeof i9.MultiTabComponent, typeof i10.MainContainerComponent, typeof i11.TagInputComponent, typeof i12.RadioGroupComponent, typeof i13.CheckboxGroupComponent, typeof i14.SwitchInputComponent]>;
|
|
34
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<RaiseCommonLibModule>;
|
|
35
43
|
}
|
|
@@ -2,6 +2,8 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class CommonFunctionService {
|
|
3
3
|
constructor();
|
|
4
4
|
testMethod(): string;
|
|
5
|
+
setMiddleEllipsis(text: any, maxWidth?: number, fontSize?: number): any;
|
|
6
|
+
getPureUrl(url: string): string;
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonFunctionService, never>;
|
|
6
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<CommonFunctionService>;
|
|
7
9
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
2
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
3
|
+
import { NewActionNotificationComponent, NotificationConfig } from "../dialog/new-action-notification/new-action-notification.component";
|
|
4
|
+
import { CommonDeleteComponent } from "../dialog/common-delete-dialog/index.component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare enum MessageType {
|
|
7
|
+
Create = 0,
|
|
8
|
+
Read = 1,
|
|
9
|
+
Update = 2,
|
|
10
|
+
Delete = 3
|
|
11
|
+
}
|
|
12
|
+
export declare class DialogService {
|
|
13
|
+
private snackBar;
|
|
14
|
+
private dialog;
|
|
15
|
+
/**
|
|
16
|
+
* Service constructor
|
|
17
|
+
*
|
|
18
|
+
* @param snackBar: MatSnackBar
|
|
19
|
+
* @param dialog: MatDialog
|
|
20
|
+
*/
|
|
21
|
+
translation: any;
|
|
22
|
+
constructor(snackBar: MatSnackBar, dialog: MatDialog);
|
|
23
|
+
showLoadingNotification(config: Omit<NotificationConfig, "message" | "snackBar" | "status" | "type"> & {
|
|
24
|
+
message?: string;
|
|
25
|
+
}): import("@angular/material/snack-bar").MatSnackBarRef<NewActionNotificationComponent>;
|
|
26
|
+
showNotification(message: string, config?: Omit<NotificationConfig, "message" | "snackBar" | "loadingCallback" | "type"> & {
|
|
27
|
+
duration?: number;
|
|
28
|
+
type?: Exclude<NotificationConfig["type"], "Loading">;
|
|
29
|
+
}): import("@angular/material/snack-bar").MatSnackBarRef<NewActionNotificationComponent>;
|
|
30
|
+
deleteElement(): import("@angular/material/dialog").MatDialogRef<CommonDeleteComponent, any>;
|
|
31
|
+
showCommonDilaog(data?: {
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
saveBtnLabel?: string;
|
|
35
|
+
cancelBtnLabel?: string;
|
|
36
|
+
showErrorIcon?: boolean;
|
|
37
|
+
size?: string;
|
|
38
|
+
hideSaveBtn?: boolean;
|
|
39
|
+
}): import("@angular/material/dialog").MatDialogRef<CommonDeleteComponent, any>;
|
|
40
|
+
showUnsavedChanges(data?: {
|
|
41
|
+
title?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
saveBtnLabel?: string;
|
|
44
|
+
cancelBtnLabel?: string;
|
|
45
|
+
showErrorIcon?: boolean;
|
|
46
|
+
size?: string;
|
|
47
|
+
hideSaveBtn?: boolean;
|
|
48
|
+
}): import("@angular/material/dialog").MatDialogRef<CommonDeleteComponent, any>;
|
|
49
|
+
showSucMsg(res: any): void;
|
|
50
|
+
showUpdateMsg(res: any): void;
|
|
51
|
+
showDelMsg(res: any): void;
|
|
52
|
+
private showMessage;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
55
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
2
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class IconLoaderService {
|
|
4
|
-
private
|
|
5
|
-
|
|
5
|
+
private registry;
|
|
6
|
+
private domSanitizer;
|
|
7
|
+
constructor(registry: MatIconRegistry, domSanitizer: DomSanitizer);
|
|
6
8
|
registerIcons(list: any): void;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconLoaderService, never>;
|
|
8
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<IconLoaderService>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from "@angular/router";
|
|
2
|
+
export declare class KeepAliveService implements RouteReuseStrategy {
|
|
3
|
+
setExcludeRoutes(routes: string[]): void;
|
|
4
|
+
shouldDetach(route: ActivatedRouteSnapshot): boolean;
|
|
5
|
+
store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
|
|
6
|
+
shouldAttach(route: ActivatedRouteSnapshot): boolean;
|
|
7
|
+
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle;
|
|
8
|
+
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
9
|
+
getRoutePath(route: any): string;
|
|
10
|
+
clearCache(path: string): void;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './lib/common-grid/index.component';
|
|
2
2
|
export * from './lib/float-box/index.component';
|
|
3
|
-
export * from './lib/layout/
|
|
3
|
+
export * from './lib/layout/page-list/index.component';
|
|
4
|
+
export * from './lib/layout/page-tab/index.component';
|
|
5
|
+
export * from './lib/layout/grid-box/index.component';
|
|
6
|
+
export * from './lib/layout/multi-tab/index.component';
|
|
4
7
|
export * from './lib/layout/main-container/index.component';
|
|
5
8
|
export * from './lib/layout/rs-header/index.component';
|
|
6
9
|
export * from './lib/layout/rs-footer/index.component';
|
|
@@ -11,4 +14,6 @@ export * from './lib/form/checkbox-group/index.component';
|
|
|
11
14
|
export * from './lib/form/switch-input/index.component';
|
|
12
15
|
export * from './lib/service/common-function.service';
|
|
13
16
|
export * from './lib/service/icon-loader.service';
|
|
17
|
+
export * from './lib/service/dialog.service';
|
|
18
|
+
export * from './lib/service/keep-alive.service';
|
|
14
19
|
export * from './lib/raise-common-lib.module';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2 6C2 4.61929 3.11929 3.5 4.5 3.5H11.5C12.8807 3.5 14 4.61929 14 6V13C14 13.8284 13.3284 14.5 12.5 14.5H3.5C2.67157 14.5 2 13.8284 2 13V6Z" stroke="#6B6B6B66"/>
|
|
3
|
+
<line x1="1.5" y1="6.5" x2="13.5" y2="6.5" stroke="#6B6B6B66"/>
|
|
4
|
+
<line x1="5" y1="2" x2="5" y2="5" stroke="#6B6B6B66"/>
|
|
5
|
+
<line x1="11" y1="2" x2="11" y2="5" stroke="#6B6B6B66"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group 1000003856">
|
|
3
|
+
<g id="Group 1000003733">
|
|
4
|
+
<path id="Line 156" d="M0.5 7.5L7.5 0.500001" stroke="#929DAB" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
<g id="Group 1000003734">
|
|
7
|
+
<path id="Line 156_2" d="M7.5 7.5L0.500001 0.5" stroke="#929DAB" stroke-linecap="round"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group 1000003856">
|
|
3
|
+
<g id="Group 1000003733">
|
|
4
|
+
<path id="Line 156" d="M0.500214 10L9.50008 1.00013" stroke="#6B6B6B" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
<g id="Group 1000003734">
|
|
7
|
+
<path id="Line 156_2" d="M9.49994 10L0.500072 1.00013" stroke="#6B6B6B" stroke-linecap="round"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="refresh">
|
|
3
|
+
<path id="Ellipse 127" d="M8.91304 2.58996C8.31041 2.42848 7.68188 2.38728 7.06333 2.46872C6.44477 2.55015 5.84832 2.75262 5.30801 3.06457C4.76771 3.37651 4.29414 3.79182 3.91434 4.28679C3.53454 4.78175 3.25595 5.34668 3.09448 5.94931C2.933 6.55194 2.89181 7.18047 2.97324 7.79902C3.05467 8.41757 3.25714 9.01403 3.56909 9.55433L1.33357 8.43896" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<path id="Ellipse 128" d="M6.45385 11.7677C7.05648 11.9292 7.68501 11.9704 8.30356 11.8889C8.92211 11.8075 9.51857 11.605 10.0589 11.2931C10.5992 10.9811 11.0727 10.5658 11.4525 10.0709C11.8323 9.5759 12.1109 9.01097 12.2724 8.40834C12.4339 7.80571 12.4751 7.17718 12.3936 6.55862C12.3122 5.94007 12.1097 5.34362 11.7978 4.80331L14.1213 6.07111" stroke="#6C7C90" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="14" height="3" viewBox="0 0 14 3" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Drag bar">
|
|
3
|
+
<circle id="Ellipse 30" cx="1.5" cy="1.5" r="1.5" transform="rotate(-90 1.5 1.5)" fill="#1F7BFF"/>
|
|
4
|
+
<circle id="Ellipse 31" cx="7" cy="1.5" r="1.5" transform="rotate(-90 7 1.5)" fill="#1F7BFF"/>
|
|
5
|
+
<circle id="Ellipse 32" cx="12.5" cy="1.5" r="1.5" transform="rotate(-90 12.5 1.5)" fill="#1F7BFF"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="14" height="3" viewBox="0 0 14 3" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Drag bar">
|
|
3
|
+
<circle id="Ellipse 30" cx="1.5" cy="1.5" r="1.5" transform="rotate(-90 1.5 1.5)" fill="#6B6B6B"/>
|
|
4
|
+
<circle id="Ellipse 31" cx="7" cy="1.5" r="1.5" transform="rotate(-90 7 1.5)" fill="#6B6B6B"/>
|
|
5
|
+
<circle id="Ellipse 32" cx="12.5" cy="1.5" r="1.5" transform="rotate(-90 12.5 1.5)" fill="#6B6B6B"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
Binary file
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: 6px;
|
|
7
7
|
font-style: normal;
|
|
8
|
-
border: 1px solid #adb5bd;
|
|
9
|
-
background: transparent;
|
|
10
|
-
color: var(--rs-cancel-btn-color);
|
|
8
|
+
border: 1px solid #adb5bd !important;
|
|
9
|
+
background: transparent !important;
|
|
10
|
+
color: var(--rs-cancel-btn-color) !important;
|
|
11
11
|
height: 32px;
|
|
12
12
|
min-width: 80px;
|
|
13
13
|
padding: 0 10px;
|
|
14
|
-
font-size:
|
|
14
|
+
font-size: 12px;
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
box-shadow: none !important;
|
|
17
17
|
line-height: normal;
|
|
@@ -33,51 +33,51 @@
|
|
|
33
33
|
&:not([disabled]):hover,
|
|
34
34
|
&:not([disabled]):active,
|
|
35
35
|
&:not([disabled]):focus {
|
|
36
|
-
border-color: #6c7c90;
|
|
37
|
-
background: #fff;
|
|
38
|
-
color: var(--rs-cancel-btn-color);
|
|
36
|
+
border-color: #6c7c90 !important;
|
|
37
|
+
background: #fff !important;
|
|
38
|
+
color: var(--rs-cancel-btn-color) !important;
|
|
39
39
|
}
|
|
40
40
|
&[disabled] {
|
|
41
41
|
opacity: 0.4;
|
|
42
|
-
color: var(--rs-cancel-btn-color);
|
|
43
|
-
border: 1px solid #adb5bd;
|
|
44
|
-
background-color: #fff;
|
|
42
|
+
color: var(--rs-cancel-btn-color) !important;
|
|
43
|
+
border: 1px solid #adb5bd !important;
|
|
44
|
+
background-color: #fff !important;
|
|
45
45
|
}
|
|
46
46
|
&.e-primary {
|
|
47
|
-
color: #fff;
|
|
48
|
-
border-color: var(--rs-primary-btn-bg);
|
|
49
|
-
background: var(--rs-primary-btn-bg);
|
|
47
|
+
color: #fff !important;
|
|
48
|
+
border-color: var(--rs-primary-btn-bg) !important;
|
|
49
|
+
background: var(--rs-primary-btn-bg) !important;
|
|
50
50
|
font-weight: 700;
|
|
51
51
|
&:not([disabled]):hover,
|
|
52
52
|
&:not([disabled]):active,
|
|
53
53
|
&:not([disabled]):focus {
|
|
54
|
-
border-color: var(--rs-primary-btn-hover-bg);
|
|
55
|
-
background: var(--rs-primary-btn-hover-bg);
|
|
56
|
-
color: #fff;
|
|
54
|
+
border-color: var(--rs-primary-btn-hover-bg) !important;
|
|
55
|
+
background: var(--rs-primary-btn-hover-bg) !important;
|
|
56
|
+
color: #fff !important;
|
|
57
57
|
}
|
|
58
58
|
&[disabled] {
|
|
59
|
-
color: #fff;
|
|
60
|
-
background: var(--rs-primary-btn-bg);
|
|
61
|
-
border-color: var(--rs-primary-btn-bg);
|
|
59
|
+
color: #fff !important;
|
|
60
|
+
background: var(--rs-primary-btn-bg) !important;
|
|
61
|
+
border-color: var(--rs-primary-btn-bg) !important;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
&.text {
|
|
65
|
-
border-color: transparent;
|
|
65
|
+
border-color: transparent !important;
|
|
66
66
|
&:not([disabled]):hover,
|
|
67
67
|
&:not([disabled]):active,
|
|
68
68
|
&:not([disabled]):focus {
|
|
69
|
-
border-color: rgba(31, 123, 255, 0.2);
|
|
70
|
-
background: rgba(31, 123, 255, 0.04);
|
|
71
|
-
color: #1364b3;
|
|
69
|
+
border-color: rgba(31, 123, 255, 0.2) !important;
|
|
70
|
+
background: rgba(31, 123, 255, 0.04) !important;
|
|
71
|
+
color: #1364b3 !important;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.e-dropdown-btn {
|
|
77
77
|
&.e-active {
|
|
78
|
-
border-color: rgba(31, 123, 255, 0.2);
|
|
79
|
-
background: rgba(31, 123, 255, 0.04);
|
|
80
|
-
color: #1364b3;
|
|
78
|
+
border-color: rgba(31, 123, 255, 0.2) !important;
|
|
79
|
+
background: rgba(31, 123, 255, 0.04) !important;
|
|
80
|
+
color: #1364b3 !important;
|
|
81
81
|
}
|
|
82
82
|
.e-btn-icon {
|
|
83
83
|
padding: 0 !important;
|
|
@@ -109,7 +109,8 @@
|
|
|
109
109
|
font-weight: 400;
|
|
110
110
|
line-height: 16px;
|
|
111
111
|
align-items: center;
|
|
112
|
-
&:hover,
|
|
112
|
+
&:hover,
|
|
113
|
+
&:active {
|
|
113
114
|
border-radius: 4px;
|
|
114
115
|
background: rgba(31, 123, 255, 0.04);
|
|
115
116
|
color: #44566c;
|
|
@@ -117,3 +118,37 @@
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
}
|
|
121
|
+
|
|
122
|
+
.e-split-btn-wrapper {
|
|
123
|
+
.e-btn {
|
|
124
|
+
color: #fff !important;
|
|
125
|
+
border-color: var(--rs-primary-btn-bg) !important;
|
|
126
|
+
background: var(--rs-primary-btn-bg) !important;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
&:not([disabled]):hover,
|
|
130
|
+
&:not([disabled]):active,
|
|
131
|
+
&:not([disabled]):focus {
|
|
132
|
+
border-color: var(--rs-primary-btn-hover-bg) !important;
|
|
133
|
+
background: var(--rs-primary-btn-hover-bg) !important;
|
|
134
|
+
border-right-color: rgba(255, 255, 255, 0.2) !important;
|
|
135
|
+
color: #fff !important;
|
|
136
|
+
}
|
|
137
|
+
&.e-split-btn {
|
|
138
|
+
border-right-color: rgba(255, 255, 255, 0.2) !important;
|
|
139
|
+
&:disabled {
|
|
140
|
+
border-right-color: #ccc !important;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
&.e-icon-btn {
|
|
144
|
+
min-width: auto;
|
|
145
|
+
padding: 4px 6px !important;
|
|
146
|
+
.e-btn-icon {
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
&::before {
|
|
149
|
+
background-image: url("/assets/img/split-button-arrow.svg");
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|