@smartbit4all/ng-client 4.0.90 → 4.0.92

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 (111) hide show
  1. package/esm2022/lib/session/api/api/session.service.mjs +1 -1
  2. package/esm2022/lib/session/api/encoder.mjs +1 -1
  3. package/esm2022/lib/session/api/model/accountInfo.mjs +1 -1
  4. package/esm2022/lib/session/api/model/apiError.mjs +1 -1
  5. package/esm2022/lib/session/api/model/authenticationProviderData.mjs +1 -1
  6. package/esm2022/lib/session/api/model/getAuthenticationProvidersResponse.mjs +1 -1
  7. package/esm2022/lib/session/api/model/models.mjs +1 -1
  8. package/esm2022/lib/session/api/model/refreshSessionRequest.mjs +1 -1
  9. package/esm2022/lib/session/api/model/session.mjs +1 -1
  10. package/esm2022/lib/session/api/model/userActivityLog.mjs +1 -1
  11. package/esm2022/lib/session/api/param.mjs +1 -1
  12. package/esm2022/lib/session/api/variables.mjs +1 -1
  13. package/esm2022/lib/smart-client/smart-component-api-client.mjs +47 -8
  14. package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
  15. package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
  16. package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
  17. package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
  18. package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
  19. package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
  20. package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
  21. package/esm2022/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
  22. package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
  23. package/esm2022/lib/smart-component-layout/api/model/models.mjs +1 -1
  24. package/esm2022/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
  25. package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  26. package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
  27. package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
  28. package/esm2022/lib/smart-filter/api/filter/model/filterExpressionField.mjs +1 -1
  29. package/esm2022/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +2 -1
  30. package/esm2022/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +1 -1
  31. package/esm2022/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
  32. package/esm2022/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +2 -1
  33. package/esm2022/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
  34. package/esm2022/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +46 -11
  35. package/esm2022/lib/smart-form/api/model/models.mjs +1 -1
  36. package/esm2022/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
  37. package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +2 -1
  38. package/esm2022/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  39. package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  40. package/esm2022/lib/smart-form/services/smartform.layout-definition.service.mjs +22 -3
  41. package/esm2022/lib/smart-form/smartform.form-model.mjs +1 -1
  42. package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +65 -24
  43. package/esm2022/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
  44. package/esm2022/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
  45. package/esm2022/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
  46. package/esm2022/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
  47. package/esm2022/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
  48. package/esm2022/lib/smart-grid/api/grid-api/index.mjs +1 -1
  49. package/esm2022/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
  50. package/esm2022/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
  51. package/esm2022/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
  52. package/esm2022/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
  53. package/esm2022/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
  54. package/esm2022/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
  55. package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionChange.mjs +1 -1
  56. package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
  57. package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
  58. package/esm2022/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
  59. package/esm2022/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
  60. package/esm2022/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
  61. package/esm2022/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
  62. package/esm2022/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
  63. package/esm2022/lib/smart-grid/api/grid-api/param.mjs +1 -1
  64. package/esm2022/lib/smart-grid/api/grid-api/variables.mjs +1 -1
  65. package/esm2022/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
  66. package/esm2022/lib/smart-tree/tree-api/configuration.mjs +1 -1
  67. package/esm2022/lib/smart-tree/tree-api/encoder.mjs +1 -1
  68. package/esm2022/lib/smart-tree/tree-api/param.mjs +1 -1
  69. package/esm2022/lib/smart-tree/tree-api/variables.mjs +1 -1
  70. package/esm2022/lib/view-context/api/model/clipboardData.mjs +1 -1
  71. package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
  72. package/esm2022/lib/view-context/api/model/models.mjs +1 -1
  73. package/esm2022/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  74. package/esm2022/lib/view-context/api/model/view.mjs +1 -1
  75. package/esm2022/lib/view-context/api/model/viewContext.mjs +1 -1
  76. package/esm2022/lib/view-context/api/model/viewContextData.mjs +1 -1
  77. package/esm2022/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  78. package/esm2022/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
  79. package/esm2022/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +3 -3
  80. package/esm2022/lib/view-context/smart-view-context-dialog.service.mjs +2 -2
  81. package/esm2022/lib/view-context/utility/smart-object-utility.mjs +15 -1
  82. package/esm2022/lib/view-context/value-api/api/api.mjs +1 -1
  83. package/esm2022/lib/view-context/value-api/api/value.service.mjs +1 -1
  84. package/esm2022/lib/view-context/value-api/api.module.mjs +1 -1
  85. package/esm2022/lib/view-context/value-api/configuration.mjs +1 -1
  86. package/esm2022/lib/view-context/value-api/encoder.mjs +1 -1
  87. package/esm2022/lib/view-context/value-api/index.mjs +1 -1
  88. package/esm2022/lib/view-context/value-api/model/genericValue.mjs +1 -1
  89. package/esm2022/lib/view-context/value-api/model/models.mjs +1 -1
  90. package/esm2022/lib/view-context/value-api/model/value.mjs +1 -1
  91. package/esm2022/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
  92. package/esm2022/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
  93. package/esm2022/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
  94. package/esm2022/lib/view-context/value-api/param.mjs +1 -1
  95. package/esm2022/lib/view-context/value-api/variables.mjs +1 -1
  96. package/fesm2022/smartbit4all-ng-client.mjs +193 -45
  97. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  98. package/lib/smart-client/smart-component-api-client.d.ts +3 -0
  99. package/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.d.ts +1 -0
  100. package/lib/smart-filter/api/filter/model/filterExpressionOperandData.d.ts +1 -0
  101. package/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.d.ts +1 -0
  102. package/lib/smart-filter-editor/api/model/filterExpressionOperandData.d.ts +1 -0
  103. package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +2 -0
  104. package/lib/smart-form/api/model/smartFormWidgetType.d.ts +1 -0
  105. package/lib/smart-form/services/smartform.layout-definition.service.d.ts +1 -0
  106. package/lib/smart-form/smartform.form-model.d.ts +31 -1
  107. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +2 -0
  108. package/lib/view-context/utility/smart-object-utility.d.ts +1 -0
  109. package/package.json +1 -1
  110. package/smartbit4all-ng-client-4.0.92.tgz +0 -0
  111. package/smartbit4all-ng-client-4.0.90.tgz +0 -0
