contentoh-components-library 21.0.94 → 21.0.96

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.
@@ -99,7 +99,7 @@ var InputFormatter = function InputFormatter(_ref) {
99
99
  setCharsCounter(h.getLength() - 1);
100
100
  value = valueFormater(value);
101
101
  var idInput = inputId;
102
- var dataSave = updatedDescriptions.slice();
102
+ var dataSave = updatedDescriptions === null || updatedDescriptions === void 0 ? void 0 : updatedDescriptions.slice();
103
103
 
104
104
  if (dataSave.length > 0) {
105
105
  if (dataSave.filter(function (e) {
@@ -36,115 +36,56 @@ ProviderProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- version: 1,
40
- brand: null,
41
- missing: {
42
- datasheet: null,
43
- descriptions: null,
44
- images: null
45
- },
46
- article: {
47
- category: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
48
- company_name: "BROOKLITE MEXICO S DE RL DE CV",
49
- company_id: 409,
50
- id_category: "2520",
51
- id_article: 1,
52
- name: "SOPORTE PLANCHA-BURRO EN PUERTA",
53
- upc: "339"
54
- },
55
- asignations: [62],
56
- retailers: [{
57
- id: 61,
58
- name: "Home Depot TAB",
59
- country: "México",
60
- id_region: 1,
61
- active: 1
62
- }],
63
- percentage: 0,
39
+ id_article: 35319,
40
+ id_category: "2146",
41
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
42
+ upc: "120873",
43
+ timestamp: "2022-06-14T15:31:50.000Z",
44
+ status: "NULL",
45
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
46
+ asignations: [],
47
+ version: 2,
48
+ version_status: "AA",
64
49
  retailersAvailable: [{
65
- id: 61,
66
- name: "Home Depot TAB",
50
+ id: 58,
51
+ name: "The Home Depot Golden",
67
52
  country: "México",
68
53
  id_region: 1,
69
54
  active: 1
70
55
  }],
71
- upc: "339",
72
- name: "SOPORTE PLANCHA-BURRO EN PUERTA",
73
- categoryName: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
74
- id_category: "2520",
75
- id_article: 1,
76
- services: [{
77
- id_article: 1,
78
- service: "datasheet",
79
- quantity: 1,
80
- price: 0,
81
- id_user: 59,
82
- datasheet_common: null,
83
- discount: null
84
- }]
56
+ missing: {
57
+ datasheet: 33,
58
+ description: 0,
59
+ image: 23
60
+ }
85
61
  },
86
62
  productToEdit: {
87
- ArticleId: 33249,
88
- idCategory: "684",
89
- product: {
90
- orderId: 7,
91
- id_category: "684",
92
- status: "RECEPTION",
93
- datasheet_status: null,
94
- prio: "none",
95
- version: 4,
96
- description_status: null,
97
- images_status: null,
98
- brand: null,
99
- missing: {
100
- datasheet: 33,
101
- descriptions: 14,
102
- images: 3
103
- },
104
- article: {
105
- category: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
106
- company_name: "COMPANY DEV",
107
- id_category: "684",
108
- id_article: 33249,
109
- name: "Crema dental ",
110
- timestamp: "2022-06-14T23:24:08.000Z",
111
- upc: "232435"
112
- },
113
- retailers: [{
114
- id: 4,
115
- name: "Walmart Super y Superama"
116
- }, {
117
- id: 9,
118
- name: "Amazon"
119
- }, {
120
- id: 1013,
121
- name: "Cencosud Colombia"
122
- }, {
123
- id: 2005,
124
- name: "ClubCo"
125
- }],
126
- services: {
127
- datasheets: 1,
128
- descriptions: 1,
129
- images: 1
130
- },
63
+ idCategory: "2146",
64
+ ArticleId: 35319,
65
+ product: [{
66
+ id_article: 35319,
67
+ id_category: "2146",
68
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
69
+ upc: "120873",
70
+ timestamp: "2022-06-14T15:31:50.000Z",
71
+ status: "NULL",
72
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
73
+ asignations: [],
74
+ version: 2,
75
+ version_status: "AA",
131
76
  retailersAvailable: [{
132
- id: 4,
133
- name: "Walmart Super y Superama"
134
- }, {
135
- id: 9,
136
- name: "Amazon"
137
- }, {
138
- id: 1013,
139
- name: "Cencosud Colombia"
140
- }, {
141
- id: 2005,
142
- name: "ClubCo"
77
+ id: 58,
78
+ name: "The Home Depot Golden",
79
+ country: "México",
80
+ id_region: 1,
81
+ active: 1
143
82
  }],
144
- id_article: 33249,
145
- categoryName: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
146
- version_status: "RECEPTION"
147
- }
83
+ missing: {
84
+ datasheet: 33,
85
+ description: 0,
86
+ image: 23
87
+ }
88
+ }]
148
89
  },
149
90
  location: {
150
91
  product: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.94",
3
+ "version": "21.0.96",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -60,7 +60,7 @@ export const InputFormatter = ({
60
60
  value = valueFormater(value);
61
61
 
62
62
  let idInput = inputId;
63
- let dataSave = updatedDescriptions.slice();
63
+ let dataSave = updatedDescriptions?.slice();
64
64
  if (dataSave.length > 0) {
65
65
  if (dataSave.filter((e) => e.attributeId === idInput).length > 0) {
66
66
  dataSave.forEach((e) => {
@@ -21,134 +21,62 @@ ProviderProductEditionDefault.args = {
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- version: 1,
25
- brand: null,
26
- missing: {
27
- datasheet: null,
28
- descriptions: null,
29
- images: null,
30
- },
31
- article: {
32
- category:
33
- "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
34
- company_name: "BROOKLITE MEXICO S DE RL DE CV",
35
- company_id: 409,
36
- id_category: "2520",
37
- id_article: 1,
38
- name: "SOPORTE PLANCHA-BURRO EN PUERTA",
39
- upc: "339",
40
- },
41
- asignations: [62],
42
- retailers: [
43
- {
44
- id: 61,
45
- name: "Home Depot TAB",
46
- country: "México",
47
- id_region: 1,
48
- active: 1,
49
- },
50
- ],
51
- percentage: 0,
24
+ id_article: 35319,
25
+ id_category: "2146",
26
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
27
+ upc: "120873",
28
+ timestamp: "2022-06-14T15:31:50.000Z",
29
+ status: "NULL",
30
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
31
+ asignations: [],
32
+ version: 2,
33
+ version_status: "AA",
52
34
  retailersAvailable: [
53
35
  {
54
- id: 61,
55
- name: "Home Depot TAB",
36
+ id: 58,
37
+ name: "The Home Depot Golden",
56
38
  country: "México",
57
39
  id_region: 1,
58
40
  active: 1,
59
41
  },
60
42
  ],
61
- upc: "339",
62
- name: "SOPORTE PLANCHA-BURRO EN PUERTA",
63
- categoryName:
64
- "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
65
- id_category: "2520",
66
- id_article: 1,
67
- services: [
68
- {
69
- id_article: 1,
70
- service: "datasheet",
71
- quantity: 1,
72
- price: 0,
73
- id_user: 59,
74
- datasheet_common: null,
75
- discount: null,
76
- },
77
- ],
43
+ missing: {
44
+ datasheet: 33,
45
+ description: 0,
46
+ image: 23,
47
+ },
78
48
  },
79
49
  productToEdit: {
80
- ArticleId: 33249,
81
- idCategory: "684",
82
- product: {
83
- orderId: 7,
84
- id_category: "684",
85
- status: "RECEPTION",
86
- datasheet_status: null,
87
- prio: "none",
88
- version: 4,
89
- description_status: null,
90
- images_status: null,
91
- brand: null,
92
- missing: {
93
- datasheet: 33,
94
- descriptions: 14,
95
- images: 3,
96
- },
97
- article: {
98
- category: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
99
- company_name: "COMPANY DEV",
100
- id_category: "684",
101
- id_article: 33249,
102
- name: "Crema dental ",
103
- timestamp: "2022-06-14T23:24:08.000Z",
104
- upc: "232435",
105
- },
106
- retailers: [
107
- {
108
- id: 4,
109
- name: "Walmart Super y Superama",
110
- },
111
- {
112
- id: 9,
113
- name: "Amazon",
114
- },
115
- {
116
- id: 1013,
117
- name: "Cencosud Colombia",
118
- },
119
- {
120
- id: 2005,
121
- name: "ClubCo",
50
+ idCategory: "2146",
51
+ ArticleId: 35319,
52
+ product: [
53
+ {
54
+ id_article: 35319,
55
+ id_category: "2146",
56
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
57
+ upc: "120873",
58
+ timestamp: "2022-06-14T15:31:50.000Z",
59
+ status: "NULL",
60
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
61
+ asignations: [],
62
+ version: 2,
63
+ version_status: "AA",
64
+ retailersAvailable: [
65
+ {
66
+ id: 58,
67
+ name: "The Home Depot Golden",
68
+ country: "México",
69
+ id_region: 1,
70
+ active: 1,
71
+ },
72
+ ],
73
+ missing: {
74
+ datasheet: 33,
75
+ description: 0,
76
+ image: 23,
122
77
  },
123
- ],
124
- services: {
125
- datasheets: 1,
126
- descriptions: 1,
127
- images: 1,
128
78
  },
129
- retailersAvailable: [
130
- {
131
- id: 4,
132
- name: "Walmart Super y Superama",
133
- },
134
- {
135
- id: 9,
136
- name: "Amazon",
137
- },
138
- {
139
- id: 1013,
140
- name: "Cencosud Colombia",
141
- },
142
- {
143
- id: 2005,
144
- name: "ClubCo",
145
- },
146
- ],
147
- id_article: 33249,
148
- categoryName:
149
- "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
150
- version_status: "RECEPTION",
151
- },
79
+ ],
152
80
  },
153
81
  location: {
154
82
  product: { articleId: 109485, versionId: 3 },