grav-svelte 0.0.45 → 0.0.48

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.
@@ -325,7 +325,9 @@
325
325
  : ''}"
326
326
  >
327
327
  <p
328
- class="cell-content {tableBodyItem.biBold
328
+ class="cell-content {item[
329
+ tableBodyItem.colorCampo ?? ''
330
+ ] ?? ''} {tableBodyItem.biBold
329
331
  ? 'bold'
330
332
  : ''}"
331
333
  style="text-align: {tableBodyItem.align ??
@@ -342,7 +344,8 @@
342
344
  : ''}"
343
345
  >
344
346
  <p
345
- class="cell-content {tableBodyItem.biBold
347
+ class="cell-content {item[tableBodyItem.colorCampo ?? ''] ??
348
+ ''} {tableBodyItem.biBold
346
349
  ? 'bold'
347
350
  : ''}"
348
351
  style="text-align: {tableBodyItem.align ??
@@ -359,7 +362,8 @@
359
362
  : ''}"
360
363
  >
361
364
  <p
362
- class="cell-content {tableBodyItem.biBold
365
+ class="cell-content {item[tableBodyItem.colorCampo ?? ''] ??
366
+ ''} {tableBodyItem.biBold
363
367
  ? 'bold'
364
368
  : ''}"
365
369
  style="text-align: {tableBodyItem.align ??
@@ -379,7 +383,8 @@
379
383
  : ''}"
380
384
  >
381
385
  <p
382
- class="cell-content {tableBodyItem.biBold
386
+ class="cell-content {item[tableBodyItem.colorCampo ?? ''] ??
387
+ ''} {tableBodyItem.biBold
383
388
  ? 'bold'
384
389
  : ''}"
385
390
  style="text-align: {tableBodyItem.align ??
@@ -398,7 +403,8 @@
398
403
  : ''}"
399
404
  >
400
405
  <p
401
- class="cell-content {tableBodyItem.biBold
406
+ class="cell-content {item[tableBodyItem.colorCampo ?? ''] ??
407
+ ''} {tableBodyItem.biBold
402
408
  ? 'bold'
403
409
  : ''}"
404
410
  style="text-align: {tableBodyItem.align ??
@@ -585,6 +591,7 @@
585
591
  white-space: nowrap;
586
592
  vertical-align: middle;
587
593
  z-index: 10;
594
+
588
595
  }
589
596
 
590
597
  .sticky-cell {
@@ -599,6 +606,11 @@
599
606
  word-break: break-word;
600
607
  font-size: 0.875rem;
601
608
  color: #4a4a4a;
609
+ margin-left: 3px;
610
+ margin-right: 3px;
611
+ padding-right: 0.3rem;
612
+ padding-left: 0.3rem;
613
+ border-radius: 0.375rem;
602
614
  }
603
615
 
604
616
  .cell-content.bold {
@@ -37,6 +37,7 @@
37
37
  .table-cell {
38
38
  font-size: 0.75rem;
39
39
  text-align: center;
40
+ padding-right: 0.3rem;
40
41
  }
41
42
 
42
43
  .button-group {
@@ -4,7 +4,6 @@
4
4
  import CrudTable from "./CrudTable.svelte";
5
5
  import type { FiltrosI, TableHeader, CrudWrapperProps } from "./interfaces.js";
6
6
  import PaginationCrud from "./PaginationCRUD.svelte";
7
- import { ModalContainer } from "../Modals/index.js";
8
7
 
9
8
  export let Filtros: FiltrosI[];
10
9
  export let todosLosObjetos: any[];
@@ -130,7 +129,6 @@ import { ModalContainer } from "../Modals/index.js";
130
129
  <i class="far fa-file-pdf"></i>PDF
131
130
  </button>
132
131
  </div>
133
- <ModalContainer />
134
132
  </div>
135
133
 
136
134
  <style>
@@ -19,6 +19,7 @@ export interface TableHeader {
19
19
  */
20
20
  align?: 'left' | 'right' | 'center';
21
21
  campo: string;
22
+ colorCampo?: string;
22
23
  buttonsConfig: ButtonConfig[] | null;
23
24
  }
24
25
  export interface FiltrosI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grav-svelte",
3
- "version": "0.0.45",
3
+ "version": "0.0.48",
4
4
  "description": "A collection of Svelte components",
5
5
  "license": "MIT",
6
6
  "scripts": {