@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.
@@ -0,0 +1,38 @@
1
+ /**
2
+ * View API
3
+ * View API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: info@it4all.hu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An anchor with a href representing a hyperlink object, which the client will open. For possible attributes see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
14
+ */
15
+ export interface Link {
16
+ /**
17
+ * The URL that this link points to. It will be anchor\'s href attribute\'s value.
18
+ */
19
+ url: string;
20
+ /**
21
+ * Specifies if created anchor should contain download attribute.
22
+ */
23
+ download?: boolean;
24
+ /**
25
+ * Used only when download is true, it will download attribute\'s value
26
+ */
27
+ filename?: string;
28
+ target?: Link.TargetEnum;
29
+ }
30
+ export declare namespace Link {
31
+ type TargetEnum = 'SELF' | 'BLANK' | 'PARENT' | 'TOP';
32
+ const TargetEnum: {
33
+ Self: TargetEnum;
34
+ Blank: TargetEnum;
35
+ Parent: TargetEnum;
36
+ Top: TargetEnum;
37
+ };
38
+ }
@@ -5,6 +5,7 @@ export * from './componentModelChange';
5
5
  export * from './dataChange';
6
6
  export * from './dataChangeEvent';
7
7
  export * from './dataChangeKind';
8
+ export * from './link';
8
9
  export * from './messageData';
9
10
  export * from './messageOption';
10
11
  export * from './messageOptionType';
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { OpenPendingData } from './openPendingData';
13
13
  import { View } from './view';
14
+ import { Link } from './link';
14
15
  /**
15
16
  * The same session can be valid / used in multiple UIs, this object represents a UI.
16
17
  */
@@ -18,5 +19,6 @@ export interface ViewContext {
18
19
  uri: string;
19
20
  uuid?: string;
20
21
  views: Array<View>;
22
+ links: Array<Link>;
21
23
  openPendingData?: OpenPendingData;
22
24
  }
@@ -10,10 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ViewData } from './viewData';
13
+ import { Link } from './link';
13
14
  /**
14
15
  * The same session can be valid / used in multiple UIs, this object represents a UI.
15
16
  */
16
17
  export interface ViewContextData {
17
18
  uuid?: string;
18
19
  views: Array<ViewData>;
20
+ links: Array<Link>;
19
21
  }
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken, Injector, OnDestroy } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { SmartSessionService } from '../session/smart-session.service';
4
- import { ComponentModel, DataChange, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
4
+ import { ComponentModel, DataChange, Link, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
5
5
  import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from './smart-view-context.model';
6
6
  import { SmartSubject } from '../smart-subject/projects';
7
7
  import { SmartNavigationService } from '../smart-navigation/projects';
@@ -64,6 +64,7 @@ export declare class SmartViewContextService implements OnDestroy {
64
64
  closeView(view: ViewData): void;
65
65
  restoreViews(uuid: string): Promise<void>;
66
66
  syncView(): void;
67
+ protected createLink(linkData: Link): void;
67
68
  getUuidOfPage(pageName: string): string;
68
69
  message(messageData: MessageData, messageResult: MessageResult): Promise<void>;
69
70
  getSmartViewContextApiErrorByCode(code: string): Promise<SmartViewContextApiError>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file
Binary file