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.
Files changed (65) 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 +84 -67
  4. package/dist/admin.es.js.map +1 -1
  5. package/dist/auth.cjs.js +1 -1
  6. package/dist/auth.cjs.js.map +1 -1
  7. package/dist/auth.es.js +2 -2
  8. package/dist/auth.es.js.map +1 -1
  9. package/dist/charts.cjs.js +1 -1
  10. package/dist/charts.es.js +2 -2
  11. package/dist/chunks/ChatView-BunvEH18.js +2 -0
  12. package/dist/chunks/ChatView-BunvEH18.js.map +1 -0
  13. package/dist/chunks/{ChatView-DLEStri1.js → ChatView-XgMgUF-Y.js} +99 -60
  14. package/dist/chunks/ChatView-XgMgUF-Y.js.map +1 -0
  15. package/dist/chunks/{Collection-YRfGoT73.js → Collection-DaTm-2LH.js} +2 -2
  16. package/dist/chunks/{Collection-YRfGoT73.js.map → Collection-DaTm-2LH.js.map} +1 -1
  17. package/dist/chunks/{ContextMenu-By2g3KYY.js → ContextMenu-BuEqfeZS.js} +3 -2
  18. package/dist/chunks/ContextMenu-BuEqfeZS.js.map +1 -0
  19. package/dist/chunks/ContextMenu-DcLhcYMp.js +3 -0
  20. package/dist/chunks/ContextMenu-DcLhcYMp.js.map +1 -0
  21. package/dist/chunks/{Dialog-C2mRUxga.js → Dialog-5iyCQwEP.js} +3 -3
  22. package/dist/chunks/{Dialog-C2mRUxga.js.map → Dialog-5iyCQwEP.js.map} +1 -1
  23. package/dist/chunks/{Dialog-Cl6MN8if.js → Dialog-CV-J2Ozg.js} +2 -2
  24. package/dist/chunks/{Dialog-Cl6MN8if.js.map → Dialog-CV-J2Ozg.js.map} +1 -1
  25. package/dist/chunks/{FormView-HWvIdFkB.js → FormView-B2MQEHGz.js} +708 -1
  26. package/dist/chunks/FormView-B2MQEHGz.js.map +1 -0
  27. package/dist/chunks/FormView-DSpbf4Si.js +3 -0
  28. package/dist/chunks/FormView-DSpbf4Si.js.map +1 -0
  29. package/dist/chunks/{ListView-BMNhd5-B.js → ListView-BrsQ26R6.js} +2 -2
  30. package/dist/chunks/{ListView-BMNhd5-B.js.map → ListView-BrsQ26R6.js.map} +1 -1
  31. package/dist/chunks/{MetricsMiniChartWidget-BkTEO87S.js → MetricsMiniChartWidget-BDINfoNd.js} +2 -2
  32. package/dist/chunks/{MetricsMiniChartWidget-BkTEO87S.js.map → MetricsMiniChartWidget-BDINfoNd.js.map} +1 -1
  33. package/dist/chunks/{MetricsMiniChartWidget-Y70IHFIe.js → MetricsMiniChartWidget-mX32QYXz.js} +2 -2
  34. package/dist/chunks/{MetricsMiniChartWidget-Y70IHFIe.js.map → MetricsMiniChartWidget-mX32QYXz.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-DkbYnnoV.js → PDFViewer-BBzpEsVz.js} +2 -2
  36. package/dist/chunks/{PDFViewer-DkbYnnoV.js.map → PDFViewer-BBzpEsVz.js.map} +1 -1
  37. package/dist/chunks/{PDFViewer-C0aMqGJL.js → PDFViewer-CjUb32i6.js} +2 -2
  38. package/dist/chunks/{PDFViewer-C0aMqGJL.js.map → PDFViewer-CjUb32i6.js.map} +1 -1
  39. package/dist/chunks/{TopNav-A7NQ4viq.js → TopNav-CP1lWFXW.js} +2 -2
  40. package/dist/chunks/{TopNav-A7NQ4viq.js.map → TopNav-CP1lWFXW.js.map} +1 -1
  41. package/dist/chunks/{TopNav-Dch6cZFa.js → TopNav-Thmp-3pk.js} +4 -4
  42. package/dist/chunks/{TopNav-Dch6cZFa.js.map → TopNav-Thmp-3pk.js.map} +1 -1
  43. package/dist/chunks/{WebApp-CaOPY_k7.js → WebApp-CwApyeWG.js} +2 -2
  44. package/dist/chunks/{WebApp-CaOPY_k7.js.map → WebApp-CwApyeWG.js.map} +1 -1
  45. package/dist/chunks/{WebApp-RHtJ4hFZ.js → WebApp-WREVA4Bx.js} +13 -13
  46. package/dist/chunks/{WebApp-RHtJ4hFZ.js.map → WebApp-WREVA4Bx.js.map} +1 -1
  47. package/dist/docit.cjs.js +1 -1
  48. package/dist/docit.es.js +5 -5
  49. package/dist/index.cjs.js +1 -1
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.es.js +48 -47
  52. package/dist/lightbox.cjs.js +1 -1
  53. package/dist/lightbox.es.js +3 -3
  54. package/dist/map.es.js +1 -1
  55. package/dist/timeline.es.js +2 -2
  56. package/package.json +1 -1
  57. package/dist/chunks/ChatView-CTtQHvRP.js +0 -2
  58. package/dist/chunks/ChatView-CTtQHvRP.js.map +0 -1
  59. package/dist/chunks/ChatView-DLEStri1.js.map +0 -1
  60. package/dist/chunks/ContextMenu-By2g3KYY.js.map +0 -1
  61. package/dist/chunks/ContextMenu-Cl0TRsIa.js +0 -3
  62. package/dist/chunks/ContextMenu-Cl0TRsIa.js.map +0 -1
  63. package/dist/chunks/FormView-BSWaXDav.js +0 -3
  64. package/dist/chunks/FormView-BSWaXDav.js.map +0 -1
  65. package/dist/chunks/FormView-HWvIdFkB.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { M as Model, C as Collection } from "./Collection-YRfGoT73.js";
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-By2g3KYY.js";
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-C2mRUxga.js";
6
- import { L as ListViewItem, a as ListView } from "./ListView-BMNhd5-B.js";
7
- import { F as FormView, a as applyFileDropMixin } from "./FormView-HWvIdFkB.js";
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(result);
936
- return result;
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: "number",
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: "text",
1917
+ type: "combo",
1885
1918
  label: "Field Name",
