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