@smartbit4all/ng-client 4.2.76 → 4.2.78

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 (80) hide show
  1. package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
  2. package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
  3. package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
  4. package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
  5. package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
  6. package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
  7. package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
  8. package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
  9. package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  10. package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
  11. package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
  12. package/esm2022/lib/smart-component-layout/smart-component-layout.module.mjs +11 -3
  13. package/esm2022/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +6 -3
  14. package/esm2022/lib/smart-form/api/api/api.mjs +1 -1
  15. package/esm2022/lib/smart-form/api/api/default.service.mjs +1 -1
  16. package/esm2022/lib/smart-form/api/api.module.mjs +1 -1
  17. package/esm2022/lib/smart-form/api/configuration.mjs +1 -1
  18. package/esm2022/lib/smart-form/api/encoder.mjs +1 -1
  19. package/esm2022/lib/smart-form/api/index.mjs +1 -1
  20. package/esm2022/lib/smart-form/api/model/models.mjs +2 -1
  21. package/esm2022/lib/smart-form/api/model/propertyMapping.mjs +1 -1
  22. package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
  23. package/esm2022/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
  24. package/esm2022/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
  25. package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
  26. package/esm2022/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
  27. package/esm2022/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  28. package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  29. package/esm2022/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
  30. package/esm2022/lib/smart-form/api/model/sortDefinition.mjs +1 -1
  31. package/esm2022/lib/smart-form/api/model/textFieldProperties.mjs +13 -0
  32. package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +1 -1
  33. package/esm2022/lib/smart-form/api/param.mjs +1 -1
  34. package/esm2022/lib/smart-form/api/variables.mjs +1 -1
  35. package/esm2022/lib/smart-form/services/smartform.layout-definition.service.mjs +22 -22
  36. package/esm2022/lib/smart-form/services/smartform.service.mjs +1 -1
  37. package/esm2022/lib/smart-form/smartform.component.mjs +3 -3
  38. package/esm2022/lib/smart-form/smartform.form-model.mjs +1 -1
  39. package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +25 -7
  40. package/esm2022/lib/smart-map/api/api/api.mjs +1 -1
  41. package/esm2022/lib/smart-map/api/api/geoMap.service.mjs +1 -1
  42. package/esm2022/lib/smart-map/api/api.module.mjs +1 -1
  43. package/esm2022/lib/smart-map/api/configuration.mjs +1 -1
  44. package/esm2022/lib/smart-map/api/encoder.mjs +1 -1
  45. package/esm2022/lib/smart-map/api/index.mjs +1 -1
  46. package/esm2022/lib/smart-map/api/model/gPSPosition.mjs +1 -1
  47. package/esm2022/lib/smart-map/api/model/gPSRoute.mjs +1 -1
  48. package/esm2022/lib/smart-map/api/model/geoMapChange.mjs +1 -1
  49. package/esm2022/lib/smart-map/api/model/geoMapDataLoadingMode.mjs +1 -1
  50. package/esm2022/lib/smart-map/api/model/geoMapDataSourceDescriptor.mjs +1 -1
  51. package/esm2022/lib/smart-map/api/model/geoMapDataSourceType.mjs +1 -1
  52. package/esm2022/lib/smart-map/api/model/geoMapEditingSession.mjs +1 -1
  53. package/esm2022/lib/smart-map/api/model/geoMapInteraction.mjs +1 -1
  54. package/esm2022/lib/smart-map/api/model/geoMapItem.mjs +1 -1
  55. package/esm2022/lib/smart-map/api/model/geoMapItemKind.mjs +1 -1
  56. package/esm2022/lib/smart-map/api/model/geoMapLayer.mjs +1 -1
  57. package/esm2022/lib/smart-map/api/model/geoMapLayerChange.mjs +1 -1
  58. package/esm2022/lib/smart-map/api/model/geoMapLayerDescriptor.mjs +1 -1
  59. package/esm2022/lib/smart-map/api/model/geoMapModel.mjs +1 -1
  60. package/esm2022/lib/smart-map/api/model/geoMapOperationMode.mjs +1 -1
  61. package/esm2022/lib/smart-map/api/model/geoMapSelectionMode.mjs +1 -1
  62. package/esm2022/lib/smart-map/api/model/geoMapServerModel.mjs +1 -1
  63. package/esm2022/lib/smart-map/api/model/geoMapTextType.mjs +1 -1
  64. package/esm2022/lib/smart-map/api/model/geoMapViewState.mjs +1 -1
  65. package/esm2022/lib/smart-map/api/model/geoMapViewport.mjs +1 -1
  66. package/esm2022/lib/smart-map/api/model/models.mjs +1 -1
  67. package/esm2022/lib/smart-map/api/param.mjs +1 -1
  68. package/esm2022/lib/smart-map/api/variables.mjs +1 -1
  69. package/fesm2022/smartbit4all-ng-client.mjs +66 -27
  70. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  71. package/lib/smart-component-layout/smart-component-layout.module.d.ts +3 -1
  72. package/lib/smart-form/api/model/models.d.ts +1 -0
  73. package/lib/smart-form/api/model/textFieldProperties.d.ts +14 -0
  74. package/lib/smart-form/services/smartform.layout-definition.service.d.ts +2 -2
  75. package/lib/smart-form/services/smartform.service.d.ts +1 -1
  76. package/lib/smart-form/smartform.form-model.d.ts +6 -5
  77. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +9 -2
  78. package/package.json +1 -1
  79. package/smartbit4all-ng-client-4.2.78.tgz +0 -0
  80. package/smartbit4all-ng-client-4.2.76.tgz +0 -0
