@flusys/ng-email 4.1.1 → 5.0.1

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.
@@ -6,226 +6,130 @@ import { ApiResourceService, permissionGuard, EMAIL_TEMPLATE_PERMISSIONS, EMAIL_
6
6
  import { RouterOutlet, RouterLink, RouterLinkActive } from '@angular/router';
7
7
 
8
8
  const EMAIL_MESSAGES = {
9
- // Container
9
+ // Email config CRUD (API keys)
10
+ 'email.config.create.success': 'Email configuration created successfully',
11
+ 'email.config.create.many.success': '{{count}} email configurations created successfully',
12
+ 'email.config.get.success': 'Email configuration retrieved successfully',
13
+ 'email.config.get.all.success': 'Email configurations retrieved successfully',
14
+ 'email.config.get.by.ids.success': 'Email configurations retrieved successfully by Ids',
15
+ 'email.config.get.by.filter.success': 'Email configurations retrieved successfully by filter',
16
+ 'email.config.update.success': 'Email configuration updated successfully',
17
+ 'email.config.update.many.success': '{{count}} email configurations updated successfully',
18
+ 'email.config.delete.success': 'Email configuration deleted successfully',
19
+ 'email.config.restore.success': 'Email configuration restored successfully',
20
+ // Email template CRUD (API keys)
21
+ 'email.template.create.success': 'Email template created successfully',
22
+ 'email.template.update.success': 'Email template updated successfully',
23
+ 'email.template.delete.success': 'Email template deleted successfully',
24
+ 'email.template.get.success': 'Email template retrieved successfully',
25
+ 'email.template.get.by.ids.success': 'Email templates retrieved successfully by Ids',
26
+ 'email.template.get.by.filter.success': 'Email templates retrieved successfully by filter',
27
+ 'email.template.get.all.success': 'Email templates retrieved successfully',
28
+ 'email.template.create.many.success': '{{count}} email templates created successfully',
29
+ 'email.template.update.many.success': '{{count}} email templates updated successfully',
30
+ 'email.template.restore.success': 'Email template restored successfully',
31
+ 'email.template.not.found': 'Email template not found',
32
+ // Email send (API keys)
33
+ 'email.send.success': 'Email sent successfully',
34
+ 'email.send.failed': 'Failed to send email',
35
+ 'email.send.config.not.found': 'Email configuration not found',
36
+ 'email.send.config.inactive': 'Email configuration is inactive',
37
+ 'email.send.config.default.not.found': 'Default email configuration not found',
38
+ 'email.send.template.not.found': 'Email template not found',
39
+ 'email.send.template.inactive': 'Email template is inactive',
40
+ 'email.send.template.id.or.slug.required': 'Template ID or slug is required',
41
+ // email-schema.interface.ts
42
+ 'email.template.untitled': 'Untitled Template',
43
+ 'email.section.header': 'Header',
44
+ 'email.section.body': 'Body',
45
+ 'email.section.footer': 'Footer',
46
+ // email-container.component.ts
10
47
  'email.title': 'Email Management',
11
48
  'email.subtitle': 'Manage email configurations and templates',
12
- // Tabs
13
- 'email.tabs.configs': 'Configurations',
14
- 'email.tabs.templates': 'Templates',
15
- // Email config UI
49
+ 'email.template.title': 'Email Templates',
16
50
  'email.config.title': 'Email Configurations',
17
- 'email.config.new.title': 'New Email Configuration',
51
+ // email-config-form.component.ts
18
52
  'email.config.edit.title': 'Edit Email Configuration',
53
+ 'email.config.new.title': 'New Email Configuration',
19
54
  'email.config.name': 'Configuration Name',
55
+ 'email.config.name.example': 'e.g., Production SMTP',
20
56
  'email.config.provider': 'Provider',
57
+ 'email.config.select.provider': 'Select provider',
21
58
  'email.config.from.email': 'From Email',
59
+ 'email.config.from.email.example': 'noreply@example.com',
22
60
  'email.config.from.name': 'From Name',
61
+ 'email.config.from.name.example': 'Your App Name',
23
62
  'email.config.set.as.default': 'Set as Default',
24
63
  'email.config.smtp.settings': 'SMTP Settings',
25
64
  'email.config.smtp.host': 'SMTP Host',
65
+ 'email.config.smtp.host.example': 'smtp.gmail.com',
26
66
  'email.config.port': 'Port',
67
+ 'email.config.smtp.port.example': '587',
27
68
  'email.config.username': 'Username',
69
+ 'email.config.smtp.user.example': 'user@gmail.com',
28
70
  'email.config.password': 'Password',
71
+ 'email.config.smtp.password.example': 'App password',
29
72
  'email.config.use.ssl.tls': 'Use SSL/TLS',
30
73
  'email.config.sendgrid.settings': 'SendGrid Settings',
31
74
  'email.config.api.key': 'API Key',
75
+ 'email.config.api.key.example': 'API Key',
32
76
  'email.config.mailgun.settings': 'Mailgun Settings',
33
77
  'email.config.domain': 'Domain',
78
+ 'email.config.domain.example': 'mg.example.com',
34
79
  'email.config.region': 'Region',
80
+ 'email.config.select.region': 'Select region',
81
+ 'email.provider.smtp': 'SMTP',
82
+ 'email.provider.sendgrid': 'SendGrid',
83
+ 'email.provider.mailgun': 'Mailgun',
84
+ 'email.region.us': 'US',
85
+ 'email.region.eu': 'EU',
86
+ // email-config-list.component.ts
35
87
  'email.config.new': 'New Configuration',
36
88
  'email.config.empty': 'No email configurations found',
37
89
  'email.config.test.dialog.title': 'Test Email Configuration',
38
- 'email.config.test.dialog.hint': 'A test email will be sent to verify the configuration',
39
90
  'email.config.configuration': 'Configuration',
40
91
  'email.config.recipient.email': 'Recipient Email',
92
+ 'email.recipient.example': 'recipient@example.com',
93
+ 'email.config.test.dialog.hint': 'A test email will be sent to verify the configuration',
41
94
  'email.config.send.test': 'Send Test',
42
- 'email.config.delete.title': 'Delete Configuration',
43
- 'email.config.delete.confirm': 'Are you sure you want to delete "{{name}}"?',
44
- 'email.config.load.failed': 'Failed to load email configurations',
45
- 'email.config.deleted': 'Email configuration deleted successfully',
46
- 'email.config.delete.failed': 'Failed to delete email configuration',
47
- 'email.config.created': 'Email configuration created successfully',
48
- 'email.config.create.failed': 'Failed to create email configuration',
49
- 'email.config.updated': 'Email configuration updated successfully',
50
- 'email.config.update.failed': 'Failed to update email configuration',
51
95
  'email.config.enter.recipient': 'Please enter a recipient email address',
52
- 'email.config.test.sent.success': 'Test email sent successfully (Message ID: {{messageId}})',
53
- 'email.config.test.sent.failed': 'Failed to send test email',
54
- // Email template UI
55
- 'email.template.title': 'Email Templates',
56
- 'email.template.new.title': 'New Email Template',
96
+ 'email.config.delete.title': 'Delete Configuration',
97
+ 'email.config.test': 'Test Configuration',
98
+ // template-form.component.ts
57
99
  'email.template.edit.title': 'Edit Email Template',
100
+ 'email.template.new.title': 'New Email Template',
58
101
  'email.template.name': 'Template Name',
102
+ 'email.template.name.example': 'e.g., Welcome Email',
59
103
  'email.template.slug': 'Slug',
104
+ 'email.template.slug.example': 'e.g., welcome-email',
60
105
  'email.template.subject': 'Subject',
106
+ 'email.template.subject.example': 'Enter email subject',
107
+ 'email.template.variable.hint': 'Use {{variableName}} for dynamic content',
108
+ 'email.template.desc': 'Description',
109
+ 'email.template.desc.placeholder': 'Brief description of the template',
61
110
  'email.template.content': 'Content',
111
+ 'email.template.html': 'HTML',
62
112
  'email.template.plain.text': 'Plain Text',
113
+ 'email.template.html.placeholder': 'Enter HTML content',
114
+ 'email.template.text': 'Text',
115
+ 'email.template.text.placeholder': 'Enter plain text content',
116
+ 'email.template.plain.text.hint': 'Plain text is used for email clients that do not support HTML',
117
+ 'email.template.preview': 'Preview',
118
+ 'email.template.live.preview': 'Live Preview',
119
+ 'email.template.enter.html.preview': 'Enter HTML content to see preview',
120
+ 'email.template.default.content': 'Enter your email content here...',
121
+ // template-list.component.ts
63
122
  'email.template.new': 'New Template',
123
+ 'email.template.test.send': 'Send Test Email',
64
124
  'email.template.empty': 'No email templates found',
65
125
  'email.template.test.dialog.title': 'Test Email Template',
66
- 'email.template.send.test': 'Send Test',
67
- 'email.template.delete.title': 'Delete Template',
68
- 'email.template.delete.confirm': 'Are you sure you want to delete "{{name}}"?',
69
- 'email.template.load.failed': 'Failed to load email templates',
70
- 'email.template.deleted': 'Email template deleted successfully',
71
- 'email.template.delete.failed': 'Failed to delete email template',
72
- 'email.template.created': 'Email template created successfully',
73
- 'email.template.create.failed': 'Failed to create email template',
74
- 'email.template.updated': 'Email template updated successfully',
75
- 'email.template.update.failed': 'Failed to update email template',
76
126
  'email.template.template': 'Template',
77
127
  'email.template.email.config': 'Email Configuration',
78
128
  'email.template.select.config': 'Select a configuration',
79
- 'email.template.select.config.and.recipient': 'Please select an email configuration and enter a recipient',
80
- 'email.template.test.sent.success': 'Test email sent successfully (Message ID: {{messageId}})',
81
- 'email.template.test.sent.failed': 'Failed to send test email',
82
- 'email.template.test.send': 'Send Test Email',
83
- 'email.template.text': 'Text',
84
- 'email.template.variable.hint': 'Use {{variableName}} for dynamic content',
85
- 'email.template.plain.text.hint': 'Plain text is used for email clients that do not support HTML',
86
- 'email.template.live.preview': 'Live Preview',
87
- 'email.template.enter.html.preview': 'Enter HTML content to see preview',
88
129
  'email.template.variables': 'Template Variables',
89
130
  'email.template.enter.value.for': 'Enter value for {{variable}}',
90
- 'email.template.body': 'Body',
91
- 'email.template.preview': 'Preview',
92
- 'email.template.create': 'Create Template',
93
- 'email.template.edit': 'Edit Template',
94
- 'email.template.test': 'Send Test Email',
95
- // Form validation
96
- 'email.template.validation.name.required': 'Template name is required',
97
- 'email.template.validation.slug.required': 'Slug is required',
98
- 'email.template.validation.subject.required': 'Subject is required',
99
- 'email.config.validation.name.required': 'Configuration name is required',
100
- 'email.config.validation.provider.required': 'Provider is required',
101
- // Form placeholders
102
- 'email.config.placeholder.name': 'e.g., Production SMTP',
103
- 'email.config.placeholder.select.provider': 'Select provider',
104
- 'email.config.placeholder.from.email': 'noreply@example.com',
105
- 'email.config.placeholder.from.name': 'Your App Name',
106
- 'email.config.placeholder.smtp.host': 'smtp.gmail.com',
107
- 'email.config.placeholder.port': '587',
108
- 'email.config.placeholder.username': 'user@gmail.com',
109
- 'email.config.placeholder.password': 'App password',
110
- 'email.config.placeholder.api.key': 'API Key',
111
- 'email.config.placeholder.domain': 'mg.example.com',
112
- 'email.config.placeholder.select.region': 'Select region',
113
- 'email.config.placeholder.recipient': 'recipient@example.com',
114
- 'email.template.placeholder.name': 'e.g., Welcome Email',
115
- 'email.template.placeholder.slug': 'e.g., welcome-email',
116
- 'email.template.placeholder.description': 'Brief description of the template',
117
- 'email.template.placeholder.plain.text': 'Enter plain text content for email clients that do not support HTML',
118
- 'email.template.placeholder.recipient': 'recipient@example.com',
119
- 'email.template.html': 'HTML',
120
- // Email template CRUD (API keys)
121
- 'email.template.create.success': 'Email template created successfully',
122
- 'email.template.update.success': 'Email template updated successfully',
123
- 'email.template.delete.success': 'Email template deleted successfully',
124
- 'email.template.get.success': 'Email template retrieved successfully',
125
- 'email.template.get.all.success': 'Email templates retrieved successfully',
126
- 'email.template.create.many.success': '{{count}} email templates created successfully',
127
- 'email.template.update.many.success': '{{count}} email templates updated successfully',
128
- 'email.template.restore.success': 'Email template restored successfully',
129
- 'email.template.not.found': 'Email template not found',
130
- 'email.template.preview.success': 'Email template preview generated successfully',
131
- // Email provider
132
- 'email.provider.title': 'Email Providers',
133
- 'email.provider.name': 'Provider Name',
134
- 'email.provider.type': 'Provider Type',
135
- 'email.provider.host': 'SMTP Host',
136
- 'email.provider.port': 'Port',
137
- 'email.provider.username': 'Username',
138
- 'email.provider.password': 'Password',
139
- 'email.provider.from.email': 'From Email',
140
- 'email.provider.from.name': 'From Name',
141
- 'email.provider.encryption': 'Encryption',
142
- 'email.provider.test.connection': 'Test Connection',
143
- 'email.provider.connection.success': 'Connection successful',
144
- 'email.provider.connection.failed': 'Connection failed',
145
- 'email.provider.create.success': 'Email provider created successfully',
146
- 'email.provider.update.success': 'Email provider updated successfully',
147
- 'email.provider.delete.success': 'Email provider deleted successfully',
148
- // Sending emails
149
- 'email.send.title': 'Send Email',
150
- 'email.send.to': 'To',
151
- 'email.send.cc': 'CC',
152
- 'email.send.bcc': 'BCC',
153
- 'email.send.subject': 'Subject',
154
- 'email.send.body': 'Message',
155
- 'email.send.attachments': 'Attachments',
156
- 'email.send.success': 'Email sent successfully',
157
- 'email.send.failed': 'Failed to send email',
158
- 'email.send.sending': 'Sending email...',
159
- // Email logs
160
- 'email.log.title': 'Email Logs',
161
- 'email.log.recipient': 'Recipient',
162
- 'email.log.status': 'Status',
163
- 'email.log.sent.at': 'Sent At',
164
- 'email.log.delivered': 'Delivered',
165
- 'email.log.failed': 'Failed',
166
- 'email.log.pending': 'Pending',
167
- 'email.log.opened': 'Opened',
168
- 'email.log.clicked': 'Clicked',
169
- 'email.log.bounced': 'Bounced',
170
- // Email config CRUD (API keys)
171
- 'email.config.create.success': 'Email configuration created successfully',
172
- 'email.config.create.many.success': '{{count}} email configurations created successfully',
173
- 'email.config.get.success': 'Email configuration retrieved successfully',
174
- 'email.config.get.all.success': 'Email configurations retrieved successfully',
175
- 'email.config.update.success': 'Email configuration updated successfully',
176
- 'email.config.update.many.success': '{{count}} email configurations updated successfully',
177
- 'email.config.delete.success': 'Email configuration deleted successfully',
178
- 'email.config.restore.success': 'Email configuration restored successfully',
179
- 'email.config.not.found': 'Email configuration not found',
180
- 'email.config.active.success': 'Active email configuration retrieved successfully',
181
- 'email.config.test.success': 'Email configuration test successful',
182
- 'email.config.test.failed': 'Email configuration test failed',
183
- // Email send (API keys)
184
- 'email.send.queued': 'Email queued for sending',
185
- 'email.send.template.success': 'Template email sent successfully',
186
- 'email.send.bulk.success': 'Bulk emails sent successfully',
187
- 'email.send.test.success': 'Test email sent successfully',
188
- 'email.send.config.not.found': 'Email configuration not found',
189
- 'email.send.config.inactive': 'Email configuration is inactive',
190
- 'email.send.config.default.not.found': 'Default email configuration not found',
191
- 'email.send.template.not.found': 'Email template not found',
192
- 'email.send.template.inactive': 'Email template is inactive',
193
- 'email.send.template.id.or.slug.required': 'Template ID or slug is required',
194
- // Additional placeholder keys (dot-case)
195
- 'email.config.name.example': 'e.g., Production SMTP',
196
- 'email.config.select.provider': 'Select provider',
197
- 'email.config.from.email.example': 'noreply@example.com',
198
- 'email.config.from.name.example': 'Your App Name',
199
- 'email.config.smtp.host.example': 'smtp.gmail.com',
200
- 'email.config.smtp.port.example': '587',
201
- 'email.config.smtp.user.example': 'user@gmail.com',
202
- 'email.config.smtp.password.example': 'App password',
203
- 'email.config.sendgrid.api.key.example': 'API Key',
204
- 'email.config.mailgun.api.key.example': 'API Key',
205
- 'email.config.mailgun.domain.example': 'mg.example.com',
206
- 'email.config.select.region': 'Select region',
207
- 'email.recipient.example': 'recipient@example.com',
208
- 'email.template.name.example': 'e.g., Welcome Email',
209
- 'email.template.slug.example': 'e.g., welcome-email',
210
- 'email.template.subject.example': 'Enter email subject',
211
- 'email.template.desc.placeholder': 'Brief description of the template',
212
- 'email.template.html.placeholder': 'Enter HTML content',
213
- 'email.template.text.placeholder': 'Enter plain text content',
214
- // Provider translation keys (singular - for labels)
215
- 'email.provider.smtp': 'SMTP',
216
- 'email.provider.sendgrid': 'SendGrid',
217
- 'email.provider.mailgun': 'Mailgun',
218
- // Provider translation keys (plural - for dynamic lookups)
219
- 'email.providers.smtp': 'SMTP',
220
- 'email.providers.sendgrid': 'SendGrid',
221
- 'email.providers.mailgun': 'Mailgun',
222
- // Region translation keys
223
- 'email.region.us': 'US',
224
- 'email.region.eu': 'EU',
225
- // Template keys
226
- 'email.template.default.content': 'Enter your email content here...',
227
- // Common aliases used by email components
228
- 'common.fill.required.fields': 'Please fill in all required fields',
131
+ 'email.template.select.config.and.recipient': 'Please select an email configuration and enter a recipient',
132
+ 'email.template.delete.title': 'Delete Template',
229
133
  };
230
134
 
231
135
  /**
@@ -681,17 +585,17 @@ const EMAIL_ROUTES = [
681
585
  children: [
682
586
  {
683
587
  path: '',
684
- loadComponent: () => import('./flusys-ng-email-template-list.component-0PJxS33a.mjs').then((m) => m.TemplateListComponent),
588
+ loadComponent: () => import('./flusys-ng-email-template-list.component-DrtU0xLq.mjs').then((m) => m.TemplateListComponent),
685
589
  },
686
590
  {
687
591
  path: 'new',
688
592
  canActivate: [permissionGuard(EMAIL_TEMPLATE_PERMISSIONS.CREATE)],
689
- loadComponent: () => import('./flusys-ng-email-template-form.component-B2vIO6ow.mjs').then((m) => m.TemplateFormComponent),
593
+ loadComponent: () => import('./flusys-ng-email-template-form.component-SbeCuxm5.mjs').then((m) => m.TemplateFormComponent),
690
594
  },
691
595
  {
692
596
  path: ':id',
693
597
  canActivate: [permissionGuard(EMAIL_TEMPLATE_PERMISSIONS.UPDATE)],
694
- loadComponent: () => import('./flusys-ng-email-template-form.component-B2vIO6ow.mjs').then((m) => m.TemplateFormComponent),
598
+ loadComponent: () => import('./flusys-ng-email-template-form.component-SbeCuxm5.mjs').then((m) => m.TemplateFormComponent),
695
599
  },
696
600
  ],
697
601
  },
@@ -702,17 +606,17 @@ const EMAIL_ROUTES = [
702
606
  children: [
703
607
  {
704
608
  path: '',
705
- loadComponent: () => import('./flusys-ng-email-email-config-list.component-oznfQvxo.mjs').then((m) => m.EmailConfigListComponent),
609
+ loadComponent: () => import('./flusys-ng-email-email-config-list.component-DorIeenX.mjs').then((m) => m.EmailConfigListComponent),
706
610
  },
707
611
  {
708
612
  path: 'new',
709
613
  canActivate: [permissionGuard(EMAIL_CONFIG_PERMISSIONS.CREATE)],
710
- loadComponent: () => import('./flusys-ng-email-email-config-form.component-Cj2U6Tgf.mjs').then((m) => m.EmailConfigFormComponent),
614
+ loadComponent: () => import('./flusys-ng-email-email-config-form.component-M0g9fxU1.mjs').then((m) => m.EmailConfigFormComponent),
711
615
  },
712
616
  {
713
617
  path: ':id',
714
618
  canActivate: [permissionGuard(EMAIL_CONFIG_PERMISSIONS.UPDATE)],
715
- loadComponent: () => import('./flusys-ng-email-email-config-form.component-Cj2U6Tgf.mjs').then((m) => m.EmailConfigFormComponent),
619
+ loadComponent: () => import('./flusys-ng-email-email-config-form.component-M0g9fxU1.mjs').then((m) => m.EmailConfigFormComponent),
716
620
  },
717
621
  ],
718
622
  },