@meshmakers/shared-ui 3.3.460 → 3.3.470
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/README.md +255 -27
- package/fesm2022/meshmakers-shared-ui.mjs +120 -113
- package/fesm2022/meshmakers-shared-ui.mjs.map +1 -1
- package/package.json +17 -17
- package/types/meshmakers-shared-ui.d.ts +45 -45
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshmakers/shared-ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.470",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.0
|
|
6
|
-
"@angular/core": "^21.0
|
|
7
|
-
"@angular/forms": "^21.0
|
|
5
|
+
"@angular/common": "^21.2.0",
|
|
6
|
+
"@angular/core": "^21.2.0",
|
|
7
|
+
"@angular/forms": "^21.2.0",
|
|
8
8
|
"@meshmakers/shared-services": "*",
|
|
9
|
-
"@progress/kendo-angular-buttons": "^
|
|
10
|
-
"@progress/kendo-angular-dialog": "^
|
|
11
|
-
"@progress/kendo-angular-dropdowns": "^
|
|
12
|
-
"@progress/kendo-angular-grid": "^
|
|
13
|
-
"@progress/kendo-angular-icons": "^
|
|
14
|
-
"@progress/kendo-angular-indicators": "^
|
|
15
|
-
"@progress/kendo-angular-inputs": "^
|
|
16
|
-
"@progress/kendo-angular-label": "^
|
|
17
|
-
"@progress/kendo-angular-layout": "^
|
|
18
|
-
"@progress/kendo-angular-notification": "^
|
|
19
|
-
"@progress/kendo-angular-treeview": "^
|
|
20
|
-
"@progress/kendo-data-query": "^1.7.
|
|
21
|
-
"@progress/kendo-svg-icons": "^4.
|
|
9
|
+
"@progress/kendo-angular-buttons": "^23.2.0",
|
|
10
|
+
"@progress/kendo-angular-dialog": "^23.2.0",
|
|
11
|
+
"@progress/kendo-angular-dropdowns": "^23.2.0",
|
|
12
|
+
"@progress/kendo-angular-grid": "^23.2.0",
|
|
13
|
+
"@progress/kendo-angular-icons": "^23.2.0",
|
|
14
|
+
"@progress/kendo-angular-indicators": "^23.2.0",
|
|
15
|
+
"@progress/kendo-angular-inputs": "^23.2.0",
|
|
16
|
+
"@progress/kendo-angular-label": "^23.2.0",
|
|
17
|
+
"@progress/kendo-angular-layout": "^23.2.0",
|
|
18
|
+
"@progress/kendo-angular-notification": "^23.2.0",
|
|
19
|
+
"@progress/kendo-angular-treeview": "^23.2.0",
|
|
20
|
+
"@progress/kendo-data-query": "^1.7.3",
|
|
21
|
+
"@progress/kendo-svg-icons": "^4.8.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"tslib": "^2.8.1"
|
|
@@ -44,7 +44,7 @@ interface TableColumn {
|
|
|
44
44
|
displayName?: string | null;
|
|
45
45
|
field: string;
|
|
46
46
|
dataType?: 'text' | 'numeric' | 'boolean' | 'date' | 'iso8601' | 'bytes' | 'statusIcons' | 'cronExpression';
|
|
47
|
-
format?:
|
|
47
|
+
format?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Column width in pixels. If not set, the column will auto-size.
|
|
50
50
|
*/
|
|
@@ -89,7 +89,7 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
89
89
|
private gridComponent?;
|
|
90
90
|
private dataBindingDirective?;
|
|
91
91
|
gridContextMenu?: ContextMenuComponent;
|
|
92
|
-
rowClicked: EventEmitter<
|
|
92
|
+
rowClicked: EventEmitter<unknown[]>;
|
|
93
93
|
pageSize: number;
|
|
94
94
|
skip: number;
|
|
95
95
|
rowIsClickable: boolean;
|
|
@@ -117,7 +117,7 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
117
117
|
ngOnDestroy(): void;
|
|
118
118
|
protected getDisplayName(column: TableColumn): string;
|
|
119
119
|
protected getIsDisabled(commandItem: CommandItem): boolean;
|
|
120
|
-
protected getValue(element:
|
|
120
|
+
protected getValue(element: Record<string, unknown>, column: TableColumn): unknown;
|
|
121
121
|
protected getFilterType(column: TableColumn): 'text' | 'numeric' | 'boolean' | 'date';
|
|
122
122
|
/**
|
|
123
123
|
* Gets all status field configurations for a statusIcons column.
|
|
@@ -127,7 +127,7 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
127
127
|
/**
|
|
128
128
|
* Gets the status icon mapping for a specific field value in a data item.
|
|
129
129
|
*/
|
|
130
|
-
protected getStatusIconMapping(dataItem:
|
|
130
|
+
protected getStatusIconMapping(dataItem: Record<string, unknown>, fieldConfig: StatusFieldConfig): StatusIconMapping | null;
|
|
131
131
|
/**
|
|
132
132
|
* Helper to get a field value from a data item, supporting nested fields.
|
|
133
133
|
*/
|
|
@@ -135,10 +135,10 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
135
135
|
/**
|
|
136
136
|
* Gets the human-readable description of a cron expression.
|
|
137
137
|
*/
|
|
138
|
-
protected getCronHumanReadable(expression:
|
|
138
|
+
protected getCronHumanReadable(expression: unknown): string;
|
|
139
139
|
protected onShowRowFilter(): void;
|
|
140
140
|
protected onRefresh(): void;
|
|
141
|
-
onExecuteFilter: EventEmitter<
|
|
141
|
+
onExecuteFilter: EventEmitter<string | null>;
|
|
142
142
|
onRefreshData: EventEmitter<void>;
|
|
143
143
|
protected onFilter(value: string | null): Promise<void>;
|
|
144
144
|
protected readonly filterIcon: SVGIcon$1;
|
|
@@ -149,8 +149,8 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
149
149
|
protected onPageChange(_event: PageChangeEvent): void;
|
|
150
150
|
protected onContextMenuSelect(_event: ContextMenuSelectEvent): Promise<void>;
|
|
151
151
|
protected onCellClick(e: CellClickEvent): void;
|
|
152
|
-
protected onSelectOptionActionItem(event: Event, dataItem:
|
|
153
|
-
protected onContextMenu(dataItem:
|
|
152
|
+
protected onSelectOptionActionItem(event: Event, dataItem: unknown, menuItem: MenuItem): Promise<void>;
|
|
153
|
+
protected onContextMenu(dataItem: unknown, e: PointerEvent): void;
|
|
154
154
|
protected onContextMenuClosed(_event: ContextMenuPopupEvent): void;
|
|
155
155
|
protected onToolbarCommand(commandItem: CommandItem): Promise<void>;
|
|
156
156
|
private buildMenuItems;
|
|
@@ -173,7 +173,7 @@ declare class UploadFileDialogComponent extends DialogContentBase {
|
|
|
173
173
|
protected uploadSuccess: boolean;
|
|
174
174
|
protected uploadError: boolean;
|
|
175
175
|
constructor();
|
|
176
|
-
onFileChange(event:
|
|
176
|
+
onFileChange(event: Event): void;
|
|
177
177
|
onFileDrop(event: DragEvent): void;
|
|
178
178
|
onDragOver(event: DragEvent): void;
|
|
179
179
|
uploadFile(file: File | null): void;
|
|
@@ -199,7 +199,7 @@ declare class InputDialogComponent extends DialogContentBase {
|
|
|
199
199
|
buttonOkText: string;
|
|
200
200
|
message: string;
|
|
201
201
|
placeholder: string;
|
|
202
|
-
protected inputValue:
|
|
202
|
+
protected inputValue: string | null;
|
|
203
203
|
constructor();
|
|
204
204
|
protected onOk(): void;
|
|
205
205
|
protected onCancel(): void;
|
|
@@ -260,7 +260,7 @@ declare class TreeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
260
260
|
private _timeoutCache;
|
|
261
261
|
private readonly _rootNodes;
|
|
262
262
|
private _isViewInitialized;
|
|
263
|
-
protected expandedKeys:
|
|
263
|
+
protected expandedKeys: string[];
|
|
264
264
|
protected treeView: TreeViewComponent;
|
|
265
265
|
ngOnInit(): Promise<void>;
|
|
266
266
|
ngAfterViewInit(): void;
|
|
@@ -269,21 +269,21 @@ declare class TreeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
269
269
|
*/
|
|
270
270
|
get isReady(): boolean;
|
|
271
271
|
dataSource: HierarchyDataSource | null;
|
|
272
|
-
nodeSelected: EventEmitter<
|
|
273
|
-
nodeClick: EventEmitter<
|
|
274
|
-
nodeDoubleClick: EventEmitter<
|
|
275
|
-
nodeDrop: EventEmitter<NodeDroppedEvent<
|
|
276
|
-
expand: EventEmitter<
|
|
277
|
-
collapse: EventEmitter<
|
|
278
|
-
protected get rootNodes(): Observable<
|
|
279
|
-
protected hasChildren: (item:
|
|
280
|
-
protected isExpanded: (item:
|
|
281
|
-
protected fetchChildren: (item:
|
|
272
|
+
nodeSelected: EventEmitter<TreeItemData>;
|
|
273
|
+
nodeClick: EventEmitter<TreeItemData>;
|
|
274
|
+
nodeDoubleClick: EventEmitter<TreeItemData>;
|
|
275
|
+
nodeDrop: EventEmitter<NodeDroppedEvent<unknown>>;
|
|
276
|
+
expand: EventEmitter<TreeItemData>;
|
|
277
|
+
collapse: EventEmitter<TreeItemData>;
|
|
278
|
+
protected get rootNodes(): Observable<TreeItemData[]>;
|
|
279
|
+
protected hasChildren: (item: object) => boolean;
|
|
280
|
+
protected isExpanded: (item: object, _index: string) => boolean;
|
|
281
|
+
protected fetchChildren: (item: object) => Observable<object[]>;
|
|
282
282
|
protected onNodeSelect(treeItem: TreeItem): void;
|
|
283
283
|
protected onNodeClick(event: NodeClickEvent): void;
|
|
284
284
|
protected onNodeDoubleClick(event: NodeClickEvent): void;
|
|
285
|
-
protected onExpand(event:
|
|
286
|
-
protected onCollapse(event:
|
|
285
|
+
protected onExpand(event: TreeItem): void;
|
|
286
|
+
protected onCollapse(event: TreeItem): void;
|
|
287
287
|
refreshTree(): Promise<void>;
|
|
288
288
|
onNodeDrop(event: TreeItemDropEvent): Promise<void>;
|
|
289
289
|
/**
|
|
@@ -294,9 +294,9 @@ declare class TreeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
294
294
|
ckTypeId: string;
|
|
295
295
|
isRoot: boolean;
|
|
296
296
|
}[]): Promise<void>;
|
|
297
|
-
getExpandedKeys():
|
|
297
|
+
getExpandedKeys(): string[];
|
|
298
298
|
collapseAll(): void;
|
|
299
|
-
setExpandedKeys(keys:
|
|
299
|
+
setExpandedKeys(keys: string[]): void;
|
|
300
300
|
private _clearTimeouts;
|
|
301
301
|
ngOnDestroy(): void;
|
|
302
302
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
@@ -418,7 +418,7 @@ declare class BaseFormComponent implements HasUnsavedChanges {
|
|
|
418
418
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "mm-base-form", never, { "form": { "alias": "form"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "saveForm": "saveForm"; "cancelForm": "cancelForm"; }, never, ["*", "[additionalActions]"], true, [{ directive: typeof UnsavedChangesDirective; inputs: {}; outputs: {}; }]>;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
declare class BaseTreeDetailComponent<T =
|
|
421
|
+
declare class BaseTreeDetailComponent<T = unknown> extends CommandBaseService {
|
|
422
422
|
treeDataSource: HierarchyDataSource;
|
|
423
423
|
leftPaneSize: string;
|
|
424
424
|
leftToolbarActions: CommandItem[];
|
|
@@ -430,8 +430,8 @@ declare class BaseTreeDetailComponent<T = any> extends CommandBaseService {
|
|
|
430
430
|
protected selectedNode: TreeItemDataTyped<T> | null;
|
|
431
431
|
constructor();
|
|
432
432
|
protected get hasToolbarActions(): boolean;
|
|
433
|
-
protected onNodeClick(treeItem:
|
|
434
|
-
protected onNodeDrop(event: NodeDroppedEvent<
|
|
433
|
+
protected onNodeClick(treeItem: TreeItemData): void;
|
|
434
|
+
protected onNodeDrop(event: NodeDroppedEvent<unknown>): void;
|
|
435
435
|
protected onToolbarCommand(commandItem: CommandItem): Promise<void>;
|
|
436
436
|
protected getIsDisabled(commandItem: CommandItem): boolean;
|
|
437
437
|
/**
|
|
@@ -456,9 +456,9 @@ declare class BaseTreeDetailComponent<T = any> extends CommandBaseService {
|
|
|
456
456
|
rtId: string;
|
|
457
457
|
isRoot: boolean;
|
|
458
458
|
}[]): Promise<void>;
|
|
459
|
-
getExpandedKeys():
|
|
459
|
+
getExpandedKeys(): string[];
|
|
460
460
|
collapseAll(): void;
|
|
461
|
-
setExpandedKeys(keys:
|
|
461
|
+
setExpandedKeys(keys: string[]): void;
|
|
462
462
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTreeDetailComponent<any>, never>;
|
|
463
463
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseTreeDetailComponent<any>, "mm-base-tree-detail", never, { "treeDataSource": { "alias": "treeDataSource"; "required": false; }; "leftPaneSize": { "alias": "leftPaneSize"; "required": false; }; "leftToolbarActions": { "alias": "leftToolbarActions"; "required": false; }; "rightToolbarActions": { "alias": "rightToolbarActions"; "required": false; }; }, { "nodeSelected": "nodeSelected"; "nodeDropped": "nodeDropped"; }, never, ["[slot=detail-panel]"], true, never>;
|
|
464
464
|
}
|
|
@@ -539,18 +539,18 @@ interface ProgressWindowOptions {
|
|
|
539
539
|
allowClose?: boolean;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
interface FetchResult {
|
|
543
|
-
get data():
|
|
542
|
+
interface FetchResult<T = unknown> {
|
|
543
|
+
get data(): T;
|
|
544
544
|
get totalCount(): number;
|
|
545
545
|
}
|
|
546
|
-
declare class FetchResultBase implements FetchResult {
|
|
546
|
+
declare class FetchResultBase<T = unknown> implements FetchResult<T> {
|
|
547
547
|
private readonly _data;
|
|
548
548
|
private readonly _totalCount;
|
|
549
|
-
constructor(_data:
|
|
550
|
-
get data():
|
|
549
|
+
constructor(_data: T, _totalCount: number);
|
|
550
|
+
get data(): T;
|
|
551
551
|
get totalCount(): number;
|
|
552
552
|
}
|
|
553
|
-
declare class FetchResultTyped<TDto> implements FetchResult {
|
|
553
|
+
declare class FetchResultTyped<TDto> implements FetchResult<(TDto | null)[]> {
|
|
554
554
|
private readonly _data;
|
|
555
555
|
private readonly _totalCount;
|
|
556
556
|
constructor(_data: (TDto | null)[], _totalCount: number);
|
|
@@ -646,7 +646,7 @@ declare class ConfirmationWindowResult {
|
|
|
646
646
|
|
|
647
647
|
declare class ConfirmationService {
|
|
648
648
|
private readonly dialogService;
|
|
649
|
-
showYesNoConfirmationDialog(title: string, message: string): Promise<boolean>;
|
|
649
|
+
showYesNoConfirmationDialog(title: string, message: string, cssClass?: string): Promise<boolean>;
|
|
650
650
|
showYesNoCancelConfirmationDialog(title: string, message: string): Promise<ConfirmationWindowResult | undefined>;
|
|
651
651
|
showOkCancelConfirmationDialog(title: string, message: string): Promise<boolean>;
|
|
652
652
|
showOkDialog(title: string, message: string): Promise<boolean>;
|
|
@@ -807,7 +807,7 @@ interface EntitySelectDialogDataSource<T> {
|
|
|
807
807
|
* @param entity The entity to get ID from
|
|
808
808
|
* @returns Unique identifier for the entity
|
|
809
809
|
*/
|
|
810
|
-
getIdEntity(entity: T):
|
|
810
|
+
getIdEntity(entity: T): string;
|
|
811
811
|
}
|
|
812
812
|
/**
|
|
813
813
|
* Options for opening the entity select dialog
|
|
@@ -855,7 +855,7 @@ declare class EntitySelectInputComponent implements OnInit, OnDestroy, ControlVa
|
|
|
855
855
|
entitiesSelected: EventEmitter<any[]>;
|
|
856
856
|
searchFormControl: FormControl<any>;
|
|
857
857
|
filteredEntities: string[];
|
|
858
|
-
selectedEntity:
|
|
858
|
+
selectedEntity: unknown;
|
|
859
859
|
isLoading: boolean;
|
|
860
860
|
private entityMap;
|
|
861
861
|
private searchSubject;
|
|
@@ -868,13 +868,13 @@ declare class EntitySelectInputComponent implements OnInit, OnDestroy, ControlVa
|
|
|
868
868
|
private dialogService;
|
|
869
869
|
ngOnInit(): void;
|
|
870
870
|
ngOnDestroy(): void;
|
|
871
|
-
writeValue(value:
|
|
872
|
-
registerOnChange(fn:
|
|
873
|
-
registerOnTouched(fn:
|
|
871
|
+
writeValue(value: unknown): void;
|
|
872
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
873
|
+
registerOnTouched(fn: () => void): void;
|
|
874
874
|
setDisabledState(_isDisabled: boolean): void;
|
|
875
875
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
876
|
-
onFilterChange(event:
|
|
877
|
-
onSelectionChange(value:
|
|
876
|
+
onFilterChange(event: string): void;
|
|
877
|
+
onSelectionChange(value: string): void;
|
|
878
878
|
onFocus(): void;
|
|
879
879
|
onBlur(): void;
|
|
880
880
|
clear(): void;
|
|
@@ -900,7 +900,7 @@ declare class EntitySelectDialogComponent<T> extends DialogContentBase implement
|
|
|
900
900
|
total: number;
|
|
901
901
|
};
|
|
902
902
|
selectedEntities: T[];
|
|
903
|
-
selectedKeys:
|
|
903
|
+
selectedKeys: string[];
|
|
904
904
|
isLoading: boolean;
|
|
905
905
|
searchValue: string;
|
|
906
906
|
pageSize: number;
|