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.
- package/dist/admin.cjs.js +1 -1
- package/dist/admin.cjs.js.map +1 -1
- package/dist/admin.es.js +27 -19
- package/dist/admin.es.js.map +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +3 -3
- package/dist/chunks/ChatView-BqViL7e-.js +2 -0
- package/dist/chunks/ChatView-BqViL7e-.js.map +1 -0
- package/dist/chunks/{ChatView-eFzjsHBL.js → ChatView-DMC-gH-t.js} +51 -9
- package/dist/chunks/ChatView-DMC-gH-t.js.map +1 -0
- package/dist/chunks/{Collection-BlP54kxB.js → Collection-BQWznmwY.js} +2 -2
- package/dist/chunks/{Collection-BlP54kxB.js.map → Collection-BQWznmwY.js.map} +1 -1
- package/dist/chunks/{Collection-CTkDG1NZ.js → Collection-sSP1JF8d.js} +26 -2
- package/dist/chunks/{Collection-CTkDG1NZ.js.map → Collection-sSP1JF8d.js.map} +1 -1
- package/dist/chunks/{ContextMenu-Capwv7d-.js → ContextMenu-C9qnhdFg.js} +2 -2
- package/dist/chunks/{ContextMenu-Capwv7d-.js.map → ContextMenu-C9qnhdFg.js.map} +1 -1
- package/dist/chunks/{ContextMenu-BH5SaDXX.js → ContextMenu-NNHmt1iq.js} +2 -2
- package/dist/chunks/{ContextMenu-BH5SaDXX.js.map → ContextMenu-NNHmt1iq.js.map} +1 -1
- package/dist/chunks/{Dialog-RzLLLfJD.js → Dialog-DgYEebtR.js} +3 -3
- package/dist/chunks/{Dialog-RzLLLfJD.js.map → Dialog-DgYEebtR.js.map} +1 -1
- package/dist/chunks/{Dialog--hl_Uh6X.js → Dialog-VyLukswR.js} +2 -2
- package/dist/chunks/{Dialog--hl_Uh6X.js.map → Dialog-VyLukswR.js.map} +1 -1
- package/dist/chunks/{FormView-C1emfj3B.js → FormView-DCI29KlM.js} +3 -3
- package/dist/chunks/FormView-DCI29KlM.js.map +1 -0
- package/dist/chunks/{FormView--WuITh01.js → FormView-GO8yahxE.js} +39 -5
- package/dist/chunks/FormView-GO8yahxE.js.map +1 -0
- package/dist/chunks/{ListView-CNkYumcc.js → ListView-0fx1T87y.js} +2 -2
- package/dist/chunks/{ListView-CNkYumcc.js.map → ListView-0fx1T87y.js.map} +1 -1
- package/dist/chunks/{ListView-O9AO02Rf.js → ListView-DHQyUB3V.js} +2 -2
- package/dist/chunks/{ListView-O9AO02Rf.js.map → ListView-DHQyUB3V.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js → MetricsMiniChartWidget-JLmDm3sm.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-DoxqoF1X.js.map → MetricsMiniChartWidget-JLmDm3sm.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js → MetricsMiniChartWidget-XTU45k_e.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-DyVs4Wt0.js.map → MetricsMiniChartWidget-XTU45k_e.js.map} +1 -1
- package/dist/chunks/{PDFViewer-CHX2NLkG.js → PDFViewer-DMpN-d6N.js} +2 -2
- package/dist/chunks/{PDFViewer-CHX2NLkG.js.map → PDFViewer-DMpN-d6N.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BxFcG82d.js → PDFViewer-DbPamhVj.js} +2 -2
- package/dist/chunks/{PDFViewer-BxFcG82d.js.map → PDFViewer-DbPamhVj.js.map} +1 -1
- package/dist/chunks/{TokenManager-CBXqj6Iw.js → TokenManager-A0zSdQ6i.js} +4 -4
- package/dist/chunks/{TokenManager-CBXqj6Iw.js.map → TokenManager-A0zSdQ6i.js.map} +1 -1
- package/dist/chunks/{TokenManager-CCfcK4aA.js → TokenManager-DH4-kElJ.js} +2 -2
- package/dist/chunks/{TokenManager-CCfcK4aA.js.map → TokenManager-DH4-kElJ.js.map} +1 -1
- package/dist/chunks/{version-DnlcM3tJ.js → version-BpfLBsbA.js} +2 -2
- package/dist/chunks/{version-DnlcM3tJ.js.map → version-BpfLBsbA.js.map} +1 -1
- package/dist/chunks/{version-DCTYSNWj.js → version-iQsUQBiz.js} +4 -4
- package/dist/chunks/{version-DCTYSNWj.js.map → version-iQsUQBiz.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +11 -11
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/dist/map.cjs.js +1 -1
- package/dist/map.es.js +1 -1
- package/dist/timeline.cjs.js +1 -1
- package/dist/timeline.es.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/ChatView-DGulpthL.js +0 -2
- package/dist/chunks/ChatView-DGulpthL.js.map +0 -1
- package/dist/chunks/ChatView-eFzjsHBL.js.map +0 -1
- package/dist/chunks/FormView--WuITh01.js.map +0 -1
- package/dist/chunks/FormView-C1emfj3B.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as Model, C as Collection } from "./Collection-
|
|
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-
|
|
4
|
-
import { D as Dialog } from "./Dialog-
|
|
5
|
-
import { L as ListViewItem, a as ListView } from "./ListView-
|
|
6
|
-
import { F as FormView, a as applyFileDropMixin } from "./FormView
|
|
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
|
-
|
|
5615
|
-
|
|
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:
|
|
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-
|
|
7528
|
+
//# sourceMappingURL=ChatView-DMC-gH-t.js.map
|