@jvsoft/components 0.0.2 → 0.0.3

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 (39) hide show
  1. package/dialog-flotante/dialog-flotante.component.scss +36 -0
  2. package/fesm2022/jvsoft-components-dialog-flotante.mjs +21 -10
  3. package/fesm2022/jvsoft-components-dialog-flotante.mjs.map +1 -1
  4. package/fesm2022/jvsoft-components-progress-spinner.mjs +2 -2
  5. package/fesm2022/jvsoft-components-progress-spinner.mjs.map +1 -1
  6. package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs +5 -3
  7. package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs.map +1 -1
  8. package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs +458 -174
  9. package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs.map +1 -1
  10. package/fesm2022/jvsoft-components.mjs +480 -186
  11. package/fesm2022/jvsoft-components.mjs.map +1 -1
  12. package/index.d.ts +1 -0
  13. package/luces-navidad/luces-navidad.component.scss +125 -0
  14. package/package.json +10 -7
  15. package/progress-spinner/progress-spinner.component.scss +14 -0
  16. package/src/styles/base-jvsoft-components.css +9 -0
  17. package/src/styles/base.scss +9 -0
  18. package/tabla-mantenimiento/components/progress-bar/progress-bar.component.d.ts +3 -3
  19. package/tabla-mantenimiento/interfaces/archivo.d.ts +26 -0
  20. package/tabla-mantenimiento/interfaces/global/columnas-tabla.d.ts +97 -73
  21. package/tabla-mantenimiento/interfaces/implements/incluye-tabla-mantenimiento.d.ts +12 -0
  22. package/tabla-mantenimiento/interfaces/implements/index.d.ts +1 -0
  23. package/tabla-mantenimiento/interfaces/index.d.ts +3 -0
  24. package/tabla-mantenimiento/public-api.d.ts +1 -0
  25. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-date/column-type-date.component.d.ts +8 -0
  26. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-icons/column-type-icons.component.d.ts +9 -0
  27. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-money/column-type-money.component.d.ts +9 -0
  28. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-number/column-type-number.component.d.ts +8 -0
  29. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-progressbar/column-type-progressbar.component.d.ts +8 -0
  30. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-sino/column-type-sino.component.d.ts +9 -0
  31. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-text/column-type-text.component.d.ts +8 -0
  32. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.d.ts +18 -0
  33. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.module.d.ts +23 -0
  34. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.d.ts +5 -10
  35. package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.scss +0 -0
  36. package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.scss +0 -0
  37. package/tabla-mantenimiento/tabla-mantenimiento.component.d.ts +8 -6
  38. package/tabla-mantenimiento/tabla-mantenimiento.component.scss +219 -0
  39. /package/src/{styles.scss → styles/tailwind.scss} +0 -0
@@ -81,6 +81,7 @@ export declare class TablaMantenimientoComponent<T> implements OnInit, AfterCont
81
81
  userMenu: TemplateRef<any>;
82
82
  opcFiltroActual: {};
83
83
  protected readonly capitalizarTexto: typeof capitalizarTexto;
84
+ _seleccionado: any;
84
85
  cCampoBusqueda: FormControl<string | null>;
85
86
  chkLista: DataModel;
86
87
  constructor(fb: FormBuilder, overlay: Overlay, viewContainerRef: ViewContainerRef, tablaMantenimientoService: TablaMantenimientoService, cdRef: ChangeDetectorRef);
@@ -108,8 +109,9 @@ export declare class TablaMantenimientoComponent<T> implements OnInit, AfterCont
108
109
  set botonesMenu(val: SeccionesBotonesMantenimiento);
109
110
  get listaMenuCompleto(): BotonMantenimiento[];
110
111
  get objVisibleColumns(): ColumnaTabla<any>[];
111
- get visibleColumns(): any[];
112
- get tieneCheckbox(): false | ColumnaTabla<any>;
112
+ get visibleColumns(): string[];
113
+ get tieneCheckbox(): false | import("@jvsoft/components/tabla-mantenimiento").ColumnaCheckbox<any>;
114
+ get buscarItemSeleccionado(): any;
113
115
  get objSeleccionado(): any;
114
116
  set objSeleccionado(val: any);
115
117
  get idsSeleccionado(): string;
@@ -118,10 +120,7 @@ export declare class TablaMantenimientoComponent<T> implements OnInit, AfterCont
118
120
  ngOnInit(): void;
