@memberjunction/ng-credentials 4.0.0 → 4.2.0
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/README.md +135 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# @memberjunction/ng-credentials
|
|
2
|
+
|
|
3
|
+
Angular components for managing credentials, credential types, and credential categories in MemberJunction applications, with panel and dialog presentation modes.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
```mermaid
|
|
10
|
+
graph TD
|
|
11
|
+
A[CredentialsModule] --> B[Panel Components]
|
|
12
|
+
A --> C[Dialog Components]
|
|
13
|
+
|
|
14
|
+
B --> B1[CredentialEditPanelComponent]
|
|
15
|
+
B --> B2[CredentialTypeEditPanelComponent]
|
|
16
|
+
B --> B3[CredentialCategoryEditPanelComponent]
|
|
17
|
+
|
|
18
|
+
C --> C1[CredentialDialogComponent]
|
|
19
|
+
|
|
20
|
+
B1 --> D["Credential CRUD
|
|
21
|
+
(name, type, category, values)"]
|
|
22
|
+
B2 --> E["Credential Type CRUD
|
|
23
|
+
(type definition, fields schema)"]
|
|
24
|
+
B3 --> F["Category CRUD
|
|
25
|
+
(hierarchical organization)"]
|
|
26
|
+
|
|
27
|
+
style A fill:#2d6a9f,stroke:#1a4971,color:#fff
|
|
28
|
+
style B fill:#7c5295,stroke:#563a6b,color:#fff
|
|
29
|
+
style C fill:#2d8659,stroke:#1a5c3a,color:#fff
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @memberjunction/ng-credentials
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
### Import the Module
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { CredentialsModule } from '@memberjunction/ng-credentials';
|
|
44
|
+
|
|
45
|
+
@NgModule({
|
|
46
|
+
imports: [CredentialsModule]
|
|
47
|
+
})
|
|
48
|
+
export class YourModule { }
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Credential Edit Panel
|
|
52
|
+
|
|
53
|
+
Embed a credential editor directly in your page:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<mj-credential-edit-panel
|
|
57
|
+
[credentialId]="selectedCredentialId"
|
|
58
|
+
(saved)="onCredentialSaved($event)"
|
|
59
|
+
(cancelled)="onEditCancelled()">
|
|
60
|
+
</mj-credential-edit-panel>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Credential Dialog
|
|
64
|
+
|
|
65
|
+
Open a credential editor in a modal:
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<mj-credential-dialog
|
|
69
|
+
[visible]="showCredentialDialog"
|
|
70
|
+
[credentialId]="selectedCredentialId"
|
|
71
|
+
(saved)="onCredentialSaved($event)"
|
|
72
|
+
(dialogClosed)="onDialogClosed()">
|
|
73
|
+
</mj-credential-dialog>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Credential Type Edit Panel
|
|
77
|
+
|
|
78
|
+
Manage credential type definitions:
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<mj-credential-type-edit-panel
|
|
82
|
+
[credentialTypeId]="selectedTypeId"
|
|
83
|
+
(saved)="onTypeSaved($event)"
|
|
84
|
+
(cancelled)="onEditCancelled()">
|
|
85
|
+
</mj-credential-type-edit-panel>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Credential Category Edit Panel
|
|
89
|
+
|
|
90
|
+
Organize credentials into categories:
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<mj-credential-category-edit-panel
|
|
94
|
+
[categoryId]="selectedCategoryId"
|
|
95
|
+
(saved)="onCategorySaved($event)"
|
|
96
|
+
(cancelled)="onEditCancelled()">
|
|
97
|
+
</mj-credential-category-edit-panel>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Exported Components
|
|
101
|
+
|
|
102
|
+
| Component | Selector | Description |
|
|
103
|
+
|-----------|----------|-------------|
|
|
104
|
+
| `CredentialEditPanelComponent` | `mj-credential-edit-panel` | Full credential editor form |
|
|
105
|
+
| `CredentialTypeEditPanelComponent` | `mj-credential-type-edit-panel` | Credential type definition editor |
|
|
106
|
+
| `CredentialCategoryEditPanelComponent` | `mj-credential-category-edit-panel` | Category management editor |
|
|
107
|
+
| `CredentialDialogComponent` | `mj-credential-dialog` | Modal wrapper for credential editing |
|
|
108
|
+
|
|
109
|
+
## Dependencies
|
|
110
|
+
|
|
111
|
+
| Package | Description |
|
|
112
|
+
|---------|-------------|
|
|
113
|
+
| `@memberjunction/core` | Core framework |
|
|
114
|
+
| `@memberjunction/core-entities` | Entity type definitions |
|
|
115
|
+
| `@memberjunction/global` | Global utilities |
|
|
116
|
+
| `@memberjunction/ng-shared-generic` | Shared generic components |
|
|
117
|
+
| `@progress/kendo-angular-dialog` | Dialog/modal support |
|
|
118
|
+
| `@progress/kendo-angular-buttons` | Button components |
|
|
119
|
+
|
|
120
|
+
### Peer Dependencies
|
|
121
|
+
|
|
122
|
+
- `@angular/common` ^21.x
|
|
123
|
+
- `@angular/core` ^21.x
|
|
124
|
+
- `@angular/forms` ^21.x
|
|
125
|
+
|
|
126
|
+
## Build
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
cd packages/Angular/Generic/credentials
|
|
130
|
+
npm run build
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
ISC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-credentials",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "MemberJunction: Angular components for credential management - panels and dialogs for creating and editing credentials",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@progress/kendo-angular-buttons": "22.0.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@memberjunction/core": "4.
|
|
35
|
-
"@memberjunction/core-entities": "4.
|
|
36
|
-
"@memberjunction/global": "4.
|
|
37
|
-
"@memberjunction/ng-notifications": "4.
|
|
38
|
-
"@memberjunction/ng-shared-generic": "4.
|
|
34
|
+
"@memberjunction/core": "4.2.0",
|
|
35
|
+
"@memberjunction/core-entities": "4.2.0",
|
|
36
|
+
"@memberjunction/global": "4.2.0",
|
|
37
|
+
"@memberjunction/ng-notifications": "4.2.0",
|
|
38
|
+
"@memberjunction/ng-shared-generic": "4.2.0",
|
|
39
39
|
"tslib": "^2.8.1",
|
|
40
40
|
"rxjs": "^7.8.2"
|
|
41
41
|
},
|