@tmllak-erp/hr 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/components/HrStatusBadge.d.ts +9 -0
  2. package/dist/components/HrStatusBadge.js +9 -0
  3. package/dist/components/HrStatusBadge.js.map +1 -0
  4. package/dist/components/attendance/Attendance.d.ts +84 -0
  5. package/dist/components/attendance/Attendance.js +92 -0
  6. package/dist/components/attendance/Attendance.js.map +1 -0
  7. package/dist/components/attendance/attendance.css +95 -0
  8. package/dist/components/employee/Employee.d.ts +61 -0
  9. package/dist/components/employee/Employee.js +26 -0
  10. package/dist/components/employee/Employee.js.map +1 -0
  11. package/dist/components/employee/employee.css +147 -0
  12. package/dist/components/filters/Filters.d.ts +37 -0
  13. package/dist/components/filters/Filters.js +20 -0
  14. package/dist/components/filters/Filters.js.map +1 -0
  15. package/dist/components/filters/filters.css +16 -0
  16. package/dist/components/portal/Portal.d.ts +82 -0
  17. package/dist/components/portal/Portal.js +50 -0
  18. package/dist/components/portal/Portal.js.map +1 -0
  19. package/dist/components/portal/portal.css +292 -0
  20. package/dist/components/recruitment/Recruitment.d.ts +68 -0
  21. package/dist/components/recruitment/Recruitment.js +88 -0
  22. package/dist/components/recruitment/Recruitment.js.map +1 -0
  23. package/dist/components/recruitment/recruitment.css +131 -0
  24. package/dist/components/templates/TaskTemplateImport.d.ts +38 -0
  25. package/dist/components/templates/TaskTemplateImport.js +41 -0
  26. package/dist/components/templates/TaskTemplateImport.js.map +1 -0
  27. package/dist/components/templates/templates.css +59 -0
  28. package/dist/components/tickets/Tickets.d.ts +36 -0
  29. package/dist/components/tickets/Tickets.js +20 -0
  30. package/dist/components/tickets/Tickets.js.map +1 -0
  31. package/dist/components/tickets/tickets.css +79 -0
  32. package/dist/copy.d.ts +129 -0
  33. package/dist/copy.en.d.ts +126 -0
  34. package/dist/copy.en.js +100 -0
  35. package/dist/copy.en.js.map +1 -0
  36. package/dist/copy.js +71 -0
  37. package/dist/copy.js.map +1 -0
  38. package/dist/feedback.d.ts +2313 -0
  39. package/dist/feedback.js +7 -0
  40. package/dist/feedback.js.map +1 -0
  41. package/dist/index.d.ts +13 -0
  42. package/dist/index.js +14 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/messages.d.ts +1250 -0
  45. package/dist/messages.js +568 -0
  46. package/dist/messages.js.map +1 -0
  47. package/dist/navigation.d.ts +19 -0
  48. package/dist/navigation.js +124 -0
  49. package/dist/navigation.js.map +1 -0
  50. package/dist/statuses.d.ts +35 -0
  51. package/dist/statuses.js +120 -0
  52. package/dist/statuses.js.map +1 -0
  53. package/package.json +47 -6
  54. package/README.md +0 -3
