@rtsee/ngx 0.0.128 → 0.0.130
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 +880 -14
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -1
- package/dist/ngx/index.d.ts +267 -19
- package/dist/ngx/src/lib/theme/common-components/autocomplete.scss +53 -0
- package/dist/ngx/src/lib/theme/common-components/index.scss +1 -0
- package/dist/ngx/src/lib/theme/presentation/index.scss +1 -0
- package/dist/ngx/src/lib/theme/presentation/stories-list.scss +694 -0
- package/dist/ngx/src/lib/theme/presentation/story-details.scss +9 -0
- package/package.json +11 -11
package/dist/ngx/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, ChangeDetectorRef,
|
|
2
|
+
import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, ChangeDetectorRef, SimpleChanges, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, DoCheck, Type } from '@angular/core';
|
|
3
3
|
import { RTSeeConference, RTSeePeerConnection } from '@rtsee/conference';
|
|
4
|
-
import { RTSeeMessenger, RTSeeMessengerSearch, RTSeeMessage, RTSeeChat, RTSeeChatMember, RTSeeMentionAutocomplete, RTSeeWorkflowAutocomplete, OzzyClientTask, OzzyClientTaskAction } from '@rtsee/messenger';
|
|
4
|
+
import { RTSeeMessenger, RTSeeMessengerSearch, RTSeeMessage, RTSeeChat, RTSeeChatMember, RTSeeMentionAutocomplete, RTSeeWorkflowAutocomplete, OzzyClientTask, OzzyClientTaskAction, OzzyWorkflowStep, OzzyWorkflow } from '@rtsee/messenger';
|
|
5
5
|
import { IPeer, RTSeeTextLabelKeys, IRTSeeCall } from '@rtsee/core';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import { RTSeeAuth, RTSeeAuthConfiguration, IRtseeSignInRequestOptions, IRTSeeSignInResponse, IRtseeSignUpRequestOptions, IRTSeeSignUpResponse, AuthEndpointsKeys } from '@rtsee/auth';
|
|
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, IRefineStoriesListInput, ITranslateStoriesListInput, IStoryTranslatorLanguage } 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 {
|
|
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, IRTSeeFormEditor, IRTSeeFormFieldChange, IRTSeeFormCollectiveState, RTSeeFormFieldAutocomplete, RTSeeFormField, RTSeeFormFieldSelect } 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,108 @@ 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 implements OnInit, OnChanges, OnDestroy {
|
|
242
|
+
private cdr;
|
|
243
|
+
manageList: RTSeeManageEntitiesList;
|
|
244
|
+
private subscribedManageList;
|
|
245
|
+
private readonly onStateChanged;
|
|
246
|
+
constructor(cdr: ChangeDetectorRef);
|
|
247
|
+
ngOnInit(): void;
|
|
248
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
249
|
+
ngOnDestroy(): void;
|
|
250
|
+
onItemDropped(event: CdkDragDrop<RTSeeEntityListItemVm[]>): void;
|
|
251
|
+
onAddItemClick(): void;
|
|
252
|
+
onRemoveItemClick(itemId: string): void;
|
|
253
|
+
onItemFieldChanged(item: RTSeeEntityListItemVm): void;
|
|
254
|
+
submit(): void;
|
|
255
|
+
cancel(): void;
|
|
256
|
+
deleteList(): void;
|
|
257
|
+
private bindManageList;
|
|
258
|
+
private unbindManageList;
|
|
259
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListComponent, never>;
|
|
260
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListComponent, "rtsee-manage-entities-list", never, { "manageList": { "alias": "manageList"; "required": false; }; }, {}, never, never, true, never>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare class ManageEntitiesListsComponent implements OnInit {
|
|
264
|
+
manageLists: RTSeeManageEntitiesLists;
|
|
265
|
+
ngOnInit(): void;
|
|
266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListsComponent, never>;
|
|
267
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListsComponent, "rtsee-manage-entities-lists", never, { "manageLists": { "alias": "manageLists"; "required": false; }; }, {}, never, never, true, never>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare class ManageEntitiesListGroupComponent implements OnInit, OnChanges, OnDestroy {
|
|
271
|
+
private cdr;
|
|
272
|
+
manageGroup: RTSeeManageEntitiesListGroup;
|
|
273
|
+
private subscribedManageGroup;
|
|
274
|
+
private readonly onStateChanged;
|
|
275
|
+
constructor(cdr: ChangeDetectorRef);
|
|
276
|
+
ngOnInit(): void;
|
|
277
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
278
|
+
ngOnDestroy(): void;
|
|
279
|
+
onListDropped(event: CdkDragDrop<IRTSeeEntitiesList[]>): void;
|
|
280
|
+
onRemoveList(listId: string): void;
|
|
281
|
+
submit(): void;
|
|
282
|
+
cancel(): void;
|
|
283
|
+
deleteGroup(): void;
|
|
284
|
+
private bindManageGroup;
|
|
285
|
+
private unbindManageGroup;
|
|
286
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListGroupComponent, never>;
|
|
287
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListGroupComponent, "rtsee-manage-entities-list-group", never, { "manageGroup": { "alias": "manageGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare class ManageEntitiesListGroupsComponent implements OnInit {
|
|
291
|
+
manageListGroups: RTSeeManageEntitiesListGroups;
|
|
292
|
+
ngOnInit(): void;
|
|
293
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageEntitiesListGroupsComponent, never>;
|
|
294
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageEntitiesListGroupsComponent, "rtsee-manage-entities-list-groups", never, { "manageListGroups": { "alias": "manageListGroups"; "required": false; }; }, {}, never, never, true, never>;
|
|
295
|
+
}
|
|
296
|
+
|
|
194
297
|
/**
|
|
195
298
|
* Interactive story editor: collapsible sections of thumbnails (details, characters,
|
|
196
299
|
* artifacts, locations, slides, author) that expand into the edit forms.
|
|
@@ -1056,17 +1159,6 @@ declare class SlideComponent implements AfterViewInit {
|
|
|
1056
1159
|
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>;
|
|
1057
1160
|
}
|
|
1058
1161
|
|
|
1059
|
-
declare class StoryThumbnailComponent implements OnInit {
|
|
1060
|
-
progressPercent: number;
|
|
1061
|
-
protected readonly Math: Math;
|
|
1062
|
-
story: RTSeeStory;
|
|
1063
|
-
presentation: RTSeePresentation;
|
|
1064
|
-
ngOnInit(): void;
|
|
1065
|
-
protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
|
|
1066
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoryThumbnailComponent, never>;
|
|
1067
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StoryThumbnailComponent, "rtsee-story-thumbnail", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; }, {}, never, never, true, never>;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
1162
|
declare class PresentationHeaderComponent {
|
|
1071
1163
|
presentation: RTSeePresentation;
|
|
1072
1164
|
protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
|
|
@@ -1084,7 +1176,7 @@ declare class FormComponent {
|
|
|
1084
1176
|
onFieldChanged(): void;
|
|
1085
1177
|
getEditorInitials(name?: string): string;
|
|
1086
1178
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
1087
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "rtsee-form", never, { "form": { "alias": "form"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, ["*"], true, never>;
|
|
1179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "rtsee-form", never, { "form": { "alias": "form"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, ["[rtseeFormBody]", "*"], true, never>;
|
|
1088
1180
|
}
|
|
1089
1181
|
|
|
1090
1182
|
declare class RTSeeModule {
|
|
@@ -1328,6 +1420,162 @@ declare class DefaultTaskActionPromptComponent {
|
|
|
1328
1420
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultTaskActionPromptComponent, "rtsee-default-task-action-prompt", never, { "prompt": { "alias": "prompt"; "required": false; }; "task": { "alias": "task"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "toggleExpand": { "alias": "toggleExpand"; "required": false; }; }, {}, never, never, true, never>;
|
|
1329
1421
|
}
|
|
1330
1422
|
|
|
1423
|
+
interface IWorkflowStepWidget {
|
|
1424
|
+
/** matches IOzzyWorkflowStepDefinition.widget */
|
|
1425
|
+
name: string;
|
|
1426
|
+
/** standalone component with `step`, `workflow`, `chat`, `messenger` inputs */
|
|
1427
|
+
component: Type<unknown>;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Registry of the components which render workflow steps inside the rts-workflow widget.
|
|
1431
|
+
*/
|
|
1432
|
+
declare class WorkflowStepsService {
|
|
1433
|
+
stepsMap: IWorkflowStepWidget[];
|
|
1434
|
+
register(widget: IWorkflowStepWidget): void;
|
|
1435
|
+
getStepComponentByName(name?: string): Type<unknown> | null;
|
|
1436
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowStepsService, never>;
|
|
1437
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WorkflowStepsService>;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
interface IRefineStoriesListWorkflowFormOptions {
|
|
1441
|
+
agents: RTSeeChatMember[];
|
|
1442
|
+
searchLists: (query: string) => Promise<IRTSeeEntitiesList<IRTSeeStory>[]>;
|
|
1443
|
+
currentUser?: IRTSeeFormEditor | null;
|
|
1444
|
+
readonly?: boolean;
|
|
1445
|
+
canCancel?: boolean;
|
|
1446
|
+
onCancel?: () => void;
|
|
1447
|
+
onSubmit: (model: IRefineStoriesListInput) => void;
|
|
1448
|
+
onFieldEdited?: (change: IRTSeeFormFieldChange, state: IRTSeeFormCollectiveState) => void;
|
|
1449
|
+
}
|
|
1450
|
+
declare class RefineStoriesListWorkflowForm extends RTSeeForm<IRefineStoriesListInput> {
|
|
1451
|
+
listField: RTSeeFormFieldAutocomplete<IRTSeeEntitiesList<IRTSeeStory>, string>;
|
|
1452
|
+
fromScratchField: RTSeeFormField<boolean>;
|
|
1453
|
+
agentIdField: RTSeeFormFieldSelect;
|
|
1454
|
+
lastSelectedList: Pick<IRTSeeEntitiesList, 'id' | 'name' | 'imageUrl'> | null;
|
|
1455
|
+
constructor(options: IRefineStoriesListWorkflowFormOptions);
|
|
1456
|
+
get selectedListId(): string;
|
|
1457
|
+
get selectedListName(): string;
|
|
1458
|
+
updateAgents(agents: RTSeeChatMember[]): void;
|
|
1459
|
+
setListSelection(list: Pick<IRTSeeEntitiesList, 'id' | 'name' | 'imageUrl'> | null): void;
|
|
1460
|
+
getModel(): IRefineStoriesListInput;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Refine Stories List step 1 (#RefineStoriesList):
|
|
1464
|
+
* - Pick a stories list (autocomplete with images)
|
|
1465
|
+
* - "From scratch" checkbox (unselected by default)
|
|
1466
|
+
* - Pick an agent
|
|
1467
|
+
*/
|
|
1468
|
+
declare class RefineStoriesListFormStepComponent implements OnInit, OnDestroy {
|
|
1469
|
+
private cdr;
|
|
1470
|
+
step: OzzyWorkflowStep<unknown, IRefineStoriesListInput>;
|
|
1471
|
+
workflow: OzzyWorkflow;
|
|
1472
|
+
chat?: RTSeeChat;
|
|
1473
|
+
messenger?: RTSeeMessenger;
|
|
1474
|
+
form: RefineStoriesListWorkflowForm;
|
|
1475
|
+
private onChangedBound;
|
|
1476
|
+
private onStepFormUpdatedBound;
|
|
1477
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1478
|
+
get agents(): RTSeeChatMember[];
|
|
1479
|
+
get readonly(): boolean;
|
|
1480
|
+
get canCancel(): boolean;
|
|
1481
|
+
onFormSubmit(): void;
|
|
1482
|
+
private get currentUser();
|
|
1483
|
+
ngOnInit(): void;
|
|
1484
|
+
ngOnDestroy(): void;
|
|
1485
|
+
cancel(): void;
|
|
1486
|
+
private onRemoteStepFormUpdated;
|
|
1487
|
+
private onWorkflowChanged;
|
|
1488
|
+
private syncWithStep;
|
|
1489
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RefineStoriesListFormStepComponent, never>;
|
|
1490
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RefineStoriesListFormStepComponent, "rtsee-refine-stories-list-form-step", never, { "step": { "alias": "step"; "required": false; }; "workflow": { "alias": "workflow"; "required": false; }; "chat": { "alias": "chat"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
interface ITranslateStoriesListWorkflowFormOptions {
|
|
1494
|
+
agents: RTSeeChatMember[];
|
|
1495
|
+
searchLists: (query: string) => Promise<IRTSeeEntitiesList<IRTSeeStory>[]>;
|
|
1496
|
+
currentUser?: IRTSeeFormEditor | null;
|
|
1497
|
+
readonly?: boolean;
|
|
1498
|
+
canCancel?: boolean;
|
|
1499
|
+
onCancel?: () => void;
|
|
1500
|
+
onSubmit: (model: ITranslateStoriesListInput) => void;
|
|
1501
|
+
onFieldEdited?: (change: IRTSeeFormFieldChange, state: IRTSeeFormCollectiveState) => void;
|
|
1502
|
+
}
|
|
1503
|
+
declare class TranslateStoriesListWorkflowForm extends RTSeeForm<ITranslateStoriesListInput> {
|
|
1504
|
+
listField: RTSeeFormFieldAutocomplete<IRTSeeEntitiesList<IRTSeeStory>, string>;
|
|
1505
|
+
languageField: RTSeeFormFieldSelect;
|
|
1506
|
+
fromScratchField: RTSeeFormField<boolean>;
|
|
1507
|
+
agentIdField: RTSeeFormFieldSelect;
|
|
1508
|
+
lastSelectedList: Pick<IRTSeeEntitiesList, 'id' | 'name' | 'imageUrl'> | null;
|
|
1509
|
+
constructor(options: ITranslateStoriesListWorkflowFormOptions);
|
|
1510
|
+
get selectedListId(): string;
|
|
1511
|
+
get selectedListName(): string;
|
|
1512
|
+
get selectedLanguage(): IStoryTranslatorLanguage | undefined;
|
|
1513
|
+
updateAgents(agents: RTSeeChatMember[]): void;
|
|
1514
|
+
updateLanguageUI(): void;
|
|
1515
|
+
setListSelection(list: Pick<IRTSeeEntitiesList, 'id' | 'name' | 'imageUrl'> | null): void;
|
|
1516
|
+
getModel(): ITranslateStoriesListInput;
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Translate Stories List step 1 (#TranslateStoriesList):
|
|
1520
|
+
* - Pick a stories list (autocomplete with images)
|
|
1521
|
+
* - Pick target language
|
|
1522
|
+
* - "From scratch" checkbox (unselected by default)
|
|
1523
|
+
* - Pick an agent
|
|
1524
|
+
*/
|
|
1525
|
+
declare class TranslateStoriesListFormStepComponent implements OnInit, OnDestroy {
|
|
1526
|
+
private cdr;
|
|
1527
|
+
step: OzzyWorkflowStep<unknown, ITranslateStoriesListInput>;
|
|
1528
|
+
workflow: OzzyWorkflow;
|
|
1529
|
+
chat?: RTSeeChat;
|
|
1530
|
+
messenger?: RTSeeMessenger;
|
|
1531
|
+
form: TranslateStoriesListWorkflowForm;
|
|
1532
|
+
private onChangedBound;
|
|
1533
|
+
private onStepFormUpdatedBound;
|
|
1534
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1535
|
+
get agents(): RTSeeChatMember[];
|
|
1536
|
+
get readonly(): boolean;
|
|
1537
|
+
get canCancel(): boolean;
|
|
1538
|
+
onFormSubmit(): void;
|
|
1539
|
+
private get currentUser();
|
|
1540
|
+
ngOnInit(): void;
|
|
1541
|
+
ngOnDestroy(): void;
|
|
1542
|
+
cancel(): void;
|
|
1543
|
+
private onRemoteStepFormUpdated;
|
|
1544
|
+
private onWorkflowChanged;
|
|
1545
|
+
private syncWithStep;
|
|
1546
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateStoriesListFormStepComponent, never>;
|
|
1547
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TranslateStoriesListFormStepComponent, "rtsee-translate-stories-list-form-step", never, { "step": { "alias": "step"; "required": false; }; "workflow": { "alias": "workflow"; "required": false; }; "chat": { "alias": "chat"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
interface IStoriesListLinkInput {
|
|
1551
|
+
listId?: string;
|
|
1552
|
+
friendlyUrl?: string;
|
|
1553
|
+
name?: string;
|
|
1554
|
+
description?: string;
|
|
1555
|
+
itemsCount?: number;
|
|
1556
|
+
updatedItemsCount?: number;
|
|
1557
|
+
language?: string;
|
|
1558
|
+
translatedElements?: {
|
|
1559
|
+
list: boolean;
|
|
1560
|
+
itemsCount: number;
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Step 3 for Stories List workflows: link to the refined / translated stories list.
|
|
1565
|
+
*/
|
|
1566
|
+
declare class StoriesListLinkStepComponent {
|
|
1567
|
+
step: OzzyWorkflowStep<IStoriesListLinkInput>;
|
|
1568
|
+
workflow: OzzyWorkflow;
|
|
1569
|
+
chat?: RTSeeChat;
|
|
1570
|
+
messenger?: RTSeeMessenger;
|
|
1571
|
+
get list(): IStoriesListLinkInput;
|
|
1572
|
+
get listUrl(): string;
|
|
1573
|
+
get kicker(): string;
|
|
1574
|
+
get metaText(): string;
|
|
1575
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListLinkStepComponent, never>;
|
|
1576
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StoriesListLinkStepComponent, "rtsee-stories-list-link-step", never, { "step": { "alias": "step"; "required": false; }; "workflow": { "alias": "workflow"; "required": false; }; "chat": { "alias": "chat"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1331
1579
|
declare abstract class BaseEventWidgetComponent implements OnInit, OnChanges, OnDestroy {
|
|
1332
1580
|
protected cd: ChangeDetectorRef;
|
|
1333
1581
|
private _event;
|
|
@@ -1465,5 +1713,5 @@ declare class TestChatNowClickedWidgetComponent extends BaseEventWidgetComponent
|
|
|
1465
1713
|
static ɵcmp: i0.ɵɵComponentDeclaration<TestChatNowClickedWidgetComponent, "rtsee-test-chat-now-clicked-widget", never, {}, {}, never, never, true, never>;
|
|
1466
1714
|
}
|
|
1467
1715
|
|
|
1468
|
-
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 };
|
|
1469
|
-
export type { IAccordionItem, ITaskActionPromptWidget, ITaskActionThumbnailWidget, RTSeeTagForm, RTSeeTagGroupForm };
|
|
1716
|
+
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, RefineStoriesListFormStepComponent, RefineStoriesListWorkflowForm, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListLinkStepComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslateStoriesListFormStepComponent, TranslateStoriesListWorkflowForm, TranslationsPanelComponent, WorkflowStepsService };
|
|
1717
|
+
export type { IAccordionItem, IRefineStoriesListWorkflowFormOptions, ITaskActionPromptWidget, ITaskActionThumbnailWidget, ITranslateStoriesListWorkflowFormOptions, IWorkflowStepWidget, 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
|
+
}
|