@crystaldesign/product-handler 24.12.1 → 24.12.2-rc.0

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.
@@ -135,10 +135,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
135
135
  key: "initProduct",
136
136
  value: function initProduct(basket) {}
137
137
 
138
- /**
139
- * Saves the products in the current state
140
- * @param basket the basket data for which products get created/loaded
141
- * @param catalogData the catalog data for this basket
138
+ /**
139
+ * Saves the products in the current state
140
+ * @param basket the basket data for which products get created/loaded
141
+ * @param catalogData the catalog data for this basket
142
142
  */
143
143
  }, {
144
144
  key: "createAndSave",
@@ -189,12 +189,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
189
189
  }
190
190
  return createAndSave;
191
191
  }()
192
- /**
193
- * Saves the products in the current state
194
- * @param basket the basket data for which products get created/loaded
195
- * @param catalogData the catalog data for this basket
196
- * @param catalogServiceUrl the url for the catalog service
197
- * @param productData an optional list of products, if set no products get loaded from the server
192
+ /**
193
+ * Saves the products in the current state
194
+ * @param basket the basket data for which products get created/loaded
195
+ * @param catalogData the catalog data for this basket
196
+ * @param catalogServiceUrl the url for the catalog service
197
+ * @param productData an optional list of products, if set no products get loaded from the server
198
198
  */
199
199
  )
200
200
  }, {
@@ -765,14 +765,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
765
765
  return undefined;
766
766
  }
767
767
 
768
- /**
769
- * Saves the products in the current state
770
- * @param baseData the basedata of the base product
771
- * @param classificationData the classification data of the base product
772
- * @param variantData the list of varinat products
773
- * @param removedProducts the ids of products that get removed
774
- * @param removedMedia the list of media items that get removed
775
- * @param classificationFields the lists of classification fields used
768
+ /**
769
+ * Saves the products in the current state
770
+ * @param baseData the basedata of the base product
771
+ * @param classificationData the classification data of the base product
772
+ * @param variantData the list of varinat products
773
+ * @param removedProducts the ids of products that get removed
774
+ * @param removedMedia the list of media items that get removed
775
+ * @param classificationFields the lists of classification fields used
776
776
  */
777
777
  }, {
778
778
  key: "saveProductMedia",
@@ -1239,12 +1239,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1239
1239
  firstVariant.firstVariant = true;
1240
1240
  }
1241
1241
 
1242
- /**
1243
- * Calculates the inital state of one varinat data entry
1244
- *
1245
- * @param baseData the inital base data
1246
- * @param param1 one variant data entry
1247
- * @returns the inital state of one varinat data entry
1242
+ /**
1243
+ * Calculates the inital state of one varinat data entry
1244
+ *
1245
+ * @param baseData the inital base data
1246
+ * @param param1 one variant data entry
1247
+ * @returns the inital state of one varinat data entry
1248
1248
  */
1249
1249
  }, {
1250
1250
  key: "initVariant",
@@ -1386,13 +1386,13 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1386
1386
  };
1387
1387
  }
1388
1388
 
1389
- /**
1390
- * Check if a product is the same as the variantData
1391
- *
1392
- * @param product the product to check
1393
- * @param orderLines the current OrderLines
1394
- * @param varinatData the varinat data
1395
- * @param catalogCodex the catalog codex
1389
+ /**
1390
+ * Check if a product is the same as the variantData
1391
+ *
1392
+ * @param product the product to check
1393
+ * @param orderLines the current OrderLines
1394
+ * @param varinatData the varinat data
1395
+ * @param catalogCodex the catalog codex
1396
1396
  */
