web-mojo 2.2.14 → 2.2.16

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 (64) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.cjs.js.map +1 -1
  3. package/dist/admin.es.js +27 -19
  4. package/dist/admin.es.js.map +1 -1
  5. package/dist/auth.cjs.js +1 -1
  6. package/dist/auth.es.js +1 -1
  7. package/dist/charts.cjs.js +1 -1
  8. package/dist/charts.es.js +3 -3
  9. package/dist/chunks/ChatView-BqViL7e-.js +2 -0
  10. package/dist/chunks/ChatView-BqViL7e-.js.map +1 -0
  11. package/dist/chunks/{ChatView-eFzjsHBL.js → ChatView-DMC-gH-t.js} +51 -9
  12. package/dist/chunks/ChatView-DMC-gH-t.js.map +1 -0
  13. package/dist/chunks/{Collection-BlP54kxB.js → Collection-BQWznmwY.js} +2 -2
  14. package/dist/chunks/{Collection-BlP54kxB.js.map → Collection-BQWznmwY.js.map} +1 -1
  15. package/dist/chunks/{Collection-CTkDG1NZ.js → Collection-sSP1JF8d.js} +26 -2
  16. package/dist/chunks/{Collection-CTkDG1NZ.js.map → Collection-sSP1JF8d.js.map} +1 -1
  17. package/dist/chunks/{ContextMenu-Capwv7d-.js → ContextMenu-C9qnhdFg.js} +2 -2
  18. package/dist/chunks/{ContextMenu-Capwv7d-.js.map → ContextMenu-C9qnhdFg.js.map} +1 -1
  19. package/dist/chunks/{ContextMenu-BH5SaDXX.js → ContextMenu-NNHmt1iq.js} +2 -2
  20. package/dist/chunks/{ContextMenu-BH5SaDXX.js.map → ContextMenu-NNHmt1iq.js.map} +1 -1
  21. package/dist/chunks/{Dialog-RzLLLfJD.js → Dialog-DgYEebtR.js} +3 -3
  22. package/dist/chunks/{Dialog-RzLLLfJD.js.map → Dialog-DgYEebtR.js.map} +1 -1
  23. package/dist/chunks/{Dialog--hl_Uh6X.js → Dialog-VyLukswR.js} +2 -2
  24. package/dist/chunks/{Dialog--hl_Uh6X.js.map → Dialog-VyLukswR.js.map} +1 -1
  25. package/dist/chunks/{FormView-C1emfj3B.js → FormView-DCI29KlM.js} +3 -3
  26. package/dist/chunks/FormView-DCI29KlM.js.map +1 -0
  27. package/dist/chunks/{FormView--WuITh01.js → FormView-GO8yahxE.js} +39 -5
  28. package/dist/chunks/FormView-GO8yahxE.js.map +1 -0
  29. package/dist/chunks/{ListView-CNkYumcc.js → ListView-0fx1T87y.js} +2 -2
  30. package/dist/chunks/{ListView-CNkYumcc.js.map → ListView-0fx1T87y.js.map} +1 -1
  31. package/dist/chunks/{ListView-O9AO02Rf.js → ListView-DHQyUB3V.js} +2 -2
  32. package/dist/chunks/{ListView-O9AO02Rf.js.map → ListView-DHQyUB3V.js.map} +1 -1
  33. package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js → MetricsMiniChartWidget-JLmDm3sm.js} +2 -2
  34. package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js.map → MetricsMiniChartWidget-JLmDm3sm.js.map} +1 -1
  35. package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js → MetricsMiniChartWidget-XTU45k_e.js} +2 -2
  36. package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js.map → MetricsMiniChartWidget-XTU45k_e.js.map} +1 -1
  37. package/dist/chunks/{PDFViewer-CHX2NLkG.js → PDFViewer-DMpN-d6N.js} +2 -2
  38. package/dist/chunks/{PDFViewer-CHX2NLkG.js.map → PDFViewer-DMpN-d6N.js.map} +1 -1
  39. package/dist/chunks/{PDFViewer-BxFcG82d.js → PDFViewer-DbPamhVj.js} +2 -2
  40. package/dist/chunks/{PDFViewer-BxFcG82d.js.map → PDFViewer-DbPamhVj.js.map} +1 -1
  41. package/dist/chunks/{TokenManager-CBXqj6Iw.js → TokenManager-A0zSdQ6i.js} +4 -4
  42. package/dist/chunks/{TokenManager-CBXqj6Iw.js.map → TokenManager-A0zSdQ6i.js.map} +1 -1
  43. package/dist/chunks/{TokenManager-CCfcK4aA.js → TokenManager-DH4-kElJ.js} +2 -2
  44. package/dist/chunks/{TokenManager-CCfcK4aA.js.map → TokenManager-DH4-kElJ.js.map} +1 -1
  45. package/dist/chunks/{version-DnlcM3tJ.js → version-BpfLBsbA.js} +2 -2
  46. package/dist/chunks/{version-DnlcM3tJ.js.map → version-BpfLBsbA.js.map} +1 -1
  47. package/dist/chunks/{version-DCTYSNWj.js → version-iQsUQBiz.js} +4 -4
  48. package/dist/chunks/{version-DCTYSNWj.js.map → version-iQsUQBiz.js.map} +1 -1
  49. package/dist/docit.cjs.js +1 -1
  50. package/dist/docit.es.js +5 -5
  51. package/dist/index.cjs.js +1 -1
  52. package/dist/index.es.js +11 -11
  53. package/dist/lightbox.cjs.js +1 -1
  54. package/dist/lightbox.es.js +4 -4
  55. package/dist/map.cjs.js +1 -1
  56. package/dist/map.es.js +1 -1
  57. package/dist/timeline.cjs.js +1 -1
  58. package/dist/timeline.es.js +2 -2
  59. package/package.json +1 -1
  60. package/dist/chunks/ChatView-DGulpthL.js +0 -2
  61. package/dist/chunks/ChatView-DGulpthL.js.map +0 -1
  62. package/dist/chunks/ChatView-eFzjsHBL.js.map +0 -1
  63. package/dist/chunks/FormView--WuITh01.js.map +0 -1
  64. package/dist/chunks/FormView-C1emfj3B.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { M as Model, C as Collection } from "./Collection-CTkDG1NZ.js";
