@memberjunction/ng-credentials 6.2.0-edge.0 → 6.2.0-edge.2
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/dialogs/credential-dialog.component.d.ts +18 -2
- package/dist/lib/dialogs/credential-dialog.component.d.ts.map +1 -1
- package/dist/lib/dialogs/credential-dialog.component.js +47 -15
- package/dist/lib/dialogs/credential-dialog.component.js.map +1 -1
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts +76 -8
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.d.ts.map +1 -1
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js +164 -50
- package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js.map +1 -1
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts +129 -16
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.d.ts.map +1 -1
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js +338 -124
- package/dist/lib/panels/credential-edit-panel/credential-edit-panel.component.js.map +1 -1
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts +81 -9
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.d.ts.map +1 -1
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js +207 -71
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js.map +1 -1
- package/dist/lib/services/credential-dialog.service.d.ts +10 -0
- package/dist/lib/services/credential-dialog.service.d.ts.map +1 -1
- package/dist/lib/services/credential-dialog.service.js +27 -7
- package/dist/lib/services/credential-dialog.service.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +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/cred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AAU,EAAE,CAAC;QACtB,CAAC;IACL,CAAC;IAEM,aAAa,CAAC,UAAkB;QACnC,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;QAEzE,OAAO,OAAO,EAAE,CAAC;YACb,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC5B,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,OAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC/G,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;wGAjQQ,oCAAoC;4FAApC,oCAAoC,0OCfjD,4sMAsKA;;4FDvJa,oCAAoC;kBAPhD,SAAS;iCACI,KAAK,YACL,mCAAmC,mBAG5B,uBAAuB,CAAC,MAAM;;sBAG9C,KAAK;;sBACL,KAAK;;sBAEL,MAAM;;sBACN,MAAM;;sBACN,MAAM","sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { MJCredentialCategoryEntity } from '@memberjunction/core-entities';\nimport { RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\nimport { MJConfirmService } from '@memberjunction/ng-ui-components';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\n\n@Component({\n standalone: false,\n selector: 'mj-credential-category-edit-panel',\n templateUrl: './credential-category-edit-panel.component.html',\n styleUrls: ['./credential-category-edit-panel.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CredentialCategoryEditPanelComponent extends BaseAngularComponent implements OnInit {\n @Input() category: MJCredentialCategoryEntity | null = null;\n @Input() isOpen = false;\n\n @Output() close = new EventEmitter<void>();\n @Output() saved = new EventEmitter<MJCredentialCategoryEntity>();\n @Output() deleted = new EventEmitter<string>();\n\n public isLoading = false;\n public isSaving = false;\n public isNew = false;\n\n // All categories for parent selection\n public allCategories: MJCredentialCategoryEntity[] = [];\n\n // Form fields\n public name = '';\n public description = '';\n public parentId = '';\n public iconClass = '';\n\n // Icon suggestions\n public iconSuggestions: { icon: string; label: string }[] = [\n { icon: 'fa-solid fa-folder', label: 'Folder' },\n { icon: 'fa-solid fa-lock', label: 'Lock' },\n { icon: 'fa-solid fa-shield-halved', label: 'Shield' },\n { icon: 'fa-solid fa-key', label: 'Key' },\n { icon: 'fa-solid fa-cloud', label: 'Cloud' },\n { icon: 'fa-solid fa-database', label: 'Database' },\n { icon: 'fa-solid fa-brain', label: 'AI' },\n { icon: 'fa-solid fa-envelope', label: 'Email' },\n { icon: 'fa-solid fa-plug', label: 'Integration' },\n { icon: 'fa-solid fa-server', label: 'Server' },\n { icon: 'fa-solid fa-code', label: 'Code' },\n { icon: 'fa-solid fa-globe', label: 'Web' }\n ];\n\n private get _metadata() { return this.ProviderToUse; }\n\n constructor(private cdr: ChangeDetectorRef, private confirmService: MJConfirmService) { super(); }\n\n ngOnInit(): void {\n this.loadCategories();\n }\n\n public get panelTitle(): string {\n return this.isNew ? 'Create Category' : 'Edit Category';\n }\n\n public get canSave(): boolean {\n return this.name.trim().length > 0;\n }\n\n public get availableParentCategories(): MJCredentialCategoryEntity[] {\n // Exclude the current category and its descendants from parent options\n if (!this.category || this.isNew) {\n return this.allCategories;\n }\n\n const currentId = this.category.ID;\n const descendantIds = this.getDescendantIds(currentId);\n descendantIds.add(currentId);\n\n return this.allCategories.filter(c => !descendantIds.has(c.ID));\n }\n\n private getDescendantIds(categoryId: string): Set<string> {\n const descendants = new Set<string>();\n const findChildren = (parentId: string): void => {\n for (const cat of this.allCategories) {\n if (UUIDsEqual(cat.ParentID, parentId)) {\n descendants.add(cat.ID);\n findChildren(cat.ID);\n }\n }\n };\n findChildren(categoryId);\n return descendants;\n }\n\n public async open(category: MJCredentialCategoryEntity | null, preselectedParentId?: string): Promise<void> {\n this.isLoading = true;\n this.isOpen = true;\n this.category = category;\n this.isNew = !category || !category.ID;\n this.cdr.markForCheck();\n\n await this.loadCategories();\n this.resetForm();\n\n if (category && category.ID) {\n this.populateFromCategory(category);\n } else if (preselectedParentId) {\n this.parentId = preselectedParentId;\n }\n\n this.isLoading = false;\n this.cdr.markForCheck();\n }\n\n private async loadCategories(): Promise<void> {\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView<MJCredentialCategoryEntity>({\n EntityName: 'MJ: Credential Categories',\n OrderBy: 'Name',\n ResultType: 'entity_object'\n });\n\n if (result.Success) {\n this.allCategories = result.Results;\n }\n } catch (error) {\n console.error('Error loading categories:', error);\n }\n this.cdr.markForCheck();\n }\n\n private resetForm(): void {\n this.name = '';\n this.description = '';\n this.parentId = '';\n this.iconClass = '';\n }\n\n private populateFromCategory(category: MJCredentialCategoryEntity): void {\n this.name = category.Name || '';\n this.description = category.Description || '';\n this.parentId = category.ParentID || '';\n this.iconClass = category.IconClass || '';\n }\n\n public selectIcon(icon: string): void {\n this.iconClass = icon;\n this.cdr.markForCheck();\n }\n\n public async save(): Promise<void> {\n if (!this.canSave) {\n MJNotificationService.Instance.CreateSimpleNotification('Please enter a category name', 'warning', 3000);\n return;\n }\n\n this.isSaving = true;\n this.cdr.markForCheck();\n\n try {\n let entity: MJCredentialCategoryEntity;\n\n if (this.isNew) {\n entity = await this._metadata.GetEntityObject<MJCredentialCategoryEntity>('MJ: Credential Categories');\n } else {\n entity = this.category!;\n }\n\n entity.Name = this.name.trim();\n entity.Description = this.description.trim() || null;\n entity.ParentID = this.parentId || null;\n entity.IconClass = this.iconClass.trim() || null;\n\n const success = await entity.Save();\n\n if (success) {\n const action = this.isNew ? 'created' : 'updated';\n MJNotificationService.Instance.CreateSimpleNotification(\n `Category \"${entity.Name}\" ${action} successfully`,\n 'success',\n 3000\n );\n this.saved.emit(entity);\n this.closePanel();\n } else {\n const errorMessage = entity.LatestResult?.Message || 'Unknown error';\n console.error('Save failed:', errorMessage);\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to save category: ${errorMessage}`,\n 'error',\n 5000\n );\n }\n } catch (error) {\n console.error('Error saving category:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Error saving category',\n 'error',\n 3000\n );\n } finally {\n this.isSaving = false;\n this.cdr.markForCheck();\n }\n }\n\n public async deleteCategory(): Promise<void> {\n if (this.isNew || !this.category) return;\n\n const confirmed = await this.confirmService.ConfirmDelete({ title: 'Delete Category', message: `Delete \"${this.category.Name}\"?`, detail: 'This action cannot be undone.' });\n if (!confirmed) return;\n\n this.isSaving = true;\n this.cdr.markForCheck();\n\n try {\n const success = await this.category.Delete();\n if (success) {\n MJNotificationService.Instance.CreateSimpleNotification(\n `Category \"${this.category.Name}\" deleted successfully`,\n 'success',\n 3000\n );\n this.deleted.emit(this.category.ID);\n this.closePanel();\n } else {\n const errorMessage = this.category.LatestResult?.Message || 'Unknown error';\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to delete category: ${errorMessage}`,\n 'error',\n 5000\n );\n }\n } catch (error) {\n console.error('Error deleting category:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Error deleting category',\n 'error',\n 3000\n );\n } finally {\n this.isSaving = false;\n this.cdr.markForCheck();\n }\n }\n\n public closePanel(): void {\n this.isOpen = false;\n this.category = null;\n this.resetForm();\n this.close.emit();\n this.cdr.markForCheck();\n }\n\n public onBackdropClick(event: MouseEvent): void {\n if ((event.target as HTMLElement).classList.contains('panel-backdrop')) {\n this.closePanel();\n }\n }\n\n public getParentPath(categoryId: string): string {\n const parts: string[] = [];\n let current = this.allCategories.find(c => UUIDsEqual(c.ID, categoryId));\n\n while (current) {\n parts.unshift(current.Name);\n current = current.ParentID ? this.allCategories.find(c => UUIDsEqual(c.ID, current!.ParentID)) : undefined;\n }\n\n return parts.join(' / ');\n }\n}\n","@if (isOpen) {\n <div class=\"panel-backdrop\" (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]=\"'color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface))'\" [style.color]=\"'var(--mj-brand-primary)'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @if (parentId) {\n <span class=\"header-subtitle\">\n Under: {{getParentPath(parentId)}}\n </span>\n }\n @if (!parentId) {\n <span class=\"header-subtitle\">Root category</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=\"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 <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 <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 @for (cat of availableParentCategories; track cat) {\n <option [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n }\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\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 <!-- 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 <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 <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n @for (suggestion of iconSuggestions; track suggestion) {\n <button\n type=\"button\"\n class=\"icon-btn\"\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 }\n </div>\n </div>\n @if (iconClass) {\n <div class=\"icon-preview\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n }\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)=\"deleteCategory()\"\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"]}
|
|
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.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,uBAAuB,EAAU,MAAM,eAAe,CAAC;AAE3H,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;;;;AASrE,MAAM,OAAO,oCAAqC,SAAQ,oBAAoB;IAwHtD;IAAgC;IAvH3C,QAAQ,GAAsC,IAAI,CAAC;IACnD,MAAM,GAAG,KAAK,CAAC;IAExB,sCAAsC;IACtC,IAAa,MAAM,CAAC,KAAqD;QACvE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IACD,sCAAsC;IACtC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAES,KAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;IACjC,KAAK,GAAG,IAAI,YAAY,EAA8B,CAAC;IAEjE;;;;;;OAMG;IACO,KAAK,GAAG,IAAI,CAAC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gB,CAAC,EAAE,CAAC;YACrE,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,CAAC;IACL,CAAC;IAED,+CAA+C;IACxC,eAAe,CAAC,KAAiB;QACtC,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAEM,aAAa,CAAC,UAAkB;QACnC,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;QAEzE,OAAO,OAAO,EAAE,CAAC;YACb,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC5B,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,OAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC/G,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,6CAA6C;IACtC,aAAa,CAAC,UAAkB;QACrC,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;wGA/XQ,oCAAoC;4FAApC,oCAAoC,gSCfjD,4sMAsKA;;4FDvJa,oCAAoC;kBAPhD,SAAS;iCACI,KAAK,YACL,mCAAmC,mBAG5B,uBAAuB,CAAC,MAAM;;sBAG9C,KAAK;;sBACL,KAAK;;sBAGL,KAAK;;sBAQL,MAAM;;sBACN,MAAM;;sBASN,MAAM;;sBACN,MAAM;;sBASN,MAAM","sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { MJCredentialCategoryEntity } from '@memberjunction/core-entities';\nimport { RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\nimport { MJConfirmService } from '@memberjunction/ng-ui-components';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\n\n@Component({\n standalone: false,\n selector: 'mj-credential-category-edit-panel',\n templateUrl: './credential-category-edit-panel.component.html',\n styleUrls: ['./credential-category-edit-panel.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CredentialCategoryEditPanelComponent extends BaseAngularComponent implements OnInit {\n @Input() category: MJCredentialCategoryEntity | null = null;\n @Input() IsOpen = false;\n\n /** @deprecated Use {@link IsOpen}. */\n @Input() set isOpen(value: CredentialCategoryEditPanelComponent['IsOpen']) {\n this.IsOpen = value;\n }\n /** @deprecated Use {@link IsOpen}. */\n get isOpen(): CredentialCategoryEditPanelComponent['IsOpen'] {\n return this.IsOpen;\n }\n\n @Output() close = new EventEmitter<void>();\n @Output() Saved = new EventEmitter<MJCredentialCategoryEntity>();\n\n /**\n * @deprecated Use {@link Saved}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (saved) keeps working. Must stay AFTER Saved: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() saved = this.Saved;\n @Output() Deleted = new EventEmitter<string>();\n\n /**\n * @deprecated Use {@link Deleted}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (deleted) keeps working. Must stay AFTER Deleted: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() deleted = this.Deleted;\n\n public isLoading = false;\n public IsSaving = false;\n\n /** @deprecated Use {@link IsSaving}. */\n public get isSaving() {\n return this.IsSaving;\n }\n /** @deprecated Use {@link IsSaving}. */\n public set isSaving(value) {\n this.IsSaving = value;\n }\n public IsNew = false;\n\n /** @deprecated Use {@link IsNew}. */\n public get isNew() {\n return this.IsNew;\n }\n /** @deprecated Use {@link IsNew}. */\n public set isNew(value) {\n this.IsNew = value;\n }\n\n // All categories for parent selection\n public AllCategories: MJCredentialCategoryEntity[] = [];\n\n /** @deprecated Use {@link AllCategories}. */\n public get allCategories(): MJCredentialCategoryEntity[] {\n return this.AllCategories;\n }\n /** @deprecated Use {@link AllCategories}. */\n public set allCategories(value: MJCredentialCategoryEntity[]) {\n this.AllCategories = value;\n }\n\n // Form fields\n public name = '';\n public description = '';\n public ParentId = '';\n\n /** @deprecated Use {@link ParentId}. */\n public get parentId() {\n return this.ParentId;\n }\n /** @deprecated Use {@link ParentId}. */\n public set parentId(value) {\n this.ParentId = value;\n }\n public IconClass = '';\n\n /** @deprecated Use {@link IconClass}. */\n public get iconClass() {\n return this.IconClass;\n }\n /** @deprecated Use {@link IconClass}. */\n public set iconClass(value) {\n this.IconClass = value;\n }\n\n // Icon suggestions\n public IconSuggestions: { icon: string; label: string }[] = [\n { icon: 'fa-solid fa-folder', label: 'Folder' },\n { icon: 'fa-solid fa-lock', label: 'Lock' },\n { icon: 'fa-solid fa-shield-halved', label: 'Shield' },\n { icon: 'fa-solid fa-key', label: 'Key' },\n { icon: 'fa-solid fa-cloud', label: 'Cloud' },\n { icon: 'fa-solid fa-database', label: 'Database' },\n { icon: 'fa-solid fa-brain', label: 'AI' },\n { icon: 'fa-solid fa-envelope', label: 'Email' },\n { icon: 'fa-solid fa-plug', label: 'Integration' },\n { icon: 'fa-solid fa-server', label: 'Server' },\n { icon: 'fa-solid fa-code', label: 'Code' },\n { icon: 'fa-solid fa-globe', label: 'Web' }\n ];\n\n /** @deprecated Use {@link IconSuggestions}. */\n public get iconSuggestions(): { icon: string; label: string }[] {\n return this.IconSuggestions;\n }\n /** @deprecated Use {@link IconSuggestions}. */\n public set iconSuggestions(value: { icon: string; label: string }[]) {\n this.IconSuggestions = value;\n }\n\n private get _metadata() { return this.ProviderToUse; }\n\n constructor(private cdr: ChangeDetectorRef, private confirmService: MJConfirmService) { super(); }\n\n ngOnInit(): void {\n this.loadCategories();\n }\n\n public get PanelTitle(): string {\n return this.IsNew ? 'Create Category' : 'Edit Category';\n }\n\n /** @deprecated Use {@link PanelTitle}. */\n public get panelTitle(): string {\n return this.PanelTitle;\n }\n\n public get CanSave(): boolean {\n return this.name.trim().length > 0;\n }\n\n /** @deprecated Use {@link CanSave}. */\n public get canSave(): boolean {\n return this.CanSave;\n }\n\n public get AvailableParentCategories(): MJCredentialCategoryEntity[] {\n // Exclude the current category and its descendants from parent options\n if (!this.category || this.IsNew) {\n return this.AllCategories;\n }\n\n const currentId = this.category.ID;\n const descendantIds = this.getDescendantIds(currentId);\n descendantIds.add(currentId);\n\n return this.AllCategories.filter(c => !descendantIds.has(c.ID));\n }\n\n /** @deprecated Use {@link AvailableParentCategories}. */\n public get availableParentCategories(): MJCredentialCategoryEntity[] {\n return this.AvailableParentCategories;\n }\n\n private getDescendantIds(categoryId: string): Set<string> {\n const descendants = new Set<string>();\n const findChildren = (parentId: string): void => {\n for (const cat of this.AllCategories) {\n if (UUIDsEqual(cat.ParentID, parentId)) {\n descendants.add(cat.ID);\n findChildren(cat.ID);\n }\n }\n };\n findChildren(categoryId);\n return descendants;\n }\n\n public async Open(category: MJCredentialCategoryEntity | null, preselectedParentId?: string): Promise<void> {\n this.isLoading = true;\n this.IsOpen = true;\n this.category = category;\n this.IsNew = !category || !category.ID;\n this.cdr.markForCheck();\n\n await this.loadCategories();\n this.resetForm();\n\n if (category && category.ID) {\n this.populateFromCategory(category);\n } else if (preselectedParentId) {\n this.ParentId = preselectedParentId;\n }\n\n this.isLoading = false;\n this.cdr.markForCheck();\n }\n\n /** @deprecated Use {@link Open}. */\n public async open(category: MJCredentialCategoryEntity | null, preselectedParentId?: string): Promise<void> {\n return this.Open(category, preselectedParentId);\n }\n\n private async loadCategories(): Promise<void> {\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView<MJCredentialCategoryEntity>({\n EntityName: 'MJ: Credential Categories',\n OrderBy: 'Name',\n ResultType: 'entity_object'\n });\n\n if (result.Success) {\n this.AllCategories = result.Results;\n }\n } catch (error) {\n console.error('Error loading categories:', error);\n }\n this.cdr.markForCheck();\n }\n\n private resetForm(): void {\n this.name = '';\n this.description = '';\n this.ParentId = '';\n this.IconClass = '';\n }\n\n private populateFromCategory(category: MJCredentialCategoryEntity): void {\n this.name = category.Name || '';\n this.description = category.Description || '';\n this.ParentId = category.ParentID || '';\n this.IconClass = category.IconClass || '';\n }\n\n public SelectIcon(icon: string): void {\n this.IconClass = icon;\n this.cdr.markForCheck();\n }\n\n /** @deprecated Use {@link SelectIcon}. */\n public selectIcon(icon: string): void {\n return this.SelectIcon(icon);\n }\n\n public async save(): Promise<void> {\n if (!this.CanSave) {\n MJNotificationService.Instance.CreateSimpleNotification('Please enter a category name', 'warning', 3000);\n return;\n }\n\n this.IsSaving = true;\n this.cdr.markForCheck();\n\n try {\n let entity: MJCredentialCategoryEntity;\n\n if (this.IsNew) {\n entity = await this._metadata.GetEntityObject<MJCredentialCategoryEntity>('MJ: Credential Categories');\n } else {\n entity = this.category!;\n }\n\n entity.Name = this.name.trim();\n entity.Description = this.description.trim() || null;\n entity.ParentID = this.ParentId || null;\n entity.IconClass = this.IconClass.trim() || null;\n\n const success = await entity.Save();\n\n if (success) {\n const action = this.IsNew ? 'created' : 'updated';\n MJNotificationService.Instance.CreateSimpleNotification(\n `Category \"${entity.Name}\" ${action} successfully`,\n 'success',\n 3000\n );\n this.Saved.emit(entity);\n this.ClosePanel();\n } else {\n const errorMessage = entity.LatestResult?.Message || 'Unknown error';\n console.error('Save failed:', errorMessage);\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to save category: ${errorMessage}`,\n 'error',\n 5000\n );\n }\n } catch (error) {\n console.error('Error saving category:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Error saving category',\n 'error',\n 3000\n );\n } finally {\n this.IsSaving = false;\n this.cdr.markForCheck();\n }\n }\n\n public async DeleteCategory(): Promise<void> {\n if (this.IsNew || !this.category) return;\n\n const confirmed = await this.confirmService.ConfirmDelete({ title: 'Delete Category', message: `Delete \"${this.category.Name}\"?`, detail: 'This action cannot be undone.' });\n if (!confirmed) return;\n\n this.IsSaving = true;\n this.cdr.markForCheck();\n\n try {\n const success = await this.category.Delete();\n if (success) {\n MJNotificationService.Instance.CreateSimpleNotification(\n `Category \"${this.category.Name}\" deleted successfully`,\n 'success',\n 3000\n );\n this.Deleted.emit(this.category.ID);\n this.ClosePanel();\n } else {\n const errorMessage = this.category.LatestResult?.Message || 'Unknown error';\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to delete category: ${errorMessage}`,\n 'error',\n 5000\n );\n }\n } catch (error) {\n console.error('Error deleting category:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Error deleting category',\n 'error',\n 3000\n );\n } finally {\n this.IsSaving = false;\n this.cdr.markForCheck();\n }\n }\n\n /** @deprecated Use {@link DeleteCategory}. */\n public async deleteCategory(): Promise<void> {\n return this.DeleteCategory();\n }\n\n public ClosePanel(): void {\n this.IsOpen = false;\n this.category = null;\n this.resetForm();\n this.close.emit();\n this.cdr.markForCheck();\n }\n\n /** @deprecated Use {@link ClosePanel}. */\n public closePanel(): void {\n return this.ClosePanel();\n }\n\n public OnBackdropClick(event: MouseEvent): void {\n if ((event.target as HTMLElement).classList.contains('panel-backdrop')) {\n this.ClosePanel();\n }\n }\n\n /** @deprecated Use {@link OnBackdropClick}. */\n public onBackdropClick(event: MouseEvent): void {\n return this.OnBackdropClick(event);\n }\n\n public GetParentPath(categoryId: string): string {\n const parts: string[] = [];\n let current = this.AllCategories.find(c => UUIDsEqual(c.ID, categoryId));\n\n while (current) {\n parts.unshift(current.Name);\n current = current.ParentID ? this.AllCategories.find(c => UUIDsEqual(c.ID, current!.ParentID)) : undefined;\n }\n\n return parts.join(' / ');\n }\n\n /** @deprecated Use {@link GetParentPath}. */\n public getParentPath(categoryId: string): string {\n return this.GetParentPath(categoryId);\n }\n}\n","@if (isOpen) {\n <div class=\"panel-backdrop\" (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]=\"'color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface))'\" [style.color]=\"'var(--mj-brand-primary)'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @if (parentId) {\n <span class=\"header-subtitle\">\n Under: {{getParentPath(parentId)}}\n </span>\n }\n @if (!parentId) {\n <span class=\"header-subtitle\">Root category</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=\"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 <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 <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 @for (cat of availableParentCategories; track cat) {\n <option [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n }\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\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 <!-- 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 <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 <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n @for (suggestion of iconSuggestions; track suggestion) {\n <button\n type=\"button\"\n class=\"icon-btn\"\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 }\n </div>\n </div>\n @if (iconClass) {\n <div class=\"icon-preview\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n }\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)=\"deleteCategory()\"\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"]}
|
|
@@ -27,61 +27,174 @@ interface CredentialValues {
|
|
|
27
27
|
export declare class CredentialEditPanelComponent extends BaseAngularComponent implements OnInit, OnDestroy {
|
|
28
28
|
private cdr;
|
|
29
29
|
private confirmService;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
Credential: MJCredentialEntity | null;
|
|
31
|
+
/** @deprecated Use {@link Credential}. */
|
|
32
|
+
set credential(value: MJCredentialEntity | null);
|
|
33
|
+
/** @deprecated Use {@link Credential}. */
|
|
34
|
+
get credential(): MJCredentialEntity | null;
|
|
35
|
+
CredentialTypes: MJCredentialTypeEntity[];
|
|
36
|
+
/** @deprecated Use {@link CredentialTypes}. */
|
|
37
|
+
set credentialTypes(value: MJCredentialTypeEntity[]);
|
|
38
|
+
/** @deprecated Use {@link CredentialTypes}. */
|
|
39
|
+
get credentialTypes(): MJCredentialTypeEntity[];
|
|
40
|
+
IsOpen: boolean;
|
|
41
|
+
/** @deprecated Use {@link IsOpen}. */
|
|
42
|
+
set isOpen(value: CredentialEditPanelComponent['IsOpen']);
|
|
43
|
+
/** @deprecated Use {@link IsOpen}. */
|
|
44
|
+
get isOpen(): CredentialEditPanelComponent['IsOpen'];
|
|
33
45
|
close: EventEmitter<void>;
|
|
46
|
+
Saved: EventEmitter<MJCredentialEntity>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use {@link Saved}.
|
|
49
|
+
*
|
|
50
|
+
* The same emitter under the old binding name, so a template still binding
|
|
51
|
+
* (saved) keeps working. Must stay AFTER Saved: class fields
|
|
52
|
+
* initialise in order, and the other way round this captures undefined.
|
|
53
|
+
*/
|
|
34
54
|
saved: EventEmitter<MJCredentialEntity>;
|
|
55
|
+
Deleted: EventEmitter<string>;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use {@link Deleted}.
|
|
58
|
+
*
|
|
59
|
+
* The same emitter under the old binding name, so a template still binding
|
|
60
|
+
* (deleted) keeps working. Must stay AFTER Deleted: class fields
|
|
61
|
+
* initialise in order, and the other way round this captures undefined.
|
|
62
|
+
*/
|
|
35
63
|
deleted: EventEmitter<string>;
|
|
36
64
|
isLoading: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
65
|
+
IsSaving: boolean;
|
|
66
|
+
/** @deprecated Use {@link IsSaving}. */
|
|
67
|
+
get isSaving(): boolean;
|
|
68
|
+
/** @deprecated Use {@link IsSaving}. */
|
|
69
|
+
set isSaving(value: boolean);
|
|
70
|
+
IsNew: boolean;
|
|
71
|
+
/** @deprecated Use {@link IsNew}. */
|
|
72
|
+
get isNew(): boolean;
|
|
73
|
+
/** @deprecated Use {@link IsNew}. */
|
|
74
|
+
set isNew(value: boolean);
|
|
75
|
+
Categories: MJCredentialCategoryEntity[];
|
|
76
|
+
/** @deprecated Use {@link Categories}. */
|
|
77
|
+
get categories(): MJCredentialCategoryEntity[];
|
|
78
|
+
/** @deprecated Use {@link Categories}. */
|
|
79
|
+
set categories(value: MJCredentialCategoryEntity[]);
|
|
40
80
|
name: string;
|
|
41
81
|
description: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
82
|
+
SelectedTypeId: string;
|
|
83
|
+
/** @deprecated Use {@link SelectedTypeId}. */
|
|
84
|
+
get selectedTypeId(): string;
|
|
85
|
+
/** @deprecated Use {@link SelectedTypeId}. */
|
|
86
|
+
set selectedTypeId(value: string);
|
|
87
|
+
SelectedCategoryId: string;
|
|
88
|
+
/** @deprecated Use {@link SelectedCategoryId}. */
|
|
89
|
+
get selectedCategoryId(): string;
|
|
90
|
+
/** @deprecated Use {@link SelectedCategoryId}. */
|
|
91
|
+
set selectedCategoryId(value: string);
|
|
92
|
+
IsActive: boolean;
|
|
93
|
+
/** @deprecated Use {@link IsActive}. */
|
|
94
|
+
get isActive(): boolean;
|
|
95
|
+
/** @deprecated Use {@link IsActive}. */
|
|
96
|
+
set isActive(value: boolean);
|
|
97
|
+
IsDefault: boolean;
|
|
98
|
+
/** @deprecated Use {@link IsDefault}. */
|
|
99
|
+
get isDefault(): boolean;
|
|
100
|
+
/** @deprecated Use {@link IsDefault}. */
|
|
101
|
+
set isDefault(value: boolean);
|
|
102
|
+
ExpiresAt: Date | null;
|
|
103
|
+
/** @deprecated Use {@link ExpiresAt}. */
|
|
104
|
+
get expiresAt(): Date | null;
|
|
105
|
+
/** @deprecated Use {@link ExpiresAt}. */
|
|
106
|
+
set expiresAt(value: Date | null);
|
|
107
|
+
CredentialValues: CredentialValues;
|
|
108
|
+
/** @deprecated Use {@link CredentialValues}. */
|
|
109
|
+
get credentialValues(): CredentialValues;
|
|
110
|
+
/** @deprecated Use {@link CredentialValues}. */
|
|
111
|
+
set credentialValues(value: CredentialValues);
|
|
112
|
+
SchemaFields: FieldSchemaProperty[];
|
|
113
|
+
/** @deprecated Use {@link SchemaFields}. */
|
|
114
|
+
get schemaFields(): FieldSchemaProperty[];
|
|
115
|
+
/** @deprecated Use {@link SchemaFields}. */
|
|
116
|
+
set schemaFields(value: FieldSchemaProperty[]);
|
|
117
|
+
ShowSecretFields: Set<string>;
|
|
118
|
+
/** @deprecated Use {@link ShowSecretFields}. */
|
|
119
|
+
get showSecretFields(): Set<string>;
|
|
120
|
+
/** @deprecated Use {@link ShowSecretFields}. */
|
|
121
|
+
set showSecretFields(value: Set<string>);
|
|
122
|
+
NameError: string | null;
|
|
123
|
+
/** @deprecated Use {@link NameError}. */
|
|
124
|
+
get nameError(): string | null;
|
|
125
|
+
/** @deprecated Use {@link NameError}. */
|
|
126
|
+
set nameError(value: string | null);
|
|
51
127
|
private get _metadata();
|
|
52
128
|
constructor(cdr: ChangeDetectorRef, confirmService: MJConfirmService);
|
|
53
129
|
ngOnInit(): void;
|
|
54
130
|
ngOnDestroy(): void;
|
|
131
|
+
get SelectedType(): MJCredentialTypeEntity | null;
|
|
132
|
+
/** @deprecated Use {@link SelectedType}. */
|
|
55
133
|
get selectedType(): MJCredentialTypeEntity | null;
|
|
134
|
+
get PanelTitle(): string;
|
|
135
|
+
/** @deprecated Use {@link PanelTitle}. */
|
|
56
136
|
get panelTitle(): string;
|
|
137
|
+
get CanSave(): boolean;
|
|
138
|
+
/** @deprecated Use {@link CanSave}. */
|
|
57
139
|
get canSave(): boolean;
|
|
140
|
+
Open(credential: MJCredentialEntity | null, preselectedTypeId?: string, preselectedCategoryId?: string): Promise<void>;
|
|
141
|
+
/** @deprecated Use {@link Open}. */
|
|
58
142
|
open(credential: MJCredentialEntity | null, preselectedTypeId?: string, preselectedCategoryId?: string): Promise<void>;
|
|
59
143
|
private resetForm;
|
|
60
144
|
private populateFromCredential;
|
|
61
145
|
private loadCategories;
|
|
146
|
+
OnTypeChange(): void;
|
|
147
|
+
/** @deprecated Use {@link OnTypeChange}. */
|
|
62
148
|
onTypeChange(): void;
|
|
149
|
+
ToggleSecretVisibility(fieldName: string): void;
|
|
150
|
+
/** @deprecated Use {@link ToggleSecretVisibility}. */
|
|
63
151
|
toggleSecretVisibility(fieldName: string): void;
|
|
152
|
+
IsSecretVisible(fieldName: string): boolean;
|
|
153
|
+
/** @deprecated Use {@link IsSecretVisible}. */
|
|
64
154
|
isSecretVisible(fieldName: string): boolean;
|
|
65
155
|
save(): Promise<void>;
|
|
156
|
+
DeleteCredential(): Promise<void>;
|
|
157
|
+
/** @deprecated Use {@link DeleteCredential}. */
|
|
66
158
|
deleteCredential(): Promise<void>;
|
|
159
|
+
ClosePanel(): void;
|
|
160
|
+
/** @deprecated Use {@link ClosePanel}. */
|
|
67
161
|
closePanel(): void;
|
|
162
|
+
OnBackdropClick(): void;
|
|
163
|
+
/** @deprecated Use {@link OnBackdropClick}. */
|
|
68
164
|
onBackdropClick(): void;
|
|
69
165
|
onEscapeKey(event: Event): void;
|
|
70
166
|
private _cachedGroupedTypes;
|
|
71
167
|
private _lastCredentialTypesRef;
|
|
168
|
+
get GroupedCredentialTypes(): Array<{
|
|
169
|
+
category: string;
|
|
170
|
+
types: MJCredentialTypeEntity[];
|
|
171
|
+
}>;
|
|
172
|
+
/** @deprecated Use {@link GroupedCredentialTypes}. */
|
|
72
173
|
get groupedCredentialTypes(): Array<{
|
|
73
174
|
category: string;
|
|
74
175
|
types: MJCredentialTypeEntity[];
|
|
75
176
|
}>;
|
|
177
|
+
GetTypeIcon(type: MJCredentialTypeEntity): string;
|
|
178
|
+
/** @deprecated Use {@link GetTypeIcon}. */
|
|
76
179
|
getTypeIcon(type: MJCredentialTypeEntity): string;
|
|
180
|
+
GetTypeColor(type: MJCredentialTypeEntity): string;
|
|
181
|
+
/** @deprecated Use {@link GetTypeColor}. */
|
|
77
182
|
getTypeColor(type: MJCredentialTypeEntity): string;
|
|
183
|
+
OnValueChange(fieldName: string, value: string): void;
|
|
184
|
+
/** @deprecated Use {@link OnValueChange}. */
|
|
78
185
|
onValueChange(fieldName: string, value: string): void;
|
|
79
186
|
/**
|
|
80
187
|
* Clears the inline duplicate-name error as soon as the user edits the Name field,
|
|
81
188
|
* so a stale conflict message doesn't linger after they've started fixing it.
|
|
82
189
|
*/
|
|
190
|
+
OnNameChange(): void;
|
|
191
|
+
/** @deprecated Use {@link OnNameChange}. */
|
|
83
192
|
onNameChange(): void;
|
|
193
|
+
FormatDateForInput(date: Date | null): string;
|
|
194
|
+
/** @deprecated Use {@link FormatDateForInput}. */
|
|
84
195
|
formatDateForInput(date: Date | null): string;
|
|
196
|
+
OnExpiresAtChange(value: string): void;
|
|
197
|
+
/** @deprecated Use {@link OnExpiresAtChange}. */
|
|
85
198
|
onExpiresAtChange(value: string): void;
|
|
86
199
|
/**
|
|
87
200
|
* Validates a field value against format constraints.
|
|
@@ -114,7 +227,7 @@ export declare class CredentialEditPanelComponent extends BaseAngularComponent i
|
|
|
114
227
|
*/
|
|
115
228
|
private cleanCredentialValues;
|
|
116
229
|
static ɵfac: i0.ɵɵFactoryDeclaration<CredentialEditPanelComponent, never>;
|
|
117
|
-
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>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CredentialEditPanelComponent, "mj-credential-edit-panel", never, { "Credential": { "alias": "Credential"; "required": false; }; "credential": { "alias": "credential"; "required": false; }; "CredentialTypes": { "alias": "CredentialTypes"; "required": false; }; "credentialTypes": { "alias": "credentialTypes"; "required": false; }; "IsOpen": { "alias": "IsOpen"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "close": "close"; "Saved": "Saved"; "saved": "saved"; "Deleted": "Deleted"; "deleted": "deleted"; }, never, never, false, never>;
|
|
118
231
|
}
|
|
119
232
|
export {};
|
|
120
233
|
//# sourceMappingURL=credential-edit-panel.component.d.ts.map
|
|
@@ -1 +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,kBAAkB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAIvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAErE,UAAU,mBAAmB;IACzB,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;IAEd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,gBAAgB;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC5C;AAED,qBAOa,4BAA6B,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;
|
|
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,kBAAkB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAIvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAErE,UAAU,mBAAmB;IACzB,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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