@rtsee/ngx 0.0.130 → 0.0.131

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, ChangeDetectorRef, SimpleChanges, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, DoCheck, Type } from '@angular/core';
2
+ import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges, OnDestroy, ChangeDetectorRef, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, DoCheck, Type } from '@angular/core';
3
3
  import { RTSeeConference, RTSeePeerConnection } from '@rtsee/conference';
4
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';
@@ -12,12 +12,12 @@ import { IRTSeePaymentProduct, IRTSeePaymentPriceItem, IRTSeeEntitiesList, IRTSe
12
12
  import { RTSeeEventsDashboard, RTSeeDashboardClientSession, RTSeeDashboardEvent, RTSeeDashboardClient } from '@rtsee/events-dashboard';
13
13
  import { RTSee, INavigationConfig, IRouteConfig } from '@rtsee/factory';
14
14
  import { RTSeePresentation, RTSeeStory, RTSeeStoriesList, StoriesListSortMode, RTSeeManageEntitiesList, RTSeeManageEntitiesLists, RTSeeManageEntitiesListGroup, RTSeeManageEntitiesListGroups, RTSeeInteractiveStoryEditorVm, RTSeeStoryEditorSection, RTSeeIllustrator, RTSeeStoryElementsEditor, RTSeeStoryElementEntity, IRTSeeIllustratorAgentOption, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
15
+ import * as i43 from '@angular/common';
16
+ import { ViewportScroller } from '@angular/common';
15
17
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
16
18
  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';
17
19
  import * as i44 from '@angular/forms';
18
20
  import { FormGroup, FormBuilder, FormControl, FormArray } from '@angular/forms';
19
- import * as i43 from '@angular/common';
20
- import { ViewportScroller } from '@angular/common';
21
21
  import Swiper from 'swiper';
22
22
  import * as i45 from 'ngx-autosize';
23
23
  import * as i46 from 'ngx-infinite-scroll';
@@ -203,11 +203,18 @@ declare class StoryThumbnailComponent implements OnInit {
203
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
204
  }
205
205
 
206
- declare class StoryDetailsComponent {
206
+ declare class StoryDetailsComponent implements AfterViewInit, OnChanges {
207
+ private hostRef;
208
+ private scroller;
209
+ private document;
207
210
  story: RTSeeStory;
208
211
  presentation: RTSeePresentation;
209
212
  messenger?: RTSeeMessenger;
213
+ constructor(hostRef: ElementRef<HTMLElement>, scroller: ViewportScroller, document: Document);
214
+ ngAfterViewInit(): void;
215
+ ngOnChanges(changes: SimpleChanges): void;
210
216
  onRelatedStoryClicked(relatedStory: RTSeeStory): void;
217
+ private scrollToTop;
211
218
  getStarArray(rating: number | null): string[];
212
219
  protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
213
220
  protected readonly Math: Math;
@@ -215,14 +222,21 @@ declare class StoryDetailsComponent {
215
222
  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
223
  }
217
224
 
218
- declare class StoriesListComponent {
225
+ declare class StoriesListComponent implements AfterViewInit, OnChanges {
226
+ private hostRef;
227
+ private scroller;
228
+ private document;
219
229
  list: RTSeeStoriesList;
220
230
  presentation: RTSeePresentation;
221
231
  messenger?: RTSeeMessenger;
222
232
  protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
223
233
  protected readonly Math: Math;
234
+ constructor(hostRef: ElementRef<HTMLElement>, scroller: ViewportScroller, document: Document);
235
+ ngAfterViewInit(): void;
236
+ ngOnChanges(changes: SimpleChanges): void;
224
237
  setSortBy(mode: StoriesListSortMode): void;
225
238
  onStoryClicked(story?: RTSeeStory): void;
239
+ private scrollToTop;
226
240
  static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListComponent, never>;
227
241
  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
242
  }
@@ -233,6 +247,7 @@ declare class StoriesListThumbnailComponent {
233
247
  listRoutePrefix: string;
234
248
  get routePrefix(): string;
235
249
  get listSlugOrId(): string;
250
+ get storiesCountLabel(): string;
236
251
  onThumbnailClick(): void;
237
252
  static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListThumbnailComponent, never>;
238
253
  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>;
@@ -117,6 +117,10 @@
117
117
 
118
118
  .rtsee-stories-list-thumbnail-bottom {
119
119
  min-width: 0;
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: flex-start;
123
+ gap: 6px;
120
124
  }
121
125
 
122
126
  .rtsee-stories-list-thumbnail-title {
@@ -332,13 +336,11 @@
332
336
  }
333
337
 
334
338
  .rtsee-stories-list-item {
335
- display: flex;
336
- align-items: flex-start;
337
- gap: 14px;
339
+ display: block;
338
340
  background: rgba(255, 255, 255, 0.04);
339
341
  border: 1px solid rgba(255, 255, 255, 0.08);
340
342
  border-radius: 16px;
341
- padding: 16px;
343
+ padding: 14px;
342
344
  transition: border-color 0.2s ease, background-color 0.2s ease;
343
345
 
344
346
  &:hover {
@@ -347,46 +349,102 @@
347
349
  }
348
350
  }
349
351
 
350
- .rtsee-stories-list-item-rank {
351
- flex-shrink: 0;
352
- width: 32px;
353
- height: 32px;
354
- border-radius: 50%;
355
- background: rgba(191, 139, 255, 0.18);
356
- border: 1px solid rgba(191, 139, 255, 0.35);
357
- color: #fff;
358
- font-size: 0.85rem;
359
- font-weight: 700;
360
- display: flex;
361
- align-items: center;
362
- justify-content: center;
363
- }
364
-
365
352
  .rtsee-stories-list-item-card {
366
- flex: 1;
367
- min-width: 0;
368
353
  display: flex;
369
- flex-direction: column;
354
+ flex-direction: row;
355
+ align-items: flex-start;
370
356
  gap: 14px;
371
-
372
- @media screen and (min-width: $rts-break-sm) {
373
- flex-direction: row;
374
- align-items: flex-start;
375
- }
357
+ min-width: 0;
376
358
  }
377
359
 
378
360
  .rtsee-stories-list-item-cover-link {
361
+ position: relative;
379
362
  flex-shrink: 0;
380
363
  display: block;
381
- width: 100%;
382
- max-width: 180px;
383
- aspect-ratio: 4 / 3;
364
+ width: 112px;
365
+ height: 112px;
366
+ aspect-ratio: 1 / 1;
384
367
  border-radius: 12px;
385
368
  overflow: hidden;
386
369
  background: #222;
370
+ text-decoration: none;
371
+
372
+ &::after {
373
+ content: "";
374
+ position: absolute;
375
+ inset: 0 0 auto 0;
376
+ height: 44px;
377
+ background: linear-gradient(
378
+ 180deg,
379
+ rgba(10, 8, 18, 0.6) 0%,
380
+ rgba(10, 8, 18, 0) 100%
381
+ );
382
+ pointer-events: none;
383
+ z-index: 1;
384
+ }
385
+
386
+ &:hover .rtsee-stories-list-item-cover {
387
+ transform: scale(1.04);
388
+ }
389
+ }
387
390
 
388
- @media screen and (min-width: $rts-break-sm) {
389
- width: 148px;
391
+ .rtsee-stories-list-item-cover-top {
392
+ position: absolute;
393
+ top: 6px;
394
+ left: 6px;
395
+ right: 6px;
396
+ z-index: 2;
397
+ display: flex;
398
+ align-items: center;
399
+ justify-content: space-between;
400
+ gap: 4px;
401
+ pointer-events: none;
402
+ }
403
+
404
+ .rtsee-stories-list-item-rank {
405
+ flex-shrink: 0;
406
+ min-width: 24px;
407
+ height: 24px;
408
+ padding: 0 6px;
409
+ border-radius: 999px;
410
+ background: rgba(18, 14, 28, 0.76);
411
+ border: 1px solid rgba(191, 139, 255, 0.5);
412
+ backdrop-filter: blur(6px);
413
+ color: #fff;
414
+ font-size: 0.76rem;
415
+ font-weight: 700;
416
+ line-height: 1;
417
+ display: inline-flex;
418
+ align-items: center;
419
+ justify-content: center;
420
+ box-sizing: border-box;
421
+ }
422
+
423
+ .rtsee-stories-list-item-rating {
424
+ flex-shrink: 0;
425
+ height: 24px;
426
+ padding: 0 7px;
427
+ border-radius: 999px;
428
+ background: rgba(18, 14, 28, 0.76);
429
+ border: 1px solid rgba(255, 255, 255, 0.16);
430
+ backdrop-filter: blur(6px);
431
+ display: inline-flex;
432
+ align-items: center;
433
+ gap: 3px;
434
+ line-height: 1;
435
+ box-sizing: border-box;
436
+
437
+ .rtsee-stories-list-item-rating-star {
438
+ color: $ai-rating-star-color;
439
+ font-size: 0.8rem;
440
+ line-height: 1;
441
+ }
442
+
443
+ .rtsee-stories-list-item-rating-value {
444
+ color: #ffffff;
445
+ font-size: 0.74rem;
446
+ font-weight: 700;
447
+ line-height: 1;
390
448
  }
391
449
  }
392
450
 
@@ -397,10 +455,6 @@
397
455
  display: block;
398
456
  transition: transform 0.25s ease;
399
457
 
400
- &:hover {
401
- transform: scale(1.04);
402
- }
403
-
404
458
  &.rtsee-stories-list-item-cover-placeholder {
405
459
  display: flex;
406
460
  align-items: center;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.130",
2
+ "version": "0.0.131",
3
3
  "name": "@rtsee/ngx",
4
4
  "module": "./dist/ngx/fesm2022/rtsee-ngx.mjs",
5
5
  "types": "./dist/ngx/index.d.ts",
@@ -40,15 +40,15 @@
40
40
  "@angular/platform-browser-dynamic": "^20.1.2",
41
41
  "@angular/router": "^20.1.2",
42
42
  "@primeuix/themes": "^1.2.3",
43
- "@rtsee/common": "^0.0.101",
44
- "@rtsee/conference": "^0.0.102",
45
- "@rtsee/core": "^0.0.145",
46
- "@rtsee/events-dashboard": "^0.0.135",
47
- "@rtsee/factory": "^0.0.144",
48
- "@rtsee/messenger": "^0.0.135",
49
- "@rtsee/presentation": "^0.0.134",
50
- "@rtsee/signaling-client": "^0.0.148",
51
- "@rtsee/utilities-ui": "^0.0.66",
43
+ "@rtsee/common": "^0.0.102",
44
+ "@rtsee/conference": "^0.0.103",
45
+ "@rtsee/core": "^0.0.146",
46
+ "@rtsee/events-dashboard": "^0.0.136",
47
+ "@rtsee/factory": "^0.0.145",
48
+ "@rtsee/messenger": "^0.0.136",
49
+ "@rtsee/presentation": "^0.0.135",
50
+ "@rtsee/signaling-client": "^0.0.149",
51
+ "@rtsee/utilities-ui": "^0.0.67",
52
52
  "@stripe/stripe-js": "^8.6.1",
53
53
  "@types/gtag.js": "^0.0.20",
54
54
  "@types/node": "~24.0.14",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "687eb40e9e4692238870b648af584efdd7b9c502"
74
+ "gitHead": "02559524684627d820ee7848aa6c3e3ef12caf2a"
75
75
  }