adula 2.1.0 → 2.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.
- package/README.md +149 -18
- package/build/agent/AGENTS.template.md +4 -4
- package/build/agent/capabilities.md +22 -11
- package/build/agent/skills/adula-frontend-design/SKILL.md +1 -1
- package/build/agent/skills/idea-review/SKILL.md +2 -2
- package/build/commands/adula_outbox.d.ts +10 -0
- package/build/commands/adula_outbox.js +11 -0
- package/build/commands/adula_restore_reconcile.d.ts +10 -0
- package/build/commands/adula_restore_reconcile.js +34 -0
- package/build/commands/adula_runtime_health.d.ts +10 -0
- package/build/commands/adula_runtime_health.js +27 -0
- package/build/commands/adula_uploads_prune.d.ts +10 -0
- package/build/commands/adula_uploads_prune.js +16 -0
- package/build/commands/app.d.ts +10 -0
- package/build/commands/app.js +64 -0
- package/build/commands/backup_create.d.ts +11 -0
- package/build/commands/backup_create.js +99 -0
- package/build/commands/backup_restore_files.d.ts +11 -0
- package/build/commands/backup_restore_files.js +44 -0
- package/build/commands/backup_restore_test.d.ts +12 -0
- package/build/commands/backup_restore_test.js +185 -0
- package/build/commands/backup_services.d.ts +31 -0
- package/build/commands/backup_services.js +6 -0
- package/build/commands/backup_verify.d.ts +9 -0
- package/build/commands/backup_verify.js +59 -0
- package/build/commands/backup_verify_snapshot.d.ts +10 -0
- package/build/commands/backup_verify_snapshot.js +37 -0
- package/build/commands/client.d.ts +16 -0
- package/build/commands/client.js +71 -0
- package/build/commands/doctor.js +4 -1
- package/build/commands/install.d.ts +8 -0
- package/build/commands/install.js +63 -45
- package/build/commands/main.d.ts +3 -2
- package/build/commands/main.js +26 -0
- package/build/commands/module_add.js +4 -20
- package/build/commands/resource.d.ts +2 -0
- package/build/commands/resource.js +12 -3
- package/build/commands/resource_migration.d.ts +15 -0
- package/build/commands/resource_migration.js +72 -0
- package/build/commands/resource_snapshot.d.ts +2 -0
- package/build/commands/resource_snapshot.js +3 -0
- package/build/commands/sla_evaluate.d.ts +14 -0
- package/build/commands/sla_evaluate.js +16 -0
- package/build/commands/ui.js +4 -2
- package/build/commands/ui_css.d.ts +9 -0
- package/build/commands/ui_css.js +19 -0
- package/build/commands/upgrade.d.ts +1 -1
- package/build/commands/upgrade.js +1 -1
- package/build/configure.js +1 -1
- package/build/database/migrations/1770000000020_two_factor.d.ts +5 -0
- package/build/database/migrations/1770000000020_two_factor.js +10 -0
- package/build/database/migrations/1770000000041_import_modes.d.ts +5 -0
- package/build/database/migrations/1770000000041_import_modes.js +10 -0
- package/build/database/migrations/1770000000042_sync_jobs.d.ts +5 -0
- package/build/database/migrations/1770000000042_sync_jobs.js +10 -0
- package/build/database/migrations/1770000000043_notification_channels.d.ts +5 -0
- package/build/database/migrations/1770000000043_notification_channels.js +10 -0
- package/build/database/migrations/1770000000044_channel_confirmations.d.ts +5 -0
- package/build/database/migrations/1770000000044_channel_confirmations.js +10 -0
- package/build/database/migrations/1770000000045_import_leases.d.ts +5 -0
- package/build/database/migrations/1770000000045_import_leases.js +10 -0
- package/build/database/migrations/1770000000046_workflow_delegation_sla.d.ts +5 -0
- package/build/database/migrations/1770000000046_workflow_delegation_sla.js +10 -0
- package/build/database/migrations/1770000000049_print_templates.d.ts +5 -0
- package/build/database/migrations/1770000000049_print_templates.js +10 -0
- package/build/index.d.ts +56 -10
- package/build/index.js +34 -6
- package/build/providers/adula_provider.d.ts +2 -0
- package/build/providers/adula_provider.js +7 -0
- package/build/src/admin/contracts.js +1 -1
- package/build/src/admin/controller.d.ts +14 -1
- package/build/src/admin/controller.js +77 -13
- package/build/src/admin/errors.d.ts +32 -0
- package/build/src/admin/errors.js +63 -1
- package/build/src/admin/presentation.d.ts +21 -2
- package/build/src/admin/resource/editor.d.ts +59 -0
- package/build/src/admin/resource/editor.js +323 -0
- package/build/src/admin/resource/export.d.ts +37 -0
- package/build/src/admin/resource/export.js +181 -0
- package/build/src/admin/resource/lifecycle.d.ts +21 -0
- package/build/src/admin/resource/lifecycle.js +91 -0
- package/build/src/admin/resource/query.d.ts +100 -0
- package/build/src/admin/resource/query.js +508 -0
- package/build/src/admin/resource/read.d.ts +106 -0
- package/build/src/admin/resource/read.js +327 -0
- package/build/src/admin/resource/shared.d.ts +77 -0
- package/build/src/admin/resource/shared.js +222 -0
- package/build/src/admin/resource/trash.d.ts +10 -0
- package/build/src/admin/resource/trash.js +56 -0
- package/build/src/admin/resource/write.d.ts +57 -0
- package/build/src/admin/resource/write.js +574 -0
- package/build/src/admin/resource_service.d.ts +66 -193
- package/build/src/admin/resource_service.js +69 -1345
- package/build/src/attachments/attachment_service.d.ts +46 -2
- package/build/src/attachments/attachment_service.js +96 -4
- package/build/src/auth/conditions.d.ts +5 -0
- package/build/src/auth/conditions.js +26 -3
- package/build/src/auth/sql.js +17 -5
- package/build/src/auth/two_factor.d.ts +96 -0
- package/build/src/auth/two_factor.js +259 -0
- package/build/src/collaboration/assignments.d.ts +36 -1
- package/build/src/collaboration/assignments.js +132 -66
- package/build/src/collaboration/record_collaboration.d.ts +2 -3
- package/build/src/collaboration/record_collaboration.js +19 -16
- package/build/src/collaboration/shared.d.ts +16 -0
- package/build/src/collaboration/shared.js +21 -0
- package/build/src/commands/app_scaffold.d.ts +72 -0
- package/build/src/commands/app_scaffold.js +285 -0
- package/build/src/commands/capabilities.js +34 -8
- package/build/src/commands/doctor.d.ts +14 -2
- package/build/src/commands/doctor.js +50 -5
- package/build/src/commands/gap_report.d.ts +1 -1
- package/build/src/commands/gap_report.js +2 -2
- package/build/src/commands/generator.d.ts +37 -1
- package/build/src/commands/generator.js +61 -18
- package/build/src/commands/snapshot.d.ts +10 -13
- package/build/src/commands/snapshot.js +31 -14
- package/build/src/commands/source_markers.d.ts +10 -0
- package/build/src/commands/source_markers.js +29 -0
- package/build/src/core/activity.d.ts +2 -0
- package/build/src/core/activity.js +7 -1
- package/build/src/core/administrators.d.ts +38 -0
- package/build/src/core/administrators.js +129 -0
- package/build/src/core/html_sanitizer.d.ts +20 -0
- package/build/src/core/html_sanitizer.js +261 -0
- package/build/src/core/like.d.ts +5 -0
- package/build/src/core/like.js +5 -0
- package/build/src/core/lookups.d.ts +80 -0
- package/build/src/core/lookups.js +319 -0
- package/build/src/core/message_templates.d.ts +7 -2
- package/build/src/core/message_templates.js +72 -11
- package/build/src/core/module_seed.js +2 -1
- package/build/src/core/notification_channels.d.ts +235 -0
- package/build/src/core/notification_channels.js +660 -0
- package/build/src/core/roles.js +2 -2
- package/build/src/core/saved_views.d.ts +8 -1
- package/build/src/core/saved_views.js +36 -2
- package/build/src/core/sequences.d.ts +32 -0
- package/build/src/core/sequences.js +97 -0
- package/build/src/core/settings.d.ts +5 -0
- package/build/src/core/settings.js +19 -2
- package/build/src/core/template_language.d.ts +61 -0
- package/build/src/core/template_language.js +141 -0
- package/build/src/core/ui_preferences.d.ts +4 -0
- package/build/src/core/ui_preferences.js +4 -1
- package/build/src/core/user_invitations.d.ts +5 -1
- package/build/src/core/user_invitations.js +7 -1
- package/build/src/core/users.js +1 -1
- package/build/src/database/calendar_days.d.ts +19 -0
- package/build/src/database/calendar_days.js +36 -0
- package/build/src/database/schema.d.ts +155 -2
- package/build/src/database/schema.js +531 -59
- package/build/src/database/schema_diff.d.ts +56 -0
- package/build/src/database/schema_diff.js +157 -0
- package/build/src/events/record_mutation.d.ts +2 -1
- package/build/src/events/record_mutation.js +1 -0
- package/build/src/integrations/api_client.d.ts +37 -0
- package/build/src/integrations/api_client.js +552 -0
- package/build/src/integrations/import_adapters.d.ts +37 -0
- package/build/src/integrations/import_adapters.js +35 -0
- package/build/src/integrations/imports.d.ts +118 -16
- package/build/src/integrations/imports.js +406 -73
- package/build/src/integrations/openapi.d.ts +3 -1
- package/build/src/integrations/openapi.js +454 -31
- package/build/src/integrations/outbound.d.ts +51 -0
- package/build/src/integrations/outbound.js +195 -0
- package/build/src/integrations/print.d.ts +21 -1
- package/build/src/integrations/print.js +63 -21
- package/build/src/integrations/print_templates.d.ts +216 -0
- package/build/src/integrations/print_templates.js +1015 -0
- package/build/src/integrations/sync_jobs.d.ts +139 -0
- package/build/src/integrations/sync_jobs.js +416 -0
- package/build/src/integrations/webhooks.d.ts +12 -12
- package/build/src/integrations/webhooks.js +34 -43
- package/build/src/languages/ar.d.ts +11 -0
- package/build/src/languages/ar.js +336 -0
- package/build/src/languages/ar_ui.d.ts +332 -0
- package/build/src/languages/ar_ui.js +333 -0
- package/build/src/languages/catalog.d.ts +66 -0
- package/build/src/languages/catalog.js +152 -0
- package/build/src/languages/en.d.ts +7 -0
- package/build/src/languages/en.js +330 -0
- package/build/src/languages/en_ui.d.ts +3 -0
- package/build/src/languages/en_ui.js +328 -0
- package/build/src/languages/validation.d.ts +26 -0
- package/build/src/languages/validation.js +60 -0
- package/build/src/lists/bulk_actions.d.ts +89 -0
- package/build/src/lists/bulk_actions.js +268 -0
- package/build/src/lists/dashboards.d.ts +96 -0
- package/build/src/lists/dashboards.js +241 -0
- package/build/src/mcp/tools.js +1 -1
- package/build/src/resource/define_resource.d.ts +18 -1
- package/build/src/resource/define_resource.js +205 -18
- package/build/src/resource/definition.d.ts +44 -0
- package/build/src/resource/definition.js +171 -0
- package/build/src/resource/registry.js +15 -4
- package/build/src/resource/types.d.ts +304 -16
- package/build/src/resource/values.d.ts +56 -1
- package/build/src/resource/values.js +237 -5
- package/build/src/services/settings.d.ts +2 -0
- package/build/src/services/settings.js +5 -1
- package/build/src/upgrade/legacy.js +2 -2
- package/build/src/workflows/calendar.d.ts +9 -0
- package/build/src/workflows/calendar.js +44 -0
- package/build/src/workflows/define_workflow.d.ts +48 -3
- package/build/src/workflows/define_workflow.js +57 -13
- package/build/src/workflows/delegations.d.ts +93 -0
- package/build/src/workflows/delegations.js +287 -0
- package/build/src/workflows/engine.d.ts +69 -4
- package/build/src/workflows/engine.js +441 -83
- package/build/src/workflows/sla.d.ts +15 -0
- package/build/src/workflows/sla.js +8 -0
- package/build/stubs/resource_contract.txt +12 -1
- package/package.json +5 -2
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/** English interface strings; see ar_ui.ts. */
|
|
2
|
+
export const englishInterfaceMessages = {
|
|
3
|
+
'ui.language.title': 'Interface language',
|
|
4
|
+
'ui.language.description': 'Arabic is the base language of the system. Choose another language for your interface when the administrator enables one.',
|
|
5
|
+
'ui.language.save': 'Save language',
|
|
6
|
+
'ui.record.detailsTitle': 'Details · {resource}',
|
|
7
|
+
'ui.record.addNamed': 'Add {record}',
|
|
8
|
+
'ui.record.editNamed': 'Edit {record}',
|
|
9
|
+
'ui.record.addTitle': 'Add · {resource}',
|
|
10
|
+
'ui.record.editTitle': 'Edit · {resource}',
|
|
11
|
+
'ui.record.add': 'Add record',
|
|
12
|
+
'ui.resource.subtitle': 'Your records and daily follow-up in one place.',
|
|
13
|
+
'ui.record.formDescription': 'Complete the required fields, then save the record.',
|
|
14
|
+
'ui.record.showDescription': 'Review the details available to you and continue your work.',
|
|
15
|
+
'ui.form.reviewFields': 'Review the highlighted fields and try again.',
|
|
16
|
+
'ui.form.addedNamed': '{record} added',
|
|
17
|
+
'ui.form.added': 'Record added',
|
|
18
|
+
'ui.form.saved': 'Changes saved',
|
|
19
|
+
'ui.form.conflictMessage': 'The record changed since you opened it. Keep your edits, then reload the page.',
|
|
20
|
+
'ui.form.saveFailedMessage': 'Could not save. Check the data and try again.',
|
|
21
|
+
'ui.form.conflictTitle': 'Version conflict',
|
|
22
|
+
'ui.form.saveFailed': 'Could not save',
|
|
23
|
+
'ui.common.reload': 'Reload',
|
|
24
|
+
'ui.form.details': 'Record details',
|
|
25
|
+
'ui.form.requiredHint': 'Fields shown depend on your permissions · fields marked {mark} are required',
|
|
26
|
+
'ui.form.orgUnit': 'Organizational unit',
|
|
27
|
+
'ui.common.cancel': 'Cancel',
|
|
28
|
+
'ui.form.saving': 'Saving...',
|
|
29
|
+
'ui.form.save': 'Save record',
|
|
30
|
+
'ui.validation.required': 'This field is required',
|
|
31
|
+
'ui.validation.money': 'Enter an amount with at most two decimal places',
|
|
32
|
+
'ui.validation.integer': 'Enter a whole number',
|
|
33
|
+
'ui.validation.json': 'Enter valid JSON',
|
|
34
|
+
'ui.validation.datetime': 'Enter a valid date and time',
|
|
35
|
+
'ui.validation.decimal': 'Enter a valid decimal number',
|
|
36
|
+
'ui.validation.decimalScale': 'Too many decimal places',
|
|
37
|
+
'ui.validation.dateFormat': 'Enter the date as year-month-day',
|
|
38
|
+
'ui.validation.gregorianDate': 'The Gregorian date is not valid',
|
|
39
|
+
'ui.validation.hijriRange': 'Choose an Umm al-Qura date between 1300 and 1600 AH',
|
|
40
|
+
'ui.validation.hijriDay': 'This day does not exist in the Umm al-Qura calendar',
|
|
41
|
+
'ui.actions.delete': 'Delete record',
|
|
42
|
+
'ui.actions.submit': 'Submit document',
|
|
43
|
+
'ui.actions.cancel': 'Cancel document',
|
|
44
|
+
'ui.actions.amend': 'Amend as copy',
|
|
45
|
+
'ui.actions.deleteDescription': 'The record will be hidden from lists and can no longer be edited.',
|
|
46
|
+
'ui.actions.submitDescription': 'Once submitted, the document and its lines can no longer be edited.',
|
|
47
|
+
'ui.actions.cancelDescription': 'The document will be marked as cancelled and will no longer count.',
|
|
48
|
+
'ui.actions.amendDescription': 'A new draft is copied from this cancelled document with its lines; the original stays unchanged.',
|
|
49
|
+
'ui.actions.deleted': 'Record deleted',
|
|
50
|
+
'ui.actions.submitted': 'Document submitted',
|
|
51
|
+
'ui.actions.cancelled': 'Document cancelled',
|
|
52
|
+
'ui.actions.amended': 'Amended copy created',
|
|
53
|
+
'ui.actions.connectionFailed': 'Could not reach the server. Try again.',
|
|
54
|
+
'ui.actions.conflict': 'The record changed since you opened it. Reload the page before continuing.',
|
|
55
|
+
'ui.actions.failed': 'Could not complete the action. Check your permissions and try again.',
|
|
56
|
+
'ui.common.back': 'Back',
|
|
57
|
+
'ui.actions.running': 'Working...',
|
|
58
|
+
'ui.common.confirm': 'Confirm',
|
|
59
|
+
'ui.confirm.title': 'Confirm action',
|
|
60
|
+
'ui.confirm.change': 'Confirm change',
|
|
61
|
+
'ui.pagination.label': 'Pagination',
|
|
62
|
+
'ui.pagination.previousPage': 'Previous page',
|
|
63
|
+
'ui.pagination.previous': 'Previous',
|
|
64
|
+
'ui.pagination.nextPage': 'Next page',
|
|
65
|
+
'ui.pagination.next': 'Next',
|
|
66
|
+
'ui.pagination.more': 'More pages',
|
|
67
|
+
'ui.dialog.closeFormTitle': 'Close the form?',
|
|
68
|
+
'ui.dialog.closeFormDescription': 'You may lose unsaved changes. You can keep editing or close the form.',
|
|
69
|
+
'ui.dialog.keepEditing': 'Keep editing',
|
|
70
|
+
'ui.dialog.closeWithoutSaving': 'Close without saving',
|
|
71
|
+
'ui.common.close': 'Close',
|
|
72
|
+
'ui.surface.backToList': 'Back to list',
|
|
73
|
+
'ui.activity.create': 'Record created',
|
|
74
|
+
'ui.record.edit': 'Edit record',
|
|
75
|
+
'ui.activity.amend': 'Amended after submission',
|
|
76
|
+
'ui.activity.assignmentClosed': 'Task closed with the record',
|
|
77
|
+
'ui.status.submitted': 'Submitted',
|
|
78
|
+
'ui.status.cancelled': 'Cancelled',
|
|
79
|
+
'ui.status.draft': 'Draft',
|
|
80
|
+
'ui.show.print': 'Print',
|
|
81
|
+
'ui.show.lines': 'Lines',
|
|
82
|
+
'ui.show.lineCount': '{count} lines',
|
|
83
|
+
'ui.show.linesTruncated': 'Showing the first 100 available lines',
|
|
84
|
+
'ui.show.noLines': 'No lines available.',
|
|
85
|
+
'ui.show.activity': 'Activity log',
|
|
86
|
+
'ui.show.activityCount': 'Last {count} actions',
|
|
87
|
+
'ui.show.userNumber': 'User #{id}',
|
|
88
|
+
'ui.show.activityFields': 'Fields: {fields}',
|
|
89
|
+
'ui.common.listSeparator': ', ',
|
|
90
|
+
'ui.show.noActivity': 'No activity recorded yet.',
|
|
91
|
+
'ui.common.loadingSection': 'Loading {section}',
|
|
92
|
+
'ui.field.chooseValue': 'Choose a value',
|
|
93
|
+
'ui.common.yes': 'Yes',
|
|
94
|
+
'ui.common.no': 'No',
|
|
95
|
+
'ui.field.entryCalendar': 'Entry calendar: {field}',
|
|
96
|
+
'ui.field.gregorianEntry': 'Gregorian entry',
|
|
97
|
+
'ui.field.hijriEntry': 'Hijri entry',
|
|
98
|
+
'ui.field.calendar': 'Calendar: {field}',
|
|
99
|
+
'ui.field.hijriUmmAlQura': 'Hijri · Umm al-Qura',
|
|
100
|
+
'ui.field.gregorianEquivalent': '({date} Gregorian)',
|
|
101
|
+
'ui.field.hijriEquivalent': 'Hijri equivalent:',
|
|
102
|
+
'ui.field.hijriSuffix': 'AH',
|
|
103
|
+
'ui.field.time': 'Time: {field}',
|
|
104
|
+
'ui.field.formatJson': 'Format JSON',
|
|
105
|
+
'ui.field.uploadFailed': 'Could not upload the file. Try again.',
|
|
106
|
+
'ui.field.connectionFailed': 'Could not reach the server.',
|
|
107
|
+
'ui.field.replace': 'Replace',
|
|
108
|
+
'ui.field.remove': 'Remove',
|
|
109
|
+
'ui.field.chooseFile': 'Choose file',
|
|
110
|
+
'ui.field.uploading': 'Uploading {progress}%',
|
|
111
|
+
'ui.field.upload': 'Upload {field}',
|
|
112
|
+
'ui.field.optionsFailed': 'Could not load the options',
|
|
113
|
+
'ui.field.chooseUser': 'Choose a user',
|
|
114
|
+
'ui.field.chooseRecord': 'Choose a record',
|
|
115
|
+
'ui.field.searchByName': 'Search by name',
|
|
116
|
+
'ui.field.searchRelated': 'Search related records',
|
|
117
|
+
'ui.field.filterOptions': 'Filter options',
|
|
118
|
+
'ui.field.searchIn': 'Search {field}',
|
|
119
|
+
'ui.common.searching': 'Searching...',
|
|
120
|
+
'ui.field.noMatches': 'No matching records',
|
|
121
|
+
'ui.field.noSelection': 'No selection',
|
|
122
|
+
'ui.field.decimalPlaces': 'Decimal places: at most {scale}',
|
|
123
|
+
'ui.field.noDecimalPlaces': 'Whole number, no decimal places',
|
|
124
|
+
'ui.field.selectedCount': '{count} selected',
|
|
125
|
+
'ui.field.chooseRecords': 'Choose one or more records',
|
|
126
|
+
'ui.field.selectedIn': 'Selected in {field}',
|
|
127
|
+
'ui.field.removeRecord': 'Remove {record}',
|
|
128
|
+
'ui.field.required': 'Required',
|
|
129
|
+
'ui.common.loading': 'Loading...',
|
|
130
|
+
'ui.common.more': 'More',
|
|
131
|
+
'ui.inline.empty': 'No lines yet',
|
|
132
|
+
'ui.inline.truncated': 'Only the first 100 lines are shown',
|
|
133
|
+
'ui.inline.add': 'Add line',
|
|
134
|
+
'ui.inline.actions': 'Action',
|
|
135
|
+
'ui.inline.row': 'Line {number}',
|
|
136
|
+
'ui.inline.fieldForRow': '{field} for line {number}',
|
|
137
|
+
'ui.inline.removeRow': 'Remove line {number}',
|
|
138
|
+
'ui.inline.undoDelete': 'Undo deleting line {number}',
|
|
139
|
+
'ui.inline.deleteRow': 'Delete line {number}',
|
|
140
|
+
'ui.value.bytes': '{size} B',
|
|
141
|
+
'ui.value.kilobytes': '{size} KB',
|
|
142
|
+
'ui.value.megabytes': '{size} MB',
|
|
143
|
+
'ui.value.attachment': 'Attachment',
|
|
144
|
+
'ui.value.currency': 'SAR',
|
|
145
|
+
'ui.value.percent': '%',
|
|
146
|
+
'ui.table.listOf': '{resource} list',
|
|
147
|
+
'ui.table.recordsOf': '{resource} records',
|
|
148
|
+
'ui.table.shown': '{count} shown',
|
|
149
|
+
'ui.table.estimate': 'About {count} records in your scope',
|
|
150
|
+
'ui.table.scope': 'Within your permission scope',
|
|
151
|
+
'ui.table.export': 'Export shown',
|
|
152
|
+
'ui.table.searchPlaceholder': 'Search records...',
|
|
153
|
+
'ui.table.filter': 'Filter',
|
|
154
|
+
'ui.table.clearFilters': 'Clear filters',
|
|
155
|
+
'ui.table.nextFailed': 'Could not load more records. Try again.',
|
|
156
|
+
'ui.table.networkFailed': 'Could not reach the server. Check your connection and try again.',
|
|
157
|
+
'ui.table.loadingMore': 'Loading more...',
|
|
158
|
+
'ui.table.loadMore': 'Load more',
|
|
159
|
+
'ui.table.end': 'End of records',
|
|
160
|
+
'ui.table.actions': 'Actions',
|
|
161
|
+
'ui.table.viewRecord': 'View record {id}',
|
|
162
|
+
'ui.table.view': 'View',
|
|
163
|
+
'ui.table.editRecord': 'Edit record {id}',
|
|
164
|
+
'ui.table.edit': 'Edit',
|
|
165
|
+
'ui.table.record': 'record {id}',
|
|
166
|
+
'ui.table.emptyFiltered': 'Change the search or filters to see other records.',
|
|
167
|
+
'ui.table.empty': 'No records have been added in your scope yet.',
|
|
168
|
+
'ui.views.saveFailed': 'Could not save the view.',
|
|
169
|
+
'ui.views.deleteFailed': 'Could not delete the view.',
|
|
170
|
+
'ui.views.title': 'Saved views',
|
|
171
|
+
'ui.views.empty': 'No views yet',
|
|
172
|
+
'ui.views.shared': 'Shared',
|
|
173
|
+
'ui.views.delete': 'Delete view {name}',
|
|
174
|
+
'ui.views.name': 'View name',
|
|
175
|
+
'ui.common.save': 'Save',
|
|
176
|
+
'ui.views.saveCurrent': 'Save current view',
|
|
177
|
+
'ui.table.all': 'All',
|
|
178
|
+
'ui.table.filterField': 'Filter {field}',
|
|
179
|
+
'ui.table.pressEnter': 'Press Enter to apply',
|
|
180
|
+
'ui.admin.peopleAndPermissions': 'People and permissions',
|
|
181
|
+
'ui.admin.users': 'Users',
|
|
182
|
+
'ui.admin.roles': 'Roles and permissions',
|
|
183
|
+
'ui.admin.orgUnits': 'Organization structure',
|
|
184
|
+
'ui.admin.sessions': 'Sessions',
|
|
185
|
+
'ui.admin.settings': 'Settings',
|
|
186
|
+
'ui.admin.templates': 'Message templates',
|
|
187
|
+
'ui.admin.webhooks': 'Integrations',
|
|
188
|
+
'ui.admin.monitoring': 'Monitoring and operations',
|
|
189
|
+
'ui.admin.jobs': 'System jobs',
|
|
190
|
+
'ui.admin.workflows': 'Failed workflows',
|
|
191
|
+
'ui.admin.setup': 'Initial setup',
|
|
192
|
+
'ui.admin.title': 'Administration',
|
|
193
|
+
'ui.admin.alerts': '{count} admin alerts',
|
|
194
|
+
'ui.admin.navigation': 'Administration navigation',
|
|
195
|
+
'ui.admin.impersonating': 'You are browsing as {name}',
|
|
196
|
+
'ui.admin.stopImpersonating': 'Stop impersonating',
|
|
197
|
+
'ui.workspace.overview': 'Overview',
|
|
198
|
+
'ui.workspace.myTasks': 'My tasks',
|
|
199
|
+
'ui.workspace.imports': 'Imports',
|
|
200
|
+
'ui.workspace.tagline': 'Your business workspace, clearly',
|
|
201
|
+
'ui.workspace.dailyWork': 'Daily work',
|
|
202
|
+
'ui.workspace.mainNavigation': 'Main navigation',
|
|
203
|
+
'ui.workspace.open': '{count} open',
|
|
204
|
+
'ui.workspace.inviteUser': 'Invite user',
|
|
205
|
+
'ui.workspace.title': 'Workspace',
|
|
206
|
+
'ui.workspace.trial': 'Trial environment',
|
|
207
|
+
'ui.workspace.mobileNavigation': 'Mobile navigation',
|
|
208
|
+
'ui.errors.notFound': 'Page not found',
|
|
209
|
+
'ui.errors.serverError': 'Something went wrong',
|
|
210
|
+
'ui.auth.login': 'Sign in',
|
|
211
|
+
'ui.auth.loginDescription': 'Enter your account details to continue to the workspace',
|
|
212
|
+
'ui.auth.email': 'Email',
|
|
213
|
+
'ui.auth.password': 'Password',
|
|
214
|
+
'ui.auth.forgotPassword': 'Forgot your password?',
|
|
215
|
+
'ui.auth.submit': 'Sign in',
|
|
216
|
+
'ui.auth.socialProviders': 'Sign in with an external provider',
|
|
217
|
+
'ui.auth.orContinueWith': 'Or continue with',
|
|
218
|
+
'ui.auth.signInWith': 'Sign in with {provider}',
|
|
219
|
+
'ui.auth.noAccount': "Don't have an account?",
|
|
220
|
+
'ui.auth.createAccount': 'Create account',
|
|
221
|
+
'ui.home.title': 'Workspace · {app}',
|
|
222
|
+
'ui.home.description': 'Your business modules and account settings in one place.',
|
|
223
|
+
'ui.home.account': 'My account',
|
|
224
|
+
'ui.home.notifications': 'Notifications',
|
|
225
|
+
'ui.home.startSetup': 'Start initial setup',
|
|
226
|
+
'ui.home.manageSystem': 'Manage the system',
|
|
227
|
+
'ui.home.open': 'Open {resource}',
|
|
228
|
+
'ui.home.empty': 'The business modules available to your account will appear here.',
|
|
229
|
+
'ui.list.filterFailed': 'Could not apply the filter. Review the values and try again.',
|
|
230
|
+
'ui.list.exportResults': 'Export results',
|
|
231
|
+
'ui.list.exporting': 'Exporting...',
|
|
232
|
+
'ui.list.exportFailed': 'Could not export the results. Try again.',
|
|
233
|
+
'ui.list.activeFilters': 'Applied filters',
|
|
234
|
+
'ui.list.removeFilter': 'Remove the {field} filter',
|
|
235
|
+
'ui.list.rangeBoth': 'From {from} to {to}',
|
|
236
|
+
'ui.list.rangeFrom': 'From {from}',
|
|
237
|
+
'ui.list.rangeTo': 'To {to}',
|
|
238
|
+
'ui.list.empty': 'Empty',
|
|
239
|
+
'ui.list.notEmpty': 'Not empty',
|
|
240
|
+
'ui.list.inLimit': 'You can choose at most {count} values.',
|
|
241
|
+
'ui.list.valueOf': '{field} value',
|
|
242
|
+
'ui.list.emptyValues': 'Empty values',
|
|
243
|
+
'ui.list.removeFilters': 'Remove filter',
|
|
244
|
+
'ui.list.apply': 'Apply',
|
|
245
|
+
'ui.list.invalidValue': 'Invalid value',
|
|
246
|
+
'ui.list.from': 'From',
|
|
247
|
+
'ui.list.to': 'To',
|
|
248
|
+
'ui.list.boundOf': '{bound} · {field}',
|
|
249
|
+
'ui.list.anyOf': 'Any of',
|
|
250
|
+
'ui.list.contains': 'Contains',
|
|
251
|
+
'ui.list.unsupportedFilter': 'This field does not support this kind of filter.',
|
|
252
|
+
'ui.list.searchOptions': 'Search options',
|
|
253
|
+
'ui.list.noOptions': 'No matching options',
|
|
254
|
+
'ui.list.typeValue': 'Type a value, then press Enter',
|
|
255
|
+
'ui.list.removeValue': 'Remove {value}',
|
|
256
|
+
'ui.list.selectAll': 'Select all shown records',
|
|
257
|
+
'ui.list.selectRecord': 'Select record {id}',
|
|
258
|
+
'ui.bulk.title': 'Bulk actions',
|
|
259
|
+
'ui.bulk.selected': '{count} selected',
|
|
260
|
+
'ui.bulk.clear': 'Clear selection',
|
|
261
|
+
'ui.bulk.limit': 'An action can run on at most {count} records at a time.',
|
|
262
|
+
'ui.bulk.perRow': 'Your permission is checked for each record separately.',
|
|
263
|
+
'ui.bulk.succeeded': 'Done on {count} records',
|
|
264
|
+
'ui.bulk.failed': 'The action could not run on {count} records',
|
|
265
|
+
'ui.bulk.defined': 'The action “{action}” will run on {count} selected records.',
|
|
266
|
+
'ui.bulk.delete': 'Delete',
|
|
267
|
+
'ui.bulk.restore': 'Restore',
|
|
268
|
+
'ui.bulk.submit': 'Submit',
|
|
269
|
+
'ui.bulk.cancel': 'Cancel document',
|
|
270
|
+
'ui.bulk.deleteDescription': '{count} selected records will be deleted and hidden from lists.',
|
|
271
|
+
'ui.bulk.restoreDescription': '{count} deleted records will be restored to the active records.',
|
|
272
|
+
'ui.bulk.submitDescription': '{count} selected documents will be submitted and can no longer be edited.',
|
|
273
|
+
'ui.bulk.cancelDescription': '{count} selected documents will be cancelled and no longer counted.',
|
|
274
|
+
'ui.trash.title': 'Deleted records',
|
|
275
|
+
'ui.trash.titleOf': 'Deleted records · {resource}',
|
|
276
|
+
'ui.trash.listOf': 'Deleted {resource}',
|
|
277
|
+
'ui.trash.subtitle': 'Deleted records within your scope; restore what you need to the active records.',
|
|
278
|
+
'ui.trash.active': 'Active records',
|
|
279
|
+
'ui.trash.empty': 'No deleted records',
|
|
280
|
+
'ui.trash.emptyHint': 'Deleted records within your scope appear here for restoring.',
|
|
281
|
+
'ui.trash.restoreRecord': 'Restore {record}',
|
|
282
|
+
'ui.trash.restoreTitle': 'Restore record',
|
|
283
|
+
'ui.trash.restoreDescription': '{record} will return to the active records and appear in lists.',
|
|
284
|
+
'ui.trash.restored': 'Record restored',
|
|
285
|
+
'ui.trash.restoreFailed': 'Could not restore the record. Check your permissions and try again.',
|
|
286
|
+
'ui.dashboard.scope': 'Figures are computed within your permission scope',
|
|
287
|
+
'ui.dashboard.switcher': 'Dashboards',
|
|
288
|
+
'ui.dashboard.none': 'No indicators are available to you on this dashboard',
|
|
289
|
+
'ui.dashboard.noneHint': 'Indicators appear when your permissions allow reading their records.',
|
|
290
|
+
'ui.dashboard.totals': 'Totals',
|
|
291
|
+
'ui.dashboard.grouped': 'Indicators by category',
|
|
292
|
+
'ui.dashboard.noData': 'No data within your scope',
|
|
293
|
+
'ui.dashboard.noValue': 'No value',
|
|
294
|
+
'ui.dashboard.meter': '{label}: {value}',
|
|
295
|
+
'ui.dashboard.truncated': 'Only the highest categories are shown.',
|
|
296
|
+
'ui.dashboard.openRecords': 'Open the {label} records',
|
|
297
|
+
'ui.attachment.preview': 'Preview',
|
|
298
|
+
'ui.attachment.previewNamed': 'Preview {name}',
|
|
299
|
+
'ui.attachment.previewDescription': 'Attachment preview. You can download it with the button below.',
|
|
300
|
+
'ui.attachment.download': 'Download',
|
|
301
|
+
'ui.attachment.previewLoading': 'Loading the preview…',
|
|
302
|
+
'ui.attachment.previewFailed': 'The preview could not be loaded. You can download the file.',
|
|
303
|
+
'ui.attachment.previewTruncated': 'The preview shows the start of the file only. Download it to read all of it.',
|
|
304
|
+
'ui.attachment.tooMany': 'You can attach at most {max} files',
|
|
305
|
+
'ui.attachment.moveUp': 'Move {name} up',
|
|
306
|
+
'ui.attachment.moveDown': 'Move {name} down',
|
|
307
|
+
'ui.attachment.removeNamed': 'Remove {name}',
|
|
308
|
+
'ui.attachment.uploadingNamed': 'Uploading {name} {progress}%',
|
|
309
|
+
'ui.attachment.addFiles': 'Add files',
|
|
310
|
+
'ui.attachment.count': '{count} of {max} files',
|
|
311
|
+
'ui.attachment.unknownFile': 'File {id}',
|
|
312
|
+
'ui.attachment.added': 'Added {name}',
|
|
313
|
+
'ui.attachment.removed': 'Removed {name}',
|
|
314
|
+
'ui.attachment.moved': 'Moved {name} to position {position}',
|
|
315
|
+
// Print templates (ADR 048).
|
|
316
|
+
'ui.print.title': 'Print record',
|
|
317
|
+
'ui.print.description': 'Choose a print template and a document format.',
|
|
318
|
+
'ui.print.loadFailed': 'Could not load the print templates.',
|
|
319
|
+
'ui.print.retry': 'Try again',
|
|
320
|
+
'ui.print.loading': 'Loading templates…',
|
|
321
|
+
'ui.print.template': 'Print template',
|
|
322
|
+
'ui.print.format': 'Document format',
|
|
323
|
+
'ui.print.html': 'Printable page',
|
|
324
|
+
'ui.print.pdfUnavailable': 'PDF conversion is not enabled; print from the browser.',
|
|
325
|
+
'ui.print.open': 'Open for printing',
|
|
326
|
+
'ui.activity.printed': 'Printed with a template',
|
|
327
|
+
'ui.admin.printTemplates': 'Print templates',
|
|
328
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** The part of VineJS's FieldContext the provider reads. */
|
|
2
|
+
type ValidationField = {
|
|
3
|
+
name: string | number;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A VineJS messages provider that answers in the current language (see
|
|
7
|
+
* runWithLanguage): Arabic by default, the user's language when it is enabled and
|
|
8
|
+
* translates the rule. Assign it to `vine.messagesProvider` before validators are
|
|
9
|
+
* created. A rule without a catalog entry keeps its own message, interpolated the way
|
|
10
|
+
* VineJS does and translated when it matches a catalog text exactly.
|
|
11
|
+
*/
|
|
12
|
+
export declare class CatalogMessagesProvider {
|
|
13
|
+
getMessage(rawMessage: string, rule: string, field: ValidationField, args?: Record<string, unknown>): string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Makes `vine` answer through the catalog: new validators get a CatalogMessagesProvider,
|
|
17
|
+
* and the validators of `resources` created earlier with VineJS's default provider are
|
|
18
|
+
* switched to it (applications load modules while reading their configuration, before
|
|
19
|
+
* any preload runs). A validator with its own messages provider keeps it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function installCatalogMessages(vine: {
|
|
22
|
+
messagesProvider: unknown;
|
|
23
|
+
}, resources?: readonly {
|
|
24
|
+
validator?: unknown;
|
|
25
|
+
}[]): CatalogMessagesProvider;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { arabicMessages } from './ar.js';
|
|
2
|
+
import { currentLanguage, localizeText, translate } from './catalog.js';
|
|
3
|
+
/** VineJS's own `{{ name }}` interpolation, for messages the catalog does not translate. */
|
|
4
|
+
function vineTemplate(message, field, args) {
|
|
5
|
+
if (!message.includes('{{'))
|
|
6
|
+
return message;
|
|
7
|
+
const data = { field: field.name, ...args };
|
|
8
|
+
return message.replace(/(\\)?{{(.*?)}}/g, (match, escaped, path) => {
|
|
9
|
+
if (escaped)
|
|
10
|
+
return match.slice(1);
|
|
11
|
+
let value = data;
|
|
12
|
+
for (const token of path.trim().split('.')) {
|
|
13
|
+
if (value === null || typeof value !== 'object' || !Object.hasOwn(value, token))
|
|
14
|
+
return '';
|
|
15
|
+
value = value[token];
|
|
16
|
+
}
|
|
17
|
+
return Array.isArray(value) ? value.join('، ') : String(value ?? '');
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function params(args) {
|
|
21
|
+
const values = {};
|
|
22
|
+
for (const [key, value] of Object.entries(args ?? {}))
|
|
23
|
+
if (typeof value === 'string' || typeof value === 'number')
|
|
24
|
+
values[key] = value;
|
|
25
|
+
else if (Array.isArray(value))
|
|
26
|
+
values[key] = value.join('، ');
|
|
27
|
+
return values;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A VineJS messages provider that answers in the current language (see
|
|
31
|
+
* runWithLanguage): Arabic by default, the user's language when it is enabled and
|
|
32
|
+
* translates the rule. Assign it to `vine.messagesProvider` before validators are
|
|
33
|
+
* created. A rule without a catalog entry keeps its own message, interpolated the way
|
|
34
|
+
* VineJS does and translated when it matches a catalog text exactly.
|
|
35
|
+
*/
|
|
36
|
+
export class CatalogMessagesProvider {
|
|
37
|
+
getMessage(rawMessage, rule, field, args) {
|
|
38
|
+
const key = `validation.${rule}`;
|
|
39
|
+
if (Object.hasOwn(arabicMessages, key))
|
|
40
|
+
return translate(key, currentLanguage(), params(args));
|
|
41
|
+
return localizeText(vineTemplate(rawMessage, field, args));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Makes `vine` answer through the catalog: new validators get a CatalogMessagesProvider,
|
|
46
|
+
* and the validators of `resources` created earlier with VineJS's default provider are
|
|
47
|
+
* switched to it (applications load modules while reading their configuration, before
|
|
48
|
+
* any preload runs). A validator with its own messages provider keeps it.
|
|
49
|
+
*/
|
|
50
|
+
export function installCatalogMessages(vine, resources = []) {
|
|
51
|
+
const previous = vine.messagesProvider;
|
|
52
|
+
const provider = new CatalogMessagesProvider();
|
|
53
|
+
vine.messagesProvider = provider;
|
|
54
|
+
for (const { validator } of resources) {
|
|
55
|
+
const candidate = validator;
|
|
56
|
+
if (candidate && candidate.messagesProvider === previous)
|
|
57
|
+
candidate.messagesProvider = provider;
|
|
58
|
+
}
|
|
59
|
+
return provider;
|
|
60
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ResourceRegistry } from '../resource/registry.js';
|
|
2
|
+
import type { Label, RecordData } from '../resource/types.js';
|
|
3
|
+
import { type Actor } from '../auth/ability.js';
|
|
4
|
+
import type { ResourceService } from '../admin/resource_service.js';
|
|
5
|
+
/** A resource-defined bulk action: an ordinary update that writes fixed values (ADR 046). */
|
|
6
|
+
export type BulkActionDefinition = {
|
|
7
|
+
/** camelCase key, unique per resource and never a built-in action name. */
|
|
8
|
+
key: string;
|
|
9
|
+
label: Label;
|
|
10
|
+
/** Field values written to every selected record, through ResourceService.save. */
|
|
11
|
+
values: RecordData;
|
|
12
|
+
/** Confirmation question shown before the action runs. */
|
|
13
|
+
confirm?: Label;
|
|
14
|
+
destructive?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type BulkActionSet = {
|
|
17
|
+
resource: string;
|
|
18
|
+
actions: readonly BulkActionDefinition[];
|
|
19
|
+
};
|
|
20
|
+
/** One action the list may offer the actor; per-row refusal is still decided per row. */
|
|
21
|
+
export type BulkActionOption = {
|
|
22
|
+
key: string;
|
|
23
|
+
label: string;
|
|
24
|
+
/** delete, restore, submit and cancel are built in; others come from defineBulkActions. */
|
|
25
|
+
builtIn: boolean;
|
|
26
|
+
/** `trash` actions apply to the trashed list (restore); `records` to the live list. */
|
|
27
|
+
scope: 'records' | 'trash';
|
|
28
|
+
confirm: string | null;
|
|
29
|
+
destructive: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type BulkRequest = {
|
|
32
|
+
action: unknown;
|
|
33
|
+
ids: unknown;
|
|
34
|
+
/** Versioned resources: the version of each selected record, by id. */
|
|
35
|
+
versions?: unknown;
|
|
36
|
+
};
|
|
37
|
+
export type BulkFailure = {
|
|
38
|
+
id: number;
|
|
39
|
+
code: string;
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
export type BulkActionsOptions = {
|
|
43
|
+
/**
|
|
44
|
+
* Receives an unexpected row failure (not an AdulaError, validation or constraint
|
|
45
|
+
* error); pass the application logger. Defaults to console.error with no record data.
|
|
46
|
+
*/
|
|
47
|
+
report?: (error: unknown, context: {
|
|
48
|
+
resource: string;
|
|
49
|
+
action: string;
|
|
50
|
+
id: number;
|
|
51
|
+
}) => void;
|
|
52
|
+
};
|
|
53
|
+
export type BulkResult = {
|
|
54
|
+
succeeded: number[];
|
|
55
|
+
failed: BulkFailure[];
|
|
56
|
+
};
|
|
57
|
+
/** Most records one bulk request may change. */
|
|
58
|
+
export declare const BULK_ID_LIMIT = 100;
|
|
59
|
+
/**
|
|
60
|
+
* Declares bulk actions for one resource. Register the result on the BulkActions service.
|
|
61
|
+
* Definitions are checked here for shape and against the resource when registered.
|
|
62
|
+
*/
|
|
63
|
+
export declare function defineBulkActions(resource: string, actions: BulkActionDefinition[]): BulkActionSet;
|
|
64
|
+
/**
|
|
65
|
+
* Runs one action over selected records. Every record runs in its own transaction
|
|
66
|
+
* through the ordinary paths (transition, restore, save), with the actor's per-row
|
|
67
|
+
* policy check and audit, so one refused row does not undo the others.
|
|
68
|
+
*/
|
|
69
|
+
export declare class BulkActions {
|
|
70
|
+
private registry;
|
|
71
|
+
private resources;
|
|
72
|
+
private options;
|
|
73
|
+
private defined;
|
|
74
|
+
constructor(registry: ResourceRegistry, resources: ResourceService, definitions?: readonly BulkActionSet[], options?: BulkActionsOptions);
|
|
75
|
+
/**
|
|
76
|
+
* Checks bulk action sets against the registered resources: each set names a resource,
|
|
77
|
+
* keys are unique per resource and every value is a writable form field value. Call it
|
|
78
|
+
* when the application loads its definitions, so a bad definition fails at boot.
|
|
79
|
+
*/
|
|
80
|
+
static validate(registry: ResourceRegistry, definitions: readonly BulkActionSet[]): Map<string, Map<string, BulkActionDefinition>>;
|
|
81
|
+
/**
|
|
82
|
+
* The actions the actor may offer on this resource's list (resource-level permission).
|
|
83
|
+
* 403 E_FORBIDDEN when the actor may not view the resource at all.
|
|
84
|
+
*/
|
|
85
|
+
available(name: string, actor: Actor): BulkActionOption[];
|
|
86
|
+
run(name: string, actor: Actor, request: BulkRequest): Promise<BulkResult>;
|
|
87
|
+
private one;
|
|
88
|
+
private report;
|
|
89
|
+
}
|