ontimize-web-ngx 15.6.0 → 15.6.2
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/list/o-list.component.mjs +15 -1
- package/esm2020/lib/components/table/extensions/o-table.dao.mjs +6 -3
- package/esm2020/lib/components/table/o-table.component.mjs +18 -3
- package/esm2020/lib/interfaces/service-response-adapter.interface.mjs +1 -1
- package/esm2020/lib/services/base-service-response.adapter.mjs +16 -0
- package/esm2020/lib/services/factories.mjs +7 -7
- package/esm2020/lib/util/factory.util.mjs +21 -7
- package/fesm2015/ontimize-web-ngx.mjs +75 -16
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +74 -16
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/list/o-list.component.d.ts +2 -0
- package/lib/components/table/o-table.component.d.ts +6 -1
- package/lib/services/base-service-response.adapter.d.ts +11 -0
- package/lib/util/factory.util.d.ts +3 -0
- package/package.json +1 -1
|
@@ -49,6 +49,8 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
|
|
|
49
49
|
get toolBarHeight(): number;
|
|
50
50
|
get state(): OListComponentStateClass;
|
|
51
51
|
ngOnInit(): void;
|
|
52
|
+
private loadPermissions;
|
|
53
|
+
private setupDeleteButtonSubscription;
|
|
52
54
|
ngAfterViewInit(): void;
|
|
53
55
|
ngAfterContentInit(): void;
|
|
54
56
|
ngOnDestroy(): void;
|
|
@@ -54,7 +54,7 @@ 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
|
+
import { MatRow, MatTable } from '@angular/material/table';
|
|
58
58
|
import * as i0 from "@angular/core";
|
|
59
59
|
export declare const DEFAULT_INPUTS_O_TABLE: string[];
|
|
60
60
|
export declare const DEFAULT_OUTPUTS_O_TABLE: string[];
|
|
@@ -220,6 +220,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
220
220
|
tableHeaderEl: ElementRef;
|
|
221
221
|
tableToolbarEl: ElementRef;
|
|
222
222
|
rows: QueryList<MatRow>;
|
|
223
|
+
protected matTable: MatTable<any>;
|
|
223
224
|
horizontalScrolled: boolean;
|
|
224
225
|
onUpdateScrolledState: EventEmitter<any>;
|
|
225
226
|
rowWidth: any;
|
|
@@ -488,6 +489,10 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
|
|
|
488
489
|
getService(): import("ontimize-web-ngx").BaseService<ServiceResponse>;
|
|
489
490
|
getSnackService(): SnackBarService;
|
|
490
491
|
getSourceDataByFilterColumn(column: OColumn): 'current-page' | 'all-data';
|
|
492
|
+
updateColumnTitles(columns: {
|
|
493
|
+
attr: string;
|
|
494
|
+
title: string;
|
|
495
|
+
}[]): void;
|
|
491
496
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
492
497
|
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>;
|
|
493
498
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { IServiceResponseAdapter } from '../interfaces/service-response-adapter.interface';
|
|
3
|
+
import { BaseServiceResponse } from './base-service-response.class';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BaseServiceResponseAdapter implements IServiceResponseAdapter<BaseServiceResponse> {
|
|
6
|
+
adapt(res: HttpResponse<any>): any;
|
|
7
|
+
adaptError?(error: HttpErrorResponse): HttpErrorResponse;
|
|
8
|
+
context: any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseServiceResponseAdapter, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseServiceResponseAdapter>;
|
|
11
|
+
}
|
|
@@ -4,6 +4,9 @@ import { OConfigureServiceArgs } from '../types/configure-service-args.type';
|
|
|
4
4
|
export declare class FactoryUtil {
|
|
5
5
|
static isJsonApiService(injector: Injector): boolean;
|
|
6
6
|
static isOntimizeEEService(injector: Injector): boolean;
|
|
7
|
+
static isOntimizeSubclass(cls: any): boolean;
|
|
8
|
+
static isOntimizeEESubclass(cls: any): boolean;
|
|
9
|
+
static isJSONAPISubclass(cls: any): boolean;
|
|
7
10
|
static createServiceInstanceByType(serviceType: ServiceType, injector: Injector): any;
|
|
8
11
|
private static getDataServiceInstance;
|
|
9
12
|
static configureService(configureServiceArgs: OConfigureServiceArgs): any;
|
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.6.
|
|
4
|
+
"version": "15.6.2",
|
|
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.",
|