web-mojo 2.1.799 → 2.1.802
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.es.js +11 -11
- 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/{ChatView-DsAe76Iw.js → ChatView-D3CkkEH6.js} +2 -2
- package/dist/chunks/{ChatView-DsAe76Iw.js.map → ChatView-D3CkkEH6.js.map} +1 -1
- package/dist/chunks/{ChatView-CG0MxxC0.js → ChatView-DZer8DvU.js} +6 -6
- package/dist/chunks/{ChatView-CG0MxxC0.js.map → ChatView-DZer8DvU.js.map} +1 -1
- package/dist/chunks/{ContextMenu-CUzoOzxz.js → ContextMenu-BGJMvh_q.js} +2 -2
- package/dist/chunks/{ContextMenu-CUzoOzxz.js.map → ContextMenu-BGJMvh_q.js.map} +1 -1
- package/dist/chunks/{ContextMenu-Cwwt69yf.js → ContextMenu-CDJQDjHw.js} +2 -2
- package/dist/chunks/{ContextMenu-Cwwt69yf.js.map → ContextMenu-CDJQDjHw.js.map} +1 -1
- package/dist/chunks/{DataView-BpiXyyVG.js → DataView-BCj52wrk.js} +2 -2
- package/dist/chunks/{DataView-BpiXyyVG.js.map → DataView-BCj52wrk.js.map} +1 -1
- package/dist/chunks/{DataView-D0ycwi7W.js → DataView-BpZphahA.js} +2 -2
- package/dist/chunks/{DataView-D0ycwi7W.js.map → DataView-BpZphahA.js.map} +1 -1
- package/dist/chunks/{Dialog-C1bsyxOc.js → Dialog-BFI6Ao7k.js} +2 -2
- package/dist/chunks/{Dialog-C1bsyxOc.js.map → Dialog-BFI6Ao7k.js.map} +1 -1
- package/dist/chunks/{Dialog-C469ul5I.js → Dialog-CRwejvjQ.js} +5 -5
- package/dist/chunks/{Dialog-C469ul5I.js.map → Dialog-CRwejvjQ.js.map} +1 -1
- package/dist/chunks/{FormView-CFEBoHcV.js → FormView-C9qNX9Rc.js} +2 -2
- package/dist/chunks/{FormView-CFEBoHcV.js.map → FormView-C9qNX9Rc.js.map} +1 -1
- package/dist/chunks/{FormView-B_lR2GG4.js → FormView-QNo7Z-Zx.js} +2 -2
- package/dist/chunks/{FormView-B_lR2GG4.js.map → FormView-QNo7Z-Zx.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-JdcYul7m.js → MetricsMiniChartWidget-KaGQ7jBR.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-JdcYul7m.js.map → MetricsMiniChartWidget-KaGQ7jBR.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-BsGbSx8_.js → MetricsMiniChartWidget-phe5186v.js} +3 -3
- package/dist/chunks/{MetricsMiniChartWidget-BsGbSx8_.js.map → MetricsMiniChartWidget-phe5186v.js.map} +1 -1
- package/dist/chunks/{PDFViewer-DgtfmQBH.js → PDFViewer-BZDiTyV0.js} +2 -2
- package/dist/chunks/{PDFViewer-DgtfmQBH.js.map → PDFViewer-BZDiTyV0.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BTePcTwW.js → PDFViewer-Cj8OzHyh.js} +3 -3
- package/dist/chunks/{PDFViewer-BTePcTwW.js.map → PDFViewer-Cj8OzHyh.js.map} +1 -1
- package/dist/chunks/{Page-BNzfxoLN.js → Page-DBe--S4A.js} +2 -2
- package/dist/chunks/{Page-BNzfxoLN.js.map → Page-DBe--S4A.js.map} +1 -1
- package/dist/chunks/{Page-BOBZ_hsj.js → Page-f4FDOw8G.js} +2 -2
- package/dist/chunks/{Page-BOBZ_hsj.js.map → Page-f4FDOw8G.js.map} +1 -1
- package/dist/chunks/{TopNav-CBtwOzt8.js → TopNav-Bt_BucFh.js} +5 -5
- package/dist/chunks/{TopNav-CBtwOzt8.js.map → TopNav-Bt_BucFh.js.map} +1 -1
- package/dist/chunks/{TopNav-pB6gzZRF.js → TopNav-G1udusRg.js} +2 -2
- package/dist/chunks/{TopNav-pB6gzZRF.js.map → TopNav-G1udusRg.js.map} +1 -1
- package/dist/chunks/{WebApp-BOZJfaC7.js → WebApp-BrCdbemq.js} +13 -13
- package/dist/chunks/{WebApp-BOZJfaC7.js.map → WebApp-BrCdbemq.js.map} +1 -1
- package/dist/chunks/{WebApp-NjfRcJiV.js → WebApp-r7hOMef6.js} +2 -2
- package/dist/chunks/{WebApp-NjfRcJiV.js.map → WebApp-r7hOMef6.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 +39 -12
- package/dist/index.es.js.map +1 -1
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { V as View, W as WebApp, d as dataFormatter, M as Mustache } from "./chunks/WebApp-
|
|
2
|
-
import { B, D, g, E, h, r, R, b, a, c, e, f } from "./chunks/WebApp-
|
|
3
|
-
import { P as Page } from "./chunks/Page-
|
|
4
|
-
import { G as GroupList, T as ToastService, U as User, a as Group } from "./chunks/ContextMenu-
|
|
5
|
-
import { C, b as b2, c as c2, M, f as f2, g as g2, h as h2, i, j, e as e2, d } from "./chunks/ContextMenu-
|
|
6
|
-
import { M as Member } from "./chunks/ChatView-
|
|
7
|
-
import { f as f3, e as e3, C as C2, E as E2, k, j as j2, r as r2, t, s, x, z, y, u, w, v, F, g as g3, ap, aq, D as D2, I, B as B2, A, H, Q, R as R2, G, N, O, J, K, Y, Z, a2, a3, $, _, a0, a1, a5, a7, a6, a4, L, c as c3, a8, a9, l, n, m, ab, aa, ae, ac, ad, P, aj, an, ak, al, am, af, ag, ah, ao, ai, W, X, U, V, S, i as i2, h as h3, o, q, p, d as d2, b as b3, a as a10, T, ar, aw, av, as, at, au } from "./chunks/ChatView-
|
|
8
|
-
import { S as SimpleSearchView, T as TopNav } from "./chunks/TopNav-
|
|
9
|
-
import Dialog from "./chunks/Dialog-
|
|
1
|
+
import { V as View, W as WebApp, d as dataFormatter, M as Mustache } from "./chunks/WebApp-BrCdbemq.js";
|
|
2
|
+
import { B, D, g, E, h, r, R, b, a, c, e, f } from "./chunks/WebApp-BrCdbemq.js";
|
|
3
|
+
import { P as Page } from "./chunks/Page-DBe--S4A.js";
|
|
4
|
+
import { G as GroupList, T as ToastService, U as User, a as Group } from "./chunks/ContextMenu-CDJQDjHw.js";
|
|
5
|
+
import { C, b as b2, c as c2, M, f as f2, g as g2, h as h2, i, j, e as e2, d } from "./chunks/ContextMenu-CDJQDjHw.js";
|
|
6
|
+
import { M as Member } from "./chunks/ChatView-DZer8DvU.js";
|
|
7
|
+
import { f as f3, e as e3, C as C2, E as E2, k, j as j2, r as r2, t, s, x, z, y, u, w, v, F, g as g3, ap, aq, D as D2, I, B as B2, A, H, Q, R as R2, G, N, O, J, K, Y, Z, a2, a3, $, _, a0, a1, a5, a7, a6, a4, L, c as c3, a8, a9, l, n, m, ab, aa, ae, ac, ad, P, aj, an, ak, al, am, af, ag, ah, ao, ai, W, X, U, V, S, i as i2, h as h3, o, q, p, d as d2, b as b3, a as a10, T, ar, aw, av, as, at, au } from "./chunks/ChatView-DZer8DvU.js";
|
|
8
|
+
import { S as SimpleSearchView, T as TopNav } from "./chunks/TopNav-Bt_BucFh.js";
|
|
9
|
+
import Dialog from "./chunks/Dialog-CRwejvjQ.js";
|
|
10
10
|
import { T as TokenManager } from "./chunks/TokenManager-CAZNcCMs.js";
|
|
11
|
-
import { default as default2 } from "./chunks/DataView-
|
|
12
|
-
import { F as F2, a as a11 } from "./chunks/FormView-
|
|
11
|
+
import { default as default2 } from "./chunks/DataView-BCj52wrk.js";
|
|
12
|
+
import { F as F2, a as a11 } from "./chunks/FormView-C9qNX9Rc.js";
|
|
13
13
|
import { W as W2 } from "./chunks/WebSocketClient-B6ribe3B.js";
|
|
14
14
|
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
15
15
|
const LEVELS = Object.freeze({
|
|
@@ -710,7 +710,8 @@ class Sidebar extends View {
|
|
|
710
710
|
let anyGroupMenu = null;
|
|
711
711
|
if (group._.kind) {
|
|
712
712
|
for (const [menuName, menuConfig] of this.menus) {
|
|
713
|
-
|
|
713
|
+
const matches = this._groupKindMatches(menuConfig.groupKind, group._.kind);
|
|
714
|
+
if (matches) {
|
|
714
715
|
targetMenu = menuConfig;
|
|
715
716
|
break;
|
|
716
717
|
} else if (menuConfig.groupKind === "any") {
|
|
@@ -723,6 +724,20 @@ class Sidebar extends View {
|
|
|
723
724
|
}
|
|
724
725
|
return targetMenu;
|
|
725
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* Check if a groupKind matches the group's kind
|
|
729
|
+
* Supports both single string and array of strings
|
|
730
|
+
* @param {string|string[]} groupKind - Single kind or array of kinds
|
|
731
|
+
* @param {string} kind - The group's kind to match
|
|
732
|
+
* @returns {boolean} True if matches
|
|
733
|
+
*/
|
|
734
|
+
_groupKindMatches(groupKind, kind) {
|
|
735
|
+
if (!groupKind || !kind) return false;
|
|
736
|
+
if (Array.isArray(groupKind)) {
|
|
737
|
+
return groupKind.includes(kind);
|
|
738
|
+
}
|
|
739
|
+
return groupKind === kind;
|
|
740
|
+
}
|
|
726
741
|
showMenuForGroup(group) {
|
|
727
742
|
if (!group) {
|
|
728
743
|
console.warn("No group provided");
|
|
@@ -864,6 +879,12 @@ class Sidebar extends View {
|
|
|
864
879
|
return null;
|
|
865
880
|
}
|
|
866
881
|
}
|
|
882
|
+
if (processedItem.requiresGroupKind) {
|
|
883
|
+
const groupKind2 = activeGroup?._.kind || activeGroup?.kind;
|
|
884
|
+
if (!groupKind2 || !this._groupKindMatches(processedItem.requiresGroupKind, groupKind2)) {
|
|
885
|
+
return null;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
867
888
|
if (processedItem.kind === "label") {
|
|
868
889
|
processedItem.isLabel = true;
|
|
869
890
|
if (!processedItem.id) {
|
|
@@ -889,6 +910,12 @@ class Sidebar extends View {
|
|
|
889
910
|
return null;
|
|
890
911
|
}
|
|
891
912
|
}
|
|
913
|
+
if (processedChild.requiresGroupKind) {
|
|
914
|
+
const groupKind2 = activeGroup?._.kind || activeGroup?.kind;
|
|
915
|
+
if (!groupKind2 || !this._groupKindMatches(processedChild.requiresGroupKind, groupKind2)) {
|
|
916
|
+
return null;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
892
919
|
if (processedChild.route) {
|
|
893
920
|
processedChild.href = updateRouteWithGroup(processedChild.route);
|
|
894
921
|
} else if (processedChild.page) {
|