@memberjunction/ng-conversations 6.3.0-edge.0 → 6.3.0-edge.2
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 +60 -22
- package/dist/assets/edge-ai.worker.js +35168 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts +186 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts.map +1 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.js +2202 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts +39 -6
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.js +773 -204
- package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.js +19 -18
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
- package/dist/lib/components/collection/collection-view.component.d.ts +6 -4
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-view.component.js +35 -17
- package/dist/lib/components/collection/collection-view.component.js.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.d.ts +1 -0
- package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.js +108 -106
- package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts +15 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.js +43 -4
- package/dist/lib/components/composer/ai-composer.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts +20 -2
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.js +378 -62
- package/dist/lib/components/conversation/conversation-agent-picker.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +94 -18
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +732 -439
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts +19 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.js +184 -89
- package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
- package/dist/lib/components/export/export-modal.component.d.ts +7 -2
- package/dist/lib/components/export/export-modal.component.d.ts.map +1 -1
- package/dist/lib/components/export/export-modal.component.js +13 -2
- package/dist/lib/components/export/export-modal.component.js.map +1 -1
- package/dist/lib/components/library/library-create-dialog.component.d.ts +136 -0
- package/dist/lib/components/library/library-create-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-create-dialog.component.js +1620 -0
- package/dist/lib/components/library/library-create-dialog.component.js.map +1 -0
- package/dist/lib/components/library/library-full-view.component.d.ts +10 -4
- package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/library/library-full-view.component.js +216 -40
- package/dist/lib/components/library/library-full-view.component.js.map +1 -1
- package/dist/lib/components/library/library-remote-drive-pane.component.d.ts +97 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.js +1229 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.js.map +1 -0
- package/dist/lib/components/library/library-workspace.component.d.ts +293 -0
- package/dist/lib/components/library/library-workspace.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-workspace.component.js +5121 -0
- package/dist/lib/components/library/library-workspace.component.js.map +1 -0
- package/dist/lib/components/library/library.models.d.ts +192 -0
- package/dist/lib/components/library/library.models.d.ts.map +1 -0
- package/dist/lib/components/library/library.models.js +2 -0
- package/dist/lib/components/library/library.models.js.map +1 -0
- package/dist/lib/components/message/agent-handoff-card.component.js +1 -1
- package/dist/lib/components/message/agent-handoff-card.component.js.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.d.ts +5 -0
- package/dist/lib/components/message/conversation-message-rating.component.d.ts.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.js +72 -16
- package/dist/lib/components/message/conversation-message-rating.component.js.map +1 -1
- package/dist/lib/components/message/message-input.component.d.ts +33 -14
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-input.component.js +142 -75
- package/dist/lib/components/message/message-input.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +51 -4
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +640 -399
- package/dist/lib/components/message/message-item.component.js.map +1 -1
- package/dist/lib/components/message/message-list.component.d.ts +15 -1
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-list.component.js +75 -3
- package/dist/lib/components/message/message-list.component.js.map +1 -1
- package/dist/lib/components/navigation/conversation-navigation.component.js +9 -9
- package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.d.ts +94 -6
- package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.js +249 -59
- package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.d.ts +6 -0
- package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.js +81 -61
- package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
- package/dist/lib/components/project/project-selector.component.d.ts +5 -0
- package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-selector.component.js +11 -4
- package/dist/lib/components/project/project-selector.component.js.map +1 -1
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.d.ts +55 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js +974 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.d.ts +66 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.js +253 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.d.ts +80 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.js +49 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.d.ts +54 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.js +386 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.js.map +1 -0
- package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts +28 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.js +53 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.js.map +1 -1
- package/dist/lib/components/realtime/channels/client-context-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/channels/client-context-channel.js +23 -7
- package/dist/lib/components/realtime/channels/client-context-channel.js.map +1 -1
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.d.ts +1 -0
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.js +15 -2
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.js.map +1 -1
- package/dist/lib/components/realtime/media/media-channel.d.ts +32 -11
- package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/media/media-channel.js +186 -23
- package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +9 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.js +33 -10
- package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-banner.component.js +3 -3
- package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-picker.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-picker.component.js +3 -3
- package/dist/lib/components/realtime/realtime-agent-picker.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-composer.component.js +6 -4
- package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +82 -33
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.js +521 -191
- package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-state.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-state.js +1 -1
- package/dist/lib/components/realtime/realtime-session-state.js.map +1 -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 +90 -5
- package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.js +2 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts +11 -4
- package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tab-style.js +24 -5
- package/dist/lib/components/realtime/realtime-surface-tab-style.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts +7 -9
- package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js +25 -15
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts +30 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +150 -2
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.d.ts +101 -3
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.js +503 -55
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.js.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.d.ts +48 -5
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.js +249 -53
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
- package/dist/lib/components/search/search-panel.component.d.ts +10 -0
- package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
- package/dist/lib/components/search/search-panel.component.js +25 -3
- package/dist/lib/components/search/search-panel.component.js.map +1 -1
- package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/share/share-modal.component.js +181 -127
- package/dist/lib/components/share/share-modal.component.js.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +14 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.js +50 -11
- package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
- package/dist/lib/components/sidebar/my-agents-section.component.d.ts +78 -0
- package/dist/lib/components/sidebar/my-agents-section.component.d.ts.map +1 -0
- package/dist/lib/components/sidebar/my-agents-section.component.js +450 -0
- package/dist/lib/components/sidebar/my-agents-section.component.js.map +1 -0
- package/dist/lib/components/task/tasks-full-view.component.d.ts +31 -8
- package/dist/lib/components/task/tasks-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/task/tasks-full-view.component.js +701 -497
- package/dist/lib/components/task/tasks-full-view.component.js.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.js +15 -2
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +1 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts.map +1 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js +13 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -1
- package/dist/lib/conversations.module.d.ts +78 -71
- package/dist/lib/conversations.module.d.ts.map +1 -1
- package/dist/lib/conversations.module.js +68 -1
- package/dist/lib/conversations.module.js.map +1 -1
- package/dist/lib/models/agent-turn.model.d.ts +7 -1
- package/dist/lib/models/agent-turn.model.d.ts.map +1 -1
- package/dist/lib/models/agent-turn.model.js.map +1 -1
- package/dist/lib/services/agent-state.service.d.ts.map +1 -1
- package/dist/lib/services/agent-state.service.js +14 -3
- package/dist/lib/services/agent-state.service.js.map +1 -1
- package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-permission.service.js +14 -3
- package/dist/lib/services/artifact-permission.service.js.map +1 -1
- package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-state.service.js +43 -11
- package/dist/lib/services/artifact-state.service.js.map +1 -1
- package/dist/lib/services/conversation-agent.service.d.ts +31 -21
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-agent.service.js +84 -35
- package/dist/lib/services/conversation-agent.service.js.map +1 -1
- package/dist/lib/services/conversation-tasks-filter.d.ts +59 -2
- package/dist/lib/services/conversation-tasks-filter.d.ts.map +1 -1
- package/dist/lib/services/conversation-tasks-filter.js +222 -18
- package/dist/lib/services/conversation-tasks-filter.js.map +1 -1
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.d.ts +85 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.js +257 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.d.ts +85 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.js +10 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.d.ts +90 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.js +386 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.d.ts +13 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.js +201 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.js.map +1 -0
- package/dist/lib/services/export.service.d.ts +64 -0
- package/dist/lib/services/export.service.d.ts.map +1 -1
- package/dist/lib/services/export.service.js +185 -6
- package/dist/lib/services/export.service.js.map +1 -1
- package/dist/lib/services/library-creation.service.d.ts +304 -0
- package/dist/lib/services/library-creation.service.d.ts.map +1 -0
- package/dist/lib/services/library-creation.service.js +1244 -0
- package/dist/lib/services/library-creation.service.js.map +1 -0
- package/dist/lib/services/realtime-pairing.d.ts +3 -3
- package/dist/lib/services/realtime-pairing.js +4 -4
- package/dist/lib/services/realtime-pairing.js.map +1 -1
- package/dist/lib/services/realtime-session-review.service.d.ts +14 -0
- package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
- package/dist/lib/services/realtime-session-review.service.js +46 -4
- package/dist/lib/services/realtime-session-review.service.js.map +1 -1
- package/dist/lib/services/realtime-session.service.d.ts.map +1 -1
- package/dist/lib/services/realtime-session.service.js +2 -1
- package/dist/lib/services/realtime-session.service.js.map +1 -1
- package/dist/lib/services/search.service.d.ts +19 -2
- package/dist/lib/services/search.service.d.ts.map +1 -1
- package/dist/lib/services/search.service.js +99 -36
- package/dist/lib/services/search.service.js.map +1 -1
- package/dist/lib/utils/agent-handoff-map.js +1 -1
- package/dist/lib/utils/agent-handoff-map.js.map +1 -1
- package/dist/lib/utils/agent-turn-routing.js +1 -1
- package/dist/lib/utils/agent-turn-routing.js.map +1 -1
- package/dist/lib/utils/decision-routing.d.ts +5 -2
- package/dist/lib/utils/decision-routing.d.ts.map +1 -1
- package/dist/lib/utils/decision-routing.js +9 -4
- package/dist/lib/utils/decision-routing.js.map +1 -1
- package/dist/public-api.d.ts +15 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +17 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +42 -37
|
@@ -1,81 +1,85 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
2
3
|
import { FormsModule } from '@angular/forms';
|
|
3
4
|
import { MJWindowComponent, MJButtonDirective, MJEmptyStateComponent } from '@memberjunction/ng-ui-components';
|
|
4
5
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
6
|
+
import { UUIDsEqual } from '@memberjunction/global';
|
|
7
|
+
import { CreateGuestShareLinkOperation, RevokeGuestShareLinkOperation, } from '@memberjunction/core-entities';
|
|
5
8
|
import { UserPickerComponent } from '../shared/user-picker.component';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
import * as i1 from "../../services/artifact-permission.service";
|
|
8
11
|
import * as i2 from "@memberjunction/ng-ui-components";
|
|
9
12
|
import * as i3 from "@angular/forms";
|
|
10
13
|
const _forTrack0 = ($index, $item) => $item.id;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
i0.ɵɵ
|
|
14
|
-
i0.ɵɵ
|
|
14
|
+
const _forTrack1 = ($index, $item) => $item.ID;
|
|
15
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
17
|
+
i0.ɵɵelementStart(0, "label", 28)(1, "input", 32);
|
|
18
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_17_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.newPermissions.canShare, $event) || (ctx_r1.newPermissions.canShare = $event); return i0.ɵɵresetView($event); });
|
|
15
19
|
i0.ɵɵelementEnd();
|
|
16
|
-
i0.ɵɵelementStart(2, "span",
|
|
17
|
-
i0.ɵɵelement(3, "i",
|
|
20
|
+
i0.ɵɵelementStart(2, "span", 25);
|
|
21
|
+
i0.ɵɵelement(3, "i", 33);
|
|
18
22
|
i0.ɵɵtext(4, " Share ");
|
|
19
23
|
i0.ɵɵelementEnd();
|
|
20
|
-
i0.ɵɵelementStart(5, "span",
|
|
24
|
+
i0.ɵɵelementStart(5, "span", 27);
|
|
21
25
|
i0.ɵɵtext(6, "Share with others");
|
|
22
26
|
i0.ɵɵelementEnd()();
|
|
23
27
|
} if (rf & 2) {
|
|
24
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
28
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
25
29
|
i0.ɵɵadvance();
|
|
26
30
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.newPermissions.canShare);
|
|
27
31
|
} }
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
i0.ɵɵelementStart(0, "label",
|
|
31
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
32
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
34
|
+
i0.ɵɵelementStart(0, "label", 28)(1, "input", 32);
|
|
35
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_18_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.newPermissions.canEdit, $event) || (ctx_r1.newPermissions.canEdit = $event); return i0.ɵɵresetView($event); });
|
|
32
36
|
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵelementStart(2, "span",
|
|
34
|
-
i0.ɵɵelement(3, "i",
|
|
37
|
+
i0.ɵɵelementStart(2, "span", 25);
|
|
38
|
+
i0.ɵɵelement(3, "i", 34);
|
|
35
39
|
i0.ɵɵtext(4, " Edit ");
|
|
36
40
|
i0.ɵɵelementEnd();
|
|
37
|
-
i0.ɵɵelementStart(5, "span",
|
|
41
|
+
i0.ɵɵelementStart(5, "span", 27);
|
|
38
42
|
i0.ɵɵtext(6, "Edit and delete artifact");
|
|
39
43
|
i0.ɵɵelementEnd()();
|
|
40
44
|
} if (rf & 2) {
|
|
41
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
45
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
42
46
|
i0.ɵɵadvance();
|
|
43
47
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.newPermissions.canEdit);
|
|
44
48
|
} }
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
i0.ɵɵelementStart(0, "div",
|
|
48
|
-
i0.ɵɵelement(3, "i",
|
|
49
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "div", 16)(2, "div", 17);
|
|
52
|
+
i0.ɵɵelement(3, "i", 18);
|
|
49
53
|
i0.ɵɵelementEnd();
|
|
50
|
-
i0.ɵɵelementStart(4, "div",
|
|
54
|
+
i0.ɵɵelementStart(4, "div", 19)(5, "div", 20);
|
|
51
55
|
i0.ɵɵtext(6);
|
|
52
56
|
i0.ɵɵelementEnd();
|
|
53
|
-
i0.ɵɵelementStart(7, "div",
|
|
57
|
+
i0.ɵɵelementStart(7, "div", 21);
|
|
54
58
|
i0.ɵɵtext(8);
|
|
55
59
|
i0.ɵɵelementEnd()()();
|
|
56
|
-
i0.ɵɵelementStart(9, "div",
|
|
57
|
-
i0.ɵɵelement(11, "input",
|
|
58
|
-
i0.ɵɵelementStart(12, "span",
|
|
59
|
-
i0.ɵɵelement(13, "i",
|
|
60
|
+
i0.ɵɵelementStart(9, "div", 22)(10, "label", 23);
|
|
61
|
+
i0.ɵɵelement(11, "input", 24);
|
|
62
|
+
i0.ɵɵelementStart(12, "span", 25);
|
|
63
|
+
i0.ɵɵelement(13, "i", 26);
|
|
60
64
|
i0.ɵɵtext(14, " Read ");
|
|
61
65
|
i0.ɵɵelementEnd();
|
|
62
|
-
i0.ɵɵelementStart(15, "span",
|
|
66
|
+
i0.ɵɵelementStart(15, "span", 27);
|
|
63
67
|
i0.ɵɵtext(16, "View artifact content");
|
|
64
68
|
i0.ɵɵelementEnd()();
|
|
65
|
-
i0.ɵɵconditionalCreate(17,
|
|
66
|
-
i0.ɵɵconditionalCreate(18,
|
|
69
|
+
i0.ɵɵconditionalCreate(17, ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_17_Template, 7, 1, "label", 28);
|
|
70
|
+
i0.ɵɵconditionalCreate(18, ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Conditional_18_Template, 7, 1, "label", 28);
|
|
67
71
|
i0.ɵɵelementEnd();
|
|
68
|
-
i0.ɵɵelementStart(19, "div",
|
|
69
|
-
i0.ɵɵlistener("click", function
|
|
70
|
-
i0.ɵɵelement(21, "i",
|
|
72
|
+
i0.ɵɵelementStart(19, "div", 29)(20, "button", 30);
|
|
73
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAddUser()); });
|
|
74
|
+
i0.ɵɵelement(21, "i", 31);
|
|
71
75
|
i0.ɵɵtext(22, " Add User ");
|
|
72
76
|
i0.ɵɵelementEnd();
|
|
73
|
-
i0.ɵɵelementStart(23, "button",
|
|
74
|
-
i0.ɵɵlistener("click", function
|
|
77
|
+
i0.ɵɵelementStart(23, "button", 12);
|
|
78
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Template_button_click_23_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onClearSelection()); });
|
|
75
79
|
i0.ɵɵtext(24, " Cancel ");
|
|
76
80
|
i0.ɵɵelementEnd()()();
|
|
77
81
|
} if (rf & 2) {
|
|
78
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
82
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
79
83
|
i0.ɵɵadvance(6);
|
|
80
84
|
i0.ɵɵtextInterpolate(ctx_r1.selectedUser.name);
|
|
81
85
|
i0.ɵɵadvance(2);
|
|
@@ -89,79 +93,104 @@ function ArtifactShareModalComponent_Conditional_0_Conditional_7_Template(rf, ct
|
|
|
89
93
|
i0.ɵɵadvance(2);
|
|
90
94
|
i0.ɵɵproperty("disabled", !ctx_r1.selectedUser);
|
|
91
95
|
} }
|
|
92
|
-
function
|
|
93
|
-
i0.ɵɵ
|
|
96
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
98
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "h3", 6);
|
|
99
|
+
i0.ɵɵelement(2, "i", 13);
|
|
100
|
+
i0.ɵɵtext(3, " Share with User ");
|
|
101
|
+
i0.ɵɵelementEnd();
|
|
102
|
+
i0.ɵɵelementStart(4, "mj-user-picker", 14);
|
|
103
|
+
i0.ɵɵlistener("userSelected", function ArtifactShareModalComponent_Conditional_0_Conditional_2_Template_mj_user_picker_userSelected_4_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onUserSelected($event)); });
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
i0.ɵɵconditionalCreate(5, ArtifactShareModalComponent_Conditional_0_Conditional_2_Conditional_5_Template, 25, 6, "div", 15);
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
109
|
+
i0.ɵɵadvance(4);
|
|
110
|
+
i0.ɵɵproperty("currentUser", ctx_r1.currentUser)("excludeUserIds", ctx_r1.getExcludedUserIds());
|
|
111
|
+
i0.ɵɵadvance();
|
|
112
|
+
i0.ɵɵconditional(ctx_r1.selectedUser ? 5 : -1);
|
|
113
|
+
} }
|
|
114
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
116
|
+
i0.ɵɵelement(1, "i", 35);
|
|
117
|
+
i0.ɵɵelementStart(2, "span");
|
|
118
|
+
i0.ɵɵtext(3, "You have view-only sharing visibility. Only users with Share permission or ownership can add or revoke access.");
|
|
119
|
+
i0.ɵɵelementEnd()();
|
|
94
120
|
} }
|
|
95
|
-
function
|
|
96
|
-
i0.ɵɵ
|
|
121
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
122
|
+
i0.ɵɵelement(0, "mj-empty-state", 8);
|
|
123
|
+
} }
|
|
124
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
125
|
+
i0.ɵɵelementStart(0, "span", 39);
|
|
97
126
|
i0.ɵɵtext(1);
|
|
98
127
|
i0.ɵɵelementEnd();
|
|
99
128
|
} if (rf & 2) {
|
|
100
|
-
const
|
|
129
|
+
const permission_r7 = i0.ɵɵnextContext().$implicit;
|
|
101
130
|
i0.ɵɵadvance();
|
|
102
|
-
i0.ɵɵtextInterpolate1("shared by ",
|
|
131
|
+
i0.ɵɵtextInterpolate1("shared by ", permission_r7.sharedByUserName);
|
|
103
132
|
} }
|
|
104
|
-
function
|
|
105
|
-
i0.ɵɵelementStart(0, "span",
|
|
106
|
-
i0.ɵɵelement(1, "i",
|
|
133
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
134
|
+
i0.ɵɵelementStart(0, "span", 43);
|
|
135
|
+
i0.ɵɵelement(1, "i", 33);
|
|
107
136
|
i0.ɵɵtext(2, " Share ");
|
|
108
137
|
i0.ɵɵelementEnd();
|
|
109
138
|
} }
|
|
110
|
-
function
|
|
111
|
-
i0.ɵɵelementStart(0, "span",
|
|
112
|
-
i0.ɵɵelement(1, "i",
|
|
139
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
+
i0.ɵɵelementStart(0, "span", 43);
|
|
141
|
+
i0.ɵɵelement(1, "i", 34);
|
|
113
142
|
i0.ɵɵtext(2, " Edit ");
|
|
114
143
|
i0.ɵɵelementEnd();
|
|
115
144
|
} }
|
|
116
|
-
function
|
|
117
|
-
i0.ɵɵelementStart(0, "div",
|
|
118
|
-
i0.ɵɵelement(2, "i",
|
|
145
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
146
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "span", 43);
|
|
147
|
+
i0.ɵɵelement(2, "i", 26);
|
|
119
148
|
i0.ɵɵtext(3, " Read ");
|
|
120
149
|
i0.ɵɵelementEnd();
|
|
121
|
-
i0.ɵɵconditionalCreate(4,
|
|
122
|
-
i0.ɵɵconditionalCreate(5,
|
|
150
|
+
i0.ɵɵconditionalCreate(4, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Conditional_4_Template, 3, 0, "span", 43);
|
|
151
|
+
i0.ɵɵconditionalCreate(5, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Conditional_5_Template, 3, 0, "span", 43);
|
|
123
152
|
i0.ɵɵelementEnd();
|
|
124
153
|
} if (rf & 2) {
|
|
125
|
-
const
|
|
154
|
+
const permission_r7 = i0.ɵɵnextContext().$implicit;
|
|
126
155
|
i0.ɵɵadvance(4);
|
|
127
|
-
i0.ɵɵconditional(
|
|
156
|
+
i0.ɵɵconditional(permission_r7.canShare ? 4 : -1);
|
|
128
157
|
i0.ɵɵadvance();
|
|
129
|
-
i0.ɵɵconditional(
|
|
158
|
+
i0.ɵɵconditional(permission_r7.canEdit ? 5 : -1);
|
|
130
159
|
} }
|
|
131
|
-
function
|
|
132
|
-
const
|
|
133
|
-
i0.ɵɵelementStart(0, "label",
|
|
134
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
160
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
162
|
+
i0.ɵɵelementStart(0, "label", 45)(1, "input", 32);
|
|
163
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_5_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r8); const permission_r7 = i0.ɵɵnextContext(2).$implicit; i0.ɵɵtwoWayBindingSet(permission_r7.editingPermissions.canShare, $event) || (permission_r7.editingPermissions.canShare = $event); return i0.ɵɵresetView($event); });
|
|
135
164
|
i0.ɵɵelementEnd();
|
|
136
165
|
i0.ɵɵelementStart(2, "span");
|
|
137
166
|
i0.ɵɵtext(3, "Share");
|
|
138
167
|
i0.ɵɵelementEnd()();
|
|
139
168
|
} if (rf & 2) {
|
|
140
|
-
const
|
|
169
|
+
const permission_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
141
170
|
i0.ɵɵadvance();
|
|
142
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
171
|
+
i0.ɵɵtwoWayProperty("ngModel", permission_r7.editingPermissions.canShare);
|
|
143
172
|
} }
|
|
144
|
-
function
|
|
145
|
-
const
|
|
146
|
-
i0.ɵɵelementStart(0, "label",
|
|
147
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
173
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
174
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
175
|
+
i0.ɵɵelementStart(0, "label", 45)(1, "input", 32);
|
|
176
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_6_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r9); const permission_r7 = i0.ɵɵnextContext(2).$implicit; i0.ɵɵtwoWayBindingSet(permission_r7.editingPermissions.canEdit, $event) || (permission_r7.editingPermissions.canEdit = $event); return i0.ɵɵresetView($event); });
|
|
148
177
|
i0.ɵɵelementEnd();
|
|
149
178
|
i0.ɵɵelementStart(2, "span");
|
|
150
179
|
i0.ɵɵtext(3, "Edit");
|
|
151
180
|
i0.ɵɵelementEnd()();
|
|
152
181
|
} if (rf & 2) {
|
|
153
|
-
const
|
|
182
|
+
const permission_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
154
183
|
i0.ɵɵadvance();
|
|
155
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
184
|
+
i0.ɵɵtwoWayProperty("ngModel", permission_r7.editingPermissions.canEdit);
|
|
156
185
|
} }
|
|
157
|
-
function
|
|
158
|
-
i0.ɵɵelementStart(0, "div",
|
|
159
|
-
i0.ɵɵelement(2, "input",
|
|
186
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
+
i0.ɵɵelementStart(0, "div", 41)(1, "label", 44);
|
|
188
|
+
i0.ɵɵelement(2, "input", 24);
|
|
160
189
|
i0.ɵɵelementStart(3, "span");
|
|
161
190
|
i0.ɵɵtext(4, "Read");
|
|
162
191
|
i0.ɵɵelementEnd()();
|
|
163
|
-
i0.ɵɵconditionalCreate(5,
|
|
164
|
-
i0.ɵɵconditionalCreate(6,
|
|
192
|
+
i0.ɵɵconditionalCreate(5, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_5_Template, 4, 1, "label", 45);
|
|
193
|
+
i0.ɵɵconditionalCreate(6, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Conditional_6_Template, 4, 1, "label", 45);
|
|
165
194
|
i0.ɵɵelementEnd();
|
|
166
195
|
} if (rf & 2) {
|
|
167
196
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
@@ -172,111 +201,312 @@ function ArtifactShareModalComponent_Conditional_0_Conditional_13_For_2_Conditio
|
|
|
172
201
|
i0.ɵɵadvance();
|
|
173
202
|
i0.ɵɵconditional(ctx_r1.availablePermissions.includes("Edit") ? 6 : -1);
|
|
174
203
|
} }
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
i0.ɵɵelementStart(0, "button",
|
|
178
|
-
i0.ɵɵlistener("click", function
|
|
179
|
-
i0.ɵɵelement(1, "i",
|
|
204
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
205
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
206
|
+
i0.ɵɵelementStart(0, "button", 46);
|
|
207
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const permission_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onEditPermission(permission_r7)); });
|
|
208
|
+
i0.ɵɵelement(1, "i", 47);
|
|
180
209
|
i0.ɵɵelementEnd();
|
|
181
|
-
i0.ɵɵelementStart(2, "button",
|
|
182
|
-
i0.ɵɵlistener("click", function
|
|
183
|
-
i0.ɵɵelement(3, "i",
|
|
210
|
+
i0.ɵɵelementStart(2, "button", 48);
|
|
211
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_1_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r10); const permission_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onRevokePermission(permission_r7)); });
|
|
212
|
+
i0.ɵɵelement(3, "i", 49);
|
|
184
213
|
i0.ɵɵelementEnd();
|
|
185
214
|
} }
|
|
186
|
-
function
|
|
187
|
-
const
|
|
188
|
-
i0.ɵɵelementStart(0, "button",
|
|
189
|
-
i0.ɵɵlistener("click", function
|
|
190
|
-
i0.ɵɵelement(1, "i",
|
|
215
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
216
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
217
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
218
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const permission_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onSavePermission(permission_r7)); });
|
|
219
|
+
i0.ɵɵelement(1, "i", 51);
|
|
191
220
|
i0.ɵɵelementEnd();
|
|
192
|
-
i0.ɵɵelementStart(2, "button",
|
|
193
|
-
i0.ɵɵlistener("click", function
|
|
194
|
-
i0.ɵɵelement(3, "i",
|
|
221
|
+
i0.ɵɵelementStart(2, "button", 52);
|
|
222
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r11); const permission_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onCancelEdit(permission_r7)); });
|
|
223
|
+
i0.ɵɵelement(3, "i", 49);
|
|
195
224
|
i0.ɵɵelementEnd();
|
|
196
225
|
} }
|
|
197
|
-
function
|
|
198
|
-
i0.ɵɵelementStart(0, "div",
|
|
199
|
-
i0.ɵɵconditionalCreate(1,
|
|
226
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
227
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
228
|
+
i0.ɵɵconditionalCreate(1, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_1_Template, 4, 0)(2, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Conditional_2_Template, 4, 0);
|
|
200
229
|
i0.ɵɵelementEnd();
|
|
201
230
|
} if (rf & 2) {
|
|
202
|
-
const
|
|
231
|
+
const permission_r7 = i0.ɵɵnextContext().$implicit;
|
|
203
232
|
i0.ɵɵadvance();
|
|
204
|
-
i0.ɵɵconditional(!
|
|
233
|
+
i0.ɵɵconditional(!permission_r7.isEditing ? 1 : 2);
|
|
205
234
|
} }
|
|
206
|
-
function
|
|
207
|
-
i0.ɵɵelementStart(0, "div",
|
|
208
|
-
i0.ɵɵelement(2, "i",
|
|
235
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
236
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "div", 17);
|
|
237
|
+
i0.ɵɵelement(2, "i", 18);
|
|
209
238
|
i0.ɵɵelementEnd();
|
|
210
|
-
i0.ɵɵelementStart(3, "div",
|
|
239
|
+
i0.ɵɵelementStart(3, "div", 37)(4, "div", 38)(5, "span", 20);
|
|
211
240
|
i0.ɵɵtext(6);
|
|
212
241
|
i0.ɵɵelementEnd();
|
|
213
|
-
i0.ɵɵconditionalCreate(7,
|
|
242
|
+
i0.ɵɵconditionalCreate(7, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_7_Template, 2, 1, "span", 39);
|
|
214
243
|
i0.ɵɵelementEnd();
|
|
215
|
-
i0.ɵɵconditionalCreate(8,
|
|
244
|
+
i0.ɵɵconditionalCreate(8, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_8_Template, 6, 2, "div", 40)(9, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_9_Template, 7, 3, "div", 41);
|
|
216
245
|
i0.ɵɵelementEnd();
|
|
217
|
-
i0.ɵɵconditionalCreate(10,
|
|
246
|
+
i0.ɵɵconditionalCreate(10, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Conditional_10_Template, 3, 1, "div", 42);
|
|
218
247
|
i0.ɵɵelementEnd();
|
|
219
248
|
} if (rf & 2) {
|
|
220
|
-
const
|
|
249
|
+
const permission_r7 = ctx.$implicit;
|
|
221
250
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
222
251
|
i0.ɵɵadvance(6);
|
|
223
|
-
i0.ɵɵtextInterpolate(
|
|
252
|
+
i0.ɵɵtextInterpolate(permission_r7.userName);
|
|
224
253
|
i0.ɵɵadvance();
|
|
225
|
-
i0.ɵɵconditional(
|
|
254
|
+
i0.ɵɵconditional(permission_r7.sharedByUserName ? 7 : -1);
|
|
226
255
|
i0.ɵɵadvance();
|
|
227
|
-
i0.ɵɵconditional(!
|
|
256
|
+
i0.ɵɵconditional(!permission_r7.isEditing ? 8 : 9);
|
|
228
257
|
i0.ɵɵadvance(2);
|
|
229
258
|
i0.ɵɵconditional(ctx_r1.canModifyPermissions ? 10 : -1);
|
|
230
259
|
} }
|
|
231
|
-
function
|
|
232
|
-
i0.ɵɵelementStart(0, "div",
|
|
233
|
-
i0.ɵɵrepeaterCreate(1,
|
|
260
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
261
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
262
|
+
i0.ɵɵrepeaterCreate(1, ArtifactShareModalComponent_Conditional_0_Conditional_9_For_2_Template, 11, 4, "div", 36, _forTrack0);
|
|
234
263
|
i0.ɵɵelementEnd();
|
|
235
264
|
} if (rf & 2) {
|
|
236
265
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
237
266
|
i0.ɵɵadvance();
|
|
238
267
|
i0.ɵɵrepeater(ctx_r1.permissions);
|
|
239
268
|
} }
|
|
269
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
270
|
+
i0.ɵɵelement(0, "i", 65);
|
|
271
|
+
i0.ɵɵtext(1, " Creating... ");
|
|
272
|
+
} }
|
|
273
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
274
|
+
i0.ɵɵelement(0, "i", 31);
|
|
275
|
+
i0.ɵɵtext(1, " Create Guest Link ");
|
|
276
|
+
} }
|
|
277
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
278
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
279
|
+
i0.ɵɵelementStart(0, "div", 60)(1, "div", 66)(2, "span", 67);
|
|
280
|
+
i0.ɵɵtext(3, "New guest link ready (copy now \u2014 token is shown once)");
|
|
281
|
+
i0.ɵɵelementEnd();
|
|
282
|
+
i0.ɵɵelementStart(4, "code", 68);
|
|
283
|
+
i0.ɵɵtext(5);
|
|
284
|
+
i0.ɵɵelementEnd()();
|
|
285
|
+
i0.ɵɵelementStart(6, "button", 69);
|
|
286
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_20_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.CopyGuestShareUrl(ctx_r1.NewlyCreatedGuestLinkUrl)); });
|
|
287
|
+
i0.ɵɵelement(7, "i", 70);
|
|
288
|
+
i0.ɵɵtext(8, " Copy Link ");
|
|
289
|
+
i0.ɵɵelementEnd()();
|
|
290
|
+
} if (rf & 2) {
|
|
291
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
292
|
+
i0.ɵɵadvance(5);
|
|
293
|
+
i0.ɵɵtextInterpolate(ctx_r1.NewlyCreatedGuestLinkUrl);
|
|
294
|
+
} }
|
|
295
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
296
|
+
i0.ɵɵelementStart(0, "div", 61);
|
|
297
|
+
i0.ɵɵtext(1);
|
|
298
|
+
i0.ɵɵelementEnd();
|
|
299
|
+
} if (rf & 2) {
|
|
300
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
301
|
+
i0.ɵɵadvance();
|
|
302
|
+
i0.ɵɵtextInterpolate(ctx_r1.GuestLinksError);
|
|
303
|
+
} }
|
|
304
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
+
i0.ɵɵelementStart(0, "div", 62);
|
|
306
|
+
i0.ɵɵelement(1, "i", 65);
|
|
307
|
+
i0.ɵɵtext(2, " Loading active guest links... ");
|
|
308
|
+
i0.ɵɵelementEnd();
|
|
309
|
+
} }
|
|
310
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
311
|
+
i0.ɵɵelementStart(0, "div", 63);
|
|
312
|
+
i0.ɵɵtext(1, "No active external guest links.");
|
|
313
|
+
i0.ɵɵelementEnd();
|
|
314
|
+
} }
|
|
315
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
316
|
+
i0.ɵɵelementStart(0, "span");
|
|
317
|
+
i0.ɵɵtext(1);
|
|
318
|
+
i0.ɵɵelementEnd();
|
|
319
|
+
} if (rf & 2) {
|
|
320
|
+
const link_r15 = i0.ɵɵnextContext().$implicit;
|
|
321
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
322
|
+
i0.ɵɵadvance();
|
|
323
|
+
i0.ɵɵtextInterpolate1("Expires ", ctx_r1.FormatGuestTimestamp(link_r15.ExpiresAt));
|
|
324
|
+
} }
|
|
325
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
326
|
+
i0.ɵɵelementStart(0, "span");
|
|
327
|
+
i0.ɵɵtext(1, "No expiration");
|
|
328
|
+
i0.ɵɵelementEnd();
|
|
329
|
+
} }
|
|
330
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
331
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
332
|
+
i0.ɵɵelementStart(0, "button", 81);
|
|
333
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const link_r15 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.CopyGuestShareUrl(link_r15.CreatedShareUrl)); });
|
|
334
|
+
i0.ɵɵelement(1, "i", 70);
|
|
335
|
+
i0.ɵɵelementEnd();
|
|
336
|
+
} if (rf & 2) {
|
|
337
|
+
const link_r15 = i0.ɵɵnextContext().$implicit;
|
|
338
|
+
i0.ɵɵattribute("data-testid", "copy-guest-link-" + link_r15.ID);
|
|
339
|
+
} }
|
|
340
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
341
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
342
|
+
i0.ɵɵelementStart(0, "div", 71)(1, "div", 72)(2, "div", 73)(3, "span", 74);
|
|
343
|
+
i0.ɵɵtext(4);
|
|
344
|
+
i0.ɵɵelementEnd();
|
|
345
|
+
i0.ɵɵelementStart(5, "span", 43);
|
|
346
|
+
i0.ɵɵelement(6, "i", 75);
|
|
347
|
+
i0.ɵɵtext(7);
|
|
348
|
+
i0.ɵɵelementEnd()();
|
|
349
|
+
i0.ɵɵelementStart(8, "div", 76);
|
|
350
|
+
i0.ɵɵconditionalCreate(9, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_9_Template, 2, 1, "span")(10, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_10_Template, 2, 0, "span");
|
|
351
|
+
i0.ɵɵelementEnd()();
|
|
352
|
+
i0.ɵɵelementStart(11, "div", 77);
|
|
353
|
+
i0.ɵɵconditionalCreate(12, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Conditional_12_Template, 2, 1, "button", 78);
|
|
354
|
+
i0.ɵɵelementStart(13, "button", 79);
|
|
355
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Template_button_click_13_listener() { const link_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.RevokeGuestShareLink(link_r15)); });
|
|
356
|
+
i0.ɵɵelement(14, "i", 80);
|
|
357
|
+
i0.ɵɵelementEnd()()();
|
|
358
|
+
} if (rf & 2) {
|
|
359
|
+
const link_r15 = ctx.$implicit;
|
|
360
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
361
|
+
i0.ɵɵattribute("data-testid", "guest-link-row-" + link_r15.ID);
|
|
362
|
+
i0.ɵɵadvance(4);
|
|
363
|
+
i0.ɵɵtextInterpolate(link_r15.Label || "External guest link");
|
|
364
|
+
i0.ɵɵadvance(3);
|
|
365
|
+
i0.ɵɵtextInterpolate1(" ", link_r15.ShareMode || "Frozen", " ");
|
|
366
|
+
i0.ɵɵadvance(2);
|
|
367
|
+
i0.ɵɵconditional(link_r15.ExpiresAt ? 9 : 10);
|
|
368
|
+
i0.ɵɵadvance(3);
|
|
369
|
+
i0.ɵɵconditional(link_r15.CreatedShareUrl ? 12 : -1);
|
|
370
|
+
i0.ɵɵadvance();
|
|
371
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsGuestLinkRevoking(link_r15.ID));
|
|
372
|
+
i0.ɵɵattribute("data-testid", "revoke-guest-link-" + link_r15.ID);
|
|
373
|
+
} }
|
|
374
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
375
|
+
i0.ɵɵelementStart(0, "div", 64);
|
|
376
|
+
i0.ɵɵrepeaterCreate(1, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_For_2_Template, 15, 7, "div", 71, _forTrack1);
|
|
377
|
+
i0.ɵɵelementEnd();
|
|
378
|
+
} if (rf & 2) {
|
|
379
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
380
|
+
i0.ɵɵadvance();
|
|
381
|
+
i0.ɵɵrepeater(ctx_r1.GuestLinks);
|
|
382
|
+
} }
|
|
383
|
+
function ArtifactShareModalComponent_Conditional_0_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
384
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
385
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "h3", 6);
|
|
386
|
+
i0.ɵɵelement(2, "i", 53);
|
|
387
|
+
i0.ɵɵtext(3);
|
|
388
|
+
i0.ɵɵelementEnd();
|
|
389
|
+
i0.ɵɵelementStart(4, "p", 54);
|
|
390
|
+
i0.ɵɵtext(5, " Create a read-only frozen snapshot link for external guests without MemberJunction accounts. ");
|
|
391
|
+
i0.ɵɵelementEnd();
|
|
392
|
+
i0.ɵɵelementStart(6, "div", 55)(7, "input", 56);
|
|
393
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.GuestLinkLabel, $event) || (ctx_r1.GuestLinkLabel = $event); return i0.ɵɵresetView($event); });
|
|
394
|
+
i0.ɵɵelementEnd();
|
|
395
|
+
i0.ɵɵelementStart(8, "select", 57);
|
|
396
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Template_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.GuestLinkExpiryHours, $event) || (ctx_r1.GuestLinkExpiryHours = $event); return i0.ɵɵresetView($event); });
|
|
397
|
+
i0.ɵɵelementStart(9, "option", 58);
|
|
398
|
+
i0.ɵɵtext(10, "Expires in 24 hours");
|
|
399
|
+
i0.ɵɵelementEnd();
|
|
400
|
+
i0.ɵɵelementStart(11, "option", 58);
|
|
401
|
+
i0.ɵɵtext(12, "Expires in 3 days");
|
|
402
|
+
i0.ɵɵelementEnd();
|
|
403
|
+
i0.ɵɵelementStart(13, "option", 58);
|
|
404
|
+
i0.ɵɵtext(14, "Expires in 7 days");
|
|
405
|
+
i0.ɵɵelementEnd();
|
|
406
|
+
i0.ɵɵelementStart(15, "option", 58);
|
|
407
|
+
i0.ɵɵtext(16, "Expires in 30 days");
|
|
408
|
+
i0.ɵɵelementEnd()();
|
|
409
|
+
i0.ɵɵelementStart(17, "button", 59);
|
|
410
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Conditional_10_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.CreateGuestShareLink()); });
|
|
411
|
+
i0.ɵɵconditionalCreate(18, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_18_Template, 2, 0)(19, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_19_Template, 2, 0);
|
|
412
|
+
i0.ɵɵelementEnd()();
|
|
413
|
+
i0.ɵɵconditionalCreate(20, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_20_Template, 9, 1, "div", 60);
|
|
414
|
+
i0.ɵɵconditionalCreate(21, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_21_Template, 2, 1, "div", 61);
|
|
415
|
+
i0.ɵɵconditionalCreate(22, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_22_Template, 3, 0, "div", 62)(23, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_23_Template, 2, 0, "div", 63)(24, ArtifactShareModalComponent_Conditional_0_Conditional_10_Conditional_24_Template, 3, 0, "div", 64);
|
|
416
|
+
i0.ɵɵelementEnd();
|
|
417
|
+
} if (rf & 2) {
|
|
418
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
419
|
+
i0.ɵɵadvance(3);
|
|
420
|
+
i0.ɵɵtextInterpolate1(" External Guest Share Links (", ctx_r1.GuestLinks.length, ") ");
|
|
421
|
+
i0.ɵɵadvance(4);
|
|
422
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.GuestLinkLabel);
|
|
423
|
+
i0.ɵɵadvance();
|
|
424
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.GuestLinkExpiryHours);
|
|
425
|
+
i0.ɵɵadvance();
|
|
426
|
+
i0.ɵɵproperty("ngValue", 24);
|
|
427
|
+
i0.ɵɵadvance(2);
|
|
428
|
+
i0.ɵɵproperty("ngValue", 72);
|
|
429
|
+
i0.ɵɵadvance(2);
|
|
430
|
+
i0.ɵɵproperty("ngValue", 168);
|
|
431
|
+
i0.ɵɵadvance(2);
|
|
432
|
+
i0.ɵɵproperty("ngValue", 720);
|
|
433
|
+
i0.ɵɵadvance(2);
|
|
434
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsCreatingGuestLink);
|
|
435
|
+
i0.ɵɵadvance();
|
|
436
|
+
i0.ɵɵconditional(ctx_r1.IsCreatingGuestLink ? 18 : 19);
|
|
437
|
+
i0.ɵɵadvance(2);
|
|
438
|
+
i0.ɵɵconditional(ctx_r1.NewlyCreatedGuestLinkUrl ? 20 : -1);
|
|
439
|
+
i0.ɵɵadvance();
|
|
440
|
+
i0.ɵɵconditional(ctx_r1.GuestLinksError ? 21 : -1);
|
|
441
|
+
i0.ɵɵadvance();
|
|
442
|
+
i0.ɵɵconditional(ctx_r1.IsLoadingGuestLinks ? 22 : ctx_r1.GuestLinks.length === 0 ? 23 : 24);
|
|
443
|
+
} }
|
|
240
444
|
function ArtifactShareModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
241
445
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
242
446
|
i0.ɵɵelementStart(0, "mj-window", 1);
|
|
243
447
|
i0.ɵɵlistener("Close", function ArtifactShareModalComponent_Conditional_0_Template_mj_window_Close_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCancel()); });
|
|
244
|
-
i0.ɵɵelementStart(1, "div", 2)
|
|
245
|
-
i0.ɵɵ
|
|
246
|
-
i0.ɵɵ
|
|
448
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
449
|
+
i0.ɵɵconditionalCreate(2, ArtifactShareModalComponent_Conditional_0_Conditional_2_Template, 6, 3, "div", 3)(3, ArtifactShareModalComponent_Conditional_0_Conditional_3_Template, 4, 0, "div", 4);
|
|
450
|
+
i0.ɵɵelementStart(4, "div", 5)(5, "h3", 6);
|
|
451
|
+
i0.ɵɵelement(6, "i", 7);
|
|
452
|
+
i0.ɵɵtext(7);
|
|
247
453
|
i0.ɵɵelementEnd();
|
|
248
|
-
i0.ɵɵ
|
|
249
|
-
i0.ɵɵlistener("userSelected", function ArtifactShareModalComponent_Conditional_0_Template_mj_user_picker_userSelected_6_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onUserSelected($event)); });
|
|
454
|
+
i0.ɵɵconditionalCreate(8, ArtifactShareModalComponent_Conditional_0_Conditional_8_Template, 1, 0, "mj-empty-state", 8)(9, ArtifactShareModalComponent_Conditional_0_Conditional_9_Template, 3, 0, "div", 9);
|
|
250
455
|
i0.ɵɵelementEnd();
|
|
251
|
-
i0.ɵɵconditionalCreate(
|
|
456
|
+
i0.ɵɵconditionalCreate(10, ArtifactShareModalComponent_Conditional_0_Conditional_10_Template, 25, 12, "div", 10);
|
|
252
457
|
i0.ɵɵelementEnd();
|
|
253
|
-
i0.ɵɵelementStart(
|
|
254
|
-
i0.ɵɵ
|
|
255
|
-
i0.ɵɵtext(
|
|
256
|
-
i0.ɵɵelementEnd();
|
|
257
|
-
i0.ɵɵconditionalCreate(12, ArtifactShareModalComponent_Conditional_0_Conditional_12_Template, 1, 0, "mj-empty-state", 10)(13, ArtifactShareModalComponent_Conditional_0_Conditional_13_Template, 3, 0, "div", 11);
|
|
258
|
-
i0.ɵɵelementEnd()();
|
|
259
|
-
i0.ɵɵelementStart(14, "div", 12)(15, "button", 13);
|
|
260
|
-
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCancel()); });
|
|
261
|
-
i0.ɵɵtext(16, "Close");
|
|
458
|
+
i0.ɵɵelementStart(11, "div", 11)(12, "button", 12);
|
|
459
|
+
i0.ɵɵlistener("click", function ArtifactShareModalComponent_Conditional_0_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCancel()); });
|
|
460
|
+
i0.ɵɵtext(13, "Close");
|
|
262
461
|
i0.ɵɵelementEnd()()();
|
|
263
462
|
} if (rf & 2) {
|
|
264
463
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
265
464
|
i0.ɵɵproperty("Title", "Share: " + ctx_r1.artifact.Name)("Width", 600)("Height", 500)("MinWidth", 400)("MinHeight", 400)("Visible", true);
|
|
266
|
-
i0.ɵɵadvance(
|
|
267
|
-
i0.ɵɵ
|
|
268
|
-
i0.ɵɵadvance();
|
|
269
|
-
i0.ɵɵconditional(ctx_r1.selectedUser ? 7 : -1);
|
|
270
|
-
i0.ɵɵadvance(4);
|
|
465
|
+
i0.ɵɵadvance(2);
|
|
466
|
+
i0.ɵɵconditional(ctx_r1.canModifyPermissions ? 2 : 3);
|
|
467
|
+
i0.ɵɵadvance(5);
|
|
271
468
|
i0.ɵɵtextInterpolate1(" Shared With (", ctx_r1.permissions.length, ") ");
|
|
272
469
|
i0.ɵɵadvance();
|
|
273
|
-
i0.ɵɵconditional(ctx_r1.permissions.length === 0 ?
|
|
470
|
+
i0.ɵɵconditional(ctx_r1.permissions.length === 0 ? 8 : 9);
|
|
471
|
+
i0.ɵɵadvance(2);
|
|
472
|
+
i0.ɵɵconditional(ctx_r1.CanModifyPermissions ? 10 : -1);
|
|
274
473
|
} }
|
|
275
|
-
|
|
474
|
+
const LIST_ARTIFACT_GUEST_SHARE_LINKS_GQL = `
|
|
475
|
+
query ListArtifactGuestShareLinks($artifactId: String!) {
|
|
476
|
+
ListArtifactGuestShareLinks(artifactId: $artifactId) {
|
|
477
|
+
Success
|
|
478
|
+
ErrorMessage
|
|
479
|
+
Links {
|
|
480
|
+
ID
|
|
481
|
+
ArtifactID
|
|
482
|
+
ArtifactVersionID
|
|
483
|
+
Label
|
|
484
|
+
ShareMode
|
|
485
|
+
ExpiresAt
|
|
486
|
+
RevokedAt
|
|
487
|
+
CreatedAt
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
`;
|
|
492
|
+
export class ArtifactShareModalComponent extends BaseAngularComponent {
|
|
276
493
|
permissionService;
|
|
277
494
|
cdr;
|
|
278
495
|
confirmService;
|
|
279
|
-
|
|
496
|
+
_isOpen = false;
|
|
497
|
+
_artifact = null;
|
|
498
|
+
isInitialized = false;
|
|
499
|
+
sessionCreatedUrls = new Map();
|
|
500
|
+
set IsOpen(value) {
|
|
501
|
+
const wasOpen = this._isOpen;
|
|
502
|
+
this._isOpen = Boolean(value);
|
|
503
|
+
if (this.isInitialized && this._isOpen && !wasOpen && this._artifact) {
|
|
504
|
+
void this.reloadModalData();
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
get IsOpen() {
|
|
508
|
+
return this._isOpen;
|
|
509
|
+
}
|
|
280
510
|
/** @deprecated Use {@link IsOpen}. */
|
|
281
511
|
set isOpen(value) {
|
|
282
512
|
this.IsOpen = value;
|
|
@@ -285,7 +515,21 @@ export class ArtifactShareModalComponent {
|
|
|
285
515
|
get isOpen() {
|
|
286
516
|
return this.IsOpen;
|
|
287
517
|
}
|
|
288
|
-
Artifact
|
|
518
|
+
set Artifact(value) {
|
|
519
|
+
const prevId = this._artifact?.ID ?? null;
|
|
520
|
+
const nextId = value?.ID ?? null;
|
|
521
|
+
this._artifact = value;
|
|
522
|
+
if (prevId !== nextId) {
|
|
523
|
+
this.NewlyCreatedGuestLinkUrl = null;
|
|
524
|
+
this.GuestLinksError = null;
|
|
525
|
+
}
|
|
526
|
+
if (this.isInitialized && this._artifact && (this._isOpen || prevId !== nextId)) {
|
|
527
|
+
void this.reloadModalData();
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
get Artifact() {
|
|
531
|
+
return this._artifact;
|
|
532
|
+
}
|
|
289
533
|
/** @deprecated Use {@link Artifact}. */
|
|
290
534
|
set artifact(value) {
|
|
291
535
|
this.Artifact = value;
|
|
@@ -362,24 +606,37 @@ export class ArtifactShareModalComponent {
|
|
|
362
606
|
set newPermissions(value) {
|
|
363
607
|
this.NewPermissions = value;
|
|
364
608
|
}
|
|
609
|
+
GuestLinkLabel = '';
|
|
610
|
+
GuestLinkExpiryHours = 168;
|
|
611
|
+
IsCreatingGuestLink = false;
|
|
612
|
+
IsLoadingGuestLinks = false;
|
|
613
|
+
GuestLinks = [];
|
|
614
|
+
NewlyCreatedGuestLinkUrl = null;
|
|
615
|
+
GuestLinksError = null;
|
|
616
|
+
RevokingGuestLinkId = null;
|
|
365
617
|
constructor(permissionService, cdr, confirmService) {
|
|
618
|
+
super();
|
|
366
619
|
this.permissionService = permissionService;
|
|
367
620
|
this.cdr = cdr;
|
|
368
621
|
this.confirmService = confirmService;
|
|
369
622
|
}
|
|
370
623
|
async ngOnInit() {
|
|
624
|
+
this.isInitialized = true;
|
|
371
625
|
if (this.Artifact) {
|
|
372
|
-
await this.
|
|
373
|
-
await this.updateAvailablePermissions();
|
|
626
|
+
await this.reloadModalData();
|
|
374
627
|
}
|
|
375
628
|
}
|
|
376
|
-
async
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
await this.
|
|
629
|
+
async reloadModalData() {
|
|
630
|
+
if (!this.Artifact)
|
|
631
|
+
return;
|
|
632
|
+
await this.loadPermissions();
|
|
633
|
+
await this.updateAvailablePermissions();
|
|
634
|
+
if (this.CanModifyPermissions) {
|
|
635
|
+
await this.LoadGuestShareLinks();
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
this.GuestLinks = [];
|
|
639
|
+
this.cdr.detectChanges();
|
|
383
640
|
}
|
|
384
641
|
}
|
|
385
642
|
async loadPermissions() {
|
|
@@ -557,15 +814,189 @@ export class ArtifactShareModalComponent {
|
|
|
557
814
|
async onRevokePermission(permission) {
|
|
558
815
|
return this.OnRevokePermission(permission);
|
|
559
816
|
}
|
|
817
|
+
async LoadGuestShareLinks() {
|
|
818
|
+
if (!this.Artifact || !this.CanModifyPermissions) {
|
|
819
|
+
this.GuestLinks = [];
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
this.IsLoadingGuestLinks = true;
|
|
823
|
+
this.GuestLinksError = null;
|
|
824
|
+
this.cdr.detectChanges();
|
|
825
|
+
try {
|
|
826
|
+
const cache = this.sessionCreatedUrls;
|
|
827
|
+
const fallbackArtifactId = this.Artifact.ID;
|
|
828
|
+
const gqlProvider = this.ProviderToUse;
|
|
829
|
+
if (typeof gqlProvider?.ExecuteGQL !== 'function') {
|
|
830
|
+
this.GuestLinksError = 'Failed to load guest share links: GraphQL provider is unavailable.';
|
|
831
|
+
this.GuestLinks = [];
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
const gqlData = await gqlProvider.ExecuteGQL(LIST_ARTIFACT_GUEST_SHARE_LINKS_GQL, {
|
|
835
|
+
artifactId: fallbackArtifactId,
|
|
836
|
+
});
|
|
837
|
+
const payload = gqlData?.ListArtifactGuestShareLinks;
|
|
838
|
+
if (!payload || !payload.Success) {
|
|
839
|
+
this.GuestLinksError = payload?.ErrorMessage || 'Failed to load guest share links.';
|
|
840
|
+
this.GuestLinks = [];
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
this.GuestLinks = (payload.Links ?? [])
|
|
844
|
+
.filter((row) => typeof row.ID === 'string' && row.ID.length > 0)
|
|
845
|
+
.map((row) => ({
|
|
846
|
+
ID: row.ID,
|
|
847
|
+
ArtifactID: row.ArtifactID || fallbackArtifactId,
|
|
848
|
+
ArtifactVersionID: row.ArtifactVersionID ?? null,
|
|
849
|
+
Label: row.Label ?? null,
|
|
850
|
+
ShareMode: row.ShareMode ?? 'Frozen',
|
|
851
|
+
ExpiresAt: row.ExpiresAt ?? null,
|
|
852
|
+
RevokedAt: row.RevokedAt ?? null,
|
|
853
|
+
__mj_CreatedAt: row.CreatedAt ?? null,
|
|
854
|
+
CreatedShareUrl: cache.get(row.ID) ?? null,
|
|
855
|
+
}));
|
|
856
|
+
}
|
|
857
|
+
catch (err) {
|
|
858
|
+
this.GuestLinksError = err instanceof Error ? err.message : 'Failed to load guest share links.';
|
|
859
|
+
this.GuestLinks = [];
|
|
860
|
+
}
|
|
861
|
+
finally {
|
|
862
|
+
this.IsLoadingGuestLinks = false;
|
|
863
|
+
this.cdr.detectChanges();
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
async CreateGuestShareLink() {
|
|
867
|
+
if (!this.Artifact || this.IsCreatingGuestLink) {
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
this.IsCreatingGuestLink = true;
|
|
871
|
+
this.GuestLinksError = null;
|
|
872
|
+
this.cdr.detectChanges();
|
|
873
|
+
try {
|
|
874
|
+
const input = {
|
|
875
|
+
ArtifactID: this.Artifact.ID,
|
|
876
|
+
ExpiresInHours: Number(this.GuestLinkExpiryHours) || 168,
|
|
877
|
+
Label: this.GuestLinkLabel.trim() || undefined,
|
|
878
|
+
};
|
|
879
|
+
const op = new CreateGuestShareLinkOperation();
|
|
880
|
+
const opResult = await op.Execute(input, { provider: this.ProviderToUse });
|
|
881
|
+
if (!opResult.Success || !opResult.Output) {
|
|
882
|
+
const msg = opResult.ErrorMessage || 'Failed to create guest share link.';
|
|
883
|
+
this.GuestLinksError = msg;
|
|
884
|
+
MJNotificationService.Instance.CreateSimpleNotification(msg, 'error', 5000);
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
const fullUrl = this.buildFullGuestShareUrl(opResult.Output.ShareUrlPath, opResult.Output.Token);
|
|
888
|
+
this.sessionCreatedUrls.set(opResult.Output.LinkID, fullUrl);
|
|
889
|
+
this.NewlyCreatedGuestLinkUrl = fullUrl;
|
|
890
|
+
this.GuestLinkLabel = '';
|
|
891
|
+
MJNotificationService.Instance.CreateSimpleNotification('External guest link created', 'success', 3000);
|
|
892
|
+
await this.LoadGuestShareLinks();
|
|
893
|
+
}
|
|
894
|
+
catch (err) {
|
|
895
|
+
const msg = err instanceof Error ? err.message : 'Failed to create guest share link.';
|
|
896
|
+
this.GuestLinksError = msg;
|
|
897
|
+
MJNotificationService.Instance.CreateSimpleNotification(msg, 'error', 5000);
|
|
898
|
+
}
|
|
899
|
+
finally {
|
|
900
|
+
this.IsCreatingGuestLink = false;
|
|
901
|
+
this.cdr.detectChanges();
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
async CopyGuestShareUrl(url) {
|
|
905
|
+
const trimmed = (url ?? '').trim();
|
|
906
|
+
if (!trimmed) {
|
|
907
|
+
return false;
|
|
908
|
+
}
|
|
909
|
+
try {
|
|
910
|
+
if (typeof navigator === 'undefined' || !navigator.clipboard?.writeText) {
|
|
911
|
+
throw new Error('Clipboard API unavailable');
|
|
912
|
+
}
|
|
913
|
+
await navigator.clipboard.writeText(trimmed);
|
|
914
|
+
MJNotificationService.Instance.CreateSimpleNotification('Guest link copied to clipboard', 'success', 3000);
|
|
915
|
+
return true;
|
|
916
|
+
}
|
|
917
|
+
catch (err) {
|
|
918
|
+
console.error('Failed to copy guest link:', err);
|
|
919
|
+
MJNotificationService.Instance.CreateSimpleNotification('Failed to copy link to clipboard. Please copy it manually.', 'error', 5000);
|
|
920
|
+
return false;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
async RevokeGuestShareLink(link) {
|
|
924
|
+
if (!this.Artifact || !link?.ID) {
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
const confirmed = await this.confirmService.ConfirmDelete({
|
|
928
|
+
title: 'Revoke Guest Link',
|
|
929
|
+
message: `Revoke "${link.Label || 'External guest link'}"? External guests using this link will lose access immediately.`,
|
|
930
|
+
confirmText: 'Revoke',
|
|
931
|
+
});
|
|
932
|
+
if (!confirmed) {
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
this.RevokingGuestLinkId = link.ID;
|
|
936
|
+
this.GuestLinksError = null;
|
|
937
|
+
this.cdr.detectChanges();
|
|
938
|
+
try {
|
|
939
|
+
const input = {
|
|
940
|
+
ArtifactID: this.Artifact.ID,
|
|
941
|
+
VersionID: link.ArtifactVersionID ?? '',
|
|
942
|
+
LinkID: link.ID,
|
|
943
|
+
};
|
|
944
|
+
const op = new RevokeGuestShareLinkOperation();
|
|
945
|
+
const opResult = await op.Execute(input, { provider: this.ProviderToUse });
|
|
946
|
+
if (!opResult.Success) {
|
|
947
|
+
const msg = opResult.ErrorMessage || 'Failed to revoke guest link.';
|
|
948
|
+
this.GuestLinksError = msg;
|
|
949
|
+
MJNotificationService.Instance.CreateSimpleNotification(msg, 'error', 5000);
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
this.sessionCreatedUrls.delete(link.ID);
|
|
953
|
+
if (this.NewlyCreatedGuestLinkUrl && link.CreatedShareUrl === this.NewlyCreatedGuestLinkUrl) {
|
|
954
|
+
this.NewlyCreatedGuestLinkUrl = null;
|
|
955
|
+
}
|
|
956
|
+
this.GuestLinks = this.GuestLinks.filter((item) => !UUIDsEqual(item.ID, link.ID));
|
|
957
|
+
MJNotificationService.Instance.CreateSimpleNotification('Guest link revoked', 'success', 3000);
|
|
958
|
+
}
|
|
959
|
+
catch (err) {
|
|
960
|
+
const msg = err instanceof Error ? err.message : 'Failed to revoke guest link.';
|
|
961
|
+
this.GuestLinksError = msg;
|
|
962
|
+
MJNotificationService.Instance.CreateSimpleNotification(msg, 'error', 5000);
|
|
963
|
+
}
|
|
964
|
+
finally {
|
|
965
|
+
this.RevokingGuestLinkId = null;
|
|
966
|
+
this.cdr.detectChanges();
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
IsGuestLinkRevoking(linkId) {
|
|
970
|
+
return Boolean(this.RevokingGuestLinkId && UUIDsEqual(this.RevokingGuestLinkId, linkId));
|
|
971
|
+
}
|
|
972
|
+
FormatGuestTimestamp(value) {
|
|
973
|
+
if (!value) {
|
|
974
|
+
return '';
|
|
975
|
+
}
|
|
976
|
+
const parsed = value instanceof Date ? value : new Date(value);
|
|
977
|
+
if (Number.isNaN(parsed.getTime())) {
|
|
978
|
+
return value instanceof Date ? '' : value;
|
|
979
|
+
}
|
|
980
|
+
return parsed.toLocaleString();
|
|
981
|
+
}
|
|
982
|
+
buildFullGuestShareUrl(shareUrlPath, token) {
|
|
983
|
+
const normalizedPath = shareUrlPath?.trim() || `/magic-link/redeem?token=${encodeURIComponent(token)}`;
|
|
984
|
+
if (/^https?:\/\//i.test(normalizedPath)) {
|
|
985
|
+
return normalizedPath;
|
|
986
|
+
}
|
|
987
|
+
const origin = typeof window !== 'undefined' && window.location?.origin ? window.location.origin : '';
|
|
988
|
+
const prefixed = normalizedPath.startsWith('/') ? normalizedPath : `/${normalizedPath}`;
|
|
989
|
+
return `${origin}${prefixed}`;
|
|
990
|
+
}
|
|
560
991
|
onCancel() {
|
|
561
992
|
this.cancelled.emit();
|
|
562
993
|
}
|
|
563
994
|
static ɵfac = function ArtifactShareModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ArtifactShareModalComponent)(i0.ɵɵdirectiveInject(i1.ArtifactPermissionService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2.MJConfirmService)); };
|
|
564
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArtifactShareModalComponent, selectors: [["mj-artifact-share-modal"]], inputs: { IsOpen: "IsOpen", isOpen: "isOpen", Artifact: "Artifact", artifact: "artifact", CurrentUser: "CurrentUser", currentUser: "currentUser" }, outputs: { Saved: "Saved", saved: "saved", cancelled: "cancelled" }, features: [i0.ɵɵ
|
|
565
|
-
i0.ɵɵconditionalCreate(0, ArtifactShareModalComponent_Conditional_0_Template,
|
|
995
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArtifactShareModalComponent, selectors: [["mj-artifact-share-modal"]], inputs: { IsOpen: "IsOpen", isOpen: "isOpen", Artifact: "Artifact", artifact: "artifact", CurrentUser: "CurrentUser", currentUser: "currentUser" }, outputs: { Saved: "Saved", saved: "saved", cancelled: "cancelled" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Title", "Width", "Height", "MinWidth", "MinHeight", "Visible"], [3, "Close", "Title", "Width", "Height", "MinWidth", "MinHeight", "Visible"], [1, "share-modal-content"], ["data-testid", "artifact-share-add-section", 1, "add-user-section"], ["data-testid", "artifact-share-readonly-notice", 1, "owner-only-notice"], [1, "permissions-list-section"], [1, "section-title"], [1, "fa-solid", "fa-users"], ["Icon", "fa-solid fa-user-slash", "Title", "Not shared with anyone yet", "Size", "compact"], [1, "permissions-list"], [1, "guest-links-section"], [1, "modal-actions"], ["mjButton", "", 3, "click"], [1, "fa-solid", "fa-user-plus"], [3, "userSelected", "currentUser", "excludeUserIds"], [1, "permissions-form"], [1, "selected-user-info"], [1, "user-avatar"], [1, "fa-solid", "fa-user"], [1, "user-details"], [1, "user-name"], [1, "user-email"], [1, "permissions-grid"], [1, "permission-checkbox", "disabled"], ["type", "checkbox", "disabled", "", 3, "checked"], [1, "permission-label"], [1, "fa-solid", "fa-eye"], [1, "permission-desc"], [1, "permission-checkbox"], [1, "form-actions"], ["mjButton", "", "variant", "primary", 3, "click", "disabled"], [1, "fa-solid", "fa-plus"], ["type", "checkbox", 3, "ngModelChange", "ngModel"], [1, "fa-solid", "fa-share-nodes"], [1, "fa-solid", "fa-pen-to-square"], [1, "fa-solid", "fa-lock"], [1, "permission-item"], [1, "permission-details"], [1, "permission-user"], [1, "shared-by"], [1, "permission-badges"], [1, "permissions-edit-grid"], [1, "permission-actions"], [1, "permission-badge"], [1, "permission-checkbox-small", "disabled"], [1, "permission-checkbox-small"], ["mjButton", "", "variant", "flat", "size", "sm", "title", "Edit", 3, "click"], [1, "fa-solid", "fa-pen"], ["mjButton", "", "variant", "danger", "size", "sm", "title", "Remove", 3, "click"], [1, "fa-solid", "fa-xmark"], ["mjButton", "", "variant", "success", "size", "sm", "title", "Save", 3, "click"], [1, "fa-solid", "fa-check"], ["mjButton", "", "variant", "flat", "size", "sm", "title", "Cancel", 3, "click"], [1, "fa-solid", "fa-link"], [1, "guest-links-hint"], [1, "guest-link-create-row"], ["type", "text", "placeholder", "Optional label (e.g. Board Review)", "maxlength", "120", "data-testid", "guest-link-label-input", 1, "guest-label-input", 3, "ngModelChange", "ngModel"], ["aria-label", "Link expiration", "data-testid", "guest-link-expiry-select", 1, "guest-expiry-select", 3, "ngModelChange", "ngModel"], [3, "ngValue"], ["mjButton", "", "variant", "primary", "size", "sm", "data-testid", "create-guest-link-btn", 3, "click", "disabled"], ["data-testid", "guest-link-created-banner", 1, "guest-link-created-banner"], ["role", "alert", 1, "guest-links-error"], [1, "guest-links-loading"], [1, "guest-links-empty"], ["data-testid", "guest-links-list", 1, "guest-links-list"], [1, "fa-solid", "fa-spinner", "fa-spin"], [1, "guest-link-created-text"], [1, "guest-link-created-title"], [1, "guest-link-url"], ["mjButton", "", "variant", "secondary", "size", "sm", "data-testid", "copy-new-guest-link-btn", 3, "click"], [1, "fa-solid", "fa-copy"], [1, "guest-link-item"], [1, "guest-link-meta"], [1, "guest-link-name-row"], [1, "guest-link-label"], [1, "fa-solid", "fa-snowflake"], [1, "guest-link-sub"], [1, "guest-link-actions"], ["mjButton", "", "variant", "flat", "size", "sm", "title", "Copy guest share link"], ["mjButton", "", "variant", "danger", "size", "sm", "title", "Revoke guest link", 3, "click", "disabled"], [1, "fa-solid", "fa-ban"], ["mjButton", "", "variant", "flat", "size", "sm", "title", "Copy guest share link", 3, "click"]], template: function ArtifactShareModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
996
|
+
i0.ɵɵconditionalCreate(0, ArtifactShareModalComponent_Conditional_0_Template, 14, 10, "mj-window", 0);
|
|
566
997
|
} if (rf & 2) {
|
|
567
998
|
i0.ɵɵconditional(ctx.isOpen && ctx.artifact ? 0 : -1);
|
|
568
|
-
} }, dependencies: [FormsModule, i3.CheckboxControlValueAccessor, i3.NgControlStatus, i3.NgModel, MJWindowComponent, MJButtonDirective, MJEmptyStateComponent, UserPickerComponent], styles: [".share-modal-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 20px;\n height: 100%;\n overflow-y: auto;\n}\n\n.section-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 16px 0;\n}\n.section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n.add-user-section[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-default);\n padding-bottom: 24px;\n}\n\n.selected-user-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 16px 0;\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n}\n\n.user-avatar[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 16px;\n flex-shrink: 0;\n}\n\n.user-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n.user-details[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.user-details[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-top: 2px;\n}\n\n.permissions-form[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n\n.permissions-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n gap: 12px;\n margin: 16px 0;\n}\n\n.permission-checkbox[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.permission-checkbox[_ngcontent-%COMP%]:hover:not(.disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox.disabled[_ngcontent-%COMP%] {\n opacity: 0.6;\n cursor: not-allowed;\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin-right: 8px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-desc[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-left: 28px;\n}\n\n.form-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n margin-top: 16px;\n}\n\n.permissions-list-section[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.permissions-list[_ngcontent-%COMP%] {\n flex: 1;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.permission-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: background 0.2s;\n}\n.permission-item[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.permission-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.permission-user[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n.permission-user[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%] {\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-user[_ngcontent-%COMP%] .shared-by[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.permission-badges[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.permission-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n}\n.permission-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 10px;\n}\n\n.permissions-edit-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.permission-checkbox-small[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n cursor: pointer;\n}\n.permission-checkbox-small.disabled[_ngcontent-%COMP%] {\n opacity: 0.6;\n cursor: not-allowed;\n}\n.permission-checkbox-small[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin: 0;\n}\n.permission-checkbox-small[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n}\n\n.permission-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 4px;\n}\n\n.btn-primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary) !important;\n color: var(--mj-text-inverse) !important;\n border: none !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover) !important;\n}\n.btn-primary[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.btn-primary[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.btn-secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface) !important;\n color: var(--mj-text-secondary) !important;\n border: 1px solid var(--mj-border-default) !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n}\n.btn-secondary[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken) !important;\n border-color: var(--mj-border-strong) !important;\n}\n\n.btn-icon[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s;\n}\n.btn-icon[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-strong);\n}\n.btn-icon.btn-success[_ngcontent-%COMP%] {\n color: var(--mj-status-success);\n border-color: var(--mj-status-success);\n}\n.btn-icon.btn-success[_ngcontent-%COMP%]:hover {\n background: var(--mj-status-success-bg);\n}\n.btn-icon.btn-danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: var(--mj-status-error);\n}\n.btn-icon.btn-danger[_ngcontent-%COMP%]:hover {\n background: var(--mj-status-error-bg);\n}\n.btn-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.modal-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n}"] });
|
|
999
|
+
} }, dependencies: [FormsModule, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.MaxLengthValidator, i3.NgModel, MJWindowComponent, MJButtonDirective, MJEmptyStateComponent, UserPickerComponent], styles: [".share-modal-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 20px;\n height: 100%;\n overflow-y: auto;\n}\n\n.section-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 16px 0;\n}\n.section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n.add-user-section[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-default);\n padding-bottom: 24px;\n}\n\n.selected-user-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 16px 0;\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n}\n\n.user-avatar[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 16px;\n flex-shrink: 0;\n}\n\n.user-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n.user-details[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.user-details[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-top: 2px;\n}\n\n.permissions-form[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n\n.permissions-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n gap: 12px;\n margin: 16px 0;\n}\n\n.permission-checkbox[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.permission-checkbox[_ngcontent-%COMP%]:hover:not(.disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox.disabled[_ngcontent-%COMP%] {\n opacity: 0.6;\n cursor: not-allowed;\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin-right: 8px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.permission-checkbox[_ngcontent-%COMP%] .permission-desc[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-left: 28px;\n}\n\n.form-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n margin-top: 16px;\n}\n\n.permissions-list-section[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.permissions-list[_ngcontent-%COMP%] {\n flex: 1;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.permission-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: background 0.2s;\n}\n.permission-item[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.permission-details[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.permission-user[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n.permission-user[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%] {\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-user[_ngcontent-%COMP%] .shared-by[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.permission-badges[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.permission-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n}\n.permission-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 10px;\n}\n\n.permissions-edit-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.permission-checkbox-small[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n cursor: pointer;\n}\n.permission-checkbox-small.disabled[_ngcontent-%COMP%] {\n opacity: 0.6;\n cursor: not-allowed;\n}\n.permission-checkbox-small[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin: 0;\n}\n.permission-checkbox-small[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n}\n\n.permission-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 4px;\n}\n\n.btn-primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary) !important;\n color: var(--mj-text-inverse) !important;\n border: none !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover) !important;\n}\n.btn-primary[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.btn-primary[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.btn-secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface) !important;\n color: var(--mj-text-secondary) !important;\n border: 1px solid var(--mj-border-default) !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n}\n.btn-secondary[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken) !important;\n border-color: var(--mj-border-strong) !important;\n}\n\n.btn-icon[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s;\n}\n.btn-icon[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-strong);\n}\n.btn-icon.btn-success[_ngcontent-%COMP%] {\n color: var(--mj-status-success);\n border-color: var(--mj-status-success);\n}\n.btn-icon.btn-success[_ngcontent-%COMP%]:hover {\n background: var(--mj-status-success-bg);\n}\n.btn-icon.btn-danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: var(--mj-status-error);\n}\n.btn-icon.btn-danger[_ngcontent-%COMP%]:hover {\n background: var(--mj-status-error-bg);\n}\n.btn-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.modal-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n}\n\n.guest-links-section[_ngcontent-%COMP%] {\n border-top: 1px solid var(--mj-border-default);\n padding-top: 20px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.guest-links-hint[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.guest-link-create-row[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n flex-wrap: wrap;\n align-items: center;\n}\n\n.guest-label-input[_ngcontent-%COMP%] {\n flex: 1 1 200px;\n min-width: 160px;\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.guest-expiry-select[_ngcontent-%COMP%] {\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.guest-link-created-banner[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-status-success-bg);\n border: 1px solid var(--mj-status-success);\n}\n\n.guest-link-created-text[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n}\n\n.guest-link-created-title[_ngcontent-%COMP%] {\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.guest-link-url[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n word-break: break-all;\n}\n\n.guest-links-error[_ngcontent-%COMP%] {\n padding: 8px 12px;\n border-radius: 6px;\n background: var(--mj-status-error-bg);\n border: 1px solid var(--mj-status-error);\n color: var(--mj-status-error-text);\n font-size: 12px;\n}\n\n.guest-links-loading[_ngcontent-%COMP%], \n.guest-links-empty[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n padding: 6px 0;\n}\n\n.guest-links-list[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.guest-link-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 10px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n background: var(--mj-bg-surface);\n}\n\n.guest-link-meta[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n}\n\n.guest-link-name-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.guest-link-label[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.guest-link-sub[_ngcontent-%COMP%] {\n margin-top: 2px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.guest-link-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.owner-only-notice[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n font-size: 13px;\n}"] });
|
|
569
1000
|
}
|
|
570
1001
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArtifactShareModalComponent, [{
|
|
571
1002
|
type: Component,
|
|
@@ -582,75 +1013,82 @@ export class ArtifactShareModalComponent {
|
|
|
582
1013
|
>
|
|
583
1014
|
<div class="share-modal-content">
|
|
584
1015
|
<!-- Add User Section -->
|
|
585
|
-
|
|
586
|
-
<
|
|
587
|
-
<
|
|
588
|
-
|
|
589
|
-
|
|
1016
|
+
@if (canModifyPermissions) {
|
|
1017
|
+
<div class="add-user-section" data-testid="artifact-share-add-section">
|
|
1018
|
+
<h3 class="section-title">
|
|
1019
|
+
<i class="fa-solid fa-user-plus"></i>
|
|
1020
|
+
Share with User
|
|
1021
|
+
</h3>
|
|
590
1022
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
1023
|
+
<mj-user-picker
|
|
1024
|
+
[currentUser]="currentUser"
|
|
1025
|
+
[excludeUserIds]="getExcludedUserIds()"
|
|
1026
|
+
(userSelected)="onUserSelected($event)"
|
|
1027
|
+
></mj-user-picker>
|
|
596
1028
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
1029
|
+
@if (selectedUser) {
|
|
1030
|
+
<div class="permissions-form">
|
|
1031
|
+
<div class="selected-user-info">
|
|
1032
|
+
<div class="user-avatar">
|
|
1033
|
+
<i class="fa-solid fa-user"></i>
|
|
1034
|
+
</div>
|
|
1035
|
+
<div class="user-details">
|
|
1036
|
+
<div class="user-name">{{ selectedUser.name }}</div>
|
|
1037
|
+
<div class="user-email">{{ selectedUser.email }}</div>
|
|
1038
|
+
</div>
|
|
606
1039
|
</div>
|
|
607
|
-
</div>
|
|
608
|
-
|
|
609
|
-
<div class="permissions-grid">
|
|
610
|
-
<label class="permission-checkbox disabled">
|
|
611
|
-
<input type="checkbox" [checked]="true" disabled>
|
|
612
|
-
<span class="permission-label">
|
|
613
|
-
<i class="fa-solid fa-eye"></i>
|
|
614
|
-
Read
|
|
615
|
-
</span>
|
|
616
|
-
<span class="permission-desc">View artifact content</span>
|
|
617
|
-
</label>
|
|
618
1040
|
|
|
619
|
-
|
|
620
|
-
<label class="permission-checkbox">
|
|
621
|
-
<input type="checkbox" [
|
|
1041
|
+
<div class="permissions-grid">
|
|
1042
|
+
<label class="permission-checkbox disabled">
|
|
1043
|
+
<input type="checkbox" [checked]="true" disabled>
|
|
622
1044
|
<span class="permission-label">
|
|
623
|
-
<i class="fa-solid fa-
|
|
624
|
-
|
|
1045
|
+
<i class="fa-solid fa-eye"></i>
|
|
1046
|
+
Read
|
|
625
1047
|
</span>
|
|
626
|
-
<span class="permission-desc">
|
|
1048
|
+
<span class="permission-desc">View artifact content</span>
|
|
627
1049
|
</label>
|
|
628
|
-
}
|
|
629
1050
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
</div>
|
|
1051
|
+
@if (availablePermissions.includes('Share')) {
|
|
1052
|
+
<label class="permission-checkbox">
|
|
1053
|
+
<input type="checkbox" [(ngModel)]="newPermissions.canShare">
|
|
1054
|
+
<span class="permission-label">
|
|
1055
|
+
<i class="fa-solid fa-share-nodes"></i>
|
|
1056
|
+
Share
|
|
1057
|
+
</span>
|
|
1058
|
+
<span class="permission-desc">Share with others</span>
|
|
1059
|
+
</label>
|
|
1060
|
+
}
|
|
641
1061
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
1062
|
+
@if (availablePermissions.includes('Edit')) {
|
|
1063
|
+
<label class="permission-checkbox">
|
|
1064
|
+
<input type="checkbox" [(ngModel)]="newPermissions.canEdit">
|
|
1065
|
+
<span class="permission-label">
|
|
1066
|
+
<i class="fa-solid fa-pen-to-square"></i>
|
|
1067
|
+
Edit
|
|
1068
|
+
</span>
|
|
1069
|
+
<span class="permission-desc">Edit and delete artifact</span>
|
|
1070
|
+
</label>
|
|
1071
|
+
}
|
|
1072
|
+
</div>
|
|
1073
|
+
|
|
1074
|
+
<div class="form-actions">
|
|
1075
|
+
<button mjButton variant="primary" (click)="onAddUser()" [disabled]="!selectedUser">
|
|
1076
|
+
<i class="fa-solid fa-plus"></i>
|
|
1077
|
+
Add User
|
|
1078
|
+
</button>
|
|
1079
|
+
<button mjButton (click)="onClearSelection()">
|
|
1080
|
+
Cancel
|
|
1081
|
+
</button>
|
|
1082
|
+
</div>
|
|
650
1083
|
</div>
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
1084
|
+
}
|
|
1085
|
+
</div>
|
|
1086
|
+
} @else {
|
|
1087
|
+
<div class="owner-only-notice" data-testid="artifact-share-readonly-notice">
|
|
1088
|
+
<i class="fa-solid fa-lock"></i>
|
|
1089
|
+
<span>You have view-only sharing visibility. Only users with Share permission or ownership can add or revoke access.</span>
|
|
1090
|
+
</div>
|
|
1091
|
+
}
|
|
654
1092
|
|
|
655
1093
|
<!-- Current Permissions Section -->
|
|
656
1094
|
<div class="permissions-list-section">
|
|
@@ -741,6 +1179,137 @@ export class ArtifactShareModalComponent {
|
|
|
741
1179
|
</div>
|
|
742
1180
|
}
|
|
743
1181
|
</div>
|
|
1182
|
+
|
|
1183
|
+
@if (CanModifyPermissions) {
|
|
1184
|
+
<!-- External Guest Share Links Section (NW-1) -->
|
|
1185
|
+
<div class="guest-links-section">
|
|
1186
|
+
<h3 class="section-title">
|
|
1187
|
+
<i class="fa-solid fa-link"></i>
|
|
1188
|
+
External Guest Share Links ({{ GuestLinks.length }})
|
|
1189
|
+
</h3>
|
|
1190
|
+
<p class="guest-links-hint">
|
|
1191
|
+
Create a read-only frozen snapshot link for external guests without MemberJunction accounts.
|
|
1192
|
+
</p>
|
|
1193
|
+
|
|
1194
|
+
<div class="guest-link-create-row">
|
|
1195
|
+
<input
|
|
1196
|
+
type="text"
|
|
1197
|
+
class="guest-label-input"
|
|
1198
|
+
[(ngModel)]="GuestLinkLabel"
|
|
1199
|
+
placeholder="Optional label (e.g. Board Review)"
|
|
1200
|
+
maxlength="120"
|
|
1201
|
+
data-testid="guest-link-label-input"
|
|
1202
|
+
/>
|
|
1203
|
+
<select
|
|
1204
|
+
class="guest-expiry-select"
|
|
1205
|
+
[(ngModel)]="GuestLinkExpiryHours"
|
|
1206
|
+
aria-label="Link expiration"
|
|
1207
|
+
data-testid="guest-link-expiry-select"
|
|
1208
|
+
>
|
|
1209
|
+
<option [ngValue]="24">Expires in 24 hours</option>
|
|
1210
|
+
<option [ngValue]="72">Expires in 3 days</option>
|
|
1211
|
+
<option [ngValue]="168">Expires in 7 days</option>
|
|
1212
|
+
<option [ngValue]="720">Expires in 30 days</option>
|
|
1213
|
+
</select>
|
|
1214
|
+
<button
|
|
1215
|
+
mjButton
|
|
1216
|
+
variant="primary"
|
|
1217
|
+
size="sm"
|
|
1218
|
+
[disabled]="IsCreatingGuestLink"
|
|
1219
|
+
(click)="CreateGuestShareLink()"
|
|
1220
|
+
data-testid="create-guest-link-btn"
|
|
1221
|
+
>
|
|
1222
|
+
@if (IsCreatingGuestLink) {
|
|
1223
|
+
<i class="fa-solid fa-spinner fa-spin"></i>
|
|
1224
|
+
Creating...
|
|
1225
|
+
} @else {
|
|
1226
|
+
<i class="fa-solid fa-plus"></i>
|
|
1227
|
+
Create Guest Link
|
|
1228
|
+
}
|
|
1229
|
+
</button>
|
|
1230
|
+
</div>
|
|
1231
|
+
|
|
1232
|
+
@if (NewlyCreatedGuestLinkUrl) {
|
|
1233
|
+
<div class="guest-link-created-banner" data-testid="guest-link-created-banner">
|
|
1234
|
+
<div class="guest-link-created-text">
|
|
1235
|
+
<span class="guest-link-created-title">New guest link ready (copy now — token is shown once)</span>
|
|
1236
|
+
<code class="guest-link-url">{{ NewlyCreatedGuestLinkUrl }}</code>
|
|
1237
|
+
</div>
|
|
1238
|
+
<button
|
|
1239
|
+
mjButton
|
|
1240
|
+
variant="secondary"
|
|
1241
|
+
size="sm"
|
|
1242
|
+
(click)="CopyGuestShareUrl(NewlyCreatedGuestLinkUrl)"
|
|
1243
|
+
data-testid="copy-new-guest-link-btn"
|
|
1244
|
+
>
|
|
1245
|
+
<i class="fa-solid fa-copy"></i>
|
|
1246
|
+
Copy Link
|
|
1247
|
+
</button>
|
|
1248
|
+
</div>
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
@if (GuestLinksError) {
|
|
1252
|
+
<div class="guest-links-error" role="alert">{{ GuestLinksError }}</div>
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
@if (IsLoadingGuestLinks) {
|
|
1256
|
+
<div class="guest-links-loading">
|
|
1257
|
+
<i class="fa-solid fa-spinner fa-spin"></i>
|
|
1258
|
+
Loading active guest links...
|
|
1259
|
+
</div>
|
|
1260
|
+
} @else if (GuestLinks.length === 0) {
|
|
1261
|
+
<div class="guest-links-empty">No active external guest links.</div>
|
|
1262
|
+
} @else {
|
|
1263
|
+
<div class="guest-links-list" data-testid="guest-links-list">
|
|
1264
|
+
@for (link of GuestLinks; track link.ID) {
|
|
1265
|
+
<div class="guest-link-item" [attr.data-testid]="'guest-link-row-' + link.ID">
|
|
1266
|
+
<div class="guest-link-meta">
|
|
1267
|
+
<div class="guest-link-name-row">
|
|
1268
|
+
<span class="guest-link-label">{{ link.Label || 'External guest link' }}</span>
|
|
1269
|
+
<span class="permission-badge">
|
|
1270
|
+
<i class="fa-solid fa-snowflake"></i>
|
|
1271
|
+
{{ link.ShareMode || 'Frozen' }}
|
|
1272
|
+
</span>
|
|
1273
|
+
</div>
|
|
1274
|
+
<div class="guest-link-sub">
|
|
1275
|
+
@if (link.ExpiresAt) {
|
|
1276
|
+
<span>Expires {{ FormatGuestTimestamp(link.ExpiresAt) }}</span>
|
|
1277
|
+
} @else {
|
|
1278
|
+
<span>No expiration</span>
|
|
1279
|
+
}
|
|
1280
|
+
</div>
|
|
1281
|
+
</div>
|
|
1282
|
+
<div class="guest-link-actions">
|
|
1283
|
+
@if (link.CreatedShareUrl) {
|
|
1284
|
+
<button
|
|
1285
|
+
mjButton
|
|
1286
|
+
variant="flat"
|
|
1287
|
+
size="sm"
|
|
1288
|
+
(click)="CopyGuestShareUrl(link.CreatedShareUrl)"
|
|
1289
|
+
title="Copy guest share link"
|
|
1290
|
+
[attr.data-testid]="'copy-guest-link-' + link.ID"
|
|
1291
|
+
>
|
|
1292
|
+
<i class="fa-solid fa-copy"></i>
|
|
1293
|
+
</button>
|
|
1294
|
+
}
|
|
1295
|
+
<button
|
|
1296
|
+
mjButton
|
|
1297
|
+
variant="danger"
|
|
1298
|
+
size="sm"
|
|
1299
|
+
[disabled]="IsGuestLinkRevoking(link.ID)"
|
|
1300
|
+
(click)="RevokeGuestShareLink(link)"
|
|
1301
|
+
title="Revoke guest link"
|
|
1302
|
+
[attr.data-testid]="'revoke-guest-link-' + link.ID"
|
|
1303
|
+
>
|
|
1304
|
+
<i class="fa-solid fa-ban"></i>
|
|
1305
|
+
</button>
|
|
1306
|
+
</div>
|
|
1307
|
+
</div>
|
|
1308
|
+
}
|
|
1309
|
+
</div>
|
|
1310
|
+
}
|
|
1311
|
+
</div>
|
|
1312
|
+
}
|
|
744
1313
|
</div>
|
|
745
1314
|
|
|
746
1315
|
<div class="modal-actions">
|
|
@@ -748,7 +1317,7 @@ export class ArtifactShareModalComponent {
|
|
|
748
1317
|
</div>
|
|
749
1318
|
</mj-window>
|
|
750
1319
|
}
|
|
751
|
-
`, styles: [".share-modal-content {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 20px;\n height: 100%;\n overflow-y: auto;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 16px 0;\n}\n.section-title i {\n color: var(--mj-brand-primary);\n}\n\n.add-user-section {\n border-bottom: 1px solid var(--mj-border-default);\n padding-bottom: 24px;\n}\n\n.selected-user-info {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 16px 0;\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n}\n\n.user-avatar {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 16px;\n flex-shrink: 0;\n}\n\n.user-details {\n flex: 1;\n min-width: 0;\n}\n.user-details .user-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.user-details .user-email {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-top: 2px;\n}\n\n.permissions-form {\n margin-top: 16px;\n}\n\n.permissions-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n gap: 12px;\n margin: 16px 0;\n}\n\n.permission-checkbox {\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.permission-checkbox:hover:not(.disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox.disabled {\n opacity: 0.6;\n cursor: not-allowed;\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox input[type=checkbox] {\n margin-right: 8px;\n}\n.permission-checkbox .permission-label {\n display: flex;\n align-items: center;\n gap: 8px;\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-checkbox .permission-label i {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.permission-checkbox .permission-desc {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-left: 28px;\n}\n\n.form-actions {\n display: flex;\n gap: 8px;\n margin-top: 16px;\n}\n\n.permissions-list-section {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.permissions-list {\n flex: 1;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.permission-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: background 0.2s;\n}\n.permission-item:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.permission-details {\n flex: 1;\n min-width: 0;\n}\n\n.permission-user {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n.permission-user .user-name {\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-user .shared-by {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.permission-badges {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.permission-badge {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n}\n.permission-badge i {\n font-size: 10px;\n}\n\n.permissions-edit-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.permission-checkbox-small {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n cursor: pointer;\n}\n.permission-checkbox-small.disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n.permission-checkbox-small input[type=checkbox] {\n margin: 0;\n}\n.permission-checkbox-small span {\n color: var(--mj-text-primary);\n}\n\n.permission-actions {\n display: flex;\n gap: 4px;\n}\n\n.btn-primary {\n background: var(--mj-brand-primary) !important;\n color: var(--mj-text-inverse) !important;\n border: none !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover) !important;\n}\n.btn-primary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.btn-primary i {\n font-size: 12px;\n}\n\n.btn-secondary {\n background: var(--mj-bg-surface) !important;\n color: var(--mj-text-secondary) !important;\n border: 1px solid var(--mj-border-default) !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n}\n.btn-secondary:hover {\n background: var(--mj-bg-surface-sunken) !important;\n border-color: var(--mj-border-strong) !important;\n}\n\n.btn-icon {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s;\n}\n.btn-icon:hover {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-strong);\n}\n.btn-icon.btn-success {\n color: var(--mj-status-success);\n border-color: var(--mj-status-success);\n}\n.btn-icon.btn-success:hover {\n background: var(--mj-status-success-bg);\n}\n.btn-icon.btn-danger {\n color: var(--mj-status-error);\n border-color: var(--mj-status-error);\n}\n.btn-icon.btn-danger:hover {\n background: var(--mj-status-error-bg);\n}\n.btn-icon i {\n font-size: 14px;\n}\n\n.modal-actions {\n display: flex;\n justify-content: flex-end;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n}\n"] }]
|
|
1320
|
+
`, styles: [".share-modal-content {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 20px;\n height: 100%;\n overflow-y: auto;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 16px 0;\n}\n.section-title i {\n color: var(--mj-brand-primary);\n}\n\n.add-user-section {\n border-bottom: 1px solid var(--mj-border-default);\n padding-bottom: 24px;\n}\n\n.selected-user-info {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 16px 0;\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n}\n\n.user-avatar {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 16px;\n flex-shrink: 0;\n}\n\n.user-details {\n flex: 1;\n min-width: 0;\n}\n.user-details .user-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.user-details .user-email {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-top: 2px;\n}\n\n.permissions-form {\n margin-top: 16px;\n}\n\n.permissions-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n gap: 12px;\n margin: 16px 0;\n}\n\n.permission-checkbox {\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.permission-checkbox:hover:not(.disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox.disabled {\n opacity: 0.6;\n cursor: not-allowed;\n background: var(--mj-bg-surface-sunken);\n}\n.permission-checkbox input[type=checkbox] {\n margin-right: 8px;\n}\n.permission-checkbox .permission-label {\n display: flex;\n align-items: center;\n gap: 8px;\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-checkbox .permission-label i {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.permission-checkbox .permission-desc {\n font-size: 12px;\n color: var(--mj-text-secondary);\n margin-left: 28px;\n}\n\n.form-actions {\n display: flex;\n gap: 8px;\n margin-top: 16px;\n}\n\n.permissions-list-section {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.permissions-list {\n flex: 1;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.permission-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: background 0.2s;\n}\n.permission-item:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.permission-details {\n flex: 1;\n min-width: 0;\n}\n\n.permission-user {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n.permission-user .user-name {\n font-weight: 500;\n color: var(--mj-text-primary);\n font-size: 14px;\n}\n.permission-user .shared-by {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.permission-badges {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.permission-badge {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n}\n.permission-badge i {\n font-size: 10px;\n}\n\n.permissions-edit-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.permission-checkbox-small {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n cursor: pointer;\n}\n.permission-checkbox-small.disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n.permission-checkbox-small input[type=checkbox] {\n margin: 0;\n}\n.permission-checkbox-small span {\n color: var(--mj-text-primary);\n}\n\n.permission-actions {\n display: flex;\n gap: 4px;\n}\n\n.btn-primary {\n background: var(--mj-brand-primary) !important;\n color: var(--mj-text-inverse) !important;\n border: none !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover) !important;\n}\n.btn-primary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.btn-primary i {\n font-size: 12px;\n}\n\n.btn-secondary {\n background: var(--mj-bg-surface) !important;\n color: var(--mj-text-secondary) !important;\n border: 1px solid var(--mj-border-default) !important;\n padding: 8px 16px;\n border-radius: 6px;\n font-weight: 500;\n cursor: pointer;\n}\n.btn-secondary:hover {\n background: var(--mj-bg-surface-sunken) !important;\n border-color: var(--mj-border-strong) !important;\n}\n\n.btn-icon {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s;\n}\n.btn-icon:hover {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-strong);\n}\n.btn-icon.btn-success {\n color: var(--mj-status-success);\n border-color: var(--mj-status-success);\n}\n.btn-icon.btn-success:hover {\n background: var(--mj-status-success-bg);\n}\n.btn-icon.btn-danger {\n color: var(--mj-status-error);\n border-color: var(--mj-status-error);\n}\n.btn-icon.btn-danger:hover {\n background: var(--mj-status-error-bg);\n}\n.btn-icon i {\n font-size: 14px;\n}\n\n.modal-actions {\n display: flex;\n justify-content: flex-end;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n}\n\n.guest-links-section {\n border-top: 1px solid var(--mj-border-default);\n padding-top: 20px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.guest-links-hint {\n margin: 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.guest-link-create-row {\n display: flex;\n gap: 8px;\n flex-wrap: wrap;\n align-items: center;\n}\n\n.guest-label-input {\n flex: 1 1 200px;\n min-width: 160px;\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.guest-expiry-select {\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.guest-link-created-banner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-status-success-bg);\n border: 1px solid var(--mj-status-success);\n}\n\n.guest-link-created-text {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n}\n\n.guest-link-created-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.guest-link-url {\n font-size: 12px;\n color: var(--mj-text-secondary);\n word-break: break-all;\n}\n\n.guest-links-error {\n padding: 8px 12px;\n border-radius: 6px;\n background: var(--mj-status-error-bg);\n border: 1px solid var(--mj-status-error);\n color: var(--mj-status-error-text);\n font-size: 12px;\n}\n\n.guest-links-loading,\n.guest-links-empty {\n font-size: 12px;\n color: var(--mj-text-secondary);\n padding: 6px 0;\n}\n\n.guest-links-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.guest-link-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 10px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n background: var(--mj-bg-surface);\n}\n\n.guest-link-meta {\n min-width: 0;\n flex: 1;\n}\n\n.guest-link-name-row {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.guest-link-label {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.guest-link-sub {\n margin-top: 2px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.guest-link-actions {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.owner-only-notice {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n font-size: 13px;\n}\n"] }]
|
|
752
1321
|
}], () => [{ type: i1.ArtifactPermissionService }, { type: i0.ChangeDetectorRef }, { type: i2.MJConfirmService }], { IsOpen: [{
|
|
753
1322
|
type: Input
|
|
754
1323
|
}], isOpen: [{
|
|
@@ -768,5 +1337,5 @@ export class ArtifactShareModalComponent {
|
|
|
768
1337
|
}], cancelled: [{
|
|
769
1338
|
type: Output
|
|
770
1339
|
}] }); })();
|
|
771
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ArtifactShareModalComponent, { className: "ArtifactShareModalComponent", filePath: "src/lib/components/artifact/artifact-share-modal.component.ts", lineNumber:
|
|
1340
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ArtifactShareModalComponent, { className: "ArtifactShareModalComponent", filePath: "src/lib/components/artifact/artifact-share-modal.component.ts", lineNumber: 407 }); })();
|
|
772
1341
|
//# sourceMappingURL=artifact-share-modal.component.js.map
|