@smartbit4all/ng-client 4.2.145 → 4.2.146

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.
@@ -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 DateFieldProperties {
13
+ minDate?: string;
14
+ maxDate?: string;
15
+ }
@@ -1,3 +1,4 @@
1
+ export * from './dateFieldProperties';
1
2
  export * from './fileUploaderProperties';
2
3
  export * from './imageProperties';
3
4
  export * from './propertyMapping';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * This enum defines the value change handling strategy. Currently only one method is supported, IMMEDIATE_ACTION, which will trigger an executeUiAction when the value is changed.
13
+ * This enum defines the value change handling strategy. IMMEDIATE_ACTION will trigger an executeUiAction when the value is changed. BLUR which will trigger an executeUiAction when the focus is losted from the html element.
14
14
  */
15
15
  export declare enum ValueChangeMode {
16
16
  NONE = "NONE",
@@ -1,5 +1,5 @@
1
1
  import { QuillModules } from 'ngx-quill';
2
- import { FileUploaderProperties, ImageProperties, SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, SortDefinition, TextFieldProperties, ValueChangeMode } from './api';
2
+ import { DateFieldProperties, FileUploaderProperties, ImageProperties, SelectionDefinition, SmartFormInputMode, SmartFormWidgetDirection, SmartFormWidgetType, SmartWidgetHint, SortDefinition, TextFieldProperties, ValueChangeMode } from './api';
3
3
  import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, ToggleLabelPosition } from './smartform.model';
4
4
  import { ImageResource, 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;
@@ -360,8 +360,7 @@ export interface SmartDatePicker<T> {
360
360
  serverErrorIcon?: string;
361
361
  serverErrorColor?: string;
362
362
  dateFormatHint?: string;
363
- minDate?: Date;
364
- maxDate?: Date;
363
+ dateFieldProperties?: DateFieldProperties;
365
364
  filter?: (d: Date | null) => boolean;
366
365
  hint?: SmartWidgetHint;
367
366
  }
@@ -392,6 +391,7 @@ export interface SmartDateTimePicker<T> {
392
391
  serverErrorIcon?: string;
393
392
  serverErrorColor?: string;
394
393
  dateFormatHint?: string;
394
+ dateFieldProperties?: DateFieldProperties;
395
395
  filter?: (d: Date | null) => boolean;
396
396
  hint?: SmartWidgetHint;
397
397
  }
@@ -155,6 +155,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
155
155
  onCalendarShow(): void;
156
156
  onCalendarInput(): void;
157
157
  safeCalendarBlur(event: any): void;
158
+ convertToLocalDateTime(value: string | null): Date | null;
158
159
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
159
160
  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>;
160
161
  }
@@ -29,6 +29,10 @@ export interface DeviceInfo {
29
29
  * IP address of the client.
30
30
  */
31
31
  ipAddress?: string;
32
+ /**
33
+ * The component library of the client (Material, PrimeNg).
34
+ */
35
+ componentLibrary?: string;
32
36
  /**
33
37
  * Any additional parameters that the client may share with the server.
34
38
  */
@@ -6,6 +6,7 @@ import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErr
6
6
  import { SmartSubject } from '../smart-subject/projects';
7
7
  import { SmartNavigationService } from '../smart-navigation/projects';
8
8
  import { SmartViewContextDialogService } from './smart-view-context-dialog.service';
9
+ import { ComponentLibrary } from './utility/componentLibrary';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare const SmartViewContextErrorDialogButtonLabel = "SmartViewContextErrorDialogButtonLabel";
11
12
  export declare const SmartViewContextErrorDialogTitle = "SmartViewContextErrorDialogTitle";
@@ -45,7 +46,8 @@ export declare class SmartViewContextService implements OnDestroy {
45
46
  get translateService(): SmartTranslateService | undefined;
46
47
  private _translateService?;
47
48
  translateServiceChanged: Subject<void>;
48
- constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartViewContextDialogService, apiQueueService: ApiQueueService, inject: Injector);
49
+ componentLibrary: ComponentLibrary | undefined;
50
+ constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartViewContextDialogService, apiQueueService: ApiQueueService, inject: Injector, compLib?: ComponentLibrary);
49
51
  ngOnDestroy(): void;
50
52
  follow(uuid: string, detectChange: SmartSubject<any>): void;
51
53
  unfollow(uuid: string): void;
@@ -100,7 +102,7 @@ export declare class SmartViewContextService implements OnDestroy {
100
102
  load(uuid: string): Promise<ComponentModel | undefined>;
101
103
  load2(uuid: string): Promise<ViewContextChange | undefined>;
102
104
  getCurrentViewContext(): ViewContextData | undefined;
103
- static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextService, never>;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextService, [null, null, null, null, null, null, { optional: true; }]>;
104
106
  static ɵprov: i0.ɵɵInjectableDeclaration<SmartViewContextService>;
105
107
  }
106
108
  export declare const IS_ASYNC_PARAM_NAME = "isAsync";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.145",
3
+ "version": "4.2.146",
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