arengibook 2.0.4-table → 2.0.5-table
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/dist/index.js +9 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44018,6 +44018,7 @@ var Table = function Table(_ref) {
|
|
|
44018
44018
|
return function (rowData) {
|
|
44019
44019
|
var text = rowData[col.field];
|
|
44020
44020
|
var color = rowData[col.field + 'Color'];
|
|
44021
|
+
console.log(rowData);
|
|
44021
44022
|
if (!color) return text !== null && text !== void 0 ? text : '';
|
|
44022
44023
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
44023
44024
|
className: "tab_label",
|
|
@@ -44278,16 +44279,6 @@ var statutOptions = [{
|
|
|
44278
44279
|
label: 'Archivé',
|
|
44279
44280
|
color: '#95A5A6'
|
|
44280
44281
|
}];
|
|
44281
|
-
var categorieOptions = [{
|
|
44282
|
-
value: 'client',
|
|
44283
|
-
label: 'Client'
|
|
44284
|
-
}, {
|
|
44285
|
-
value: 'prospect',
|
|
44286
|
-
label: 'Prospect'
|
|
44287
|
-
}, {
|
|
44288
|
-
value: 'partenaire',
|
|
44289
|
-
label: 'Partenaire'
|
|
44290
|
-
}];
|
|
44291
44282
|
var competencesOptions = [{
|
|
44292
44283
|
value: 'react',
|
|
44293
44284
|
label: 'React',
|
|
@@ -44316,6 +44307,7 @@ var dataTyped = [{
|
|
|
44316
44307
|
dateNaissance: '1990-07-22',
|
|
44317
44308
|
statut: 'actif',
|
|
44318
44309
|
categorie: 'client',
|
|
44310
|
+
categorieColor: '#2980B9',
|
|
44319
44311
|
competences: ['react', 'symfony']
|
|
44320
44312
|
}, {
|
|
44321
44313
|
id: 2,
|
|
@@ -44324,6 +44316,7 @@ var dataTyped = [{
|
|
|
44324
44316
|
dateNaissance: '1985-11-03',
|
|
44325
44317
|
statut: 'inactif',
|
|
44326
44318
|
categorie: 'prospect',
|
|
44319
|
+
categorieColor: '#E67E22',
|
|
44327
44320
|
competences: ['sql']
|
|
44328
44321
|
}, {
|
|
44329
44322
|
id: 3,
|
|
@@ -44332,6 +44325,7 @@ var dataTyped = [{
|
|
|
44332
44325
|
dateNaissance: '1995-02-14',
|
|
44333
44326
|
statut: 'actif',
|
|
44334
44327
|
categorie: 'partenaire',
|
|
44328
|
+
categorieColor: '#8E44AD',
|
|
44335
44329
|
competences: ['design', 'react']
|
|
44336
44330
|
}, {
|
|
44337
44331
|
id: 4,
|
|
@@ -44340,6 +44334,7 @@ var dataTyped = [{
|
|
|
44340
44334
|
dateNaissance: '1978-06-01',
|
|
44341
44335
|
statut: 'archive',
|
|
44342
44336
|
categorie: 'client',
|
|
44337
|
+
categorieColor: '#2980B9',
|
|
44343
44338
|
competences: ['devops', 'sql', 'symfony']
|
|
44344
44339
|
}, {
|
|
44345
44340
|
id: 5,
|
|
@@ -44348,6 +44343,7 @@ var dataTyped = [{
|
|
|
44348
44343
|
dateNaissance: '2001-12-09',
|
|
44349
44344
|
statut: 'actif',
|
|
44350
44345
|
categorie: 'prospect',
|
|
44346
|
+
categorieColor: '#E67E22',
|
|
44351
44347
|
competences: []
|
|
44352
44348
|
}, {
|
|
44353
44349
|
id: 6,
|
|
@@ -44356,6 +44352,7 @@ var dataTyped = [{
|
|
|
44356
44352
|
dateNaissance: '1969-08-27',
|
|
44357
44353
|
statut: 'inactif',
|
|
44358
44354
|
categorie: 'client',
|
|
44355
|
+
categorieColor: '#2980B9',
|
|
44359
44356
|
competences: ['react', 'devops', 'design']
|
|
44360
44357
|
}, {
|
|
44361
44358
|
id: 7,
|
|
@@ -44364,6 +44361,7 @@ var dataTyped = [{
|
|
|
44364
44361
|
dateNaissance: '1993-03-18',
|
|
44365
44362
|
statut: 'actif',
|
|
44366
44363
|
categorie: 'partenaire',
|
|
44364
|
+
categorieColor: '#8E44AD',
|
|
44367
44365
|
competences: ['symfony', 'sql']
|
|
44368
44366
|
}];
|
|
44369
44367
|
var columnsTyped = [{
|
|
@@ -44390,8 +44388,7 @@ var columnsTyped = [{
|
|
|
44390
44388
|
}, {
|
|
44391
44389
|
field: 'categorie',
|
|
44392
44390
|
header: 'Catégorie',
|
|
44393
|
-
type: '
|
|
44394
|
-
options: categorieOptions
|
|
44391
|
+
type: 'colorText'
|
|
44395
44392
|
}, {
|
|
44396
44393
|
field: 'competences',
|
|
44397
44394
|
header: 'Compétences',
|