grav-svelte 0.0.47 → 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,7 +591,7 @@
585
591
  white-space: nowrap;
586
592
  vertical-align: middle;
587
593
  z-index: 10;
588
- padding-right: 0.3rem;
594
+
589
595
  }
590
596
 
591
597
  .sticky-cell {
@@ -600,6 +606,11 @@
600
606
  word-break: break-word;
601
607
  font-size: 0.875rem;
602
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;
603
614
  }
604
615
 
605
616
  .cell-content.bold {
@@ -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.47",
3
+ "version": "0.0.48",
4
4
  "description": "A collection of Svelte components",
5
5
  "license": "MIT",
6
6
  "scripts": {