RED-6510 - WIP on "Lazy load help mode elements"

This commit is contained in:
Valentin Mihai 2023-04-08 22:49:11 +03:00
parent 4f31a38578
commit 85394e1902
5 changed files with 183 additions and 102 deletions

View File

@ -6,7 +6,7 @@
[attr.aria-expanded]="mode === listingModes.table"
[tooltip]="'view-mode.list' | translate"
[greySelected]="true"
[attr.help-mode-key]="'document_features_in_dossier'"
[attr.help-mode-key]="'document_features_in_dossier_view'"
icon="iqser:list"
></iqser-circle-button>

View File

@ -165,34 +165,34 @@ export class EditDossierDialogComponent extends BaseDialogComponent implements A
title: _('edit-dossier-dialog.nav-items.general-info'),
sideNavTitle: _('edit-dossier-dialog.nav-items.dossier-info'),
readonly: !this._dossier.isActive || !this._permissionsService.canEditDossier(this._dossier),
helpModeKey: 'edit_dossier_dossier_info_dialog',
helpModeKey: 'edit_dossier_dossier_info_DIALOG',
},
{
key: 'downloadPackage',
title: _('edit-dossier-dialog.nav-items.choose-download'),
sideNavTitle: _('edit-dossier-dialog.nav-items.download-package'),
readonly: !this._permissionsService.canEditDossier(this._dossier),
helpModeKey: 'edit_dossier_download_package_dialog',
helpModeKey: 'edit_dossier_download_package_DIALOG',
},
{
key: 'dossierDictionary',
sideNavTitle: _('edit-dossier-dialog.nav-items.dictionary'),
title: _('edit-dossier-dialog.nav-items.dossier-dictionary'),
readonly: !this._permissionsService.canEditDossierDictionary(this._dossier),
helpModeKey: 'edit_dossier_dossier_dictionary_dialog',
helpModeKey: 'edit_dossier_dossier_dictionary_DIALOG',
},
{
key: 'members',
title: _('edit-dossier-dialog.nav-items.team-members'),
sideNavTitle: _('edit-dossier-dialog.nav-items.members'),
readonly: !this._permissionsService.canEditTeamMembers(),
helpModeKey: 'edit_dossier_members_dialog',
helpModeKey: 'edit_dossier_members_DIALOG',
},
{
key: 'dossierAttributes',
title: _('edit-dossier-dialog.nav-items.dossier-attributes'),
readonly: !this._permissionsService.canEditDossierAttributes(this._dossier),
helpModeKey: 'edit_dossier_dossier_attributes_dialog',
helpModeKey: 'edit_dossier_dossier_attributes_DIALOG',
},
];
}

View File

@ -85,7 +85,7 @@
[icon]="'iqser:trash'"
[label]="'dossier-listing.delete.action' | translate"
[type]="iconButtonTypes.dark"
[attr.help-mode-key]="'edit_dossier_delete_dossier'"
[attr.help-mode-key]="'edit_dossier_delete_dossier_DIALOG'"
></iqser-icon-button>
<iqser-icon-button
@ -94,7 +94,7 @@
[icon]="'red:archive'"
[label]="'dossier-listing.archive.action' | translate"
[type]="iconButtonTypes.dark"
[attr.help-mode-key]="'edit_dossier_archive_dossier'"
[attr.help-mode-key]="'edit_dossier_archive_dossier_DIALOG'"
></iqser-icon-button>
</div>
</form>

View File

