@smartbit4all/ng-client 4.2.11 → 4.2.12

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 (119) hide show
  1. package/esm2022/lib/smart-client/smart.component.mjs +1 -1
  2. package/esm2022/lib/smart-form/api/model/models.mjs +2 -1
  3. package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  4. package/esm2022/lib/smart-form/api/model/sortDefinition.mjs +13 -0
  5. package/esm2022/lib/smart-form/services/smartform.layout-definition.service.mjs +25 -19
  6. package/esm2022/lib/smart-form/services/smartform.service.mjs +66 -54
  7. package/esm2022/lib/smart-form/smartform.form-model.mjs +1 -1
  8. package/esm2022/lib/smart-form/smartform.model.mjs +1 -1
  9. package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +109 -89
  10. package/esm2022/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.mjs +18 -4
  11. package/esm2022/lib/smart-map/abstract-map.mjs +1 -1
  12. package/esm2022/lib/smart-map/api/api/api.mjs +1 -1
  13. package/esm2022/lib/smart-map/api/api.module.mjs +1 -1
  14. package/esm2022/lib/smart-map/api/configuration.mjs +1 -1
  15. package/esm2022/lib/smart-map/api/encoder.mjs +1 -1
  16. package/esm2022/lib/smart-map/api/index.mjs +1 -1
  17. package/esm2022/lib/smart-map/api/model/gPSPosition.mjs +1 -1
  18. package/esm2022/lib/smart-map/api/model/geoMapChange.mjs +1 -1
  19. package/esm2022/lib/smart-map/api/model/geoMapDataLoadingMode.mjs +1 -1
  20. package/esm2022/lib/smart-map/api/model/geoMapDataSourceDescriptor.mjs +1 -1
  21. package/esm2022/lib/smart-map/api/model/geoMapDataSourceType.mjs +1 -1
  22. package/esm2022/lib/smart-map/api/model/geoMapInteraction.mjs +1 -1
  23. package/esm2022/lib/smart-map/api/model/geoMapItem.mjs +1 -1
  24. package/esm2022/lib/smart-map/api/model/geoMapItemKind.mjs +1 -1
  25. package/esm2022/lib/smart-map/api/model/geoMapLayer.mjs +1 -1
  26. package/esm2022/lib/smart-map/api/model/geoMapLayerChange.mjs +1 -1
  27. package/esm2022/lib/smart-map/api/model/geoMapLayerDescriptor.mjs +1 -1
  28. package/esm2022/lib/smart-map/api/model/geoMapModel.mjs +1 -1
  29. package/esm2022/lib/smart-map/api/model/geoMapOperationMode.mjs +1 -1
  30. package/esm2022/lib/smart-map/api/model/geoMapSelectionMode.mjs +1 -1
  31. package/esm2022/lib/smart-map/api/model/geoMapServerModel.mjs +1 -1
  32. package/esm2022/lib/smart-map/api/model/geoMapTextType.mjs +1 -1
  33. package/esm2022/lib/smart-map/api/model/geoMapViewState.mjs +1 -1
  34. package/esm2022/lib/smart-map/api/model/geoMapViewport.mjs +1 -1
  35. package/esm2022/lib/smart-map/api/model/models.mjs +1 -1
  36. package/esm2022/lib/smart-map/api/param.mjs +1 -1
  37. package/esm2022/lib/smart-map/api/variables.mjs +1 -1
  38. package/esm2022/lib/smart-map/impl/google-map.mjs +1 -1
  39. package/esm2022/lib/smart-map/impl/leaflet-map.mjs +1 -1
  40. package/esm2022/lib/smart-map/projects.mjs +1 -1
  41. package/esm2022/lib/smart-map/smart-map.component.mjs +1 -1
  42. package/esm2022/lib/smart-map/smart-map.module.mjs +1 -1
  43. package/esm2022/lib/smart-map/smart-map.types.mjs +1 -1
  44. package/esm2022/lib/smart-validation/named-validator.service.mjs +1 -1
  45. package/esm2022/lib/smart-validation/smart-validation.module.mjs +1 -1
  46. package/esm2022/lib/smart-validation/smart-validation.types.mjs +1 -1
  47. package/esm2022/lib/view-context/api/api/api.mjs +1 -1
  48. package/esm2022/lib/view-context/api/api/view.service.mjs +1 -1
  49. package/esm2022/lib/view-context/api/api.module.mjs +1 -1
  50. package/esm2022/lib/view-context/api/configuration.mjs +1 -1
  51. package/esm2022/lib/view-context/api/encoder.mjs +1 -1
  52. package/esm2022/lib/view-context/api/index.mjs +1 -1
  53. package/esm2022/lib/view-context/api/model/clipboardData.mjs +1 -1
  54. package/esm2022/lib/view-context/api/model/closeResult.mjs +1 -1
  55. package/esm2022/lib/view-context/api/model/componentConstraint.mjs +1 -1
  56. package/esm2022/lib/view-context/api/model/componentModel.mjs +1 -1
  57. package/esm2022/lib/view-context/api/model/componentModelChange.mjs +1 -1
  58. package/esm2022/lib/view-context/api/model/dataChange.mjs +1 -1
  59. package/esm2022/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
  60. package/esm2022/lib/view-context/api/model/dataChangeKind.mjs +1 -1
  61. package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
  62. package/esm2022/lib/view-context/api/model/downloadedFile.mjs +1 -1
  63. package/esm2022/lib/view-context/api/model/iconPosition.mjs +1 -1
  64. package/esm2022/lib/view-context/api/model/imageResource.mjs +1 -1
  65. package/esm2022/lib/view-context/api/model/link.mjs +1 -1
  66. package/esm2022/lib/view-context/api/model/messageData.mjs +1 -1
  67. package/esm2022/lib/view-context/api/model/messageOption.mjs +1 -1
  68. package/esm2022/lib/view-context/api/model/messageOptionType.mjs +1 -1
  69. package/esm2022/lib/view-context/api/model/messageResult.mjs +1 -1
  70. package/esm2022/lib/view-context/api/model/messageTextType.mjs +1 -1
  71. package/esm2022/lib/view-context/api/model/messageType.mjs +1 -1
  72. package/esm2022/lib/view-context/api/model/models.mjs +1 -1
  73. package/esm2022/lib/view-context/api/model/namedValidator.mjs +1 -1
  74. package/esm2022/lib/view-context/api/model/openPendingData.mjs +1 -1
  75. package/esm2022/lib/view-context/api/model/serverRequestExecutionStat.mjs +1 -1
  76. package/esm2022/lib/view-context/api/model/serverRequestTrack.mjs +1 -1
  77. package/esm2022/lib/view-context/api/model/serverRequestType.mjs +1 -1
  78. package/esm2022/lib/view-context/api/model/smartLinkData.mjs +1 -1
  79. package/esm2022/lib/view-context/api/model/statisticRecord.mjs +1 -1
  80. package/esm2022/lib/view-context/api/model/style.mjs +1 -1
  81. package/esm2022/lib/view-context/api/model/uiAction.mjs +1 -1
  82. package/esm2022/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  83. package/esm2022/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
  84. package/esm2022/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
  85. package/esm2022/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  86. package/esm2022/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
  87. package/esm2022/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
  88. package/esm2022/lib/view-context/api/model/uiActionInputType.mjs +1 -1
  89. package/esm2022/lib/view-context/api/model/uiActionRequest.mjs +1 -1
  90. package/esm2022/lib/view-context/api/model/uiActionTooltip.mjs +1 -1
  91. package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  92. package/esm2022/lib/view-context/api/model/valueSet.mjs +1 -1
  93. package/esm2022/lib/view-context/api/model/view.mjs +1 -1
  94. package/esm2022/lib/view-context/api/model/viewApiError.mjs +1 -1
  95. package/esm2022/lib/view-context/api/model/viewConstraint.mjs +1 -1
  96. package/esm2022/lib/view-context/api/model/viewContext.mjs +1 -1
  97. package/esm2022/lib/view-context/api/model/viewContextChange.mjs +1 -1
  98. package/esm2022/lib/view-context/api/model/viewContextData.mjs +1 -1
  99. package/esm2022/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  100. package/esm2022/lib/view-context/api/model/viewData.mjs +1 -1
  101. package/esm2022/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
  102. package/esm2022/lib/view-context/api/model/viewState.mjs +1 -1
  103. package/esm2022/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  104. package/esm2022/lib/view-context/api/model/viewType.mjs +1 -1
  105. package/esm2022/lib/view-context/api/param.mjs +1 -1
  106. package/esm2022/lib/view-context/api/variables.mjs +1 -1
  107. package/fesm2022/smartbit4all-ng-client.mjs +208 -145
  108. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  109. package/lib/smart-form/api/model/models.d.ts +1 -0
  110. package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +2 -0
  111. package/lib/smart-form/api/model/sortDefinition.d.ts +15 -0
  112. package/lib/smart-form/services/smartform.layout-definition.service.d.ts +2 -2
  113. package/lib/smart-form/services/smartform.service.d.ts +5 -5
  114. package/lib/smart-form/smartform.form-model.d.ts +7 -5
  115. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +15 -15
  116. package/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.d.ts +3 -2
  117. package/package.json +1 -1
  118. package/smartbit4all-ng-client-4.2.12.tgz +0 -0
  119. package/smartbit4all-ng-client-4.2.11.tgz +0 -0
