@smartbit4all/ng-client 4.2.45 → 4.2.47

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 (18) hide show
  1. package/esm2022/lib/smart-grid/smart-grid-toolbar-util.mjs +2 -2
  2. package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  3. package/esm2022/lib/view-context/api/model/uploadWidgetType.mjs +1 -2
  4. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/photo-capture-widget/photo-capture-widget.component.mjs +14 -21
  5. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +20 -18
  6. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/voice-record-widget/voice-record-widget.component.mjs +42 -72
  7. package/esm2022/lib/view-context/smart-ui-action/ui-action-button/ui-action-button.component.mjs +44 -97
  8. package/fesm2022/smartbit4all-ng-client.mjs +140 -228
  9. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  10. package/lib/view-context/api/model/uiActionUploadDescriptor.d.ts +1 -1
  11. package/lib/view-context/api/model/uploadWidgetType.d.ts +0 -1
  12. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/photo-capture-widget/photo-capture-widget.component.d.ts +3 -3
  13. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.d.ts +2 -1
  14. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/voice-record-widget/voice-record-widget.component.d.ts +7 -9
  15. package/lib/view-context/smart-ui-action/ui-action-button/ui-action-button.component.d.ts +23 -30
  16. package/package.json +1 -1
  17. package/smartbit4all-ng-client-4.2.47.tgz +0 -0
  18. package/smartbit4all-ng-client-4.2.45.tgz +0 -0
@@ -21,5 +21,5 @@ export interface UiActionUploadDescriptor {
21
21
  uploadButtonTitle?: string;
22
22
  backgroundColour?: string;
23
23
  textColour?: string;
24
- uploadWidgetType?: UploadWidgetType;
24
+ uploadWidgets?: Array<UploadWidgetType>;
25
25
  }
@@ -11,7 +11,6 @@
11
11
  */