1
+ import { M as Model, C as Collection } from "./Collection-sSP1JF8d.js";
2
2
  import { r as rest, V as View, d as dataFormatter, a as Mustache } from "./Rest-0oRgqNjX.js";
3
- import { T as ToastService, G as GroupList, c as UserList, P as Page } from "./ContextMenu-Capwv7d-.js";
4
- import { D as Dialog } from "./Dialog-RzLLLfJD.js";
5
- import { L as ListViewItem, a as ListView } from "./ListView-CNkYumcc.js";
6
- import { F as FormView, a as applyFileDropMixin } from "./FormView--WuITh01.js";
3
+ import { T as ToastService, G as GroupList, c as UserList, P as Page } from "./ContextMenu-C9qnhdFg.js";
4
+ import { D as Dialog } from "./Dialog-DgYEebtR.js";
5
+ import { L as ListViewItem, a as ListView } from "./ListView-0fx1T87y.js";
6
+ import { F as FormView, a as applyFileDropMixin } from "./FormView-GO8yahxE.js";
7
7
  class S3Bucket extends Model {
8
8
  constructor(data = {}) {
9
9
  super(data, {
@@ -3826,6 +3826,20 @@ function formatFilterDisplay(paramKey, value, label) {
3826
3826
  }
3827
3827
  const { field, lookup } = parseFilterKey(paramKey);
3828
3828
  const lookupDef = LOOKUPS[lookup];
3829
+ if (value && typeof value === "object" && !Array.isArray(value)) {
3830
+ const hasStart = value.start !== void 0 && value.start !== null && value.start !== "";
3831
+ const hasEnd = value.end !== void 0 && value.end !== null && value.end !== "";
3832
+ if (hasStart || hasEnd) {
3833
+ if (hasStart && hasEnd) {
3834
+ return `${label} between '${value.start}' and '${value.end}'`;
3835
+ }
3836
+ if (hasStart) {
3837
+ return `${label} from '${value.start}'`;
3838
+ }
3839
+ return `${label} until '${value.end}'`;
3840
+ }
3841
+ return `${label} is '${JSON.stringify(value)}'`;
3842
+ }
3829
3843
  const valueStr = Array.isArray(value) ? value.join(",") : String(value);
3830
3844
  if (!lookup || lookup === "exact") {
3831
3845
  return `${label} is '${valueStr}'`;
@@ -5611,8 +5625,29 @@ class TableView extends ListView {
5611
5625
  field.separator = field.separator || " to ";
5612
5626
  field.label = field.label || "Date Range";
5613
5627
  if (currentValue && typeof currentValue === "object") {
5614
- field.startDate = currentValue.start || "";
5615
- 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 || "");
5616
5651
  }
5617
5652
  } else if (filterConfig.type === "multiselect") {
5618
5653
  let valueArray = [];
@@ -5686,10 +5721,17 @@ class TableView extends ListView {
5686
5721
  console.warn("No filter config found for key:", filterKey, "or field:", field);
5687
5722
  return;
5688
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
+ }
5689
5731
  const result = await Dialog.showForm({
5690
5732
  title: `Edit ${this.getFilterLabel(field)} Filter`,
5691
5733
  size: "md",
5692
- data: { filter_value: currentValue },
5734
+ data: formData,
5693
5735
  fields: [this.buildFilterDialogField(filterConfig, currentValue, field)]
5694
5736
  });
5695
5737
  if (result) {
@@ -7483,4 +7525,4 @@ export {
7483
7525
  File$1 as y,
7484
7526
  FileList as z
7485
7527
  };
7486
- //# sourceMappingURL=ChatView-eFzjsHBL.js.map
7528
+ //# sourceMappingURL=ChatView-DMC-gH-t.js.map