1397
1397
  }, {
1398
1398
  key: "initOpvMap",
@@ -1423,12 +1423,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1423
1423
  }, {
1424
1424
  key: "parseClassificationFields",
1425
1425
  value:
1426
- /**
1427
- * Convert all classfication fields to the internal format
1428
- *
1429
- * @param data the data to be parsed
1430
- * @param onlyDcFields if true the returned object will only include the fields original prefixed with dc_
1431
- * @returns the parsed data as product and the optMap for the class fields
1426
+ /**
1427
+ * Convert all classfication fields to the internal format
1428
+ *
1429
+ * @param data the data to be parsed
1430
+ * @param onlyDcFields if true the returned object will only include the fields original prefixed with dc_
1431
+ * @returns the parsed data as product and the optMap for the class fields
1432
1432
  */
1433
1433
  function parseClassificationFields(data, onlyDcFields) {
1434
1434
  var optMap = {};
@@ -2292,14 +2292,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2292
2292
  return true;
2293
2293
  }
2294
2294
 
2295
- /**
2296
- * Calculate if the computed value should be used or it the user has modified it
2297
- *
2298
- * @param previouseValue The value before the update
2299
- * @param updatedValue The value of the current updated
2300
- * @param computedValue The computed value to be used if it is not modified by the user
2301
- * @param modified Defines if the value was already previousely modified
2302
- * @returns The new value and if it was modified by the user
2295
+ /**
2296
+ * Calculate if the computed value should be used or it the user has modified it
2297
+ *
2298
+ * @param previouseValue The value before the update
2299
+ * @param updatedValue The value of the current updated
2300
+ * @param computedValue The computed value to be used if it is not modified by the user
2301
+ * @param modified Defines if the value was already previousely modified
2302
+ * @returns The new value and if it was modified by the user
2303
2303
  */
2304
2304
  }, {
2305
2305
  key: "calculateComputedValue",
@@ -2345,16 +2345,16 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2345
2345
  };
2346
2346
  }
2347
2347
 
2348
- /**
2349
- * Calculate the computed shortDescription based on the configuration
2350
- *
2351
- * @param previouseValue the value before the update
2352
- * @param data the updated productData and classificationData
2353
- * @param modified Defines if the value was already previousely modified
2354
- * @param configurationData The field configuration data
2355
- * @param classificationConfig The configuration of classification fields
2356
- *
2357
- * @returns The new value and if it was modified by the user
2348
+ /**
2349
+ * Calculate the computed shortDescription based on the configuration
2350
+ *
2351
+ * @param previouseValue the value before the update
2352
+ * @param data the updated productData and classificationData
2353
+ * @param modified Defines if the value was already previousely modified
2354
+ * @param configurationData The field configuration data
2355
+ * @param classificationConfig The configuration of classification fields
2356
+ *
2357
+ * @returns The new value and if it was modified by the user
2358
2358
  */
2359
2359
  }, {
2360
2360
  key: "calcShortDescription",
@@ -117,10 +117,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
117
117
  key: "initProduct",
118
118
  value: function initProduct(basket) {}
119
119
 
120
- /**
121
- * Saves the products in the current state
122
- * @param basket the basket data for which products get created/loaded
123
- * @param catalogData the catalog data for this basket
120
+ /**
121
+ * Saves the products in the current state
122
+ * @param basket the basket data for which products get created/loaded
123
+ * @param catalogData the catalog data for this basket
124
124
  */
125
125
  }, {
126
126
  key: "createAndSave",
@@ -171,12 +171,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
171
171
  }
172
172
  return createAndSave;
173
173
  }()
174
- /**
175
- * Saves the products in the current state
176
- * @param basket the basket data for which products get created/loaded
177
- * @param catalogData the catalog data for this basket
178
- * @param catalogServiceUrl the url for the catalog service
179
- * @param productData an optional list of products, if set no products get loaded from the server
174
+ /**
175
+ * Saves the products in the current state
176
+ * @param basket the basket data for which products get created/loaded
177
+ * @param catalogData the catalog data for this basket
178
+ * @param catalogServiceUrl the url for the catalog service
179
+ * @param productData an optional list of products, if set no products get loaded from the server
180
180
  */
181
181
  )
182
182
  }, {
@@ -747,14 +747,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
747
747
  return undefined;
748
748
  }
749
749
 
750
- /**
751
- * Saves the products in the current state
752
- * @param baseData the basedata of the base product
753
- * @param classificationData the classification data of the base product
754
- * @param variantData the list of varinat products
755
- * @param removedProducts the ids of products that get removed
756
- * @param removedMedia the list of media items that get removed
757
- * @param classificationFields the lists of classification fields used
750
+ /**
751
+ * Saves the products in the current state
752
+ * @param baseData the basedata of the base product
753
+ * @param classificationData the classification data of the base product
754
+ * @param variantData the list of varinat products
755
+ * @param removedProducts the ids of products that get removed
756
+ * @param removedMedia the list of media items that get removed
757
+ * @param classificationFields the lists of classification fields used
758
758
  */
759
759
  }, {
760
760
  key: "saveProductMedia",
@@ -1221,12 +1221,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1221
1221
  firstVariant.firstVariant = true;
1222
1222
  }
1223
1223
 