12
12
  export declare enum UploadWidgetType {
13
13
  ALL = "ALL",
14
- NORMAL = "NORMAL",
15
14
  SOUND = "SOUND",
16
15
  IMAGE = "IMAGE"
17
16
  }
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { ComponentLibrary } from '../../../../utility/componentLibrary';
3
- import { UiActionModel } from '../../../ui-action.model';
3
+ import { UiActionDescriptor } from '../../../../api';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class PhotoCaptureWidgetComponent {
6
6
  videoRef: ElementRef<HTMLVideoElement>;
@@ -13,8 +13,8 @@ export declare class PhotoCaptureWidgetComponent {
13
13
  stream?: MediaStream;
14
14
  compLib: ComponentLibrary;
15
15
  componentLibrary: typeof ComponentLibrary;
16
- toggleCameraButton: UiActionModel;
17
- captureButton: UiActionModel;
16
+ toggleCameraButton: UiActionDescriptor;
17
+ captureButton: UiActionDescriptor;
18
18
  constructor(compLib?: ComponentLibrary);
19
19
  isMobile(): boolean;
20
20
  startCamera(): Promise<void>;
@@ -25,7 +25,7 @@ export declare class UiActionFileUploadDialogComponent implements OnDestroy {
25
25
  isMultiple?: boolean;
26
26
  hasFiles?: boolean;
27
27
  uploadedFiles: any[];
28
- uploadFormatMap: Record<UploadWidgetType, string[]>;
28
+ cancelButton: UiActionDescriptor;
29
29
  constructor(service: UiActionFileUploadDialogService, compLib: ComponentLibrary, manager: UiActionDescriptorService, cdr: ChangeDetectorRef);
30
30
  ngOnDestroy(): void;
31
31
  isMobile(): boolean;
@@ -44,6 +44,7 @@ export declare class UiActionFileUploadDialogComponent implements OnDestroy {
44
44
  uploadRecording(file: any): void;
45
45
  uploadImage(files: any): void;
46
46
  loadFilesIntoWidget(files: File[]): void;
47
+ widgetNeeded(type: UploadWidgetType): boolean;
47
48
  static ɵfac: i0.ɵɵFactoryDeclaration<UiActionFileUploadDialogComponent, never>;
48
49
  static ɵcmp: i0.ɵɵComponentDeclaration<UiActionFileUploadDialogComponent, "lib-ui-action-file-upload-dialog", never, {}, {}, never, never, false, never>;
49
50
  }
@@ -1,11 +1,9 @@
1
1
  import { ElementRef, OnDestroy, AfterViewInit, EventEmitter, OnInit } from '@angular/core';
2
2
  import { ComponentLibrary } from '../../../../utility/componentLibrary';
3
- import { UiActionModel } from '../../../ui-action.model';
3
+ import { UiActionDescriptor } from '../../../../api';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit, OnDestroy {
6
6
  waveformRef: ElementRef;
7
- color?: string;
8
- iconColor?: string;
9
7
  recordingSaved: EventEmitter<Blob>;
10
8
  private wavesurfer;
11
9
  private record;
@@ -15,10 +13,11 @@ export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit
15
13
  recordedBlob: Blob | null;
16
14
  time: string;
17
15
  isPlaying: boolean;
18
- micButton: UiActionModel;
19
- stopButton: UiActionModel;
20
- saveButton: UiActionModel;
21
- playStopButton: UiActionModel;
16
+ micButton: UiActionDescriptor;
17
+ stopButton: UiActionDescriptor;
18
+ saveButton: UiActionDescriptor;
19
+ playButton: UiActionDescriptor;
20
+ stopPlaybackButton: UiActionDescriptor;
22
21
  constructor(compLib?: ComponentLibrary);
23
22
  ngOnInit(): void;
24
23
  ngAfterViewInit(): void;
@@ -30,7 +29,6 @@ export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit
30
29
  replayRecording(): void;
31
30
  ngOnDestroy(): void;
32
31
  private addAlphaToColor;
33
- updatePlayStopButton(): void;
34
32
  static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordWidgetComponent, [{ optional: true; }]>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordWidgetComponent, "voice-record-widget", never, { "color": { "alias": "color"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, { "recordingSaved": "recordingSaved"; }, never, never, false, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordWidgetComponent, "voice-record-widget", never, {}, { "recordingSaved": "recordingSaved"; }, never, never, false, never>;
36
34
  }
@@ -1,43 +1,36 @@
1
- import { ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { UiActionModel } from '../ui-action.model';
3
- import { TooltipPosition } from '@angular/material/tooltip';
4
- import { UiActionDescriptorService } from '../ui-action.descriptor.service';
5
- import { UiActionService } from '../ui-action.service';
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
6
2
  import { ComponentLibrary } from '../../utility/componentLibrary';
7
3
  import { IconPosition } from '../../api/model/iconPosition';
8
- import { UiActionTooltipTooltipPositionEnum } from '../../api/model/uiActionTooltip';
4
+ import { UiActionDescriptor } from '../../api';
9
5
  import * as i0 from "@angular/core";
10
- export declare class UiActionButtonComponent implements OnInit, OnChanges, OnDestroy {
11
- private service;
12
- private inject;
6
+ export declare class UiActionButtonComponent implements OnInit, OnDestroy {
13
7
  changeDetector: ChangeDetectorRef;
14
8
  private _destroy$;
15
9
  componentLibrary: typeof ComponentLibrary;
16
10
  compLib: ComponentLibrary;
17
11
  pressedButtonActive: boolean;
18
- uiActionModel: UiActionModel;
19
- uiActionDescriptorService?: UiActionDescriptorService;
20
12
  disabled?: boolean;
21
- actionClick: EventEmitter<UiActionModel>;
22
- actionDoubleClick: EventEmitter<UiActionModel>;
23
- uiActionModelsWithDescriptions?: UiActionModel[];
24
- private manager;
25
- private languageChangedSubscription?;
26
- constructor(service: UiActionService, inject: Injector, changeDetector: ChangeDetectorRef, compLib?: ComponentLibrary);
13
+ descriptor: UiActionDescriptor;
14
+ code?: string;
15
+ actionClick: EventEmitter<{
16
+ event: any;
17
+ descriptor: UiActionDescriptor;
18
+ code?: string | undefined;
19
+ }>;
20
+ actionDoubleClick: EventEmitter<{
21
+ event: any;
22
+ descriptor: UiActionDescriptor;
23
+ code?: string | undefined;
24
+ }>;
25
+ constructor(changeDetector: ChangeDetectorRef, compLib?: ComponentLibrary);
27
26
  ngOnInit(): void;
28
- ngOnChanges(changes: SimpleChanges): void;
29
27
  ngOnDestroy(): void;
30
- private subscribeToLanguageChange;
31
- setUp(): Promise<void>;
32
- onActionClicked(event: any, uiActionModel: UiActionModel): Promise<void>;
33
- onActionDoubleClicked(event: any, uiActionModel: UiActionModel): void;
34
- getbtnClass(uiActionModel: UiActionModel): string;
35
- getType(uiActionModel: UiActionModel): any;
28
+ onActionClicked(event: any): Promise<void>;
29
+ onActionDoubleClicked(event: any): void;
36
30
  iconPosition(): typeof IconPosition;
37
- isOnlyIcon(uiActionModel: UiActionModel): boolean;
38
- getTooltipPos(pos?: UiActionTooltipTooltipPositionEnum): TooltipPosition;
39
- getTooltipDelay(delay?: number): number;
40
- getTooltipHideDelay(delay?: number): number;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<UiActionButtonComponent, [null, null, null, { optional: true; }]>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<UiActionButtonComponent, "ui-action-button", never, { "uiActionModel": { "alias": "uiActionModel"; "required": false; }; "uiActionDescriptorService": { "alias": "uiActionDescriptorService"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "actionClick": "actionClick"; "actionDoubleClick": "actionDoubleClick"; }, never, never, false, never>;
31
+ isOnlyIcon(): boolean;
32
+ getbtnClass(): string;
33
+ getType(): any;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiActionButtonComponent, [null, { optional: true; }]>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiActionButtonComponent, "ui-action-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "descriptor": { "alias": "descriptor"; "required": false; }; "code": { "alias": "code"; "required": false; }; }, { "actionClick": "actionClick"; "actionDoubleClick": "actionDoubleClick"; }, never, never, false, never>;
43
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.45",
3
+ "version": "4.2.47",
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