web-mojo 2.2.15 → 2.2.17

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.
Files changed (43) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.es.js +7 -7
  3. package/dist/auth.cjs.js +1 -1
  4. package/dist/auth.es.js +1 -1
  5. package/dist/charts.cjs.js +1 -1
  6. package/dist/charts.es.js +3 -3
  7. package/dist/chunks/{ChatView-BJK6SF8T.js → ChatView-BkNdhS7Y.js} +2 -2
  8. package/dist/chunks/{ChatView-BJK6SF8T.js.map → ChatView-BkNdhS7Y.js.map} +1 -1
  9. package/dist/chunks/{ChatView-BPVE1u2i.js → ChatView-E17fCJ1j.js} +34 -6
  10. package/dist/chunks/{ChatView-BPVE1u2i.js.map → ChatView-E17fCJ1j.js.map} +1 -1
  11. package/dist/chunks/{Dialog-RzLLLfJD.js → Dialog-BGsJJdvU.js} +3 -3
  12. package/dist/chunks/{Dialog-RzLLLfJD.js.map → Dialog-BGsJJdvU.js.map} +1 -1
  13. package/dist/chunks/{Dialog--hl_Uh6X.js → Dialog-Bib7iGr7.js} +2 -2
  14. package/dist/chunks/{Dialog--hl_Uh6X.js.map → Dialog-Bib7iGr7.js.map} +1 -1
  15. package/dist/chunks/{FormView-C1emfj3B.js → FormView-72VleKRt.js} +3 -3
  16. package/dist/chunks/FormView-72VleKRt.js.map +1 -0
  17. package/dist/chunks/{FormView--WuITh01.js → FormView-D_VTD2EY.js} +54 -11
  18. package/dist/chunks/FormView-D_VTD2EY.js.map +1 -0
  19. package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js → MetricsMiniChartWidget-CMplnXWP.js} +2 -2
  20. package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js.map → MetricsMiniChartWidget-CMplnXWP.js.map} +1 -1
  21. package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js → MetricsMiniChartWidget-DfW7iH5B.js} +2 -2
  22. package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js.map → MetricsMiniChartWidget-DfW7iH5B.js.map} +1 -1
  23. package/dist/chunks/{PDFViewer-BxFcG82d.js → PDFViewer-BYKfJGbN.js} +2 -2
  24. package/dist/chunks/{PDFViewer-BxFcG82d.js.map → PDFViewer-BYKfJGbN.js.map} +1 -1
  25. package/dist/chunks/{PDFViewer-CHX2NLkG.js → PDFViewer-C9hCxlyT.js} +2 -2
  26. package/dist/chunks/{PDFViewer-CHX2NLkG.js.map → PDFViewer-C9hCxlyT.js.map} +1 -1
  27. package/dist/chunks/{TokenManager-DFWJ-cuN.js → TokenManager-D1R8RZaL.js} +2 -2
  28. package/dist/chunks/{TokenManager-DFWJ-cuN.js.map → TokenManager-D1R8RZaL.js.map} +1 -1
  29. package/dist/chunks/{TokenManager-Bi5eDY8Y.js → TokenManager-DhnHDZlt.js} +2 -2
  30. package/dist/chunks/{TokenManager-Bi5eDY8Y.js.map → TokenManager-DhnHDZlt.js.map} +1 -1
  31. package/dist/chunks/{version-BzRzH4mJ.js → version-AvfnTsnK.js} +2 -2
  32. package/dist/chunks/{version-BzRzH4mJ.js.map → version-AvfnTsnK.js.map} +1 -1
  33. package/dist/chunks/{version-S1OYxk1c.js → version-BrSBoryP.js} +4 -4
  34. package/dist/chunks/{version-S1OYxk1c.js.map → version-BrSBoryP.js.map} +1 -1
  35. package/dist/docit.cjs.js +1 -1
  36. package/dist/docit.es.js +3 -3
  37. package/dist/index.cjs.js +1 -1
  38. package/dist/index.es.js +7 -7
  39. package/dist/lightbox.cjs.js +1 -1
  40. package/dist/lightbox.es.js +4 -4
  41. package/package.json +1 -1
  42. package/dist/chunks/FormView--WuITh01.js.map +0 -1
  43. package/dist/chunks/FormView-C1emfj3B.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { M as Model, C as Collection } from "./Collection-zmb3xHhH.js";
