labellife-design-tool 2.4.0 → 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 +20 -0
- 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/index.js +20 -0
- 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
|
}
|