@memberjunction/ng-credentials 3.4.0 → 4.1.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.
Files changed (24) hide show
  1. package/README.md +135 -0
  2. package/dist/lib/credentials.module.d.ts +0 -5
  3. package/dist/lib/credentials.module.d.ts.map +1 -1
  4. package/dist/lib/credentials.module.js +8 -18
  5. package/dist/lib/credentials.module.js.map +1 -1
  6. package/dist/lib/dialogs/credential-dialog.component.d.ts +0 -1
  7. package/dist/lib/dialogs/credential-dialog.component.d.ts.map +1 -1
  8. package/dist/lib/dialogs/credential-dialog.component.js +4 -7
  9. package/dist/lib/dialogs/credential-dialog.component.js.map +1 -1
  10. package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts +0 -1
  11. package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts.map +1 -1
  12. package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js +6 -10
  13. package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js.map +1 -1
  14. package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts +0 -1
  15. package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts.map +1 -1
  16. package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js +6 -10
  17. package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js.map +1 -1
  18. package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts +0 -1
  19. package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts.map +1 -1
  20. package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js +6 -10
  21. package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js.map +1 -1
  22. package/dist/lib/services/credential-dialog.service.js +3 -3
  23. package/dist/lib/services/credential-dialog.service.js.map +1 -1
  24. package/package.json +15 -15
@@ -2,12 +2,8 @@ import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, HostLi
2
2
  import { Metadata, RunView } from '@memberjunction/core';
3
3
  import { MJNotificationService } from '@memberjunction/ng-notifications';
4
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 LoadCredentialEditPanel() {
9
- // Prevents tree-shaking
10
- }
5
+ import * as i1 from "@angular/forms";
6
+ import * as i2 from "@memberjunction/ng-shared-generic";
11
7
  export class CredentialEditPanelComponent {
12
8
  cdr;
13
9
  credential = null;
@@ -508,12 +504,12 @@ export class CredentialEditPanelComponent {
508
504
  }
509
505
  return cleaned;
510
506
  }
