labellife-design-tool 2.3.9 → 2.4.1

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/cjs/index.js CHANGED
@@ -7274,18 +7274,30 @@ var MONTH_NAMES$1 = ['January', 'February', 'March', 'April', 'May', 'June', 'Ju
7274
7274
  var DATE_FORMATS = [{
7275
7275
  key: 'MM-DD-YYYY',
7276
7276
  label: 'MM-DD-YYYY'
7277
+ }, {
7278
+ key: 'DD-MM-YYYY',
7279
+ label: 'DD-MM-YYYY'
7277
7280
  }, {
7278
7281
  key: 'MMMM-DD-YYYY',
7279
7282
  label: 'Month Name-DD-YYYY'
7283
+ }, {
7284
+ key: 'DD-MMMM-YYYY',
7285
+ label: 'DD-Month Name-YYYY'
7280
7286
  }, {
7281
7287
  key: 'MMMM-DD',
7282
7288
  label: 'Month Name-DD'
7289
+ }, {
7290
+ key: 'DD-MMMM',
7291
+ label: 'DD-Month Name'
7283
7292
  }, {
7284
7293
  key: 'YYYY',
7285
7294
  label: 'YYYY'
7286
7295
  }, {
7287
7296
  key: 'MM-DD',
7288
7297
  label: 'MM-DD'
7298
+ }, {
7299
+ key: 'DD-MM',
7300
+ label: 'DD-MM'
7289
7301
  }];
7290
7302
  function formatDate$1(date, format) {
7291
7303
  var mm = String(date.getMonth() + 1).padStart(2, '0');
@@ -7295,14 +7307,22 @@ function formatDate$1(date, format) {
7295
7307
  switch (format) {
7296
7308
  case 'MM-DD-YYYY':
7297
7309
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
7310
+ case 'DD-MM-YYYY':
7311
+ return "".concat(dd, "-").concat(mm, "-").concat(yyyy);
7298
7312
  case 'MMMM-DD-YYYY':
7299
7313
  return "".concat(monthName, "-").concat(dd, "-").concat(yyyy);
7314
+ case 'DD-MMMM-YYYY':
7315
+ return "".concat(dd, "-").concat(monthName, "-").concat(yyyy);
7300
7316
  case 'MMMM-DD':
7301
7317
  return "".concat(monthName, "-").concat(dd);
7318
+ case 'DD-MMMM':
7319
+ return "".concat(dd, "-").concat(monthName);
7302
7320
  case 'YYYY':
7303
7321
  return yyyy;
7304
7322
  case 'MM-DD':
7305
7323
  return "".concat(mm, "-").concat(dd);
7324
+ case 'DD-MM':
7325
+ return "".concat(dd, "-").concat(mm);
7306
7326
  default:
7307
7327
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
7308
7328
  }
@@ -10557,15 +10577,6 @@ var CropEditor = mobxReactLite.observer(function (_ref) {
10557
10577
  y: node.y()
10558
10578
  });
10559
10579
  };
10560
- var handleRectDragEnd = function handleRectDragEnd(e) {
10561
- var node = e.target;
10562
- element.setCropRectAndClamp({
10563
- x: node.x(),
10564
- y: node.y(),
10565
- width: rect.width,
10566
- height: rect.height
10567
- });
10568
- };
10569
10580
 
10570
10581
  // Shared by both the live (onTransform) and final (onTransformEnd) handlers: reads the
10571
10582
  // Konva node's current scale, bakes it into width/height, resets the node's scale back to
@@ -10651,8 +10662,7 @@ var CropEditor = mobxReactLite.observer(function (_ref) {
10651
10662
  height: rect.height,
10652
10663
  stroke: "#ffffff",
10653
10664
  strokeWidth: 1.5,
10654
- draggable: true,
10655
- onDragEnd: handleRectDragEnd,
10665
+ listening: false,
10656
10666
  onTransform: handleRectTransform,
10657
10667
  onTransformEnd: handleRectTransformEnd
10658
10668
  }), /*#__PURE__*/jsxRuntime.jsx(reactKonva.Transformer, {