@rtsee/ngx 0.0.127 → 0.0.129

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.
@@ -8,11 +8,12 @@ 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, IRTSeeStorySlide, IRTSeeStoryElement, IRTSeeIllustratorContextImage, IRTSeeChat, RTSeeChatTypes, IMessageThumbnail, IOzzyWorkflowDefinition, IOzzyTaskActionPrompt, IOzzyTaskLog, IRTSeeStory } from '@rtsee/common';
11
+ import { IRTSeePaymentProduct, IRTSeePaymentPriceItem, IRTSeeEntitiesList, IRTSeeStorySlide, IRTSeeStoryElement, IRTSeeIllustratorContextImage, IRTSeeChat, RTSeeChatTypes, IMessageThumbnail, IOzzyWorkflowDefinition, IOzzyTaskActionPrompt, IOzzyTaskLog, IRTSeeStory } 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, RTSeeInteractiveStoryEditorVm, RTSeeStoryEditorSection, RTSeeIllustrator, RTSeeStoryElementsEditor, RTSeeStoryElementEntity, IRTSeeIllustratorAgentOption, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
15
- import { RTSeeTag, RTSeeManageTags, RTSeeTagGroup, RTSeeManageTagGroups, RTSeeEntityConfiguration, RTSeeManageEntityConfigurations, RTSeeEntity, RTSeeManageEntities, RTSeeRater, RTSeeForm, RTSeeTranslationsPanel, IRTSeeTranslationLanguageOption, IRTSeeTranslationFieldDefinition } from '@rtsee/utilities-ui';
14
+ import { RTSeePresentation, RTSeeStory, RTSeeStoriesList, StoriesListSortMode, RTSeeManageEntitiesList, RTSeeManageEntitiesLists, RTSeeManageEntitiesListGroup, RTSeeManageEntitiesListGroups, RTSeeInteractiveStoryEditorVm, RTSeeStoryEditorSection, RTSeeIllustrator, RTSeeStoryElementsEditor, RTSeeStoryElementEntity, IRTSeeIllustratorAgentOption, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
15
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
16
+ import { RTSeeEntityListItemVm, RTSeeTag, RTSeeManageTags, RTSeeTagGroup, RTSeeManageTagGroups, RTSeeEntityConfiguration, RTSeeManageEntityConfigurations, RTSeeEntity, RTSeeManageEntities, RTSeeRater, RTSeeForm, RTSeeTranslationsPanel, IRTSeeTranslationLanguageOption, IRTSeeTranslationFieldDefinition } from '@rtsee/utilities-ui';
16
17
  import * as i44 from '@angular/forms';
17
18
  import { FormGroup, FormBuilder, FormControl, FormArray } from '@angular/forms';
18
19
  import * as i43 from '@angular/common';
@@ -191,6 +192,90 @@ declare class PresentationComponent {
191
192
  static ɵcmp: i0.ɵɵComponentDeclaration<PresentationComponent, "rtsee-presentation", never, { "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; "framed": { "alias": "framed"; "required": false; }; "isFramed": { "alias": "isFramed"; "required": false; }; }, {}, never, never, true, never>;
192
193
  }
193
194
 
195
+ declare class StoryThumbnailComponent implements OnInit {
196
+ progressPercent: number;
197
+ protected readonly Math: Math;
198
+ story: RTSeeStory;
199
+ presentation: RTSeePresentation;
200
+ ngOnInit(): void;
201
+ protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
202
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoryThumbnailComponent, never>;
203
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoryThumbnailComponent, "rtsee-story-thumbnail", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; }, {}, never, never, true, never>;
204
+ }
205
+
206
+ declare class StoryDetailsComponent {
207
+ story: RTSeeStory;
208
+ presentation: RTSeePresentation;
209
+ messenger?: RTSeeMessenger;
210
+ onRelatedStoryClicked(relatedStory: RTSeeStory): void;
211
+ getStarArray(rating: number | null): string[];
212
+ protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
213
+ protected readonly Math: Math;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoryDetailsComponent, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoryDetailsComponent, "rtsee-story-details", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
216
+ }
217
+
218
+ declare class StoriesListComponent {
219
+ list: RTSeeStoriesList;
220
+ presentation: RTSeePresentation;
221
+ messenger?: RTSeeMessenger;
222
+ protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
223
+ protected readonly Math: Math;
224
+ setSortBy(mode: StoriesListSortMode): void;
225
+ onStoryClicked(story?: RTSeeStory): void;
226
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListComponent, never>;
227
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoriesListComponent, "rtsee-stories-list", never, { "list": { "alias": "list"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
228
+ }
229
+
230
+ declare class StoriesListThumbnailComponent {
231
+ list: RTSeeStoriesList | IRTSeeEntitiesList;
232
+ presentation?: RTSeePresentation;
233
+ listRoutePrefix: string;
234
+ get routePrefix(): string;
235
+ get listSlugOrId(): string;
236
+ onThumbnailClick(): void;
237
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListThumbnailComponent, never>;
238
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoriesListThumbnailComponent, "rtsee-stories-list-thumbnail", never, { "list": { "alias": "list"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "listRoutePrefix": { "alias": "listRoutePrefix"; "required": false; }; }, {}, never, never, true, never>;
239
+ }
240
+
241
+ declare class ManageEntitiesListComponent {
242
+ manageList: RTSeeManageEntitiesList;
243
+ onItemDropped(event: CdkDragDrop<RTSeeEntityListItemVm[]>): void;
244
+ onAddItemClick(): void;
245
+ onRemoveItemClick(itemId: string): void;
246
+ onItemFieldChanged(item: RTSeeEntityListItemVm): void;
247
+ submit(): void;
248
+ cancel(): void;
249
+ deleteList(): void;
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListComponent, never>;
251
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListComponent, "rtsee-manage-entities-list", never, { "manageList": { "alias": "manageList"; "required": false; }; }, {}, never, never, true, never>;
252
+ }
253
+
254
+ declare class ManageEntitiesListsComponent implements OnInit {
255
+ manageLists: RTSeeManageEntitiesLists;
256
+ ngOnInit(): void;
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListsComponent, never>;
258
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListsComponent, "rtsee-manage-entities-lists", never, { "manageLists": { "alias": "manageLists"; "required": false; }; }, {}, never, never, true, never>;
259
+ }
260
+
261
+ declare class ManageEntitiesListGroupComponent {
262
+ manageGroup: RTSeeManageEntitiesListGroup;
263
+ onListDropped(event: CdkDragDrop<IRTSeeEntitiesList[]>): void;
264
+ onRemoveList(listId: string): void;
265
+ submit(): void;
266
+ cancel(): void;
267
+ deleteGroup(): void;
268
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListGroupComponent, never>;
269
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListGroupComponent, "rtsee-manage-entities-list-group", never, { "manageGroup": { "alias": "manageGroup"; "required": false; }; }, {}, never, never, true, never>;
270
+ }
271
+
272
+ declare class ManageEntitiesListGroupsComponent implements OnInit {
273
+ manageListGroups: RTSeeManageEntitiesListGroups;
274
+ ngOnInit(): void;
275
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListGroupsComponent, never>;
276
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListGroupsComponent, "rtsee-manage-entities-list-groups", never, { "manageListGroups": { "alias": "manageListGroups"; "required": false; }; }, {}, never, never, true, never>;
277
+ }
278
+
194
279
  /**
195
280
  * Interactive story editor: collapsible sections of thumbnails (details, characters,
196
281
  * artifacts, locations, slides, author) that expand into the edit forms.
@@ -204,11 +289,15 @@ declare class InteractiveStoryEditorComponent implements OnInit, OnDestroy {
204
289
  readonly sections: typeof RTSeeStoryEditorSection;
205
290
  readonly illustrator: RTSeeIllustrator;
206
291
  readonly slideUpdatingIds: Set<string>;
292
+ slidesViewMode: 'carousel' | 'inline';
293
+ illustratorCollapsedHeight: number;
207
294
  private onIllustratorChanged;
208
295
  constructor(cdr: ChangeDetectorRef);
209
296
  ngOnInit(): void;
210
297
  ngOnDestroy(): void;
211
298
  isSlideUpdating(id: string): boolean;
299
+ toggleSlidesViewMode(event: Event): void;
300
+ onIllustratorCollapsedHeightChange(height: number): void;
212
301
  applyReviewedImageToSlide(event: Event, slide: IRTSeeStorySlide): Promise<void>;
213
302
  submitDetails(): void;
214
303
  submitAuthor(): void;
@@ -260,21 +349,47 @@ declare class StoryElementsSectionComponent implements OnDestroy {
260
349
  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>;
261
350
  }
262
351
 
263
- declare class IllustratorComponent implements OnInit, OnDestroy {
352
+ declare class IllustratorComponent implements OnInit, AfterViewInit, OnDestroy {
264
353
  private readonly cdr;
265
354
  private readonly elementRef;
355
+ private static readonly MOBILE_BREAKPOINT;
266
356
  illustrator: RTSeeIllustrator;
357
+ readonly collapsedHeightChange: EventEmitter<number>;
358
+ containerElRef?: ElementRef<HTMLElement>;
359
+ contextCarouselElRef?: ElementRef<HTMLElement>;
360
+ isMobile: boolean;
361
+ layoutLeftPx: number | null;
362
+ layoutRightPx: number | null;
363
+ layoutBottomPx: number;
364
+ activeCarouselIndex: number;
267
365
  private ownIllustrator;
366
+ private suppressHoverUntilLeave;
367
+ private lastMeasuredCollapsedHeight;
368
+ private resizeObserver;
369
+ private rafId;
268
370
  readonly aspectRatios: string[];
269
371
  readonly styles: string[];
270
372
  readonly moods: string[];
271
373
  readonly lightings: string[];
272
374
  private readonly onIllustratorChanged;
273
- private readonly onScrollIntoView;
375
+ private readonly onWindowResizeOrScroll;
274
376
  constructor(cdr: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
377
+ get activePromptText(): string;
378
+ set activePromptText(value: string);
275
379
  ngOnInit(): void;
380
+ ngAfterViewInit(): void;
276
381
  ngOnDestroy(): void;
382
+ onCollapsedMouseEnter(): void;
383
+ onContainerMouseLeave(event: MouseEvent): void;
384
+ expandIllustrator(event?: Event): void;
385
+ collapseIllustrator(event?: Event): void;
277
386
  toggleExpand(): void;
387
+ onCollapsedSubmit(event?: Event): void;
388
+ onCollapsedEnter(event: Event): void;
389
+ prevContextSlide(): void;
390
+ nextContextSlide(): void;
391
+ scrollContextCarouselTo(index: number): void;
392
+ onContextCarouselScroll(): void;
278
393
  toggleConfig(): void;
279
394
  onSelectAgent(event: Event): void;
280
395
  refreshAgents(): void;
@@ -286,8 +401,10 @@ declare class IllustratorComponent implements OnInit, OnDestroy {
286
401
  submitPrompt(): void;
287
402
  trackByImageId(index: number, item: IRTSeeIllustratorContextImage): string;
288
403
  trackByAgentId(index: number, item: IRTSeeIllustratorAgentOption): string;
404
+ private scheduleLayoutUpdate;
405
+ private updateLayoutMetrics;
289
406
  static ɵfac: i0.ɵɵFactoryDeclaration<IllustratorComponent, never>;
290
- static ɵcmp: i0.ɵɵComponentDeclaration<IllustratorComponent, "rtsee-illustrator", never, { "illustrator": { "alias": "illustrator"; "required": false; }; }, {}, never, never, true, never>;
407
+ static ɵcmp: i0.ɵɵComponentDeclaration<IllustratorComponent, "rtsee-illustrator", never, { "illustrator": { "alias": "illustrator"; "required": false; }; }, { "collapsedHeightChange": "collapsedHeightChange"; }, never, never, true, never>;
291
408
  }
292
409
 
293
410
  interface IAccordionItem {
@@ -1024,17 +1141,6 @@ declare class SlideComponent implements AfterViewInit {
1024
1141
  static ɵcmp: i0.ɵɵComponentDeclaration<SlideComponent, "rtsee-slide", never, { "presentation": { "alias": "presentation"; "required": false; }; "story": { "alias": "story"; "required": false; }; "slide": { "alias": "slide"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
1025
1142
  }
1026
1143
 
1027
- declare class StoryThumbnailComponent implements OnInit {
1028
- progressPercent: number;
1029
- protected readonly Math: Math;
1030
- story: RTSeeStory;
1031
- presentation: RTSeePresentation;
1032
- ngOnInit(): void;
1033
- protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
1034
- static ɵfac: i0.ɵɵFactoryDeclaration<StoryThumbnailComponent, never>;
1035
- static ɵcmp: i0.ɵɵComponentDeclaration<StoryThumbnailComponent, "rtsee-story-thumbnail", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; }, {}, never, never, true, never>;
1036
- }
1037
-
1038
1144
  declare class PresentationHeaderComponent {
1039
1145
  presentation: RTSeePresentation;
1040
1146
  protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
@@ -1052,7 +1158,7 @@ declare class FormComponent {
1052
1158
  onFieldChanged(): void;
1053
1159
  getEditorInitials(name?: string): string;
1054
1160
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
1055
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "rtsee-form", never, { "form": { "alias": "form"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, ["*"], true, never>;
1161
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "rtsee-form", never, { "form": { "alias": "form"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, ["[rtseeFormBody]", "*"], true, never>;
1056
1162
  }
1057
1163
 
1058
1164
  declare class RTSeeModule {
@@ -1433,5 +1539,5 @@ declare class TestChatNowClickedWidgetComponent extends BaseEventWidgetComponent
1433
1539
  static ɵcmp: i0.ɵɵComponentDeclaration<TestChatNowClickedWidgetComponent, "rtsee-test-chat-now-clicked-widget", never, {}, {}, never, never, true, never>;
1434
1540
  }
1435
1541
 
1436
- export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslationsPanelComponent };
1542
+ export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslationsPanelComponent };
1437
1543
  export type { IAccordionItem, ITaskActionPromptWidget, ITaskActionThumbnailWidget, RTSeeTagForm, RTSeeTagGroupForm };
@@ -0,0 +1,53 @@
1
+ .rtsee-autocomplete-option {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 10px;
5
+ min-width: 0;
6
+ padding: 2px 0;
7
+
8
+ .rtsee-autocomplete-option-thumb {
9
+ width: 36px;
10
+ height: 36px;
11
+ border-radius: 6px;
12
+ object-fit: cover;
13
+ flex-shrink: 0;
14
+ background: rgba(255, 255, 255, 0.08);
15
+ display: inline-flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ }
19
+
20
+ .rtsee-autocomplete-option-thumb-placeholder {
21
+ color: rgba(255, 255, 255, 0.45);
22
+ font-size: 0.9rem;
23
+ }
24
+
25
+ .rtsee-autocomplete-option-label {
26
+ flex: 1;
27
+ min-width: 0;
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ }
32
+ }
33
+
34
+ .rtsee-autocomplete-chip-content {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ gap: 6px;
38
+ min-width: 0;
39
+
40
+ .rtsee-autocomplete-chip-thumb {
41
+ width: 20px;
42
+ height: 20px;
43
+ border-radius: 4px;
44
+ object-fit: cover;
45
+ flex-shrink: 0;
46
+ }
47
+
48
+ .rtsee-autocomplete-chip-label {
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ white-space: nowrap;
52
+ }
53
+ }
@@ -3,3 +3,4 @@
3
3
  @import "./ordered-list";
4
4
  @import "./rating";
5
5
  @import "./action-buttons";
6
+ @import "./autocomplete";