@smartbit4all/ng-client 4.2.144 → 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.
- package/esm2022/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.mjs +2 -1
- package/esm2022/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +2 -1
- package/esm2022/lib/smart-form/api/model/dateFieldProperties.mjs +13 -0
- package/esm2022/lib/smart-form/api/model/models.mjs +2 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +2 -2
- package/esm2022/lib/smart-form/services/smartform.layout-definition.service.mjs +3 -1
- package/esm2022/lib/smart-form/smartform.form-model.mjs +1 -1
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +13 -4
- package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
- package/esm2022/lib/view-context/smart-view-context.service.mjs +19 -5
- package/fesm2022/smartbit4all-ng-client.mjs +44 -7
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/api/model/dateFieldProperties.d.ts +15 -0
- package/lib/smart-form/api/model/models.d.ts +1 -0
- package/lib/smart-form/api/model/valueChangeMode.d.ts +1 -1
- package/lib/smart-form/smartform.form-model.d.ts +3 -3
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +1 -0
- package/lib/view-context/api/model/deviceInfo.d.ts +4 -0
- package/lib/view-context/smart-view-context.service.d.ts +4 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.2.146.tgz +0 -0
- package/smartbit4all-ng-client-4.2.144.tgz +0 -0
|
@@ -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
|
+
}
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
Binary file
|
|
Binary file
|