@@ -7,4 +7,5 @@ export * from './smartLayoutDefinition';
7
7
  export * from './smartMatrixModel';
8
8
  export * from './smartWidgetDefinition';
9
9
  export * from './smartWidgetHint';
10
+ export * from './sortDefinition';
10
11
  export * from './valueChangeMode';
@@ -19,6 +19,7 @@ import { Style } from '../../../view-context/api/model/style';
19
19
  import { ValueChangeMode } from './valueChangeMode';
20
20
  import { SmartMatrixModel } from './smartMatrixModel';
21
21
  import { SmartFormInputMode } from './smartFormInputMode';
22
+ import { SortDefinition } from './sortDefinition';
22
23
  /**
23
24
  * The layout definition of the SmartTextField widget.
24
25
  */
@@ -115,4 +116,5 @@ export interface SmartWidgetDefinition {
115
116
  * The error message to show for the widget.
116
117
  */
117
118
  errorColor?: string;
119
+ sortDefinition?: SortDefinition;
118
120
  }
@@ -0,0 +1,15 @@
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 SortDefinition {
13
+ key?: string;
14
+ displayValue?: string;
15
+ }
@@ -1,5 +1,5 @@
1
- import { SmartWidgetDefinition } from '../api';
2
- import { SmartFormWidget } from '../smartform.form-model';
1
+ import { SmartWidgetDefinition } from "../api";
2
+ import { SmartFormWidget } from "../smartform.form-model";
3
3
  import * as i0 from "@angular/core";