2
2
  import { r as rest, V as View, d as dataFormatter, a as Mustache } from "./Rest-0oRgqNjX.js";
3
3
  import { T as ToastService, G as GroupList, c as UserList, P as Page } from "./ContextMenu-DPjJuxpq.js";
4
- import { D as Dialog } from "./Dialog-RzLLLfJD.js";
4
+ import { D as Dialog } from "./Dialog-BGsJJdvU.js";
5
5
  import { L as ListViewItem, a as ListView } from "./ListView-BBZw7GUS.js";
6
- import { F as FormView, a as applyFileDropMixin } from "./FormView--WuITh01.js";
6
+ import { F as FormView, a as applyFileDropMixin } from "./FormView-D_VTD2EY.js";
7
7
  class S3Bucket extends Model {
8
8
  constructor(data = {}) {
9
9
  super(data, {
@@ -5625,8 +5625,29 @@ class TableView extends ListView {
5625
5625
  field.separator = field.separator || " to ";
5626
5626
  field.label = field.label || "Date Range";
5627
5627
  if (currentValue && typeof currentValue === "object") {
5628
- field.startDate = currentValue.start || "";
5629
- field.endDate = currentValue.end || "";
5628
+ const normalizeDateValue = (val) => {
5629
+ if (!val && val !== 0) return "";
5630
+ if (val instanceof Date && !isNaN(val)) {
5631
+ return val.toISOString().slice(0, 10);
5632
+ }
5633
+ const str = String(val).trim();
5634
+ if (!str) return "";
5635
+ if (/^-?\d+$/.test(str)) {
5636
+ const num = Number(str);
5637
+ const ms = str.length <= 10 ? num * 1e3 : num;
5638
+ const date2 = new Date(ms);
5639
+ if (!isNaN(date2)) {
5640
+ return date2.toISOString().slice(0, 10);
5641
+ }
5642
+ }
5643
+ const date = new Date(str);
5644
+ if (!isNaN(date)) {
5645
+ return date.toISOString().slice(0, 10);
5646
+ }
5647
+ return str;
5648
+ };
5649
+ field.startDate = normalizeDateValue(currentValue.start || currentValue.from || currentValue.begin || "");
5650
+ field.endDate = normalizeDateValue(currentValue.end || currentValue.to || currentValue.finish || "");
5630
5651
  }
5631
5652
  } else if (filterConfig.type === "multiselect") {
5632
5653
  let valueArray = [];
@@ -5700,10 +5721,17 @@ class TableView extends ListView {
5700
5721
  console.warn("No filter config found for key:", filterKey, "or field:", field);
5701
5722
  return;
5702
5723
  }
5724
+ const formData = { filter_value: currentValue };
5725
+ if (filterConfig.type === "daterange" && currentValue && typeof currentValue === "object") {
5726
+ const startName = filterConfig.startName || "dr_start";
5727
+ const endName = filterConfig.endName || "dr_end";
5728
+ formData[startName] = currentValue.start || "";
5729
+ formData[endName] = currentValue.end || "";
5730
+ }
5703
5731
  const result = await Dialog.showForm({
5704
5732
  title: `Edit ${this.getFilterLabel(field)} Filter`,
5705
5733
  size: "md",
5706
- data: { filter_value: currentValue },
5734
+ data: formData,
5707
5735
  fields: [this.buildFilterDialogField(filterConfig, currentValue, field)]
5708
5736
  });
5709
5737
  if (result) {
@@ -7497,4 +7525,4 @@ export {
7497
7525
  File$1 as y,
7498
7526
  FileList as z
7499
7527
  };
7500
- //# sourceMappingURL=ChatView-BPVE1u2i.js.map
7528
+ //# sourceMappingURL=ChatView-E17fCJ1j.js.map