511
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CredentialEditPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
512
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CredentialEditPanelComponent, selector: "mj-credential-edit-panel", inputs: { credential: "credential", credentialTypes: "credentialTypes", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, host: { listeners: { "document:keydown.escape": "onEscapeKey($event)" } }, ngImport: i0, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick()\">\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\" *ngIf=\"selectedType\" [style.backgroundColor]=\"getTypeColor(selectedType) + '15'\" [style.color]=\"getTypeColor(selectedType)\">\n <i [class]=\"getTypeIcon(selectedType)\"></i>\n </div>\n <div class=\"header-icon default\" *ngIf=\"!selectedType\">\n <i class=\"fa-solid fa-key\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"selectedType\">{{selectedType.Name}}</span>\n <span class=\"header-subtitle\" *ngIf=\"!selectedType\">Select a credential type</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=\"credential-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=\"credentialName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"credentialName\"\n name=\"credentialName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production OpenAI Key\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialType\" class=\"required\">Credential Type</label>\n <select\n id=\"credentialType\"\n name=\"credentialType\"\n [(ngModel)]=\"selectedTypeId\"\n (ngModelChange)=\"onTypeChange()\"\n [disabled]=\"isSaving || !isNew\"\n required\n >\n <option [ngValue]=\"''\">Select a type...</option>\n <optgroup *ngFor=\"let group of groupedCredentialTypes\" [label]=\"group.category\">\n <option *ngFor=\"let type of group.types\" [ngValue]=\"type.ID\">\n {{type.Name}}\n </option>\n </optgroup>\n </select>\n <span class=\"field-hint\" *ngIf=\"!isNew\">Type cannot be changed after creation</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialCategory\">Category</label>\n <select\n id=\"credentialCategory\"\n name=\"credentialCategory\"\n [(ngModel)]=\"selectedCategoryId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No category</option>\n <option *ngFor=\"let cat of categories\" [ngValue]=\"cat.ID\">{{cat.Name}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialDescription\">Description</label>\n <textarea\n id=\"credentialDescription\"\n name=\"credentialDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Credential Values Section -->\n <div class=\"form-section\" *ngIf=\"schemaFields.length > 0\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-key\"></i>\n Credential Values\n <span class=\"encrypted-badge\">\n <i class=\"fa-solid fa-lock\"></i>\n Encrypted\n </span>\n </h3>\n\n <div class=\"form-group\" *ngFor=\"let field of schemaFields\">\n <label [for]=\"'field-' + field.name\" [class.required]=\"field.required\">\n {{field.title}}\n </label>\n\n <div class=\"secret-field-wrapper\" *ngIf=\"field.isSecret; else regularField\">\n <input\n [type]=\"isSecretVisible(field.name) ? 'text' : 'password'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n autocomplete=\"off\"\n />\n <button\n type=\"button\"\n class=\"toggle-visibility-btn\"\n (click)=\"toggleSecretVisibility(field.name)\"\n [title]=\"isSecretVisible(field.name) ? 'Hide' : 'Show'\"\n >\n <i [class]=\"isSecretVisible(field.name) ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n </button>\n </div>\n\n <ng-template #regularField>\n <!-- Const fields: Read-only display -->\n <div *ngIf=\"field.const !== undefined\" class=\"const-field-display\">\n <div class=\"const-value-container\">\n <span class=\"const-value\">{{credentialValues[field.name] || ''}}</span>\n <i class=\"fa-solid fa-lock const-lock-icon\" title=\"This value is fixed and cannot be changed\"></i>\n </div>\n <span class=\"field-hint const-hint\">This field is automatically configured</span>\n </div>\n\n <!-- Enum fields: Dropdown/select -->\n <select\n *ngIf=\"field.const === undefined && field.enum && field.enum.length > 0\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [ngModel]=\"credentialValues[field.name] || ''\"\n (ngModelChange)=\"onValueChange(field.name, $event)\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n >\n <option [ngValue]=\"''\">Select {{field.title}}...</option>\n <option *ngFor=\"let option of field.enum\" [ngValue]=\"option\">{{option}}</option>\n </select>\n\n <!-- Regular text/number input -->\n <input\n *ngIf=\"field.const === undefined && !field.enum && (field.type === 'string' || field.type === 'number')\"\n [type]=\"field.type === 'number' ? 'number' : 'text'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n [attr.minlength]=\"field.minLength\"\n [attr.maxlength]=\"field.maxLength\"\n [attr.min]=\"field.minimum\"\n [attr.max]=\"field.maximum\"\n [attr.pattern]=\"field.pattern\"\n />\n </ng-template>\n\n <span class=\"field-hint\" *ngIf=\"field.description && !field.isSecret\">{{field.description}}</span>\n </div>\n </div>\n\n <!-- No Type Selected Message -->\n <div class=\"no-type-message\" *ngIf=\"isNew && !selectedTypeId\">\n <div class=\"message-icon\">\n <i class=\"fa-solid fa-hand-pointer\"></i>\n </div>\n <p>Select a credential type above to configure the credential values.</p>\n </div>\n\n <!-- Settings Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-cog\"></i>\n Settings\n </h3>\n\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isActive\"\n [(ngModel)]=\"isActive\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Active</span>\n <span class=\"toggle-description\">Enable this credential for use</span>\n </span>\n </label>\n </div>\n\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isDefault\"\n [(ngModel)]=\"isDefault\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Default</span>\n <span class=\"toggle-description\">Use as default for this credential type</span>\n </span>\n </label>\n </div>\n\n <div class=\"form-group\">\n <label for=\"expiresAt\">Expiration Date</label>\n <input\n type=\"date\"\n id=\"expiresAt\"\n name=\"expiresAt\"\n [value]=\"formatDateForInput(expiresAt)\"\n (change)=\"onExpiresAtChange($any($event.target).value)\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Leave empty for no expiration</span>\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)=\"deleteCredential()\"\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: 520px;\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-icon.default {\n background: #f1f5f9;\n color: #64748b;\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}\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.encrypted-badge {\n margin-left: auto;\n background: #dcfce7;\n color: #166534;\n padding: 4px 10px;\n border-radius: 20px;\n font-size: 11px;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.encrypted-badge i {\n color: #16a34a;\n font-size: 10px;\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 input[type=\"password\"],\n.form-group input[type=\"number\"],\n.form-group input[type=\"date\"],\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/* Secret Field Wrapper */\n.secret-field-wrapper {\n position: relative;\n display: flex;\n}\n\n.secret-field-wrapper input {\n flex: 1;\n padding-right: 44px;\n}\n\n.toggle-visibility-btn {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n width: 36px;\n height: 36px;\n border: none;\n background: transparent;\n color: #94a3b8;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n transition: all 0.15s ease;\n}\n\n.toggle-visibility-btn:hover {\n background: #f1f5f9;\n color: #6366f1;\n}\n\n/* Toggle Groups */\n.toggle-group {\n margin-bottom: 16px;\n}\n\n.toggle-group:last-child {\n margin-bottom: 0;\n}\n\n.toggle-label {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n cursor: pointer;\n}\n\n.toggle-wrapper {\n position: relative;\n width: 44px;\n height: 24px;\n flex-shrink: 0;\n}\n\n.toggle-wrapper input {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #d1d5db;\n border-radius: 12px;\n transition: all 0.2s ease;\n}\n\n.toggle-slider::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 20px;\n height: 20px;\n background: #ffffff;\n border-radius: 50%;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.toggle-wrapper input:checked + .toggle-slider {\n background: #6366f1;\n}\n\n.toggle-wrapper input:checked + .toggle-slider::before {\n transform: translateX(20px);\n}\n\n.toggle-wrapper input:disabled + .toggle-slider {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.toggle-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: #334155;\n}\n\n.toggle-description {\n font-size: 12px;\n color: #94a3b8;\n}\n\n/* No Type Message */\n.no-type-message {\n text-align: center;\n padding: 32px 20px;\n background: #f8fafc;\n border-radius: 12px;\n border: 2px dashed #e2e8f0;\n}\n\n.message-icon {\n width: 56px;\n height: 56px;\n background: #e2e8f0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 16px;\n font-size: 24px;\n color: #94a3b8;\n}\n\n.no-type-message p {\n margin: 0;\n color: #64748b;\n font-size: 14px;\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 .form-section {\n margin-bottom: 24px;\n }\n\n .section-title {\n font-size: 13px;\n }\n\n .form-group input,\n .form-group select,\n .form-group textarea {\n padding: 12px 14px;\n font-size: 16px; /* Prevents iOS zoom on focus */\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 .toggle-label {\n gap: 12px;\n }\n\n .encrypted-badge {\n display: none;\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 .section-title {\n font-size: 12px;\n gap: 8px;\n }\n\n .form-group label {\n font-size: 12px;\n }\n\n .toggle-title {\n font-size: 13px;\n }\n\n .toggle-description {\n font-size: 11px;\n }\n\n .no-type-message {\n padding: 24px 16px;\n }\n\n .message-icon {\n width: 48px;\n height: 48px;\n font-size: 20px;\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/* Animations for saving state */\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\n/* Smooth scrolling */\n.panel-body {\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\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/* Const Field Display */\n.const-field-display {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.const-value-container {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 14px;\n background: #f8fafc;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n}\n\n.const-value {\n flex: 1;\n font-family: 'Monaco', 'Menlo', 'Consolas', monospace;\n font-size: 13px;\n color: #475569;\n word-break: break-all;\n}\n\n.const-lock-icon {\n color: #94a3b8;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.const-hint {\n color: #94a3b8;\n font-style: italic;\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.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { 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 });
507
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialEditPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
508
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: CredentialEditPanelComponent, isStandalone: false, selector: "mj-credential-edit-panel", inputs: { credential: "credential", credentialTypes: "credentialTypes", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, host: { listeners: { "document:keydown.escape": "onEscapeKey($event)" } }, ngImport: i0, template: "@if (isOpen) {\n <div class=\"panel-backdrop\" (click)=\"onBackdropClick()\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n @if (selectedType) {\n <div class=\"header-icon\" [style.backgroundColor]=\"getTypeColor(selectedType) + '15'\" [style.color]=\"getTypeColor(selectedType)\">\n <i [class]=\"getTypeIcon(selectedType)\"></i>\n </div>\n }\n @if (!selectedType) {\n <div class=\"header-icon default\">\n <i class=\"fa-solid fa-key\"></i>\n </div>\n }\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @if (selectedType) {\n <span class=\"header-subtitle\">{{selectedType.Name}}</span>\n }\n @if (!selectedType) {\n <span class=\"header-subtitle\">Select a credential type</span>\n }\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 <!-- Panel Body -->\n <div class=\"panel-body\">\n @if (isLoading) {\n <mj-loading text=\"Loading...\"></mj-loading>\n }\n @if (!isLoading) {\n <form class=\"credential-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 <div class=\"form-group\">\n <label for=\"credentialName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"credentialName\"\n name=\"credentialName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production OpenAI Key\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n <div class=\"form-group\">\n <label for=\"credentialType\" class=\"required\">Credential Type</label>\n <select\n id=\"credentialType\"\n name=\"credentialType\"\n [(ngModel)]=\"selectedTypeId\"\n (ngModelChange)=\"onTypeChange()\"\n [disabled]=\"isSaving || !isNew\"\n required\n >\n <option [ngValue]=\"''\">Select a type...</option>\n @for (group of groupedCredentialTypes; track group) {\n <optgroup [label]=\"group.category\">\n @for (type of group.types; track type) {\n <option [ngValue]=\"type.ID\">\n {{type.Name}}\n </option>\n }\n </optgroup>\n }\n </select>\n @if (!isNew) {\n <span class=\"field-hint\">Type cannot be changed after creation</span>\n }\n </div>\n <div class=\"form-group\">\n <label for=\"credentialCategory\">Category</label>\n <select\n id=\"credentialCategory\"\n name=\"credentialCategory\"\n [(ngModel)]=\"selectedCategoryId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No category</option>\n @for (cat of categories; track cat) {\n <option [ngValue]=\"cat.ID\">{{cat.Name}}</option>\n }\n </select>\n </div>\n <div class=\"form-group\">\n <label for=\"credentialDescription\">Description</label>\n <textarea\n id=\"credentialDescription\"\n name=\"credentialDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n <!-- Credential Values Section -->\n @if (schemaFields.length > 0) {\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-key\"></i>\n Credential Values\n <span class=\"encrypted-badge\">\n <i class=\"fa-solid fa-lock\"></i>\n Encrypted\n </span>\n </h3>\n @for (field of schemaFields; track field) {\n <div class=\"form-group\">\n <label [for]=\"'field-' + field.name\" [class.required]=\"field.required\">\n {{field.title}}\n </label>\n @if (field.isSecret) {\n <div class=\"secret-field-wrapper\">\n <input\n [type]=\"isSecretVisible(field.name) ? 'text' : 'password'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n autocomplete=\"off\"\n />\n <button\n type=\"button\"\n class=\"toggle-visibility-btn\"\n (click)=\"toggleSecretVisibility(field.name)\"\n [title]=\"isSecretVisible(field.name) ? 'Hide' : 'Show'\"\n >\n <i [class]=\"isSecretVisible(field.name) ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n </button>\n </div>\n } @else {\n <!-- Const fields: Read-only display -->\n @if (field.const !== undefined) {\n <div class=\"const-field-display\">\n <div class=\"const-value-container\">\n <span class=\"const-value\">{{credentialValues[field.name] || ''}}</span>\n <i class=\"fa-solid fa-lock const-lock-icon\" title=\"This value is fixed and cannot be changed\"></i>\n </div>\n <span class=\"field-hint const-hint\">This field is automatically configured</span>\n </div>\n }\n <!-- Enum fields: Dropdown/select -->\n @if (field.const === undefined && field.enum && field.enum.length > 0) {\n <select\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [ngModel]=\"credentialValues[field.name] || ''\"\n (ngModelChange)=\"onValueChange(field.name, $event)\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n >\n <option [ngValue]=\"''\">Select {{field.title}}...</option>\n @for (option of field.enum; track option) {\n <option [ngValue]=\"option\">{{option}}</option>\n }\n </select>\n }\n <!-- Regular text/number input -->\n @if (field.const === undefined && !field.enum && (field.type === 'string' || field.type === 'number')) {\n <input\n [type]=\"field.type === 'number' ? 'number' : 'text'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n [attr.minlength]=\"field.minLength\"\n [attr.maxlength]=\"field.maxLength\"\n [attr.min]=\"field.minimum\"\n [attr.max]=\"field.maximum\"\n [attr.pattern]=\"field.pattern\"\n />\n }\n }\n @if (field.description && !field.isSecret) {\n <span class=\"field-hint\">{{field.description}}</span>\n }\n </div>\n }\n </div>\n }\n <!-- No Type Selected Message -->\n @if (isNew && !selectedTypeId) {\n <div class=\"no-type-message\">\n <div class=\"message-icon\">\n <i class=\"fa-solid fa-hand-pointer\"></i>\n </div>\n <p>Select a credential type above to configure the credential values.</p>\n </div>\n }\n <!-- Settings Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-cog\"></i>\n Settings\n </h3>\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isActive\"\n [(ngModel)]=\"isActive\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Active</span>\n <span class=\"toggle-description\">Enable this credential for use</span>\n </span>\n </label>\n </div>\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isDefault\"\n [(ngModel)]=\"isDefault\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Default</span>\n <span class=\"toggle-description\">Use as default for this credential type</span>\n </span>\n </label>\n </div>\n <div class=\"form-group\">\n <label for=\"expiresAt\">Expiration Date</label>\n <input\n type=\"date\"\n id=\"expiresAt\"\n name=\"expiresAt\"\n [value]=\"formatDateForInput(expiresAt)\"\n (change)=\"onExpiresAtChange($any($event.target).value)\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Leave empty for no expiration</span>\n </div>\n </div>\n </form>\n }\n </div>\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n @if (!isNew) {\n <button\n class=\"btn-delete\"\n (click)=\"deleteCredential()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n }\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 @if (isSaving) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n }\n @if (!isSaving) {\n <i class=\"fa-solid fa-check\"></i>\n }\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\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: 520px;\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-icon.default {\n background: #f1f5f9;\n color: #64748b;\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}\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.encrypted-badge {\n margin-left: auto;\n background: #dcfce7;\n color: #166534;\n padding: 4px 10px;\n border-radius: 20px;\n font-size: 11px;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.encrypted-badge i {\n color: #16a34a;\n font-size: 10px;\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 input[type=\"password\"],\n.form-group input[type=\"number\"],\n.form-group input[type=\"date\"],\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/* Secret Field Wrapper */\n.secret-field-wrapper {\n position: relative;\n display: flex;\n}\n\n.secret-field-wrapper input {\n flex: 1;\n padding-right: 44px;\n}\n\n.toggle-visibility-btn {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n width: 36px;\n height: 36px;\n border: none;\n background: transparent;\n color: #94a3b8;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n transition: all 0.15s ease;\n}\n\n.toggle-visibility-btn:hover {\n background: #f1f5f9;\n color: #6366f1;\n}\n\n/* Toggle Groups */\n.toggle-group {\n margin-bottom: 16px;\n}\n\n.toggle-group:last-child {\n margin-bottom: 0;\n}\n\n.toggle-label {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n cursor: pointer;\n}\n\n.toggle-wrapper {\n position: relative;\n width: 44px;\n height: 24px;\n flex-shrink: 0;\n}\n\n.toggle-wrapper input {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #d1d5db;\n border-radius: 12px;\n transition: all 0.2s ease;\n}\n\n.toggle-slider::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 20px;\n height: 20px;\n background: #ffffff;\n border-radius: 50%;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.toggle-wrapper input:checked + .toggle-slider {\n background: #6366f1;\n}\n\n.toggle-wrapper input:checked + .toggle-slider::before {\n transform: translateX(20px);\n}\n\n.toggle-wrapper input:disabled + .toggle-slider {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.toggle-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: #334155;\n}\n\n.toggle-description {\n font-size: 12px;\n color: #94a3b8;\n}\n\n/* No Type Message */\n.no-type-message {\n text-align: center;\n padding: 32px 20px;\n background: #f8fafc;\n border-radius: 12px;\n border: 2px dashed #e2e8f0;\n}\n\n.message-icon {\n width: 56px;\n height: 56px;\n background: #e2e8f0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 16px;\n font-size: 24px;\n color: #94a3b8;\n}\n\n.no-type-message p {\n margin: 0;\n color: #64748b;\n font-size: 14px;\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 .form-section {\n margin-bottom: 24px;\n }\n\n .section-title {\n font-size: 13px;\n }\n\n .form-group input,\n .form-group select,\n .form-group textarea {\n padding: 12px 14px;\n font-size: 16px; /* Prevents iOS zoom on focus */\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 .toggle-label {\n gap: 12px;\n }\n\n .encrypted-badge {\n display: none;\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 .section-title {\n font-size: 12px;\n gap: 8px;\n }\n\n .form-group label {\n font-size: 12px;\n }\n\n .toggle-title {\n font-size: 13px;\n }\n\n .toggle-description {\n font-size: 11px;\n }\n\n .no-type-message {\n padding: 24px 16px;\n }\n\n .message-icon {\n width: 48px;\n height: 48px;\n font-size: 20px;\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/* Animations for saving state */\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\n/* Smooth scrolling */\n.panel-body {\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\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/* Const Field Display */\n.const-field-display {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.const-value-container {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 14px;\n background: #f8fafc;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n}\n\n.const-value {\n flex: 1;\n font-family: 'Monaco', 'Menlo', 'Consolas', monospace;\n font-size: 13px;\n color: #475569;\n word-break: break-all;\n}\n\n.const-lock-icon {\n color: #94a3b8;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.const-hint {\n color: #94a3b8;\n font-style: italic;\n}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.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: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2.LoadingComponent, selector: "mj-loading", inputs: ["text", "showText", "animationDuration", "size", "textColor", "logoColor", "logoGradient", "animation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
513
509
  }
514
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CredentialEditPanelComponent, decorators: [{
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialEditPanelComponent, decorators: [{
515
511
  type: Component,
516
- args: [{ selector: 'mj-credential-edit-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick()\">\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\" *ngIf=\"selectedType\" [style.backgroundColor]=\"getTypeColor(selectedType) + '15'\" [style.color]=\"getTypeColor(selectedType)\">\n <i [class]=\"getTypeIcon(selectedType)\"></i>\n </div>\n <div class=\"header-icon default\" *ngIf=\"!selectedType\">\n <i class=\"fa-solid fa-key\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"selectedType\">{{selectedType.Name}}</span>\n <span class=\"header-subtitle\" *ngIf=\"!selectedType\">Select a credential type</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=\"credential-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=\"credentialName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"credentialName\"\n name=\"credentialName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production OpenAI Key\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialType\" class=\"required\">Credential Type</label>\n <select\n id=\"credentialType\"\n name=\"credentialType\"\n [(ngModel)]=\"selectedTypeId\"\n (ngModelChange)=\"onTypeChange()\"\n [disabled]=\"isSaving || !isNew\"\n required\n >\n <option [ngValue]=\"''\">Select a type...</option>\n <optgroup *ngFor=\"let group of groupedCredentialTypes\" [label]=\"group.category\">\n <option *ngFor=\"let type of group.types\" [ngValue]=\"type.ID\">\n {{type.Name}}\n </option>\n </optgroup>\n </select>\n <span class=\"field-hint\" *ngIf=\"!isNew\">Type cannot be changed after creation</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialCategory\">Category</label>\n <select\n id=\"credentialCategory\"\n name=\"credentialCategory\"\n [(ngModel)]=\"selectedCategoryId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No category</option>\n <option *ngFor=\"let cat of categories\" [ngValue]=\"cat.ID\">{{cat.Name}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label for=\"credentialDescription\">Description</label>\n <textarea\n id=\"credentialDescription\"\n name=\"credentialDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Credential Values Section -->\n <div class=\"form-section\" *ngIf=\"schemaFields.length > 0\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-key\"></i>\n Credential Values\n <span class=\"encrypted-badge\">\n <i class=\"fa-solid fa-lock\"></i>\n Encrypted\n </span>\n </h3>\n\n <div class=\"form-group\" *ngFor=\"let field of schemaFields\">\n <label [for]=\"'field-' + field.name\" [class.required]=\"field.required\">\n {{field.title}}\n </label>\n\n <div class=\"secret-field-wrapper\" *ngIf=\"field.isSecret; else regularField\">\n <input\n [type]=\"isSecretVisible(field.name) ? 'text' : 'password'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n autocomplete=\"off\"\n />\n <button\n type=\"button\"\n class=\"toggle-visibility-btn\"\n (click)=\"toggleSecretVisibility(field.name)\"\n [title]=\"isSecretVisible(field.name) ? 'Hide' : 'Show'\"\n >\n <i [class]=\"isSecretVisible(field.name) ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n </button>\n </div>\n\n <ng-template #regularField>\n <!-- Const fields: Read-only display -->\n <div *ngIf=\"field.const !== undefined\" class=\"const-field-display\">\n <div class=\"const-value-container\">\n <span class=\"const-value\">{{credentialValues[field.name] || ''}}</span>\n <i class=\"fa-solid fa-lock const-lock-icon\" title=\"This value is fixed and cannot be changed\"></i>\n </div>\n <span class=\"field-hint const-hint\">This field is automatically configured</span>\n </div>\n\n <!-- Enum fields: Dropdown/select -->\n <select\n *ngIf=\"field.const === undefined && field.enum && field.enum.length > 0\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [ngModel]=\"credentialValues[field.name] || ''\"\n (ngModelChange)=\"onValueChange(field.name, $event)\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n >\n <option [ngValue]=\"''\">Select {{field.title}}...</option>\n <option *ngFor=\"let option of field.enum\" [ngValue]=\"option\">{{option}}</option>\n </select>\n\n <!-- Regular text/number input -->\n <input\n *ngIf=\"field.const === undefined && !field.enum && (field.type === 'string' || field.type === 'number')\"\n [type]=\"field.type === 'number' ? 'number' : 'text'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n [attr.minlength]=\"field.minLength\"\n [attr.maxlength]=\"field.maxLength\"\n [attr.min]=\"field.minimum\"\n [attr.max]=\"field.maximum\"\n [attr.pattern]=\"field.pattern\"\n />\n </ng-template>\n\n <span class=\"field-hint\" *ngIf=\"field.description && !field.isSecret\">{{field.description}}</span>\n </div>\n </div>\n\n <!-- No Type Selected Message -->\n <div class=\"no-type-message\" *ngIf=\"isNew && !selectedTypeId\">\n <div class=\"message-icon\">\n <i class=\"fa-solid fa-hand-pointer\"></i>\n </div>\n <p>Select a credential type above to configure the credential values.</p>\n </div>\n\n <!-- Settings Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-cog\"></i>\n Settings\n </h3>\n\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isActive\"\n [(ngModel)]=\"isActive\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Active</span>\n <span class=\"toggle-description\">Enable this credential for use</span>\n </span>\n </label>\n </div>\n\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isDefault\"\n [(ngModel)]=\"isDefault\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Default</span>\n <span class=\"toggle-description\">Use as default for this credential type</span>\n </span>\n </label>\n </div>\n\n <div class=\"form-group\">\n <label for=\"expiresAt\">Expiration Date</label>\n <input\n type=\"date\"\n id=\"expiresAt\"\n name=\"expiresAt\"\n [value]=\"formatDateForInput(expiresAt)\"\n (change)=\"onExpiresAtChange($any($event.target).value)\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Leave empty for no expiration</span>\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)=\"deleteCredential()\"\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: 520px;\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-icon.default {\n background: #f1f5f9;\n color: #64748b;\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}\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.encrypted-badge {\n margin-left: auto;\n background: #dcfce7;\n color: #166534;\n padding: 4px 10px;\n border-radius: 20px;\n font-size: 11px;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.encrypted-badge i {\n color: #16a34a;\n font-size: 10px;\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 input[type=\"password\"],\n.form-group input[type=\"number\"],\n.form-group input[type=\"date\"],\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/* Secret Field Wrapper */\n.secret-field-wrapper {\n position: relative;\n display: flex;\n}\n\n.secret-field-wrapper input {\n flex: 1;\n padding-right: 44px;\n}\n\n.toggle-visibility-btn {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n width: 36px;\n height: 36px;\n border: none;\n background: transparent;\n color: #94a3b8;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n transition: all 0.15s ease;\n}\n\n.toggle-visibility-btn:hover {\n background: #f1f5f9;\n color: #6366f1;\n}\n\n/* Toggle Groups */\n.toggle-group {\n margin-bottom: 16px;\n}\n\n.toggle-group:last-child {\n margin-bottom: 0;\n}\n\n.toggle-label {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n cursor: pointer;\n}\n\n.toggle-wrapper {\n position: relative;\n width: 44px;\n height: 24px;\n flex-shrink: 0;\n}\n\n.toggle-wrapper input {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #d1d5db;\n border-radius: 12px;\n transition: all 0.2s ease;\n}\n\n.toggle-slider::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 20px;\n height: 20px;\n background: #ffffff;\n border-radius: 50%;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.toggle-wrapper input:checked + .toggle-slider {\n background: #6366f1;\n}\n\n.toggle-wrapper input:checked + .toggle-slider::before {\n transform: translateX(20px);\n}\n\n.toggle-wrapper input:disabled + .toggle-slider {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.toggle-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: #334155;\n}\n\n.toggle-description {\n font-size: 12px;\n color: #94a3b8;\n}\n\n/* No Type Message */\n.no-type-message {\n text-align: center;\n padding: 32px 20px;\n background: #f8fafc;\n border-radius: 12px;\n border: 2px dashed #e2e8f0;\n}\n\n.message-icon {\n width: 56px;\n height: 56px;\n background: #e2e8f0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 16px;\n font-size: 24px;\n color: #94a3b8;\n}\n\n.no-type-message p {\n margin: 0;\n color: #64748b;\n font-size: 14px;\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 .form-section {\n margin-bottom: 24px;\n }\n\n .section-title {\n font-size: 13px;\n }\n\n .form-group input,\n .form-group select,\n .form-group textarea {\n padding: 12px 14px;\n font-size: 16px; /* Prevents iOS zoom on focus */\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 .toggle-label {\n gap: 12px;\n }\n\n .encrypted-badge {\n display: none;\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 .section-title {\n font-size: 12px;\n gap: 8px;\n }\n\n .form-group label {\n font-size: 12px;\n }\n\n .toggle-title {\n font-size: 13px;\n }\n\n .toggle-description {\n font-size: 11px;\n }\n\n .no-type-message {\n padding: 24px 16px;\n }\n\n .message-icon {\n width: 48px;\n height: 48px;\n font-size: 20px;\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/* Animations for saving state */\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\n/* Smooth scrolling */\n.panel-body {\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\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/* Const Field Display */\n.const-field-display {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.const-value-container {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 14px;\n background: #f8fafc;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n}\n\n.const-value {\n flex: 1;\n font-family: 'Monaco', 'Menlo', 'Consolas', monospace;\n font-size: 13px;\n color: #475569;\n word-break: break-all;\n}\n\n.const-lock-icon {\n color: #94a3b8;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.const-hint {\n color: #94a3b8;\n font-style: italic;\n}\n"] }]
512
+ args: [{ standalone: false, selector: 'mj-credential-edit-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (isOpen) {\n <div class=\"panel-backdrop\" (click)=\"onBackdropClick()\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n @if (selectedType) {\n <div class=\"header-icon\" [style.backgroundColor]=\"getTypeColor(selectedType) + '15'\" [style.color]=\"getTypeColor(selectedType)\">\n <i [class]=\"getTypeIcon(selectedType)\"></i>\n </div>\n }\n @if (!selectedType) {\n <div class=\"header-icon default\">\n <i class=\"fa-solid fa-key\"></i>\n </div>\n }\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @if (selectedType) {\n <span class=\"header-subtitle\">{{selectedType.Name}}</span>\n }\n @if (!selectedType) {\n <span class=\"header-subtitle\">Select a credential type</span>\n }\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 <!-- Panel Body -->\n <div class=\"panel-body\">\n @if (isLoading) {\n <mj-loading text=\"Loading...\"></mj-loading>\n }\n @if (!isLoading) {\n <form class=\"credential-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 <div class=\"form-group\">\n <label for=\"credentialName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"credentialName\"\n name=\"credentialName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production OpenAI Key\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n <div class=\"form-group\">\n <label for=\"credentialType\" class=\"required\">Credential Type</label>\n <select\n id=\"credentialType\"\n name=\"credentialType\"\n [(ngModel)]=\"selectedTypeId\"\n (ngModelChange)=\"onTypeChange()\"\n [disabled]=\"isSaving || !isNew\"\n required\n >\n <option [ngValue]=\"''\">Select a type...</option>\n @for (group of groupedCredentialTypes; track group) {\n <optgroup [label]=\"group.category\">\n @for (type of group.types; track type) {\n <option [ngValue]=\"type.ID\">\n {{type.Name}}\n </option>\n }\n </optgroup>\n }\n </select>\n @if (!isNew) {\n <span class=\"field-hint\">Type cannot be changed after creation</span>\n }\n </div>\n <div class=\"form-group\">\n <label for=\"credentialCategory\">Category</label>\n <select\n id=\"credentialCategory\"\n name=\"credentialCategory\"\n [(ngModel)]=\"selectedCategoryId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No category</option>\n @for (cat of categories; track cat) {\n <option [ngValue]=\"cat.ID\">{{cat.Name}}</option>\n }\n </select>\n </div>\n <div class=\"form-group\">\n <label for=\"credentialDescription\">Description</label>\n <textarea\n id=\"credentialDescription\"\n name=\"credentialDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n <!-- Credential Values Section -->\n @if (schemaFields.length > 0) {\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-key\"></i>\n Credential Values\n <span class=\"encrypted-badge\">\n <i class=\"fa-solid fa-lock\"></i>\n Encrypted\n </span>\n </h3>\n @for (field of schemaFields; track field) {\n <div class=\"form-group\">\n <label [for]=\"'field-' + field.name\" [class.required]=\"field.required\">\n {{field.title}}\n </label>\n @if (field.isSecret) {\n <div class=\"secret-field-wrapper\">\n <input\n [type]=\"isSecretVisible(field.name) ? 'text' : 'password'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n autocomplete=\"off\"\n />\n <button\n type=\"button\"\n class=\"toggle-visibility-btn\"\n (click)=\"toggleSecretVisibility(field.name)\"\n [title]=\"isSecretVisible(field.name) ? 'Hide' : 'Show'\"\n >\n <i [class]=\"isSecretVisible(field.name) ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n </button>\n </div>\n } @else {\n <!-- Const fields: Read-only display -->\n @if (field.const !== undefined) {\n <div class=\"const-field-display\">\n <div class=\"const-value-container\">\n <span class=\"const-value\">{{credentialValues[field.name] || ''}}</span>\n <i class=\"fa-solid fa-lock const-lock-icon\" title=\"This value is fixed and cannot be changed\"></i>\n </div>\n <span class=\"field-hint const-hint\">This field is automatically configured</span>\n </div>\n }\n <!-- Enum fields: Dropdown/select -->\n @if (field.const === undefined && field.enum && field.enum.length > 0) {\n <select\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [ngModel]=\"credentialValues[field.name] || ''\"\n (ngModelChange)=\"onValueChange(field.name, $event)\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n >\n <option [ngValue]=\"''\">Select {{field.title}}...</option>\n @for (option of field.enum; track option) {\n <option [ngValue]=\"option\">{{option}}</option>\n }\n </select>\n }\n <!-- Regular text/number input -->\n @if (field.const === undefined && !field.enum && (field.type === 'string' || field.type === 'number')) {\n <input\n [type]=\"field.type === 'number' ? 'number' : 'text'\"\n [id]=\"'field-' + field.name\"\n [name]=\"'field-' + field.name\"\n [value]=\"credentialValues[field.name] || ''\"\n (input)=\"onValueChange(field.name, $any($event.target).value)\"\n [placeholder]=\"field.description || 'Enter ' + field.title\"\n [disabled]=\"isSaving\"\n [required]=\"field.required\"\n [attr.minlength]=\"field.minLength\"\n [attr.maxlength]=\"field.maxLength\"\n [attr.min]=\"field.minimum\"\n [attr.max]=\"field.maximum\"\n [attr.pattern]=\"field.pattern\"\n />\n }\n }\n @if (field.description && !field.isSecret) {\n <span class=\"field-hint\">{{field.description}}</span>\n }\n </div>\n }\n </div>\n }\n <!-- No Type Selected Message -->\n @if (isNew && !selectedTypeId) {\n <div class=\"no-type-message\">\n <div class=\"message-icon\">\n <i class=\"fa-solid fa-hand-pointer\"></i>\n </div>\n <p>Select a credential type above to configure the credential values.</p>\n </div>\n }\n <!-- Settings Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-cog\"></i>\n Settings\n </h3>\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isActive\"\n [(ngModel)]=\"isActive\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Active</span>\n <span class=\"toggle-description\">Enable this credential for use</span>\n </span>\n </label>\n </div>\n <div class=\"toggle-group\">\n <label class=\"toggle-label\">\n <span class=\"toggle-wrapper\">\n <input\n type=\"checkbox\"\n name=\"isDefault\"\n [(ngModel)]=\"isDefault\"\n [disabled]=\"isSaving\"\n />\n <span class=\"toggle-slider\"></span>\n </span>\n <span class=\"toggle-text\">\n <span class=\"toggle-title\">Default</span>\n <span class=\"toggle-description\">Use as default for this credential type</span>\n </span>\n </label>\n </div>\n <div class=\"form-group\">\n <label for=\"expiresAt\">Expiration Date</label>\n <input\n type=\"date\"\n id=\"expiresAt\"\n name=\"expiresAt\"\n [value]=\"formatDateForInput(expiresAt)\"\n (change)=\"onExpiresAtChange($any($event.target).value)\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Leave empty for no expiration</span>\n </div>\n </div>\n </form>\n }\n </div>\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n @if (!isNew) {\n <button\n class=\"btn-delete\"\n (click)=\"deleteCredential()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n }\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 @if (isSaving) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n }\n @if (!isSaving) {\n <i class=\"fa-solid fa-check\"></i>\n }\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\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: 520px;\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-icon.default {\n background: #f1f5f9;\n color: #64748b;\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}\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.encrypted-badge {\n margin-left: auto;\n background: #dcfce7;\n color: #166534;\n padding: 4px 10px;\n border-radius: 20px;\n font-size: 11px;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 5px;\n}\n\n.encrypted-badge i {\n color: #16a34a;\n font-size: 10px;\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 input[type=\"password\"],\n.form-group input[type=\"number\"],\n.form-group input[type=\"date\"],\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/* Secret Field Wrapper */\n.secret-field-wrapper {\n position: relative;\n display: flex;\n}\n\n.secret-field-wrapper input {\n flex: 1;\n padding-right: 44px;\n}\n\n.toggle-visibility-btn {\n position: absolute;\n right: 4px;\n top: 50%;\n transform: translateY(-50%);\n width: 36px;\n height: 36px;\n border: none;\n background: transparent;\n color: #94a3b8;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n transition: all 0.15s ease;\n}\n\n.toggle-visibility-btn:hover {\n background: #f1f5f9;\n color: #6366f1;\n}\n\n/* Toggle Groups */\n.toggle-group {\n margin-bottom: 16px;\n}\n\n.toggle-group:last-child {\n margin-bottom: 0;\n}\n\n.toggle-label {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n cursor: pointer;\n}\n\n.toggle-wrapper {\n position: relative;\n width: 44px;\n height: 24px;\n flex-shrink: 0;\n}\n\n.toggle-wrapper input {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #d1d5db;\n border-radius: 12px;\n transition: all 0.2s ease;\n}\n\n.toggle-slider::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 20px;\n height: 20px;\n background: #ffffff;\n border-radius: 50%;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.toggle-wrapper input:checked + .toggle-slider {\n background: #6366f1;\n}\n\n.toggle-wrapper input:checked + .toggle-slider::before {\n transform: translateX(20px);\n}\n\n.toggle-wrapper input:disabled + .toggle-slider {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.toggle-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: #334155;\n}\n\n.toggle-description {\n font-size: 12px;\n color: #94a3b8;\n}\n\n/* No Type Message */\n.no-type-message {\n text-align: center;\n padding: 32px 20px;\n background: #f8fafc;\n border-radius: 12px;\n border: 2px dashed #e2e8f0;\n}\n\n.message-icon {\n width: 56px;\n height: 56px;\n background: #e2e8f0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 16px;\n font-size: 24px;\n color: #94a3b8;\n}\n\n.no-type-message p {\n margin: 0;\n color: #64748b;\n font-size: 14px;\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 .form-section {\n margin-bottom: 24px;\n }\n\n .section-title {\n font-size: 13px;\n }\n\n .form-group input,\n .form-group select,\n .form-group textarea {\n padding: 12px 14px;\n font-size: 16px; /* Prevents iOS zoom on focus */\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 .toggle-label {\n gap: 12px;\n }\n\n .encrypted-badge {\n display: none;\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 .section-title {\n font-size: 12px;\n gap: 8px;\n }\n\n .form-group label {\n font-size: 12px;\n }\n\n .toggle-title {\n font-size: 13px;\n }\n\n .toggle-description {\n font-size: 11px;\n }\n\n .no-type-message {\n padding: 24px 16px;\n }\n\n .message-icon {\n width: 48px;\n height: 48px;\n font-size: 20px;\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/* Animations for saving state */\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\n/* Smooth scrolling */\n.panel-body {\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\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/* Const Field Display */\n.const-field-display {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.const-value-container {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 14px;\n background: #f8fafc;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n}\n\n.const-value {\n flex: 1;\n font-family: 'Monaco', 'Menlo', 'Consolas', monospace;\n font-size: 13px;\n color: #475569;\n word-break: break-all;\n}\n\n.const-lock-icon {\n color: #94a3b8;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.const-hint {\n color: #94a3b8;\n font-style: italic;\n}\n"] }]
517
513
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { credential: [{
518
514
  type: Input
519
515
  }], credentialTypes: [{
@@ -1 +1 @@
1
- {"version":3,"file":"credential-edit-panel.component.js","sourceRoot":"","sources":["../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.ts","../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,uBAAuB,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAC;AAEpJ,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;AAEzE,MAAM,UAAU,uBAAuB;IACnC,wBAAwB;AAC5B,CAAC;AAgCD,MAAM,OAAO,4BAA4B;IA8BjB;IA7BX,UAAU,GAA4B,IAAI,CAAC;IAC3C,eAAe,GAA2B,EAAE,CAAC;IAC7C,MAAM,GAAG,KAAK,CAAC;IAEd,KAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;IACjC,KAAK,GAAG,IAAI,YAAY,EAAoB,CAAC;IAC7C,OAAO,GAAG,IAAI,YAAY,EAAU,CAAC;IAExC,SAAS,GAAG,KAAK,CAAC;IAClB,QAAQ,GAAG,KAAK,CAAC;IACjB,KAAK,GAAG,KAAK,CAAC;IACd,UAAU,GAA+B,EAAE,CAAC;IAEnD,cAAc;IACP,IAAI,GAAG,EAAE,CAAC;IACV,WAAW,GAAG,EAAE,CAAC;IACjB,cAAc,GAAG,EAAE,CAAC;IACpB,kBAAkB,GAAG,EAAE,CAAC;IACxB,QAAQ,GAAG,IAAI,CAAC;IAChB,SAAS,GAAG,KAAK,CAAC;IAClB,SAAS,GAAgB,IAAI,CAAC;IAErC,iDAAiD;IAC1C,gBAAgB,GAAqB,EAAE,CAAC;IACxC,YAAY,GAA0B,EAAE,CAAC;IACzC,gBAAgB,GAAgB,IAAI,GAAG,EAAE,CAAC;IAEzC,SAAS,GAAG,IAAI,QAAQ,EAAE,CAAC;IAEnC,YAAoB,GAAsB;QAAtB,QAAG,GAAH,GAAG,CAAmB;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AED,OAAO,OAAO,CAAC;IACnB,CAAC;wGAtkBQ,4BAA4B;4FAA5B,4BAA4B,wSCvCzC,6ocAuRA;;4FDhPa,4BAA4B;kBANxC,SAAS;+BACI,0BAA0B,mBAGnB,uBAAuB,CAAC,MAAM;sFAGtC,UAAU;sBAAlB,KAAK;gBACG,eAAe;sBAAvB,KAAK;gBACG,MAAM;sBAAd,KAAK;gBAEI,KAAK;sBAAd,MAAM;gBACG,KAAK;sBAAd,MAAM;gBACG,OAAO;sBAAhB,MAAM;gBAkXA,WAAW;sBADjB,YAAY;uBAAC,yBAAyB,EAAE,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"credential-edit-panel.component.js","sourceRoot":"","sources":["../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.ts","../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,uBAAuB,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAC;AAEpJ,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;AAiCzE,MAAM,OAAO,4BAA4B;IA8BjB;IA7BX,UAAU,GAA4B,IAAI,CAAC;IAC3C,eAAe,GAA2B,EAAE,CAAC;IAC7C,MAAM,GAAG,KAAK,CAAC;IAEd,KAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;IACjC,KAAK,GAAG,IAAI,YAAY,EAAoB,CAAC;IAC7C,OAAO,GAAG,IAAI,YAAY,EAAU,CAAC;IAExC,SAAS,GAAG,KAAK,CAAC;IAClB,QAAQ,GAAG,KAAK,CAAC;IACjB,KAAK,GAAG,KAAK,CAAC;IACd,UAAU,GAA+B,EAAE,CAAC;IAEnD,cAAc;IACP,IAAI,GAAG,EAAE,CAAC;IACV,WAAW,GAAG,EAAE,CAAC;I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2BAA2B;YAC3B,IAAI,KAAK,KAAK,WAAW,EAAE,CAAC;gBACxB,SAAS;YACb,CAAC;YAED,0BAA0B;YAC1B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxC,SAAS;YACb,CAAC;YAED,0FAA0F;YAC1F,IAAI,KAAK,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBAClC,SAAS;YACb,CAAC;YAED,wBAAwB;YACxB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QAChC,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;uGAtkBQ,4BAA4B;2FAA5B,4BAA4B,6TCpCzC,kjaA8SA;;2FD1Qa,4BAA4B;kBAPxC,SAAS;iCACI,KAAK,YACL,0BAA0B,mBAGnB,uBAAuB,CAAC,MAAM;;sBAG9C,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAEL,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBAiXN,YAAY;uBAAC,yBAAyB,EAAE,CAAC,QAAQ,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter, ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { CredentialTypeEntity } from '@memberjunction/core-entities';
3
3
  import * as i0 from "@angular/core";
4
- export declare function LoadCredentialTypeEditPanel(): void;
5
4
  type CategoryType = 'AI' | 'Authentication' | 'Communication' | 'Database' | 'Integration' | 'Storage';
6
5
  interface SchemaField {
7
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"credential-type-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAIrE,wBAAgB,2B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AAG,IAAI;IAShC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAS5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA0DrB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwCjC,UAAU,IAAI,IAAI;IAQlB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAMxC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAYzC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;yCAvSxC,gCAAgC;2CAAhC,gCAAgC;CAkT5C"}
1
+ {"version":3,"file":"credential-type-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAIrE,KAAK,YAAY,GAAG,IAAI,GAAG,gBAAgB,GAAG,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAEvG,UAAU,WAAW;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAOa,gCAAiC,YAAW,MAAM;IAyB/C,OAAO,CAAC,GAAG;IAxBd,cAAc,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IACnD,MAAM,UAAS;IAEd,KAAK,qBAA4B;IACjC,KAAK,qCAA4C;IACjD,OAAO,uBAA8B;IAExC,SAAS,UAAS;IAClB,QAAQ,UAAS;IACjB,KAAK,UAAS;IAGd,IAAI,SAAM;IACV,WAAW,SAAM;IAC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