1224
- /**
1225
- * Calculates the inital state of one varinat data entry
1226
- *
1227
- * @param baseData the inital base data
1228
- * @param param1 one variant data entry
1229
- * @returns the inital state of one varinat data entry
1224
+ /**
1225
+ * Calculates the inital state of one varinat data entry
1226
+ *
1227
+ * @param baseData the inital base data
1228
+ * @param param1 one variant data entry
1229
+ * @returns the inital state of one varinat data entry
1230
1230
  */
1231
1231
  }, {
1232
1232
  key: "initVariant",
@@ -1368,13 +1368,13 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1368
1368
  };
1369
1369
  }
1370
1370
 
1371
- /**
1372
- * Check if a product is the same as the variantData
1373
- *
1374
- * @param product the product to check
1375
- * @param orderLines the current OrderLines
1376
- * @param varinatData the varinat data
1377
- * @param catalogCodex the catalog codex
1371
+ /**
1372
+ * Check if a product is the same as the variantData
1373
+ *
1374
+ * @param product the product to check
1375
+ * @param orderLines the current OrderLines
1376
+ * @param varinatData the varinat data
1377
+ * @param catalogCodex the catalog codex
1378
1378
  */
1379
1379
  }, {
1380
1380
  key: "initOpvMap",
@@ -1405,12 +1405,12 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1405
1405
  }, {
1406
1406
  key: "parseClassificationFields",
1407
1407
  value:
1408
- /**
1409
- * Convert all classfication fields to the internal format
1410
- *
1411
- * @param data the data to be parsed
1412
- * @param onlyDcFields if true the returned object will only include the fields original prefixed with dc_
1413
- * @returns the parsed data as product and the optMap for the class fields
1408
+ /**
1409
+ * Convert all classfication fields to the internal format
1410
+ *
1411
+ * @param data the data to be parsed
1412
+ * @param onlyDcFields if true the returned object will only include the fields original prefixed with dc_
1413
+ * @returns the parsed data as product and the optMap for the class fields
1414
1414
  */
1415
1415
  function parseClassificationFields(data, onlyDcFields) {
1416
1416
  var optMap = {};
@@ -2274,14 +2274,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2274
2274
  return true;
2275
2275
  }
2276
2276
 
2277
- /**
2278
- * Calculate if the computed value should be used or it the user has modified it
2279
- *
2280
- * @param previouseValue The value before the update
2281
- * @param updatedValue The value of the current updated
2282
- * @param computedValue The computed value to be used if it is not modified by the user
2283
- * @param modified Defines if the value was already previousely modified
2284
- * @returns The new value and if it was modified by the user
2277
+ /**
2278
+ * Calculate if the computed value should be used or it the user has modified it
2279
+ *
2280
+ * @param previouseValue The value before the update
2281
+ * @param updatedValue The value of the current updated
2282
+ * @param computedValue The computed value to be used if it is not modified by the user
2283
+ * @param modified Defines if the value was already previousely modified
2284
+ * @returns The new value and if it was modified by the user
2285
2285
  */
2286
2286
  }, {
2287
2287
  key: "calculateComputedValue",
@@ -2327,16 +2327,16 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2327
2327
  };
2328
2328
  }
2329
2329
 
2330
- /**
2331
- * Calculate the computed shortDescription based on the configuration
2332
- *
2333
- * @param previouseValue the value before the update
2334
- * @param data the updated productData and classificationData
2335
- * @param modified Defines if the value was already previousely modified
2336
- * @param configurationData The field configuration data
2337
- * @param classificationConfig The configuration of classification fields
2338
- *
2339
- * @returns The new value and if it was modified by the user
2330
+ /**
2331
+ * Calculate the computed shortDescription based on the configuration
2332
+ *
2333
+ * @param previouseValue the value before the update
2334
+ * @param data the updated productData and classificationData
2335
+ * @param modified Defines if the value was already previousely modified
2336
+ * @param configurationData The field configuration data
2337
+ * @param classificationConfig The configuration of classification fields
2338
+ *
2339
+ * @returns The new value and if it was modified by the user
2340
2340
  */
2341
2341
  }, {
2342
2342
  key: "calcShortDescription",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/product-handler",
3
- "version": "24.12.1",
3
+ "version": "24.12.2-rc.0",
4
4
  "peerDependencies": {
5
5
  "@crystaldesign/basket-model": "*",
6
6
  "@crystaldesign/diva-utils": "*"
@@ -12,5 +12,5 @@
12
12
  "dependencies": {
13
13
  "classnames": "^2.5.1"
14
14
  },
15
- "gitHead": "10505d5064511472829e3a6dbf82b1a961fe6e53"
15
+ "gitHead": "53d0fc1ae8be36407d1f9e404794894c9b714e15"
16
16
  }