ontimize-web-ngx 15.6.0-next.0 → 15.6.0-next.10
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/app-header/o-app-header.component.mjs +3 -3
- package/esm2020/lib/components/app-sidenav/menu-group/o-app-sidenav-menu-group.component.mjs +19 -3
- package/esm2020/lib/components/app-sidenav/menu-item/o-app-sidenav-menu-item.component.mjs +17 -4
- package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +7 -5
- package/esm2020/lib/components/filter-builder/o-filter-builder.component.mjs +1 -1
- package/esm2020/lib/components/form/navigation/o-form-navigation.component.mjs +42 -24
- package/esm2020/lib/components/form/o-form.component.mjs +4 -3
- package/esm2020/lib/components/form/services/o-form-message.service.mjs +2 -2
- package/esm2020/lib/components/grid/o-grid.component.mjs +19 -17
- package/esm2020/lib/components/grid/skeketon/o-grid-skeleton.component.mjs +12 -15
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/components/input/file-input/o-file-input.component.mjs +3 -2
- package/esm2020/lib/components/input/o-boolean-form-data-component.class.mjs +9 -1
- package/esm2020/lib/components/input/o-form-service-component.class.mjs +5 -4
- package/esm2020/lib/components/list/list-item/o-list-item.component.mjs +8 -3
- package/esm2020/lib/components/list/o-list.component.mjs +41 -16
- package/esm2020/lib/components/list/skeleton/o-list-skeleton.component.mjs +12 -15
- package/esm2020/lib/components/o-form-data-component.class.mjs +2 -2
- package/esm2020/lib/components/o-repeatable-skeleton.component.mjs +33 -0
- package/esm2020/lib/components/o-service-base-component.class.mjs +5 -4
- package/esm2020/lib/components/o-service-component.class.mjs +10 -9
- package/esm2020/lib/components/o-skeleton.component.mjs +15 -6
- package/esm2020/lib/components/table/column/cell-editor/o-base-table-cell-editor.class.mjs +2 -2
- package/esm2020/lib/components/table/column/cell-renderer/o-base-table-cell-renderer.class.mjs +1 -1
- package/esm2020/lib/components/table/column/cell-renderer/service/o-table-cell-renderer-service.component.mjs +5 -4
- package/esm2020/lib/components/table/column/o-column.class.mjs +2 -1
- package/esm2020/lib/components/table/column/o-table-column.component.mjs +10 -4
- package/esm2020/lib/components/table/extensions/contextmenu/o-table-context-menu.component.mjs +24 -6
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +75 -87
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column.service.mjs +53 -0
- package/esm2020/lib/components/table/extensions/header/table-columns-filter/o-table-columns-filter.component.mjs +12 -4
- package/esm2020/lib/components/table/extensions/header/table-menu/o-table-menu.component.mjs +2 -2
- package/esm2020/lib/components/table/extensions/o-table.dao.mjs +14 -14
- package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +5 -19
- package/esm2020/lib/components/table/o-table-base.class.mjs +1 -1
- package/esm2020/lib/components/table/o-table.component.mjs +104 -10
- package/esm2020/lib/components/table/o-table.module.mjs +4 -1
- package/esm2020/lib/components/tree/o-tree.component.mjs +96 -14
- package/esm2020/lib/components/tree/o-tree.datasource.mjs +3 -3
- package/esm2020/lib/components/user-info/o-user-info.component.mjs +5 -4
- package/esm2020/lib/config/app-config.mjs +1 -1
- package/esm2020/lib/config/o-providers.mjs +6 -6
- package/esm2020/lib/i18n/i18n.mjs +6 -3
- package/esm2020/lib/injection-tokens/index.mjs +19 -0
- package/esm2020/lib/interfaces/base-response.interface.mjs +1 -1
- package/esm2020/lib/interfaces/form-layout-manager.interface.mjs +1 -1
- package/esm2020/lib/interfaces/index.mjs +3 -1
- package/esm2020/lib/interfaces/jsonapi-config.interface.mjs +3 -0
- package/esm2020/lib/interfaces/jsonapi-response.interface.mjs +2 -1
- package/esm2020/lib/interfaces/o-table-column.interface.mjs +1 -1
- package/esm2020/lib/interfaces/service-response.interface.mjs +1 -1
- package/esm2020/lib/layouts/app-layout/o-app-layout-base.class.mjs +1 -1
- package/esm2020/lib/layouts/app-layout/o-app-layout.component.mjs +26 -9
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +4 -3
- package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +2 -2
- package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +2 -1
- package/esm2020/lib/services/base-data-service.class.mjs +2 -1
- package/esm2020/lib/services/base-service.class.mjs +3 -3
- package/esm2020/lib/services/factories.mjs +26 -54
- package/esm2020/lib/services/index.mjs +3 -2
- package/esm2020/lib/services/jsonapi/jsonapi-preferences.service.mjs +16 -14
- package/esm2020/lib/services/jsonapi/jsonapi.service.mjs +54 -23
- package/esm2020/lib/services/ontimize/index.mjs +1 -2
- package/esm2020/lib/services/ontimize/ontimize-ee.service.mjs +1 -5
- package/esm2020/lib/services/ontimize/ontimize-export-3xx.service.mjs +2 -2
- package/esm2020/lib/services/ontimize/ontimize-preferences.service.mjs +4 -6
- package/esm2020/lib/services/request-adapter/base-request-argument.adapter.mjs +12 -0
- package/esm2020/lib/services/request-adapter/base-request-argument.interface.mjs +2 -0
- package/esm2020/lib/services/request-adapter/index.mjs +5 -0
- package/esm2020/lib/services/request-adapter/jsonapi-request-arguments.adapter.mjs +70 -0
- package/esm2020/lib/services/request-adapter/ontimize-request-arguments.adapter.mjs +19 -0
- package/esm2020/lib/services/state/o-filter-builder-component-state.service.mjs +1 -1
- package/esm2020/lib/services/state/o-table-component-state.class.mjs +7 -1
- package/esm2020/lib/services/state/o-table-component-state.service.mjs +8 -2
- package/esm2020/lib/services/translate/o-translate.service.mjs +8 -4
- package/esm2020/lib/types/config.type.mjs +1 -1
- package/esm2020/lib/types/form-layout-detail-component-data.type.mjs +1 -1
- package/esm2020/lib/types/index.mjs +1 -2
- package/esm2020/lib/types/service-configuration.type.mjs +1 -1
- package/esm2020/lib/types/table/index.mjs +2 -1
- package/esm2020/lib/types/table/o-column-value-filter.type.mjs +1 -1
- package/esm2020/lib/types/table/o-table-expandable-row-state.type.mjs +2 -0
- package/esm2020/lib/util/codes.mjs +3 -1
- package/esm2020/lib/util/errors.mjs +3 -9
- package/esm2020/lib/util/factory.util.mjs +67 -0
- package/esm2020/lib/util/index.mjs +3 -1
- package/esm2020/lib/util/injection-token.utils.mjs +4 -0
- package/esm2020/lib/util/preference-mapping-util.mjs +22 -7
- package/esm2020/lib/util/sqltypes.mjs +2 -2
- package/esm2020/lib/util/util.mjs +11 -38
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ontimize-web-ngx.mjs +6801 -6332
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +6660 -6211
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/app-sidenav/menu-group/o-app-sidenav-menu-group.component.d.ts +3 -0
- package/lib/components/app-sidenav/menu-item/o-app-sidenav-menu-item.component.d.ts +1 -0
- package/lib/components/app-sidenav/o-app-sidenav.component.d.ts +2 -1
- package/lib/components/filter-builder/o-filter-builder.component.d.ts +1 -1
- package/lib/components/form/navigation/o-form-navigation.component.d.ts +7 -4
- package/lib/components/grid/skeketon/o-grid-skeleton.component.d.ts +4 -7
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input/o-boolean-form-data-component.class.d.ts +1 -0
- package/lib/components/list/o-list.component.d.ts +5 -1
- package/lib/components/list/skeleton/o-list-skeleton.component.d.ts +4 -7
- package/lib/components/o-repeatable-skeleton.component.d.ts +9 -0
- package/lib/components/o-skeleton.component.d.ts +10 -5
- package/lib/components/table/column/cell-renderer/o-base-table-cell-renderer.class.d.ts +1 -1
- package/lib/components/table/column/o-column.class.d.ts +2 -1
- package/lib/components/table/column/o-table-column.component.d.ts +2 -2
- package/lib/components/table/extensions/contextmenu/o-table-context-menu.component.d.ts +2 -0
- package/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.d.ts +9 -6
- package/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column.service.d.ts +12 -0
- package/lib/components/table/extensions/header/o-table-header-components.d.ts +2 -2
- package/lib/components/table/extensions/header/table-columns-filter/o-table-columns-filter.component.d.ts +1 -1
- package/lib/components/table/extensions/o-table.dao.d.ts +3 -2
- package/lib/components/table/extensions/skeleton/o-table-skeleton.component.d.ts +1 -10
- package/lib/components/table/o-table-base.class.d.ts +3 -0
- package/lib/components/table/o-table.component.d.ts +12 -2
- package/lib/components/tree/o-tree.component.d.ts +10 -1
- package/lib/components/user-info/o-user-info.component.d.ts +2 -1
- package/lib/config/app-config.d.ts +1 -1
- package/lib/config/o-directives.d.ts +1 -1
- package/lib/i18n/i18n.d.ts +3 -0
- package/lib/injection-tokens/index.d.ts +33 -0
- package/lib/interfaces/base-response.interface.d.ts +0 -2
- package/lib/interfaces/form-layout-manager.interface.d.ts +1 -1
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/jsonapi-config.interface.d.ts +3 -0
- package/lib/interfaces/jsonapi-response.interface.d.ts +47 -7
- package/lib/interfaces/o-table-column.interface.d.ts +2 -1
- package/lib/interfaces/service-response.interface.d.ts +2 -0
- package/lib/layouts/app-layout/o-app-layout-base.class.d.ts +1 -1
- package/lib/layouts/app-layout/o-app-layout.component.d.ts +7 -3
- package/lib/services/base-data-service.class.d.ts +1 -0
- package/lib/services/base-service.class.d.ts +2 -2
- package/lib/services/factories.d.ts +10 -31
- package/lib/services/index.d.ts +2 -1
- package/lib/services/jsonapi/jsonapi-preferences.service.d.ts +1 -1
- package/lib/services/jsonapi/jsonapi.service.d.ts +7 -5
- package/lib/services/ontimize/index.d.ts +0 -1
- package/lib/services/ontimize/ontimize-ee.service.d.ts +0 -1
- package/lib/services/{query-arguments/base-query-argument.adapter.d.ts → request-adapter/base-request-argument.adapter.d.ts} +2 -1
- package/lib/services/{query-arguments/base-query-argument.interface.d.ts → request-adapter/base-request-argument.interface.d.ts} +1 -1
- package/lib/services/request-adapter/index.d.ts +4 -0
- package/lib/services/request-adapter/jsonapi-request-arguments.adapter.d.ts +13 -0
- package/lib/services/request-adapter/ontimize-request-arguments.adapter.d.ts +8 -0
- package/lib/services/state/o-filter-builder-component-state.service.d.ts +1 -1
- package/lib/services/state/o-table-component-state.class.d.ts +3 -0
- package/lib/services/translate/o-translate.service.d.ts +1 -0
- package/lib/types/config.type.d.ts +2 -2
- package/lib/types/form-layout-detail-component-data.type.d.ts +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/service-configuration.type.d.ts +12 -2
- package/lib/types/table/index.d.ts +1 -0
- package/lib/types/table/o-column-value-filter.type.d.ts +3 -0
- package/lib/types/table/o-table-expandable-row-state.type.d.ts +5 -0
- package/lib/util/codes.d.ts +3 -0
- package/lib/util/factory.util.d.ts +10 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/injection-token.utils.d.ts +2 -0
- package/lib/util/preference-mapping-util.d.ts +22 -3
- package/lib/util/util.d.ts +1 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2020/lib/services/ontimize/o-preference-query-argument.adapter.mjs +0 -17
- package/esm2020/lib/services/query-arguments/base-query-argument.adapter.mjs +0 -9
- package/esm2020/lib/services/query-arguments/base-query-argument.interface.mjs +0 -2
- package/esm2020/lib/services/query-arguments/index.mjs +0 -5
- package/esm2020/lib/services/query-arguments/jsonapi-query-arguments.adapter.mjs +0 -63
- package/esm2020/lib/services/query-arguments/ontimize-query-arguments.adapter.mjs +0 -19
- package/esm2020/lib/types/ontimize-service-config.type.mjs +0 -2
- package/lib/services/ontimize/o-preference-query-argument.adapter.d.ts +0 -7
- package/lib/services/query-arguments/index.d.ts +0 -4
- package/lib/services/query-arguments/jsonapi-query-arguments.adapter.d.ts +0 -12
- package/lib/services/query-arguments/ontimize-query-arguments.adapter.d.ts +0 -8
- package/lib/types/ontimize-service-config.type.d.ts +0 -5
|
@@ -7,6 +7,7 @@ import { PermissionsService } from '../../../services/permissions/permissions.se
|
|
|
7
7
|
import { OTranslateService } from '../../../services/translate/o-translate.service';
|
|
8
8
|
import { OPermissions } from '../../../types/o-permissions.type';
|
|
9
9
|
import { OAppSidenavBase } from '../o-app-sidenav-base.class';
|
|
10
|
+
import { OAppLayoutBase } from '../../../layouts/app-layout/o-app-layout-base.class';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare const DEFAULT_INPUTS_O_APP_SIDENAV_MENU_GROUP: string[];
|
|
12
13
|
export declare const DEFAULT_OUTPUTS_O_APP_SIDENAV_MENU_GROUP: string[];
|
|
@@ -32,8 +33,10 @@ export declare class OAppSidenavMenuGroupComponent implements OnInit, AfterViewI
|
|
|
32
33
|
protected router: Router;
|
|
33
34
|
routerSubscription: Subscription;
|
|
34
35
|
active: boolean;
|
|
36
|
+
oAppLayoutComponent: OAppLayoutBase;
|
|
35
37
|
constructor(injector: Injector, elRef: ElementRef, cd: ChangeDetectorRef);
|
|
36
38
|
ngOnInit(): void;
|
|
39
|
+
get shouldShowTooltip(): boolean;
|
|
37
40
|
ngAfterViewInit(): void;
|
|
38
41
|
ngOnDestroy(): void;
|
|
39
42
|
protected parsePermissions(): void;
|
|
@@ -40,6 +40,7 @@ export declare class OAppSidenavMenuItemComponent implements OnInit, AfterViewIn
|
|
|
40
40
|
active: boolean;
|
|
41
41
|
constructor(injector: Injector, elRef: ElementRef, cd: ChangeDetectorRef);
|
|
42
42
|
ngOnInit(): void;
|
|
43
|
+
get shouldShowTooltip(): boolean;
|
|
43
44
|
ngAfterViewInit(): void;
|
|
44
45
|
ngOnDestroy(): void;
|
|
45
46
|
protected parsePermissions(): void;
|
|
@@ -24,6 +24,7 @@ export declare class OAppSidenavComponent extends OAppSidenavComponentStateServi
|
|
|
24
24
|
protected _layoutMode: OAppLayoutMode;
|
|
25
25
|
protected _sidenavMode: OSidenavMode;
|
|
26
26
|
protected opened: boolean;
|
|
27
|
+
showEllipsisMenu: boolean;
|
|
27
28
|
_showUserInfo: boolean;
|
|
28
29
|
_showToggleButton: boolean;
|
|
29
30
|
openedSidenavImg: string;
|
|
@@ -73,5 +74,5 @@ export declare class OAppSidenavComponent extends OAppSidenavComponentStateServi
|
|
|
73
74
|
sidenavOpenedStart(): void;
|
|
74
75
|
sidenavOpenedChange(): void;
|
|
75
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<OAppSidenavComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OAppSidenavComponent, "o-app-sidenav", never, { "opened": "opened"; "showUserInfo": "show-user-info"; "showToggleButton": "show-toggle-button"; "openedSidenavImg": "opened-sidenav-image"; "closedSidenavImg": "closed-sidenav-image"; "layoutMode": "layout-mode"; "sidenavMode": "sidenav-mode"; "storeState": "store-state"; }, { "onSidenavOpenedChange": "onSidenavOpenedChange"; "onSidenavOpenedStart": "onSidenavOpenedStart"; "onSidenavClosedStart": "onSidenavClosedStart"; "onSidenavToggle": "onSidenavToggle"; "afterSidenavToggle": "afterSidenavToggle"; }, never, ["o-app-layout-sidenav-projection-start", "o-app-layout-sidenav-projection-end", "*"], false, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OAppSidenavComponent, "o-app-sidenav", never, { "opened": "opened"; "showUserInfo": "show-user-info"; "showToggleButton": "show-toggle-button"; "openedSidenavImg": "opened-sidenav-image"; "closedSidenavImg": "closed-sidenav-image"; "layoutMode": "layout-mode"; "sidenavMode": "sidenav-mode"; "storeState": "store-state"; "showEllipsisMenu": "show-ellipsis-menu"; }, { "onSidenavOpenedChange": "onSidenavOpenedChange"; "onSidenavOpenedStart": "onSidenavOpenedStart"; "onSidenavClosedStart": "onSidenavClosedStart"; "onSidenavToggle": "onSidenavToggle"; "afterSidenavToggle": "afterSidenavToggle"; }, never, ["o-app-layout-sidenav-projection-start", "o-app-layout-sidenav-projection-end", "*"], false, never>;
|
|
77
78
|
}
|
|
@@ -7,11 +7,11 @@ import { IServiceDataComponent } from '../../interfaces/service-data-component.i
|
|
|
7
7
|
import { LocalStorageService } from '../../services/local-storage.service';
|
|
8
8
|
import { OFilterBuilderComponentStateClass } from '../../services/state/o-filter-builder-component-state.class';
|
|
9
9
|
import { OFilterBuilderComponentStateService } from '../../services/state/o-filter-builder-component-state.service';
|
|
10
|
-
import { OFilterDefinition } from '../../types';
|
|
11
10
|
import { BasicExpression } from '../../types/basic-expression.type';
|
|
12
11
|
import { Expression } from '../../types/expression.type';
|
|
13
12
|
import { OFilterBuilderValues } from '../../types/o-filter-builder-values.type';
|
|
14
13
|
import { CHANGE_EVENTS } from '../../util/codes';
|
|
14
|
+
import { OFilterDefinition } from '../../types/o-filter-definition.type';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
export declare const DEFAULT_INPUTS_O_FILTER_BUILDER: string[];
|
|
17
17
|
export declare const DEFAULT_OUTPUTS_O_FILTER_BUILDER: string[];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
+
import { ServiceResponse } from '../../../interfaces/service-response.interface';
|
|
4
5
|
import { OFormLayoutManagerBase } from '../../../layouts/form-layout/o-form-layout-manager-base.class';
|
|
6
|
+
import { BaseService } from '../../../services/base-service.class';
|
|
5
7
|
import { NavigationService } from '../../../services/navigation.service';
|
|
8
|
+
import { OQueryParams } from '../../../types/query-params.type';
|
|
6
9
|
import { OFormBase } from '../o-form-base.class';
|
|
7
10
|
import { OFormNavigationClass } from './o-form.navigation.class';
|
|
8
|
-
import { BaseService } from '../../../services/base-service.class';
|
|
9
|
-
import { ServiceResponse } from '../../../interfaces/service-response.interface';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export type QueryConfiguration = {
|
|
12
13
|
serviceType: string;
|
|
13
|
-
queryArguments:
|
|
14
|
+
queryArguments: OQueryParams;
|
|
14
15
|
entity: string;
|
|
15
16
|
service: string;
|
|
16
17
|
queryMethod: string;
|
|
@@ -32,7 +33,8 @@ export declare class OFormNavigationComponent implements OnDestroy {
|
|
|
32
33
|
protected queryConf: QueryConfiguration;
|
|
33
34
|
constructor(injector: Injector, _form: OFormBase, router: Router);
|
|
34
35
|
configureService(): void;
|
|
35
|
-
|
|
36
|
+
getQueryArguments(offset: number, length: number): OQueryParams;
|
|
37
|
+
protected queryNavigationData(offset: number, length?: number): Promise<void>;
|
|
36
38
|
ngOnDestroy(): void;
|
|
37
39
|
protected getKeysArray(): string[];
|
|
38
40
|
getCurrentIndex(): number;
|
|
@@ -40,6 +42,7 @@ export declare class OFormNavigationComponent implements OnDestroy {
|
|
|
40
42
|
previous(): void;
|
|
41
43
|
first(): void;
|
|
42
44
|
last(): void;
|
|
45
|
+
private moveToLast;
|
|
43
46
|
isFirst(): boolean;
|
|
44
47
|
isLast(): boolean;
|
|
45
48
|
move(index: number): void;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OSkeletonComponent } from '../../o-skeleton.component';
|
|
1
|
+
import { ORepeatableSkeletonComponent } from '../../o-repeatable-skeleton.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OGridSkeletonComponent extends
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(elRef: ElementRef, injector: Injector);
|
|
8
|
-
get count(): any[];
|
|
3
|
+
export declare class OGridSkeletonComponent extends ORepeatableSkeletonComponent {
|
|
4
|
+
getParentElement(): HTMLElement;
|
|
5
|
+
getSkeletonItemElement(parentElement: HTMLElement): HTMLElement;
|
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<OGridSkeletonComponent, never>;
|
|
10
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<OGridSkeletonComponent, "o-grid-skeleton", never, {}, {}, never, never, false, never>;
|
|
11
8
|
}
|
|
@@ -41,4 +41,5 @@ export * from './expandable-container/o-expandable-container.component';
|
|
|
41
41
|
export * from './expandable-container/o-expandable-container.module';
|
|
42
42
|
export * from './tree/index';
|
|
43
43
|
export * from './o-skeleton.component';
|
|
44
|
+
export * from './o-repeatable-skeleton.component';
|
|
44
45
|
export * from './user-info/o-user-info-base.class';
|
|
@@ -15,6 +15,7 @@ export declare class OBooleanFormDataComponent extends OFormDataComponent {
|
|
|
15
15
|
protected parseNumberInputs(): void;
|
|
16
16
|
protected parseInputs(): void;
|
|
17
17
|
onClickBlocker(evt: Event): void;
|
|
18
|
+
getValue(): any;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<OBooleanFormDataComponent, [{ optional: true; }, null, null]>;
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OBooleanFormDataComponent, never, never, { "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; }, {}, never, never, false, never>;
|
|
20
21
|
}
|
|
@@ -20,6 +20,7 @@ export declare const DEFAULT_INPUTS_O_LIST: string[];
|
|
|
20
20
|
export declare const DEFAULT_OUTPUTS_O_LIST: string[];
|
|
21
21
|
export declare class OListComponent extends AbstractOServiceComponent<OListComponentStateService> implements IList, AfterContentInit, AfterViewInit, OnDestroy, OnInit, OnChanges {
|
|
22
22
|
listItemDirectives: QueryList<OListItemDirective>;
|
|
23
|
+
toolbarEl: ElementRef;
|
|
23
24
|
refreshButton: boolean;
|
|
24
25
|
selectable: boolean;
|
|
25
26
|
deleteButton: boolean;
|
|
@@ -42,7 +43,10 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
|
|
|
42
43
|
keysSqlTypesArray: Array<string>;
|
|
43
44
|
protected oMatSort: OMatSort;
|
|
44
45
|
protected actionsPermissions: OPermissions[];
|
|
46
|
+
onItemSelected: EventEmitter<any[]>;
|
|
47
|
+
onItemDeselected: EventEmitter<any[]>;
|
|
45
48
|
constructor(injector: Injector, elRef: ElementRef, form: OFormComponent);
|
|
49
|
+
get toolBarHeight(): number;
|
|
46
50
|
get state(): OListComponentStateClass;
|
|
47
51
|
ngOnInit(): void;
|
|
48
52
|
ngAfterViewInit(): void;
|
|
@@ -73,5 +77,5 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
|
|
|
73
77
|
updateSelectedItems(): void;
|
|
74
78
|
getSqlTypes(): any;
|
|
75
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<OListComponent, [null, null, { optional: true; }]>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OListComponent, "o-list", never, { "quickFilterColumns": "quick-filter-columns"; "refreshButton": "refresh-button"; "route": "route"; "selectable": "selectable"; "deleteButton": "delete-button"; "sortColumns": "sort-columns"; "insertButtonPosition": "insert-button-position"; "insertButtonFloatable": "insert-button-floatable"; "showButtonsText": "show-buttons-text"; "keysSqlTypes": "keys-sql-types"; }, { "onInsertButtonClick": "onInsertButtonClick"; "onItemDeleted": "onItemDeleted"; }, ["listItemDirectives"], ["[o-list-toolbar][position=start]", "[o-list-toolbar][position=end]", "[o-list-toolbar]", "*"], false, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OListComponent, "o-list", never, { "quickFilterColumns": "quick-filter-columns"; "refreshButton": "refresh-button"; "route": "route"; "selectable": "selectable"; "deleteButton": "delete-button"; "sortColumns": "sort-columns"; "insertButtonPosition": "insert-button-position"; "insertButtonFloatable": "insert-button-floatable"; "showButtonsText": "show-buttons-text"; "keysSqlTypes": "keys-sql-types"; }, { "onInsertButtonClick": "onInsertButtonClick"; "onItemDeleted": "onItemDeleted"; "onItemSelected": "onItemSelected"; "onItemDeselected": "onItemDeselected"; }, ["listItemDirectives"], ["[o-list-toolbar][position=start]", "[o-list-toolbar][position=end]", "[o-list-toolbar]", "*"], false, never>;
|
|
77
81
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OSkeletonComponent } from '../../o-skeleton.component';
|
|
1
|
+
import { ORepeatableSkeletonComponent } from '../../o-repeatable-skeleton.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OListSkeletonComponent extends
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(elRef: ElementRef, injector: Injector);
|
|
8
|
-
get count(): any[];
|
|
3
|
+
export declare class OListSkeletonComponent extends ORepeatableSkeletonComponent {
|
|
4
|
+
getParentElement(): HTMLElement;
|
|
5
|
+
getSkeletonItemElement(parentElement: HTMLElement): HTMLElement;
|
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<OListSkeletonComponent, never>;
|
|
10
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<OListSkeletonComponent, "o-list-skeleton", never, {}, {}, never, never, false, never>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OSkeletonComponent } from './o-skeleton.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class ORepeatableSkeletonComponent extends OSkeletonComponent {
|
|
4
|
+
abstract getParentElement(): HTMLElement;
|
|
5
|
+
abstract getSkeletonItemElement(parentElement: HTMLElement): HTMLElement;
|
|
6
|
+
getRows(): number[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ORepeatableSkeletonComponent, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ORepeatableSkeletonComponent, never, never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { Injector, OnDestroy } from
|
|
2
|
-
import { Subscription } from
|
|
3
|
-
import { AppearanceService } from
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { AppearanceService } from '../services/appearance.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class OSkeletonComponent implements OnDestroy {
|
|
5
|
+
export declare abstract class OSkeletonComponent implements AfterViewInit, OnDestroy {
|
|
6
6
|
protected injector: Injector;
|
|
7
|
+
protected elRef: ElementRef;
|
|
7
8
|
isDarkMode: boolean;
|
|
8
9
|
subscription: Subscription;
|
|
9
10
|
appearanceService: AppearanceService;
|
|
10
|
-
|
|
11
|
+
rows$: Observable<number[]>;
|
|
12
|
+
private readonly cd;
|
|
13
|
+
constructor(injector: Injector, elRef: ElementRef);
|
|
14
|
+
ngAfterViewInit(): void;
|
|
11
15
|
ngOnDestroy(): void;
|
|
16
|
+
abstract getRows(): number[];
|
|
12
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<OSkeletonComponent, never>;
|
|
13
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OSkeletonComponent, never, never, {}, {}, never, never, false, never>;
|
|
14
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, Injector, OnInit, PipeTransform, TemplateRef } from '@angular/core';
|
|
2
2
|
import { OTableColumn } from '../../../../interfaces/o-table-column.interface';
|
|
3
3
|
import { Expression } from '../../../../types/expression.type';
|
|
4
|
-
import { OTableComponent } from '../../o-table.component';
|
|
4
|
+
import type { OTableComponent } from '../../o-table.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const DEFAULT_INPUTS_O_BASE_TABLE_CELL_RENDERER: string[];
|
|
7
7
|
export declare class OBaseTableCellRenderer implements OnInit, AfterContentInit {
|
|
@@ -5,7 +5,7 @@ import { Expression } from '../../../types/expression.type';
|
|
|
5
5
|
import { OperatorFunction } from '../../../types/operation-function.type';
|
|
6
6
|
import { OColumnAggregate } from '../../../types/table/o-column-aggregate.type';
|
|
7
7
|
import { OColumnTooltip } from '../../../types/table/o-column-tooltip.type';
|
|
8
|
-
import { OBaseTableCellRenderer } from './cell-renderer/o-base-table-cell-renderer.class';
|
|
8
|
+
import type { OBaseTableCellRenderer } from './cell-renderer/o-base-table-cell-renderer.class';
|
|
9
9
|
export declare class OColumn {
|
|
10
10
|
attr: string;
|
|
11
11
|
name: string;
|
|
@@ -30,6 +30,7 @@ export declare class OColumn {
|
|
|
30
30
|
tooltip: OColumnTooltip;
|
|
31
31
|
resizable: boolean;
|
|
32
32
|
DOMWidth: number;
|
|
33
|
+
valueColumn: string;
|
|
33
34
|
filterExpressionFunction: (columnAttr: string, quickFilter?: string) => Expression;
|
|
34
35
|
private multilineSubject;
|
|
35
36
|
isMultiline: Observable<boolean>;
|
|
@@ -34,6 +34,7 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
|
|
|
34
34
|
tooltipValue: string;
|
|
35
35
|
tooltipFunction: (rowData: any) => any;
|
|
36
36
|
class: string;
|
|
37
|
+
valueColumn: string;
|
|
37
38
|
set multiline(val: boolean);
|
|
38
39
|
get multiline(): boolean;
|
|
39
40
|
protected _multiline: boolean;
|
|
@@ -65,7 +66,6 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
|
|
|
65
66
|
protected entity: string;
|
|
66
67
|
protected service: string;
|
|
67
68
|
protected columns: string;
|
|
68
|
-
protected valueColumn: string;
|
|
69
69
|
protected parentKeys: string;
|
|
70
70
|
protected queryMethod: string;
|
|
71
71
|
protected serviceType: string;
|
|
@@ -126,5 +126,5 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
|
|
|
126
126
|
set filterSource(val: string);
|
|
127
127
|
get filterSource(): string;
|
|
128
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableColumnComponent, never>;
|
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnComponent, "o-table-column", never, { "attr": "attr"; "title": "title"; "titleAlign": "title-align"; "contentAlign": "content-align"; "orderable": "orderable"; "searchable": "searchable"; "groupable": "groupable"; "type": "type"; "editable": "editable"; "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "asyncLoad": "async-load"; "sqlType": "sql-type"; "tooltip": "tooltip"; "tooltipValue": "tooltip-value"; "tooltipFunction": "tooltip-function"; "multiline": "multiline"; "resizable": "resizable"; "filterExpressionFunction": "filter-expression-function"; "class": "class"; "angularValidatorsFn": "validators"; "angularValidatorsFnErrors": "validators-errors"; "angularAsyncValidatorsFn": "async-validators"; "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; "renderTrueValue": "render-true-value"; "renderFalseValue": "render-false-value"; "renderType": "render-type"; "grouping": "grouping"; "thousandSeparator": "thousand-separator"; "decimalSeparator": "decimal-separator"; "minDecimalDigits": "min-decimal-digits"; "maxDecimalDigits": "max-decimal-digits"; "currencySymbol": "currency-symbol"; "currencySymbolPosition": "currency-symbol-position"; "format": "format"; "imageType": "image-type"; "emptyImage": "empty-image"; "avatar": "avatar"; "icon": "icon"; "svgIcon": "svg-icon"; "action": "action"; "text": "text"; "iconPosition": "icon-position"; "entity": "entity"; "service": "service"; "columns": "columns"; "translate": "translate"; "
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnComponent, "o-table-column", never, { "attr": "attr"; "title": "title"; "titleAlign": "title-align"; "contentAlign": "content-align"; "orderable": "orderable"; "searchable": "searchable"; "groupable": "groupable"; "type": "type"; "editable": "editable"; "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "asyncLoad": "async-load"; "sqlType": "sql-type"; "tooltip": "tooltip"; "tooltipValue": "tooltip-value"; "tooltipFunction": "tooltip-function"; "multiline": "multiline"; "resizable": "resizable"; "filterExpressionFunction": "filter-expression-function"; "class": "class"; "angularValidatorsFn": "validators"; "angularValidatorsFnErrors": "validators-errors"; "angularAsyncValidatorsFn": "async-validators"; "valueColumn": "value-column"; "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; "renderTrueValue": "render-true-value"; "renderFalseValue": "render-false-value"; "renderType": "render-type"; "grouping": "grouping"; "thousandSeparator": "thousand-separator"; "decimalSeparator": "decimal-separator"; "minDecimalDigits": "min-decimal-digits"; "maxDecimalDigits": "max-decimal-digits"; "currencySymbol": "currency-symbol"; "currencySymbolPosition": "currency-symbol-position"; "format": "format"; "imageType": "image-type"; "emptyImage": "empty-image"; "avatar": "avatar"; "icon": "icon"; "svgIcon": "svg-icon"; "action": "action"; "text": "text"; "iconPosition": "icon-position"; "entity": "entity"; "service": "service"; "columns": "columns"; "translate": "translate"; "valueColumnType": "value-column-type"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "serviceType": "service-type"; "translateArgsFn": "translate-params"; "configureServiceArgs": "configure-service-args"; "orequired": "required"; "showPlaceHolder": "show-placeholder"; "olabel": "label"; "updateRecordOnEdit": "update-record-on-edit"; "showNotificationOnEdit": "show-notification-on-edit"; "enabled": "enabled"; "min": "min"; "max": "max"; "step": "step"; "locale": "locale"; "oStartView": "start-view"; "oTouchUi": "touch-ui"; "startAt": "start-at"; "filterDate": "filter-date"; "dateValueType": "date-value-type"; "oDateFormat": "date-format"; "oDateLocale": "date-locale"; "oDateStartView": "date-start-view"; "oMinDate": "date-min"; "oMaxDate": "date-max"; "oDateTouchUi": "date-touch-ui"; "oDateStartAt": "date-start-at"; "oHourFormat": "hour-format"; "oHourMin": "hour-min"; "oHourMax": "hour-max"; "oHourPlaceholder": "hour-placeholder"; "oDatePlaceholder": "date-placeholder"; }, { "onClick": "onClick"; "onDataLoaded": "onDataLoaded"; "editionStarted": "editionStarted"; "editionCancelled": "editionCancelled"; "editionCommitted": "editionCommitted"; "onPostUpdateRecord": "onPostUpdateRecord"; }, never, never, false, never>;
|
|
130
130
|
}
|
|
@@ -64,6 +64,8 @@ export declare class OTableContextMenuComponent implements AfterViewInit {
|
|
|
64
64
|
delete(event: any): void;
|
|
65
65
|
refresh(): void;
|
|
66
66
|
filterByValue(): void;
|
|
67
|
+
private createColumnValueFilter;
|
|
68
|
+
private getSelectedValues;
|
|
67
69
|
groupByColumn(dateType?: string): void;
|
|
68
70
|
unGroupByColumn(): void;
|
|
69
71
|
unGroupAll(): void;
|
|
@@ -12,9 +12,12 @@ import { TableFilterByColumnData, TableFilterByColumnDialogResult } from '../../
|
|
|
12
12
|
import { OTableComponent } from '../../../o-table.component';
|
|
13
13
|
import { OFilterColumn } from '../../header/table-columns-filter/columns/o-table-columns-filter-column.component';
|
|
14
14
|
import type { OColumn } from '../../../column/o-column.class';
|
|
15
|
+
import { OTableFilterByColumnService } from './o-table-filter-by-column.service';
|
|
16
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
15
17
|
import * as i0 from "@angular/core";
|
|
16
18
|
export declare class OTableFilterByColumnDataDialogComponent implements AfterViewInit {
|
|
17
19
|
dialogRef: MatDialogRef<OTableFilterByColumnDataDialogComponent>;
|
|
20
|
+
private readonly filterService;
|
|
18
21
|
acceptAction: TableFilterByColumnDialogResult;
|
|
19
22
|
cancelAction: TableFilterByColumnDialogResult;
|
|
20
23
|
clearAction: TableFilterByColumnDialogResult;
|
|
@@ -37,12 +40,14 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
37
40
|
filter: ElementRef;
|
|
38
41
|
filterValueList: MatSelectionList;
|
|
39
42
|
activeSortDirection: 'asc' | 'desc' | '';
|
|
40
|
-
sourceData:
|
|
43
|
+
sourceData: 'current-page' | 'all-data';
|
|
41
44
|
queryByFilterColumnSubscription: any;
|
|
42
45
|
table: OTableComponent;
|
|
43
46
|
showFilterValuesOption: boolean;
|
|
44
47
|
queryMethodName: string;
|
|
45
|
-
|
|
48
|
+
previousFilter: OColumnValueFilter;
|
|
49
|
+
selection: SelectionModel<TableFilterByColumnData>;
|
|
50
|
+
constructor(dialogRef: MatDialogRef<OTableFilterByColumnDataDialogComponent>, filterService: OTableFilterByColumnService, data: {
|
|
46
51
|
column: OColumn;
|
|
47
52
|
table: OTableComponent;
|
|
48
53
|
});
|
|
@@ -54,13 +59,10 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
54
59
|
protected initializeDataList(filter?: OColumnValueFilter): void;
|
|
55
60
|
protected initializeFilterEvent(): void;
|
|
56
61
|
protected initializeCustomFilterValues(filter: OColumnValueFilter): void;
|
|
57
|
-
get selectedValues(): TableFilterByColumnData[];
|
|
58
62
|
areAllSelected(): boolean;
|
|
59
63
|
isIndeterminate(): boolean;
|
|
60
64
|
onSelect(event: MatSelectionListChange): void;
|
|
61
65
|
onSelectAllChange(event: MatCheckboxChange): void;
|
|
62
|
-
protected parseListData(filter: OColumnValueFilter): void;
|
|
63
|
-
private addIntoColumnData;
|
|
64
66
|
getColumnValuesFilter(): OColumnValueFilter;
|
|
65
67
|
clearValues(): void;
|
|
66
68
|
onClickSortValues(): void;
|
|
@@ -77,8 +79,9 @@ export declare class OTableFilterByColumnDataDialogComponent implements AfterVie
|
|
|
77
79
|
protected getTypedValue(control: UntypedFormControl): any;
|
|
78
80
|
onChangeDataSource(event: MatRadioChange): void;
|
|
79
81
|
private getData;
|
|
82
|
+
isSelected(item: TableFilterByColumnData): boolean;
|
|
80
83
|
queryByFilterColumn(attr: string): Observable<ServiceResponse> | Observable<any>;
|
|
81
|
-
|
|
84
|
+
compareOptions(): ((o1: TableFilterByColumnData, o2: TableFilterByColumnData) => boolean) | undefined;
|
|
82
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableFilterByColumnDataDialogComponent, never>;
|
|
83
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTableFilterByColumnDataDialogComponent, "o-table-filter-by-column-data-dialog", never, {}, {}, never, never, false, never>;
|
|
84
87
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OColumnValueFilter } from '../../../../../types/table/o-column-value-filter.type';
|
|
2
|
+
import { TableFilterByColumnData } from '../../../../../types/table/o-table-filter-by-column-data.type';
|
|
3
|
+
import { OColumn } from '../../../column/o-column.class';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OTableFilterByColumnService {
|
|
6
|
+
constructor();
|
|
7
|
+
getColumnDataUsingRenderer(column: OColumn, tableData: any[]): any[];
|
|
8
|
+
parseListData(filter: OColumnValueFilter, column: OColumn, tableData: any[], isPageable: boolean, sourceData: 'current-page' | 'all-data'): TableFilterByColumnData[];
|
|
9
|
+
applySelectedValuesToFilter(column: OColumn, tableData: any[], filter: OColumnValueFilter, selectedValues: TableFilterByColumnData[], sourceData: 'current-page' | 'all-data', isPageable: boolean, getComponentFilterFn: () => any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OTableFilterByColumnService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OTableFilterByColumnService>;
|
|
12
|
+
}
|
|
@@ -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
|
|
16
|
-
export declare const O_TABLE_HEADER_COMPONENTS_EXPORTED: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof
|
|
15
|
+
export declare const O_TABLE_HEADER_COMPONENTS: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | 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 OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent | typeof OTableHeaderComponent | typeof OTableColumnsGroupingComponent | typeof OTableColumnSelectAllDirective)[];
|
|
@@ -28,7 +28,7 @@ export declare class OTableColumnsFilterComponent implements OnInit, AfterConten
|
|
|
28
28
|
getSortValueOfFilterColumn(attr: string): string;
|
|
29
29
|
getStartViewValueOfFilterColumn(attr: string): string;
|
|
30
30
|
getQueryMethodOfFilterColumn(attr: string): string;
|
|
31
|
-
getFilterValuesInData(attr: string):
|
|
31
|
+
getFilterValuesInData(attr: string): 'current-page' | 'all-data';
|
|
32
32
|
getColumnComparisonValue(column: OColumn, val: any): any;
|
|
33
33
|
set columns(arg: string);
|
|
34
34
|
set columnsArray(arg: OFilterColumn[]);
|
|
@@ -4,8 +4,8 @@ import { BaseService } from '../../../services/base-service.class';
|
|
|
4
4
|
import { ServiceResponse } from '../../../interfaces/service-response.interface';
|
|
5
5
|
export declare class OTableDao {
|
|
6
6
|
private readonly dataService;
|
|
7
|
-
private entity;
|
|
8
|
-
private methods;
|
|
7
|
+
private readonly entity;
|
|
8
|
+
private readonly methods;
|
|
9
9
|
usingStaticData: boolean;
|
|
10
10
|
protected loadingTimer: any;
|
|
11
11
|
protected _isLoadingResults: boolean;
|
|
@@ -22,5 +22,6 @@ export declare class OTableDao {
|
|
|
22
22
|
setAsynchronousColumn(value: Array<any>, rowData: any): void;
|
|
23
23
|
get isLoadingResults(): boolean;
|
|
24
24
|
set isLoadingResults(val: boolean);
|
|
25
|
+
set notLoadingResults(val: boolean);
|
|
25
26
|
protected cleanTimer(): void;
|
|
26
27
|
}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Injector, OnInit } from '@angular/core';
|
|
2
1
|
import { OSkeletonComponent } from '../../../o-skeleton.component';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class OTableSkeletonComponent extends OSkeletonComponent
|
|
6
|
-
protected elRef: ElementRef;
|
|
7
|
-
protected injector: Injector;
|
|
8
|
-
rows$: Observable<number[]>;
|
|
9
|
-
private readonly cd;
|
|
10
|
-
constructor(elRef: ElementRef, injector: Injector);
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
ngAfterViewInit(): void;
|
|
3
|
+
export declare class OTableSkeletonComponent extends OSkeletonComponent {
|
|
13
4
|
getRows(): number[];
|
|
14
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableSkeletonComponent, never>;
|
|
15
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTableSkeletonComponent, "o-table-skeleton", never, {}, {}, never, never, false, never>;
|
|
@@ -24,6 +24,7 @@ export declare abstract class OTableBase {
|
|
|
24
24
|
abstract initializeCheckboxColumn(): any;
|
|
25
25
|
visibleExportDialogButtons: string;
|
|
26
26
|
service: string;
|
|
27
|
+
serviceType: string;
|
|
27
28
|
exportServiceType: TemplateRef<any>;
|
|
28
29
|
exportOptsTemplate: any;
|
|
29
30
|
visibleColArray: string[];
|
|
@@ -120,4 +121,6 @@ export declare abstract class OTableBase {
|
|
|
120
121
|
abstract setSelectedByKeys(keyValues: Array<any>): void;
|
|
121
122
|
abstract setSelectedByMultipleKeys(keyValues: Array<Object>): void;
|
|
122
123
|
abstract setSelectedByRowIds(rowIds: Array<number>): void;
|
|
124
|
+
abstract getSourceDataByFilterColumn(column: OColumn): 'current-page' | 'all-data';
|
|
125
|
+
abstract getValue(): any[];
|
|
123
126
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
2
|
import { DomPortalOutlet } from '@angular/cdk/portal';
|
|
3
3
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
4
|
-
import { AfterContentInit, AfterViewInit, ApplicationRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { AfterContentInit, AfterViewChecked, AfterViewInit, ApplicationRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, ViewContainerRef } from '@angular/core';
|
|
5
5
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import { MatMenu } from '@angular/material/menu';
|
|
@@ -54,11 +54,12 @@ import type { OTablePaginator } from '../../interfaces/o-table-paginator.interfa
|
|
|
54
54
|
import type { OTableQuickfilter } from '../../interfaces/o-table-quickfilter.interface';
|
|
55
55
|
import type { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
56
56
|
import { OQueryParams } from '../../types/query-params.type';
|
|
57
|
+
import { MatRow } from '@angular/material/table';
|
|
57
58
|
import * as i0 from "@angular/core";
|
|
58
59
|
export declare const DEFAULT_INPUTS_O_TABLE: string[];
|
|
59
60
|
export declare const DEFAULT_OUTPUTS_O_TABLE: string[];
|
|
60
61
|
type DisableSelectionFunction = (item: any) => boolean;
|
|
61
|
-
export declare class OTableComponent extends AbstractOServiceComponent<OTableComponentStateService> implements OnInit, OnDestroy, AfterViewInit, AfterContentInit {
|
|
62
|
+
export declare class OTableComponent extends AbstractOServiceComponent<OTableComponentStateService> implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit, AfterContentInit {
|
|
62
63
|
injector: Injector;
|
|
63
64
|
protected dialog: MatDialog;
|
|
64
65
|
private readonly _viewContainerRef;
|
|
@@ -89,6 +90,8 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
89
90
|
}>;
|
|
90
91
|
protected clickSubjectSubscription: Subscription;
|
|
91
92
|
protected dbClickSubjectSubscription: Subscription;
|
|
93
|
+
protected rowChangeSubscription: Subscription;
|
|
94
|
+
refreshExpandableRowState: boolean;
|
|
92
95
|
set oMatSort(_sort: OMatSort);
|
|
93
96
|
virtualScrollViewport: CdkVirtualScrollViewport;
|
|
94
97
|
oTableGlobalConfig: OTableGlobalConfig;
|
|
@@ -216,6 +219,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
216
219
|
protected tableBodyEl: ElementRef;
|
|
217
220
|
tableHeaderEl: ElementRef;
|
|
218
221
|
tableToolbarEl: ElementRef;
|
|
222
|
+
rows: QueryList<MatRow>;
|
|
219
223
|
horizontalScrolled: boolean;
|
|
220
224
|
onUpdateScrolledState: EventEmitter<any>;
|
|
221
225
|
rowWidth: any;
|
|
@@ -247,6 +251,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
247
251
|
ngOnInit(): void;
|
|
248
252
|
ngAfterViewInit(): void;
|
|
249
253
|
ngAfterContentInit(): void;
|
|
254
|
+
handleTableDataChange(): void;
|
|
250
255
|
setCustomDefinitionInSelectColumn(definition: OTableColumnSelectAllDirective): void;
|
|
251
256
|
ngAfterViewChecked(): void;
|
|
252
257
|
ngOnChanges(changes: {
|
|
@@ -296,6 +301,8 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
296
301
|
getExpandedRowContainerClass(rowIndex: number): string;
|
|
297
302
|
getExpandableItems(): any[];
|
|
298
303
|
toggleRowExpandable(item: any, event?: Event): void;
|
|
304
|
+
saveRowExpandState(added: any[], removed: any[]): void;
|
|
305
|
+
destroyAllPortalHosts(): void;
|
|
299
306
|
toggleRowExpandableByRowIndex(rowIndex: number, event?: Event): void;
|
|
300
307
|
private emitTableRowExpandableChangeEvent;
|
|
301
308
|
isExpanded(data: any): boolean;
|
|
@@ -315,6 +322,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
315
322
|
protected canSetStaticData(staticData: any): boolean;
|
|
316
323
|
showDialogError(error: string, errorOptional?: string): void;
|
|
317
324
|
projectContentChanged(): void;
|
|
325
|
+
restoreExpandableRowState(): void;
|
|
318
326
|
getAttributesValuesToQuery(): Array<string>;
|
|
319
327
|
getQueryArguments(filter: object, ovrrArgs?: OQueryDataArgs): OQueryParams;
|
|
320
328
|
getSqlTypesForFilter(filter: any): object;
|
|
@@ -327,6 +335,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
327
335
|
showAndSelectAllCheckbox(): void;
|
|
328
336
|
reloadPaginatedDataFromStart(clearSelectedItems?: boolean): void;
|
|
329
337
|
reloadData(clearSelectedItems?: boolean): void;
|
|
338
|
+
reloadDataWithClearExpandableRows(clearSelectedItems?: boolean, clearExpandableItems?: boolean): void;
|
|
330
339
|
handleClick(row: any, column: OColumn, rowIndex: number, cellRef: ElementRef, event: MouseEvent): void;
|
|
331
340
|
doHandleClick(row: any, column: string, rowIndex: number, $event: MouseEvent): void;
|
|
332
341
|
handleMultipleSelection(item: any): void;
|
|
@@ -478,6 +487,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
478
487
|
isDisableCheckbox(item: any): boolean;
|
|
479
488
|
getService(): import("ontimize-web-ngx").BaseService<ServiceResponse>;
|
|
480
489
|
getSnackService(): SnackBarService;
|
|
490
|
+
getSourceDataByFilterColumn(column: OColumn): 'current-page' | 'all-data';
|
|
481
491
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
482
492
|
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"; "readOnly": "read-only"; "readOnlyConfiguration": "read-only-configuration"; "showNotificationOfReadOnly": "show-notification-of-read-only"; }, { "onRowSelected": "onRowSelected"; "onRowDeselected": "onRowDeselected"; "onRowDeleted": "onRowDeleted"; }, ["tableRowExpandable", "quickfilterContentChild", "tableColumnSelectAllContentChild", "contextMenuContentChild", "tableOptions", "tableButtons", "exportOptsTemplate"], ["o-table-button", "[o-table-toolbar][position=start]", "[o-table-toolbar][position=end]", "[o-table-toolbar]", "o-table-quickfilter", "o-table-option"], false, never>;
|
|
483
493
|
}
|
|
@@ -42,7 +42,6 @@ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeCompo
|
|
|
42
42
|
childreNodes: OTreeFlatNode[];
|
|
43
43
|
nodesArray: OTreeFlatNode[];
|
|
44
44
|
ancestors: any[];
|
|
45
|
-
checklistSelection: SelectionModel<OTreeFlatNode>;
|
|
46
45
|
onNodeSelected: EventEmitter<any>;
|
|
47
46
|
onNodeExpanded: EventEmitter<any>;
|
|
48
47
|
onNodeCollapsed: EventEmitter<any>;
|
|
@@ -102,6 +101,16 @@ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeCompo
|
|
|
102
101
|
protected navigateToViewDetail(node: OTreeFlatNode): void;
|
|
103
102
|
isSelectedNode(node: OTreeFlatNode): boolean;
|
|
104
103
|
onItemDetailClick(node: OTreeFlatNode): void;
|
|
104
|
+
get selection(): SelectionModel<any>;
|
|
105
|
+
getSelectedItems(): any[];
|
|
106
|
+
private shouldBeRoot;
|
|
107
|
+
protected createTreeNode(flatNode: OTreeFlatNode): any;
|
|
108
|
+
protected getFlatNodeIdentifier(flatNode: OTreeFlatNode): string;
|
|
109
|
+
private addChildToParent;
|
|
110
|
+
addParentToRootIfNoGrandparentSelected(parent: OTreeFlatNode, parentKey: string, selectedKeys: Set<string>, nodeMap: Map<string, any>, rootNodes: any[]): void;
|
|
111
|
+
private ensureNodeInMap;
|
|
112
|
+
private getSelectedNodeKeys;
|
|
113
|
+
getSelectedFlatNodes(): OTreeFlatNode[];
|
|
105
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTreeComponent, [null, null, { optional: true; }]>;
|
|
106
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTreeComponent, "o-tree", never, { "oattr": "attr"; "service": "service"; "entity": "entity"; "columns": "columns"; "keys": "keys"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "insertButton": "insert-button"; "refreshButton": "refresh-button"; "deleteButton": "delete-button"; "visibleColumns": "visible-columns"; "selectAllCheckbox": "select-all-checkbox"; "separator": "separator"; "parentColumn": "parent-column"; "sortColumn": "sort-column"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "filterCaseSensitive": "filter-case-sensitive"; "quickFilter": "quick-filter"; "quickFilterPlaceholder": "quick-filter-placeholder"; "quickFilterColumns": "quick-filter-columns"; "detailMode": "detail-mode"; "detailFormRoute": "detail-form-route"; "showButtonsText": "show-buttons-text"; "rootTitle": "root-title"; "recursive": "recursive"; "route": "route"; }, { "onNodeSelected": "onNodeSelected"; "onNodeExpanded": "onNodeExpanded"; "onNodeCollapsed": "onNodeCollapsed"; "onLoadNextLevel": "onLoadNextLevel"; "onDataLoaded": "onDataLoaded"; "onNodeClick": "onNodeClick"; }, ["leafNodeTemplate", "parentNodeTemplate", "nodeTemplate", "treeNode"], ["[o-tree-button]"], false, never>;
|
|
107
116
|
}
|
|
@@ -20,6 +20,7 @@ export declare class OUserInfoComponent implements OnDestroy {
|
|
|
20
20
|
showLogout: boolean;
|
|
21
21
|
showSettings: boolean;
|
|
22
22
|
showProfile: boolean;
|
|
23
|
+
id: string;
|
|
23
24
|
userInfoConfiguration: OUserInfoConfigurationDirective;
|
|
24
25
|
constructor(elRef: ElementRef, injector: Injector, router: Router);
|
|
25
26
|
ngOnDestroy(): void;
|
|
@@ -32,5 +33,5 @@ export declare class OUserInfoComponent implements OnDestroy {
|
|
|
32
33
|
registerUserInfoConfiguration(userInfoMenu: OUserInfoConfigurationDirective): void;
|
|
33
34
|
private updateInputsByConfiguration;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<OUserInfoComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OUserInfoComponent, "o-user-info", never, { "showProfile": "show-profile"; "showSettings": "show-settings"; "showLogout": "show-logout"; }, {}, never, never, false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OUserInfoComponent, "o-user-info", never, { "showProfile": "show-profile"; "showSettings": "show-settings"; "showLogout": "show-logout"; "id": "id"; }, {}, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -6,7 +6,7 @@ import { ORemoteConfiguration } from '../types/remote-configuration.type';
|
|
|
6
6
|
export declare const O_INPUTS_OPTIONS: InjectionToken<OInputsOptions>;
|
|
7
7
|
export declare const APP_CONFIG: InjectionToken<Config>;
|
|
8
8
|
export declare class AppConfig {
|
|
9
|
-
private _config;
|
|
9
|
+
private readonly _config;
|
|
10
10
|
constructor(config?: any);
|
|
11
11
|
getConfiguration(): Config;
|
|
12
12
|
getServiceConfiguration(): any;
|
|
@@ -3,4 +3,4 @@ import { OLockerDirective } from '../directives/locker.directive';
|
|
|
3
3
|
import { OHiddenDirective } from '../directives/o-hidden.directive';
|
|
4
4
|
import { OMatErrorDirective } from '../directives/o-mat-error.directive';
|
|
5
5
|
import { OTabGroupDirective } from '../directives/o-tab-group.directive';
|
|
6
|
-
export declare const ONTIMIZE_DIRECTIVES: (typeof
|
|
6
|
+
export declare const ONTIMIZE_DIRECTIVES: (typeof OListItemDirective | typeof OMatErrorDirective | typeof OLockerDirective | typeof OHiddenDirective | typeof OTabGroupDirective)[];
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare const MAP: {
|
|
|
97
97
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
98
98
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
99
99
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
100
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
100
101
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
101
102
|
'MESSAGES.SAVING': string;
|
|
102
103
|
'MESSAGES.SAVED': string;
|
|
@@ -406,6 +407,7 @@ export declare const MAP: {
|
|
|
406
407
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
407
408
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
408
409
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
410
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
409
411
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
410
412
|
'MESSAGES.SAVING': string;
|
|
411
413
|
'MESSAGES.SAVED': string;
|
|
@@ -706,6 +708,7 @@ export declare const MAP: {
|
|
|
706
708
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
707
709
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
708
710
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
711
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
709
712
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
710
713
|
'MESSAGES.SAVING': string;
|
|
711
714
|
'MESSAGES.SAVED': string;
|