@smartbit4all/ng-client 3.0.7 → 3.0.8
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/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2020/lib/view-context/api/model/link.mjs +21 -0
- package/esm2020/lib/view-context/api/model/models.mjs +2 -1
- package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2020/lib/view-context/smart-view-context.service.mjs +29 -2
- package/fesm2015/smartbit4all-ng-client.mjs +51 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +49 -1
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/api/model/link.d.ts +38 -0
- package/lib/view-context/api/model/models.d.ts +1 -0
- package/lib/view-context/api/model/viewContext.d.ts +2 -0
- package/lib/view-context/api/model/viewContextData.d.ts +2 -0
- package/lib/view-context/smart-view-context.service.d.ts +2 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.8.tgz +0 -0
- package/smartbit4all-ng-client-3.0.7.tgz +0 -0
|
@@ -2068,6 +2068,27 @@ const DataChangeKind = {
|
|
|
2068
2068
|
Lookup: 'LOOKUP'
|
|
2069
2069
|
};
|
|
2070
2070
|
|
|
2071
|
+
/**
|
|
2072
|
+
* View API
|
|
2073
|
+
* View API
|
|
2074
|
+
*
|
|
2075
|
+
* The version of the OpenAPI document: 1.0.0
|
|
2076
|
+
* Contact: info@it4all.hu
|
|
2077
|
+
*
|
|
2078
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2079
|
+
* https://openapi-generator.tech
|
|
2080
|
+
* Do not edit the class manually.
|
|
2081
|
+
*/
|
|
2082
|
+
var Link;
|
|
2083
|
+
(function (Link) {
|
|
2084
|
+
Link.TargetEnum = {
|
|
2085
|
+
Self: 'SELF',
|
|
2086
|
+
Blank: 'BLANK',
|
|
2087
|
+
Parent: 'PARENT',
|
|
2088
|
+
Top: 'TOP'
|
|
2089
|
+
};
|
|
2090
|
+
})(Link || (Link = {}));
|
|
2091
|
+
|
|
2071
2092
|
/**
|
|
2072
2093
|
* View API
|
|
2073
2094
|
* View API
|
|
@@ -6182,8 +6203,35 @@ class SmartViewContextService {
|
|
|
6182
6203
|
this.closeView(viewData);
|
|
6183
6204
|
});
|
|
6184
6205
|
}
|
|
6206
|
+
this.viewContext?.links?.map((data) => {
|
|
6207
|
+
const link = document.createElement('a');
|
|
6208
|
+
let target = '_blank'; // default
|
|
6209
|
+
switch (data.target ?? Link.TargetEnum.Blank) {
|
|
6210
|
+
case 'SELF':
|
|
6211
|
+
target = '_self';
|
|
6212
|
+
break;
|
|
6213
|
+
case 'BLANK':
|
|
6214
|
+
target = '_blank';
|
|
6215
|
+
break;
|
|
6216
|
+
case 'PARENT':
|
|
6217
|
+
target = '_parent';
|
|
6218
|
+
break;
|
|
6219
|
+
case 'TOP':
|
|
6220
|
+
target = '_top';
|
|
6221
|
+
break;
|
|
6222
|
+
}
|
|
6223
|
+
link.setAttribute('target', target);
|
|
6224
|
+
link.setAttribute('href', data.url);
|
|
6225
|
+
if (data.download) {
|
|
6226
|
+
link.setAttribute('download', data.filename ?? '');
|
|
6227
|
+
}
|
|
6228
|
+
document.body.appendChild(link);
|
|
6229
|
+
link.click();
|
|
6230
|
+
link.remove();
|
|
6231
|
+
});
|
|
6185
6232
|
this.viewContextHasBeenSynced.next();
|
|
6186
6233
|
}
|
|
6234
|
+
createLink(linkData) { }
|
|
6187
6235
|
getUuidOfPage(pageName) {
|
|
6188
6236
|
let uuid = sessionStorage.getItem(pageName);
|
|
6189
6237
|
if (!uuid) {
|
|
@@ -12736,5 +12784,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12736
12784
|
* Generated bundle index. Do not edit.
|
|
12737
12785
|
*/
|
|
12738
12786
|
|
|
12739
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$4 as BASE_PATH, COLLECTION_FORMATS$4 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$4 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator, FilterExpressionBuilderGroup, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderBy, GridDataAccessConfig, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptor, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SelectionDefinition, SessionAPIS, SessionErrorBehaviour, SessionService, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterModule, SmartFilterPosition, SmartFilterType, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformModule, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
12787
|
+
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$4 as BASE_PATH, COLLECTION_FORMATS$4 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$4 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator, FilterExpressionBuilderGroup, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderBy, GridDataAccessConfig, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptor, IS_ASYNC_PARAM_NAME, LayoutDirection, Link, MessageOptionType, MessageType, SelectionDefinition, SessionAPIS, SessionErrorBehaviour, SessionService, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterModule, SmartFilterPosition, SmartFilterType, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformModule, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
12740
12788
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|