ontimize-web-ngx 15.1.3 → 15.2.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/esm2020/lib/components/input/date-input/o-date-input.component.mjs +3 -3
- package/esm2020/lib/components/input/email-input/o-email-input.component.mjs +3 -3
- package/esm2020/lib/components/input/integer-input/o-integer-input.component.mjs +3 -3
- package/esm2020/lib/components/input/listpicker/o-list-picker-dialog.component.mjs +2 -2
- package/esm2020/lib/components/input/listpicker/o-list-picker.component.mjs +18 -8
- package/esm2020/lib/components/input/nif-input/o-nif-input.component.mjs +3 -3
- package/esm2020/lib/components/input/o-form-service-component.class.mjs +3 -3
- package/esm2020/lib/components/input/radio/o-radio.component.mjs +3 -3
- package/esm2020/lib/components/input/text-input/o-text-input.component.mjs +35 -8
- package/esm2020/lib/components/input/textarea-input/o-textarea-input.component.mjs +3 -3
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +97 -40
- package/esm2020/lib/components/table/extensions/header/table-columns-filter/columns/o-table-columns-filter-column.component.mjs +5 -3
- package/esm2020/lib/components/table/extensions/header/table-columns-filter/o-table-columns-filter.component.mjs +30 -4
- package/esm2020/lib/components/table/extensions/header/table-menu/o-table-menu.component.mjs +2 -2
- package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +13 -5
- package/esm2020/lib/components/table/o-table.component.mjs +7 -9
- package/esm2020/lib/config/o-providers.mjs +3 -2
- package/esm2020/lib/i18n/i18n.mjs +12 -3
- package/esm2020/lib/interfaces/index.mjs +2 -1
- package/esm2020/lib/interfaces/local-service.interface.mjs +2 -0
- package/esm2020/lib/services/factories.mjs +9 -1
- package/esm2020/lib/services/local-storage.service.mjs +6 -6
- package/esm2020/lib/services/ontimize-export-data-base-provider.service.mjs +42 -16
- package/esm2020/lib/types/o-inputs-options.type.mjs +1 -1
- package/fesm2015/ontimize-web-ngx.mjs +268 -103
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +266 -103
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/input/date-input/o-date-input.component.d.ts +2 -2
- package/lib/components/input/integer-input/o-integer-input.component.d.ts +2 -2
- package/lib/components/input/listpicker/o-list-picker.component.d.ts +2 -2
- package/lib/components/input/o-form-service-component.class.d.ts +1 -1
- package/lib/components/input/text-input/o-text-input.component.d.ts +12 -5
- package/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.d.ts +18 -4
- package/lib/components/table/extensions/header/table-columns-filter/columns/o-table-columns-filter-column.component.d.ts +5 -1
- package/lib/components/table/extensions/header/table-columns-filter/o-table-columns-filter.component.d.ts +4 -1
- package/lib/components/table/extensions/skeleton/o-table-skeleton.component.d.ts +6 -3
- package/lib/components/table/o-table.component.d.ts +8 -7
- package/lib/i18n/i18n.d.ts +9 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/local-service.interface.d.ts +15 -0
- package/lib/services/factories.d.ts +9 -0
- package/lib/services/local-storage.service.d.ts +3 -1
- package/lib/services/ontimize-export-data-base-provider.service.d.ts +3 -0
- package/lib/types/o-inputs-options.type.d.ts +1 -0
- package/package.json +1 -1
- package/theming/styles/ontimize-v8/containers.scss +0 -5
|
@@ -9,11 +9,11 @@ import { DateFilterFunction } from '../../../types/date-filter-function.type';
|
|
|
9
9
|
import { FormValueOptions } from '../../../types/form-value-options.type';
|
|
10
10
|
import { ODateValueType } from '../../../types/o-date-value.type';
|
|
11
11
|
import { OFormComponent } from '../../form/o-form.component';
|
|
12
|
+
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
12
13
|
import { OFormControl } from '../o-form-control.class';
|
|
13
|
-
import { OTextInputComponent } from '../text-input/o-text-input.component';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare const DEFAULT_INPUTS_O_DATE_INPUT: string[];
|
|
16
|
-
export declare class ODateInputComponent extends
|
|
16
|
+
export declare class ODateInputComponent extends OFormDataComponent implements OnDestroy, OnInit {
|
|
17
17
|
textInputEnabled: boolean;
|
|
18
18
|
protected _oformat: string;
|
|
19
19
|
protected olocale: string;
|
|
@@ -3,11 +3,11 @@ import { ValidatorFn } from '@angular/forms';
|
|
|
3
3
|
import { IIntegerPipeArgument, OIntegerPipe } from '../../../pipes/o-integer.pipe';
|
|
4
4
|
import { FormValueOptions } from '../../../types/form-value-options.type';
|
|
5
5
|
import { OFormComponent } from '../../form/o-form.component';
|
|
6
|
-
import {
|
|
6
|
+
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
type HTMLInputType = 'text' | 'number';
|
|
9
9
|
export declare const DEFAULT_INPUTS_O_INTEGER_INPUT: string[];
|
|
10
|
-
export declare class OIntegerInputComponent extends
|
|
10
|
+
export declare class OIntegerInputComponent extends OFormDataComponent implements AfterViewInit, OnInit {
|
|
11
11
|
inputType: HTMLInputType;
|
|
12
12
|
min: number;
|
|
13
13
|
max: number;
|
|
@@ -2,7 +2,6 @@ import { AfterViewInit, ElementRef, EventEmitter, Injector, OnChanges, OnInit, S
|
|
|
2
2
|
import { UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { MatInput } from '@angular/material/input';
|
|
5
|
-
import { FormValueOptions } from '../../../types/form-value-options.type';
|
|
6
5
|
import { OFormComponent } from '../../form/o-form.component';
|
|
7
6
|
import { OFormControl } from '../o-form-control.class';
|
|
8
7
|
import { OFormServiceComponent } from '../o-form-service-component.class';
|
|
@@ -48,11 +47,12 @@ export declare class OListPickerComponent extends OFormServiceComponent implemen
|
|
|
48
47
|
innerOnBlur(evt: any): void;
|
|
49
48
|
onVisibleInputChange(event: any): void;
|
|
50
49
|
onKeydownEnter(val: any): void;
|
|
51
|
-
protected setFormValue(val: any, options?: FormValueOptions, setDirty?: boolean): void;
|
|
52
50
|
protected openDialog(): void;
|
|
53
51
|
protected getDialogDataArray(dataArray: any[]): any[];
|
|
52
|
+
protected getVisibleColumnText(item: any): string;
|
|
54
53
|
registerRenderer(renderer: any): void;
|
|
55
54
|
protected setStateCtrlValue(): void;
|
|
55
|
+
syncDataIndex(queryIfNotFound?: boolean): void;
|
|
56
56
|
selectValue(): void;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<OListPickerComponent, [{ optional: true; }, null, null]>;
|
|
58
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<OListPickerComponent, "o-list-picker", never, { "filter": "filter"; "dialogWidth": "dialog-width"; "dialogHeight": "dialog-height"; "queryRows": "query-rows"; "textInputEnabled": "text-input-enabled"; "dialogDisableClose": "dialog-disable-close"; "dialogClass": "dialog-class"; }, { "onDialogAccept": "onDialogAccept"; "onDialogCancel": "onDialogCancel"; }, never, never, false, never>;
|
|
@@ -72,5 +72,5 @@ export declare class OFormServiceComponent extends OFormDataComponent {
|
|
|
72
72
|
protected sortData(data: any[]): any[];
|
|
73
73
|
refresh(): void;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<OFormServiceComponent, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OFormServiceComponent, never, never, { "staticData": "static-data"; "entity": "entity"; "service": "service"; "columns": "columns"; "valueColumn": "value-column"; "valueColumnType": "value-column-type"; "parentKeys": "parent-keys"; "visibleColumns": "visible-columns"; "descriptionColumns": "description-columns"; "separator": "separator"; "queryOnInit": "query-on-init"; "queryOnBind": "query-on-bind"; "queryOnEvent": "query-on-event"; "queryMethod": "query-method"; "serviceType": "service-type"; "queryWithNullParentKeys": "query-with-null-parent-keys"; "setValueOnValueChange": "set-value-on-value-change"; "queryFallbackFunction": "query-fallback-function"; "translate": "translate"; "sort": "sort"; }, { "
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OFormServiceComponent, never, never, { "staticData": "static-data"; "entity": "entity"; "service": "service"; "columns": "columns"; "valueColumn": "value-column"; "valueColumnType": "value-column-type"; "parentKeys": "parent-keys"; "visibleColumns": "visible-columns"; "descriptionColumns": "description-columns"; "separator": "separator"; "queryOnInit": "query-on-init"; "queryOnBind": "query-on-bind"; "queryOnEvent": "query-on-event"; "queryMethod": "query-method"; "serviceType": "service-type"; "queryWithNullParentKeys": "query-with-null-parent-keys"; "setValueOnValueChange": "set-value-on-value-change"; "queryFallbackFunction": "query-fallback-function"; "translate": "translate"; "sort": "sort"; }, { "onSetValueOnValueChange": "onSetValueOnValueChange"; "onDataLoaded": "onDataLoaded"; }, never, never, false, never>;
|
|
76
76
|
}
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import { ElementRef, Injector, OnInit, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { ValidatorFn } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
5
4
|
import { OMatPrefix } from '../../../directives/o-mat-prefix.directive';
|
|
6
5
|
import { OMatSuffix } from '../../../directives/o-mat-suffix.directive';
|
|
6
|
+
import { OFormComponent } from '../../form/o-form.component';
|
|
7
|
+
import { OFormDataComponent } from '../../o-form-data-component.class';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare const DEFAULT_INPUTS_O_TEXT_INPUT: string[];
|
|
9
|
-
export declare class OTextInputComponent extends OFormDataComponent implements OnInit {
|
|
10
|
+
export declare class OTextInputComponent extends OFormDataComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
10
11
|
_prefixChildren: QueryList<OMatPrefix>;
|
|
11
12
|
_suffixChildren: QueryList<OMatSuffix>;
|
|
13
|
+
stringCase: string;
|
|
12
14
|
protected _minLength: number;
|
|
13
15
|
protected _maxLength: number;
|
|
16
|
+
protected upperSubscription: Subscription;
|
|
14
17
|
constructor(form: OFormComponent, elRef: ElementRef, injector: Injector);
|
|
15
18
|
ngOnInit(): void;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
onFormControlChange(value: any): void;
|
|
21
|
+
protected transformStringCase(value: any): any;
|
|
16
22
|
resolveValidators(): ValidatorFn[];
|
|
17
23
|
set minLength(val: number);
|
|
18
24
|
get minLength(): number;
|
|
19
25
|
set maxLength(val: number);
|
|
20
26
|
get maxLength(): number;
|
|
27
|
+
ngOnDestroy(): void;
|
|
21
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTextInputComponent, [{ optional: true; }, null, null]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; "stringCase": "string-case"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
|
|
23
30
|
}
|
|
@@ -9,6 +9,9 @@ import { OColumnValueFilter } from '../../../../../types/table/o-column-value-fi
|
|
|
9
9
|
import { TableFilterByColumnData, TableFilterByColumnDialogResult } from '../../../../../types/table/o-table-filter-by-column-data.type';
|
|
10
10
|
import type { OColumn } from '../../../column/o-column.class';
|
|
11
11
|
import { OFilterColumn } from '../../header/table-columns-filter/columns/o-table-columns-filter-column.component';
|
|
12
|
+
import { MatRadioChange } from '@angular/material/radio';
|
|
13
|
+
import { ServiceResponse } from '../../../../../interfaces/service-response.interface';
|
|
14
|
+
import { OTableComponent } from '../../../o-table.component';
|
|
12
15
|
import * as i0 from "@angular/core";
|
|
13
16
|
export declare class OTableFilterByColumnDataDialogComponent implements AfterViewInit {
|
|
14
17
|
dialogRef: MatDialogRef<OTableFilterByColumnDataDialogComponent>;
|
|
@@ -20,21 +23,28 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
20
23
|
mode: string;
|
|
21
24
|
startView: 'month' | 'year' | 'multi-year' | '';
|
|
22
25
|
onSortFilterValuesChange: EventEmitter<OFilterColumn>;
|
|
23
|
-
private isCustomFilterSubject;
|
|
26
|
+
private readonly isCustomFilterSubject;
|
|
24
27
|
isCustomFilter: Observable<boolean>;
|
|
25
|
-
private isDefaultFilterSubject;
|
|
28
|
+
private readonly isDefaultFilterSubject;
|
|
26
29
|
isDefaultFilter: Observable<boolean>;
|
|
27
30
|
fcText: UntypedFormControl;
|
|
28
31
|
fcFrom: UntypedFormControl;
|
|
29
32
|
fcTo: UntypedFormControl;
|
|
30
33
|
protected columnData: TableFilterByColumnData[];
|
|
31
34
|
protected tableData: any[];
|
|
32
|
-
private listDataSubject;
|
|
35
|
+
private readonly listDataSubject;
|
|
33
36
|
protected _listData: Observable<TableFilterByColumnData[]>;
|
|
34
37
|
filter: ElementRef;
|
|
35
38
|
filterValueList: MatSelectionList;
|
|
36
39
|
activeSortDirection: 'asc' | 'desc' | '';
|
|
40
|
+
sourceData: any;
|
|
41
|
+
queryByFilterColumnSubscription: any;
|
|
42
|
+
table: OTableComponent;
|
|
43
|
+
showFilterValuesOption: boolean;
|
|
44
|
+
queryMethodName: string;
|
|
37
45
|
constructor(dialogRef: MatDialogRef<OTableFilterByColumnDataDialogComponent>, data: any);
|
|
46
|
+
private initialize;
|
|
47
|
+
private parseDataAndInitializeDataList;
|
|
38
48
|
ngAfterViewInit(): void;
|
|
39
49
|
get listData(): Observable<TableFilterByColumnData[]>;
|
|
40
50
|
set listData(arg: Observable<TableFilterByColumnData[]>);
|
|
@@ -46,7 +56,8 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
46
56
|
isIndeterminate(): boolean;
|
|
47
57
|
onSelect(event: MatSelectionListChange): void;
|
|
48
58
|
onSelectAllChange(event: MatCheckboxChange): void;
|
|
49
|
-
protected
|
|
59
|
+
protected parseListData(filter: OColumnValueFilter): void;
|
|
60
|
+
private addIntoColumnData;
|
|
50
61
|
getColumnValuesFilter(): OColumnValueFilter;
|
|
51
62
|
clearValues(): void;
|
|
52
63
|
onClickSortValues(): void;
|
|
@@ -61,6 +72,9 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
61
72
|
protected getFilterColumn(): OFilterColumn;
|
|
62
73
|
getStartedViewDatepicker(): string;
|
|
63
74
|
protected getTypedValue(control: UntypedFormControl): any;
|
|
75
|
+
onChangeDataSource(event: MatRadioChange): void;
|
|
76
|
+
private getData;
|
|
77
|
+
queryByFilterColumn(attr: string): Observable<ServiceResponse> | Observable<any>;
|
|
64
78
|
protected getColumnDataUsingRenderer(): any[];
|
|
65
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableFilterByColumnDataDialogComponent, never>;
|
|
66
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTableFilterByColumnDataDialogComponent, "o-table-filter-by-column-data-dialog", never, {}, {}, never, never, false, never>;
|
|
@@ -3,12 +3,16 @@ export type OFilterColumn = {
|
|
|
3
3
|
attr: string;
|
|
4
4
|
sort: 'asc' | 'desc' | '';
|
|
5
5
|
startView: 'month' | 'year' | 'multi-year' | '';
|
|
6
|
+
queryMethod?: string;
|
|
7
|
+
filterValuesInData?: 'current-page' | 'all-data';
|
|
6
8
|
};
|
|
7
9
|
export declare const DEFAULT_INPUTS_O_TABLE_COLUMN_FILTER_COLUMN: string[];
|
|
8
10
|
export declare class OTableColumnsFilterColumnComponent {
|
|
9
11
|
attr: string;
|
|
10
12
|
sort: 'asc' | 'desc' | '';
|
|
11
13
|
startView: 'month' | 'year' | 'multi-year' | '';
|
|
14
|
+
queryMethod: string;
|
|
15
|
+
filterValuesInData: 'current-page' | 'all-data';
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableColumnsFilterColumnComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnsFilterColumnComponent, "o-table-columns-filter-column", never, { "attr": "attr"; "sort": "sort"; "startView": "start-view"; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnsFilterColumnComponent, "o-table-columns-filter-column", never, { "attr": "attr"; "sort": "sort"; "startView": "start-view"; "queryMethod": "query-method"; "filterValuesInData": "filter-values-in-data"; }, {}, never, never, false, never>;
|
|
14
18
|
}
|
|
@@ -14,6 +14,7 @@ export declare class OTableColumnsFilterComponent implements OnInit {
|
|
|
14
14
|
protected _columns: string;
|
|
15
15
|
protected _mode: string;
|
|
16
16
|
preloadValues: boolean;
|
|
17
|
+
filterValuesInData: string;
|
|
17
18
|
get mode(): string;
|
|
18
19
|
set mode(val: string);
|
|
19
20
|
protected _columnsArray: Array<OFilterColumn>;
|
|
@@ -25,6 +26,8 @@ export declare class OTableColumnsFilterComponent implements OnInit {
|
|
|
25
26
|
isColumnFilterable(attr: string): boolean;
|
|
26
27
|
getSortValueOfFilterColumn(attr: string): string;
|
|
27
28
|
getStartViewValueOfFilterColumn(attr: string): string;
|
|
29
|
+
getQueryMethodOfFilterColumn(attr: string): string;
|
|
30
|
+
getFilterValuesInData(attr: string): string;
|
|
28
31
|
getColumnComparisonValue(column: OColumn, val: any): any;
|
|
29
32
|
set columns(arg: string);
|
|
30
33
|
set columnsArray(arg: OFilterColumn[]);
|
|
@@ -32,5 +35,5 @@ export declare class OTableColumnsFilterComponent implements OnInit {
|
|
|
32
35
|
parseColumns(columns: string): OFilterColumn[];
|
|
33
36
|
parseFilterColumns(columns: QueryList<OTableColumnsFilterColumnComponent>): OFilterColumn[];
|
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableColumnsFilterComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnsFilterComponent, "o-table-columns-filter", never, { "columns": "columns"; "preloadValues": "preload-values"; "mode": "mode"; }, {}, ["filterColumns"], never, false, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnsFilterComponent, "o-table-columns-filter", never, { "columns": "columns"; "preloadValues": "preload-values"; "mode": "mode"; "filterValuesInData": "filter-values-in-data"; }, {}, ["filterColumns"], never, false, never>;
|
|
36
39
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ElementRef, Injector,
|
|
1
|
+
import { ElementRef, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { OSkeletonComponent } from '../../../o-skeleton.component';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OTableSkeletonComponent extends OSkeletonComponent implements
|
|
5
|
+
export declare class OTableSkeletonComponent extends OSkeletonComponent implements OnInit {
|
|
5
6
|
protected elRef: ElementRef;
|
|
6
7
|
protected injector: Injector;
|
|
8
|
+
rows$: Observable<number[]>;
|
|
7
9
|
constructor(elRef: ElementRef, injector: Injector);
|
|
8
|
-
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
getRows(): number[];
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableSkeletonComponent, never>;
|
|
10
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTableSkeletonComponent, "o-table-skeleton", never, {}, {}, never, never, false, never>;
|
|
11
14
|
}
|
|
@@ -58,8 +58,8 @@ type DisableSelectionFunction = (item: any) => boolean;
|
|
|
58
58
|
export declare class OTableComponent extends AbstractOServiceComponent<OTableComponentStateService> implements OnInit, OnDestroy, AfterViewInit, AfterContentInit {
|
|
59
59
|
injector: Injector;
|
|
60
60
|
protected dialog: MatDialog;
|
|
61
|
-
private _viewContainerRef;
|
|
62
|
-
private appRef;
|
|
61
|
+
private readonly _viewContainerRef;
|
|
62
|
+
private readonly appRef;
|
|
63
63
|
readonly scrollStrategy: OTableVirtualScrollStrategy;
|
|
64
64
|
static DEFAULT_BASE_SIZE_SPINNER: number;
|
|
65
65
|
static FIRST_LAST_CELL_PADDING: number;
|
|
@@ -165,11 +165,11 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
165
165
|
protected selectionChangeSubscription: Subscription;
|
|
166
166
|
oTableFilterByColumnDataDialogComponent: OTableFilterByColumnDataDialogComponent;
|
|
167
167
|
oTableColumnsFilterComponent: OTableColumnsFilterComponent;
|
|
168
|
-
private showTotalsSubject;
|
|
168
|
+
private readonly showTotalsSubject;
|
|
169
169
|
showTotals: Observable<boolean>;
|
|
170
|
-
private loadingSortingSubject;
|
|
170
|
+
private readonly loadingSortingSubject;
|
|
171
171
|
protected loadingSorting: Observable<boolean>;
|
|
172
|
-
private loadingScrollSubject;
|
|
172
|
+
private readonly loadingScrollSubject;
|
|
173
173
|
loadingScroll: Observable<boolean>;
|
|
174
174
|
showLoading: Observable<boolean>;
|
|
175
175
|
oTableInsertableRowComponent: OTableInsertableRowComponent;
|
|
@@ -349,8 +349,8 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
349
349
|
isColumnFilterActive(column: OColumn): boolean;
|
|
350
350
|
openColumnFilterDialog(column: OColumn, event: Event): void;
|
|
351
351
|
storeFilterColumns(sortColumnFilter: OFilterColumn): void;
|
|
352
|
-
getStartViewFilterColumn(column: OColumn):
|
|
353
|
-
getSortFilterColumn(column: OColumn):
|
|
352
|
+
getStartViewFilterColumn(column: OColumn): 'month' | 'year' | 'multi-year' | '';
|
|
353
|
+
getSortFilterColumn(column: OColumn): 'asc' | 'desc' | '';
|
|
354
354
|
get disableTableMenuButton(): boolean;
|
|
355
355
|
get showTableMenuButton(): boolean;
|
|
356
356
|
setOTableInsertableRow(tableInsertableRow: OTableInsertableRowComponent): void;
|
|
@@ -445,6 +445,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
445
445
|
resetColumnsWidth(): void;
|
|
446
446
|
updateColumnsDOMWidth(): void;
|
|
447
447
|
isDisableCheckbox(item: any): boolean;
|
|
448
|
+
getService(): any;
|
|
448
449
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
449
450
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTableComponent, "o-table", never, { "visibleColumns": "visible-columns"; "defaultVisibleColumns": "default-visible-columns"; "sortColumns": "sort-columns"; "quickFilterCallback": "quick-filter-function"; "deleteButton": "delete-button"; "refreshButton": "refresh-button"; "columnsVisibilityButton": "columns-visibility-button"; "exportButton": "export-button"; "showConfigurationOption": "show-configuration-option"; "showButtonsText": "show-buttons-text"; "selectAllCheckbox": "select-all-checkbox"; "paginationControls": "pagination-controls"; "fixedHeader": "fixed-header"; "showTitle": "show-title"; "editionMode": "edition-mode"; "selectionMode": "selection-mode"; "horizontalScroll": "horizontal-scroll"; "showPaginatorFirstLastButtons": "show-paginator-first-last-buttons"; "autoAlignTitles": "auto-align-titles"; "multipleSort": "multiple-sort"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "orderable": "orderable"; "resizable": "resizable"; "keepSelectedItems": "keep-selected-items"; "exportMode": "export-mode"; "exportServiceType": "export-service-type"; "autoAdjust": "auto-adjust"; "showFilterOption": "show-filter-option"; "visibleExportDialogButtons": "visible-export-dialog-buttons"; "rowClass": "row-class"; "filterColumnActiveByDefault": "filter-column-active-by-default"; "groupedColumns": "grouped-columns"; "groupable": "groupable"; "expandGroupsSameLevel": "expand-groups-same-level"; "collapseGroupedColumns": "collapse-grouped-columns"; "virtualScroll": "virtual-scroll"; "contextMenu": "context-menu"; "showExpandableIconFunction": "show-expandable-icon-function"; "showReportOnDemandOption": "show-report-on-demand-option"; "showChartsOnDemandOption": "show-charts-on-demand-option"; "showResetWidthOption": "show-reset-width-option"; "disableSelectionFunction": "disable-selection-function"; "nonHidableColumns": "non-hidable-columns"; }, { "onRowSelected": "onRowSelected"; "onRowDeselected": "onRowDeselected"; "onRowDeleted": "onRowDeleted"; }, ["tableRowExpandable", "quickfilterContentChild", "tableColumnSelectAllContentChild", "contextMenuContentChild", "tableOptions", "tableButtons"], ["o-table-button", "[o-table-toolbar][position=start]", "[o-table-toolbar][position=end]", "[o-table-toolbar]", "o-table-quickfilter", "o-table-option", "o-table-export-button"], false, never>;
|
|
450
451
|
}
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -125,6 +125,9 @@ export declare const MAP: {
|
|
|
125
125
|
'TABLE.FILTER_BY_COLUMN.TO': string;
|
|
126
126
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY': string;
|
|
127
127
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY_FILTER': string;
|
|
128
|
+
'TABLE.FILTER_BY_COLUMN.LABEL_DATA': string;
|
|
129
|
+
'TABLE.FILTER_BY_COLUMN.CURRENT_PAGE': string;
|
|
130
|
+
'TABLE.FILTER_BY_COLUMN.ALL_PAGE': string;
|
|
128
131
|
'TABLE.FILTER': string;
|
|
129
132
|
'TABLE.FILTER.CASE_SENSITIVE': string;
|
|
130
133
|
'TABLE.EMPTY': string;
|
|
@@ -419,6 +422,9 @@ export declare const MAP: {
|
|
|
419
422
|
'TABLE.FILTER_BY_COLUMN.TO': string;
|
|
420
423
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY': string;
|
|
421
424
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY_FILTER': string;
|
|
425
|
+
'TABLE.FILTER_BY_COLUMN.LABEL_DATA': string;
|
|
426
|
+
'TABLE.FILTER_BY_COLUMN.CURRENT_PAGE': string;
|
|
427
|
+
'TABLE.FILTER_BY_COLUMN.ALL_PAGE': string;
|
|
422
428
|
'TABLE.FILTER': string;
|
|
423
429
|
'TABLE.FILTER.CASE_SENSITIVE': string;
|
|
424
430
|
'TABLE.EMPTY': string;
|
|
@@ -704,6 +710,9 @@ export declare const MAP: {
|
|
|
704
710
|
'TABLE.FILTER_BY_COLUMN.TO': string;
|
|
705
711
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY': string;
|
|
706
712
|
'TABLE.FILTER_BY_COLUMN.LIST_EMPTY_FILTER': string;
|
|
713
|
+
'TABLE.FILTER_BY_COLUMN.LABEL_DATA': string;
|
|
714
|
+
'TABLE.FILTER_BY_COLUMN.CURRENT_PAGE': string;
|
|
715
|
+
'TABLE.FILTER_BY_COLUMN.ALL_PAGE': string;
|
|
707
716
|
'TABLE.FILTER': string;
|
|
708
717
|
'TABLE.FILTER.CASE_SENSITIVE': string;
|
|
709
718
|
'TABLE.EMPTY': string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ILocalStorageComponent } from '../interfaces/local-storage-component.interface';
|
|
3
|
+
export interface ILocalStorageService {
|
|
4
|
+
onRouteChange: EventEmitter<any>;
|
|
5
|
+
onSetLocalStorage: EventEmitter<any>;
|
|
6
|
+
getComponentStorage(comp: ILocalStorageComponent, routeKey?: string): any;
|
|
7
|
+
updateComponentStorage(comp: ILocalStorageComponent, routeKey?: string): any;
|
|
8
|
+
updateAppComponentStorage(componentKey: string, componentData: object): any;
|
|
9
|
+
getSessionUserComponentsData(): object;
|
|
10
|
+
storeSessionUserComponentsData(componentsData: object): any;
|
|
11
|
+
getStoredData(): object;
|
|
12
|
+
setBackwardCompatibility(): any;
|
|
13
|
+
setLocalStorage(appData: any): any;
|
|
14
|
+
removeStoredData(): any;
|
|
15
|
+
}
|
|
@@ -12,9 +12,12 @@ import { OntimizeExportDataProviderService } from './ontimize-export-data-provid
|
|
|
12
12
|
import { OntimizeExportService } from './ontimize/ontimize-export.service';
|
|
13
13
|
import { OntimizeService } from './ontimize/ontimize.service';
|
|
14
14
|
import { AbstractComponentStateService, DefaultComponentStateService } from './state/o-component-state.service';
|
|
15
|
+
import { LocalStorageService } from './local-storage.service';
|
|
16
|
+
import { ILocalStorageService } from '../interfaces/local-service.interface';
|
|
15
17
|
export declare const O_DATA_SERVICE: InjectionToken<unknown>;
|
|
16
18
|
export declare const O_TRANSLATE_SERVICE: InjectionToken<unknown>;
|
|
17
19
|
export declare const O_FILE_SERVICE: InjectionToken<IFileService>;
|
|
20
|
+
export declare const O_LOCALSTORAGE_SERVICE: InjectionToken<ILocalStorageService>;
|
|
18
21
|
export declare const O_EXPORT_SERVICE: InjectionToken<IExportService>;
|
|
19
22
|
export declare const O_PERMISSION_SERVICE: InjectionToken<IPermissionsService>;
|
|
20
23
|
export declare const O_AUTH_SERVICE: InjectionToken<AuthService>;
|
|
@@ -27,6 +30,7 @@ export declare const O_MAT_ERROR_OPTIONS: InjectionToken<OMatErrorOptions>;
|
|
|
27
30
|
export declare const O_FORM_MESSAGE_SERVICE: InjectionToken<unknown>;
|
|
28
31
|
export declare function dataServiceFactory(injector: Injector): any;
|
|
29
32
|
export declare function fileServiceFactory(injector: Injector): IFileService;
|
|
33
|
+
export declare function localStorageServiceFactory(injector: Injector): ILocalStorageService;
|
|
30
34
|
export declare function exportServiceFactory(injector: Injector): IExportService;
|
|
31
35
|
export declare function exportDataFactory(injector: Injector): IExportDataProvider;
|
|
32
36
|
export declare function permissionsServiceFactory(injector: Injector): IPermissionsService;
|
|
@@ -57,4 +61,9 @@ export declare const ExportDataServiceProvider: {
|
|
|
57
61
|
useFactory: typeof exportDataFactory;
|
|
58
62
|
deps: (typeof Injector)[];
|
|
59
63
|
};
|
|
64
|
+
export declare const OntimizeLocalStorageServiceProvider: {
|
|
65
|
+
provide: typeof LocalStorageService;
|
|
66
|
+
useFactory: typeof localStorageServiceFactory;
|
|
67
|
+
deps: (typeof Injector)[];
|
|
68
|
+
};
|
|
60
69
|
export declare function _getInjectionTokenValue<T>(token: InjectionToken<T>, injector: Injector): T;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
import { ILocalStorageComponent } from '../interfaces/local-storage-component.interface';
|
|
3
|
+
import { ILocalStorageService } from '../interfaces/local-service.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LocalStorageService {
|
|
5
|
+
export declare class LocalStorageService implements ILocalStorageService {
|
|
5
6
|
protected injector: Injector;
|
|
6
7
|
static COMPONENTS_STORAGE_KEY: string;
|
|
7
8
|
static USERS_STORAGE_KEY: string;
|
|
@@ -22,6 +23,7 @@ export declare class LocalStorageService {
|
|
|
22
23
|
getStoredData(): object;
|
|
23
24
|
setBackwardCompatibility(): void;
|
|
24
25
|
setLocalStorage(appData: any): void;
|
|
26
|
+
removeStoredData(): void;
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
26
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
27
29
|
}
|
|
@@ -14,6 +14,9 @@ export declare class OntimizeExportDataBaseProviderService {
|
|
|
14
14
|
constructor(injector: Injector);
|
|
15
15
|
initializeProvider(table: OTableBase): void;
|
|
16
16
|
protected getFilterWithBasicExpression(): any;
|
|
17
|
+
private applyParentItemExpression;
|
|
18
|
+
private applyColumnFilters;
|
|
19
|
+
private applyQuickAndBuilderFilters;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeExportDataBaseProviderService, never>;
|
|
18
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeExportDataBaseProviderService>;
|
|
19
22
|
}
|
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.1
|
|
4
|
+
"version": "15.2.1",
|
|
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.",
|