@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.
- package/dist/ngx/fesm2022/rtsee-ngx.mjs +671 -42
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -1
- package/dist/ngx/index.d.ts +125 -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/illustrator.scss +315 -90
- package/dist/ngx/src/lib/theme/presentation/index.scss +1 -0
- package/dist/ngx/src/lib/theme/presentation/interactive-story-editor.scss +198 -4
- package/dist/ngx/src/lib/theme/presentation/manage-stories.scss +110 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Input, Component, ViewChild, EventEmitter, Output, forwardRef, Directive, reflectComponentType, DOCUMENT, HostListener, Inject, ChangeDetectionStrategy, output, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i2$1 from '@angular/common';
|
|
4
4
|
import { NgClass, NgIf, NgForOf, DecimalPipe, DatePipe, NgComponentOutlet, SlicePipe, JsonPipe, DOCUMENT as DOCUMENT$1, CommonModule, NgStyle, NgOptimizedImage } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -18,7 +18,7 @@ import { RTSeeChatMemberRoles, RTSeeIllustratorEvents, RTSeeChatTypes, OzzyTaskS
|
|
|
18
18
|
import { sanitizeImageUrl, RTSeeFormFieldEvents, ManageAgentForm, RTSeeForm, RTSeeFormFieldRadioGroup, RTSeeFormField, RTSeeFormFieldImageUploader, fetchImageBlob, RTSeeFormFieldSelect, RTSeeFormFieldAutocomplete, RTSeeRater } from '@rtsee/utilities-ui';
|
|
19
19
|
import { InputText } from 'primeng/inputtext';
|
|
20
20
|
import { InputGroup } from 'primeng/inputgroup';
|
|
21
|
-
import * as i2$
|
|
21
|
+
import * as i2$2 from 'primeng/message';
|
|
22
22
|
import { Message, MessageModule } from 'primeng/message';
|
|
23
23
|
import { Textarea } from 'primeng/textarea';
|
|
24
24
|
import { Checkbox } from 'primeng/checkbox';
|
|
@@ -40,7 +40,7 @@ import { loadStripe } from '@stripe/stripe-js';
|
|
|
40
40
|
import { Card } from 'primeng/card';
|
|
41
41
|
import { CdkCopyToClipboard } from '@angular/cdk/clipboard';
|
|
42
42
|
import { Toast } from 'primeng/toast';
|
|
43
|
-
import * as i1$
|
|
43
|
+
import * as i1$3 from 'primeng/api';
|
|
44
44
|
import { MessageService } from 'primeng/api';
|
|
45
45
|
import Swiper from 'swiper';
|
|
46
46
|
import { Virtual, EffectCards } from 'swiper/modules';
|
|
@@ -49,6 +49,7 @@ import { RTSeeIllustrator, RTSeeStoryEditorSection } from '@rtsee/presentation';
|
|
|
49
49
|
import { Tabs, TabList, Tab, TabPanels, TabPanel } from 'primeng/tabs';
|
|
50
50
|
import { Chip } from 'primeng/chip';
|
|
51
51
|
import { ColorPicker } from 'primeng/colorpicker';
|
|
52
|
+
import { CdkDropList, CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
52
53
|
import { Slider } from 'primeng/slider';
|
|
53
54
|
import { Tag } from 'primeng/tag';
|
|
54
55
|
import { SelectButton } from 'primeng/selectbutton';
|
|
@@ -608,11 +609,11 @@ class AutocompleteComponent {
|
|
|
608
609
|
this.disabled = false;
|
|
609
610
|
}
|
|
610
611
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
611
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteComponent, isStandalone: true, selector: "rtsee-autocomplete", inputs: { config: "config", disabled: "disabled" }, ngImport: i0, template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n ></p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n ></p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteComponent, isStandalone: true, selector: "rtsee-autocomplete", inputs: { config: "config", disabled: "disabled" }, ngImport: i0, template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
612
613
|
}
|
|
613
614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
614
615
|
type: Component,
|
|
615
|
-
args: [{ selector: 'rtsee-autocomplete', imports: [AutoCompleteModule, FloatLabel, InputGroup, FormsModule], template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n ></p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n ></p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n" }]
|
|
616
|
+
args: [{ selector: 'rtsee-autocomplete', imports: [AutoCompleteModule, FloatLabel, InputGroup, FormsModule], template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n" }]
|
|
616
617
|
}], propDecorators: { config: [{
|
|
617
618
|
type: Input
|
|
618
619
|
}], disabled: [{
|
|
@@ -1336,11 +1337,11 @@ class FormComponent {
|
|
|
1336
1337
|
return parts[0].substring(0, 2).toUpperCase();
|
|
1337
1338
|
}
|
|
1338
1339
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FormComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1339
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: FormComponent, isStandalone: true, selector: "rtsee-form", inputs: { form: "form" }, outputs: { formSubmit: "formSubmit" }, ngImport: i0, template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"], dependencies: [{ kind: "component", type: FormFieldComponent, selector: "rtsee-form-field", inputs: ["field"], outputs: ["fieldChanged"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: TranslationsPanelComponent, selector: "rtsee-translations-panel", inputs: ["panel"] }] }); }
|
|
1340
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: FormComponent, isStandalone: true, selector: "rtsee-form", inputs: { form: "form" }, outputs: { formSubmit: "formSubmit" }, ngImport: i0, template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n <ng-content select=\"[rtseeFormBody]\"></ng-content>\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"], dependencies: [{ kind: "component", type: FormFieldComponent, selector: "rtsee-form-field", inputs: ["field"], outputs: ["fieldChanged"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: TranslationsPanelComponent, selector: "rtsee-translations-panel", inputs: ["panel"] }] }); }
|
|
1340
1341
|
}
|
|
1341
1342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FormComponent, decorators: [{
|
|
1342
1343
|
type: Component,
|
|
1343
|
-
args: [{ selector: "rtsee-form", standalone: true, imports: [FormFieldComponent, FormsModule, TranslationsPanelComponent], template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"] }]
|
|
1344
|
+
args: [{ selector: "rtsee-form", standalone: true, imports: [FormFieldComponent, FormsModule, TranslationsPanelComponent], template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n <ng-content select=\"[rtseeFormBody]\"></ng-content>\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"] }]
|
|
1344
1345
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { form: [{
|
|
1345
1346
|
type: Input
|
|
1346
1347
|
}], formSubmit: [{
|
|
@@ -3941,6 +3942,7 @@ class StoryTranslatorWorkflowForm extends RTSeeForm {
|
|
|
3941
3942
|
inputName: 'storyId',
|
|
3942
3943
|
suggestionLabel: 'name',
|
|
3943
3944
|
suggestionId: 'id',
|
|
3945
|
+
suggestionImage: 'imageUrl',
|
|
3944
3946
|
placeholder: 'Search stories by name…',
|
|
3945
3947
|
dropdown: true,
|
|
3946
3948
|
loadOnce: false,
|
|
@@ -4298,6 +4300,7 @@ class StoryRepairWorkflowForm extends RTSeeForm {
|
|
|
4298
4300
|
inputName: 'storyId',
|
|
4299
4301
|
suggestionLabel: 'name',
|
|
4300
4302
|
suggestionId: 'id',
|
|
4303
|
+
suggestionImage: 'imageUrl',
|
|
4301
4304
|
placeholder: 'Search stories by name…',
|
|
4302
4305
|
dropdown: true,
|
|
4303
4306
|
loadOnce: false,
|
|
@@ -5286,13 +5289,13 @@ class MessagesListComponent {
|
|
|
5286
5289
|
this.firstGroupedMessage = this.chat.messages[0];
|
|
5287
5290
|
this.lastGroupedMessage = this.chat.messages[this.chat.messages.length - 1];
|
|
5288
5291
|
}
|
|
5289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token:
|
|
5292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token: i2$1.ViewportScroller }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5290
5293
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MessagesListComponent, isStandalone: true, selector: "rtsee-messages-list", inputs: { chat: "chat", messenger: "messenger", isFramed: "isFramed" }, host: { listeners: { "window:scroll": "onWindowScroll($event)", "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollBlock"], descendants: true }, { propertyName: "contentBlock", first: true, predicate: ["contentBlock"], descendants: true }, { propertyName: "bottomAnchor", first: true, predicate: ["bottomAnchor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"rts-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"isWindowScroll\"\n [infiniteScrollContainer]=\"isWindowScroll ? null : scrollBlock\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scrolled)=\"onScroll()\"\n (scroll)=\"onContainerScroll($event)\"\n [ngClass]=\"{\n 'rts-messages-list-scrollable': !isWindowScroll\n }\"\n [style.padding-bottom]=\"messenger.chatInputHeight + 'px'\"\n>\n <div class=\"rts-messages-list-inner\" #contentBlock>\n @for (messageGroup of messagesGroups; track messageGroup.id) {\n <div\n class=\"rts-messenger-message-wrapper\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [ngClass]=\"{\n 'rts-messenger-message-wrapper-with-sender': messageGroup.senderVisible\n }\"\n >\n <div class=\"rts-messenger-message-inset\">\n <img [src]=\"messageGroup.sender.imageUrl\"\n class=\"rts-messenger-message-sender-image\"\n >\n </div>\n\n <div\n class=\"rts-messenger-message-sender-name\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n <p itemprop=\"name\">{{messageGroup.sender.name}}</p>\n </div>\n\n @for (message of messageGroup.messages; track message.id) {\n <rtsee-message [message]=\"message\"\n [messenger]=\"messenger\"\n [chat]=\"chat\"\n ></rtsee-message>\n }\n </div>\n }\n <div class=\"rts-messages-list-bottom-anchor\" #bottomAnchor></div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "component", type: MessageComponent, selector: "rtsee-message", inputs: ["chat", "message", "member", "messenger"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
5291
5294
|
}
|
|
5292
5295
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, decorators: [{
|
|
5293
5296
|
type: Component,
|
|
5294
5297
|
args: [{ selector: 'rtsee-messages-list', imports: [InfiniteScrollDirective, MessageComponent, NgClass], standalone: true, template: "<div class=\"rts-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"isWindowScroll\"\n [infiniteScrollContainer]=\"isWindowScroll ? null : scrollBlock\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scrolled)=\"onScroll()\"\n (scroll)=\"onContainerScroll($event)\"\n [ngClass]=\"{\n 'rts-messages-list-scrollable': !isWindowScroll\n }\"\n [style.padding-bottom]=\"messenger.chatInputHeight + 'px'\"\n>\n <div class=\"rts-messages-list-inner\" #contentBlock>\n @for (messageGroup of messagesGroups; track messageGroup.id) {\n <div\n class=\"rts-messenger-message-wrapper\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [ngClass]=\"{\n 'rts-messenger-message-wrapper-with-sender': messageGroup.senderVisible\n }\"\n >\n <div class=\"rts-messenger-message-inset\">\n <img [src]=\"messageGroup.sender.imageUrl\"\n class=\"rts-messenger-message-sender-image\"\n >\n </div>\n\n <div\n class=\"rts-messenger-message-sender-name\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n <p itemprop=\"name\">{{messageGroup.sender.name}}</p>\n </div>\n\n @for (message of messageGroup.messages; track message.id) {\n <rtsee-message [message]=\"message\"\n [messenger]=\"messenger\"\n [chat]=\"chat\"\n ></rtsee-message>\n }\n </div>\n }\n <div class=\"rts-messages-list-bottom-anchor\" #bottomAnchor></div>\n </div>\n</div>\n" }]
|
|
5295
|
-
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type:
|
|
5298
|
+
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type: i2$1.ViewportScroller }, { type: i0.ElementRef }, { type: Document, decorators: [{
|
|
5296
5299
|
type: Inject,
|
|
5297
5300
|
args: [DOCUMENT]
|
|
5298
5301
|
}] }], propDecorators: { chat: [{
|
|
@@ -6695,7 +6698,7 @@ class ApplicationEventWidgetComponent extends BaseEventWidgetComponent {
|
|
|
6695
6698
|
null);
|
|
6696
6699
|
}
|
|
6697
6700
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ApplicationEventWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6698
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ApplicationEventWidgetComponent, isStandalone: true, selector: "rtsee-application-event-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"rtsee-event-widget application-event-widget\">\n <div class=\"widget-header\">\n <div class=\"widget-badge\" [ngClass]=\"badgeClass\">\n <span class=\"material-icons-outlined widget-badge-icon\">{{ badgeIcon }}</span>\n <span class=\"widget-badge-label\">{{ badgeLabel }}</span>\n </div>\n <div\n class=\"widget-timer\"\n [class.live]=\"isLive\"\n [title]=\"isLive ? 'Currently active' : 'Time spent before next event'\"\n >\n <span class=\"material-icons-outlined widget-timer-icon\">timer</span>\n <span class=\"widget-timer-text\">{{ durationText }}</span>\n </div>\n </div>\n\n <div class=\"widget-body\">\n <div class=\"widget-media\">\n <div class=\"widget-thumbnail-placeholder\" [ngClass]=\"placeholderClass\">\n <span class=\"material-icons-outlined\">apps</span>\n </div>\n </div>\n\n <div class=\"widget-info\">\n <span class=\"widget-title\" [title]=\"appName\">{{ appName }}</span>\n @if (appUrl) {\n <a\n [href]=\"appUrl\"\n target=\"_blank\"\n class=\"widget-story-link\"\n [title]=\"appUrl\"\n >\n <span class=\"widget-story-name\">{{ appUrl }}</span>\n <span class=\"material-icons-outlined external-icon\">open_in_new</span>\n </a>\n } @else {\n <span class=\"widget-subtitle\">Application settings</span>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
6701
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ApplicationEventWidgetComponent, isStandalone: true, selector: "rtsee-application-event-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"rtsee-event-widget application-event-widget\">\n <div class=\"widget-header\">\n <div class=\"widget-badge\" [ngClass]=\"badgeClass\">\n <span class=\"material-icons-outlined widget-badge-icon\">{{ badgeIcon }}</span>\n <span class=\"widget-badge-label\">{{ badgeLabel }}</span>\n </div>\n <div\n class=\"widget-timer\"\n [class.live]=\"isLive\"\n [title]=\"isLive ? 'Currently active' : 'Time spent before next event'\"\n >\n <span class=\"material-icons-outlined widget-timer-icon\">timer</span>\n <span class=\"widget-timer-text\">{{ durationText }}</span>\n </div>\n </div>\n\n <div class=\"widget-body\">\n <div class=\"widget-media\">\n <div class=\"widget-thumbnail-placeholder\" [ngClass]=\"placeholderClass\">\n <span class=\"material-icons-outlined\">apps</span>\n </div>\n </div>\n\n <div class=\"widget-info\">\n <span class=\"widget-title\" [title]=\"appName\">{{ appName }}</span>\n @if (appUrl) {\n <a\n [href]=\"appUrl\"\n target=\"_blank\"\n class=\"widget-story-link\"\n [title]=\"appUrl\"\n >\n <span class=\"widget-story-name\">{{ appUrl }}</span>\n <span class=\"material-icons-outlined external-icon\">open_in_new</span>\n </a>\n } @else {\n <span class=\"widget-subtitle\">Application settings</span>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
6699
6702
|
}
|
|
6700
6703
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ApplicationEventWidgetComponent, decorators: [{
|
|
6701
6704
|
type: Component,
|
|
@@ -7071,13 +7074,13 @@ class JoinCallComponent {
|
|
|
7071
7074
|
this.recentlyCopied = false;
|
|
7072
7075
|
}, 2000);
|
|
7073
7076
|
}
|
|
7074
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$
|
|
7077
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7075
7078
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: JoinCallComponent, isStandalone: true, selector: "rtsee-join-call", inputs: { presentation: "presentation", room: "room" }, providers: [MessageService], ngImport: i0, template: "<div class=\"rtsee-join-call\">\n <div class=\"rtsee-join-call-button\">\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.START_A_CALL_BUTTON]\"\n (click)=\"presentation.emitJoinRoomCallEvent()\"\n ></p-button>\n </div>\n <div class=\"rtsee-share-call-link\">\n <div class=\"rtsee-share-call-explain-section\">\n <div class=\"rtsee-share-call-explain-section-icon\">\n <span class=\"pi pi-link rtsee-link-icon\"></span>\n </div>\n <div class=\"rtsee-share-call-explain-section-text\">\n <span>Anyone can join your storytelling session using this link.</span>\n </div>\n </div>\n <div class=\"rtsee-share-call-link-section\">\n <p-toast position=\"bottom-center\" />\n <p-button [icon]=\"recentlyCopied ? 'pi pi-check' : 'pi pi-copy'\"\n severity=\"secondary\"\n class=\"rtsee-share-call-link-copy-btn\"\n [cdkCopyToClipboard]=\"window.location.origin + '?room_id=' + room.id\"\n (cdkCopyToClipboardCopied)=\"copyClicked()\"\n ></p-button>\n <p-message severity=\"info\"\n class=\"rtsee-share-call-link-text\"\n >{{ window.location.origin + '?room_id=' + room.id }}</p-message>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "component", type: Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] }); }
|
|
7076
7079
|
}
|
|
7077
7080
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, decorators: [{
|
|
7078
7081
|
type: Component,
|
|
7079
7082
|
args: [{ selector: 'rtsee-join-call', imports: [Button, CdkCopyToClipboard, Message, Toast], providers: [MessageService], template: "<div class=\"rtsee-join-call\">\n <div class=\"rtsee-join-call-button\">\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.START_A_CALL_BUTTON]\"\n (click)=\"presentation.emitJoinRoomCallEvent()\"\n ></p-button>\n </div>\n <div class=\"rtsee-share-call-link\">\n <div class=\"rtsee-share-call-explain-section\">\n <div class=\"rtsee-share-call-explain-section-icon\">\n <span class=\"pi pi-link rtsee-link-icon\"></span>\n </div>\n <div class=\"rtsee-share-call-explain-section-text\">\n <span>Anyone can join your storytelling session using this link.</span>\n </div>\n </div>\n <div class=\"rtsee-share-call-link-section\">\n <p-toast position=\"bottom-center\" />\n <p-button [icon]=\"recentlyCopied ? 'pi pi-check' : 'pi pi-copy'\"\n severity=\"secondary\"\n class=\"rtsee-share-call-link-copy-btn\"\n [cdkCopyToClipboard]=\"window.location.origin + '?room_id=' + room.id\"\n (cdkCopyToClipboardCopied)=\"copyClicked()\"\n ></p-button>\n <p-message severity=\"info\"\n class=\"rtsee-share-call-link-text\"\n >{{ window.location.origin + '?room_id=' + room.id }}</p-message>\n </div>\n </div>\n</div>\n" }]
|
|
7080
|
-
}], ctorParameters: () => [{ type: i1$
|
|
7083
|
+
}], ctorParameters: () => [{ type: i1$3.MessageService }], propDecorators: { presentation: [{
|
|
7081
7084
|
type: Input
|
|
7082
7085
|
}], room: [{
|
|
7083
7086
|
type: Input
|
|
@@ -7109,11 +7112,11 @@ class StoryThumbnailComponent {
|
|
|
7109
7112
|
}
|
|
7110
7113
|
}
|
|
7111
7114
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryThumbnailComponent, isStandalone: true, selector: "rtsee-story-thumbnail", inputs: { story: "story", presentation: "presentation" }, ngImport: i0, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n <img [src]=\"story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n />\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span> </span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
7115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryThumbnailComponent, isStandalone: true, selector: "rtsee-story-thumbnail", inputs: { story: "story", presentation: "presentation" }, ngImport: i0, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl || story.id]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n <img [src]=\"story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n />\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span> </span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
7113
7116
|
}
|
|
7114
7117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, decorators: [{
|
|
7115
7118
|
type: Component,
|
|
7116
|
-
args: [{ selector: 'rtsee-story-thumbnail', imports: [RatingComponent, RouterLink], standalone: true, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n <img [src]=\"story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n />\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span> </span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n" }]
|
|
7119
|
+
args: [{ selector: 'rtsee-story-thumbnail', imports: [RatingComponent, RouterLink], standalone: true, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl || story.id]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n <img [src]=\"story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n />\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span> </span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n" }]
|
|
7117
7120
|
}], propDecorators: { story: [{
|
|
7118
7121
|
type: Input
|
|
7119
7122
|
}], presentation: [{
|
|
@@ -7624,10 +7627,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7624
7627
|
}] } });
|
|
7625
7628
|
|
|
7626
7629
|
class IllustratorComponent {
|
|
7630
|
+
static { this.MOBILE_BREAKPOINT = 800; }
|
|
7627
7631
|
constructor(cdr, elementRef) {
|
|
7628
7632
|
this.cdr = cdr;
|
|
7629
7633
|
this.elementRef = elementRef;
|
|
7634
|
+
this.collapsedHeightChange = new EventEmitter();
|
|
7635
|
+
this.isMobile = false;
|
|
7636
|
+
this.layoutLeftPx = null;
|
|
7637
|
+
this.layoutRightPx = null;
|
|
7638
|
+
this.layoutBottomPx = 0;
|
|
7639
|
+
this.activeCarouselIndex = 0;
|
|
7630
7640
|
this.ownIllustrator = false;
|
|
7641
|
+
this.suppressHoverUntilLeave = false;
|
|
7642
|
+
this.lastMeasuredCollapsedHeight = 0;
|
|
7643
|
+
this.resizeObserver = null;
|
|
7644
|
+
this.rafId = null;
|
|
7631
7645
|
this.aspectRatios = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3'];
|
|
7632
7646
|
this.styles = [
|
|
7633
7647
|
'Classic Fairy Tale pixel-art Storybook',
|
|
@@ -7654,35 +7668,209 @@ class IllustratorComponent {
|
|
|
7654
7668
|
'Moonlit Midnight Glow',
|
|
7655
7669
|
];
|
|
7656
7670
|
this.onIllustratorChanged = () => {
|
|
7671
|
+
if (this.illustrator && this.activeCarouselIndex >= this.illustrator.contextImages.length) {
|
|
7672
|
+
this.activeCarouselIndex = Math.max(0, this.illustrator.contextImages.length - 1);
|
|
7673
|
+
}
|
|
7657
7674
|
this.cdr.markForCheck();
|
|
7675
|
+
this.scheduleLayoutUpdate();
|
|
7658
7676
|
};
|
|
7659
|
-
this.
|
|
7660
|
-
this.
|
|
7661
|
-
setTimeout(() => {
|
|
7662
|
-
this.elementRef.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
7663
|
-
}, 60);
|
|
7677
|
+
this.onWindowResizeOrScroll = () => {
|
|
7678
|
+
this.scheduleLayoutUpdate();
|
|
7664
7679
|
};
|
|
7665
7680
|
}
|
|
7681
|
+
get activePromptText() {
|
|
7682
|
+
if (!this.illustrator) {
|
|
7683
|
+
return '';
|
|
7684
|
+
}
|
|
7685
|
+
return this.illustrator.reviewingGeneratedImage
|
|
7686
|
+
? this.illustrator.iterationPrompt
|
|
7687
|
+
: this.illustrator.prompt;
|
|
7688
|
+
}
|
|
7689
|
+
set activePromptText(value) {
|
|
7690
|
+
if (!this.illustrator) {
|
|
7691
|
+
return;
|
|
7692
|
+
}
|
|
7693
|
+
if (this.illustrator.reviewingGeneratedImage) {
|
|
7694
|
+
this.illustrator.iterationPrompt = value;
|
|
7695
|
+
}
|
|
7696
|
+
else {
|
|
7697
|
+
this.illustrator.prompt = value;
|
|
7698
|
+
}
|
|
7699
|
+
}
|
|
7666
7700
|
ngOnInit() {
|
|
7701
|
+
if (typeof window !== 'undefined') {
|
|
7702
|
+
this.isMobile = window.innerWidth < IllustratorComponent.MOBILE_BREAKPOINT;
|
|
7703
|
+
}
|
|
7667
7704
|
if (!this.illustrator) {
|
|
7668
7705
|
this.illustrator = new RTSeeIllustrator();
|
|
7669
7706
|
this.ownIllustrator = true;
|
|
7670
7707
|
}
|
|
7671
7708
|
this.illustrator.on('changed', this.onIllustratorChanged);
|
|
7672
|
-
this.illustrator.on('scroll-into-view', this.onScrollIntoView);
|
|
7673
7709
|
this.illustrator.requestAgents();
|
|
7674
7710
|
}
|
|
7711
|
+
ngAfterViewInit() {
|
|
7712
|
+
if (typeof window === 'undefined') {
|
|
7713
|
+
return;
|
|
7714
|
+
}
|
|
7715
|
+
this.updateLayoutMetrics();
|
|
7716
|
+
window.addEventListener('resize', this.onWindowResizeOrScroll, { passive: true });
|
|
7717
|
+
window.addEventListener('scroll', this.onWindowResizeOrScroll, { passive: true, capture: true });
|
|
7718
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
7719
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
7720
|
+
this.scheduleLayoutUpdate();
|
|
7721
|
+
});
|
|
7722
|
+
const host = this.elementRef.nativeElement;
|
|
7723
|
+
if (this.containerElRef?.nativeElement) {
|
|
7724
|
+
this.resizeObserver.observe(this.containerElRef.nativeElement);
|
|
7725
|
+
}
|
|
7726
|
+
const contentEl = host.closest('.rtsee-presentations-dashboard') ||
|
|
7727
|
+
host.closest('.rtsee-presentation') ||
|
|
7728
|
+
host.closest('.rtsee-interactive-story-editor') ||
|
|
7729
|
+
host.parentElement;
|
|
7730
|
+
if (contentEl) {
|
|
7731
|
+
this.resizeObserver.observe(contentEl);
|
|
7732
|
+
}
|
|
7733
|
+
const shellEl = host.closest('.rtsee-shell');
|
|
7734
|
+
if (shellEl) {
|
|
7735
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7736
|
+
if (navEl) {
|
|
7737
|
+
this.resizeObserver.observe(navEl);
|
|
7738
|
+
}
|
|
7739
|
+
const msgEl = shellEl.querySelector('.rtsee-messenger-container');
|
|
7740
|
+
if (msgEl) {
|
|
7741
|
+
this.resizeObserver.observe(msgEl);
|
|
7742
|
+
}
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
}
|
|
7675
7746
|
ngOnDestroy() {
|
|
7747
|
+
if (typeof window !== 'undefined') {
|
|
7748
|
+
window.removeEventListener('resize', this.onWindowResizeOrScroll);
|
|
7749
|
+
window.removeEventListener('scroll', this.onWindowResizeOrScroll, {
|
|
7750
|
+
capture: true,
|
|
7751
|
+
});
|
|
7752
|
+
if (this.rafId !== null) {
|
|
7753
|
+
cancelAnimationFrame(this.rafId);
|
|
7754
|
+
this.rafId = null;
|
|
7755
|
+
}
|
|
7756
|
+
}
|
|
7757
|
+
if (this.resizeObserver) {
|
|
7758
|
+
this.resizeObserver.disconnect();
|
|
7759
|
+
this.resizeObserver = null;
|
|
7760
|
+
}
|
|
7676
7761
|
if (this.illustrator) {
|
|
7677
7762
|
this.illustrator.off('changed', this.onIllustratorChanged);
|
|
7678
|
-
this.illustrator.off('scroll-into-view', this.onScrollIntoView);
|
|
7679
7763
|
if (this.ownIllustrator) {
|
|
7680
7764
|
this.illustrator.destroy();
|
|
7681
7765
|
}
|
|
7682
7766
|
}
|
|
7683
7767
|
}
|
|
7768
|
+
onCollapsedMouseEnter() {
|
|
7769
|
+
if (this.isMobile || this.suppressHoverUntilLeave) {
|
|
7770
|
+
return;
|
|
7771
|
+
}
|
|
7772
|
+
this.illustrator.expand();
|
|
7773
|
+
this.cdr.markForCheck();
|
|
7774
|
+
}
|
|
7775
|
+
onContainerMouseLeave(event) {
|
|
7776
|
+
this.suppressHoverUntilLeave = false;
|
|
7777
|
+
if (this.isMobile || !this.illustrator.expanded) {
|
|
7778
|
+
return;
|
|
7779
|
+
}
|
|
7780
|
+
const activeEl = typeof document !== 'undefined' ? document.activeElement : null;
|
|
7781
|
+
if (event.relatedTarget === null &&
|
|
7782
|
+
activeEl instanceof HTMLSelectElement &&
|
|
7783
|
+
this.elementRef.nativeElement.contains(activeEl)) {
|
|
7784
|
+
return;
|
|
7785
|
+
}
|
|
7786
|
+
this.illustrator.collapse();
|
|
7787
|
+
this.cdr.markForCheck();
|
|
7788
|
+
}
|
|
7789
|
+
expandIllustrator(event) {
|
|
7790
|
+
event?.stopPropagation();
|
|
7791
|
+
this.suppressHoverUntilLeave = false;
|
|
7792
|
+
this.illustrator.expand();
|
|
7793
|
+
this.cdr.markForCheck();
|
|
7794
|
+
}
|
|
7795
|
+
collapseIllustrator(event) {
|
|
7796
|
+
event?.stopPropagation();
|
|
7797
|
+
this.suppressHoverUntilLeave = true;
|
|
7798
|
+
this.illustrator.collapse();
|
|
7799
|
+
this.cdr.markForCheck();
|
|
7800
|
+
this.scheduleLayoutUpdate();
|
|
7801
|
+
}
|
|
7684
7802
|
toggleExpand() {
|
|
7685
|
-
this.illustrator.
|
|
7803
|
+
if (this.illustrator.expanded) {
|
|
7804
|
+
this.collapseIllustrator();
|
|
7805
|
+
}
|
|
7806
|
+
else {
|
|
7807
|
+
this.expandIllustrator();
|
|
7808
|
+
}
|
|
7809
|
+
}
|
|
7810
|
+
onCollapsedSubmit(event) {
|
|
7811
|
+
event?.stopPropagation();
|
|
7812
|
+
event?.preventDefault();
|
|
7813
|
+
if (!this.illustrator.canSubmit) {
|
|
7814
|
+
return;
|
|
7815
|
+
}
|
|
7816
|
+
this.illustrator.submitPrompt();
|
|
7817
|
+
}
|
|
7818
|
+
onCollapsedEnter(event) {
|
|
7819
|
+
const keyboardEvent = event;
|
|
7820
|
+
if (keyboardEvent.isComposing) {
|
|
7821
|
+
return;
|
|
7822
|
+
}
|
|
7823
|
+
event.preventDefault();
|
|
7824
|
+
this.onCollapsedSubmit(event);
|
|
7825
|
+
}
|
|
7826
|
+
prevContextSlide() {
|
|
7827
|
+
this.scrollContextCarouselTo(this.activeCarouselIndex - 1);
|
|
7828
|
+
}
|
|
7829
|
+
nextContextSlide() {
|
|
7830
|
+
this.scrollContextCarouselTo(this.activeCarouselIndex + 1);
|
|
7831
|
+
}
|
|
7832
|
+
scrollContextCarouselTo(index) {
|
|
7833
|
+
const total = this.illustrator?.contextImages?.length || 0;
|
|
7834
|
+
if (total === 0) {
|
|
7835
|
+
return;
|
|
7836
|
+
}
|
|
7837
|
+
const clamped = Math.max(0, Math.min(total - 1, index));
|
|
7838
|
+
this.activeCarouselIndex = clamped;
|
|
7839
|
+
const carousel = this.contextCarouselElRef?.nativeElement;
|
|
7840
|
+
if (carousel) {
|
|
7841
|
+
const cards = carousel.querySelectorAll('.rtsee-illustrator-context-card');
|
|
7842
|
+
const targetCard = cards[clamped];
|
|
7843
|
+
if (targetCard) {
|
|
7844
|
+
const targetLeft = targetCard.offsetLeft - (carousel.clientWidth - targetCard.offsetWidth) / 2;
|
|
7845
|
+
carousel.scrollTo({ left: Math.max(0, targetLeft), behavior: 'smooth' });
|
|
7846
|
+
}
|
|
7847
|
+
}
|
|
7848
|
+
this.cdr.markForCheck();
|
|
7849
|
+
}
|
|
7850
|
+
onContextCarouselScroll() {
|
|
7851
|
+
const carousel = this.contextCarouselElRef?.nativeElement;
|
|
7852
|
+
if (!carousel) {
|
|
7853
|
+
return;
|
|
7854
|
+
}
|
|
7855
|
+
const cards = carousel.querySelectorAll('.rtsee-illustrator-context-card');
|
|
7856
|
+
if (!cards.length) {
|
|
7857
|
+
return;
|
|
7858
|
+
}
|
|
7859
|
+
const center = carousel.scrollLeft + carousel.clientWidth / 2;
|
|
7860
|
+
let closestIndex = 0;
|
|
7861
|
+
let closestDistance = Number.POSITIVE_INFINITY;
|
|
7862
|
+
cards.forEach((card, idx) => {
|
|
7863
|
+
const cardCenter = card.offsetLeft + card.offsetWidth / 2;
|
|
7864
|
+
const distance = Math.abs(center - cardCenter);
|
|
7865
|
+
if (distance < closestDistance) {
|
|
7866
|
+
closestDistance = distance;
|
|
7867
|
+
closestIndex = idx;
|
|
7868
|
+
}
|
|
7869
|
+
});
|
|
7870
|
+
if (this.activeCarouselIndex !== closestIndex) {
|
|
7871
|
+
this.activeCarouselIndex = closestIndex;
|
|
7872
|
+
this.cdr.markForCheck();
|
|
7873
|
+
}
|
|
7686
7874
|
}
|
|
7687
7875
|
toggleConfig() {
|
|
7688
7876
|
this.illustrator.toggleConfig();
|
|
@@ -7709,7 +7897,7 @@ class IllustratorComponent {
|
|
|
7709
7897
|
this.illustrator.acceptGeneratedImage();
|
|
7710
7898
|
}
|
|
7711
7899
|
submitIteration() {
|
|
7712
|
-
this.illustrator.submitIteration();
|
|
7900
|
+
void this.illustrator.submitIteration();
|
|
7713
7901
|
}
|
|
7714
7902
|
submitPrompt() {
|
|
7715
7903
|
this.illustrator.submitPrompt();
|
|
@@ -7720,14 +7908,134 @@ class IllustratorComponent {
|
|
|
7720
7908
|
trackByAgentId(index, item) {
|
|
7721
7909
|
return item.id || `agent-${index}`;
|
|
7722
7910
|
}
|
|
7911
|
+
scheduleLayoutUpdate() {
|
|
7912
|
+
if (typeof window === 'undefined') {
|
|
7913
|
+
return;
|
|
7914
|
+
}
|
|
7915
|
+
if (this.rafId !== null) {
|
|
7916
|
+
return;
|
|
7917
|
+
}
|
|
7918
|
+
this.rafId = window.requestAnimationFrame(() => {
|
|
7919
|
+
this.rafId = null;
|
|
7920
|
+
this.updateLayoutMetrics();
|
|
7921
|
+
});
|
|
7922
|
+
}
|
|
7923
|
+
updateLayoutMetrics() {
|
|
7924
|
+
if (typeof window === 'undefined') {
|
|
7925
|
+
return;
|
|
7926
|
+
}
|
|
7927
|
+
const viewportWidth = document.documentElement?.clientWidth || window.innerWidth;
|
|
7928
|
+
const nextIsMobile = window.innerWidth < IllustratorComponent.MOBILE_BREAKPOINT;
|
|
7929
|
+
let changed = false;
|
|
7930
|
+
if (this.isMobile !== nextIsMobile) {
|
|
7931
|
+
this.isMobile = nextIsMobile;
|
|
7932
|
+
this.suppressHoverUntilLeave = false;
|
|
7933
|
+
changed = true;
|
|
7934
|
+
}
|
|
7935
|
+
const host = this.elementRef.nativeElement;
|
|
7936
|
+
const shellEl = host.closest('.rtsee-shell');
|
|
7937
|
+
if (nextIsMobile) {
|
|
7938
|
+
let bottomOffset = 0;
|
|
7939
|
+
if (shellEl) {
|
|
7940
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7941
|
+
if (navEl) {
|
|
7942
|
+
const navStyle = window.getComputedStyle(navEl);
|
|
7943
|
+
const navRect = navEl.getBoundingClientRect();
|
|
7944
|
+
if (navStyle.display !== 'none' &&
|
|
7945
|
+
navStyle.visibility !== 'hidden' &&
|
|
7946
|
+
navRect.height > 0 &&
|
|
7947
|
+
navRect.width >= viewportWidth * 0.7 &&
|
|
7948
|
+
Math.abs(window.innerHeight - navRect.bottom) <= 8) {
|
|
7949
|
+
bottomOffset = Math.round(navRect.height);
|
|
7950
|
+
}
|
|
7951
|
+
}
|
|
7952
|
+
}
|
|
7953
|
+
if (this.layoutLeftPx !== 0 || this.layoutRightPx !== 0 || this.layoutBottomPx !== bottomOffset) {
|
|
7954
|
+
this.layoutLeftPx = 0;
|
|
7955
|
+
this.layoutRightPx = 0;
|
|
7956
|
+
this.layoutBottomPx = bottomOffset;
|
|
7957
|
+
changed = true;
|
|
7958
|
+
}
|
|
7959
|
+
}
|
|
7960
|
+
else {
|
|
7961
|
+
const contentEl = host.closest('.rtsee-presentations-dashboard') ||
|
|
7962
|
+
host.closest('.rtsee-presentation') ||
|
|
7963
|
+
host.closest('.rtsee-interactive-story-editor') ||
|
|
7964
|
+
host.parentElement;
|
|
7965
|
+
let left = 0;
|
|
7966
|
+
let right = 0;
|
|
7967
|
+
if (contentEl) {
|
|
7968
|
+
const rect = contentEl.getBoundingClientRect();
|
|
7969
|
+
if (rect.width > 0) {
|
|
7970
|
+
left = Math.max(0, Math.round(rect.left));
|
|
7971
|
+
right = Math.max(0, Math.round(viewportWidth - rect.right));
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
if (shellEl) {
|
|
7975
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7976
|
+
if (navEl) {
|
|
7977
|
+
const navStyle = window.getComputedStyle(navEl);
|
|
7978
|
+
const navRect = navEl.getBoundingClientRect();
|
|
7979
|
+
if (navStyle.display !== 'none' &&
|
|
7980
|
+
navRect.width > 0 &&
|
|
7981
|
+
navRect.left <= 5 &&
|
|
7982
|
+
navRect.right < viewportWidth * 0.6) {
|
|
7983
|
+
left = Math.max(left, Math.round(navRect.right));
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
const messengerEl = shellEl.querySelector('.rtsee-messenger-container');
|
|
7987
|
+
if (messengerEl) {
|
|
7988
|
+
const msgStyle = window.getComputedStyle(messengerEl);
|
|
7989
|
+
const msgRect = messengerEl.getBoundingClientRect();
|
|
7990
|
+
if (msgStyle.display !== 'none' &&
|
|
7991
|
+
msgRect.width > 0 &&
|
|
7992
|
+
msgRect.right >= viewportWidth - 5 &&
|
|
7993
|
+
msgRect.left > viewportWidth * 0.3) {
|
|
7994
|
+
right = Math.max(right, Math.round(viewportWidth - msgRect.left));
|
|
7995
|
+
}
|
|
7996
|
+
}
|
|
7997
|
+
}
|
|
7998
|
+
if (this.layoutLeftPx !== left || this.layoutRightPx !== right || this.layoutBottomPx !== 0) {
|
|
7999
|
+
this.layoutLeftPx = left;
|
|
8000
|
+
this.layoutRightPx = right;
|
|
8001
|
+
this.layoutBottomPx = 0;
|
|
8002
|
+
changed = true;
|
|
8003
|
+
}
|
|
8004
|
+
}
|
|
8005
|
+
if (!this.illustrator?.expanded) {
|
|
8006
|
+
const containerEl = this.containerElRef?.nativeElement;
|
|
8007
|
+
if (containerEl) {
|
|
8008
|
+
const measuredHeight = Math.ceil(containerEl.getBoundingClientRect().height);
|
|
8009
|
+
if (measuredHeight > 0 && Math.abs(measuredHeight - this.lastMeasuredCollapsedHeight) >= 1) {
|
|
8010
|
+
this.lastMeasuredCollapsedHeight = measuredHeight;
|
|
8011
|
+
const editorEl = host.closest('.rtsee-interactive-story-editor');
|
|
8012
|
+
if (editorEl) {
|
|
8013
|
+
editorEl.style.setProperty('--rtsee-illustrator-collapsed-height', `${measuredHeight}px`);
|
|
8014
|
+
}
|
|
8015
|
+
this.collapsedHeightChange.emit(measuredHeight);
|
|
8016
|
+
}
|
|
8017
|
+
}
|
|
8018
|
+
}
|
|
8019
|
+
if (changed) {
|
|
8020
|
+
this.cdr.markForCheck();
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
7723
8023
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IllustratorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7724
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IllustratorComponent, isStandalone: true, selector: "rtsee-illustrator", inputs: { illustrator: "illustrator" }, ngImport: i0, template: "<div class=\"rtsee-illustrator-container\" [ngClass]=\"{ 'rtsee-illustrator--expanded': illustrator.expanded }\">\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n <div class=\"rtsee-illustrator-collapsed-bar\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-illustrator-collapsed-info\">\n <div class=\"rtsee-illustrator-badge-icon\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div class=\"rtsee-illustrator-collapsed-title\">\n <span class=\"rtsee-illustrator-brand-text\">NanoBanana Illustrator</span>\n @if (illustrator.activeAgent) {\n <span class=\"rtsee-illustrator-agent-pill\">\n <i class=\"pi pi-bolt\"></i>\n {{ illustrator.activeAgent.name }}\n </span>\n } @else {\n <span class=\"rtsee-illustrator-agent-pill rtsee-illustrator-agent-pill--waiting\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n Waiting for Chat Agent...\n </span>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-collapsed-meta\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <span class=\"rtsee-illustrator-collapsed-review-pill\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Draft\" class=\"rtsee-illustrator-collapsed-thumb\" />\n <span>\u2728 Reviewing Draft</span>\n </span>\n }\n @if (illustrator.contextImages.length > 0) {\n <span class=\"rtsee-illustrator-context-count\">\n <i class=\"pi pi-images\"></i>\n {{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }} context refs\n </span>\n }\n @if (illustrator.prompt) {\n <span class=\"rtsee-illustrator-prompt-preview\">\n \"{{ illustrator.prompt.length > 50 ? (illustrator.prompt | slice:0:50) + '\u2026' : illustrator.prompt }}\"\n </span>\n }\n <button type=\"button\" class=\"rtsee-illustrator-expand-btn\" aria-label=\"Expand Illustrator\">\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n </div>\n }\n\n <!-- Expanded Drawer -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i> Agent:\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>Connect RTSeeChat</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n <span>Config</span>\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--close\"\n (click)=\"toggleExpand()\"\n aria-label=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i> Story Context References ({{ illustrator.activeContextImages.length }} of {{ illustrator.contextImages.length }} active)\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-context-cards\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i1$3.SlicePipe, name: "slice" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8024
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IllustratorComponent, isStandalone: true, selector: "rtsee-illustrator", inputs: { illustrator: "illustrator" }, outputs: { collapsedHeightChange: "collapsedHeightChange" }, viewQueries: [{ propertyName: "containerElRef", first: true, predicate: ["containerEl"], descendants: true }, { propertyName: "contextCarouselElRef", first: true, predicate: ["contextCarouselEl"], descendants: true }], ngImport: i0, template: "<div\n #containerEl\n class=\"rtsee-illustrator-container\"\n [ngClass]=\"{\n 'rtsee-illustrator--expanded': illustrator.expanded,\n 'rtsee-illustrator--mobile': isMobile,\n 'rtsee-illustrator--desktop': !isMobile\n }\"\n [style.--rtsee-illustrator-left]=\"layoutLeftPx !== null ? layoutLeftPx + 'px' : null\"\n [style.--rtsee-illustrator-right]=\"layoutRightPx !== null ? layoutRightPx + 'px' : null\"\n [style.--rtsee-illustrator-bottom]=\"layoutBottomPx + 'px'\"\n (mouseleave)=\"onContainerMouseLeave($event)\"\n>\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n @if (isMobile) {\n <!-- Mobile Minimalist Collapsed Bar: ImagePreview + Text Input + Paperplane Submit + Expand Button -->\n <div class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--mobile\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Image preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Modify image\u2026' : 'Describe illustration\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-collapsed-icon-btn--submit\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n aria-label=\"Submit\"\n title=\"Submit\"\n >\n <i class=\"pi\" [ngClass]=\"illustrator.submitting ? 'pi-spin pi-spinner' : 'pi-send'\"></i>\n </button>\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-expand-btn\"\n (click)=\"expandIllustrator($event)\"\n aria-label=\"Expand Illustrator\"\n title=\"Expand Illustrator\"\n >\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n } @else {\n <!-- Desktop Collapsed Bar: Single Image (if preview) + Context (N) + Small Text Input + Submit Button -->\n <div\n class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--desktop\"\n (mouseenter)=\"onCollapsedMouseEnter()\"\n >\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <span class=\"rtsee-illustrator-context-count\">\n Context ({{ illustrator.contextImages.length }})\n </span>\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Describe modifications to iterate\u2026' : 'Describe illustration to generate\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-submit-btn\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n >\n @if (illustrator.submitting) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-send\"></i>\n }\n <span>Submit</span>\n </button>\n </div>\n }\n }\n\n <!-- Expanded Drawer / Fullscreen Mobile Overlay -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n @if (!isMobile) {\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i>\n @if (!isMobile) {\n <span>Agent:</span>\n }\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>{{ isMobile ? 'Connect' : 'Connect RTSeeChat' }}</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n @if (!isMobile) {\n <span>Config</span>\n }\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--collapse\"\n (click)=\"collapseIllustrator($event)\"\n aria-label=\"Collapse Illustrator\"\n title=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-chevron-down\"></i>\n @if (!isMobile) {\n <span>Collapse</span>\n }\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\"\n [ngClass]=\"{ 'rtsee-illustrator-context-section--carousel': isMobile }\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i>\n Context ({{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }})\n </span>\n\n <div class=\"rtsee-illustrator-context-header-actions\">\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-nav\">\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex <= 0\"\n (click)=\"prevContextSlide()\"\n aria-label=\"Previous context item\"\n >\n <i class=\"pi pi-arrow-left\"></i>\n </button>\n <span class=\"rtsee-illustrator-carousel-counter\">\n {{ activeCarouselIndex + 1 }} / {{ illustrator.contextImages.length }}\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex >= illustrator.contextImages.length - 1\"\n (click)=\"nextContextSlide()\"\n aria-label=\"Next context item\"\n >\n <i class=\"pi pi-arrow-right\"></i>\n </button>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n </div>\n\n <div\n #contextCarouselEl\n class=\"rtsee-illustrator-context-cards\"\n (scroll)=\"onContextCarouselScroll()\"\n >\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-dots\" role=\"tablist\" aria-label=\"Context items\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-dot\"\n [ngClass]=\"{ 'rtsee-illustrator-carousel-dot--active': $index === activeCarouselIndex }\"\n [attr.aria-label]=\"'Context item ' + ($index + 1)\"\n (click)=\"scrollContextCarouselTo($index)\"\n ></button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7725
8025
|
}
|
|
7726
8026
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IllustratorComponent, decorators: [{
|
|
7727
8027
|
type: Component,
|
|
7728
|
-
args: [{ selector: 'rtsee-illustrator', standalone: true, imports: [CommonModule, FormsModule, Button, Checkbox, Textarea], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"rtsee-illustrator-container\" [ngClass]=\"{ 'rtsee-illustrator--expanded': illustrator.expanded }\">\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n <div class=\"rtsee-illustrator-collapsed-bar\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-illustrator-collapsed-info\">\n <div class=\"rtsee-illustrator-badge-icon\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div class=\"rtsee-illustrator-collapsed-title\">\n <span class=\"rtsee-illustrator-brand-text\">NanoBanana Illustrator</span>\n @if (illustrator.activeAgent) {\n <span class=\"rtsee-illustrator-agent-pill\">\n <i class=\"pi pi-bolt\"></i>\n {{ illustrator.activeAgent.name }}\n </span>\n } @else {\n <span class=\"rtsee-illustrator-agent-pill rtsee-illustrator-agent-pill--waiting\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n Waiting for Chat Agent...\n </span>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-collapsed-meta\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <span class=\"rtsee-illustrator-collapsed-review-pill\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Draft\" class=\"rtsee-illustrator-collapsed-thumb\" />\n <span>\u2728 Reviewing Draft</span>\n </span>\n }\n @if (illustrator.contextImages.length > 0) {\n <span class=\"rtsee-illustrator-context-count\">\n <i class=\"pi pi-images\"></i>\n {{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }} context refs\n </span>\n }\n @if (illustrator.prompt) {\n <span class=\"rtsee-illustrator-prompt-preview\">\n \"{{ illustrator.prompt.length > 50 ? (illustrator.prompt | slice:0:50) + '\u2026' : illustrator.prompt }}\"\n </span>\n }\n <button type=\"button\" class=\"rtsee-illustrator-expand-btn\" aria-label=\"Expand Illustrator\">\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n </div>\n }\n\n <!-- Expanded Drawer -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i> Agent:\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>Connect RTSeeChat</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n <span>Config</span>\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--close\"\n (click)=\"toggleExpand()\"\n aria-label=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i> Story Context References ({{ illustrator.activeContextImages.length }} of {{ illustrator.contextImages.length }} active)\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-context-cards\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
8028
|
+
args: [{ selector: 'rtsee-illustrator', standalone: true, imports: [CommonModule, FormsModule, Button], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #containerEl\n class=\"rtsee-illustrator-container\"\n [ngClass]=\"{\n 'rtsee-illustrator--expanded': illustrator.expanded,\n 'rtsee-illustrator--mobile': isMobile,\n 'rtsee-illustrator--desktop': !isMobile\n }\"\n [style.--rtsee-illustrator-left]=\"layoutLeftPx !== null ? layoutLeftPx + 'px' : null\"\n [style.--rtsee-illustrator-right]=\"layoutRightPx !== null ? layoutRightPx + 'px' : null\"\n [style.--rtsee-illustrator-bottom]=\"layoutBottomPx + 'px'\"\n (mouseleave)=\"onContainerMouseLeave($event)\"\n>\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n @if (isMobile) {\n <!-- Mobile Minimalist Collapsed Bar: ImagePreview + Text Input + Paperplane Submit + Expand Button -->\n <div class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--mobile\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Image preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Modify image\u2026' : 'Describe illustration\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-collapsed-icon-btn--submit\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n aria-label=\"Submit\"\n title=\"Submit\"\n >\n <i class=\"pi\" [ngClass]=\"illustrator.submitting ? 'pi-spin pi-spinner' : 'pi-send'\"></i>\n </button>\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-expand-btn\"\n (click)=\"expandIllustrator($event)\"\n aria-label=\"Expand Illustrator\"\n title=\"Expand Illustrator\"\n >\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n } @else {\n <!-- Desktop Collapsed Bar: Single Image (if preview) + Context (N) + Small Text Input + Submit Button -->\n <div\n class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--desktop\"\n (mouseenter)=\"onCollapsedMouseEnter()\"\n >\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <span class=\"rtsee-illustrator-context-count\">\n Context ({{ illustrator.contextImages.length }})\n </span>\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Describe modifications to iterate\u2026' : 'Describe illustration to generate\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-submit-btn\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n >\n @if (illustrator.submitting) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-send\"></i>\n }\n <span>Submit</span>\n </button>\n </div>\n }\n }\n\n <!-- Expanded Drawer / Fullscreen Mobile Overlay -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n @if (!isMobile) {\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i>\n @if (!isMobile) {\n <span>Agent:</span>\n }\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>{{ isMobile ? 'Connect' : 'Connect RTSeeChat' }}</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n @if (!isMobile) {\n <span>Config</span>\n }\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--collapse\"\n (click)=\"collapseIllustrator($event)\"\n aria-label=\"Collapse Illustrator\"\n title=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-chevron-down\"></i>\n @if (!isMobile) {\n <span>Collapse</span>\n }\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\"\n [ngClass]=\"{ 'rtsee-illustrator-context-section--carousel': isMobile }\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i>\n Context ({{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }})\n </span>\n\n <div class=\"rtsee-illustrator-context-header-actions\">\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-nav\">\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex <= 0\"\n (click)=\"prevContextSlide()\"\n aria-label=\"Previous context item\"\n >\n <i class=\"pi pi-arrow-left\"></i>\n </button>\n <span class=\"rtsee-illustrator-carousel-counter\">\n {{ activeCarouselIndex + 1 }} / {{ illustrator.contextImages.length }}\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex >= illustrator.contextImages.length - 1\"\n (click)=\"nextContextSlide()\"\n aria-label=\"Next context item\"\n >\n <i class=\"pi pi-arrow-right\"></i>\n </button>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n </div>\n\n <div\n #contextCarouselEl\n class=\"rtsee-illustrator-context-cards\"\n (scroll)=\"onContextCarouselScroll()\"\n >\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-dots\" role=\"tablist\" aria-label=\"Context items\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-dot\"\n [ngClass]=\"{ 'rtsee-illustrator-carousel-dot--active': $index === activeCarouselIndex }\"\n [attr.aria-label]=\"'Context item ' + ($index + 1)\"\n (click)=\"scrollContextCarouselTo($index)\"\n ></button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
7729
8029
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { illustrator: [{
|
|
7730
8030
|
type: Input
|
|
8031
|
+
}], collapsedHeightChange: [{
|
|
8032
|
+
type: Output
|
|
8033
|
+
}], containerElRef: [{
|
|
8034
|
+
type: ViewChild,
|
|
8035
|
+
args: ['containerEl']
|
|
8036
|
+
}], contextCarouselElRef: [{
|
|
8037
|
+
type: ViewChild,
|
|
8038
|
+
args: ['contextCarouselEl']
|
|
7731
8039
|
}] } });
|
|
7732
8040
|
|
|
7733
8041
|
/**
|
|
@@ -7743,6 +8051,8 @@ class InteractiveStoryEditorComponent {
|
|
|
7743
8051
|
this.sections = RTSeeStoryEditorSection;
|
|
7744
8052
|
this.illustrator = new RTSeeIllustrator();
|
|
7745
8053
|
this.slideUpdatingIds = new Set();
|
|
8054
|
+
this.slidesViewMode = 'carousel';
|
|
8055
|
+
this.illustratorCollapsedHeight = 60;
|
|
7746
8056
|
this.onIllustratorChanged = () => {
|
|
7747
8057
|
this.cdr.markForCheck();
|
|
7748
8058
|
};
|
|
@@ -7761,6 +8071,18 @@ class InteractiveStoryEditorComponent {
|
|
|
7761
8071
|
isSlideUpdating(id) {
|
|
7762
8072
|
return this.slideUpdatingIds.has(id);
|
|
7763
8073
|
}
|
|
8074
|
+
toggleSlidesViewMode(event) {
|
|
8075
|
+
event.stopPropagation();
|
|
8076
|
+
event.preventDefault();
|
|
8077
|
+
this.slidesViewMode = this.slidesViewMode === 'carousel' ? 'inline' : 'carousel';
|
|
8078
|
+
this.cdr.markForCheck();
|
|
8079
|
+
}
|
|
8080
|
+
onIllustratorCollapsedHeightChange(height) {
|
|
8081
|
+
if (height > 0 && Math.abs(this.illustratorCollapsedHeight - height) >= 1) {
|
|
8082
|
+
this.illustratorCollapsedHeight = height;
|
|
8083
|
+
this.cdr.markForCheck();
|
|
8084
|
+
}
|
|
8085
|
+
}
|
|
7764
8086
|
async applyReviewedImageToSlide(event, slide) {
|
|
7765
8087
|
event.stopPropagation();
|
|
7766
8088
|
event.preventDefault();
|
|
@@ -7959,7 +8281,7 @@ class InteractiveStoryEditorComponent {
|
|
|
7959
8281
|
return slide.id || `slide-${index}`;
|
|
7960
8282
|
}
|
|
7961
8283
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InteractiveStoryEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7962
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: InteractiveStoryEditorComponent, isStandalone: true, selector: "rtsee-interactive-story-editor", inputs: { vm: "vm", autoInit: "autoInit" }, ngImport: i0, template: "<div class=\"rtsee-interactive-story-editor\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\" style=\"position: relative; display: inline-flex;\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n style=\"position: absolute; top: 4px; left: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n style=\"position: absolute; top: 4px; right: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply\"\n style=\"position: absolute; bottom: 4px; right: 4px;\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator [illustrator]=\"illustrator\" />\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: ManageSlideComponent, selector: "rtsee-manage-slide", inputs: ["manageSlide"] }, { kind: "component", type: StoryElementsSectionComponent, selector: "rtsee-story-elements-section", inputs: ["editor", "title", "icon", "collapsed", "canDetach", "illustrator"], outputs: ["toggled"] }, { kind: "component", type: IllustratorComponent, selector: "rtsee-illustrator", inputs: ["illustrator"] }] }); }
|
|
8284
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: InteractiveStoryEditorComponent, isStandalone: true, selector: "rtsee-interactive-story-editor", inputs: { vm: "vm", autoInit: "autoInit" }, ngImport: i0, template: "<div class=\"rtsee-interactive-story-editor\"\n [style.--rtsee-illustrator-collapsed-height.px]=\"illustratorCollapsedHeight\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n\n @if (!vm.isNewStory && !vm.isCollapsed(sections.slides)) {\n <button\n type=\"button\"\n class=\"rtsee-ise-btn-slides-view-toggle\"\n [ngClass]=\"{ 'rtsee-ise-btn-slides-view-toggle--active': slidesViewMode === 'inline' }\"\n [attr.aria-pressed]=\"slidesViewMode === 'inline'\"\n [title]=\"slidesViewMode === 'carousel' ? 'Switch to inline multi-line view' : 'Switch to horizontal carousel view'\"\n (click)=\"toggleSlidesViewMode($event)\"\n >\n @if (slidesViewMode === 'carousel') {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"1.5\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n </svg>\n <span>Inline</span>\n } @else {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"6.75\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <path d=\"M13.25 4.5V11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n <span>Carousel</span>\n }\n </button>\n }\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\"\n [ngClass]=\"{\n 'rtsee-ise-slides-strip--inline': slidesViewMode === 'inline',\n 'rtsee-ise-slides-strip--carousel': slidesViewMode === 'carousel'\n }\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-slide-ref\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span class=\"rtsee-ise-btn-add-slide-ref-label\">+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply rtsee-ise-btn-slide-quick-apply\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator\n [illustrator]=\"illustrator\"\n (collapsedHeightChange)=\"onIllustratorCollapsedHeightChange($event)\"\n />\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: ManageSlideComponent, selector: "rtsee-manage-slide", inputs: ["manageSlide"] }, { kind: "component", type: StoryElementsSectionComponent, selector: "rtsee-story-elements-section", inputs: ["editor", "title", "icon", "collapsed", "canDetach", "illustrator"], outputs: ["toggled"] }, { kind: "component", type: IllustratorComponent, selector: "rtsee-illustrator", inputs: ["illustrator"], outputs: ["collapsedHeightChange"] }] }); }
|
|
7963
8285
|
}
|
|
7964
8286
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InteractiveStoryEditorComponent, decorators: [{
|
|
7965
8287
|
type: Component,
|
|
@@ -7970,7 +8292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7970
8292
|
ManageSlideComponent,
|
|
7971
8293
|
StoryElementsSectionComponent,
|
|
7972
8294
|
IllustratorComponent,
|
|
7973
|
-
], template: "<div class=\"rtsee-interactive-story-editor\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\" style=\"position: relative; display: inline-flex;\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n style=\"position: absolute; top: 4px; left: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n style=\"position: absolute; top: 4px; right: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply\"\n style=\"position: absolute; bottom: 4px; right: 4px;\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator [illustrator]=\"illustrator\" />\n }\n</div>\n" }]
|
|
8295
|
+
], template: "<div class=\"rtsee-interactive-story-editor\"\n [style.--rtsee-illustrator-collapsed-height.px]=\"illustratorCollapsedHeight\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n\n @if (!vm.isNewStory && !vm.isCollapsed(sections.slides)) {\n <button\n type=\"button\"\n class=\"rtsee-ise-btn-slides-view-toggle\"\n [ngClass]=\"{ 'rtsee-ise-btn-slides-view-toggle--active': slidesViewMode === 'inline' }\"\n [attr.aria-pressed]=\"slidesViewMode === 'inline'\"\n [title]=\"slidesViewMode === 'carousel' ? 'Switch to inline multi-line view' : 'Switch to horizontal carousel view'\"\n (click)=\"toggleSlidesViewMode($event)\"\n >\n @if (slidesViewMode === 'carousel') {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"1.5\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n </svg>\n <span>Inline</span>\n } @else {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"6.75\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <path d=\"M13.25 4.5V11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n <span>Carousel</span>\n }\n </button>\n }\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\"\n [ngClass]=\"{\n 'rtsee-ise-slides-strip--inline': slidesViewMode === 'inline',\n 'rtsee-ise-slides-strip--carousel': slidesViewMode === 'carousel'\n }\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-slide-ref\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span class=\"rtsee-ise-btn-add-slide-ref-label\">+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply rtsee-ise-btn-slide-quick-apply\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator\n [illustrator]=\"illustrator\"\n (collapsedHeightChange)=\"onIllustratorCollapsedHeightChange($event)\"\n />\n }\n</div>\n" }]
|
|
7974
8296
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { vm: [{
|
|
7975
8297
|
type: Input,
|
|
7976
8298
|
args: [{ required: true }]
|
|
@@ -7979,19 +8301,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7979
8301
|
}] } });
|
|
7980
8302
|
|
|
7981
8303
|
class ManageStoriesComponent {
|
|
7982
|
-
constructor() {
|
|
8304
|
+
constructor(elementRef, cdr) {
|
|
8305
|
+
this.elementRef = elementRef;
|
|
8306
|
+
this.cdr = cdr;
|
|
7983
8307
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
8308
|
+
this.searchInput = '';
|
|
8309
|
+
this.searchDebounceTimer = null;
|
|
8310
|
+
this.boundManageStories = null;
|
|
8311
|
+
this.onManageStoriesChanged = () => {
|
|
8312
|
+
if (this.manageStories && this.searchDebounceTimer === null) {
|
|
8313
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8314
|
+
}
|
|
8315
|
+
this.cdr.markForCheck();
|
|
8316
|
+
this.checkFillScrollableViewport();
|
|
8317
|
+
};
|
|
8318
|
+
this.onCaptureScroll = (event) => {
|
|
8319
|
+
const target = event.target;
|
|
8320
|
+
if (!target || typeof target.scrollTop !== 'number') {
|
|
8321
|
+
return;
|
|
8322
|
+
}
|
|
8323
|
+
if (target.scrollHeight <= target.clientHeight) {
|
|
8324
|
+
return;
|
|
8325
|
+
}
|
|
8326
|
+
const distanceToBottom = target.scrollHeight - target.scrollTop - target.clientHeight;
|
|
8327
|
+
if (distanceToBottom <= 160) {
|
|
8328
|
+
this.onScrollLoadMore();
|
|
8329
|
+
}
|
|
8330
|
+
};
|
|
7984
8331
|
}
|
|
7985
8332
|
ngOnInit() {
|
|
7986
|
-
this.
|
|
8333
|
+
this.bindManageStories();
|
|
8334
|
+
this.elementRef.nativeElement.addEventListener('scroll', this.onCaptureScroll, {
|
|
8335
|
+
capture: true,
|
|
8336
|
+
passive: true,
|
|
8337
|
+
});
|
|
8338
|
+
if (this.manageStories) {
|
|
8339
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8340
|
+
this.manageStories.init();
|
|
8341
|
+
}
|
|
8342
|
+
}
|
|
8343
|
+
ngOnChanges(changes) {
|
|
8344
|
+
if (changes['manageStories']) {
|
|
8345
|
+
this.bindManageStories();
|
|
8346
|
+
if (this.manageStories) {
|
|
8347
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8348
|
+
this.manageStories.init();
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
}
|
|
8352
|
+
ngOnDestroy() {
|
|
8353
|
+
this.unbindManageStories();
|
|
8354
|
+
this.clearSearchDebounce();
|
|
8355
|
+
this.elementRef.nativeElement.removeEventListener('scroll', this.onCaptureScroll, {
|
|
8356
|
+
capture: true,
|
|
8357
|
+
});
|
|
8358
|
+
}
|
|
8359
|
+
onSearchInputChange(value) {
|
|
8360
|
+
this.searchInput = value;
|
|
8361
|
+
this.clearSearchDebounce();
|
|
8362
|
+
this.searchDebounceTimer = setTimeout(() => {
|
|
8363
|
+
this.searchDebounceTimer = null;
|
|
8364
|
+
if (this.manageStories) {
|
|
8365
|
+
void this.manageStories.setSearchQuery(this.searchInput);
|
|
8366
|
+
}
|
|
8367
|
+
}, 250);
|
|
8368
|
+
}
|
|
8369
|
+
onSearchEnter() {
|
|
8370
|
+
this.clearSearchDebounce();
|
|
8371
|
+
if (this.manageStories) {
|
|
8372
|
+
void this.manageStories.setSearchQuery(this.searchInput);
|
|
8373
|
+
}
|
|
8374
|
+
}
|
|
8375
|
+
clearSearch() {
|
|
8376
|
+
this.searchInput = '';
|
|
8377
|
+
this.clearSearchDebounce();
|
|
8378
|
+
if (this.manageStories) {
|
|
8379
|
+
void this.manageStories.setSearchQuery('');
|
|
8380
|
+
}
|
|
8381
|
+
}
|
|
8382
|
+
onScrollLoadMore() {
|
|
8383
|
+
if (!this.manageStories || this.manageStories.storiesLoadInProgress || !this.manageStories.hasMoreStories) {
|
|
8384
|
+
return;
|
|
8385
|
+
}
|
|
8386
|
+
void this.manageStories.loadMoreStories();
|
|
8387
|
+
}
|
|
8388
|
+
bindManageStories() {
|
|
8389
|
+
if (this.boundManageStories === this.manageStories) {
|
|
8390
|
+
return;
|
|
8391
|
+
}
|
|
8392
|
+
this.unbindManageStories();
|
|
8393
|
+
if (this.manageStories) {
|
|
8394
|
+
this.manageStories.on('changed', this.onManageStoriesChanged);
|
|
8395
|
+
this.boundManageStories = this.manageStories;
|
|
8396
|
+
}
|
|
8397
|
+
}
|
|
8398
|
+
unbindManageStories() {
|
|
8399
|
+
if (this.boundManageStories) {
|
|
8400
|
+
this.boundManageStories.off('changed', this.onManageStoriesChanged);
|
|
8401
|
+
this.boundManageStories = null;
|
|
8402
|
+
}
|
|
8403
|
+
}
|
|
8404
|
+
clearSearchDebounce() {
|
|
8405
|
+
if (this.searchDebounceTimer !== null) {
|
|
8406
|
+
clearTimeout(this.searchDebounceTimer);
|
|
8407
|
+
this.searchDebounceTimer = null;
|
|
8408
|
+
}
|
|
8409
|
+
}
|
|
8410
|
+
checkFillScrollableViewport() {
|
|
8411
|
+
if (typeof window === 'undefined' || !this.manageStories) {
|
|
8412
|
+
return;
|
|
8413
|
+
}
|
|
8414
|
+
if (this.manageStories.storiesLoadInProgress ||
|
|
8415
|
+
!this.manageStories.hasMoreStories ||
|
|
8416
|
+
this.manageStories.stories.length === 0 ||
|
|
8417
|
+
this.manageStories.selectedStory ||
|
|
8418
|
+
this.manageStories.interactiveStoryEditor) {
|
|
8419
|
+
return;
|
|
8420
|
+
}
|
|
8421
|
+
setTimeout(() => {
|
|
8422
|
+
if (!this.manageStories ||
|
|
8423
|
+
this.manageStories.storiesLoadInProgress ||
|
|
8424
|
+
!this.manageStories.hasMoreStories) {
|
|
8425
|
+
return;
|
|
8426
|
+
}
|
|
8427
|
+
const scrollContainer = this.elementRef.nativeElement.querySelector('.p-listbox-list-container');
|
|
8428
|
+
if (scrollContainer &&
|
|
8429
|
+
scrollContainer.clientHeight > 0 &&
|
|
8430
|
+
scrollContainer.scrollHeight <= scrollContainer.clientHeight + 20) {
|
|
8431
|
+
void this.manageStories.loadMoreStories();
|
|
8432
|
+
}
|
|
8433
|
+
}, 50);
|
|
7987
8434
|
}
|
|
7988
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageStoriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7989
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageStoriesComponent, isStandalone: true, selector: "rtsee-manage-stories", inputs: { manageStories: "manageStories" }, ngImport: i0, template: "<div class=\"rtsee-manage-stories\">\n
|
|
8435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageStoriesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8436
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageStoriesComponent, isStandalone: true, selector: "rtsee-manage-stories", inputs: { manageStories: "manageStories" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"rtsee-manage-stories\">\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-header\">\n <p-button (click)=\"manageStories.selectNewStory()\"\n label=\"Create A New Story\"\n ></p-button>\n\n <div class=\"rtsee-manage-stories-search\">\n <svg class=\"rtsee-manage-stories-search-icon\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"9\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M13.5 13.5L17.5 17.5\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" />\n </svg>\n <input\n type=\"search\"\n class=\"rtsee-manage-stories-search-input\"\n [ngModel]=\"searchInput\"\n (ngModelChange)=\"onSearchInputChange($event)\"\n (keydown.enter)=\"onSearchEnter()\"\n placeholder=\"Search stories...\"\n aria-label=\"Search stories\"\n />\n @if (searchInput) {\n <button\n type=\"button\"\n class=\"rtsee-manage-stories-search-clear\"\n (click)=\"clearSearch()\"\n aria-label=\"Clear search\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n }\n </div>\n </div>\n }\n @if (manageStories.selectedStory) {\n <div class=\"rtsee-manage-story-container\">\n <rtsee-manage-story [manageStory]=\"manageStories.selectedStory\"\n ></rtsee-manage-story>\n </div>\n }\n @if (manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-story-container\">\n <div style=\"margin-bottom: 1rem;\">\n <p-button icon=\"pi pi-arrow-left\" label=\"Back to Stories\" (click)=\"manageStories.interactiveStoryEditor = null\" [text]=\"true\"></p-button>\n </div>\n <rtsee-interactive-story-editor [vm]=\"manageStories.interactiveStoryEditor\"></rtsee-interactive-story-editor>\n </div>\n }\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-list rtsee-ordered-list\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"150\"\n (scrolled)=\"onScrollLoadMore()\"\n >\n @if (manageStories.stories.length > 0) {\n <p-orderList [value]=\"manageStories.stories\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n [scrollHeight]=\"'40rem'\"\n class=\"rtsee-ordered-list-inner\"\n (onReorder)=\"manageStories.onReorder()\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-stories-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-stories-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-stories-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n >{{ option.name }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.EDIT_BUTTON] || 'Edit'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"iEdit\"\n [severity]=\"'info'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectInteractiveStory(option.id)\"\n ></p-button>\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.DELETE_BUTTON] || 'Delete'\"\n [severity]=\"'warn'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"Clone\"\n [severity]=\"'secondary'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.cloneStory(option.id)\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n } @else if (!manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-empty\">\n @if (manageStories.searchQuery.trim()) {\n <span>No stories found matching \"{{ manageStories.searchQuery.trim() }}\".</span>\n } @else {\n <span>No stories found.</span>\n }\n </div>\n }\n\n @if (manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading stories\u2026</span>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: ManageStoryComponent, selector: "rtsee-manage-story", inputs: ["manageStory"] }, { kind: "component", type: InteractiveStoryEditorComponent, selector: "rtsee-interactive-story-editor", inputs: ["vm", "autoInit"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: OrderList, selector: "p-orderList, p-orderlist, p-order-list", inputs: ["header", "styleClass", "tabindex", "ariaLabel", "ariaLabelledBy", "listStyle", "responsive", "filterBy", "filterPlaceholder", "filterLocale", "metaKeySelection", "dragdrop", "controlsPosition", "ariaFilterLabel", "filterMatchMode", "breakpoint", "stripedRows", "disabled", "trackBy", "scrollHeight", "autoOptionFocus", "dataKey", "selection", "value", "buttonProps", "moveUpButtonProps", "moveTopButtonProps", "moveDownButtonProps", "moveBottomButtonProps"], outputs: ["selectionChange", "onReorder", "onSelectionChange", "onFilterEvent", "onFocus", "onBlur"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }] }); }
|
|
7990
8437
|
}
|
|
7991
8438
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageStoriesComponent, decorators: [{
|
|
7992
8439
|
type: Component,
|
|
7993
|
-
args: [{ selector: 'rtsee-manage-stories', imports: [
|
|
7994
|
-
|
|
8440
|
+
args: [{ selector: 'rtsee-manage-stories', imports: [
|
|
8441
|
+
ManageStoryComponent,
|
|
8442
|
+
InteractiveStoryEditorComponent,
|
|
8443
|
+
Button,
|
|
8444
|
+
OrderList,
|
|
8445
|
+
NgClass,
|
|
8446
|
+
FormsModule,
|
|
8447
|
+
InfiniteScrollDirective,
|
|
8448
|
+
], template: "<div class=\"rtsee-manage-stories\">\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-header\">\n <p-button (click)=\"manageStories.selectNewStory()\"\n label=\"Create A New Story\"\n ></p-button>\n\n <div class=\"rtsee-manage-stories-search\">\n <svg class=\"rtsee-manage-stories-search-icon\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"9\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M13.5 13.5L17.5 17.5\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" />\n </svg>\n <input\n type=\"search\"\n class=\"rtsee-manage-stories-search-input\"\n [ngModel]=\"searchInput\"\n (ngModelChange)=\"onSearchInputChange($event)\"\n (keydown.enter)=\"onSearchEnter()\"\n placeholder=\"Search stories...\"\n aria-label=\"Search stories\"\n />\n @if (searchInput) {\n <button\n type=\"button\"\n class=\"rtsee-manage-stories-search-clear\"\n (click)=\"clearSearch()\"\n aria-label=\"Clear search\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n }\n </div>\n </div>\n }\n @if (manageStories.selectedStory) {\n <div class=\"rtsee-manage-story-container\">\n <rtsee-manage-story [manageStory]=\"manageStories.selectedStory\"\n ></rtsee-manage-story>\n </div>\n }\n @if (manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-story-container\">\n <div style=\"margin-bottom: 1rem;\">\n <p-button icon=\"pi pi-arrow-left\" label=\"Back to Stories\" (click)=\"manageStories.interactiveStoryEditor = null\" [text]=\"true\"></p-button>\n </div>\n <rtsee-interactive-story-editor [vm]=\"manageStories.interactiveStoryEditor\"></rtsee-interactive-story-editor>\n </div>\n }\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-list rtsee-ordered-list\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"150\"\n (scrolled)=\"onScrollLoadMore()\"\n >\n @if (manageStories.stories.length > 0) {\n <p-orderList [value]=\"manageStories.stories\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n [scrollHeight]=\"'40rem'\"\n class=\"rtsee-ordered-list-inner\"\n (onReorder)=\"manageStories.onReorder()\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-stories-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-stories-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-stories-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n >{{ option.name }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.EDIT_BUTTON] || 'Edit'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"iEdit\"\n [severity]=\"'info'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectInteractiveStory(option.id)\"\n ></p-button>\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.DELETE_BUTTON] || 'Delete'\"\n [severity]=\"'warn'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"Clone\"\n [severity]=\"'secondary'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.cloneStory(option.id)\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n } @else if (!manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-empty\">\n @if (manageStories.searchQuery.trim()) {\n <span>No stories found matching \"{{ manageStories.searchQuery.trim() }}\".</span>\n } @else {\n <span>No stories found.</span>\n }\n </div>\n }\n\n @if (manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading stories\u2026</span>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
8449
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { manageStories: [{
|
|
7995
8450
|
type: Input
|
|
7996
8451
|
}] } });
|
|
7997
8452
|
|
|
@@ -8243,12 +8698,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8243
8698
|
type: Input
|
|
8244
8699
|
}] } });
|
|
8245
8700
|
|
|
8701
|
+
class ManageEntitiesListComponent {
|
|
8702
|
+
onItemDropped(event) {
|
|
8703
|
+
this.manageList.activeListForm?.moveItem(event.previousIndex, event.currentIndex);
|
|
8704
|
+
}
|
|
8705
|
+
onAddItemClick() {
|
|
8706
|
+
this.manageList.activeListForm?.addItem();
|
|
8707
|
+
}
|
|
8708
|
+
onRemoveItemClick(itemId) {
|
|
8709
|
+
this.manageList.activeListForm?.removeItem(itemId);
|
|
8710
|
+
}
|
|
8711
|
+
onItemFieldChanged(item) {
|
|
8712
|
+
item.onFieldChanged();
|
|
8713
|
+
}
|
|
8714
|
+
submit() {
|
|
8715
|
+
// Handled by ManageRTSeeEntityListForm.onSubmit -> manageList.save()
|
|
8716
|
+
}
|
|
8717
|
+
cancel() {
|
|
8718
|
+
this.manageList.cancel();
|
|
8719
|
+
}
|
|
8720
|
+
deleteList() {
|
|
8721
|
+
void this.manageList.delete();
|
|
8722
|
+
}
|
|
8723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8724
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListComponent, isStandalone: true, selector: "rtsee-manage-entities-list", inputs: { manageList: "manageList" }, ngImport: i0, template: "<div class=\"rtsee-manage-entities-list\">\n @if (manageList.activeListForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-items-editor\">\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n List Items ({{ form.items.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Use the drag handle to reorder items (updates priority).\n </span>\n </div>\n\n @if (form.items.length > 0) {\n <div\n cdkDropList\n (cdkDropListDropped)=\"onItemDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (item of form.items; track item.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <!-- Dedicated drag handle: ONLY draggable via this handle on mobile & desktop -->\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag item to reorder\"\n title=\"Drag to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n\n @if (item.hasEntity) {\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (item.imageUrl) {\n <img\n [src]=\"item.imageUrl\"\n [alt]=\"item.entityName\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ item.entityName }}\n </span>\n </div>\n } @else {\n <div class=\"rtsee-entity-list-item-entity-picker\">\n <rtsee-autocomplete\n [config]=\"item.entityAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveItemClick(item.id)\"\n aria-label=\"Remove item\"\n title=\"Remove item\"\n >\n <i class=\"pi pi-trash\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-entity-list-item-card-fields\">\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.labelField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.descriptionField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n <div class=\"rtsee-entity-list-add-bar\">\n <div class=\"rtsee-entity-list-add-picker\">\n <rtsee-autocomplete\n [config]=\"form.itemPickerAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n <p-button\n type=\"button\"\n icon=\"pi pi-plus\"\n label=\"Add Item\"\n severity=\"secondary\"\n (click)=\"onAddItemClick()\"\n ></p-button>\n </div>\n </div>\n\n @if (manageList.list.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"deleteList()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save List\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: FormFieldComponent, selector: "rtsee-form-field", inputs: ["field"], outputs: ["fieldChanged"] }, { kind: "component", type: AutocompleteComponent, selector: "rtsee-autocomplete", inputs: ["config", "disabled"] }] }); }
|
|
8725
|
+
}
|
|
8726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListComponent, decorators: [{
|
|
8727
|
+
type: Component,
|
|
8728
|
+
args: [{ selector: 'rtsee-manage-entities-list', standalone: true, imports: [
|
|
8729
|
+
FormsModule,
|
|
8730
|
+
Button,
|
|
8731
|
+
CdkDropList,
|
|
8732
|
+
CdkDrag,
|
|
8733
|
+
CdkDragHandle,
|
|
8734
|
+
FormComponent,
|
|
8735
|
+
FormFieldComponent,
|
|
8736
|
+
AutocompleteComponent,
|
|
8737
|
+
], template: "<div class=\"rtsee-manage-entities-list\">\n @if (manageList.activeListForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-items-editor\">\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n List Items ({{ form.items.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Use the drag handle to reorder items (updates priority).\n </span>\n </div>\n\n @if (form.items.length > 0) {\n <div\n cdkDropList\n (cdkDropListDropped)=\"onItemDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (item of form.items; track item.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <!-- Dedicated drag handle: ONLY draggable via this handle on mobile & desktop -->\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag item to reorder\"\n title=\"Drag to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n\n @if (item.hasEntity) {\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (item.imageUrl) {\n <img\n [src]=\"item.imageUrl\"\n [alt]=\"item.entityName\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ item.entityName }}\n </span>\n </div>\n } @else {\n <div class=\"rtsee-entity-list-item-entity-picker\">\n <rtsee-autocomplete\n [config]=\"item.entityAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveItemClick(item.id)\"\n aria-label=\"Remove item\"\n title=\"Remove item\"\n >\n <i class=\"pi pi-trash\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-entity-list-item-card-fields\">\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.labelField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.descriptionField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n <div class=\"rtsee-entity-list-add-bar\">\n <div class=\"rtsee-entity-list-add-picker\">\n <rtsee-autocomplete\n [config]=\"form.itemPickerAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n <p-button\n type=\"button\"\n icon=\"pi pi-plus\"\n label=\"Add Item\"\n severity=\"secondary\"\n (click)=\"onAddItemClick()\"\n ></p-button>\n </div>\n </div>\n\n @if (manageList.list.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"deleteList()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save List\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n" }]
|
|
8738
|
+
}], propDecorators: { manageList: [{
|
|
8739
|
+
type: Input
|
|
8740
|
+
}] } });
|
|
8741
|
+
|
|
8742
|
+
class ManageEntitiesListsComponent {
|
|
8743
|
+
ngOnInit() {
|
|
8744
|
+
this.manageLists.init();
|
|
8745
|
+
}
|
|
8746
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8747
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListsComponent, isStandalone: true, selector: "rtsee-manage-entities-lists", inputs: { manageLists: "manageLists" }, ngImport: i0, template: "<div class=\"rtsee-manage-entities-lists\">\n <div class=\"rtsee-manage-entities-lists-header\">\n @if (!manageLists.selectedList) {\n <p-button\n (click)=\"manageLists.selectNewList()\"\n icon=\"pi pi-plus\"\n label=\"Create A New List\"\n ></p-button>\n }\n </div>\n\n <div class=\"rtsee-manage-entities-lists-body\">\n @if (manageLists.loadListsInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (manageLists.selectedList) {\n <rtsee-manage-entities-list\n [manageList]=\"manageLists.selectedList\"\n ></rtsee-manage-entities-list>\n } @else {\n <div class=\"rtsee-manage-entities-lists-grid\">\n @for (list of manageLists.lists; track list.id) {\n <div\n class=\"rtsee-manage-entities-lists-row\"\n (click)=\"manageLists.selectList(list.id)\"\n >\n @if (list.imageUrl) {\n <img\n [src]=\"list.imageUrl\"\n [alt]=\"list.name\"\n class=\"rtsee-manage-entities-lists-row-thumb\"\n />\n } @else {\n <span class=\"rtsee-manage-entities-lists-row-thumb rtsee-manage-entities-lists-row-thumb-placeholder\">\n <i class=\"pi pi-list\"></i>\n </span>\n }\n <div class=\"rtsee-manage-entities-lists-row-info\">\n <strong class=\"rtsee-manage-entities-lists-row-name\">{{ list.name }}</strong>\n <span class=\"rtsee-manage-entities-lists-row-meta\">\n {{ list.items?.length || 0 }} items\n @if (list.friendlyUrl) {\n \u00B7 /list/{{ list.friendlyUrl }}\n }\n </span>\n </div>\n <i class=\"pi pi-chevron-right rtsee-manage-entities-lists-row-arrow\"></i>\n </div>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: ManageEntitiesListComponent, selector: "rtsee-manage-entities-list", inputs: ["manageList"] }] }); }
|
|
8748
|
+
}
|
|
8749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListsComponent, decorators: [{
|
|
8750
|
+
type: Component,
|
|
8751
|
+
args: [{ selector: 'rtsee-manage-entities-lists', standalone: true, imports: [Button, PreloaderComponent, ManageEntitiesListComponent], template: "<div class=\"rtsee-manage-entities-lists\">\n <div class=\"rtsee-manage-entities-lists-header\">\n @if (!manageLists.selectedList) {\n <p-button\n (click)=\"manageLists.selectNewList()\"\n icon=\"pi pi-plus\"\n label=\"Create A New List\"\n ></p-button>\n }\n </div>\n\n <div class=\"rtsee-manage-entities-lists-body\">\n @if (manageLists.loadListsInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (manageLists.selectedList) {\n <rtsee-manage-entities-list\n [manageList]=\"manageLists.selectedList\"\n ></rtsee-manage-entities-list>\n } @else {\n <div class=\"rtsee-manage-entities-lists-grid\">\n @for (list of manageLists.lists; track list.id) {\n <div\n class=\"rtsee-manage-entities-lists-row\"\n (click)=\"manageLists.selectList(list.id)\"\n >\n @if (list.imageUrl) {\n <img\n [src]=\"list.imageUrl\"\n [alt]=\"list.name\"\n class=\"rtsee-manage-entities-lists-row-thumb\"\n />\n } @else {\n <span class=\"rtsee-manage-entities-lists-row-thumb rtsee-manage-entities-lists-row-thumb-placeholder\">\n <i class=\"pi pi-list\"></i>\n </span>\n }\n <div class=\"rtsee-manage-entities-lists-row-info\">\n <strong class=\"rtsee-manage-entities-lists-row-name\">{{ list.name }}</strong>\n <span class=\"rtsee-manage-entities-lists-row-meta\">\n {{ list.items?.length || 0 }} items\n @if (list.friendlyUrl) {\n \u00B7 /list/{{ list.friendlyUrl }}\n }\n </span>\n </div>\n <i class=\"pi pi-chevron-right rtsee-manage-entities-lists-row-arrow\"></i>\n </div>\n }\n </div>\n }\n </div>\n</div>\n" }]
|
|
8752
|
+
}], propDecorators: { manageLists: [{
|
|
8753
|
+
type: Input
|
|
8754
|
+
}] } });
|
|
8755
|
+
|
|
8756
|
+
class ManageEntitiesListGroupComponent {
|
|
8757
|
+
onListDropped(event) {
|
|
8758
|
+
this.manageGroup.activeGroupForm?.moveList(event.previousIndex, event.currentIndex);
|
|
8759
|
+
}
|
|
8760
|
+
onRemoveList(listId) {
|
|
8761
|
+
this.manageGroup.activeGroupForm?.removeList(listId);
|
|
8762
|
+
}
|
|
8763
|
+
submit() {
|
|
8764
|
+
// Handled by ManageRTSeeEntitiesListGroupForm.onSubmit -> manageGroup.save()
|
|
8765
|
+
}
|
|
8766
|
+
cancel() {
|
|
8767
|
+
this.manageGroup.cancel();
|
|
8768
|
+
}
|
|
8769
|
+
deleteGroup() {
|
|
8770
|
+
void this.manageGroup.delete();
|
|
8771
|
+
}
|
|
8772
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8773
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListGroupComponent, isStandalone: true, selector: "rtsee-manage-entities-list-group", inputs: { manageGroup: "manageGroup" }, ngImport: i0, template: "<div class=\"rtsee-manage-entities-list-group\">\n @if (manageGroup.activeGroupForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-group-order\">\n @if (form.selectedLists.length > 0) {\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n Selected Lists Order ({{ form.selectedLists.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Drag the handle to reorder how list thumbnails appear side by side.\n </span>\n </div>\n <div\n cdkDropList\n (cdkDropListDropped)=\"onListDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (listItem of form.selectedLists; track listItem.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card rtsee-entity-list-item-card-compact\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag list to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (listItem.imageUrl) {\n <img\n [src]=\"listItem.imageUrl\"\n [alt]=\"listItem.name\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ listItem.name }}\n </span>\n </div>\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveList(listItem.id)\"\n aria-label=\"Remove list from group\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n @if (manageGroup.group.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"deleteGroup()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save Group\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n", dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
8774
|
+
}
|
|
8775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupComponent, decorators: [{
|
|
8776
|
+
type: Component,
|
|
8777
|
+
args: [{ selector: 'rtsee-manage-entities-list-group', standalone: true, imports: [
|
|
8778
|
+
Button,
|
|
8779
|
+
CdkDropList,
|
|
8780
|
+
CdkDrag,
|
|
8781
|
+
CdkDragHandle,
|
|
8782
|
+
FormComponent,
|
|
8783
|
+
], template: "<div class=\"rtsee-manage-entities-list-group\">\n @if (manageGroup.activeGroupForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-group-order\">\n @if (form.selectedLists.length > 0) {\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n Selected Lists Order ({{ form.selectedLists.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Drag the handle to reorder how list thumbnails appear side by side.\n </span>\n </div>\n <div\n cdkDropList\n (cdkDropListDropped)=\"onListDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (listItem of form.selectedLists; track listItem.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card rtsee-entity-list-item-card-compact\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag list to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (listItem.imageUrl) {\n <img\n [src]=\"listItem.imageUrl\"\n [alt]=\"listItem.name\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ listItem.name }}\n </span>\n </div>\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveList(listItem.id)\"\n aria-label=\"Remove list from group\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n @if (manageGroup.group.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"deleteGroup()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save Group\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n" }]
|
|
8784
|
+
}], propDecorators: { manageGroup: [{
|
|
8785
|
+
type: Input
|
|
8786
|
+
}] } });
|
|
8787
|
+
|
|
8788
|
+
class ManageEntitiesListGroupsComponent {
|
|
8789
|
+
ngOnInit() {
|
|
8790
|
+
this.manageListGroups.init();
|
|
8791
|
+
}
|
|
8792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8793
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListGroupsComponent, isStandalone: true, selector: "rtsee-manage-entities-list-groups", inputs: { manageListGroups: "manageListGroups" }, ngImport: i0, template: "<div class=\"rtsee-manage-entities-lists\">\n <div class=\"rtsee-manage-entities-lists-header\">\n @if (!manageListGroups.selectedGroup) {\n <p-button\n (click)=\"manageListGroups.selectNewGroup()\"\n icon=\"pi pi-plus\"\n label=\"Create A New List Group\"\n ></p-button>\n }\n </div>\n\n <div class=\"rtsee-manage-entities-lists-body\">\n @if (manageListGroups.loadGroupsInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (manageListGroups.selectedGroup) {\n <rtsee-manage-entities-list-group\n [manageGroup]=\"manageListGroups.selectedGroup\"\n ></rtsee-manage-entities-list-group>\n } @else {\n <div class=\"rtsee-manage-entities-lists-grid\">\n @for (group of manageListGroups.groups; track group.id) {\n <div\n class=\"rtsee-manage-entities-lists-row\"\n (click)=\"manageListGroups.selectGroup(group.id)\"\n >\n <span class=\"rtsee-manage-entities-lists-row-thumb rtsee-manage-entities-lists-row-thumb-placeholder\">\n <i class=\"pi pi-th-large\"></i>\n </span>\n <div class=\"rtsee-manage-entities-lists-row-info\">\n <strong class=\"rtsee-manage-entities-lists-row-name\">{{ group.name }}</strong>\n <span class=\"rtsee-manage-entities-lists-row-meta\">\n {{ group.items?.length || group.listsIds?.length || 0 }} lists\n @if (group.description) {\n \u00B7 {{ group.description }}\n }\n </span>\n </div>\n <i class=\"pi pi-chevron-right rtsee-manage-entities-lists-row-arrow\"></i>\n </div>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: ManageEntitiesListGroupComponent, selector: "rtsee-manage-entities-list-group", inputs: ["manageGroup"] }] }); }
|
|
8794
|
+
}
|
|
8795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupsComponent, decorators: [{
|
|
8796
|
+
type: Component,
|
|
8797
|
+
args: [{ selector: 'rtsee-manage-entities-list-groups', standalone: true, imports: [Button, PreloaderComponent, ManageEntitiesListGroupComponent], template: "<div class=\"rtsee-manage-entities-lists\">\n <div class=\"rtsee-manage-entities-lists-header\">\n @if (!manageListGroups.selectedGroup) {\n <p-button\n (click)=\"manageListGroups.selectNewGroup()\"\n icon=\"pi pi-plus\"\n label=\"Create A New List Group\"\n ></p-button>\n }\n </div>\n\n <div class=\"rtsee-manage-entities-lists-body\">\n @if (manageListGroups.loadGroupsInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (manageListGroups.selectedGroup) {\n <rtsee-manage-entities-list-group\n [manageGroup]=\"manageListGroups.selectedGroup\"\n ></rtsee-manage-entities-list-group>\n } @else {\n <div class=\"rtsee-manage-entities-lists-grid\">\n @for (group of manageListGroups.groups; track group.id) {\n <div\n class=\"rtsee-manage-entities-lists-row\"\n (click)=\"manageListGroups.selectGroup(group.id)\"\n >\n <span class=\"rtsee-manage-entities-lists-row-thumb rtsee-manage-entities-lists-row-thumb-placeholder\">\n <i class=\"pi pi-th-large\"></i>\n </span>\n <div class=\"rtsee-manage-entities-lists-row-info\">\n <strong class=\"rtsee-manage-entities-lists-row-name\">{{ group.name }}</strong>\n <span class=\"rtsee-manage-entities-lists-row-meta\">\n {{ group.items?.length || group.listsIds?.length || 0 }} lists\n @if (group.description) {\n \u00B7 {{ group.description }}\n }\n </span>\n </div>\n <i class=\"pi pi-chevron-right rtsee-manage-entities-lists-row-arrow\"></i>\n </div>\n }\n </div>\n }\n </div>\n</div>\n" }]
|
|
8798
|
+
}], propDecorators: { manageListGroups: [{
|
|
8799
|
+
type: Input
|
|
8800
|
+
}] } });
|
|
8801
|
+
|
|
8246
8802
|
class PresentationsDashboardComponent {
|
|
8247
8803
|
constructor() {
|
|
8248
8804
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
8249
8805
|
}
|
|
8250
8806
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationsDashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PresentationsDashboardComponent, isStandalone: true, selector: "rtsee-presentations-dashboard", inputs: { dashboard: "dashboard" }, ngImport: i0, template: "<div class=\"rtsee-presentations-dashboard\">\n <div class=\"rtsee-presentations-dashboard-header\">\n <p-chip [label]=\"dashboard.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON] || 'Presentation Dashboard'\" />\n <p-button [label]=\"dashboard.labels[RTSeeTextLabelKeys.CLOSE_BUTTON] || 'Close'\"\n (click)=\"dashboard.onCloseDashboardClicked()\"\n class=\"rtsee-presentations-dashboard-close-btn\"\n ></p-button>\n </div>\n\n <div class=\"manage-stories-container\">\n <p-tabs lazy value=\"stories\">\n <p-tablist>\n <p-tab value=\"stories\">{{ dashboard.labels[RTSeeTextLabelKeys.STORIES_LABEL] || 'Stories' }}</p-tab>\n <p-tab value=\"categories\">{{ dashboard.labels[RTSeeTextLabelKeys.CATEGORIES_LABEL] || 'Categories' }}</p-tab>\n <p-tab value=\"labels\">{{ dashboard.labels[RTSeeTextLabelKeys.LABELS_LABEL] || 'Labels' }}</p-tab>\n <p-tab value=\"topics\">{{ dashboard.labels[RTSeeTextLabelKeys.TOPICS_LABEL] || 'Topics' }}</p-tab>\n </p-tablist>\n <p-tabpanels>\n <p-tabpanel value=\"stories\">\n <ng-template #content>\n <rtsee-manage-stories [manageStories]=\"dashboard.manageStories\"></rtsee-manage-stories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"categories\">\n <ng-template #content>\n <rtsee-manage-categories [manageCategories]=\"dashboard.manageCategories\"></rtsee-manage-categories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"labels\">\n <ng-template #content>\n <rtsee-manage-labels [manageLabels]=\"dashboard.manageLabels\"></rtsee-manage-labels>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"topics\">\n <ng-template #content>\n <rtsee-manage-topics [manageTopics]=\"dashboard.manageTopics\"></rtsee-manage-topics>\n </ng-template>\n </p-tabpanel>\n </p-tabpanels>\n </p-tabs>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: ManageStoriesComponent, selector: "rtsee-manage-stories", inputs: ["manageStories"] }, { kind: "component", type: Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: TabList, selector: "p-tablist" }, { kind: "component", type: Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TabPanels, selector: "p-tabpanels" }, { kind: "component", type: TabPanel, selector: "p-tabpanel", inputs: ["lazy", "value"], outputs: ["valueChange"] }, { kind: "component", type: ManageCategoriesComponent, selector: "rtsee-manage-categories", inputs: ["manageCategories"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: ManageLabelsComponent, selector: "rtsee-manage-labels", inputs: ["manageLabels"] }, { kind: "component", type: ManageTopicsComponent, selector: "rtsee-manage-topics", inputs: ["manageTopics"] }] }); }
|
|
8807
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PresentationsDashboardComponent, isStandalone: true, selector: "rtsee-presentations-dashboard", inputs: { dashboard: "dashboard" }, ngImport: i0, template: "<div class=\"rtsee-presentations-dashboard\">\n <div class=\"rtsee-presentations-dashboard-header\">\n <p-chip [label]=\"dashboard.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON] || 'Presentation Dashboard'\" />\n <p-button [label]=\"dashboard.labels[RTSeeTextLabelKeys.CLOSE_BUTTON] || 'Close'\"\n (click)=\"dashboard.onCloseDashboardClicked()\"\n class=\"rtsee-presentations-dashboard-close-btn\"\n ></p-button>\n </div>\n\n <div class=\"manage-stories-container\">\n <p-tabs lazy value=\"stories\">\n <p-tablist>\n <p-tab value=\"stories\">{{ dashboard.labels[RTSeeTextLabelKeys.STORIES_LABEL] || 'Stories' }}</p-tab>\n <p-tab value=\"categories\">{{ dashboard.labels[RTSeeTextLabelKeys.CATEGORIES_LABEL] || 'Categories' }}</p-tab>\n <p-tab value=\"labels\">{{ dashboard.labels[RTSeeTextLabelKeys.LABELS_LABEL] || 'Labels' }}</p-tab>\n <p-tab value=\"topics\">{{ dashboard.labels[RTSeeTextLabelKeys.TOPICS_LABEL] || 'Topics' }}</p-tab>\n <p-tab value=\"lists\">{{ dashboard.labels[RTSeeTextLabelKeys.LISTS_LABEL] || 'Lists' }}</p-tab>\n <p-tab value=\"list-groups\">{{ dashboard.labels[RTSeeTextLabelKeys.LIST_GROUPS_LABEL] || 'List Groups' }}</p-tab>\n </p-tablist>\n <p-tabpanels>\n <p-tabpanel value=\"stories\">\n <ng-template #content>\n <rtsee-manage-stories [manageStories]=\"dashboard.manageStories\"></rtsee-manage-stories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"categories\">\n <ng-template #content>\n <rtsee-manage-categories [manageCategories]=\"dashboard.manageCategories\"></rtsee-manage-categories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"labels\">\n <ng-template #content>\n <rtsee-manage-labels [manageLabels]=\"dashboard.manageLabels\"></rtsee-manage-labels>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"topics\">\n <ng-template #content>\n <rtsee-manage-topics [manageTopics]=\"dashboard.manageTopics\"></rtsee-manage-topics>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"lists\">\n <ng-template #content>\n <rtsee-manage-entities-lists [manageLists]=\"dashboard.manageLists\"></rtsee-manage-entities-lists>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"list-groups\">\n <ng-template #content>\n <rtsee-manage-entities-list-groups [manageListGroups]=\"dashboard.manageListGroups\"></rtsee-manage-entities-list-groups>\n </ng-template>\n </p-tabpanel>\n </p-tabpanels>\n </p-tabs>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: ManageStoriesComponent, selector: "rtsee-manage-stories", inputs: ["manageStories"] }, { kind: "component", type: Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: TabList, selector: "p-tablist" }, { kind: "component", type: Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TabPanels, selector: "p-tabpanels" }, { kind: "component", type: TabPanel, selector: "p-tabpanel", inputs: ["lazy", "value"], outputs: ["valueChange"] }, { kind: "component", type: ManageCategoriesComponent, selector: "rtsee-manage-categories", inputs: ["manageCategories"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: ManageLabelsComponent, selector: "rtsee-manage-labels", inputs: ["manageLabels"] }, { kind: "component", type: ManageTopicsComponent, selector: "rtsee-manage-topics", inputs: ["manageTopics"] }, { kind: "component", type: ManageEntitiesListsComponent, selector: "rtsee-manage-entities-lists", inputs: ["manageLists"] }, { kind: "component", type: ManageEntitiesListGroupsComponent, selector: "rtsee-manage-entities-list-groups", inputs: ["manageListGroups"] }] }); }
|
|
8252
8808
|
}
|
|
8253
8809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationsDashboardComponent, decorators: [{
|
|
8254
8810
|
type: Component,
|
|
@@ -8264,7 +8820,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8264
8820
|
Chip,
|
|
8265
8821
|
ManageLabelsComponent,
|
|
8266
8822
|
ManageTopicsComponent,
|
|
8267
|
-
|
|
8823
|
+
ManageEntitiesListsComponent,
|
|
8824
|
+
ManageEntitiesListGroupsComponent,
|
|
8825
|
+
], template: "<div class=\"rtsee-presentations-dashboard\">\n <div class=\"rtsee-presentations-dashboard-header\">\n <p-chip [label]=\"dashboard.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON] || 'Presentation Dashboard'\" />\n <p-button [label]=\"dashboard.labels[RTSeeTextLabelKeys.CLOSE_BUTTON] || 'Close'\"\n (click)=\"dashboard.onCloseDashboardClicked()\"\n class=\"rtsee-presentations-dashboard-close-btn\"\n ></p-button>\n </div>\n\n <div class=\"manage-stories-container\">\n <p-tabs lazy value=\"stories\">\n <p-tablist>\n <p-tab value=\"stories\">{{ dashboard.labels[RTSeeTextLabelKeys.STORIES_LABEL] || 'Stories' }}</p-tab>\n <p-tab value=\"categories\">{{ dashboard.labels[RTSeeTextLabelKeys.CATEGORIES_LABEL] || 'Categories' }}</p-tab>\n <p-tab value=\"labels\">{{ dashboard.labels[RTSeeTextLabelKeys.LABELS_LABEL] || 'Labels' }}</p-tab>\n <p-tab value=\"topics\">{{ dashboard.labels[RTSeeTextLabelKeys.TOPICS_LABEL] || 'Topics' }}</p-tab>\n <p-tab value=\"lists\">{{ dashboard.labels[RTSeeTextLabelKeys.LISTS_LABEL] || 'Lists' }}</p-tab>\n <p-tab value=\"list-groups\">{{ dashboard.labels[RTSeeTextLabelKeys.LIST_GROUPS_LABEL] || 'List Groups' }}</p-tab>\n </p-tablist>\n <p-tabpanels>\n <p-tabpanel value=\"stories\">\n <ng-template #content>\n <rtsee-manage-stories [manageStories]=\"dashboard.manageStories\"></rtsee-manage-stories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"categories\">\n <ng-template #content>\n <rtsee-manage-categories [manageCategories]=\"dashboard.manageCategories\"></rtsee-manage-categories>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"labels\">\n <ng-template #content>\n <rtsee-manage-labels [manageLabels]=\"dashboard.manageLabels\"></rtsee-manage-labels>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"topics\">\n <ng-template #content>\n <rtsee-manage-topics [manageTopics]=\"dashboard.manageTopics\"></rtsee-manage-topics>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"lists\">\n <ng-template #content>\n <rtsee-manage-entities-lists [manageLists]=\"dashboard.manageLists\"></rtsee-manage-entities-lists>\n </ng-template>\n </p-tabpanel>\n <p-tabpanel value=\"list-groups\">\n <ng-template #content>\n <rtsee-manage-entities-list-groups [manageListGroups]=\"dashboard.manageListGroups\"></rtsee-manage-entities-list-groups>\n </ng-template>\n </p-tabpanel>\n </p-tabpanels>\n </p-tabs>\n </div>\n</div>\n" }]
|
|
8268
8826
|
}], propDecorators: { dashboard: [{
|
|
8269
8827
|
type: Input
|
|
8270
8828
|
}] } });
|
|
@@ -8750,6 +9308,11 @@ class StoryDetailsComponent {
|
|
|
8750
9308
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
8751
9309
|
this.Math = Math;
|
|
8752
9310
|
}
|
|
9311
|
+
onRelatedStoryClicked(relatedStory) {
|
|
9312
|
+
if (!relatedStory.friendlyUrl) {
|
|
9313
|
+
void this.presentation.openStoryDetails(relatedStory.id);
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
8753
9316
|
getStarArray(rating) {
|
|
8754
9317
|
const stars = [];
|
|
8755
9318
|
const val = rating || 0;
|
|
@@ -8767,11 +9330,11 @@ class StoryDetailsComponent {
|
|
|
8767
9330
|
return stars;
|
|
8768
9331
|
}
|
|
8769
9332
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8770
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
9333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
8771
9334
|
}
|
|
8772
9335
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, decorators: [{
|
|
8773
9336
|
type: Component,
|
|
8774
|
-
args: [{ selector: 'rtsee-story-details', imports: [Chip, Tag, Button, ChatComponent, RtseeEntityPreviewComponent, RouterLink, StoryElementThumbnailComponent, StorySlidesPreviewComponent, DecimalPipe], template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n" }]
|
|
9337
|
+
args: [{ selector: 'rtsee-story-details', imports: [Chip, Tag, Button, ChatComponent, RtseeEntityPreviewComponent, RouterLink, StoryElementThumbnailComponent, StorySlidesPreviewComponent, StoryThumbnailComponent, DecimalPipe], template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n" }]
|
|
8775
9338
|
}], propDecorators: { story: [{
|
|
8776
9339
|
type: Input
|
|
8777
9340
|
}], presentation: [{
|
|
@@ -8780,6 +9343,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8780
9343
|
type: Input
|
|
8781
9344
|
}] } });
|
|
8782
9345
|
|
|
9346
|
+
class StoriesListComponent {
|
|
9347
|
+
constructor() {
|
|
9348
|
+
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
9349
|
+
this.Math = Math;
|
|
9350
|
+
}
|
|
9351
|
+
setSortBy(mode) {
|
|
9352
|
+
this.list.setSortBy(mode);
|
|
9353
|
+
}
|
|
9354
|
+
onStoryClicked(story) {
|
|
9355
|
+
if (story && !story.friendlyUrl) {
|
|
9356
|
+
void this.presentation.openStoryDetails(story.id);
|
|
9357
|
+
}
|
|
9358
|
+
}
|
|
9359
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9360
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListComponent, isStandalone: true, selector: "rtsee-stories-list", inputs: { list: "list", presentation: "presentation", messenger: "messenger" }, ngImport: i0, template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n >\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.imageUrl) {\n <img\n [src]=\"item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.rating) {\n <rtsee-rating\n [rate]=\"{ maxValue: 5, value: item.entity!.rating! }\"\n ></rtsee-rating>\n }\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
9361
|
+
}
|
|
9362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, decorators: [{
|
|
9363
|
+
type: Component,
|
|
9364
|
+
args: [{ selector: 'rtsee-stories-list', standalone: true, imports: [
|
|
9365
|
+
RouterLink,
|
|
9366
|
+
DecimalPipe,
|
|
9367
|
+
RatingComponent,
|
|
9368
|
+
RtseeEntityPreviewComponent,
|
|
9369
|
+
], template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n >\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.imageUrl) {\n <img\n [src]=\"item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.rating) {\n <rtsee-rating\n [rate]=\"{ maxValue: 5, value: item.entity!.rating! }\"\n ></rtsee-rating>\n }\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n" }]
|
|
9370
|
+
}], propDecorators: { list: [{
|
|
9371
|
+
type: Input
|
|
9372
|
+
}], presentation: [{
|
|
9373
|
+
type: Input
|
|
9374
|
+
}], messenger: [{
|
|
9375
|
+
type: Input
|
|
9376
|
+
}] } });
|
|
9377
|
+
|
|
9378
|
+
class StoriesListThumbnailComponent {
|
|
9379
|
+
constructor() {
|
|
9380
|
+
this.listRoutePrefix = '/list';
|
|
9381
|
+
}
|
|
9382
|
+
get routePrefix() {
|
|
9383
|
+
return this.presentation?.listRoutePrefix || this.listRoutePrefix || '/list';
|
|
9384
|
+
}
|
|
9385
|
+
get listSlugOrId() {
|
|
9386
|
+
return this.list.friendlyUrl || this.list.id;
|
|
9387
|
+
}
|
|
9388
|
+
onThumbnailClick() {
|
|
9389
|
+
if (this.presentation && !this.list.friendlyUrl) {
|
|
9390
|
+
void this.presentation.openStoriesList(this.list.id);
|
|
9391
|
+
}
|
|
9392
|
+
}
|
|
9393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListThumbnailComponent, isStandalone: true, selector: "rtsee-stories-list-thumbnail", inputs: { list: "list", presentation: "presentation", listRoutePrefix: "listRoutePrefix" }, ngImport: i0, template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n } @else {\n <span></span>\n }\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }}\n </span>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n <h3 class=\"rtsee-stories-list-thumbnail-title\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }] }); }
|
|
9395
|
+
}
|
|
9396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, decorators: [{
|
|
9397
|
+
type: Component,
|
|
9398
|
+
args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n } @else {\n <span></span>\n }\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }}\n </span>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n <h3 class=\"rtsee-stories-list-thumbnail-title\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n" }]
|
|
9399
|
+
}], propDecorators: { list: [{
|
|
9400
|
+
type: Input
|
|
9401
|
+
}], presentation: [{
|
|
9402
|
+
type: Input
|
|
9403
|
+
}], listRoutePrefix: [{
|
|
9404
|
+
type: Input
|
|
9405
|
+
}] } });
|
|
9406
|
+
|
|
8783
9407
|
class PresentationComponent {
|
|
8784
9408
|
constructor() {
|
|
8785
9409
|
this.framed = false;
|
|
@@ -8792,7 +9416,7 @@ class PresentationComponent {
|
|
|
8792
9416
|
}
|
|
8793
9417
|
}
|
|
8794
9418
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8795
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story", "settings", "presentation"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: PresentationsDashboardComponent, selector: "rtsee-presentations-dashboard", inputs: ["dashboard"] }, { kind: "component", type: PresentationSettingsComponent, selector: "rtsee-presentation-settings", inputs: ["settings", "presentation"] }, { kind: "component", type: StoryDetailsComponent, selector: "rtsee-story-details", inputs: ["story", "presentation", "messenger"] }] }); }
|
|
9419
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">\n {{ presentation.homeListGroup?.description || presentation.labels[RTSeeTextLabelKeys.LISTS_LABEL] }}\n </h2>\n </div>\n <div class=\"rtsee-presentation-lists-row\">\n @for (listItem of presentation.homeListGroup!.items; track listItem.id) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story", "settings", "presentation"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: PresentationsDashboardComponent, selector: "rtsee-presentations-dashboard", inputs: ["dashboard"] }, { kind: "component", type: PresentationSettingsComponent, selector: "rtsee-presentation-settings", inputs: ["settings", "presentation"] }, { kind: "component", type: StoryDetailsComponent, selector: "rtsee-story-details", inputs: ["story", "presentation", "messenger"] }, { kind: "component", type: StoriesListComponent, selector: "rtsee-stories-list", inputs: ["list", "presentation", "messenger"] }, { kind: "component", type: StoriesListThumbnailComponent, selector: "rtsee-stories-list-thumbnail", inputs: ["list", "presentation", "listRoutePrefix"] }] }); }
|
|
8796
9420
|
}
|
|
8797
9421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, decorators: [{
|
|
8798
9422
|
type: Component,
|
|
@@ -8805,7 +9429,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8805
9429
|
PresentationsDashboardComponent,
|
|
8806
9430
|
PresentationSettingsComponent,
|
|
8807
9431
|
StoryDetailsComponent,
|
|
8808
|
-
|
|
9432
|
+
StoriesListComponent,
|
|
9433
|
+
StoriesListThumbnailComponent,
|
|
9434
|
+
], standalone: true, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">\n {{ presentation.homeListGroup?.description || presentation.labels[RTSeeTextLabelKeys.LISTS_LABEL] }}\n </h2>\n </div>\n <div class=\"rtsee-presentation-lists-row\">\n @for (listItem of presentation.homeListGroup!.items; track listItem.id) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n" }]
|
|
8809
9435
|
}], ctorParameters: () => [], propDecorators: { presentation: [{
|
|
8810
9436
|
type: Input
|
|
8811
9437
|
}], messenger: [{
|
|
@@ -8906,7 +9532,10 @@ class RTSeeContainerComponent {
|
|
|
8906
9532
|
this.isSidenavExpanded = !this.isSidenavExpanded;
|
|
8907
9533
|
}
|
|
8908
9534
|
defineSideNavState(url) {
|
|
8909
|
-
const isBase = url === '/' ||
|
|
9535
|
+
const isBase = url === '/' ||
|
|
9536
|
+
url.startsWith('/?') ||
|
|
9537
|
+
url.startsWith('/story') ||
|
|
9538
|
+
url.startsWith('/list');
|
|
8910
9539
|
const routeUrlSplit = url.split('/');
|
|
8911
9540
|
const rootRoutePath = isBase ? '' : routeUrlSplit[1] || null;
|
|
8912
9541
|
if (!rootRoutePath && !isBase) {
|
|
@@ -9849,7 +10478,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9849
10478
|
|
|
9850
10479
|
class PrivacyPolicyComponent {
|
|
9851
10480
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9852
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PrivacyPolicyComponent, isStandalone: true, selector: "rtsee-privacy-policy", ngImport: i0, template: "<div class=\"privacy-policy-container\">\n <div class=\"policy-card rts-glass-card\">\n <div class=\"header-section\">\n <div class=\"header-content\">\n <h1>Terms of Use & Privacy Policy</h1>\n </div>\n </div>\n\n <div class=\"content-section\">\n <p-message severity=\"info\" [closable]=\"false\" class=\"info-banner\">\n <ng-template pTemplate>\n <div class=\"p-message-content\">\n <p class=\"last-updated\"><strong>Last Updated:</strong> December 2024</p>\n <p>By using our services, you agree to the terms and conditions outlined in this document. Please read this Privacy Policy and Terms of Use carefully before using our platform.</p>\n </div>\n </ng-template>\n </p-message>\n\n <h2>1. Acceptance of Terms</h2>\n <p>By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service.</p>\n\n <h2>2. Privacy Policy</h2>\n\n <h3>2.1 Information We Collect</h3>\n <p>We collect information you provide directly to us, such as when you create an account, use our services, or contact us for support. This may include:</p>\n <ul>\n <li><strong>Personal Information:</strong> Name, email address, phone number, and other contact details</li>\n <li><strong>Account Information:</strong> Username, password, and profile information</li>\n <li><strong>Usage Data:</strong> Information about how you use our services, including pages visited, time spent, and features used</li>\n <li><strong>Device Information:</strong> IP address, browser type, operating system, and device identifiers</li>\n <li><strong>Cookies and Tracking:</strong> We use cookies and similar technologies to enhance your experience</li>\n </ul>\n\n <h3>2.2 How We Use Your Information</h3>\n <p>We use the information we collect to:</p>\n <ul>\n <li>Provide, maintain, and improve our services</li>\n <li>Process transactions and send related information</li>\n <li>Send technical notices, updates, security alerts, and support messages</li>\n <li>Respond to your comments, questions, and requests</li>\n <li>Monitor and analyze trends, usage, and activities</li>\n <li>Personalize and improve your experience</li>\n <li>Detect, investigate, and prevent fraudulent transactions and other illegal activities</li>\n </ul>\n\n <h3>2.3 Information Sharing and Disclosure</h3>\n <p>We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except in the following circumstances:</p>\n <ul>\n <li><strong>Service Providers:</strong> We may share information with trusted third-party service providers who assist us in operating our platform</li>\n <li><strong>Legal Requirements:</strong> We may disclose information when required by law or to protect our rights and safety</li>\n <li><strong>Business Transfers:</strong> In connection with any merger, sale of assets, or acquisition of all or a portion of our business</li>\n <li><strong>Consent:</strong> We may share information with your explicit consent</li>\n </ul>\n\n <h3>2.4 Data Security</h3>\n <p>We implement appropriate technical and organizational security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure.</p>\n\n <h3>2.5 Data Retention</h3>\n <p>We retain your personal information for as long as necessary to provide our services and fulfill the purposes outlined in this privacy policy, unless a longer retention period is required or permitted by law.</p>\n\n <h3>2.6 Your Rights</h3>\n <p>Depending on your location, you may have certain rights regarding your personal information, including:</p>\n <ul>\n <li>The right to access and receive a copy of your personal information</li>\n <li>The right to rectify or update your personal information</li>\n <li>The right to erase your personal information</li>\n <li>The right to restrict or object to the processing of your personal information</li>\n <li>The right to data portability</li>\n <li>The right to withdraw consent at any time</li>\n </ul>\n\n <h2>3. Terms of Service</h2>\n\n <h3>3.1 User Accounts</h3>\n <p>To access certain features of our service, you may be required to create an account. You are responsible for:</p>\n <ul>\n <li>Maintaining the confidentiality of your account credentials</li>\n <li>All activities that occur under your account</li>\n <li>Notifying us immediately of any unauthorized use of your account</li>\n <li>Providing accurate and up-to-date information</li>\n </ul>\n\n <h3>3.2 Acceptable Use</h3>\n <p>You agree not to use our service for any unlawful purpose or any purpose prohibited under this clause. You may not use our service in any manner that could damage, disable, overburden, or impair our servers or networks.</p>\n\n <h3>3.3 Prohibited Activities</h3>\n <p>The following activities are prohibited:</p>\n <ul>\n <li>Violating any applicable laws or regulations</li>\n <li>Transmitting or procuring the sending of any unsolicited or unauthorized advertising</li>\n <li>Attempting to gain unauthorized access to any portion of our service</li>\n <li>Interfering with or disrupting the service or servers connected to the service</li>\n <li>Using any automated system to access the service for any purpose</li>\n <li>Impersonating any person or entity or misrepresenting your affiliation with a person or entity</li>\n </ul>\n\n <h3>3.4 Intellectual Property</h3>\n <p>The service and its original content, features, and functionality are and will remain the exclusive property of our company and its licensors. The service is protected by copyright, trademark, and other laws.</p>\n\n <h3>3.5 Termination</h3>\n <p>We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever, including without limitation if you breach the Terms.</p>\n\n <h3>3.6 Disclaimer</h3>\n <p>The information on this service is provided on an \"as is\" basis. To the fullest extent permitted by law, this company excludes all representations, warranties, conditions and terms relating to our service and the use of this service.</p>\n\n <h3>3.7 Limitation of Liability</h3>\n <p>In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the service.</p>\n\n <h2>4. Cookies and Tracking Technologies</h2>\n <p>We use cookies and similar tracking technologies to track activity on our service and hold certain information. Cookies are files with a small amount of data which may include an anonymous unique identifier. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.</p>\n\n <h2>5. Third-Party Services</h2>\n <p>Our service may contain links to third-party websites or services that are not owned or controlled by us. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party websites or services.</p>\n\n <h2>6. Children's Privacy</h2>\n <p>Our service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us.</p>\n\n <h2>7. International Data Transfers</h2>\n <p>Your information may be transferred to and processed in countries other than your own. We ensure that such transfers comply with applicable data protection laws and implement appropriate safeguards to protect your personal information.</p>\n\n <h2>8. Changes to This Policy</h2>\n <p>We reserve the right to update or change our Privacy Policy and Terms of Use at any time. We will notify you of any changes by posting the new Privacy Policy and Terms of Use on this page and updating the \"Last Updated\" date.</p>\n\n <div class=\"contact-section\">\n <h2>9. Contact Information</h2>\n <p>If you have any questions about this Privacy Policy and Terms of Use, please contact us:</p>\n <ul>\n <li><strong>Email:</strong> [Your Email Address]</li>\n <li><strong>Address:</strong> [Your Company Address]</li>\n <li><strong>Phone:</strong> [Your Contact Number]</li>\n </ul>\n </div>\n\n <div class=\"footer-section\">\n <p>This document was last updated on December 2024</p>\n </div>\n </div>\n </div>\n</div>\n\n", dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i2$1.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
10481
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PrivacyPolicyComponent, isStandalone: true, selector: "rtsee-privacy-policy", ngImport: i0, template: "<div class=\"privacy-policy-container\">\n <div class=\"policy-card rts-glass-card\">\n <div class=\"header-section\">\n <div class=\"header-content\">\n <h1>Terms of Use & Privacy Policy</h1>\n </div>\n </div>\n\n <div class=\"content-section\">\n <p-message severity=\"info\" [closable]=\"false\" class=\"info-banner\">\n <ng-template pTemplate>\n <div class=\"p-message-content\">\n <p class=\"last-updated\"><strong>Last Updated:</strong> December 2024</p>\n <p>By using our services, you agree to the terms and conditions outlined in this document. Please read this Privacy Policy and Terms of Use carefully before using our platform.</p>\n </div>\n </ng-template>\n </p-message>\n\n <h2>1. Acceptance of Terms</h2>\n <p>By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service.</p>\n\n <h2>2. Privacy Policy</h2>\n\n <h3>2.1 Information We Collect</h3>\n <p>We collect information you provide directly to us, such as when you create an account, use our services, or contact us for support. This may include:</p>\n <ul>\n <li><strong>Personal Information:</strong> Name, email address, phone number, and other contact details</li>\n <li><strong>Account Information:</strong> Username, password, and profile information</li>\n <li><strong>Usage Data:</strong> Information about how you use our services, including pages visited, time spent, and features used</li>\n <li><strong>Device Information:</strong> IP address, browser type, operating system, and device identifiers</li>\n <li><strong>Cookies and Tracking:</strong> We use cookies and similar technologies to enhance your experience</li>\n </ul>\n\n <h3>2.2 How We Use Your Information</h3>\n <p>We use the information we collect to:</p>\n <ul>\n <li>Provide, maintain, and improve our services</li>\n <li>Process transactions and send related information</li>\n <li>Send technical notices, updates, security alerts, and support messages</li>\n <li>Respond to your comments, questions, and requests</li>\n <li>Monitor and analyze trends, usage, and activities</li>\n <li>Personalize and improve your experience</li>\n <li>Detect, investigate, and prevent fraudulent transactions and other illegal activities</li>\n </ul>\n\n <h3>2.3 Information Sharing and Disclosure</h3>\n <p>We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except in the following circumstances:</p>\n <ul>\n <li><strong>Service Providers:</strong> We may share information with trusted third-party service providers who assist us in operating our platform</li>\n <li><strong>Legal Requirements:</strong> We may disclose information when required by law or to protect our rights and safety</li>\n <li><strong>Business Transfers:</strong> In connection with any merger, sale of assets, or acquisition of all or a portion of our business</li>\n <li><strong>Consent:</strong> We may share information with your explicit consent</li>\n </ul>\n\n <h3>2.4 Data Security</h3>\n <p>We implement appropriate technical and organizational security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure.</p>\n\n <h3>2.5 Data Retention</h3>\n <p>We retain your personal information for as long as necessary to provide our services and fulfill the purposes outlined in this privacy policy, unless a longer retention period is required or permitted by law.</p>\n\n <h3>2.6 Your Rights</h3>\n <p>Depending on your location, you may have certain rights regarding your personal information, including:</p>\n <ul>\n <li>The right to access and receive a copy of your personal information</li>\n <li>The right to rectify or update your personal information</li>\n <li>The right to erase your personal information</li>\n <li>The right to restrict or object to the processing of your personal information</li>\n <li>The right to data portability</li>\n <li>The right to withdraw consent at any time</li>\n </ul>\n\n <h2>3. Terms of Service</h2>\n\n <h3>3.1 User Accounts</h3>\n <p>To access certain features of our service, you may be required to create an account. You are responsible for:</p>\n <ul>\n <li>Maintaining the confidentiality of your account credentials</li>\n <li>All activities that occur under your account</li>\n <li>Notifying us immediately of any unauthorized use of your account</li>\n <li>Providing accurate and up-to-date information</li>\n </ul>\n\n <h3>3.2 Acceptable Use</h3>\n <p>You agree not to use our service for any unlawful purpose or any purpose prohibited under this clause. You may not use our service in any manner that could damage, disable, overburden, or impair our servers or networks.</p>\n\n <h3>3.3 Prohibited Activities</h3>\n <p>The following activities are prohibited:</p>\n <ul>\n <li>Violating any applicable laws or regulations</li>\n <li>Transmitting or procuring the sending of any unsolicited or unauthorized advertising</li>\n <li>Attempting to gain unauthorized access to any portion of our service</li>\n <li>Interfering with or disrupting the service or servers connected to the service</li>\n <li>Using any automated system to access the service for any purpose</li>\n <li>Impersonating any person or entity or misrepresenting your affiliation with a person or entity</li>\n </ul>\n\n <h3>3.4 Intellectual Property</h3>\n <p>The service and its original content, features, and functionality are and will remain the exclusive property of our company and its licensors. The service is protected by copyright, trademark, and other laws.</p>\n\n <h3>3.5 Termination</h3>\n <p>We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever, including without limitation if you breach the Terms.</p>\n\n <h3>3.6 Disclaimer</h3>\n <p>The information on this service is provided on an \"as is\" basis. To the fullest extent permitted by law, this company excludes all representations, warranties, conditions and terms relating to our service and the use of this service.</p>\n\n <h3>3.7 Limitation of Liability</h3>\n <p>In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the service.</p>\n\n <h2>4. Cookies and Tracking Technologies</h2>\n <p>We use cookies and similar tracking technologies to track activity on our service and hold certain information. Cookies are files with a small amount of data which may include an anonymous unique identifier. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.</p>\n\n <h2>5. Third-Party Services</h2>\n <p>Our service may contain links to third-party websites or services that are not owned or controlled by us. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party websites or services.</p>\n\n <h2>6. Children's Privacy</h2>\n <p>Our service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us.</p>\n\n <h2>7. International Data Transfers</h2>\n <p>Your information may be transferred to and processed in countries other than your own. We ensure that such transfers comply with applicable data protection laws and implement appropriate safeguards to protect your personal information.</p>\n\n <h2>8. Changes to This Policy</h2>\n <p>We reserve the right to update or change our Privacy Policy and Terms of Use at any time. We will notify you of any changes by posting the new Privacy Policy and Terms of Use on this page and updating the \"Last Updated\" date.</p>\n\n <div class=\"contact-section\">\n <h2>9. Contact Information</h2>\n <p>If you have any questions about this Privacy Policy and Terms of Use, please contact us:</p>\n <ul>\n <li><strong>Email:</strong> [Your Email Address]</li>\n <li><strong>Address:</strong> [Your Company Address]</li>\n <li><strong>Phone:</strong> [Your Contact Number]</li>\n </ul>\n </div>\n\n <div class=\"footer-section\">\n <p>This document was last updated on December 2024</p>\n </div>\n </div>\n </div>\n</div>\n\n", dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i2$2.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
9853
10482
|
}
|
|
9854
10483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, decorators: [{
|
|
9855
10484
|
type: Component,
|
|
@@ -10197,5 +10826,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10197
10826
|
* Generated bundle index. Do not edit.
|
|
10198
10827
|
*/
|
|
10199
10828
|
|
|
10200
|
-
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 };
|
|
10829
|
+
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 };
|
|
10201
10830
|
//# sourceMappingURL=rtsee-ngx.mjs.map
|