@smartbit4all/ng-client 4.2.126 → 4.2.128
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-client/smart-component-api-client.mjs +39 -36
- package/esm2022/lib/smart-form/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-form/api/index.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/fileUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/imageProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/sortDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/textFieldProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +2 -1
- package/esm2022/lib/smart-form/api/param.mjs +1 -1
- package/esm2022/lib/smart-form/api/variables.mjs +1 -1
- package/esm2022/lib/smart-form/smartfileuploader/smartfileuploader.component.mjs +3 -2
- package/esm2022/lib/smart-form/smartform.component.mjs +6 -5
- package/esm2022/lib/smart-form/widgets/components/smart-file-editor/smart-file-editor.component.mjs +96 -66
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +36 -21
- package/esm2022/lib/view-context/smart-ui-action/components/upload-widget/prime-file-uploader/prime-file-uploader.component.mjs +4 -4
- package/fesm2022/smartbit4all-ng-client.mjs +167 -117
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +9 -7
- package/lib/smart-form/api/model/valueChangeMode.d.ts +2 -1
- package/lib/smart-form/smartform.component.d.ts +3 -2
- package/lib/smart-form/widgets/components/smart-file-editor/smart-file-editor.component.d.ts +19 -10
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +9 -12
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.2.128.tgz +0 -0
- package/smartbit4all-ng-client-4.2.126.tgz +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, Injector, QueryList, Renderer2 } from '@angular/core';
|
|
2
2
|
import { Subject, Subscription } from 'rxjs';
|
|
3
3
|
import { SmartComponentLayoutComponent } from '../smart-component-layout/projects';
|
|
4
|
-
import {
|
|
4
|
+
import { SmartDiagramComponent } from '../smart-diagram/projects';
|
|
5
|
+
import { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
|
|
6
|
+
import { SmartForm, SmartFormInvalidFields, SmartformComponent, SophisticatedValueChange, ValueChangeMode } from '../smart-form/projects';
|
|
5
7
|
import { GridOptions, SmartGrid, SmartGridComponent } from '../smart-grid/projects';
|
|
6
8
|
import { SmartMapComponent } from '../smart-map/smart-map.component';
|
|
7
9
|
import { SmarttreeGenericService } from '../smart-tree/projects';
|
|
8
10
|
import { ComponentModel, ComponentModelChange, ExecuteUiActionOptions, SmartTranslateService, SmartViewContextService, UiAction, UiActionAdditionalParams, UiActionDescriptorService, UiActionModel, UiActionRequest, UiActionService, UiActionSpecificDemandResponse, UiActionToolbarComponent, UseUiAction2 } from '../view-context/projects';
|
|
9
11
|
import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
|
|
10
|
-
import { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
|
|
11
|
-
import { SmartDiagramComponent } from '../smart-diagram/projects';
|
|
12
12
|
export declare abstract class SmartComponentApiClient<T> implements UseUiAction2 {
|
|
13
13
|
protected inject: Injector;
|
|
14
14
|
protected auth: SmartAuthenticationServiceInterface;
|
|
@@ -43,8 +43,9 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
43
43
|
formWidgets: Map<string, SmartformComponent | undefined>;
|
|
44
44
|
useQueryLists: boolean;
|
|
45
45
|
sendModelOnWidgetAction: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
inmediateDataChangeKeys: string[];
|
|
47
|
+
blurDataChangeKeys: string[];
|
|
48
|
+
protected dataChangeActionHandlers: Map<SmartformComponent, Subscription[]>;
|
|
48
49
|
protected filterModelChangeSubjects: Map<string, Subject<void>>;
|
|
49
50
|
protected changeDetector?: ChangeDetectorRef;
|
|
50
51
|
constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName?: string | undefined, _componentName?: string | undefined, element?: ElementRef<any> | undefined, renderer?: Renderer2 | undefined);
|
|
@@ -79,9 +80,10 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
79
80
|
run(): void;
|
|
80
81
|
load(): Promise<void>;
|
|
81
82
|
executeUiAction(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
|
|
82
|
-
addDataChangeActionHandler(key: string): void;
|
|
83
|
+
addDataChangeActionHandler(key: string, valueChangeMode: ValueChangeMode): void;
|
|
84
|
+
protected getChangeKeys(valueChangeMode: ValueChangeMode): string[];
|
|
83
85
|
removeDataChangeActionHandler(key: string): void;
|
|
84
|
-
protected dataChangeActionHandler(event: SophisticatedValueChange): void;
|
|
86
|
+
protected dataChangeActionHandler(event: SophisticatedValueChange, valueChangeMode: ValueChangeMode): void;
|
|
85
87
|
protected handleLayoutUploadCallback(comp: SmartComponentLayoutComponent): void;
|
|
86
88
|
protected handleUploadCallback(form: SmartformComponent): void;
|
|
87
89
|
protected handleDataChangeSubscriptions(): void;
|
|
@@ -4,10 +4,10 @@ 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 './smartform.form-model';
|
|
8
|
-
import { SmartformwidgetComponent } from './widgets/smartformwidget/smartformwidget.component';
|
|
9
7
|
import { UiActionToolbarComponent } from '../view-context/smart-ui-action/ui-action-toolbar.component';
|
|
10
8
|
import { ComponentLibrary } from '../view-context/utility/componentLibrary';
|
|
9
|
+
import { SmartFormWidget } from './smartform.form-model';
|
|
10
|
+
import { SmartformwidgetComponent } from './widgets/smartformwidget/smartformwidget.component';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges {
|
|
13
13
|
private service;
|
|
@@ -18,6 +18,7 @@ export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges
|
|
|
18
18
|
onValueChangeSubject?: Subject<any>;
|
|
19
19
|
originalWidgets: SmartFormWidget<any>[];
|
|
20
20
|
sophisticatedValueChange: Subject<SophisticatedValueChange>;
|
|
21
|
+
blurSophisticatedValueChange: Subject<SophisticatedValueChange>;
|
|
21
22
|
form: UntypedFormGroup;
|
|
22
23
|
direction: typeof SmartFormWidgetDirection;
|
|
23
24
|
smartWidgetsQL?: QueryList<SmartformwidgetComponent>;
|
package/lib/smart-form/widgets/components/smart-file-editor/smart-file-editor.component.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { SmartFileUploader } from '../../../smartform.form-model';
|
|
3
3
|
import { UiAction, UiActionDescriptor, UiActionUploadDescriptor } from '../../../../view-context/api/model/models';
|
|
4
4
|
import { ComponentLibrary } from '../../../../view-context/utility/componentLibrary';
|
|
5
|
-
import { UiActionModel } from '../../../../view-context/smart-ui-action/ui-action.model';
|
|
6
5
|
import { UiActionToolbarComponent } from '../../../../view-context/smart-ui-action/ui-action-toolbar.component';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SmartFileEditorComponent {
|
|
8
|
+
export declare class SmartFileEditorComponent implements ControlValueAccessor {
|
|
9
|
+
private cdr;
|
|
9
10
|
compLib?: ComponentLibrary | undefined;
|
|
10
11
|
toolbar: UiActionToolbarComponent;
|
|
11
|
-
|
|
12
|
+
private _widgetInstance;
|
|
13
|
+
get widgetInstance(): SmartFileUploader;
|
|
14
|
+
set widgetInstance(value: SmartFileUploader);
|
|
12
15
|
uploadFilesEvent: EventEmitter<{
|
|
13
16
|
files: any[];
|
|
14
17
|
uiAction: UiAction;
|
|
15
18
|
uploadDescriptor?: UiActionUploadDescriptor | undefined;
|
|
16
19
|
}>;
|
|
17
|
-
uiActionModels: UiActionModel[];
|
|
18
20
|
fileToChange?: any;
|
|
19
|
-
constructor(compLib?: ComponentLibrary | undefined);
|
|
20
|
-
|
|
21
|
+
constructor(cdr: ChangeDetectorRef, compLib?: ComponentLibrary | undefined);
|
|
22
|
+
private clone;
|
|
21
23
|
upload(event: any): void;
|
|
22
24
|
change(file: any): void;
|
|
23
25
|
cancelChange(): void;
|
|
26
|
+
isTypeSupported(value: any): boolean;
|
|
27
|
+
formatSize(bytes: number): string;
|
|
24
28
|
getLabelNgClass(): {
|
|
25
29
|
[className: string]: boolean;
|
|
26
30
|
};
|
|
@@ -33,13 +37,18 @@ export declare class SmartFileEditorComponent {
|
|
|
33
37
|
getStyle(): {
|
|
34
38
|
[key: string]: string | number;
|
|
35
39
|
};
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
onChange: (value: any) => void;
|
|
41
|
+
onTouched: () => void;
|
|
42
|
+
isDisabled: boolean;
|
|
43
|
+
writeValue(value: any): void;
|
|
44
|
+
registerOnChange(fn: any): void;
|
|
45
|
+
registerOnTouched(fn: any): void;
|
|
46
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
38
47
|
get fileIcon(): string;
|
|
39
48
|
get changeButton(): UiActionDescriptor;
|
|
40
49
|
get removeButton(): UiActionDescriptor;
|
|
41
50
|
get errorIcon(): string;
|
|
42
51
|
get toolbarComponent(): UiActionToolbarComponent;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, [{ optional: true; }]>;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, [null, { optional: true; }]>;
|
|
44
53
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartFileEditorComponent, "smart-file-editor", never, { "widgetInstance": { "alias": "widgetInstance"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; }, never, never, false, never>;
|
|
45
54
|
}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef,
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, OnDestroy, 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';
|
|
5
5
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
6
6
|
import { ContentChange, QuillEditorComponent, QuillModules } from 'ngx-quill';
|
|
7
|
+
import { EditorTextChangeEvent } from 'primeng/editor';
|
|
7
8
|
import { Observable, Subject } from 'rxjs';
|
|
8
9
|
import { ComponentFactoryService } from '../../../component-factory-service/projects';
|
|
10
|
+
import { UiActionDescriptor } from '../../../view-context/api';
|
|
9
11
|
import { UiActionToolbarComponent } from '../../../view-context/smart-ui-action/ui-action-toolbar.component';
|
|
12
|
+
import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
|
|
10
13
|
import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api/model/models';
|
|
11
14
|
import { SmartFormService } from '../../services/smartform.service';
|
|
12
15
|
import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smartform.form-model';
|
|
13
16
|
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
|
|
14
|
-
import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
|
|
15
|
-
import { EditorTextChangeEvent } from 'primeng/editor';
|
|
16
|
-
import { UiAction, UiActionDescriptor, UiActionUploadDescriptor } from '../../../view-context/api';
|
|
17
17
|
import { SmartFileEditorComponent } from '../components/smart-file-editor/smart-file-editor.component';
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
19
|
export declare class SmartWidgetSettings {
|
|
20
20
|
static useUtc: boolean;
|
|
21
21
|
}
|
|
22
|
-
export interface UploadCallbackProps {
|
|
23
|
-
files: File[];
|
|
24
|
-
uiAction: UiAction;
|
|
25
|
-
uploadDescriptor: UiActionUploadDescriptor;
|
|
26
|
-
}
|
|
27
|
-
export type UploadCallback = (props: UploadCallbackProps) => Promise<void>;
|
|
28
22
|
export declare class SmartformwidgetComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
29
23
|
private service;
|
|
30
24
|
private cfService;
|
|
@@ -33,13 +27,14 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
33
27
|
changeDetector: ChangeDetectorRef;
|
|
34
28
|
private _destroy$;
|
|
35
29
|
hidePassword: boolean;
|
|
36
|
-
|
|
30
|
+
smartComponent: any;
|
|
37
31
|
form: UntypedFormGroup;
|
|
38
32
|
widgetInstance: SmartFormWidget<any>;
|
|
39
33
|
onBlur?: Subject<any>;
|
|
40
34
|
onValueChange?: Subject<any>;
|
|
41
35
|
labelColor?: string;
|
|
42
36
|
sophisticatedValueChange: Subject<SophisticatedValueChange>;
|
|
37
|
+
blurSophisticatedValueChange: Subject<SophisticatedValueChange>;
|
|
43
38
|
valueCleared: EventEmitter<{
|
|
44
39
|
event?: any;
|
|
45
40
|
key: any;
|
|
@@ -68,6 +63,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
68
63
|
fileUploader: SmartFileEditorComponent;
|
|
69
64
|
constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer, compLib: ComponentLibrary, changeDetector: ChangeDetectorRef);
|
|
70
65
|
ngOnInit(): void;
|
|
66
|
+
private getSophisticatedEventKind;
|
|
71
67
|
parseYoutubeUrl(url: string): string | false;
|
|
72
68
|
_hasJustChanged: boolean;
|
|
73
69
|
get hasJustChanged(): boolean;
|
|
@@ -154,6 +150,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
154
150
|
get clearButtonDescriptor(): UiActionDescriptor;
|
|
155
151
|
clearField(key: string): void;
|
|
156
152
|
onTextareaChange(value: string): void;
|
|
153
|
+
handleBlurEvent(eventData: any): void;
|
|
157
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
|
|
158
|
-
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>;
|
|
155
|
+
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>;
|
|
159
156
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|