tin-spa 20.16.39 → 20.16.54

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.
Files changed (39) hide show
  1. package/core/index.d.ts +64 -7
  2. package/fesm2022/{tin-spa-accounting.module-tLjerUSJ.mjs → tin-spa-accounting.module-DafMM8bL.mjs} +2 -2
  3. package/fesm2022/{tin-spa-accounting.module-tLjerUSJ.mjs.map → tin-spa-accounting.module-DafMM8bL.mjs.map} +1 -1
  4. package/fesm2022/{tin-spa-agent-page.component-sMhdglOQ.mjs → tin-spa-agent-page.component-BG8NKMWo.mjs} +4 -4
  5. package/fesm2022/{tin-spa-agent-page.component-sMhdglOQ.mjs.map → tin-spa-agent-page.component-BG8NKMWo.mjs.map} +1 -1
  6. package/fesm2022/{tin-spa-agent.component-BbAKYiFv.mjs → tin-spa-agent.component-EpAu7Lhb.mjs} +4 -4
  7. package/fesm2022/{tin-spa-agent.component-BbAKYiFv.mjs.map → tin-spa-agent.component-EpAu7Lhb.mjs.map} +1 -1
  8. package/fesm2022/{tin-spa-assets.module-BB1jV4ni.mjs → tin-spa-assets.module-DkP8T2hm.mjs} +2 -2
  9. package/fesm2022/{tin-spa-assets.module-BB1jV4ni.mjs.map → tin-spa-assets.module-DkP8T2hm.mjs.map} +1 -1
  10. package/fesm2022/tin-spa-core.mjs +1743 -41
  11. package/fesm2022/tin-spa-core.mjs.map +1 -1
  12. package/fesm2022/{tin-spa-general-erp.module-urL5So4z.mjs → tin-spa-general-erp.module-xZV__cBd.mjs} +2 -2
  13. package/fesm2022/{tin-spa-general-erp.module-urL5So4z.mjs.map → tin-spa-general-erp.module-xZV__cBd.mjs.map} +1 -1
  14. package/fesm2022/{tin-spa-hr.module-lMgTujaL.mjs → tin-spa-hr.module-DJg-9u0Q.mjs} +2 -2
  15. package/fesm2022/{tin-spa-hr.module-lMgTujaL.mjs.map → tin-spa-hr.module-DJg-9u0Q.mjs.map} +1 -1
  16. package/fesm2022/{tin-spa-inventory.module-D6E720b3.mjs → tin-spa-inventory.module-ue4V6shh.mjs} +2 -2
  17. package/fesm2022/{tin-spa-inventory.module-D6E720b3.mjs.map → tin-spa-inventory.module-ue4V6shh.mjs.map} +1 -1
  18. package/fesm2022/tin-spa-landing.mjs +35 -3
  19. package/fesm2022/tin-spa-landing.mjs.map +1 -1
  20. package/fesm2022/{tin-spa-loans.module-DPqG5dbT.mjs → tin-spa-loans.module-CSCszF9N.mjs} +2 -2
  21. package/fesm2022/{tin-spa-loans.module-DPqG5dbT.mjs.map → tin-spa-loans.module-CSCszF9N.mjs.map} +1 -1
  22. package/fesm2022/{tin-spa-manufacturing.module-DphDbjjV.mjs → tin-spa-manufacturing.module-xNhUuWHC.mjs} +2 -2
  23. package/fesm2022/{tin-spa-manufacturing.module-DphDbjjV.mjs.map → tin-spa-manufacturing.module-xNhUuWHC.mjs.map} +1 -1
  24. package/fesm2022/{tin-spa-payroll.module-XekyNje-.mjs → tin-spa-payroll.module-zWYKDH27.mjs} +2 -2
  25. package/fesm2022/{tin-spa-payroll.module-XekyNje-.mjs.map → tin-spa-payroll.module-zWYKDH27.mjs.map} +1 -1
  26. package/fesm2022/{tin-spa-purchasing.module-TY3v_R4Y.mjs → tin-spa-purchasing.module-Dcqjduuh.mjs} +2 -2
  27. package/fesm2022/{tin-spa-purchasing.module-TY3v_R4Y.mjs.map → tin-spa-purchasing.module-Dcqjduuh.mjs.map} +1 -1
  28. package/fesm2022/{tin-spa-sales.module-BjAeQZT1.mjs → tin-spa-sales.module-BDc523ea.mjs} +2 -2
  29. package/fesm2022/{tin-spa-sales.module-BjAeQZT1.mjs.map → tin-spa-sales.module-BDc523ea.mjs.map} +1 -1
  30. package/fesm2022/{tin-spa-tenancy-erp.module-BPkLuqdQ.mjs → tin-spa-tenancy-erp.module-BlotvMY-.mjs} +2 -2
  31. package/fesm2022/{tin-spa-tenancy-erp.module-BPkLuqdQ.mjs.map → tin-spa-tenancy-erp.module-BlotvMY-.mjs.map} +1 -1
  32. package/fesm2022/{tin-spa-tin-spa-CCAfYbuE.mjs → tin-spa-tin-spa-BM0vyL87.mjs} +1221 -115
  33. package/fesm2022/tin-spa-tin-spa-BM0vyL87.mjs.map +1 -0
  34. package/fesm2022/tin-spa.mjs +1 -1
  35. package/index.d.ts +135 -20
  36. package/landing/index.d.ts +4 -2
  37. package/package.json +1 -1
  38. package/src/tin-styles.css +66 -0
  39. package/fesm2022/tin-spa-tin-spa-CCAfYbuE.mjs.map +0 -1
