@rubeusteam/rb-angular-components 0.0.1-9.1 → 0.0.1-dev.0
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/rubeusteam-rb-angular-components.mjs +331 -49
- package/fesm2022/rubeusteam-rb-angular-components.mjs.map +1 -1
- package/lib/components/rb-change-log-dialog/rb-change-log-dialog.component.d.ts +9 -0
- package/lib/components/rb-columns-sort-setting/rb-columns-sort-setting.component.d.ts +31 -0
- package/lib/components/rb-crud/helpers/resolve-actions.helper.d.ts +6 -0
- package/lib/components/rb-crud/rb-crud.component.d.ts +29 -6
- package/lib/components/rb-crud-tool-bar/rb-crud-tool-bar.component.d.ts +4 -4
- package/lib/components/rb-filter-panel/rb-filter-panel.component.d.ts +1 -1
- package/lib/interfaces/button.interface.d.ts +15 -1
- package/lib/interfaces/rb-change-log-dialog.interface.d.ts +5 -0
- package/lib/interfaces/rb-conditional-class.interface.d.ts +9 -0
- package/lib/interfaces/rb-crud.interface.d.ts +8 -0
- package/lib/interfaces/rb-dialog.interface.d.ts +1 -0
- package/lib/pipes/is-array.pipe.d.ts +7 -0
- package/lib/pipes/rb-conditional-class/rb-conditional-class.pipe.d.ts +9 -0
- package/lib/services/rb-show-index-crud-service/rb-show-index-crud.service.d.ts +8 -0
- package/package.json +2 -2
- package/public-api.d.ts +6 -0
- package/src/lib/styles/_crud.scss +16 -4
- package/src/lib/styles/_dialog.scss +21 -0
- package/src/lib/styles/index.scss +1 -0
|
@@ -4,8 +4,16 @@ export interface CrudColumn {
|
|
|
4
4
|
sortable?: boolean;
|
|
5
5
|
pipe?: 'date' | 'datetime' | 'currency' | 'cpf' | 'cnpj' | 'phone' | 'cep' | 'mask' | 'relativeTime' | 'lastModifiedBy';
|
|
6
6
|
action?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
blocked?: boolean;
|
|
9
|
+
conditionalClassKey?: string;
|
|
10
|
+
objCol?: CrudObjColumn;
|
|
7
11
|
}
|
|
8
12
|
export interface CrudActionEvent {
|
|
9
13
|
action: string;
|
|
10
14
|
row?: any;
|
|
11
15
|
}
|
|
16
|
+
export interface CrudObjColumn {
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IsArrayPipe implements PipeTransform {
|
|
4
|
+
transform(value: any): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsArrayPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsArrayPipe, "isArray", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ConditionalClasses } from '../../interfaces/rb-conditional-class.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RbConditionalClassPipe implements PipeTransform {
|
|
5
|
+
transform(cellValue: any, columnKey: string, rules: ConditionalClasses[]): string;
|
|
6
|
+
private evaluateCondition;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbConditionalClassPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RbConditionalClassPipe, "rbConditionalClass", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RbShowIndexCrudService {
|
|
3
|
+
showIndex: import("@angular/core").WritableSignal<boolean>;
|
|
4
|
+
setShowIndex(value: boolean): void;
|
|
5
|
+
toggle(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbShowIndexCrudService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RbShowIndexCrudService>;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -5,9 +5,15 @@ export * from './lib/components/rb-dialog/rb-dialog.component';
|
|
|
5
5
|
export * from './lib/components/rb-filter-panel/rb-filter-panel.component';
|
|
6
6
|
export * from './lib/components/rb-filter-dropdown/rb-filter-dropdown.component';
|
|
7
7
|
export * from './lib/components/rb-copy-confirm-dialog/rb-copy-confirm-dialog.component';
|
|
8
|
+
export * from './lib/components/rb-change-log-dialog/rb-change-log-dialog.component';
|
|
9
|
+
export * from './lib/components/rb-columns-sort-setting/rb-columns-sort-setting.component';
|
|
8
10
|
export * from './lib/pipes/rb-custom/rb-custom.pipe';
|
|
11
|
+
export * from './lib/pipes/rb-conditional-class/rb-conditional-class.pipe';
|
|
12
|
+
export * from './lib/pipes/is-array.pipe';
|
|
9
13
|
export * from './lib/directives/rb-dynamic-button/rb-dynamic-button.directive';
|
|
10
14
|
export * from './lib/interfaces/rb-crud.interface';
|
|
11
15
|
export * from './lib/interfaces/button.interface';
|
|
12
16
|
export * from './lib/interfaces/rb-dialog.interface';
|
|
13
17
|
export * from './lib/interfaces/rb-filter.interface';
|
|
18
|
+
export * from './lib/interfaces/rb-change-log-dialog.interface';
|
|
19
|
+
export * from './lib/interfaces/rb-conditional-class.interface';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.rb-menu-crud {
|
|
2
|
-
background:
|
|
1
|
+
.rb-menu-crud .mat-mdc-menu-content{
|
|
2
|
+
background: #F8FAF9;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.rb-menu-crud .mat-menu-item,
|
|
6
6
|
.rb-menu-crud .mat-mdc-menu-item {
|
|
7
|
-
color:
|
|
7
|
+
color: #2E3131;
|
|
8
8
|
font-style: normal;
|
|
9
9
|
font-weight: 400;
|
|
10
10
|
line-height: var(24px);
|
|
@@ -12,7 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.rb-menu-crud .mat-icon {
|
|
15
|
-
color:
|
|
15
|
+
color: #505353;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rb-menu-crud button[color="warn"],
|
|
19
|
+
.rb-menu-crud button[color="warn"] span {
|
|
20
|
+
color: var(--mat-menu-item-text-color-warn, #7E0007);
|
|
21
|
+
mat-icon {
|
|
22
|
+
color: #93000A;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rb-menu-crud hr {
|
|
27
|
+
color: #C4C7C6;
|
|
16
28
|
}
|
|
17
29
|
|
|
18
30
|
.rb-table-container thead {
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
align-self: stretch;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.rb-dialog-content.bg-white {
|
|
30
|
+
background-color: #ffffff;
|
|
31
|
+
}
|
|
32
|
+
|
|
29
33
|
.rb-dialog-actions {
|
|
30
34
|
display: flex;
|
|
31
35
|
align-self: stretch;
|
|
@@ -36,3 +40,20 @@
|
|
|
36
40
|
.width-100 {
|
|
37
41
|
width: 100%;
|
|
38
42
|
}
|
|
43
|
+
|
|
44
|
+
mat-dialog-content.rb-dialog-content.has-crud {
|
|
45
|
+
padding: 0;
|
|
46
|
+
.rb-crud-container {
|
|
47
|
+
margin-top: 0;
|
|
48
|
+
|
|
49
|
+
.mat-mdc-header-cell {
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
}
|
|
52
|
+
td, th {
|
|
53
|
+
padding: 0 16px;
|
|
54
|
+
}
|
|
55
|
+
th {
|
|
56
|
+
border-bottom: 1px solid rgb(225, 227, 226);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|