@smartbit4all/ng-client 5.0.18 → 5.0.20
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/fesm2022/smartbit4all-ng-client-src-lib-smart-chart.mjs.map +1 -1
- package/fesm2022/smartbit4all-ng-client.mjs +436 -111
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-component-layout/smart-component-layout-utility.d.ts +1 -0
- package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +1 -0
- package/lib/smart-grid/api/grid-api/model/gridExportDescriptor.d.ts +19 -0
- package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +6 -4
- package/lib/smart-grid/api/grid-api/model/gridViewDescriptor.d.ts +2 -3
- package/lib/smart-grid/api/grid-api/model/models.d.ts +1 -0
- package/lib/smart-grid/smart-grid-toolbar-util.d.ts +9 -0
- package/lib/smart-grid/smart-grid.component.d.ts +8 -2
- package/lib/smart-map/abstract-map.d.ts +1 -0
- package/lib/smart-map/impl/google-map.d.ts +1 -0
- package/lib/smart-map/impl/leaflet-map.d.ts +5 -0
- package/lib/smart-map/smart-map.component.d.ts +3 -0
- package/lib/smart-table/smarttable.model.d.ts +5 -1
- package/lib/smart-table/smarttable.module.d.ts +2 -1
- package/lib/smart-table/tables/table.d.ts +6 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-5.0.20.tgz +0 -0
- package/smartbit4all-ng-client-5.0.18.tgz +0 -0
|
@@ -13,4 +13,5 @@ export declare class SmartComponentLayoutUtility {
|
|
|
13
13
|
static getToolbars(comp: SmartComponentLayoutComponent): UiActionToolbarComponent[];
|
|
14
14
|
static getExpandableComponent(comp: SmartComponentLayoutComponent): SmartComponentLayoutComponent;
|
|
15
15
|
static applyStyle(style: Style | undefined, elementRef?: ElementRef, renderer?: Renderer2): void;
|
|
16
|
+
static setUuid(comp: SmartComponentLayoutComponent, uuid?: string): void;
|
|
16
17
|
}
|
|
@@ -14,6 +14,7 @@ import { Style } from '../../../../view-context/api/model/style';
|
|
|
14
14
|
export interface GridColumnMeta {
|
|
15
15
|
label: string;
|
|
16
16
|
propertyName: string;
|
|
17
|
+
sortOrderPropertyName?: string;
|
|
17
18
|
typeClass?: string;
|
|
18
19
|
/**
|
|
19
20
|
* The format instruction for the column. This format string must be JavaScript format stringh for Angular.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid api
|
|
3
|
+
* The grid api is resposible for the grid components that shows a list of item.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface GridExportDescriptor {
|
|
13
|
+
isExportable?: boolean;
|
|
14
|
+
exportMimeType?: string;
|
|
15
|
+
columnsToExport: Array<string>;
|
|
16
|
+
buttonColor?: string;
|
|
17
|
+
buttonToolbar?: string;
|
|
18
|
+
buttonIcon?: string;
|
|
19
|
+
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { ImageResource } from '../../../../view-context/api';
|
|
13
13
|
import { Style } from '../../../../view-context/api/model/style';
|
|
14
14
|
import { UiAction } from '../../../../view-context/api';
|
|
15
|
-
import { ValueSet } from '../../../../view-context/api';
|
|
16
15
|
/**
|
|
17
16
|
* This object is a grid row containening the identifier and actions releted with the row.
|
|
18
17
|
*/
|
|
@@ -22,12 +21,15 @@ export interface GridRow {
|
|
|
22
21
|
data?: object;
|
|
23
22
|
selectable?: boolean;
|
|
24
23
|
selected?: boolean;
|
|
25
|
-
valueSets?: {
|
|
26
|
-
[key: string]: ValueSet;
|
|
27
|
-
};
|
|
28
24
|
icons: {
|
|
29
25
|
[key: string]: Array<ImageResource>;
|
|
30
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* The key shoud be the column\'s name, while the value is a list of actions codes.
|
|
29
|
+
*/
|
|
30
|
+
columnActions?: {
|
|
31
|
+
[key: string]: Array<string>;
|
|
32
|
+
};
|
|
31
33
|
/**
|
|
32
34
|
* If the grid can be hierarchical then the parent contains the identifiers of the parent row.
|
|
33
35
|
*/
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { GridExportDescriptor } from './gridExportDescriptor';
|
|
12
13
|
import { GridSelectionType } from './gridSelectionType';
|
|
13
|
-
import { SmartComponentLayoutDefinition } from '../../../../smart-component-layout/api/model/smartComponentLayoutDefinition';
|
|
14
14
|
import { GridSelectionMode } from './gridSelectionMode';
|
|
15
15
|
import { GridColumnMeta } from './gridColumnMeta';
|
|
16
16
|
/**
|
|
@@ -30,8 +30,7 @@ export interface GridViewDescriptor {
|
|
|
30
30
|
showEditColumns?: boolean;
|
|
31
31
|
highlightProperty?: string;
|
|
32
32
|
highlightClass?: string;
|
|
33
|
-
|
|
34
|
-
expandedComponentLayouts?: SmartComponentLayoutDefinition;
|
|
33
|
+
exportDescriptor?: GridExportDescriptor;
|
|
35
34
|
}
|
|
36
35
|
export declare enum GridViewDescriptorKindEnum {
|
|
37
36
|
TABLE = "TABLE",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiAction } from '../view-context/api';
|
|
2
|
+
import { GridRow } from './api/grid-api';
|
|
3
|
+
export declare class SmartGridToolbarActionsUtil {
|
|
4
|
+
static showMenu(row: GridRow, orderedColumns: string[]): boolean;
|
|
5
|
+
static showToolbar(row: GridRow, columnName: string): boolean;
|
|
6
|
+
static calculateCellToActionMap(rows: GridRow[], serviceToUse: any, gridId: string): Record<string, any[]>;
|
|
7
|
+
static calculateMenuActions(row: GridRow, orderedColumns: string[]): UiAction[];
|
|
8
|
+
static getActionModelsFromMap(cellToActionMap: Record<string, any[]>, row: GridRow, header: string): any[];
|
|
9
|
+
}
|
|
@@ -8,8 +8,8 @@ import { Subject } from 'rxjs';
|
|
|
8
8
|
import { ComponentFactoryService } from '../component-factory-service/projects';
|
|
9
9
|
import { ExpandableSection } from '../smart-expandable-section/projects';
|
|
10
10
|
import { SmartTable, SmarttableComponent } from '../smart-table/projects';
|
|
11
|
-
import { ImageResource, UiActionDescriptor } from '../view-context/api';
|
|
12
|
-
import { ComponentLibrary, UiActionDescriptorService, UiActionService, UiActionToolbarComponent } from '../view-context/projects';
|
|
11
|
+
import { ImageResource, UiAction, UiActionDescriptor } from '../view-context/api';
|
|
12
|
+
import { ComponentLibrary, UiActionDescriptorService, UiActionModel, UiActionService, UiActionToolbarComponent } from '../view-context/projects';
|
|
13
13
|
import { GridColumnMeta, GridRow } from './api/grid-api';
|
|
14
14
|
import { SmartGrid, SmartLayoutDef } from './models/model';
|
|
15
15
|
import { SmartGridService } from './smart-grid.service';
|
|
@@ -51,6 +51,7 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
51
51
|
pageSizeOptions: number[];
|
|
52
52
|
selectionChanges: Subject<any>;
|
|
53
53
|
uiActionDescriptors: Map<string, UiActionDescriptor>;
|
|
54
|
+
cellToActionMap: Record<string, UiActionModel[]>;
|
|
54
55
|
afterViewInitExecuted: boolean;
|
|
55
56
|
isBlocked: boolean;
|
|
56
57
|
treeControl?: FlatTreeControl<GridRow>;
|
|
@@ -126,6 +127,11 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
126
127
|
getColValue(col: string, row: any): any;
|
|
127
128
|
getImageResourceIcons(row: any, header: string): ImageResource[];
|
|
128
129
|
getImageResourceStyle(resource: ImageResource): any;
|
|
130
|
+
getRowColumnAction(row: any, columnName: string): UiActionModel[];
|
|
131
|
+
showCellToolbar(row: any, columnName: string): boolean;
|
|
132
|
+
shouldShowOptionsButton(row: any): boolean;
|
|
133
|
+
calculateMenuActions(row: GridRow): UiAction[];
|
|
134
|
+
createCellToActionMap(): void;
|
|
129
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridComponent, never>;
|
|
130
136
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": { "alias": "smartGrid"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "dev": { "alias": "dev"; "required": false; }; }, {}, never, never, false, never>;
|
|
131
137
|
}
|
|
@@ -31,6 +31,7 @@ export declare abstract class AbstractMap {
|
|
|
31
31
|
private initChangeEffect;
|
|
32
32
|
abstract handleItemChanges(toRemove: Array<RecordWithId>, toAdd: Array<RecordWithId>): void;
|
|
33
33
|
abstract handleEditingItemChanges(toRemove: Array<RecordWithId>, toAdd: Array<RecordWithId>): void;
|
|
34
|
+
abstract toBase64(): Promise<string>;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMap, never>;
|
|
35
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractMap, never, never, { "model": { "alias": "model"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "editingSession": { "alias": "editingSession"; "required": false; "isSignal": true; }; }, { "onMapClick": "onMapClick"; "onOverlayClick": "onOverlayClick"; "onMapDragEnd": "onMapDragEnd"; "onZoomChanged": "onZoomChanged"; "onEditingOverlayClick": "onEditingOverlayClick"; "onEditingOverlayDrag": "onEditingOverlayDrag"; }, never, never, true, never>;
|
|
36
37
|
}
|
|
@@ -17,6 +17,7 @@ export declare class GoogleMap extends AbstractMap implements AfterViewChecked {
|
|
|
17
17
|
handleEditingItemChanges(toRemove: Array<RecordWithId>, toAdd: Array<RecordWithId>): void;
|
|
18
18
|
bindDragEvents(overlay: any): void;
|
|
19
19
|
getMap(): any;
|
|
20
|
+
toBase64(): Promise<string>;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMap, never>;
|
|
21
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<GoogleMap, "google-map", never, { "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, { "onOverlayDblClick": "onOverlayDblClick"; "onOverlayDragStart": "onOverlayDragStart"; "onOverlayDrag": "onOverlayDrag"; "onOverlayDragEnd": "onOverlayDragEnd"; "onMapReady": "onMapReady"; }, never, never, false, never>;
|
|
22
23
|
}
|
|
@@ -4,6 +4,8 @@ import { GeoMapViewport } from '../api';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LeafletMap extends AbstractMap implements AfterViewChecked {
|
|
6
6
|
originalLatLng: any;
|
|
7
|
+
offsetDistance: number;
|
|
8
|
+
markers: any;
|
|
7
9
|
constructor(el: ElementRef, cd: ChangeDetectorRef, zone: NgZone);
|
|
8
10
|
ngAfterViewChecked(): void;
|
|
9
11
|
private initialize;
|
|
@@ -12,6 +14,9 @@ export declare class LeafletMap extends AbstractMap implements AfterViewChecked
|
|
|
12
14
|
handleItemChanges(toRemove: Array<RecordWithId>, toAdd: Array<RecordWithId>): void;
|
|
13
15
|
handleEditingItemChanges(toRemove: Array<RecordWithId>, toAdd: Array<RecordWithId>): void;
|
|
14
16
|
private findDatasetBounds;
|
|
17
|
+
toBase64(): Promise<string>;
|
|
18
|
+
createLabel(group: any[]): string;
|
|
19
|
+
createNumberedIcon(number: number): any;
|
|
15
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<LeafletMap, never>;
|
|
16
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<LeafletMap, "leaflet-map", never, {}, {}, never, never, false, never>;
|
|
17
22
|
}
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, InjectionToken, OnInit, Signal, WritableSignal } from '@
|
|
|
2
2
|
import { GeoMapEditingSession, GeoMapItem, GeoMapModel, GeoMapService, GeoMapViewport, GeoMapViewState, GPSPosition } from './api';
|
|
3
3
|
import { SmartViewContextService } from '../view-context/smart-view-context.service';
|
|
4
4
|
import { MapEditingItemClickedEvent, MapEditingItemDraggedEvent } from './smart-map.types';
|
|
5
|
+
import { AbstractMap } from './abstract-map';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare enum MapEngine {
|
|
7
8
|
GOOGLE = "GOOGLE",
|
|
@@ -15,6 +16,7 @@ export declare class SmartMapComponent implements OnInit, AfterViewInit {
|
|
|
15
16
|
uuid: string;
|
|
16
17
|
identifier: string;
|
|
17
18
|
parent?: any;
|
|
19
|
+
mapComponent: AbstractMap;
|
|
18
20
|
readonly model: WritableSignal<GeoMapModel | undefined>;
|
|
19
21
|
readonly items: Signal<Array<GeoMapItem>>;
|
|
20
22
|
readonly editingSession: Signal<GeoMapEditingSession | undefined>;
|
|
@@ -31,6 +33,7 @@ export declare class SmartMapComponent implements OnInit, AfterViewInit {
|
|
|
31
33
|
handleItemClick(id: string): void;
|
|
32
34
|
handleEditingItemClick(id: string, event: MapEditingItemClickedEvent): void;
|
|
33
35
|
handleEditingItemDrag(id: string, event: MapEditingItemDraggedEvent): void;
|
|
36
|
+
toBase64(): Promise<string>;
|
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartMapComponent, never>;
|
|
35
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartMapComponent, "smart-map", never, { "uuid": { "alias": "uuid"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
39
|
}
|
|
@@ -157,6 +157,8 @@ export interface SmartTableRowExpander<T> {
|
|
|
157
157
|
expandAsync(rowId: number): Promise<T>;
|
|
158
158
|
}
|
|
159
159
|
export declare class SmartTable<T> implements SmartTableInterface<T> {
|
|
160
|
+
private gridId?;
|
|
161
|
+
private serviceToUse?;
|
|
160
162
|
type: SmartTableInterfaceTypeEnum.NORMAL;
|
|
161
163
|
title?: string | undefined;
|
|
162
164
|
tableHeaders: string[];
|
|
@@ -190,9 +192,11 @@ export declare class SmartTable<T> implements SmartTableInterface<T> {
|
|
|
190
192
|
onAllSelection?: (selected: boolean) => Promise<void>;
|
|
191
193
|
rowExpander?: SmartTableRowExpander<T>;
|
|
192
194
|
highlightProperty?: string;
|
|
193
|
-
constructor(config: SmartTableInterface<T
|
|
195
|
+
constructor(config: SmartTableInterface<T>, gridId?: string | undefined, serviceToUse?: any);
|
|
194
196
|
getPropertyNamesDeeply(element: any): string[];
|
|
195
197
|
getValueDeeply(model: any, key: string): any;
|
|
196
198
|
pushOptions(): void;
|
|
197
199
|
setTableHeaders(): void;
|
|
200
|
+
getServiceToUse(): any;
|
|
201
|
+
getGridId(): string | undefined;
|
|
198
202
|
}
|
|
@@ -21,8 +21,9 @@ import * as i19 from "../smart-icon/smart-icon.module";
|
|
|
21
21
|
import * as i20 from "@angular/material/divider";
|
|
22
22
|
import * as i21 from "@angular/material/tooltip";
|
|
23
23
|
import * as i22 from "@angular/common";
|
|
24
|
+
import * as i23 from "../view-context/smart-view-context.module";
|
|
24
25
|
export declare class SmarttableModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmarttableModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmarttableModule, [typeof i1.SmarttableComponent, typeof i2.LoadingComponent, typeof i3.MaterialTableComponent, typeof i4.MobileTableComponent, typeof i5.DefaultActionsPopupComponent, typeof i6.MatContextMenuTriggerForDirective], [typeof i7.SharedModule, typeof i8.BrowserModule, typeof i9.MatCommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatFormFieldModule, typeof i12.MatCheckboxModule, typeof i13.MatButtonModule, typeof i14.MatTableModule, typeof i15.MatIconModule, typeof i16.MatMenuModule, typeof i17.MatProgressSpinnerModule, typeof i18.ComponentFactoryServiceModule, typeof i19.SmartIconModule, typeof i20.MatDividerModule, typeof i21.MatTooltipModule, typeof i22.CommonModule, typeof i7.SharedModule], [typeof i1.SmarttableComponent]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmarttableModule, [typeof i1.SmarttableComponent, typeof i2.LoadingComponent, typeof i3.MaterialTableComponent, typeof i4.MobileTableComponent, typeof i5.DefaultActionsPopupComponent, typeof i6.MatContextMenuTriggerForDirective], [typeof i7.SharedModule, typeof i8.BrowserModule, typeof i9.MatCommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatFormFieldModule, typeof i12.MatCheckboxModule, typeof i13.MatButtonModule, typeof i14.MatTableModule, typeof i15.MatIconModule, typeof i16.MatMenuModule, typeof i17.MatProgressSpinnerModule, typeof i18.ComponentFactoryServiceModule, typeof i19.SmartIconModule, typeof i20.MatDividerModule, typeof i21.MatTooltipModule, typeof i22.CommonModule, typeof i7.SharedModule, typeof i23.SmartViewContextModule], [typeof i1.SmarttableComponent]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmarttableModule>;
|
|
28
29
|
}
|
|
@@ -24,6 +24,7 @@ export declare class Table implements OnInit, OnDestroy, AfterViewInit {
|
|
|
24
24
|
sortEvent: Subject<SmartTableHeader>;
|
|
25
25
|
expandedElement: any | null;
|
|
26
26
|
element?: any;
|
|
27
|
+
cellToActionMap: Record<string, any[]>;
|
|
27
28
|
onSelectionChanged: Subject<void>;
|
|
28
29
|
constructor(cfService: ComponentFactoryService, changeDetector: ChangeDetectorRef);
|
|
29
30
|
asyncTranslationResult: (translator: any, param: string) => any;
|
|
@@ -74,7 +75,7 @@ export declare class Table implements OnInit, OnDestroy, AfterViewInit {
|
|
|
74
75
|
showButton(button: SmartTableButton, element: any): boolean;
|
|
75
76
|
isDisabled(element: any): boolean;
|
|
76
77
|
isSelected(element: any): boolean;
|
|
77
|
-
|
|
78
|
+
originalProperty(header: string): string;
|
|
78
79
|
isImageResource(element: any, header: string): boolean;
|
|
79
80
|
getImageResourceIcons(element: any, header: string): ImageResource[];
|
|
80
81
|
getImageResourceIcon(element: any, header: string): any;
|
|
@@ -82,6 +83,10 @@ export declare class Table implements OnInit, OnDestroy, AfterViewInit {
|
|
|
82
83
|
getImageResourceStyle(resource: ImageResource): any;
|
|
83
84
|
openDefaultActionsMenu(event: any, row: any): void;
|
|
84
85
|
getDefaultActionsForRow(element: any): Map<SmartTableButton, UiAction> | undefined;
|
|
86
|
+
getRowColumnAction(row: any, header: string): any[];
|
|
87
|
+
showCellToolbar(row: any, columnName: string): boolean;
|
|
88
|
+
getMenuButtons(row: any, button: SmartTableButton): SmartTableButton[];
|
|
89
|
+
getMenuItemButtonsPropertyName(element: any, button: SmartTableButton): any[];
|
|
85
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
86
91
|
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": { "alias": "smartTable"; "required": false; }; }, {}, never, never, false, never>;
|
|
87
92
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|