@@ -0,0 +1,568 @@
1
+ import { buildersFor, defineCatalog } from '@tmllak-erp/messages';
2
+ const { toast, bulk, dialog, info, retired, confirm } = buildersFor('hr');
3
+ export const hrMessages = defineCatalog('hr', [
4
+ // ── Toasts ─────────────────────────────────────────────────────
5
+ toast({ key: 'hr.attendanceDayApproved', category: 'routine', tone: 'success', title: 'تم اعتماد بصمات {day}', description: 'يمكن تعديلها حتى اعتماد الشهر.', params: { day: 'text' }, figma: ['تم اعتماد بصمات اليوم', 'تم اعتماد بصمات يوم أمس'] }),
6
+ toast({ key: 'hr.candidateMovedToScreening', category: 'routine', tone: 'success', title: 'تم نقل {candidateName} إلى مرحلة الفرز', params: { candidateName: 'text' }, figma: ['تم نقل المرشح للفرز'] }),
7
+ toast({ key: 'hr.candidateReturnedToScreening', category: 'routine', tone: 'info', title: 'تمت إعادة {candidateName} إلى مرحلة الفرز', params: { candidateName: 'text' }, figma: ['أُعيد المرشح للفرز'] }),
8
+ toast({ key: 'hr.candidateAccepted', category: 'routine', tone: 'success', title: 'تم قبول {candidateName} للمرحلة التالية', params: { candidateName: 'text' }, figma: ['تم قبول المرشح'] }),
9
+ toast({ key: 'hr.candidateRejected', category: 'routine', tone: 'info', title: 'تم رفض {candidateName}', description: 'لن يُبلَّغ المرشح حتى ترسل رسائل القرار.', params: { candidateName: 'text' }, figma: ['تم رفض المرشح'] }),
10
+ toast({ key: 'hr.assetMaintenanceCompleted', category: 'routine', tone: 'success', title: 'انتهت صيانة {assetName}', description: 'أصبحت حالة العهدة «متاحة».', params: { assetName: 'text' }, figma: ['انتهت الصيانة'] }),
11
+ toast({ key: 'hr.teamLeaderChanged', category: 'routine', tone: 'success', title: 'تغيّر قائد فريق {teamName} إلى {leaderName}', params: { leaderName: 'text', teamName: 'text' }, figma: ['تم تغيير قائد الفريق'] }),
12
+ toast({ key: 'hr.attendanceAlertSent', category: 'communication', tone: 'success', title: 'تم إرسال {alertType} إلى {recipient}', params: { alertType: 'text', recipient: 'text' }, figma: ['تم إرسال تنبيه التأخير', 'تم إرسال تنبيه الغياب والبصمة الناقصة'] }),
13
+ toast({ key: 'hr.attendanceReportSent', category: 'communication', tone: 'success', title: 'أُرسل تقرير البصمات إلى {employeeName}', params: { employeeName: 'text' }, figma: ['تم إرسال تقرير البصمات للموظف'] }),
14
+ toast({ key: 'hr.evaluationSent', category: 'communication', tone: 'success', title: 'تم إرسال {evaluationName} إلى {employeeName}', params: { evaluationName: 'text', employeeName: 'text' }, figma: ['تم إرسال التقييم بنجاح', 'تم إرسال التقييم الأسبوعي'] }),
15
+ toast({ key: 'hr.dataCompletionRequested', category: 'communication', tone: 'success', title: 'تم إرسال طلب استكمال البيانات إلى {employeeName}', description: 'سيصلك إشعار عند الاستكمال.', params: { employeeName: 'text' }, figma: ['تم إرسال طلب استكمال البيانات'] }),
16
+ toast({ key: 'hr.inventoryRequested', category: 'communication', tone: 'success', title: 'تم إرسال طلب الجرد', description: 'إلى المسؤولين عن العهد في {scope}.', params: { scope: 'text' }, figma: ['تم إرسال طلب الجرد'] }),
17
+ toast({ key: 'hr.interviewRescheduleRequested', category: 'communication', tone: 'success', title: 'أُرسل طلب تغيير موعد المقابلة', description: 'إلى {candidateName} لاختيار موعد جديد.', params: { candidateName: 'text' }, figma: ['تم إرسال طلب تغيير الموعد'] }),
18
+ toast({ key: 'hr.pendingRequestsCancelled', category: 'undoable', tone: 'info', title: 'أُلغيت طلباتك التي بانتظار الاعتماد', undo: true, figma: ['تم إلغاء طلباتك المعلّقة'] }),
19
+ bulk({ key: 'hr.interviewsAllConfirmed', tone: 'success', title: 'تم تأكيد {count} من المواعيد', partialTitle: 'تم تأكيد {count} وتعذّر تأكيد {failed}', params: { count: 'number', failed: 'number' }, figma: ['تم تأكيد كل المواعيد'] }),
20
+ bulk({ key: 'hr.candidatesAcceptedForInterview', tone: 'success', title: 'تم قبول {count} من المرشحين للمقابلة', partialTitle: 'تم قبول {count} وتعذّر قبول {failed}', params: { count: 'number', failed: 'number' }, figma: ['تم قبول الكل للمقابلة'] }),
21
+ // ── Confirmations (non-destructive bulk approvals) ─────────────
22
+ confirm({
23
+ key: 'hr.confirmAttendanceApproval',
24
+ intent: 'approval',
25
+ title: 'اعتماد بصمات {period} لكل الموظفين؟',
26
+ description: 'تُغلق بصمات {period} للتعديل بعد الاعتماد، وأي تعديل لاحق يتم عبر طلب «تصحيح بصمة».',
27
+ confirmLabel: 'اعتماد البصمات',
28
+ params: { period: 'text' },
29
+ figma: [],
30
+ }),
31
+ // ── Not success feedback ───────────────────────────────────────
32
+ info({ key: 'hr.penaltyScaleInfo', title: 'سلم الجزاءات حسب اللائحة', body: 'يُعدّل من الإعدادات وفق لائحة تنظيم العمل المعتمدة.', figma: ['سلم الجزاءات حسب اللائحة'] }),
33
+ retired({ key: 'hr.dailyReportSummary', replacement: 'details-drawer', reason: 'ملخص تقرير الموظف محتوى وليس نتيجة إجراء؛ يُعرض في لوحة التفاصيل الجانبية.', figma: ['تقرير عمر القرني اليوم', 'تقرير ياسر الزهراني اليوم'] }),
34
+ // ── Financial dialogs ──────────────────────────────────────────
35
+ dialog({
36
+ key: 'hr.payrollRunCreated',
37
+ category: 'financial',
38
+ tone: 'success',
39
+ title: 'تم إنشاء مسيّر رواتب {month}',
40
+ description: 'حالة المسيّر الآن «مسودة» حتى يُرسل للاعتماد.',
41
+ facts: [
42
+ { label: 'رقم المسيّر', param: 'reference', copyable: true },
43
+ { label: 'عدد الموظفين', param: 'employeeCount' },
44
+ { label: 'إجمالي الصافي (ر.س)', param: 'netTotal' },
45
+ ],
46
+ nextStep: 'راجع الاستثناءات ثم أرسل المسيّر للاعتماد.',
47
+ primaryAction: { label: 'فتح المسيّر' },
48
+ params: { month: 'text', reference: 'reference', employeeCount: 'number', netTotal: 'amount' },
49
+ figma: ['تم إنشاء مسيّر الرواتب بنجاح'],
50
+ }),
51
+ dialog({
52
+ key: 'hr.payrollRunApproved',
53
+ category: 'financial',
54
+ tone: 'success',
55
+ title: 'تم اعتماد مسيّر رواتب {month}',
56
+ description: 'اعتُمد المسيّر نهائيًا، ولا يُعدَّل إلا بإرجاعه للتعديل.',
57
+ facts: [
58
+ { label: 'رقم المسيّر', param: 'reference', copyable: true },
59
+ { label: 'المعتمِد', param: 'approverName' },
60
+ { label: 'إجمالي الصافي (ر.س)', param: 'netTotal' },
61
+ ],
62
+ nextStep: 'ارفع الأجور إلى نظام حماية الأجور، ثم أصدر قسائم الرواتب.',
63
+ primaryAction: { label: 'رفع الأجور' },
64
+ params: { month: 'text', reference: 'reference', approverName: 'text', netTotal: 'amount' },
65
+ figma: ['تم اعتماد مسيّر الرواتب'],
66
+ }),
67
+ dialog({
68
+ key: 'hr.payrollRunReturned',
69
+ category: 'financial',
70
+ tone: 'info',
71
+ title: 'أُعيد مسيّر رواتب {month} للتعديل',
72
+ description: 'وصلت ملاحظاتك إلى {preparerName}، وعادت حالة المسيّر إلى «مسودة».',
73
+ facts: [
74
+ { label: 'رقم المسيّر', param: 'reference', copyable: true },
75
+ { label: 'سبب الإرجاع', param: 'reason' },
76
+ ],
77
+ nextStep: 'سيصلك إشعار عند إعادة إرساله للاعتماد.',
78
+ params: { month: 'text', preparerName: 'text', reference: 'reference', reason: 'text' },
79
+ figma: ['تم إرجاع المسيّر للتعديل'],
80
+ }),
81
+ dialog({
82
+ key: 'hr.salariesApproved',
83
+ category: 'financial',
84
+ tone: 'success',
85
+ title: 'تم اعتماد رواتب {month}',
86
+ description: 'اعتُمدت رواتب الموظفين وأصبحت جاهزة لاعتماد الدفع.',
87
+ facts: [
88
+ { label: 'عدد الموظفين', param: 'employeeCount' },
89
+ { label: 'الإجمالي (ر.س)', param: 'total' },
90
+ ],
91
+ nextStep: 'الخطوة التالية: اعتماد الدفع من صفحة المسيّر.',
92
+ params: { month: 'text', employeeCount: 'number', total: 'amount' },
93
+ figma: ['تم اعتماد الرواتب'],
94
+ }),
95
+ dialog({
96
+ key: 'hr.paymentApproved',
97
+ category: 'financial',
98
+ tone: 'success',
99
+ title: 'تم اعتماد الدفع',
100
+ description: 'اعتُمد صرف رواتب {month} بتاريخ {payDate}.',
101
+ facts: [
102
+ { label: 'رقم أمر الدفع', param: 'reference', copyable: true },
103
+ { label: 'المبلغ (ر.س)', param: 'amount' },
104
+ { label: 'عدد المستفيدين', param: 'employeeCount' },
105
+ ],
106
+ nextStep: 'تُرسل التحويلات إلى البنك، ويُشعَر الموظفون عند الإيداع.',
107
+ params: { month: 'text', payDate: 'date', reference: 'reference', amount: 'amount', employeeCount: 'number' },
108
+ figma: ['تم اعتماد الدفع بنجاح'],
109
+ }),
110
+ dialog({
111
+ key: 'hr.payslipIssued',
112
+ category: 'financial',
113
+ tone: 'success',
114
+ title: 'تم إصدار قسيمة راتب {month}',
115
+ description: 'أصبحت القسيمة متاحة لـ{employeeName} في صفحة «راتبي».',
116
+ facts: [
117
+ { label: 'رقم القسيمة', param: 'reference', copyable: true },
118
+ { label: 'صافي الراتب (ر.س)', param: 'netSalary' },
119
+ ],
120
+ primaryAction: { label: 'تحميل القسيمة' },
121
+ params: { month: 'text', employeeName: 'text', reference: 'reference', netSalary: 'amount' },
122
+ figma: ['تم إصدار قسيمة الراتب'],
123
+ }),
124
+ dialog({
125
+ key: 'hr.payslipsSent',
126
+ category: 'financial',
127
+ tone: 'success',
128
+ title: 'تم إرسال كشوف رواتب {month}',
129
+ description: 'أُرسلت كشوف الرواتب عبر البريد والإشعارات.',
130
+ facts: [
131
+ { label: 'عدد المستلمين', param: 'recipientCount' },
132
+ { label: 'تعذّر الإرسال إلى', param: 'failedCount', optional: true },
133
+ ],
134
+ nextStep: 'يطّلع كل موظف على كشفه من صفحة «راتبي».',
135
+ partial: {
136
+ when: 'failedCount',
137
+ title: 'أُرسلت كشوف رواتب {month} مع تعذّر بعضها',
138
+ nextStep: 'راجع بيانات التواصل للحالات المتعذّرة في سجل الرواتب، ثم أعد إرسال كشوفها.',
139
+ },
140
+ params: { month: 'text', recipientCount: 'number', failedCount: 'number' },
141
+ figma: ['تم إرسال كشوف الرواتب'],
142
+ }),
143
+ dialog({
144
+ key: 'hr.wpsUploadedForEmployee',
145
+ category: 'financial',
146
+ tone: 'success',
147
+ title: 'تم رفع أجر {employeeName} إلى نظام حماية الأجور',
148
+ description: 'استُلم الملف وهو الآن بانتظار المعالجة لدى البنك.',
149
+ facts: [
150
+ { label: 'رقم الملف', param: 'fileId', copyable: true },
151
+ { label: 'الشهر', param: 'month' },
152
+ ],
153
+ nextStep: 'تتحدث الحالة تلقائيًا عند قبول الملف أو رفضه.',
154
+ params: { employeeName: 'text', fileId: 'latin', month: 'text' },
155
+ figma: ['تم رفع الأجر لحماية الأجور'],
156
+ }),
157
+ dialog({
158
+ key: 'hr.wpsUploaded',
159
+ category: 'financial',
160
+ tone: 'success',
161
+ title: 'تم رفع أجور {month} إلى نظام حماية الأجور',
162
+ description: 'استُلم الملف وهو الآن بانتظار المعالجة لدى البنك.',
163
+ facts: [
164
+ { label: 'رقم الملف', param: 'fileId', copyable: true },
165
+ { label: 'عدد السجلات', param: 'recordCount' },
166
+ { label: 'الإجمالي (ر.س)', param: 'total' },
167
+ ],
168
+ nextStep: 'تتحدث الحالة تلقائيًا عند قبول الملف أو رفضه.',
169
+ params: { month: 'text', fileId: 'latin', recordCount: 'number', total: 'amount' },
170
+ figma: ['تم رفع الأجور لحماية الأجور'],
171
+ }),
172
+ dialog({
173
+ key: 'hr.advanceEarlyRepaid',
174
+ category: 'financial',
175
+ tone: 'success',
176
+ title: 'تم تسجيل التسديد المبكر للسلفة',
177
+ description: 'سُدد المتبقي من سلفة {employeeName} وأُغلقت السلفة.',
178
+ facts: [
179
+ { label: 'رقم السلفة', param: 'reference', copyable: true },
180
+ { label: 'المبلغ المسدد (ر.س)', param: 'amount' },
181
+ ],
182
+ nextStep: 'لن تُخصم أقساط هذه السلفة من الرواتب القادمة.',
183
+ params: { employeeName: 'text', reference: 'reference', amount: 'amount' },
184
+ figma: ['تم تسجيل التسديد المبكر'],
185
+ }),
186
+ dialog({
187
+ key: 'hr.deductionCancelled',
188
+ category: 'financial',
189
+ tone: 'info',
190
+ title: 'تم إلغاء الخصم',
191
+ description: 'أُلغي خصم «{deductionType}» على {employeeName} ولن يظهر في مسيّر {month}، وسُجّل الإلغاء في سجل الموظف.',
192
+ facts: [
193
+ { label: 'المبلغ (ر.س)', param: 'amount' },
194
+ { label: 'سبب الإلغاء', param: 'reason' },
195
+ ],
196
+ params: { deductionType: 'text', employeeName: 'text', month: 'text', amount: 'amount', reason: 'text' },
197
+ figma: ['تم إلغاء الخصم'],
198
+ }),
199
+ dialog({
200
+ key: 'hr.quoteSent',
201
+ category: 'financial',
202
+ tone: 'success',
203
+ title: 'تم إرسال عرض السعر',
204
+ description: 'أُرسل العرض إلى {customerName} على البريد الإلكتروني {email}.',
205
+ facts: [
206
+ { label: 'رقم عرض السعر', param: 'quoteNumber', copyable: true },
207
+ { label: 'قيمة العرض (ر.س)', param: 'total' },
208
+ { label: 'صالح حتى', param: 'validUntil' },
209
+ ],
210
+ nextStep: 'تابع رد العميل من صفحة عروض الأسعار.',
211
+ params: { customerName: 'text', email: 'latin', quoteNumber: 'reference', total: 'amount', validUntil: 'date' },
212
+ figma: ['تم إرسال عرض السعر بنجاح'],
213
+ }),
214
+ // ── Legal & official-record dialogs ────────────────────────────
215
+ dialog({
216
+ key: 'hr.violationRecorded',
217
+ category: 'legal',
218
+ tone: 'success',
219
+ title: 'تم تسجيل مخالفة على {employeeName}',
220
+ description: 'سُجّلت مخالفة «{violationType}» وفق لائحة تنظيم العمل.',
221
+ facts: [
222
+ { label: 'رقم المخالفة', param: 'reference', copyable: true },
223
+ { label: 'تاريخ المخالفة', param: 'date' },
224
+ { label: 'الجزاء المقترح', param: 'penalty' },
225
+ ],
226
+ nextStep: 'تُرسل المخالفة للاعتماد قبل إبلاغ الموظف بها.',
227
+ params: { employeeName: 'text', violationType: 'text', reference: 'reference', date: 'date', penalty: 'text' },
228
+ figma: ['تم تسجيل المخالفة'],
229
+ }),
230
+ dialog({
231
+ key: 'hr.violationsApproved',
232
+ category: 'legal',
233
+ tone: 'success',
234
+ title: 'تم اعتماد المخالفات',
235
+ description: 'أصبحت الجزاءات نافذة وأُضيفت إلى سجلات الموظفين.',
236
+ facts: [{ label: 'عدد المخالفات المعتمدة', param: 'count' }],
237
+ nextStep: 'أبلغ الموظفين بالجزاءات ووثّق الإبلاغ.',
238
+ params: { count: 'number' },
239
+ figma: ['تم اعتماد المخالفات'],
240
+ }),
241
+ dialog({
242
+ key: 'hr.violationCancelled',
243
+ category: 'legal',
244
+ tone: 'info',
245
+ title: 'تم إلغاء المخالفة',
246
+ description: 'أُلغيت المخالفة على {employeeName} ولن يترتب عليها جزاء، ويبقى الإلغاء موثقًا في سجل الموظف.',
247
+ facts: [
248
+ { label: 'رقم المخالفة', param: 'reference', copyable: true },
249
+ { label: 'سبب الإلغاء', param: 'reason' },
250
+ ],
251
+ params: { reference: 'reference', employeeName: 'text', reason: 'text' },
252
+ figma: ['تم إلغاء المخالفة'],
253
+ }),
254
+ dialog({
255
+ key: 'hr.pendingViolationsCancelled',
256
+ category: 'legal',
257
+ tone: 'info',
258
+ title: 'أُلغيت المخالفات التي بانتظار الاعتماد',
259
+ description: 'لن تُعتمد هذه المخالفات ولن تُبلَّغ للموظفين.',
260
+ facts: [{ label: 'عدد المخالفات الملغاة', param: 'count' }],
261
+ nextStep: 'تبقى موثقة في سجل المخالفات بحالة «ملغاة».',
262
+ params: { count: 'number' },
263
+ figma: ['تم إلغاء المخالفات المعلّقة'],
264
+ }),
265
+ dialog({
266
+ key: 'hr.warningIssued',
267
+ category: 'legal',
268
+ tone: 'success',
269
+ title: 'تم إرسال إنذار إلى {employeeName}',
270
+ description: 'أُرسل إنذار «{warningLevel}» بخصوص {subject}، ويُطلب من الموظف الإقرار بالاستلام.',
271
+ facts: [
272
+ { label: 'رقم الإنذار', param: 'reference', copyable: true },
273
+ { label: 'التاريخ', param: 'date' },
274
+ ],
275
+ nextStep: 'يُسجَّل الإقرار في ملف الموظف عند اطلاعه.',
276
+ params: { employeeName: 'text', warningLevel: 'text', subject: 'text', reference: 'reference', date: 'date' },
277
+ figma: ['تم إرسال التحذير'],
278
+ }),
279
+ dialog({
280
+ key: 'hr.employeeNotificationConfirmed',
281
+ category: 'legal',
282
+ tone: 'success',
283
+ title: 'تم توثيق إبلاغ {employeeName}',
284
+ description: 'سُجّل إبلاغ الموظف بـ{subject}.',
285
+ facts: [
286
+ { label: 'تاريخ الإبلاغ', param: 'date' },
287
+ { label: 'وسيلة الإبلاغ', param: 'channel' },
288
+ ],
289
+ params: { employeeName: 'text', subject: 'text', date: 'date', channel: 'text' },
290
+ figma: ['تم تأكيد إبلاغ الموظف'],
291
+ }),
292
+ dialog({
293
+ key: 'hr.managementDecisionRecorded',
294
+ category: 'legal',
295
+ tone: 'success',
296
+ title: 'تم تسجيل قرار الإدارة',
297
+ description: 'وُثّق القرار «{decision}» بخصوص {subject}.',
298
+ facts: [{ label: 'رقم القرار', param: 'reference', copyable: true }],
299
+ nextStep: 'يُبلَّغ الأطراف المعنيون عبر الإشعارات.',
300
+ params: { decision: 'text', subject: 'text', reference: 'reference' },
301
+ figma: ['تم تسجيل قرار الإدارة'],
302
+ }),
303
+ dialog({
304
+ key: 'hr.letterIssued',
305
+ category: 'legal',
306
+ tone: 'success',
307
+ title: 'تم إصدار {letterType}',
308
+ description: 'صدر الخطاب باسم {employeeName} موجّهًا إلى {addressee}.',
309
+ facts: [
310
+ { label: 'رقم الخطاب', param: 'reference', copyable: true },
311
+ { label: 'تاريخ الإصدار', param: 'date' },
312
+ ],
313
+ nextStep: 'الخطاب متاح أيضًا للموظف في «مستنداتي».',
314
+ primaryAction: { label: 'تحميل الخطاب' },
315
+ params: { letterType: 'text', employeeName: 'text', addressee: 'text', reference: 'reference', date: 'date' },
316
+ figma: ['تم إصدار الخطاب'],
317
+ }),
318
+ dialog({
319
+ key: 'hr.contractSentForSignature',
320
+ category: 'legal',
321
+ tone: 'success',
322
+ title: 'تم إرسال العقد للتوقيع',
323
+ description: 'أُرسل {contractType} إلى {employeeName} للتوقيع الإلكتروني.',
324
+ facts: [
325
+ { label: 'رقم العقد', param: 'reference', copyable: true },
326
+ { label: 'تاريخ المباشرة', param: 'startDate' },
327
+ ],
328
+ nextStep: 'سيصلك إشعار فور توقيع الموظف.',
329
+ params: { contractType: 'text', employeeName: 'text', reference: 'reference', startDate: 'date' },
330
+ figma: ['تم إرسال العقد للتوقيع'],
331
+ }),
332
+ dialog({
333
+ key: 'hr.signatureRequested',
334
+ category: 'legal',
335
+ tone: 'success',
336
+ title: 'تم إرسال طلب التوقيع',
337
+ description: 'أُرسل «{documentName}» إلى {signerName} للتوقيع.',
338
+ nextStep: 'سيصلك إشعار عند اكتمال التوقيع.',
339
+ params: { documentName: 'text', signerName: 'text' },
340
+ figma: ['تم إرسال طلب التوقيع'],
341
+ }),
342
+ dialog({
343
+ key: 'hr.contractSigned',
344
+ category: 'legal',
345
+ tone: 'success',
346
+ title: 'تم توقيع العقد',
347
+ description: 'اكتمل توقيع {contractType} مع {employeeName}، ويسري العقد من {startDate}.',
348
+ facts: [{ label: 'رقم العقد', param: 'reference', copyable: true }],
349
+ primaryAction: { label: 'تحميل نسخة العقد' },
350
+ params: { contractType: 'text', employeeName: 'text', startDate: 'date', reference: 'reference' },
351
+ figma: ['تم توقيع العقد بنجاح'],
352
+ }),
353
+ dialog({
354
+ key: 'hr.contractRenewalRequested',
355
+ category: 'legal',
356
+ tone: 'success',
357
+ title: 'تم إرسال طلب تجديد العقد',
358
+ description: 'أُرسل طلب تجديد عقد {employeeName} المنتهي في {endDate} إلى {approverName} للاعتماد.',
359
+ facts: [{ label: 'رقم الطلب', param: 'reference', copyable: true }],
360
+ nextStep: 'سيصلك إشعار بقرار الاعتماد.',
361
+ params: { employeeName: 'text', endDate: 'date', approverName: 'text', reference: 'reference' },
362
+ figma: ['تم إرسال طلب تجديد العقد'],
363
+ }),
364
+ dialog({
365
+ key: 'hr.candidateHired',
366
+ category: 'legal',
367
+ tone: 'success',
368
+ title: 'تم توظيف {candidateName}',
369
+ description: 'أُنشئ ملف الموظف بالمسمى «{jobTitle}» في قسم {department}، وتاريخ المباشرة {startDate}.',
370
+ facts: [{ label: 'الرقم الوظيفي', param: 'employeeNumber', copyable: true }],
371
+ nextStep: 'أكمل بيانات الموظف وأرسل له رمز تفعيل الحساب.',
372
+ primaryAction: { label: 'فتح ملف الموظف' },
373
+ params: { candidateName: 'text', jobTitle: 'text', department: 'text', startDate: 'date', employeeNumber: 'reference' },
374
+ figma: ['تم تعيين المرشح كموظف'],
375
+ }),
376
+ dialog({
377
+ key: 'hr.evaluationsApproved',
378
+ category: 'legal',
379
+ tone: 'success',
380
+ title: 'تم اعتماد تقييمات {period}',
381
+ description: 'اعتُمدت التقييمات وأصبحت مرئية للموظفين.',
382
+ facts: [{ label: 'عدد التقييمات', param: 'count' }],
383
+ params: { period: 'text', count: 'number' },
384
+ figma: ['تم اعتماد التقييمات'],
385
+ }),
386
+ dialog({
387
+ key: 'hr.assetHandedOver',
388
+ category: 'legal',
389
+ tone: 'success',
390
+ title: 'تم تسليم العهدة إلى {employeeName}',
391
+ description: 'سُلّم «{assetName}» وأصبح الموظف مسؤولًا عنه من {date}.',
392
+ facts: [
393
+ { label: 'رقم محضر التسليم', param: 'reference', copyable: true },
394
+ { label: 'الرقم التسلسلي', param: 'serialNumber' },
395
+ ],
396
+ primaryAction: { label: 'طباعة محضر التسليم' },
397
+ params: { employeeName: 'text', assetName: 'text', date: 'date', reference: 'reference', serialNumber: 'latin' },
398
+ figma: ['تم تسليم العهدة بنجاح'],
399
+ }),
400
+ dialog({
401
+ key: 'hr.assetReturned',
402
+ category: 'legal',
403
+ tone: 'success',
404
+ title: 'تم تسجيل إرجاع العهدة',
405
+ description: 'استُلم «{assetName}» من {employeeName} بحالة «{condition}»، وأُخليت مسؤوليته عنه.',
406
+ facts: [{ label: 'رقم المحضر', param: 'reference', copyable: true }],
407
+ params: { assetName: 'text', employeeName: 'text', condition: 'text', reference: 'reference' },
408
+ figma: ['تم تسجيل إرجاع العهدة'],
409
+ }),
410
+ // ── Account dialog ─────────────────────────────────────────────
411
+ dialog({
412
+ key: 'hr.employeeAdded',
413
+ category: 'security',
414
+ tone: 'success',
415
+ title: 'تمت إضافة {employeeName}',
416
+ description: 'أُنشئ ملف الموظف وحسابه، وأُرسل رمز التفعيل إلى بريده.',
417
+ facts: [
418
+ { label: 'الرقم الوظيفي', param: 'employeeNumber', copyable: true },
419
+ { label: 'البريد الإلكتروني', param: 'email' },
420
+ ],
421
+ nextStep: 'يظهر الموظف بحالة «بانتظار التفعيل» حتى يفعّل حسابه.',
422
+ primaryAction: { label: 'فتح ملف الموظف' },
423
+ params: { employeeName: 'text', employeeNumber: 'reference', email: 'latin' },
424
+ figma: ['تمت إضافة الموظف بنجاح'],
425
+ }),
426
+ // ── Submission dialogs ─────────────────────────────────────────
427
+ dialog({
428
+ key: 'hr.leaveRequestSubmitted',
429
+ category: 'submission',
430
+ tone: 'success',
431
+ title: 'تم إرسال طلب الإجازة',
432
+ description: 'طلب {leaveType} من {startDate} إلى {endDate} بانتظار اعتماد {approverName}.',
433
+ facts: [
434
+ { label: 'رقم الطلب', param: 'reference', copyable: true },
435
+ { label: 'الرصيد المتبقي بعد الطلب (يوم)', param: 'remainingBalance' },
436
+ ],
437
+ nextStep: 'يمر الطلب على المدير المباشر ثم الموارد البشرية، ويصلك إشعار بكل قرار.',
438
+ params: { leaveType: 'text', startDate: 'date', endDate: 'date', approverName: 'text', reference: 'reference', remainingBalance: 'number' },
439
+ figma: ['تم إرسال طلب الإجازة بنجاح'],
440
+ }),
441
+ dialog({
442
+ key: 'hr.requestSubmitted',
443
+ category: 'submission',
444
+ tone: 'success',
445
+ title: 'تم إرسال {requestType}',
446
+ description: 'طلبك بانتظار اعتماد {approverName}.',
447
+ facts: [{ label: 'رقم الطلب', param: 'reference', copyable: true }],
448
+ nextStep: 'تابع حالة الطلب من «طلباتي».',
449
+ params: { requestType: 'text', approverName: 'text', reference: 'reference' },
450
+ figma: ['تم إرسال الطلب بنجاح'],
451
+ }),
452
+ dialog({
453
+ key: 'hr.letterRequested',
454
+ category: 'submission',
455
+ tone: 'success',
456
+ title: 'تم إرسال طلب {letterType}',
457
+ description: 'ستُصدر الموارد البشرية الخطاب، وسيصلك في «مستنداتي».',
458
+ facts: [{ label: 'رقم الطلب', param: 'reference', copyable: true }],
459
+ params: { letterType: 'text', reference: 'reference' },
460
+ figma: ['ملفي/تم إرسال طلب الخطاب'],
461
+ }),
462
+ dialog({
463
+ key: 'hr.complaintRegistered',
464
+ category: 'submission',
465
+ tone: 'success',
466
+ title: 'تم تسجيل الشكوى',
467
+ description: 'سُجّلت شكوى {customerName} وأُسندت إلى {assigneeName}.',
468
+ facts: [{ label: 'رقم الشكوى', param: 'reference', copyable: true }],
469
+ nextStep: 'يُبلَّغ العميل برقم الشكوى، ويصلك إشعار عند تحديث حالتها.',
470
+ params: { customerName: 'text', assigneeName: 'text', reference: 'reference' },
471
+ figma: ['تم تسجيل الشكوى بنجاح'],
472
+ }),
473
+ dialog({
474
+ key: 'hr.ticketSubmitted',
475
+ category: 'submission',
476
+ tone: 'success',
477
+ title: 'تم إرسال التذكرة',
478
+ description: 'وصلت تذكرتك إلى {assigneeTeam}.',
479
+ facts: [{ label: 'رقم التذكرة', param: 'reference', copyable: true }],
480
+ nextStep: 'تابع الردود من «تذاكري».',
481
+ params: { assigneeTeam: 'text', reference: 'reference' },
482
+ figma: ['تم إنشاء التذكرة بنجاح', 'تم إرسال التذكرة بنجاح'],
483
+ }),
484
+ dialog({
485
+ key: 'hr.ticketEscalated',
486
+ category: 'submission',
487
+ tone: 'info',
488
+ title: 'تم تصعيد {subject} إلى الإدارة',
489
+ description: 'أصبحت المتابعة لدى {managerName}.',
490
+ facts: [{ label: 'رقم التذكرة', param: 'reference', copyable: true }],
491
+ nextStep: 'سيصلك إشعار بالقرار.',
492
+ params: { subject: 'text', managerName: 'text', reference: 'reference' },
493
+ figma: ['تم التصعيد للإدارة'],
494
+ }),
495
+ dialog({
496
+ key: 'hr.attendanceCheckedIn',
497
+ category: 'submission',
498
+ tone: 'success',
499
+ title: 'تم تسجيل حضورك',
500
+ description: 'سُجّلت البصمة في {location}.',
501
+ facts: [
502
+ { label: 'الوقت', param: 'time' },
503
+ { label: 'الوردية', param: 'shift' },
504
+ ],
505
+ nextStep: 'لا تنسَ تسجيل الانصراف في نهاية الدوام.',
506
+ params: { location: 'text', time: 'time', shift: 'text' },
507
+ figma: ['تم تسجيل الحضور بنجاح'],
508
+ }),
509
+ // ── Workflow-end dialogs ───────────────────────────────────────
510
+ dialog({
511
+ key: 'hr.interviewInvitationsSent',
512
+ category: 'workflow-end',
513
+ tone: 'success',
514
+ title: 'تم إرسال دعوات المقابلة',
515
+ description: 'أُرسلت دعوات المقابلة بمواعيدها عبر البريد والرسائل النصية.',
516
+ facts: [
517
+ { label: 'عدد الدعوات', param: 'count' },
518
+ { label: 'تعذّر الإرسال إلى', param: 'failedCount', optional: true },
519
+ ],
520
+ nextStep: 'تابع تأكيد المرشحين من صفحة المقابلات.',
521
+ partial: {
522
+ when: 'failedCount',
523
+ title: 'أُرسلت دعوات المقابلة مع تعذّر بعضها',
524
+ nextStep: 'صحّح بيانات التواصل للمرشحين المتعذّرين من صفحة المقابلات، ثم أعد إرسال دعواتهم.',
525
+ },
526
+ params: { count: 'number', failedCount: 'number' },
527
+ figma: ['تم إرسال دعوات المقابلة'],
528
+ }),
529
+ dialog({
530
+ key: 'hr.recruitmentDecisionsSent',
531
+ category: 'workflow-end',
532
+ tone: 'success',
533
+ title: 'تم إرسال رسائل القرار',
534
+ description: 'أُبلغ المتقدمون بنتيجة طلباتهم.',
535
+ facts: [
536
+ { label: 'رسائل القبول', param: 'acceptedCount' },
537
+ { label: 'رسائل الاعتذار', param: 'rejectedCount' },
538
+ ],
539
+ params: { acceptedCount: 'number', rejectedCount: 'number' },
540
+ figma: ['تم إرسال رسائل القرار'],
541
+ }),
542
+ dialog({
543
+ key: 'hr.attendanceMonthApproved',
544
+ category: 'workflow-end',
545
+ tone: 'success',
546
+ title: 'تم اعتماد بصمات {month}',
547
+ description: 'أُغلقت فترة الحضور وأصبحت جاهزة لاحتساب الرواتب.',
548
+ facts: [
549
+ { label: 'عدد الموظفين', param: 'employeeCount' },
550
+ { label: 'الحالات المستثناة', param: 'exceptionCount' },
551
+ ],
552
+ nextStep: 'أي تعديل لاحق يتم عبر طلب «تصحيح بصمة».',
553
+ params: { month: 'text', employeeCount: 'number', exceptionCount: 'number' },
554
+ figma: ['تم اعتماد بصمات أكتوبر', 'تم اعتماد بصمات سبتمبر'],
555
+ }),
556
+ dialog({
557
+ key: 'hr.attendanceRecordApproved',
558
+ category: 'workflow-end',
559
+ tone: 'success',
560
+ title: 'تم اعتماد سجل الحضور',
561
+ description: 'اعتُمد سجل الحضور لـ{period} وأُغلق للتعديل.',
562
+ facts: [{ label: 'عدد السجلات', param: 'recordCount' }],
563
+ nextStep: 'أي تعديل لاحق يتم عبر طلب «تصحيح بصمة».',
564
+ params: { period: 'text', recordCount: 'number' },
565
+ figma: ['تم اعتماد سجل الحضور'],
566
+ }),
567
+ ]);
568
+ //# sourceMappingURL=messages.js.map