@meshmakers/octo-ui 3.3.34 → 3.3.390
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 +161 -13
- package/fesm2022/meshmakers-octo-ui.mjs +4147 -400
- package/fesm2022/meshmakers-octo-ui.mjs.map +1 -1
- package/package.json +19 -5
- package/types/meshmakers-octo-ui.d.ts +806 -0
- package/index.d.ts +0 -136
package/index.d.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, ElementRef, OnInit, AfterViewInit, AfterContentInit, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
5
|
-
import { SortDirection, MatSort } from '@angular/material/sort';
|
|
6
|
-
import { SearchFilterDto, SortDto, SearchFilterTypesDto, AssetRepoGraphQlDataSource } from '@meshmakers/octo-services';
|
|
7
|
-
import { Observable, BehaviorSubject } from 'rxjs';
|
|
8
|
-
|
|
9
|
-
declare class ListElementModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListElementModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ListElementModule, never, [typeof i1.CommonModule], never>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ListElementModule>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare class OctoListNavigationDataInfo {
|
|
16
|
-
skip: number;
|
|
17
|
-
take: number;
|
|
18
|
-
searchFilter?: SearchFilterDto;
|
|
19
|
-
sort?: SortDto[];
|
|
20
|
-
constructor();
|
|
21
|
-
}
|
|
22
|
-
declare class OctoListNavigationOptions {
|
|
23
|
-
language: string | null;
|
|
24
|
-
searchFilterType?: SearchFilterTypesDto;
|
|
25
|
-
searchFilterAttributePaths?: string[];
|
|
26
|
-
constructor();
|
|
27
|
-
}
|
|
28
|
-
declare class OctoListNavigation {
|
|
29
|
-
private readonly paginator;
|
|
30
|
-
private readonly sort;
|
|
31
|
-
private readonly searchBox?;
|
|
32
|
-
private readonly octoOptions?;
|
|
33
|
-
loadDataRequest: EventEmitter<OctoListNavigationDataInfo>;
|
|
34
|
-
lastSortDirection: SortDirection | null;
|
|
35
|
-
lastSortField: string | null;
|
|
36
|
-
lastSearchText: string | null;
|
|
37
|
-
constructor(paginator: MatPaginator, sort: MatSort, searchBox?: ElementRef<HTMLInputElement> | undefined, octoOptions?: OctoListNavigationOptions | undefined);
|
|
38
|
-
get loadDataInfo(): OctoListNavigationDataInfo;
|
|
39
|
-
init(): void;
|
|
40
|
-
private loadData;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface TableColumn {
|
|
44
|
-
displayName?: string | null;
|
|
45
|
-
dataKey: string;
|
|
46
|
-
templateName?: string;
|
|
47
|
-
sortingDisabled?: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare function getDisplayName(column: TableColumn): string;
|
|
50
|
-
declare function getDataKey(column: TableColumn): string;
|
|
51
|
-
type ColumnDefinition = string | TableColumn;
|
|
52
|
-
|
|
53
|
-
interface ActionColumn {
|
|
54
|
-
displayText: string;
|
|
55
|
-
actionId: string;
|
|
56
|
-
iconName?: string;
|
|
57
|
-
svgIconName?: string;
|
|
58
|
-
}
|
|
59
|
-
interface ToolbarAction {
|
|
60
|
-
iconName?: string;
|
|
61
|
-
svgIconName?: string;
|
|
62
|
-
route?: string;
|
|
63
|
-
clickHandler?: () => void;
|
|
64
|
-
actionText: string;
|
|
65
|
-
isDisabled?: Observable<boolean>;
|
|
66
|
-
isHidden?: Observable<boolean>;
|
|
67
|
-
}
|
|
68
|
-
declare class MmOctoTableComponent implements OnInit, AfterViewInit, AfterContentInit, OnDestroy {
|
|
69
|
-
dataSource: AssetRepoGraphQlDataSource<any, any, any>;
|
|
70
|
-
cellTemplates: QueryList<TemplateRef<any>>;
|
|
71
|
-
templateMap: Map<string, TemplateRef<any>>;
|
|
72
|
-
actionColumns: ActionColumn[];
|
|
73
|
-
leftToolbarActions: ToolbarAction[];
|
|
74
|
-
optionActions: ActionColumn[];
|
|
75
|
-
searchFilterColumns: string[];
|
|
76
|
-
currentId: string;
|
|
77
|
-
defaultSortColumn: string;
|
|
78
|
-
rowIsClickable: boolean;
|
|
79
|
-
pageSizeOptions: number[];
|
|
80
|
-
selectedPageSize: number;
|
|
81
|
-
rowClicked: EventEmitter<any>;
|
|
82
|
-
searchFilterStringUpdated: EventEmitter<string>;
|
|
83
|
-
selectedRowId: string;
|
|
84
|
-
actionColumnClick: EventEmitter<{
|
|
85
|
-
action: string;
|
|
86
|
-
id: string;
|
|
87
|
-
entry: any;
|
|
88
|
-
}>;
|
|
89
|
-
set columns(cols: ColumnDefinition[]);
|
|
90
|
-
get columns(): TableColumn[];
|
|
91
|
-
_columns: TableColumn[];
|
|
92
|
-
selectedRow: any;
|
|
93
|
-
selectedPageSizeSubject: BehaviorSubject<number>;
|
|
94
|
-
paginator?: MatPaginator;
|
|
95
|
-
sort?: MatSort;
|
|
96
|
-
input?: ElementRef<HTMLInputElement>;
|
|
97
|
-
private loadingSubscription?;
|
|
98
|
-
private wasLoadingPreviously;
|
|
99
|
-
private hadFocusBeforeLoading;
|
|
100
|
-
get columnDataKeys(): string[];
|
|
101
|
-
get columnDisplayNames(): string[];
|
|
102
|
-
ngOnInit(): void;
|
|
103
|
-
ngAfterContentInit(): void;
|
|
104
|
-
ngAfterViewInit(): void;
|
|
105
|
-
loadData(): void;
|
|
106
|
-
protected readonly encodeURIComponent: typeof encodeURIComponent;
|
|
107
|
-
accessElement(element: any, column: TableColumn): any;
|
|
108
|
-
selectedPageSizeChanged($event: PageEvent): void;
|
|
109
|
-
getActionDisplayTexts(): string[];
|
|
110
|
-
onRowClick(row: any): void;
|
|
111
|
-
isRowSelected(row: any): boolean;
|
|
112
|
-
checkSelectedRow(): void;
|
|
113
|
-
emitRowData(data: {
|
|
114
|
-
action: string;
|
|
115
|
-
id: string;
|
|
116
|
-
entry: any;
|
|
117
|
-
}): void;
|
|
118
|
-
hasOptionActions: (_row: any) => boolean;
|
|
119
|
-
hasActionColumns: () => boolean;
|
|
120
|
-
protected readonly getDisplayName: typeof getDisplayName;
|
|
121
|
-
protected readonly getDataKey: typeof getDataKey;
|
|
122
|
-
isSortable(column: TableColumn): boolean;
|
|
123
|
-
getTemplate(templateName: string): TemplateRef<any> | undefined;
|
|
124
|
-
ngOnDestroy(): void;
|
|
125
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MmOctoTableComponent, never>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MmOctoTableComponent, "mm-octo-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "actionColumns": { "alias": "actionColumns"; "required": false; }; "leftToolbarActions": { "alias": "leftToolbarActions"; "required": false; }; "optionActions": { "alias": "optionActions"; "required": false; }; "searchFilterColumns": { "alias": "searchFilterColumns"; "required": false; }; "currentId": { "alias": "currentId"; "required": false; }; "defaultSortColumn": { "alias": "defaultSortColumn"; "required": false; }; "rowIsClickable": { "alias": "rowIsClickable"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "selectedPageSize": { "alias": "selectedPageSize"; "required": false; }; "selectedRowId": { "alias": "selectedRowId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "rowClicked": "rowClicked"; "searchFilterStringUpdated": "searchFilterStringUpdated"; "actionColumnClick": "actionColumnClick"; }, ["cellTemplates"], never, true, never>;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
declare class MmOctoUiModule {
|
|
130
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MmOctoUiModule, never>;
|
|
131
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MmOctoUiModule, never, [typeof MmOctoTableComponent], [typeof MmOctoTableComponent]>;
|
|
132
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MmOctoUiModule>;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export { ListElementModule, MmOctoTableComponent, MmOctoUiModule, OctoListNavigation, OctoListNavigationDataInfo, OctoListNavigationOptions, getDataKey, getDisplayName };
|
|
136
|
-
export type { ActionColumn, ColumnDefinition, TableColumn, ToolbarAction };
|