valtech-components 4.0.209 → 4.0.211
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/esm2022/lib/components/molecules/load-more/load-more.component.mjs +11 -7
- package/esm2022/lib/components/molecules/reaction-bar/reaction-bar.component.mjs +326 -0
- package/esm2022/lib/components/molecules/reaction-bar/types.mjs +2 -0
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +12 -9
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +79 -5
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.i18n.mjs +5 -1
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +3 -3
- package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +108 -135
- package/esm2022/lib/services/auth/org-switch.service.mjs +11 -1
- package/esm2022/lib/services/icons.service.mjs +3 -2
- package/esm2022/lib/services/reactions/config.mjs +22 -0
- package/esm2022/lib/services/reactions/index.mjs +3 -0
- package/esm2022/lib/services/reactions/reactions.service.mjs +89 -0
- package/esm2022/lib/services/reactions/types.mjs +2 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/valtech-components.mjs +650 -157
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/molecules/cta-card/cta-card.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/molecules/load-more/load-more.component.d.ts +1 -1
- package/lib/components/molecules/metric-card/metric-card.component.d.ts +1 -1
- package/lib/components/molecules/reaction-bar/reaction-bar.component.d.ts +44 -0
- package/lib/components/molecules/reaction-bar/types.d.ts +55 -0
- package/lib/components/organisms/account-view/account-view.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +5 -5
- package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +1 -1
- package/lib/components/organisms/landing-steps/landing-steps.component.d.ts +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +2 -1
- package/lib/components/organisms/switch-org-modal/switch-org-modal.component.d.ts +5 -1
- package/lib/services/auth/org-switch.service.d.ts +9 -0
- package/lib/services/reactions/config.d.ts +20 -0
- package/lib/services/reactions/index.d.ts +3 -0
- package/lib/services/reactions/reactions.service.d.ts +42 -0
- package/lib/services/reactions/types.d.ts +48 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -3,7 +3,7 @@ import { inject, InjectionToken, makeEnvironmentProviders, APP_INITIALIZER, Erro
|
|
|
3
3
|
import { BehaviorSubject, throwError, Subject, map, distinctUntilChanged, filter as filter$1, take as take$1, firstValueFrom, of, from, EMPTY, Observable, interval, debounceTime, switchMap as switchMap$1, catchError as catchError$1, takeUntil, isObservable, forkJoin, race, timer, shareReplay as shareReplay$1 } from 'rxjs';
|
|
4
4
|
import { catchError, switchMap, finalize, filter, take, timeout, map as map$1, tap, shareReplay, distinctUntilChanged as distinctUntilChanged$1, retry, debounceTime as debounceTime$1, takeUntil as takeUntil$1 } from 'rxjs/operators';
|
|
5
5
|
import * as i1$3 from '@angular/common/http';
|
|
6
|
-
import { provideHttpClient, withInterceptors, HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
6
|
+
import { provideHttpClient, withInterceptors, HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
|
|
7
7
|
import * as i1$1 from '@angular/fire/firestore';
|
|
8
8
|
import { provideFirestore, getFirestore, connectFirestoreEmulator, enableMultiTabIndexedDbPersistence, doc, getDoc, collection, query as query$1, getDocs, getCountFromServer, limit, docData, collectionData, serverTimestamp, addDoc, setDoc, updateDoc, deleteDoc, writeBatch, arrayUnion, arrayRemove, increment, where, orderBy, startAfter, startAt, endBefore, endAt, Timestamp, onSnapshot, Firestore } from '@angular/fire/firestore';
|
|
9
9
|
import * as i1$5 from '@angular/common';
|
|
@@ -25,7 +25,7 @@ import { getApps, getApp, initializeApp as initializeApp$1 } from 'firebase/app'
|
|
|
25
25
|
import * as i2$1 from '@ionic/angular/standalone';
|
|
26
26
|
import { AlertController, IonAvatar, IonCard, IonIcon, IonButton, IonSpinner, IonText, IonModal, IonHeader, IonToolbar, IonContent, IonButtons, IonTitle, IonProgressBar, IonSkeletonText, IonFab, IonFabButton, IonFabList, IonLabel, IonCardContent, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCheckbox, IonRadio, IonRadioGroup, IonTextarea, IonDatetime, IonSelect, IonSelectOption, IonPopover, IonList, IonItem, IonInput, IonChip, IonRange, IonSearchbar, IonSegment, IonSegmentButton, IonToggle, IonRippleEffect, IonAccordion, IonAccordionGroup, IonTabBar, IonTabButton, IonBadge, IonBreadcrumb, IonBreadcrumbs, IonInfiniteScroll, IonInfiniteScrollContent, IonNote, IonDatetimeButton, ToastController as ToastController$1, IonCol, IonRow, IonRefresher, IonRefresherContent, IonMenuButton, IonFooter, IonListHeader, IonGrid, MenuController, IonMenu, IonMenuToggle, IonSplitPane } from '@ionic/angular/standalone';
|
|
27
27
|
import { addIcons } from 'ionicons';
|
|
28
|
-
import { addOutline, addCircleOutline, alertOutline, alertCircleOutline, arrowBackOutline, arrowForwardOutline, arrowDownOutline, settings, settingsOutline, checkmarkCircleOutline, ellipsisHorizontalOutline, notifications, notificationsOutline, openOutline, closeOutline, chatbubblesOutline, shareOutline, heart, heartOutline, home, homeOutline, eyeOffOutline, eyeOutline, scanOutline, chevronDownOutline, chevronForwardOutline, checkmarkOutline, clipboardOutline, copyOutline, filterOutline, locationOutline, calendarOutline, businessOutline, logoTwitter, logoInstagram, logoLinkedin, logoYoutube, logoTiktok, logoFacebook, logoGoogle, createOutline, trashOutline, playOutline, peopleOutline, phonePortraitOutline, refreshOutline, documentTextOutline, lockClosedOutline, cloudUploadOutline, textOutline, informationCircleOutline, logoNpm, removeOutline, optionsOutline, personOutline, shieldCheckmarkOutline, keyOutline, desktopOutline, logOutOutline, cloudDownloadOutline, cloudOutline, gitBranchOutline, layersOutline, serverOutline, warningOutline, bulbOutline, lockOpenOutline, diamondOutline, add, close, share, create, trash, star, camera, mic, send, downloadOutline, chevronDown, language, globeOutline, checkmark, list, grid, apps, menu, search, person, helpCircle, informationCircle, documentText, mail, calendar, folder, chevronForward, ellipsisHorizontal, chevronBack, playBack, playForward, ellipse, starOutline, starHalf, heartHalf, checkmarkCircle, timeOutline, flag, trendingUp, trendingDown, remove, analytics, people, cash, cart, eye, chatbubbleOutline, thumbsUpOutline, thumbsUp, happyOutline, happy, sadOutline, sad, chevronUp, pin, pencil, callOutline, logoWhatsapp, paperPlaneOutline, mailOutline, chevronDownCircleOutline, closeCircle, alertCircle, logoApple, logoMicrosoft, linkOutline, unlinkOutline, cloudOfflineOutline, documentOutline, attachOutline, cameraOutline, closeCircleOutline, imageOutline, printOutline, chevronBackOutline, sendOutline, chatbubbleEllipsesOutline, swapVerticalOutline, chevronUpOutline, searchOutline, cartOutline, chatbubble, compass, compassOutline, gridOutline, listOutline, folderOutline, documents, documentsOutline, statsChart, statsChartOutline, laptopOutline, swapHorizontalOutline, codeSlashOutline, notificationsOffOutline, alarmOutline, chatboxEllipsesOutline, checkmarkDoneOutline, cogOutline, shareSocialOutline, helpCircleOutline, menuOutline, stopCircleOutline, videocamOffOutline } from 'ionicons/icons';
|
|
28
|
+
import { addOutline, addCircleOutline, alertOutline, alertCircleOutline, arrowBackOutline, arrowForwardOutline, arrowDownOutline, settings, settingsOutline, checkmarkCircleOutline, ellipsisHorizontalOutline, notifications, notificationsOutline, openOutline, closeOutline, chatbubblesOutline, shareOutline, heart, heartOutline, home, homeOutline, eyeOffOutline, eyeOutline, scanOutline, chevronDownOutline, chevronForwardOutline, checkmarkOutline, clipboardOutline, copyOutline, filterOutline, locationOutline, calendarOutline, businessOutline, logoTwitter, logoInstagram, logoLinkedin, logoYoutube, logoTiktok, logoFacebook, logoGoogle, createOutline, trashOutline, playOutline, peopleOutline, phonePortraitOutline, refreshOutline, documentTextOutline, lockClosedOutline, cloudUploadOutline, textOutline, informationCircleOutline, logoNpm, removeOutline, optionsOutline, personOutline, shieldCheckmarkOutline, keyOutline, desktopOutline, logOutOutline, cloudDownloadOutline, cloudOutline, gitBranchOutline, layersOutline, serverOutline, warningOutline, bulbOutline, lockOpenOutline, diamondOutline, newspaperOutline, add, close, share, create, trash, star, camera, mic, send, downloadOutline, chevronDown, language, globeOutline, checkmark, list, grid, apps, menu, search, person, helpCircle, informationCircle, documentText, mail, calendar, folder, chevronForward, ellipsisHorizontal, chevronBack, playBack, playForward, ellipse, starOutline, starHalf, heartHalf, checkmarkCircle, timeOutline, flag, trendingUp, trendingDown, remove, analytics, people, cash, cart, eye, chatbubbleOutline, thumbsUpOutline, thumbsUp, happyOutline, happy, sadOutline, sad, chevronUp, pin, pencil, callOutline, logoWhatsapp, paperPlaneOutline, mailOutline, chevronDownCircleOutline, closeCircle, alertCircle, logoApple, logoMicrosoft, linkOutline, unlinkOutline, cloudOfflineOutline, documentOutline, attachOutline, cameraOutline, closeCircleOutline, imageOutline, printOutline, chevronBackOutline, sendOutline, chatbubbleEllipsesOutline, swapVerticalOutline, chevronUpOutline, searchOutline, cartOutline, chatbubble, compass, compassOutline, gridOutline, listOutline, folderOutline, documents, documentsOutline, statsChart, statsChartOutline, laptopOutline, swapHorizontalOutline, codeSlashOutline, notificationsOffOutline, alarmOutline, chatboxEllipsesOutline, checkmarkDoneOutline, cogOutline, shareSocialOutline, helpCircleOutline, menuOutline, stopCircleOutline, videocamOffOutline } from 'ionicons/icons';
|
|
29
29
|
import { Browser } from '@capacitor/browser';
|
|
30
30
|
import * as i1$6 from '@angular/platform-browser';
|
|
31
31
|
import { DomSanitizer, Meta, Title } from '@angular/platform-browser';
|
|
@@ -56,7 +56,7 @@ import { BrowserMultiFormatReader } from '@zxing/browser';
|
|
|
56
56
|
* Current version of valtech-components.
|
|
57
57
|
* This is automatically updated during the publish process.
|
|
58
58
|
*/
|
|
59
|
-
const VERSION = '4.0.
|
|
59
|
+
const VERSION = '4.0.211';
|
|
60
60
|
|
|
61
61
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
62
62
|
let isRefreshing = false;
|
|
@@ -10580,6 +10580,7 @@ class IconService {
|
|
|
10580
10580
|
bulbOutline,
|
|
10581
10581
|
lockOpenOutline,
|
|
10582
10582
|
diamondOutline,
|
|
10583
|
+
newspaperOutline,
|
|
10583
10584
|
});
|
|
10584
10585
|
}
|
|
10585
10586
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -21166,16 +21167,18 @@ class LoadMoreComponent {
|
|
|
21166
21167
|
[shape]="shape()"
|
|
21167
21168
|
[size]="size()"
|
|
21168
21169
|
[disabled]="loading()"
|
|
21170
|
+
class="lm-btn"
|
|
21169
21171
|
(click)="onButtonClick()"
|
|
21170
21172
|
>
|
|
21171
21173
|
@if (loading()) {
|
|
21172
|
-
<ion-spinner name="crescent"
|
|
21174
|
+
<ion-spinner name="crescent" />
|
|
21175
|
+
} @else {
|
|
21176
|
+
{{ label() }}
|
|
21173
21177
|
}
|
|
21174
|
-
{{ label() }}
|
|
21175
21178
|
</ion-button>
|
|
21176
21179
|
</div>
|
|
21177
21180
|
}
|
|
21178
|
-
`, isInline: true, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"], dependencies: [{ kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }] }); }
|
|
21181
|
+
`, isInline: true, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}.lm-btn{min-width:120px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"], dependencies: [{ kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }] }); }
|
|
21179
21182
|
}
|
|
21180
21183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadMoreComponent, decorators: [{
|
|
21181
21184
|
type: Component,
|
|
@@ -21192,16 +21195,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
21192
21195
|
[shape]="shape()"
|
|
21193
21196
|
[size]="size()"
|
|
21194
21197
|
[disabled]="loading()"
|
|
21198
|
+
class="lm-btn"
|
|
21195
21199
|
(click)="onButtonClick()"
|
|
21196
21200
|
>
|
|
21197
21201
|
@if (loading()) {
|
|
21198
|
-
<ion-spinner name="crescent"
|
|
21202
|
+
<ion-spinner name="crescent" />
|
|
21203
|
+
} @else {
|
|
21204
|
+
{{ label() }}
|
|
21199
21205
|
}
|
|
21200
|
-
{{ label() }}
|
|
21201
21206
|
</ion-button>
|
|
21202
21207
|
</div>
|
|
21203
21208
|
}
|
|
21204
|
-
`, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"] }]
|
|
21209
|
+
`, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}.lm-btn{min-width:120px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"] }]
|
|
21205
21210
|
}], ctorParameters: () => [], propDecorators: { loadMore: [{
|
|
21206
21211
|
type: Output
|
|
21207
21212
|
}] } });
|
|
@@ -34632,10 +34637,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
34632
34637
|
* ```
|
|
34633
34638
|
*/
|
|
34634
34639
|
class OrgSwitchService {
|
|
34640
|
+
/** Notify subscribers that the active org's data was updated. */
|
|
34641
|
+
notifyOrgDataUpdated(org) {
|
|
34642
|
+
this._orgDataUpdated.next(org);
|
|
34643
|
+
}
|
|
34635
34644
|
constructor(auth) {
|
|
34636
34645
|
this.auth = auth;
|
|
34637
34646
|
this._switching = signal(false);
|
|
34638
34647
|
this._orgChanged = new Subject();
|
|
34648
|
+
this._orgDataUpdated = new Subject();
|
|
34639
34649
|
/**
|
|
34640
34650
|
* `true` while a switch is in flight. UI should disable interactions
|
|
34641
34651
|
* with org-scoped data and show a loading indicator.
|
|
@@ -34649,6 +34659,11 @@ class OrgSwitchService {
|
|
|
34649
34659
|
* see the updated Firebase user / activeOrg claim.
|
|
34650
34660
|
*/
|
|
34651
34661
|
this.orgChanged$ = this._orgChanged.asObservable();
|
|
34662
|
+
/**
|
|
34663
|
+
* Fires when org data (name, logoUrl, etc.) changes without a full org switch.
|
|
34664
|
+
* Subscribe in the app shell to keep the header org avatar up to date.
|
|
34665
|
+
*/
|
|
34666
|
+
this.orgDataUpdated$ = this._orgDataUpdated.asObservable();
|
|
34652
34667
|
}
|
|
34653
34668
|
/**
|
|
34654
34669
|
* Switch the user's active organization.
|
|
@@ -37155,7 +37170,7 @@ class ToolbarComponent {
|
|
|
37155
37170
|
<!-- experimental -->
|
|
37156
37171
|
<ng-content select="[toolbar-bottom]"></ng-content>
|
|
37157
37172
|
</ion-toolbar>
|
|
37158
|
-
`, isInline: true, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: UserAvatarComponent, selector: "val-user-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: IonMenuButton, selector: "ion-menu-button", inputs: ["autoHide", "color", "disabled", "menu", "mode", "type"] }, { kind: "component", type: LanguageSelectorComponent, selector: "val-language-selector", inputs: ["props"], outputs: ["languageChange"] }, { kind: "component", type: FontSizeSelectorComponent, selector: "val-font-size-selector", inputs: ["props"] }] }); }
|
|
37173
|
+
`, isInline: true, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}:host val-user-avatar+val-user-avatar{margin-left:6px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: UserAvatarComponent, selector: "val-user-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: IonMenuButton, selector: "ion-menu-button", inputs: ["autoHide", "color", "disabled", "menu", "mode", "type"] }, { kind: "component", type: LanguageSelectorComponent, selector: "val-language-selector", inputs: ["props"], outputs: ["languageChange"] }, { kind: "component", type: FontSizeSelectorComponent, selector: "val-font-size-selector", inputs: ["props"] }] }); }
|
|
37159
37174
|
}
|
|
37160
37175
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
37161
37176
|
type: Component,
|
|
@@ -37280,7 +37295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
37280
37295
|
<!-- experimental -->
|
|
37281
37296
|
<ng-content select="[toolbar-bottom]"></ng-content>
|
|
37282
37297
|
</ion-toolbar>
|
|
37283
|
-
`, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}\n"] }]
|
|
37298
|
+
`, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}:host val-user-avatar+val-user-avatar{margin-left:6px}\n"] }]
|
|
37284
37299
|
}], ctorParameters: () => [{ type: IconService }], propDecorators: { props: [{
|
|
37285
37300
|
type: Input
|
|
37286
37301
|
}], onClick: [{
|
|
@@ -53887,6 +53902,8 @@ const SWITCH_ORG_MODAL_I18N = {
|
|
|
53887
53902
|
es: {
|
|
53888
53903
|
title: 'Cambiar de cuenta',
|
|
53889
53904
|
subtitle: 'Selecciona la organización a la que quieres cambiar.',
|
|
53905
|
+
activeOrgLabel: 'Organización activa',
|
|
53906
|
+
manage: 'Administrar',
|
|
53890
53907
|
searchPlaceholder: 'Buscar organización...',
|
|
53891
53908
|
noResults: 'No se encontraron organizaciones.',
|
|
53892
53909
|
current: 'Actual',
|
|
@@ -53898,6 +53915,8 @@ const SWITCH_ORG_MODAL_I18N = {
|
|
|
53898
53915
|
en: {
|
|
53899
53916
|
title: 'Switch account',
|
|
53900
53917
|
subtitle: 'Select the organization you want to switch to.',
|
|
53918
|
+
activeOrgLabel: 'Active organization',
|
|
53919
|
+
manage: 'Manage',
|
|
53901
53920
|
searchPlaceholder: 'Search organization...',
|
|
53902
53921
|
noResults: 'No organizations found.',
|
|
53903
53922
|
current: 'Active',
|
|
@@ -53959,9 +53978,11 @@ class SwitchOrgModalComponent {
|
|
|
53959
53978
|
const u = this.auth.user();
|
|
53960
53979
|
return u?.activeOrgId ?? u?.activeOrg ?? '';
|
|
53961
53980
|
});
|
|
53981
|
+
this.activeOrg = computed(() => this.orgs().find(o => o.id === this.activeOrgId()) ?? null);
|
|
53962
53982
|
this.filteredOrgs = computed(() => {
|
|
53963
53983
|
const q = this.query().trim().toLowerCase();
|
|
53964
|
-
const
|
|
53984
|
+
const activeId = this.activeOrgId();
|
|
53985
|
+
const list = this.orgs().filter(o => o.id !== activeId);
|
|
53965
53986
|
if (!q)
|
|
53966
53987
|
return list;
|
|
53967
53988
|
return list.filter(o => o.name.toLowerCase().includes(q));
|
|
@@ -54039,6 +54060,10 @@ class SwitchOrgModalComponent {
|
|
|
54039
54060
|
this.dismiss();
|
|
54040
54061
|
this.onProfileClick?.();
|
|
54041
54062
|
}
|
|
54063
|
+
onManage() {
|
|
54064
|
+
this.dismiss();
|
|
54065
|
+
this.onManageOrg?.();
|
|
54066
|
+
}
|
|
54042
54067
|
onCreateNew() {
|
|
54043
54068
|
this.dismiss();
|
|
54044
54069
|
this.onCreateOrg?.();
|
|
@@ -54050,7 +54075,7 @@ class SwitchOrgModalComponent {
|
|
|
54050
54075
|
return this.i18n.t(key, this.i18nNamespace);
|
|
54051
54076
|
}
|
|
54052
54077
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54053
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SwitchOrgModalComponent, isStandalone: true, selector: "val-switch-org-modal", inputs: { _modalRef: "_modalRef", onSuccess: "onSuccess", onProfileClick: "onProfileClick", onCreateOrg: "onCreateOrg", i18nNamespace: "i18nNamespace" }, ngImport: i0, template: `
|
|
54078
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SwitchOrgModalComponent, isStandalone: true, selector: "val-switch-org-modal", inputs: { _modalRef: "_modalRef", onSuccess: "onSuccess", onProfileClick: "onProfileClick", onCreateOrg: "onCreateOrg", onManageOrg: "onManageOrg", i18nNamespace: "i18nNamespace" }, ngImport: i0, template: `
|
|
54054
54079
|
<ion-header>
|
|
54055
54080
|
<ion-toolbar>
|
|
54056
54081
|
<ion-buttons slot="end">
|
|
@@ -54098,6 +54123,39 @@ class SwitchOrgModalComponent {
|
|
|
54098
54123
|
/>
|
|
54099
54124
|
</div>
|
|
54100
54125
|
|
|
54126
|
+
@if (activeOrg(); as org) {
|
|
54127
|
+
<div class="active-org-card">
|
|
54128
|
+
<div class="org-row__icon">
|
|
54129
|
+
@if (org.logoUrl && !failedLogos().has(org.id)) {
|
|
54130
|
+
<img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
|
|
54131
|
+
} @else {
|
|
54132
|
+
<ion-icon name="business-outline" />
|
|
54133
|
+
}
|
|
54134
|
+
</div>
|
|
54135
|
+
<div class="org-row__body">
|
|
54136
|
+
<span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
|
|
54137
|
+
<span class="org-row__name">{{ org.name }}</span>
|
|
54138
|
+
@if (org.type) {
|
|
54139
|
+
<span class="org-row__type">{{ org.type }}</span>
|
|
54140
|
+
}
|
|
54141
|
+
</div>
|
|
54142
|
+
@if (onManageOrg) {
|
|
54143
|
+
<val-button
|
|
54144
|
+
[props]="{
|
|
54145
|
+
text: t('manage'),
|
|
54146
|
+
color: 'dark',
|
|
54147
|
+
fill: 'solid',
|
|
54148
|
+
shape: 'round',
|
|
54149
|
+
size: 'small',
|
|
54150
|
+
type: 'button',
|
|
54151
|
+
state: 'ENABLED',
|
|
54152
|
+
}"
|
|
54153
|
+
(click)="onManage()"
|
|
54154
|
+
/>
|
|
54155
|
+
}
|
|
54156
|
+
</div>
|
|
54157
|
+
}
|
|
54158
|
+
|
|
54101
54159
|
<div class="switch-section">
|
|
54102
54160
|
<val-searchbar
|
|
54103
54161
|
[props]="{
|
|
@@ -54165,7 +54223,7 @@ class SwitchOrgModalComponent {
|
|
|
54165
54223
|
</div>
|
|
54166
54224
|
}
|
|
54167
54225
|
</ion-content>
|
|
54168
|
-
`, isInline: true, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "component", type: LoadMoreComponent, selector: "val-load-more", inputs: ["props"], outputs: ["loadMore"] }, { kind: "component", type: SearchbarComponent, selector: "val-searchbar", inputs: ["preset", "props"], outputs: ["filterEvent", "focusEvent", "blurEvent"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }] }); }
|
|
54226
|
+
`, isInline: true, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;line-height:1.3;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;line-height:1.3;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active-org-card{display:flex;align-items:center;gap:12px;padding:14px;margin-top:16px;border:1.5px solid rgba(var(--ion-color-dark-rgb),.5);border-radius:14px;background:var(--ion-card-background, var(--ion-background-color))}.active-org-card__label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:rgba(var(--ion-color-dark-rgb),.5);margin-bottom:2px}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "component", type: LoadMoreComponent, selector: "val-load-more", inputs: ["props"], outputs: ["loadMore"] }, { kind: "component", type: SearchbarComponent, selector: "val-searchbar", inputs: ["preset", "props"], outputs: ["filterEvent", "focusEvent", "blurEvent"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }] }); }
|
|
54169
54227
|
}
|
|
54170
54228
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, decorators: [{
|
|
54171
54229
|
type: Component,
|
|
@@ -54231,6 +54289,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54231
54289
|
/>
|
|
54232
54290
|
</div>
|
|
54233
54291
|
|
|
54292
|
+
@if (activeOrg(); as org) {
|
|
54293
|
+
<div class="active-org-card">
|
|
54294
|
+
<div class="org-row__icon">
|
|
54295
|
+
@if (org.logoUrl && !failedLogos().has(org.id)) {
|
|
54296
|
+
<img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
|
|
54297
|
+
} @else {
|
|
54298
|
+
<ion-icon name="business-outline" />
|
|
54299
|
+
}
|
|
54300
|
+
</div>
|
|
54301
|
+
<div class="org-row__body">
|
|
54302
|
+
<span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
|
|
54303
|
+
<span class="org-row__name">{{ org.name }}</span>
|
|
54304
|
+
@if (org.type) {
|
|
54305
|
+
<span class="org-row__type">{{ org.type }}</span>
|
|
54306
|
+
}
|
|
54307
|
+
</div>
|
|
54308
|
+
@if (onManageOrg) {
|
|
54309
|
+
<val-button
|
|
54310
|
+
[props]="{
|
|
54311
|
+
text: t('manage'),
|
|
54312
|
+
color: 'dark',
|
|
54313
|
+
fill: 'solid',
|
|
54314
|
+
shape: 'round',
|
|
54315
|
+
size: 'small',
|
|
54316
|
+
type: 'button',
|
|
54317
|
+
state: 'ENABLED',
|
|
54318
|
+
}"
|
|
54319
|
+
(click)="onManage()"
|
|
54320
|
+
/>
|
|
54321
|
+
}
|
|
54322
|
+
</div>
|
|
54323
|
+
}
|
|
54324
|
+
|
|
54234
54325
|
<div class="switch-section">
|
|
54235
54326
|
<val-searchbar
|
|
54236
54327
|
[props]="{
|
|
@@ -54298,7 +54389,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54298
54389
|
</div>
|
|
54299
54390
|
}
|
|
54300
54391
|
</ion-content>
|
|
54301
|
-
`, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"] }]
|
|
54392
|
+
`, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;line-height:1.3;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;line-height:1.3;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active-org-card{display:flex;align-items:center;gap:12px;padding:14px;margin-top:16px;border:1.5px solid rgba(var(--ion-color-dark-rgb),.5);border-radius:14px;background:var(--ion-card-background, var(--ion-background-color))}.active-org-card__label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:rgba(var(--ion-color-dark-rgb),.5);margin-bottom:2px}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"] }]
|
|
54302
54393
|
}], ctorParameters: () => [], propDecorators: { _modalRef: [{
|
|
54303
54394
|
type: Input
|
|
54304
54395
|
}], onSuccess: [{
|
|
@@ -54307,6 +54398,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54307
54398
|
type: Input
|
|
54308
54399
|
}], onCreateOrg: [{
|
|
54309
54400
|
type: Input
|
|
54401
|
+
}], onManageOrg: [{
|
|
54402
|
+
type: Input
|
|
54310
54403
|
}], i18nNamespace: [{
|
|
54311
54404
|
type: Input
|
|
54312
54405
|
}] } });
|
|
@@ -54562,6 +54655,7 @@ class OrganizationViewComponent {
|
|
|
54562
54655
|
this.nav = inject(NavigationService);
|
|
54563
54656
|
this.i18n = inject(I18nService);
|
|
54564
54657
|
this.auth = inject(AuthService);
|
|
54658
|
+
this.orgSwitch = inject(OrgSwitchService);
|
|
54565
54659
|
this.orgService = inject(OrgService);
|
|
54566
54660
|
this.toast = inject(ToastService);
|
|
54567
54661
|
this.errors = inject(ValtechErrorService);
|
|
@@ -54815,6 +54909,7 @@ class OrganizationViewComponent {
|
|
|
54815
54909
|
org: this.org(),
|
|
54816
54910
|
onSuccess: (updated) => {
|
|
54817
54911
|
this.org.set(updated);
|
|
54912
|
+
this.orgSwitch.notifyOrgDataUpdated(updated);
|
|
54818
54913
|
this.resolvedConfig().onOrgEdited?.();
|
|
54819
54914
|
},
|
|
54820
54915
|
},
|
|
@@ -55400,7 +55495,7 @@ class OrganizationViewComponent {
|
|
|
55400
55495
|
|
|
55401
55496
|
@if (resolvedConfig().showTransferOwnership && isOwner()) {
|
|
55402
55497
|
<!-- Transfer ownership: solo owner (gating RBAC interno) -->
|
|
55403
|
-
<section class="settings-section" data-testid="org-transfer-section">
|
|
55498
|
+
<section class="settings-section settings-section--danger" data-testid="org-transfer-section">
|
|
55404
55499
|
<div class="section-title-danger">
|
|
55405
55500
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55406
55501
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
|
|
@@ -55434,7 +55529,7 @@ class OrganizationViewComponent {
|
|
|
55434
55529
|
|
|
55435
55530
|
@if (resolvedConfig().showLeave) {
|
|
55436
55531
|
<!-- Leave org -->
|
|
55437
|
-
<section class="settings-section">
|
|
55532
|
+
<section class="settings-section settings-section--danger">
|
|
55438
55533
|
<div class="section-title-danger">
|
|
55439
55534
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55440
55535
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
|
|
@@ -55457,7 +55552,7 @@ class OrganizationViewComponent {
|
|
|
55457
55552
|
|
|
55458
55553
|
@if (resolvedConfig().showDeleteOrg && isOwner()) {
|
|
55459
55554
|
<!-- Delete org: solo owner, acción más destructiva -->
|
|
55460
|
-
<section class="settings-section" data-testid="org-delete-section">
|
|
55555
|
+
<section class="settings-section settings-section--danger" data-testid="org-delete-section">
|
|
55461
55556
|
<div class="section-title-danger">
|
|
55462
55557
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55463
55558
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
|
|
@@ -55506,7 +55601,7 @@ class OrganizationViewComponent {
|
|
|
55506
55601
|
(created)="onOrgCreated($event)"
|
|
55507
55602
|
/>
|
|
55508
55603
|
</div>
|
|
55509
|
-
`, isInline: true, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: CreateOrgModalComponent, selector: "val-create-org-modal", inputs: ["i18nNamespace", "isOpen"], outputs: ["dismissed", "created"] }, { kind: "component", type: CtaCardComponent, selector: "val-cta-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "directive", type: HasPermissionDirective, selector: "[valHasPermission]", inputs: ["valHasPermission"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: SkeletonLayoutComponent, selector: "val-skeleton-layout", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: MemberCardComponent, selector: "val-member-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: PermissionsModalComponent, selector: "val-permissions-modal", inputs: ["isOpen", "config"], outputs: ["dismissed"] }, { kind: "component", type: SectionHeaderComponent, selector: "val-section-header", inputs: ["props"], outputs: ["actionClick"] }] }); }
|
|
55604
|
+
`, isInline: true, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}.settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 4%,transparent);border-radius:14px;padding:16px;margin:0 -4px;border-top:none}.settings-section+.settings-section--danger,.settings-section--danger+.settings-section--danger,.settings-section--danger+.settings-section{margin-top:12px}:host-context(body.dark) .settings-section--danger,:host-context(html.ion-palette-dark) .settings-section--danger,:host-context([data-theme=\"dark\"]) .settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 8%,transparent)}\n"], dependencies: [{ kind: "component", type: CreateOrgModalComponent, selector: "val-create-org-modal", inputs: ["i18nNamespace", "isOpen"], outputs: ["dismissed", "created"] }, { kind: "component", type: CtaCardComponent, selector: "val-cta-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "directive", type: HasPermissionDirective, selector: "[valHasPermission]", inputs: ["valHasPermission"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: SkeletonLayoutComponent, selector: "val-skeleton-layout", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: MemberCardComponent, selector: "val-member-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: PermissionsModalComponent, selector: "val-permissions-modal", inputs: ["isOpen", "config"], outputs: ["dismissed"] }, { kind: "component", type: SectionHeaderComponent, selector: "val-section-header", inputs: ["props"], outputs: ["actionClick"] }] }); }
|
|
55510
55605
|
}
|
|
55511
55606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrganizationViewComponent, decorators: [{
|
|
55512
55607
|
type: Component,
|
|
@@ -55727,7 +55822,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55727
55822
|
|
|
55728
55823
|
@if (resolvedConfig().showTransferOwnership && isOwner()) {
|
|
55729
55824
|
<!-- Transfer ownership: solo owner (gating RBAC interno) -->
|
|
55730
|
-
<section class="settings-section" data-testid="org-transfer-section">
|
|
55825
|
+
<section class="settings-section settings-section--danger" data-testid="org-transfer-section">
|
|
55731
55826
|
<div class="section-title-danger">
|
|
55732
55827
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55733
55828
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
|
|
@@ -55761,7 +55856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55761
55856
|
|
|
55762
55857
|
@if (resolvedConfig().showLeave) {
|
|
55763
55858
|
<!-- Leave org -->
|
|
55764
|
-
<section class="settings-section">
|
|
55859
|
+
<section class="settings-section settings-section--danger">
|
|
55765
55860
|
<div class="section-title-danger">
|
|
55766
55861
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55767
55862
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
|
|
@@ -55784,7 +55879,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55784
55879
|
|
|
55785
55880
|
@if (resolvedConfig().showDeleteOrg && isOwner()) {
|
|
55786
55881
|
<!-- Delete org: solo owner, acción más destructiva -->
|
|
55787
|
-
<section class="settings-section" data-testid="org-delete-section">
|
|
55882
|
+
<section class="settings-section settings-section--danger" data-testid="org-delete-section">
|
|
55788
55883
|
<div class="section-title-danger">
|
|
55789
55884
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55790
55885
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
|
|
@@ -55833,7 +55928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55833
55928
|
(created)="onOrgCreated($event)"
|
|
55834
55929
|
/>
|
|
55835
55930
|
</div>
|
|
55836
|
-
`, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}\n"] }]
|
|
55931
|
+
`, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}.settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 4%,transparent);border-radius:14px;padding:16px;margin:0 -4px;border-top:none}.settings-section+.settings-section--danger,.settings-section--danger+.settings-section--danger,.settings-section--danger+.settings-section{margin-top:12px}:host-context(body.dark) .settings-section--danger,:host-context(html.ion-palette-dark) .settings-section--danger,:host-context([data-theme=\"dark\"]) .settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 8%,transparent)}\n"] }]
|
|
55837
55932
|
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
55838
55933
|
type: Input
|
|
55839
55934
|
}] } });
|
|
@@ -61188,72 +61283,60 @@ class PageWrapperComponent {
|
|
|
61188
61283
|
}
|
|
61189
61284
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61190
61285
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PageWrapperComponent, isStandalone: true, selector: "val-page-wrapper", inputs: { props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onHeaderClick: "onHeaderClick" }, ngImport: i0, template: `
|
|
61191
|
-
|
|
61192
|
-
|
|
61193
|
-
<
|
|
61194
|
-
<ion-
|
|
61195
|
-
|
|
61196
|
-
|
|
61197
|
-
|
|
61198
|
-
|
|
61199
|
-
|
|
61200
|
-
|
|
61201
|
-
|
|
61202
|
-
|
|
61203
|
-
|
|
61204
|
-
|
|
61205
|
-
|
|
61206
|
-
|
|
61207
|
-
|
|
61208
|
-
|
|
61209
|
-
|
|
61210
|
-
|
|
61211
|
-
|
|
61212
|
-
|
|
61213
|
-
|
|
61214
|
-
|
|
61215
|
-
|
|
61216
|
-
|
|
61217
|
-
|
|
61218
|
-
|
|
61219
|
-
|
|
61220
|
-
|
|
61286
|
+
<div class="ion-page" [class.pw-has-menu]="hasSideMenu()">
|
|
61287
|
+
@if (hasSideMenu()) {
|
|
61288
|
+
<nav class="pw-sidenav" aria-label="Menú lateral">
|
|
61289
|
+
<ion-list lines="none" class="pw-menu-list">
|
|
61290
|
+
@for (item of menuItems(); track item.route) {
|
|
61291
|
+
<ion-item
|
|
61292
|
+
[routerLink]="item.route"
|
|
61293
|
+
routerLinkActive="pw-menu-active"
|
|
61294
|
+
[routerLinkActiveOptions]="{ exact: item.exact ?? false }"
|
|
61295
|
+
lines="none"
|
|
61296
|
+
>
|
|
61297
|
+
@if (item.icon) {
|
|
61298
|
+
<ion-icon [name]="item.icon" slot="start" />
|
|
61299
|
+
}
|
|
61300
|
+
<ion-label>{{ item.label }}</ion-label>
|
|
61301
|
+
</ion-item>
|
|
61302
|
+
}
|
|
61303
|
+
</ion-list>
|
|
61304
|
+
</nav>
|
|
61305
|
+
}
|
|
61306
|
+
<div class="pw-content">
|
|
61307
|
+
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61308
|
+
<ion-content
|
|
61309
|
+
[id]="contentId()"
|
|
61310
|
+
[fullscreen]="true"
|
|
61311
|
+
[ngStyle]="{
|
|
61312
|
+
'--background': background(),
|
|
61313
|
+
}"
|
|
61314
|
+
>
|
|
61315
|
+
<!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
|
|
61316
|
+
página activa registró un handler vía PageRefreshService.
|
|
61317
|
+
ion-refresher con slot="fixed" DEBE ser hijo directo de
|
|
61318
|
+
ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
|
|
61319
|
+
@if (pageRefresh.hasHandler()) {
|
|
61320
|
+
<ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
|
|
61321
|
+
<ion-refresher-content
|
|
61322
|
+
pullingIcon="chevron-down-circle-outline"
|
|
61323
|
+
refreshingSpinner="circular"
|
|
61324
|
+
></ion-refresher-content>
|
|
61325
|
+
</ion-refresher>
|
|
61326
|
+
}
|
|
61327
|
+
<val-network-banner />
|
|
61328
|
+
<val-container [props]="{ size: contentMaxWidth() }">
|
|
61329
|
+
<main>
|
|
61330
|
+
<router-outlet></router-outlet>
|
|
61331
|
+
</main>
|
|
61332
|
+
</val-container>
|
|
61333
|
+
@if (propsFooter()) {
|
|
61334
|
+
<val-company-footer [props]="propsFooter()" />
|
|
61335
|
+
}
|
|
61336
|
+
</ion-content>
|
|
61221
61337
|
</div>
|
|
61222
|
-
|
|
61223
|
-
|
|
61224
|
-
<ng-template #pageContent>
|
|
61225
|
-
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61226
|
-
<ion-content
|
|
61227
|
-
[id]="contentId()"
|
|
61228
|
-
[fullscreen]="true"
|
|
61229
|
-
[ngStyle]="{
|
|
61230
|
-
'--background': background(),
|
|
61231
|
-
}"
|
|
61232
|
-
>
|
|
61233
|
-
<!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
|
|
61234
|
-
página activa registró un handler vía PageRefreshService.
|
|
61235
|
-
ion-refresher con slot="fixed" DEBE ser hijo directo de
|
|
61236
|
-
ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
|
|
61237
|
-
@if (pageRefresh.hasHandler()) {
|
|
61238
|
-
<ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
|
|
61239
|
-
<ion-refresher-content
|
|
61240
|
-
pullingIcon="chevron-down-circle-outline"
|
|
61241
|
-
refreshingSpinner="circular"
|
|
61242
|
-
></ion-refresher-content>
|
|
61243
|
-
</ion-refresher>
|
|
61244
|
-
}
|
|
61245
|
-
<val-network-banner />
|
|
61246
|
-
<val-container [props]="{ size: contentMaxWidth() }">
|
|
61247
|
-
<main>
|
|
61248
|
-
<router-outlet></router-outlet>
|
|
61249
|
-
</main>
|
|
61250
|
-
</val-container>
|
|
61251
|
-
@if (propsFooter()) {
|
|
61252
|
-
<val-company-footer [props]="propsFooter()" />
|
|
61253
|
-
}
|
|
61254
|
-
</ion-content>
|
|
61255
|
-
</ng-template>
|
|
61256
|
-
`, isInline: true, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: var(--ion-color-primary-tint, rgba(var(--ion-color-primary-rgb), .12));--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: HeaderComponent, selector: "val-header", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: CompanyFooterComponent, selector: "val-company-footer", inputs: ["props"] }, { kind: "component", type: ContainerComponent, selector: "val-container", inputs: ["props"] }, { kind: "component", type: IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "mode", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: NetworkBannerComponent, selector: "val-network-banner" }] }); }
|
|
61338
|
+
</div>
|
|
61339
|
+
`, isInline: true, styles: [".ion-page.pw-has-menu{flex-direction:row}.pw-sidenav{width:0;overflow:hidden;flex-shrink:0;border-right:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-background-color);transition:width .25s ease}@media (min-width: 768px){.pw-sidenav{width:220px}}.pw-content{display:flex;flex-direction:column;flex:1;min-width:0;position:relative}main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: rgba(var(--ion-color-primary-rgb, 0, 0, 0), .1);--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: HeaderComponent, selector: "val-header", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: CompanyFooterComponent, selector: "val-company-footer", inputs: ["props"] }, { kind: "component", type: ContainerComponent, selector: "val-container", inputs: ["props"] }, { kind: "component", type: IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "mode", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: NetworkBannerComponent, selector: "val-network-banner" }] }); }
|
|
61257
61340
|
}
|
|
61258
61341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, decorators: [{
|
|
61259
61342
|
type: Component,
|
|
@@ -61269,81 +61352,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
61269
61352
|
RouterLink,
|
|
61270
61353
|
RouterLinkActive,
|
|
61271
61354
|
IonContent,
|
|
61272
|
-
IonSplitPane,
|
|
61273
|
-
IonMenu,
|
|
61274
|
-
IonMenuToggle,
|
|
61275
61355
|
IonList,
|
|
61276
61356
|
IonItem,
|
|
61277
61357
|
IonLabel,
|
|
61278
61358
|
IonIcon,
|
|
61279
61359
|
NetworkBannerComponent,
|
|
61280
61360
|
], template: `
|
|
61281
|
-
|
|
61282
|
-
|
|
61283
|
-
<
|
|
61284
|
-
<ion-
|
|
61285
|
-
|
|
61286
|
-
|
|
61287
|
-
|
|
61288
|
-
|
|
61289
|
-
|
|
61290
|
-
|
|
61291
|
-
|
|
61292
|
-
|
|
61293
|
-
|
|
61294
|
-
|
|
61295
|
-
|
|
61296
|
-
|
|
61297
|
-
|
|
61298
|
-
|
|
61299
|
-
|
|
61300
|
-
|
|
61301
|
-
|
|
61302
|
-
|
|
61303
|
-
|
|
61304
|
-
|
|
61305
|
-
|
|
61306
|
-
|
|
61307
|
-
|
|
61308
|
-
|
|
61309
|
-
|
|
61310
|
-
|
|
61361
|
+
<div class="ion-page" [class.pw-has-menu]="hasSideMenu()">
|
|
61362
|
+
@if (hasSideMenu()) {
|
|
61363
|
+
<nav class="pw-sidenav" aria-label="Menú lateral">
|
|
61364
|
+
<ion-list lines="none" class="pw-menu-list">
|
|
61365
|
+
@for (item of menuItems(); track item.route) {
|
|
61366
|
+
<ion-item
|
|
61367
|
+
[routerLink]="item.route"
|
|
61368
|
+
routerLinkActive="pw-menu-active"
|
|
61369
|
+
[routerLinkActiveOptions]="{ exact: item.exact ?? false }"
|
|
61370
|
+
lines="none"
|
|
61371
|
+
>
|
|
61372
|
+
@if (item.icon) {
|
|
61373
|
+
<ion-icon [name]="item.icon" slot="start" />
|
|
61374
|
+
}
|
|
61375
|
+
<ion-label>{{ item.label }}</ion-label>
|
|
61376
|
+
</ion-item>
|
|
61377
|
+
}
|
|
61378
|
+
</ion-list>
|
|
61379
|
+
</nav>
|
|
61380
|
+
}
|
|
61381
|
+
<div class="pw-content">
|
|
61382
|
+
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61383
|
+
<ion-content
|
|
61384
|
+
[id]="contentId()"
|
|
61385
|
+
[fullscreen]="true"
|
|
61386
|
+
[ngStyle]="{
|
|
61387
|
+
'--background': background(),
|
|
61388
|
+
}"
|
|
61389
|
+
>
|
|
61390
|
+
<!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
|
|
61391
|
+
página activa registró un handler vía PageRefreshService.
|
|
61392
|
+
ion-refresher con slot="fixed" DEBE ser hijo directo de
|
|
61393
|
+
ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
|
|
61394
|
+
@if (pageRefresh.hasHandler()) {
|
|
61395
|
+
<ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
|
|
61396
|
+
<ion-refresher-content
|
|
61397
|
+
pullingIcon="chevron-down-circle-outline"
|
|
61398
|
+
refreshingSpinner="circular"
|
|
61399
|
+
></ion-refresher-content>
|
|
61400
|
+
</ion-refresher>
|
|
61401
|
+
}
|
|
61402
|
+
<val-network-banner />
|
|
61403
|
+
<val-container [props]="{ size: contentMaxWidth() }">
|
|
61404
|
+
<main>
|
|
61405
|
+
<router-outlet></router-outlet>
|
|
61406
|
+
</main>
|
|
61407
|
+
</val-container>
|
|
61408
|
+
@if (propsFooter()) {
|
|
61409
|
+
<val-company-footer [props]="propsFooter()" />
|
|
61410
|
+
}
|
|
61411
|
+
</ion-content>
|
|
61311
61412
|
</div>
|
|
61312
|
-
|
|
61313
|
-
|
|
61314
|
-
<ng-template #pageContent>
|
|
61315
|
-
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61316
|
-
<ion-content
|
|
61317
|
-
[id]="contentId()"
|
|
61318
|
-
[fullscreen]="true"
|
|
61319
|
-
[ngStyle]="{
|
|
61320
|
-
'--background': background(),
|
|
61321
|
-
}"
|
|
61322
|
-
>
|
|
61323
|
-
<!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
|
|
61324
|
-
página activa registró un handler vía PageRefreshService.
|
|
61325
|
-
ion-refresher con slot="fixed" DEBE ser hijo directo de
|
|
61326
|
-
ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
|
|
61327
|
-
@if (pageRefresh.hasHandler()) {
|
|
61328
|
-
<ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
|
|
61329
|
-
<ion-refresher-content
|
|
61330
|
-
pullingIcon="chevron-down-circle-outline"
|
|
61331
|
-
refreshingSpinner="circular"
|
|
61332
|
-
></ion-refresher-content>
|
|
61333
|
-
</ion-refresher>
|
|
61334
|
-
}
|
|
61335
|
-
<val-network-banner />
|
|
61336
|
-
<val-container [props]="{ size: contentMaxWidth() }">
|
|
61337
|
-
<main>
|
|
61338
|
-
<router-outlet></router-outlet>
|
|
61339
|
-
</main>
|
|
61340
|
-
</val-container>
|
|
61341
|
-
@if (propsFooter()) {
|
|
61342
|
-
<val-company-footer [props]="propsFooter()" />
|
|
61343
|
-
}
|
|
61344
|
-
</ion-content>
|
|
61345
|
-
</ng-template>
|
|
61346
|
-
`, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: var(--ion-color-primary-tint, rgba(var(--ion-color-primary-rgb), .12));--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"] }]
|
|
61413
|
+
</div>
|
|
61414
|
+
`, styles: [".ion-page.pw-has-menu{flex-direction:row}.pw-sidenav{width:0;overflow:hidden;flex-shrink:0;border-right:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-background-color);transition:width .25s ease}@media (min-width: 768px){.pw-sidenav{width:220px}}.pw-content{display:flex;flex-direction:column;flex:1;min-width:0;position:relative}main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: rgba(var(--ion-color-primary-rgb, 0, 0, 0), .1);--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"] }]
|
|
61347
61415
|
}], propDecorators: { onHeaderClick: [{
|
|
61348
61416
|
type: Output
|
|
61349
61417
|
}] } });
|
|
@@ -66952,6 +67020,431 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
66952
67020
|
type: Output
|
|
66953
67021
|
}] } });
|
|
66954
67022
|
|
|
67023
|
+
/**
|
|
67024
|
+
* Token de inyeccion para la configuracion del servicio de Reactions.
|
|
67025
|
+
*/
|
|
67026
|
+
const VALTECH_REACTIONS_CONFIG = new InjectionToken('ValtechReactionsConfig');
|
|
67027
|
+
/**
|
|
67028
|
+
* Provee el servicio de reactions a la aplicacion Angular.
|
|
67029
|
+
*
|
|
67030
|
+
* @param config - Configuracion de reactions
|
|
67031
|
+
* @returns EnvironmentProviders para usar en bootstrapApplication
|
|
67032
|
+
*
|
|
67033
|
+
* @example
|
|
67034
|
+
* bootstrapApplication(AppComponent, {
|
|
67035
|
+
* providers: [
|
|
67036
|
+
* provideValtechReactions({ apiUrl: environment.apiUrl, appId: 'my-app' }),
|
|
67037
|
+
* ],
|
|
67038
|
+
* });
|
|
67039
|
+
*/
|
|
67040
|
+
function provideValtechReactions(config) {
|
|
67041
|
+
return makeEnvironmentProviders([{ provide: VALTECH_REACTIONS_CONFIG, useValue: config }]);
|
|
67042
|
+
}
|
|
67043
|
+
|
|
67044
|
+
/**
|
|
67045
|
+
* Servicio para gestionar reacciones emoji configurables por contexto.
|
|
67046
|
+
*
|
|
67047
|
+
* Requiere provideValtechReactions() en el bootstrap de la app.
|
|
67048
|
+
*
|
|
67049
|
+
* @example
|
|
67050
|
+
* const svc = inject(ReactionsService);
|
|
67051
|
+
* svc.react({ entityRef: { entityType: 'post', entityId: '1' }, token: 'heart', appId: 'app' })
|
|
67052
|
+
* .subscribe(res => console.log(res.counts));
|
|
67053
|
+
*/
|
|
67054
|
+
class ReactionsService {
|
|
67055
|
+
constructor() {
|
|
67056
|
+
this.http = inject(HttpClient);
|
|
67057
|
+
this.config = inject(VALTECH_REACTIONS_CONFIG, { optional: true });
|
|
67058
|
+
if (!this.config && isDevMode()) {
|
|
67059
|
+
console.warn('[valtech-components] ReactionsService: provideValtechReactions() no esta en main.ts. ' +
|
|
67060
|
+
'Las reacciones no funcionaran.');
|
|
67061
|
+
}
|
|
67062
|
+
}
|
|
67063
|
+
get apiUrl() {
|
|
67064
|
+
return this.config?.apiUrl ?? '';
|
|
67065
|
+
}
|
|
67066
|
+
get baseUrl() {
|
|
67067
|
+
return `${this.apiUrl}/v2/reactions`;
|
|
67068
|
+
}
|
|
67069
|
+
/**
|
|
67070
|
+
* Toggle reaccion — retorna estado nuevo + conteos actualizados.
|
|
67071
|
+
*/
|
|
67072
|
+
react(req) {
|
|
67073
|
+
if (!this.config)
|
|
67074
|
+
return EMPTY;
|
|
67075
|
+
return this.http.post(this.baseUrl, req);
|
|
67076
|
+
}
|
|
67077
|
+
/**
|
|
67078
|
+
* Conteos + reacciones del usuario para una entidad.
|
|
67079
|
+
*/
|
|
67080
|
+
getCounts(appId, entityType, entityId) {
|
|
67081
|
+
if (!this.config)
|
|
67082
|
+
return EMPTY;
|
|
67083
|
+
const params = new HttpParams()
|
|
67084
|
+
.set('appId', appId)
|
|
67085
|
+
.set('entityType', entityType)
|
|
67086
|
+
.set('entityId', entityId);
|
|
67087
|
+
return this.http.get(`${this.baseUrl}/counts`, { params });
|
|
67088
|
+
}
|
|
67089
|
+
/**
|
|
67090
|
+
* Solo mis tokens activos para una entidad.
|
|
67091
|
+
*/
|
|
67092
|
+
getMyReactions(appId, entityType, entityId) {
|
|
67093
|
+
if (!this.config)
|
|
67094
|
+
return EMPTY;
|
|
67095
|
+
const params = new HttpParams()
|
|
67096
|
+
.set('appId', appId)
|
|
67097
|
+
.set('entityType', entityType)
|
|
67098
|
+
.set('entityId', entityId);
|
|
67099
|
+
return this.http
|
|
67100
|
+
.get(`${this.baseUrl}/mine`, { params })
|
|
67101
|
+
.pipe(map(res => res.tokens));
|
|
67102
|
+
}
|
|
67103
|
+
/**
|
|
67104
|
+
* Obtener un set de reacciones por ID.
|
|
67105
|
+
*/
|
|
67106
|
+
getSet(setId) {
|
|
67107
|
+
if (!this.config)
|
|
67108
|
+
return EMPTY;
|
|
67109
|
+
return this.http.get(`${this.baseUrl}/sets/${setId}`);
|
|
67110
|
+
}
|
|
67111
|
+
/**
|
|
67112
|
+
* Listar todos los sets disponibles para una app.
|
|
67113
|
+
*/
|
|
67114
|
+
listSets(appId) {
|
|
67115
|
+
if (!this.config)
|
|
67116
|
+
return EMPTY;
|
|
67117
|
+
const params = new HttpParams().set('appId', appId);
|
|
67118
|
+
return this.http.get(`${this.baseUrl}/sets`, { params });
|
|
67119
|
+
}
|
|
67120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
67121
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, providedIn: 'root' }); }
|
|
67122
|
+
}
|
|
67123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, decorators: [{
|
|
67124
|
+
type: Injectable,
|
|
67125
|
+
args: [{ providedIn: 'root' }]
|
|
67126
|
+
}], ctorParameters: () => [] });
|
|
67127
|
+
|
|
67128
|
+
const REACTION_BAR_I18N = {
|
|
67129
|
+
es: {
|
|
67130
|
+
loading: 'Cargando reacciones...',
|
|
67131
|
+
addReaction: 'Agregar reaccion',
|
|
67132
|
+
close: 'Cerrar',
|
|
67133
|
+
errorLoading: 'Error al cargar reacciones.',
|
|
67134
|
+
},
|
|
67135
|
+
en: {
|
|
67136
|
+
loading: 'Loading reactions...',
|
|
67137
|
+
addReaction: 'Add reaction',
|
|
67138
|
+
close: 'Close',
|
|
67139
|
+
errorLoading: 'Failed to load reactions.',
|
|
67140
|
+
},
|
|
67141
|
+
};
|
|
67142
|
+
/**
|
|
67143
|
+
* Barra de reacciones emoji configurables por contexto.
|
|
67144
|
+
*
|
|
67145
|
+
* Muestra un set de emojis y permite al usuario reaccionar a una entidad.
|
|
67146
|
+
* Soporta conteos, multiples reacciones y modo picker (popup).
|
|
67147
|
+
*
|
|
67148
|
+
* @example
|
|
67149
|
+
* html
|
|
67150
|
+
* <val-reaction-bar
|
|
67151
|
+
* [props]="{
|
|
67152
|
+
* entityRef: { entityType: 'post', entityId: 'p1' },
|
|
67153
|
+
* reactionSet: mySet,
|
|
67154
|
+
* showCounts: true
|
|
67155
|
+
* }"
|
|
67156
|
+
* (reactionChange)="onReaction($event)"
|
|
67157
|
+
* />
|
|
67158
|
+
*/
|
|
67159
|
+
class ReactionBarComponent {
|
|
67160
|
+
constructor() {
|
|
67161
|
+
this.reactionChange = new EventEmitter();
|
|
67162
|
+
this.reactionsService = inject(ReactionsService);
|
|
67163
|
+
this.i18n = inject(I18nService);
|
|
67164
|
+
this.reactionSet = signal(null);
|
|
67165
|
+
this.myReactions = signal([]);
|
|
67166
|
+
this.counts = signal({});
|
|
67167
|
+
this.isLoading = signal(true);
|
|
67168
|
+
this.pickerOpen = signal(false);
|
|
67169
|
+
this.enrichedReactions = computed(() => {
|
|
67170
|
+
const set = this.reactionSet();
|
|
67171
|
+
if (!set)
|
|
67172
|
+
return [];
|
|
67173
|
+
const my = this.myReactions();
|
|
67174
|
+
const c = this.counts();
|
|
67175
|
+
return [...set.reactions]
|
|
67176
|
+
.sort((a, b) => a.order - b.order)
|
|
67177
|
+
.map(r => ({
|
|
67178
|
+
...r,
|
|
67179
|
+
count: c[r.token] ?? 0,
|
|
67180
|
+
active: my.includes(r.token),
|
|
67181
|
+
}));
|
|
67182
|
+
});
|
|
67183
|
+
this.i18n.registerDefaults('ReactionBar', REACTION_BAR_I18N);
|
|
67184
|
+
}
|
|
67185
|
+
ngOnInit() {
|
|
67186
|
+
if (this.props.initialCounts) {
|
|
67187
|
+
this.counts.set(this.props.initialCounts);
|
|
67188
|
+
}
|
|
67189
|
+
if (this.props.initialMyReactions) {
|
|
67190
|
+
this.myReactions.set(this.props.initialMyReactions);
|
|
67191
|
+
}
|
|
67192
|
+
if (this.props.reactionSet) {
|
|
67193
|
+
this.reactionSet.set(this.props.reactionSet);
|
|
67194
|
+
this.isLoading.set(false);
|
|
67195
|
+
if (!this.props.skipInitialLoad && !this.props.initialCounts) {
|
|
67196
|
+
void this.loadCounts();
|
|
67197
|
+
}
|
|
67198
|
+
return;
|
|
67199
|
+
}
|
|
67200
|
+
if (this.props.reactionSetId) {
|
|
67201
|
+
void this.loadSetAndCounts(this.props.reactionSetId);
|
|
67202
|
+
return;
|
|
67203
|
+
}
|
|
67204
|
+
this.isLoading.set(false);
|
|
67205
|
+
}
|
|
67206
|
+
async loadSetAndCounts(setId) {
|
|
67207
|
+
this.isLoading.set(true);
|
|
67208
|
+
try {
|
|
67209
|
+
const set = await firstValueFrom(this.reactionsService.getSet(setId));
|
|
67210
|
+
this.reactionSet.set(set);
|
|
67211
|
+
if (!this.props.skipInitialLoad && !this.props.initialCounts) {
|
|
67212
|
+
await this.loadCounts();
|
|
67213
|
+
}
|
|
67214
|
+
}
|
|
67215
|
+
catch (err) {
|
|
67216
|
+
console.error('[ReactionBarComponent] Error loading reaction set:', err);
|
|
67217
|
+
}
|
|
67218
|
+
finally {
|
|
67219
|
+
this.isLoading.set(false);
|
|
67220
|
+
}
|
|
67221
|
+
}
|
|
67222
|
+
async loadCounts() {
|
|
67223
|
+
const appId = this.props.appId ?? '';
|
|
67224
|
+
const { entityType, entityId } = this.props.entityRef;
|
|
67225
|
+
try {
|
|
67226
|
+
const res = await firstValueFrom(this.reactionsService.getCounts(appId, entityType, entityId));
|
|
67227
|
+
this.counts.set(res.counts);
|
|
67228
|
+
if (!this.props.initialMyReactions) {
|
|
67229
|
+
this.myReactions.set(res.myReactions);
|
|
67230
|
+
}
|
|
67231
|
+
}
|
|
67232
|
+
catch (err) {
|
|
67233
|
+
console.error('[ReactionBarComponent] Error loading counts:', err);
|
|
67234
|
+
}
|
|
67235
|
+
}
|
|
67236
|
+
onReact(token) {
|
|
67237
|
+
if (this.props.readonly)
|
|
67238
|
+
return;
|
|
67239
|
+
void this.handleReact(token);
|
|
67240
|
+
}
|
|
67241
|
+
onReactAndClosePicker(token) {
|
|
67242
|
+
this.pickerOpen.set(false);
|
|
67243
|
+
this.onReact(token);
|
|
67244
|
+
}
|
|
67245
|
+
togglePicker() {
|
|
67246
|
+
this.pickerOpen.update(v => !v);
|
|
67247
|
+
}
|
|
67248
|
+
async handleReact(token) {
|
|
67249
|
+
const appId = this.props.appId ?? '';
|
|
67250
|
+
const { entityType, entityId } = this.props.entityRef;
|
|
67251
|
+
const maxReactions = this.props.maxReactions ?? 1;
|
|
67252
|
+
const currentMy = this.myReactions();
|
|
67253
|
+
const isActive = currentMy.includes(token);
|
|
67254
|
+
let newMyReactions;
|
|
67255
|
+
if (isActive) {
|
|
67256
|
+
newMyReactions = currentMy.filter(t => t !== token);
|
|
67257
|
+
}
|
|
67258
|
+
else if (maxReactions === 1) {
|
|
67259
|
+
newMyReactions = [token];
|
|
67260
|
+
}
|
|
67261
|
+
else if (maxReactions === 0 || currentMy.length < maxReactions) {
|
|
67262
|
+
newMyReactions = [...currentMy, token];
|
|
67263
|
+
}
|
|
67264
|
+
else {
|
|
67265
|
+
newMyReactions = currentMy;
|
|
67266
|
+
}
|
|
67267
|
+
const prevCounts = this.counts();
|
|
67268
|
+
const optimisticCounts = { ...prevCounts };
|
|
67269
|
+
if (isActive) {
|
|
67270
|
+
optimisticCounts[token] = Math.max(0, (optimisticCounts[token] ?? 1) - 1);
|
|
67271
|
+
}
|
|
67272
|
+
else {
|
|
67273
|
+
optimisticCounts[token] = (optimisticCounts[token] ?? 0) + 1;
|
|
67274
|
+
if (maxReactions === 1 && currentMy.length > 0) {
|
|
67275
|
+
const removed = currentMy[0];
|
|
67276
|
+
optimisticCounts[removed] = Math.max(0, (optimisticCounts[removed] ?? 1) - 1);
|
|
67277
|
+
}
|
|
67278
|
+
}
|
|
67279
|
+
this.myReactions.set(newMyReactions);
|
|
67280
|
+
this.counts.set(optimisticCounts);
|
|
67281
|
+
try {
|
|
67282
|
+
const res = await firstValueFrom(this.reactionsService.react({ entityRef: { entityType, entityId }, token, appId }));
|
|
67283
|
+
this.counts.set(res.counts);
|
|
67284
|
+
if (!res.active) {
|
|
67285
|
+
this.myReactions.set(this.myReactions().filter(t => t !== token));
|
|
67286
|
+
}
|
|
67287
|
+
else if (!this.myReactions().includes(token)) {
|
|
67288
|
+
this.myReactions.update(arr => [...arr, token]);
|
|
67289
|
+
}
|
|
67290
|
+
this.reactionChange.emit({
|
|
67291
|
+
token,
|
|
67292
|
+
active: res.active,
|
|
67293
|
+
entityRef: { entityType, entityId },
|
|
67294
|
+
counts: res.counts,
|
|
67295
|
+
});
|
|
67296
|
+
}
|
|
67297
|
+
catch (err) {
|
|
67298
|
+
console.error('[ReactionBarComponent] Error reacting:', err);
|
|
67299
|
+
this.myReactions.set(currentMy);
|
|
67300
|
+
this.counts.set(prevCounts);
|
|
67301
|
+
}
|
|
67302
|
+
}
|
|
67303
|
+
t(key) {
|
|
67304
|
+
return this.i18n.t(key, 'ReactionBar') || key;
|
|
67305
|
+
}
|
|
67306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
67307
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ReactionBarComponent, isStandalone: true, selector: "val-reaction-bar", inputs: { props: "props" }, outputs: { reactionChange: "reactionChange" }, ngImport: i0, template: `
|
|
67308
|
+
<div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
|
|
67309
|
+
@if (isLoading()) {
|
|
67310
|
+
<div class="reaction-skeleton" aria-hidden="true">
|
|
67311
|
+
<span class="skeleton-circle"></span>
|
|
67312
|
+
<span class="skeleton-circle"></span>
|
|
67313
|
+
<span class="skeleton-circle"></span>
|
|
67314
|
+
</div>
|
|
67315
|
+
} @else {
|
|
67316
|
+
@for (r of enrichedReactions(); track r.token) {
|
|
67317
|
+
<button
|
|
67318
|
+
type="button"
|
|
67319
|
+
class="reaction-btn"
|
|
67320
|
+
[class.active]="r.active"
|
|
67321
|
+
[disabled]="props.readonly"
|
|
67322
|
+
[attr.aria-label]="r.label"
|
|
67323
|
+
[attr.aria-pressed]="r.active"
|
|
67324
|
+
(click)="onReact(r.token)"
|
|
67325
|
+
>
|
|
67326
|
+
<span class="emoji">{{ r.emoji }}</span>
|
|
67327
|
+
@if (props.showCounts && r.count > 0) {
|
|
67328
|
+
<span class="count">{{ r.count }}</span>
|
|
67329
|
+
}
|
|
67330
|
+
</button>
|
|
67331
|
+
}
|
|
67332
|
+
@if (props.layout === 'picker' && !pickerOpen()) {
|
|
67333
|
+
<button
|
|
67334
|
+
type="button"
|
|
67335
|
+
class="reaction-btn reaction-btn--add"
|
|
67336
|
+
[disabled]="props.readonly"
|
|
67337
|
+
[attr.aria-label]="t('addReaction')"
|
|
67338
|
+
(click)="togglePicker()"
|
|
67339
|
+
>
|
|
67340
|
+
<span class="emoji">+</span>
|
|
67341
|
+
</button>
|
|
67342
|
+
}
|
|
67343
|
+
@if (props.layout === 'picker' && pickerOpen()) {
|
|
67344
|
+
<div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
|
|
67345
|
+
@for (r of enrichedReactions(); track r.token) {
|
|
67346
|
+
<button
|
|
67347
|
+
type="button"
|
|
67348
|
+
class="reaction-btn"
|
|
67349
|
+
[class.active]="r.active"
|
|
67350
|
+
[attr.aria-label]="r.label"
|
|
67351
|
+
[attr.aria-pressed]="r.active"
|
|
67352
|
+
(click)="onReactAndClosePicker(r.token)"
|
|
67353
|
+
>
|
|
67354
|
+
<span class="emoji">{{ r.emoji }}</span>
|
|
67355
|
+
@if (props.showCounts && r.count > 0) {
|
|
67356
|
+
<span class="count">{{ r.count }}</span>
|
|
67357
|
+
}
|
|
67358
|
+
</button>
|
|
67359
|
+
}
|
|
67360
|
+
<button
|
|
67361
|
+
type="button"
|
|
67362
|
+
class="reaction-btn reaction-btn--close"
|
|
67363
|
+
[attr.aria-label]="t('close')"
|
|
67364
|
+
(click)="togglePicker()"
|
|
67365
|
+
>
|
|
67366
|
+
<span class="emoji">x</span>
|
|
67367
|
+
</button>
|
|
67368
|
+
</div>
|
|
67369
|
+
}
|
|
67370
|
+
}
|
|
67371
|
+
</div>
|
|
67372
|
+
`, isInline: true, styles: [":host{display:block}.reaction-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative}.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:16px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));cursor:pointer;transition:all .15s ease;font-size:1rem;font-family:inherit;line-height:1}.reaction-btn:hover:not(:disabled){background:var(--ion-color-light, #f4f5f8)}.reaction-btn.active{background:var(--ion-color-primary-tint, rgba(76, 141, 255, .1));border-color:var(--ion-color-primary, #3880ff)}.reaction-btn:disabled{opacity:.6;cursor:default}.reaction-btn--add{border-style:dashed}.reaction-btn--close{border-color:var(--ion-color-medium, #92949c)}.emoji{font-size:1.1em;line-height:1}.count{font-size:.75rem;font-weight:600;color:var(--ion-color-medium, #92949c)}.active .count{color:var(--ion-color-primary, #3880ff)}.reaction-skeleton{display:flex;gap:4px;align-items:center}.skeleton-circle{display:inline-block;width:36px;height:28px;border-radius:16px;background:var(--ion-color-light, #f4f5f8);animation:skeleton-pulse 1.4s ease-in-out infinite}.skeleton-circle:nth-child(2){animation-delay:.2s}.skeleton-circle:nth-child(3){animation-delay:.4s}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.picker-popover{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;border-radius:20px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));box-shadow:0 4px 12px #0000001f;position:absolute;bottom:calc(100% + 8px);left:0;z-index:100}:host(.sm) .reaction-btn{padding:2px 6px;font-size:.875rem}:host(.lg) .reaction-btn{padding:6px 12px;font-size:1.2rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
67373
|
+
}
|
|
67374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, decorators: [{
|
|
67375
|
+
type: Component,
|
|
67376
|
+
args: [{ selector: 'val-reaction-bar', standalone: true, imports: [CommonModule], template: `
|
|
67377
|
+
<div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
|
|
67378
|
+
@if (isLoading()) {
|
|
67379
|
+
<div class="reaction-skeleton" aria-hidden="true">
|
|
67380
|
+
<span class="skeleton-circle"></span>
|
|
67381
|
+
<span class="skeleton-circle"></span>
|
|
67382
|
+
<span class="skeleton-circle"></span>
|
|
67383
|
+
</div>
|
|
67384
|
+
} @else {
|
|
67385
|
+
@for (r of enrichedReactions(); track r.token) {
|
|
67386
|
+
<button
|
|
67387
|
+
type="button"
|
|
67388
|
+
class="reaction-btn"
|
|
67389
|
+
[class.active]="r.active"
|
|
67390
|
+
[disabled]="props.readonly"
|
|
67391
|
+
[attr.aria-label]="r.label"
|
|
67392
|
+
[attr.aria-pressed]="r.active"
|
|
67393
|
+
(click)="onReact(r.token)"
|
|
67394
|
+
>
|
|
67395
|
+
<span class="emoji">{{ r.emoji }}</span>
|
|
67396
|
+
@if (props.showCounts && r.count > 0) {
|
|
67397
|
+
<span class="count">{{ r.count }}</span>
|
|
67398
|
+
}
|
|
67399
|
+
</button>
|
|
67400
|
+
}
|
|
67401
|
+
@if (props.layout === 'picker' && !pickerOpen()) {
|
|
67402
|
+
<button
|
|
67403
|
+
type="button"
|
|
67404
|
+
class="reaction-btn reaction-btn--add"
|
|
67405
|
+
[disabled]="props.readonly"
|
|
67406
|
+
[attr.aria-label]="t('addReaction')"
|
|
67407
|
+
(click)="togglePicker()"
|
|
67408
|
+
>
|
|
67409
|
+
<span class="emoji">+</span>
|
|
67410
|
+
</button>
|
|
67411
|
+
}
|
|
67412
|
+
@if (props.layout === 'picker' && pickerOpen()) {
|
|
67413
|
+
<div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
|
|
67414
|
+
@for (r of enrichedReactions(); track r.token) {
|
|
67415
|
+
<button
|
|
67416
|
+
type="button"
|
|
67417
|
+
class="reaction-btn"
|
|
67418
|
+
[class.active]="r.active"
|
|
67419
|
+
[attr.aria-label]="r.label"
|
|
67420
|
+
[attr.aria-pressed]="r.active"
|
|
67421
|
+
(click)="onReactAndClosePicker(r.token)"
|
|
67422
|
+
>
|
|
67423
|
+
<span class="emoji">{{ r.emoji }}</span>
|
|
67424
|
+
@if (props.showCounts && r.count > 0) {
|
|
67425
|
+
<span class="count">{{ r.count }}</span>
|
|
67426
|
+
}
|
|
67427
|
+
</button>
|
|
67428
|
+
}
|
|
67429
|
+
<button
|
|
67430
|
+
type="button"
|
|
67431
|
+
class="reaction-btn reaction-btn--close"
|
|
67432
|
+
[attr.aria-label]="t('close')"
|
|
67433
|
+
(click)="togglePicker()"
|
|
67434
|
+
>
|
|
67435
|
+
<span class="emoji">x</span>
|
|
67436
|
+
</button>
|
|
67437
|
+
</div>
|
|
67438
|
+
}
|
|
67439
|
+
}
|
|
67440
|
+
</div>
|
|
67441
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.reaction-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative}.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:16px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));cursor:pointer;transition:all .15s ease;font-size:1rem;font-family:inherit;line-height:1}.reaction-btn:hover:not(:disabled){background:var(--ion-color-light, #f4f5f8)}.reaction-btn.active{background:var(--ion-color-primary-tint, rgba(76, 141, 255, .1));border-color:var(--ion-color-primary, #3880ff)}.reaction-btn:disabled{opacity:.6;cursor:default}.reaction-btn--add{border-style:dashed}.reaction-btn--close{border-color:var(--ion-color-medium, #92949c)}.emoji{font-size:1.1em;line-height:1}.count{font-size:.75rem;font-weight:600;color:var(--ion-color-medium, #92949c)}.active .count{color:var(--ion-color-primary, #3880ff)}.reaction-skeleton{display:flex;gap:4px;align-items:center}.skeleton-circle{display:inline-block;width:36px;height:28px;border-radius:16px;background:var(--ion-color-light, #f4f5f8);animation:skeleton-pulse 1.4s ease-in-out infinite}.skeleton-circle:nth-child(2){animation-delay:.2s}.skeleton-circle:nth-child(3){animation-delay:.4s}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.picker-popover{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;border-radius:20px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));box-shadow:0 4px 12px #0000001f;position:absolute;bottom:calc(100% + 8px);left:0;z-index:100}:host(.sm) .reaction-btn{padding:2px 6px;font-size:.875rem}:host(.lg) .reaction-btn{padding:6px 12px;font-size:1.2rem}\n"] }]
|
|
67442
|
+
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
67443
|
+
type: Input
|
|
67444
|
+
}], reactionChange: [{
|
|
67445
|
+
type: Output
|
|
67446
|
+
}] } });
|
|
67447
|
+
|
|
66955
67448
|
const DEFAULT_SPLASH_SCREEN_CONFIG = {
|
|
66956
67449
|
fadeOutDuration: 300,
|
|
66957
67450
|
};
|
|
@@ -71373,5 +71866,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
71373
71866
|
* Generated bundle index. Do not edit.
|
|
71374
71867
|
*/
|
|
71375
71868
|
|
|
71376
|
-
export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentService, ContentTransformer, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, METRIC_CARD_DEFAULTS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MenuComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, ProcessLinksPipe, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, collections, connectPageRefresh, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, docs, errorLoggingInterceptor, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle };
|
|
71869
|
+
export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentService, ContentTransformer, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, METRIC_CARD_DEFAULTS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MenuComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, ProcessLinksPipe, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, ReactionBarComponent, ReactionsService, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_REACTIONS_CONFIG, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, collections, connectPageRefresh, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, docs, errorLoggingInterceptor, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechReactions, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle };
|
|
71377
71870
|
//# sourceMappingURL=valtech-components.mjs.map
|