raise-common-lib-new 0.0.4 → 0.0.15

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.
Files changed (30) hide show
  1. package/esm2022/lib/common-grid/index.component.mjs +2 -2
  2. package/esm2022/lib/dialog/common-delete-dialog/index.component.mjs +46 -0
  3. package/esm2022/lib/dialog/common-dialog/index.component.mjs +85 -0
  4. package/esm2022/lib/dialog/new-action-notification/new-action-notification.component.mjs +51 -0
  5. package/esm2022/lib/form/tag-input/index.component.mjs +2 -2
  6. package/esm2022/lib/layout/main-container/index.component.mjs +3 -3
  7. package/esm2022/lib/layout/rs-aside/index.component.mjs +3 -3
  8. package/esm2022/lib/raise-common-lib.module.mjs +29 -2
  9. package/esm2022/lib/service/dialog.service.mjs +132 -0
  10. package/esm2022/public-api.mjs +2 -1
  11. package/fesm2022/raise-common-lib-new.mjs +330 -11
  12. package/fesm2022/raise-common-lib-new.mjs.map +1 -1
  13. package/lib/dialog/common-delete-dialog/index.component.d.ts +29 -0
  14. package/lib/dialog/common-dialog/index.component.d.ts +29 -0
  15. package/lib/dialog/new-action-notification/new-action-notification.component.d.ts +33 -0
  16. package/lib/float-box/index.component.d.ts +2 -2
  17. package/lib/raise-common-lib.module.d.ts +24 -19
  18. package/lib/service/dialog.service.d.ts +55 -0
  19. package/package.json +1 -1
  20. package/public-api.d.ts +1 -0
  21. package/src/assets/img/calendar-disabled.svg +6 -0
  22. package/src/assets/img/close.svg +10 -0
  23. package/src/assets/img/raise_loading.gif +0 -0
  24. package/src/assets/style/reset/button.scss +25 -25
  25. package/src/assets/style/reset/dropdown.scss +26 -8
  26. package/src/assets/style/reset/grid.scss +244 -0
  27. package/src/assets/style/reset/input.scss +35 -3
  28. package/src/assets/style/reset/mat-dialog.scss +3 -0
  29. package/src/assets/style/style.scss +2 -0
  30. package/src/assets/style/variables.scss +2 -0
