@memberjunction/ng-credentials 3.4.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -0
- package/dist/lib/credentials.module.d.ts +0 -5
- package/dist/lib/credentials.module.d.ts.map +1 -1
- package/dist/lib/credentials.module.js +8 -18
- package/dist/lib/credentials.module.js.map +1 -1
- package/dist/lib/dialogs/credential-dialog.component.d.ts +0 -1
- package/dist/lib/dialogs/credential-dialog.component.d.ts.map +1 -1
- package/dist/lib/dialogs/credential-dialog.component.js +4 -7
- 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 +0 -1
- 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 +6 -10
- 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 +0 -1
- 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 +6 -10
- 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 +0 -1
- 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 +6 -10
- package/dist/lib/panels/credential-type-edit-panel/credential-type-edit-panel.component.js.map +1 -1
- package/dist/lib/services/credential-dialog.service.js +3 -3
- package/dist/lib/services/credential-dialog.service.js.map +1 -1
- package/package.json +15 -15
package/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# @memberjunction/ng-credentials
|
|
2
|
+
|
|
3
|
+
Angular components for managing credentials, credential types, and credential categories in MemberJunction applications, with panel and dialog presentation modes.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The `@memberjunction/ng-credentials` package provides reusable UI components for creating and editing credentials, credential types, and credential categories. Each component follows a panel + dialog pattern: panels can be embedded directly in pages, while dialog wrappers provide modal presentation.
|
|
8
|
+
|
|
9
|
+
```mermaid
|
|
10
|
+
graph TD
|
|
11
|
+
A[CredentialsModule] --> B[Panel Components]
|
|
12
|
+
A --> C[Dialog Components]
|
|
13
|
+
|
|
14
|
+
B --> B1[CredentialEditPanelComponent]
|
|
15
|
+
B --> B2[CredentialTypeEditPanelComponent]
|
|
16
|
+
B --> B3[CredentialCategoryEditPanelComponent]
|
|
17
|
+
|
|
18
|
+
C --> C1[CredentialDialogComponent]
|
|
19
|
+
|
|
20
|
+
B1 --> D["Credential CRUD
|
|
21
|
+
(name, type, category, values)"]
|
|
22
|
+
B2 --> E["Credential Type CRUD
|
|
23
|
+
(type definition, fields schema)"]
|
|
24
|
+
B3 --> F["Category CRUD
|
|
25
|
+
(hierarchical organization)"]
|
|
26
|
+
|
|
27
|
+
style A fill:#2d6a9f,stroke:#1a4971,color:#fff
|
|
28
|
+
style B fill:#7c5295,stroke:#563a6b,color:#fff
|
|
29
|
+
style C fill:#2d8659,stroke:#1a5c3a,color:#fff
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @memberjunction/ng-credentials
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
### Import the Module
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { CredentialsModule } from '@memberjunction/ng-credentials';
|
|
44
|
+
|
|
45
|
+
@NgModule({
|
|
46
|
+
imports: [CredentialsModule]
|
|
47
|
+
})
|
|
48
|
+
export class YourModule { }
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Credential Edit Panel
|
|
52
|
+
|
|
53
|
+
Embed a credential editor directly in your page:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<mj-credential-edit-panel
|
|
57
|
+
[credentialId]="selectedCredentialId"
|
|
58
|
+
(saved)="onCredentialSaved($event)"
|
|
59
|
+
(cancelled)="onEditCancelled()">
|
|
60
|
+
</mj-credential-edit-panel>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Credential Dialog
|
|
64
|
+
|
|
65
|
+
Open a credential editor in a modal:
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<mj-credential-dialog
|
|
69
|
+
[visible]="showCredentialDialog"
|
|
70
|
+
[credentialId]="selectedCredentialId"
|
|
71
|
+
(saved)="onCredentialSaved($event)"
|
|
72
|
+
(dialogClosed)="onDialogClosed()">
|
|
73
|
+
</mj-credential-dialog>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Credential Type Edit Panel
|
|
77
|
+
|
|
78
|
+
Manage credential type definitions:
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<mj-credential-type-edit-panel
|
|
82
|
+
[credentialTypeId]="selectedTypeId"
|
|
83
|
+
(saved)="onTypeSaved($event)"
|
|
84
|
+
(cancelled)="onEditCancelled()">
|
|
85
|
+
</mj-credential-type-edit-panel>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Credential Category Edit Panel
|
|
89
|
+
|
|
90
|
+
Organize credentials into categories:
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<mj-credential-category-edit-panel
|
|
94
|
+
[categoryId]="selectedCategoryId"
|
|
95
|
+
(saved)="onCategorySaved($event)"
|
|
96
|
+
(cancelled)="onEditCancelled()">
|
|
97
|
+
</mj-credential-category-edit-panel>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Exported Components
|
|
101
|
+
|
|
102
|
+
| Component | Selector | Description |
|
|
103
|
+
|-----------|----------|-------------|
|
|
104
|
+
| `CredentialEditPanelComponent` | `mj-credential-edit-panel` | Full credential editor form |
|
|
105
|
+
| `CredentialTypeEditPanelComponent` | `mj-credential-type-edit-panel` | Credential type definition editor |
|
|
106
|
+
| `CredentialCategoryEditPanelComponent` | `mj-credential-category-edit-panel` | Category management editor |
|
|
107
|
+
| `CredentialDialogComponent` | `mj-credential-dialog` | Modal wrapper for credential editing |
|
|
108
|
+
|
|
109
|
+
## Dependencies
|
|
110
|
+
|
|
111
|
+
| Package | Description |
|
|
112
|
+
|---------|-------------|
|
|
113
|
+
| `@memberjunction/core` | Core framework |
|
|
114
|
+
| `@memberjunction/core-entities` | Entity type definitions |
|
|
115
|
+
| `@memberjunction/global` | Global utilities |
|
|
116
|
+
| `@memberjunction/ng-shared-generic` | Shared generic components |
|
|
117
|
+
| `@progress/kendo-angular-dialog` | Dialog/modal support |
|
|
118
|
+
| `@progress/kendo-angular-buttons` | Button components |
|
|
119
|
+
|
|
120
|
+
### Peer Dependencies
|
|
121
|
+
|
|
122
|
+
- `@angular/common` ^21.x
|
|
123
|
+
- `@angular/core` ^21.x
|
|
124
|
+
- `@angular/forms` ^21.x
|
|
125
|
+
|
|
126
|
+
## Build
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
cd packages/Angular/Generic/credentials
|
|
130
|
+
npm run build
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
ISC
|
|
@@ -13,9 +13,4 @@ export declare class CredentialsModule {
|
|
|
13
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CredentialsModule, [typeof i1.CredentialEditPanelComponent, typeof i2.CredentialTypeEditPanelComponent, typeof i3.CredentialCategoryEditPanelComponent, typeof i4.CredentialDialogComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.DialogModule, typeof i8.ButtonsModule, typeof i9.SharedGenericModule], [typeof i1.CredentialEditPanelComponent, typeof i2.CredentialTypeEditPanelComponent, typeof i3.CredentialCategoryEditPanelComponent, typeof i4.CredentialDialogComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<CredentialsModule>;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Loads all credential components to prevent tree-shaking.
|
|
18
|
-
* Call this from your application's module initialization.
|
|
19
|
-
*/
|
|
20
|
-
export declare function LoadCredentialsModule(): void;
|
|
21
16
|
//# sourceMappingURL=credentials.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.module.d.ts","sourceRoot":"","sources":["../../src/lib/credentials.module.ts"],"names":[],"mappings":";;;;;;;;;;AA2BA,qBAyBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAI
|
|
1
|
+
{"version":3,"file":"credentials.module.d.ts","sourceRoot":"","sources":["../../src/lib/credentials.module.ts"],"names":[],"mappings":";;;;;;;;;;AA2BA,qBAyBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAI"}
|
|
@@ -14,15 +14,15 @@ import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
|
14
14
|
// MemberJunction modules
|
|
15
15
|
import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
|
|
16
16
|
// Panel components
|
|
17
|
-
import { CredentialEditPanelComponent
|
|
18
|
-
import { CredentialTypeEditPanelComponent
|
|
19
|
-
import { CredentialCategoryEditPanelComponent
|
|
17
|
+
import { CredentialEditPanelComponent } from './panels/credential-edit-panel/credential-edit-panel.component';
|
|
18
|
+
import { CredentialTypeEditPanelComponent } from './panels/credential-type-edit-panel/credential-type-edit-panel.component';
|
|
19
|
+
import { CredentialCategoryEditPanelComponent } from './panels/credential-category-edit-panel/credential-category-edit-panel.component';
|
|
20
20
|
// Dialog components
|
|
21
|
-
import { CredentialDialogComponent
|
|
21
|
+
import { CredentialDialogComponent } from './dialogs/credential-dialog.component';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
export class CredentialsModule {
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: CredentialsModule, declarations: [
|
|
26
26
|
// Panels
|
|
27
27
|
CredentialEditPanelComponent,
|
|
28
28
|
CredentialTypeEditPanelComponent,
|
|
@@ -39,13 +39,13 @@ export class CredentialsModule {
|
|
|
39
39
|
CredentialCategoryEditPanelComponent,
|
|
40
40
|
// Dialogs
|
|
41
41
|
CredentialDialogComponent] });
|
|
42
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
42
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialsModule, imports: [CommonModule,
|
|
43
43
|
FormsModule,
|
|
44
44
|
DialogModule,
|
|
45
45
|
ButtonsModule,
|
|
46
46
|
SharedGenericModule] });
|
|
47
47
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialsModule, decorators: [{
|
|
49
49
|
type: NgModule,
|
|
50
50
|
args: [{
|
|
51
51
|
declarations: [
|
|
@@ -73,14 +73,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
73
73
|
]
|
|
74
74
|
}]
|
|
75
75
|
}] });
|
|
76
|
-
/**
|
|
77
|
-
* Loads all credential components to prevent tree-shaking.
|
|
78
|
-
* Call this from your application's module initialization.
|
|
79
|
-
*/
|
|
80
|
-
export function LoadCredentialsModule() {
|
|
81
|
-
LoadCredentialEditPanel();
|
|
82
|
-
LoadCredentialTypeEditPanel();
|
|
83
|
-
LoadCredentialCategoryEditPanel();
|
|
84
|
-
LoadCredentialDialog();
|
|
85
|
-
}
|
|
86
76
|
//# sourceMappingURL=credentials.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.module.js","sourceRoot":"","sources":["../../src/lib/credentials.module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,2BAA2B;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,yBAAyB;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,mBAAmB;AACnB,OAAO,EAAE,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"credentials.module.js","sourceRoot":"","sources":["../../src/lib/credentials.module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,2BAA2B;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,yBAAyB;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,mBAAmB;AACnB,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,EAAE,gCAAgC,EAAE,MAAM,0EAA0E,CAAC;AAC5H,OAAO,EAAE,oCAAoC,EAAE,MAAM,kFAAkF,CAAC;AAExI,oBAAoB;AACpB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;;AA2BlF,MAAM,OAAO,iBAAiB;uGAAjB,iBAAiB;wGAAjB,iBAAiB;YAvBtB,SAAS;YACT,4BAA4B;YAC5B,gCAAgC;YAChC,oCAAoC;YACpC,UAAU;YACV,yBAAyB,aAGzB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,aAAa;YACb,mBAAmB;YAGnB,SAAS;YACT,4BAA4B;YAC5B,gCAAgC;YAChC,oCAAoC;YACpC,UAAU;YACV,yBAAyB;wGAGpB,iBAAiB,YAftB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,aAAa;YACb,mBAAmB;;2FAWd,iBAAiB;kBAzB7B,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,SAAS;wBACT,4BAA4B;wBAC5B,gCAAgC;wBAChC,oCAAoC;wBACpC,UAAU;wBACV,yBAAyB;qBAC5B;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,aAAa;wBACb,mBAAmB;qBACtB;oBACD,OAAO,EAAE;wBACL,SAAS;wBACT,4BAA4B;wBAC5B,gCAAgC;wBAChC,oCAAoC;wBACpC,UAAU;wBACV,yBAAyB;qBAC5B;iBACJ"}
|
|
@@ -8,7 +8,6 @@ import { EventEmitter, ChangeDetectorRef, OnInit, OnChanges, SimpleChanges } fro
|
|
|
8
8
|
import { CredentialEntity, CredentialTypeEntity } from '@memberjunction/core-entities';
|
|
9
9
|
import { CredentialEditPanelComponent } from '../panels/credential-edit-panel/credential-edit-panel.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare function LoadCredentialDialog(): void;
|
|
12
11
|
/**
|
|
13
12
|
* Configuration options for opening the credential dialog
|
|
14
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-dialog.component.d.ts","sourceRoot":"","sources":["../../../src/lib/dialogs/credential-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAAsC,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAChK,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAEvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;;AAE/G
|
|
1
|
+
{"version":3,"file":"credential-dialog.component.d.ts","sourceRoot":"","sources":["../../../src/lib/dialogs/credential-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAAsC,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAChK,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAEvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;;AAE/G;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,oEAAoE;IACpE,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,gDAAgD;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;CAC7C;AAED,qBAsCa,yBAA0B,YAAW,MAAM,EAAE,SAAS;IAiBnD,OAAO,CAAC,GAAG;IAhBC,SAAS,EAAG,4BAA4B,CAAC;IAExD,OAAO,UAAS;IAChB,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAC3C,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,SAAO;IAEX,KAAK,uCAA8C;IAEtD,SAAS,UAAS;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAM;IAEpD,OAAO,CAAC,YAAY,CAAgB;gBAEhB,GAAG,EAAE,iBAAiB;IAE1C,QAAQ,IAAI,IAAI;IAMhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAiBzC,IAAW,WAAW,IAAI,MAAM,CAK/B;IAED;;OAEG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;YAoBrD,mBAAmB;IA2B1B,OAAO,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI;IAU3C,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAUrC,QAAQ,IAAI,IAAI;yCAvHd,yBAAyB;2CAAzB,yBAAyB;CA+HrC"}
|
|
@@ -9,9 +9,6 @@ import { RunView } from '@memberjunction/core';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "@memberjunction/ng-shared-generic";
|
|
11
11
|
import * as i2 from "../panels/credential-edit-panel/credential-edit-panel.component";
|
|
12
|
-
export function LoadCredentialDialog() {
|
|
13
|
-
// Prevents tree-shaking
|
|
14
|
-
}
|
|
15
12
|
export class CredentialDialogComponent {
|
|
16
13
|
cdr;
|
|
17
14
|
editPanel;
|
|
@@ -125,8 +122,8 @@ export class CredentialDialogComponent {
|
|
|
125
122
|
});
|
|
126
123
|
this.cdr.markForCheck();
|
|
127
124
|
}
|
|
128
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
129
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialDialogComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: CredentialDialogComponent, isStandalone: false, selector: "mj-credential-dialog", inputs: { Visible: "Visible", Credential: "Credential", PreselectedTypeId: "PreselectedTypeId", PreselectedCategoryId: "PreselectedCategoryId", Title: "Title", Width: "Width" }, outputs: { close: "close" }, viewQueries: [{ propertyName: "editPanel", first: true, predicate: ["editPanel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
130
127
|
@if (Visible) {
|
|
131
128
|
@if (IsLoading) {
|
|
132
129
|
<div class="loading-backdrop">
|
|
@@ -146,9 +143,9 @@ export class CredentialDialogComponent {
|
|
|
146
143
|
}
|
|
147
144
|
`, isInline: true, styles: ["\n .loading-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 display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n }\n "], dependencies: [{ kind: "component", type: i1.LoadingComponent, selector: "mj-loading", inputs: ["text", "showText", "animationDuration", "size", "textColor", "logoColor", "logoGradient", "animation"] }, { kind: "component", type: i2.CredentialEditPanelComponent, selector: "mj-credential-edit-panel", inputs: ["credential", "credentialTypes", "isOpen"], outputs: ["close", "saved", "deleted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
148
145
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialDialogComponent, decorators: [{
|
|
150
147
|
type: Component,
|
|
151
|
-
args: [{ selector: 'mj-credential-dialog', template: `
|
|
148
|
+
args: [{ standalone: false, selector: 'mj-credential-dialog', template: `
|
|
152
149
|
@if (Visible) {
|
|
153
150
|
@if (IsLoading) {
|
|
154
151
|
<div class="loading-backdrop">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-dialog.component.js","sourceRoot":"","sources":["../../../src/lib/dialogs/credential-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,uBAAuB,EAAE,SAAS,EAAoC,MAAM,eAAe,CAAC;AAEhK,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"credential-dialog.component.js","sourceRoot":"","sources":["../../../src/lib/dialogs/credential-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,uBAAuB,EAAE,SAAS,EAAoC,MAAM,eAAe,CAAC;AAEhK,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;AAuE/C,MAAM,OAAO,yBAAyB;IAiBd;IAhBI,SAAS,CAAgC;IAExD,OAAO,GAAG,KAAK,CAAC;IAChB,UAAU,GAA4B,IAAI,CAAC;IAC3C,iBAAiB,CAAqB;IACtC,qBAAqB,CAAqB;IAC1C,KAAK,CAAqB;IAC1B,KAAK,GAAG,GAAG,CAAC;IAEX,KAAK,GAAG,IAAI,YAAY,EAA0B,CAAC;IAEtD,SAAS,GAAG,KAAK,CAAC;IAClB,eAAe,GAA2B,EAAE,CAAC;IAE5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
|
|
1
1
|
import { EventEmitter, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CredentialCategoryEntity } from '@memberjunction/core-entities';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function LoadCredentialCategoryEditPanel(): void;
|
|
5
4
|
export declare class CredentialCategoryEditPanelComponent implements OnInit {
|
|
6
5
|
private cdr;
|
|
7
6
|
category: CredentialCategoryEntity | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-category-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;AAIzE,
|
|
1
|
+
{"version":3,"file":"credential-category-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;AAIzE,qBAOa,oCAAqC,YAAW,MAAM;IAuCnD,OAAO,CAAC,GAAG;IAtCd,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IACjD,MAAM,UAAS;IAEd,KAAK,qBAA4B;IACjC,KAAK,yCAAgD;IACrD,OAAO,uBAA8B;IAExC,SAAS,UAAS;IAClB,QAAQ,UAAS;IACjB,KAAK,UAAS;IAGd,aAAa,EAAE,wBAAwB,EAAE,CAAM;IAG/C,IAAI,SAAM;IACV,WAAW,SAAM;IACjB,QAAQ,SAAM;IACd,SAAS,SAAM;IAGf,eAAe,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAavD;IAEF,OAAO,CAAC,SAAS,CAAkB;gBAEf,GAAG,EAAE,iBAAiB;IAE1C,QAAQ,IAAI,IAAI;IAIhB,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,yBAAyB,IAAI,wBAAwB,EAAE,CAWjE;IAED,OAAO,CAAC,gBAAgB;IAcX,IAAI,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAoB3F,cAAc;IAkB5B,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,oBAAoB;IAOrB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAwDrB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAwCrC,UAAU,IAAI,IAAI;IAQlB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAMxC,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;yCAvPvC,oCAAoC;2CAApC,oCAAoC;CAkQhD"}
|
package/dist/lib/panels/credential-category-edit-panel/credential-category-edit-panel.component.js
CHANGED
|
@@ -2,12 +2,8 @@ import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from
|
|
|
2
2
|
import { Metadata, RunView } from '@memberjunction/core';
|
|
3
3
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/
|
|
6
|
-
import * as i2 from "@
|
|
7
|
-
import * as i3 from "@memberjunction/ng-shared-generic";
|
|
8
|
-
export function LoadCredentialCategoryEditPanel() {
|
|
9
|
-
// Prevents tree-shaking
|
|
10
|
-
}
|
|
5
|
+
import * as i1 from "@angular/forms";
|
|
6
|
+
import * as i2 from "@memberjunction/ng-shared-generic";
|
|
11
7
|
export class CredentialCategoryEditPanelComponent {
|
|
12
8
|
cdr;
|
|
13
9
|
category = null;
|
|
@@ -217,12 +213,12 @@ export class CredentialCategoryEditPanelComponent {
|
|
|
217
213
|
}
|
|
218
214
|
return parts.join(' / ');
|
|
219
215
|
}
|
|
220
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
221
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CredentialCategoryEditPanelComponent, selector: "mj-credential-category-edit-panel", inputs: { category: "category", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, ngImport: i0, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick($event)\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n <div class=\"header-icon\" [style.backgroundColor]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"parentId\">\n Under: {{getParentPath(parentId)}}\n </span>\n <span class=\"header-subtitle\" *ngIf=\"!parentId\">Root category</span>\n </div>\n </div>\n <button class=\"close-btn\" (click)=\"closePanel()\" [disabled]=\"isSaving\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <!-- Panel Body -->\n <div class=\"panel-body\">\n <mj-loading *ngIf=\"isLoading\" text=\"Loading...\"></mj-loading>\n\n <form *ngIf=\"!isLoading\" class=\"category-form\" (submit)=\"$event.preventDefault(); save()\">\n <!-- Basic Info Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"categoryName\"\n name=\"categoryName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production, Development, API Keys\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryParent\">Parent Category</label>\n <select\n id=\"categoryParent\"\n name=\"categoryParent\"\n [(ngModel)]=\"parentId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No parent (root category)</option>\n <option *ngFor=\"let cat of availableParentCategories\" [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryDescription\">Description</label>\n <textarea\n id=\"categoryDescription\"\n name=\"categoryDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description of this category...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Icon Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-icons\"></i>\n Icon\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryIcon\">Custom Icon Class</label>\n <input\n type=\"text\"\n id=\"categoryIcon\"\n name=\"categoryIcon\"\n [(ngModel)]=\"iconClass\"\n placeholder=\"e.g., fa-solid fa-folder\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Font Awesome icon class</span>\n </div>\n\n <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n <button\n type=\"button\"\n class=\"icon-btn\"\n *ngFor=\"let suggestion of iconSuggestions\"\n [class.selected]=\"iconClass === suggestion.icon\"\n (click)=\"selectIcon(suggestion.icon)\"\n [disabled]=\"isSaving\"\n [title]=\"suggestion.label\"\n >\n <i [class]=\"suggestion.icon\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"icon-preview\" *ngIf=\"iconClass\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n </div>\n </form>\n </div>\n\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n <button\n class=\"btn-delete\"\n *ngIf=\"!isNew\"\n (click)=\"deleteCategory()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n </div>\n <div class=\"footer-right\">\n <button\n class=\"btn-secondary\"\n (click)=\"closePanel()\"\n [disabled]=\"isSaving\"\n >\n Cancel\n </button>\n <button\n class=\"btn-primary\"\n (click)=\"save()\"\n [disabled]=\"isSaving || !canSave\"\n >\n <i class=\"fa-solid fa-spinner fa-spin\" *ngIf=\"isSaving\"></i>\n <i class=\"fa-solid fa-check\" *ngIf=\"!isSaving\"></i>\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n</div>\n", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.LoadingComponent, selector: "mj-loading", inputs: ["text", "showText", "animationDuration", "size", "textColor", "logoColor", "logoGradient", "animation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialCategoryEditPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
217
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: CredentialCategoryEditPanelComponent, isStandalone: false, selector: "mj-credential-category-edit-panel", inputs: { category: "category", isOpen: "isOpen" }, outputs: { close: "close", saved: "saved", deleted: "deleted" }, 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]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @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: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2.LoadingComponent, selector: "mj-loading", inputs: ["text", "showText", "animationDuration", "size", "textColor", "logoColor", "logoGradient", "animation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
222
218
|
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CredentialCategoryEditPanelComponent, decorators: [{
|
|
224
220
|
type: Component,
|
|
225
|
-
args: [{ selector: 'mj-credential-category-edit-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"panel-backdrop\" *ngIf=\"isOpen\" (click)=\"onBackdropClick($event)\">\n <div class=\"edit-panel\" [class.open]=\"isOpen\">\n <!-- Panel Header -->\n <div class=\"panel-header\">\n <div class=\"header-content\">\n <div class=\"header-icon\" [style.backgroundColor]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n <span class=\"header-subtitle\" *ngIf=\"parentId\">\n Under: {{getParentPath(parentId)}}\n </span>\n <span class=\"header-subtitle\" *ngIf=\"!parentId\">Root category</span>\n </div>\n </div>\n <button class=\"close-btn\" (click)=\"closePanel()\" [disabled]=\"isSaving\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <!-- Panel Body -->\n <div class=\"panel-body\">\n <mj-loading *ngIf=\"isLoading\" text=\"Loading...\"></mj-loading>\n\n <form *ngIf=\"!isLoading\" class=\"category-form\" (submit)=\"$event.preventDefault(); save()\">\n <!-- Basic Info Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryName\" class=\"required\">Name</label>\n <input\n type=\"text\"\n id=\"categoryName\"\n name=\"categoryName\"\n [(ngModel)]=\"name\"\n placeholder=\"e.g., Production, Development, API Keys\"\n [disabled]=\"isSaving\"\n required\n />\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryParent\">Parent Category</label>\n <select\n id=\"categoryParent\"\n name=\"categoryParent\"\n [(ngModel)]=\"parentId\"\n [disabled]=\"isSaving\"\n >\n <option [ngValue]=\"''\">No parent (root category)</option>\n <option *ngFor=\"let cat of availableParentCategories\" [ngValue]=\"cat.ID\">\n {{getParentPath(cat.ID)}}\n </option>\n </select>\n <span class=\"field-hint\">Select a parent to create a subcategory</span>\n </div>\n\n <div class=\"form-group\">\n <label for=\"categoryDescription\">Description</label>\n <textarea\n id=\"categoryDescription\"\n name=\"categoryDescription\"\n [(ngModel)]=\"description\"\n placeholder=\"Optional description of this category...\"\n rows=\"3\"\n [disabled]=\"isSaving\"\n ></textarea>\n </div>\n </div>\n\n <!-- Icon Section -->\n <div class=\"form-section\">\n <h3 class=\"section-title\">\n <i class=\"fa-solid fa-icons\"></i>\n Icon\n </h3>\n\n <div class=\"form-group\">\n <label for=\"categoryIcon\">Custom Icon Class</label>\n <input\n type=\"text\"\n id=\"categoryIcon\"\n name=\"categoryIcon\"\n [(ngModel)]=\"iconClass\"\n placeholder=\"e.g., fa-solid fa-folder\"\n [disabled]=\"isSaving\"\n />\n <span class=\"field-hint\">Font Awesome icon class</span>\n </div>\n\n <div class=\"icon-suggestions\">\n <p class=\"suggestions-label\">Quick pick:</p>\n <div class=\"icon-grid\">\n <button\n type=\"button\"\n class=\"icon-btn\"\n *ngFor=\"let suggestion of iconSuggestions\"\n [class.selected]=\"iconClass === suggestion.icon\"\n (click)=\"selectIcon(suggestion.icon)\"\n [disabled]=\"isSaving\"\n [title]=\"suggestion.label\"\n >\n <i [class]=\"suggestion.icon\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"icon-preview\" *ngIf=\"iconClass\">\n <div class=\"preview-label\">Preview:</div>\n <div class=\"preview-icon\">\n <i [class]=\"iconClass\"></i>\n </div>\n </div>\n </div>\n </form>\n </div>\n\n <!-- Panel Footer -->\n <div class=\"panel-footer\">\n <div class=\"footer-left\">\n <button\n class=\"btn-delete\"\n *ngIf=\"!isNew\"\n (click)=\"deleteCategory()\"\n [disabled]=\"isSaving\"\n >\n <i class=\"fa-solid fa-trash\"></i>\n <span>Delete</span>\n </button>\n </div>\n <div class=\"footer-right\">\n <button\n class=\"btn-secondary\"\n (click)=\"closePanel()\"\n [disabled]=\"isSaving\"\n >\n Cancel\n </button>\n <button\n class=\"btn-primary\"\n (click)=\"save()\"\n [disabled]=\"isSaving || !canSave\"\n >\n <i class=\"fa-solid fa-spinner fa-spin\" *ngIf=\"isSaving\"></i>\n <i class=\"fa-solid fa-check\" *ngIf=\"!isSaving\"></i>\n <span>{{isNew ? 'Create' : 'Save'}}</span>\n </button>\n </div>\n </div>\n </div>\n</div>\n", styles: ["/* Panel Backdrop */\n.panel-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n/* Slide-in Panel */\n.edit-panel {\n width: 100%;\n max-width: 500px;\n height: 100%;\n background: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"] }]
|
|
221
|
+
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]=\"'#6366f1' + '15'\" [style.color]=\"'#6366f1'\">\n <i [class]=\"iconClass || 'fa-solid fa-folder'\"></i>\n </div>\n <div class=\"header-text\">\n <h2>{{panelTitle}}</h2>\n @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: #ffffff;\n display: flex;\n flex-direction: column;\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);\n transform: translateX(100%);\n animation: slideIn 0.3s ease-out forwards;\n}\n\n@keyframes slideIn {\n from { transform: translateX(100%); }\n to { transform: translateX(0); }\n}\n\n/* Panel Header */\n.panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid #e5e7eb;\n background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);\n}\n\n.header-content {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.header-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n flex-shrink: 0;\n}\n\n.header-text h2 {\n font-size: 18px;\n font-weight: 600;\n color: #1e293b;\n margin: 0 0 4px 0;\n}\n\n.header-subtitle {\n font-size: 13px;\n color: #64748b;\n}\n\n.close-btn {\n width: 36px;\n height: 36px;\n border: none;\n background: #f1f5f9;\n border-radius: 8px;\n cursor: pointer;\n color: #64748b;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n}\n\n.close-btn:hover:not(:disabled) {\n background: #e2e8f0;\n color: #334155;\n}\n\n.close-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Panel Body */\n.panel-body {\n flex: 1;\n overflow-y: auto;\n padding: 24px;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 28px;\n}\n\n.form-section:last-child {\n margin-bottom: 0;\n}\n\n.section-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n font-weight: 600;\n color: #334155;\n margin: 0 0 16px 0;\n padding-bottom: 10px;\n border-bottom: 1px solid #f1f5f9;\n}\n\n.section-title i {\n color: #6366f1;\n font-size: 14px;\n}\n\n/* Form Groups */\n.form-group {\n margin-bottom: 18px;\n}\n\n.form-group:last-child {\n margin-bottom: 0;\n}\n\n.form-group label {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: #475569;\n margin-bottom: 6px;\n}\n\n.form-group label.required::after {\n content: '*';\n color: #ef4444;\n margin-left: 4px;\n}\n\n.form-group input[type=\"text\"],\n.form-group select,\n.form-group textarea {\n width: 100%;\n padding: 10px 14px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n color: #1e293b;\n background: #ffffff;\n transition: all 0.15s ease;\n box-sizing: border-box;\n}\n\n.form-group input:focus,\n.form-group select:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n}\n\n.form-group input:disabled,\n.form-group select:disabled,\n.form-group textarea:disabled {\n background: #f8fafc;\n color: #94a3b8;\n cursor: not-allowed;\n}\n\n.form-group textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.form-group select {\n cursor: pointer;\n}\n\n.field-hint {\n display: block;\n font-size: 12px;\n color: #94a3b8;\n margin-top: 5px;\n}\n\n/* Icon Suggestions */\n.icon-suggestions {\n margin-top: 16px;\n}\n\n.suggestions-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n margin: 0 0 10px 0;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n.icon-btn {\n width: 100%;\n aspect-ratio: 1;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n background: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n color: #64748b;\n transition: all 0.15s ease;\n}\n\n.icon-btn:hover:not(:disabled) {\n border-color: #6366f1;\n color: #6366f1;\n background: #f0f1ff;\n}\n\n.icon-btn.selected {\n border-color: #6366f1;\n background: #6366f1;\n color: #ffffff;\n}\n\n.icon-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Icon Preview */\n.icon-preview {\n margin-top: 16px;\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.preview-label {\n font-size: 12px;\n font-weight: 500;\n color: #64748b;\n}\n\n.preview-icon {\n width: 48px;\n height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 20px;\n box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);\n}\n\n/* Panel Footer */\n.panel-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 24px;\n border-top: 1px solid #e5e7eb;\n background: #f8fafc;\n}\n\n.footer-left,\n.footer-right {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.btn-primary,\n.btn-secondary,\n.btn-delete {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.btn-primary {\n background: #6366f1;\n color: #ffffff;\n}\n\n.btn-primary:hover:not(:disabled) {\n background: #4f46e5;\n}\n\n.btn-primary:disabled {\n background: #c7d2fe;\n cursor: not-allowed;\n}\n\n.btn-secondary {\n background: #ffffff;\n color: #475569;\n border: 1px solid #d1d5db;\n}\n\n.btn-secondary:hover:not(:disabled) {\n background: #f1f5f9;\n border-color: #94a3b8;\n}\n\n.btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn-delete {\n background: transparent;\n color: #dc2626;\n padding: 10px 16px;\n}\n\n.btn-delete:hover:not(:disabled) {\n background: #fef2f2;\n}\n\n.btn-delete:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .edit-panel {\n max-width: 100%;\n }\n\n .panel-header {\n padding: 16px 20px;\n }\n\n .header-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .header-text h2 {\n font-size: 16px;\n }\n\n .panel-body {\n padding: 20px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n\n .panel-footer {\n padding: 14px 20px;\n flex-direction: column-reverse;\n gap: 12px;\n }\n\n .footer-left,\n .footer-right {\n width: 100%;\n }\n\n .footer-right {\n flex-direction: row;\n }\n\n .footer-right .btn-primary,\n .footer-right .btn-secondary {\n flex: 1;\n justify-content: center;\n }\n\n .btn-delete {\n width: 100%;\n justify-content: center;\n background: #fef2f2;\n }\n}\n\n@media (max-width: 480px) {\n .panel-header {\n padding: 14px 16px;\n }\n\n .header-content {\n gap: 12px;\n }\n\n .header-icon {\n width: 36px;\n height: 36px;\n font-size: 16px;\n border-radius: 10px;\n }\n\n .header-text h2 {\n font-size: 15px;\n }\n\n .header-subtitle {\n font-size: 12px;\n }\n\n .panel-body {\n padding: 16px;\n }\n\n .icon-grid {\n grid-template-columns: repeat(4, 1fr);\n gap: 6px;\n }\n\n .icon-btn {\n font-size: 14px;\n }\n\n .preview-icon {\n width: 40px;\n height: 40px;\n font-size: 18px;\n }\n\n .panel-footer {\n padding: 12px 16px;\n }\n\n .btn-primary,\n .btn-secondary {\n padding: 10px 16px;\n font-size: 13px;\n }\n}\n\n/* Custom scrollbar */\n.panel-body::-webkit-scrollbar {\n width: 6px;\n}\n\n.panel-body::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.panel-body::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 3px;\n}\n\n.panel-body::-webkit-scrollbar-thumb:hover {\n background: #94a3b8;\n}\n\n/* Animations */\n@keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n.fa-spin {\n animation: spin 1s linear infinite;\n}\n"] }]
|
|
226
222
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { category: [{
|
|
227
223
|
type: Input
|
|
228
224
|
}], isOpen: [{
|
|
@@ -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/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,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC
|
|
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,uBA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CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACtG,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;uGAjQQ,oCAAoC;2FAApC,oCAAoC,mNCZjD,soMAsKA;;2FD1Ja,oCAAoC;kBAPhD,SAAS;iCACI,KAAK,YACL,mCAAmC,mBAG5B,uBAAuB,CAAC,MAAM;;sBAG9C,KAAK;;sBACL,KAAK;;sBAEL,MAAM;;sBACN,MAAM;;sBACN,MAAM"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { CredentialEntity, CredentialTypeEntity, CredentialCategoryEntity } from '@memberjunction/core-entities';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function LoadCredentialEditPanel(): void;
|
|
5
4
|
interface FieldSchemaProperty {
|
|
6
5
|
name: string;
|
|
7
6
|
type: string;
|
|
@@ -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,gBAAgB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;AAIjH,
|
|
1
|
+
{"version":3,"file":"credential-edit-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/credential-edit-panel/credential-edit-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,iBAAiB,EAA2B,MAAM,EAAE,SAAS,EAAgB,MAAM,eAAe,CAAC;AACpJ,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,C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