ontimize-web-ngx 15.3.5 → 15.4.0
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/esm2020/lib/components/grid/o-grid.component.mjs +2 -1
- package/esm2020/lib/components/input/date-range/o-daterange-input.component.mjs +240 -218
- package/esm2020/lib/components/input/date-range/o-daterange-input.module.mjs +3 -5
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.component.mjs +353 -0
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.directive.mjs +381 -0
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.module.mjs +21 -0
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-picker.component.mjs +1009 -0
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-picker.config.mjs +2 -0
- package/esm2020/lib/components/input/index.mjs +7 -5
- package/esm2020/lib/components/list/o-list.component.mjs +2 -1
- package/esm2020/lib/components/o-service-base-component.class.mjs +24 -9
- package/esm2020/lib/components/o-service-component.class.mjs +2 -1
- package/esm2020/lib/components/table/o-table.component.mjs +5 -1
- package/esm2020/lib/config/o-modules.mjs +5 -3
- package/esm2020/lib/i18n/i18n.mjs +9 -3
- package/esm2020/lib/interfaces/form-layout-manager.interface.mjs +2 -0
- package/esm2020/lib/interfaces/index.mjs +3 -1
- package/esm2020/lib/interfaces/pagination-context.interface.mjs +2 -0
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager-base.class.mjs +1 -1
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +1 -1
- package/esm2020/lib/ontimize-web-ngx.module.mjs +7 -6
- package/esm2020/lib/services/base-service.class.mjs +12 -1
- package/esm2020/lib/services/index.mjs +2 -1
- package/esm2020/lib/services/pagination-context.service.mjs +25 -0
- package/fesm2015/ontimize-web-ngx.mjs +465 -37
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +454 -37
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/input/date-range/o-daterange-input.component.d.ts +47 -33
- package/lib/components/input/date-range/o-daterange-input.module.d.ts +4 -6
- package/lib/components/input/date-range-legacy/o-daterange-input.component.d.ts +70 -0
- package/lib/components/input/date-range-legacy/o-daterange-input.module.d.ts +11 -0
- package/lib/components/input/index.d.ts +6 -4
- package/lib/components/o-service-base-component.class.d.ts +1 -0
- package/lib/components/table/extensions/header/o-table-header-components.d.ts +2 -2
- package/lib/i18n/i18n.d.ts +6 -0
- package/lib/interfaces/form-layout-manager.interface.d.ts +43 -0
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/pagination-context.interface.d.ts +6 -0
- package/lib/layouts/form-layout/o-form-layout-manager-base.class.d.ts +30 -12
- package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +2 -1
- package/lib/ontimize-web-ngx.module.d.ts +5 -4
- package/lib/services/base-service.class.d.ts +6 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/pagination-context.service.d.ts +11 -0
- package/package.json +1 -1
- package/theme.scss +2 -2
- package/esm2020/lib/components/input/date-range/o-daterange-input.directive.mjs +0 -381
- package/esm2020/lib/components/input/date-range/o-daterange-picker.component.mjs +0 -1009
- package/esm2020/lib/components/input/date-range/o-daterange-picker.config.mjs +0 -2
- /package/lib/components/input/{date-range → date-range-legacy}/o-daterange-input.directive.d.ts +0 -0
- /package/lib/components/input/{date-range → date-range-legacy}/o-daterange-picker.component.d.ts +0 -0
- /package/lib/components/input/{date-range → date-range-legacy}/o-daterange-picker.config.d.ts +0 -0
|
@@ -1,32 +1,42 @@
|
|
|
1
1
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
2
|
import { ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { MediaObserver } from '@angular/flex-layout';
|
|
4
|
+
import { FormGroup, UntypedFormControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
5
|
+
import { DateAdapter } from '@angular/material/core';
|
|
6
|
+
import { MatDatepickerInputEvent, MatDateRangeInput, MatDateRangePicker } from '@angular/material/datepicker';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { OntimizeMomentDateAdapter } from '../../../shared';
|
|
5
9
|
import { FormValueOptions } from '../../../types/form-value-options.type';
|
|
6
10
|
import { ODateValueType } from '../../../types/o-date-value.type';
|
|
7
11
|
import { OFormComponent } from '../../form/o-form.component';
|
|
8
12
|
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
13
|
+
import { OFormControl } from '../o-form-control.class';
|
|
14
|
+
import { DateCustomClassFunction } from '../../../types/date-custom-class.type';
|
|
11
15
|
import * as i0 from "@angular/core";
|
|
12
16
|
export declare const DEFAULT_OUTPUTS_O_DATERANGE_INPUT: string[];
|
|
13
17
|
export declare const DEFAULT_INPUTS_O_DATERANGE_INPUT: string[];
|
|
14
18
|
export declare class ODateRangeInputComponent extends OFormDataComponent implements OnDestroy, OnInit {
|
|
19
|
+
protected momentDateAdapter: DateAdapter<OntimizeMomentDateAdapter>;
|
|
15
20
|
protected breakpointObserver: BreakpointObserver;
|
|
16
|
-
|
|
17
|
-
picker: DaterangepickerComponent;
|
|
18
|
-
private matInputRef;
|
|
21
|
+
picker: MatDateRangePicker<Date>;
|
|
19
22
|
textInputEnabled: boolean;
|
|
20
|
-
showWeekNumbers: boolean;
|
|
21
23
|
oTouchUi: boolean;
|
|
22
|
-
|
|
23
|
-
protected _oMinDate: moment.Moment;
|
|
24
|
+
dateRangeInput: MatDateRangeInput<Date>;
|
|
24
25
|
mode: 'mobile' | 'desktop' | 'auto';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
startDateValue: Date;
|
|
27
|
+
endDateValue: Date;
|
|
28
|
+
range: FormGroup<{
|
|
29
|
+
[x: string]: OFormControl;
|
|
30
|
+
}>;
|
|
31
|
+
protected _dateClass: DateCustomClassFunction;
|
|
32
|
+
get dateClass(): DateCustomClassFunction;
|
|
33
|
+
set dateClass(val: DateCustomClassFunction);
|
|
34
|
+
protected _oMinDate: Date;
|
|
35
|
+
set oMinDate(value: any);
|
|
36
|
+
get oMinDate(): any;
|
|
37
|
+
protected _oMaxDate: Date;
|
|
38
|
+
set oMaxDate(value: any);
|
|
39
|
+
get oMaxDate(): any;
|
|
30
40
|
protected _startKey: string;
|
|
31
41
|
get startKey(): string;
|
|
32
42
|
set startKey(value: string);
|
|
@@ -34,37 +44,41 @@ export declare class ODateRangeInputComponent extends OFormDataComponent impleme
|
|
|
34
44
|
get endKey(): string;
|
|
35
45
|
set endKey(value: string);
|
|
36
46
|
protected _valueType: ODateValueType;
|
|
37
|
-
|
|
38
|
-
get separator(): string;
|
|
39
|
-
set separator(value: string);
|
|
47
|
+
separator: string;
|
|
40
48
|
get showClearButton(): boolean;
|
|
41
|
-
get
|
|
49
|
+
get touchUi(): boolean;
|
|
50
|
+
set touchUi(val: boolean);
|
|
42
51
|
isMobileMode(): boolean;
|
|
43
52
|
isDesktopMode(): boolean;
|
|
44
53
|
oformat: string;
|
|
45
|
-
protected _localeOptions: any;
|
|
46
54
|
protected olocale: string;
|
|
47
55
|
private momentSrv;
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
protected media: MediaObserver;
|
|
57
|
+
protected mediaSubscription: Subscription;
|
|
58
|
+
protected onLanguageChangeSubscription: Subscription;
|
|
59
|
+
placeholderStartDay: string;
|
|
60
|
+
placeholderEndDay: string;
|
|
61
|
+
constructor(form: OFormComponent, elRef: ElementRef, injector: Injector, momentDateAdapter: DateAdapter<OntimizeMomentDateAdapter>, breakpointObserver: BreakpointObserver);
|
|
50
62
|
ngOnInit(): void;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
setValue(val: any, options?: FormValueOptions, setDirty?: boolean): void;
|
|
54
|
-
onClickClearValue(e: Event): void;
|
|
55
|
-
datesUpdated(range: any): void;
|
|
56
|
-
setData(newValue: any): void;
|
|
57
|
-
updateElement(): void;
|
|
58
|
-
getDateRangeToString(valueToString: string): {};
|
|
63
|
+
subscribeToMediaChanges(): void;
|
|
64
|
+
open(): void;
|
|
59
65
|
resolveValidators(): ValidatorFn[];
|
|
60
66
|
isObjectDataRangeNull(objectValue: any): boolean;
|
|
61
67
|
protected rangeDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
62
68
|
protected minDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
63
69
|
protected maxDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
64
70
|
protected parseDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
65
|
-
ensureDateRangeValue(val: any, valueType: any): void;
|
|
66
71
|
set valueType(val: any);
|
|
67
72
|
get valueType(): any;
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
ngOnDestroy(): void;
|
|
74
|
+
protected setFormValue(val: any, options?: FormValueOptions, setDirty?: boolean): void;
|
|
75
|
+
protected ensureODateValueType(val: any): any;
|
|
76
|
+
protected convertToDate(val: any): Date | null;
|
|
77
|
+
onChangeEvent(event: MatDatepickerInputEvent<Date>): void;
|
|
78
|
+
onClickInput(e: Event): void;
|
|
79
|
+
onClickClearValue(event: Event): void;
|
|
80
|
+
protected markFormGroupTouched(): void;
|
|
81
|
+
protected getValueAsMoment(val: any): any;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODateRangeInputComponent, [{ optional: true; }, null, null, null, null]>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ODateRangeInputComponent, "o-daterange-input", never, { "separator": "separator"; "olocale": "locale"; "startKey": "startKey"; "endKey": "endKey"; "valueType": "value-type"; "mode": "mode"; "placeholderStartDay": "placeholder-startday"; "placeholderEndDay": "placeholder-endday"; "oformat": "format"; "oStartView": "start-view"; "oMinDate": "min"; "oMaxDate": "max"; "oTouchUi": "touch-ui"; "oStartAt": "start-at"; "filterDate": "filter-date"; "textInputEnabled": "text-input-enabled"; "dateClass": "date-class"; }, { "onChange": "onChange"; "onValueChange": "onValueChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, false, never>;
|
|
70
84
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./o-daterange-
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@angular/common";
|
|
6
|
-
import * as i5 from "../../../shared/shared.module";
|
|
2
|
+
import * as i1 from "./o-daterange-input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../../shared/shared.module";
|
|
7
5
|
export declare class ODateRangeInputModule {
|
|
8
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ODateRangeInputModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ODateRangeInputModule, [typeof i1.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ODateRangeInputModule, [typeof i1.ODateRangeInputComponent], [typeof i2.CommonModule, typeof i3.OSharedModule], [typeof i1.ODateRangeInputComponent]>;
|
|
10
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<ODateRangeInputModule>;
|
|
11
9
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { UntypedFormControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
4
|
+
import moment from 'moment';
|
|
5
|
+
import { FormValueOptions } from '../../../types/form-value-options.type';
|
|
6
|
+
import { ODateValueType } from '../../../types/o-date-value.type';
|
|
7
|
+
import { OFormComponent } from '../../form/o-form.component';
|
|
8
|
+
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
9
|
+
import { ODaterangepickerDirective } from './o-daterange-input.directive';
|
|
10
|
+
import { DaterangepickerComponent } from './o-daterange-picker.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare const DEFAULT_OUTPUTS_O_DATERANGE_LEGACY_INPUT: string[];
|
|
13
|
+
export declare const DEFAULT_INPUTS_O_DATERANGE_LEGACY_INPUT: string[];
|
|
14
|
+
export declare class ODateRangeLegacyInputComponent extends OFormDataComponent implements OnDestroy, OnInit {
|
|
15
|
+
protected breakpointObserver: BreakpointObserver;
|
|
16
|
+
pickerDirective: ODaterangepickerDirective;
|
|
17
|
+
picker: DaterangepickerComponent;
|
|
18
|
+
private matInputRef;
|
|
19
|
+
textInputEnabled: boolean;
|
|
20
|
+
showWeekNumbers: boolean;
|
|
21
|
+
oTouchUi: boolean;
|
|
22
|
+
showRanges: boolean;
|
|
23
|
+
protected _oMinDate: moment.Moment;
|
|
24
|
+
mode: 'mobile' | 'desktop' | 'auto';
|
|
25
|
+
get oMinDate(): moment.Moment;
|
|
26
|
+
set oMinDate(value: moment.Moment);
|
|
27
|
+
protected _oMaxDate: moment.Moment;
|
|
28
|
+
get oMaxDate(): moment.Moment;
|
|
29
|
+
set oMaxDate(value: moment.Moment);
|
|
30
|
+
protected _startKey: string;
|
|
31
|
+
get startKey(): string;
|
|
32
|
+
set startKey(value: string);
|
|
33
|
+
protected _endKey: string;
|
|
34
|
+
get endKey(): string;
|
|
35
|
+
set endKey(value: string);
|
|
36
|
+
protected _valueType: ODateValueType;
|
|
37
|
+
protected _separator: string;
|
|
38
|
+
get separator(): string;
|
|
39
|
+
set separator(value: string);
|
|
40
|
+
get showClearButton(): boolean;
|
|
41
|
+
get localeOptions(): any;
|
|
42
|
+
isMobileMode(): boolean;
|
|
43
|
+
isDesktopMode(): boolean;
|
|
44
|
+
oformat: string;
|
|
45
|
+
protected _localeOptions: any;
|
|
46
|
+
protected olocale: string;
|
|
47
|
+
private readonly momentSrv;
|
|
48
|
+
private readonly oTranslate;
|
|
49
|
+
constructor(form: OFormComponent, elRef: ElementRef, injector: Injector, breakpointObserver: BreakpointObserver);
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
openPicker(): void;
|
|
52
|
+
onChangeEvent(event: any): void;
|
|
53
|
+
setValue(val: any, options?: FormValueOptions, setDirty?: boolean): void;
|
|
54
|
+
onClickClearValue(e: Event): void;
|
|
55
|
+
datesUpdated(range: any): void;
|
|
56
|
+
setData(newValue: any): void;
|
|
57
|
+
updateElement(): void;
|
|
58
|
+
getDateRangeToString(valueToString: string): {};
|
|
59
|
+
resolveValidators(): ValidatorFn[];
|
|
60
|
+
isObjectDataRangeNull(objectValue: any): boolean;
|
|
61
|
+
protected rangeDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
62
|
+
protected minDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
63
|
+
protected maxDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
64
|
+
protected parseDateValidator(control: UntypedFormControl): ValidationErrors;
|
|
65
|
+
ensureDateRangeValue(val: any, valueType: any): void;
|
|
66
|
+
set valueType(val: any);
|
|
67
|
+
get valueType(): any;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODateRangeLegacyInputComponent, [{ optional: true; }, null, null, null]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ODateRangeLegacyInputComponent, "o-daterange-legacy-input", never, { "separator": "separator"; "showWeekNumbers": "show-week-numbers"; "showRanges": "show-ranges"; "olocale": "locale"; "startKey": "startKey"; "endKey": "endKey"; "valueType": "value-type"; "mode": "mode"; "oformat": "format"; "oStartView": "start-view"; "oMinDate": "min"; "oMaxDate": "max"; "oTouchUi": "touch-ui"; "oStartAt": "start-at"; "filterDate": "filter-date"; "textInputEnabled": "text-input-enabled"; "dateClass": "date-class"; }, { "onChange": "onChange"; "onValueChange": "onValueChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./o-daterange-picker.component";
|
|
3
|
+
import * as i2 from "./o-daterange-input.component";
|
|
4
|
+
import * as i3 from "./o-daterange-input.directive";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "../../../shared/shared.module";
|
|
7
|
+
export declare class ODateRangeLegacyInputModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODateRangeLegacyInputModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ODateRangeLegacyInputModule, [typeof i1.DaterangepickerComponent, typeof i2.ODateRangeLegacyInputComponent, typeof i3.ODaterangepickerDirective], [typeof i4.CommonModule, typeof i5.OSharedModule], [typeof i2.ODateRangeLegacyInputComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ODateRangeLegacyInputModule>;
|
|
11
|
+
}
|
|
@@ -8,11 +8,13 @@ export * from './currency-input/o-currency-input.component';
|
|
|
8
8
|
export * from './currency-input/o-currency-input.module';
|
|
9
9
|
export * from './date-input/o-date-input.component';
|
|
10
10
|
export * from './date-input/o-date-input.module';
|
|
11
|
-
export * from './date-range/o-daterange-input.component';
|
|
12
|
-
export * from './date-range/o-daterange-input.directive';
|
|
11
|
+
export * from './date-range-legacy/o-daterange-input.component';
|
|
12
|
+
export * from './date-range-legacy/o-daterange-input.directive';
|
|
13
|
+
export * from './date-range-legacy/o-daterange-input.module';
|
|
14
|
+
export * from './date-range-legacy/o-daterange-picker.component';
|
|
15
|
+
export * from './date-range-legacy/o-daterange-picker.config';
|
|
13
16
|
export * from './date-range/o-daterange-input.module';
|
|
14
|
-
export * from './date-range/o-daterange-
|
|
15
|
-
export * from './date-range/o-daterange-picker.config';
|
|
17
|
+
export * from './date-range/o-daterange-input.component';
|
|
16
18
|
export * from './email-input/o-email-input.component';
|
|
17
19
|
export * from './email-input/o-email-input.module';
|
|
18
20
|
export * from './phone-input/o-phone-input.component';
|
|
@@ -95,6 +95,7 @@ export declare abstract class AbstractOServiceBaseComponent<T extends AbstractCo
|
|
|
95
95
|
getAttributesValuesToQuery(): Array<string>;
|
|
96
96
|
getQueryArguments(filter: object, ovrrArgs?: OQueryDataArgs): Array<any>;
|
|
97
97
|
updatePaginationInfo(queryRes: ServiceResponse): void;
|
|
98
|
+
private updatePaginationContext;
|
|
98
99
|
getTotalRecordsNumber(): number;
|
|
99
100
|
getContextComponent(): OFormComponent | OExpandableContainerComponent;
|
|
100
101
|
getComponentFilter(existingFilter?: any): any;
|
|
@@ -12,5 +12,5 @@ import { OTableOptionComponent } from './table-option/o-table-option.component';
|
|
|
12
12
|
import { OTableQuickfilterComponent } from './table-quickfilter/o-table-quickfilter.component';
|
|
13
13
|
import { OTableHeaderComponent } from './table-header/o-table-header.component';
|
|
14
14
|
import { OTableColumnSelectAllDirective } from './table-column-select-all/o-table-column-select-all.directive';
|
|
15
|
-
export declare const O_TABLE_HEADER_COMPONENTS: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof
|
|
16
|
-
export declare const O_TABLE_HEADER_COMPONENTS_EXPORTED: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof
|
|
15
|
+
export declare const O_TABLE_HEADER_COMPONENTS: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableOptionComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent | typeof OTableHeaderColumnFilterIconComponent | typeof OTableHeaderComponent | typeof OTableColumnsGroupingComponent | typeof OTableColumnSelectAllDirective)[];
|
|
16
|
+
export declare const O_TABLE_HEADER_COMPONENTS_EXPORTED: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableOptionComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent | typeof OTableHeaderComponent | typeof OTableColumnsGroupingComponent | typeof OTableColumnSelectAllDirective)[];
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -253,6 +253,8 @@ export declare const MAP: {
|
|
|
253
253
|
'DATERANGE.this_year': string;
|
|
254
254
|
'DATERANGE.APPLYLABEL': string;
|
|
255
255
|
'DATERANGE.W': string;
|
|
256
|
+
'DATERANGE.PLACEHOLDER_STARTDATE': string;
|
|
257
|
+
'DATERANGE.PLACEHOLDER_ENDDATE': string;
|
|
256
258
|
'TABLE_CONTEXT_MENU.GROUP_BY': string;
|
|
257
259
|
'TABLE_CONTEXT_MENU.GROUP_BY_YEAR': string;
|
|
258
260
|
'TABLE_CONTEXT_MENU.GROUP_BY_MONTH': string;
|
|
@@ -605,6 +607,8 @@ export declare const MAP: {
|
|
|
605
607
|
'EXPORT.DIALOG.EXPORT_BUTTON': string;
|
|
606
608
|
'EXPORT.DIALOG.ADVANCED_OPTIONS': string;
|
|
607
609
|
'EXPORT.DIALOG.FILE_NAME.PLACEHOLDER': string;
|
|
610
|
+
'DATERANGE.PLACEHOLDER_STARTDATE': string;
|
|
611
|
+
'DATERANGE.PLACEHOLDER_ENDDATE': string;
|
|
608
612
|
};
|
|
609
613
|
pt: {
|
|
610
614
|
LANGUAGE: string;
|
|
@@ -883,5 +887,7 @@ export declare const MAP: {
|
|
|
883
887
|
'TREE.BUTTONS.SELECT': string;
|
|
884
888
|
'REPORT.COLUMN.TRUEVALUE': string;
|
|
885
889
|
'REPORT.COLUMN.FALSEVALUE': string;
|
|
890
|
+
'DATERANGE.PLACEHOLDER_STARTDATE': string;
|
|
891
|
+
'DATERANGE.PLACEHOLDER_ENDDATE': string;
|
|
886
892
|
};
|
|
887
893
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
3
|
+
import { FormLayoutCloseDetailOptions, FormLayoutDetailComponentData } from '../types';
|
|
4
|
+
import { OFormLayoutManagerContext } from '../types/form-layout-manager-context.type';
|
|
5
|
+
export interface IOFormLayoutManager {
|
|
6
|
+
oattr: string;
|
|
7
|
+
mode: string;
|
|
8
|
+
separator: string;
|
|
9
|
+
title: string;
|
|
10
|
+
storeState: boolean;
|
|
11
|
+
labelColumns: string;
|
|
12
|
+
readonly tabGroupOptions: any;
|
|
13
|
+
readonly dialogOptions: any;
|
|
14
|
+
readonly splitPaneOptions: any;
|
|
15
|
+
onMainTabSelected: EventEmitter<any>;
|
|
16
|
+
onSelectedTabChange: EventEmitter<any>;
|
|
17
|
+
onCloseTab: EventEmitter<any>;
|
|
18
|
+
onTriggerUpdate: EventEmitter<any>;
|
|
19
|
+
addDetailComponent(childRoute: ActivatedRouteSnapshot, url: string, context?: OFormLayoutManagerContext): void;
|
|
20
|
+
allowToUpdateNavigation(formAttr: string): boolean;
|
|
21
|
+
closeDetail(options?: FormLayoutCloseDetailOptions): void;
|
|
22
|
+
closeDetails(detailsData: any[], options?: FormLayoutCloseDetailOptions): void;
|
|
23
|
+
getAttribute(): string;
|
|
24
|
+
getComponentKey(): string;
|
|
25
|
+
getDataToStore(): any;
|
|
26
|
+
getFormCacheData(): FormLayoutDetailComponentData;
|
|
27
|
+
getFormDataFromLabelColumns(data: any): any;
|
|
28
|
+
getLabelFromData(data: any): string;
|
|
29
|
+
getLabelFromUrlParams(urlParams: object): string;
|
|
30
|
+
getRouteForComponent(comp: any): any[];
|
|
31
|
+
getRouteKey(): string;
|
|
32
|
+
getRouteOfActiveItem(): any[];
|
|
33
|
+
isDialogMode(): boolean;
|
|
34
|
+
isMainComponent(comp: any): boolean;
|
|
35
|
+
isSplitPaneMode(): boolean;
|
|
36
|
+
isTabMode(): boolean;
|
|
37
|
+
reloadMainComponents(): void;
|
|
38
|
+
setAsActiveFormLayoutManager(): void;
|
|
39
|
+
setModifiedState(formAttr: string, modified: boolean, confirmExit: boolean): void;
|
|
40
|
+
updateActiveData(data: any): void;
|
|
41
|
+
updateNavigation(data: any, keysValues: any, insertionMode: boolean): void;
|
|
42
|
+
updateStateStorage(): void;
|
|
43
|
+
}
|
|
@@ -38,3 +38,5 @@ export * from './o-table-export-data.interface';
|
|
|
38
38
|
export * from './query-parameter.interface';
|
|
39
39
|
export * from './form-data-component-hash.interface';
|
|
40
40
|
export * from './local-service.interface';
|
|
41
|
+
export * from './pagination-context.interface';
|
|
42
|
+
export * from './form-layout-manager.interface';
|
|
@@ -4,7 +4,19 @@ import { OFormLayoutManagerComponentStateClass } from '../../services/state/o-fo
|
|
|
4
4
|
import { FormLayoutCloseDetailOptions, FormLayoutDetailComponentData } from '../../types/form-layout-detail-component-data.type';
|
|
5
5
|
import { OFormLayoutManagerMode } from '../../interfaces/o-form-layout-manager-mode.interface';
|
|
6
6
|
import { NavigationService } from '../../services/navigation.service';
|
|
7
|
-
|
|
7
|
+
import { IOFormLayoutManager } from '../../interfaces/form-layout-manager.interface';
|
|
8
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
9
|
+
import { OFormLayoutManagerContext } from '../../types/form-layout-manager-context.type';
|
|
10
|
+
export declare abstract class OFormLayoutManagerBase implements IOFormLayoutManager {
|
|
11
|
+
oattr: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
separator: string;
|
|
14
|
+
title: string;
|
|
15
|
+
labelColumns: string;
|
|
16
|
+
tabGroupOptions: any;
|
|
17
|
+
dialogOptions: any;
|
|
18
|
+
splitPaneOptions: any;
|
|
19
|
+
onMainTabSelected: EventEmitter<any>;
|
|
8
20
|
onTriggerUpdate: EventEmitter<any>;
|
|
9
21
|
onSelectedTabChange: EventEmitter<any>;
|
|
10
22
|
onCloseTab: EventEmitter<any>;
|
|
@@ -14,28 +26,34 @@ export declare abstract class OFormLayoutManagerBase {
|
|
|
14
26
|
navigationService: NavigationService;
|
|
15
27
|
storeState: boolean;
|
|
16
28
|
oTabGroup: OFormLayoutManagerMode;
|
|
17
|
-
abstract
|
|
18
|
-
abstract getRouteForComponent(comp: ILayoutManagerComponent): any[];
|
|
19
|
-
abstract allowToUpdateNavigation(formAttr: string): boolean;
|
|
29
|
+
abstract addDetailComponent(childRoute: ActivatedRouteSnapshot, url: string, context?: OFormLayoutManagerContext): any;
|
|
20
30
|
abstract allowNavigation(): boolean;
|
|
31
|
+
abstract allowToUpdateNavigation(formAttr: string): boolean;
|
|
21
32
|
abstract closeDetail(options?: FormLayoutCloseDetailOptions): void;
|
|
33
|
+
abstract closeDetails(detailsKeysData: any[], options?: FormLayoutCloseDetailOptions): void;
|
|
34
|
+
abstract get ignoreCanDeactivate(): boolean;
|
|
35
|
+
abstract getAttribute(): string;
|
|
36
|
+
abstract getComponentKey(): string;
|
|
37
|
+
abstract getDataToStore(): any;
|
|
22
38
|
abstract getFormCacheData(): FormLayoutDetailComponentData;
|
|
39
|
+
abstract getFormDataFromLabelColumns(data: any): any;
|
|
40
|
+
abstract getIdOfActiveItem(): string;
|
|
23
41
|
abstract getLabelFromData(data: any): string;
|
|
24
42
|
abstract getLabelFromUrlParams(urlParams: object): string;
|
|
25
|
-
abstract getFormDataFromLabelColumns(data: any): any;
|
|
26
43
|
abstract getParams(): any;
|
|
27
|
-
abstract
|
|
44
|
+
abstract getRouteForComponent(comp: ILayoutManagerComponent): any[];
|
|
45
|
+
abstract getRouteKey(): string;
|
|
28
46
|
abstract getRouteOfActiveItem(): any[];
|
|
47
|
+
abstract hasToConfirmExit(data: FormLayoutDetailComponentData, options?: FormLayoutCloseDetailOptions): boolean;
|
|
48
|
+
abstract isDialogMode(): boolean;
|
|
29
49
|
abstract isMainComponent(comp: ILayoutManagerComponent): boolean;
|
|
30
|
-
abstract isTabMode(): boolean;
|
|
31
50
|
abstract isSplitPaneMode(): boolean;
|
|
32
|
-
abstract
|
|
51
|
+
abstract isTabMode(): boolean;
|
|
52
|
+
abstract reloadMainComponents(): any;
|
|
33
53
|
abstract setAsActiveFormLayoutManager(): any;
|
|
34
|
-
abstract hasToConfirmExit(data: FormLayoutDetailComponentData, options?: FormLayoutCloseDetailOptions): boolean;
|
|
35
54
|
abstract setModifiedState(formAttr: string, modified: boolean, confirmExit: boolean): any;
|
|
55
|
+
abstract updateActiveData(data: any): any;
|
|
36
56
|
abstract updateIfNeeded(): void;
|
|
37
57
|
abstract updateNavigation(data: any, keysValues: any, insertionMode: boolean): any;
|
|
38
|
-
abstract
|
|
39
|
-
abstract getComponentKey(): string;
|
|
40
|
-
abstract closeDetails(detailsKeysData: any[], options?: FormLayoutCloseDetailOptions): void;
|
|
58
|
+
abstract updateStateStorage(): any;
|
|
41
59
|
}
|
|
@@ -15,10 +15,11 @@ import { FormLayoutCloseDetailOptions, FormLayoutDetailComponentData } from '../
|
|
|
15
15
|
import { OFormLayoutDialogComponent } from './dialog/o-form-layout-dialog.component';
|
|
16
16
|
import { OFormLayoutManagerBase } from './o-form-layout-manager-base.class';
|
|
17
17
|
import { OFormLayoutManagerContext } from '../../types/form-layout-manager-context.type';
|
|
18
|
+
import { IOFormLayoutManager } from '../../interfaces/form-layout-manager.interface';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
export declare const DEFAULT_INPUTS_O_FORM_LAYOUT_MANAGER: string[];
|
|
20
21
|
export declare const DEFAULT_OUTPUTS_O_FORM_LAYOUT_MANAGER: string[];
|
|
21
|
-
export declare class OFormLayoutManagerComponent implements AfterViewInit, OnInit, OnDestroy, ILocalStorageComponent {
|
|
22
|
+
export declare class OFormLayoutManagerComponent implements AfterViewInit, OnInit, OnDestroy, ILocalStorageComponent, IOFormLayoutManager {
|
|
22
23
|
protected injector: Injector;
|
|
23
24
|
protected router: Router;
|
|
24
25
|
protected actRoute: ActivatedRoute;
|
|
@@ -24,7 +24,7 @@ import * as i20 from "./components/input/checkbox/o-checkbox.module";
|
|
|
24
24
|
import * as i21 from "./components/input/combo/o-combo.module";
|
|
25
25
|
import * as i22 from "./components/input/currency-input/o-currency-input.module";
|
|
26
26
|
import * as i23 from "./components/input/date-input/o-date-input.module";
|
|
27
|
-
import * as i24 from "./components/input/date-range/o-daterange-input.module";
|
|
27
|
+
import * as i24 from "./components/input/date-range-legacy/o-daterange-input.module";
|
|
28
28
|
import * as i25 from "./components/input/email-input/o-email-input.module";
|
|
29
29
|
import * as i26 from "./components/input/phone-input/o-phone-input.module";
|
|
30
30
|
import * as i27 from "./components/input/file-input/o-file-input.module";
|
|
@@ -54,11 +54,12 @@ import * as i50 from "./components/dual-list-selector/o-dual-list-selector.modul
|
|
|
54
54
|
import * as i51 from "./config/o-modules";
|
|
55
55
|
import * as i52 from "./services/permissions/o-permissions.module";
|
|
56
56
|
import * as i53 from "./components/input/slider/o-slider.module";
|
|
57
|
-
import * as i54 from "./components/
|
|
58
|
-
import * as i55 from "./components/
|
|
57
|
+
import * as i54 from "./components/input/date-range/o-daterange-input.module";
|
|
58
|
+
import * as i55 from "./components/o-data-toolbar/o-data-toolbar.module";
|
|
59
|
+
import * as i56 from "./components/tree/o-tree.module";
|
|
59
60
|
export declare class OntimizeWebModule {
|
|
60
61
|
static forRoot(config: Config): ModuleWithProviders<OntimizeWebModule>;
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeWebModule, never>;
|
|
62
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OntimizeWebModule, never, [typeof i1.HttpClientModule, typeof i2.TranslateModule, typeof i3.NgxMaterialTimepickerModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i9.OCardMenuItemModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i14.OContextMenuModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i18.OGridModule, typeof i19.OImageModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i24.
|
|
63
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OntimizeWebModule, never, [typeof i1.HttpClientModule, typeof i2.TranslateModule, typeof i3.NgxMaterialTimepickerModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i9.OCardMenuItemModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i14.OContextMenuModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i18.OGridModule, typeof i19.OImageModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i24.ODateRangeLegacyInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i28.OHourInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i35.ORadioModule, typeof i36.ORealInputModule, typeof i37.OSearchInputModule, typeof i38.OSlideToggleModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i41.OTimeInputModule, typeof i42.OLanguageSelectorModule, typeof i43.OListModule, typeof i44.OTableModule, typeof i45.OUserInfoModule, typeof i46.OAppLayoutModule, typeof i47.OCardMenuLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule], [typeof i51.OntimizeWebTranslateModule, typeof i52.OPermissionsModule, typeof i1.HttpClientModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i14.OContextMenuModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i19.OImageModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i36.ORealInputModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i43.OListModule, typeof i37.OSearchInputModule, typeof i44.OTableModule, typeof i46.OAppLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i45.OUserInfoModule, typeof i42.OLanguageSelectorModule, typeof i9.OCardMenuItemModule, typeof i47.OCardMenuLayoutModule, typeof i28.OHourInputModule, typeof i41.OTimeInputModule, typeof i18.OGridModule, typeof i35.ORadioModule, typeof i38.OSlideToggleModule, typeof i53.OSliderModule, typeof i24.ODateRangeLegacyInputModule, typeof i54.ODateRangeInputModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule, typeof i55.ODataToolbarModule, typeof i56.OTreeModule]>;
|
|
63
64
|
static ɵinj: i0.ɵɵInjectorDeclaration<OntimizeWebModule>;
|
|
64
65
|
}
|
|
@@ -11,6 +11,8 @@ import { AuthService } from './auth.service';
|
|
|
11
11
|
import { BaseServiceResponse } from './base-service-response.class';
|
|
12
12
|
import { LoginStorageService } from './login-storage.service';
|
|
13
13
|
import { OntimizeServiceResponseParser } from './parser/o-service-response.parser';
|
|
14
|
+
import { PaginationContext } from '../interfaces/pagination-context.interface';
|
|
15
|
+
import { PaginationContextService } from './pagination-context.service';
|
|
14
16
|
export declare class BaseService {
|
|
15
17
|
protected injector: Injector;
|
|
16
18
|
protected httpClient: HttpClient;
|
|
@@ -22,6 +24,7 @@ export declare class BaseService {
|
|
|
22
24
|
protected authService: AuthService;
|
|
23
25
|
protected adapter: ServiceResponseAdapter<BaseServiceResponse>;
|
|
24
26
|
protected loginStorageService: LoginStorageService;
|
|
27
|
+
protected paginationContextService: PaginationContextService;
|
|
25
28
|
constructor(injector: Injector);
|
|
26
29
|
configureAdapter(): void;
|
|
27
30
|
configureService(config: any): void;
|
|
@@ -45,4 +48,7 @@ export declare class BaseService {
|
|
|
45
48
|
protected parseUnsuccessfulUpdateResponse(resp: ServiceResponse, observer: Subscriber<ServiceResponse>): void;
|
|
46
49
|
protected parseUnsuccessfulDeleteResponse(resp: ServiceResponse, observer: Subscriber<ServiceResponse>): void;
|
|
47
50
|
protected refreshAuthToken(res: HttpResponse<any>): void;
|
|
51
|
+
setPaginationContext(context: PaginationContext): void;
|
|
52
|
+
getPaginationContext(): PaginationContext | null;
|
|
53
|
+
reinitializePaginationContext(pageSize?: number): void;
|
|
48
54
|
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PaginationContext } from '../interfaces/pagination-context.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PaginationContextService {
|
|
4
|
+
private context;
|
|
5
|
+
constructor();
|
|
6
|
+
setContext(context: PaginationContext): void;
|
|
7
|
+
getContext(): PaginationContext | null;
|
|
8
|
+
reinitializeContext(pageSize?: number): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationContextService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaginationContextService>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ontimize-web-ngx",
|
|
3
3
|
"homepage": "https://github.com/OntimizeWeb/ontimize-web-ngx#readme",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.4.0",
|
|
5
5
|
"description": "Ontimize Web framework using Angular 15",
|
|
6
6
|
"bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
|
|
7
7
|
"author": "Imatia S.L.",
|
package/theme.scss
CHANGED
|
@@ -1146,7 +1146,6 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1146
1146
|
&.available {
|
|
1147
1147
|
&:hover {
|
|
1148
1148
|
background: mat.get-color-from-palette($background, hover, 0.12);
|
|
1149
|
-
//color: mat.get-color-from-palette($foreground, text);
|
|
1150
1149
|
}
|
|
1151
1150
|
}
|
|
1152
1151
|
|
|
@@ -1273,7 +1272,8 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1273
1272
|
|
|
1274
1273
|
}
|
|
1275
1274
|
|
|
1276
|
-
}
|
|
1275
|
+
}
|
|
1276
|
+
@mixin o-hour-input-theme($theme-or-color-config) {
|
|
1277
1277
|
$theme: map.get($theme-or-color-config, color);
|
|
1278
1278
|
$primary: map.get($theme, primary);
|
|
1279
1279
|
$background: map.get($theme, background);
|