@eo-sdk/client 8.14.0 → 8.15.0-rc.1
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/app/eo-client/about-state/about-state.component.d.ts +1 -0
- package/app/eo-framework/form-elements/datetime/datepicker/datepicker.component.d.ts +2 -1
- package/app/eo-framework/form-elements/datetime/datetime.component.d.ts +5 -1
- package/app/eo-framework/object-form/object-form/form-element/form-element.component.d.ts +2 -1
- package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts +4 -1
- package/app/eo-framework/object-form/object-form/object-form-group/object-form-group.component.d.ts +2 -0
- package/app/eo-framework/object-form/object-form/object-form.component.d.ts +2 -1
- package/app/eo-framework/object-form/object-form-edit/object-form-edit.component.d.ts +1 -0
- package/app/eo-framework/ui/eo-dialog/eo-dialog.component.d.ts +22 -11
- package/app/eo-framework/util/directive/trap-focus.directive.d.ts +14 -0
- package/assets/_default/config/main.json +2 -1
- package/assets/_default/i18n/de.json +2 -0
- package/assets/_default/i18n/en.json +2 -0
- package/assets/_default/svg/ic_preview_close.svg +1 -0
- package/assets/_default/svg/ic_preview_show.svg +1 -0
- package/bundles/eo-sdk-client.umd.js +3383 -3263
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.d.ts +67 -63
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +6 -5
- package/esm2015/app/eo-framework/actions/actions/add-resubmission-action/add-resubmission/add-resubmission.component.js +1 -1
- package/esm2015/app/eo-framework/app-shell/app-bar/app-bar.component.js +3 -2
- package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +3 -3
- package/esm2015/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.js +2 -2
- package/esm2015/app/eo-framework/app-shell/app-shell.module.js +5 -3
- package/esm2015/app/eo-framework/form-elements/datetime/datepicker/datepicker.component.js +8 -4
- package/esm2015/app/eo-framework/form-elements/datetime/datetime.component.js +13 -8
- package/esm2015/app/eo-framework/grid/filters/datetime-filter.component.js +2 -2
- package/esm2015/app/eo-framework/object-details/favorite-icon/favorite-icon.component.js +2 -2
- package/esm2015/app/eo-framework/object-form/object-form/form-element/form-element.component.js +3 -2
- package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +9 -2
- package/esm2015/app/eo-framework/object-form/object-form/object-form-group/object-form-group.component.js +3 -2
- package/esm2015/app/eo-framework/object-form/object-form/object-form.component.js +3 -2
- package/esm2015/app/eo-framework/object-form/object-form-edit/object-form-edit.component.js +5 -2
- package/esm2015/app/eo-framework/object-form/object-form.module.js +4 -2
- package/esm2015/app/eo-framework/prepare-details/prepare-details.component.js +2 -2
- package/esm2015/app/eo-framework/ui/eo-dialog/eo-dialog.component.js +78 -42
- package/esm2015/app/eo-framework/ui/ui.module.js +4 -2
- package/esm2015/app/eo-framework/util/directive/trap-focus.directive.js +50 -0
- package/esm2015/eo-sdk-client.js +68 -64
- package/fesm2015/eo-sdk-client.js +1248 -1135
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +3 -3
- package/projects/eo-sdk/core/package.json +1 -1
- package/styles.css +1 -0
- package/styles.scss +1 -0
|
@@ -31,9 +31,10 @@ export declare class DatepickerComponent implements OnInit {
|
|
|
31
31
|
onCanceled: EventEmitter<any>;
|
|
32
32
|
withTime: boolean;
|
|
33
33
|
withAmPm: boolean;
|
|
34
|
-
set
|
|
34
|
+
set onlyFutureDates(enabled: boolean);
|
|
35
35
|
get futureOnly(): boolean;
|
|
36
36
|
set date(date: any);
|
|
37
|
+
set useDatabaseMinimumTime(enabled: boolean);
|
|
37
38
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
38
39
|
onInputKeydown(event: KeyboardEvent): void;
|
|
39
40
|
constructor(translate: TranslateService, datepickerService: DatepickerService);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
|
+
import * as moment_ from 'moment';
|
|
3
4
|
import 'moment/min/locales';
|
|
4
5
|
import { TranslateService } from '@eo-sdk/core';
|
|
5
6
|
import { LocaleDatePipe } from '../../../eo-framework-core/pipes/locale-date.pipe';
|
|
@@ -19,9 +20,11 @@ export declare class DatetimeComponent implements OnInit, ControlValueAccessor,
|
|
|
19
20
|
isWebEnv: boolean;
|
|
20
21
|
_withTime: boolean;
|
|
21
22
|
withAmPm: boolean;
|
|
23
|
+
private databaseMinimumTime;
|
|
22
24
|
readonly: boolean;
|
|
23
25
|
pickerTitle: string;
|
|
24
|
-
|
|
26
|
+
onlyFutureDates: boolean;
|
|
27
|
+
validateDatabaseTimeRange: boolean;
|
|
25
28
|
set withTime(value: boolean);
|
|
26
29
|
get withTime(): boolean;
|
|
27
30
|
constructor(translate: TranslateService);
|
|
@@ -30,6 +33,7 @@ export declare class DatetimeComponent implements OnInit, ControlValueAccessor,
|
|
|
30
33
|
writeValue(value: any): void;
|
|
31
34
|
registerOnChange(fn: any): void;
|
|
32
35
|
registerOnTouched(fn: any): void;
|
|
36
|
+
checkDatabaseTimeRange(m: moment_.Moment): boolean;
|
|
33
37
|
setValueFromMask(): void;
|
|
34
38
|
setValueFromPicker(event: any): void;
|
|
35
39
|
onMaskValueChange(event: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@eo-sdk/core';
|
|
2
|
+
import { DmsObject, TranslateService } from '@eo-sdk/core';
|
|
3
3
|
import { ObjectFormControlWrapper } from '../object-form-control-wrapper';
|
|
4
4
|
export declare class FormElementComponent {
|
|
5
5
|
private translate;
|
|
@@ -15,6 +15,7 @@ export declare class FormElementComponent {
|
|
|
15
15
|
};
|
|
16
16
|
situation: any;
|
|
17
17
|
skipToggle: boolean;
|
|
18
|
+
dmsObject: DmsObject;
|
|
18
19
|
set elementSetter(el: ObjectFormControlWrapper);
|
|
19
20
|
formField: ElementRef;
|
|
20
21
|
constructor(translate: TranslateService, renderer: Renderer2, el: ElementRef);
|
|
@@ -3,7 +3,7 @@ import { ControlValueAccessor, Validator, FormControl } from '@angular/forms';
|
|
|
3
3
|
import { ObjectFormOptions } from '../../object-form-options.interface';
|
|
4
4
|
import { GridOptions, Module } from '@ag-grid-community/core';
|
|
5
5
|
import { GridService } from '../../../../eo-framework-core/api/grid.service';
|
|
6
|
-
import { LocalStorageService, SystemService, TranslateService } from '@eo-sdk/core';
|
|
6
|
+
import { DmsObject, LocalStorageService, SystemService, TranslateService } from '@eo-sdk/core';
|
|
7
7
|
import { RowEditComponent } from './row-edit/row-edit.component';
|
|
8
8
|
import { UnsubscribeOnDestroy } from '../../../util/unsubscribe/unsubscribe.component';
|
|
9
9
|
export interface TableComponentParams {
|
|
@@ -34,6 +34,7 @@ export declare class FormElementTableComponent extends UnsubscribeOnDestroy impl
|
|
|
34
34
|
static COLUMNS_DEFINITION_OVERLAY: string;
|
|
35
35
|
modules: Module[];
|
|
36
36
|
rowEdit: RowEditComponent;
|
|
37
|
+
dmsObject: DmsObject;
|
|
37
38
|
set params(p: TableComponentParams);
|
|
38
39
|
get params(): TableComponentParams;
|
|
39
40
|
_params: TableComponentParams;
|
|
@@ -45,6 +46,7 @@ export declare class FormElementTableComponent extends UnsubscribeOnDestroy impl
|
|
|
45
46
|
overlayGridOptions: GridOptions;
|
|
46
47
|
editingRow: EditRow;
|
|
47
48
|
showDialog: boolean;
|
|
49
|
+
showPreview: boolean;
|
|
48
50
|
copyCellHandler(event: KeyboardEvent): void;
|
|
49
51
|
constructor(systemService: SystemService, pendingChanges: PendingChangesService, gridApi: GridService, translate: TranslateService, storageService: LocalStorageService);
|
|
50
52
|
actionsCellRenderer(params: any): HTMLDivElement;
|
|
@@ -83,4 +85,5 @@ export declare class FormElementTableComponent extends UnsubscribeOnDestroy impl
|
|
|
83
85
|
onSortChanged(): void;
|
|
84
86
|
onCellClicked($event: any): void;
|
|
85
87
|
onColumnResized(column: any, overlay?: boolean): void;
|
|
88
|
+
togglePreview(): void;
|
|
86
89
|
}
|
package/app/eo-framework/object-form/object-form/object-form-group/object-form-group.component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EoFormGroup, ObjectFormGroup } from '../object-form-group';
|
|
2
2
|
import { EoFormGroupWrapper } from '../object-form-control-wrapper';
|
|
3
|
+
import { DmsObject } from '@eo-sdk/core';
|
|
3
4
|
export declare class ObjectFormGroupComponent {
|
|
4
5
|
private types;
|
|
5
6
|
group: ObjectFormGroup;
|
|
@@ -8,6 +9,7 @@ export declare class ObjectFormGroupComponent {
|
|
|
8
9
|
isData: boolean;
|
|
9
10
|
situation: string;
|
|
10
11
|
skipToggle: boolean;
|
|
12
|
+
dmsObject: DmsObject;
|
|
11
13
|
set groupd(g: ObjectFormGroup);
|
|
12
14
|
noGroupLabels: boolean;
|
|
13
15
|
getObjectFormGroup(control: any): EoFormGroup;
|
|
@@ -5,7 +5,7 @@ import { ObjectFormOptions } from '../object-form-options.interface';
|
|
|
5
5
|
import { FormStatusChangedEvent } from '../form-status-changed-event.interface';
|
|
6
6
|
import { UnsubscribeOnDestroy } from '../../util/unsubscribe/unsubscribe.component';
|
|
7
7
|
import { PluginsService } from '../../../eo-framework-core/api/plugins.service';
|
|
8
|
-
import { Logger, SystemService, SearchService } from '@eo-sdk/core';
|
|
8
|
+
import { Logger, SystemService, SearchService, DmsObject } from '@eo-sdk/core';
|
|
9
9
|
import { ReferenceService } from '../../../eo-framework-core/references/reference.service';
|
|
10
10
|
export declare class ObjectFormComponent extends UnsubscribeOnDestroy implements OnDestroy, AfterViewInit {
|
|
11
11
|
private logger;
|
|
@@ -30,6 +30,7 @@ export declare class ObjectFormComponent extends UnsubscribeOnDestroy implements
|
|
|
30
30
|
private subscriptions;
|
|
31
31
|
private formControls;
|
|
32
32
|
private initialValidators;
|
|
33
|
+
dmsObject: DmsObject;
|
|
33
34
|
set options(formOptions: ObjectFormOptions);
|
|
34
35
|
constructor(logger: Logger, elementRef: ElementRef, systemService: SystemService, searchService: SearchService, formScriptService: ObjectFormScriptService, formHelperService: ObjectFormHelperService, pluginService: PluginsService, referenceService: ReferenceService, cdRef: ChangeDetectorRef);
|
|
35
36
|
private init;
|
|
@@ -21,6 +21,7 @@ export declare class ObjectFormEditComponent {
|
|
|
21
21
|
objectForm: ObjectFormComponent;
|
|
22
22
|
formDisabled: boolean;
|
|
23
23
|
set dmsObject(dmsObject: DmsObject);
|
|
24
|
+
get dmsObject(): DmsObject;
|
|
24
25
|
indexDataSaved: EventEmitter<any>;
|
|
25
26
|
formOptions: ObjectFormOptions;
|
|
26
27
|
formState: FormStatusChangedEvent;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
3
|
+
import { EventEmitter, OnDestroy, Renderer2, TemplateRef, AfterViewInit, ViewContainerRef } from '@angular/core';
|
|
2
4
|
import { EventService } from '@eo-sdk/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export declare class EoDialogComponent extends UnsubscribeOnDestroy implements OnDestroy {
|
|
5
|
+
import { PendingChangesService } from '../../../eo-framework-core';
|
|
6
|
+
import { UnsubscribeOnDestroy } from '../../util';
|
|
7
|
+
export declare class EoDialogComponent extends UnsubscribeOnDestroy implements OnDestroy, AfterViewInit {
|
|
7
8
|
private eventService;
|
|
8
9
|
private pendingChanges;
|
|
9
10
|
private renderer;
|
|
11
|
+
private overlay;
|
|
12
|
+
private viewContainerRef;
|
|
13
|
+
portalOutlet: CdkPortalOutlet;
|
|
14
|
+
dialogContent: TemplateRef<any>;
|
|
15
|
+
private overlayRef;
|
|
16
|
+
private ready;
|
|
10
17
|
private _visible;
|
|
11
18
|
private _lastFocused;
|
|
12
19
|
private active;
|
|
@@ -16,22 +23,26 @@ export declare class EoDialogComponent extends UnsubscribeOnDestroy implements O
|
|
|
16
23
|
subtitle: string;
|
|
17
24
|
styleClass: string;
|
|
18
25
|
dirtyCheck: string | string[];
|
|
19
|
-
|
|
20
|
-
minWidth: number;
|
|
26
|
+
minWidth: number | string;
|
|
21
27
|
minHeight: string;
|
|
22
|
-
resizable: boolean;
|
|
23
|
-
fullscreen: boolean;
|
|
24
28
|
focusOnShow: boolean;
|
|
29
|
+
align: 'center' | 'start';
|
|
30
|
+
isFormTable: boolean;
|
|
31
|
+
showPreview: boolean;
|
|
32
|
+
onTogglePreview: EventEmitter<any>;
|
|
25
33
|
visibleChange: EventEmitter<any>;
|
|
26
34
|
hide: EventEmitter<any>;
|
|
27
35
|
show: EventEmitter<any>;
|
|
28
|
-
dialog: Dialog;
|
|
29
36
|
get visible(): boolean;
|
|
30
37
|
set visible(val: boolean);
|
|
31
38
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
32
39
|
onMousedown(targetElement: HTMLElement): void;
|
|
33
|
-
constructor(eventService: EventService, pendingChanges: PendingChangesService, renderer: Renderer2);
|
|
40
|
+
constructor(eventService: EventService, pendingChanges: PendingChangesService, renderer: Renderer2, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
41
|
+
private open;
|
|
42
|
+
private getPositionStrategy;
|
|
34
43
|
toggleActive(active: boolean, trigger?: boolean): void;
|
|
35
44
|
closeDialog(): void;
|
|
45
|
+
togglePreview(): void;
|
|
36
46
|
ngOnDestroy(): void;
|
|
47
|
+
ngAfterViewInit(): void;
|
|
37
48
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* This directive traps the focus inside the element it is applied to.
|
|
4
|
+
* When applied, a users can't "tab out" of the element.
|
|
5
|
+
* You need at least two focusable children in the element for it to work properly.
|
|
6
|
+
* See the querySelector in the trapFocus method to know which elements count as focusable.
|
|
7
|
+
* Additionally you can add the attribute "focusable" to an element if you are unsure.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TrapFocusDirective {
|
|
10
|
+
private el;
|
|
11
|
+
constructor(el: ElementRef);
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
trapFocus(element: any): void;
|
|
14
|
+
}
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"docu": {
|
|
38
38
|
"link": "https://help.optimal-systems.com/yuuvisRAD/v80/user/client/###userLang###/index.html",
|
|
39
39
|
"label": "eo.sidebar.help.manual"
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
|
+
"headerLogo": "./assets/_default/theme/splash.svg"
|
|
41
42
|
},
|
|
42
43
|
"dashboardTitle": "yuuvis® RAD client",
|
|
43
44
|
"dashboardBackgroundImage": "./assets/_default/theme/bgr-dashboard.jpg",
|
|
@@ -775,6 +775,8 @@
|
|
|
775
775
|
"eo.form.table.options.checkbox.new": "Weitere Zeile hinzufügen",
|
|
776
776
|
"eo.form.table.options.indicator.new": "Neue Zeile",
|
|
777
777
|
"eo.form.table.options.confirm.delete": "Zeile löschen?",
|
|
778
|
+
"eo.form.table.dialog.preview.show": "Inhalt einblenden",
|
|
779
|
+
"eo.form.table.dialog.preview.hide": "Inhalt ausblenden",
|
|
778
780
|
"eo.object.summary.version": "Version",
|
|
779
781
|
"eo.object.summary.version.compare": "Versionen anzeigen",
|
|
780
782
|
"eo.form.property.required": "Pflichtfeld",
|
|
@@ -777,6 +777,8 @@
|
|
|
777
777
|
"eo.form.table.options.checkbox.new": "Add additional row",
|
|
778
778
|
"eo.form.table.options.indicator.new": "New row",
|
|
779
779
|
"eo.form.table.options.confirm.delete": "Delete row?",
|
|
780
|
+
"eo.form.table.dialog.preview.show": "Show content",
|
|
781
|
+
"eo.form.table.dialog.preview.hide": "Hide content",
|
|
780
782
|
"eo.object.summary.version": "Version",
|
|
781
783
|
"eo.object.summary.version.compare": "Show versions",
|
|
782
784
|
"eo.form.property.required": "Mandatory field",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.81 22H6C4.89 22 4 21.11 4 20V4C4 2.9 4.89 2 6 2H14L20 8V13.09C19.67 13.04 19.34 13 19 13S18.33 13.04 18 13.09V9H13V4H6V20H13.09C13.21 20.72 13.46 21.39 13.81 22M22.54 21.12L20.41 19L22.54 16.88L21.12 15.47L19 17.59L16.88 15.47L15.47 16.88L17.59 19L15.47 21.12L16.88 22.54L19 20.41L21.12 22.54L22.54 21.12Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,18C17.56,18 18,18.44 18,19C18,19.56 17.56,20 17,20C16.44,20 16,19.56 16,19C16,18.44 16.44,18 17,18M17,15C14.27,15 11.94,16.66 11,19C11.94,21.34 14.27,23 17,23C19.73,23 22.06,21.34 23,19C22.06,16.66 19.73,15 17,15M17,21.5A2.5,2.5 0 0,1 14.5,19A2.5,2.5 0 0,1 17,16.5A2.5,2.5 0 0,1 19.5,19A2.5,2.5 0 0,1 17,21.5M9.27,20H6V4H13V9H18V13.07C18.7,13.15 19.36,13.32 20,13.56V8L14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H10.5C10,21.41 9.59,20.73 9.27,20Z" /></svg>
|