119
121
  ngAfterContentInit(): void;
120
122
  ngOnChanges(changes: SimpleChanges): void;
121
- trackByFn(index: number, item: {
122
- id: number;
123
- value: number;
124
- }): string;
123
+ trackByFn: (index: number, item: any) => string;
125
124
  agregarBotonesExportacion(): void;
126
125
  actualizarCrud(): void;
127
126
  classFila(item: any): any[];
@@ -132,6 +131,9 @@ export declare class TablaMantenimientoComponent<T> implements OnInit, AfterCont
132
131
  cargarData(retorno?: boolean): any;
133
132
  setData(data: any): void;
134
133
  botonDisabled(btn: BotonMantenimiento, item: any): boolean | undefined;
134
+ propiedadSeleccion(item: any): string;
135
+ esSeleccionActual(item: any): boolean;
136
+ seleccionarItem(item: any, forzado?: boolean): void;
135
137
  opcMenu(item: any, objMenu: OpcionSeleccionada, modal?: null, retorno?: boolean): OpcionSeleccionada | 1;
136
138
  emitirResultados(evento?: {}): void;
137
139
  abrirMenuContextual({ x, y }: MouseEvent, user: any): void;
@@ -0,0 +1,219 @@
1
+
2
+ :root {
3
+
4
+ // SOBREESCRIBIR VARIABLES - DE SELECCION
5
+ //--tabla-mantenimiento-seleccion-fondo: rgb(var(--color-primary));
6
+ //--tabla-mantenimiento-seleccion-fondo: rgb(var(--color-primary));
7
+ --tabla-mantenimiento-seleccion-fondo: rgb(179, 217, 252);
8
+ --tabla-mantenimiento-seleccion-texto: rgb(1, 84, 164);
9
+
10
+ --mat-paginator-container-size: 30px;
11
+
12
+ /*
13
+ "--tabla-mantenimiento-seleccion-fondo": "rgb(179,217,252)",
14
+ "--tabla-mantenimiento-seleccion-texto": "rgb(1,84,164)"
15
+ */
16
+
17
+ .table-mantenimiento {
18
+ .elemento-seleccionado {
19
+ background-color: var(--tabla-mantenimiento-seleccion-fondo) !important;
20
+ color: var(--tabla-mantenimiento-seleccion-texto) !important;
21
+ border-color: var(--tabla-mantenimiento-seleccion-texto) !important;
22
+ }
23
+ }
24
+ }
25
+
26
+ .jvs-tabla-mantenimiento {
27
+ width: inherit;
28
+
29
+ .contenedor-botones {
30
+ > *:first-child {
31
+ @apply rounded-l;
32
+ }
33
+
34
+ > *:last-child {
35
+ @apply rounded-r;
36
+ }
37
+ }
38
+
39
+
40
+ .mat-mdc-menu-content:not(:empty) {
41
+ @apply flex flex-col items-start;
42
+ padding: 0 !important;
43
+ }
44
+
45
+ .mat-mdc-menu-item {
46
+ line-height: 24px !important;
47
+ height: 24px !important;
48
+ min-height: 24px !important;
49
+ }
50
+
51
+ .mat-mdc-menu-panel {
52
+ min-height: auto !important;
53
+ }
54
+
55
+ .mat-mdc-table .mat-mdc-cell, .mat-mdc-table .mat-mdc-header-cell .mat-mdc-footer-cell {
56
+ white-space: unset;
57
+ }
58
+
59
+ .table-container {
60
+ max-height: 600px !important;
61
+ }
62
+
63
+
64
+ .table-mantenimiento {
65
+
66
+ .mat-mdc-table-sticky-border-elem-right {
67
+ border-left: 1px solid #e0e0e0;
68
+ }
69
+
70
+ .mat-mdc-table-sticky-border-elem-left {
71
+ border-right: 1px solid #e0e0e0;
72
+ }
73
+
74
+ tr.regAnulado {
75
+ .mat-mdc-cell {
76
+ color: unset !important;
77
+ }
78
+ }
79
+
80
+ .bg-primary-activo .numeracionFila {
81
+ @apply rounded-full bg-primary-contrast text-primary mx-1 p-1 w-6 h-6;
82
+ }
83
+
84
+ th {
85
+ .form-input {
86
+ @apply w-auto;
87
+ }
88
+ }
89
+
90
+ th.mat-mdc-header-cell,
91
+ td.mat-mdc-cell,
92
+ td.mat-mdc-footer-cell {
93
+ &:not(.celda-numeracion-fila) {
94
+ padding: 0.05rem 0.25rem;
95
+ }
96
+
97
+ //@apply px-1;
98
+ border-width: 1px;
99
+ //border-width: 1px 1px 1px 1px;
100
+ border-style: solid;
101
+ }
102
+
103
+ th.mat-mdc-header-cell:first-of-type,
104
+ th.mat-mdc-header-cell:last-of-type,
105
+ td.mat-mdc-cell:first-of-type,
106
+ td.mat-mdc-cell:last-of-type,
107
+ td.mat-mdc-footer-cell:first-of-type,
108
+ td.mat-mdc-footer-cell:last-of-type {
109
+ //@apply px-2;
110
+ &:not(.celda-numeracion-fila) {
111
+ padding: 0 0.25rem;
112
+ }
113
+ }
114
+
115
+ tr.student-detail-row {
116
+ //height: 0 !important;
117
+ }
118
+
119
+ //.student-element-row td {
120
+ // border-bottom-width: 0 !important;
121
+ //}
122
+
123
+ .student-element-detail {
124
+ overflow: hidden;
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ //background-color: #e1e1e1;
129
+ //box-shadow: inset 0 0 4px 0;
130
+ //border-radius: 3px;
131
+ }
132
+
133
+ .mat-mdc-header-row {
134
+ height: 25px !important;
135
+ color: rgb(var(--color-primary)) !important;
136
+ background-color: rgb(var(--color-primary-contrast)) !important;
137
+ }
138
+
139
+ .mat-mdc-header-cell {
140
+ padding: 5px;
141
+ font-size: 10px;
142
+ line-height: 10px;
143
+ font-weight: bold !important;
144
+ color: inherit;
145
+ }
146
+
147
+ .mat-mdc-row {
148
+ &:hover {
149
+ //background-color: rgba(var(--color-primary-contrast), 0.04);
150
+ //background-color: unset !important;
151
+ }
152
+ }
153
+
154
+ .mdc-data-table__row {
155
+ //&:not(.bg-primary-activo),
156
+ &:not(.mdc-data-table__row--selected) {
157
+ &:not(.elemento-seleccionado) {
158
+ &:hover, &:focus {
159
+ background-color: rgba(var(--color-primary-contrast), 0.04);
160
+ }
161
+ }
162
+ }
163
+ }
164
+
165
+ .mat-mdc-row,
166
+ .mat-mdc-footer-row {
167
+ //height: unset !important;
168
+ .mat-mdc-cell {
169
+ //@apply text-2xs;
170
+ font-size: 10px;
171
+ //font-size: unset;
172
+ }
173
+
174
+ //.mat-mdc-footer-cell:not(:empty) {
175
+ .mat-mdc-footer-cell:empty {
176
+ /* Styles */
177
+ border-width: 0 !important;
178
+ }
179
+ }
180
+
181
+ .mat-mdc-cell {
182
+ @apply leading-tight;
183
+ }
184
+
185
+ //style="height: 1.5rem !important; font-size: 0.75rem !important;"
186
+ /*
187
+ th.mat-mdc-header-cell:last-of-type, td.mat-mdc-cell:last-of-type, td.mat-mdc-footer-cell:last-of-type {
188
+ padding-right: 0 !important;
189
+ }
190
+ */
191
+
192
+ th.mat-mdc-header-cell {
193
+ //text-align: center !important;
194
+ border-color: rgb(212, 208, 208);
195
+ //border-right-color: rgb(var(--color-primary));
196
+ //border-left-color: rgb(var(--color-primary));
197
+ @apply text-center uppercase;
198
+ //&:first-child {
199
+ //}
200
+ .mat-sort-header-container {
201
+ @apply flex items-center justify-between w-full;
202
+ .mat-sort-header-content {
203
+ @apply inline w-full text-center;
204
+ }
205
+
206
+ .mat-sort-header-arrow {
207
+ @apply flex-none;
208
+ }
209
+ }
210
+ }
211
+
212
+ .mat-mdc-sort-header-content {
213
+ width: 100%;
214
+ text-align: center;
215
+ display: unset;
216
+ align-items: center;
217
+ }
218
+ }
219
+ }
File without changes