@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
package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js
CHANGED
|
@@ -11,22 +11,86 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
11
11
|
cdr;
|
|
12
12
|
confirmService;
|
|
13
13
|
category = null;
|
|
14
|
-
|
|
14
|
+
IsOpen = false;
|
|
15
|
+
/** @deprecated Use {@link IsOpen}. */
|
|
16
|
+
set isOpen(value) {
|
|
17
|
+
this.IsOpen = value;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated Use {@link IsOpen}. */
|
|
20
|
+
get isOpen() {
|
|
21
|
+
return this.IsOpen;
|
|
22
|
+
}
|
|
15
23
|
close = new EventEmitter();
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
Saved = new EventEmitter();
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use {@link Saved}.
|
|
27
|
+
*
|
|
28
|
+
* The same emitter under the old binding name, so a template still binding
|
|
29
|
+
* (saved) keeps working. Must stay AFTER Saved: class fields
|
|
30
|
+
* initialise in order, and the other way round this captures undefined.
|
|
31
|
+
*/
|
|
32
|
+
saved = this.Saved;
|
|
33
|
+
Deleted = new EventEmitter();
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use {@link Deleted}.
|
|
36
|
+
*
|
|
37
|
+
* The same emitter under the old binding name, so a template still binding
|
|
38
|
+
* (deleted) keeps working. Must stay AFTER Deleted: class fields
|
|
39
|
+
* initialise in order, and the other way round this captures undefined.
|
|
40
|
+
*/
|
|
41
|
+
deleted = this.Deleted;
|
|
18
42
|
isLoading = false;
|
|
19
|
-
|
|
20
|
-
|
|
43
|
+
IsSaving = false;
|
|
44
|
+
/** @deprecated Use {@link IsSaving}. */
|
|
45
|
+
get isSaving() {
|
|
46
|
+
return this.IsSaving;
|
|
47
|
+
}
|
|
48
|
+
/** @deprecated Use {@link IsSaving}. */
|
|
49
|
+
set isSaving(value) {
|
|
50
|
+
this.IsSaving = value;
|
|
51
|
+
}
|
|
52
|
+
IsNew = false;
|
|
53
|
+
/** @deprecated Use {@link IsNew}. */
|
|
54
|
+
get isNew() {
|
|
55
|
+
return this.IsNew;
|
|
56
|
+
}
|
|
57
|
+
/** @deprecated Use {@link IsNew}. */
|
|
58
|
+
set isNew(value) {
|
|
59
|
+
this.IsNew = value;
|
|
60
|
+
}
|
|
21
61
|
// All categories for parent selection
|
|
22
|
-
|
|
62
|
+
AllCategories = [];
|
|
63
|
+
/** @deprecated Use {@link AllCategories}. */
|
|
64
|
+
get allCategories() {
|
|
65
|
+
return this.AllCategories;
|
|
66
|
+
}
|
|
67
|
+
/** @deprecated Use {@link AllCategories}. */
|
|
68
|
+
set allCategories(value) {
|
|
69
|
+
this.AllCategories = value;
|
|
70
|
+
}
|
|
23
71
|
// Form fields
|
|
24
72
|
name = '';
|
|
25
73
|
description = '';
|
|
26
|
-
|
|
27
|
-
|
|
74
|
+
ParentId = '';
|
|
75
|
+
/** @deprecated Use {@link ParentId}. */
|
|
76
|
+
get parentId() {
|
|
77
|
+
return this.ParentId;
|
|
78
|
+
}
|
|
79
|
+
/** @deprecated Use {@link ParentId}. */
|
|
80
|
+
set parentId(value) {
|
|
81
|
+
this.ParentId = value;
|
|
82
|
+
}
|
|
83
|
+
IconClass = '';
|
|
84
|
+
/** @deprecated Use {@link IconClass}. */
|
|
85
|
+
get iconClass() {
|
|
86
|
+
return this.IconClass;
|
|
87
|
+
}
|
|
88
|
+
/** @deprecated Use {@link IconClass}. */
|
|
89
|
+
set iconClass(value) {
|
|
90
|
+
this.IconClass = value;
|
|
91
|
+
}
|
|
28
92
|
// Icon suggestions
|
|
29
|
-
|
|
93
|
+
IconSuggestions = [
|
|
30
94
|
{ icon: 'fa-solid fa-folder', label: 'Folder' },
|
|
31
95
|
{ icon: 'fa-solid fa-lock', label: 'Lock' },
|
|
32
96
|
{ icon: 'fa-solid fa-shield-halved', label: 'Shield' },
|
|
@@ -40,6 +104,14 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
40
104
|
{ icon: 'fa-solid fa-code', label: 'Code' },
|
|
41
105
|
{ icon: 'fa-solid fa-globe', label: 'Web' }
|
|
42
106
|
];
|
|
107
|
+
/** @deprecated Use {@link IconSuggestions}. */
|
|
108
|
+
get iconSuggestions() {
|
|
109
|
+
return this.IconSuggestions;
|
|
110
|
+
}
|
|
111
|
+
/** @deprecated Use {@link IconSuggestions}. */
|
|
112
|
+
set iconSuggestions(value) {
|
|
113
|
+
this.IconSuggestions = value;
|
|
114
|
+
}
|
|
43
115
|
get _metadata() { return this.ProviderToUse; }
|
|
44
116
|
constructor(cdr, confirmService) {
|
|
45
117
|
super();
|
|
@@ -49,26 +121,38 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
49
121
|
ngOnInit() {
|
|
50
122
|
this.loadCategories();
|
|
51
123
|
}
|
|
124
|
+
get PanelTitle() {
|
|
125
|
+
return this.IsNew ? 'Create Category' : 'Edit Category';
|
|
126
|
+
}
|
|
127
|
+
/** @deprecated Use {@link PanelTitle}. */
|
|
52
128
|
get panelTitle() {
|
|
53
|
-
return this.
|
|
129
|
+
return this.PanelTitle;
|
|
54
130
|
}
|
|
55
|
-
get
|
|
131
|
+
get CanSave() {
|
|
56
132
|
return this.name.trim().length > 0;
|
|
57
133
|
}
|
|
58
|
-
|
|
134
|
+
/** @deprecated Use {@link CanSave}. */
|
|
135
|
+
get canSave() {
|
|
136
|
+
return this.CanSave;
|
|
137
|
+
}
|
|
138
|
+
get AvailableParentCategories() {
|
|
59
139
|
// Exclude the current category and its descendants from parent options
|
|
60
|
-
if (!this.category || this.
|
|
61
|
-
return this.
|
|
140
|
+
if (!this.category || this.IsNew) {
|
|
141
|
+
return this.AllCategories;
|
|
62
142
|
}
|
|
63
143
|
const currentId = this.category.ID;
|
|
64
144
|
const descendantIds = this.getDescendantIds(currentId);
|
|
65
145
|
descendantIds.add(currentId);
|
|
66
|
-
return this.
|
|
146
|
+
return this.AllCategories.filter(c => !descendantIds.has(c.ID));
|
|
147
|
+
}
|
|
148
|
+
/** @deprecated Use {@link AvailableParentCategories}. */
|
|
149
|
+
get availableParentCategories() {
|
|
150
|
+
return this.AvailableParentCategories;
|
|
67
151
|
}
|
|
68
152
|
getDescendantIds(categoryId) {
|
|
69
153
|
const descendants = new Set();
|
|
70
154
|
const findChildren = (parentId) => {
|
|
71
|
-
for (const cat of this.
|
|
155
|
+
for (const cat of this.AllCategories) {
|
|
72
156
|
if (UUIDsEqual(cat.ParentID, parentId)) {
|
|
73
157
|
descendants.add(cat.ID);
|
|
74
158
|
findChildren(cat.ID);
|
|
@@ -78,11 +162,11 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
78
162
|
findChildren(categoryId);
|
|
79
163
|
return descendants;
|
|
80
164
|
}
|
|
81
|
-
async
|
|
165
|
+
async Open(category, preselectedParentId) {
|
|
82
166
|
this.isLoading = true;
|
|
83
|
-
this.
|
|
167
|
+
this.IsOpen = true;
|
|
84
168
|
this.category = category;
|
|
85
|
-
this.
|
|
169
|
+
this.IsNew = !category || !category.ID;
|
|
86
170
|
this.cdr.markForCheck();
|
|
87
171
|
await this.loadCategories();
|
|
88
172
|
this.resetForm();
|
|
@@ -90,11 +174,15 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
90
174
|
this.populateFromCategory(category);
|
|
91
175
|
}
|
|
92
176
|
else if (preselectedParentId) {
|
|
93
|
-
this.
|
|
177
|
+
this.ParentId = preselectedParentId;
|
|
94
178
|
}
|
|
95
179
|
this.isLoading = false;
|
|
96
180
|
this.cdr.markForCheck();
|
|
97
181
|
}
|
|
182
|
+
/** @deprecated Use {@link Open}. */
|
|
183
|
+
async open(category, preselectedParentId) {
|
|
184
|
+
return this.Open(category, preselectedParentId);
|
|
185
|
+
}
|
|
98
186
|
async loadCategories() {
|
|
99
187
|
try {
|
|
100
188
|
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
@@ -104,7 +192,7 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
104
192
|
ResultType: 'entity_object'
|
|
105
193
|
});
|
|
106
194
|
if (result.Success) {
|
|
107
|
-
this.
|
|
195
|
+
this.AllCategories = result.Results;
|
|
108
196
|
}
|
|
109
197
|
}
|
|
110
198
|
catch (error) {
|
|
@@ -115,29 +203,33 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
115
203
|
resetForm() {
|
|
116
204
|
this.name = '';
|
|
117
205
|
this.description = '';
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
206
|
+
this.ParentId = '';
|
|
207
|
+
this.IconClass = '';
|
|
120
208
|
}
|
|
121
209
|
populateFromCategory(category) {
|
|
122
210
|
this.name = category.Name || '';
|
|
123
211
|
this.description = category.Description || '';
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
212
|
+
this.ParentId = category.ParentID || '';
|
|
213
|
+
this.IconClass = category.IconClass || '';
|
|
126
214
|
}
|
|
127
|
-
|
|
128
|
-
this.
|
|
215
|
+
SelectIcon(icon) {
|
|
216
|
+
this.IconClass = icon;
|
|
129
217
|
this.cdr.markForCheck();
|
|
130
218
|
}
|
|
219
|
+
/** @deprecated Use {@link SelectIcon}. */
|
|
220
|
+
selectIcon(icon) {
|
|
221
|
+
return this.SelectIcon(icon);
|
|
222
|
+
}
|
|
131
223
|
async save() {
|
|
132
|
-
if (!this.
|
|
224
|
+
if (!this.CanSave) {
|
|
133
225
|
MJNotificationService.Instance.CreateSimpleNotification('Please enter a category name', 'warning', 3000);
|
|
134
226
|
return;
|
|
135
227
|
}
|
|
136
|
-
this.
|
|
228
|
+
this.IsSaving = true;
|
|
137
229
|
this.cdr.markForCheck();
|
|
138
230
|
try {
|
|
139
231
|
let entity;
|
|
140
|
-
if (this.
|
|
232
|
+
if (this.IsNew) {
|
|
141
233
|
entity = await this._metadata.GetEntityObject('MJ: Credential Categories');
|
|
142
234
|
}
|
|
143
235
|
else {
|
|
@@ -145,14 +237,14 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
145
237
|
}
|
|
146
238
|
entity.Name = this.name.trim();
|
|
147
239
|
entity.Description = this.description.trim() || null;
|
|
148
|
-
entity.ParentID = this.
|
|
149
|
-
entity.IconClass = this.
|
|
240
|
+
entity.ParentID = this.ParentId || null;
|
|
241
|
+
entity.IconClass = this.IconClass.trim() || null;
|
|
150
242
|
const success = await entity.Save();
|
|
151
243
|
if (success) {
|
|
152
|
-
const action = this.
|
|
244
|
+
const action = this.IsNew ? 'created' : 'updated';
|
|
153
245
|
MJNotificationService.Instance.CreateSimpleNotification(`Category "${entity.Name}" ${action} successfully`, 'success', 3000);
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
246
|
+
this.Saved.emit(entity);
|
|
247
|
+
this.ClosePanel();
|
|
156
248
|
}
|
|
157
249
|
else {
|
|
158
250
|
const errorMessage = entity.LatestResult?.Message || 'Unknown error';
|
|
@@ -165,24 +257,24 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
165
257
|
MJNotificationService.Instance.CreateSimpleNotification('Error saving category', 'error', 3000);
|
|
166
258
|
}
|
|
167
259
|
finally {
|
|
168
|
-
this.
|
|
260
|
+
this.IsSaving = false;
|
|
169
261
|
this.cdr.markForCheck();
|
|
170
262
|
}
|
|
171
263
|
}
|
|
172
|
-
async
|
|
173
|
-
if (this.
|
|
264
|
+
async DeleteCategory() {
|
|
265
|
+
if (this.IsNew || !this.category)
|
|
174
266
|
return;
|
|
175
267
|
const confirmed = await this.confirmService.ConfirmDelete({ title: 'Delete Category', message: `Delete "${this.category.Name}"?`, detail: 'This action cannot be undone.' });
|
|
176
268
|
if (!confirmed)
|
|
177
269
|
return;
|
|
178
|
-
this.
|
|
270
|
+
this.IsSaving = true;
|
|
179
271
|
this.cdr.markForCheck();
|
|
180
272
|
try {
|
|
181
273
|
const success = await this.category.Delete();
|
|
182
274
|
if (success) {
|
|
183
275
|
MJNotificationService.Instance.CreateSimpleNotification(`Category "${this.category.Name}" deleted successfully`, 'success', 3000);
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
276
|
+
this.Deleted.emit(this.category.ID);
|
|
277
|
+
this.ClosePanel();
|
|
186
278
|
}
|
|
187
279
|
else {
|
|
188
280
|
const errorMessage = this.category.LatestResult?.Message || 'Unknown error';
|
|
@@ -194,45 +286,67 @@ export class CredentialCategoryEditPanelComponent extends BaseAngularComponent {
|
|
|
194
286
|
MJNotificationService.Instance.CreateSimpleNotification('Error deleting category', 'error', 3000);
|
|
195
287
|
}
|
|
196
288
|
finally {
|
|
197
|
-
this.
|
|
289
|
+
this.IsSaving = false;
|
|
198
290
|
this.cdr.markForCheck();
|
|
199
291
|
}
|
|
200
292
|
}
|
|
201
|
-
|
|
202
|
-
|
|
293
|
+
/** @deprecated Use {@link DeleteCategory}. */
|
|
294
|
+
async deleteCategory() {
|
|
295
|
+
return this.DeleteCategory();
|
|
296
|
+
}
|
|
297
|
+
ClosePanel() {
|
|
298
|
+
this.IsOpen = false;
|
|
203
299
|
this.category = null;
|
|
204
300
|
this.resetForm();
|
|
205
301
|
this.close.emit();
|
|
206
302
|
this.cdr.markForCheck();
|
|
207
303
|
}
|
|
208
|
-
|
|
304
|
+
/** @deprecated Use {@link ClosePanel}. */
|
|
305
|
+
closePanel() {
|
|
306
|
+
return this.ClosePanel();
|
|
307
|
+
}
|
|
308
|
+
OnBackdropClick(event) {
|
|
209
309
|
if (event.target.classList.contains('panel-backdrop')) {
|
|
210
|
-
this.
|
|
310
|
+
this.ClosePanel();
|
|
211
311
|
}
|
|
212
312
|
}
|
|
213
|
-
|
|
313
|
+
/** @deprecated Use {@link OnBackdropClick}. */
|
|
314
|
+
onBackdropClick(event) {
|
|
315
|
+
return this.OnBackdropClick(event);
|
|
316
|
+
}
|
|
317
|
+
GetParentPath(categoryId) {
|
|
214
318
|
const parts = [];
|
|
215
|
-
let current = this.
|
|
319
|
+
let current = this.AllCategories.find(c => UUIDsEqual(c.ID, categoryId));
|
|
216
320
|
while (current) {
|
|
217
321
|
parts.unshift(current.Name);
|
|
218
|
-
current = current.ParentID ? this.
|
|
322
|
+
current = current.ParentID ? this.AllCategories.find(c => UUIDsEqual(c.ID, current.ParentID)) : undefined;
|
|
219
323
|
}
|
|
220
324
|
return parts.join(' / ');
|
|
221
325
|
}
|
|
326
|
+
/** @deprecated Use {@link GetParentPath}. */
|
|
327
|
+
getParentPath(categoryId) {
|
|
328
|
+
return this.GetParentPath(categoryId);
|
|
329
|
+
}
|
|
222
330
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: CredentialCategoryEditPanelComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.MJConfirmService }], target: i0.ɵɵFactoryTarget.Component });
|
|
223
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: CredentialCategoryEditPanelComponent, isStandalone: false, selector: "mj-credential-category-edit-panel", inputs: { category: "category", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, usesInheritance: true, ngImport: i0, template: "@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", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: var(--mj-bg-surface);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n cursor: pointer;\n color: var(--mj-text-muted);\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: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid var(--mj-bg-surface-sunken);\n}\n\n.section-title i {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: var(--mj-status-error);\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface);\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: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-disabled);\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: var(--mj-text-disabled);\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid var(--mj-border-default);\n border-radius: 8px;\n background: var(--mj-bg-surface);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n\n.icon-btn.selected {\n border-color: var(--mj-brand-primary);\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 20px;\n box-shadow: 0 4px 12px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\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: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover);\n}\n\n.btn-primary:disabled {\n background: color-mix(in srgb, var(--mj-brand-primary) 25%, var(--mj-bg-surface));\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-text-disabled);\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: var(--mj-status-error);\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: var(--mj-border-strong);\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: var(--mj-text-disabled);\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"], dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],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]):not([formArray]),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 });
|
|
331
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: CredentialCategoryEditPanelComponent, isStandalone: false, selector: "mj-credential-category-edit-panel", inputs: { category: "category", IsOpen: "IsOpen", isOpen: "isOpen" }, outputs: { close: "close", Saved: "Saved", saved: "saved", Deleted: "Deleted", deleted: "deleted" }, usesInheritance: true, ngImport: i0, template: "@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", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: var(--mj-bg-surface);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n cursor: pointer;\n color: var(--mj-text-muted);\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: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid var(--mj-bg-surface-sunken);\n}\n\n.section-title i {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: var(--mj-status-error);\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface);\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: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-disabled);\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: var(--mj-text-disabled);\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid var(--mj-border-default);\n border-radius: 8px;\n background: var(--mj-bg-surface);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n\n.icon-btn.selected {\n border-color: var(--mj-brand-primary);\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 20px;\n box-shadow: 0 4px 12px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\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: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover);\n}\n\n.btn-primary:disabled {\n background: color-mix(in srgb, var(--mj-brand-primary) 25%, var(--mj-bg-surface));\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-text-disabled);\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: var(--mj-status-error);\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: var(--mj-border-strong);\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: var(--mj-text-disabled);\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"], dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],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]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.LoadingComponent, selector: "mj-loading", inputs: ["Text", "text", "ShowText", "showText", "AnimationDuration", "animationDuration", "Size", "size", "TextColor", "textColor", "LogoColor", "logoColor", "LogoGradient", "logoGradient", "Animation", "animation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
224
332
|
}
|
|
225
333
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: CredentialCategoryEditPanelComponent, decorators: [{
|
|
226
334
|
type: Component,
|
|
227
335
|
args: [{ standalone: false, selector: 'mj-credential-category-edit-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "@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", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: var(--mj-bg-surface);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n cursor: pointer;\n color: var(--mj-text-muted);\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: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid var(--mj-bg-surface-sunken);\n}\n\n.section-title i {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: var(--mj-status-error);\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface);\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: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-disabled);\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: var(--mj-text-disabled);\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid var(--mj-border-default);\n border-radius: 8px;\n background: var(--mj-bg-surface);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n\n.icon-btn.selected {\n border-color: var(--mj-brand-primary);\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: var(--mj-text-muted);\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: var(--mj-brand-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 20px;\n box-shadow: 0 4px 12px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\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 var(--mj-border-default);\n background: var(--mj-bg-surface-card);\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: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover);\n}\n\n.btn-primary:disabled {\n background: color-mix(in srgb, var(--mj-brand-primary) 25%, var(--mj-bg-surface));\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-text-disabled);\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: var(--mj-status-error);\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: var(--mj-border-strong);\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: var(--mj-text-disabled);\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"] }]
|
|
228
336
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.MJConfirmService }], propDecorators: { category: [{
|
|
229
337
|
type: Input
|
|
338
|
+
}], IsOpen: [{
|
|
339
|
+
type: Input
|
|
230
340
|
}], isOpen: [{
|
|
231
341
|
type: Input
|
|
232
342
|
}], close: [{
|
|
233
343
|
type: Output
|
|
344
|
+
}], Saved: [{
|
|
345
|
+
type: Output
|
|
234
346
|
}], saved: [{
|
|
235
347
|
type: Output
|
|
348
|
+
}], Deleted: [{
|
|
349
|
+
type: Output
|
|
236
350
|
}], deleted: [{
|
|
237
351
|
type: Output
|
|
238
352
|
}] } });
|