UIBlock: Add external JS/CSS files (optional) inheritance

This way we ensure that a block always have the external resources from its ancestors as this will be necessary most of the time. From now on, the JS widget of the blocks will inherit from a common ancestor to factorize some mechanisms that are duplicates at many levels.
This can be disabled in a particular block by overloading the INCLUDE_ANCESTORS_DEFAULT_XXX_FILES constants in which case, only the external files of the block itself will be included.
This commit is contained in:
Molkobain
2021-05-28 10:07:29 +02:00
committed by Eric
parent 344890f84e
commit 7d8710770a
6 changed files with 159 additions and 12 deletions

View File

@@ -21,7 +21,6 @@ class ObjectDetails extends Panel implements iKeyboardShortcut
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/layouts/object/object-details/layout';
public const DEFAULT_JS_TEMPLATE_REL_PATH = 'base/layouts/object/object-details/layout';
public const DEFAULT_JS_FILES_REL_PATH = [
'js/components/panel.js',
'js/layouts/object/object-details.js',
];