web-mojo 2.1.443 → 2.1.458
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 +11 -19
- package/dist/admin.es.js.map +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +3 -3
- package/dist/auth.es.js.map +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +2 -2
- package/dist/chunks/{ContextMenu-Cao6A-Lu.js → ContextMenu-BjQymcpo.js} +2 -2
- package/dist/chunks/{ContextMenu-Cao6A-Lu.js.map → ContextMenu-BjQymcpo.js.map} +1 -1
- package/dist/chunks/{ContextMenu-TK4-wzDb.js → ContextMenu-C0sdb9u5.js} +2 -2
- package/dist/chunks/{ContextMenu-TK4-wzDb.js.map → ContextMenu-C0sdb9u5.js.map} +1 -1
- package/dist/chunks/{DataView-CHoPxbYT.js → DataView-Cl4kRP-W.js} +2 -2
- package/dist/chunks/{DataView-CHoPxbYT.js.map → DataView-Cl4kRP-W.js.map} +1 -1
- package/dist/chunks/{DataView-Qnk-TnHd.js → DataView-DDe4NgiH.js} +2 -2
- package/dist/chunks/{DataView-Qnk-TnHd.js.map → DataView-DDe4NgiH.js.map} +1 -1
- package/dist/chunks/{Dialog-B_ZJYlVS.js → Dialog-DAQdjRci.js} +2 -2
- package/dist/chunks/{Dialog-B_ZJYlVS.js.map → Dialog-DAQdjRci.js.map} +1 -1
- package/dist/chunks/{Dialog-DbZ2jB_m.js → Dialog-upGYwvdZ.js} +5 -5
- package/dist/chunks/{Dialog-DbZ2jB_m.js.map → Dialog-upGYwvdZ.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-DeGgRRbW.js → FilePreviewView-7-RBir4g.js} +2 -2
- package/dist/chunks/{FilePreviewView-DeGgRRbW.js.map → FilePreviewView-7-RBir4g.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-nuZku1yG.js → FilePreviewView-CehLQVJa.js} +25 -18
- package/dist/chunks/{FilePreviewView-nuZku1yG.js.map → FilePreviewView-CehLQVJa.js.map} +1 -1
- package/dist/chunks/{FormView-BZInlDfZ.js → FormView-B7pwdxqX.js} +3 -2
- package/dist/chunks/FormView-B7pwdxqX.js.map +1 -0
- package/dist/chunks/{FormView-BDKrUX1-.js → FormView-C9PgTIH2.js} +68 -14
- package/dist/chunks/FormView-C9PgTIH2.js.map +1 -0
- package/dist/chunks/{MetricsChart-BbaBczOZ.js → MetricsChart-TwtfTNEA.js} +2 -2
- package/dist/chunks/{MetricsChart-BbaBczOZ.js.map → MetricsChart-TwtfTNEA.js.map} +1 -1
- package/dist/chunks/{MetricsChart-Aqum5Znr.js → MetricsChart-x15UvXRk.js} +3 -3
- package/dist/chunks/{MetricsChart-Aqum5Znr.js.map → MetricsChart-x15UvXRk.js.map} +1 -1
- package/dist/chunks/{PDFViewer-CGj7cZut.js → PDFViewer---ebUwfT.js} +3 -3
- package/dist/chunks/{PDFViewer-CGj7cZut.js.map → PDFViewer---ebUwfT.js.map} +1 -1
- package/dist/chunks/{PDFViewer-Bq-NM6JH.js → PDFViewer-tK1fntDR.js} +2 -2
- package/dist/chunks/{PDFViewer-Bq-NM6JH.js.map → PDFViewer-tK1fntDR.js.map} +1 -1
- package/dist/chunks/{Page-BkkXMFuP.js → Page-BUXs6-fN.js} +2 -2
- package/dist/chunks/{Page-BkkXMFuP.js.map → Page-BUXs6-fN.js.map} +1 -1
- package/dist/chunks/{Page-QhPYRY-q.js → Page-q5Gme_r0.js} +2 -2
- package/dist/chunks/{Page-QhPYRY-q.js.map → Page-q5Gme_r0.js.map} +1 -1
- package/dist/chunks/{TopNav-DUwNnOuM.js → TopNav-BOMPjms6.js} +2 -2
- package/dist/chunks/{TopNav-DUwNnOuM.js.map → TopNav-BOMPjms6.js.map} +1 -1
- package/dist/chunks/{TopNav-D6c7gsox.js → TopNav-os-U9FQP.js} +2 -2
- package/dist/chunks/{TopNav-D6c7gsox.js.map → TopNav-os-U9FQP.js.map} +1 -1
- package/dist/chunks/{WebApp-BPWJVv80.js → WebApp-BONphh_h.js} +53 -24
- package/dist/chunks/WebApp-BONphh_h.js.map +1 -0
- package/dist/chunks/WebApp-DUxotRc-.js +2 -0
- package/dist/chunks/WebApp-DUxotRc-.js.map +1 -0
- 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/package.json +1 -1
- package/dist/chunks/FormView-BDKrUX1-.js.map +0 -1
- package/dist/chunks/FormView-BZInlDfZ.js.map +0 -1
- package/dist/chunks/WebApp-BPWJVv80.js.map +0 -1
- package/dist/chunks/WebApp-CYqazUo5.js +0 -2
- package/dist/chunks/WebApp-CYqazUo5.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Model, C as Collection, T as ToastService, G as GroupList, d as UserList } from "./ContextMenu-
|
|
2
|
-
import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-
|
|
3
|
-
import { P as Page } from "./Page-
|
|
4
|
-
import Dialog from "./Dialog-
|
|
5
|
-
import { F as FormView } from "./FormView-
|
|
1
|
+
import { M as Model, C as Collection, T as ToastService, G as GroupList, d as UserList } from "./ContextMenu-BjQymcpo.js";
|
|
2
|
+
import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-BONphh_h.js";
|
|
3
|
+
import { P as Page } from "./Page-q5Gme_r0.js";
|
|
4
|
+
import Dialog from "./Dialog-upGYwvdZ.js";
|
|
5
|
+
import { F as FormView } from "./FormView-C9PgTIH2.js";
|
|
6
6
|
class S3Bucket extends Model {
|
|
7
7
|
constructor(data = {}) {
|
|
8
8
|
super(data, {
|
|
@@ -5134,10 +5134,10 @@ class TableView extends ListView {
|
|
|
5134
5134
|
allFilterConfigs.forEach((filterDef) => {
|
|
5135
5135
|
if (filterDef.config.type === "daterange") {
|
|
5136
5136
|
const key = filterDef.key;
|
|
5137
|
-
const startName = filterDef.config.startName ||
|
|
5138
|
-
const endName = filterDef.config.endName ||
|
|
5139
|
-
const fieldName = filterDef.config.fieldName ||
|
|
5140
|
-
if (allParams[startName] || allParams[endName]) {
|
|
5137
|
+
const startName = filterDef.config.startName || "dr_start";
|
|
5138
|
+
const endName = filterDef.config.endName || "dr_end";
|
|
5139
|
+
const fieldName = filterDef.config.fieldName || "dr_field";
|
|
5140
|
+
if (allParams[fieldName] === key && (allParams[startName] || allParams[endName])) {
|
|
5141
5141
|
filters[key] = {
|
|
5142
5142
|
start: allParams[startName] || "",
|
|
5143
5143
|
end: allParams[endName] || ""
|
|
@@ -5162,9 +5162,9 @@ class TableView extends ListView {
|
|
|
5162
5162
|
if (!this.collection) return;
|
|
5163
5163
|
const filterConfig = this.getFilterConfig(key);
|
|
5164
5164
|
if (filterConfig && filterConfig.type === "daterange") {
|
|
5165
|
-
const startName = filterConfig.startName ||
|
|
5166
|
-
const endName = filterConfig.endName ||
|
|
5167
|
-
const fieldName = filterConfig.fieldName ||
|
|
5165
|
+
const startName = filterConfig.startName || "dr_start";
|
|
5166
|
+
const endName = filterConfig.endName || "dr_end";
|
|
5167
|
+
const fieldName = filterConfig.fieldName || "dr_field";
|
|
5168
5168
|
delete this.collection.params[startName];
|
|
5169
5169
|
delete this.collection.params[endName];
|
|
5170
5170
|
delete this.collection.params[fieldName];
|
|
@@ -5289,7 +5289,7 @@ class TableView extends ListView {
|
|
|
5289
5289
|
const result = await Dialog.showForm({
|
|
5290
5290
|
title: `${currentValue !== void 0 && currentValue !== "" ? "Edit" : "Add"} ${this.getFilterLabel(filterKey)} Filter`,
|
|
5291
5291
|
size: "md",
|
|
5292
|
-
fields: [this.buildFilterDialogField(filterConfig, currentValue)]
|
|
5292
|
+
fields: [this.buildFilterDialogField(filterConfig, currentValue, filterKey)]
|
|
5293
5293
|
});
|
|
5294
5294
|
if (result) {
|
|
5295
5295
|
const newFilterValue = this.extractFilterValue(filterConfig, result);
|
|
@@ -5300,7 +5300,7 @@ class TableView extends ListView {
|
|
|
5300
5300
|
/**
|
|
5301
5301
|
* Build filter dialog field configuration
|
|
5302
5302
|
*/
|
|
5303
|
-
buildFilterDialogField(filterConfig, currentValue) {
|
|
5303
|
+
buildFilterDialogField(filterConfig, currentValue, filterKey) {
|
|
5304
5304
|
const field = {
|
|
5305
5305
|
name: "filter_value",
|
|
5306
5306
|
label: filterConfig.label,
|
|
@@ -5308,6 +5308,13 @@ class TableView extends ListView {
|
|
|
5308
5308
|
...filterConfig
|
|
5309
5309
|
};
|
|
5310
5310
|
if (filterConfig.type === "daterange") {
|
|
5311
|
+
field.startName = field.startName || "dr_start";
|
|
5312
|
+
field.endName = field.endName || "dr_end";
|
|
5313
|
+
field.fieldName = field.fieldName || "dr_field";
|
|
5314
|
+
field.format = field.format || "YYYY-MM-DD";
|
|
5315
|
+
field.displayFormat = field.displayFormat || "MMM DD, YYYY";
|
|
5316
|
+
field.separator = field.separator || " to ";
|
|
5317
|
+
field.label = field.label || "Date Range";
|
|
5311
5318
|
if (currentValue && typeof currentValue === "object") {
|
|
5312
5319
|
field.startDate = currentValue.start || "";
|
|
5313
5320
|
field.endDate = currentValue.end || "";
|
|
@@ -5320,8 +5327,8 @@ class TableView extends ListView {
|
|
|
5320
5327
|
*/
|
|
5321
5328
|
extractFilterValue(filterConfig, formResult) {
|
|
5322
5329
|
if (filterConfig.type === "daterange") {
|
|
5323
|
-
const startName = filterConfig.startName || "
|
|
5324
|
-
const endName = filterConfig.endName || "
|
|
5330
|
+
const startName = filterConfig.startName || "dr_start";
|
|
5331
|
+
const endName = filterConfig.endName || "dr_end";
|
|
5325
5332
|
const result = {
|
|
5326
5333
|
start: formResult[startName],
|
|
5327
5334
|
end: formResult[endName]
|
|
@@ -5366,7 +5373,7 @@ class TableView extends ListView {
|
|
|
5366
5373
|
title: `Edit ${this.getFilterLabel(filterKey)} Filter`,
|
|
5367
5374
|
size: "md",
|
|
5368
5375
|
data: { filter_value: currentValue },
|
|
5369
|
-
fields: [this.buildFilterDialogField(filterConfig, currentValue)]
|
|
5376
|
+
fields: [this.buildFilterDialogField(filterConfig, currentValue, filterKey)]
|
|
5370
5377
|
});
|
|
5371
5378
|
if (result) {
|
|
5372
5379
|
const newFilterValue = this.extractFilterValue(filterConfig, result);
|
|
@@ -6612,4 +6619,4 @@ export {
|
|
|
6612
6619
|
IncidentEventList as y,
|
|
6613
6620
|
IncidentEventForms as z
|
|
6614
6621
|
};
|
|
6615
|
-
//# sourceMappingURL=FilePreviewView-
|
|
6622
|
+
//# sourceMappingURL=FilePreviewView-CehLQVJa.js.map
|