@rtsee/ngx 0.0.105 → 0.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ngx/fesm2022/rtsee-ngx.mjs +571 -15
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -1
- package/dist/ngx/index.d.ts +92 -4
- package/dist/ngx/src/lib/theme/common-components/image-uploader.scss +28 -0
- package/dist/ngx/src/lib/theme/presentation/dashboard.scss +6 -0
- package/dist/ngx/src/lib/theme/presentation/illustrator.scss +891 -0
- package/dist/ngx/src/lib/theme/presentation/index.scss +2 -0
- package/dist/ngx/src/lib/theme/presentation/interactive-story-editor.scss +521 -0
- package/package.json +11 -11
package/dist/ngx/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, ElementRef, EventEmitter,
|
|
2
|
+
import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, ChangeDetectorRef, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, Type, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { RTSeeConference, RTSeePeerConnection } from '@rtsee/conference';
|
|
4
4
|
import { RTSeeMessenger, RTSeeMessengerSearch, RTSeeMessage, RTSeeChat, RTSeeChatMember, RTSeeMentionAutocomplete, RTSeeWorkflowAutocomplete, OzzyClientTask } from '@rtsee/messenger';
|
|
5
5
|
import { IPeer, RTSeeTextLabelKeys, IRTSeeCall } from '@rtsee/core';
|
|
@@ -8,10 +8,10 @@ import { RTSeeAuth, RTSeeAuthConfiguration, IRtseeSignInRequestOptions, IRTSeeSi
|
|
|
8
8
|
import { Observable, Subscription } from 'rxjs';
|
|
9
9
|
import * as i47 from '@angular/router';
|
|
10
10
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
11
|
-
import { IRTSeePaymentProduct, IRTSeePaymentPriceItem, IRTSeeChat, RTSeeChatTypes, IMessageThumbnail, IOzzyWorkflowDefinition, IOzzyTaskLog } from '@rtsee/common';
|
|
11
|
+
import { IRTSeePaymentProduct, IRTSeePaymentPriceItem, IRTSeeStorySlide, IRTSeeStoryElement, IRTSeeIllustratorContextImage, IRTSeeChat, RTSeeChatTypes, IMessageThumbnail, IOzzyWorkflowDefinition, IOzzyTaskLog } from '@rtsee/common';
|
|
12
12
|
import { RTSeeEventsDashboard, RTSeeDashboardClientSession, RTSeeDashboardEvent, RTSeeDashboardClient } from '@rtsee/events-dashboard';
|
|
13
13
|
import { RTSee, INavigationConfig, IRouteConfig } from '@rtsee/factory';
|
|
14
|
-
import { RTSeePresentation, RTSeeStory, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
|
|
14
|
+
import { RTSeePresentation, RTSeeStory, RTSeeInteractiveStoryEditorVm, RTSeeStoryEditorSection, RTSeeIllustrator, RTSeeStoryElementsEditor, RTSeeStoryElementEntity, IRTSeeIllustratorAgentOption, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
|
|
15
15
|
import { RTSeeTag, RTSeeManageTags, RTSeeTagGroup, RTSeeManageTagGroups, RTSeeEntityConfiguration, RTSeeManageEntityConfigurations, RTSeeEntity, RTSeeManageEntities, RTSeeRater, RTSeeForm } from '@rtsee/utilities-ui';
|
|
16
16
|
import * as i44 from '@angular/forms';
|
|
17
17
|
import { FormGroup, FormBuilder, FormControl, FormArray } from '@angular/forms';
|
|
@@ -172,6 +172,94 @@ declare class PresentationComponent {
|
|
|
172
172
|
static ɵcmp: i0.ɵɵComponentDeclaration<PresentationComponent, "rtsee-presentation", never, { "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Interactive story editor: collapsible sections of thumbnails (details, characters,
|
|
177
|
+
* artifacts, locations, slides, author) that expand into the edit forms.
|
|
178
|
+
* Rendering only, the orchestration lives in RTSeeInteractiveStoryEditorVm.
|
|
179
|
+
*/
|
|
180
|
+
declare class InteractiveStoryEditorComponent implements OnInit, OnDestroy {
|
|
181
|
+
private readonly cdr;
|
|
182
|
+
vm: RTSeeInteractiveStoryEditorVm;
|
|
183
|
+
/** set to false when the vm is initialized by the host */
|
|
184
|
+
autoInit: boolean;
|
|
185
|
+
readonly sections: typeof RTSeeStoryEditorSection;
|
|
186
|
+
readonly illustrator: RTSeeIllustrator;
|
|
187
|
+
readonly slideUpdatingIds: Set<string>;
|
|
188
|
+
private onIllustratorChanged;
|
|
189
|
+
constructor(cdr: ChangeDetectorRef);
|
|
190
|
+
ngOnInit(): void;
|
|
191
|
+
ngOnDestroy(): void;
|
|
192
|
+
isSlideUpdating(id: string): boolean;
|
|
193
|
+
applyReviewedImageToSlide(event: Event, slide: IRTSeeStorySlide): Promise<void>;
|
|
194
|
+
submitDetails(): void;
|
|
195
|
+
submitAuthor(): void;
|
|
196
|
+
submitNewAuthor(): void;
|
|
197
|
+
addSlideToContext(event: Event, slide: IRTSeeStorySlide): void;
|
|
198
|
+
addSlideEntitiesToContext(event: Event, slide: IRTSeeStorySlide): void;
|
|
199
|
+
addAuthorToContext(event: Event): void;
|
|
200
|
+
trackSlide(index: number, slide: IRTSeeStorySlide): string;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveStoryEditorComponent, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveStoryEditorComponent, "rtsee-interactive-story-editor", never, { "vm": { "alias": "vm"; "required": true; }; "autoInit": { "alias": "autoInit"; "required": false; }; }, {}, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
type AnyElementsEditor = RTSeeStoryElementsEditor<any, any>;
|
|
206
|
+
/**
|
|
207
|
+
* Collapsible section rendering the thumbnails of one kind of story element
|
|
208
|
+
* (characters / artifacts / locations) and the expanded edit form.
|
|
209
|
+
* All the logic lives in RTSeeStoryElementsEditor.
|
|
210
|
+
*/
|
|
211
|
+
declare class StoryElementsSectionComponent implements OnDestroy {
|
|
212
|
+
private readonly cdr;
|
|
213
|
+
editor: AnyElementsEditor;
|
|
214
|
+
title: string;
|
|
215
|
+
icon: string;
|
|
216
|
+
collapsed: boolean;
|
|
217
|
+
canDetach: boolean;
|
|
218
|
+
toggled: EventEmitter<void>;
|
|
219
|
+
private _illustrator?;
|
|
220
|
+
private onIllustratorChanged;
|
|
221
|
+
set illustrator(val: RTSeeIllustrator | undefined);
|
|
222
|
+
get illustrator(): RTSeeIllustrator | undefined;
|
|
223
|
+
constructor(cdr: ChangeDetectorRef);
|
|
224
|
+
ngOnDestroy(): void;
|
|
225
|
+
applyReviewedImageToItem(event: Event, item: RTSeeStoryElementEntity<IRTSeeStoryElement>): Promise<void>;
|
|
226
|
+
submit(): void;
|
|
227
|
+
addToIllustrator(event: Event, item: RTSeeStoryElementEntity<IRTSeeStoryElement>): void;
|
|
228
|
+
trackById(index: number, item: RTSeeStoryElementEntity<IRTSeeStoryElement>): string;
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoryElementsSectionComponent, never>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StoryElementsSectionComponent, "rtsee-story-elements-section", never, { "editor": { "alias": "editor"; "required": true; }; "title": { "alias": "title"; "required": true; }; "icon": { "alias": "icon"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "canDetach": { "alias": "canDetach"; "required": false; }; "illustrator": { "alias": "illustrator"; "required": false; }; }, { "toggled": "toggled"; }, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare class IllustratorComponent implements OnInit, OnDestroy {
|
|
234
|
+
private readonly cdr;
|
|
235
|
+
private readonly elementRef;
|
|
236
|
+
illustrator: RTSeeIllustrator;
|
|
237
|
+
private ownIllustrator;
|
|
238
|
+
readonly aspectRatios: string[];
|
|
239
|
+
readonly styles: string[];
|
|
240
|
+
readonly moods: string[];
|
|
241
|
+
readonly lightings: string[];
|
|
242
|
+
private readonly onIllustratorChanged;
|
|
243
|
+
private readonly onScrollIntoView;
|
|
244
|
+
constructor(cdr: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
|
|
245
|
+
ngOnInit(): void;
|
|
246
|
+
ngOnDestroy(): void;
|
|
247
|
+
toggleExpand(): void;
|
|
248
|
+
toggleConfig(): void;
|
|
249
|
+
onSelectAgent(event: Event): void;
|
|
250
|
+
refreshAgents(): void;
|
|
251
|
+
removeImage(id: string): void;
|
|
252
|
+
toggleActive(image: IRTSeeIllustratorContextImage): void;
|
|
253
|
+
discardGeneratedImage(): void;
|
|
254
|
+
acceptGeneratedImage(): void;
|
|
255
|
+
submitIteration(): void;
|
|
256
|
+
submitPrompt(): void;
|
|
257
|
+
trackByImageId(index: number, item: IRTSeeIllustratorContextImage): string;
|
|
258
|
+
trackByAgentId(index: number, item: IRTSeeIllustratorAgentOption): string;
|
|
259
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IllustratorComponent, never>;
|
|
260
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IllustratorComponent, "rtsee-illustrator", never, { "illustrator": { "alias": "illustrator"; "required": false; }; }, {}, never, never, true, never>;
|
|
261
|
+
}
|
|
262
|
+
|
|
175
263
|
interface IAccordionItem {
|
|
176
264
|
label: string;
|
|
177
265
|
icon?: string;
|
|
@@ -900,5 +988,5 @@ declare class RTSeeTaskComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
900
988
|
static ɵcmp: i0.ɵɵComponentDeclaration<RTSeeTaskComponent, "rtsee-task", never, { "task": { "alias": "task"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; "chat": { "alias": "chat"; "required": false; }; "allowExecute": { "alias": "allowExecute"; "required": false; }; }, {}, never, never, true, never>;
|
|
901
989
|
}
|
|
902
990
|
|
|
903
|
-
export { EntitiesConfigurationsListComponent, EntitiesListComponent, FormComponent, GtagService, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, WorkflowStepsService };
|
|
991
|
+
export { EntitiesConfigurationsListComponent, EntitiesListComponent, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, StoryElementsSectionComponent, WorkflowStepsService };
|
|
904
992
|
export type { IAccordionItem, IWorkflowStepWidget, RTSeeTagForm, RTSeeTagGroupForm };
|
|
@@ -62,6 +62,34 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
.rtsee-image-uploader-illustrator-btn {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: $rts-offset-sm;
|
|
68
|
+
right: $rts-offset-sm;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
z-index: 5;
|
|
71
|
+
|
|
72
|
+
.p-button {
|
|
73
|
+
width: 32px;
|
|
74
|
+
height: 32px;
|
|
75
|
+
padding: 0;
|
|
76
|
+
background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
|
|
77
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
78
|
+
box-shadow: 0 4px 12px rgba(108, 92, 231, 0.45);
|
|
79
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
80
|
+
|
|
81
|
+
.p-button-icon {
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
transform: scale(1.1);
|
|
88
|
+
box-shadow: 0 6px 16px rgba(108, 92, 231, 0.65);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
65
93
|
.rtsee-image-uploader-image-change-btn {
|
|
66
94
|
position: absolute;
|
|
67
95
|
bottom: $rts-offset-sm;
|