@smartbit4all/ng-client 5.0.20 → 5.0.21
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/fesm2022/smartbit4all-ng-client-src-lib-smart-chart.mjs +10 -10
- package/fesm2022/smartbit4all-ng-client-src-lib-smart-chart.mjs.map +1 -1
- package/fesm2022/smartbit4all-ng-client.mjs +1893 -889
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -1
- package/lib/smart-dialog/smartdialog.service.d.ts +1 -1
- package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +4 -2
- package/lib/smart-filter-editor/smart-filter-editor.service.d.ts +8 -0
- package/lib/smart-form/services/smartform.service.d.ts +5 -5
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +15 -15
- package/lib/smart-grid/smart-grid.component.d.ts +1 -0
- package/lib/smart-icon/smart-icon/smart-icon.component.d.ts +6 -2
- package/lib/smart-icon/smart-icon.module.d.ts +2 -1
- package/lib/smart-icon/smart-icon.service.d.ts +1 -0
- package/lib/smart-map/api/model/geoMapItem.d.ts +2 -0
- package/lib/view-context/api/api-default/binaryData.d.ts +2 -0
- package/lib/view-context/api/api-default/invocationError.d.ts +2 -0
- package/lib/view-context/api/api-default/invocationRequest.d.ts +2 -0
- package/lib/view-context/api/model/badgeDescriptor.d.ts +15 -0
- package/lib/view-context/api/model/models.d.ts +3 -0
- package/lib/view-context/api/model/smartLinkData.d.ts +5 -0
- package/lib/view-context/api/model/smartLinkMigrationStatus.d.ts +39 -0
- package/lib/view-context/api/model/uiActionDescriptor.d.ts +2 -0
- package/lib/view-context/api/model/uiActionUploadDescriptor.d.ts +2 -0
- package/lib/view-context/api/model/uploadWidgetType.d.ts +16 -0
- package/lib/view-context/api/model/uploadedFile.d.ts +2 -1
- package/lib/view-context/api/model/view.d.ts +1 -0
- package/lib/view-context/api/model/viewData.d.ts +1 -0
- package/lib/view-context/api/model/viewEventHandler.d.ts +2 -1
- package/lib/view-context/message-dialog/message-dialog.component.d.ts +7 -2
- package/lib/view-context/projects.d.ts +5 -0
- package/lib/view-context/smart-ui-action/components/action-badge/action-badge.component.d.ts +12 -0
- package/lib/view-context/smart-ui-action/components/menu/menu.component.d.ts +38 -0
- package/lib/view-context/smart-ui-action/components/menu/menu.constants.d.ts +3 -0
- package/lib/view-context/smart-ui-action/components/menu/menu.service.d.ts +8 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.d.ts +6 -4
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/photo-capture-widget/photo-capture-widget.component.d.ts +30 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.d.ts +17 -4
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/voice-record-widget/voice-record-widget.component.d.ts +34 -0
- package/lib/view-context/smart-ui-action/ui-action-button/ui-action-button.component.d.ts +42 -0
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.d.ts +2 -0
- package/lib/view-context/smart-view-context.interceptor.d.ts +5 -1
- package/lib/view-context/smart-view-context.module.d.ts +50 -43
- package/lib/view-context/smart-view-context.service.d.ts +5 -1
- package/package.json +3 -2
- package/smartbit4all-ng-client-5.0.21.tgz +0 -0
- package/smartbit4all-ng-client-5.0.20.tgz +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
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 { SmartFilterEditorContentComponent } from '../smart-filter-editor/project';
|
|
5
4
|
import { SmartForm, SmartFormInvalidFields, SmartformComponent, SophisticatedValueChange } from '../smart-form/projects';
|
|
6
5
|
import { GridOptions, SmartGrid, SmartGridComponent } from '../smart-grid/projects';
|
|
7
6
|
import { SmartMapComponent } from '../smart-map/smart-map.component';
|
|
8
7
|
import { SmarttreeGenericService } from '../smart-tree/projects';
|
|
9
8
|
import { ComponentModel, ComponentModelChange, ExecuteUiActionOptions, SmartTranslateService, SmartViewContextService, UiAction, UiActionAdditionalParams, UiActionDescriptorService, UiActionModel, UiActionRequest, UiActionService, UiActionSpecificDemandResponse, UiActionToolbarComponent, UseUiAction2 } from '../view-context/projects';
|
|
10
9
|
import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
|
|
10
|
+
import { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
|
|
11
11
|
export declare abstract class SmartComponentApiClient<T> implements UseUiAction2 {
|
|
12
12
|
protected inject: Injector;
|
|
13
13
|
protected auth: SmartAuthenticationServiceInterface;
|
|
@@ -26,5 +26,5 @@ export declare abstract class SmartdialogService {
|
|
|
26
26
|
openComponentAsDialog(component: ComponentType<any>, viewName: string): MatDialogRef<any, any> | DynamicDialogRef;
|
|
27
27
|
handleAfterClosed(result: any): void;
|
|
28
28
|
openDialog(): void;
|
|
29
|
-
closeDialog(): Promise<void>;
|
|
29
|
+
closeDialog(stopPropagate?: boolean): Promise<void>;
|
|
30
30
|
}
|
|
@@ -6,10 +6,12 @@ import { SmartForm } from '../../smart-form/smartform.model';
|
|
|
6
6
|
import { UiActionModel } from '../../view-context/smart-ui-action/ui-action.model';
|
|
7
7
|
import { FilterExpressionBuilderUiModelTypeEnum } from '../api/model/filterExpressionBuilderUiModel';
|
|
8
8
|
import { ISmartFilterEditorService } from '../smart-filter-editor.service';
|
|
9
|
+
import { ComponentLibrary } from '../../view-context/utility/componentLibrary';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class SmartFilterEditorContentComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
11
12
|
private layoutService;
|
|
12
13
|
private cfService;
|
|
14
|
+
compLib?: ComponentLibrary | undefined;
|
|
13
15
|
private _destroy$;
|
|
14
16
|
service: ISmartFilterEditorService;
|
|
15
17
|
uiActionModels: UiActionModel[];
|
|
@@ -20,7 +22,7 @@ export declare class SmartFilterEditorContentComponent implements OnInit, AfterV
|
|
|
20
22
|
simpleFilterVcRef?: ViewContainerRef;
|
|
21
23
|
simpleFilterRef?: ComponentRef<SmartformComponent>;
|
|
22
24
|
type: typeof FilterExpressionBuilderUiModelTypeEnum;
|
|
23
|
-
constructor(layoutService: SmartformLayoutDefinitionService, cfService: ComponentFactoryService);
|
|
25
|
+
constructor(layoutService: SmartformLayoutDefinitionService, cfService: ComponentFactoryService, compLib?: ComponentLibrary | undefined);
|
|
24
26
|
private subsrcibeSimpleFormChildrenEvents;
|
|
25
27
|
private subscribeEditorFormChildrenEvents;
|
|
26
28
|
ngOnInit(): void;
|
|
@@ -37,6 +39,6 @@ export declare class SmartFilterEditorContentComponent implements OnInit, AfterV
|
|
|
37
39
|
remove(): void;
|
|
38
40
|
saveFilter(): Promise<void>;
|
|
39
41
|
private constructFormWidget;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFilterEditorContentComponent,
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFilterEditorContentComponent, [null, null, { optional: true; }]>;
|
|
41
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartFilterEditorContentComponent, "smart-filter-expression-editor", never, { "service": { "alias": "service"; "required": false; }; }, {}, never, never, false, never>;
|
|
42
44
|
}
|
|
@@ -5,6 +5,7 @@ import { UiActionAdditionalParams, UiActionSpecificDemandResponse, UseUiAction }
|
|
|
5
5
|
import { UiAction } from '../view-context/api/model/uiAction';
|
|
6
6
|
import { FilterExpressionBuilderUiModel } from './api/model/filterExpressionBuilderUiModel';
|
|
7
7
|
import { FilterService } from './api/api/filter.service';
|
|
8
|
+
import { UiActionToolbarComponent } from "../view-context/smart-ui-action/ui-action-toolbar.component";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export interface ISmartFilterEditorService extends UseUiAction {
|
|
10
11
|
config: SmartFilterEditorConfig;
|
|
@@ -12,6 +13,9 @@ export interface ISmartFilterEditorService extends UseUiAction {
|
|
|
12
13
|
modelChanged: Subject<void>;
|
|
13
14
|
submit: Subject<void>;
|
|
14
15
|
reSubscribeToChange: Subject<void>;
|
|
16
|
+
parentSmartComponent?: any;
|
|
17
|
+
getComplexToolbars(): Array<UiActionToolbarComponent>;
|
|
18
|
+
setComplexToolbars(toolbars: Array<UiActionToolbarComponent>): void;
|
|
15
19
|
load(): Promise<void>;
|
|
16
20
|
peformWidgetAction(request: UiActionRequest): void;
|
|
17
21
|
performUiActionRequest(uiActionRequest: UiActionRequest, widgetId?: string | undefined, nodeId?: string | undefined): Promise<any>;
|
|
@@ -23,7 +27,11 @@ export declare class SmartFilterEditorService implements ISmartFilterEditorServi
|
|
|
23
27
|
modelChanged: Subject<void>;
|
|
24
28
|
submit: Subject<void>;
|
|
25
29
|
reSubscribeToChange: Subject<void>;
|
|
30
|
+
parentSmartComponent?: any;
|
|
31
|
+
private toolbars;
|
|
26
32
|
constructor(service: FilterService);
|
|
33
|
+
getComplexToolbars(): Array<UiActionToolbarComponent>;
|
|
34
|
+
setComplexToolbars(toolbars: Array<UiActionToolbarComponent>): void;
|
|
27
35
|
load(): Promise<void>;
|
|
28
36
|
peformWidgetAction(request: UiActionRequest): Promise<void>;
|
|
29
37
|
getModel(): FilterExpressionBuilderUiModel | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UntypedFormGroup } from
|
|
2
|
-
import { SmartFormWidget, SmartItem, SmartItems } from
|
|
3
|
-
import { SmartForm, SmartValidator } from
|
|
4
|
-
import { ComponentLibrary } from
|
|
5
|
-
import { NamedValidatorService } from
|
|
1
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { SmartFormWidget, SmartItem, SmartItems } from '../smartform.form-model';
|
|
3
|
+
import { SmartForm, SmartValidator } from '../smartform.model';
|
|
4
|
+
import { ComponentLibrary } from '../../view-context/utility/componentLibrary';
|
|
5
|
+
import { NamedValidatorService } from '../../smart-validation/named-validator.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SmartFormService {
|
|
8
8
|
private validatorProvider?;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from
|
|
2
|
-
import { UntypedFormGroup } from
|
|
3
|
-
import { MatAutocompleteSelectedEvent } from
|
|
4
|
-
import { MatChipInputEvent } from
|
|
5
|
-
import { DomSanitizer, SafeHtml } from
|
|
6
|
-
import { ContentChange, QuillEditorComponent, QuillModules } from
|
|
7
|
-
import { Observable, Subject } from
|
|
8
|
-
import { ComponentFactoryService } from
|
|
9
|
-
import { UiActionToolbarComponent } from
|
|
10
|
-
import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from
|
|
11
|
-
import { SmartFormService } from
|
|
12
|
-
import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from
|
|
13
|
-
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from
|
|
14
|
-
import { ComponentLibrary } from
|
|
15
|
-
import { EditorTextChangeEvent } from
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
6
|
+
import { ContentChange, QuillEditorComponent, QuillModules } from 'ngx-quill';
|
|
7
|
+
import { Observable, Subject } from 'rxjs';
|
|
8
|
+
import { ComponentFactoryService } from '../../../component-factory-service/projects';
|
|
9
|
+
import { UiActionToolbarComponent } from '../../../view-context/smart-ui-action/ui-action-toolbar.component';
|
|
10
|
+
import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api';
|
|
11
|
+
import { SmartFormService } from '../../services/smartform.service';
|
|
12
|
+
import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smartform.form-model';
|
|
13
|
+
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
|
|
14
|
+
import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
|
|
15
|
+
import { EditorTextChangeEvent } from 'primeng/editor';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class SmartWidgetSettings {
|
|
18
18
|
static useUtc: boolean;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { SmartIconService } from '../smart-icon.service';
|
|
3
3
|
import { ComponentLibrary } from '../../view-context/utility/componentLibrary';
|
|
4
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SmartIconComponent implements OnChanges {
|
|
6
7
|
private service;
|
|
7
8
|
changeDetector: ChangeDetectorRef;
|
|
9
|
+
private sanitizer;
|
|
8
10
|
compLib: ComponentLibrary;
|
|
9
11
|
iconWithoutNamespace: string;
|
|
10
|
-
icon: string;
|
|
11
12
|
color?: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
iconHtml?: SafeHtml;
|
|
12
15
|
isCustom: boolean;
|
|
13
16
|
componentLibrary: typeof ComponentLibrary;
|
|
14
|
-
constructor(service: SmartIconService, changeDetector: ChangeDetectorRef, compLib: ComponentLibrary);
|
|
17
|
+
constructor(service: SmartIconService, changeDetector: ChangeDetectorRef, sanitizer: DomSanitizer, compLib: ComponentLibrary);
|
|
15
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
19
|
getIcon(icon: string): string;
|
|
17
20
|
getStyle(iconcolor?: string): {
|
|
18
21
|
color: string | undefined;
|
|
19
22
|
display: string;
|
|
23
|
+
fill: string | undefined;
|
|
20
24
|
};
|
|
21
25
|
checkIcon(): Promise<void>;
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartIconComponent, never>;
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./smart-icon/smart-icon.component";
|
|
|
3
3
|
import * as i2 from "@angular/platform-browser";
|
|
4
4
|
import * as i3 from "@angular/material/core";
|
|
5
5
|
import * as i4 from "@angular/material/icon";
|
|
6
|
+
import * as i5 from "primeng/badge";
|
|
6
7
|
export declare class SmartIconModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartIconModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartIconModule, [typeof i1.SmartIconComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.MatIconModule], [typeof i1.SmartIconComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartIconModule, [typeof i1.SmartIconComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.MatIconModule, typeof i5.BadgeModule], [typeof i1.SmartIconComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartIconModule>;
|
|
10
11
|
}
|
|
@@ -23,6 +23,7 @@ export declare class SmartIconService {
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
getFullyQualifiedIcon(iconWithoutNamespace: string): Promise<string | undefined>;
|
|
26
|
+
getSvgFromIconRegistry(iconWithoutNamespace: string): Promise<string | undefined>;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartIconService, never>;
|
|
27
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<SmartIconService>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
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 BadgeDescriptor {
|
|
13
|
+
value?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './badgeDescriptor';
|
|
1
2
|
export * from './clipboardData';
|
|
2
3
|
export * from './closeResult';
|
|
3
4
|
export * from './componentConstraint';
|
|
@@ -23,6 +24,7 @@ export * from './serverRequestExecutionStat';
|
|
|
23
24
|
export * from './serverRequestTrack';
|
|
24
25
|
export * from './serverRequestType';
|
|
25
26
|
export * from './smartLinkData';
|
|
27
|
+
export * from './smartLinkMigrationStatus';
|
|
26
28
|
export * from './statisticRecord';
|
|
27
29
|
export * from './style';
|
|
28
30
|
export * from './uiAction';
|
|
@@ -36,6 +38,7 @@ export * from './uiActionInputType';
|
|
|
36
38
|
export * from './uiActionRequest';
|
|
37
39
|
export * from './uiActionTooltip';
|
|
38
40
|
export * from './uiActionUploadDescriptor';
|
|
41
|
+
export * from './uploadWidgetType';
|
|
39
42
|
export * from './uploadedFile';
|
|
40
43
|
export * from './valueSet';
|
|
41
44
|
export * from './view';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
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
|
+
import { InvocationError } from '../api-default/invocationError';
|
|
13
|
+
/**
|
|
14
|
+
* A reference object to store if the given application is already updated the storage schema of the smartlink.
|
|
15
|
+
*/
|
|
16
|
+
export interface SmartLinkMigrationStatus {
|
|
17
|
+
status?: SmartLinkMigrationStatusStatusEnum;
|
|
18
|
+
/**
|
|
19
|
+
* The name fo the channel the migration was running on.
|
|
20
|
+
*/
|
|
21
|
+
channel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The exact time of the migration start.
|
|
24
|
+
*/
|
|
25
|
+
startAt?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The exact time of the migration finish.
|
|
28
|
+
*/
|
|
29
|
+
finishedAt?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The error during the migration if any.
|
|
32
|
+
*/
|
|
33
|
+
error?: InvocationError;
|
|
34
|
+
}
|
|
35
|
+
export declare enum SmartLinkMigrationStatusStatusEnum {
|
|
36
|
+
RUNNING = "RUNNING",
|
|
37
|
+
FAILED = "FAILED",
|
|
38
|
+
DONE = "DONE"
|
|
39
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { UiActionTooltip } from './uiActionTooltip';
|
|
13
13
|
import { IconPosition } from './iconPosition';
|
|
14
|
+
import { BadgeDescriptor } from './badgeDescriptor';
|
|
14
15
|
import { UiActionFeedbackType } from './uiActionFeedbackType';
|
|
15
16
|
import { UiActionDialogDescriptor } from './uiActionDialogDescriptor';
|
|
16
17
|
import { UiActionUploadDescriptor } from './uiActionUploadDescriptor';
|
|
@@ -31,6 +32,7 @@ export interface UiActionDescriptor {
|
|
|
31
32
|
input2Dialog?: UiActionDialogDescriptor;
|
|
32
33
|
feedbackType?: UiActionFeedbackType;
|
|
33
34
|
feedbackText?: string;
|
|
35
|
+
badge?: BadgeDescriptor;
|
|
34
36
|
upload?: UiActionUploadDescriptor;
|
|
35
37
|
tooltip?: UiActionTooltip;
|
|
36
38
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { UploadWidgetType } from './uploadWidgetType';
|
|
12
13
|
/**
|
|
13
14
|
* Describes the look of an upload component that is related to a specific UiAction.
|
|
14
15
|
*/
|
|
@@ -20,4 +21,5 @@ export interface UiActionUploadDescriptor {
|
|
|
20
21
|
uploadButtonTitle?: string;
|
|
21
22
|
backgroundColour?: string;
|
|
22
23
|
textColour?: string;
|
|
24
|
+
uploadWidgets?: Array<UploadWidgetType>;
|
|
23
25
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
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 declare enum UploadWidgetType {
|
|
13
|
+
ALL = "ALL",
|
|
14
|
+
SOUND = "SOUND",
|
|
15
|
+
IMAGE = "IMAGE"
|
|
16
|
+
}
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BinaryData } from '../api-default/binaryData';
|
|
12
13
|
/**
|
|
13
14
|
* Information about uploaded file.
|
|
14
15
|
*/
|
|
15
16
|
export interface UploadedFile {
|
|
16
17
|
filename?: string;
|
|
17
18
|
size?: number;
|
|
18
|
-
data?:
|
|
19
|
+
data?: BinaryData;
|
|
19
20
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvocationRequest } from '../api-default/invocationRequest';
|
|
12
13
|
/**
|
|
13
14
|
* An event handler is a special callback function to call when the given event is occurred. So the event handler can be an action as is or can be fired on a before or after event
|
|
14
15
|
*/
|
|
@@ -21,7 +22,7 @@ export interface ViewEventHandler {
|
|
|
21
22
|
/**
|
|
22
23
|
* This is the method to call when the event occurs. It\'s signature is the same as the event which it specifies, like ActionHandler or WidgetActionHandler.
|
|
23
24
|
*/
|
|
24
|
-
invocationRequest?:
|
|
25
|
+
invocationRequest?: InvocationRequest;
|
|
25
26
|
}
|
|
26
27
|
export declare enum ViewEventHandlerViewEventTypeEnum {
|
|
27
28
|
BEFORE = "before",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MessageData, MessageOption } from '../api';
|
|
2
|
+
import { MessageData, MessageOption, UiActionButtonType, UiActionDescriptor } from '../api';
|
|
3
3
|
import { SmartViewContextService } from '../smart-view-context.service';
|
|
4
4
|
import { ComponentLibrary } from '../utility/componentLibrary';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -8,14 +8,19 @@ export declare class MessageDialogComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
compLib: ComponentLibrary;
|
|
9
9
|
messageData: MessageData;
|
|
10
10
|
componentLibrary: typeof ComponentLibrary;
|
|
11
|
+
buttons?: CustomUiActionDescriptor[];
|
|
11
12
|
constructor(viewContext: SmartViewContextService, compLib: ComponentLibrary);
|
|
12
13
|
ngOnInit(): void;
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
15
|
getMessageData(): Promise<void>;
|
|
15
16
|
getColor(option: MessageOption): string;
|
|
16
|
-
getType(option: MessageOption):
|
|
17
|
+
getType(option: MessageOption): UiActionButtonType;
|
|
17
18
|
onClick(selectedOption: MessageOption): void;
|
|
18
19
|
isHtmlText(): boolean;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageDialogComponent, never>;
|
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<MessageDialogComponent, "app-message-dialog", never, {}, {}, never, never, false, never>;
|
|
21
22
|
}
|
|
23
|
+
interface CustomUiActionDescriptor extends UiActionDescriptor {
|
|
24
|
+
action: () => void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -13,3 +13,8 @@ export * from './smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-
|
|
|
13
13
|
export * from './smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component';
|
|
14
14
|
export * from './smart-ui-action/dialogs/ui-action-dialog-button/ui-action-dialog-button.component';
|
|
15
15
|
export * from './utility/componentLibrary';
|
|
16
|
+
export * from './smart-ui-action/dialogs/ui-action-file-upload-dialog/photo-capture-widget/photo-capture-widget.component';
|
|
17
|
+
export * from './smart-ui-action/dialogs/ui-action-file-upload-dialog/voice-record-widget/voice-record-widget.component';
|
|
18
|
+
export * from './smart-ui-action/ui-action-button/ui-action-button.component';
|
|
19
|
+
export * from './smart-ui-action/components/action-badge/action-badge.component';
|
|
20
|
+
export * from './smart-ui-action/components/menu/menu.component';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BadgeDescriptor } from '../../../api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActionBadgeComponent implements OnInit {
|
|
5
|
+
descriptor?: BadgeDescriptor;
|
|
6
|
+
inputValue?: string;
|
|
7
|
+
effectiveValue?: string;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
getBadgeClass(): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionBadgeComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionBadgeComponent, "ui-badge", never, { "descriptor": { "alias": "descriptor"; "required": false; }; "inputValue": { "alias": "inputValue"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { UiAction } from '../../../api';
|
|
3
|
+
import { UiMenuService } from './menu.service';
|
|
4
|
+
import { ComponentLibrary } from '../../../utility/componentLibrary';
|
|
5
|
+
import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MenuComponent {
|
|
8
|
+
private menuService;
|
|
9
|
+
private overlay;
|
|
10
|
+
private viewContainerRef;
|
|
11
|
+
private overlayPositionBuilder;
|
|
12
|
+
compLib?: ComponentLibrary | undefined;
|
|
13
|
+
submenuComponents: QueryList<MenuComponent>;
|
|
14
|
+
menuTemplate: TemplateRef<any>;
|
|
15
|
+
overlayRef: OverlayRef | null;
|
|
16
|
+
triggerAction: UiAction;
|
|
17
|
+
isSubmenu: boolean;
|
|
18
|
+
actionClick: EventEmitter<UiAction>;
|
|
19
|
+
submenuOpened: EventEmitter<UiAction>;
|
|
20
|
+
private destroy$;
|
|
21
|
+
icon: string;
|
|
22
|
+
submenuOpenMap: Map<UiAction, boolean>;
|
|
23
|
+
subActions: UiAction[];
|
|
24
|
+
constructor(menuService: UiMenuService, overlay: Overlay, viewContainerRef: ViewContainerRef, overlayPositionBuilder: OverlayPositionBuilder, compLib?: ComponentLibrary | undefined);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
onActionClick(action: UiAction): void;
|
|
29
|
+
onMenuClick(event: Event): void;
|
|
30
|
+
onDocumentClick(event: Event): void;
|
|
31
|
+
get isOpen(): boolean;
|
|
32
|
+
closeMenu(): void;
|
|
33
|
+
openMenu(event: MouseEvent): void;
|
|
34
|
+
toggleMenu(event: MouseEvent): void;
|
|
35
|
+
onSubmenuOpened(openedAction: UiAction): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, { optional: true; }]>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ui-tiered-menu", never, { "triggerAction": { "alias": "triggerAction"; "required": false; }; "isSubmenu": { "alias": "isSubmenu"; "required": false; }; }, { "actionClick": "actionClick"; "submenuOpened": "submenuOpened"; }, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UiMenuService {
|
|
3
|
+
private closeMenus$;
|
|
4
|
+
closeAllMenus(): void;
|
|
5
|
+
getCloseSignal(): import("rxjs").Observable<void>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiMenuService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiMenuService>;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UiActionDescriptor } from '../../../api';
|
|
3
3
|
import { UiActionDescriptorService } from '../../ui-action.descriptor.service';
|
|
4
4
|
import { UiActionConfirmDialogService } from './ui-action-confirm-dialog.service';
|
|
5
5
|
import { ComponentLibrary } from '../../../projects';
|
|
@@ -17,11 +17,13 @@ export declare class UiActionConfirmDialogComponent implements OnDestroy {
|
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
getTitle(): string;
|
|
19
19
|
getText(): string;
|
|
20
|
-
getActionButton():
|
|
21
|
-
getCancelButton():
|
|
20
|
+
getActionButton(): UiActionDescriptor;
|
|
21
|
+
getCancelButton(): UiActionDescriptor;
|
|
22
|
+
private getUiActionDescriptor;
|
|
23
|
+
getCancelCssClass(): string;
|
|
24
|
+
getActionCssClass(): string;
|
|
22
25
|
doAction(): void;
|
|
23
26
|
cancel(): void;
|
|
24
|
-
UiActionButtonType(): typeof UiActionButtonType;
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionConfirmDialogComponent, never>;
|
|
26
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionConfirmDialogComponent, "app-ui-action-confirm-dialog", never, {}, {}, never, never, false, never>;
|
|
27
29
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ComponentLibrary } from '../../../../utility/componentLibrary';
|
|
3
|
+
import { UiActionDescriptor } from '../../../../api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PhotoCaptureWidgetComponent {
|
|
6
|
+
videoRef: ElementRef<HTMLVideoElement>;
|
|
7
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
8
|
+
fileInputRef: ElementRef<HTMLInputElement>;
|
|
9
|
+
maxFileSize?: number;
|
|
10
|
+
photoCaptured: EventEmitter<File[]>;
|
|
11
|
+
cameraActive: boolean;
|
|
12
|
+
isCaptured: boolean;
|
|
13
|
+
stream?: MediaStream;
|
|
14
|
+
compLib: ComponentLibrary;
|
|
15
|
+
componentLibrary: typeof ComponentLibrary;
|
|
16
|
+
toggleCameraButton: UiActionDescriptor;
|
|
17
|
+
captureButton: UiActionDescriptor;
|
|
18
|
+
constructor(compLib?: ComponentLibrary);
|
|
19
|
+
isMobile(): boolean;
|
|
20
|
+
startCamera(): Promise<void>;
|
|
21
|
+
stopCamera(): void;
|
|
22
|
+
capturePhoto(): Promise<void>;
|
|
23
|
+
getPhotoDataURL(): string;
|
|
24
|
+
onFileSelected(event: Event): Promise<void>;
|
|
25
|
+
toggleCamera(): void;
|
|
26
|
+
updateToggleButton(): void;
|
|
27
|
+
private compressImageFile;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoCaptureWidgetComponent, [{ optional: true; }]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoCaptureWidgetComponent, "photo-capture-widget", never, { "maxFileSize": { "alias": "maxFileSize"; "required": false; }; }, { "photoCaptured": "photoCaptured"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { UiActionDescriptor } from '../../../api';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { UiActionDescriptor, UploadWidgetType } from '../../../api';
|
|
3
3
|
import { UiActionDescriptorService } from '../../ui-action.descriptor.service';
|
|
4
4
|
import { UiActionFileUploadDialogService } from './ui-action-file-upload-dialog.service';
|
|
5
5
|
import { SmartFileUploaderI18n } from '../../../../smart-form/smartfileuploader/smartfileuploader.model';
|
|
6
6
|
import { ComponentLibrary } from '../../../projects';
|
|
7
|
+
import { FileUpload } from 'primeng/fileupload';
|
|
8
|
+
import { SmartfileuploaderComponent } from '../../../../smart-form/smartfileuploader/smartfileuploader.component';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class UiActionFileUploadDialogComponent implements OnDestroy {
|
|
9
11
|
private service;
|
|
10
12
|
compLib: ComponentLibrary;
|
|
11
13
|
private manager;
|
|
14
|
+
private cdr;
|
|
15
|
+
fileUploadPrime: FileUpload;
|
|
16
|
+
fileUploadMaterial: SmartfileuploaderComponent;
|
|
12
17
|
code: string;
|
|
13
18
|
dialogType: 'dialog' | 'inputDialog' | 'input2Dialog';
|
|
14
19
|
descriptor?: UiActionDescriptor;
|
|
15
20
|
componentLibrary: typeof ComponentLibrary;
|
|
21
|
+
uploadWidgetType: typeof UploadWidgetType;
|
|
16
22
|
i18n?: SmartFileUploaderI18n;
|
|
17
23
|
maxSizeMb: number;
|
|
18
24
|
fileFormats?: string[];
|
|
19
25
|
isMultiple?: boolean;
|
|
20
|
-
|
|
26
|
+
hasFiles?: boolean;
|
|
27
|
+
uploadedFiles: any[];
|
|
28
|
+
cancelButton: UiActionDescriptor;
|
|
29
|
+
constructor(service: UiActionFileUploadDialogService, compLib: ComponentLibrary, manager: UiActionDescriptorService, cdr: ChangeDetectorRef);
|
|
21
30
|
ngOnDestroy(): void;
|
|
31
|
+
isMobile(): boolean;
|
|
22
32
|
setUp(): Promise<void>;
|
|
23
33
|
getTitle(): string;
|
|
24
34
|
getText(): string;
|
|
@@ -27,11 +37,14 @@ export declare class UiActionFileUploadDialogComponent implements OnDestroy {
|
|
|
27
37
|
getCancelButtonLabel(): string;
|
|
28
38
|
getCancelButtonColor(): string;
|
|
29
39
|
upload(files: any[]): void;
|
|
30
|
-
uploadedFiles: any[];
|
|
31
40
|
onSelect(event: any): void;
|
|
32
41
|
onRemove(event: any): void;
|
|
33
42
|
uploadFiles(event: any): void;
|
|
34
43
|
cancel(): void;
|
|
44
|
+
uploadRecording(file: any): void;
|
|
45
|
+
uploadImage(files: any): void;
|
|
46
|
+
loadFilesIntoWidget(files: File[]): void;
|
|
47
|
+
widgetNeeded(type: UploadWidgetType): boolean;
|
|
35
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionFileUploadDialogComponent, never>;
|
|
36
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionFileUploadDialogComponent, "lib-ui-action-file-upload-dialog", never, {}, {}, never, never, false, never>;
|
|
37
50
|
}
|