complexqa_frontend_core 1.31.6 → 2.0.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 +83 -0
- package/package.json +30 -26
- package/{publish → src}/api/api_abstract_class.js +22 -10
- package/{publish → src}/api/api_abstract_element_class.js +19 -1
- package/{publish → src}/api/autotest_case_api.js +2 -2
- package/{publish → src}/api/autotest_result_api.js +2 -2
- package/{publish → src}/api/autotest_run_api.js +2 -2
- package/{publish → src}/api/autotest_step_api.js +2 -2
- package/{publish → src}/api/autotest_suite_api.js +2 -2
- package/{publish → src}/api/bug_api.js +1 -1
- package/{publish → src}/api/functional_api.js +2 -2
- package/{publish → src}/api/index.js +11 -5
- package/{publish → src}/api/object_repository_element_api.js +2 -2
- package/{publish → src}/api/object_repository_folder_api.js +2 -2
- package/{publish → src}/api/object_repository_page_api.js +2 -2
- package/{publish → src}/api/project_api.js +2 -2
- package/{publish → src}/api/public_text_document_api.js +2 -2
- package/{publish → src}/api/team_management_api.js +1 -1
- package/{publish → src}/api/team_member_api.js +2 -2
- package/{publish → src}/api/test_case_api.js +2 -2
- package/{publish → src}/api/test_case_step_api.js +2 -2
- package/{publish → src}/api/test_plan_api.js +2 -2
- package/{publish → src}/api/test_run_api.js +2 -2
- package/{publish → src}/api/test_run_result_api.js +2 -2
- package/{publish → src}/api/test_suite_api.js +2 -2
- package/{publish → src}/api/text_document_api.js +9 -9
- package/src/api/typeApiBinding.js +41 -0
- package/{publish → src}/exceptions/0_BaseException.js +26 -17
- package/{publish → src}/index.js +2 -46
- package/{publish → src}/services/FileAppService.js +8 -5
- package/{publish → src}/services/UserService.js +9 -2
- package/{publish → src}/types/core/0_familyGeneralElement.js +56 -22
- package/{publish → src}/types/core/1_familyRelation.js +3 -0
- package/{publish → src}/types/family_context/typeBrowserContext.js +1 -0
- package/{publish → src}/types/family_context/typeDeploymentTargetContext.js +2 -0
- package/{publish → src}/types/family_context/typeDeviceContext.js +2 -0
- package/{publish → src}/types/family_context/typeExecutionContext.js +2 -0
- package/{publish → src}/types/family_context/typeLocaleContext.js +1 -0
- package/{publish → src}/types/family_context/typeOsContext.js +2 -0
- package/{publish → src}/types/family_context/typeScreenResolutionContext.js +2 -0
- package/{publish → src}/types/family_context/typeUserAgentContext.js +2 -0
- package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCatalog.js +30 -3
- package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepAction.js +10 -1
- package/{publish → src}/types/family_elements/mock_data/mock_data_typeProject.js +2 -2
- package/{publish → src}/types/family_elements/typeAttachment.js +1 -0
- package/{publish → src}/types/family_elements/typeAutomationTestEnvironment.js +2 -0
- package/{publish → src}/types/family_elements/typeAutomationTestPlan.js +1 -0
- package/{publish → src}/types/family_elements/typeAutomationTestStep.js +2 -0
- package/{publish → src}/types/family_elements/typeAutomationTestStepTarget.js +1 -0
- package/{publish → src}/types/family_elements/typeAutotestCase.js +5 -3
- package/{publish → src}/types/family_elements/typeAutotestResult.js +2 -0
- package/{publish → src}/types/family_elements/typeAutotestRun.js +3 -1
- package/{publish → src}/types/family_elements/typeAutotestStep.js +6 -5
- package/{publish → src}/types/family_elements/typeAutotestStepTarget.js +1 -0
- package/{publish → src}/types/family_elements/typeBug.js +4 -1
- package/{publish → src}/types/family_elements/typeCustomProperty.js +1 -0
- package/{publish → src}/types/family_elements/typeFunctional.js +3 -1
- package/{publish → src}/types/family_elements/typeFunctionalGroup.js +3 -1
- package/{publish → src}/types/family_elements/typeMilestone.js +3 -1
- package/{publish → src}/types/family_elements/typeObjectRepositoryElement.js +1 -0
- package/{publish → src}/types/family_elements/typeObjectRepositoryFolder.js +1 -0
- package/{publish → src}/types/family_elements/typePrice.js +1 -0
- package/{publish → src}/types/family_elements/typeProject.js +10 -13
- package/{publish → src}/types/family_elements/typeProjectDocument.js +3 -1
- package/{publish → src}/types/family_elements/typeProjectTestData.js +2 -1
- package/{publish → src}/types/family_elements/typeProjectUserRole.js +3 -1
- package/{publish → src}/types/family_elements/typeTask.js +3 -2
- package/{publish → src}/types/family_elements/typeTeam.js +6 -4
- package/src/types/family_elements/typeTeamDomain.js +175 -0
- package/{publish → src}/types/family_elements/typeTeamMember.js +4 -2
- package/{publish → src}/types/family_elements/typeTeamUserRole.js +2 -1
- package/{publish → src}/types/family_elements/typeTestAccount.js +2 -1
- package/{publish → src}/types/family_elements/typeTestCase.js +4 -1
- package/{publish → src}/types/family_elements/typeTestCaseStep.js +5 -3
- package/{publish → src}/types/family_elements/typeTestPlan.js +2 -1
- package/{publish → src}/types/family_elements/typeTestRun.js +5 -2
- package/{publish → src}/types/family_elements/typeTestRunResult.js +4 -1
- package/{publish → src}/types/family_elements/typeTestSuite.js +2 -1
- package/{publish → src}/types/family_elements/typeUser.js +3 -1
- package/{publish → src}/types/family_events/typeEvent.js +2 -0
- package/{publish → src}/types/family_files/typeFile.js +2 -0
- package/{publish → src}/types/family_files/typeTextDocument.js +3 -0
- package/{publish → src}/types/family_files/typeTextDocumentFolder.js +1 -0
- package/{publish → src}/types/family_relation/typeBugRelation.js +1 -0
- package/{publish → src}/types/family_relation/typeCustomPropertyValue.js +1 -0
- package/{publish → src}/types/family_relation/typeTagRelation.js +1 -0
- package/{publish → src}/types/family_service/typeFOR.js +3 -2
- package/{publish → src}/types/family_service/typeFilter.js +2 -1
- package/{publish → src}/types/family_service/typeFunctionCallback.js +2 -1
- package/{publish → src}/types/family_utils/typeUtilExecution.js +3 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionEvent.js +2 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMulti.js +4 -2
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCapture.js +1 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.js +1 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.js +1 -0
- package/src/types/family_utils/typeUtilExecutionUrlInspect.js +202 -0
- package/src/types/family_utils/typeUtilExecutionUrlInspectCheck.js +103 -0
- package/{publish → src}/utils/utils.js +1 -0
- package/types/api/api_abstract_class.d.ts +85 -0
- package/types/api/api_abstract_element_class.d.ts +79 -0
- package/types/api/api_abstract_reference_class.d.ts +26 -0
- package/types/api/attachment_api.d.ts +25 -0
- package/types/api/autotest_case_api.d.ts +36 -0
- package/types/api/autotest_result_api.d.ts +8 -0
- package/types/api/autotest_run_api.d.ts +16 -0
- package/types/api/autotest_step_api.d.ts +45 -0
- package/types/api/autotest_suite_api.d.ts +8 -0
- package/types/api/bug_api.d.ts +9 -0
- package/types/api/bug_relation_api.d.ts +10 -0
- package/types/api/cache/api_search_cache.d.ts +39 -0
- package/types/api/cache/index.d.ts +2 -0
- package/types/api/cache/memory_cache_store.d.ts +24 -0
- package/types/api/context/context_browser_api.d.ts +9 -0
- package/types/api/context/context_deployment_target_api.d.ts +9 -0
- package/types/api/context/context_devices_api.d.ts +9 -0
- package/types/api/context/context_execution_general_api.d.ts +9 -0
- package/types/api/context/context_locale_api.d.ts +9 -0
- package/types/api/context/context_os_api.d.ts +9 -0
- package/types/api/context/context_screen_resolution_api.d.ts +9 -0
- package/types/api/context/context_user_agents_api.d.ts +9 -0
- package/types/api/custom_property/custom_property_template_api.d.ts +10 -0
- package/types/api/custom_property_api.d.ts +25 -0
- package/types/api/custom_property_option_api.d.ts +11 -0
- package/types/api/custom_property_value_api.d.ts +28 -0
- package/types/api/event_api.d.ts +12 -0
- package/types/api/file_app_api.d.ts +105 -0
- package/types/api/functional_api.d.ts +9 -0
- package/types/api/index.d.ts +155 -0
- package/types/api/object_repository_element_api.d.ts +8 -0
- package/types/api/object_repository_folder_api.d.ts +8 -0
- package/types/api/object_repository_page_api.d.ts +8 -0
- package/types/api/project_api.d.ts +53 -0
- package/types/api/public_text_document_api.d.ts +29 -0
- package/types/api/service_api.d.ts +9 -0
- package/types/api/tag/tag_color_api.d.ts +10 -0
- package/types/api/tag/tag_template_api.d.ts +10 -0
- package/types/api/tag_api.d.ts +23 -0
- package/types/api/tag_relation_api.d.ts +30 -0
- package/types/api/task_api.d.ts +19 -0
- package/types/api/team_domain_api.d.ts +30 -0
- package/types/api/team_management_api.d.ts +27 -0
- package/types/api/team_member_api.d.ts +19 -0
- package/types/api/test_account_api.d.ts +9 -0
- package/types/api/test_case_api.d.ts +9 -0
- package/types/api/test_case_step_api.d.ts +28 -0
- package/types/api/test_plan_api.d.ts +9 -0
- package/types/api/test_run_api.d.ts +16 -0
- package/types/api/test_run_result_api.d.ts +9 -0
- package/types/api/test_suite_api.d.ts +9 -0
- package/types/api/text_document_api.d.ts +98 -0
- package/types/api/text_document_folder_api.d.ts +8 -0
- package/types/api/typeApiBinding.d.ts +12 -0
- package/types/api/user_profile_api.d.ts +18 -0
- package/types/api/util/browser_tools_screenshot_multi_api.d.ts +24 -0
- package/types/api/util/browser_tools_util_execution_api.d.ts +26 -0
- package/types/api/util/url_inspect_api.d.ts +24 -0
- package/types/constants/text_document_limits.d.ts +14 -0
- package/types/element_translate/typeTeamDomain.i18n.js +71 -0
- package/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +55 -0
- package/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +111 -0
- package/types/exceptions/0_BaseException.d.ts +25 -0
- package/types/exceptions/ApiException.d.ts +16 -0
- package/types/exceptions/GeneralException.d.ts +13 -0
- package/types/index.d.ts +79 -0
- package/types/services/DeveloperService.d.ts +43 -0
- package/types/services/FileAppService.d.ts +131 -0
- package/types/services/TeamService.d.ts +21 -0
- package/types/services/UserService.d.ts +233 -0
- package/types/services/abstractService.d.ts +13 -0
- package/types/services/mock_data/MockUserService.d.ts +12 -0
- package/types/types/core/0_familyGeneralElement.d.ts +228 -0
- package/types/types/core/1_familyContext.d.ts +87 -0
- package/types/types/core/1_familyRelation.d.ts +53 -0
- package/types/types/core/1_familyTestAutomation.d.ts +25 -0
- package/types/types/core/1_familyTestDocumentation.d.ts +27 -0
- package/types/types/core/type_class_resolver.d.ts +25 -0
- package/types/types/element_translate/_familyContext.i18n.d.ts +316 -0
- package/types/types/element_translate/_familyUtil.i18n.d.ts +515 -0
- package/types/types/element_translate/typeAttachment.i18n.d.ts +358 -0
- package/types/types/element_translate/typeAutotestCase.i18n.d.ts +139 -0
- package/types/types/element_translate/typeAutotestResult.i18n.d.ts +110 -0
- package/types/types/element_translate/typeAutotestRun.i18n.d.ts +170 -0
- package/types/types/element_translate/typeAutotestStep.i18n.d.ts +115 -0
- package/types/types/element_translate/typeAutotestSuite.i18n.d.ts +51 -0
- package/types/types/element_translate/typeBrowserContext.i18n.d.ts +158 -0
- package/types/types/element_translate/typeBug.i18n.d.ts +1863 -0
- package/types/types/element_translate/typeBugRelation.i18n.d.ts +232 -0
- package/types/types/element_translate/typeCustomProperty.i18n.d.ts +233 -0
- package/types/types/element_translate/typeCustomPropertyValue.i18n.d.ts +185 -0
- package/types/types/element_translate/typeDeploymentTargetContext.i18n.d.ts +318 -0
- package/types/types/element_translate/typeDeviceContext.i18n.d.ts +296 -0
- package/types/types/element_translate/typeEvent.i18n.d.ts +1096 -0
- package/types/types/element_translate/typeExecutionContext.i18n.d.ts +484 -0
- package/types/types/element_translate/typeFile.i18n.d.ts +119 -0
- package/types/types/element_translate/typeFileScreenshot.i18n.d.ts +7 -0
- package/types/types/element_translate/typeLocaleContext.i18n.d.ts +180 -0
- package/types/types/element_translate/typeObjectRepositoryElement.i18n.d.ts +135 -0
- package/types/types/element_translate/typeObjectRepositoryFolder.i18n.d.ts +85 -0
- package/types/types/element_translate/typeObjectRepositoryPage.i18n.d.ts +56 -0
- package/types/types/element_translate/typeOsContext.i18n.d.ts +296 -0
- package/types/types/element_translate/typeProject.i18n.d.ts +211 -0
- package/types/types/element_translate/typeScreenResolutionContext.i18n.d.ts +285 -0
- package/types/types/element_translate/typeTag.i18n.d.ts +122 -0
- package/types/types/element_translate/typeTagRelation.i18n.d.ts +165 -0
- package/types/types/element_translate/typeTeamDomain.i18n.d.ts +146 -0
- package/types/types/element_translate/typeTeamMember.i18n.d.ts +194 -0
- package/types/types/element_translate/typeTeamTotalStatistic.i18n.d.ts +246 -0
- package/types/types/element_translate/typeTestAccount.i18n.d.ts +194 -0
- package/types/types/element_translate/typeTestCase.i18n.d.ts +727 -0
- package/types/types/element_translate/typeTestCaseStep.i18n.d.ts +295 -0
- package/types/types/element_translate/typeTestRun.i18n.d.ts +400 -0
- package/types/types/element_translate/typeTestRunResult.i18n.d.ts +257 -0
- package/types/types/element_translate/typeTextDocument.i18n.d.ts +358 -0
- package/types/types/element_translate/typeTextDocumentFolder.i18n.d.ts +173 -0
- package/types/types/element_translate/typeUserAgentContext.i18n.d.ts +384 -0
- package/types/types/element_translate/typeUtilExecution.i18n.d.ts +465 -0
- package/types/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.d.ts +686 -0
- package/types/types/element_translate/typeUtilExecutionUrlInspect.i18n.d.ts +109 -0
- package/types/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.d.ts +243 -0
- package/types/types/family_context/typeBrowserContext.d.ts +173 -0
- package/types/types/family_context/typeDeploymentTargetContext.d.ts +335 -0
- package/types/types/family_context/typeDeviceContext.d.ts +313 -0
- package/types/types/family_context/typeExecutionContext.d.ts +331 -0
- package/types/types/family_context/typeLocaleContext.d.ts +197 -0
- package/types/types/family_context/typeOsContext.d.ts +313 -0
- package/types/types/family_context/typeScreenResolutionContext.d.ts +306 -0
- package/types/types/family_context/typeUserAgentContext.d.ts +409 -0
- package/types/types/family_contracts/familyContracts.d.ts +30 -0
- package/types/types/family_contracts/typeTeamTotalStatistic.d.ts +255 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepActionCatalog.d.ts +85 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepActionCategory.d.ts +12 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepLocatorKind.d.ts +17 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.d.ts +17 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepAction.d.ts +38 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.d.ts +46 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.d.ts +8 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.d.ts +8 -0
- package/types/types/family_elements/mock_data/abstract_mock_data.d.ts +8 -0
- package/types/types/family_elements/mock_data/mock_data_typeProject.d.ts +16 -0
- package/types/types/family_elements/typeActionLog.d.ts +7 -0
- package/types/types/family_elements/typeAttachment.d.ts +263 -0
- package/types/types/family_elements/typeAutomationTestEnvironment.d.ts +28 -0
- package/types/types/family_elements/typeAutomationTestPlan.d.ts +13 -0
- package/types/types/family_elements/typeAutomationTestStep.d.ts +24 -0
- package/types/types/family_elements/typeAutomationTestStepTarget.d.ts +19 -0
- package/types/types/family_elements/typeAutotestCase.d.ts +178 -0
- package/types/types/family_elements/typeAutotestResult.d.ts +109 -0
- package/types/types/family_elements/typeAutotestRun.d.ts +176 -0
- package/types/types/family_elements/typeAutotestStep.d.ts +155 -0
- package/types/types/family_elements/typeAutotestStepTarget.d.ts +19 -0
- package/types/types/family_elements/typeAutotestSuite.d.ts +64 -0
- package/types/types/family_elements/typeBug.d.ts +1097 -0
- package/types/types/family_elements/typeCustomProperty.d.ts +197 -0
- package/types/types/family_elements/typeFunctional.d.ts +48 -0
- package/types/types/family_elements/typeFunctionalGroup.d.ts +46 -0
- package/types/types/family_elements/typeMilestone.d.ts +51 -0
- package/types/types/family_elements/typeObjectRepositoryElement.d.ts +124 -0
- package/types/types/family_elements/typeObjectRepositoryFolder.d.ts +90 -0
- package/types/types/family_elements/typeObjectRepositoryPage.d.ts +69 -0
- package/types/types/family_elements/typePrice.d.ts +18 -0
- package/types/types/family_elements/typeProject.d.ts +205 -0
- package/types/types/family_elements/typeProjectDocument.d.ts +38 -0
- package/types/types/family_elements/typeProjectTestData.d.ts +20 -0
- package/types/types/family_elements/typeProjectUserRole.d.ts +25 -0
- package/types/types/family_elements/typeTag.d.ts +109 -0
- package/types/types/family_elements/typeTask.d.ts +41 -0
- package/types/types/family_elements/typeTeam.d.ts +54 -0
- package/types/types/family_elements/typeTeamDomain.d.ts +164 -0
- package/types/types/family_elements/typeTeamMember.d.ts +169 -0
- package/types/types/family_elements/typeTeamUserRole.d.ts +27 -0
- package/types/types/family_elements/typeTestAccount.d.ts +150 -0
- package/types/types/family_elements/typeTestCase.d.ts +467 -0
- package/types/types/family_elements/typeTestCaseStep.d.ts +230 -0
- package/types/types/family_elements/typeTestPlan.d.ts +8 -0
- package/types/types/family_elements/typeTestRun.d.ts +285 -0
- package/types/types/family_elements/typeTestRunResult.d.ts +183 -0
- package/types/types/family_elements/typeTestSuite.d.ts +39 -0
- package/types/types/family_elements/typeUser.d.ts +38 -0
- package/types/types/family_events/familyEvent.d.ts +30 -0
- package/types/types/family_events/typeEvent.d.ts +667 -0
- package/types/types/family_files/familyFile.d.ts +11 -0
- package/types/types/family_files/typeFile.d.ts +138 -0
- package/types/types/family_files/typeFileAutotestScreenshot.d.ts +23 -0
- package/types/types/family_files/typeFileFactory.d.ts +7 -0
- package/types/types/family_files/typeFileHtml.d.ts +6 -0
- package/types/types/family_files/typeFileJson.d.ts +6 -0
- package/types/types/family_files/typeFilePostman.d.ts +6 -0
- package/types/types/family_files/typeFileScreenshot.d.ts +32 -0
- package/types/types/family_files/typeFileVideo.d.ts +6 -0
- package/types/types/family_files/typeTextDocument.d.ts +253 -0
- package/types/types/family_files/typeTextDocumentFolder.d.ts +136 -0
- package/types/types/family_relation/typeBugRelation.d.ts +212 -0
- package/types/types/family_relation/typeCustomPropertyValue.d.ts +279 -0
- package/types/types/family_relation/typeTagRelation.d.ts +287 -0
- package/types/types/family_service/familyService.d.ts +6 -0
- package/types/types/family_service/typeFOR.d.ts +17 -0
- package/types/types/family_service/typeFilter.d.ts +20 -0
- package/types/types/family_service/typeFunctionCallback.d.ts +20 -0
- package/types/types/family_utils/familyUtil.d.ts +18 -0
- package/types/types/family_utils/typeUtilExecution.d.ts +394 -0
- package/types/types/family_utils/typeUtilExecutionEvent.d.ts +128 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMulti.d.ts +617 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiCapture.d.ts +26 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.d.ts +25 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.d.ts +33 -0
- package/types/types/family_utils/typeUtilExecutionUrlInspect.d.ts +227 -0
- package/types/types/family_utils/typeUtilExecutionUrlInspectCheck.d.ts +193 -0
- package/types/utils/text_document_image.d.ts +37 -0
- package/types/utils/utils.d.ts +60 -0
- package/publish/app_configuration/abstract_app_configuration.js +0 -33
- package/publish/app_configuration/locale_table_ru.js +0 -267
- package/publish/app_configuration/locale_table_tt.js +0 -267
- package/publish/app_configuration/menu_configuration_main.js +0 -133
- package/publish/app_configuration/menu_configuration_secondary.js +0 -140
- package/publish/app_configuration/table/helpers/column_factory.js +0 -172
- package/publish/app_configuration/table/helpers/column_locale.js +0 -76
- package/publish/app_configuration/table/helpers/execution_context_listing_fields.js +0 -25
- package/publish/app_configuration/table/helpers/section_registry.js +0 -81
- package/publish/app_configuration/table/helpers/table_element_models.js +0 -74
- package/publish/app_configuration/table/sections/autotest_case.js +0 -76
- package/publish/app_configuration/table/sections/autotest_result.js +0 -59
- package/publish/app_configuration/table/sections/autotest_run.js +0 -66
- package/publish/app_configuration/table/sections/autotest_step.js +0 -82
- package/publish/app_configuration/table/sections/autotest_suite.js +0 -42
- package/publish/app_configuration/table/sections/bug.js +0 -113
- package/publish/app_configuration/table/sections/bug_relation.js +0 -179
- package/publish/app_configuration/table/sections/custom_property.js +0 -95
- package/publish/app_configuration/table/sections/event.js +0 -76
- package/publish/app_configuration/table/sections/execution_context.js +0 -130
- package/publish/app_configuration/table/sections/object_repository_element.js +0 -59
- package/publish/app_configuration/table/sections/object_repository_folder.js +0 -41
- package/publish/app_configuration/table/sections/object_repository_page.js +0 -55
- package/publish/app_configuration/table/sections/project.js +0 -65
- package/publish/app_configuration/table/sections/tag.js +0 -82
- package/publish/app_configuration/table/sections/tag_relation.js +0 -309
- package/publish/app_configuration/table/sections/team.js +0 -48
- package/publish/app_configuration/table/sections/team_domain.js +0 -55
- package/publish/app_configuration/table/sections/team_member.js +0 -49
- package/publish/app_configuration/table/sections/test_account.js +0 -78
- package/publish/app_configuration/table/sections/test_case.js +0 -103
- package/publish/app_configuration/table/sections/test_case_step.js +0 -66
- package/publish/app_configuration/table/sections/test_run.js +0 -85
- package/publish/app_configuration/table/sections/test_run_result.js +0 -153
- package/publish/app_configuration/table/sections/text_document.js +0 -37
- package/publish/app_configuration/table/sections/user.js +0 -31
- package/publish/app_configuration/table/sections/util_execution.js +0 -42
- package/publish/app_configuration/table/sections/util_execution_url_inspect.js +0 -60
- package/publish/app_configuration/table/table_base_config.js +0 -135
- package/publish/app_configuration/table/table_configuration.js +0 -156
- package/publish/app_configuration/table_locale_ar.js +0 -676
- package/publish/app_configuration/text_document_editor_config.js +0 -31
- package/publish/dev.entry.js +0 -58
- package/publish/exceptions/BaseException.js +0 -96
- package/publish/services/serviceTranslate.js +0 -101
- package/publish/types/family_context/0_familyContext.js +0 -144
- package/publish/types/family_elements/0_familyGeneralElement.js +0 -683
- package/publish/types/family_elements/1_familyTestAutomation.js +0 -34
- package/publish/types/family_elements/1_familyTestDocumentation.js +0 -21
- package/publish/types/family_elements/typeProjectTestAccount.js +0 -59
- package/publish/types/family_service/typeAppConfiguration.js +0 -39
- package/publish/types/family_service/typeMenuElement.js +0 -32
- package/publish/types/family_service/typeNotification.js +0 -36
- package/publish/types/family_service/typeTableColumn.js +0 -116
- package/publish/types/family_service/typeTableConfiguration.js +0 -66
- /package/{publish → src}/api/api_abstract_reference_class.js +0 -0
- /package/{publish → src}/api/attachment_api.js +0 -0
- /package/{publish → src}/api/bug_relation_api.js +0 -0
- /package/{publish → src}/api/cache/api_search_cache.js +0 -0
- /package/{publish → src}/api/cache/index.js +0 -0
- /package/{publish → src}/api/cache/memory_cache_store.js +0 -0
- /package/{publish → src}/api/context/context_browser_api.js +0 -0
- /package/{publish → src}/api/context/context_deployment_target_api.js +0 -0
- /package/{publish → src}/api/context/context_devices_api.js +0 -0
- /package/{publish → src}/api/context/context_execution_general_api.js +0 -0
- /package/{publish → src}/api/context/context_locale_api.js +0 -0
- /package/{publish → src}/api/context/context_os_api.js +0 -0
- /package/{publish → src}/api/context/context_screen_resolution_api.js +0 -0
- /package/{publish → src}/api/context/context_user_agents_api.js +0 -0
- /package/{publish → src}/api/custom_property/custom_property_template_api.js +0 -0
- /package/{publish → src}/api/custom_property_api.js +0 -0
- /package/{publish → src}/api/custom_property_option_api.js +0 -0
- /package/{publish → src}/api/custom_property_value_api.js +0 -0
- /package/{publish → src}/api/event_api.js +0 -0
- /package/{publish → src}/api/file_app_api.js +0 -0
- /package/{publish → src}/api/service_api.js +0 -0
- /package/{publish → src}/api/tag/tag_color_api.js +0 -0
- /package/{publish → src}/api/tag/tag_template_api.js +0 -0
- /package/{publish → src}/api/tag_api.js +0 -0
- /package/{publish → src}/api/tag_relation_api.js +0 -0
- /package/{publish → src}/api/task_api.js +0 -0
- /package/{publish → src}/api/team_domain_api.js +0 -0
- /package/{publish → src}/api/test_account_api.js +0 -0
- /package/{publish → src}/api/text_document_folder_api.js +0 -0
- /package/{publish → src}/api/user_profile_api.js +0 -0
- /package/{publish → src}/api/util/browser_tools_screenshot_multi_api.js +0 -0
- /package/{publish → src}/api/util/browser_tools_util_execution_api.js +0 -0
- /package/{publish → src}/api/util/url_inspect_api.js +0 -0
- /package/{publish → src}/constants/text_document_limits.js +0 -0
- /package/{publish → src}/exceptions/ApiException.js +0 -0
- /package/{publish → src}/exceptions/GeneralException.js +0 -0
- /package/{publish → src}/services/DeveloperService.js +0 -0
- /package/{publish → src}/services/TeamService.js +0 -0
- /package/{publish → src}/services/abstractService.js +0 -0
- /package/{publish → src}/services/mock_data/MockUserService.js +0 -0
- /package/{publish → src}/types/core/1_familyContext.js +0 -0
- /package/{publish → src}/types/core/1_familyTestAutomation.js +0 -0
- /package/{publish → src}/types/core/1_familyTestDocumentation.js +0 -0
- /package/{publish → src}/types/core/type_class_resolver.js +0 -0
- /package/{publish → src}/types/element_translate/_familyContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/_familyUtil.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAttachment.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestCase.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestResult.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestRun.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestStep.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestSuite.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBrowserContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBug.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBugRelation.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeCustomProperty.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeCustomPropertyValue.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeDeploymentTargetContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeDeviceContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeEvent.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeExecutionContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeFile.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeFileScreenshot.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeLocaleContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryElement.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryFolder.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryPage.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeOsContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeProject.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeScreenResolutionContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTag.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTagRelation.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamDomain.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamMember.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamTotalStatistic.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestAccount.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestCase.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestCaseStep.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestRun.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestRunResult.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTextDocument.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTextDocumentFolder.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUserAgentContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecution.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +0 -0
- /package/{publish → src}/types/family_contracts/familyContracts.js +0 -0
- /package/{publish → src}/types/family_contracts/typeTeamTotalStatistic.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCategory.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepLocatorKind.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.js +0 -0
- /package/{publish → src}/types/family_elements/mock_data/abstract_mock_data.js +0 -0
- /package/{publish → src}/types/family_elements/typeActionLog.js +0 -0
- /package/{publish → src}/types/family_elements/typeAutotestSuite.js +0 -0
- /package/{publish → src}/types/family_elements/typeObjectRepositoryPage.js +0 -0
- /package/{publish → src}/types/family_elements/typeTag.js +0 -0
- /package/{publish → src}/types/family_events/familyEvent.js +0 -0
- /package/{publish → src}/types/family_files/familyFile.js +0 -0
- /package/{publish → src}/types/family_files/typeFileAutotestScreenshot.js +0 -0
- /package/{publish → src}/types/family_files/typeFileFactory.js +0 -0
- /package/{publish → src}/types/family_files/typeFileHtml.js +0 -0
- /package/{publish → src}/types/family_files/typeFileJson.js +0 -0
- /package/{publish → src}/types/family_files/typeFilePostman.js +0 -0
- /package/{publish → src}/types/family_files/typeFileScreenshot.js +0 -0
- /package/{publish → src}/types/family_files/typeFileVideo.js +0 -0
- /package/{publish → src}/types/family_service/familyService.js +0 -0
- /package/{publish → src}/types/family_utils/familyUtil.js +0 -0
- /package/{publish → src}/utils/text_document_image.js +0 -0
- /package/{publish/types → types}/family_elements/typeTeamDomain.js +0 -0
- /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspect.js +0 -0
- /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspectCheck.js +0 -0
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { abstractAppConfiguration } from "./abstract_app_configuration.js";
|
|
2
|
-
import { UserService } from "../services/UserService.js";
|
|
3
|
-
import { typeMenuElement } from "../types/family_service/typeMenuElement.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Дополнительное меню (нижнее)
|
|
7
|
-
*
|
|
8
|
-
* @version v.0.1 (19/08/2025)
|
|
9
|
-
*/
|
|
10
|
-
export class MenuConfigurationSecondary extends abstractAppConfiguration
|
|
11
|
-
{
|
|
12
|
-
static config = {};
|
|
13
|
-
|
|
14
|
-
static state = {
|
|
15
|
-
loaded: false
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param init_options
|
|
23
|
-
*/
|
|
24
|
-
constructor(init_options = false)
|
|
25
|
-
{
|
|
26
|
-
super();
|
|
27
|
-
if (this.constructor._instance)
|
|
28
|
-
{
|
|
29
|
-
return this.constructor._instance;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
this.init_options = init_options;
|
|
33
|
-
|
|
34
|
-
this.constructor._instance = this;
|
|
35
|
-
|
|
36
|
-
MenuConfigurationSecondary.bootstrap();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Не понятно пока как лучше организовать
|
|
44
|
-
* @version v.0.1 (17/08/2025)
|
|
45
|
-
*/
|
|
46
|
-
static bootstrap()
|
|
47
|
-
{
|
|
48
|
-
if (this.state.loaded)
|
|
49
|
-
{
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
this.bootstrap_menu();
|
|
54
|
-
|
|
55
|
-
this.state.loaded = true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
static bootstrap_menu()
|
|
59
|
-
{
|
|
60
|
-
this.config.menu_elements = this.bootstrap_menu_elements();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @returns {boolean|*}
|
|
67
|
-
*/
|
|
68
|
-
static get_config()
|
|
69
|
-
{
|
|
70
|
-
if (!this.state.loaded)
|
|
71
|
-
{
|
|
72
|
-
this.bootstrap();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return this.config;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @version v.0.1 (19/08/2025)
|
|
82
|
-
* @returns {[typeMenuElement]}
|
|
83
|
-
*/
|
|
84
|
-
static bootstrap_menu_elements()
|
|
85
|
-
{
|
|
86
|
-
let locale = UserService.get_current_language();
|
|
87
|
-
|
|
88
|
-
// @todo - use serviceTranslate
|
|
89
|
-
|
|
90
|
-
let response = [];
|
|
91
|
-
|
|
92
|
-
response.push(new typeMenuElement({
|
|
93
|
-
link : `/web/${ locale }/user_profile`,
|
|
94
|
-
text : 'User Settings',
|
|
95
|
-
icon : '?',
|
|
96
|
-
sort_order: 1,
|
|
97
|
-
}));
|
|
98
|
-
|
|
99
|
-
let lang_sub_menu = [];
|
|
100
|
-
|
|
101
|
-
lang_sub_menu.push(new typeMenuElement({
|
|
102
|
-
link : `/web/en`, // @todo - get current routing and replace $lang
|
|
103
|
-
text : `EN`,
|
|
104
|
-
icon : '?',
|
|
105
|
-
sort_order: 1,
|
|
106
|
-
reload: true,
|
|
107
|
-
}));
|
|
108
|
-
|
|
109
|
-
lang_sub_menu.push(new typeMenuElement({
|
|
110
|
-
link : `/web/ru`, // @todo - get current routing and replace $lang
|
|
111
|
-
text : `RU`,
|
|
112
|
-
icon : '?',
|
|
113
|
-
sort_order: 2,
|
|
114
|
-
reload: true,
|
|
115
|
-
}));
|
|
116
|
-
|
|
117
|
-
response.push(new typeMenuElement({
|
|
118
|
-
link : false,
|
|
119
|
-
text : `Language ${ locale }`,
|
|
120
|
-
icon : '?',
|
|
121
|
-
sort_order: 2,
|
|
122
|
-
sub_menu : lang_sub_menu
|
|
123
|
-
}));
|
|
124
|
-
|
|
125
|
-
response.push(new typeMenuElement({
|
|
126
|
-
link : `/web/${ locale }/team_management/team/listing`,
|
|
127
|
-
text : 'Teams',
|
|
128
|
-
icon : '?',
|
|
129
|
-
sort_order: 3,
|
|
130
|
-
}));
|
|
131
|
-
|
|
132
|
-
/*
|
|
133
|
-
feedback
|
|
134
|
-
docs
|
|
135
|
-
admins
|
|
136
|
-
*/
|
|
137
|
-
|
|
138
|
-
return response;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { typeTableColumn } from '../../../types/family_service/typeTableColumn.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Значения по умолчанию для data-колонок.
|
|
5
|
-
* @type {Partial<import('../../../types/family_service/typeTableColumn.js').typeTableColumn>}
|
|
6
|
-
*/
|
|
7
|
-
const COLUMN_DEFAULTS = {
|
|
8
|
-
width : '120',
|
|
9
|
-
sort_order : '2',
|
|
10
|
-
cell_classes: '',
|
|
11
|
-
default_sort: '',
|
|
12
|
-
is_sortable : true,
|
|
13
|
-
is_filter : true,
|
|
14
|
-
is_hide : false,
|
|
15
|
-
is_editable : false,
|
|
16
|
-
column_kind : 'data',
|
|
17
|
-
is_required : false,
|
|
18
|
-
is_title : false,
|
|
19
|
-
header_element_type: false,
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @typedef {Object} ColumnOverrides
|
|
24
|
-
* @property {string} [header_field] Атрибут для перевода заголовка (по умолчанию = `field`).
|
|
25
|
-
* @property {import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement} [header_model]
|
|
26
|
-
* Модель перевода при bootstrap (по умолчанию = `model`). Итоговый заголовок — в `get_config(lang)`.
|
|
27
|
-
* @property {string} [header_name] Явный заголовок; обычно не нужен — достаточно `header_field`.
|
|
28
|
-
* @property {string|false} [header_element_type] Ключ модели перевода, если ≠ element_type секции.
|
|
29
|
-
* @property {string|number} [width]
|
|
30
|
-
* @property {string|number} [sort_order]
|
|
31
|
-
* @property {boolean} [is_sortable]
|
|
32
|
-
* @property {boolean} [is_filter]
|
|
33
|
-
* @property {boolean} [is_hide]
|
|
34
|
-
* @property {boolean} [is_editable]
|
|
35
|
-
* @property {boolean} [is_required]
|
|
36
|
-
* @property {boolean} [is_title]
|
|
37
|
-
* @property {''|'asc'|'desc'} [default_sort]
|
|
38
|
-
* @property {string} [cell_classes]
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Data-колонка с переводимым заголовком и сохранённым `header_field`.
|
|
44
|
-
* Если `field` совпадает с `model.get_primary_key()`, `is_editable` всегда `false`.
|
|
45
|
-
*
|
|
46
|
-
* @param {import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement} model
|
|
47
|
-
* Модель сущности секции.
|
|
48
|
-
* @param {string} locale Локаль bootstrap (для первичного `header_name`; актуальная — в `get_config`).
|
|
49
|
-
* @param {string} field Поле строки (`test_case_status`, `user_id.first_name`, …).
|
|
50
|
-
* @param {ColumnOverrides} [overrides={}]
|
|
51
|
-
* @returns {typeTableColumn}
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* createColumn(model, locale, 'test_case_id.test_case_title', {
|
|
55
|
-
* header_field: 'test_case_title',
|
|
56
|
-
* header_element_type: 'test_case',
|
|
57
|
-
* width: '480',
|
|
58
|
-
* });
|
|
59
|
-
*/
|
|
60
|
-
export function createColumn(model, locale, field, overrides = {})
|
|
61
|
-
{
|
|
62
|
-
const header_field = overrides.header_field || field;
|
|
63
|
-
const header_model = overrides.header_model || model;
|
|
64
|
-
const primary_key = typeof model.get_primary_key === 'function'
|
|
65
|
-
? model.get_primary_key()
|
|
66
|
-
: null;
|
|
67
|
-
|
|
68
|
-
return new typeTableColumn({
|
|
69
|
-
...COLUMN_DEFAULTS,
|
|
70
|
-
header_field,
|
|
71
|
-
header_name: overrides.header_name ?? header_model.get_attribute_name_translate(header_field, locale),
|
|
72
|
-
field,
|
|
73
|
-
...overrides,
|
|
74
|
-
...(primary_key && field === primary_key ? { is_editable: false } : {}),
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Колонка множественного выбора строк (`column_kind: row_select`).
|
|
81
|
-
* Без `header_field` — не локализуется.
|
|
82
|
-
* `sort_order: 0` — всегда первая. В web_app: pinned left, чекбоксы.
|
|
83
|
-
*
|
|
84
|
-
* @param {Partial<typeTableColumn>} [overrides={}]
|
|
85
|
-
* @returns {typeTableColumn}
|
|
86
|
-
*/
|
|
87
|
-
export function createRowSelectColumn(overrides = {})
|
|
88
|
-
{
|
|
89
|
-
return new typeTableColumn({
|
|
90
|
-
...COLUMN_DEFAULTS,
|
|
91
|
-
header_name : '',
|
|
92
|
-
field : 'select',
|
|
93
|
-
width : '60',
|
|
94
|
-
sort_order : '0',
|
|
95
|
-
is_sortable : false,
|
|
96
|
-
is_filter : false,
|
|
97
|
-
column_kind : 'row_select',
|
|
98
|
-
...overrides,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Колонка перехода к деталям (`column_kind: goto`).
|
|
105
|
-
* Заголовок в UI — через `translateGoToHeader` в web_app, не через ядро.
|
|
106
|
-
* `sort_order: 1` — вторая после `row_select` (data-колонки по умолчанию `2`).
|
|
107
|
-
* В web_app: pinned left, как чекбокс.
|
|
108
|
-
*
|
|
109
|
-
* @param {import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement} model
|
|
110
|
-
* @param {string} locale Не используется; сохранён для единообразия API фабрик.
|
|
111
|
-
* @param {ColumnOverrides} [overrides={}]
|
|
112
|
-
* @returns {typeTableColumn}
|
|
113
|
-
*/
|
|
114
|
-
export function createGoToColumn(model, locale, overrides = {})
|
|
115
|
-
{
|
|
116
|
-
const primary_key = model.get_primary_key();
|
|
117
|
-
|
|
118
|
-
return new typeTableColumn({
|
|
119
|
-
...COLUMN_DEFAULTS,
|
|
120
|
-
header_name : 'goto',
|
|
121
|
-
field : primary_key,
|
|
122
|
-
width : '40',
|
|
123
|
-
sort_order : '1',
|
|
124
|
-
is_sortable : false,
|
|
125
|
-
is_filter : false,
|
|
126
|
-
column_kind : 'goto',
|
|
127
|
-
...overrides,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Колонка primary key (часто скрытая в listing, видимая в todo).
|
|
134
|
-
* `is_editable` всегда `false`: идентификатор строки нельзя менять с фронта.
|
|
135
|
-
*
|
|
136
|
-
* @param {import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement} model
|
|
137
|
-
* @param {string} locale
|
|
138
|
-
* @param {ColumnOverrides} [overrides={}]
|
|
139
|
-
* @returns {typeTableColumn}
|
|
140
|
-
*/
|
|
141
|
-
export function createPrimaryKeyColumn(model, locale, overrides = {})
|
|
142
|
-
{
|
|
143
|
-
const primary_key = model.get_primary_key();
|
|
144
|
-
|
|
145
|
-
return createColumn(model, locale, primary_key, {
|
|
146
|
-
width : '60',
|
|
147
|
-
default_sort: 'desc',
|
|
148
|
-
is_hide : false,
|
|
149
|
-
...overrides,
|
|
150
|
-
is_editable : false,
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Колонка для таблиц details: без сортировки и фильтра ag-grid.
|
|
157
|
-
*
|
|
158
|
-
* @param {import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement} model
|
|
159
|
-
* @param {string} locale
|
|
160
|
-
* @param {string} field
|
|
161
|
-
* @param {ColumnOverrides} [overrides={}]
|
|
162
|
-
* @returns {typeTableColumn}
|
|
163
|
-
*/
|
|
164
|
-
export function createDetailsColumn(model, locale, field, overrides = {})
|
|
165
|
-
{
|
|
166
|
-
return createColumn(model, locale, field, {
|
|
167
|
-
sort_order : String(overrides.sort_order ?? 1),
|
|
168
|
-
is_sortable : false,
|
|
169
|
-
is_filter : false,
|
|
170
|
-
...overrides,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { typeTableColumn } from '../../../types/family_service/typeTableColumn.js';
|
|
2
|
-
import { typeTableConfiguration } from '../../../types/family_service/typeTableConfiguration.js';
|
|
3
|
-
import { TABLE_ELEMENT_MODELS } from './table_element_models.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Применяет локаль к заголовку одной data-колонки.
|
|
7
|
-
*
|
|
8
|
-
* Колонки без `header_field` (ручные, goto, row_select, copy) возвращаются без изменений.
|
|
9
|
-
* Модель перевода: `TABLE_ELEMENT_MODELS[header_element_type || element_type]`.
|
|
10
|
-
*
|
|
11
|
-
* @param {typeTableColumn} column
|
|
12
|
-
* @param {string} element_type Ключ сущности секции (`test_case`, `bug`, …).
|
|
13
|
-
* @param {string} lang Код локали (`en`, `ru`, …).
|
|
14
|
-
* @returns {typeTableColumn} Новый экземпляр с обновлённым `header_name` или исходная колонка.
|
|
15
|
-
*/
|
|
16
|
-
export function localizeTableColumn(column, element_type, lang)
|
|
17
|
-
{
|
|
18
|
-
if (column.column_kind !== 'data' || !column.header_field)
|
|
19
|
-
{
|
|
20
|
-
return column;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const model_key = column.header_element_type || element_type;
|
|
24
|
-
const ModelClass = TABLE_ELEMENT_MODELS[ model_key ];
|
|
25
|
-
|
|
26
|
-
if (!ModelClass)
|
|
27
|
-
{
|
|
28
|
-
return column;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const model = new ModelClass();
|
|
32
|
-
const header_name = model.get_attribute_name_translate(column.header_field, lang);
|
|
33
|
-
|
|
34
|
-
return new typeTableColumn({
|
|
35
|
-
header_name : header_name,
|
|
36
|
-
field : column.field,
|
|
37
|
-
width : column.width,
|
|
38
|
-
sort_order : column.sort_order,
|
|
39
|
-
cell_classes : column.cell_classes,
|
|
40
|
-
default_sort : column.default_sort,
|
|
41
|
-
is_sortable : column.is_sortable,
|
|
42
|
-
is_filter : column.is_filter,
|
|
43
|
-
is_hide : column.is_hide,
|
|
44
|
-
is_editable : column.is_editable,
|
|
45
|
-
column_kind : column.column_kind,
|
|
46
|
-
is_required : column.is_required,
|
|
47
|
-
is_title : column.is_title,
|
|
48
|
-
header_element_type : column.header_element_type,
|
|
49
|
-
header_field : column.header_field,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Возвращает копию секции с локализованными заголовками всех data-колонок.
|
|
56
|
-
*
|
|
57
|
-
* Вызывается из `TableConfiguration.get_config` — не мутирует кеш bootstrap.
|
|
58
|
-
*
|
|
59
|
-
* @param {{ config: typeTableConfiguration }} section Зарегистрированная секция из `static.config`.
|
|
60
|
-
* @param {string} element_type
|
|
61
|
-
* @param {string} lang
|
|
62
|
-
* @returns {{ config: typeTableConfiguration }}
|
|
63
|
-
*/
|
|
64
|
-
export function localizeTableSection(section, element_type, lang)
|
|
65
|
-
{
|
|
66
|
-
const config = section.config;
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
config: new typeTableConfiguration({
|
|
70
|
-
columns : config.columns.map((column) => localizeTableColumn(column, element_type, lang)),
|
|
71
|
-
for : config.for,
|
|
72
|
-
contained_element_type : config.contained_element_type,
|
|
73
|
-
documentation : config.documentation,
|
|
74
|
-
}),
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Спецификация data-колонок execution_context × listing (без goto).
|
|
3
|
-
* Единый источник для listing и вложенных таблиц (bug_relation.execution_contexts).
|
|
4
|
-
*
|
|
5
|
-
* @returns {Array<{ field: string, overrides: import('./column_factory.js').ColumnOverrides }>}
|
|
6
|
-
*/
|
|
7
|
-
export function get_execution_context_listing_field_specs()
|
|
8
|
-
{
|
|
9
|
-
return [
|
|
10
|
-
{ field: 'execution_context_id', overrides: { width: '60', default_sort: 'desc' } },
|
|
11
|
-
{ field: 'context_title', overrides: { width: '420', is_required: false, is_title: true } },
|
|
12
|
-
{ field: 'browser_context_id', overrides: { width: '200' } },
|
|
13
|
-
{ field: 'os_context_id', overrides: { width: '200' } },
|
|
14
|
-
{ field: 'screen_resolution_context_id', overrides: { width: '200' } },
|
|
15
|
-
{ field: 'device_context_id', overrides: { width: '200' } },
|
|
16
|
-
{ field: 'locale_context_id', overrides: { width: '200' } },
|
|
17
|
-
{ field: 'deployment_target_context_id', overrides: { width: '200' } },
|
|
18
|
-
{ field: 'user_agent_context_id', overrides: { width: '220' } },
|
|
19
|
-
{ field: 'protocol', overrides: { width: '120' } },
|
|
20
|
-
{ field: 'host', overrides: { width: '200' } },
|
|
21
|
-
{ field: 'base_url', overrides: { width: '250' } },
|
|
22
|
-
{ field: 'build_version', overrides: { width: '160' } },
|
|
23
|
-
{ field: 'created_at', overrides: { width: '170' } },
|
|
24
|
-
];
|
|
25
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { typeTableConfiguration } from '../../../types/family_service/typeTableConfiguration.js';
|
|
2
|
-
import { typeFOR } from '../../../types/family_service/typeFOR.js';
|
|
3
|
-
import { typeFilter } from '../../../types/family_service/typeFilter.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {Object} RegisterSectionOptions
|
|
7
|
-
* @property {typeFOR|false} [for=false] Шаблон поиска для листинга.
|
|
8
|
-
* @property {string|false} [contained_element_type=false] Контекст вложенной сущности.
|
|
9
|
-
* @property {{ description: (string|false), link: (string|false) }} [documentation]
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Регистрирует секцию таблицы в реестре `TableConfiguration.config`.
|
|
14
|
-
*
|
|
15
|
-
* @param {Object<string, Object<string, { config: typeTableConfiguration }>>} config Ссылка на `TableConfiguration.config`.
|
|
16
|
-
* @param {string} element_type Ключ сущности.
|
|
17
|
-
* @param {string} section Имя секции (`listing`, `todo`, `details`, …).
|
|
18
|
-
* @param {import('../../../types/family_service/typeTableColumn.js').typeTableColumn[]} columns
|
|
19
|
-
* @param {RegisterSectionOptions} [options={}]
|
|
20
|
-
* @returns {void}
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* registerSection(config, 'bug', 'listing', build_bug_listing_columns(locale), {
|
|
24
|
-
* for: createListingFor(['project_id']),
|
|
25
|
-
* });
|
|
26
|
-
*/
|
|
27
|
-
export function registerSection(config, element_type, section, columns, options = {})
|
|
28
|
-
{
|
|
29
|
-
const payload = {
|
|
30
|
-
config: new typeTableConfiguration({
|
|
31
|
-
columns : columns,
|
|
32
|
-
for : options.for || false,
|
|
33
|
-
contained_element_type : options.contained_element_type || false,
|
|
34
|
-
documentation : options.documentation || { description: false, link: false },
|
|
35
|
-
}),
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
if (!config[ element_type ])
|
|
39
|
-
{
|
|
40
|
-
config[ element_type ] = {};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
config[ element_type ][ section ] = payload;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Фильтр-заготовка для runtime-подстановки значения в web_app.
|
|
49
|
-
*
|
|
50
|
-
* @param {string} attribute Имя атрибута (`project_id`, `test_case_id`, …).
|
|
51
|
-
* @returns {typeFilter} `operator: EQUAL`, `value: false` до гидратации.
|
|
52
|
-
*/
|
|
53
|
-
export function createRuntimeFilter(attribute)
|
|
54
|
-
{
|
|
55
|
-
return new typeFilter({
|
|
56
|
-
object : { attribute },
|
|
57
|
-
operator: 'EQUAL',
|
|
58
|
-
value : false,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Строит шаблон `typeFOR` для листинговых таблиц.
|
|
65
|
-
*
|
|
66
|
-
* @param {string[]} [filter_attributes=['project_id']] Атрибуты, которые web_app заполнит из `filterValues`.
|
|
67
|
-
* @param {Object<string, *>|false} [for_options=false] Доп. опции API (`add: ['users']` и т.д.).
|
|
68
|
-
* @returns {typeFOR}
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* createListingFor(['project_id', 'test_case_id'], { add: ['users'] });
|
|
72
|
-
*/
|
|
73
|
-
export function createListingFor(filter_attributes = [ 'project_id' ], for_options = false)
|
|
74
|
-
{
|
|
75
|
-
const filters = filter_attributes.map((attribute) => createRuntimeFilter(attribute));
|
|
76
|
-
|
|
77
|
-
return new typeFOR({
|
|
78
|
-
filters,
|
|
79
|
-
options: for_options || false,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { typeTestCase } from '../../../types/family_elements/typeTestCase.js';
|
|
2
|
-
import { typeProject } from '../../../types/family_elements/typeProject.js';
|
|
3
|
-
import { typeTestRun } from '../../../types/family_elements/typeTestRun.js';
|
|
4
|
-
import { typeBug } from '../../../types/family_elements/typeBug.js';
|
|
5
|
-
import { typeBugRelation } from '../../../types/family_relation/typeBugRelation.js';
|
|
6
|
-
import { typeTag } from '../../../types/family_elements/typeTag.js';
|
|
7
|
-
import { typeCustomProperty } from '../../../types/family_elements/typeCustomProperty.js';
|
|
8
|
-
import { typeAttachment } from '../../../types/family_elements/typeAttachment.js';
|
|
9
|
-
import { typeTagRelation } from '../../../types/family_relation/typeTagRelation.js';
|
|
10
|
-
import { typeCustomPropertyValue } from '../../../types/family_relation/typeCustomPropertyValue.js';
|
|
11
|
-
import { typeTestRunResult } from '../../../types/family_elements/typeTestRunResult.js';
|
|
12
|
-
import { typeTestAccount } from '../../../types/family_elements/typeTestAccount.js';
|
|
13
|
-
import { typeExecutionContext } from '../../../types/family_context/typeExecutionContext.js';
|
|
14
|
-
import { typeTeamMember } from '../../../types/family_elements/typeTeamMember.js';
|
|
15
|
-
import { typeTeamDomain } from '../../../types/family_elements/typeTeamDomain.js';
|
|
16
|
-
import { typeTestCaseStep } from '../../../types/family_elements/typeTestCaseStep.js';
|
|
17
|
-
import { typeUser } from '../../../types/family_elements/typeUser.js';
|
|
18
|
-
import { typeTeam } from '../../../types/family_elements/typeTeam.js';
|
|
19
|
-
import { typeUtilExecutionScreenshotMulti } from '../../../types/family_utils/typeUtilExecutionScreenshotMulti.js';
|
|
20
|
-
import { typeUtilExecutionUrlInspect } from '../../../types/family_utils/typeUtilExecutionUrlInspect.js';
|
|
21
|
-
import { typeTextDocument } from '../../../types/family_files/typeTextDocument.js';
|
|
22
|
-
import { typeEvent } from '../../../types/family_events/typeEvent.js';
|
|
23
|
-
import { typeAutotestCase } from '../../../types/family_elements/typeAutotestCase.js';
|
|
24
|
-
import { typeAutotestSuite } from '../../../types/family_elements/typeAutotestSuite.js';
|
|
25
|
-
import { typeAutotestStep } from '../../../types/family_elements/typeAutotestStep.js';
|
|
26
|
-
import { typeAutotestRun } from '../../../types/family_elements/typeAutotestRun.js';
|
|
27
|
-
import { typeAutotestResult } from '../../../types/family_elements/typeAutotestResult.js';
|
|
28
|
-
import { typeObjectRepositoryFolder } from '../../../types/family_elements/typeObjectRepositoryFolder.js';
|
|
29
|
-
import { typeObjectRepositoryPage } from '../../../types/family_elements/typeObjectRepositoryPage.js';
|
|
30
|
-
import { typeObjectRepositoryElement } from '../../../types/family_elements/typeObjectRepositoryElement.js';
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Реестр классов моделей по ключу `element_type`.
|
|
34
|
-
*
|
|
35
|
-
* Используется для:
|
|
36
|
-
* - `TableBaseConfig.getRowNodeId` — primary key строки;
|
|
37
|
-
* - `localizeTableColumn` — `get_attribute_name_translate(header_field, lang)`.
|
|
38
|
-
*
|
|
39
|
-
* При добавлении новой таблицы сущности — зарегистрировать класс здесь.
|
|
40
|
-
*
|
|
41
|
-
* @type {Object<string, typeof import('../../../types/core/0_familyGeneralElement.js').familyGeneralElement>}
|
|
42
|
-
*/
|
|
43
|
-
export const TABLE_ELEMENT_MODELS = {
|
|
44
|
-
test_case : typeTestCase,
|
|
45
|
-
project : typeProject,
|
|
46
|
-
test_run : typeTestRun,
|
|
47
|
-
bug : typeBug,
|
|
48
|
-
bug_relation : typeBugRelation,
|
|
49
|
-
attachment : typeAttachment,
|
|
50
|
-
tag : typeTag,
|
|
51
|
-
tag_relation : typeTagRelation,
|
|
52
|
-
custom_property: typeCustomProperty,
|
|
53
|
-
custom_property_value: typeCustomPropertyValue,
|
|
54
|
-
test_run_result: typeTestRunResult,
|
|
55
|
-
test_account : typeTestAccount,
|
|
56
|
-
execution_context : typeExecutionContext,
|
|
57
|
-
team_member : typeTeamMember,
|
|
58
|
-
team_domain : typeTeamDomain,
|
|
59
|
-
test_case_step : typeTestCaseStep,
|
|
60
|
-
user : typeUser,
|
|
61
|
-
team : typeTeam,
|
|
62
|
-
text_document : typeTextDocument,
|
|
63
|
-
util_execution : typeUtilExecutionScreenshotMulti,
|
|
64
|
-
util_execution_url_inspect: typeUtilExecutionUrlInspect,
|
|
65
|
-
event : typeEvent,
|
|
66
|
-
autotest_case : typeAutotestCase,
|
|
67
|
-
autotest_suite : typeAutotestSuite,
|
|
68
|
-
autotest_step : typeAutotestStep,
|
|
69
|
-
autotest_run : typeAutotestRun,
|
|
70
|
-
autotest_result : typeAutotestResult,
|
|
71
|
-
object_repository_folder : typeObjectRepositoryFolder,
|
|
72
|
-
object_repository_page : typeObjectRepositoryPage,
|
|
73
|
-
object_repository_element: typeObjectRepositoryElement,
|
|
74
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { typeAutotestCase } from '../../../types/family_elements/typeAutotestCase.js';
|
|
2
|
-
import { UserService } from '../../../services/UserService.js';
|
|
3
|
-
import { createColumn, createGoToColumn, createPrimaryKeyColumn, createRowSelectColumn } from '../helpers/column_factory.js';
|
|
4
|
-
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function build_autotest_case_listing_columns(locale, { include_select = true, include_goto = true, include_kind = false, kind_editable = false } = {})
|
|
8
|
-
{
|
|
9
|
-
const model = new typeAutotestCase();
|
|
10
|
-
const columns = [];
|
|
11
|
-
|
|
12
|
-
if (include_select)
|
|
13
|
-
{
|
|
14
|
-
columns.push(createRowSelectColumn());
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
columns.push(createPrimaryKeyColumn(model, locale));
|
|
18
|
-
columns.push(createColumn(model, locale, 'autotest_case_title', {
|
|
19
|
-
width : '480',
|
|
20
|
-
is_editable: true,
|
|
21
|
-
is_required: true,
|
|
22
|
-
is_title : true,
|
|
23
|
-
}));
|
|
24
|
-
columns.push(createColumn(model, locale, 'autotest_case_status', {
|
|
25
|
-
width : '150',
|
|
26
|
-
is_editable: true,
|
|
27
|
-
is_required: true,
|
|
28
|
-
}));
|
|
29
|
-
if (include_kind)
|
|
30
|
-
{
|
|
31
|
-
columns.push(createColumn(model, locale, 'autotest_case_kind', {
|
|
32
|
-
width : '140',
|
|
33
|
-
is_editable: kind_editable,
|
|
34
|
-
is_required: true,
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
columns.push(createColumn(model, locale, 'tags', {
|
|
38
|
-
width : '220',
|
|
39
|
-
is_editable: false,
|
|
40
|
-
is_sortable: true,
|
|
41
|
-
is_required: false,
|
|
42
|
-
}));
|
|
43
|
-
columns.push(createColumn(model, locale, 'created_at', { width: '170', is_required: true }));
|
|
44
|
-
if (include_goto)
|
|
45
|
-
{
|
|
46
|
-
columns.push(createGoToColumn(model, locale));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return columns;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Секции `autotest_case`: `listing`.
|
|
55
|
-
*
|
|
56
|
-
* @param {Object} config
|
|
57
|
-
* @returns {void}
|
|
58
|
-
*/
|
|
59
|
-
export function bootstrap_autotest_case(config)
|
|
60
|
-
{
|
|
61
|
-
const locale = UserService.get_current_language();
|
|
62
|
-
|
|
63
|
-
registerSection(config, 'autotest_case', 'listing', build_autotest_case_listing_columns(locale, {
|
|
64
|
-
include_kind : true,
|
|
65
|
-
kind_editable: true,
|
|
66
|
-
}), {
|
|
67
|
-
for: createListingFor([ 'project_id', 'autotest_suite_id' ], { add: [ 'tags', 'pre_autotest_case_ids' ] }),
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
registerSection(config, 'autotest_case', 'picker', build_autotest_case_listing_columns(locale, {
|
|
71
|
-
include_goto: false,
|
|
72
|
-
include_kind: true,
|
|
73
|
-
}), {
|
|
74
|
-
for: createListingFor([ 'project_id' ]),
|
|
75
|
-
});
|
|
76
|
-
}
|