labellife-design-tool 2.4.0 → 2.4.2

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.
@@ -4769,18 +4769,30 @@ var MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July
4769
4769
  var DATE_FORMATS = [{
4770
4770
  key: 'MM-DD-YYYY',
4771
4771
  label: 'MM-DD-YYYY'
4772
+ }, {
4773
+ key: 'DD-MM-YYYY',
4774
+ label: 'DD-MM-YYYY'
4772
4775
  }, {
4773
4776
  key: 'MMMM-DD-YYYY',
4774
4777
  label: 'Month Name-DD-YYYY'
4778
+ }, {
4779
+ key: 'DD-MMMM-YYYY',
4780
+ label: 'DD-Month Name-YYYY'
4775
4781
  }, {
4776
4782
  key: 'MMMM-DD',
4777
4783
  label: 'Month Name-DD'
4784
+ }, {
4785
+ key: 'DD-MMMM',
4786
+ label: 'DD-Month Name'
4778
4787
  }, {
4779
4788
  key: 'YYYY',
4780
4789
  label: 'YYYY'
4781
4790
  }, {
4782
4791
  key: 'MM-DD',
4783
4792
  label: 'MM-DD'
4793
+ }, {
4794
+ key: 'DD-MM',
4795
+ label: 'DD-MM'
4784
4796
  }];
4785
4797
  function formatDate(date, format) {
4786
4798
  var mm = String(date.getMonth() + 1).padStart(2, '0');
@@ -4790,14 +4802,22 @@ function formatDate(date, format) {
4790
4802
  switch (format) {
4791
4803
  case 'MM-DD-YYYY':
4792
4804
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
4805
+ case 'DD-MM-YYYY':
4806
+ return "".concat(dd, "-").concat(mm, "-").concat(yyyy);
4793
4807
  case 'MMMM-DD-YYYY':
4794
4808
  return "".concat(monthName, "-").concat(dd, "-").concat(yyyy);
4809
+ case 'DD-MMMM-YYYY':
4810
+ return "".concat(dd, "-").concat(monthName, "-").concat(yyyy);
4795
4811
  case 'MMMM-DD':
4796
4812
  return "".concat(monthName, "-").concat(dd);
4813
+ case 'DD-MMMM':
4814
+ return "".concat(dd, "-").concat(monthName);
4797
4815
  case 'YYYY':
4798
4816
  return yyyy;
4799
4817
  case 'MM-DD':
4800
4818
  return "".concat(mm, "-").concat(dd);
4819
+ case 'DD-MM':
4820
+ return "".concat(dd, "-").concat(mm);
4801
4821
  default:
4802
4822
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
4803
4823
  }