@posiwise/shared-components 0.0.172 → 0.0.174
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,33 @@ 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
|
+
/**
|
|
625
|
+
* Convenience overrides for `confirmDelete`. Any field of `ConfirmDialogConfig`
|
|
626
|
+
* may be passed; the defaults are `{ title: 'Delete', text: 'Are you sure you
|
|
627
|
+
* want to delete?', destructive: true }`.
|
|
628
|
+
*/
|
|
629
|
+
type ConfirmDeleteOptions = Partial<ConfirmDialogConfig>;
|
|
630
|
+
declare class ConfirmDialogService {
|
|
631
|
+
private readonly modal;
|
|
632
|
+
constructor(modal: NgbModal);
|
|
633
|
+
open(config?: ConfirmDialogConfig): Promise<boolean>;
|
|
634
|
+
/**
|
|
635
|
+
* Opens a generic destructive "Delete — Are you sure you want to delete?"
|
|
636
|
+
* confirmation dialog. Pass overrides for any field (e.g. `text` with a
|
|
637
|
+
* bold entity name, or `textKey` for an i18n key).
|
|
638
|
+
*/
|
|
639
|
+
confirmDelete(overrides?: ConfirmDeleteOptions): Promise<boolean>;
|
|
640
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
641
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
642
|
+
}
|
|
643
|
+
|
|
583
644
|
declare class GroupsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
584
645
|
private readonly fb;
|
|
585
646
|
private readonly groupService;
|
|
586
647
|
private readonly subscriptionService;
|
|
587
648
|
private readonly dataService;
|
|
588
649
|
private readonly cdr;
|
|
650
|
+
private readonly confirmDialog;
|
|
589
651
|
private groupsData;
|
|
590
652
|
subscription: Subscription;
|
|
591
653
|
message: number;
|
|
@@ -615,7 +677,7 @@ declare class GroupsComponent extends AppBaseComponent implements OnInit, OnDest
|
|
|
615
677
|
isGroupEdit: boolean;
|
|
616
678
|
hasAccess: boolean;
|
|
617
679
|
isLoaded: boolean;
|
|
618
|
-
constructor(fb: UntypedFormBuilder, groupService: GroupService, subscriptionService: SubscriptionService, dataService: DataService, injector: Injector, cdr: ChangeDetectorRef);
|
|
680
|
+
constructor(fb: UntypedFormBuilder, groupService: GroupService, subscriptionService: SubscriptionService, dataService: DataService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
|
|
619
681
|
ngOnInit(): void;
|
|
620
682
|
/** Function to save group */
|
|
621
683
|
saveGroup(): void;
|
|
@@ -645,6 +707,7 @@ declare class GroupDefinitionComponent extends AppBaseComponent implements OnIni
|
|
|
645
707
|
private readonly subscriptionService;
|
|
646
708
|
private readonly data;
|
|
647
709
|
private readonly cdr;
|
|
710
|
+
private readonly confirmDialog;
|
|
648
711
|
subscriptions: any[];
|
|
649
712
|
message: number;
|
|
650
713
|
groupDefinition: object[];
|
|
@@ -662,7 +725,7 @@ declare class GroupDefinitionComponent extends AppBaseComponent implements OnIni
|
|
|
662
725
|
user: User;
|
|
663
726
|
isLoaded: boolean;
|
|
664
727
|
categoryBusyButton: boolean;
|
|
665
|
-
constructor(groupService: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector, cdr: ChangeDetectorRef);
|
|
728
|
+
constructor(groupService: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
|
|
666
729
|
ngOnInit(): void;
|
|
667
730
|
private getAllGroupDefinition;
|
|
668
731
|
private getSubscribedUsers;
|
|
@@ -1009,7 +1072,7 @@ declare class RecordsSummaryComponent {
|
|
|
1009
1072
|
|
|
1010
1073
|
declare class ResourceSharedComponentsModule {
|
|
1011
1074
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
|
|
1012
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof
|
|
1075
|
+
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
1076
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
|
|
1014
1077
|
}
|
|
1015
1078
|
|
|
@@ -1047,7 +1110,7 @@ declare class CollapsibleSidebarTriggerDirective {
|
|
|
1047
1110
|
|
|
1048
1111
|
declare class SharedComponentsModule {
|
|
1049
1112
|
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
|
|
1113
|
+
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
1114
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
1052
1115
|
}
|
|
1053
1116
|
|
|
@@ -1102,5 +1165,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
|
|
|
1102
1165
|
declare function registeredType(type: string): Type<unknown> | null;
|
|
1103
1166
|
declare function registeredTypeNames(): string[];
|
|
1104
1167
|
|
|
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 };
|
|
1168
|
+
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 };
|
|
1169
|
+
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|