@posiwise/shared-components 0.0.172 → 0.0.173
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { TemplateRef, ElementRef, EventEmitter, Injector, ChangeDetectorRef, OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, Type, ViewContainerRef, AfterContentInit } from '@angular/core';
|
|
3
|
+
import * as i32 from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
-
import * as i31 from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
-
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
6
6
|
import { MenuItem } from 'primeng/api';
|
|
7
7
|
import moment from 'moment';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i42 from 'ngx-daterangepicker-material';
|
|
9
9
|
import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
|
|
10
10
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
11
11
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
@@ -14,7 +14,7 @@ import { AppConfigService } from '@posiwise/app-config-service';
|
|
|
14
14
|
import { AuthService, MCPFieldDiff, MCPOrchestratorService, LocalStorage, BrainSocketService, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
|
|
15
15
|
import * as rxjs from 'rxjs';
|
|
16
16
|
import { Observable } from 'rxjs';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i31 from '@angular/router';
|
|
18
18
|
import { Router } from '@angular/router';
|
|
19
19
|
import { AppState } from '@posiwise/app-store';
|
|
20
20
|
import { Store } from '@ngrx/store';
|
|
@@ -23,21 +23,62 @@ import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ControlContainer
|
|
|
23
23
|
import * as i7 from '@posiwise/app-loader';
|
|
24
24
|
import * as i9 from '@posiwise/directives';
|
|
25
25
|
import * as i8 from '@posiwise/core-transloco';
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
26
|
+
import * as i33 from 'primeng/table';
|
|
27
|
+
import * as i34 from 'primeng/tabs';
|
|
28
28
|
import * as i10 from 'primeng/button';
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
29
|
+
import * as i36 from 'primeng/select';
|
|
30
|
+
import * as i37 from 'primeng/multiselect';
|
|
31
31
|
import * as i13 from 'primeng/progressspinner';
|
|
32
32
|
import * as i14 from 'primeng/autocomplete';
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
33
|
+
import * as i40 from 'ngx-image-cropper';
|
|
34
|
+
import * as i41 from 'ngx-ui-switch';
|
|
35
|
+
import * as i43 from '@posiwise/pipes';
|
|
36
|
+
import * as i44 from '@angular/common';
|
|
37
37
|
import * as i16 from '@posiwise/utils';
|
|
38
38
|
import * as i12 from 'primeng/tooltip';
|
|
39
39
|
import * as i15 from '@angular/cdk/drag-drop';
|
|
40
40
|
|
|
41
|
+
type ConfirmDialogTone = 'destructive' | 'neutral' | 'info';
|
|
42
|
+
interface ConfirmDialogConfig {
|
|
43
|
+
titleKey?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
titleParams?: Record<string, unknown>;
|
|
46
|
+
textKey?: string;
|
|
47
|
+
text?: string;
|
|
48
|
+
textParams?: Record<string, unknown>;
|
|
49
|
+
destructive?: boolean;
|
|
50
|
+
confirmOnly?: boolean;
|
|
51
|
+
confirmLabelKey?: string;
|
|
52
|
+
confirmLabel?: string;
|
|
53
|
+
cancelLabelKey?: string;
|
|
54
|
+
cancelLabel?: string;
|
|
55
|
+
icon?: string;
|
|
56
|
+
tone?: ConfirmDialogTone;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class ConfirmDialogComponent {
|
|
60
|
+
readonly modal: NgbActiveModal;
|
|
61
|
+
config: ConfirmDialogConfig;
|
|
62
|
+
constructor(modal: NgbActiveModal);
|
|
63
|
+
get tone(): ConfirmDialogTone;
|
|
64
|
+
get iconClass(): string;
|
|
65
|
+
get titleKey(): string | null;
|
|
66
|
+
get titleRaw(): string;
|
|
67
|
+
get titleParams(): Record<string, unknown>;
|
|
68
|
+
get textKey(): string | null;
|
|
69
|
+
get textRaw(): string;
|
|
70
|
+
get textParams(): Record<string, unknown>;
|
|
71
|
+
get confirmLabelKey(): string;
|
|
72
|
+
get confirmLabel(): string;
|
|
73
|
+
get cancelLabelKey(): string;
|
|
74
|
+
get cancelLabel(): string;
|
|
75
|
+
get confirmButtonClass(): string;
|
|
76
|
+
confirm(): void;
|
|
77
|
+
cancel(): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "pw-confirm-dialog", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
41
82
|
interface SharedModalContext {
|
|
42
83
|
modal: {
|
|
43
84
|
dismiss: () => void;
|
|
@@ -580,12 +621,21 @@ declare class EntityGroupComponent extends AppBaseComponent implements OnInit, O
|
|
|
580
621
|
static ɵcmp: i0.ɵɵComponentDeclaration<EntityGroupComponent, "pw-entity-group", never, {}, {}, never, never, false, never>;
|
|
581
622
|
}
|
|
582
623
|
|
|
624
|
+
declare class ConfirmDialogService {
|
|
625
|
+
private readonly modal;
|
|
626
|
+
constructor(modal: NgbModal);
|
|
627
|
+
open(config?: ConfirmDialogConfig): Promise<boolean>;
|
|
628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
629
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
630
|
+
}
|
|
631
|
+
|
|
583
632
|
declare class GroupsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
584
633
|
private readonly fb;
|
|
585
634
|
private readonly groupService;
|
|
586
635
|
private readonly subscriptionService;
|
|
587
636
|
private readonly dataService;
|
|
588
637
|
private readonly cdr;
|
|
638
|
+
private readonly confirmDialog;
|
|
589
639
|
private groupsData;
|
|
590
640
|
subscription: Subscription;
|
|
591
641
|
message: number;
|
|
@@ -615,7 +665,7 @@ declare class GroupsComponent extends AppBaseComponent implements OnInit, OnDest
|
|
|
615
665
|
isGroupEdit: boolean;
|
|
616
666
|
hasAccess: boolean;
|
|
617
667
|
isLoaded: boolean;
|
|
618
|
-
constructor(fb: UntypedFormBuilder, groupService: GroupService, subscriptionService: SubscriptionService, dataService: DataService, injector: Injector, cdr: ChangeDetectorRef);
|
|
668
|
+
constructor(fb: UntypedFormBuilder, groupService: GroupService, subscriptionService: SubscriptionService, dataService: DataService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
|
|
619
669
|
ngOnInit(): void;
|
|
620
670
|
/** Function to save group */
|
|
621
671
|
saveGroup(): void;
|
|
@@ -645,6 +695,7 @@ declare class GroupDefinitionComponent extends AppBaseComponent implements OnIni
|
|
|
645
695
|
private readonly subscriptionService;
|
|
646
696
|
private readonly data;
|
|
647
697
|
private readonly cdr;
|
|
698
|
+
private readonly confirmDialog;
|
|
648
699
|
subscriptions: any[];
|
|
649
700
|
message: number;
|
|
650
701
|
groupDefinition: object[];
|
|
@@ -662,7 +713,7 @@ declare class GroupDefinitionComponent extends AppBaseComponent implements OnIni
|
|
|
662
713
|
user: User;
|
|
663
714
|
isLoaded: boolean;
|
|
664
715
|
categoryBusyButton: boolean;
|
|
665
|
-
constructor(groupService: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector, cdr: ChangeDetectorRef);
|
|
716
|
+
constructor(groupService: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
|
|
666
717
|
ngOnInit(): void;
|
|
667
718
|
private getAllGroupDefinition;
|
|
668
719
|
private getSubscribedUsers;
|
|
@@ -1009,7 +1060,7 @@ declare class RecordsSummaryComponent {
|
|
|
1009
1060
|
|
|
1010
1061
|
declare class ResourceSharedComponentsModule {
|
|
1011
1062
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
|
|
1012
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof
|
|
1063
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof i44.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.AppLoaderModule, typeof i8.CoreTranslocoModule, typeof i9.DirectivesModule, typeof i10.ButtonModule, typeof i32.NgbTooltipModule, typeof i12.TooltipModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i15.DragDropModule, typeof i16.FieldErrorDisplayModule, typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule], [typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent, typeof i10.ButtonModule, typeof i15.DragDropModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i12.TooltipModule, typeof i16.FieldErrorDisplayModule]>;
|
|
1013
1064
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
|
|
1014
1065
|
}
|
|
1015
1066
|
|
|
@@ -1047,7 +1098,7 @@ declare class CollapsibleSidebarTriggerDirective {
|
|
|
1047
1098
|
|
|
1048
1099
|
declare class SharedComponentsModule {
|
|
1049
1100
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
1050
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof
|
|
1101
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i31.RouterModule, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof i43.PipesModule, typeof i44.CommonModule, typeof i44.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
1051
1102
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
1052
1103
|
}
|
|
1053
1104
|
|
|
@@ -1102,5 +1153,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
|
|
|
1102
1153
|
declare function registeredType(type: string): Type<unknown> | null;
|
|
1103
1154
|
declare function registeredTypeNames(): string[];
|
|
1104
1155
|
|
|
1105
|
-
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
1106
|
-
export type { ChatMessage, ChatMessageRole, CompletionTier, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|
|
1156
|
+
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
1157
|
+
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|