@smartbit4all/ng-client 3.3.105 → 3.3.107

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 (38) hide show
  1. package/esm2020/lib/smart-client/smart-component-api-client.mjs +5 -1
  2. package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
  3. package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  4. package/esm2020/lib/smart-dialog/smartdialog.model.mjs +1 -1
  5. package/esm2020/lib/smart-filter-editor/api/model/smartFilterType.mjs +17 -0
  6. package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  7. package/esm2020/lib/smart-form/services/smartform.layout-definition.service.mjs +6 -1
  8. package/esm2020/lib/smart-form/smartform.component.mjs +18 -3
  9. package/esm2020/lib/smart-form/smartform.form-model.mjs +1 -1
  10. package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +64 -3
  11. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +2 -2
  12. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +1 -1
  13. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +2 -2
  14. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +5 -2
  15. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +2 -2
  16. package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +1 -1
  17. package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +1 -1
  18. package/fesm2015/smartbit4all-ng-client.mjs +98 -12
  19. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  20. package/fesm2020/smartbit4all-ng-client.mjs +99 -11
  21. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  22. package/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.d.ts +1 -1
  23. package/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.d.ts +2 -2
  24. package/lib/smart-dialog/smartdialog.model.d.ts +2 -2
  25. package/lib/smart-filter-editor/api/model/smartFilterType.d.ts +15 -0
  26. package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +4 -0
  27. package/lib/smart-form/smartform.component.d.ts +5 -2
  28. package/lib/smart-form/smartform.form-model.d.ts +3 -0
  29. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +25 -1
  30. package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +1 -1
  31. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.d.ts +1 -1
  32. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +1 -1
  33. package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.d.ts +2 -2
  34. package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +1 -1
  35. package/lib/view-context/smart-ui-action/ui-action.model.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/smartbit4all-ng-client-3.3.107.tgz +0 -0
  38. package/smartbit4all-ng-client-3.3.105.tgz +0 -0
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SmartWidgetDefinition } from '../../../smart-form/api/model/smartWidgetDefinition';
12
13
  import { ComponentType } from './componentType';
13
14
  import { LayoutDirection } from './layoutDirection';
14
15
  import { SmartComponentWidgetDefinition } from './smartComponentWidgetDefinition';
15
- import { SmartWidgetDefinition } from '../../../smart-form/projects';
16
16
  export interface SmartComponentLayoutDefinition {
17
17
  type: ComponentType;
18
18
  expandable?: boolean;
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ComponentWidgetType } from './componentWidgetType';
13
- import { FilterExpressionFieldList } from '../../../smart-filter/projects';
14
- import { SmartFilterType } from '../../../smart-filter/projects';
13
+ import { FilterExpressionFieldList } from '../../../smart-filter-editor/api/model/filterExpressionFieldList';
14
+ import { SmartFilterType } from '../../../smart-filter-editor/api/model/smartFilterType';
15
15
  export interface SmartComponentWidgetDefinition {
16
16
  type: ComponentWidgetType;
17
17
  identifier?: string;
@@ -1,5 +1,5 @@
1
- import { SmartForm } from '../smart-form/projects';
2
- import { SmartTable } from '../smart-table/projects';
1
+ import { SmartForm } from '../smart-form/smartform.model';
2
+ import { SmartTable } from '../smart-table/smarttable.model';
3
3
  /**
4
4
  * This interface defines the size of a dialog.
5
5
  *
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Filter API 2
3
+ * Filter API 2
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 declare enum SmartFilterType {
13
+ SIMPLE = "SIMPLE",
14
+ ADVANCED = "ADVANCED"
15
+ }
@@ -88,4 +88,8 @@ export interface SmartWidgetDefinition {
88
88
  * The default error message to show if the widget features an autocompletion filter operation, which returns no elements.
89
89
  */
90
90
  filterErrorMessage?: string;
91
+ /**
92
+ * Identifier of the toolbar associated with this widget.
93
+ */
94
+ toolbarId?: string;
91
95
  }
