tin-spa 20.6.8 → 20.7.0
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/fesm2022/tin-spa.mjs +171 -70
- package/fesm2022/tin-spa.mjs.map +1 -1
- package/index.d.ts +37 -7
- package/package.json +4 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, TemplateRef, ViewContainerRef, OnChanges, SimpleChanges, EventEmitter, AfterViewInit, PipeTransform, ElementRef, AfterViewChecked, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { InjectionToken, EnvironmentProviders, OnInit, OnDestroy, TemplateRef, ViewContainerRef, OnChanges, SimpleChanges, EventEmitter, AfterViewInit, PipeTransform, ElementRef, AfterViewChecked, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as i12 from '@angular/material/snack-bar';
|
|
4
4
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
5
5
|
import * as i11 from '@angular/material/dialog';
|
|
@@ -12,6 +12,9 @@ import * as i62 from '@angular/common/http';
|
|
|
12
12
|
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
13
13
|
import * as i7$1 from '@abacritt/angularx-social-login';
|
|
14
14
|
import { SocialUser, SocialAuthService } from '@abacritt/angularx-social-login';
|
|
15
|
+
import * as i4 from '@angular/common';
|
|
16
|
+
import { PlatformLocation, LocationStrategy, DecimalPipe, Location } from '@angular/common';
|
|
17
|
+
import { IPublicClientApplication } from '@azure/msal-browser';
|
|
15
18
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
16
19
|
import { SwUpdate } from '@angular/service-worker';
|
|
17
20
|
import * as tin_spa from 'tin-spa';
|
|
@@ -31,8 +34,6 @@ import { MatChipInputEvent } from '@angular/material/chips';
|
|
|
31
34
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
32
35
|
import * as i66 from '@angular/cdk/drag-drop';
|
|
33
36
|
import { CdkDragEnter, CdkDragExit, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
34
|
-
import * as i4 from '@angular/common';
|
|
35
|
-
import { DecimalPipe, Location } from '@angular/common';
|
|
36
37
|
import * as i3$1 from '@angular/material/menu';
|
|
37
38
|
import * as i4$1 from '@angular/material/slider';
|
|
38
39
|
import * as i7 from '@angular/material/checkbox';
|
|
@@ -472,6 +473,30 @@ declare class HttpService {
|
|
|
472
473
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
473
474
|
}
|
|
474
475
|
|
|
476
|
+
interface TinSpaMsalConfig {
|
|
477
|
+
clientId: string;
|
|
478
|
+
authority: string;
|
|
479
|
+
redirectUri: string;
|
|
480
|
+
}
|
|
481
|
+
interface TinSpaRuntimeConfig {
|
|
482
|
+
/** Use path routing (/home) instead of hash routing (/#/home). Default false (hash). */
|
|
483
|
+
pathRouting: boolean;
|
|
484
|
+
/** Enable real-time (SignalR) features. Default false (disabled). */
|
|
485
|
+
realTime: boolean;
|
|
486
|
+
/** Enable Microsoft SSO (MSAL). Only activates in a secure context (HTTPS/localhost). Default false. */
|
|
487
|
+
microsoftAuth: boolean;
|
|
488
|
+
/** MSAL credentials — required only when microsoftAuth is used. */
|
|
489
|
+
msal?: TinSpaMsalConfig;
|
|
490
|
+
}
|
|
491
|
+
declare const TIN_SPA_RUNTIME_CONFIG: InjectionToken<TinSpaRuntimeConfig>;
|
|
492
|
+
declare function tinSpaLocationStrategyFactory(platformLocation: PlatformLocation, baseHref: string, config: TinSpaRuntimeConfig): LocationStrategy;
|
|
493
|
+
declare function tinSpaMsalInstanceFactory(config: TinSpaRuntimeConfig): IPublicClientApplication;
|
|
494
|
+
/**
|
|
495
|
+
* Wires up tin-spa runtime behaviours (routing strategy, real-time, MSAL) from a single config.
|
|
496
|
+
* Add the result to your AppModule (or bootstrap) providers.
|
|
497
|
+
*/
|
|
498
|
+
declare function provideTinSpaRuntime(config: Partial<TinSpaRuntimeConfig>): EnvironmentProviders;
|
|
499
|
+
|
|
475
500
|
interface EntityChangeEvent {
|
|
476
501
|
entityName: string;
|
|
477
502
|
data: any;
|
|
@@ -483,6 +508,7 @@ interface NotificationEvent {
|
|
|
483
508
|
sender: string;
|
|
484
509
|
}
|
|
485
510
|
declare class SignalRService {
|
|
511
|
+
private runtimeConfig;
|
|
486
512
|
private hubConnection;
|
|
487
513
|
private notificationCount;
|
|
488
514
|
notificationCount$: rxjs.Observable<number>;
|
|
@@ -503,10 +529,13 @@ declare class SignalRService {
|
|
|
503
529
|
private dataHubConnected;
|
|
504
530
|
dataHubConnected$: rxjs.Observable<boolean>;
|
|
505
531
|
private currentToken;
|
|
532
|
+
constructor(runtimeConfig: TinSpaRuntimeConfig | null);
|
|
533
|
+
/** Effective real-time enablement: legacy E2E kill-switch wins, else the configured runtime flag. */
|
|
534
|
+
private realTimeEnabled;
|
|
506
535
|
startConnection(hubUrl: string, token: string): void;
|
|
507
536
|
updateToken(token: string): void;
|
|
508
537
|
stopConnection(): void;
|
|
509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SignalRService,
|
|
538
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignalRService, [{ optional: true; }]>;
|
|
510
539
|
static ɵprov: i0.ɵɵInjectableDeclaration<SignalRService>;
|
|
511
540
|
}
|
|
512
541
|
|
|
@@ -1074,7 +1103,7 @@ declare class AppConfig {
|
|
|
1074
1103
|
selfService: boolean;
|
|
1075
1104
|
capItems: CapItem[];
|
|
1076
1105
|
multitenant: boolean;
|
|
1077
|
-
navigation: 'top' | 'side' | 'side-modern';
|
|
1106
|
+
navigation: 'top' | 'side' | 'side-modern' | 'top-modern';
|
|
1078
1107
|
progressLine: boolean;
|
|
1079
1108
|
docsBaseUrl: string;
|
|
1080
1109
|
loginStyle: string;
|
|
@@ -1086,6 +1115,7 @@ declare class AppConfig {
|
|
|
1086
1115
|
navWidth: string;
|
|
1087
1116
|
navColor: string;
|
|
1088
1117
|
navImage: string;
|
|
1118
|
+
keepSignedIn: boolean;
|
|
1089
1119
|
}
|
|
1090
1120
|
|
|
1091
1121
|
declare class DataServiceLib {
|
|
@@ -4861,5 +4891,5 @@ declare class SpaHomeModule {
|
|
|
4861
4891
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpaHomeModule>;
|
|
4862
4892
|
}
|
|
4863
4893
|
|
|
4864
|
-
export { ALSQUARE_SVG_DARK, ALSQUARE_SVG_WHITE, Account, AccountsComponent as AccountingAccountsComponent, AggregatesComponent as AccountingAggregatesComponent, AgingComponent as AccountingAgingComponent, CurrenciesComponent as AccountingCurrenciesComponent, AccountingDashboardComponent, InvoicesComponent as AccountingInvoicesComponent, AccountingModule, ReportsComponent as AccountingReportsComponent, AccountingService, StatementComponent as AccountingStatementComponent, TransactionTypesComponent as AccountingTransactionTypesComponent, TransactionsComponent as AccountingTransactionsComponent, Action, ActivityComponent, AdminModule, AgentComponent, AgentService, AlertComponent, AlertConfig, AlertMessage, AnalyticsService, ApiResponse, AppConfig, AppModelsComponent, AssetStatus, AssetsService, AttachComponent, AuthService, BillingPageComponent, BrandsComponent, CacheConfig, CapItem, CapsulesComponent, CategoriesComponent, ChangePasswordComponent, ChangeUserPassword, ChartConfig, ChartsComponent, CheckComponent, ChipsComponent, Constants, Core, CreateAccountComponent, CustomersComponent, DataServiceLib, DateComponent, DatetimeComponent, DepartmentsComponent, DetailsDialog, DetailsDialogConfig, DetailsDialogProcessor, DetailsSource, DialogService, EmailComponent, EmployeesComponent, ExportService, FeatureDirective, FilterComponent, FormComponent, FormConfig, GeneralModule, GeneralService, GradesComponent, GroupsComponent, HRModule, HtmlComponent, HttpService, IndexModule, InventoryDashboardComponent, InventoryModule, InventoryService, InvitationsTableComponent, InvoiceDashboardComponent, InvoiceItemType, InvoiceStatus, LabelComponent, ListDialogComponent, ListDialogConfig, LoaderComponent, LoaderService, LoanPaymentsComponent, LoanProductsComponent, LoansComponent, LoansModule, LoansService, LogLevel, LogService, LoginComponent, LogsComponent, ManufacturingModule, MembershipComponent, MessageService, MoneyComponent, MovementType, NavMenuComponent, NotesComponent, NotesConfig, NotificationsService, NumberComponent, OnboardingComponent, OptionComponent, OverviewDashboardComponent, OverviewModule, PageComponent, PageConfig, PayrollDashboardComponent, PayrollModule, PlansComponent, PositionsComponent, PreferencesComponent, PrivacyDialogComponent, Profile, ProfileComponent, PurchaseStatus, PurchasingDashboardComponent, PurchasingModule, PushNotificationService, ReceiptStatus, RecoverAccountComponent, Register, Role, RoleAccess, RolesComponent, SalesDashboardComponent, SalesModule, SearchComponent, SearchConfig, SecurityConfig, SelectBitwiseComponent, SelectComponent, SelectLiteComponent, SelectMultiComponent, SettingsComponent, SignupComponent, SignupData, SpaAdminModule, SpaHomeModule, SpaIndexModule, SpaLandingComponent, SpaMatModule, SpaUserModule, StatusesComponent, Step, StepConfig, StepsComponent, StorageService, SubCategoriesComponent, SubscriptionPageComponent, SubscriptionService, SuppliersComponent, TabService, TableComponent, TableConfig, TabsComponent, TasksComponent, TenancyModule, TenantsComponent, TermsDialogComponent, TextAreaComponent, TextComponent, TextMaskComponent, TextMultiComponent, TextSingleComponent, TileConfig, TilesComponent, TinSpaComponent, TinSpaModule, TinSpaService, TitleActionsComponent, TransactionTiming, UnitOfMeasure, UpdateService, User, UserModule, UsersComponent, ViewerComponent, WelcomeComponent, WorkflowModule, authGuard, dialogOptions, featureGuard, loginConfig, messageDialog, viewerDialog };
|
|
4865
|
-
export type { AgentMessage, AutoRefreshConfig, BitwiseOption, Button, CacheRule, CapsuleConfig, CardConfig, ChartItem, ChildField, CloseOptions, Color, Column, Confirm, ConversationSummary, Field, GroupConfig, GroupData, Icon, LandingBrandOverride, LandingColors, LandingConfig, LandingFeature, LandingFooterColumn, LandingFooterLink, LandingMetric, LandingModuleGroup, LandingModuleTile, LandingNavLink, LandingPricingPlan, LandingSecurityItem, LandingStep, LandingTestimonial, SearchField, SpaChartType, StatusConfig, StatusItem, StatusState, TableViewType, Tile, TileChartConfig, TileChartType, TileStyle, VisibleTab };
|
|
4894
|
+
export { ALSQUARE_SVG_DARK, ALSQUARE_SVG_WHITE, Account, AccountsComponent as AccountingAccountsComponent, AggregatesComponent as AccountingAggregatesComponent, AgingComponent as AccountingAgingComponent, CurrenciesComponent as AccountingCurrenciesComponent, AccountingDashboardComponent, InvoicesComponent as AccountingInvoicesComponent, AccountingModule, ReportsComponent as AccountingReportsComponent, AccountingService, StatementComponent as AccountingStatementComponent, TransactionTypesComponent as AccountingTransactionTypesComponent, TransactionsComponent as AccountingTransactionsComponent, Action, ActivityComponent, AdminModule, AgentComponent, AgentService, AlertComponent, AlertConfig, AlertMessage, AnalyticsService, ApiResponse, AppConfig, AppModelsComponent, AssetStatus, AssetsService, AttachComponent, AuthService, BillingPageComponent, BrandsComponent, CacheConfig, CapItem, CapsulesComponent, CategoriesComponent, ChangePasswordComponent, ChangeUserPassword, ChartConfig, ChartsComponent, CheckComponent, ChipsComponent, Constants, Core, CreateAccountComponent, CustomersComponent, DataServiceLib, DateComponent, DatetimeComponent, DepartmentsComponent, DetailsDialog, DetailsDialogConfig, DetailsDialogProcessor, DetailsSource, DialogService, EmailComponent, EmployeesComponent, ExportService, FeatureDirective, FilterComponent, FormComponent, FormConfig, GeneralModule, GeneralService, GradesComponent, GroupsComponent, HRModule, HtmlComponent, HttpService, IndexModule, InventoryDashboardComponent, InventoryModule, InventoryService, InvitationsTableComponent, InvoiceDashboardComponent, InvoiceItemType, InvoiceStatus, LabelComponent, ListDialogComponent, ListDialogConfig, LoaderComponent, LoaderService, LoanPaymentsComponent, LoanProductsComponent, LoansComponent, LoansModule, LoansService, LogLevel, LogService, LoginComponent, LogsComponent, ManufacturingModule, MembershipComponent, MessageService, MoneyComponent, MovementType, NavMenuComponent, NotesComponent, NotesConfig, NotificationsService, NumberComponent, OnboardingComponent, OptionComponent, OverviewDashboardComponent, OverviewModule, PageComponent, PageConfig, PayrollDashboardComponent, PayrollModule, PlansComponent, PositionsComponent, PreferencesComponent, PrivacyDialogComponent, Profile, ProfileComponent, PurchaseStatus, PurchasingDashboardComponent, PurchasingModule, PushNotificationService, ReceiptStatus, RecoverAccountComponent, Register, Role, RoleAccess, RolesComponent, SalesDashboardComponent, SalesModule, SearchComponent, SearchConfig, SecurityConfig, SelectBitwiseComponent, SelectComponent, SelectLiteComponent, SelectMultiComponent, SettingsComponent, SignupComponent, SignupData, SpaAdminModule, SpaHomeModule, SpaIndexModule, SpaLandingComponent, SpaMatModule, SpaUserModule, StatusesComponent, Step, StepConfig, StepsComponent, StorageService, SubCategoriesComponent, SubscriptionPageComponent, SubscriptionService, SuppliersComponent, TIN_SPA_RUNTIME_CONFIG, TabService, TableComponent, TableConfig, TabsComponent, TasksComponent, TenancyModule, TenantsComponent, TermsDialogComponent, TextAreaComponent, TextComponent, TextMaskComponent, TextMultiComponent, TextSingleComponent, TileConfig, TilesComponent, TinSpaComponent, TinSpaModule, TinSpaService, TitleActionsComponent, TransactionTiming, UnitOfMeasure, UpdateService, User, UserModule, UsersComponent, ViewerComponent, WelcomeComponent, WorkflowModule, authGuard, dialogOptions, featureGuard, loginConfig, messageDialog, provideTinSpaRuntime, tinSpaLocationStrategyFactory, tinSpaMsalInstanceFactory, viewerDialog };
|
|
4895
|
+
export type { AgentMessage, AutoRefreshConfig, BitwiseOption, Button, CacheRule, CapsuleConfig, CardConfig, ChartItem, ChildField, CloseOptions, Color, Column, Confirm, ConversationSummary, Field, GroupConfig, GroupData, Icon, LandingBrandOverride, LandingColors, LandingConfig, LandingFeature, LandingFooterColumn, LandingFooterLink, LandingMetric, LandingModuleGroup, LandingModuleTile, LandingNavLink, LandingPricingPlan, LandingSecurityItem, LandingStep, LandingTestimonial, SearchField, SpaChartType, StatusConfig, StatusItem, StatusState, TableViewType, Tile, TileChartConfig, TileChartType, TileStyle, TinSpaMsalConfig, TinSpaRuntimeConfig, VisibleTab };
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tin-spa",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.0.0",
|
|
6
|
-
"@angular/core": "^20.0.0"
|
|
6
|
+
"@angular/core": "^20.0.0",
|
|
7
|
+
"@azure/msal-angular": "^4.0.0",
|
|
8
|
+
"@azure/msal-browser": "^4.0.0"
|
|
7
9
|
},
|
|
8
10
|
"dependencies": {
|
|
9
11
|
"tslib": "^2.3.0"
|