contentoh-components-library 21.0.90 → 21.0.91

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.
@@ -62,8 +62,9 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
62
62
  setActiveRetailer: setActiveRetailer
63
63
  }), showValidationButtons && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
64
64
  buttonType: "circular-button ".concat(buttonType),
65
- onClick: function onClick() {
66
- return setShowValidationPanel(true);
65
+ onClick: function onClick(e) {
66
+ e.stopPropagation();
67
+ setShowValidationPanel(true);
67
68
  }
68
69
  })]
69
70
  }), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
@@ -41,7 +41,7 @@ RetailerProductEditionDefault.args = {
41
41
  descriptions: 1,
42
42
  images: 1
43
43
  },
44
- orderId: 233,
44
+ orderId: 9,
45
45
  status: "QF",
46
46
  datasheet_status: "QF",
47
47
  prio: "none",
@@ -49,18 +49,18 @@ RetailerProductEditionDefault.args = {
49
49
  description_status: "QF",
50
50
  images_status: "QF",
51
51
  article: {
52
- id_article: 190965,
53
- id_category: "697",
54
- name: "Shampoo hidratante",
55
- upc: "6545345",
56
- timestamp: "2022-06-10T15:05:56.000Z",
57
- id_user: 28,
52
+ id_article: 35698,
53
+ id_category: "2143",
54
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
55
+ upc: "12087311",
56
+ timestamp: "2022-06-15T14:35:46.000Z",
57
+ id_user: 59,
58
58
  status: "NULL",
59
59
  active: 1,
60
60
  company_id: 1,
61
- company_name: "COMPANY DEV",
61
+ company_name: "Cadena Ismael",
62
62
  country: "México",
63
- id_order: 233,
63
+ id_order: 9,
64
64
  id_datasheet_especialist: 54,
65
65
  id_datasheet_facilitator: 52,
66
66
  id_description_especialist: 54,
@@ -69,28 +69,38 @@ RetailerProductEditionDefault.args = {
69
69
  id_images_facilitator: 53,
70
70
  id_auditor: 30,
71
71
  id_recepcionist: null,
72
- category: "SALUD Y BELLEZA|CUIDADO DEL CABELLO|SHAMPOOS Y ACONDICIONADORES",
73
- missingAttributes: null,
74
- missingDescriptions: null,
75
- missingImages: null
72
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
73
+ missingAttributes: 0,
74
+ missingDescriptions: 0,
75
+ missingImages: -1
76
76
  },
77
77
  retailers: [{
78
- id: 4,
79
- name: "Walmart Super y Superama",
78
+ id: 58,
79
+ name: "The Home Depot Golden",
80
80
  country: "México",
81
81
  id_region: 1,
82
- active: 1,
83
- percentage: 100
82
+ active: 1
84
83
  }, {
85
- id: 26,
86
- name: "Mercado Libre",
84
+ id: 59,
85
+ name: "The Home Depot Platinum",
87
86
  country: "México",
88
87
  id_region: 1,
89
- active: 1,
90
- percentage: 100
88
+ active: 1
89
+ }, {
90
+ id: 60,
91
+ name: "The Home Depot Resizing",
92
+ country: "México",
93
+ id_region: 1,
94
+ active: 1
95
+ }, {
96
+ id: 61,
97
+ name: "Home Depot TAB",
98
+ country: "México",
99
+ id_region: 1,
100
+ active: 1
91
101
  }],
92
102
  country: "México",
93
- upc: "6545345"
103
+ upc: "12087311"
94
104
  },
95
105
  location: {
96
106
  product: {
@@ -99,22 +109,22 @@ RetailerProductEditionDefault.args = {
99
109
  }
100
110
  },
101
111
  user: {
102
- id_user: 53,
103
- name: "FACILITADOR ED PRUEBA",
112
+ id_user: 52,
113
+ name: "FACILITADOR TXT PRUEBA",
104
114
  last_name: "",
105
- email: "arojas@contentoh.com",
115
+ email: "azarate@contentoh.com",
106
116
  position: null,
107
117
  telephone: null,
108
118
  country: null,
109
119
  id_company: 2,
110
- id_cognito: "c106e141-e221-49e8-a382-ce99385c6d88",
120
+ id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
111
121
  birth_Date: null,
112
122
  about_me: null,
113
123
  zip_code: null,
114
124
  address: null,
115
125
  job: null,
116
126
  id_stripe: null,
117
- id_role: 5,
127
+ id_role: 4,
118
128
  active: 1,
119
129
  is_retailer: 0,
120
130
  membership: {
@@ -128,6 +138,6 @@ RetailerProductEditionDefault.args = {
128
138
  products_limit: "3",
129
139
  type: "PyMES"
130
140
  },
131
- src: "https://content-management-profile.s3.amazonaws.com/id-53/53.png?1655161876316"
141
+ src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1655320339846"
132
142
  }
133
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.90",
3
+ "version": "21.0.91",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -48,7 +48,10 @@ export const AvatarAndValidation = ({
48
48
  {showValidationButtons && (
49
49
  <Button
50
50
  buttonType={`circular-button ${buttonType}`}
51
- onClick={() => setShowValidationPanel(true)}
51
+ onClick={(e) => {
52
+ e.stopPropagation();
53
+ setShowValidationPanel(true);
54
+ }}
52
55
  />
53
56
  )}
54
57
  </div>
@@ -26,7 +26,7 @@ RetailerProductEditionDefault.args = {
26
26
  descriptions: 1,
27
27
  images: 1,
28
28
  },
29
- orderId: 233,
29
+ orderId: 9,
30
30
  status: "QF",
31
31
  datasheet_status: "QF",
32
32
  prio: "none",
@@ -34,18 +34,18 @@ RetailerProductEditionDefault.args = {
34
34
  description_status: "QF",
35
35
  images_status: "QF",
36
36
  article: {
37
- id_article: 190965,
38
- id_category: "697",
39
- name: "Shampoo hidratante",
40
- upc: "6545345",
41
- timestamp: "2022-06-10T15:05:56.000Z",
42
- id_user: 28,
37
+ id_article: 35698,
38
+ id_category: "2143",
39
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
40
+ upc: "12087311",
41
+ timestamp: "2022-06-15T14:35:46.000Z",
42
+ id_user: 59,
43
43
  status: "NULL",
44
44
  active: 1,
45
45
  company_id: 1,
46
- company_name: "COMPANY DEV",
46
+ company_name: "Cadena Ismael",
47
47
  country: "México",
48
- id_order: 233,
48
+ id_order: 9,
49
49
  id_datasheet_especialist: 54,
50
50
  id_datasheet_facilitator: 52,
51
51
  id_description_especialist: 54,
@@ -54,53 +54,64 @@ RetailerProductEditionDefault.args = {
54
54
  id_images_facilitator: 53,
55
55
  id_auditor: 30,
56
56
  id_recepcionist: null,
57
- category:
58
- "SALUD Y BELLEZA|CUIDADO DEL CABELLO|SHAMPOOS Y ACONDICIONADORES",
59
- missingAttributes: null,
60
- missingDescriptions: null,
61
- missingImages: null,
57
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
58
+ missingAttributes: 0,
59
+ missingDescriptions: 0,
60
+ missingImages: -1,
62
61
  },
63
62
  retailers: [
64
63
  {
65
- id: 4,
66
- name: "Walmart Super y Superama",
64
+ id: 58,
65
+ name: "The Home Depot Golden",
67
66
  country: "México",
68
67
  id_region: 1,
69
68
  active: 1,
70
- percentage: 100,
71
69
  },
72
70
  {
73
- id: 26,
74
- name: "Mercado Libre",
71
+ id: 59,
72
+ name: "The Home Depot Platinum",
73
+ country: "México",
74
+ id_region: 1,
75
+ active: 1,
76
+ },
77
+ {
78
+ id: 60,
79
+ name: "The Home Depot Resizing",
80
+ country: "México",
81
+ id_region: 1,
82
+ active: 1,
83
+ },
84
+ {
85
+ id: 61,
86
+ name: "Home Depot TAB",
75
87
  country: "México",
76
88
  id_region: 1,
77
89
  active: 1,
78
- percentage: 100,
79
90
  },
80
91
  ],
81
92
  country: "México",
82
- upc: "6545345",
93
+ upc: "12087311",
83
94
  },
84
95
  location: {
85
96
  product: { articleId: 109485, versionId: 3 },
86
97
  },
87
98
  user: {
88
- id_user: 53,
89
- name: "FACILITADOR ED PRUEBA",
99
+ id_user: 52,
100
+ name: "FACILITADOR TXT PRUEBA",
90
101
  last_name: "",
91
- email: "arojas@contentoh.com",
102
+ email: "azarate@contentoh.com",
92
103
  position: null,
93
104
  telephone: null,
94
105
  country: null,
95
106
  id_company: 2,
96
- id_cognito: "c106e141-e221-49e8-a382-ce99385c6d88",
107
+ id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
97
108
  birth_Date: null,
98
109
  about_me: null,
99
110
  zip_code: null,
100
111
  address: null,
101
112
  job: null,
102
113
  id_stripe: null,
103
- id_role: 5,
114
+ id_role: 4,
104
115
  active: 1,
105
116
  is_retailer: 0,
106
117
  membership: {
@@ -114,6 +125,6 @@ RetailerProductEditionDefault.args = {
114
125
  products_limit: "3",
115
126
  type: "PyMES",
116
127
  },
117
- src: "https://content-management-profile.s3.amazonaws.com/id-53/53.png?1655161876316",
128
+ src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1655320339846",
118
129
  },
119
130
  };