@smartbit4all/ng-client 4.2.127 → 4.2.129

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.
Files changed (143) hide show
  1. package/esm2022/lib/smart-client/smart-component-api-client.mjs +37 -18
  2. package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
  3. package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
  4. package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
  5. package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
  6. package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
  7. package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
  8. package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
  9. package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
  10. package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  11. package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
  12. package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
  13. package/esm2022/lib/smart-form/api/api/api.mjs +1 -1
  14. package/esm2022/lib/smart-form/api/api/default.service.mjs +1 -1
  15. package/esm2022/lib/smart-form/api/api.module.mjs +1 -1
  16. package/esm2022/lib/smart-form/api/configuration.mjs +1 -1
  17. package/esm2022/lib/smart-form/api/encoder.mjs +1 -1
  18. package/esm2022/lib/smart-form/api/index.mjs +1 -1
  19. package/esm2022/lib/smart-form/api/model/fileUploaderProperties.mjs +1 -1
  20. package/esm2022/lib/smart-form/api/model/imageProperties.mjs +1 -1
  21. package/esm2022/lib/smart-form/api/model/models.mjs +1 -1
  22. package/esm2022/lib/smart-form/api/model/propertyMapping.mjs +1 -1
  23. package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
  24. package/esm2022/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
  25. package/esm2022/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
  26. package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
  27. package/esm2022/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
  28. package/esm2022/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  29. package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  30. package/esm2022/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
  31. package/esm2022/lib/smart-form/api/model/sortDefinition.mjs +1 -1
  32. package/esm2022/lib/smart-form/api/model/textFieldProperties.mjs +1 -1
  33. package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +2 -1
  34. package/esm2022/lib/smart-form/api/param.mjs +1 -1
  35. package/esm2022/lib/smart-form/api/variables.mjs +1 -1
  36. package/esm2022/lib/smart-form/smartform.component.mjs +6 -5
  37. package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +27 -14
  38. package/esm2022/lib/smart-map/api/api/api.mjs +1 -1
  39. package/esm2022/lib/smart-map/api/api/geoMap.service.mjs +1 -1
  40. package/esm2022/lib/smart-map/api/api.module.mjs +1 -1
  41. package/esm2022/lib/smart-map/api/configuration.mjs +1 -1
  42. package/esm2022/lib/smart-map/api/encoder.mjs +1 -1
  43. package/esm2022/lib/smart-map/api/index.mjs +1 -1
  44. package/esm2022/lib/smart-map/api/model/gPSPosition.mjs +1 -1
  45. package/esm2022/lib/smart-map/api/model/gPSRoute.mjs +1 -1
  46. package/esm2022/lib/smart-map/api/model/geoMapChange.mjs +1 -1
  47. package/esm2022/lib/smart-map/api/model/geoMapDataLoadingMode.mjs +1 -1
  48. package/esm2022/lib/smart-map/api/model/geoMapDataSourceDescriptor.mjs +1 -1
  49. package/esm2022/lib/smart-map/api/model/geoMapDataSourceType.mjs +1 -1
  50. package/esm2022/lib/smart-map/api/model/geoMapEditingSession.mjs +1 -1
  51. package/esm2022/lib/smart-map/api/model/geoMapInteraction.mjs +1 -1
  52. package/esm2022/lib/smart-map/api/model/geoMapItem.mjs +1 -1
  53. package/esm2022/lib/smart-map/api/model/geoMapItemKind.mjs +1 -1
  54. package/esm2022/lib/smart-map/api/model/geoMapLayer.mjs +1 -1
  55. package/esm2022/lib/smart-map/api/model/geoMapLayerChange.mjs +1 -1
  56. package/esm2022/lib/smart-map/api/model/geoMapLayerDescriptor.mjs +1 -1
  57. package/esm2022/lib/smart-map/api/model/geoMapModel.mjs +1 -1
  58. package/esm2022/lib/smart-map/api/model/geoMapOperationMode.mjs +1 -1
  59. package/esm2022/lib/smart-map/api/model/geoMapSelectionMode.mjs +1 -1
  60. package/esm2022/lib/smart-map/api/model/geoMapServerModel.mjs +1 -1
  61. package/esm2022/lib/smart-map/api/model/geoMapTextType.mjs +1 -1
  62. package/esm2022/lib/smart-map/api/model/geoMapViewState.mjs +1 -1
  63. package/esm2022/lib/smart-map/api/model/geoMapViewport.mjs +1 -1
  64. package/esm2022/lib/smart-map/api/model/models.mjs +1 -1
  65. package/esm2022/lib/smart-map/api/param.mjs +1 -1
  66. package/esm2022/lib/smart-map/api/variables.mjs +1 -1
  67. package/esm2022/lib/view-context/api/api/api.mjs +1 -1
  68. package/esm2022/lib/view-context/api/api/view.service.mjs +1 -1
  69. package/esm2022/lib/view-context/api/api.module.mjs +1 -1
  70. package/esm2022/lib/view-context/api/configuration.mjs +1 -1
  71. package/esm2022/lib/view-context/api/encoder.mjs +1 -1
  72. package/esm2022/lib/view-context/api/index.mjs +1 -1
  73. package/esm2022/lib/view-context/api/model/backgroundProcessInfo.mjs +1 -1
  74. package/esm2022/lib/view-context/api/model/badgeDescriptor.mjs +1 -1
  75. package/esm2022/lib/view-context/api/model/clipboardData.mjs +1 -1
  76. package/esm2022/lib/view-context/api/model/closeResult.mjs +1 -1
  77. package/esm2022/lib/view-context/api/model/componentConstraint.mjs +1 -1
  78. package/esm2022/lib/view-context/api/model/componentModel.mjs +1 -1
  79. package/esm2022/lib/view-context/api/model/componentModelChange.mjs +1 -1
  80. package/esm2022/lib/view-context/api/model/dataChange.mjs +1 -1
  81. package/esm2022/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
  82. package/esm2022/lib/view-context/api/model/dataChangeKind.mjs +1 -1
  83. package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
  84. package/esm2022/lib/view-context/api/model/downloadedFile.mjs +1 -1
  85. package/esm2022/lib/view-context/api/model/iconPosition.mjs +1 -1
  86. package/esm2022/lib/view-context/api/model/imageResource.mjs +1 -1
  87. package/esm2022/lib/view-context/api/model/link.mjs +1 -1
  88. package/esm2022/lib/view-context/api/model/messageData.mjs +1 -1
  89. package/esm2022/lib/view-context/api/model/messageOption.mjs +1 -1
  90. package/esm2022/lib/view-context/api/model/messageOptionType.mjs +1 -1
  91. package/esm2022/lib/view-context/api/model/messageResult.mjs +1 -1
  92. package/esm2022/lib/view-context/api/model/messageTextType.mjs +1 -1
  93. package/esm2022/lib/view-context/api/model/messageType.mjs +1 -1
  94. package/esm2022/lib/view-context/api/model/models.mjs +1 -1
  95. package/esm2022/lib/view-context/api/model/multiComboBoxElement.mjs +1 -1
  96. package/esm2022/lib/view-context/api/model/multiComboBoxModel.mjs +1 -1
  97. package/esm2022/lib/view-context/api/model/namedValidator.mjs +1 -1
  98. package/esm2022/lib/view-context/api/model/openPendingData.mjs +1 -1
  99. package/esm2022/lib/view-context/api/model/serverRequestExecutionStat.mjs +1 -1
  100. package/esm2022/lib/view-context/api/model/serverRequestTrack.mjs +1 -1
  101. package/esm2022/lib/view-context/api/model/serverRequestType.mjs +1 -1
  102. package/esm2022/lib/view-context/api/model/smartLinkData.mjs +1 -1
  103. package/esm2022/lib/view-context/api/model/smartLinkMigrationStatus.mjs +1 -1
  104. package/esm2022/lib/view-context/api/model/statisticRecord.mjs +1 -1
  105. package/esm2022/lib/view-context/api/model/style.mjs +1 -1
  106. package/esm2022/lib/view-context/api/model/uiAction.mjs +1 -1
  107. package/esm2022/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  108. package/esm2022/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
  109. package/esm2022/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
  110. package/esm2022/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  111. package/esm2022/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
  112. package/esm2022/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
  113. package/esm2022/lib/view-context/api/model/uiActionInputType.mjs +1 -1
  114. package/esm2022/lib/view-context/api/model/uiActionRequest.mjs +1 -1
  115. package/esm2022/lib/view-context/api/model/uiActionTooltip.mjs +1 -1
  116. package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  117. package/esm2022/lib/view-context/api/model/uploadWidgetType.mjs +1 -1
  118. package/esm2022/lib/view-context/api/model/uploadedFile.mjs +1 -1
  119. package/esm2022/lib/view-context/api/model/valueSet.mjs +1 -1
  120. package/esm2022/lib/view-context/api/model/view.mjs +1 -1
  121. package/esm2022/lib/view-context/api/model/viewApiError.mjs +1 -1
  122. package/esm2022/lib/view-context/api/model/viewConstraint.mjs +1 -1
  123. package/esm2022/lib/view-context/api/model/viewContext.mjs +1 -1
  124. package/esm2022/lib/view-context/api/model/viewContextChange.mjs +1 -1
  125. package/esm2022/lib/view-context/api/model/viewContextData.mjs +1 -1
  126. package/esm2022/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  127. package/esm2022/lib/view-context/api/model/viewData.mjs +1 -1
  128. package/esm2022/lib/view-context/api/model/viewEventHandler.mjs +1 -1
  129. package/esm2022/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
  130. package/esm2022/lib/view-context/api/model/viewState.mjs +1 -1
  131. package/esm2022/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  132. package/esm2022/lib/view-context/api/model/viewType.mjs +1 -1
  133. package/esm2022/lib/view-context/api/param.mjs +1 -1
  134. package/esm2022/lib/view-context/api/variables.mjs +1 -1
  135. package/fesm2022/smartbit4all-ng-client.mjs +60 -26
  136. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  137. package/lib/smart-client/smart-component-api-client.d.ts +9 -7
  138. package/lib/smart-form/api/model/valueChangeMode.d.ts +2 -1
  139. package/lib/smart-form/smartform.component.d.ts +3 -2
  140. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +8 -5
  141. package/package.json +1 -1
  142. package/smartbit4all-ng-client-4.2.129.tgz +0 -0
  143. package/smartbit4all-ng-client-4.2.127.tgz +0 -0
