Skip to content

@memberjunction/ng-credentials

Angular components for managing credentials, credential types, and credential categories in MemberJunction applications, with panel and dialog presentation modes.

The @memberjunction/ng-credentials package provides reusable UI components for creating and editing credentials, credential types, and credential categories. Each component follows a panel + dialog pattern: panels can be embedded directly in pages, while dialog wrappers provide modal presentation.

graph TD
    A[CredentialsModule] --> B[Panel Components]
    A --> C[Dialog Components]

    B --> B1[CredentialEditPanelComponent]
    B --> B2[CredentialTypeEditPanelComponent]
    B --> B3[CredentialCategoryEditPanelComponent]

    C --> C1[CredentialDialogComponent]

    B1 --> D["Credential CRUD
    (name, type, category, values)"]
    B2 --> E["Credential Type CRUD
    (type definition, fields schema)"]
    B3 --> F["Category CRUD
    (hierarchical organization)"]

    style A fill:#2d6a9f,stroke:#1a4971,color:#fff
    style B fill:#7c5295,stroke:#563a6b,color:#fff
    style C fill:#2d8659,stroke:#1a5c3a,color:#fff
Terminal window
npm install @memberjunction/ng-credentials
import { CredentialsModule } from '@memberjunction/ng-credentials';
@NgModule({
imports: [CredentialsModule]
})
export class YourModule { }

Embed a credential editor directly in your page:

<mj-credential-edit-panel
[credentialId]="selectedCredentialId"
(saved)="onCredentialSaved($event)"
(cancelled)="onEditCancelled()">
</mj-credential-edit-panel>

Open a credential editor in a modal:

<mj-credential-dialog
[visible]="showCredentialDialog"
[credentialId]="selectedCredentialId"
(saved)="onCredentialSaved($event)"
(dialogClosed)="onDialogClosed()">
</mj-credential-dialog>

Manage credential type definitions:

<mj-credential-type-edit-panel
[credentialTypeId]="selectedTypeId"
(saved)="onTypeSaved($event)"
(cancelled)="onEditCancelled()">
</mj-credential-type-edit-panel>

Organize credentials into categories:

<mj-credential-category-edit-panel
[categoryId]="selectedCategoryId"
(saved)="onCategorySaved($event)"
(cancelled)="onEditCancelled()">
</mj-credential-category-edit-panel>
ComponentSelectorDescription
CredentialEditPanelComponentmj-credential-edit-panelFull credential editor form
CredentialTypeEditPanelComponentmj-credential-type-edit-panelCredential type definition editor
CredentialCategoryEditPanelComponentmj-credential-category-edit-panelCategory management editor
CredentialDialogComponentmj-credential-dialogModal wrapper for credential editing
PackageDescription
@memberjunction/coreCore framework
@memberjunction/core-entitiesEntity type definitions
@memberjunction/globalGlobal utilities
@memberjunction/ng-shared-genericShared generic components
@progress/kendo-angular-dialogDialog/modal support
@progress/kendo-angular-buttonsButton components
  • @angular/common ^21.x
  • @angular/core ^21.x
  • @angular/forms ^21.x
Terminal window
cd packages/Angular/Generic/credentials
npm run build

ISC