@veloceapps/sdk 8.0.0-12 → 8.0.0-14
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/utils/element.utils.d.ts +1 -0
- package/esm2020/cms/plugins/io.plugin.mjs +5 -4
- package/esm2020/cms/utils/element.utils.mjs +10 -3
- package/fesm2015/veloceapps-sdk-cms.mjs +13 -5
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +13 -5
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/package.json +1 -1
@@ -1511,8 +1511,9 @@ class IOPlugin {
|
|
1511
1511
|
this.host[key] = inputProvider.connect(elementMetadata, key, path);
|
1512
1512
|
});
|
1513
1513
|
outputs.forEach(([key, path]) => {
|
1514
|
-
|
1515
|
-
|
1514
|
+
const ngOutput = toElementAngularIO(key);
|
1515
|
+
if (ngOutput != null) {
|
1516
|
+
this.host[ngOutput] = new EventEmitter();
|
1516
1517
|
return;
|
1517
1518
|
}
|
1518
1519
|
if (path && typeof path !== 'string') {
|
@@ -1965,10 +1966,17 @@ function isSharedElement(el) {
|
|
1965
1966
|
function isElementAngularIO(name) {
|
1966
1967
|
return name.startsWith('@');
|
1967
1968
|
}
|
1969
|
+
function toElementAngularIO(name) {
|
1970
|
+
if (!isElementAngularIO(name)) {
|
1971
|
+
return null;
|
1972
|
+
}
|
1973
|
+
return name.slice(1);
|
1974
|
+
}
|
1968
1975
|
function getElementAngularIOs(names) {
|
1969
1976
|
return names.reduce((trunk, name) => {
|
1970
|
-
|
1971
|
-
|
1977
|
+
const ngIO = toElementAngularIO(name);
|
1978
|
+
if (ngIO != null) {
|
1979
|
+
trunk.push(ngIO);
|
1972
1980
|
}
|
1973
1981
|
return trunk;
|
1974
1982
|
}, []);
|
@@ -2672,5 +2680,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2672
2680
|
* Generated bundle index. Do not edit.
|
2673
2681
|
*/
|
2674
2682
|
|
2675
|
-
export { ApplyProductConfigurationAction, CloseDocGenAction, CmsAction, ConfigureProductAction, DEFAULT_ELEMENT, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, ElementsResolver, FlowAction, IntegrationState, LAYOUT, LauncherModule, MigrationsModule, MigrationsService, NavigateBackAction, NavigateToCatalogAction, OpenDocGenAction, PreviewComponent, PreviewModule, RemoteApplyAction, RemoteCancelAction, ResourcesService, RuntimeEditorService, RuntimeModule, RuntimeService, SHARED_ELEMENT_METADATA, STARTING_PAGE_LAYOUT, STARTING_PAGE_NAME, STARTING_PAGE_STYLES, STARTING_PAGE_TYPE, SwitchObjectAction, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, constructPage, constructPageChildren, constructRegion, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findElementByModule, findElementByPath, flattenElements, getAbsolutePath, getElementAngularIOs, getElementConfig, insertElement, isElementAngularIO, isSharedElement, isValidScript, metadataToElement, normalizeElementMetadata, parseBoundPath, parsePath, removeElement, stringifyElementMetadata };
|
2683
|
+
export { ApplyProductConfigurationAction, CloseDocGenAction, CmsAction, ConfigureProductAction, DEFAULT_ELEMENT, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, ElementsResolver, FlowAction, IntegrationState, LAYOUT, LauncherModule, MigrationsModule, MigrationsService, NavigateBackAction, NavigateToCatalogAction, OpenDocGenAction, PreviewComponent, PreviewModule, RemoteApplyAction, RemoteCancelAction, ResourcesService, RuntimeEditorService, RuntimeModule, RuntimeService, SHARED_ELEMENT_METADATA, STARTING_PAGE_LAYOUT, STARTING_PAGE_NAME, STARTING_PAGE_STYLES, STARTING_PAGE_TYPE, SwitchObjectAction, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, constructPage, constructPageChildren, constructRegion, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findElementByModule, findElementByPath, flattenElements, getAbsolutePath, getElementAngularIOs, getElementConfig, insertElement, isElementAngularIO, isSharedElement, isValidScript, metadataToElement, normalizeElementMetadata, parseBoundPath, parsePath, removeElement, stringifyElementMetadata, toElementAngularIO };
|
2676
2684
|
//# sourceMappingURL=veloceapps-sdk-cms.mjs.map
|