@@ -1,14 +1,14 @@
1
1
  import { ChangeDetectorRef, ElementRef, Injector, QueryList, Renderer2 } from '@angular/core';
2
2
  import { Subject, Subscription } from 'rxjs';
3
3
  import { SmartComponentLayoutComponent } from '../smart-component-layout/projects';
4
- import { SmartForm, SmartFormInvalidFields, SmartformComponent, SophisticatedValueChange } from '../smart-form/projects';
4
+ import { SmartDiagramComponent } from '../smart-diagram/projects';
5
+ import { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
6
+ import { SmartForm, SmartFormInvalidFields, SmartformComponent, SophisticatedValueChange, ValueChangeMode } from '../smart-form/projects';
5
7
  import { GridOptions, SmartGrid, SmartGridComponent } from '../smart-grid/projects';
6
8
  import { SmartMapComponent } from '../smart-map/smart-map.component';
7
9
  import { SmarttreeGenericService } from '../smart-tree/projects';
8
10
  import { ComponentModel, ComponentModelChange, ExecuteUiActionOptions, SmartTranslateService, SmartViewContextService, UiAction, UiActionAdditionalParams, UiActionDescriptorService, UiActionModel, UiActionRequest, UiActionService, UiActionSpecificDemandResponse, UiActionToolbarComponent, UseUiAction2 } from '../view-context/projects';
9
11
  import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
10
- import { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
11
- import { SmartDiagramComponent } from '../smart-diagram/projects';
12
12
  export declare abstract class SmartComponentApiClient<T> implements UseUiAction2 {
13
13
  protected inject: Injector;
14
14
  protected auth: SmartAuthenticationServiceInterface;
@@ -43,8 +43,9 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
43
43
  formWidgets: Map<string, SmartformComponent | undefined>;
44
44
  useQueryLists: boolean;
45
45
  sendModelOnWidgetAction: boolean;
46
- dataChangeKeys: string[];
47
- protected dataChangeActionHandlers: Map<SmartformComponent, Subscription>;
46
+ inmediateDataChangeKeys: string[];
47
+ blurDataChangeKeys: string[];
48
+ protected dataChangeActionHandlers: Map<SmartformComponent, Subscription[]>;
48
49
  protected filterModelChangeSubjects: Map<string, Subject<void>>;
49
50
  protected changeDetector?: ChangeDetectorRef;
50
51
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName?: string | undefined, _componentName?: string | undefined, element?: ElementRef<any> | undefined, renderer?: Renderer2 | undefined);
@@ -79,9 +80,10 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
79
80
  run(): void;
80
81
  load(): Promise<void>;
81
82
  executeUiAction(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
82
- addDataChangeActionHandler(key: string): void;
83
+ addDataChangeActionHandler(key: string, valueChangeMode: ValueChangeMode): void;
84
+ protected getChangeKeys(valueChangeMode: ValueChangeMode): string[];
83
85
  removeDataChangeActionHandler(key: string): void;
84
- protected dataChangeActionHandler(event: SophisticatedValueChange): void;
86
+ protected dataChangeActionHandler(event: SophisticatedValueChange, valueChangeMode: ValueChangeMode): void;
85
87
  protected handleLayoutUploadCallback(comp: SmartComponentLayoutComponent): void;
86
88
  protected handleUploadCallback(form: SmartformComponent): void;
87
89
  protected handleDataChangeSubscriptions(): void;
@@ -14,5 +14,6 @@
14
14
  */
15
15
  export declare enum ValueChangeMode {
16
16
  NONE = "NONE",
17
- IMMEDIATE_ACTION = "IMMEDIATE_ACTION"
17
+ IMMEDIATE_ACTION = "IMMEDIATE_ACTION",
18
+ BLUR = "BLUR"
18
19
  }
@@ -4,10 +4,10 @@ import { Subject } from 'rxjs';
4
4
  import { SmartFormWidgetDirection } from './api';
5
5
  import { SmartFormService } from './services/smartform.service';
6
6
  import { SmartForm, SmartFormInvalidFields, SophisticatedValueChange } from './smartform.model';
7
- import { SmartFormWidget } from './smartform.form-model';
8
- import { SmartformwidgetComponent } from './widgets/smartformwidget/smartformwidget.component';
9
7
  import { UiActionToolbarComponent } from '../view-context/smart-ui-action/ui-action-toolbar.component';
10
8
  import { ComponentLibrary } from '../view-context/utility/componentLibrary';
9
+ import { SmartFormWidget } from './smartform.form-model';
10
+ import { SmartformwidgetComponent } from './widgets/smartformwidget/smartformwidget.component';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges {
13
13
  private service;
@@ -18,6 +18,7 @@ export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges
18
18
  onValueChangeSubject?: Subject<any>;
19
19
  originalWidgets: SmartFormWidget<any>[];
20
20
  sophisticatedValueChange: Subject<SophisticatedValueChange>;
21
+ blurSophisticatedValueChange: Subject<SophisticatedValueChange>;
21
22
  form: UntypedFormGroup;
22
23
  direction: typeof SmartFormWidgetDirection;
23
24
  smartWidgetsQL?: QueryList<SmartformwidgetComponent>;
@@ -1,19 +1,19 @@
1
- import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, EventEmitter, OnInit, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
4
  import { MatChipInputEvent } from '@angular/material/chips';
5
5
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
6
  import { ContentChange, QuillEditorComponent, QuillModules } from 'ngx-quill';
7
+ import { EditorTextChangeEvent } from 'primeng/editor';
7
8
  import { Observable, Subject } from 'rxjs';
8
9
  import { ComponentFactoryService } from '../../../component-factory-service/projects';
10
+ import { UiActionDescriptor } from '../../../view-context/api';
9
11
  import { UiActionToolbarComponent } from '../../../view-context/smart-ui-action/ui-action-toolbar.component';
12
+ import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
10
13
  import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api/model/models';
11
14
  import { SmartFormService } from '../../services/smartform.service';
12
15
  import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smartform.form-model';
13
16
  import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
14
- import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
15
- import { EditorTextChangeEvent } from 'primeng/editor';
16
- import { UiActionDescriptor } from '../../../view-context/api';
17
17
  import { SmartFileEditorComponent } from '../components/smart-file-editor/smart-file-editor.component';
18
18
  import * as i0 from "@angular/core";
19
19
  export declare class SmartWidgetSettings {
@@ -34,6 +34,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
34
34
  onValueChange?: Subject<any>;
35
35
  labelColor?: string;
36
36
  sophisticatedValueChange: Subject<SophisticatedValueChange>;
37
+ blurSophisticatedValueChange: Subject<SophisticatedValueChange>;
37
38
  valueCleared: EventEmitter<{
38
39
  event?: any;
39
40
  key: any;
@@ -62,6 +63,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
62
63
  fileUploader: SmartFileEditorComponent;
63
64
  constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer, compLib: ComponentLibrary, changeDetector: ChangeDetectorRef);
64
65
  ngOnInit(): void;
66
+ private getSophisticatedEventKind;
65
67
  parseYoutubeUrl(url: string): string | false;
66
68
  _hasJustChanged: boolean;
67
69
  get hasJustChanged(): boolean;
@@ -148,6 +150,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
148
150
  get clearButtonDescriptor(): UiActionDescriptor;
149
151
  clearField(key: string): void;
150
152
  onTextareaChange(value: string): void;
153
+ handleBlurEvent(eventData: any): void;
151
154
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartformwidgetComponent, "smartformwidget", never, { "form": { "alias": "form"; "required": false; }; "widgetInstance": { "alias": "widgetInstance"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "onValueChange": { "alias": "onValueChange"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "sophisticatedValueChange": { "alias": "sophisticatedValueChange"; "required": false; }; }, { "valueCleared": "valueCleared"; }, never, never, false, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartformwidgetComponent, "smartformwidget", never, { "form": { "alias": "form"; "required": false; }; "widgetInstance": { "alias": "widgetInstance"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "onValueChange": { "alias": "onValueChange"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "sophisticatedValueChange": { "alias": "sophisticatedValueChange"; "required": false; }; "blurSophisticatedValueChange": { "alias": "blurSophisticatedValueChange"; "required": false; }; }, { "valueCleared": "valueCleared"; }, never, never, false, never>;
153
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.127",
3
+ "version": "4.2.129",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file