@@ -43,12 +43,14 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
43
43
  sendModelOnWidgetAction: boolean;
44
44
  dataChangeKeys: string[];
45
45
  protected dataChangeActionHandlers: Map<SmartformComponent, Subscription>;
46
+ protected filterModelChangeSubjects: Map<string, Subject<void>>;
46
47
  protected changeDetector?: ChangeDetectorRef;
47
48
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName?: string | undefined, _componentName?: string | undefined, element?: ElementRef<any> | undefined, renderer?: Renderer2 | undefined);
48
49
  _ngOnInit(): void;
49
50
  _ngOnDestroy(): void;
50
51
  _ngAfterViewInit(): void;
51
52
  private setupGridServices;
53
+ private setupFilterServices;
52
54
  protected handleQueryListSimple<T>(ql: QueryList<T>, handler: () => void): void;
53
55
  protected handleQueryList<T>(ql: QueryList<T>, handler: (el: T) => void): void;
54
56
  protected abstract getSmartFormsQL(): QueryList<SmartformComponent> | undefined;
@@ -64,6 +66,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
64
66
  protected getAllSmartTreeComponents(): SmarttreeGenericService[];
65
67
  protected getAllSmartFilterEditorContentComponents(): SmartFilterEditorContentComponent[];
66
68
  protected getAllSmartUiActionToolbars(): UiActionToolbarComponent[];
69
+ protected getAllFilterUiActionToolbars(): UiActionToolbarComponent[];
67
70
  initData(): void;
68
71
  initActions(): void;
69
72
  setupAllToolbars(toolbars: UiActionToolbarComponent[], toolbarsWithoutId: UiActionToolbarComponent[], toolbarModels: Map<string, UiActionModel[]>): Promise<void>;
