@memberjunction/ng-conversations 6.2.0-edge.7 → 6.2.0
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/README.md +7 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +9 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +35 -25
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts +26 -4
- package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.js +305 -122
- package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +7 -1
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +12 -4
- package/dist/lib/components/message/message-item.component.js.map +1 -1
- package/dist/lib/components/message/message-list.component.d.ts +9 -1
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-list.component.js +20 -1
- package/dist/lib/components/message/message-list.component.js.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.d.ts +27 -2
- package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.js +183 -16
- package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.d.ts +34 -23
- package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.js +437 -71
- package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
- package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-selector.component.js +6 -3
- package/dist/lib/components/project/project-selector.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-composer.component.d.ts +1 -0
- package/dist/lib/components/realtime/realtime-composer.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-composer.component.js +3 -1
- package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +3 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.js +12 -5
- package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-thread.component.d.ts +3 -1
- package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-thread.component.js +8 -4
- package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
- package/dist/lib/components/share/share-modal.component.d.ts +7 -0
- package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/share/share-modal.component.js +153 -61
- package/dist/lib/components/share/share-modal.component.js.map +1 -1
- package/dist/lib/utils/folder-move.d.ts +30 -0
- package/dist/lib/utils/folder-move.d.ts.map +1 -0
- package/dist/lib/utils/folder-move.js +47 -0
- package/dist/lib/utils/folder-move.js.map +1 -0
- package/package.json +36 -36
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter, HostListener, ViewChild } from '@angular/core';
|
|
2
|
-
import { ConversationEngine, UserInfoEngine } from '@memberjunction/core-entities';
|
|
2
|
+
import { ConversationEngine, UserInfoEngine, ResourcePermissionEngine, PROJECTS_RESOURCE_TYPE_ID, IsInheritingFolderAccess } from '@memberjunction/core-entities';
|
|
3
|
+
import { ConfirmInheritFolderAccess, ConfirmMoveIntoFolder } from '../../utils/folder-move';
|
|
3
4
|
import { ProjectFormModalComponent } from '../project/project-form-modal.component';
|
|
4
5
|
import { MJResourcePermissionShareAdapter } from '@memberjunction/ng-resource-permissions';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
@@ -55,7 +56,7 @@ function ConversationListComponent_Conditional_1_Conditional_2_Template(rf, ctx)
|
|
|
55
56
|
i0.ɵɵadvance();
|
|
56
57
|
i0.ɵɵclassProp("fa-rotate-90", !ctx_r1.SelectionHasUnpinned());
|
|
57
58
|
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵproperty("disabled", !ctx_r1.
|
|
59
|
+
i0.ɵɵproperty("disabled", !ctx_r1.CanMoveAny(ctx_r1.SelectedIds))("title", ctx_r1.CanMoveAny(ctx_r1.SelectedIds) ? "Move to folder" : ctx_r1.MoveRefusedReason);
|
|
59
60
|
i0.ɵɵadvance(2);
|
|
60
61
|
i0.ɵɵproperty("disabled", !ctx_r1.CanShareAny(ctx_r1.SelectedIds))("title", ctx_r1.CanShareAny(ctx_r1.SelectedIds) ? "Share" : ctx_r1.ShareRefusedReason);
|
|
61
62
|
} }
|
|
@@ -359,10 +360,15 @@ function ConversationListComponent_Conditional_7_Template(rf, ctx) { if (rf & 1)
|
|
|
359
360
|
} }
|
|
360
361
|
function ConversationListComponent_ng_template_8_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
361
362
|
i0.ɵɵelementStart(0, "span", 65);
|
|
362
|
-
i0.ɵɵelement(1, "i",
|
|
363
|
+
i0.ɵɵelement(1, "i", 70);
|
|
363
364
|
i0.ɵɵelementEnd();
|
|
364
365
|
} }
|
|
365
|
-
function
|
|
366
|
+
function ConversationListComponent_ng_template_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
367
|
+
i0.ɵɵelementStart(0, "span", 66);
|
|
368
|
+
i0.ɵɵelement(1, "i", 71);
|
|
369
|
+
i0.ɵɵelementEnd();
|
|
370
|
+
} }
|
|
371
|
+
function ConversationListComponent_ng_template_8_Conditional_10_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
366
372
|
i0.ɵɵelementContainer(0, 47);
|
|
367
373
|
} if (rf & 2) {
|
|
368
374
|
const child_r22 = i0.ɵɵnextContext().$implicit;
|
|
@@ -370,14 +376,14 @@ function ConversationListComponent_ng_template_8_Conditional_9_For_2_Conditional
|
|
|
370
376
|
const folderNode_r15 = i0.ɵɵreference(9);
|
|
371
377
|
i0.ɵɵproperty("ngTemplateOutlet", folderNode_r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, child_r22));
|
|
372
378
|
} }
|
|
373
|
-
function
|
|
374
|
-
i0.ɵɵconditionalCreate(0,
|
|
379
|
+
function ConversationListComponent_ng_template_8_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
380
|
+
i0.ɵɵconditionalCreate(0, ConversationListComponent_ng_template_8_Conditional_10_For_2_Conditional_0_Template, 1, 4, "ng-container", 47);
|
|
375
381
|
} if (rf & 2) {
|
|
376
382
|
const child_r22 = ctx.$implicit;
|
|
377
383
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
378
384
|
i0.ɵɵconditional(!ctx_r1.IsSearching || child_r22.hasContent ? 0 : -1);
|
|
379
385
|
} }
|
|
380
|
-
function
|
|
386
|
+
function ConversationListComponent_ng_template_8_Conditional_10_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
381
387
|
i0.ɵɵelementContainer(0, 47);
|
|
382
388
|
} if (rf & 2) {
|
|
383
389
|
const conversation_r23 = ctx.$implicit;
|
|
@@ -386,7 +392,7 @@ function ConversationListComponent_ng_template_8_Conditional_9_For_4_Template(rf
|
|
|
386
392
|
const conversationItem_r12 = i0.ɵɵreference(11);
|
|
387
393
|
i0.ɵɵproperty("ngTemplateOutlet", conversationItem_r12)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c3, conversation_r23, node_r21.depth + 1));
|
|
388
394
|
} }
|
|
389
|
-
function
|
|
395
|
+
function ConversationListComponent_ng_template_8_Conditional_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
390
396
|
i0.ɵɵelementStart(0, "div", 56);
|
|
391
397
|
i0.ɵɵtext(1, "Empty \u2014 drop a conversation here");
|
|
392
398
|
i0.ɵɵelementEnd();
|
|
@@ -394,11 +400,11 @@ function ConversationListComponent_ng_template_8_Conditional_9_Conditional_5_Tem
|
|
|
394
400
|
const node_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
395
401
|
i0.ɵɵstyleProp("padding-left", 26 + node_r21.depth * 14, "px");
|
|
396
402
|
} }
|
|
397
|
-
function
|
|
398
|
-
i0.ɵɵelementStart(0, "div",
|
|
399
|
-
i0.ɵɵrepeaterCreate(1,
|
|
400
|
-
i0.ɵɵrepeaterCreate(3,
|
|
401
|
-
i0.ɵɵconditionalCreate(5,
|
|
403
|
+
function ConversationListComponent_ng_template_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
404
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
405
|
+
i0.ɵɵrepeaterCreate(1, ConversationListComponent_ng_template_8_Conditional_10_For_2_Template, 1, 1, null, null, _forTrack1);
|
|
406
|
+
i0.ɵɵrepeaterCreate(3, ConversationListComponent_ng_template_8_Conditional_10_For_4_Template, 1, 5, "ng-container", 47, _forTrack0);
|
|
407
|
+
i0.ɵɵconditionalCreate(5, ConversationListComponent_ng_template_8_Conditional_10_Conditional_5_Template, 2, 2, "div", 72);
|
|
402
408
|
i0.ɵɵelementEnd();
|
|
403
409
|
} if (rf & 2) {
|
|
404
410
|
const node_r21 = i0.ɵɵnextContext().$implicit;
|
|
@@ -418,12 +424,12 @@ function ConversationListComponent_ng_template_8_Template(rf, ctx) { if (rf & 1)
|
|
|
418
424
|
i0.ɵɵelementStart(3, "span", 64);
|
|
419
425
|
i0.ɵɵtext(4);
|
|
420
426
|
i0.ɵɵelementEnd();
|
|
421
|
-
i0.ɵɵconditionalCreate(5, ConversationListComponent_ng_template_8_Conditional_5_Template, 2, 0, "span", 65);
|
|
422
|
-
i0.ɵɵelement(
|
|
423
|
-
i0.ɵɵelementStart(
|
|
424
|
-
i0.ɵɵtext(
|
|
427
|
+
i0.ɵɵconditionalCreate(5, ConversationListComponent_ng_template_8_Conditional_5_Template, 2, 0, "span", 65)(6, ConversationListComponent_ng_template_8_Conditional_6_Template, 2, 0, "span", 66);
|
|
428
|
+
i0.ɵɵelement(7, "span", 67);
|
|
429
|
+
i0.ɵɵelementStart(8, "span", 68);
|
|
430
|
+
i0.ɵɵtext(9);
|
|
425
431
|
i0.ɵɵelementEnd()();
|
|
426
|
-
i0.ɵɵconditionalCreate(
|
|
432
|
+
i0.ɵɵconditionalCreate(10, ConversationListComponent_ng_template_8_Conditional_10_Template, 6, 1, "div", 69);
|
|
427
433
|
} if (rf & 2) {
|
|
428
434
|
const node_r21 = ctx.$implicit;
|
|
429
435
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -438,47 +444,51 @@ function ConversationListComponent_ng_template_8_Template(rf, ctx) { if (rf & 1)
|
|
|
438
444
|
i0.ɵɵadvance(2);
|
|
439
445
|
i0.ɵɵtextInterpolate(node_r21.project.Name);
|
|
440
446
|
i0.ɵɵadvance();
|
|
441
|
-
i0.ɵɵconditional(!node_r21.project.OwnerUserID ? 5 : -1);
|
|
442
|
-
i0.ɵɵadvance(
|
|
447
|
+
i0.ɵɵconditional(!node_r21.project.OwnerUserID ? 5 : ctx_r1.GetProjectVisibilityTier(node_r21.project) === "Shared" ? 6 : -1);
|
|
448
|
+
i0.ɵɵadvance(4);
|
|
443
449
|
i0.ɵɵtextInterpolate(node_r21.totalCount);
|
|
444
450
|
i0.ɵɵadvance();
|
|
445
|
-
i0.ɵɵconditional(ctx_r1.IsFolderExpanded(node_r21.project.ID) ?
|
|
451
|
+
i0.ɵɵconditional(ctx_r1.IsFolderExpanded(node_r21.project.ID) ? 10 : -1);
|
|
446
452
|
} }
|
|
447
453
|
function ConversationListComponent_ng_template_10_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
448
|
-
i0.ɵɵelementStart(0, "div",
|
|
449
|
-
i0.ɵɵelement(1, "i",
|
|
454
|
+
i0.ɵɵelementStart(0, "div", 77);
|
|
455
|
+
i0.ɵɵelement(1, "i", 88);
|
|
450
456
|
i0.ɵɵelementEnd();
|
|
451
457
|
} }
|
|
452
458
|
function ConversationListComponent_ng_template_10_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
453
|
-
i0.ɵɵelement(0, "i",
|
|
459
|
+
i0.ɵɵelement(0, "i", 82);
|
|
454
460
|
} if (rf & 2) {
|
|
455
461
|
const conversation_r25 = i0.ɵɵnextContext().$implicit;
|
|
456
462
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
457
463
|
i0.ɵɵproperty("title", ctx_r1.SharedWithMeTooltip(conversation_r25));
|
|
458
464
|
} }
|
|
465
|
+
function ConversationListComponent_ng_template_10_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
466
|
+
i0.ɵɵelement(0, "i", 83);
|
|
467
|
+
} }
|
|
459
468
|
function ConversationListComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
460
469
|
const _r24 = i0.ɵɵgetCurrentView();
|
|
461
|
-
i0.ɵɵelementStart(0, "div",
|
|
470
|
+
i0.ɵɵelementStart(0, "div", 73);
|
|
462
471
|
i0.ɵɵlistener("dragstart", function ConversationListComponent_ng_template_10_Template_div_dragstart_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConversationDragStart(conversation_r25, $event)); })("dragend", function ConversationListComponent_ng_template_10_Template_div_dragend_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConversationDragEnd()); })("dragover", function ConversationListComponent_ng_template_10_Template_div_dragover_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConversationRowDragOver(conversation_r25, $event)); })("dragleave", function ConversationListComponent_ng_template_10_Template_div_dragleave_0_listener() { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDragLeave(ctx_r1.ConversationDropTargetId(conversation_r25))); })("drop", function ConversationListComponent_ng_template_10_Template_div_drop_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConversationRowDrop(conversation_r25, $event)); })("pointerdown", function ConversationListComponent_ng_template_10_Template_div_pointerdown_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRowPointerDown(conversation_r25, $event)); })("pointermove", function ConversationListComponent_ng_template_10_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRowPointerMove($event)); })("pointerup", function ConversationListComponent_ng_template_10_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CancelLongPress()); })("pointercancel", function ConversationListComponent_ng_template_10_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CancelLongPress()); })("click", function ConversationListComponent_ng_template_10_Template_div_click_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.HandleConversationClick(conversation_r25, $event)); })("contextmenu", function ConversationListComponent_ng_template_10_Template_div_contextmenu_0_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConversationContextMenu(conversation_r25, $event)); });
|
|
463
|
-
i0.ɵɵelementStart(1, "button",
|
|
472
|
+
i0.ɵɵelementStart(1, "button", 74);
|
|
464
473
|
i0.ɵɵlistener("click", function ConversationListComponent_ng_template_10_Template_button_click_1_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRowCheckboxClick(conversation_r25, $event)); });
|
|
465
|
-
i0.ɵɵelement(2, "i",
|
|
474
|
+
i0.ɵɵelement(2, "i", 75);
|
|
466
475
|
i0.ɵɵelementEnd();
|
|
467
|
-
i0.ɵɵelementStart(3, "div",
|
|
468
|
-
i0.ɵɵconditionalCreate(4, ConversationListComponent_ng_template_10_Conditional_4_Template, 2, 0, "div",
|
|
469
|
-
i0.ɵɵelementStart(5, "div",
|
|
470
|
-
i0.ɵɵelement(6, "mj-notification-badge",
|
|
476
|
+
i0.ɵɵelementStart(3, "div", 76);
|
|
477
|
+
i0.ɵɵconditionalCreate(4, ConversationListComponent_ng_template_10_Conditional_4_Template, 2, 0, "div", 77);
|
|
478
|
+
i0.ɵɵelementStart(5, "div", 78);
|
|
479
|
+
i0.ɵɵelement(6, "mj-notification-badge", 79);
|
|
471
480
|
i0.ɵɵelementEnd()();
|
|
472
|
-
i0.ɵɵelementStart(7, "div",
|
|
481
|
+
i0.ɵɵelementStart(7, "div", 80)(8, "div", 81);
|
|
473
482
|
i0.ɵɵtext(9);
|
|
474
|
-
i0.ɵɵconditionalCreate(10, ConversationListComponent_ng_template_10_Conditional_10_Template, 1, 1, "i",
|
|
483
|
+
i0.ɵɵconditionalCreate(10, ConversationListComponent_ng_template_10_Conditional_10_Template, 1, 1, "i", 82);
|
|
484
|
+
i0.ɵɵconditionalCreate(11, ConversationListComponent_ng_template_10_Conditional_11_Template, 1, 0, "i", 83);
|
|
475
485
|
i0.ɵɵelementEnd();
|
|
476
|
-
i0.ɵɵelementStart(
|
|
477
|
-
i0.ɵɵtext(
|
|
486
|
+
i0.ɵɵelementStart(12, "div", 84);
|
|
487
|
+
i0.ɵɵtext(13);
|
|
478
488
|
i0.ɵɵelementEnd()();
|
|
479
|
-
i0.ɵɵelementStart(
|
|
480
|
-
i0.ɵɵlistener("click", function
|
|
481
|
-
i0.ɵɵelement(
|
|
489
|
+
i0.ɵɵelementStart(14, "div", 85)(15, "button", 86);
|
|
490
|
+
i0.ɵɵlistener("click", function ConversationListComponent_ng_template_10_Template_button_click_15_listener($event) { const conversation_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OpenRowMenu(conversation_r25, $event)); });
|
|
491
|
+
i0.ɵɵelement(16, "i", 87);
|
|
482
492
|
i0.ɵɵelementEnd()()();
|
|
483
493
|
} if (rf & 2) {
|
|
484
494
|
const conversation_r25 = ctx.$implicit;
|
|
@@ -486,7 +496,7 @@ function ConversationListComponent_ng_template_10_Template(rf, ctx) { if (rf & 1
|
|
|
486
496
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
487
497
|
i0.ɵɵstyleProp("padding-left", depth_r26 ? 16 + depth_r26 * 14 : 16, "px");
|
|
488
498
|
i0.ɵɵclassProp("active", ctx_r1.IsConversationActive(conversation_r25))("selected", ctx_r1.IsConversationSelected(conversation_r25))("renamed", ctx_r1.IsConversationRenamed(conversation_r25))("dragging", ctx_r1.IsConversationDragging(conversation_r25));
|
|
489
|
-
i0.ɵɵproperty("draggable", ctx_r1.
|
|
499
|
+
i0.ɵɵproperty("draggable", ctx_r1.CanMove(conversation_r25));
|
|
490
500
|
i0.ɵɵadvance();
|
|
491
501
|
i0.ɵɵstyleProp("left", (depth_r26 || 0) * 14 + 4, "px");
|
|
492
502
|
i0.ɵɵclassProp("checked", ctx_r1.IsConversationSelected(conversation_r25));
|
|
@@ -501,12 +511,14 @@ function ConversationListComponent_ng_template_10_Template(rf, ctx) { if (rf & 1
|
|
|
501
511
|
i0.ɵɵtextInterpolate1(" ", conversation_r25.Name, " ");
|
|
502
512
|
i0.ɵɵadvance();
|
|
503
513
|
i0.ɵɵconditional(ctx_r1.IsSharedWithMe(conversation_r25) ? 10 : -1);
|
|
514
|
+
i0.ɵɵadvance();
|
|
515
|
+
i0.ɵɵconditional(conversation_r25.ProjectID && ctx_r1.IsConversationInheritingFolderAccess(conversation_r25) ? 11 : -1);
|
|
504
516
|
i0.ɵɵadvance(2);
|
|
505
517
|
i0.ɵɵtextInterpolate(conversation_r25.Description);
|
|
506
518
|
} }
|
|
507
519
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
|
|
508
520
|
const _r29 = i0.ɵɵgetCurrentView();
|
|
509
|
-
i0.ɵɵelementStart(0, "button",
|
|
521
|
+
i0.ɵɵelementStart(0, "button", 94);
|
|
510
522
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_0_For_11_Template_button_click_0_listener() { const f_r30 = i0.ɵɵrestoreView(_r29).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextMoveToFolder(f_r30.project.ID)); });
|
|
511
523
|
i0.ɵɵelement(1, "i");
|
|
512
524
|
i0.ɵɵelementStart(2, "span");
|
|
@@ -525,23 +537,23 @@ function ConversationListComponent_Conditional_13_Case_2_Conditional_0_For_11_Te
|
|
|
525
537
|
} }
|
|
526
538
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
527
539
|
const _r28 = i0.ɵɵgetCurrentView();
|
|
528
|
-
i0.ɵɵelementStart(0, "button",
|
|
540
|
+
i0.ɵɵelementStart(0, "button", 90);
|
|
529
541
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.CloseMoveSubmenu($event)); });
|
|
530
|
-
i0.ɵɵelement(1, "i",
|
|
542
|
+
i0.ɵɵelement(1, "i", 91);
|
|
531
543
|
i0.ɵɵelementStart(2, "span");
|
|
532
544
|
i0.ɵɵtext(3, "Move to folder");
|
|
533
545
|
i0.ɵɵelementEnd()();
|
|
534
|
-
i0.ɵɵelement(4, "div",
|
|
535
|
-
i0.ɵɵelementStart(5, "div",
|
|
546
|
+
i0.ɵɵelement(4, "div", 92);
|
|
547
|
+
i0.ɵɵelementStart(5, "div", 93)(6, "button", 94);
|
|
536
548
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ContextMoveToFolder(null)); });
|
|
537
|
-
i0.ɵɵelement(7, "i",
|
|
549
|
+
i0.ɵɵelement(7, "i", 95);
|
|
538
550
|
i0.ɵɵelementStart(8, "span");
|
|
539
551
|
i0.ɵɵtext(9, "No folder");
|
|
540
552
|
i0.ɵɵelementEnd()();
|
|
541
|
-
i0.ɵɵrepeaterCreate(10, ConversationListComponent_Conditional_13_Case_2_Conditional_0_For_11_Template, 4, 10, "button",
|
|
553
|
+
i0.ɵɵrepeaterCreate(10, ConversationListComponent_Conditional_13_Case_2_Conditional_0_For_11_Template, 4, 10, "button", 96, _forTrack1);
|
|
542
554
|
i0.ɵɵelementEnd();
|
|
543
|
-
i0.ɵɵelement(12, "div",
|
|
544
|
-
i0.ɵɵelementStart(13, "button",
|
|
555
|
+
i0.ɵɵelement(12, "div", 92);
|
|
556
|
+
i0.ɵɵelementStart(13, "button", 94);
|
|
545
557
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template_button_click_13_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ContextMoveToNewFolder($event)); });
|
|
546
558
|
i0.ɵɵelement(14, "i", 55);
|
|
547
559
|
i0.ɵɵelementStart(15, "span");
|
|
@@ -556,18 +568,18 @@ function ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template(
|
|
|
556
568
|
} }
|
|
557
569
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
558
570
|
const _r32 = i0.ɵɵgetCurrentView();
|
|
559
|
-
i0.ɵɵelementStart(0, "div",
|
|
571
|
+
i0.ɵɵelementStart(0, "div", 102);
|
|
560
572
|
i0.ɵɵtext(1);
|
|
561
573
|
i0.ɵɵelementEnd();
|
|
562
|
-
i0.ɵɵelementStart(2, "button",
|
|
574
|
+
i0.ɵɵelementStart(2, "button", 98);
|
|
563
575
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_0_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextSetPinned(true)); });
|
|
564
576
|
i0.ɵɵelement(3, "i", 20);
|
|
565
577
|
i0.ɵɵelementStart(4, "span");
|
|
566
578
|
i0.ɵɵtext(5, "Pin");
|
|
567
579
|
i0.ɵɵelementEnd()();
|
|
568
|
-
i0.ɵɵelementStart(6, "button",
|
|
580
|
+
i0.ɵɵelementStart(6, "button", 98);
|
|
569
581
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextSetPinned(false)); });
|
|
570
|
-
i0.ɵɵelement(7, "i",
|
|
582
|
+
i0.ɵɵelement(7, "i", 103);
|
|
571
583
|
i0.ɵɵelementStart(8, "span");
|
|
572
584
|
i0.ɵɵtext(9, "Unpin");
|
|
573
585
|
i0.ɵɵelementEnd()();
|
|
@@ -584,7 +596,7 @@ function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Condition
|
|
|
584
596
|
} }
|
|
585
597
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
586
598
|
const _r33 = i0.ɵɵgetCurrentView();
|
|
587
|
-
i0.ɵɵelementStart(0, "button",
|
|
599
|
+
i0.ɵɵelementStart(0, "button", 98);
|
|
588
600
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextTogglePin()); });
|
|
589
601
|
i0.ɵɵelement(1, "i", 20);
|
|
590
602
|
i0.ɵɵelementStart(2, "span");
|
|
@@ -599,109 +611,140 @@ function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Condition
|
|
|
599
611
|
} }
|
|
600
612
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
601
613
|
const _r34 = i0.ɵɵgetCurrentView();
|
|
602
|
-
i0.ɵɵelementStart(0, "button",
|
|
603
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.
|
|
604
|
-
i0.ɵɵelement(1, "i",
|
|
614
|
+
i0.ɵɵelementStart(0, "button", 98);
|
|
615
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextToggleFolderInheritance()); });
|
|
616
|
+
i0.ɵɵelement(1, "i", 42);
|
|
617
|
+
i0.ɵɵelementStart(2, "span");
|
|
618
|
+
i0.ɵɵtext(3);
|
|
619
|
+
i0.ɵɵelementEnd()();
|
|
620
|
+
} if (rf & 2) {
|
|
621
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
622
|
+
i0.ɵɵproperty("disabled", !ctx_r1.CanMoveAny(ctx_r1.ContextMenu.targets));
|
|
623
|
+
i0.ɵɵattribute("title", ctx_r1.CanMoveAny(ctx_r1.ContextMenu.targets) ? null : ctx_r1.MoveRefusedReason);
|
|
624
|
+
i0.ɵɵadvance();
|
|
625
|
+
i0.ɵɵproperty("ngClass", ctx_r1.IsConversationInheritingFolderAccess(ctx_r1.ContextMenu.conversation) ? "fa-lock" : "fa-folder-open");
|
|
626
|
+
i0.ɵɵadvance(2);
|
|
627
|
+
i0.ɵɵtextInterpolate(ctx_r1.IsConversationInheritingFolderAccess(ctx_r1.ContextMenu.conversation) ? "Restrict folder access" : "Inherit folder access");
|
|
628
|
+
} }
|
|
629
|
+
function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
630
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
631
|
+
i0.ɵɵelementStart(0, "button", 94);
|
|
632
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ContextRename()); });
|
|
633
|
+
i0.ɵɵelement(1, "i", 104);
|
|
605
634
|
i0.ɵɵelementStart(2, "span");
|
|
606
635
|
i0.ɵɵtext(3, "Rename");
|
|
607
636
|
i0.ɵɵelementEnd()();
|
|
608
637
|
} }
|
|
609
638
|
function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
610
639
|
const _r31 = i0.ɵɵgetCurrentView();
|
|
611
|
-
i0.ɵɵconditionalCreate(0, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_0_Template, 10, 5)(1, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_1_Template, 4, 3, "button",
|
|
612
|
-
i0.ɵɵelementStart(2, "button",
|
|
640
|
+
i0.ɵɵconditionalCreate(0, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_0_Template, 10, 5)(1, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_1_Template, 4, 3, "button", 97);
|
|
641
|
+
i0.ɵɵelementStart(2, "button", 98);
|
|
613
642
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenMoveSubmenu($event)); });
|
|
614
643
|
i0.ɵɵelement(3, "i", 22);
|
|
615
644
|
i0.ɵɵelementStart(4, "span");
|
|
616
645
|
i0.ɵɵtext(5, "Move to folder");
|
|
617
646
|
i0.ɵɵelementEnd();
|
|
618
|
-
i0.ɵɵelement(6, "i",
|
|
647
|
+
i0.ɵɵelement(6, "i", 99);
|
|
619
648
|
i0.ɵɵelementEnd();
|
|
620
|
-
i0.ɵɵelementStart(7, "button",
|
|
649
|
+
i0.ɵɵelementStart(7, "button", 98);
|
|
621
650
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ContextShare()); });
|
|
622
651
|
i0.ɵɵelement(8, "i", 24);
|
|
623
652
|
i0.ɵɵelementStart(9, "span");
|
|
624
653
|
i0.ɵɵtext(10);
|
|
625
654
|
i0.ɵɵelementEnd()();
|
|
626
|
-
i0.ɵɵconditionalCreate(11, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_11_Template, 4,
|
|
627
|
-
i0.ɵɵ
|
|
628
|
-
i0.ɵɵ
|
|
629
|
-
i0.ɵɵ
|
|
630
|
-
i0.ɵɵ
|
|
631
|
-
i0.ɵɵ
|
|
632
|
-
i0.ɵɵ
|
|
655
|
+
i0.ɵɵconditionalCreate(11, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_11_Template, 4, 4, "button", 97);
|
|
656
|
+
i0.ɵɵconditionalCreate(12, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Conditional_12_Template, 4, 0, "button", 100);
|
|
657
|
+
i0.ɵɵelement(13, "div", 92);
|
|
658
|
+
i0.ɵɵelementStart(14, "button", 101);
|
|
659
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ContextDelete()); });
|
|
660
|
+
i0.ɵɵelement(15, "i", 26);
|
|
661
|
+
i0.ɵɵelementStart(16, "span");
|
|
662
|
+
i0.ɵɵtext(17);
|
|
633
663
|
i0.ɵɵelementEnd()();
|
|
634
664
|
} if (rf & 2) {
|
|
635
665
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
636
666
|
i0.ɵɵconditional(ctx_r1.ContextMenu.targets.length > 1 ? 0 : 1);
|
|
637
667
|
i0.ɵɵadvance(2);
|
|
638
|
-
i0.ɵɵproperty("disabled", !ctx_r1.
|
|
639
|
-
i0.ɵɵattribute("title", ctx_r1.
|
|
668
|
+
i0.ɵɵproperty("disabled", !ctx_r1.CanMoveAny(ctx_r1.ContextMenu.targets));
|
|
669
|
+
i0.ɵɵattribute("title", ctx_r1.CanMoveAny(ctx_r1.ContextMenu.targets) ? null : ctx_r1.MoveRefusedReason);
|
|
640
670
|
i0.ɵɵadvance(5);
|
|
641
671
|
i0.ɵɵproperty("disabled", !ctx_r1.CanShareAny(ctx_r1.ContextMenu.targets));
|
|
642
672
|
i0.ɵɵattribute("title", ctx_r1.CanShareAny(ctx_r1.ContextMenu.targets) ? null : ctx_r1.ShareRefusedReason);
|
|
643
673
|
i0.ɵɵadvance(3);
|
|
644
674
|
i0.ɵɵtextInterpolate(ctx_r1.ContextMenu.targets.length > 1 ? "Share " + ctx_r1.ContextMenu.targets.length + " conversations" : "Share");
|
|
645
675
|
i0.ɵɵadvance();
|
|
646
|
-
i0.ɵɵconditional(ctx_r1.ContextMenu.targets.length === 1 ? 11 : -1);
|
|
676
|
+
i0.ɵɵconditional(ctx_r1.ContextMenu.targets.length === 1 && (ctx_r1.ContextMenu.conversation == null ? null : ctx_r1.ContextMenu.conversation.ProjectID) ? 11 : -1);
|
|
677
|
+
i0.ɵɵadvance();
|
|
678
|
+
i0.ɵɵconditional(ctx_r1.ContextMenu.targets.length === 1 ? 12 : -1);
|
|
647
679
|
i0.ɵɵadvance(5);
|
|
648
680
|
i0.ɵɵtextInterpolate(ctx_r1.ContextMenu.targets.length > 1 ? "Delete " + ctx_r1.ContextMenu.targets.length : "Delete");
|
|
649
681
|
} }
|
|
650
682
|
function ConversationListComponent_Conditional_13_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
651
|
-
i0.ɵɵconditionalCreate(0, ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template, 17, 2)(1, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template,
|
|
683
|
+
i0.ɵɵconditionalCreate(0, ConversationListComponent_Conditional_13_Case_2_Conditional_0_Template, 17, 2)(1, ConversationListComponent_Conditional_13_Case_2_Conditional_1_Template, 18, 9);
|
|
652
684
|
} if (rf & 2) {
|
|
653
685
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
654
686
|
i0.ɵɵconditional(ctx_r1.IsMoveSubmenuOpen ? 0 : 1);
|
|
655
687
|
} }
|
|
656
688
|
function ConversationListComponent_Conditional_13_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
657
|
-
const
|
|
658
|
-
i0.ɵɵelementStart(0, "button",
|
|
659
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
689
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
690
|
+
i0.ɵɵelementStart(0, "button", 94);
|
|
691
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextCreateSubfolder($event)); });
|
|
660
692
|
i0.ɵɵelement(1, "i", 55);
|
|
661
693
|
i0.ɵɵelementStart(2, "span");
|
|
662
694
|
i0.ɵɵtext(3, "New Subfolder");
|
|
663
695
|
i0.ɵɵelementEnd()();
|
|
664
|
-
i0.ɵɵelementStart(4, "button",
|
|
665
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(
|
|
666
|
-
i0.ɵɵelement(5, "i",
|
|
696
|
+
i0.ɵɵelementStart(4, "button", 98);
|
|
697
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextShareFolder($event)); });
|
|
698
|
+
i0.ɵɵelement(5, "i", 24);
|
|
667
699
|
i0.ɵɵelementStart(6, "span");
|
|
668
|
-
i0.ɵɵtext(7, "
|
|
700
|
+
i0.ɵɵtext(7, "Share");
|
|
669
701
|
i0.ɵɵelementEnd()();
|
|
670
|
-
i0.ɵɵ
|
|
671
|
-
i0.ɵɵ
|
|
672
|
-
i0.ɵɵ
|
|
673
|
-
i0.ɵɵ
|
|
674
|
-
i0.ɵɵ
|
|
675
|
-
i0.ɵɵ
|
|
702
|
+
i0.ɵɵelementStart(8, "button", 94);
|
|
703
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_8_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextEditFolder($event)); });
|
|
704
|
+
i0.ɵɵelement(9, "i", 105);
|
|
705
|
+
i0.ɵɵelementStart(10, "span");
|
|
706
|
+
i0.ɵɵtext(11, "Rename");
|
|
707
|
+
i0.ɵɵelementEnd()();
|
|
708
|
+
i0.ɵɵelement(12, "div", 92);
|
|
709
|
+
i0.ɵɵelementStart(13, "button", 101);
|
|
710
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_3_Template_button_click_13_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextDeleteFolder($event)); });
|
|
711
|
+
i0.ɵɵelement(14, "i", 26);
|
|
712
|
+
i0.ɵɵelementStart(15, "span");
|
|
713
|
+
i0.ɵɵtext(16, "Delete");
|
|
676
714
|
i0.ɵɵelementEnd()();
|
|
715
|
+
} if (rf & 2) {
|
|
716
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
717
|
+
i0.ɵɵadvance(4);
|
|
718
|
+
i0.ɵɵproperty("disabled", !ctx_r1.CanShareFolder(ctx_r1.ContextMenu.folder));
|
|
719
|
+
i0.ɵɵattribute("title", ctx_r1.CanShareFolder(ctx_r1.ContextMenu.folder) ? null : ctx_r1.FolderShareRefusedReason);
|
|
677
720
|
} }
|
|
678
721
|
function ConversationListComponent_Conditional_13_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
679
|
-
const
|
|
680
|
-
i0.ɵɵelementStart(0, "button",
|
|
681
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
722
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
723
|
+
i0.ɵɵelementStart(0, "button", 94);
|
|
724
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextNewConversation()); });
|
|
682
725
|
i0.ɵɵelement(1, "i", 44);
|
|
683
726
|
i0.ɵɵelementStart(2, "span");
|
|
684
727
|
i0.ɵɵtext(3, "New Conversation");
|
|
685
728
|
i0.ɵɵelementEnd()();
|
|
686
|
-
i0.ɵɵelementStart(4, "button",
|
|
687
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(
|
|
729
|
+
i0.ɵɵelementStart(4, "button", 94);
|
|
730
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextCreateRootFolder($event)); });
|
|
688
731
|
i0.ɵɵelement(5, "i", 55);
|
|
689
732
|
i0.ɵɵelementStart(6, "span");
|
|
690
733
|
i0.ɵɵtext(7, "New Folder");
|
|
691
734
|
i0.ɵɵelementEnd()();
|
|
692
|
-
i0.ɵɵelement(8, "div",
|
|
693
|
-
i0.ɵɵelementStart(9, "button",
|
|
694
|
-
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_9_listener() { i0.ɵɵrestoreView(
|
|
695
|
-
i0.ɵɵelement(10, "i",
|
|
735
|
+
i0.ɵɵelement(8, "div", 92);
|
|
736
|
+
i0.ɵɵelementStart(9, "button", 94);
|
|
737
|
+
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Case_4_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ContextSelectAll()); });
|
|
738
|
+
i0.ɵɵelement(10, "i", 106);
|
|
696
739
|
i0.ɵɵelementStart(11, "span");
|
|
697
740
|
i0.ɵɵtext(12, "Select All");
|
|
698
741
|
i0.ɵɵelementEnd()();
|
|
699
742
|
} }
|
|
700
743
|
function ConversationListComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
701
744
|
const _r27 = i0.ɵɵgetCurrentView();
|
|
702
|
-
i0.ɵɵelementStart(0, "div",
|
|
745
|
+
i0.ɵɵelementStart(0, "div", 89, 3);
|
|
703
746
|
i0.ɵɵlistener("click", function ConversationListComponent_Conditional_13_Template_div_click_0_listener($event) { return $event.stopPropagation(); })("contextmenu", function ConversationListComponent_Conditional_13_Template_div_contextmenu_0_listener($event) { i0.ɵɵrestoreView(_r27); $event.preventDefault(); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
704
|
-
i0.ɵɵconditionalCreate(2, ConversationListComponent_Conditional_13_Case_2_Template, 2, 1)(3, ConversationListComponent_Conditional_13_Case_3_Template,
|
|
747
|
+
i0.ɵɵconditionalCreate(2, ConversationListComponent_Conditional_13_Case_2_Template, 2, 1)(3, ConversationListComponent_Conditional_13_Case_3_Template, 17, 2)(4, ConversationListComponent_Conditional_13_Case_4_Template, 13, 0);
|
|
705
748
|
i0.ɵɵelementEnd();
|
|
706
749
|
} if (rf & 2) {
|
|
707
750
|
let tmp_6_0;
|
|
@@ -815,11 +858,15 @@ export class ConversationListComponent {
|
|
|
815
858
|
ContextMenu = null;
|
|
816
859
|
/** True while the open conversation menu is showing its folder picker. */
|
|
817
860
|
IsMoveSubmenuOpen = false;
|
|
818
|
-
/** Resources the share dialog is currently offering, one per conversation. */
|
|
861
|
+
/** Resources the share dialog is currently offering, one per conversation or folder. */
|
|
819
862
|
ShareContexts = [];
|
|
820
863
|
ShareNotice = null;
|
|
821
864
|
IsShareDialogOpen = false;
|
|
822
|
-
|
|
865
|
+
conversationShareAdapter = new MJResourcePermissionShareAdapter(CONVERSATIONS_RESOURCE_TYPE_ID);
|
|
866
|
+
folderShareAdapter = new MJResourcePermissionShareAdapter(PROJECTS_RESOURCE_TYPE_ID);
|
|
867
|
+
ShareAdapter = this.conversationShareAdapter;
|
|
868
|
+
ShareResourceLabel = 'conversation';
|
|
869
|
+
isSharingFolder = false;
|
|
823
870
|
ConversationIdsWithTasks = new Set();
|
|
824
871
|
IsSelectionMode = false;
|
|
825
872
|
SelectedConversationIds = new Set();
|
|
@@ -827,8 +874,12 @@ export class ConversationListComponent {
|
|
|
827
874
|
selectionAnchorId = null;
|
|
828
875
|
/** Why Share is unavailable, shown on its disabled button. */
|
|
829
876
|
ShareRefusedReason = 'Only the owner, or someone with Owner access, can share a conversation';
|
|
877
|
+
/** Why Folder Share is unavailable, shown on its disabled button. */
|
|
878
|
+
FolderShareRefusedReason = 'Only the folder owner, or someone with Owner access, can share a folder';
|
|
830
879
|
/** Why Move and Pin are unavailable, shown on their disabled buttons. */
|
|
831
|
-
ChangeRefusedReason = 'You need Edit access to
|
|
880
|
+
ChangeRefusedReason = 'You need Edit access to pin a conversation shared with you';
|
|
881
|
+
/** Why moving a conversation, or changing its folder access, is refused. */
|
|
882
|
+
MoveRefusedReason = "Only the conversation's owner can move it or change its folder access";
|
|
832
883
|
/** How long a touch must rest on a row before it selects the row. */
|
|
833
884
|
static longPressDelayMs = 500;
|
|
834
885
|
/** How far a touch may drift, in pixels, before it counts as a scroll rather than a press. */
|
|
@@ -1384,8 +1435,20 @@ export class ConversationListComponent {
|
|
|
1384
1435
|
async moveConversations(conversationIds, projectId) {
|
|
1385
1436
|
// Dropping onto a folder's own contents is easy to do by accident — skip the
|
|
1386
1437
|
// conversations that already live there rather than re-saving them.
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1438
|
+
const notThere = conversationIds.filter(id => !this.isInProject(id, projectId));
|
|
1439
|
+
// Only an owner can move a conversation; the server refuses anyone else.
|
|
1440
|
+
const toMove = notThere.filter(id => {
|
|
1441
|
+
const conversation = this.engine.GetConversation(id);
|
|
1442
|
+
return !!conversation && this.CanMove(conversation);
|
|
1443
|
+
});
|
|
1444
|
+
if (toMove.length === 0) {
|
|
1445
|
+
if (notThere.length > 0) {
|
|
1446
|
+
await this.dialogService.alert('Cannot Move', `${this.MoveRefusedReason}.`);
|
|
1447
|
+
}
|
|
1448
|
+
return;
|
|
1449
|
+
}
|
|
1450
|
+
// A Shared or Public folder shows the conversations in it that inherit its access to everyone it is shared with.
|
|
1451
|
+
if (!(await ConfirmMoveIntoFolder(this.dialogService, this.engine, projectId, toMove.map(id => this.engine.GetConversation(id)))))
|
|
1389
1452
|
return;
|
|
1390
1453
|
try {
|
|
1391
1454
|
const result = await this.engine.MoveMultipleConversationsToProject(toMove, projectId, this.CurrentUser);
|
|
@@ -1581,6 +1644,9 @@ export class ConversationListComponent {
|
|
|
1581
1644
|
return;
|
|
1582
1645
|
}
|
|
1583
1646
|
const skipped = conversations.length - shareable.length;
|
|
1647
|
+
this.isSharingFolder = false;
|
|
1648
|
+
this.ShareAdapter = this.conversationShareAdapter;
|
|
1649
|
+
this.ShareResourceLabel = 'conversation';
|
|
1584
1650
|
this.ShareContexts = shareable.map(c => ({
|
|
1585
1651
|
ResourceID: c.ID,
|
|
1586
1652
|
ResourceName: c.Name ?? 'Conversation',
|
|
@@ -1602,6 +1668,69 @@ export class ConversationListComponent {
|
|
|
1602
1668
|
return false;
|
|
1603
1669
|
return this.engine.CanShareConversation(conversation, this.CurrentUser.ID);
|
|
1604
1670
|
}
|
|
1671
|
+
/** True when the current user owns the folder or holds Owner permission on it. */
|
|
1672
|
+
CanShareFolder(folder) {
|
|
1673
|
+
if (!folder || !this.CurrentUser)
|
|
1674
|
+
return false;
|
|
1675
|
+
if (!folder.OwnerUserID)
|
|
1676
|
+
return true;
|
|
1677
|
+
if (UUIDsEqual(folder.OwnerUserID, this.CurrentUser.ID))
|
|
1678
|
+
return true;
|
|
1679
|
+
return this.engine.GetEffectiveProjectPermission?.(folder.ID, this.CurrentUser)?.Level === 'Owner';
|
|
1680
|
+
}
|
|
1681
|
+
/** Opens the resource share dialog for the right-clicked folder. */
|
|
1682
|
+
ContextShareFolder(event) {
|
|
1683
|
+
if (event)
|
|
1684
|
+
event.stopPropagation();
|
|
1685
|
+
const folder = this.ContextMenu?.folder;
|
|
1686
|
+
this.CloseContextMenu();
|
|
1687
|
+
if (!folder)
|
|
1688
|
+
return;
|
|
1689
|
+
if (!this.CanShareFolder(folder)) {
|
|
1690
|
+
void this.dialogService.alert('Cannot Share', `${this.FolderShareRefusedReason}.`);
|
|
1691
|
+
return;
|
|
1692
|
+
}
|
|
1693
|
+
this.isSharingFolder = true;
|
|
1694
|
+
this.ShareAdapter = this.folderShareAdapter;
|
|
1695
|
+
this.ShareResourceLabel = 'folder';
|
|
1696
|
+
this.ShareContexts = [{
|
|
1697
|
+
ResourceID: folder.ID,
|
|
1698
|
+
ResourceName: folder.Name ?? 'Folder',
|
|
1699
|
+
OwnerUserID: folder.OwnerUserID ?? this.CurrentUser?.ID ?? null,
|
|
1700
|
+
OwnerDisplayName: folder.OwnerUser ?? 'You',
|
|
1701
|
+
CurrentUserID: this.CurrentUser?.ID ?? null
|
|
1702
|
+
}];
|
|
1703
|
+
this.ShareNotice = null;
|
|
1704
|
+
this.IsShareDialogOpen = true;
|
|
1705
|
+
}
|
|
1706
|
+
/** True when the conversation inherits permissions from its parent folder. */
|
|
1707
|
+
IsConversationInheritingFolderAccess(conversation) {
|
|
1708
|
+
return IsInheritingFolderAccess(conversation);
|
|
1709
|
+
}
|
|
1710
|
+
/** Turns folder permission inheritance on or off for the right-clicked conversation. */
|
|
1711
|
+
async ContextToggleFolderInheritance() {
|
|
1712
|
+
const conversation = this.ContextMenu?.conversation;
|
|
1713
|
+
this.CloseContextMenu();
|
|
1714
|
+
if (!conversation || !conversation.ProjectID)
|
|
1715
|
+
return;
|
|
1716
|
+
if (!this.CanMove(conversation)) {
|
|
1717
|
+
await this.dialogService.alert('Cannot Change Access', `${this.MoveRefusedReason}.`);
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1720
|
+
const nextInherit = !IsInheritingFolderAccess(conversation);
|
|
1721
|
+
if (nextInherit && !(await ConfirmInheritFolderAccess(this.dialogService, this.engine, conversation.ProjectID))) {
|
|
1722
|
+
return;
|
|
1723
|
+
}
|
|
1724
|
+
try {
|
|
1725
|
+
await this.engine.SetConversationFolderInheritance?.(conversation.ID, nextInherit, this.CurrentUser);
|
|
1726
|
+
this.rebuildGroups();
|
|
1727
|
+
this.cdr.detectChanges();
|
|
1728
|
+
}
|
|
1729
|
+
catch (error) {
|
|
1730
|
+
console.error('Error updating folder access inheritance:', error);
|
|
1731
|
+
await this.dialogService.alert('Error', 'Failed to update folder access inheritance. Please try again.');
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1605
1734
|
/** True when at least one of the conversations can be moved or pinned by the current user. */
|
|
1606
1735
|
CanChangeAny(ids) {
|
|
1607
1736
|
return ids.some(id => {
|
|
@@ -1609,16 +1738,47 @@ export class ConversationListComponent {
|
|
|
1609
1738
|
return !!conversation && this.CanChange(conversation);
|
|
1610
1739
|
});
|
|
1611
1740
|
}
|
|
1612
|
-
/** True when
|
|
1741
|
+
/** True when at least one of the conversations can be moved by the current user (its owner). */
|
|
1742
|
+
CanMoveAny(ids) {
|
|
1743
|
+
return ids.some(id => {
|
|
1744
|
+
const conversation = this.engine.GetConversation(id);
|
|
1745
|
+
return !!conversation && this.CanMove(conversation);
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
/** True when the user may move the conversation or change its folder access: only its owner. */
|
|
1749
|
+
CanMove(conversation) {
|
|
1750
|
+
if (!this.CurrentUser)
|
|
1751
|
+
return false;
|
|
1752
|
+
return this.engine.CanMoveConversation(conversation, this.CurrentUser.ID);
|
|
1753
|
+
}
|
|
1754
|
+
/** True when the user may pin the conversation: they own it, or hold Edit or Owner access. */
|
|
1613
1755
|
CanChange(conversation) {
|
|
1614
1756
|
if (!this.CurrentUser)
|
|
1615
1757
|
return false;
|
|
1616
1758
|
return this.engine.CanEditConversation(conversation, this.CurrentUser.ID);
|
|
1617
1759
|
}
|
|
1618
|
-
OnShareDialogResult(
|
|
1760
|
+
OnShareDialogResult(result) {
|
|
1761
|
+
const sharedFolder = this.isSharingFolder;
|
|
1762
|
+
this.isSharingFolder = false;
|
|
1619
1763
|
this.IsShareDialogOpen = false;
|
|
1620
1764
|
this.ShareContexts = [];
|
|
1621
1765
|
this.ShareNotice = null;
|
|
1766
|
+
this.ShareAdapter = this.conversationShareAdapter;
|
|
1767
|
+
this.ShareResourceLabel = 'conversation';
|
|
1768
|
+
if (sharedFolder && result?.Action === 'save') {
|
|
1769
|
+
void this.refreshAfterFolderShareSave();
|
|
1770
|
+
}
|
|
1771
|
+
this.cdr.detectChanges();
|
|
1772
|
+
}
|
|
1773
|
+
async refreshAfterFolderShareSave() {
|
|
1774
|
+
try {
|
|
1775
|
+
await ResourcePermissionEngine.Instance.Config(true, this.CurrentUser);
|
|
1776
|
+
await this.engine.LoadConversations?.(this.EnvironmentId, this.CurrentUser, true);
|
|
1777
|
+
}
|
|
1778
|
+
catch {
|
|
1779
|
+
// Best-effort refresh in test or offline environments
|
|
1780
|
+
}
|
|
1781
|
+
this.rebuildGroups();
|
|
1622
1782
|
this.cdr.detectChanges();
|
|
1623
1783
|
}
|
|
1624
1784
|
ContextRename() {
|
|
@@ -1995,14 +2155,8 @@ export class ConversationListComponent {
|
|
|
1995
2155
|
this.CloseContextMenu();
|
|
1996
2156
|
if (ids.length === 0)
|
|
1997
2157
|
return;
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
await this.reportBulkOutcome(result, 'moved');
|
|
2001
|
-
}
|
|
2002
|
-
catch (error) {
|
|
2003
|
-
console.error('Error moving conversations:', error);
|
|
2004
|
-
await this.dialogService.alert('Error', 'Failed to move the selected conversations. Please try again.');
|
|
2005
|
-
}
|
|
2158
|
+
// One move path for menus, drag and drop and the bar: owner-only, and it asks before sharing.
|
|
2159
|
+
await this.moveConversations(ids, projectId);
|
|
2006
2160
|
this.cdr.detectChanges();
|
|
2007
2161
|
}
|
|
2008
2162
|
/** Pins or unpins the conversations, keeping the selection. */
|
|
@@ -2609,6 +2763,9 @@ export class ConversationListComponent {
|
|
|
2609
2763
|
handleConversationClick(conversation, event) {
|
|
2610
2764
|
return this.HandleConversationClick(conversation, event);
|
|
2611
2765
|
}
|
|
2766
|
+
GetProjectVisibilityTier(project) {
|
|
2767
|
+
return this.engine.GetProjectVisibilityTier?.(project) ?? (project.OwnerUserID ? 'Private' : 'Public');
|
|
2768
|
+
}
|
|
2612
2769
|
static ɵfac = function ConversationListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConversationListComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i2.NotificationService), i0.ɵɵdirectiveInject(i3.ActiveTasksService), i0.ɵɵdirectiveInject(i4.MJDialogService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
2613
2770
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConversationListComponent, selectors: [["mj-conversation-list"]], viewQuery: function ConversationListComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2614
2771
|
i0.ɵɵviewQuery(_c0, 5)(_c1, 5);
|
|
@@ -2618,7 +2775,7 @@ export class ConversationListComponent {
|
|
|
2618
2775
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contextMenuEl = _t.first);
|
|
2619
2776
|
} }, hostBindings: function ConversationListComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
2620
2777
|
i0.ɵɵlistener("click", function ConversationListComponent_click_HostBindingHandler() { return ctx.onDocumentClick(); }, i0.ɵɵresolveDocument)("keydown.escape", function ConversationListComponent_keydown_escape_HostBindingHandler() { return ctx.onDocumentEscape(); }, i0.ɵɵresolveDocument);
|
|
2621
|
-
} }, inputs: { EnvironmentId: "EnvironmentId", CurrentUser: "CurrentUser", SelectedConversationId: "SelectedConversationId", RenamedConversationId: "RenamedConversationId", IsSidebarPinned: "IsSidebarPinned", IsMobileView: "IsMobileView", showSearch: "showSearch", ShowNewConversationButton: "ShowNewConversationButton", ShowHeaderMenu: "ShowHeaderMenu", ShowSectionHeaders: "ShowSectionHeaders", environmentId: "environmentId", currentUser: "currentUser", selectedConversationId: "selectedConversationId", renamedConversationId: "renamedConversationId", isSidebarPinned: "isSidebarPinned", isMobileView: "isMobileView", showNewConversationButton: "showNewConversationButton", showHeaderMenu: "showHeaderMenu", showSectionHeaders: "showSectionHeaders" }, outputs: { ConversationSelected: "ConversationSelected", conversationSelected: "conversationSelected", ConversationDeleted: "ConversationDeleted", conversationDeleted: "conversationDeleted", NewConversationRequested: "NewConversationRequested", newConversationRequested: "newConversationRequested", PinSidebarRequested: "PinSidebarRequested", pinSidebarRequested: "pinSidebarRequested", UnpinSidebarRequested: "UnpinSidebarRequested", unpinSidebarRequested: "unpinSidebarRequested", RefreshRequested: "RefreshRequested", refreshRequested: "refreshRequested", SearchEscalated: "SearchEscalated" }, standalone: false, decls: 14, vars:
|
|
2778
|
+
} }, inputs: { EnvironmentId: "EnvironmentId", CurrentUser: "CurrentUser", SelectedConversationId: "SelectedConversationId", RenamedConversationId: "RenamedConversationId", IsSidebarPinned: "IsSidebarPinned", IsMobileView: "IsMobileView", showSearch: "showSearch", ShowNewConversationButton: "ShowNewConversationButton", ShowHeaderMenu: "ShowHeaderMenu", ShowSectionHeaders: "ShowSectionHeaders", environmentId: "environmentId", currentUser: "currentUser", selectedConversationId: "selectedConversationId", renamedConversationId: "renamedConversationId", isSidebarPinned: "isSidebarPinned", isMobileView: "isMobileView", showNewConversationButton: "showNewConversationButton", showHeaderMenu: "showHeaderMenu", showSectionHeaders: "showSectionHeaders" }, outputs: { ConversationSelected: "ConversationSelected", conversationSelected: "conversationSelected", ConversationDeleted: "ConversationDeleted", conversationDeleted: "conversationDeleted", NewConversationRequested: "NewConversationRequested", newConversationRequested: "newConversationRequested", PinSidebarRequested: "PinSidebarRequested", pinSidebarRequested: "pinSidebarRequested", UnpinSidebarRequested: "UnpinSidebarRequested", unpinSidebarRequested: "unpinSidebarRequested", RefreshRequested: "RefreshRequested", refreshRequested: "refreshRequested", SearchEscalated: "SearchEscalated" }, standalone: false, decls: 14, vars: 13, consts: [["folderNode", ""], ["conversationItem", ""], ["searchInput", ""], ["contextMenuEl", ""], [1, "conversation-list"], [1, "list-header"], ["title", "New Conversation", 1, "btn-new-conversation"], [1, "list-content", 3, "click", "contextmenu"], [1, "sidebar-section", "pinned-section"], [1, "sidebar-section"], [1, "search-escalate"], [3, "Result", "Visible", "Contexts", "Adapter", "Notice", "ResourceLabel"], [1, "list-context-menu", 3, "left", "top"], [1, "header-top"], ["role", "toolbar", "aria-label", "Selected conversations", 1, "selection-bar"], [1, "sort-row"], ["title", "Clear selection", "aria-label", "Clear selection", 1, "selection-bar-btn", 3, "click"], [1, "fas", "fa-xmark"], [1, "selection-count"], [1, "selection-bar-btn", 3, "click", "disabled", "title"], [1, "fas", "fa-thumbtack"], ["aria-label", "Move to folder", 1, "selection-bar-btn", 3, "click", "disabled", "title"], [1, "fas", "fa-folder-tree"], ["aria-label", "Share", 1, "selection-bar-btn", 3, "click", "disabled", "title"], [1, "fas", "fa-user-plus"], ["title", "Delete", "aria-label", "Delete", 1, "selection-bar-btn", "danger", 3, "click"], [1, "fas", "fa-trash"], [1, "search-box"], [1, "header-menu-container"], ["type", "text", "placeholder", "Search conversations...", 1, "search-input", 3, "ngModelChange", "keydown", "ngModel"], ["title", "Clear search", 1, "search-clear"], ["title", "Clear search", 1, "search-clear", 3, "click"], ["title", "Options", 1, "btn-menu", 3, "click"], [1, "fas", "fa-ellipsis-v"], [1, "header-dropdown-menu"], [1, "dropdown-item", 3, "click", "disabled"], [1, "fas", "fa-sync-alt"], [1, "dropdown-item", 3, "click"], [1, "fas"], [1, "dropdown-item"], [1, "fas", "fa-table-columns"], [1, "sort-btn", 3, "click", "title"], [1, "fas", 3, "ngClass"], ["title", "New Conversation", 1, "btn-new-conversation", 3, "click"], [1, "fas", "fa-plus"], [1, "section-header", 3, "expanded"], [1, "chat-list"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "section-header", 3, "click"], [1, "section-title"], [1, "fas", "fa-chevron-right"], [1, "fas", "fa-thumbtack", "section-icon"], [1, "sidebar-section", "folders-section"], [1, "section-header", 3, "click", "dragover", "dragleave", "drop"], ["title", "New Folder", 1, "section-action-btn", 3, "click"], [1, "fas", "fa-folder-plus"], [1, "folder-empty-hint"], [1, "sidebar-section", "ungrouped-section", 3, "dragover", "dragleave", "drop"], [1, "search-escalate", 3, "click"], [1, "fa-solid", "fa-magnifying-glass"], [1, "search-escalate-label"], [1, "fa-solid", "fa-arrow-right", "search-escalate-go"], [1, "folder-row", 3, "dragstart", "dragend", "click", "dragover", "dragleave", "drop", "contextmenu", "draggable", "title"], [1, "fas", "fa-chevron-right", "folder-chevron"], [1, "folder-name"], ["role", "img", "title", "Public \u2014 everyone can see this folder, and the conversations in it whose owners turn on folder access", "aria-label", "Public folder", 1, "folder-shared"], ["role", "img", "title", "Shared \u2014 people and roles granted access can see this folder, and the conversations in it whose owners turn on folder access", "aria-label", "Shared folder", 1, "folder-shared"], [1, "folder-spacer"], [1, "folder-count"], [1, "folder-children"], ["aria-hidden", "true", 1, "fas", "fa-users"], ["aria-hidden", "true", 1, "fas", "fa-user-group"], [1, "folder-empty-hint", 3, "paddingLeft"], [1, "conversation-item", 3, "dragstart", "dragend", "dragover", "dragleave", "drop", "pointerdown", "pointermove", "pointerup", "pointercancel", "click", "contextmenu", "draggable"], ["role", "checkbox", 1, "row-check", 3, "click"], [1, "fas", "fa-check"], [1, "conversation-icon-wrapper"], [1, "conversation-icon", "has-tasks"], [1, "badge-overlay"], [3, "conversationId"], [1, "conversation-info", 3, "title"], [1, "conversation-name"], [1, "fas", "fa-share-nodes", "shared-indicator", 3, "title"], ["title", "Shown to people with access to its folder: inherits folder access", 1, "fas", "fa-folder-open", "shared-indicator", "inherits-indicator"], [1, "conversation-preview"], [1, "conversation-actions"], ["title", "More options", 1, "menu-btn", 3, "click"], [1, "fas", "fa-ellipsis"], [1, "fas", "fa-spinner", "fa-pulse"], [1, "list-context-menu", 3, "click", "contextmenu"], [1, "menu-item", "back", 3, "click"], [1, "fas", "fa-chevron-left"], [1, "menu-divider"], [1, "move-folder-list"], [1, "menu-item", 3, "click"], [1, "fas", "fa-inbox"], [1, "menu-item", 3, "current", "paddingLeft"], [1, "menu-item", 3, "disabled"], [1, "menu-item", 3, "click", "disabled"], [1, "fas", "fa-chevron-right", "submenu-arrow"], [1, "menu-item"], [1, "menu-item", "danger", 3, "click"], [1, "context-menu-header"], [1, "fas", "fa-thumbtack", "fa-rotate-90"], [1, "fas", "fa-edit"], [1, "fas", "fa-pen"], [1, "fas", "fa-check-double"]], template: function ConversationListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2622
2779
|
i0.ɵɵelementStart(0, "div", 4);
|
|
2623
2780
|
i0.ɵɵconditionalCreate(1, ConversationListComponent_Conditional_1_Template, 5, 2, "div", 5);
|
|
2624
2781
|
i0.ɵɵconditionalCreate(2, ConversationListComponent_Conditional_2_Template, 4, 0, "button", 6);
|
|
@@ -2629,7 +2786,7 @@ export class ConversationListComponent {
|
|
|
2629
2786
|
i0.ɵɵelementEnd();
|
|
2630
2787
|
i0.ɵɵconditionalCreate(7, ConversationListComponent_Conditional_7_Template, 5, 1, "button", 10);
|
|
2631
2788
|
i0.ɵɵelementEnd();
|
|
2632
|
-
i0.ɵɵtemplate(8, ConversationListComponent_ng_template_8_Template,
|
|
2789
|
+
i0.ɵɵtemplate(8, ConversationListComponent_ng_template_8_Template, 11, 19, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(10, ConversationListComponent_ng_template_10_Template, 17, 24, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
2633
2790
|
i0.ɵɵelementStart(12, "mj-resource-share-dialog", 11);
|
|
2634
2791
|
i0.ɵɵlistener("Result", function ConversationListComponent_Template_mj_resource_share_dialog_Result_12_listener($event) { return ctx.OnShareDialogResult($event); });
|
|
2635
2792
|
i0.ɵɵelementEnd();
|
|
@@ -2647,7 +2804,7 @@ export class ConversationListComponent {
|
|
|
2647
2804
|
i0.ɵɵadvance(2);
|
|
2648
2805
|
i0.ɵɵconditional(ctx.IsSearching && !ctx.IsSelectionMode ? 7 : -1);
|
|
2649
2806
|
i0.ɵɵadvance(5);
|
|
2650
|
-
i0.ɵɵproperty("Visible", ctx.IsShareDialogOpen)("Contexts", ctx.ShareContexts)("Adapter", ctx.ShareAdapter)("Notice", ctx.ShareNotice);
|
|
2807
|
+
i0.ɵɵproperty("Visible", ctx.IsShareDialogOpen)("Contexts", ctx.ShareContexts)("Adapter", ctx.ShareAdapter)("Notice", ctx.ShareNotice)("ResourceLabel", ctx.ShareResourceLabel);
|
|
2651
2808
|
i0.ɵɵadvance();
|
|
2652
2809
|
i0.ɵɵconditional(ctx.ContextMenu ? 13 : -1);
|
|
2653
2810
|
} }, dependencies: [i5.NgClass, i5.NgTemplateOutlet, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, i7.GenericShareDialogComponent, i8.NotificationBadgeComponent], styles: ["[_nghost-%COMP%] {\n display: block;\n height: 100%;\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n --conv-list-bg: var(--mj-chat-list-bg, var(--mj-brand-secondary));\n --conv-list-ink: var(--mj-chat-list-ink, var(--mj-brand-on-secondary));\n --conv-list-active-bg: var(--mj-chat-list-active-bg, var(--mj-brand-primary));\n --conv-list-active-ink: var(--mj-chat-list-active-ink, var(--mj-brand-on-secondary));\n --conv-list-active-hover-bg: var(--mj-chat-list-active-hover-bg, var(--mj-brand-primary-hover));\n --conv-list-accent: var(--mj-chat-list-accent, var(--mj-brand-primary));\n --conv-list-accent-ink: var(--mj-chat-list-accent-ink, var(--mj-text-inverse));\n --conv-list-accent-hover: var(--mj-chat-list-accent-hover, var(--mj-brand-primary-hover));\n --conv-list-hover-bg: var(--mj-chat-list-hover-bg, color-mix(in srgb, var(--conv-list-ink) 8%, transparent));\n }\n .conversation-list[_ngcontent-%COMP%] { display: flex; flex-direction: column; height: 100%; background: var(--conv-list-bg); }\n .list-header[_ngcontent-%COMP%] { padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--conv-list-ink) 10%, transparent); }\n .search-box[_ngcontent-%COMP%] { position: relative; flex: 1; min-width: 0; display: flex; }\n .search-clear[_ngcontent-%COMP%] {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n width: 22px;\n height: 22px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: color-mix(in srgb, var(--conv-list-ink) 55%, transparent);\n font-size: 12px;\n cursor: pointer;\n transition: all 0.2s;\n }\n .sort-row[_ngcontent-%COMP%] { display: flex; gap: 6px; margin-top: 8px; }\n .sort-btn[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n background: transparent;\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 20%, transparent);\n border-radius: 6px;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n font-size: 12px;\n cursor: pointer;\n transition: all 0.2s;\n }\n .sort-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 11px; }\n .sort-btn[_ngcontent-%COMP%]:hover { background: var(--conv-list-hover-bg); color: var(--conv-list-ink); }\n .sort-btn.active[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--conv-list-accent) 18%, transparent);\n border-color: var(--conv-list-accent);\n color: var(--conv-list-ink);\n font-weight: 600;\n }\n .search-clear[_ngcontent-%COMP%]:hover { background: color-mix(in srgb, var(--conv-list-ink) 12%, transparent); color: var(--conv-list-ink); }\n .search-input[_ngcontent-%COMP%] {\n width: 100%;\n padding: 8px 28px 8px 12px;\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 20%, transparent);\n border-radius: 6px;\n color: var(--conv-list-ink);\n font-size: 13px;\n transition: all 0.2s;\n }\n .search-input[_ngcontent-%COMP%]::placeholder { color: color-mix(in srgb, var(--conv-list-ink) 50%, transparent); }\n .search-input[_ngcontent-%COMP%]:focus { outline: none; background: color-mix(in srgb, var(--conv-list-ink) 15%, transparent); border-color: var(--conv-list-accent); }\n .btn-new-conversation[_ngcontent-%COMP%] {\n width: calc(100% - 16px);\n margin: 8px;\n padding: 10px;\n background: var(--conv-list-accent);\n color: var(--conv-list-accent-ink);\n border: none;\n border-radius: 6px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n transition: background 0.2s;\n flex-shrink: 0;\n }\n .btn-new-conversation[_ngcontent-%COMP%]:hover { background: var(--conv-list-accent-hover); }\n .btn-new-conversation[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 14px; }\n .list-content[_ngcontent-%COMP%] { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0; }\n\n \n .sidebar-section[_ngcontent-%COMP%] { margin-bottom: 20px; }\n\n \n\n .search-escalate[_ngcontent-%COMP%] {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: none;\n border-top: 1px solid color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n background: transparent;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .search-escalate[_ngcontent-%COMP%]:hover {\n background: var(--conv-list-hover-bg);\n color: var(--conv-list-ink);\n }\n\n \n .search-escalate-label[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .search-escalate-go[_ngcontent-%COMP%] { opacity: 0.6; }\n .pinned-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] .section-icon[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-size: 11px;\n margin-left: 2px;\n }\n .section-header[_ngcontent-%COMP%] {\n padding: 4px 16px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n color: var(--conv-list-ink);\n font-size: 13px;\n font-weight: 500;\n transition: background 0.2s;\n user-select: none;\n }\n .section-header[_ngcontent-%COMP%]:hover { background: color-mix(in srgb, var(--conv-list-ink) 8%, transparent); }\n .section-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 10px;\n }\n .section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:not(.section-icon) {\n transition: transform 0.2s;\n }\n .section-header.expanded[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:not(.section-icon) { transform: rotate(90deg); }\n .chat-list[_ngcontent-%COMP%] {\n padding: 4px 0;\n display: none;\n }\n .chat-list.expanded[_ngcontent-%COMP%] { display: block; }\n\n .conversation-item[_ngcontent-%COMP%] {\n padding: 6px 5px 6px 16px;\n cursor: pointer;\n display: flex;\n gap: 8px;\n align-items: center;\n transition: all 0.2s;\n position: relative;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n font-size: 14px;\n min-height: 45px;\n }\n .conversation-item[_ngcontent-%COMP%]:hover { background: var(--conv-list-hover-bg); color: var(--conv-list-ink); }\n .conversation-item[_ngcontent-%COMP%]:hover .conversation-actions[_ngcontent-%COMP%] { opacity: 1; }\n .conversation-item.active[_ngcontent-%COMP%] { background: var(--conv-list-active-bg); color: var(--conv-list-active-ink); }\n \n\n\n .conversation-item.selected[_ngcontent-%COMP%] { background: color-mix(in srgb, var(--conv-list-accent) 16%, transparent); }\n .conversation-item.selected[_ngcontent-%COMP%]:hover { background: color-mix(in srgb, var(--conv-list-accent) 24%, transparent); }\n .conversation-item.active.selected[_ngcontent-%COMP%] { background: var(--conv-list-active-bg); }\n \n\n\n .row-check[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 14px;\n height: 14px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: 1.5px solid color-mix(in srgb, var(--conv-list-ink) 45%, transparent);\n border-radius: 3px;\n color: transparent;\n cursor: pointer;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s;\n z-index: 2;\n }\n .row-check[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 8px; }\n .conversation-list.is-selecting[_ngcontent-%COMP%] .row-check[_ngcontent-%COMP%] { opacity: 1; pointer-events: auto; }\n @media (hover: hover) {\n .conversation-item[_ngcontent-%COMP%]:hover .row-check[_ngcontent-%COMP%] { opacity: 1; pointer-events: auto; }\n }\n .row-check.checked[_ngcontent-%COMP%] {\n background: var(--conv-list-accent);\n border-color: var(--conv-list-accent);\n color: var(--conv-list-accent-ink);\n }\n .conversation-item.active[_ngcontent-%COMP%] .row-check[_ngcontent-%COMP%]:not(.checked) {\n border-color: color-mix(in srgb, var(--conv-list-active-ink) 70%, transparent);\n }\n .conversation-icon-wrapper[_ngcontent-%COMP%] { position: relative; flex-shrink: 0; }\n .conversation-icon[_ngcontent-%COMP%] { font-size: 12px; width: 16px; text-align: center; }\n .conversation-icon.has-tasks[_ngcontent-%COMP%] { color: var(--mj-status-warning); }\n .badge-overlay[_ngcontent-%COMP%] { position: absolute; top: -4px; right: -4px; }\n .conversation-info[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n .conversation-name[_ngcontent-%COMP%] { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }\n .shared-indicator[_ngcontent-%COMP%] { font-size: 10px; color: color-mix(in srgb, var(--conv-list-ink) 55%, transparent); flex-shrink: 0; }\n .conversation-item.active[_ngcontent-%COMP%] .shared-indicator[_ngcontent-%COMP%] { color: color-mix(in srgb, var(--conv-list-active-ink) 85%, transparent); }\n .conversation-preview[_ngcontent-%COMP%] { font-size: 12px; color: color-mix(in srgb, var(--conv-list-ink) 50%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .conversation-item.active[_ngcontent-%COMP%] .conversation-preview[_ngcontent-%COMP%] { color: color-mix(in srgb, var(--conv-list-active-ink) 80%, transparent); }\n .conversation-meta[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }\n\n \n .project-badge[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 2px 6px;\n border-radius: 10px;\n font-size: 10px;\n font-weight: 600;\n margin-left: auto;\n background-color: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n color: color-mix(in srgb, var(--conv-list-ink) 60%, transparent);\n white-space: nowrap;\n max-width: 80px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .conversation-item[_ngcontent-%COMP%]:hover .project-badge[_ngcontent-%COMP%] {\n background-color: color-mix(in srgb, var(--conv-list-ink) 15%, transparent);\n color: color-mix(in srgb, var(--conv-list-ink) 80%, transparent);\n }\n .conversation-item.active[_ngcontent-%COMP%] .project-badge[_ngcontent-%COMP%] {\n background-color: color-mix(in srgb, var(--conv-list-active-ink) 20%, transparent);\n color: var(--conv-list-active-ink);\n }\n\n .conversation-actions[_ngcontent-%COMP%] {\n position: absolute;\n right: 5px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s;\n z-index: 10;\n }\n .conversation-item[_ngcontent-%COMP%]:hover .conversation-actions[_ngcontent-%COMP%] { opacity: 1; pointer-events: auto; }\n .conversation-item.active[_ngcontent-%COMP%] .conversation-actions[_ngcontent-%COMP%] { opacity: 1; pointer-events: auto; }\n .conversation-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] { pointer-events: auto; }\n \n @media (hover: none) {\n .conversation-actions[_ngcontent-%COMP%] { opacity: 1; pointer-events: auto; }\n }\n .pinned-icon[_ngcontent-%COMP%] { color: var(--mj-brand-accent); font-size: 12px; }\n\n \n .task-indicator[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-size: 12px;\n margin-right: 8px;\n flex-shrink: 0;\n animation: _ngcontent-%COMP%_pulse-glow 2s ease-in-out infinite;\n }\n @keyframes _ngcontent-%COMP%_pulse-glow {\n 0%, 100% {\n opacity: 1;\n filter: drop-shadow(0 0 2px var(--mj-status-warning));\n }\n 50% {\n opacity: 0.6;\n filter: drop-shadow(0 0 4px var(--mj-status-warning));\n }\n }\n .conversation-item.active[_ngcontent-%COMP%] .task-indicator[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n }\n\n .menu-btn[_ngcontent-%COMP%] {\n width: 28px;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n background: var(--conv-list-bg) !important;\n border: none;\n cursor: pointer;\n transition: all 0.2s;\n }\n .menu-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 15%, transparent) !important;\n color: var(--conv-list-ink);\n }\n .conversation-item.active[_ngcontent-%COMP%] .menu-btn[_ngcontent-%COMP%] {\n background: var(--conv-list-active-hover-bg) !important;\n color: var(--conv-list-active-ink);\n }\n .menu-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 14px; }\n\n \n\n .list-context-menu[_ngcontent-%COMP%] {\n position: fixed;\n min-width: 190px;\n max-height: 70vh;\n overflow-y: auto;\n background: var(--conv-list-bg);\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 15%, transparent);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-lg);\n z-index: 1001;\n padding: 4px 0;\n }\n\n .context-menu-header[_ngcontent-%COMP%] {\n padding: 6px 14px 8px;\n font-size: 12px;\n font-weight: 600;\n color: color-mix(in srgb, var(--conv-list-ink) 60%, transparent);\n border-bottom: 1px solid color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n margin-bottom: 4px;\n }\n\n .menu-item[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 14px;\n background: transparent;\n border: none;\n color: color-mix(in srgb, var(--conv-list-ink) 85%, transparent);\n font-size: 14px;\n text-align: left;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .menu-item[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n color: var(--conv-list-ink);\n }\n\n .menu-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n width: 16px;\n font-size: 13px;\n color: color-mix(in srgb, var(--conv-list-ink) 60%, transparent);\n }\n\n .menu-item[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: var(--conv-list-ink);\n }\n\n .menu-item.danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n }\n\n .menu-item.danger[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 15%, transparent);\n color: var(--mj-status-error);\n }\n\n .menu-item.danger[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n }\n\n .menu-item.danger[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n }\n\n .menu-divider[_ngcontent-%COMP%] {\n height: 1px;\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n margin: 4px 0;\n }\n\n \n .conversation-item.renamed[_ngcontent-%COMP%] {\n animation: _ngcontent-%COMP%_renameHighlight 1500ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n \n\n\n @keyframes _ngcontent-%COMP%_renameHighlight {\n 0% {\n background: linear-gradient(90deg,\n color-mix(in srgb, var(--mj-brand-primary) 40%, transparent),\n color-mix(in srgb, var(--mj-brand-accent) 40%, transparent));\n transform: scale(1.03);\n box-shadow: 0 0 20px color-mix(in srgb, var(--mj-brand-primary) 50%, transparent);\n }\n 25% {\n background: linear-gradient(90deg,\n color-mix(in srgb, var(--mj-brand-primary) 35%, transparent),\n color-mix(in srgb, var(--mj-brand-accent) 35%, transparent));\n box-shadow: 0 0 15px color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n }\n 50% {\n background: linear-gradient(90deg,\n color-mix(in srgb, var(--mj-status-success) 30%, transparent),\n color-mix(in srgb, var(--mj-brand-primary) 30%, transparent));\n transform: scale(1.02);\n box-shadow: 0 0 10px color-mix(in srgb, var(--mj-status-success) 30%, transparent);\n }\n 75% {\n background: linear-gradient(90deg,\n color-mix(in srgb, var(--mj-status-success) 20%, transparent),\n color-mix(in srgb, var(--mj-brand-primary) 20%, transparent));\n box-shadow: 0 0 5px color-mix(in srgb, var(--mj-status-success) 20%, transparent);\n }\n 100% {\n background: transparent;\n transform: scale(1);\n box-shadow: none;\n }\n }\n\n \n\n\n .header-top[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n align-items: center;\n min-height: 36px;\n }\n\n .selection-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 2px;\n flex: 1;\n min-width: 0;\n }\n\n .selection-count[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n padding: 0 6px;\n color: var(--conv-list-ink);\n font-size: 13px;\n font-weight: 600;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .selection-bar-btn[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: color-mix(in srgb, var(--conv-list-ink) 75%, transparent);\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .selection-bar-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 13px; }\n .selection-bar-btn[_ngcontent-%COMP%]:hover:not(:disabled) { background: var(--conv-list-hover-bg); color: var(--conv-list-ink); }\n .selection-bar-btn[_ngcontent-%COMP%]:disabled { opacity: 0.4; cursor: not-allowed; }\n .selection-bar-btn.danger[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 15%, transparent);\n color: var(--mj-status-error);\n }\n\n \n .header-menu-container[_ngcontent-%COMP%] {\n position: relative;\n flex-shrink: 0;\n }\n\n .btn-menu[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 20%, transparent);\n border-radius: 6px;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .btn-menu[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n color: var(--conv-list-ink);\n border-color: color-mix(in srgb, var(--conv-list-ink) 30%, transparent);\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n min-width: 200px;\n background: var(--conv-list-bg);\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 15%, transparent);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-lg);\n z-index: 1001;\n overflow: hidden;\n padding: 4px 0;\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 14px;\n background: transparent;\n border: none;\n color: color-mix(in srgb, var(--conv-list-ink) 85%, transparent);\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n color: var(--conv-list-ink);\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n width: 16px;\n font-size: 13px;\n color: color-mix(in srgb, var(--conv-list-ink) 60%, transparent);\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: var(--conv-list-ink);\n }\n\n .header-dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .shortcut[_ngcontent-%COMP%] {\n margin-left: auto;\n font-size: 11px;\n color: color-mix(in srgb, var(--conv-list-ink) 40%, transparent);\n font-family: system-ui, -apple-system, sans-serif;\n }\n\n .btn-select[_ngcontent-%COMP%] {\n padding: 8px 12px;\n background: transparent;\n border: 1px solid color-mix(in srgb, var(--conv-list-ink) 20%, transparent);\n border-radius: 6px;\n color: color-mix(in srgb, var(--conv-list-ink) 70%, transparent);\n font-size: 13px;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n transition: all 0.2s;\n white-space: nowrap;\n flex-shrink: 0;\n }\n\n .btn-select[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 10%, transparent);\n color: var(--conv-list-ink);\n border-color: color-mix(in srgb, var(--conv-list-ink) 30%, transparent);\n }\n\n\n \n .section-action-btn[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: color-mix(in srgb, var(--conv-list-ink) 60%, transparent);\n cursor: pointer;\n transition: all 0.2s;\n }\n .section-action-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--conv-list-ink) 15%, transparent);\n color: var(--conv-list-ink);\n }\n .section-action-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 12px; }\n\n .folder-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 5px 8px 5px 12px;\n cursor: pointer;\n color: color-mix(in srgb, var(--conv-list-ink) 80%, transparent);\n font-size: 13px;\n transition: background 0.15s;\n user-select: none;\n position: relative;\n }\n .folder-row[_ngcontent-%COMP%]:hover { background: color-mix(in srgb, var(--conv-list-ink) 8%, transparent); }\n .folder-row.drag-over[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--conv-list-accent) 25%, transparent);\n box-shadow: inset 0 0 0 1px var(--conv-list-accent);\n }\n .folder-row.dragging[_ngcontent-%COMP%] { opacity: 0.4; }\n .section-header.drag-over[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--conv-list-accent) 18%, transparent);\n box-shadow: inset 0 0 0 1px var(--conv-list-accent);\n border-radius: 6px;\n }\n .folder-chevron[_ngcontent-%COMP%] {\n font-size: 9px;\n width: 10px;\n flex-shrink: 0;\n transition: transform 0.2s;\n color: color-mix(in srgb, var(--conv-list-ink) 55%, transparent);\n }\n .folder-chevron.expanded[_ngcontent-%COMP%] { transform: rotate(90deg); }\n .folder-icon[_ngcontent-%COMP%] { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }\n .folder-name[_ngcontent-%COMP%] {\n \n\n\n\n flex: 0 1 auto;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: 600;\n }\n .folder-count[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n color: color-mix(in srgb, var(--conv-list-ink) 50%, transparent);\n flex-shrink: 0;\n margin-left: auto;\n padding-left: 6px;\n text-align: right;\n }\n .folder-spacer[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n min-width: 0;\n }\n .folder-shared[_ngcontent-%COMP%] {\n flex-shrink: 0;\n margin-left: 6px;\n font-size: 10px;\n line-height: 1;\n \n\n color: color-mix(in srgb, var(--conv-list-ink) 50%, transparent);\n }\n .folder-children[_ngcontent-%COMP%] { display: block; }\n .folder-empty-hint[_ngcontent-%COMP%] {\n padding: 6px 16px;\n font-size: 11px;\n font-style: italic;\n color: color-mix(in srgb, var(--conv-list-ink) 45%, transparent);\n }\n .ungrouped-section.drag-over[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--conv-list-accent) 12%, transparent);\n box-shadow: inset 0 0 0 1px var(--conv-list-accent);\n border-radius: 6px;\n }\n\n \n\n .conversation-item[_ngcontent-%COMP%] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }\n .conversation-item.dragging[_ngcontent-%COMP%] { opacity: 0.4; }\n\n \n .menu-item.back[_ngcontent-%COMP%] { font-weight: 600; }\n .menu-item[_ngcontent-%COMP%] .submenu-arrow[_ngcontent-%COMP%] { margin-left: auto; font-size: 10px; }\n .menu-item.current[_ngcontent-%COMP%] { background: color-mix(in srgb, var(--conv-list-accent) 18%, transparent); }\n .move-folder-list[_ngcontent-%COMP%] { max-height: 240px; overflow-y: auto; }"] });
|
|
@@ -2677,8 +2834,8 @@ export class ConversationListComponent {
|
|
|
2677
2834
|
</button>
|
|
2678
2835
|
<button class="selection-bar-btn"
|
|
2679
2836
|
(click)="BarOpenMoveMenu($event)"
|
|
2680
|
-
[disabled]="!
|
|
2681
|
-
[title]="
|
|
2837
|
+
[disabled]="!CanMoveAny(SelectedIds)"
|
|
2838
|
+
[title]="CanMoveAny(SelectedIds) ? 'Move to folder' : MoveRefusedReason"
|
|
2682
2839
|
aria-label="Move to folder">
|
|
2683
2840
|
<i class="fas fa-folder-tree"></i>
|
|
2684
2841
|
</button>
|
|
@@ -2906,10 +3063,16 @@ export class ConversationListComponent {
|
|
|
2906
3063
|
role, an aria-label is not reliably exposed, and the <i> carrying the glyph
|
|
2907
3064
|
is aria-hidden. -->
|
|
2908
3065
|
<span class="folder-shared" role="img"
|
|
2909
|
-
title="
|
|
2910
|
-
aria-label="
|
|
3066
|
+
title="Public — everyone can see this folder, and the conversations in it whose owners turn on folder access"
|
|
3067
|
+
aria-label="Public folder">
|
|
2911
3068
|
<i class="fas fa-users" aria-hidden="true"></i>
|
|
2912
3069
|
</span>
|
|
3070
|
+
} @else if (GetProjectVisibilityTier(node.project) === 'Shared') {
|
|
3071
|
+
<span class="folder-shared" role="img"
|
|
3072
|
+
title="Shared — people and roles granted access can see this folder, and the conversations in it whose owners turn on folder access"
|
|
3073
|
+
aria-label="Shared folder">
|
|
3074
|
+
<i class="fas fa-user-group" aria-hidden="true"></i>
|
|
3075
|
+
</span>
|
|
2913
3076
|
}
|
|
2914
3077
|
<span class="folder-spacer"></span>
|
|
2915
3078
|
<span class="folder-count">{{ node.totalCount }}</span>
|
|
@@ -2939,7 +3102,7 @@ export class ConversationListComponent {
|
|
|
2939
3102
|
[class.renamed]="IsConversationRenamed(conversation)"
|
|
2940
3103
|
[class.dragging]="IsConversationDragging(conversation)"
|
|
2941
3104
|
[style.paddingLeft.px]="depth ? 16 + depth * 14 : 16"
|
|
2942
|
-
[draggable]="
|
|
3105
|
+
[draggable]="CanMove(conversation)"
|
|
2943
3106
|
(dragstart)="OnConversationDragStart(conversation, $event)"
|
|
2944
3107
|
(dragend)="OnConversationDragEnd()"
|
|
2945
3108
|
(dragover)="OnConversationRowDragOver(conversation, $event)"
|
|
@@ -2977,6 +3140,10 @@ export class ConversationListComponent {
|
|
|
2977
3140
|
<i class="fas fa-share-nodes shared-indicator"
|
|
2978
3141
|
[title]="SharedWithMeTooltip(conversation)"></i>
|
|
2979
3142
|
}
|
|
3143
|
+
@if (conversation.ProjectID && IsConversationInheritingFolderAccess(conversation)) {
|
|
3144
|
+
<i class="fas fa-folder-open shared-indicator inherits-indicator"
|
|
3145
|
+
title="Shown to people with access to its folder: inherits folder access"></i>
|
|
3146
|
+
}
|
|
2980
3147
|
</div>
|
|
2981
3148
|
<div class="conversation-preview">{{ conversation.Description }}</div>
|
|
2982
3149
|
</div>
|
|
@@ -2993,7 +3160,7 @@ export class ConversationListComponent {
|
|
|
2993
3160
|
[Contexts]="ShareContexts"
|
|
2994
3161
|
[Adapter]="ShareAdapter"
|
|
2995
3162
|
[Notice]="ShareNotice"
|
|
2996
|
-
ResourceLabel="
|
|
3163
|
+
[ResourceLabel]="ShareResourceLabel"
|
|
2997
3164
|
(Result)="OnShareDialogResult($event)">
|
|
2998
3165
|
</mj-resource-share-dialog>
|
|
2999
3166
|
|
|
@@ -3058,8 +3225,8 @@ export class ConversationListComponent {
|
|
|
3058
3225
|
</button>
|
|
3059
3226
|
}
|
|
3060
3227
|
<button class="menu-item" (click)="OpenMoveSubmenu($event)"
|
|
3061
|
-
[disabled]="!
|
|
3062
|
-
[attr.title]="
|
|
3228
|
+
[disabled]="!CanMoveAny(ContextMenu.targets)"
|
|
3229
|
+
[attr.title]="CanMoveAny(ContextMenu.targets) ? null : MoveRefusedReason">
|
|
3063
3230
|
<i class="fas fa-folder-tree"></i>
|
|
3064
3231
|
<span>Move to folder</span>
|
|
3065
3232
|
<i class="fas fa-chevron-right submenu-arrow"></i>
|
|
@@ -3071,6 +3238,15 @@ export class ConversationListComponent {
|
|
|
3071
3238
|
<i class="fas fa-user-plus"></i>
|
|
3072
3239
|
<span>{{ ContextMenu.targets.length > 1 ? 'Share ' + ContextMenu.targets.length + ' conversations' : 'Share' }}</span>
|
|
3073
3240
|
</button>
|
|
3241
|
+
@if (ContextMenu.targets.length === 1 && ContextMenu.conversation?.ProjectID) {
|
|
3242
|
+
<button class="menu-item"
|
|
3243
|
+
(click)="ContextToggleFolderInheritance()"
|
|
3244
|
+
[disabled]="!CanMoveAny(ContextMenu.targets)"
|
|
3245
|
+
[attr.title]="CanMoveAny(ContextMenu.targets) ? null : MoveRefusedReason">
|
|
3246
|
+
<i class="fas" [ngClass]="IsConversationInheritingFolderAccess(ContextMenu.conversation) ? 'fa-lock' : 'fa-folder-open'"></i>
|
|
3247
|
+
<span>{{ IsConversationInheritingFolderAccess(ContextMenu.conversation) ? 'Restrict folder access' : 'Inherit folder access' }}</span>
|
|
3248
|
+
</button>
|
|
3249
|
+
}
|
|
3074
3250
|
@if (ContextMenu.targets.length === 1) {
|
|
3075
3251
|
<button class="menu-item" (click)="ContextRename()">
|
|
3076
3252
|
<i class="fas fa-edit"></i>
|
|
@@ -3089,6 +3265,13 @@ export class ConversationListComponent {
|
|
|
3089
3265
|
<i class="fas fa-folder-plus"></i>
|
|
3090
3266
|
<span>New Subfolder</span>
|
|
3091
3267
|
</button>
|
|
3268
|
+
<button class="menu-item"
|
|
3269
|
+
(click)="ContextShareFolder($event)"
|
|
3270
|
+
[disabled]="!CanShareFolder(ContextMenu.folder)"
|
|
3271
|
+
[attr.title]="CanShareFolder(ContextMenu.folder) ? null : FolderShareRefusedReason">
|
|
3272
|
+
<i class="fas fa-user-plus"></i>
|
|
3273
|
+
<span>Share</span>
|
|
3274
|
+
</button>
|
|
3092
3275
|
<button class="menu-item" (click)="ContextEditFolder($event)">
|
|
3093
3276
|
<i class="fas fa-pen"></i>
|
|
3094
3277
|
<span>Rename</span>
|
|
@@ -3195,5 +3378,5 @@ export class ConversationListComponent {
|
|
|
3195
3378
|
}], showSectionHeaders: [{
|
|
3196
3379
|
type: Input
|
|
3197
3380
|
}] }); })();
|
|
3198
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConversationListComponent, { className: "ConversationListComponent", filePath: "src/lib/components/conversation/conversation-list.component.ts", lineNumber:
|
|
3381
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConversationListComponent, { className: "ConversationListComponent", filePath: "src/lib/components/conversation/conversation-list.component.ts", lineNumber: 1295 }); })();
|
|
3199
3382
|
//# sourceMappingURL=conversation-list.component.js.map
|