@memberjunction/ng-credentials 0.0.1 → 3.4.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/dist/lib/credentials.module.d.ts +21 -0
- package/dist/lib/credentials.module.d.ts.map +1 -0
- package/dist/lib/credentials.module.js +86 -0
- package/dist/lib/credentials.module.js.map +1 -0
- package/dist/lib/dialogs/credential-dialog.component.d.ts +68 -0
- package/dist/lib/dialogs/credential-dialog.component.d.ts.map +1 -0
- package/dist/lib/dialogs/credential-dialog.component.js +188 -0
- package/dist/lib/dialogs/credential-dialog.component.js.map +1 -0
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts +44 -0
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js +237 -0
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js.map +1 -0
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts +96 -0
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js +533 -0
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js.map +1 -0
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts +56 -0
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js +278 -0
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js.map +1 -0
- package/dist/lib/services/credential-dialog.service.d.ts +89 -0
- package/dist/lib/services/credential-dialog.service.d.ts.map +1 -0
- package/dist/lib/services/credential-dialog.service.js +166 -0
- package/dist/lib/services/credential-dialog.service.js.map +1 -0
- package/dist/public-api.d.ts +15 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +19 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +43 -6
- package/README.md +0 -45
package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { Metadata, RunView } from '@memberjunction/core';
|
|
3
|
+
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "@memberjunction/ng-shared-generic";
|
|
8
|
+
export function LoadCredentialCategoryEditPanel() {
|
|
9
|
+
// Prevents tree-shaking
|
|
10
|
+
}
|
|
11
|
+
export class CredentialCategoryEditPanelComponent {
|
|
12
|
+
cdr;
|
|
13
|
+
category = null;
|
|
14
|
+
isOpen = false;
|
|
15
|
+
close = new EventEmitter();
|
|
16
|
+
saved = new EventEmitter();
|
|
17
|
+
deleted = new EventEmitter();
|
|
18
|
+
isLoading = false;
|
|
19
|
+
isSaving = false;
|
|
20
|
+
isNew = false;
|
|
21
|
+
// All categories for parent selection
|
|
22
|
+
allCategories = [];
|
|
23
|
+
// Form fields
|
|
24
|
+
name = '';
|
|
25
|
+
description = '';
|
|
26
|
+
parentId = '';
|
|
27
|
+
iconClass = '';
|
|
28
|
+
// Icon suggestions
|
|
29
|
+
iconSuggestions = [
|
|
30
|
+
{ icon: 'fa-solid fa-folder', label: 'Folder' },
|
|
31
|
+
{ icon: 'fa-solid fa-lock', label: 'Lock' },
|
|
32
|
+
{ icon: 'fa-solid fa-shield-halved', label: 'Shield' },
|
|
33
|
+
{ icon: 'fa-solid fa-key', label: 'Key' },
|
|
34
|
+
{ icon: 'fa-solid fa-cloud', label: 'Cloud' },
|
|
35
|
+
{ icon: 'fa-solid fa-database', label: 'Database' },
|
|
36
|
+
{ icon: 'fa-solid fa-brain', label: 'AI' },
|
|
37
|
+
{ icon: 'fa-solid fa-envelope', label: 'Email' },
|
|
38
|
+
{ icon: 'fa-solid fa-plug', label: 'Integration' },
|
|
39
|
+
{ icon: 'fa-solid fa-server', label: 'Server' },
|
|
40
|
+
{ icon: 'fa-solid fa-code', label: 'Code' },
|
|
41
|
+
{ icon: 'fa-solid fa-globe', label: 'Web' }
|
|
42
|
+
];
|
|
43
|
+
_metadata = new Metadata();
|
|
44
|
+
constructor(cdr) {
|
|
45
|
+
this.cdr = cdr;
|
|
46
|
+
}
|
|
47
|
+
ngOnInit() {
|
|
48
|
+
this.loadCategories();
|
|
49
|
+
}
|
|
50
|
+
get panelTitle() {
|
|
51
|
+
return this.isNew ? 'Create Category' : 'Edit Category';
|
|
52
|
+
}
|
|
53
|
+
get canSave() {
|
|
54
|
+
return this.name.trim().length > 0;
|
|
55
|
+
}
|
|
56
|
+
get availableParentCategories() {
|
|
57
|
+
// Exclude the current category and its descendants from parent options
|
|
58
|
+
if (!this.category || this.isNew) {
|
|
59
|
+
return this.allCategories;
|
|
60
|
+
}
|
|
61
|
+
const currentId = this.category.ID;
|
|
62
|
+
const descendantIds = this.getDescendantIds(currentId);
|
|
63
|
+
descendantIds.add(currentId);
|
|
64
|
+
return this.allCategories.filter(c => !descendantIds.has(c.ID));
|
|
65
|
+
}
|
|
66
|
+
getDescendantIds(categoryId) {
|
|
67
|
+
const descendants = new Set();
|
|
68
|
+
const findChildren = (parentId) => {
|
|
69
|
+
for (const cat of this.allCategories) {
|
|
70
|
+
if (cat.ParentID === parentId) {
|
|
71
|
+
descendants.add(cat.ID);
|
|
72
|
+
findChildren(cat.ID);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
findChildren(categoryId);
|
|
77
|
+
return descendants;
|
|
78
|
+
}
|
|
79
|
+
async open(category, preselectedParentId) {
|
|
80
|
+
this.isLoading = true;
|
|
81
|
+
this.isOpen = true;
|
|
82
|
+
this.category = category;
|
|
83
|
+
this.isNew = !category || !category.ID;
|
|
84
|
+
this.cdr.markForCheck();
|
|
85
|
+
await this.loadCategories();
|
|
86
|
+
this.resetForm();
|
|
87
|
+
if (category && category.ID) {
|
|
88
|
+
this.populateFromCategory(category);
|
|
89
|
+
}
|
|
90
|
+
else if (preselectedParentId) {
|
|
91
|
+
this.parentId = preselectedParentId;
|
|
92
|
+
}
|
|
93
|
+
this.isLoading = false;
|
|
94
|
+
this.cdr.markForCheck();
|
|
95
|
+
}
|
|
96
|
+
async loadCategories() {
|
|
97
|
+
try {
|
|
98
|
+
const rv = new RunView();
|
|
99
|
+
const result = await rv.RunView({
|
|
100
|
+
EntityName: 'MJ: Credential Categories',
|
|
101
|
+
OrderBy: 'Name',
|
|
102
|
+
ResultType: 'entity_object'
|
|
103
|
+
});
|
|
104
|
+
if (result.Success) {
|
|
105
|
+
this.allCategories = result.Results;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
console.error('Error loading categories:', error);
|
|
110
|
+
}
|
|
111
|
+
this.cdr.markForCheck();
|
|
112
|
+
}
|
|
113
|
+
resetForm() {
|
|
114
|
+
this.name = '';
|
|
115
|
+
this.description = '';
|
|
116
|
+
this.parentId = '';
|
|
117
|
+
this.iconClass = '';
|
|
118
|
+
}
|
|
119
|
+
populateFromCategory(category) {
|
|
120
|
+
this.name = category.Name || '';
|
|
121
|
+
this.description = category.Description || '';
|
|
122
|
+
this.parentId = category.ParentID || '';
|
|
123
|
+
this.iconClass = category.IconClass || '';
|
|
124
|
+
}
|
|
125
|
+
selectIcon(icon) {
|
|
126
|
+
this.iconClass = icon;
|
|
127
|
+
this.cdr.markForCheck();
|
|
128
|
+
}
|
|
129
|
+
async save() {
|
|
130
|
+
if (!this.canSave) {
|
|
131
|
+
MJNotificationService.Instance.CreateSimpleNotification('Please enter a category name', 'warning', 3000);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.isSaving = true;
|
|
135
|
+
this.cdr.markForCheck();
|
|
136
|
+
try {
|
|
137
|
+
let entity;
|
|
138
|
+
if (this.isNew) {
|
|
139
|
+
entity = await this._metadata.GetEntityObject('MJ: Credential Categories');
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
entity = this.category;
|
|
143
|
+
}
|
|
144
|
+
entity.Name = this.name.trim();
|
|
145
|
+
entity.Description = this.description.trim() || null;
|
|
146
|
+
entity.ParentID = this.parentId || null;
|
|
147
|
+
entity.IconClass = this.iconClass.trim() || null;
|
|
148
|
+
const success = await entity.Save();
|
|
149
|
+
if (success) {
|
|
150
|
+
const action = this.isNew ? 'created' : 'updated';
|
|
151
|
+
MJNotificationService.Instance.CreateSimpleNotification(`Category "${entity.Name}" ${action} successfully`, 'success', 3000);
|
|
152
|
+
this.saved.emit(entity);
|
|
153
|
+
this.closePanel();
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
const errorMessage = entity.LatestResult?.Message || 'Unknown error';
|
|
157
|
+
console.error('Save failed:', errorMessage);
|
|
158
|
+
MJNotificationService.Instance.CreateSimpleNotification(`Failed to save category: ${errorMessage}`, 'error', 5000);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
console.error('Error saving category:', error);
|
|
163
|
+
MJNotificationService.Instance.CreateSimpleNotification('Error saving category', 'error', 3000);
|
|
164
|
+
}
|
|
165
|
+
finally {
|
|
166
|
+
this.isSaving = false;
|
|
167
|
+
this.cdr.markForCheck();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
async deleteCategory() {
|
|
171
|
+
if (this.isNew || !this.category)
|
|
172
|
+
return;
|
|
173
|
+
const confirmed = confirm(`Are you sure you want to delete "${this.category.Name}"? This action cannot be undone.`);
|
|
174
|
+
if (!confirmed)
|
|
175
|
+
return;
|
|
176
|
+
this.isSaving = true;
|
|
177
|
+
this.cdr.markForCheck();
|
|
178
|
+
try {
|
|
179
|
+
const success = await this.category.Delete();
|
|
180
|
+
if (success) {
|
|
181
|
+
MJNotificationService.Instance.CreateSimpleNotification(`Category "${this.category.Name}" deleted successfully`, 'success', 3000);
|
|
182
|
+
this.deleted.emit(this.category.ID);
|
|
183
|
+
this.closePanel();
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
const errorMessage = this.category.LatestResult?.Message || 'Unknown error';
|
|
187
|
+
MJNotificationService.Instance.CreateSimpleNotification(`Failed to delete category: ${errorMessage}`, 'error', 5000);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
console.error('Error deleting category:', error);
|
|
192
|
+
MJNotificationService.Instance.CreateSimpleNotification('Error deleting category', 'error', 3000);
|
|
193
|
+
}
|
|
194
|
+
finally {
|
|
195
|
+
this.isSaving = false;
|
|
196
|
+
this.cdr.markForCheck();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
closePanel() {
|
|
200
|
+
this.isOpen = false;
|
|
201
|
+
this.category = null;
|
|
202
|
+
this.resetForm();
|
|
203
|
+
this.close.emit();
|
|
204
|
+
this.cdr.markForCheck();
|
|
205
|
+
}
|
|
206
|
+
onBackdropClick(event) {
|
|
207
|
+
if (event.target.classList.contains('panel-backdrop')) {
|
|
208
|
+
this.closePanel();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
getParentPath(categoryId) {
|
|
212
|
+
const parts = [];
|
|
213
|
+
let current = this.allCategories.find(c => c.ID === categoryId);
|
|
214
|
+
while (current) {
|
|
215
|
+
parts.unshift(current.Name);
|
|
216
|
+
current = current.ParentID ? this.allCategories.find(c => c.ID === current.ParentID) : undefined;
|
|
217
|
+
}
|
|
218
|
+
return parts.join(' / ');
|
|
219
|
+
}
|
|
220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CredentialCategoryEditPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
221
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CredentialCategoryEditPanelComponent, selector: "mj-credential-category-edit-panel", inputs: { category: "category", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, ngImport: i0, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick($event)\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n <div class=\"header-icon\" [style.backgroundColor]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"parentId\">\n Under: {{getParentPath(parentId)}}\n </span>\n <span class=\"header-subtitle\" *ngIf=\"!parentId\">Root category</span>\n </div>\n </div>\n <button class=\"close-btn\" (click)=\"closePanel()\" [disabled]=\"isSaving\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <!-- Panel Body -->\n <div class=\"panel-body\">\n <mj-loading *ngIf=\"isLoading\" text=\"Loading...\"></mj-loading>\n\n <form *ngIf=\"!isLoading\" class=\"category-form\" (submit)=\"$event.preventDefault(); save()\">\n <!-- Basic Info Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"categoryName\"\n name=\"categoryName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production, Development, API Keys\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryParent\">Parent Category</label>\n <select\n id=\"categoryParent\"\n name=\"categoryParent\"\n [(ngModel)]=\"parentId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No parent (root category)</option>\n <option *ngFor=\"let cat of availableParentCategories\" [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryDescription\">Description</label>\n <textarea\n id=\"categoryDescription\"\n name=\"categoryDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description of this category...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Icon Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-icons\"></i>\n Icon\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryIcon\">Custom Icon Class</label>\n <input\n type=\"text\"\n id=\"categoryIcon\"\n name=\"categoryIcon\"\n [(ngModel)]=\"iconClass\"\n placeholder=\"e.g., fa-solid fa-folder\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Font Awesome icon class</span>\n </div>\n\n <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n <button\n type=\"button\"\n class=\"icon-btn\"\n *ngFor=\"let suggestion of iconSuggestions\"\n [class.selected]=\"iconClass === suggestion.icon\"\n (click)=\"selectIcon(suggestion.icon)\"\n [disabled]=\"isSaving\"\n [title]=\"suggestion.label\"\n >\n <i [class]=\"suggestion.icon\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"icon-preview\" *ngIf=\"iconClass\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n </div>\n </form>\n </div>\n\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n <button\n class=\"btn-delete\"\n *ngIf=\"!isNew\"\n (click)=\"deleteCategory()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n </div>\n <div class=\"footer-right\">\n <button\n class=\"btn-secondary\"\n (click)=\"closePanel()\"\n [disabled]=\"isSaving\"\n >\n Cancel\n </button>\n <button\n class=\"btn-primary\"\n (click)=\"save()\"\n [disabled]=\"isSaving || !canSave\"\n >\n <i class=\"fa-solid fa-spinner fa-spin\" *ngIf=\"isSaving\"></i>\n <i class=\"fa-solid fa-check\" *ngIf=\"!isSaving\"></i>\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n</div>\n", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.LoadingComponent, selector: "mj-loading", inputs: ["text", "showText", "animationDuration", "size", "textColor", "logoColor", "logoGradient", "animation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
222
|
+
}
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CredentialCategoryEditPanelComponent, decorators: [{
|
|
224
|
+
type: Component,
|
|
225
|
+
args: [{ selector: 'mj-credential-category-edit-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick($event)\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n <div class=\"header-icon\" [style.backgroundColor]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"parentId\">\n Under: {{getParentPath(parentId)}}\n </span>\n <span class=\"header-subtitle\" *ngIf=\"!parentId\">Root category</span>\n </div>\n </div>\n <button class=\"close-btn\" (click)=\"closePanel()\" [disabled]=\"isSaving\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <!-- Panel Body -->\n <div class=\"panel-body\">\n <mj-loading *ngIf=\"isLoading\" text=\"Loading...\"></mj-loading>\n\n <form *ngIf=\"!isLoading\" class=\"category-form\" (submit)=\"$event.preventDefault(); save()\">\n <!-- Basic Info Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"categoryName\"\n name=\"categoryName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production, Development, API Keys\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryParent\">Parent Category</label>\n <select\n id=\"categoryParent\"\n name=\"categoryParent\"\n [(ngModel)]=\"parentId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No parent (root category)</option>\n <option *ngFor=\"let cat of availableParentCategories\" [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryDescription\">Description</label>\n <textarea\n id=\"categoryDescription\"\n name=\"categoryDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description of this category...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Icon Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-icons\"></i>\n Icon\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryIcon\">Custom Icon Class</label>\n <input\n type=\"text\"\n id=\"categoryIcon\"\n name=\"categoryIcon\"\n [(ngModel)]=\"iconClass\"\n placeholder=\"e.g., fa-solid fa-folder\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Font Awesome icon class</span>\n </div>\n\n <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n <button\n type=\"button\"\n class=\"icon-btn\"\n *ngFor=\"let suggestion of iconSuggestions\"\n [class.selected]=\"iconClass === suggestion.icon\"\n (click)=\"selectIcon(suggestion.icon)\"\n [disabled]=\"isSaving\"\n [title]=\"suggestion.label\"\n >\n <i [class]=\"suggestion.icon\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"icon-preview\" *ngIf=\"iconClass\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n </div>\n </form>\n </div>\n\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n <button\n class=\"btn-delete\"\n *ngIf=\"!isNew\"\n (click)=\"deleteCategory()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n </div>\n <div class=\"footer-right\">\n <button\n class=\"btn-secondary\"\n (click)=\"closePanel()\"\n [disabled]=\"isSaving\"\n >\n Cancel\n </button>\n <button\n class=\"btn-primary\"\n (click)=\"save()\"\n [disabled]=\"isSaving || !canSave\"\n >\n <i class=\"fa-solid fa-spinner fa-spin\" *ngIf=\"isSaving\"></i>\n <i class=\"fa-solid fa-check\" *ngIf=\"!isSaving\"></i>\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n</div>\n", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"] }]
|
|
226
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { category: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], isOpen: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], close: [{
|
|
231
|
+
type: Output
|
|
232
|
+
}], saved: [{
|
|
233
|
+
type: Output
|
|
234
|
+
}], deleted: [{
|
|
235
|
+
type: Output
|
|
236
|
+
}] } });
|
|
237
|
+
//# sourceMappingURL=credential-category-edit-panel.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-category-edit-panel.component.js","sourceRoot":"","sources":["../../../../src/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.ts","../../../../src/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.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C5B,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACtG,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;wGAjQQ,oCAAoC;4FAApC,oCAAoC,8LCfjD,21NA4JA;;4FD7Ia,oCAAoC;kBANhD,SAAS;+BACI,mCAAmC,mBAG5B,uBAAuB,CAAC,MAAM;sFAGtC,QAAQ;sBAAhB,KAAK;gBACG,MAAM;sBAAd,KAAK;gBAEI,KAAK;sBAAd,MAAM;gBACG,KAAK;sBAAd,MAAM;gBACG,OAAO;sBAAhB,MAAM"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CredentialEntity, CredentialTypeEntity, CredentialCategoryEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare function LoadCredentialEditPanel(): void;
|
|
5
|
+
interface FieldSchemaProperty {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
isSecret: boolean;
|
|
11
|
+
required: boolean;
|
|
12
|
+
order: number;
|
|
13
|
+
enum?: string[];
|
|
14
|
+
const?: unknown;
|
|
15
|
+
default?: unknown;
|
|
16
|
+
format?: string;
|
|
17
|
+
pattern?: string;
|
|
18
|
+
minLength?: number;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
minimum?: number;
|
|
21
|
+
maximum?: number;
|
|
22
|
+
}
|
|
23
|
+
interface CredentialValues {
|
|
24
|
+
[key: string]: string | number | boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class CredentialEditPanelComponent implements OnInit, OnDestroy {
|
|
27
|
+
private cdr;
|
|
28
|
+
credential: CredentialEntity | null;
|
|
29
|
+
credentialTypes: CredentialTypeEntity[];
|
|
30
|
+
isOpen: boolean;
|
|
31
|
+
close: EventEmitter<void>;
|
|
32
|
+
saved: EventEmitter<CredentialEntity>;
|
|
33
|
+
deleted: EventEmitter<string>;
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
isSaving: boolean;
|
|
36
|
+
isNew: boolean;
|
|
37
|
+
categories: CredentialCategoryEntity[];
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
selectedTypeId: string;
|
|
41
|
+
selectedCategoryId: string;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
isDefault: boolean;
|
|
44
|
+
expiresAt: Date | null;
|
|
45
|
+
credentialValues: CredentialValues;
|
|
46
|
+
schemaFields: FieldSchemaProperty[];
|
|
47
|
+
showSecretFields: Set<string>;
|
|
48
|
+
private _metadata;
|
|
49
|
+
constructor(cdr: ChangeDetectorRef);
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
52
|
+
get selectedType(): CredentialTypeEntity | null;
|
|
53
|
+
get panelTitle(): string;
|
|
54
|
+
get canSave(): boolean;
|
|
55
|
+
open(credential: CredentialEntity | null, preselectedTypeId?: string, preselectedCategoryId?: string): Promise<void>;
|
|
56
|
+
private resetForm;
|
|
57
|
+
private populateFromCredential;
|
|
58
|
+
private loadCategories;
|
|
59
|
+
onTypeChange(): void;
|
|
60
|
+
toggleSecretVisibility(fieldName: string): void;
|
|
61
|
+
isSecretVisible(fieldName: string): boolean;
|
|
62
|
+
save(): Promise<void>;
|
|
63
|
+
deleteCredential(): Promise<void>;
|
|
64
|
+
closePanel(): void;
|
|
65
|
+
onBackdropClick(): void;
|
|
66
|
+
onEscapeKey(event: Event): void;
|
|
67
|
+
get groupedCredentialTypes(): Array<{
|
|
68
|
+
category: string;
|
|
69
|
+
types: CredentialTypeEntity[];
|
|
70
|
+
}>;
|
|
71
|
+
getTypeIcon(type: CredentialTypeEntity): string;
|
|
72
|
+
getTypeColor(type: CredentialTypeEntity): string;
|
|
73
|
+
onValueChange(fieldName: string, value: string): void;
|
|
74
|
+
formatDateForInput(date: Date | null): string;
|
|
75
|
+
onExpiresAtChange(value: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Validates a field value against format constraints.
|
|
78
|
+
*/
|
|
79
|
+
private validateFormat;
|
|
80
|
+
/**
|
|
81
|
+
* Validates all credential fields against their schema constraints.
|
|
82
|
+
* Returns array of error messages (empty if all valid).
|
|
83
|
+
*/
|
|
84
|
+
private validateAllFields;
|
|
85
|
+
/**
|
|
86
|
+
* Cleans credential values before saving by removing:
|
|
87
|
+
* - "undefined" string values
|
|
88
|
+
* - Empty strings for non-required fields
|
|
89
|
+
* - null and undefined values
|
|
90
|
+
*/
|
|
91
|
+
private cleanCredentialValues;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CredentialEditPanelComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CredentialEditPanelComponent, "mj-credential-edit-panel", never, { "credential": { "alias": "credential"; "required": false; }; "credentialTypes": { "alias": "credentialTypes"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "close": "close"; "saved": "saved"; "deleted": "deleted"; }, never, never, false, never>;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=credential-edit-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,SAAS,EAAgB,MAAM,eAAe,CAAC;AACpJ,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CA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