web-mojo 2.1.955 → 2.1.963
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 +84 -67
- 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-DLEStri1.js → ChatView-XgMgUF-Y.js} +99 -60
- package/dist/chunks/ChatView-XgMgUF-Y.js.map +1 -0
- package/dist/chunks/{Collection-YRfGoT73.js → Collection-DaTm-2LH.js} +2 -2
- package/dist/chunks/{Collection-YRfGoT73.js.map → Collection-DaTm-2LH.js.map} +1 -1
- package/dist/chunks/{ContextMenu-By2g3KYY.js → ContextMenu-BuEqfeZS.js} +3 -2
- package/dist/chunks/ContextMenu-BuEqfeZS.js.map +1 -0
- package/dist/chunks/ContextMenu-DcLhcYMp.js +3 -0
- package/dist/chunks/ContextMenu-DcLhcYMp.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/{ListView-BMNhd5-B.js → ListView-BrsQ26R6.js} +2 -2
- package/dist/chunks/{ListView-BMNhd5-B.js.map → ListView-BrsQ26R6.js.map} +1 -1
- 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-A7NQ4viq.js → TopNav-CP1lWFXW.js} +2 -2
- package/dist/chunks/{TopNav-A7NQ4viq.js.map → TopNav-CP1lWFXW.js.map} +1 -1
- package/dist/chunks/{TopNav-Dch6cZFa.js → TopNav-Thmp-3pk.js} +4 -4
- package/dist/chunks/{TopNav-Dch6cZFa.js.map → TopNav-Thmp-3pk.js.map} +1 -1
- package/dist/chunks/{WebApp-CaOPY_k7.js → WebApp-CwApyeWG.js} +2 -2
- package/dist/chunks/{WebApp-CaOPY_k7.js.map → WebApp-CwApyeWG.js.map} +1 -1
- package/dist/chunks/{WebApp-RHtJ4hFZ.js → WebApp-WREVA4Bx.js} +13 -13
- package/dist/chunks/{WebApp-RHtJ4hFZ.js.map → WebApp-WREVA4Bx.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.cjs.js.map +1 -1
- package/dist/index.es.js +48 -47
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +3 -3
- package/dist/map.es.js +1 -1
- package/dist/timeline.es.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/ChatView-CTtQHvRP.js +0 -2
- package/dist/chunks/ChatView-CTtQHvRP.js.map +0 -1
- package/dist/chunks/ChatView-DLEStri1.js.map +0 -1
- package/dist/chunks/ContextMenu-By2g3KYY.js.map +0 -1
- package/dist/chunks/ContextMenu-Cl0TRsIa.js +0 -3
- package/dist/chunks/ContextMenu-Cl0TRsIa.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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as Model, C as Collection } from "./Collection-
|
|
1
|
+
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
|
-
import { T as ToastService, G as GroupList, c as UserList } from "./ContextMenu-
|
|
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-
|
|
6
|
-
import { L as ListViewItem, a as ListView } from "./ListView-
|
|
7
|
-
import { F as FormView, a as applyFileDropMixin } from "./FormView-
|
|
5
|
+
import Dialog from "./Dialog-5iyCQwEP.js";
|
|
6
|
+
import { L as ListViewItem, a as ListView } from "./ListView-BrsQ26R6.js";
|
|
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, {
|
|
@@ -1830,9 +1850,22 @@ const RuleSetForms = {
|
|
|
1830
1850
|
},
|
|
1831
1851
|
{
|
|
1832
1852
|
name: "bundle_minutes",
|
|
1833
|
-
type: "
|
|
1853
|
+
type: "select",
|
|
1834
1854
|
label: "Bundle Minutes",
|
|
1835
1855
|
placeholder: "Time window for bundling",
|
|
1856
|
+
"options": [
|
|
1857
|
+
{ "value": 0, "label": "Disabled - don't bundle by time" },
|
|
1858
|
+
{ "value": 5, "label": "5 minutes" },
|
|
1859
|
+
{ "value": 10, "label": "10 minutes" },
|
|
1860
|
+
{ "value": 15, "label": "15 minutes" },
|
|
1861
|
+
{ "value": 30, "label": "30 minutes" },
|
|
1862
|
+
{ "value": 60, "label": "1 hour" },
|
|
1863
|
+
{ "value": 120, "label": "2 hours" },
|
|
1864
|
+
{ "value": 360, "label": "6 hours" },
|
|
1865
|
+
{ "value": 720, "label": "12 hours" },
|
|
1866
|
+
{ "value": 1440, "label": "1 day" },
|
|
1867
|
+
{ "value": null, "label": "No limit - bundle forever" }
|
|
1868
|
+
],
|
|
1836
1869
|
cols: 12
|
|
1837
1870
|
},
|
|
1838
1871
|
{
|
|
@@ -1881,10 +1914,14 @@ const RuleForms = {
|
|
|
1881
1914
|
},
|
|
1882
1915
|
{
|
|
1883
1916
|
name: "field_name",
|
|
1884
|
-
type: "
|
|
1917
|
+
type: "combo",
|
|
1885
1918
|
label: "Field Name",
|
|
1886
1919
|
required: true,
|
|
1887
|
-
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",
|
|
1888
1925
|
cols: 12
|
|
1889
1926
|
},
|
|
1890
1927
|
{
|
|
@@ -1927,10 +1964,14 @@ const RuleForms = {
|
|
|
1927
1964
|
},
|
|
1928
1965
|
{
|
|
1929
1966
|
name: "field_name",
|
|
1930
|
-
type: "
|
|
1967
|
+
type: "combo",
|
|
1931
1968
|
label: "Field Name",
|
|
1932
1969
|
required: true,
|
|
1933
|
-
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",
|
|
1934
1975
|
cols: 12
|
|
1935
1976
|
},
|
|
1936
1977
|
{
|
|
@@ -6586,9 +6627,9 @@ class ChatInputView extends View {
|
|
|
6586
6627
|
<div class="chat-input-container">
|
|
6587
6628
|
<div class="chat-input-attachments" data-container="attachments"></div>
|
|
6588
6629
|
<div class="chat-input-wrapper">
|
|
6589
|
-
<textarea
|
|
6590
|
-
class="chat-input form-control"
|
|
6591
|
-
placeholder="${this.placeholder}"
|
|
6630
|
+
<textarea
|
|
6631
|
+
class="chat-input form-control"
|
|
6632
|
+
placeholder="${this.placeholder}"
|
|
6592
6633
|
rows="1"></textarea>
|
|
6593
6634
|
<button class="chat-send-btn btn btn-primary" data-action="send-message" type="button">
|
|
6594
6635
|
<i class="bi bi-send-fill"></i>
|
|
@@ -6596,7 +6637,7 @@ class ChatInputView extends View {
|
|
|
6596
6637
|
</div>
|
|
6597
6638
|
<div class="chat-input-footer">
|
|
6598
6639
|
<small class="text-muted">
|
|
6599
|
-
<i class="bi bi-paperclip"></i>
|
|
6640
|
+
<i class="bi bi-paperclip"></i>
|
|
6600
6641
|
Drag & drop files to attach
|
|
6601
6642
|
</small>
|
|
6602
6643
|
</div>
|
|
@@ -6653,12 +6694,9 @@ class ChatInputView extends View {
|
|
|
6653
6694
|
this.updateFileProgress(uploadId, progress);
|
|
6654
6695
|
},
|
|
6655
6696
|
onComplete: (uploadResult) => {
|
|
6656
|
-
this.handleUploadComplete(uploadId,
|
|
6697
|
+
this.handleUploadComplete(uploadId, fileModel);
|
|
6657
6698
|
}
|
|
6658
6699
|
});
|
|
6659
|
-
if (result && result.success) {
|
|
6660
|
-
this.handleUploadComplete(uploadId, result.data);
|
|
6661
|
-
}
|
|
6662
6700
|
} catch (error) {
|
|
6663
6701
|
console.error("File upload failed:", error);
|
|
6664
6702
|
this.handleUploadError(uploadId, error);
|
|
@@ -6712,10 +6750,10 @@ class ChatInputView extends View {
|
|
|
6712
6750
|
* @param {string} uploadId - Upload ID
|
|
6713
6751
|
* @param {Object} result - Upload result data (contains file.id)
|
|
6714
6752
|
*/
|
|
6715
|
-
handleUploadComplete(uploadId,
|
|
6753
|
+
handleUploadComplete(uploadId, fileModel) {
|
|
6716
6754
|
this.attachments.push({
|
|
6717
|
-
id:
|
|
6718
|
-
name:
|
|
6755
|
+
id: fileModel.id,
|
|
6756
|
+
name: fileModel.get("name"),
|
|
6719
6757
|
uploadId
|
|
6720
6758
|
});
|
|
6721
6759
|
this.pendingUploads.delete(uploadId);
|
|
@@ -7025,42 +7063,43 @@ export {
|
|
|
7025
7063
|
MatchByOptions as _,
|
|
7026
7064
|
TableRow as a,
|
|
7027
7065
|
ValueTypeOptions as a0,
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
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,
|
|
7064
7103
|
TablePage as b,
|
|
7065
7104
|
TabView as c,
|
|
7066
7105
|
ChatMessageView as d,
|
|
@@ -7087,4 +7126,4 @@ export {
|
|
|
7087
7126
|
FileForms as y,
|
|
7088
7127
|
IncidentEventList as z
|
|
7089
7128
|
};
|
|
7090
|
-
//# sourceMappingURL=ChatView-
|
|
7129
|
+
//# sourceMappingURL=ChatView-XgMgUF-Y.js.map
|