@@ -8,8 +8,10 @@ import * as i6 from "../smart-tree/smarttree.module";
8
8
  import * as i7 from "../view-context/smart-view-context.module";
9
9
  import * as i8 from "../smart-map/smart-map.module";
10
10
  import * as i9 from "../smart-diagram/component/smart-diagram.module";
11
+ import * as i10 from "primeng/inputgroup";
12
+ import * as i11 from "primeng/inputgroupaddon";
11
13
  export declare class SmartComponentLayoutModule {
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartComponentLayoutModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<SmartComponentLayoutModule, [typeof i1.SmartComponentLayoutComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.SmartGridModule, typeof i5.SmartExpandableSectionModule, typeof i6.SmarttreeModule, typeof i7.SmartViewContextModule, typeof i8.SmartMapModule, typeof i9.SmartDiagramModule], [typeof i1.SmartComponentLayoutComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartComponentLayoutModule, [typeof i1.SmartComponentLayoutComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.SmartGridModule, typeof i5.SmartExpandableSectionModule, typeof i6.SmarttreeModule, typeof i7.SmartViewContextModule, typeof i8.SmartMapModule, typeof i9.SmartDiagramModule, typeof i10.InputGroupModule, typeof i11.InputGroupAddonModule], [typeof i1.SmartComponentLayoutComponent]>;
14
16
  static ɵinj: i0.ɵɵInjectorDeclaration<SmartComponentLayoutModule>;
15
17
  }
@@ -8,4 +8,5 @@ export * from './smartMatrixModel';
8
8
  export * from './smartWidgetDefinition';
9
9
  export * from './smartWidgetHint';
10
10
  export * from './sortDefinition';
11
+ export * from './textFieldProperties';
11
12
  export * from './valueChangeMode';
@@ -0,0 +1,14 @@
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 TextFieldProperties {
13
+ clearable?: boolean;
14
+ }
@@ -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[];
@@ -16,7 +16,7 @@ export declare class SmartFormService {
16
16
  private collectKeysFromSmartForm;
17
17
  private findSmartFormWidgetByKey;
18
18
  private getValueDeeply;
19
- private setValueDeeply;
19
+ setValueDeeply(model: any, key: string, value: any): void;
20
20
  getPropertyNamesDeeply(element: any): string[];
21
21
  setValuesFromModel(widgets?: SmartFormWidget<any>[], compLib?: ComponentLibrary): void;
22
22
  private copyFromValueSetToValuesList;
@@ -1,7 +1,7 @@
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";
1
+ import { QuillModules } from 'ngx-quill';
2
+ import { SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, SortDefinition, TextFieldProperties, 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;
@@ -46,6 +46,7 @@ export interface SmartTextField<T> {
46
46
  showCharacterLimitSuffix?: boolean;
47
47
  toolbarId?: string;
48
48
  inputMode?: SmartFormInputMode;
49
+ textFieldProperties?: TextFieldProperties;
49
50
  }
50
51
  export interface SmartTextFieldNumber<T> {
51
52
  type: SmartFormWidgetType.TEXT_FIELD_NUMBER;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, EventEmitter, 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';
@@ -13,6 +13,7 @@ import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smart
13
13
  import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
14
14
  import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
15
15
  import { EditorTextChangeEvent } from 'primeng/editor';
16
+ import { UiActionDescriptor } from '../../../view-context/api';
16
17
  import * as i0 from "@angular/core";
17
18
  export declare class SmartWidgetSettings {
18
19
  static useUtc: boolean;
@@ -31,6 +32,10 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
31
32
  onValueChange?: Subject<any>;
32
33
  labelColor?: string;
33
34
  sophisticatedValueChange: Subject<SophisticatedValueChange>;
35
+ valueCleared: EventEmitter<{
36
+ event?: any;
37
+ key: any;
38
+ }>;
34
39
  smartFormWidgetType: typeof SmartFormWidgetType;
35
40
  capsOn: any;
36
41
  chipInputChild?: ElementRef<HTMLInputElement>;
@@ -136,6 +141,8 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
136
141
  isToolbarPresent(): boolean;
137
142
  getChipsValue(value: any): any;
138
143
  getOptions(items: SmartItems<any>[]): any[];
144
+ get clearButtonDescriptor(): UiActionDescriptor;
145
+ clearField(key: string): void;
139
146
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
140
- 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; }; }, {}, never, never, false, never>;
147
+ 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>;
141
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.76",
3
+ "version": "4.2.78",
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