@smartbit4all/ng-client 4.2.126 → 4.2.127
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 +3 -19
- package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
- 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 +1 -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/widgets/components/smart-file-editor/smart-file-editor.component.mjs +96 -66
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +13 -11
- package/esm2022/lib/smart-map/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-map/api/api/geoMap.service.mjs +1 -1
- package/esm2022/lib/smart-map/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-map/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-map/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-map/api/index.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/gPSPosition.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/gPSRoute.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapChange.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataLoadingMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataSourceDescriptor.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataSourceType.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapEditingSession.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapInteraction.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapItem.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapItemKind.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayer.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayerChange.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayerDescriptor.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapModel.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapOperationMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapSelectionMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapServerModel.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapTextType.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapViewState.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapViewport.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-map/api/param.mjs +1 -1
- package/esm2022/lib/smart-map/api/variables.mjs +1 -1
- package/esm2022/lib/view-context/api/api/api.mjs +1 -1
- package/esm2022/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2022/lib/view-context/api/api.module.mjs +1 -1
- package/esm2022/lib/view-context/api/configuration.mjs +1 -1
- package/esm2022/lib/view-context/api/encoder.mjs +1 -1
- package/esm2022/lib/view-context/api/index.mjs +1 -1
- package/esm2022/lib/view-context/api/model/backgroundProcessInfo.mjs +1 -1
- package/esm2022/lib/view-context/api/model/badgeDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/clipboardData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/closeResult.mjs +1 -1
- package/esm2022/lib/view-context/api/model/componentConstraint.mjs +1 -1
- package/esm2022/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2022/lib/view-context/api/model/componentModelChange.mjs +1 -1
- package/esm2022/lib/view-context/api/model/dataChange.mjs +1 -1
- package/esm2022/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
- package/esm2022/lib/view-context/api/model/dataChangeKind.mjs +1 -1
- package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
- package/esm2022/lib/view-context/api/model/downloadedFile.mjs +1 -1
- package/esm2022/lib/view-context/api/model/iconPosition.mjs +1 -1
- package/esm2022/lib/view-context/api/model/imageResource.mjs +1 -1
- package/esm2022/lib/view-context/api/model/link.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageOption.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageOptionType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageResult.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageTextType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/messageType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/models.mjs +1 -1
- package/esm2022/lib/view-context/api/model/multiComboBoxElement.mjs +1 -1
- package/esm2022/lib/view-context/api/model/multiComboBoxModel.mjs +1 -1
- package/esm2022/lib/view-context/api/model/namedValidator.mjs +1 -1
- package/esm2022/lib/view-context/api/model/openPendingData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/serverRequestExecutionStat.mjs +1 -1
- package/esm2022/lib/view-context/api/model/serverRequestTrack.mjs +1 -1
- package/esm2022/lib/view-context/api/model/serverRequestType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/smartLinkMigrationStatus.mjs +1 -1
- package/esm2022/lib/view-context/api/model/statisticRecord.mjs +1 -1
- package/esm2022/lib/view-context/api/model/style.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionRequest.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionTooltip.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uploadWidgetType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uploadedFile.mjs +1 -1
- package/esm2022/lib/view-context/api/model/valueSet.mjs +1 -1
- package/esm2022/lib/view-context/api/model/view.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewApiError.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewConstraint.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewEventHandler.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewState.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewType.mjs +1 -1
- package/esm2022/lib/view-context/api/param.mjs +1 -1
- package/esm2022/lib/view-context/api/variables.mjs +1 -1
- 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 +109 -93
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- 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 +2 -8
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.2.127.tgz +0 -0
- package/smartbit4all-ng-client-4.2.126.tgz +0 -0
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
|
}
|
|
@@ -13,18 +13,12 @@ import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smart
|
|
|
13
13
|
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
|
|
14
14
|
import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
|
|
15
15
|
import { EditorTextChangeEvent } from 'primeng/editor';
|
|
16
|
-
import {
|
|
16
|
+
import { UiActionDescriptor } 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,7 +27,7 @@ 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>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|