@ -1,290 +1,371 @@
[
{
"key": "document_features_in_dossier",
"elementKey": "document_features_in_dossier_view",
"documentKey": "document_features_in_dossier"
},
{
"elementKey": "document_features_in_dossier",
"documentKey": "document_features_in_dossier",
"scrollableParentView": "VIRTUAL_SCROLL"
},
{
"key": "download_dossier",
"elementKey": "download_dossier",
"documentKey": "download_dossier",
"scrollableParentView": "VIRTUAL_SCROLL"
},
{
"key": "dashboard_in_dossier",
"elementKey": "dashboard_in_dossier",
"documentKey": "dashboard_in_dossier",
"overlappingElements": ["USER_MENU"]
},
{
"key": "filter_document_list"
"elementKey": "filter_document_list",
"documentKey": "filter_document_list"
},
{
"key": "filter_dossier_list"
"elementKey": "filter_dossier_list",
"documentKey": "filter_dossier_list"
},
{
"key": "navigate_in_breadcrumbs"
"elementKey": "navigate_in_breadcrumbs",
"documentKey": "navigate_in_breadcrumbs"
},
{
"key": "new_dossier_button",
"elementKey": "new_dossier_button",
"documentKey": "new_dossier_button",
"overlappingElements": ["USER_MENU"]
},
{
"key": "open_notifications"
"elementKey": "open_notifications",
"documentKey": "open_notifications"
},
{
"key": "open_usermenu"
"elementKey": "open_usermenu",
"documentKey": "open_usermenu"
},
{
"key": "views"
"elementKey": "views",
"documentKey": "views"
},
{
"key": "search_in_entire_application"
"elementKey": "search_in_entire_application",
"documentKey": "search_in_entire_application"
},
{
"key": "edit_dossier_in_dossier",
"elementKey": "edit_dossier_in_dossier",
"documentKey": "edit_dossier_in_dossier",
"overlappingElements": ["USER_MENU"]
},
{
"key": "document_features_in_editor",
"elementKey": "document_features_in_editor",
"documentKey": "document_features_in_editor",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_dossier_dossier_attributes",
"dialog": true
"elementKey": "document_list",
"documentKey": "document_list"
},
{
"key": "document_list"
"elementKey": "edit_dossier_dossier_info",
"documentKey": "edit_dossier_dossier_info",
"scrollableParentView": "VIRTUAL_SCROLL"
},
{
"key": "edit_dossier_dossier_info",
"scrollableParentView": "VIRTUAL_SCROLL",
"dialog": true
"elementKey": "edit_dossier_dossier_info_DIALOG",
"documentKey": "edit_dossier_dossier_info"
},
{
"key": "edit_dossier_delete_dossier",
"dialog": true
"elementKey": "edit_dossier_download_package_DIALOG",
"documentKey": "edit_dossier_download_package"
},
{
"key": "edit_dossier_archive_dossier",
"dialog": true
"elementKey": "edit_dossier_dossier_dictionary_DIALOG",
"documentKey": "edit_dossier_dossier_dictionary"
},
{
"key": "edit_dossier_download_package",
"dialog": true
"elementKey": "edit_dossier_members",
"documentKey": "edit_dossier_members",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_dossier_members",
"overlappingElements": ["USER_MENU"],
"dialog": true
"elementKey": "edit_dossier_members_DIALOG",
"documentKey": "edit_dossier_members"
},
{
"key": "highlights"
"elementKey": "edit_dossier_dossier_attributes_DIALOG",
"documentKey": "edit_dossier_dossier_attributes"
},
{
"key": "redaction",
"elementKey": "edit_dossier_delete_dossier_DIALOG",
"documentKey": "edit_dossier_delete_dossier"
},
{
"elementKey": "edit_dossier_archive_dossier_DIALOG",
"documentKey": "edit_dossier_archive_dossier"
},
{
"elementKey": "highlights",
"documentKey": "highlights"
},
{
"elementKey": "redaction",
"documentKey": "redaction",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "recommendation",
"elementKey": "recommendation",
"documentKey": "recommendation",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "skipped",
"elementKey": "skipped",
"documentKey": "skipped",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "hint_text",
"elementKey": "hint_text",
"documentKey": "hint_text",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "hint_picture",
"elementKey": "hint_picture",
"documentKey": "hint_picture",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "picture",
"elementKey": "picture",
"documentKey": "picture",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "hint_images",
"elementKey": "hint_images",
"documentKey": "hint_images",
"scrollableParentView": "ANNOTATIONS_LIST",
"overlappingElements": ["USER_MENU", "WORKLOAD_FILTER", "DOCUMENT_INFO"]
},
{
"key": "workload_in_editor",
"elementKey": "workload_in_editor",
"documentKey": "workload_in_editor",
"overlappingElements": ["USER_MENU", "DOCUMENT_INFO"]
},
{
"key": "user_account"
"elementKey": "user_account",
"documentKey": "user_account"
},
{
"key": "my_downloads"
"elementKey": "my_downloads",
"documentKey": "my_downloads"
},
{
"key": "trash"
"elementKey": "trash",
"documentKey": "trash"
},
{
"key": "dossier_overview"
"elementKey": "dossier_overview",
"documentKey": "dossier_overview"
},
{
"key": "home"
"elementKey": "home",
"documentKey": "home"
},
{
"key": "workflow_view"
"elementKey": "workflow_view",
"documentKey": "workflow_view"
},
{
"key": "document_upload"
"elementKey": "document_upload",
"documentKey": "document_upload"
},
{
"key": "edit_dossier_dossier_dictionary",
"dialog": true
"elementKey": "help_mode",
"documentKey": "help_mode"
},
{
"key": "help_mode"
},
{
"key": "dossier",
"elementKey": "dossier",
"documentKey": "dossier",
"scrollableParentView": "VIRTUAL_SCROLL"
},
{
"key": "document_in_editor",
"elementKey": "document_in_editor",
"documentKey": "document_in_editor",
"scrollableParentView": "VIRTUAL_SCROLL"
},
{
"key": "dossier_list"
"elementKey": "dossier_list",
"documentKey": "dossier_list"
},
{
"key": "dossier_templates"
"elementKey": "dossier_templates",
"documentKey": "dossier_templates"
},
{
"key": "edit_clone_delete_dossier_templates",
"elementKey": "edit_clone_delete_dossier_templates",
"documentKey": "edit_clone_delete_dossier_templates",
"overlappingElements": ["USER_MENU"]
},
{
"key": "dossier_templates_info"
"elementKey": "dossier_templates_info",
"documentKey": "dossier_templates_info"
},
{
"key": "entities"
"elementKey": "entities",
"documentKey": "entities"
},
{
"key": "edit_delete_entities",
"elementKey": "edit_delete_entities",
"documentKey": "edit_delete_entities",
"overlappingElements": ["USER_MENU"]
},
{
"key": "create_new_entity",
"elementKey": "create_new_entity",
"documentKey": "create_new_entity",
"overlappingElements": ["USER_MENU"]
},
{
"key": "default_colors",
"elementKey": "default_colors",
"documentKey": "default_colors",
"overlappingElements": ["USER_MENU"]
},
{
"key": "watermarks"
"elementKey": "watermarks",
"documentKey": "watermarks"
},
{
"key": "create_new_watermark",
"elementKey": "create_new_watermark",
"documentKey": "create_new_watermark",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_delete_watermark",
"elementKey": "edit_delete_watermark",
"documentKey": "edit_delete_watermark",
"overlappingElements": ["USER_MENU"]
},
{
"key": "file_attributes"
"elementKey": "file_attributes",
"documentKey": "file_attributes"
},
{
"key": "create_new_file_attribute",
"elementKey": "create_new_file_attribute",
"documentKey": "create_new_file_attribute",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_delete_file_attribute",
"elementKey": "edit_delete_file_attribute",
"documentKey": "edit_delete_file_attribute",
"overlappingElements": ["USER_MENU"]
},
{
"key": "upload_file_attribute",
"elementKey": "upload_file_attribute",
"documentKey": "upload_file_attribute",
"overlappingElements": ["USER_MENU"]
},
{
"key": "dossier_attributes"
"elementKey": "dossier_attributes",
"documentKey": "dossier_attributes"
},
{
"key": "create_new_dossier_attribute",
"elementKey": "create_new_dossier_attribute",
"documentKey": "create_new_dossier_attribute",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_delete_dossier_attributes",
"elementKey": "edit_delete_dossier_attributes",
"documentKey": "edit_delete_dossier_attributes",
"overlappingElements": ["USER_MENU"]
},
{
"key": "dossier_states"
"elementKey": "dossier_states",
"documentKey": "dossier_states"
},
{
"key": "create_new_dossier_state"
"elementKey": "create_new_dossier_state",
"documentKey": "create_new_dossier_state"
},
{
"key": "edit_delete_dossier_state"
"elementKey": "edit_delete_dossier_state",
"documentKey": "edit_delete_dossier_state"
},
{
"key": "reports",
"elementKey": "reports",
"documentKey": "reports",
"overlappingElements": ["USER_MENU"]
},
{
"key": "justifications"
"elementKey": "justifications",
"documentKey": "justifications"
},
{
"key": "digital_signature"
"elementKey": "digital_signature",
"documentKey": "digital_signature"
},
{
"key": "license_information",
"elementKey": "license_information",
"documentKey": "license_information",
"overlappingElements": ["USER_MENU"]
},
{
"key": "audit"
"elementKey": "audit",
"documentKey": "audit"
},
{
"key": "user_management"
"elementKey": "user_management",
"documentKey": "user_management"
},
{
"key": "create_user",
"elementKey": "create_user",
"documentKey": "create_user",
"overlappingElements": ["USER_MENU"]
},
{
"key": "edit_delete_user"
"elementKey": "edit_delete_user",
"documentKey": "edit_delete_user"
},
{
"key": "activate_deactivate_user"
"elementKey": "activate_deactivate_user",
"documentKey": "activate_deactivate_user"
},
{
"key": "dossier_permissions",
"elementKey": "dossier_permissions",
"documentKey": "dossier_permissions",
"overlappingElements": ["USER_MENU"]
},
{
"key": "configurations"
"elementKey": "configurations",
"documentKey": "configurations"
},
{
"key": "general_configurations"
"elementKey": "general_configurations",
"documentKey": "general_configurations"
},
{
"key": "system_configurations"
"elementKey": "system_configurations",
"documentKey": "system_configurations"
},
{
"key": "smtp_configurations"
"elementKey": "smtp_configurations",
"documentKey": "smtp_configurations"
},
{
"key": "dictionary_entity"
"elementKey": "dictionary_entity",
"documentKey": "dictionary_entity"
},
{
"key": "false_recommendations_entity"
"elementKey": "false_recommendations_entity",
"documentKey": "false_recommendations_entity"
},
{
"key": "enable_disable_watermark"
"elementKey": "enable_disable_watermark",
"documentKey": "enable_disable_watermark"
},
{
"key": "editor_document_features",
"elementKey": "editor_document_features",
"documentKey": "editor_document_features",
"overlappingElements": ["USER_MENU"]
},
{
"key": "pdf_features"
}
]

@ -1 +1 @@
Subproject commit 8a61630a37f83c68474922bd049037e0010f13e7
Subproject commit 6deb24dc4171290b9145eb266abe127449fb9a48