@@ -1,10 +1,11 @@
1
- import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  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 './projects';
7
+ import { SmartFormWidget } from './smartform.form-model';
8
+ import { SmartformwidgetComponent } from './widgets/smartformwidget/smartformwidget.component';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges {
10
11
  private service;
@@ -16,6 +17,7 @@ export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges
16
17
  sophisticatedValueChange: Subject<SophisticatedValueChange>;
17
18
  form: FormGroup;
18
19
  direction: typeof SmartFormWidgetDirection;
20
+ smartWidgetsQL?: QueryList<SmartformwidgetComponent>;
19
21
  constructor(service: SmartFormService);
20
22
  ngOnChanges(changes: SimpleChanges): void;
21
23
  ngOnInit(): void;
@@ -27,6 +29,7 @@ export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges
27
29
  submitForm(validate?: boolean): SmartForm;
28
30
  keyDownFunction(event: any): void;
29
31
  getModel(): any;
32
+ getToolbars(): Object[];
30
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartformComponent, never>;
31
34
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartformComponent, "smartform", never, { "smartForm": "smartForm"; }, {}, never, never>;
32
35
  }
@@ -38,6 +38,7 @@ export interface SmartTextField<T> {
38
38
  hint?: SmartWidgetHint;
39
39
  maxLength?: number;
40
40
  showCharacterLimitSuffix?: boolean;
41
+ toolbarId?: string;
41
42
  }
