@smartbit4all/ng-client 3.3.58 → 3.3.59

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.
@@ -67,6 +67,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
67
67
  load(): Promise<void>;
68
68
  executeUiAction(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
69
69
  addDataChangeActionHandler(key: string): void;
70
+ removeDataChangeActionHandler(key: string): void;
70
71
  protected dataChangeActionHandler(event: SophisticatedValueChange): void;
71
72
  protected handleDataChangeSubscriptions(): void;
72
73
  getInvalidFields(): SmartFormInvalidFields;
@@ -6,3 +6,4 @@ export * from './smartLayoutDefinition';
6
6
  export * from './smartMatrixModel';
7
7
  export * from './smartWidgetDefinition';
8
8
  export * from './smartWidgetHint';
9
+ export * from './valueChangeMode';
@@ -15,6 +15,7 @@ import { SmartFormWidgetDirection } from './smartFormWidgetDirection';
15
15
  import { SmartWidgetHint } from './smartWidgetHint';
16
16
  import { SmartFormWidgetType } from './smartFormWidgetType';
17
17
  import { Value } from '../../smartform.model';
18
+ import { ValueChangeMode } from './valueChangeMode';
18
19
  import { SmartMatrixModel } from './smartMatrixModel';
19
20
  /**
20
21
  * The layout definition of the SmartTextField widget.
@@ -81,4 +82,5 @@ export interface SmartWidgetDefinition {
81
82
  hint?: SmartWidgetHint;
82
83
  widgetDescription?: string;
83
84
  maxLength?: number;
85
+ valueChangeMode?: ValueChangeMode;
84
86
  }
@@ -0,0 +1,18 @@
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
+ /**
13
+ * This enum defines the value change handling strategy. Currently only one method is supported, IMMEDIATE_ACTION, which will trigger an executeUiAction when the value is changed.
14
+ */
15
+ export declare enum ValueChangeMode {
16
+ NONE = "NONE",
17
+ IMMEDIATE_ACTION = "IMMEDIATE_ACTION"
18
+ }
@@ -1,10 +1,11 @@
1
1
  import { QuillModules } from 'ngx-quill';
2
- import { SelectionDefinition, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint } from './api';
2
+ import { SelectionDefinition, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, ValueChangeMode } from './api';
3
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;
7
7
  key: string;
8
+ valueChangeMode?: ValueChangeMode;
8
9
  label: string;
9
10
  originalLabel?: string;
10
11
  showLabel?: boolean;
@@ -40,6 +41,7 @@ export interface SmartTextField<T> {
40
41
  export interface SmartTextFieldNumber<T> {
41
42
  type: SmartFormWidgetType.TEXT_FIELD_NUMBER;
42
43
  key: string;
44
+ valueChangeMode?: ValueChangeMode;
43
45
  label: string;
44
46
  originalLabel?: string;
45
47
  showLabel?: boolean;
@@ -68,6 +70,7 @@ export interface SmartTextFieldNumber<T> {
68
70
  export interface SmartTextFieldChips<T> {
69
71
  type: SmartFormWidgetType.TEXT_FIELD_CHIPS;
70
72
  key: string;
73
+ valueChangeMode?: ValueChangeMode;
71
74
  label: string;
72
75
  originalLabel?: string;
73
76
  showLabel?: boolean;
@@ -92,6 +95,7 @@ export interface SmartTextFieldChips<T> {
92
95
  export interface SmartTextBox<T> {
93
96
  type: SmartFormWidgetType.TEXT_BOX;
94
97
  key: string;
98
+ valueChangeMode?: ValueChangeMode;
95
99
  label: string;
96
100
  originalLabel?: string;
97
101
  showLabel?: boolean;
@@ -115,6 +119,7 @@ export interface SmartTextBox<T> {
115
119
  export interface SmartSelect<T> {
116
120
  type: SmartFormWidgetType.SELECT;
117
121
  key: string;
122
+ valueChangeMode?: ValueChangeMode;
118
123
  label: string;
119
124
  originalLabel?: string;
120
125
  showLabel?: boolean;
@@ -138,6 +143,7 @@ export interface SmartSelect<T> {
138
143
  export interface SmartSelectMultiple<T> {
139
144
  type: SmartFormWidgetType.SELECT_MULTIPLE;
140
145
  key: string;
146
+ valueChangeMode?: ValueChangeMode;
141
147
  label: string;
142
148
  originalLabel?: string;
143
149
  showLabel?: boolean;
@@ -161,6 +167,7 @@ export interface SmartSelectMultiple<T> {
161
167
  export interface SmartCheckBox<T> {
162
168
  type: SmartFormWidgetType.CHECK_BOX;
163
169
  key: string;
170
+ valueChangeMode?: ValueChangeMode;
164
171
  label: string;
165
172
  originalLabel?: string;
166
173
  showLabel?: boolean;
@@ -183,6 +190,7 @@ export interface SmartCheckBox<T> {
183
190
  export interface SmartCheckBox2<T> {
184
191
  type: SmartFormWidgetType.CHECK_BOX_2;
185
192
  key: string;
193
+ valueChangeMode?: ValueChangeMode;
186
194
  label: string;
187
195
  originalLabel?: string;
188
196
  showLabel?: boolean;
@@ -205,6 +213,7 @@ export interface SmartCheckBox2<T> {
205
213
  export interface SmartRadioButton<T> {
206
214
  type: SmartFormWidgetType.RADIO_BUTTON;
207
215
  key: string;
216
+ valueChangeMode?: ValueChangeMode;
208
217
  label: string;
209
218
  originalLabel?: string;
210
219
  showLabel?: boolean;
@@ -227,6 +236,7 @@ export interface SmartRadioButton<T> {
227
236
  export interface SmartDatePicker<T> {
228
237
  type: SmartFormWidgetType.DATE_PICKER;
229
238
  key: string;
239
+ valueChangeMode?: ValueChangeMode;
230
240
  label: string;
231
241
  originalLabel?: string;
232
242
  showLabel?: boolean;
@@ -251,6 +261,7 @@ export interface SmartDatePicker<T> {
251
261
  export interface SmartDateTimePicker<T> {
252
262
  type: SmartFormWidgetType.DATE_TIME_PICKER;
253
263
  key: string;
264
+ valueChangeMode?: ValueChangeMode;
254
265
  label: string;
255
266
  originalLabel?: string;
256
267
  showLabel?: boolean;
@@ -272,6 +283,7 @@ export interface SmartDateTimePicker<T> {
272
283
  }
273
284
  export interface SmartContainer<T> {
274
285
  key?: string;
286
+ valueChangeMode?: ValueChangeMode;
275
287
  type: SmartFormWidgetType.CONTAINER;
276
288
  isVisible?: boolean;
277
289
  valueList: SmartFormWidget<T>[];
@@ -280,6 +292,7 @@ export interface SmartContainer<T> {
280
292
  }
281
293
  export interface SmartLabel {
282
294
  key?: string;
295
+ valueChangeMode?: ValueChangeMode;
283
296
  type: SmartFormWidgetType.LABEL;
284
297
  isVisible?: boolean;
285
298
  cssClass?: string;
@@ -292,6 +305,7 @@ export interface SmartLabel {
292
305
  export interface SmartTime<T> {
293
306
  type: SmartFormWidgetType.TIME;
294
307
  key: string;
308
+ valueChangeMode?: ValueChangeMode;
295
309
  value?: T;
296
310
  placeholder?: string;
297
311
  label: string;
@@ -312,6 +326,7 @@ export interface SmartTime<T> {
312
326
  export interface SmartToggle<T> {
313
327
  type: SmartFormWidgetType.TOGGLE;
314
328
  key: string;
329
+ valueChangeMode?: ValueChangeMode;
315
330
  value?: T;
316
331
  placeholder?: string;
317
332
  label: string;
@@ -332,6 +347,7 @@ export interface SmartToggle<T> {
332
347
  export interface SmartIndicatorItem {
333
348
  type: SmartFormWidgetType.INDICATOR;
334
349
  key: string;
350
+ valueChangeMode?: ValueChangeMode;
335
351
  label: string;
336
352
  originalLabel?: string;
337
353
  showLabel?: boolean;
@@ -343,6 +359,7 @@ export declare type SmartItems<T> = SmartItem<T> | SmartItemGroup<T>;
343
359
  export interface SmartItem<T> {
344
360
  type: SmartFormWidgetType.ITEM;
345
361
  key: string;
362
+ valueChangeMode?: ValueChangeMode;
346
363
  label: string;
347
364
  originalLabel?: string;
348
365
  value?: T;
@@ -354,6 +371,7 @@ export interface SmartItem<T> {
354
371
  export interface SmartItemGroup<T> {
355
372
  type: SmartFormWidgetType.ITEM_GROUP;
356
373
  key: string;
374
+ valueChangeMode?: ValueChangeMode;
357
375
  label: string;
358
376
  originalLabel?: string;
359
377
  isDisabled?: boolean;
@@ -362,6 +380,7 @@ export interface SmartItemGroup<T> {
362
380
  export interface SmartFileUploader {
363
381
  type: SmartFormWidgetType.FILE_UPLOADER;
364
382
  key: string;
383
+ valueChangeMode?: ValueChangeMode;
365
384
  label: string;
366
385
  originalLabel?: string;
367
386
  showLabel?: boolean;
@@ -375,6 +394,7 @@ export interface SmartFileUploader {
375
394
  export interface SmartImage {
376
395
  type: SmartFormWidgetType.IMAGE;
377
396
  key: string;
397
+ valueChangeMode?: ValueChangeMode;
378
398
  label: string;
379
399
  originalLabel?: string;
380
400
  showLabel?: boolean;
@@ -386,6 +406,7 @@ export interface SmartImage {
386
406
  export interface SmartDivider {
387
407
  type: SmartFormWidgetType.DIVIDER;
388
408
  key: string;
409
+ valueChangeMode?: ValueChangeMode;
389
410
  label: string;
390
411
  originalLabel?: string;
391
412
  showLabel?: boolean;
@@ -396,6 +417,7 @@ export interface SmartDivider {
396
417
  export interface SmartButton {
397
418
  type: SmartFormWidgetType.BUTTON;
398
419
  key: string;
420
+ valueChangeMode?: ValueChangeMode;
399
421
  label: string;
400
422
  originalLabel?: string;
401
423
  showLabel?: boolean;
@@ -409,6 +431,7 @@ export interface SmartButton {
409
431
  export interface SmartFormInlineComponent {
410
432
  type: SmartFormWidgetType.COMPONENT;
411
433
  key: string;
434
+ valueChangeMode?: ValueChangeMode;
412
435
  label: string;
413
436
  originalLabel?: string;
414
437
  showLabel?: boolean;
@@ -420,6 +443,7 @@ export interface SmartFormInlineComponent {
420
443
  export interface SmartRichText {
421
444
  type: SmartFormWidgetType.RICH_TEXT;
422
445
  key: string;
446
+ valueChangeMode?: ValueChangeMode;
423
447
  label: string;
424
448
  value?: string;
425
449
  originalLabel?: string;
@@ -441,6 +465,7 @@ export interface SmartRichText {
441
465
  export interface SmartSortable<T> {
442
466
  type: SmartFormWidgetType.SORTABLE;
443
467
  key: string;
468
+ valueChangeMode?: ValueChangeMode;
444
469
  label: string;
445
470
  value?: string;
446
471
  originalLabel?: string;
@@ -461,6 +486,7 @@ export interface SmartSortable<T> {
461
486
  export interface SmartMatrix {
462
487
  type: SmartFormWidgetType.MATRIX;
463
488
  key: string;
489
+ valueChangeMode?: ValueChangeMode;
464
490
  label: string;
465
491
  value?: any;
466
492
  originalLabel?: string;
@@ -485,6 +511,7 @@ export interface SmartMatrixButton {
485
511
  }
486
512
  export interface SmartYoutubePlayer {
487
513
  key?: string;
514
+ valueChangeMode?: ValueChangeMode;
488
515
  type: SmartFormWidgetType.YOUTUBE_PLAYER;
489
516
  link?: string;
490
517
  videoId?: string;
@@ -501,6 +528,7 @@ export interface SmartYoutubePlayer {
501
528
  }
502
529
  export interface SmartMonthPicker {
503
530
  key: string;
531
+ valueChangeMode?: ValueChangeMode;
504
532
  type: SmartFormWidgetType.MONTH_PICKER;
505
533
  value?: string;
506
534
  validators?: SmartValidator[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.3.58",
3
+ "version": "3.3.59",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file