web-mojo 2.1.1103 → 2.1.1105
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 +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/chunks/TokenManager-CoVGWl0q.js +2 -0
- package/dist/chunks/TokenManager-CoVGWl0q.js.map +1 -0
- package/dist/chunks/{TokenManager-ARu7DMSF.js → TokenManager-bPaQbku-.js} +2 -13
- package/dist/chunks/TokenManager-bPaQbku-.js.map +1 -0
- package/dist/chunks/{version-DHSvwP5G.js → version-DW32mCfH.js} +4 -4
- package/dist/chunks/{version-DHSvwP5G.js.map → version-DW32mCfH.js.map} +1 -1
- package/dist/chunks/{version-CD0sF8DE.js → version-DmfJQPfJ.js} +2 -2
- package/dist/chunks/{version-CD0sF8DE.js.map → version-DmfJQPfJ.js.map} +1 -1
- package/dist/core.css +1 -1
- package/dist/css/web-mojo.css +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +34 -19
- package/dist/index.es.js.map +1 -1
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +1 -1
- package/dist/portal.css +278 -0
- package/package.json +1 -1
- package/dist/chunks/TokenManager-ARu7DMSF.js.map +0 -1
- package/dist/chunks/TokenManager-Be5eUwpC.js +0 -2
- package/dist/chunks/TokenManager-Be5eUwpC.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { B, a, V, b, c, d } from "./chunks/version-
|
|
1
|
+
import { B, a, V, b, c, d } from "./chunks/version-DW32mCfH.js";
|
|
2
2
|
import { V as View, d as dataFormatter, a as Mustache } from "./chunks/Rest-DpbPbmra.js";
|
|
3
3
|
import { D, b as b2, M, r } from "./chunks/Rest-DpbPbmra.js";
|
|
4
|
-
import { G as GroupList, P as Page, T as ToastService, U as User
|
|
4
|
+
import { G as GroupList, a as Group, P as Page, T as ToastService, U as User } from "./chunks/ContextMenu-CLRRrCUp.js";
|
|
5
5
|
import { C, b as b3, e, f, g, h, i, d as d2, c as c2 } from "./chunks/ContextMenu-CLRRrCUp.js";
|
|
6
6
|
import { D as Dialog, W as WebApp } from "./chunks/Dialog-DqN9gtj7.js";
|
|
7
7
|
import { E, R } from "./chunks/Dialog-DqN9gtj7.js";
|
|
8
8
|
import { C as C2, M as M2 } from "./chunks/Collection-DpdzB_n7.js";
|
|
9
9
|
import { M as Member } from "./chunks/ChatView-DRaINCCb.js";
|
|
10
10
|
import { Z, e as e2, d as d3, C as C3, a1, $, E as E2, j, i as i2, q, s, r as r2, w, y, x, t, v, u, F, f as f2, au, av, B as B2, I, A, z, G, N, O, D as D2, K, L, H, J, Y, a2, a7, a8, a4, a3, a5, a6, aa, ac, ab, a9, ad, ae, k, m, l, _, ag, af, aj, ah, ai, P, ao, as, ap, aq, ar, ak, al, am, at, an, V as V2, X, W, R as R2, U, Q, S, h as h2, g as g2, n, p, o, c as c3, b as b4, a as a10, T, aw, aB, aA, ax, ay, az, a0 } from "./chunks/ChatView-DRaINCCb.js";
|
|
11
|
-
import { S as SimpleSearchView, T as TokenManager, a as TopNav } from "./chunks/TokenManager-
|
|
11
|
+
import { S as SimpleSearchView, T as TokenManager, a as TopNav } from "./chunks/TokenManager-bPaQbku-.js";
|
|
12
12
|
import { a as a11, L as L2 } from "./chunks/ListView-B2gyVSMW.js";
|
|
13
13
|
import { default as default2 } from "./chunks/DataView-QXyfcg2M.js";
|
|
14
14
|
import { F as F2, a as a12 } from "./chunks/FormView-CVMeyxwH.js";
|
|
@@ -356,17 +356,7 @@ class GroupSearchView extends SimpleSearchView {
|
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
358
|
const items = this.collection.toJSON();
|
|
359
|
-
|
|
360
|
-
if (this.searchValue && this.searchValue.trim()) {
|
|
361
|
-
const searchTerm = this.searchValue.toLowerCase().trim();
|
|
362
|
-
filteredItems = items.filter((item) => {
|
|
363
|
-
return this.searchFields.some((field) => {
|
|
364
|
-
const value = this.getNestedValue(item, field);
|
|
365
|
-
return value && value.toString().toLowerCase().includes(searchTerm);
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
this.treeData = this.buildTreeHierarchy(filteredItems);
|
|
359
|
+
this.treeData = this.buildTreeHierarchy(items);
|
|
370
360
|
this.flattenedItems = this.flattenTree(this.treeData);
|
|
371
361
|
this.filteredItems = this.flattenedItems;
|
|
372
362
|
this.updateResultsView();
|
|
@@ -560,11 +550,25 @@ class Sidebar extends View {
|
|
|
560
550
|
}
|
|
561
551
|
}
|
|
562
552
|
groupHeader = `
|
|
563
|
-
|
|
564
|
-
<div class=
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
553
|
+
{{#group.parent}}
|
|
554
|
+
<div class="sidebar-parent-bar" data-action="select-group-parent">
|
|
555
|
+
<div class="parent-info">
|
|
556
|
+
<span class="parent-label">{{group.parent.kind}}:</span>
|
|
557
|
+
<span class="parent-name collapsed-hidden">{{group.parent.name}}</span>
|
|
558
|
+
</div>
|
|
559
|
+
<i class="bi bi-chevron-down parent-expand collapsed-hidden"></i>
|
|
560
|
+
</div>
|
|
561
|
+
{{/group.parent}}
|
|
562
|
+
<div class="sidebar-selected-group-row" data-action="show-group-search">
|
|
563
|
+
<div class="selected-group-info">
|
|
564
|
+
<div class='selected-group-name collapsed-hidden'>{{group.name}}</div>
|
|
565
|
+
<div class='selected-group-meta collapsed-hidden'>
|
|
566
|
+
<span class="selected-group-kind">{{group.kind}}</span>
|
|
567
|
+
</div>
|
|
568
|
+
</div>
|
|
569
|
+
<i class="bi bi-chevron-down selected-group-chevron collapsed-hidden"></i>
|
|
570
|
+
</div>
|
|
571
|
+
`;
|
|
568
572
|
/**
|
|
569
573
|
* Initialize sidebar and auto-switch to correct menu based on current route
|
|
570
574
|
*/
|
|
@@ -625,6 +629,17 @@ class Sidebar extends View {
|
|
|
625
629
|
onActionShowGroupSearch() {
|
|
626
630
|
this.showGroupSearch();
|
|
627
631
|
}
|
|
632
|
+
async onActionSelectGroupParent() {
|
|
633
|
+
const group = this.getApp().activeGroup;
|
|
634
|
+
const result = await Dialog.confirm(`Are you sure you want to navigate to the '${group.get("parent.name")}'?`);
|
|
635
|
+
if (result) {
|
|
636
|
+
this.getApp().showLoading();
|
|
637
|
+
let parent = new Group({ id: group.get("parent.id") });
|
|
638
|
+
await parent.fetch();
|
|
639
|
+
this.getApp().setActiveGroup(parent);
|
|
640
|
+
this.getApp().hideLoading();
|
|
641
|
+
}
|
|
642
|
+
}
|
|
628
643
|
/**
|
|
629
644
|
* Show group selector in a dialog (like TopNav)
|
|
630
645
|
*/
|