package/core/index.d.ts CHANGED
@@ -455,6 +455,14 @@ declare class dialogOptions {
455
455
  width?: string;
456
456
  height?: string;
457
457
  }
458
+ interface ModeToggle {
459
+ field: string;
460
+ icon: string;
461
+ tip: string | ((on: boolean) => string);
462
+ createOnly?: boolean;
463
+ onToggle?: (details: any, on: boolean) => void;
464
+ onOptions?: dialogOptions;
465
+ }
458
466
  interface CloseOptions {
459
467
  position?: 'top' | 'bottom';
460
468
  text?: string;
@@ -472,6 +480,7 @@ declare class DetailsDialogConfig {
472
480
  mode?: 'create' | 'edit' | 'view';
473
481
  detailsSource?: DetailsSource;
474
482
  options?: dialogOptions;
483
+ modeToggle?: ModeToggle;
475
484
  autoRefreshConfig?: AutoRefreshConfig;
476
485
  refreshOnClose?: boolean;
477
486
  refreshOnCloseIfActioned?: boolean;
@@ -667,9 +676,29 @@ declare class NotesConfig {
667
676
  dateField?: string;
668
677
  commentField?: string;
669
678
  }
679
+ type ViewSlot = 'title' | 'topRight' | 'subtitle' | 'body' | 'line';
680
+ interface ViewField {
681
+ name: string;
682
+ slot?: ViewSlot;
683
+ size?: RowTextSize;
684
+ muted?: boolean;
685
+ italic?: boolean;
686
+ bold?: boolean;
687
+ label?: string | boolean;
688
+ hidden?: VisibilityValue;
689
+ visible?: VisibilityValue;
690
+ }
691
+ interface ViewConfig {
692
+ fields?: ViewField[];
693
+ sections?: boolean;
694
+ breakpoint?: number;
695
+ always?: boolean;
696
+ showEmpty?: boolean;
697
+ }
670
698
  declare class FormConfig {
671
699
  title?: string;
672
700
  fixedTitle?: boolean;
701
+ viewConfig?: ViewConfig;
673
702
  alertConfig?: AlertConfig;
674
703
  fields: Field[];
675
704
  mode?: 'create' | 'edit' | 'view';
@@ -735,6 +764,27 @@ interface CardConfig {
735
764
  columns?: number;
736
765
  elevation?: 'low' | 'medium' | 'high';
737
766
  }
767
+ type RowSlot = 'lead' | 'title' | 'topRight' | 'subtitle' | 'body' | 'bottomLeft' | 'bottomRight';
768
+ type RowTextSize = 'small' | 'medium' | 'large';
769
+ interface RowField {
770
+ name: string;
771
+ slot: RowSlot;
772
+ size?: RowTextSize;
773
+ muted?: boolean;
774
+ italic?: boolean;
775
+ bold?: boolean;
776
+ label?: string | boolean;
777
+ hidden?: VisibilityValue;
778
+ visible?: VisibilityValue;
779
+ }
780
+ interface RowConfig {
781
+ fields: RowField[];
782
+ breakpoint?: number;
783
+ always?: boolean;
784
+ lines?: number;
785
+ divider?: boolean;
786
+ actions?: 'bottomRight' | 'topRight';
787
+ }
738
788
  type TileStyle = 'basic' | 'icon' | 'chart';
739
789
  type TileChartType = 'line' | 'bar' | 'pie' | 'doughnut';
740
790
  interface TileChartConfig {
@@ -919,6 +969,7 @@ interface GroupConfig {
919
969
  itemIcon?: Icon;
920
970
  itemIcons?: Icon[];
921
971
  itemAdditionalIcons?: Icon[];
972
+ compactStatusIcons?: boolean;
922
973
  groupIcons?: Icon[];
923
974
  groupAdditionalIcons?: Icon[];
924
975
  showGroupCount?: boolean;
@@ -977,6 +1028,7 @@ declare class TableConfig {
977
1028
  viewType?: TableViewType;
978
1029
  capsuleConfig?: CapsuleConfig;
979
1030
  cardConfig?: CardConfig;
1031
+ rowConfig?: RowConfig;
980
1032
  groupConfig?: GroupConfig;
981
1033
  tabTitle?: string;
982
1034
  tabTemplate?: any;
@@ -1156,6 +1208,7 @@ declare class AppConfig {
1156
1208
  get navigation(): 'top' | 'side-modern' | 'top-modern';
1157
1209
  docsBaseUrl?: string;
1158
1210
  loginStyle: string;
1211
+ messageStyle?: 'default' | 'modern';
1159
1212
  dialogStyle: 'default' | 'modern';
1160
1213
  loginTitle: string;
1161
1214
  loginMessage: string;
@@ -1311,7 +1364,7 @@ type DayBookColumnPresentation = Pick<Column, 'alias' | 'icon' | 'color'>;
1311
1364
  interface DayBookColumnView extends DayBookColumnPresentation {
1312
1365
  column: string;
1313
1366
  }
1314
- type DayBookTableView = Pick<TableConfig, 'minColumns' | 'elevation' | 'sectionConfig' | 'flatButtons' | 'collapseButtons' | 'maxButtonsCount' | 'showFilter' | 'showFilterButton' | 'noDataMessage' | 'identityColumn' | 'hideColumnHeaders'>;
1367
+ type DayBookTableView = Pick<TableConfig, 'minColumns' | 'rowConfig' | 'elevation' | 'sectionConfig' | 'flatButtons' | 'collapseButtons' | 'maxButtonsCount' | 'showFilter' | 'showFilterButton' | 'noDataMessage' | 'identityColumn' | 'hideColumnHeaders'>;
1315
1368
  interface DayBookSection {
1316
1369
  key: string;
1317
1370
  lane?: string;
@@ -1941,6 +1994,7 @@ declare class DataServiceLib {
1941
1994
  appConfigObserv: Observable<AppConfig>;
1942
1995
  UpdateAppConfig(config: AppConfig): void;
1943
1996
  get modernDialogs(): boolean;
1997
+ get modernMessages(): boolean;
1944
1998
  get namedDestructiveActions(): boolean;
1945
1999
  get dialogPanelClass(): string[];
1946
2000
  cacheConfig: CacheConfig;
@@ -2517,10 +2571,8 @@ declare class AccountingService {
2517
2571
  private journalAccountsLoaded;
2518
2572
  journalLineFormConfig: FormConfig;
2519
2573
  journalLinesTableConfig: TableConfig;
2520
- journalFormConfig: FormConfig;
2521
- journalPostButton: Button;
2522
- journalDetailsConfig: DetailsDialogConfig;
2523
- journalCreateButton: Button;
2574
+ transactionPostButton: Button;
2575
+ transactionCreateDetailsConfig: DetailsDialogConfig;
2524
2576
  transactionsTableConfig: TableConfig;
2525
2577
  transactionSearchTableConfig: TableConfig;
2526
2578
  accountTransactionsTableConfig: TableConfig;
@@ -2977,6 +3029,8 @@ interface UserPreferences {
2977
3029
  }
2978
3030
  declare const GRID_MENU_ROUTE = "home/menu";
2979
3031
  declare const GRID_MENU_TAB: BottomTab;
3032
+ declare const CHAT_TAB_NAME = "agent";
3033
+ declare const CHAT_ROUTE = "home/agent";
2980
3034
  declare class PreferencesService {
2981
3035
  private dataService;
2982
3036
  private menuSource;
@@ -2994,6 +3048,9 @@ declare class PreferencesService {
2994
3048
  tabNames(): string[];
2995
3049
  resolveDefaultPage(): string;
2996
3050
  resolveLandingPage(): Promise<string>;
3051
+ chatTab(): BottomTab | null;
3052
+ isTabRenderable(tab: BottomTab): boolean;
3053
+ private surfaceAvailable;
2997
3054
  availablePages(): CapItem[];
2998
3055
  static ɵfac: i0.ɵɵFactoryDeclaration<PreferencesService, never>;
2999
3056
  static ɵprov: i0.ɵɵInjectableDeclaration<PreferencesService>;
@@ -3104,5 +3161,5 @@ declare class SpaCoreModule {
3104
3161
  static ɵinj: i0.ɵɵInjectorDeclaration<SpaCoreModule>;
3105
3162
  }
3106
3163
 
3107
- export { Account, AccountingService, Action, AlertConfig, AlertMessage, ApiErrorService, ApiResponse, AppConfig, AssetStatus, AuthService, BottomTab, CacheConfig, CapItem, ChangeUserPassword, ChartConfig, ConfigService, Constants, Core, CreditNoteStatus, DashboardConfig, DataServiceLib, DateBounds, DetailsDialogConfig, DetailsDialogProcessor, DetailsSource, FilterChipConfig, FiscalPeriodStatus, FormConfig, GRID_MENU_ROUTE, GRID_MENU_TAB, GeneralService, HttpService, InventoryService, InvoiceItemType, InvoiceStatus, LastRouteService, ListDialogConfig, LoansService, LogLevel, LogService, MenuSourceService, MessageService, MovementType, NotesConfig, NotificationsService, OfflineService, PageConfig, PaginationConfig, PayrollService, PreferencesService, PrivacyDialogComponent, ProductionService, Profile, PurchaseStatus, PurchasingService, QuoteStatus, REDACTED, ReceiptDialogComponent, ReceiptStatus, RedactingSignalRLogger, Register, Role, RoleAccess, SalesService, SearchConfig, SecurityConfig, SetupService, SignalRService, SignupData, SpaCoreModule, SpaMatModule, Step, StepConfig, StorageService, SubscriptionService, SuffixComponent, TIN_INLINE_ERRORS, TIN_LOGIN_TIER_HTTP_PROVIDERS, TIN_SILENT_REQUEST, TableConfig, TermsDialogComponent, TextComponent, TextMaskComponent, TileConfig, TransactionTiming, UnitOfMeasure, User, derivePlaceholder, describeError, describeShape, dialogOptions, getTinSpaAppSettings, isInlineErrorRequest, isSilentRequest, loadTinSpaAppSettings, loginConfig, messageDialog, phraseSatisfied, provideTinSpaRuntime, redactSecrets, silentContext, tinRequestContext, tinSpaLocationStrategyFactory, tinSpaRuntimeConfigFactory };
3108
- export type { ApiErrorInfo, ApiErrorKind, AppConfigSection, AppConfigurationConfig, AppFailureClass, AppFailureContext, AutoRefreshConfig, BitwiseOption, Button, CacheRule, CapsuleConfig, CardConfig, ChartItem, ChecklistAction, ChecklistConfig, ChecklistItem, ChildField, CloseOptions, Color, Column, Confirm, CreateTabConfig, DashboardSection, DayBookButtonView, DayBookColumnPresentation, DayBookColumnView, DayBookConfig, DayBookLane, DayBookPresentation, DayBookSection, DayBookStage, DayBookStageTiles, DayBookTableView, DocumentError, DocumentKind, DocumentSource, DocumentViewerData, EntityChangeEvent, EntityInvalidatedEvent, Field, FilterChip, GroupConfig, GroupData, Icon, ImportConfig, InlineEditConfig, InlineLoadError, LoadedDocument, MenuSection, NoAccessInfo, NotificationEvent, OfflineConfig, OfflineEntry, OfflineOpStatus, OrderableConfig, OutboxOp, PlaceholderKind, RefreshResult, SearchField, SetupApprovalPreset, SetupConfig, SetupModule, SetupNotificationPreset, SetupPreset, SetupPresetCatalog, SetupPresetRole, SetupPresetSelection, SetupRoleTemplate, SetupSeedOffer, SetupStatus, SetupStep, SetupStepAction, SpaChartType, StatusConfig, StatusItem, StatusState, TableDialogConfig, TableSectionChip, TableSectionConfig, TableViewType, Tile, TileChartConfig, TileChartType, TileStyle, TinSpaAppSettings, TinSpaMsalSettings, UserPreferences, VehiclePositionFrame, VisibilityValue };
3164
+ export { Account, AccountingService, Action, AlertConfig, AlertMessage, ApiErrorService, ApiResponse, AppConfig, AssetStatus, AuthService, BottomTab, CHAT_ROUTE, CHAT_TAB_NAME, CacheConfig, CapItem, ChangeUserPassword, ChartConfig, ConfigService, Constants, Core, CreditNoteStatus, DashboardConfig, DataServiceLib, DateBounds, DetailsDialogConfig, DetailsDialogProcessor, DetailsSource, FilterChipConfig, FiscalPeriodStatus, FormConfig, GRID_MENU_ROUTE, GRID_MENU_TAB, GeneralService, HttpService, InventoryService, InvoiceItemType, InvoiceStatus, LastRouteService, ListDialogConfig, LoansService, LogLevel, LogService, MenuSourceService, MessageService, MovementType, NotesConfig, NotificationsService, OfflineService, PageConfig, PaginationConfig, PayrollService, PreferencesService, PrivacyDialogComponent, ProductionService, Profile, PurchaseStatus, PurchasingService, QuoteStatus, REDACTED, ReceiptDialogComponent, ReceiptStatus, RedactingSignalRLogger, Register, Role, RoleAccess, SalesService, SearchConfig, SecurityConfig, SetupService, SignalRService, SignupData, SpaCoreModule, SpaMatModule, Step, StepConfig, StorageService, SubscriptionService, SuffixComponent, TIN_INLINE_ERRORS, TIN_LOGIN_TIER_HTTP_PROVIDERS, TIN_SILENT_REQUEST, TableConfig, TermsDialogComponent, TextComponent, TextMaskComponent, TileConfig, TransactionTiming, UnitOfMeasure, User, derivePlaceholder, describeError, describeShape, dialogOptions, getTinSpaAppSettings, isInlineErrorRequest, isSilentRequest, loadTinSpaAppSettings, loginConfig, messageDialog, phraseSatisfied, provideTinSpaRuntime, redactSecrets, silentContext, tinRequestContext, tinSpaLocationStrategyFactory, tinSpaRuntimeConfigFactory };
3165
+ export type { ApiErrorInfo, ApiErrorKind, AppConfigSection, AppConfigurationConfig, AppFailureClass, AppFailureContext, AutoRefreshConfig, BitwiseOption, Button, CacheRule, CapsuleConfig, CardConfig, ChartItem, ChecklistAction, ChecklistConfig, ChecklistItem, ChildField, CloseOptions, Color, Column, Confirm, CreateTabConfig, DashboardSection, DayBookButtonView, DayBookColumnPresentation, DayBookColumnView, DayBookConfig, DayBookLane, DayBookPresentation, DayBookSection, DayBookStage, DayBookStageTiles, DayBookTableView, DocumentError, DocumentKind, DocumentSource, DocumentViewerData, EntityChangeEvent, EntityInvalidatedEvent, Field, FilterChip, GroupConfig, GroupData, Icon, ImportConfig, InlineEditConfig, InlineLoadError, LoadedDocument, MenuSection, ModeToggle, NoAccessInfo, NotificationEvent, OfflineConfig, OfflineEntry, OfflineOpStatus, OrderableConfig, OutboxOp, PlaceholderKind, RefreshResult, RowConfig, RowField, RowSlot, RowTextSize, SearchField, SetupApprovalPreset, SetupConfig, SetupModule, SetupNotificationPreset, SetupPreset, SetupPresetCatalog, SetupPresetRole, SetupPresetSelection, SetupRoleTemplate, SetupSeedOffer, SetupStatus, SetupStep, SetupStepAction, SpaChartType, StatusConfig, StatusItem, StatusState, TableDialogConfig, TableSectionChip, TableSectionConfig, TableViewType, Tile, TileChartConfig, TileChartType, TileStyle, TinSpaAppSettings, TinSpaMsalSettings, UserPreferences, VehiclePositionFrame, ViewConfig, ViewField, ViewSlot, VisibilityValue };
@@ -4,7 +4,7 @@ import * as i1$2 from '@angular/router';
4
4
  import { RouterModule } from '@angular/router';
5
5
  import * as i1 from 'tin-spa/core';
6
6
  import { AccountingService, MessageService, ApiErrorService, PurchasingService, HttpService, DataServiceLib, ReceiptDialogComponent } from 'tin-spa/core';
7
- import { T as TilesComponent, a as TabsComponent, P as PageComponent, D as DateComponent, b as TableComponent, S as SelectLiteComponent, c as TinSpaModule, C as ChartsComponent, d as TenantTransferService, f as featureGuard, e as SpaAdminModule } from './tin-spa-tin-spa-CCAfYbuE.mjs';
7
+ import { T as TilesComponent, a as TabsComponent, P as PageComponent, D as DateComponent, b as TableComponent, S as SelectLiteComponent, c as TinSpaModule, C as ChartsComponent, d as TenantTransferService, f as featureGuard, e as SpaAdminModule } from './tin-spa-tin-spa-BM0vyL87.mjs';
8
8
  import * as i1$1 from '@angular/common';
9
9
  import { CommonModule } from '@angular/common';
10
10
  import * as i3 from '@angular/material/button';
@@ -2243,4 +2243,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
2243
2243
  }] });
2244
2244
 
2245
2245
  export { AccountingModule };
2246
- //# sourceMappingURL=tin-spa-accounting.module-tLjerUSJ.mjs.map
2246
+ //# sourceMappingURL=tin-spa-accounting.module-DafMM8bL.mjs.map