@@ -13,6 +13,7 @@ export declare enum FilterExpressionFieldWidgetType {
13
13
  TEXT_FIELD = "TEXT_FIELD",
14
14
  TEXT_FIELD_CHIPS = "TEXT_FIELD_CHIPS",
15
15
  TEXT_FIELD_NUMBER = "TEXT_FIELD_NUMBER",
16
+ TEXT_FIELD_LOOKUP = "TEXT_FIELD_LOOKUP",
16
17
  TEXT_BOX = "TEXT_BOX",
17
18
  SELECT = "SELECT",
18
19
  SELECT_MULTIPLE = "SELECT_MULTIPLE",
@@ -20,5 +20,6 @@ export interface FilterExpressionOperandData {
20
20
  isDataName?: boolean;
21
21
  valueAsString?: string;
22
22
  selectedValues: Array<string>;
23
+ selectedObjects?: Array<object>;
23
24
  type?: FilterExpressionDataType;
24
25
  }
@@ -13,6 +13,7 @@ export declare enum FilterExpressionFieldWidgetType {
13
13
  TEXT_FIELD = "TEXT_FIELD",
14
14
  TEXT_FIELD_CHIPS = "TEXT_FIELD_CHIPS",
15
15
  TEXT_FIELD_NUMBER = "TEXT_FIELD_NUMBER",
16
+ TEXT_FIELD_LOOKUP = "TEXT_FIELD_LOOKUP",
16
17
  TEXT_BOX = "TEXT_BOX",
17
18
  SELECT = "SELECT",
18
19
  SELECT_MULTIPLE = "SELECT_MULTIPLE",
@@ -20,5 +20,6 @@ export interface FilterExpressionOperandData {
20
20
  isDataName?: boolean;
21
21
  valueAsString?: string;
22
22
  selectedValues: Array<string>;
23
+ selectedObjects?: Array<object>;
23
24
  type?: FilterExpressionDataType;
24
25
  }
@@ -27,6 +27,8 @@ export declare class SmartFilterEditorContentComponent implements OnInit, AfterV
27
27
  ngAfterViewInit(): void;
28
28
  ngOnDestroy(): void;
29
29
  setupSimpleFilter(): void;
30
+ private compareWidgets;
31
+ private compareWidget;
30
32
  private extractFilterFieldFromFormModel;
31
33
  setUp(): void;
32
34
  constructUiActionModels(): void;
@@ -26,6 +26,7 @@ export declare enum SmartFormWidgetType {
26
26
  TEXT_FIELD = "TEXT_FIELD",
27
27
  TEXT_FIELD_CHIPS = "TEXT_FIELD_CHIPS",
28
28
  TEXT_FIELD_NUMBER = "TEXT_FIELD_NUMBER",
29
+ TEXT_FIELD_LOOKUP = "TEXT_FIELD_LOOKUP",
29
30
  TIME = "TIME",
30
31
  TOGGLE = "TOGGLE",
31
32
  IMAGE = "IMAGE",
@@ -22,6 +22,7 @@ export declare class SmartformLayoutDefinitionService {
22
22
  private createContainer;
23
23
  private createTextField;
24
24
  private createTextFieldChips;
25
+ private createTextFieldLookup;
25
26
  private createTextFieldNumber;
26
27
  private createTextBox;
27
28
  private createRichText;
@@ -2,7 +2,7 @@ import { QuillModules } from 'ngx-quill';
2
2
  import { SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, ValueChangeMode } from './api';
3
3
  import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, ToggleLabelPosition } from './smartform.model';
4
4
  import { Style } from '../view-context/api';
5
- 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 | SmartSvg;
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;
8
8
  key: string;
@@ -111,6 +111,36 @@ export interface SmartTextFieldChips<T> {
111
111
  maxValues?: number;
112
112
  hint?: SmartWidgetHint;
113
113
  }
114
+ export interface SmartTextFieldLookup<T> {
115
+ type: SmartFormWidgetType.TEXT_FIELD_LOOKUP;
116
+ key: string;
117
+ valueChangeMode?: ValueChangeMode;
118
+ label: string;
119
+ originalLabel?: string;
120
+ showLabel?: boolean;
121
+ value?: T;
122
+ placeholder?: string;
123
+ originalPlaceholder?: string;
124
+ minWidth?: SmartFormWidgetWidth | number | number;
125
+ isDisabled?: boolean;
126
+ isReadonly?: boolean;
127
+ validators?: SmartValidator[];
128
+ cssClass?: string;
129
+ cssLabelClass?: string;
130
+ style?: Style;
131
+ labelStyle?: Style;
132
+ isVisible?: boolean;
133
+ error?: string;
134
+ errorIcon?: string;
135
+ errorIconColor?: string;
136
+ serverErrorMessage?: string;
137
+ serverErrorIcon?: string;
138
+ serverErrorColor?: string;
139
+ minValues?: number;
140
+ maxValues?: number;
141
+ hint?: SmartWidgetHint;
142
+ toolbarId?: string;
143
+ }
114
144
  export interface SmartTextBox<T> {
115
145
  type: SmartFormWidgetType.TEXT_BOX;
116
146
  key: string;
@@ -103,6 +103,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
103
103
  getRichTextEditorLengthLeeway(): number;
104
104
  addOnBlur: boolean;
105
105
  readonly separatorKeysCodes: readonly [13, 188];
106
+ readonly emptySeparatorKeysCodes: readonly [];
106
107
  add(event: MatChipInputEvent): void;
107
108
  remove(value: SmartFormWidget<any>): void;
108
109
  selected(event: MatAutocompleteSelectedEvent, widgetInstance: SmartFormWidget<any>): void;
@@ -130,6 +131,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
130
131
  truncateUri(uri: any): any;
131
132
  removeMatrixRow(question: any): void;
132
133
  isToolbarPresent(): boolean;
134
+ getChipsValue(value: any): any;
133
135
  getOptions(items: SmartItems<any>[]): any[];
134
136
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
135
137
  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>;
@@ -1,4 +1,5 @@
1
1
  export declare class SmartObjectUtility {
2
2
  static getValueByPath(model: any, key: string): any;
3
3
  private static traverse;
4
+ static compareByProps(o1: any, o2: any, props: string[]): boolean;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.0.90",
3
+ "version": "4.0.92",
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