42
43
  export interface SmartTextFieldNumber<T> {
43
44
  type: SmartFormWidgetType.TEXT_FIELD_NUMBER;
@@ -462,6 +463,8 @@ export interface SmartRichText {
462
463
  errorIcon?: string;
463
464
  errorIconColor?: string;
464
465
  hint?: SmartWidgetHint;
466
+ maxLength?: number;
467
+ showCharacterLimitSuffix?: boolean;
465
468
  }
466
469
  export interface SmartSortable<T> {
467
470
  type: SmartFormWidgetType.SORTABLE;
@@ -2,13 +2,14 @@ import { AfterViewInit, ComponentRef, ElementRef, OnDestroy, OnInit, ViewContain
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
4
  import { MatChipInputEvent } from '@angular/material/chips';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
+ import { ContentChange, QuillEditorComponent } from 'ngx-quill';
5
7
  import { Observable, Subject } from 'rxjs';
6
8
  import { ComponentFactoryService } from '../../../component-factory-service/projects';
7
9
  import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api/model/models';
8
10
  import { SmartFormService } from '../../services/smartform.service';
9
11
  import { SmartButton, SmartFormWidget, SmartItem } from '../../smartform.form-model';
10
12
  import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
11
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class SmartWidgetSettings {
14
15
  static useUtc: boolean;
@@ -36,9 +37,11 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
36
37
  customComponentRef?: ComponentRef<any>;
37
38
  filteredOptions?: Observable<SmartItem<any>[]>;
38
39
  toHighlight: string;
40
+ quill?: QuillEditorComponent;
39
41
  isEnterPressed: boolean;
40
42
  isDatePickerRequired: boolean;
41
43
  SmartWidgetHintPosition: typeof SmartWidgetHintPositionEnum;
44
+ toolbar?: any;
42
45
  constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer);
43
46
  ngOnInit(): void;
44
47
  parseYoutubeUrl(url: string): string | false;
@@ -58,6 +61,27 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
58
61
  ngOnDestroy(): void;
59
62
  onKeydown(): void;
60
63
  togglePasswordVisibility(event: any): void;
64
+ /**
65
+ * Change handler for the potentially present Quill editor, enforcing max length limits if
66
+ * necessary.
67
+ *
68
+ * @param change the {@link ContentChange} the Quill editor emits
69
+ * @returns {@code void}
70
+ */
71
+ onRichTextEditorContentChanged(change: ContentChange): void;
72
+ /**
73
+ * Calculates the number of remaining user-space characters allowed to be entered into the Quill
74
+ * editor.
75
+ *
76
+ * <p>
77
+ * The real length of the editor's content may be much longer - as it is persisted as an HTML
78
+ * document fragment behind the scenes. This method is concerned by the number of characters the
79
+ * user perceives.
80
+ *
81
+ * @returns the {@link number} of remaining permitted characters the user may input, or {@code -1}
82
+ * if the leeway is not interpreted in the component's current state
83
+ */
84
+ getRichTextEditorLengthLeeway(): number;
61
85
  addOnBlur: boolean;
62
86
  readonly separatorKeysCodes: readonly [13, 188];
63
87
  add(event: MatChipInputEvent): void;
@@ -1,8 +1,8 @@
1
1
  import { MatDialog } from '@angular/material/dialog';
2
2
  import { Router } from '@angular/router';
3
- import { SmartdialogService } from '../../../../smart-dialog/projects';
4
3
  import { Subject } from 'rxjs';
5
4
  import { UiAction } from '../../../api';
5
+ import { SmartdialogService } from 'projects/smart-ng-client/src/lib/smart-dialog/smartdialog.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UiActionConfirmDialogService extends SmartdialogService {
8
8
  _destroy$: Subject<void>;
@@ -1,8 +1,8 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { SmartFileUploaderI18n } from '../../../../smart-form/projects';
3
2
  import { UiActionDescriptor } from '../../../api';
4
3
  import { UiActionDescriptorService } from '../../ui-action.descriptor.service';
5
4
  import { UiActionFileUploadDialogService } from './ui-action-file-upload-dialog.service';
5
+ import { SmartFileUploaderI18n } from 'projects/smart-ng-client/src/lib/smart-form/smartfileuploader/smartfileuploader.model';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UiActionFileUploadDialogComponent implements OnDestroy {
8
8
  private service;
@@ -1,8 +1,8 @@
1
1
  import { MatDialog } from '@angular/material/dialog';
2
2
  import { Router } from '@angular/router';
3
3
  import { Subject } from 'rxjs';
4
- import { SmartdialogService } from '../../../../smart-dialog/projects';
5
4
  import { UiAction } from '../../../api';
5
+ import { SmartdialogService } from 'projects/smart-ng-client/src/lib/smart-dialog/smartdialog.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UiActionFileUploadDialogService extends SmartdialogService {
8
8
  _destroy$: Subject<void>;
@@ -1,13 +1,13 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { SmartForm, SmartformComponent } from '../../../../smart-form/projects';
3
2
  import { UiActionDescriptor } from '../../../api';
4
3
  import { UiActionDescriptorService } from '../../ui-action.descriptor.service';
5
4
  import { UiActionInputDialogService } from './ui-action-input-dialog.service';
5
+ import { SmartForm } from 'projects/smart-ng-client/src/lib/smart-form/smartform.model';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UiActionInputDialogComponent implements OnDestroy {
8
8
  private service;
9
9
  private manager;
10
- folderFormChild: SmartformComponent;
10
+ folderFormChild: any;
11
11
  code: string;
12
12
  folderForm: SmartForm;
13
13
  dialogType: 'dialog' | 'inputDialog' | 'input2Dialog';
@@ -1,8 +1,8 @@
1
1
  import { MatDialog } from '@angular/material/dialog';
2
2
  import { Router } from '@angular/router';
3
- import { SmartdialogService } from '../../../../smart-dialog/projects';
4
3
  import { Subject } from 'rxjs';
5
4
  import { UiAction, UiActionRequest } from '../../../api';
5
+ import { SmartdialogService } from 'projects/smart-ng-client/src/lib/smart-dialog/smartdialog.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UiActionInputDialogService extends SmartdialogService {
8
8
  _destroy$: Subject<void>;
@@ -2,7 +2,7 @@ import { Subject } from 'rxjs';
2
2
  import { UiAction } from '../api/model/uiAction';
3
3
  import { UiActionDescriptor } from '../api/model/uiActionDescriptor';
4
4
  import { UiActionRequest } from '../api/model/uiActionRequest';
5
- import { SmartFormInvalidFields } from '../../smart-form/projects';
5
+ import { SmartFormInvalidFields } from '../../smart-form/smartform.model';
6
6
  export interface UiActionModel {
7
7
  uiAction: UiAction;
8
8
  serviceToUse: UseUiAction | UseUiAction2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.3.105",
3
+ "version": "3.3.107",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file