web-mojo 2.1.957 → 2.1.964
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 +64 -65
- 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 +2 -2
- 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/ChatView-BunvEH18.js +2 -0
- package/dist/chunks/ChatView-BunvEH18.js.map +1 -0
- package/dist/chunks/{ChatView-CoCfp717.js → ChatView-XgMgUF-Y.js} +82 -56
- package/dist/chunks/ChatView-XgMgUF-Y.js.map +1 -0
- package/dist/chunks/{Dialog-C2mRUxga.js → Dialog-5iyCQwEP.js} +3 -3
- package/dist/chunks/{Dialog-C2mRUxga.js.map → Dialog-5iyCQwEP.js.map} +1 -1
- package/dist/chunks/{Dialog-Cl6MN8if.js → Dialog-CV-J2Ozg.js} +2 -2
- package/dist/chunks/{Dialog-Cl6MN8if.js.map → Dialog-CV-J2Ozg.js.map} +1 -1
- package/dist/chunks/{FormView-HWvIdFkB.js → FormView-B2MQEHGz.js} +708 -1
- package/dist/chunks/FormView-B2MQEHGz.js.map +1 -0
- package/dist/chunks/FormView-DSpbf4Si.js +3 -0
- package/dist/chunks/FormView-DSpbf4Si.js.map +1 -0
- package/dist/chunks/{MetricsMiniChartWidget-BkTEO87S.js → MetricsMiniChartWidget-BDINfoNd.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-BkTEO87S.js.map → MetricsMiniChartWidget-BDINfoNd.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-Y70IHFIe.js → MetricsMiniChartWidget-mX32QYXz.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-Y70IHFIe.js.map → MetricsMiniChartWidget-mX32QYXz.js.map} +1 -1
- package/dist/chunks/{PDFViewer-DkbYnnoV.js → PDFViewer-BBzpEsVz.js} +2 -2
- package/dist/chunks/{PDFViewer-DkbYnnoV.js.map → PDFViewer-BBzpEsVz.js.map} +1 -1
- package/dist/chunks/{PDFViewer-C0aMqGJL.js → PDFViewer-CjUb32i6.js} +2 -2
- package/dist/chunks/{PDFViewer-C0aMqGJL.js.map → PDFViewer-CjUb32i6.js.map} +1 -1
- package/dist/chunks/{TopNav-CiEW7hl-.js → TopNav-CP1lWFXW.js} +2 -2
- package/dist/chunks/{TopNav-CiEW7hl-.js.map → TopNav-CP1lWFXW.js.map} +1 -1
- package/dist/chunks/{TopNav-Bt3-5HMg.js → TopNav-Thmp-3pk.js} +2 -2
- package/dist/chunks/{TopNav-Bt3-5HMg.js.map → TopNav-Thmp-3pk.js.map} +1 -1
- package/dist/chunks/{WebApp-BTcA5UQh.js → WebApp-BGbtHcQv.js} +2 -2
- package/dist/chunks/{WebApp-BTcA5UQh.js.map → WebApp-BGbtHcQv.js.map} +1 -1
- package/dist/chunks/{WebApp-kVssBssy.js → WebApp-_HcsDVBh.js} +13 -13
- package/dist/chunks/{WebApp-kVssBssy.js.map → WebApp-_HcsDVBh.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +44 -43
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/ChatView-CoCfp717.js.map +0 -1
- package/dist/chunks/ChatView-uTNbBQfi.js +0 -2
- package/dist/chunks/ChatView-uTNbBQfi.js.map +0 -1
- package/dist/chunks/FormView-BSWaXDav.js +0 -3
- package/dist/chunks/FormView-BSWaXDav.js.map +0 -1
- package/dist/chunks/FormView-HWvIdFkB.js.map +0 -1
|
@@ -2,9 +2,9 @@ import { M as Model, C as Collection } from "./Collection-DaTm-2LH.js";
|
|
|
2
2
|
import { r as rest, V as View, d as dataFormatter, a as Mustache } from "./Rest-CS4jRCAs.js";
|
|
3
3
|
import { T as ToastService, G as GroupList, c as UserList } from "./ContextMenu-BuEqfeZS.js";
|
|
4
4
|
import { P as Page } from "./Page-Deq4y2Kq.js";
|
|
5
|
-
import Dialog from "./Dialog-
|
|
5
|
+
import Dialog from "./Dialog-5iyCQwEP.js";
|
|
6
6
|
import { L as ListViewItem, a as ListView } from "./ListView-BrsQ26R6.js";
|
|
7
|
-
import { F as FormView, a as applyFileDropMixin } from "./FormView-
|
|
7
|
+
import { F as FormView, a as applyFileDropMixin } from "./FormView-B2MQEHGz.js";
|
|
8
8
|
class S3Bucket extends Model {
|
|
9
9
|
constructor(data = {}) {
|
|
10
10
|
super(data, {
|
|
@@ -932,8 +932,8 @@ class FileUpload {
|
|
|
932
932
|
} catch (error) {
|
|
933
933
|
console.warn("Failed to mark upload as completed:", error);
|
|
934
934
|
}
|
|
935
|
-
this._onComplete(
|
|
936
|
-
return
|
|
935
|
+
this._onComplete(this.fileModel);
|
|
936
|
+
return this.fileModel;
|
|
937
937
|
} catch (error) {
|
|
938
938
|
if (error.message !== "Upload cancelled") {
|
|
939
939
|
this._onError(error);
|
|
@@ -1702,6 +1702,26 @@ const ValueTypeOptions = [
|
|
|
1702
1702
|
{ value: "float", label: "Float" },
|
|
1703
1703
|
{ value: "bool", label: "Boolean" }
|
|
1704
1704
|
];
|
|
1705
|
+
const CommonEventFields = [
|
|
1706
|
+
{ value: "level", label: "Level", description: "Event level (error, warning, info, debug)", meta: { type: "str" } },
|
|
1707
|
+
{ value: "source_ip", label: "Source IP Address", description: "IP address of the event source", meta: { type: "str" } },
|
|
1708
|
+
{ value: "rule_id", label: "Rule ID", description: "Numeric rule identifier", meta: { type: "int" } },
|
|
1709
|
+
{ value: "hostname", label: "Hostname", description: "Hostname where event occurred", meta: { type: "str" } },
|
|
1710
|
+
{ value: "component", label: "Component", description: "System component name", meta: { type: "str" } },
|
|
1711
|
+
{ value: "component_id", label: "Component ID", description: "Component identifier", meta: { type: "str" } },
|
|
1712
|
+
{ value: "category", label: "Category", description: "Event category (ossec, auth, api_error, etc.)", meta: { type: "str" } },
|
|
1713
|
+
{ value: "description", label: "Description", description: "Event description text", meta: { type: "str" } },
|
|
1714
|
+
{ value: "details", label: "Details", description: "Additional event details", meta: { type: "str" } },
|
|
1715
|
+
{ value: "alert_id", label: "Alert ID", description: "Numeric alert identifier", meta: { type: "int" } },
|
|
1716
|
+
{ value: "severity", label: "Severity", description: "Numeric severity level", meta: { type: "int" } },
|
|
1717
|
+
{ value: "user", label: "User", description: "Username associated with event", meta: { type: "str" } },
|
|
1718
|
+
{ value: "action", label: "Action", description: "Action that triggered the event", meta: { type: "str" } },
|
|
1719
|
+
{ value: "status", label: "Status", description: "Status value or code", meta: { type: "str" } },
|
|
1720
|
+
{ value: "status_code", label: "Status Code", description: "Numeric status code (e.g., HTTP status)", meta: { type: "int" } },
|
|
1721
|
+
{ value: "message", label: "Message", description: "Event message text", meta: { type: "str" } },
|
|
1722
|
+
{ value: "path", label: "Path", description: "File path or URL path", meta: { type: "str" } },
|
|
1723
|
+
{ value: "method", label: "Method", description: "HTTP method or function name", meta: { type: "str" } }
|
|
1724
|
+
];
|
|
1705
1725
|
class RuleSet extends Model {
|
|
1706
1726
|
constructor(data = {}) {
|
|
1707
1727
|
super(data, {
|
|
@@ -1894,10 +1914,14 @@ const RuleForms = {
|
|
|
1894
1914
|
},
|
|
1895
1915
|
{
|
|
1896
1916
|
name: "field_name",
|
|
1897
|
-
type: "
|
|
1917
|
+
type: "combo",
|
|
1898
1918
|
label: "Field Name",
|
|
1899
1919
|
required: true,
|
|
1900
|
-
placeholder: "
|
|
1920
|
+
placeholder: "Select or enter field name...",
|
|
1921
|
+
options: CommonEventFields,
|
|
1922
|
+
allowCustom: true,
|
|
1923
|
+
showDescription: true,
|
|
1924
|
+
help: "Select a common field or type a custom field name",
|
|
1901
1925
|
cols: 12
|
|
1902
1926
|
},
|
|
1903
1927
|
{
|
|
@@ -1940,10 +1964,14 @@ const RuleForms = {
|
|
|
1940
1964
|
},
|
|
1941
1965
|
{
|
|
1942
1966
|
name: "field_name",
|
|
1943
|
-
type: "
|
|
1967
|
+
type: "combo",
|
|
1944
1968
|
label: "Field Name",
|
|
1945
1969
|
required: true,
|
|
1946
|
-
placeholder: "
|
|
1970
|
+
placeholder: "Select or enter field name...",
|
|
1971
|
+
options: CommonEventFields,
|
|
1972
|
+
allowCustom: true,
|
|
1973
|
+
showDescription: true,
|
|
1974
|
+
help: "Select a common field or type a custom field name",
|
|
1947
1975
|
cols: 12
|
|
1948
1976
|
},
|
|
1949
1977
|
{
|
|
@@ -6599,9 +6627,9 @@ class ChatInputView extends View {
|
|
|
6599
6627
|
<div class="chat-input-container">
|
|
6600
6628
|
<div class="chat-input-attachments" data-container="attachments"></div>
|
|
6601
6629
|
<div class="chat-input-wrapper">
|
|
6602
|
-
<textarea
|
|
6603
|
-
class="chat-input form-control"
|
|
6604
|
-
placeholder="${this.placeholder}"
|
|
6630
|
+
<textarea
|
|
6631
|
+
class="chat-input form-control"
|
|
6632
|
+
placeholder="${this.placeholder}"
|
|
6605
6633
|
rows="1"></textarea>
|
|
6606
6634
|
<button class="chat-send-btn btn btn-primary" data-action="send-message" type="button">
|
|
6607
6635
|
<i class="bi bi-send-fill"></i>
|
|
@@ -6609,7 +6637,7 @@ class ChatInputView extends View {
|
|
|
6609
6637
|
</div>
|
|
6610
6638
|
<div class="chat-input-footer">
|
|
6611
6639
|
<small class="text-muted">
|
|
6612
|
-
<i class="bi bi-paperclip"></i>
|
|
6640
|
+
<i class="bi bi-paperclip"></i>
|
|
6613
6641
|
Drag & drop files to attach
|
|
6614
6642
|
</small>
|
|
6615
6643
|
</div>
|
|
@@ -6666,12 +6694,9 @@ class ChatInputView extends View {
|
|
|
6666
6694
|
this.updateFileProgress(uploadId, progress);
|
|
6667
6695
|
},
|
|
6668
6696
|
onComplete: (uploadResult) => {
|
|
6669
|
-
this.handleUploadComplete(uploadId,
|
|
6697
|
+
this.handleUploadComplete(uploadId, fileModel);
|
|
6670
6698
|
}
|
|
6671
6699
|
});
|
|
6672
|
-
if (result && result.success) {
|
|
6673
|
-
this.handleUploadComplete(uploadId, result.data);
|
|
6674
|
-
}
|
|
6675
6700
|
} catch (error) {
|
|
6676
6701
|
console.error("File upload failed:", error);
|
|
6677
6702
|
this.handleUploadError(uploadId, error);
|
|
@@ -6725,10 +6750,10 @@ class ChatInputView extends View {
|
|
|
6725
6750
|
* @param {string} uploadId - Upload ID
|
|
6726
6751
|
* @param {Object} result - Upload result data (contains file.id)
|
|
6727
6752
|
*/
|
|
6728
|
-
handleUploadComplete(uploadId,
|
|
6753
|
+
handleUploadComplete(uploadId, fileModel) {
|
|
6729
6754
|
this.attachments.push({
|
|
6730
|
-
id:
|
|
6731
|
-
name:
|
|
6755
|
+
id: fileModel.id,
|
|
6756
|
+
name: fileModel.get("name"),
|
|
6732
6757
|
uploadId
|
|
6733
6758
|
});
|
|
6734
6759
|
this.pendingUploads.delete(uploadId);
|
|
@@ -7038,42 +7063,43 @@ export {
|
|
|
7038
7063
|
MatchByOptions as _,
|
|
7039
7064
|
TableRow as a,
|
|
7040
7065
|
ValueTypeOptions as a0,
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7066
|
+
CommonEventFields as a1,
|
|
7067
|
+
Job as a2,
|
|
7068
|
+
JobList as a3,
|
|
7069
|
+
JobForms as a4,
|
|
7070
|
+
JobLog as a5,
|
|
7071
|
+
JobLogList as a6,
|
|
7072
|
+
JobEvent as a7,
|
|
7073
|
+
JobEventList as a8,
|
|
7074
|
+
JobsEngineStats as a9,
|
|
7075
|
+
TicketForms as aA,
|
|
7076
|
+
TicketCategories as aB,
|
|
7077
|
+
JobRunner as aa,
|
|
7078
|
+
JobRunnerList as ab,
|
|
7079
|
+
JobRunnerForms as ac,
|
|
7080
|
+
Log as ad,
|
|
7081
|
+
LogList as ae,
|
|
7082
|
+
MemberList as af,
|
|
7083
|
+
MemberForms as ag,
|
|
7084
|
+
MetricsPermission as ah,
|
|
7085
|
+
MetricsPermissionList as ai,
|
|
7086
|
+
MetricsForms as aj,
|
|
7087
|
+
PushDevice as ak,
|
|
7088
|
+
PushDeviceList as al,
|
|
7089
|
+
PushTemplate as am,
|
|
7090
|
+
PushTemplateList as an,
|
|
7091
|
+
PushConfig as ao,
|
|
7092
|
+
PushConfigList as ap,
|
|
7093
|
+
PushDelivery as aq,
|
|
7094
|
+
PushDeliveryList as ar,
|
|
7095
|
+
PushConfigForms as as,
|
|
7096
|
+
PushTemplateForms as at,
|
|
7097
|
+
GeoLocatedIP as au,
|
|
7098
|
+
GeoLocatedIPList as av,
|
|
7099
|
+
Ticket as aw,
|
|
7100
|
+
TicketList as ax,
|
|
7101
|
+
TicketNote as ay,
|
|
7102
|
+
TicketNoteList as az,
|
|
7077
7103
|
TablePage as b,
|
|
7078
7104
|
TabView as c,
|
|
7079
7105
|
ChatMessageView as d,
|
|
@@ -7100,4 +7126,4 @@ export {
|
|
|
7100
7126
|
FileForms as y,
|
|
7101
7127
|
IncidentEventList as z
|
|
7102
7128
|
};
|
|
7103
|
-
//# sourceMappingURL=ChatView-
|
|
7129
|
+
//# sourceMappingURL=ChatView-XgMgUF-Y.js.map
|