@iankibetsh/shframework 1.7.4 → 1.7.5

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/library.js CHANGED
@@ -5666,14 +5666,14 @@ const dates = vue.ref([
5666
5666
  const setDate = (date, label) => {
5667
5667
  selectedDate.value = date;
5668
5668
  rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
5669
- const from = date[0].format('L');
5670
- const to = date[1].format('L');
5669
+ const from = date[0];
5670
+ const to = date[1];
5671
5671
  const period = label.toString().toLowerCase().replaceAll(' ','_');
5672
5672
  emit('rangeSelected', {
5673
5673
  from: from,
5674
5674
  to: to,
5675
5675
  period: period,
5676
- query: `from=${from}&to=${to}&period=${period}`
5676
+ query: `from=${from.format('L')}&to=${to.format('L')}&period=${period}`
5677
5677
  });
5678
5678
  };
5679
5679
  vue.onMounted(() => {
package/dist/library.mjs CHANGED
@@ -5654,14 +5654,14 @@ const dates = ref([
5654
5654
  const setDate = (date, label) => {
5655
5655
  selectedDate.value = date;
5656
5656
  rangeLabel.value = '<strong>' + label + '</strong><small>(' + date[0].format('MMMM D, YYYY') + ' - ' + date[1].format('MMMM D, YYYY') + ')</small>';
5657
- const from = date[0].format('L');
5658
- const to = date[1].format('L');
5657
+ const from = date[0];
5658
+ const to = date[1];
5659
5659
  const period = label.toString().toLowerCase().replaceAll(' ','_');
5660
5660
  emit('rangeSelected', {
5661
5661
  from: from,
5662
5662
  to: to,
5663
5663
  period: period,
5664
- query: `from=${from}&to=${to}&period=${period}`
5664
+ query: `from=${from.format('L')}&to=${to.format('L')}&period=${period}`
5665
5665
  });
5666
5666
  };
5667
5667
  onMounted(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",