@smartbit4all/ng-client 3.1.93 → 3.1.95
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/smart-form/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-form/api/index.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/models.mjs +2 -1
- package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetHint.mjs +19 -0
- package/esm2020/lib/smart-form/api/param.mjs +1 -1
- package/esm2020/lib/smart-form/api/variables.mjs +1 -1
- package/esm2020/lib/smart-form/services/smartform.layout-definition.service.mjs +11 -1
- package/esm2020/lib/smart-form/smartform.form-model.mjs +1 -1
- package/esm2020/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.mjs +5 -5
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +6 -6
- package/esm2020/lib/smart-tree/smarttree-generic.service.mjs +23 -37
- package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +549 -3
- package/esm2020/lib/smart-tree/tree-api/configuration.mjs +2 -2
- package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2020/lib/view-context/smart-view-context.service.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +702 -139
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +702 -139
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/api/model/models.d.ts +1 -0
- package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +2 -0
- package/lib/smart-form/api/model/smartWidgetHint.d.ts +22 -0
- package/lib/smart-form/smartform.form-model.d.ts +20 -38
- package/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.d.ts +5 -2
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +6 -3
- package/lib/smart-tree/tree-api/api/tree.service.d.ts +161 -2
- package/lib/view-context/api/model/viewContextChange.d.ts +4 -0
- package/lib/view-context/smart-view-context.service.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.95.tgz +0 -0
- package/src/lib/smart-form/api/README.md +226 -226
- package/smartbit4all-ng-client-3.1.93.tgz +0 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { SelectionDefinition } from './selectionDefinition';
|
|
13
13
|
import { SmartFormWidgetDirection } from './smartFormWidgetDirection';
|
|
14
|
+
import { SmartWidgetHint } from './smartWidgetHint';
|
|
14
15
|
import { SmartFormWidgetType } from './smartFormWidgetType';
|
|
15
16
|
import { Value } from '../../smartform.model';
|
|
16
17
|
import { SmartMatrixModel } from './smartMatrixModel';
|
|
@@ -72,6 +73,7 @@ export interface SmartWidgetDefinition {
|
|
|
72
73
|
selection?: SelectionDefinition;
|
|
73
74
|
direction?: SmartFormWidgetDirection;
|
|
74
75
|
matrix?: SmartMatrixModel;
|
|
76
|
+
hint?: SmartWidgetHint;
|
|
75
77
|
}
|
|
76
78
|
export declare namespace SmartWidgetDefinition {
|
|
77
79
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form layout definition
|
|
3
|
+
* Contains form layout definition objects.
|
|
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
|
+
export interface SmartWidgetHint {
|
|
13
|
+
text?: string;
|
|
14
|
+
position?: SmartWidgetHint.PositionEnum;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace SmartWidgetHint {
|
|
17
|
+
type PositionEnum = 'UNDER_LABEL' | 'UNDER_INPUT';
|
|
18
|
+
const PositionEnum: {
|
|
19
|
+
Label: PositionEnum;
|
|
20
|
+
Input: PositionEnum;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuillModules } from 'ngx-quill';
|
|
2
|
-
import { SelectionDefinition, SmartFormWidgetDirection, SmartFormWidgetType } from './api';
|
|
3
|
-
import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator,
|
|
2
|
+
import { SelectionDefinition, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint } from './api';
|
|
3
|
+
import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, ToggleLabelPosition } from './smartform.model';
|
|
4
4
|
export declare type SmartFormWidget<T> = SmartTextField<T> | SmartTextFieldNumber<T> | SmartTextFieldChips<T> | SmartTextBox<T> | SmartSelect<T> | SmartSelectMultiple<T> | SmartCheckBox<T> | SmartCheckBox2<T> | SmartRadioButton<T> | SmartDatePicker<T> | SmartDateTimePicker<T> | SmartContainer<T> | SmartLabel | SmartTime<T> | SmartToggle<T> | SmartIndicatorItem | SmartFileUploader | SmartImage | SmartDivider | SmartButton | SmartFormInlineComponent | SmartRichText | SmartSortable<T> | SmartMatrix | SmartYoutubePlayer | SmartMonthPicker;
|
|
5
5
|
export interface SmartTextField<T> {
|
|
6
6
|
type: SmartFormWidgetType.TEXT_FIELD;
|
|
@@ -33,8 +33,7 @@ export interface SmartTextField<T> {
|
|
|
33
33
|
errorIconColor?: string;
|
|
34
34
|
valueList?: SmartItem<T>[];
|
|
35
35
|
selection?: SelectionDefinition;
|
|
36
|
-
hint?:
|
|
37
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
36
|
+
hint?: SmartWidgetHint;
|
|
38
37
|
maxLength?: number;
|
|
39
38
|
showCharacterLimitSuffix?: boolean;
|
|
40
39
|
}
|
|
@@ -64,8 +63,7 @@ export interface SmartTextFieldNumber<T> {
|
|
|
64
63
|
iconColor?: string;
|
|
65
64
|
errorIcon?: string;
|
|
66
65
|
errorIconColor?: string;
|
|
67
|
-
hint?:
|
|
68
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
66
|
+
hint?: SmartWidgetHint;
|
|
69
67
|
}
|
|
70
68
|
export interface SmartTextFieldChips<T> {
|
|
71
69
|
type: SmartFormWidgetType.TEXT_FIELD_CHIPS;
|
|
@@ -89,8 +87,7 @@ export interface SmartTextFieldChips<T> {
|
|
|
89
87
|
valueList: SmartItem<T>[];
|
|
90
88
|
minValues?: number;
|
|
91
89
|
maxValues?: number;
|
|
92
|
-
hint?:
|
|
93
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
90
|
+
hint?: SmartWidgetHint;
|
|
94
91
|
}
|
|
95
92
|
export interface SmartTextBox<T> {
|
|
96
93
|
type: SmartFormWidgetType.TEXT_BOX;
|
|
@@ -111,8 +108,7 @@ export interface SmartTextBox<T> {
|
|
|
111
108
|
error?: string;
|
|
112
109
|
errorIcon?: string;
|
|
113
110
|
errorIconColor?: string;
|
|
114
|
-
hint?:
|
|
115
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
111
|
+
hint?: SmartWidgetHint;
|
|
116
112
|
maxLength?: number;
|
|
117
113
|
showCharacterLimitSuffix?: boolean;
|
|
118
114
|
}
|
|
@@ -135,8 +131,7 @@ export interface SmartSelect<T> {
|
|
|
135
131
|
errorIconColor?: string;
|
|
136
132
|
valueList: SmartItems<T>[];
|
|
137
133
|
selection?: SelectionDefinition;
|
|
138
|
-
hint?:
|
|
139
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
134
|
+
hint?: SmartWidgetHint;
|
|
140
135
|
compareWith?: (o1: any, o2: any) => boolean;
|
|
141
136
|
}
|
|
142
137
|
export interface SmartSelectMultiple<T> {
|
|
@@ -158,8 +153,7 @@ export interface SmartSelectMultiple<T> {
|
|
|
158
153
|
errorIconColor?: string;
|
|
159
154
|
valueList: SmartItems<T>[];
|
|
160
155
|
selection?: SelectionDefinition;
|
|
161
|
-
hint?:
|
|
162
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
156
|
+
hint?: SmartWidgetHint;
|
|
163
157
|
compareWith?: (o1: any, o2: any) => boolean;
|
|
164
158
|
}
|
|
165
159
|
export interface SmartCheckBox<T> {
|
|
@@ -182,8 +176,7 @@ export interface SmartCheckBox<T> {
|
|
|
182
176
|
valueList: SmartItem<T>[];
|
|
183
177
|
selection?: SelectionDefinition;
|
|
184
178
|
direction?: SmartFormWidgetDirection;
|
|
185
|
-
hint?:
|
|
186
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
179
|
+
hint?: SmartWidgetHint;
|
|
187
180
|
}
|
|
188
181
|
export interface SmartCheckBox2<T> {
|
|
189
182
|
type: SmartFormWidgetType.CHECK_BOX_2;
|
|
@@ -205,8 +198,7 @@ export interface SmartCheckBox2<T> {
|
|
|
205
198
|
valueList: SmartItem<T>[];
|
|
206
199
|
selection?: SelectionDefinition;
|
|
207
200
|
direction?: SmartFormWidgetDirection;
|
|
208
|
-
hint?:
|
|
209
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
201
|
+
hint?: SmartWidgetHint;
|
|
210
202
|
}
|
|
211
203
|
export interface SmartRadioButton<T> {
|
|
212
204
|
type: SmartFormWidgetType.RADIO_BUTTON;
|
|
@@ -228,8 +220,7 @@ export interface SmartRadioButton<T> {
|
|
|
228
220
|
valueList: SmartItem<T>[];
|
|
229
221
|
selection?: SelectionDefinition;
|
|
230
222
|
direction?: SmartFormWidgetDirection;
|
|
231
|
-
hint?:
|
|
232
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
223
|
+
hint?: SmartWidgetHint;
|
|
233
224
|
}
|
|
234
225
|
export interface SmartDatePicker<T> {
|
|
235
226
|
type: SmartFormWidgetType.DATE_PICKER;
|
|
@@ -253,8 +244,7 @@ export interface SmartDatePicker<T> {
|
|
|
253
244
|
minDate?: Date;
|
|
254
245
|
maxDate?: Date;
|
|
255
246
|
filter?: (d: Date | null) => boolean;
|
|
256
|
-
hint?:
|
|
257
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
247
|
+
hint?: SmartWidgetHint;
|
|
258
248
|
}
|
|
259
249
|
export interface SmartDateTimePicker<T> {
|
|
260
250
|
type: SmartFormWidgetType.DATE_TIME_PICKER;
|
|
@@ -276,8 +266,7 @@ export interface SmartDateTimePicker<T> {
|
|
|
276
266
|
errorIconColor?: string;
|
|
277
267
|
dateFormatHint?: string;
|
|
278
268
|
filter?: (d: Date | null) => boolean;
|
|
279
|
-
hint?:
|
|
280
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
269
|
+
hint?: SmartWidgetHint;
|
|
281
270
|
}
|
|
282
271
|
export interface SmartContainer<T> {
|
|
283
272
|
key?: string;
|
|
@@ -316,8 +305,7 @@ export interface SmartTime<T> {
|
|
|
316
305
|
error?: string;
|
|
317
306
|
errorIcon?: string;
|
|
318
307
|
errorIconColor?: string;
|
|
319
|
-
hint?:
|
|
320
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
308
|
+
hint?: SmartWidgetHint;
|
|
321
309
|
}
|
|
322
310
|
export interface SmartToggle<T> {
|
|
323
311
|
type: SmartFormWidgetType.TOGGLE;
|
|
@@ -337,8 +325,7 @@ export interface SmartToggle<T> {
|
|
|
337
325
|
error?: string;
|
|
338
326
|
errorIcon?: string;
|
|
339
327
|
errorIconColor?: string;
|
|
340
|
-
hint?:
|
|
341
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
328
|
+
hint?: SmartWidgetHint;
|
|
342
329
|
}
|
|
343
330
|
export interface SmartIndicatorItem {
|
|
344
331
|
type: SmartFormWidgetType.INDICATOR;
|
|
@@ -447,8 +434,7 @@ export interface SmartRichText {
|
|
|
447
434
|
error?: string;
|
|
448
435
|
errorIcon?: string;
|
|
449
436
|
errorIconColor?: string;
|
|
450
|
-
hint?:
|
|
451
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
437
|
+
hint?: SmartWidgetHint;
|
|
452
438
|
}
|
|
453
439
|
export interface SmartSortable<T> {
|
|
454
440
|
type: SmartFormWidgetType.SORTABLE;
|
|
@@ -468,8 +454,7 @@ export interface SmartSortable<T> {
|
|
|
468
454
|
validators?: SmartValidator[];
|
|
469
455
|
valueList?: SmartItem<T>[];
|
|
470
456
|
isMultiple?: boolean;
|
|
471
|
-
hint?:
|
|
472
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
457
|
+
hint?: SmartWidgetHint;
|
|
473
458
|
}
|
|
474
459
|
export interface SmartMatrix {
|
|
475
460
|
type: SmartFormWidgetType.MATRIX;
|
|
@@ -488,8 +473,7 @@ export interface SmartMatrix {
|
|
|
488
473
|
errorIconColor?: string;
|
|
489
474
|
validators?: SmartValidator[];
|
|
490
475
|
isMultiple?: boolean;
|
|
491
|
-
hint?:
|
|
492
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
476
|
+
hint?: SmartWidgetHint;
|
|
493
477
|
}
|
|
494
478
|
export interface SmartYoutubePlayer {
|
|
495
479
|
key?: string;
|
|
@@ -504,8 +488,7 @@ export interface SmartYoutubePlayer {
|
|
|
504
488
|
isVisible?: boolean;
|
|
505
489
|
label?: string;
|
|
506
490
|
validators?: SmartValidator[];
|
|
507
|
-
hint?:
|
|
508
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
491
|
+
hint?: SmartWidgetHint;
|
|
509
492
|
showLabel?: boolean;
|
|
510
493
|
}
|
|
511
494
|
export interface SmartMonthPicker {
|
|
@@ -522,6 +505,5 @@ export interface SmartMonthPicker {
|
|
|
522
505
|
isVisible?: boolean;
|
|
523
506
|
isDisabled?: boolean;
|
|
524
507
|
originalLabel?: string;
|
|
525
|
-
hint?:
|
|
526
|
-
hintConfig?: SmartWidgetHintConfig;
|
|
508
|
+
hint?: SmartWidgetHint;
|
|
527
509
|
}
|
package/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FormControl } from '@angular/forms';
|
|
|
3
3
|
import { Moment } from 'moment';
|
|
4
4
|
import { SmartMonthPicker } from '../../../smartform.form-model';
|
|
5
5
|
import { MatDatepicker } from '@angular/material/datepicker';
|
|
6
|
-
import {
|
|
6
|
+
import { SmartWidgetHint } from '../../../api';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare const YEARH_MONTH_FORMAT: {
|
|
9
9
|
parse: {
|
|
@@ -20,7 +20,10 @@ export declare class SmartMonthPickerComponent implements OnInit {
|
|
|
20
20
|
widgetInstance: SmartMonthPicker;
|
|
21
21
|
valueChange: EventEmitter<any>;
|
|
22
22
|
date: FormControl;
|
|
23
|
-
SmartWidgetHintPosition:
|
|
23
|
+
SmartWidgetHintPosition: {
|
|
24
|
+
Label: SmartWidgetHint.PositionEnum;
|
|
25
|
+
Input: SmartWidgetHint.PositionEnum;
|
|
26
|
+
};
|
|
24
27
|
ngOnInit(): void;
|
|
25
28
|
chosenMonthHandler(moment: Moment, datepicker: MatDatepicker<Moment>): void;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartMonthPickerComponent, never>;
|
|
@@ -3,10 +3,10 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
4
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import { SmartFormWidgetType } from '../../api/model/models';
|
|
6
|
+
import { SmartFormWidgetType, SmartWidgetHint } from '../../api/model/models';
|
|
7
7
|
import { SmartFormService } from '../../services/smartform.service';
|
|
8
8
|
import { SmartButton, SmartFormWidget, SmartItem } from '../../smartform.form-model';
|
|
9
|
-
import { SmartFormTextFieldButtonIconPosition, SmartValidator,
|
|
9
|
+
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
|
|
10
10
|
import { ComponentFactoryService } from '../../../component-factory-service/projects';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class SmartWidgetSettings {
|
|
@@ -35,7 +35,10 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
35
35
|
filteredOptions?: Observable<SmartItem<any>[]>;
|
|
36
36
|
isEnterPressed: boolean;
|
|
37
37
|
isDatePickerRequired: boolean;
|
|
38
|
-
SmartWidgetHintPosition:
|
|
38
|
+
SmartWidgetHintPosition: {
|
|
39
|
+
Label: SmartWidgetHint.PositionEnum;
|
|
40
|
+
Input: SmartWidgetHint.PositionEnum;
|
|
41
|
+
};
|
|
39
42
|
constructor(service: SmartFormService, cfService: ComponentFactoryService);
|
|
40
43
|
ngOnInit(): void;
|
|
41
44
|
parseYoutubeUrl(url: string): string | false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { SmartTreeNode } from '../..';
|
|
4
|
+
import { UiAction, UiActionRequest, ViewContextChange } from '../../../view-context/api';
|
|
4
5
|
import { Configuration } from '../configuration';
|
|
5
|
-
import { SmartTreeNode } from '../../smarttree.model';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TreeService {
|
|
8
8
|
protected httpClient: HttpClient;
|
|
@@ -33,6 +33,26 @@ export declare class TreeService {
|
|
|
33
33
|
httpHeaderAccept?: 'application/json';
|
|
34
34
|
context?: HttpContext;
|
|
35
35
|
}): Observable<HttpEvent<SmartTreeNode>>;
|
|
36
|
+
/**
|
|
37
|
+
* Collapses the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the collapsed SmartTreeNode.
|
|
38
|
+
* @param viewUuid
|
|
39
|
+
* @param treeId
|
|
40
|
+
* @param nodeId
|
|
41
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
42
|
+
* @param reportProgress flag to report request and response progress.
|
|
43
|
+
*/
|
|
44
|
+
collapseNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
45
|
+
httpHeaderAccept?: 'application/json';
|
|
46
|
+
context?: HttpContext;
|
|
47
|
+
}): Observable<ViewContextChange>;
|
|
48
|
+
collapseNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
49
|
+
httpHeaderAccept?: 'application/json';
|
|
50
|
+
context?: HttpContext;
|
|
51
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
52
|
+
collapseNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
53
|
+
httpHeaderAccept?: 'application/json';
|
|
54
|
+
context?: HttpContext;
|
|
55
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
36
56
|
/**
|
|
37
57
|
* Expands the given treenode. The viewcontext will hold the appropriate instruction for the ui, if any. Returns the expanded SmartTreeNode.
|
|
38
58
|
* @param viewUuid
|
|
@@ -53,6 +73,26 @@ export declare class TreeService {
|
|
|
53
73
|
httpHeaderAccept?: 'application/json';
|
|
54
74
|
context?: HttpContext;
|
|
55
75
|
}): Observable<HttpEvent<SmartTreeNode>>;
|
|
76
|
+
/**
|
|
77
|
+
* Expands the given treenode. The viewcontext will hold the appropriate instruction for the ui, if any. Returns the expanded SmartTreeNode.
|
|
78
|
+
* @param viewUuid
|
|
79
|
+
* @param treeId
|
|
80
|
+
* @param nodeId
|
|
81
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
82
|
+
* @param reportProgress flag to report request and response progress.
|
|
83
|
+
*/
|
|
84
|
+
expandNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
86
|
+
context?: HttpContext;
|
|
87
|
+
}): Observable<ViewContextChange>;
|
|
88
|
+
expandNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
89
|
+
httpHeaderAccept?: 'application/json';
|
|
90
|
+
context?: HttpContext;
|
|
91
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
92
|
+
expandNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
93
|
+
httpHeaderAccept?: 'application/json';
|
|
94
|
+
context?: HttpContext;
|
|
95
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
56
96
|
/**
|
|
57
97
|
* Query the child nodes of the tree\'s node given in the parameter
|
|
58
98
|
* @param viewUuid
|
|
@@ -73,6 +113,26 @@ export declare class TreeService {
|
|
|
73
113
|
httpHeaderAccept?: 'application/json';
|
|
74
114
|
context?: HttpContext;
|
|
75
115
|
}): Observable<HttpEvent<Array<SmartTreeNode>>>;
|
|
116
|
+
/**
|
|
117
|
+
* Query the child nodes of the tree\'s node given in the parameter
|
|
118
|
+
* @param viewUuid
|
|
119
|
+
* @param treeId
|
|
120
|
+
* @param nodeId
|
|
121
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
122
|
+
* @param reportProgress flag to report request and response progress.
|
|
123
|
+
*/
|
|
124
|
+
getChildrenNodes2(viewUuid: string, treeId: string, nodeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
125
|
+
httpHeaderAccept?: 'application/json';
|
|
126
|
+
context?: HttpContext;
|
|
127
|
+
}): Observable<ViewContextChange>;
|
|
128
|
+
getChildrenNodes2(viewUuid: string, treeId: string, nodeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
129
|
+
httpHeaderAccept?: 'application/json';
|
|
130
|
+
context?: HttpContext;
|
|
131
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
132
|
+
getChildrenNodes2(viewUuid: string, treeId: string, nodeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
133
|
+
httpHeaderAccept?: 'application/json';
|
|
134
|
+
context?: HttpContext;
|
|
135
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
76
136
|
/**
|
|
77
137
|
* Query all tree nodes.
|
|
78
138
|
* @param viewUuid
|
|
@@ -92,6 +152,25 @@ export declare class TreeService {
|
|
|
92
152
|
httpHeaderAccept?: 'application/json';
|
|
93
153
|
context?: HttpContext;
|
|
94
154
|
}): Observable<HttpEvent<Array<UiAction>>>;
|
|
155
|
+
/**
|
|
156
|
+
* Query all tree nodes.
|
|
157
|
+
* @param viewUuid
|
|
158
|
+
* @param treeId
|
|
159
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
160
|
+
* @param reportProgress flag to report request and response progress.
|
|
161
|
+
*/
|
|
162
|
+
getMainActions2(viewUuid: string, treeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
163
|
+
httpHeaderAccept?: 'application/json';
|
|
164
|
+
context?: HttpContext;
|
|
165
|
+
}): Observable<ViewContextChange>;
|
|
166
|
+
getMainActions2(viewUuid: string, treeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
167
|
+
httpHeaderAccept?: 'application/json';
|
|
168
|
+
context?: HttpContext;
|
|
169
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
170
|
+
getMainActions2(viewUuid: string, treeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
171
|
+
httpHeaderAccept?: 'application/json';
|
|
172
|
+
context?: HttpContext;
|
|
173
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
95
174
|
/**
|
|
96
175
|
* Query all tree nodes.
|
|
97
176
|
* @param viewUuid
|
|
@@ -111,6 +190,25 @@ export declare class TreeService {
|
|
|
111
190
|
httpHeaderAccept?: 'application/json';
|
|
112
191
|
context?: HttpContext;
|
|
113
192
|
}): Observable<HttpEvent<Array<SmartTreeNode>>>;
|
|
193
|
+
/**
|
|
194
|
+
* Query all tree nodes.
|
|
195
|
+
* @param viewUuid
|
|
196
|
+
* @param treeId
|
|
197
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
198
|
+
* @param reportProgress flag to report request and response progress.
|
|
199
|
+
*/
|
|
200
|
+
getRootNodes2(viewUuid: string, treeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
201
|
+
httpHeaderAccept?: 'application/json';
|
|
202
|
+
context?: HttpContext;
|
|
203
|
+
}): Observable<ViewContextChange>;
|
|
204
|
+
getRootNodes2(viewUuid: string, treeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
205
|
+
httpHeaderAccept?: 'application/json';
|
|
206
|
+
context?: HttpContext;
|
|
207
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
208
|
+
getRootNodes2(viewUuid: string, treeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
209
|
+
httpHeaderAccept?: 'application/json';
|
|
210
|
+
context?: HttpContext;
|
|
211
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
114
212
|
/**
|
|
115
213
|
* Performs an action on the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the SmartTreeNode which the action was performed on.
|
|
116
214
|
* @param viewUuid
|
|
@@ -132,6 +230,27 @@ export declare class TreeService {
|
|
|
132
230
|
httpHeaderAccept?: 'application/json';
|
|
133
231
|
context?: HttpContext;
|
|
134
232
|
}): Observable<HttpEvent<Array<SmartTreeNode>>>;
|
|
233
|
+
/**
|
|
234
|
+
* Performs an action on the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the SmartTreeNode which the action was performed on.
|
|
235
|
+
* @param viewUuid
|
|
236
|
+
* @param treeId
|
|
237
|
+
* @param nodeId
|
|
238
|
+
* @param body
|
|
239
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
240
|
+
* @param reportProgress flag to report request and response progress.
|
|
241
|
+
*/
|
|
242
|
+
performAction2(viewUuid: string, treeId: string, nodeId: string, body: UiActionRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
|
243
|
+
httpHeaderAccept?: 'application/json';
|
|
244
|
+
context?: HttpContext;
|
|
245
|
+
}): Observable<ViewContextChange>;
|
|
246
|
+
performAction2(viewUuid: string, treeId: string, nodeId: string, body: UiActionRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
247
|
+
httpHeaderAccept?: 'application/json';
|
|
248
|
+
context?: HttpContext;
|
|
249
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
250
|
+
performAction2(viewUuid: string, treeId: string, nodeId: string, body: UiActionRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
251
|
+
httpHeaderAccept?: 'application/json';
|
|
252
|
+
context?: HttpContext;
|
|
253
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
135
254
|
/**
|
|
136
255
|
* Performs an action on the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the SmartTreeNode which the action was performed on.
|
|
137
256
|
* @param viewUuid
|
|
@@ -152,6 +271,26 @@ export declare class TreeService {
|
|
|
152
271
|
httpHeaderAccept?: 'application/json';
|
|
153
272
|
context?: HttpContext;
|
|
154
273
|
}): Observable<HttpEvent<Array<SmartTreeNode>>>;
|
|
274
|
+
/**
|
|
275
|
+
* Performs an action on the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the SmartTreeNode which the action was performed on.
|
|
276
|
+
* @param viewUuid
|
|
277
|
+
* @param treeId
|
|
278
|
+
* @param body
|
|
279
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
280
|
+
* @param reportProgress flag to report request and response progress.
|
|
281
|
+
*/
|
|
282
|
+
performMainAction2(viewUuid: string, treeId: string, body: UiActionRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
|
283
|
+
httpHeaderAccept?: 'application/json';
|
|
284
|
+
context?: HttpContext;
|
|
285
|
+
}): Observable<ViewContextChange>;
|
|
286
|
+
performMainAction2(viewUuid: string, treeId: string, body: UiActionRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
287
|
+
httpHeaderAccept?: 'application/json';
|
|
288
|
+
context?: HttpContext;
|
|
289
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
290
|
+
performMainAction2(viewUuid: string, treeId: string, body: UiActionRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
291
|
+
httpHeaderAccept?: 'application/json';
|
|
292
|
+
context?: HttpContext;
|
|
293
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
155
294
|
/**
|
|
156
295
|
* Collapses the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the collapsed SmartTreeNode.
|
|
157
296
|
* @param viewUuid
|
|
@@ -172,6 +311,26 @@ export declare class TreeService {
|
|
|
172
311
|
httpHeaderAccept?: 'application/json';
|
|
173
312
|
context?: HttpContext;
|
|
174
313
|
}): Observable<HttpEvent<SmartTreeNode>>;
|
|
314
|
+
/**
|
|
315
|
+
* Collapses the given treenode. The viewcontext will hold the appropriate instruction for the ui. Returns the collapsed SmartTreeNode.
|
|
316
|
+
* @param viewUuid
|
|
317
|
+
* @param treeId
|
|
318
|
+
* @param nodeId
|
|
319
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
320
|
+
* @param reportProgress flag to report request and response progress.
|
|
321
|
+
*/
|
|
322
|
+
selectNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
323
|
+
httpHeaderAccept?: 'application/json';
|
|
324
|
+
context?: HttpContext;
|
|
325
|
+
}): Observable<ViewContextChange>;
|
|
326
|
+
selectNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
327
|
+
httpHeaderAccept?: 'application/json';
|
|
328
|
+
context?: HttpContext;
|
|
329
|
+
}): Observable<HttpResponse<ViewContextChange>>;
|
|
330
|
+
selectNode2(viewUuid: string, treeId: string, nodeId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
331
|
+
httpHeaderAccept?: 'application/json';
|
|
332
|
+
context?: HttpContext;
|
|
333
|
+
}): Observable<HttpEvent<ViewContextChange>>;
|
|
175
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeService, [null, { optional: true; }, { optional: true; }]>;
|
|
176
335
|
static ɵprov: i0.ɵɵInjectableDeclaration<TreeService>;
|
|
177
336
|
}
|
|
@@ -17,4 +17,8 @@ import { ViewContextData } from './viewContextData';
|
|
|
17
17
|
export interface ViewContextChange {
|
|
18
18
|
viewContext: ViewContextData;
|
|
19
19
|
changes: Array<ComponentModelChange>;
|
|
20
|
+
/**
|
|
21
|
+
* If the server call is wrapped inside this ViewContextChange, then this field will contain the result of the original call.
|
|
22
|
+
*/
|
|
23
|
+
result?: object;
|
|
20
24
|
}
|
|
@@ -83,7 +83,7 @@ export declare class SmartViewContextService implements OnDestroy {
|
|
|
83
83
|
private _performUploadAction;
|
|
84
84
|
private _performUploadMultipleAction;
|
|
85
85
|
private _dataChanged;
|
|
86
|
-
handlePerformActionResponse(viewContextChange: ViewContextChange | undefined): Promise<
|
|
86
|
+
handlePerformActionResponse(viewContextChange: ViewContextChange | undefined): Promise<any>;
|
|
87
87
|
private handleChanges;
|
|
88
88
|
load(uuid: string): Promise<ComponentModel | undefined>;
|
|
89
89
|
load2(uuid: string): Promise<ViewContextChange | undefined>;
|
package/package.json
CHANGED
|
Binary file
|