4
4
  export interface SmartformLayoutCreateWidgetConfig {
5
5
  layoutDefinitions?: SmartWidgetDefinition[];
@@ -1,8 +1,8 @@
1
- import { UntypedFormGroup } from '@angular/forms';
2
- import { SmartFormWidget, SmartItem, SmartItems } from '../smartform.form-model';
3
- import { SmartForm, SmartValidator } from '../smartform.model';
4
- import { ComponentLibrary } from '../../view-context/utility/componentLibrary';
5
- import { NamedValidatorService } from '../../smart-validation/named-validator.service';
1
+ import { UntypedFormGroup } from "@angular/forms";
2
+ import { SmartFormWidget, SmartItem, SmartItems } from "../smartform.form-model";
3
+ import { SmartForm, SmartValidator } from "../smartform.model";
4
+ import { ComponentLibrary } from "../../view-context/utility/componentLibrary";
5
+ import { NamedValidatorService } from "../../smart-validation/named-validator.service";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class SmartFormService {
8
8
  private validatorProvider?;
@@ -1,7 +1,7 @@
1
- import { QuillModules } from 'ngx-quill';
2
- import { SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, ValueChangeMode } from './api';
3
- import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, ToggleLabelPosition } from './smartform.model';
4
- import { Style } from '../view-context/api';
1
+ import { QuillModules } from "ngx-quill";
2
+ import { SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, SortDefinition, ValueChangeMode } from "./api";
3
+ import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, ToggleLabelPosition } from "./smartform.model";
4
+ import { Style } from "../view-context/api";
5
5
  export declare type SmartFormWidget<T> = SmartTextField<T> | SmartTextFieldNumber<T> | SmartTextFieldChips<T> | SmartTextFieldLookup<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 | SmartSvg;