@@ -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
+ }
@@ -7,8 +7,8 @@ export declare class FloatBoxComponent implements AfterViewInit, OnDestroy {
7
7
  _trigger: "hover" | "click";
8
8
  _animation: "yes" | "no";
9
9
  _fixed: "yes" | "no";
10
- get placement(): "top" | "left" | "right" | "bottom";
11
- get position(): "center" | "start" | "end";
10
+ get placement(): "top" | "bottom" | "right" | "left";
11
+ get position(): "start" | "center" | "end";
12
12
  get trigger(): "hover" | "click";
13
13
  get animation(): "yes" | "no";
14
14
  get fixed(): "yes" | "no";
@@ -10,26 +10,31 @@ import * as i8 from "./form/tag-input/index.component";
10
10
  import * as i9 from "./form/radio-group/index.component";
11
11
  import * as i10 from "./form/checkbox-group/index.component";
12
12
  import * as i11 from "./form/switch-input/index.component";
13
- import * as i12 from "@angular/common";
14
- import * as i13 from "@angular/common/http";
15
- import * as i14 from "@angular/forms";
16
- import * as i15 from "@syncfusion/ej2-angular-grids";
17
- import * as i16 from "@syncfusion/ej2-angular-buttons";
18
- import * as i17 from "@syncfusion/ej2-angular-diagrams";
19
- import * as i18 from "@syncfusion/ej2-angular-popups";
20
- import * as i19 from "@syncfusion/ej2-angular-calendars";
21
- import * as i20 from "@syncfusion/ej2-angular-inputs";
22
- import * as i21 from "@syncfusion/ej2-angular-dropdowns";
23
- import * as i22 from "@syncfusion/ej2-angular-pivotview";
24
- import * as i23 from "@syncfusion/ej2-angular-charts";
25
- import * as i24 from "@syncfusion/ej2-angular-layouts";
26
- import * as i25 from "@syncfusion/ej2-angular-navigations";
27
- import * as i26 from "@syncfusion/ej2-angular-pdfviewer";
28
- import * as i27 from "@syncfusion/ej2-angular-splitbuttons";
29
- import * as i28 from "@syncfusion/ej2-angular-richtexteditor";
30
- import * as i29 from "angular-svg-icon";
13
+ import * as i12 from "./dialog/new-action-notification/new-action-notification.component";
14
+ import * as i13 from "./dialog/common-dialog/index.component";
15
+ import * as i14 from "./dialog/common-delete-dialog/index.component";
16
+ import * as i15 from "@angular/common";
17
+ import * as i16 from "@angular/common/http";
18
+ import * as i17 from "@angular/forms";
19
+ import * as i18 from "@angular/material/snack-bar";
20
+ import * as i19 from "@angular/material/dialog";
21
+ import * as i20 from "@syncfusion/ej2-angular-grids";
22
+ import * as i21 from "@syncfusion/ej2-angular-buttons";
23
+ import * as i22 from "@syncfusion/ej2-angular-diagrams";
24
+ import * as i23 from "@syncfusion/ej2-angular-popups";
25
+ import * as i24 from "@syncfusion/ej2-angular-calendars";
26
+ import * as i25 from "@syncfusion/ej2-angular-inputs";
27
+ import * as i26 from "@syncfusion/ej2-angular-dropdowns";
28
+ import * as i27 from "@syncfusion/ej2-angular-pivotview";
29
+ import * as i28 from "@syncfusion/ej2-angular-charts";
30
+ import * as i29 from "@syncfusion/ej2-angular-layouts";
31
+ import * as i30 from "@syncfusion/ej2-angular-navigations";
32
+ import * as i31 from "@syncfusion/ej2-angular-pdfviewer";
33
+ import * as i32 from "@syncfusion/ej2-angular-splitbuttons";
34
+ import * as i33 from "@syncfusion/ej2-angular-richtexteditor";
35
+ import * as i34 from "angular-svg-icon";
31
36
  export declare class RaiseCommonLibModule {
32
37
  static ɵfac: i0.ɵɵFactoryDeclaration<RaiseCommonLibModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<RaiseCommonLibModule, [typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.CommonListComponent, typeof i4.RSHeaderComponent, typeof i5.RSFooterComponent, typeof i6.RSAsideComponent, typeof i7.MainContainerComponent, typeof i8.TagInputComponent, typeof i9.RadioGroupComponent, typeof i10.CheckboxGroupComponent, typeof i11.SwitchInputComponent], [typeof i12.CommonModule, typeof i13.HttpClientModule, typeof i14.ReactiveFormsModule, typeof i14.FormsModule, typeof i15.GridModule, typeof i15.PagerModule, typeof i15.GridAllModule, typeof i16.SwitchModule, typeof i16.CheckBoxModule, typeof i16.RadioButtonModule, typeof i16.ButtonModule, typeof i17.DiagramModule, typeof i18.TooltipModule, typeof i18.DialogModule, typeof i19.DatePickerModule, typeof i19.DateRangePickerModule, typeof i19.DateTimePickerModule, typeof i20.TextBoxModule, typeof i20.ColorPickerModule, typeof i20.UploaderModule, typeof i20.NumericTextBoxModule, typeof i21.DropDownListModule, typeof i21.DropDownTreeModule, typeof i21.MultiSelectAllModule, typeof i21.AutoCompleteModule, typeof i21.ListBoxModule, typeof i22.PivotViewAllModule, typeof i22.PivotFieldListAllModule, typeof i23.ChartAllModule, typeof i23.AccumulationChartAllModule, typeof i23.RangeNavigatorAllModule, typeof i23.AccumulationChartModule, typeof i24.DashboardLayoutModule, typeof i25.CarouselAllModule, typeof i25.ToolbarModule, typeof i26.PdfViewerModule, typeof i27.DropDownButtonModule, typeof i28.RichTextEditorAllModule, typeof i29.AngularSvgIconModule], [typeof i12.CommonModule, typeof i13.HttpClientModule, typeof i14.ReactiveFormsModule, typeof i14.FormsModule, typeof i15.GridModule, typeof i15.PagerModule, typeof i15.GridAllModule, typeof i16.SwitchModule, typeof i16.CheckBoxModule, typeof i16.RadioButtonModule, typeof i16.ButtonModule, typeof i17.DiagramModule, typeof i18.TooltipModule, typeof i18.DialogModule, typeof i19.DatePickerModule, typeof i19.DateRangePickerModule, typeof i19.DateTimePickerModule, typeof i20.TextBoxModule, typeof i20.ColorPickerModule, typeof i20.UploaderModule, typeof i20.NumericTextBoxModule, typeof i21.DropDownListModule, typeof i21.DropDownTreeModule, typeof i21.MultiSelectAllModule, typeof i21.AutoCompleteModule, typeof i21.ListBoxModule, typeof i22.PivotViewAllModule, typeof i22.PivotFieldListAllModule, typeof i23.ChartAllModule, typeof i23.AccumulationChartAllModule, typeof i23.RangeNavigatorAllModule, typeof i23.AccumulationChartModule, typeof i24.DashboardLayoutModule, typeof i25.CarouselAllModule, typeof i25.ToolbarModule, typeof i26.PdfViewerModule, typeof i27.DropDownButtonModule, typeof i28.RichTextEditorAllModule, typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.CommonListComponent, typeof i4.RSHeaderComponent, typeof i5.RSFooterComponent, typeof i6.RSAsideComponent, typeof i7.MainContainerComponent, typeof i8.TagInputComponent, typeof i9.RadioGroupComponent, typeof i10.CheckboxGroupComponent, typeof i11.SwitchInputComponent]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RaiseCommonLibModule, [typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.CommonListComponent, typeof i4.RSHeaderComponent, typeof i5.RSFooterComponent, typeof i6.RSAsideComponent, typeof i7.MainContainerComponent, typeof i8.TagInputComponent, typeof i9.RadioGroupComponent, typeof i10.CheckboxGroupComponent, typeof i11.SwitchInputComponent, typeof i12.NewActionNotificationComponent, typeof i13.CommonDialogComponent, typeof i14.CommonDeleteComponent], [typeof i15.CommonModule, typeof i16.HttpClientModule, typeof i17.ReactiveFormsModule, typeof i17.FormsModule, typeof i18.MatSnackBarModule, typeof i19.MatDialogModule, typeof i20.GridModule, typeof i20.PagerModule, typeof i20.GridAllModule, typeof i21.SwitchModule, typeof i21.CheckBoxModule, typeof i21.RadioButtonModule, typeof i21.ButtonModule, typeof i22.DiagramModule, typeof i23.TooltipModule, typeof i23.DialogModule, typeof i24.DatePickerModule, typeof i24.DateRangePickerModule, typeof i24.DateTimePickerModule, typeof i25.TextBoxModule, typeof i25.ColorPickerModule, typeof i25.UploaderModule, typeof i25.NumericTextBoxModule, typeof i26.DropDownListModule, typeof i26.DropDownTreeModule, typeof i26.MultiSelectAllModule, typeof i26.AutoCompleteModule, typeof i26.ListBoxModule, typeof i27.PivotViewAllModule, typeof i27.PivotFieldListAllModule, typeof i28.ChartAllModule, typeof i28.AccumulationChartAllModule, typeof i28.RangeNavigatorAllModule, typeof i28.AccumulationChartModule, typeof i29.DashboardLayoutModule, typeof i30.CarouselAllModule, typeof i30.ToolbarModule, typeof i31.PdfViewerModule, typeof i32.DropDownButtonModule, typeof i33.RichTextEditorAllModule, typeof i34.AngularSvgIconModule], [typeof i15.CommonModule, typeof i16.HttpClientModule, typeof i17.ReactiveFormsModule, typeof i17.FormsModule, typeof i18.MatSnackBarModule, typeof i19.MatDialogModule, typeof i20.GridModule, typeof i20.PagerModule, typeof i20.GridAllModule, typeof i21.SwitchModule, typeof i21.CheckBoxModule, typeof i21.RadioButtonModule, typeof i21.ButtonModule, typeof i22.DiagramModule, typeof i23.TooltipModule, typeof i23.DialogModule, typeof i24.DatePickerModule, typeof i24.DateRangePickerModule, typeof i24.DateTimePickerModule, typeof i25.TextBoxModule, typeof i25.ColorPickerModule, typeof i25.UploaderModule, typeof i25.NumericTextBoxModule, typeof i26.DropDownListModule, typeof i26.DropDownTreeModule, typeof i26.MultiSelectAllModule, typeof i26.AutoCompleteModule, typeof i26.ListBoxModule, typeof i27.PivotViewAllModule, typeof i27.PivotFieldListAllModule, typeof i28.ChartAllModule, typeof i28.AccumulationChartAllModule, typeof i28.RangeNavigatorAllModule, typeof i28.AccumulationChartModule, typeof i29.DashboardLayoutModule, typeof i30.CarouselAllModule, typeof i30.ToolbarModule, typeof i31.PdfViewerModule, typeof i32.DropDownButtonModule, typeof i33.RichTextEditorAllModule, typeof i1.CommonGridComponent, typeof i2.FloatBoxComponent, typeof i3.CommonListComponent, typeof i4.RSHeaderComponent, typeof i5.RSFooterComponent, typeof i6.RSAsideComponent, typeof i7.MainContainerComponent, typeof i8.TagInputComponent, typeof i9.RadioGroupComponent, typeof i10.CheckboxGroupComponent, typeof i11.SwitchInputComponent]>;
34
39
  static ɵinj: i0.ɵɵInjectorDeclaration<RaiseCommonLibModule>;
35
40
  }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib-new",
3
- "version": "0.0.4",
3
+ "version": "0.0.15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0"
package/public-api.d.ts CHANGED
@@ -11,4 +11,5 @@ export * from './lib/form/checkbox-group/index.component';
11
11
  export * from './lib/form/switch-input/index.component';
12
12
  export * from './lib/service/common-function.service';
13
13
  export * from './lib/service/icon-loader.service';
14
+ export * from './lib/service/dialog.service';
14
15
  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="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>
Binary file
@@ -5,9 +5,9 @@
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;
@@ -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;
@@ -3,7 +3,8 @@
3
3
  .e-multiselect,
4
4
  .e-pagerdropdown,
5
5
  .e-dropdowntree,
6
- .e-daterangepicker {
6
+ .e-daterangepicker,
7
+ .e-datepicker {
7
8
  height: var(--rs-input-line-height);
8
9
  font-family: var(--rs-font-family);
9
10
  .e-input-group {
@@ -317,8 +318,9 @@
317
318
  }
318
319
  }
319
320
 
320
- // daterangepicker
321
- .e-daterangepicker {
321
+ // daterangepicker datepicker
322
+ .e-daterangepicker,
323
+ .e-datepicker {
322
324
  .e-input-group {
323
325
  height: var(--rs-input-line-height) !important;
324
326
 
@@ -333,10 +335,18 @@
333
335
  background-position: center;
334
336
  }
335
337
  }
338
+ &.e-disabled {
339
+ .e-input-group-icon {
340
+ &::before {
341
+ background-image: url("/assets/img/calendar-disabled.svg");
342
+ }
343
+ }
344
+ }
336
345
  }
337
346
  }
338
347
 
339
- .e-daterangepicker.e-popup {
348
+ .e-daterangepicker.e-popup,
349
+ .e-datepicker.e-popup {
340
350
  height: auto;
341
351
  border-radius: 4px;
342
352
  padding: 16px 16px 12px 16px;
@@ -373,7 +383,8 @@
373
383
  margin: 6px 0 8px 0;
374
384
  }
375
385
  }
376
- .e-calendar-container {
386
+ .e-calendar-container,
387
+ .e-calendar {
377
388
  .e-left-container {
378
389
  .e-header {
379
390
  padding: 4px 12px 6px 0 !important;
@@ -396,6 +407,9 @@
396
407
  }
397
408
  .e-header {
398
409
  height: 34px;
410
+ &.e-month{
411
+ padding: 0;
412
+ }
399
413
  .e-title {
400
414
  color: #002c4f;
401
415
  font-size: 13px;
@@ -430,6 +444,7 @@
430
444
  }
431
445
  .e-content {
432
446
  .e-calendar-content-table {
447
+ padding: 0;
433
448
  border-spacing: 0 8px; /* 设置行间距为 8px */
434
449
  th {
435
450
  color: var(--rs-primary-2-color);
@@ -478,9 +493,12 @@
478
493
  }
479
494
  }
480
495
  }
481
- .e-footer {
496
+ .e-footer,
497
+ .e-footer-container {
482
498
  height: auto;
499
+ padding: 0;
483
500
  padding-top: 12px;
501
+ display: flex;
484
502
  .e-btn {
485
503
  height: 26px;
486
504
  display: flex;
@@ -496,12 +514,12 @@
496
514
  font-size: var(--rs-font-size);
497
515
  color: var(--rs-cancel-btn-color);
498
516
  cursor: pointer;
499
- &.e-apply {
517
+ &.e-apply, &.e-today {
500
518
  border: 1px solid var(--rs-primary-btn-bg);
501
519
  background-color: var(--rs-primary-btn-bg);
502
520
  color: #fff;
503
521
  margin: 0 0 0 8px;
504
- &:hover{
522
+ &:hover {
505
523
  border-color: var(--rs-primary-btn-hover-bg);
506
524
  background: var(--rs-primary-btn-hover-bg);
507
525
  }
@@ -0,0 +1,244 @@
1
+ .e-grid {
2
+ font-family: var(--rs-font-family);
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ .e-headercell {
7
+ height: var(--rs-grid-header-row-height);
8
+ .e-headercelldiv {
9
+ color: #44566c;
10
+ font-family: Arial;
11
+ font-size: var(--rs-grid-header-cell-font-size);
12
+ font-weight: 700;
13
+ line-height: 29px;
14
+ height: 29px;
15
+ }
16
+ .e-rhandler {
17
+ border-right: 0 !important;
18
+ }
19
+ .e-icons.e-columnmenu {
20
+ color: #929dab !important;
21
+ margin: 0;
22
+ padding: 0;
23
+ position: absolute;
24
+ top: 0;
25
+ right: 10px;
26
+ height: 100%;
27
+ display: flex;
28
+ align-items: center;
29
+ }
30
+ .e-checkbox-wrapper {
31
+ .e-icons {
32
+ margin: 0;
33
+ &.e-check,
34
+ &.e-stop {
35
+ color: #fff !important;
36
+ background-color: var(--rs-active-color);
37
+ border-color: var(--rs-active-color);
38
+ }
39
+ }
40
+ }
41
+ }
42
+ .e-gridheader {
43
+ border-bottom-color: transparent;
44
+ }
45
+ .e-gridheader .e-fltr-icon .e-sortfilterdiv {
46
+ color: #929dab !important;
47
+ font-size: 13px !important;
48
+ margin: 0;
49
+ position: absolute;
50
+ right: 30px;
51
+ top: 0;
52
+ height: 100%;
53
+ display: flex;
54
+ align-items: center;
55
+ }
56
+ .e-rowcell {
57
+ padding: 2px 8px 3px;
58
+ &:not(.e-editedbatchcell):not(.e-updatedtd) {
59
+ color: var(--rs-text-color);
60
+ font-family: Arial;
61
+ font-size: var(--rs-grid-row-cell-font-size);
62
+ font-weight: 400;
63
+ line-height: 23px;
64
+ height: var(--rs-grid-row-height);
65
+ }
66
+ &.e-active {
67
+ background: rgba(31, 123, 255, 0.08); // selected bg
68
+ }
69
+ .e-checkbox-wrapper {
70
+ .e-icons.e-check {
71
+ color: #fff !important;
72
+ background-color: var(--rs-active-color);
73
+ border-color: var(--rs-active-color);
74
+ }
75
+ }
76
+ }
77
+ .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
78
+ .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(
79
+ .e-updatedtd
80
+ ):not(.e-indentcell) {
81
+ background-color: var(--rs-grid-row-hover-bg) !important; // hover bg
82
+ }
83
+
84
+ .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
85
+ .e-rowcell.e-active:not(.e-cellselectionbackground):not(.e-updatedtd):not(
86
+ .e-indentcell
87
+ ) {
88
+ background-color: rgba(31, 123, 255, 0.12) !important; //selected + hover bg
89
+ }
90
+
91
+ .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
92
+ box-shadow: none !important;
93
+ }
94
+ .e-gridcontent {
95
+ flex: 1;
96
+ height: 0;
97
+ .e-content {
98
+ height: 100% !important;
99
+ overflow: auto;
100
+ }
101
+ }
102
+ }
103
+ .e-pager {
104
+ padding: 12px 0;
105
+ height: 48px;
106
+ font-family: Arial;
107
+ border: 0;
108
+ .e-pp,
109
+ .e-pp:hover,
110
+ .e-np,
111
+ .e-np:hover,
112
+ .e-parentmsgbar {
113
+ padding: 0 !important;
114
+ }
115
+ .e-icons {
116
+ padding: 5px !important;
117
+ min-width: 20px !important;
118
+ border: 0 !important;
119
+ }
120
+ .e-pagercontainer,
121
+ .e-parentmsgbar {
122
+ line-height: 24px;
123
+ border: 0;
124
+ color: #929dab;
125
+ font-size: 10px;
126
+ }
127
+ .e-numericitem {
128
+ &:hover {
129
+ padding: 0 !important;
130
+ }
131
+ &.e-active {
132
+ color: #1f3f5c;
133
+ border-radius: 6px;
134
+ border: 1px solid rgba(31, 123, 255, 0.66);
135
+ }
136
+ &.e-focused {
137
+ background: #fff !important;
138
+ box-shadow: none !important;
139
+ }
140
+ min-width: 24px;
141
+ width: 24px;
142
+ height: 24px;
143
+ padding: 0 !important;
144
+ line-height: 24px !important;
145
+ border: 0;
146
+ color: #6c7c90;
147
+ font-size: 12px;
148
+ }
149
+ .e-numericcontainer {
150
+ div {
151
+ height: 24px;
152
+ }
153
+ .e-currentitem {
154
+ padding: 0;
155
+ background: #fff;
156
+ }
157
+ }
158
+ .e-pagerconstant {
159
+ margin: 0 0 0 16px;
160
+ line-height: 24px;
161
+ color: #929dab;
162
+ font-size: 11px;
163
+ }
164
+ div.e-icons.e-pager-default {
165
+ color: #6b6b6b;
166
+ }
167
+ .e-icons:not(.e-btn-icon) {
168
+ color: #adb5bd;
169
+ }
170
+ .e-currentitem {
171
+ font-size: 11px;
172
+ font-family: Arial;
173
+ }
174
+
175
+ .e-pagerdropdown {
176
+ height: 24px !important;
177
+ margin-top: -14px;
178
+ }
179
+ }
180
+ .e-grid-menu {
181
+ .e-menu-parent {
182
+ .e-menu-item {
183
+ font-family: var(--rs-font-family);
184
+ font-size: var(--rs-grid-row-cell-font-size);
185
+ color: #44566c;
186
+ &.e-focused,
187
+ &.e-selected {
188
+ background-color: rgba(31, 123, 255, 0.04);
189
+ color: #44566c;
190
+ }
191
+ .e-icons.e-check {
192
+ background-color: var(--rs-active-color);
193
+ border-color: var(--rs-active-color);
194
+ }
195
+ .e-label {
196
+ font-family: var(--rs-font-family);
197
+ font-size: var(--rs-grid-row-cell-font-size);
198
+ color: #44566c;
199
+ }
200
+ }
201
+ }
202
+ }
203
+ .e-checkboxfilter.e-col-menu {
204
+ .e-searchcontainer {
205
+ .e-searchbox {
206
+ .e-input-group {
207
+ box-shadow: none !important;
208
+ .e-search-icon:hover {
209
+ background-color: var(--rs-active-color);
210
+ border-color: var(--rs-active-color);
211
+ }
212
+ }
213
+ }
214
+ .e-checkboxlist {
215
+ .e-ftrchk {
216
+ height: 26px;
217
+ line-height: 26px;
218
+ padding: 0;
219
+ .e-icons.e-check {
220
+ background-color: var(--rs-active-color);
221
+ border-color: var(--rs-active-color);
222
+ }
223
+ .e-label {
224
+ font-family: var(--rs-font-family);
225
+ font-size: var(--rs-grid-row-cell-font-size);
226
+ color: #44566c;
227
+ }
228
+ &:hover {
229
+ background-color: rgba(31, 123, 255, 0.04);
230
+ }
231
+ &.e-chkfocus {
232
+ background-color: rgba(31, 123, 255, 0.04);
233
+ }
234
+ }
235
+ }
236
+ }
237
+ .e-footer-content {
238
+ display: flex;
239
+ justify-content: space-between;
240
+ .e-btn {
241
+ margin-left: 0;
242
+ }
243
+ }
244
+ }
@@ -1,5 +1,6 @@
1
1
  input.e-input,
2
- textarea.e-input {
2
+ textarea.e-input,
3
+ .e-textbox.e-input {
3
4
  font-size: var(--rs-input-font-size) !important;
4
5
  color: var(--rs-input-color) !important;
5
6
  box-shadow: none !important;
@@ -27,6 +28,37 @@ textarea.e-input {
27
28
  }
28
29
 
29
30
  input.e-input {
30
- height: var(--rs-input-line-height);
31
- line-height: calc(var(--rs-input-line-height) - 2px);
31
+ height: var(--rs-input-line-height) !important;
32
+ line-height: calc(var(--rs-input-line-height) - 2px) !important;
33
+ }
34
+ .e-textbox {
35
+ .e-input-group {
36
+ box-shadow: none !important;
37
+ border-color: var(--rs-input-border-color) !important;
38
+ &.e-input-focus,
39
+ &:hover {
40
+ box-shadow: 0px 0px 3px 0px rgba(31, 123, 255, 0.4) !important;
41
+ border-color: var(--rs-input-hover-border-color) !important;
42
+ input.e-input {
43
+ box-shadow: none !important;
44
+ }
45
+ }
46
+ &.error {
47
+ border-color: var(--rs-input-error-border-color) !important;
48
+ }
49
+ input.e-input {
50
+ height: calc(var(--rs-input-line-height) - 2px) !important;
51
+ line-height: calc(var(--rs-input-line-height) - 4px) !important;
52
+ }
53
+ }
54
+ }
55
+ .e-numeric.e-input-group {
56
+ border: 0 !important;
57
+ box-shadow: none !important;
58
+ input.e-input {
59
+ border-width: 1px !important;
60
+ }
61
+ .e-input-group-icon {
62
+ display: none;
63
+ }
32
64
  }