1886
1919
  required: true,
1887
- placeholder: "e.g., level, source_ip, rule_id",
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: "text",
1967
+ type: "combo",
1931
1968
  label: "Field Name",
1932
1969
  required: true,
1933
- placeholder: "e.g., level, source_ip, rule_id",
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, uploadResult);
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, result) {
6753
+ handleUploadComplete(uploadId, fileModel) {
6716
6754
  this.attachments.push({
6717
- id: result.id || result.file?.id || result,
6718
- name: result.name || this.pendingUploads.get(uploadId)?.file.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
- Job as a1,
7029
- JobList as a2,
7030
- JobForms as a3,
7031
- JobLog as a4,
7032
- JobLogList as a5,
7033
- JobEvent as a6,
7034
- JobEventList as a7,
7035
- JobsEngineStats as a8,
7036
- JobRunner as a9,
7037
- TicketCategories as aA,
7038
- JobRunnerList as aa,
7039
- JobRunnerForms as ab,
7040
- Log as ac,
7041
- LogList as ad,
7042
- MemberList as ae,
7043
- MemberForms as af,
7044
- MetricsPermission as ag,
7045
- MetricsPermissionList as ah,
7046
- MetricsForms as ai,
7047
- PushDevice as aj,
7048
- PushDeviceList as ak,
7049
- PushTemplate as al,
7050
- PushTemplateList as am,
7051
- PushConfig as an,
7052
- PushConfigList as ao,
7053
- PushDelivery as ap,
7054
- PushDeliveryList as aq,
7055
- PushConfigForms as ar,
7056
- PushTemplateForms as as,
7057
- GeoLocatedIP as at,
7058
- GeoLocatedIPList as au,
7059
- Ticket as av,
7060
- TicketList as aw,
7061
- TicketNote as ax,
7062
- TicketNoteList as ay,
7063
- TicketForms as az,
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-DLEStri1.js.map
7129
+ //# sourceMappingURL=ChatView-XgMgUF-Y.js.map