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