keevo-components 1.8.450 → 1.8.452

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.
@@ -10,8 +10,9 @@ import * as i8 from "primeng/progressspinner";
10
10
  import * as i9 from "primeng/autocomplete";
11
11
  import * as i10 from "../kv-buttons/kv-button.module";
12
12
  import * as i11 from "../kv-table/kv-table.module";
13
+ import * as i12 from "../kv-button/kv-button.module";
13
14
  export declare class KvWorkspaceModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<KvWorkspaceModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<KvWorkspaceModule, [typeof i1.WorkspaceComponent, typeof i2.WorkspaceEmpresaComponent, typeof i3.WokspaceLogoComponent, typeof i4.WorkspaceMasterComponent], [typeof i5.CommonModule, typeof i6.PrimeNgModule, typeof i7.ReactiveFormsModule, typeof i8.ProgressSpinnerModule, typeof i9.AutoCompleteModule, typeof i7.FormsModule, typeof i10.KvButtonsModule, typeof i11.KvTableModule], [typeof i1.WorkspaceComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvWorkspaceModule, [typeof i1.WorkspaceComponent, typeof i2.WorkspaceEmpresaComponent, typeof i3.WokspaceLogoComponent, typeof i4.WorkspaceMasterComponent], [typeof i5.CommonModule, typeof i6.PrimeNgModule, typeof i7.ReactiveFormsModule, typeof i8.ProgressSpinnerModule, typeof i9.AutoCompleteModule, typeof i7.FormsModule, typeof i10.KvButtonsModule, typeof i11.KvTableModule, typeof i12.KvButtonModule], [typeof i1.WorkspaceComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<KvWorkspaceModule>;
17
18
  }
@@ -8,6 +8,7 @@ export declare class WorkspaceComponent implements OnInit {
8
8
  nomeUsuario: string;
9
9
  somenteMaster: boolean;
10
10
  visivel: boolean;
11
+ showBtnVoltar: boolean;
11
12
  empresas: any[];
12
13
  empresaSelecionada: any;
13
14
  totalEmpresas: number;
@@ -16,11 +17,13 @@ export declare class WorkspaceComponent implements OnInit {
16
17
  onGetMasterSelecionada: EventEmitter<any>;
17
18
  onGetEmpresaSelecionada: EventEmitter<any>;
18
19
  onPaginate: EventEmitter<any>;
20
+ onBtnVoltarClick: EventEmitter<any>;
19
21
  constructor();
20
22
  ngOnInit(): void;
21
23
  paginate(event: any): void;
24
+ OnBtnVoltarClick(): void;
22
25
  selecionarEmpresa(empresa: any): void;
23
26
  selecionarMaster(event: any): void;
24
27
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceComponent, "kv-workspace", never, { "backgroundImg": { "alias": "backgroundImg"; "required": false; }; "logoKeevoCenter": { "alias": "logoKeevoCenter"; "required": false; }; "nomeUsuario": { "alias": "nomeUsuario"; "required": false; }; "somenteMaster": { "alias": "somenteMaster"; "required": false; }; "visivel": { "alias": "visivel"; "required": false; }; "empresas": { "alias": "empresas"; "required": false; }; "empresaSelecionada": { "alias": "empresaSelecionada"; "required": false; }; "totalEmpresas": { "alias": "totalEmpresas"; "required": false; }; "masters": { "alias": "masters"; "required": false; }; "masterSelecionada": { "alias": "masterSelecionada"; "required": false; }; }, { "onGetMasterSelecionada": "onGetMasterSelecionada"; "onGetEmpresaSelecionada": "onGetEmpresaSelecionada"; "onPaginate": "onPaginate"; }, never, never, false, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceComponent, "kv-workspace", never, { "backgroundImg": { "alias": "backgroundImg"; "required": false; }; "logoKeevoCenter": { "alias": "logoKeevoCenter"; "required": false; }; "nomeUsuario": { "alias": "nomeUsuario"; "required": false; }; "somenteMaster": { "alias": "somenteMaster"; "required": false; }; "visivel": { "alias": "visivel"; "required": false; }; "showBtnVoltar": { "alias": "showBtnVoltar"; "required": false; }; "empresas": { "alias": "empresas"; "required": false; }; "empresaSelecionada": { "alias": "empresaSelecionada"; "required": false; }; "totalEmpresas": { "alias": "totalEmpresas"; "required": false; }; "masters": { "alias": "masters"; "required": false; }; "masterSelecionada": { "alias": "masterSelecionada"; "required": false; }; }, { "onGetMasterSelecionada": "onGetMasterSelecionada"; "onGetEmpresaSelecionada": "onGetEmpresaSelecionada"; "onPaginate": "onPaginate"; "onBtnVoltarClick": "onBtnVoltarClick"; }, never, never, false, never>;
26
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.450",
3
+ "version": "1.8.452",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
@@ -0,0 +1,202 @@
1
+ ::ng-deep .p-datatable > .p-datatable-wrapper {
2
+ &::-webkit-scrollbar {
3
+ width: 6px;
4
+
5
+ &:hover {
6
+ background-color: rgba(222, 222, 222, 0.75);
7
+ }
8
+ }
9
+
10
+ &::-webkit-scrollbar-thumb {
11
+ border-radius: 4px;
12
+ background-color: transparent;
13
+ }
14
+
15
+ &:hover::-webkit-scrollbar-thumb {
16
+ border-left: 2px solid white;
17
+ background-color: rgba(0, 0, 0, 0.5);
18
+ }
19
+
20
+ &::-webkit-scrollbar-track {
21
+ border-left: 2px solid white;
22
+ background-color: rgba(222, 222, 222, 0.75);
23
+ }
24
+ }
25
+
26
+ .tag {
27
+ width: 5px;
28
+ height: 20px;
29
+ border-radius: 0.25rem;
30
+ }
31
+
32
+ ::ng-deep .p-panel .p-panel-header {
33
+ border: none !important;
34
+ }
35
+
36
+ :host ::ng-deep .p-datatable-header {
37
+ // background-color: #f2f2f2;
38
+ background-color: #860000 !important;
39
+ padding: 0 !important;
40
+ border-radius: 5px !important;
41
+ }
42
+
43
+ ::ng-deep .p-panel.p-panel-toggleable .p-panel-header {
44
+ background-color: #f1f1f1;
45
+ }
46
+
47
+ ::ng-deep .p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
48
+ background-color: #f1f1f1;
49
+ padding: 0.15rem 0.15rem;
50
+ }
51
+
52
+ .icon-more-horiz {
53
+ font-weight: 700;
54
+ }
55
+
56
+ .icon-more-horiz:hover,
57
+ .icon-more-horiz:focus {
58
+ color: #5e5e5e;
59
+ transition: color 0.3s, transform 0.3s;
60
+ background-color: #eaeaea;
61
+ border-radius: 50%;
62
+ }
63
+
64
+ .tr-td {
65
+ &:hover {
66
+ box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
67
+ rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
68
+ background-color: white;
69
+ transition: color 0.3s, transform 0.3s;
70
+ transform: scale(1);
71
+ &.last {
72
+ box-shadow: -1px -1px 9px -3px rgba(0, 0, 0, 0.75);
73
+ -webkit-box-shadow: -1px -1px 9px -3px rgba(0, 0, 0, 0.75);
74
+ -moz-box-shadow: -1px -1px 9px -3px rgba(0, 0, 0, 0.75);
75
+ }
76
+ }
77
+ overflow-wrap: anywhere;
78
+ }
79
+
80
+ .disabled-row {
81
+ pointer-events: none;
82
+ opacity: 0.6;
83
+ background-color: #dddddd8e;
84
+ }
85
+
86
+ ::ng-deep .p-tooltip {
87
+ pointer-events: auto;
88
+ }
89
+
90
+ .btn-table {
91
+ background-color: #29b92d;
92
+ padding: 12px 12px;
93
+
94
+ &:hover {
95
+ background-color: #249a29;
96
+ }
97
+
98
+ &:active {
99
+ background-color: #1c801f;
100
+ }
101
+
102
+ &:disabled {
103
+ background-color: #29b92d;
104
+ }
105
+ }
106
+
107
+ ::ng-deep svg.p-icon {
108
+ width: 0.65rem;
109
+ height: 0.65rem;
110
+ }
111
+
112
+ ::ng-deep .p-checkbox .p-checkbox-box.p-highlight {
113
+ border-color: #004172;
114
+ background: #004172;
115
+
116
+ &:hover {
117
+ background-color: #002542;
118
+ }
119
+
120
+ &:active {
121
+ background-color: #002542;
122
+ }
123
+
124
+ &:disabled {
125
+ background-color: #002542;
126
+ opacity: 0.4;
127
+ cursor: auto;
128
+ }
129
+ }
130
+
131
+ input {
132
+ height: 1.75rem;
133
+ }
134
+
135
+ ::ng-deep {
136
+ .p-checkbox .p-checkbox-box {
137
+ width: 1.125rem;
138
+ height: 1.125rem;
139
+ border: 1.5px solid #d1d5db;
140
+ }
141
+
142
+ .p-checkbox {
143
+ display: flex !important;
144
+ align-items: center !important;
145
+ justify-content: center;
146
+ }
147
+
148
+ .p-checkbox-label {
149
+ font-size: 0.875rem;
150
+ }
151
+ .p-datatable .p-paginator-bottom {
152
+ scale: 0.75;
153
+ }
154
+ .p-menuitem-text {
155
+ font-size: 0.875rem;
156
+ }
157
+
158
+ .p-tieredmenu .p-menuitem > .p-menuitem-content .p-menuitem-link {
159
+ padding: 0.5rem 0.75rem;
160
+ }
161
+
162
+ .p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
163
+ padding: 0.1rem 0.1rem;
164
+ }
165
+ }
166
+
167
+ :host {
168
+ height: 100%;
169
+ }
170
+
171
+ ::ng-deep .kv-table-container,
172
+ ::ng-deep p-table {
173
+ height: 100%;
174
+ }
175
+
176
+ ::ng-deep p-table .p-datatable {
177
+ display: flex;
178
+ flex-direction: column;
179
+ height: 100%;
180
+ }
181
+
182
+ //expande o necessário, encolhe se necessário, tamanho inicial
183
+ ::ng-deep .p-datatable .p-datatable-wrapper {
184
+ flex: 1 1 1;
185
+ }
186
+
187
+ ::ng-deep p-table .p-datatable .p-datatable-wrapper,
188
+ ::ng-deep p-table {
189
+ height: 100%;
190
+ }
191
+
192
+ ::ng-deep table {
193
+ height: auto !important;
194
+ }
195
+
196
+ .ellipsis-text {
197
+ white-space: nowrap;
198
+ overflow: hidden;
199
+ text-overflow: ellipsis;
200
+ max-width: 100%;
201
+ display: inline-block;
202
+ }