6
6
  export interface SmartTextField<T> {
7
7
  type: SmartFormWidgetType.TEXT_FIELD;
@@ -32,7 +32,7 @@ export interface SmartTextField<T> {
32
32
  error?: string;
33
33
  icon?: string;
34
34
  iconColor?: string;
35
- iconPosition?: 'PRE' | 'POST';
35
+ iconPosition?: "PRE" | "POST";
36
36
  errorIcon?: string;
37
37
  errorIconColor?: string;
38
38
  serverErrorMessage?: string;
@@ -620,6 +620,8 @@ export interface SmartSortable<T> {
620
620
  valueList?: SmartItem<T>[];
621
621
  isMultiple?: boolean;
622
622
  hint?: SmartWidgetHint;
623
+ icon?: string;
624
+ sortDefinition: SortDefinition;
623
625
  }
624
626
  export interface SmartMatrix {
625
627
  type: SmartFormWidgetType.MATRIX;
@@ -1,18 +1,18 @@
1
- import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
3
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
- import { MatChipInputEvent } from '@angular/material/chips';
5
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
- import { ContentChange, QuillEditorComponent, QuillModules } from 'ngx-quill';
7
- import { Observable, Subject } from 'rxjs';
8
- import { ComponentFactoryService } from '../../../component-factory-service/projects';
9
- import { UiActionToolbarComponent } from '../../../view-context/smart-ui-action/ui-action-toolbar.component';
10
- import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api/model/models';
11
- import { SmartFormService } from '../../services/smartform.service';
12
- import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smartform.form-model';
13
- import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
14
- import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
15
- import { EditorTextChangeEvent } from 'primeng/editor';
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from "@angular/core";
2
+ import { UntypedFormGroup } from "@angular/forms";
3
+ import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
4
+ import { MatChipInputEvent } from "@angular/material/chips";
5
+ import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
6
+ import { ContentChange, QuillEditorComponent, QuillModules } from "ngx-quill";
7
+ import { Observable, Subject } from "rxjs";
8
+ import { ComponentFactoryService } from "../../../component-factory-service/projects";
9
+ import { UiActionToolbarComponent } from "../../../view-context/smart-ui-action/ui-action-toolbar.component";
10
+ import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from "../../api/model/models";
11
+ import { SmartFormService } from "../../services/smartform.service";
12
+ import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from "../../smartform.form-model";
13
+ import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from "../../smartform.model";
14
+ import { ComponentLibrary } from "../../../view-context/utility/componentLibrary";
15
+ import { EditorTextChangeEvent } from "primeng/editor";
16
16
  import * as i0 from "@angular/core";
17
17
  export declare class SmartWidgetSettings {
18
18
  static useUtc: boolean;
@@ -1,10 +1,10 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
4
  import { SmartSortable } from '../../../smartform.form-model';
5
5
  import { ComponentLibrary } from '../../../../view-context/utility/componentLibrary';
6
6
  import * as i0 from "@angular/core";
7
- export declare class SortableWidgetComponent implements ControlValueAccessor, OnChanges {
7
+ export declare class SortableWidgetComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
8
8
  compLib: ComponentLibrary;
9
9
  widgetInstance: SmartSortable<any>;
10
10
  private onChange;
@@ -12,6 +12,7 @@ export declare class SortableWidgetComponent implements ControlValueAccessor, On
12
12
  componentLibrary: typeof ComponentLibrary;
13
13
  isDisabled: boolean;
14
14
  constructor(compLib: ComponentLibrary);
15
+ ngAfterViewInit(): void;
15
16
  ngOnChanges(changes: SimpleChanges): void;
16
17
  onDrop(event: CdkDragDrop<string[]>): void;
17
18
  writeValue(value: any[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
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