valtech-components 4.0.208 → 4.0.209
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 +7 -11
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +9 -12
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +5 -79
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.i18n.mjs +1 -5
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +3 -3
- package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +88 -10
- package/esm2022/lib/components/templates/page-wrapper/types.mjs +1 -1
- package/esm2022/lib/services/auth/org-switch.service.mjs +1 -11
- package/esm2022/lib/services/pdf/pdf.service.mjs +59 -0
- package/esm2022/lib/services/pdf/types.mjs +2 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -5
- package/fesm2022/valtech-components.mjs +163 -550
- 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/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 +1 -2
- package/lib/components/organisms/switch-org-modal/switch-org-modal.component.d.ts +1 -5
- package/lib/components/templates/page-wrapper/page-wrapper.component.d.ts +3 -1
- package/lib/components/templates/page-wrapper/types.d.ts +17 -0
- package/lib/services/auth/org-switch.service.d.ts +0 -9
- package/lib/services/pdf/pdf.service.d.ts +27 -0
- package/lib/services/pdf/types.d.ts +31 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -3
- package/src/lib/services/firebase/firebase-messaging-sw.js +145 -0
- package/esm2022/lib/components/molecules/reaction-bar/reaction-bar.component.mjs +0 -326
- package/esm2022/lib/components/molecules/reaction-bar/types.mjs +0 -2
- package/esm2022/lib/services/reactions/config.mjs +0 -22
- package/esm2022/lib/services/reactions/index.mjs +0 -3
- package/esm2022/lib/services/reactions/reactions.service.mjs +0 -89
- package/esm2022/lib/services/reactions/types.mjs +0 -2
- package/lib/components/molecules/reaction-bar/reaction-bar.component.d.ts +0 -44
- package/lib/components/molecules/reaction-bar/types.d.ts +0 -55
- package/lib/services/reactions/config.d.ts +0 -20
- package/lib/services/reactions/index.d.ts +0 -3
- package/lib/services/reactions/reactions.service.d.ts +0 -42
- package/lib/services/reactions/types.d.ts +0 -48
|
@@ -3,11 +3,11 @@ 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
|
|
6
|
+
import { provideHttpClient, withInterceptors, HttpClient, HttpErrorResponse } 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';
|
|
10
|
-
import { isPlatformBrowser, CommonModule, NgStyle, NgFor, DOCUMENT, NgClass, TitleCasePipe } from '@angular/common';
|
|
10
|
+
import { isPlatformBrowser, CommonModule, NgStyle, NgFor, DOCUMENT, NgClass, TitleCasePipe, NgTemplateOutlet } from '@angular/common';
|
|
11
11
|
import { provideAnalytics, getAnalytics, Analytics, logEvent, setUserId, setUserProperties } from '@angular/fire/analytics';
|
|
12
12
|
import { provideFirebaseApp, initializeApp } from '@angular/fire/app';
|
|
13
13
|
import * as i1 from '@angular/fire/auth';
|
|
@@ -17,7 +17,7 @@ import * as i1$2 from '@angular/fire/storage';
|
|
|
17
17
|
import { provideStorage, getStorage, connectStorageEmulator, ref, uploadBytesResumable, getDownloadURL, getMetadata, deleteObject, listAll } from '@angular/fire/storage';
|
|
18
18
|
import { takeUntilDestroyed, toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
19
19
|
import * as i1$4 from '@angular/router';
|
|
20
|
-
import { Router, NavigationEnd, RouterLink, ActivatedRoute, RouterOutlet, RouterModule } from '@angular/router';
|
|
20
|
+
import { Router, NavigationEnd, RouterLink, ActivatedRoute, RouterOutlet, RouterLinkActive, RouterModule } from '@angular/router';
|
|
21
21
|
import * as i2 from '@ionic/angular';
|
|
22
22
|
import { IonicModule, ToastController, NavController } from '@ionic/angular';
|
|
23
23
|
import { isSupported, getMessaging as getMessaging$1 } from 'firebase/messaging';
|
|
@@ -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.209';
|
|
60
60
|
|
|
61
61
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
62
62
|
let isRefreshing = false;
|
|
@@ -21166,18 +21166,16 @@ class LoadMoreComponent {
|
|
|
21166
21166
|
[shape]="shape()"
|
|
21167
21167
|
[size]="size()"
|
|
21168
21168
|
[disabled]="loading()"
|
|
21169
|
-
class="lm-btn"
|
|
21170
21169
|
(click)="onButtonClick()"
|
|
21171
21170
|
>
|
|
21172
21171
|
@if (loading()) {
|
|
21173
|
-
<ion-spinner name="crescent" />
|
|
21174
|
-
} @else {
|
|
21175
|
-
{{ label() }}
|
|
21172
|
+
<ion-spinner name="crescent" slot="start" />
|
|
21176
21173
|
}
|
|
21174
|
+
{{ label() }}
|
|
21177
21175
|
</ion-button>
|
|
21178
21176
|
</div>
|
|
21179
21177
|
}
|
|
21180
|
-
`, isInline: true, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}
|
|
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
21179
|
}
|
|
21182
21180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadMoreComponent, decorators: [{
|
|
21183
21181
|
type: Component,
|
|
@@ -21194,18 +21192,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
21194
21192
|
[shape]="shape()"
|
|
21195
21193
|
[size]="size()"
|
|
21196
21194
|
[disabled]="loading()"
|
|
21197
|
-
class="lm-btn"
|
|
21198
21195
|
(click)="onButtonClick()"
|
|
21199
21196
|
>
|
|
21200
21197
|
@if (loading()) {
|
|
21201
|
-
<ion-spinner name="crescent" />
|
|
21202
|
-
} @else {
|
|
21203
|
-
{{ label() }}
|
|
21198
|
+
<ion-spinner name="crescent" slot="start" />
|
|
21204
21199
|
}
|
|
21200
|
+
{{ label() }}
|
|
21205
21201
|
</ion-button>
|
|
21206
21202
|
</div>
|
|
21207
21203
|
}
|
|
21208
|
-
`, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}
|
|
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
21205
|
}], ctorParameters: () => [], propDecorators: { loadMore: [{
|
|
21210
21206
|
type: Output
|
|
21211
21207
|
}] } });
|
|
@@ -34636,15 +34632,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
34636
34632
|
* ```
|
|
34637
34633
|
*/
|
|
34638
34634
|
class OrgSwitchService {
|
|
34639
|
-
/** Notify subscribers that the active org's data was updated. */
|
|
34640
|
-
notifyOrgDataUpdated(org) {
|
|
34641
|
-
this._orgDataUpdated.next(org);
|
|
34642
|
-
}
|
|
34643
34635
|
constructor(auth) {
|
|
34644
34636
|
this.auth = auth;
|
|
34645
34637
|
this._switching = signal(false);
|
|
34646
34638
|
this._orgChanged = new Subject();
|
|
34647
|
-
this._orgDataUpdated = new Subject();
|
|
34648
34639
|
/**
|
|
34649
34640
|
* `true` while a switch is in flight. UI should disable interactions
|
|
34650
34641
|
* with org-scoped data and show a loading indicator.
|
|
@@ -34658,11 +34649,6 @@ class OrgSwitchService {
|
|
|
34658
34649
|
* see the updated Firebase user / activeOrg claim.
|
|
34659
34650
|
*/
|
|
34660
34651
|
this.orgChanged$ = this._orgChanged.asObservable();
|
|
34661
|
-
/**
|
|
34662
|
-
* Fires when org data (name, logoUrl, etc.) changes without a full org switch.
|
|
34663
|
-
* Subscribe in the app shell to keep the header org avatar up to date.
|
|
34664
|
-
*/
|
|
34665
|
-
this.orgDataUpdated$ = this._orgDataUpdated.asObservable();
|
|
34666
34652
|
}
|
|
34667
34653
|
/**
|
|
34668
34654
|
* Switch the user's active organization.
|
|
@@ -37169,7 +37155,7 @@ class ToolbarComponent {
|
|
|
37169
37155
|
<!-- experimental -->
|
|
37170
37156
|
<ng-content select="[toolbar-bottom]"></ng-content>
|
|
37171
37157
|
</ion-toolbar>
|
|
37172
|
-
`, 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)}
|
|
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
37159
|
}
|
|
37174
37160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
37175
37161
|
type: Component,
|
|
@@ -37294,7 +37280,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
37294
37280
|
<!-- experimental -->
|
|
37295
37281
|
<ng-content select="[toolbar-bottom]"></ng-content>
|
|
37296
37282
|
</ion-toolbar>
|
|
37297
|
-
`, 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)}
|
|
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
37284
|
}], ctorParameters: () => [{ type: IconService }], propDecorators: { props: [{
|
|
37299
37285
|
type: Input
|
|
37300
37286
|
}], onClick: [{
|
|
@@ -53901,8 +53887,6 @@ const SWITCH_ORG_MODAL_I18N = {
|
|
|
53901
53887
|
es: {
|
|
53902
53888
|
title: 'Cambiar de cuenta',
|
|
53903
53889
|
subtitle: 'Selecciona la organización a la que quieres cambiar.',
|
|
53904
|
-
activeOrgLabel: 'Organización activa',
|
|
53905
|
-
manage: 'Administrar',
|
|
53906
53890
|
searchPlaceholder: 'Buscar organización...',
|
|
53907
53891
|
noResults: 'No se encontraron organizaciones.',
|
|
53908
53892
|
current: 'Actual',
|
|
@@ -53914,8 +53898,6 @@ const SWITCH_ORG_MODAL_I18N = {
|
|
|
53914
53898
|
en: {
|
|
53915
53899
|
title: 'Switch account',
|
|
53916
53900
|
subtitle: 'Select the organization you want to switch to.',
|
|
53917
|
-
activeOrgLabel: 'Active organization',
|
|
53918
|
-
manage: 'Manage',
|
|
53919
53901
|
searchPlaceholder: 'Search organization...',
|
|
53920
53902
|
noResults: 'No organizations found.',
|
|
53921
53903
|
current: 'Active',
|
|
@@ -53977,11 +53959,9 @@ class SwitchOrgModalComponent {
|
|
|
53977
53959
|
const u = this.auth.user();
|
|
53978
53960
|
return u?.activeOrgId ?? u?.activeOrg ?? '';
|
|
53979
53961
|
});
|
|
53980
|
-
this.activeOrg = computed(() => this.orgs().find(o => o.id === this.activeOrgId()) ?? null);
|
|
53981
53962
|
this.filteredOrgs = computed(() => {
|
|
53982
53963
|
const q = this.query().trim().toLowerCase();
|
|
53983
|
-
const
|
|
53984
|
-
const list = this.orgs().filter(o => o.id !== activeId);
|
|
53964
|
+
const list = this.orgs();
|
|
53985
53965
|
if (!q)
|
|
53986
53966
|
return list;
|
|
53987
53967
|
return list.filter(o => o.name.toLowerCase().includes(q));
|
|
@@ -54059,10 +54039,6 @@ class SwitchOrgModalComponent {
|
|
|
54059
54039
|
this.dismiss();
|
|
54060
54040
|
this.onProfileClick?.();
|
|
54061
54041
|
}
|
|
54062
|
-
onManage() {
|
|
54063
|
-
this.dismiss();
|
|
54064
|
-
this.onManageOrg?.();
|
|
54065
|
-
}
|
|
54066
54042
|
onCreateNew() {
|
|
54067
54043
|
this.dismiss();
|
|
54068
54044
|
this.onCreateOrg?.();
|
|
@@ -54074,7 +54050,7 @@ class SwitchOrgModalComponent {
|
|
|
54074
54050
|
return this.i18n.t(key, this.i18nNamespace);
|
|
54075
54051
|
}
|
|
54076
54052
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54077
|
-
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",
|
|
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
54054
|
<ion-header>
|
|
54079
54055
|
<ion-toolbar>
|
|
54080
54056
|
<ion-buttons slot="end">
|
|
@@ -54122,39 +54098,6 @@ class SwitchOrgModalComponent {
|
|
|
54122
54098
|
/>
|
|
54123
54099
|
</div>
|
|
54124
54100
|
|
|
54125
|
-
@if (activeOrg(); as org) {
|
|
54126
|
-
<div class="active-org-card">
|
|
54127
|
-
<div class="org-row__icon">
|
|
54128
|
-
@if (org.logoUrl && !failedLogos().has(org.id)) {
|
|
54129
|
-
<img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
|
|
54130
|
-
} @else {
|
|
54131
|
-
<ion-icon name="business-outline" />
|
|
54132
|
-
}
|
|
54133
|
-
</div>
|
|
54134
|
-
<div class="org-row__body">
|
|
54135
|
-
<span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
|
|
54136
|
-
<span class="org-row__name">{{ org.name }}</span>
|
|
54137
|
-
@if (org.type) {
|
|
54138
|
-
<span class="org-row__type">{{ org.type }}</span>
|
|
54139
|
-
}
|
|
54140
|
-
</div>
|
|
54141
|
-
@if (onManageOrg) {
|
|
54142
|
-
<val-button
|
|
54143
|
-
[props]="{
|
|
54144
|
-
text: t('manage'),
|
|
54145
|
-
color: 'dark',
|
|
54146
|
-
fill: 'solid',
|
|
54147
|
-
shape: 'round',
|
|
54148
|
-
size: 'small',
|
|
54149
|
-
type: 'button',
|
|
54150
|
-
state: 'ENABLED',
|
|
54151
|
-
}"
|
|
54152
|
-
(click)="onManage()"
|
|
54153
|
-
/>
|
|
54154
|
-
}
|
|
54155
|
-
</div>
|
|
54156
|
-
}
|
|
54157
|
-
|
|
54158
54101
|
<div class="switch-section">
|
|
54159
54102
|
<val-searchbar
|
|
54160
54103
|
[props]="{
|
|
@@ -54222,7 +54165,7 @@ class SwitchOrgModalComponent {
|
|
|
54222
54165
|
</div>
|
|
54223
54166
|
}
|
|
54224
54167
|
</ion-content>
|
|
54225
|
-
`, 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;
|
|
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
54169
|
}
|
|
54227
54170
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, decorators: [{
|
|
54228
54171
|
type: Component,
|
|
@@ -54288,39 +54231,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54288
54231
|
/>
|
|
54289
54232
|
</div>
|
|
54290
54233
|
|
|
54291
|
-
@if (activeOrg(); as org) {
|
|
54292
|
-
<div class="active-org-card">
|
|
54293
|
-
<div class="org-row__icon">
|
|
54294
|
-
@if (org.logoUrl && !failedLogos().has(org.id)) {
|
|
54295
|
-
<img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
|
|
54296
|
-
} @else {
|
|
54297
|
-
<ion-icon name="business-outline" />
|
|
54298
|
-
}
|
|
54299
|
-
</div>
|
|
54300
|
-
<div class="org-row__body">
|
|
54301
|
-
<span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
|
|
54302
|
-
<span class="org-row__name">{{ org.name }}</span>
|
|
54303
|
-
@if (org.type) {
|
|
54304
|
-
<span class="org-row__type">{{ org.type }}</span>
|
|
54305
|
-
}
|
|
54306
|
-
</div>
|
|
54307
|
-
@if (onManageOrg) {
|
|
54308
|
-
<val-button
|
|
54309
|
-
[props]="{
|
|
54310
|
-
text: t('manage'),
|
|
54311
|
-
color: 'dark',
|
|
54312
|
-
fill: 'solid',
|
|
54313
|
-
shape: 'round',
|
|
54314
|
-
size: 'small',
|
|
54315
|
-
type: 'button',
|
|
54316
|
-
state: 'ENABLED',
|
|
54317
|
-
}"
|
|
54318
|
-
(click)="onManage()"
|
|
54319
|
-
/>
|
|
54320
|
-
}
|
|
54321
|
-
</div>
|
|
54322
|
-
}
|
|
54323
|
-
|
|
54324
54234
|
<div class="switch-section">
|
|
54325
54235
|
<val-searchbar
|
|
54326
54236
|
[props]="{
|
|
@@ -54388,7 +54298,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54388
54298
|
</div>
|
|
54389
54299
|
}
|
|
54390
54300
|
</ion-content>
|
|
54391
|
-
`, 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;
|
|
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
54302
|
}], ctorParameters: () => [], propDecorators: { _modalRef: [{
|
|
54393
54303
|
type: Input
|
|
54394
54304
|
}], onSuccess: [{
|
|
@@ -54397,8 +54307,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54397
54307
|
type: Input
|
|
54398
54308
|
}], onCreateOrg: [{
|
|
54399
54309
|
type: Input
|
|
54400
|
-
}], onManageOrg: [{
|
|
54401
|
-
type: Input
|
|
54402
54310
|
}], i18nNamespace: [{
|
|
54403
54311
|
type: Input
|
|
54404
54312
|
}] } });
|
|
@@ -54654,7 +54562,6 @@ class OrganizationViewComponent {
|
|
|
54654
54562
|
this.nav = inject(NavigationService);
|
|
54655
54563
|
this.i18n = inject(I18nService);
|
|
54656
54564
|
this.auth = inject(AuthService);
|
|
54657
|
-
this.orgSwitch = inject(OrgSwitchService);
|
|
54658
54565
|
this.orgService = inject(OrgService);
|
|
54659
54566
|
this.toast = inject(ToastService);
|
|
54660
54567
|
this.errors = inject(ValtechErrorService);
|
|
@@ -54908,7 +54815,6 @@ class OrganizationViewComponent {
|
|
|
54908
54815
|
org: this.org(),
|
|
54909
54816
|
onSuccess: (updated) => {
|
|
54910
54817
|
this.org.set(updated);
|
|
54911
|
-
this.orgSwitch.notifyOrgDataUpdated(updated);
|
|
54912
54818
|
this.resolvedConfig().onOrgEdited?.();
|
|
54913
54819
|
},
|
|
54914
54820
|
},
|
|
@@ -55494,7 +55400,7 @@ class OrganizationViewComponent {
|
|
|
55494
55400
|
|
|
55495
55401
|
@if (resolvedConfig().showTransferOwnership && isOwner()) {
|
|
55496
55402
|
<!-- Transfer ownership: solo owner (gating RBAC interno) -->
|
|
55497
|
-
<section class="settings-section
|
|
55403
|
+
<section class="settings-section" data-testid="org-transfer-section">
|
|
55498
55404
|
<div class="section-title-danger">
|
|
55499
55405
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55500
55406
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
|
|
@@ -55528,7 +55434,7 @@ class OrganizationViewComponent {
|
|
|
55528
55434
|
|
|
55529
55435
|
@if (resolvedConfig().showLeave) {
|
|
55530
55436
|
<!-- Leave org -->
|
|
55531
|
-
<section class="settings-section
|
|
55437
|
+
<section class="settings-section">
|
|
55532
55438
|
<div class="section-title-danger">
|
|
55533
55439
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55534
55440
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
|
|
@@ -55551,7 +55457,7 @@ class OrganizationViewComponent {
|
|
|
55551
55457
|
|
|
55552
55458
|
@if (resolvedConfig().showDeleteOrg && isOwner()) {
|
|
55553
55459
|
<!-- Delete org: solo owner, acción más destructiva -->
|
|
55554
|
-
<section class="settings-section
|
|
55460
|
+
<section class="settings-section" data-testid="org-delete-section">
|
|
55555
55461
|
<div class="section-title-danger">
|
|
55556
55462
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55557
55463
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
|
|
@@ -55600,7 +55506,7 @@ class OrganizationViewComponent {
|
|
|
55600
55506
|
(created)="onOrgCreated($event)"
|
|
55601
55507
|
/>
|
|
55602
55508
|
</div>
|
|
55603
|
-
`, 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}
|
|
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
55510
|
}
|
|
55605
55511
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrganizationViewComponent, decorators: [{
|
|
55606
55512
|
type: Component,
|
|
@@ -55821,7 +55727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55821
55727
|
|
|
55822
55728
|
@if (resolvedConfig().showTransferOwnership && isOwner()) {
|
|
55823
55729
|
<!-- Transfer ownership: solo owner (gating RBAC interno) -->
|
|
55824
|
-
<section class="settings-section
|
|
55730
|
+
<section class="settings-section" data-testid="org-transfer-section">
|
|
55825
55731
|
<div class="section-title-danger">
|
|
55826
55732
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55827
55733
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
|
|
@@ -55855,7 +55761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55855
55761
|
|
|
55856
55762
|
@if (resolvedConfig().showLeave) {
|
|
55857
55763
|
<!-- Leave org -->
|
|
55858
|
-
<section class="settings-section
|
|
55764
|
+
<section class="settings-section">
|
|
55859
55765
|
<div class="section-title-danger">
|
|
55860
55766
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55861
55767
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
|
|
@@ -55878,7 +55784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55878
55784
|
|
|
55879
55785
|
@if (resolvedConfig().showDeleteOrg && isOwner()) {
|
|
55880
55786
|
<!-- Delete org: solo owner, acción más destructiva -->
|
|
55881
|
-
<section class="settings-section
|
|
55787
|
+
<section class="settings-section" data-testid="org-delete-section">
|
|
55882
55788
|
<div class="section-title-danger">
|
|
55883
55789
|
<ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
|
|
55884
55790
|
<val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
|
|
@@ -55927,7 +55833,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
55927
55833
|
(created)="onOrgCreated($event)"
|
|
55928
55834
|
/>
|
|
55929
55835
|
</div>
|
|
55930
|
-
`, 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}
|
|
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
55837
|
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
55932
55838
|
type: Input
|
|
55933
55839
|
}] } });
|
|
@@ -61212,6 +61118,8 @@ class PageWrapperComponent {
|
|
|
61212
61118
|
this.contentId = computed(() => this.props()?.contentId || 'page-wrapper');
|
|
61213
61119
|
this.propsFooter = computed(() => this.props()?.footer);
|
|
61214
61120
|
this.contentMaxWidth = computed(() => this.props()?.contentMaxWidth ?? 'fluid');
|
|
61121
|
+
this.menuItems = computed(() => this.props()?.menuItems ?? []);
|
|
61122
|
+
this.hasSideMenu = computed(() => this.menuItems().length > 0);
|
|
61215
61123
|
this.background = computed(() => {
|
|
61216
61124
|
if (this.theme.IsDark) {
|
|
61217
61125
|
return 'var(--ion-background-color)';
|
|
@@ -61280,7 +61188,40 @@ class PageWrapperComponent {
|
|
|
61280
61188
|
}
|
|
61281
61189
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61282
61190
|
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: `
|
|
61283
|
-
|
|
61191
|
+
@if (hasSideMenu()) {
|
|
61192
|
+
<ion-split-pane contentId="val-pw-main" [when]="'md'">
|
|
61193
|
+
<ion-menu contentId="val-pw-main" type="overlay">
|
|
61194
|
+
<ion-content>
|
|
61195
|
+
<ion-list lines="none" class="pw-menu-list">
|
|
61196
|
+
@for (item of menuItems(); track item.route) {
|
|
61197
|
+
<ion-menu-toggle [autoHide]="false">
|
|
61198
|
+
<ion-item
|
|
61199
|
+
[routerLink]="item.route"
|
|
61200
|
+
routerLinkActive="pw-menu-active"
|
|
61201
|
+
[routerLinkActiveOptions]="{ exact: item.exact ?? false }"
|
|
61202
|
+
lines="none"
|
|
61203
|
+
>
|
|
61204
|
+
@if (item.icon) {
|
|
61205
|
+
<ion-icon [name]="item.icon" slot="start" />
|
|
61206
|
+
}
|
|
61207
|
+
<ion-label>{{ item.label }}</ion-label>
|
|
61208
|
+
</ion-item>
|
|
61209
|
+
</ion-menu-toggle>
|
|
61210
|
+
}
|
|
61211
|
+
</ion-list>
|
|
61212
|
+
</ion-content>
|
|
61213
|
+
</ion-menu>
|
|
61214
|
+
<div class="ion-page" id="val-pw-main">
|
|
61215
|
+
<ng-container *ngTemplateOutlet="pageContent" />
|
|
61216
|
+
</div>
|
|
61217
|
+
</ion-split-pane>
|
|
61218
|
+
} @else {
|
|
61219
|
+
<div class="ion-page">
|
|
61220
|
+
<ng-container *ngTemplateOutlet="pageContent" />
|
|
61221
|
+
</div>
|
|
61222
|
+
}
|
|
61223
|
+
|
|
61224
|
+
<ng-template #pageContent>
|
|
61284
61225
|
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61285
61226
|
<ion-content
|
|
61286
61227
|
[id]="contentId()"
|
|
@@ -61311,23 +61252,66 @@ class PageWrapperComponent {
|
|
|
61311
61252
|
<val-company-footer [props]="propsFooter()" />
|
|
61312
61253
|
}
|
|
61313
61254
|
</ion-content>
|
|
61314
|
-
</
|
|
61315
|
-
`, isInline: true, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}\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: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: NetworkBannerComponent, selector: "val-network-banner" }] }); }
|
|
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" }] }); }
|
|
61316
61257
|
}
|
|
61317
61258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, decorators: [{
|
|
61318
61259
|
type: Component,
|
|
61319
61260
|
args: [{ selector: 'val-page-wrapper', standalone: true, imports: [
|
|
61320
61261
|
CommonModule,
|
|
61262
|
+
NgTemplateOutlet,
|
|
61321
61263
|
HeaderComponent,
|
|
61322
61264
|
CompanyFooterComponent,
|
|
61323
61265
|
ContainerComponent,
|
|
61324
61266
|
IonRefresher,
|
|
61325
61267
|
IonRefresherContent,
|
|
61326
61268
|
RouterOutlet,
|
|
61269
|
+
RouterLink,
|
|
61270
|
+
RouterLinkActive,
|
|
61327
61271
|
IonContent,
|
|
61272
|
+
IonSplitPane,
|
|
61273
|
+
IonMenu,
|
|
61274
|
+
IonMenuToggle,
|
|
61275
|
+
IonList,
|
|
61276
|
+
IonItem,
|
|
61277
|
+
IonLabel,
|
|
61278
|
+
IonIcon,
|
|
61328
61279
|
NetworkBannerComponent,
|
|
61329
61280
|
], template: `
|
|
61330
|
-
|
|
61281
|
+
@if (hasSideMenu()) {
|
|
61282
|
+
<ion-split-pane contentId="val-pw-main" [when]="'md'">
|
|
61283
|
+
<ion-menu contentId="val-pw-main" type="overlay">
|
|
61284
|
+
<ion-content>
|
|
61285
|
+
<ion-list lines="none" class="pw-menu-list">
|
|
61286
|
+
@for (item of menuItems(); track item.route) {
|
|
61287
|
+
<ion-menu-toggle [autoHide]="false">
|
|
61288
|
+
<ion-item
|
|
61289
|
+
[routerLink]="item.route"
|
|
61290
|
+
routerLinkActive="pw-menu-active"
|
|
61291
|
+
[routerLinkActiveOptions]="{ exact: item.exact ?? false }"
|
|
61292
|
+
lines="none"
|
|
61293
|
+
>
|
|
61294
|
+
@if (item.icon) {
|
|
61295
|
+
<ion-icon [name]="item.icon" slot="start" />
|
|
61296
|
+
}
|
|
61297
|
+
<ion-label>{{ item.label }}</ion-label>
|
|
61298
|
+
</ion-item>
|
|
61299
|
+
</ion-menu-toggle>
|
|
61300
|
+
}
|
|
61301
|
+
</ion-list>
|
|
61302
|
+
</ion-content>
|
|
61303
|
+
</ion-menu>
|
|
61304
|
+
<div class="ion-page" id="val-pw-main">
|
|
61305
|
+
<ng-container *ngTemplateOutlet="pageContent" />
|
|
61306
|
+
</div>
|
|
61307
|
+
</ion-split-pane>
|
|
61308
|
+
} @else {
|
|
61309
|
+
<div class="ion-page">
|
|
61310
|
+
<ng-container *ngTemplateOutlet="pageContent" />
|
|
61311
|
+
</div>
|
|
61312
|
+
}
|
|
61313
|
+
|
|
61314
|
+
<ng-template #pageContent>
|
|
61331
61315
|
<val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
|
|
61332
61316
|
<ion-content
|
|
61333
61317
|
[id]="contentId()"
|
|
@@ -61358,8 +61342,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
61358
61342
|
<val-company-footer [props]="propsFooter()" />
|
|
61359
61343
|
}
|
|
61360
61344
|
</ion-content>
|
|
61361
|
-
</
|
|
61362
|
-
`, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}\n"] }]
|
|
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"] }]
|
|
61363
61347
|
}], propDecorators: { onHeaderClick: [{
|
|
61364
61348
|
type: Output
|
|
61365
61349
|
}] } });
|
|
@@ -61704,6 +61688,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
61704
61688
|
type: Input
|
|
61705
61689
|
}] } });
|
|
61706
61690
|
|
|
61691
|
+
/**
|
|
61692
|
+
* Servicio para generación de PDFs via el PDF Lambda (/v2/pdf/generate).
|
|
61693
|
+
*
|
|
61694
|
+
* El JWT del usuario se inyecta automáticamente por el authInterceptor
|
|
61695
|
+
* (configurado vía provideValtechAuth). El app-id se toma de ValtechAuthConfig.
|
|
61696
|
+
*
|
|
61697
|
+
* Modos de uso:
|
|
61698
|
+
* - source.template → renderiza una plantilla desde DynamoDB
|
|
61699
|
+
* - source.html → HTML arbitrario provisto por el caller
|
|
61700
|
+
* - source.url → URL pública (Puppeteer la carga)
|
|
61701
|
+
*/
|
|
61702
|
+
class PdfService {
|
|
61703
|
+
constructor(config) {
|
|
61704
|
+
this.config = config;
|
|
61705
|
+
this.http = inject(HttpClient);
|
|
61706
|
+
}
|
|
61707
|
+
get baseUrl() {
|
|
61708
|
+
return `${this.config?.apiUrl ?? ''}/v2/pdf`;
|
|
61709
|
+
}
|
|
61710
|
+
get appIdHeader() {
|
|
61711
|
+
const appId = this.config?.appId;
|
|
61712
|
+
return appId ? { 'x-app-id': appId } : {};
|
|
61713
|
+
}
|
|
61714
|
+
generate(req) {
|
|
61715
|
+
return this.http.post(`${this.baseUrl}/generate`, req, {
|
|
61716
|
+
headers: this.appIdHeader,
|
|
61717
|
+
});
|
|
61718
|
+
}
|
|
61719
|
+
generateAndDownload(req, filename = 'documento.pdf') {
|
|
61720
|
+
return this.generate(req).pipe(switchMap$1(result => from(this._download(result.url, filename))));
|
|
61721
|
+
}
|
|
61722
|
+
async _download(url, filename) {
|
|
61723
|
+
const res = await fetch(url);
|
|
61724
|
+
const blob = await res.blob();
|
|
61725
|
+
const objUrl = URL.createObjectURL(blob);
|
|
61726
|
+
const a = document.createElement('a');
|
|
61727
|
+
a.href = objUrl;
|
|
61728
|
+
a.download = filename;
|
|
61729
|
+
a.click();
|
|
61730
|
+
URL.revokeObjectURL(objUrl);
|
|
61731
|
+
}
|
|
61732
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PdfService, deps: [{ token: VALTECH_AUTH_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
61733
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PdfService, providedIn: 'root' }); }
|
|
61734
|
+
}
|
|
61735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PdfService, decorators: [{
|
|
61736
|
+
type: Injectable,
|
|
61737
|
+
args: [{ providedIn: 'root' }]
|
|
61738
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
61739
|
+
type: Optional
|
|
61740
|
+
}, {
|
|
61741
|
+
type: Inject,
|
|
61742
|
+
args: [VALTECH_AUTH_CONFIG]
|
|
61743
|
+
}] }] });
|
|
61744
|
+
|
|
61707
61745
|
/**
|
|
61708
61746
|
* Clave para persistir el idioma en localStorage
|
|
61709
61747
|
*/
|
|
@@ -66914,431 +66952,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
66914
66952
|
type: Output
|
|
66915
66953
|
}] } });
|
|
66916
66954
|
|
|
66917
|
-
/**
|
|
66918
|
-
* Token de inyeccion para la configuracion del servicio de Reactions.
|
|
66919
|
-
*/
|
|
66920
|
-
const VALTECH_REACTIONS_CONFIG = new InjectionToken('ValtechReactionsConfig');
|
|
66921
|
-
/**
|
|
66922
|
-
* Provee el servicio de reactions a la aplicacion Angular.
|
|
66923
|
-
*
|
|
66924
|
-
* @param config - Configuracion de reactions
|
|
66925
|
-
* @returns EnvironmentProviders para usar en bootstrapApplication
|
|
66926
|
-
*
|
|
66927
|
-
* @example
|
|
66928
|
-
* bootstrapApplication(AppComponent, {
|
|
66929
|
-
* providers: [
|
|
66930
|
-
* provideValtechReactions({ apiUrl: environment.apiUrl, appId: 'my-app' }),
|
|
66931
|
-
* ],
|
|
66932
|
-
* });
|
|
66933
|
-
*/
|
|
66934
|
-
function provideValtechReactions(config) {
|
|
66935
|
-
return makeEnvironmentProviders([{ provide: VALTECH_REACTIONS_CONFIG, useValue: config }]);
|
|
66936
|
-
}
|
|
66937
|
-
|
|
66938
|
-
/**
|
|
66939
|
-
* Servicio para gestionar reacciones emoji configurables por contexto.
|
|
66940
|
-
*
|
|
66941
|
-
* Requiere provideValtechReactions() en el bootstrap de la app.
|
|
66942
|
-
*
|
|
66943
|
-
* @example
|
|
66944
|
-
* const svc = inject(ReactionsService);
|
|
66945
|
-
* svc.react({ entityRef: { entityType: 'post', entityId: '1' }, token: 'heart', appId: 'app' })
|
|
66946
|
-
* .subscribe(res => console.log(res.counts));
|
|
66947
|
-
*/
|
|
66948
|
-
class ReactionsService {
|
|
66949
|
-
constructor() {
|
|
66950
|
-
this.http = inject(HttpClient);
|
|
66951
|
-
this.config = inject(VALTECH_REACTIONS_CONFIG, { optional: true });
|
|
66952
|
-
if (!this.config && isDevMode()) {
|
|
66953
|
-
console.warn('[valtech-components] ReactionsService: provideValtechReactions() no esta en main.ts. ' +
|
|
66954
|
-
'Las reacciones no funcionaran.');
|
|
66955
|
-
}
|
|
66956
|
-
}
|
|
66957
|
-
get apiUrl() {
|
|
66958
|
-
return this.config?.apiUrl ?? '';
|
|
66959
|
-
}
|
|
66960
|
-
get baseUrl() {
|
|
66961
|
-
return `${this.apiUrl}/v2/reactions`;
|
|
66962
|
-
}
|
|
66963
|
-
/**
|
|
66964
|
-
* Toggle reaccion — retorna estado nuevo + conteos actualizados.
|
|
66965
|
-
*/
|
|
66966
|
-
react(req) {
|
|
66967
|
-
if (!this.config)
|
|
66968
|
-
return EMPTY;
|
|
66969
|
-
return this.http.post(this.baseUrl, req);
|
|
66970
|
-
}
|
|
66971
|
-
/**
|
|
66972
|
-
* Conteos + reacciones del usuario para una entidad.
|
|
66973
|
-
*/
|
|
66974
|
-
getCounts(appId, entityType, entityId) {
|
|
66975
|
-
if (!this.config)
|
|
66976
|
-
return EMPTY;
|
|
66977
|
-
const params = new HttpParams()
|
|
66978
|
-
.set('appId', appId)
|
|
66979
|
-
.set('entityType', entityType)
|
|
66980
|
-
.set('entityId', entityId);
|
|
66981
|
-
return this.http.get(`${this.baseUrl}/counts`, { params });
|
|
66982
|
-
}
|
|
66983
|
-
/**
|
|
66984
|
-
* Solo mis tokens activos para una entidad.
|
|
66985
|
-
*/
|
|
66986
|
-
getMyReactions(appId, entityType, entityId) {
|
|
66987
|
-
if (!this.config)
|
|
66988
|
-
return EMPTY;
|
|
66989
|
-
const params = new HttpParams()
|
|
66990
|
-
.set('appId', appId)
|
|
66991
|
-
.set('entityType', entityType)
|
|
66992
|
-
.set('entityId', entityId);
|
|
66993
|
-
return this.http
|
|
66994
|
-
.get(`${this.baseUrl}/mine`, { params })
|
|
66995
|
-
.pipe(map(res => res.tokens));
|
|
66996
|
-
}
|
|
66997
|
-
/**
|
|
66998
|
-
* Obtener un set de reacciones por ID.
|
|
66999
|
-
*/
|
|
67000
|
-
getSet(setId) {
|
|
67001
|
-
if (!this.config)
|
|
67002
|
-
return EMPTY;
|
|
67003
|
-
return this.http.get(`${this.baseUrl}/sets/${setId}`);
|
|
67004
|
-
}
|
|
67005
|
-
/**
|
|
67006
|
-
* Listar todos los sets disponibles para una app.
|
|
67007
|
-
*/
|
|
67008
|
-
listSets(appId) {
|
|
67009
|
-
if (!this.config)
|
|
67010
|
-
return EMPTY;
|
|
67011
|
-
const params = new HttpParams().set('appId', appId);
|
|
67012
|
-
return this.http.get(`${this.baseUrl}/sets`, { params });
|
|
67013
|
-
}
|
|
67014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
67015
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, providedIn: 'root' }); }
|
|
67016
|
-
}
|
|
67017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, decorators: [{
|
|
67018
|
-
type: Injectable,
|
|
67019
|
-
args: [{ providedIn: 'root' }]
|
|
67020
|
-
}], ctorParameters: () => [] });
|
|
67021
|
-
|
|
67022
|
-
const REACTION_BAR_I18N = {
|
|
67023
|
-
es: {
|
|
67024
|
-
loading: 'Cargando reacciones...',
|
|
67025
|
-
addReaction: 'Agregar reaccion',
|
|
67026
|
-
close: 'Cerrar',
|
|
67027
|
-
errorLoading: 'Error al cargar reacciones.',
|
|
67028
|
-
},
|
|
67029
|
-
en: {
|
|
67030
|
-
loading: 'Loading reactions...',
|
|
67031
|
-
addReaction: 'Add reaction',
|
|
67032
|
-
close: 'Close',
|
|
67033
|
-
errorLoading: 'Failed to load reactions.',
|
|
67034
|
-
},
|
|
67035
|
-
};
|
|
67036
|
-
/**
|
|
67037
|
-
* Barra de reacciones emoji configurables por contexto.
|
|
67038
|
-
*
|
|
67039
|
-
* Muestra un set de emojis y permite al usuario reaccionar a una entidad.
|
|
67040
|
-
* Soporta conteos, multiples reacciones y modo picker (popup).
|
|
67041
|
-
*
|
|
67042
|
-
* @example
|
|
67043
|
-
* html
|
|
67044
|
-
* <val-reaction-bar
|
|
67045
|
-
* [props]="{
|
|
67046
|
-
* entityRef: { entityType: 'post', entityId: 'p1' },
|
|
67047
|
-
* reactionSet: mySet,
|
|
67048
|
-
* showCounts: true
|
|
67049
|
-
* }"
|
|
67050
|
-
* (reactionChange)="onReaction($event)"
|
|
67051
|
-
* />
|
|
67052
|
-
*/
|
|
67053
|
-
class ReactionBarComponent {
|
|
67054
|
-
constructor() {
|
|
67055
|
-
this.reactionChange = new EventEmitter();
|
|
67056
|
-
this.reactionsService = inject(ReactionsService);
|
|
67057
|
-
this.i18n = inject(I18nService);
|
|
67058
|
-
this.reactionSet = signal(null);
|
|
67059
|
-
this.myReactions = signal([]);
|
|
67060
|
-
this.counts = signal({});
|
|
67061
|
-
this.isLoading = signal(true);
|
|
67062
|
-
this.pickerOpen = signal(false);
|
|
67063
|
-
this.enrichedReactions = computed(() => {
|
|
67064
|
-
const set = this.reactionSet();
|
|
67065
|
-
if (!set)
|
|
67066
|
-
return [];
|
|
67067
|
-
const my = this.myReactions();
|
|
67068
|
-
const c = this.counts();
|
|
67069
|
-
return [...set.reactions]
|
|
67070
|
-
.sort((a, b) => a.order - b.order)
|
|
67071
|
-
.map(r => ({
|
|
67072
|
-
...r,
|
|
67073
|
-
count: c[r.token] ?? 0,
|
|
67074
|
-
active: my.includes(r.token),
|
|
67075
|
-
}));
|
|
67076
|
-
});
|
|
67077
|
-
this.i18n.registerDefaults('ReactionBar', REACTION_BAR_I18N);
|
|
67078
|
-
}
|
|
67079
|
-
ngOnInit() {
|
|
67080
|
-
if (this.props.initialCounts) {
|
|
67081
|
-
this.counts.set(this.props.initialCounts);
|
|
67082
|
-
}
|
|
67083
|
-
if (this.props.initialMyReactions) {
|
|
67084
|
-
this.myReactions.set(this.props.initialMyReactions);
|
|
67085
|
-
}
|
|
67086
|
-
if (this.props.reactionSet) {
|
|
67087
|
-
this.reactionSet.set(this.props.reactionSet);
|
|
67088
|
-
this.isLoading.set(false);
|
|
67089
|
-
if (!this.props.skipInitialLoad && !this.props.initialCounts) {
|
|
67090
|
-
void this.loadCounts();
|
|
67091
|
-
}
|
|
67092
|
-
return;
|
|
67093
|
-
}
|
|
67094
|
-
if (this.props.reactionSetId) {
|
|
67095
|
-
void this.loadSetAndCounts(this.props.reactionSetId);
|
|
67096
|
-
return;
|
|
67097
|
-
}
|
|
67098
|
-
this.isLoading.set(false);
|
|
67099
|
-
}
|
|
67100
|
-
async loadSetAndCounts(setId) {
|
|
67101
|
-
this.isLoading.set(true);
|
|
67102
|
-
try {
|
|
67103
|
-
const set = await firstValueFrom(this.reactionsService.getSet(setId));
|
|
67104
|
-
this.reactionSet.set(set);
|
|
67105
|
-
if (!this.props.skipInitialLoad && !this.props.initialCounts) {
|
|
67106
|
-
await this.loadCounts();
|
|
67107
|
-
}
|
|
67108
|
-
}
|
|
67109
|
-
catch (err) {
|
|
67110
|
-
console.error('[ReactionBarComponent] Error loading reaction set:', err);
|
|
67111
|
-
}
|
|
67112
|
-
finally {
|
|
67113
|
-
this.isLoading.set(false);
|
|
67114
|
-
}
|
|
67115
|
-
}
|
|
67116
|
-
async loadCounts() {
|
|
67117
|
-
const appId = this.props.appId ?? '';
|
|
67118
|
-
const { entityType, entityId } = this.props.entityRef;
|
|
67119
|
-
try {
|
|
67120
|
-
const res = await firstValueFrom(this.reactionsService.getCounts(appId, entityType, entityId));
|
|
67121
|
-
this.counts.set(res.counts);
|
|
67122
|
-
if (!this.props.initialMyReactions) {
|
|
67123
|
-
this.myReactions.set(res.myReactions);
|
|
67124
|
-
}
|
|
67125
|
-
}
|
|
67126
|
-
catch (err) {
|
|
67127
|
-
console.error('[ReactionBarComponent] Error loading counts:', err);
|
|
67128
|
-
}
|
|
67129
|
-
}
|
|
67130
|
-
onReact(token) {
|
|
67131
|
-
if (this.props.readonly)
|
|
67132
|
-
return;
|
|
67133
|
-
void this.handleReact(token);
|
|
67134
|
-
}
|
|
67135
|
-
onReactAndClosePicker(token) {
|
|
67136
|
-
this.pickerOpen.set(false);
|
|
67137
|
-
this.onReact(token);
|
|
67138
|
-
}
|
|
67139
|
-
togglePicker() {
|
|
67140
|
-
this.pickerOpen.update(v => !v);
|
|
67141
|
-
}
|
|
67142
|
-
async handleReact(token) {
|
|
67143
|
-
const appId = this.props.appId ?? '';
|
|
67144
|
-
const { entityType, entityId } = this.props.entityRef;
|
|
67145
|
-
const maxReactions = this.props.maxReactions ?? 1;
|
|
67146
|
-
const currentMy = this.myReactions();
|
|
67147
|
-
const isActive = currentMy.includes(token);
|
|
67148
|
-
let newMyReactions;
|
|
67149
|
-
if (isActive) {
|
|
67150
|
-
newMyReactions = currentMy.filter(t => t !== token);
|
|
67151
|
-
}
|
|
67152
|
-
else if (maxReactions === 1) {
|
|
67153
|
-
newMyReactions = [token];
|
|
67154
|
-
}
|
|
67155
|
-
else if (maxReactions === 0 || currentMy.length < maxReactions) {
|
|
67156
|
-
newMyReactions = [...currentMy, token];
|
|
67157
|
-
}
|
|
67158
|
-
else {
|
|
67159
|
-
newMyReactions = currentMy;
|
|
67160
|
-
}
|
|
67161
|
-
const prevCounts = this.counts();
|
|
67162
|
-
const optimisticCounts = { ...prevCounts };
|
|
67163
|
-
if (isActive) {
|
|
67164
|
-
optimisticCounts[token] = Math.max(0, (optimisticCounts[token] ?? 1) - 1);
|
|
67165
|
-
}
|
|
67166
|
-
else {
|
|
67167
|
-
optimisticCounts[token] = (optimisticCounts[token] ?? 0) + 1;
|
|
67168
|
-
if (maxReactions === 1 && currentMy.length > 0) {
|
|
67169
|
-
const removed = currentMy[0];
|
|
67170
|
-
optimisticCounts[removed] = Math.max(0, (optimisticCounts[removed] ?? 1) - 1);
|
|
67171
|
-
}
|
|
67172
|
-
}
|
|
67173
|
-
this.myReactions.set(newMyReactions);
|
|
67174
|
-
this.counts.set(optimisticCounts);
|
|
67175
|
-
try {
|
|
67176
|
-
const res = await firstValueFrom(this.reactionsService.react({ entityRef: { entityType, entityId }, token, appId }));
|
|
67177
|
-
this.counts.set(res.counts);
|
|
67178
|
-
if (!res.active) {
|
|
67179
|
-
this.myReactions.set(this.myReactions().filter(t => t !== token));
|
|
67180
|
-
}
|
|
67181
|
-
else if (!this.myReactions().includes(token)) {
|
|
67182
|
-
this.myReactions.update(arr => [...arr, token]);
|
|
67183
|
-
}
|
|
67184
|
-
this.reactionChange.emit({
|
|
67185
|
-
token,
|
|
67186
|
-
active: res.active,
|
|
67187
|
-
entityRef: { entityType, entityId },
|
|
67188
|
-
counts: res.counts,
|
|
67189
|
-
});
|
|
67190
|
-
}
|
|
67191
|
-
catch (err) {
|
|
67192
|
-
console.error('[ReactionBarComponent] Error reacting:', err);
|
|
67193
|
-
this.myReactions.set(currentMy);
|
|
67194
|
-
this.counts.set(prevCounts);
|
|
67195
|
-
}
|
|
67196
|
-
}
|
|
67197
|
-
t(key) {
|
|
67198
|
-
return this.i18n.t(key, 'ReactionBar') || key;
|
|
67199
|
-
}
|
|
67200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
67201
|
-
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: `
|
|
67202
|
-
<div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
|
|
67203
|
-
@if (isLoading()) {
|
|
67204
|
-
<div class="reaction-skeleton" aria-hidden="true">
|
|
67205
|
-
<span class="skeleton-circle"></span>
|
|
67206
|
-
<span class="skeleton-circle"></span>
|
|
67207
|
-
<span class="skeleton-circle"></span>
|
|
67208
|
-
</div>
|
|
67209
|
-
} @else {
|
|
67210
|
-
@for (r of enrichedReactions(); track r.token) {
|
|
67211
|
-
<button
|
|
67212
|
-
type="button"
|
|
67213
|
-
class="reaction-btn"
|
|
67214
|
-
[class.active]="r.active"
|
|
67215
|
-
[disabled]="props.readonly"
|
|
67216
|
-
[attr.aria-label]="r.label"
|
|
67217
|
-
[attr.aria-pressed]="r.active"
|
|
67218
|
-
(click)="onReact(r.token)"
|
|
67219
|
-
>
|
|
67220
|
-
<span class="emoji">{{ r.emoji }}</span>
|
|
67221
|
-
@if (props.showCounts && r.count > 0) {
|
|
67222
|
-
<span class="count">{{ r.count }}</span>
|
|
67223
|
-
}
|
|
67224
|
-
</button>
|
|
67225
|
-
}
|
|
67226
|
-
@if (props.layout === 'picker' && !pickerOpen()) {
|
|
67227
|
-
<button
|
|
67228
|
-
type="button"
|
|
67229
|
-
class="reaction-btn reaction-btn--add"
|
|
67230
|
-
[disabled]="props.readonly"
|
|
67231
|
-
[attr.aria-label]="t('addReaction')"
|
|
67232
|
-
(click)="togglePicker()"
|
|
67233
|
-
>
|
|
67234
|
-
<span class="emoji">+</span>
|
|
67235
|
-
</button>
|
|
67236
|
-
}
|
|
67237
|
-
@if (props.layout === 'picker' && pickerOpen()) {
|
|
67238
|
-
<div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
|
|
67239
|
-
@for (r of enrichedReactions(); track r.token) {
|
|
67240
|
-
<button
|
|
67241
|
-
type="button"
|
|
67242
|
-
class="reaction-btn"
|
|
67243
|
-
[class.active]="r.active"
|
|
67244
|
-
[attr.aria-label]="r.label"
|
|
67245
|
-
[attr.aria-pressed]="r.active"
|
|
67246
|
-
(click)="onReactAndClosePicker(r.token)"
|
|
67247
|
-
>
|
|
67248
|
-
<span class="emoji">{{ r.emoji }}</span>
|
|
67249
|
-
@if (props.showCounts && r.count > 0) {
|
|
67250
|
-
<span class="count">{{ r.count }}</span>
|
|
67251
|
-
}
|
|
67252
|
-
</button>
|
|
67253
|
-
}
|
|
67254
|
-
<button
|
|
67255
|
-
type="button"
|
|
67256
|
-
class="reaction-btn reaction-btn--close"
|
|
67257
|
-
[attr.aria-label]="t('close')"
|
|
67258
|
-
(click)="togglePicker()"
|
|
67259
|
-
>
|
|
67260
|
-
<span class="emoji">x</span>
|
|
67261
|
-
</button>
|
|
67262
|
-
</div>
|
|
67263
|
-
}
|
|
67264
|
-
}
|
|
67265
|
-
</div>
|
|
67266
|
-
`, 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 }); }
|
|
67267
|
-
}
|
|
67268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, decorators: [{
|
|
67269
|
-
type: Component,
|
|
67270
|
-
args: [{ selector: 'val-reaction-bar', standalone: true, imports: [CommonModule], template: `
|
|
67271
|
-
<div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
|
|
67272
|
-
@if (isLoading()) {
|
|
67273
|
-
<div class="reaction-skeleton" aria-hidden="true">
|
|
67274
|
-
<span class="skeleton-circle"></span>
|
|
67275
|
-
<span class="skeleton-circle"></span>
|
|
67276
|
-
<span class="skeleton-circle"></span>
|
|
67277
|
-
</div>
|
|
67278
|
-
} @else {
|
|
67279
|
-
@for (r of enrichedReactions(); track r.token) {
|
|
67280
|
-
<button
|
|
67281
|
-
type="button"
|
|
67282
|
-
class="reaction-btn"
|
|
67283
|
-
[class.active]="r.active"
|
|
67284
|
-
[disabled]="props.readonly"
|
|
67285
|
-
[attr.aria-label]="r.label"
|
|
67286
|
-
[attr.aria-pressed]="r.active"
|
|
67287
|
-
(click)="onReact(r.token)"
|
|
67288
|
-
>
|
|
67289
|
-
<span class="emoji">{{ r.emoji }}</span>
|
|
67290
|
-
@if (props.showCounts && r.count > 0) {
|
|
67291
|
-
<span class="count">{{ r.count }}</span>
|
|
67292
|
-
}
|
|
67293
|
-
</button>
|
|
67294
|
-
}
|
|
67295
|
-
@if (props.layout === 'picker' && !pickerOpen()) {
|
|
67296
|
-
<button
|
|
67297
|
-
type="button"
|
|
67298
|
-
class="reaction-btn reaction-btn--add"
|
|
67299
|
-
[disabled]="props.readonly"
|
|
67300
|
-
[attr.aria-label]="t('addReaction')"
|
|
67301
|
-
(click)="togglePicker()"
|
|
67302
|
-
>
|
|
67303
|
-
<span class="emoji">+</span>
|
|
67304
|
-
</button>
|
|
67305
|
-
}
|
|
67306
|
-
@if (props.layout === 'picker' && pickerOpen()) {
|
|
67307
|
-
<div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
|
|
67308
|
-
@for (r of enrichedReactions(); track r.token) {
|
|
67309
|
-
<button
|
|
67310
|
-
type="button"
|
|
67311
|
-
class="reaction-btn"
|
|
67312
|
-
[class.active]="r.active"
|
|
67313
|
-
[attr.aria-label]="r.label"
|
|
67314
|
-
[attr.aria-pressed]="r.active"
|
|
67315
|
-
(click)="onReactAndClosePicker(r.token)"
|
|
67316
|
-
>
|
|
67317
|
-
<span class="emoji">{{ r.emoji }}</span>
|
|
67318
|
-
@if (props.showCounts && r.count > 0) {
|
|
67319
|
-
<span class="count">{{ r.count }}</span>
|
|
67320
|
-
}
|
|
67321
|
-
</button>
|
|
67322
|
-
}
|
|
67323
|
-
<button
|
|
67324
|
-
type="button"
|
|
67325
|
-
class="reaction-btn reaction-btn--close"
|
|
67326
|
-
[attr.aria-label]="t('close')"
|
|
67327
|
-
(click)="togglePicker()"
|
|
67328
|
-
>
|
|
67329
|
-
<span class="emoji">x</span>
|
|
67330
|
-
</button>
|
|
67331
|
-
</div>
|
|
67332
|
-
}
|
|
67333
|
-
}
|
|
67334
|
-
</div>
|
|
67335
|
-
`, 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"] }]
|
|
67336
|
-
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
67337
|
-
type: Input
|
|
67338
|
-
}], reactionChange: [{
|
|
67339
|
-
type: Output
|
|
67340
|
-
}] } });
|
|
67341
|
-
|
|
67342
66955
|
const DEFAULT_SPLASH_SCREEN_CONFIG = {
|
|
67343
66956
|
fadeOutDuration: 300,
|
|
67344
66957
|
};
|
|
@@ -71760,5 +71373,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
71760
71373
|
* Generated bundle index. Do not edit.
|
|
71761
71374
|
*/
|
|
71762
71375
|
|
|
71763
|
-
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, 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 };
|
|
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 };
|
|
71764
71377
|
//# sourceMappingURL=valtech-components.mjs.map
|