@posiwise/shared-components 0.0.173 → 0.0.175
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
|
@@ -621,10 +621,22 @@ declare class EntityGroupComponent extends AppBaseComponent implements OnInit, O
|
|
|
621
621
|
static ɵcmp: i0.ɵɵComponentDeclaration<EntityGroupComponent, "pw-entity-group", never, {}, {}, never, never, false, never>;
|
|
622
622
|
}
|
|
623
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>;
|
|
624
630
|
declare class ConfirmDialogService {
|
|
625
631
|
private readonly modal;
|
|
626
632
|
constructor(modal: NgbModal);
|
|
627
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>;
|
|
628
640
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
629
641
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
630
642
|
}
|
|
@@ -1154,4 +1166,4 @@ declare function registeredType(type: string): Type<unknown> | null;
|
|
|
1154
1166
|
declare function registeredTypeNames(): string[];
|
|
1155
1167
|
|
|
1156
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 };
|
|
1157
|
-
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|
|
1169
|
+
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|