@smartbit4all/ng-client 7.3.17 → 7.3.18
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.
|
@@ -25979,6 +25979,30 @@ class GenericPageComponent extends SmartComponent {
|
|
|
25979
25979
|
}
|
|
25980
25980
|
return false;
|
|
25981
25981
|
}
|
|
25982
|
+
initData() {
|
|
25983
|
+
this.claimDialogFooterActions();
|
|
25984
|
+
super.initData();
|
|
25985
|
+
}
|
|
25986
|
+
initActions() {
|
|
25987
|
+
this.claimDialogFooterActions();
|
|
25988
|
+
super.initActions();
|
|
25989
|
+
}
|
|
25990
|
+
claimDialogFooterActions() {
|
|
25991
|
+
if (!this.isShownInDialog()) {
|
|
25992
|
+
return;
|
|
25993
|
+
}
|
|
25994
|
+
this.uiActionModels.forEach((actionModel) => {
|
|
25995
|
+
if (!actionModel.uiAction.toolbar) {
|
|
25996
|
+
actionModel.uiAction.toolbar = TOOLBAR_DIALOG_FOOTER;
|
|
25997
|
+
}
|
|
25998
|
+
});
|
|
25999
|
+
}
|
|
26000
|
+
isShownInDialog() {
|
|
26001
|
+
const currentView = this.viewContext
|
|
26002
|
+
?.getCurrentViewContext()
|
|
26003
|
+
?.views.find((view) => this.model?.name == view.viewName);
|
|
26004
|
+
return currentView?.type == ViewType.DIALOG;
|
|
26005
|
+
}
|
|
25982
26006
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: GenericPageComponent, deps: [{ token: i0.Injector }, { token: SMART_GENERIC_PAGE_NAME }, { token: SMART_GENERIC_COMPONENT_NAME }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25983
26007
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: GenericPageComponent, isStandalone: true, selector: "app-generic-page", usesInheritance: true, ngImport: i0, template: "<div class=\"generic-page-container\">\r\n @if (componentLayout) {\r\n <smart-component-layout\r\n class=\"generic-page-layout\"\r\n [smartComponentLayout]=\"componentLayout\"\r\n ></smart-component-layout>\r\n }\r\n <smart-ui-action-toolbar\r\n class=\"generic-page-toolbar\"\r\n [uiActionModels]=\"uiActionModels\"\r\n ></smart-ui-action-toolbar>\r\n</div>\r\n@if (showRouterOutlet()) {\r\n <div>\r\n <ng-container [smartEmbeddedSlot]=\"'router-outlet'\" [containerUuid]=\"uuid\"></ng-container>\r\n </div>\r\n}\r\n", styles: [".generic-page-container{display:flex;flex-direction:column;gap:1rem}\n"], dependencies: [{ kind: "component", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout", "parentLayoutComponent", "gridRow"] }, { kind: "component", type: UiActionToolbarComponent, selector: "smart-ui-action-toolbar", inputs: ["uiActionModels", "uiActionDescriptorService", "id", "executor", "widgetId", "nodeId", "actionParams", "scrollOnWrap", "toolbarPropertes"], outputs: ["actionFired"] }, { kind: "directive", type: SmartEmbeddedSlotDirective, selector: "[smartEmbeddedSlot]", inputs: ["smartEmbeddedSlot", "containerUuid"] }] }); }
|
|
25984
26008
|
}
|