mautourco-components 0.2.135 → 0.2.137

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.
@@ -249,7 +249,7 @@
249
249
  }
250
250
  }
251
251
 
252
- .table__children-wrapper {
252
+ .table__children--visible .table__children-wrapper {
253
253
  position: relative;
254
254
  border: 1px solid transparent;
255
255
  border-left: none;
@@ -19,7 +19,6 @@ export var detailResumeColumns = function (params) {
19
19
  cell: function (value, raw) {
20
20
  if (value === ServiceType.ACCOMMODATION) {
21
21
  var accom = raw;
22
- console.log(accom);
23
22
  return (_jsx(RowAccommodation.FirstCol, { serviceName: accom.HotelName, offers: accom.Offers, status: accom.RoomStatus }));
24
23
  }
25
24
  if (value === ServiceType.EXCURSION) {
@@ -40,7 +39,7 @@ export var detailResumeColumns = function (params) {
40
39
  header: 'Details',
41
40
  key: 'Type',
42
41
  width: 400,
43
- cell: function (value, raw, index) {
42
+ cell: function (value, raw) {
44
43
  if (value === ServiceType.ACCOMMODATION) {
45
44
  var accom = raw;
46
45
  return (_jsx(RowAccommodation.DetailsCol, { data: {
@@ -48,7 +47,7 @@ export var detailResumeColumns = function (params) {
48
47
  Dates: accom.Dates,
49
48
  ClientCategory: accom.ClientCategory,
50
49
  MealPlan: accom.MealPlan,
51
- }, index: (index || 0) + 1 }));
50
+ }, index: accom.RoomIndex }));
52
51
  }
53
52
  if (value === ServiceType.EXCURSION) {
54
53
  var excursion = raw;
@@ -60,6 +60,7 @@ export interface DetailResumeAccommodation extends TableRowData<DetailResumeItem
60
60
  Description: string;
61
61
  TitleDescription: string;
62
62
  Rooms: Room[];
63
+ RoomIndex: number;
63
64
  }
64
65
  export interface DetailResumeTransfer extends TableRowData<DetailResumeItem> {
65
66
  Type: ServiceType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.135",
3
+ "version": "0.2.137",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -227,7 +227,7 @@
227
227
  }
228
228
  }
229
229
 
230
- .table__children-wrapper {
230
+ .table__children--visible .table__children-wrapper {
231
231
  @apply relative;
232
232
  border: 1px solid transparent;
233
233
  border-left: none;
@@ -29,7 +29,6 @@ export const detailResumeColumns: (params?: {
29
29
  cell: (value, raw) => {
30
30
  if (value === ServiceType.ACCOMMODATION) {
31
31
  const accom = raw as DetailResumeAccommodation;
32
- console.log(accom);
33
32
  return (
34
33
  <RowAccommodation.FirstCol
35
34
  serviceName={accom.HotelName as string}
@@ -66,9 +65,10 @@ export const detailResumeColumns: (params?: {
66
65
  header: 'Details',
67
66
  key: 'Type',
68
67
  width: 400,
69
- cell: (value, raw, index) => {
68
+ cell: (value, raw) => {
70
69
  if (value === ServiceType.ACCOMMODATION) {
71
70
  const accom = raw as DetailResumeAccommodation;
71
+
72
72
  return (
73
73
  <RowAccommodation.DetailsCol
74
74
  data={{
@@ -77,7 +77,7 @@ export const detailResumeColumns: (params?: {
77
77
  ClientCategory: accom.ClientCategory,
78
78
  MealPlan: accom.MealPlan,
79
79
  }}
80
- index={(index || 0) + 1}
80
+ index={accom.RoomIndex}
81
81
  />
82
82
  );
83
83
  }
@@ -67,6 +67,7 @@ export interface DetailResumeAccommodation
67
67
  Description: string;
68
68
  TitleDescription: string;
69
69
  Rooms: Room[];
70
+ RoomIndex: number;
70
71
  }
71
72
 
72
73
  export interface DetailResumeTransfer extends TableRowData<DetailResumeItem> {