@masterteam/components 0.0.129 → 0.0.131
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/masterteam-components-tooltip.mjs.map +1 -1
- package/package.json +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs +0 -597
- package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
- package/fesm2022/masterteam-components-button-group.mjs +0 -20
- package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
- package/fesm2022/masterteam-components-chip.mjs +0 -35
- package/fesm2022/masterteam-components-chip.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +0 -92
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page.mjs +0 -160
- package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +0 -94
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-date-field.mjs +0 -93
- package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-drawer.mjs +0 -69
- package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-editor-field.mjs +0 -96
- package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-entities.mjs +0 -864
- package/fesm2022/masterteam-components-entities.mjs.map +0 -1
- package/fesm2022/masterteam-components-formula.mjs +0 -3116
- package/fesm2022/masterteam-components-formula.mjs.map +0 -1
- package/fesm2022/masterteam-components-list.mjs +0 -31
- package/fesm2022/masterteam-components-list.mjs.map +0 -1
- package/fesm2022/masterteam-components-progress.mjs +0 -49
- package/fesm2022/masterteam-components-progress.mjs.map +0 -1
- package/fesm2022/masterteam-components-table.mjs +0 -1153
- package/fesm2022/masterteam-components-table.mjs.map +0 -1
- package/fesm2022/masterteam-components-upload-field.mjs +0 -554
- package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +0 -153
- package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
- package/types/masterteam-components-business-fields.d.ts +0 -213
- package/types/masterteam-components-button-group.d.ts +0 -8
- package/types/masterteam-components-chip.d.ts +0 -19
- package/types/masterteam-components-client-page-menu.d.ts +0 -35
- package/types/masterteam-components-client-page.d.ts +0 -56
- package/types/masterteam-components-color-picker-field.d.ts +0 -35
- package/types/masterteam-components-date-field.d.ts +0 -41
- package/types/masterteam-components-drawer.d.ts +0 -30
- package/types/masterteam-components-editor-field.d.ts +0 -34
- package/types/masterteam-components-entities.d.ts +0 -367
- package/types/masterteam-components-formula.d.ts +0 -654
- package/types/masterteam-components-list.d.ts +0 -18
- package/types/masterteam-components-progress.d.ts +0 -22
- package/types/masterteam-components-table.d.ts +0 -255
- package/types/masterteam-components-upload-field.d.ts +0 -77
- package/types/masterteam-components-user-search-field.d.ts +0 -61
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class Progress {
|
|
4
|
-
private static readonly DEFAULT_PRIMARY_COLOR;
|
|
5
|
-
value: _angular_core.InputSignal<number>;
|
|
6
|
-
mode: _angular_core.InputSignal<"linear" | "circle">;
|
|
7
|
-
showLabel: _angular_core.InputSignal<boolean>;
|
|
8
|
-
unit: _angular_core.InputSignal<string>;
|
|
9
|
-
color: _angular_core.InputSignal<string>;
|
|
10
|
-
minValue: _angular_core.InputSignal<number>;
|
|
11
|
-
maxValue: _angular_core.InputSignal<number>;
|
|
12
|
-
height: _angular_core.InputSignal<number>;
|
|
13
|
-
circleSize: _angular_core.InputSignal<number>;
|
|
14
|
-
strokeWidth: _angular_core.InputSignal<number>;
|
|
15
|
-
customClass: _angular_core.InputSignal<string>;
|
|
16
|
-
labelTemplate: _angular_core.Signal<string>;
|
|
17
|
-
readonly resolvedColor: _angular_core.Signal<string>;
|
|
18
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Progress, never>;
|
|
19
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Progress, "mt-progress", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "circleSize": { "alias": "circleSize"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { Progress };
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import * as _masterteam_components_table from '@masterteam/components/table';
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
4
|
-
import { MTIcon } from '@masterteam/icons';
|
|
5
|
-
import { ConfirmationConfig, ConfirmationService } from '@masterteam/components/confirmation';
|
|
6
|
-
import { Table as Table$1, TablePageEvent } from 'primeng/table';
|
|
7
|
-
import { EntityData } from '@masterteam/components/entities';
|
|
8
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Table action confirmation config with optional event
|
|
12
|
-
*/
|
|
13
|
-
type TableActionConfirmationConfig = Omit<ConfirmationConfig, 'event'> & {
|
|
14
|
-
event?: Event;
|
|
15
|
-
confirmationType?: 'delete';
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Defines the options for a select filter.
|
|
19
|
-
*/
|
|
20
|
-
interface FilterOption {
|
|
21
|
-
label: string;
|
|
22
|
-
value: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Configuration for filtering on a specific column.
|
|
26
|
-
*/
|
|
27
|
-
interface FilterConfig {
|
|
28
|
-
type: 'text' | 'select' | 'date' | 'boolean' | 'user';
|
|
29
|
-
label?: string;
|
|
30
|
-
options?: FilterOption[];
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Filter value for date range or simple value
|
|
35
|
-
*/
|
|
36
|
-
interface FilterValue {
|
|
37
|
-
value?: any;
|
|
38
|
-
from?: Date | null;
|
|
39
|
-
to?: Date | null;
|
|
40
|
-
}
|
|
41
|
-
interface TableStatusMapValue {
|
|
42
|
-
display?: string;
|
|
43
|
-
color?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Table filters map
|
|
48
|
-
*/
|
|
49
|
-
type TableFilters = Record<string, FilterValue | any>;
|
|
50
|
-
/**
|
|
51
|
-
* Column type definition
|
|
52
|
-
*/
|
|
53
|
-
type ColumnType = 'text' | 'boolean' | 'date' | 'user' | 'status' | 'entity' | 'custom';
|
|
54
|
-
/**
|
|
55
|
-
* Event emitted when a cell value changes
|
|
56
|
-
*/
|
|
57
|
-
interface CellChangeEvent {
|
|
58
|
-
row: any;
|
|
59
|
-
column: string;
|
|
60
|
-
value: any;
|
|
61
|
-
type: ColumnTypeForActionCell;
|
|
62
|
-
}
|
|
63
|
-
type ColumnTypeForActionCell = 'boolean';
|
|
64
|
-
type TableActionShape = 'flat' | 'popover';
|
|
65
|
-
interface ColumnDef {
|
|
66
|
-
key: string;
|
|
67
|
-
label: string;
|
|
68
|
-
type?: ColumnType;
|
|
69
|
-
customCellTpl?: TemplateRef<any>;
|
|
70
|
-
filterConfig?: FilterConfig;
|
|
71
|
-
statusMap?: Record<string, TableStatusMapValue>;
|
|
72
|
-
sortable?: boolean;
|
|
73
|
-
readonly?: boolean;
|
|
74
|
-
width?: string;
|
|
75
|
-
}
|
|
76
|
-
interface TableAction {
|
|
77
|
-
icon?: MTIcon | undefined;
|
|
78
|
-
color?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast' | 'help' | 'primary';
|
|
79
|
-
variant?: 'text' | 'outlined' | undefined;
|
|
80
|
-
label?: string;
|
|
81
|
-
tooltip?: string;
|
|
82
|
-
hidden?: (row: any) => boolean;
|
|
83
|
-
action: (row: any) => void;
|
|
84
|
-
loading?: (row: any) => boolean;
|
|
85
|
-
confirmation?: TableActionConfirmationConfig;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
declare class Table {
|
|
89
|
-
selectionChange: _angular_core.OutputEmitterRef<any[]>;
|
|
90
|
-
cellChange: _angular_core.OutputEmitterRef<CellChangeEvent>;
|
|
91
|
-
lazyLoad: _angular_core.OutputEmitterRef<any>;
|
|
92
|
-
columnReorder: _angular_core.OutputEmitterRef<any>;
|
|
93
|
-
rowReorder: _angular_core.OutputEmitterRef<any>;
|
|
94
|
-
rowClick: _angular_core.OutputEmitterRef<any>;
|
|
95
|
-
filters: _angular_core.ModelSignal<TableFilters>;
|
|
96
|
-
data: _angular_core.InputSignal<any[]>;
|
|
97
|
-
columns: _angular_core.InputSignal<ColumnDef[]>;
|
|
98
|
-
rowActions: _angular_core.InputSignal<TableAction[]>;
|
|
99
|
-
size: _angular_core.InputSignal<"small" | "large" | undefined>;
|
|
100
|
-
showGridlines: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
101
|
-
stripedRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
102
|
-
selectableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
103
|
-
clickableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
104
|
-
generalSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
105
|
-
lazyLocalSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
-
showFilters: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
107
|
-
loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
-
updating: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
109
|
-
lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
110
|
-
lazyLocalSort: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
|
-
lazyTotalRecords: _angular_core.InputSignal<number | undefined>;
|
|
112
|
-
reorderableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
113
|
-
reorderableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
114
|
-
dataKey: _angular_core.InputSignal<string | undefined>;
|
|
115
|
-
exportable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
116
|
-
exportFilename: _angular_core.InputSignal<string>;
|
|
117
|
-
actionShape: _angular_core.InputSignal<TableActionShape>;
|
|
118
|
-
tabs: _angular_core.InputSignal<any[] | undefined>;
|
|
119
|
-
tabsOptionLabel: _angular_core.InputSignal<string | undefined>;
|
|
120
|
-
tabsOptionValue: _angular_core.InputSignal<string | undefined>;
|
|
121
|
-
activeTab: _angular_core.ModelSignal<any>;
|
|
122
|
-
onTabChange: _angular_core.OutputEmitterRef<any>;
|
|
123
|
-
actions: _angular_core.InputSignal<TableAction[]>;
|
|
124
|
-
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
125
|
-
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
126
|
-
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
127
|
-
protected tableRef: _angular_core.Signal<Table$1<any> | undefined>;
|
|
128
|
-
paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
|
|
129
|
-
pageSize: _angular_core.ModelSignal<number>;
|
|
130
|
-
currentPage: _angular_core.ModelSignal<number>;
|
|
131
|
-
first: _angular_core.ModelSignal<number>;
|
|
132
|
-
filterTerm: _angular_core.ModelSignal<string>;
|
|
133
|
-
sortField: _angular_core.WritableSignal<string | null>;
|
|
134
|
-
sortDirection: _angular_core.WritableSignal<"asc" | "desc" | null>;
|
|
135
|
-
confirmationService: ConfirmationService;
|
|
136
|
-
protected selectedRows: _angular_core.WritableSignal<Set<any>>;
|
|
137
|
-
protected exportColumns: _angular_core.Signal<{
|
|
138
|
-
field: string;
|
|
139
|
-
header: string;
|
|
140
|
-
key: string;
|
|
141
|
-
label: string;
|
|
142
|
-
type?: _masterteam_components_table.ColumnType;
|
|
143
|
-
customCellTpl?: TemplateRef<any>;
|
|
144
|
-
filterConfig?: _masterteam_components_table.FilterConfig;
|
|
145
|
-
statusMap?: Record<string, _masterteam_components_table.TableStatusMapValue>;
|
|
146
|
-
sortable?: boolean;
|
|
147
|
-
readonly?: boolean;
|
|
148
|
-
width?: string;
|
|
149
|
-
}[]>;
|
|
150
|
-
protected activeFilterCount: _angular_core.Signal<number>;
|
|
151
|
-
protected filteredData: _angular_core.Signal<any[]>;
|
|
152
|
-
protected displayData: _angular_core.Signal<any[]>;
|
|
153
|
-
protected totalRecords: _angular_core.Signal<number>;
|
|
154
|
-
protected paginatedData: _angular_core.Signal<any[]>;
|
|
155
|
-
protected allSelectedOnPage: _angular_core.Signal<boolean>;
|
|
156
|
-
onFilterApplied(filters: TableFilters): void;
|
|
157
|
-
onFilterReset(): void;
|
|
158
|
-
protected matchesFilter(item: any, key: string, filterValue: FilterValue | any): boolean;
|
|
159
|
-
toggleRow(row: any): void;
|
|
160
|
-
toggleAllRowsOnPage(): void;
|
|
161
|
-
getProperty(obj: any, key: string): any;
|
|
162
|
-
getEntityPreviewData(row: any, col: ColumnDef): EntityData | null;
|
|
163
|
-
tabChanged(tab: any): void;
|
|
164
|
-
onTablePage(event: TablePageEvent): void;
|
|
165
|
-
handleLazyLoad(event: any): void;
|
|
166
|
-
onPaginatorPage(event: any): void;
|
|
167
|
-
onSearchChange(searchTerm: string): void;
|
|
168
|
-
toggleSort(column: ColumnDef): void;
|
|
169
|
-
isColumnSortable(column: ColumnDef): boolean;
|
|
170
|
-
getSortIcon(column: ColumnDef): MTIcon;
|
|
171
|
-
onCellChange(row: any, columnKey: string, newValue: any, type?: ColumnTypeForActionCell): void;
|
|
172
|
-
resolveActionLoading(action: TableAction, row: any): boolean | undefined;
|
|
173
|
-
getVisibleRowActions(row: any): TableAction[];
|
|
174
|
-
onColumnReorder(event: any): void;
|
|
175
|
-
onRowReorder(event: any): void;
|
|
176
|
-
onRowClick(event: MouseEvent, row: any): void;
|
|
177
|
-
protected updatePagingFromEvent(event: any): void;
|
|
178
|
-
protected emitLazyLoad(event: any): void;
|
|
179
|
-
exportCSV(): void;
|
|
180
|
-
rowAction(event: Event, action: TableAction, row: any): void;
|
|
181
|
-
private buildUserEntityData;
|
|
182
|
-
private buildStatusEntityData;
|
|
183
|
-
private resolveStatusValue;
|
|
184
|
-
private unwrapStatusValue;
|
|
185
|
-
private isEntityStatusCompatibilityColumn;
|
|
186
|
-
private isStatusColumnKey;
|
|
187
|
-
private resolveStatusMapValue;
|
|
188
|
-
private resolveDefaultStatusColor;
|
|
189
|
-
private normalizeStatusToken;
|
|
190
|
-
private readStringProperty;
|
|
191
|
-
/**
|
|
192
|
-
* Gets the entity data for an 'entity' type column.
|
|
193
|
-
* The row data is expected to already be in EntityData format.
|
|
194
|
-
* Automatically hides entity name and configures User entities
|
|
195
|
-
* to show only avatar + displayName.
|
|
196
|
-
*/
|
|
197
|
-
getEntityColumnData(row: any, col: ColumnDef): EntityData | null;
|
|
198
|
-
protected getStatusEntityAccentColor(row: Record<string, unknown>): string | null;
|
|
199
|
-
private resolveStatusEntityAccentColor;
|
|
200
|
-
protected getBooleanProperty(obj: any, key: string): boolean;
|
|
201
|
-
private setProperty;
|
|
202
|
-
private sortData;
|
|
203
|
-
private getSortValue;
|
|
204
|
-
private getColumnResolvedValue;
|
|
205
|
-
private buildExportRows;
|
|
206
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
207
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
declare class TableFilter implements ControlValueAccessor {
|
|
211
|
-
readonly columns: _angular_core.InputSignal<ColumnDef[]>;
|
|
212
|
-
readonly data: _angular_core.InputSignal<any[]>;
|
|
213
|
-
readonly filterApplied: _angular_core.OutputEmitterRef<TableFilters>;
|
|
214
|
-
readonly filterReset: _angular_core.OutputEmitterRef<void>;
|
|
215
|
-
protected pendingFilters: _angular_core.WritableSignal<TableFilters>;
|
|
216
|
-
protected appliedFilters: _angular_core.WritableSignal<TableFilters>;
|
|
217
|
-
protected booleanOptions: {
|
|
218
|
-
label: string;
|
|
219
|
-
value: boolean;
|
|
220
|
-
}[];
|
|
221
|
-
private onChange;
|
|
222
|
-
private onTouched;
|
|
223
|
-
protected filterableColumns: _angular_core.Signal<{
|
|
224
|
-
filterConfig: {
|
|
225
|
-
type: "boolean" | "text" | "select" | "date" | "user";
|
|
226
|
-
label?: string;
|
|
227
|
-
options?: FilterOption[];
|
|
228
|
-
};
|
|
229
|
-
key: string;
|
|
230
|
-
label: string;
|
|
231
|
-
type?: _masterteam_components_table.ColumnType;
|
|
232
|
-
customCellTpl?: _angular_core.TemplateRef<any>;
|
|
233
|
-
statusMap?: Record<string, _masterteam_components_table.TableStatusMapValue>;
|
|
234
|
-
sortable?: boolean;
|
|
235
|
-
readonly?: boolean;
|
|
236
|
-
width?: string;
|
|
237
|
-
}[]>;
|
|
238
|
-
protected activeFilterCount: _angular_core.Signal<number>;
|
|
239
|
-
protected getFilterType(col: ColumnDef): string;
|
|
240
|
-
protected getFilterValue(key: string): any;
|
|
241
|
-
protected getDateRangeValue(key: string, part: 'from' | 'to'): Date | null;
|
|
242
|
-
protected updateFilter(key: string, value: any): void;
|
|
243
|
-
protected updateDateFilter(key: string, part: 'from' | 'to', value: Date | null): void;
|
|
244
|
-
protected apply(): void;
|
|
245
|
-
protected reset(): void;
|
|
246
|
-
private hasValue;
|
|
247
|
-
writeValue(value: TableFilters | null): void;
|
|
248
|
-
registerOnChange(fn: (value: TableFilters) => void): void;
|
|
249
|
-
registerOnTouched(fn: () => void): void;
|
|
250
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilter, never>;
|
|
251
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableFilter, "mt-table-filter", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, { "filterApplied": "filterApplied"; "filterReset": "filterReset"; }, never, never, true, never>;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export { Table, TableFilter };
|
|
255
|
-
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, FilterValue, TableAction, TableActionConfirmationConfig, TableActionShape, TableFilters, TableStatusMapValue };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { PipeTransform, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
-
import { HttpContext, HttpClient } from '@angular/common/http';
|
|
5
|
-
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
6
|
-
|
|
7
|
-
declare class UploadField implements ControlValueAccessor {
|
|
8
|
-
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
9
|
-
readonly title: _angular_core.InputSignal<string>;
|
|
10
|
-
readonly description: _angular_core.InputSignal<string>;
|
|
11
|
-
readonly endPoint: _angular_core.InputSignal<string>;
|
|
12
|
-
readonly size: _angular_core.InputSignal<"normal" | "large" | "xlarge" | undefined>;
|
|
13
|
-
readonly userImgClass: _angular_core.InputSignal<string | undefined>;
|
|
14
|
-
readonly shape: _angular_core.InputSignal<"circle" | "field" | "card">;
|
|
15
|
-
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
16
|
-
readonly accept: _angular_core.InputSignal<string | undefined>;
|
|
17
|
-
readonly isDragging: _angular_core.ModelSignal<boolean>;
|
|
18
|
-
readonly fileSizeLimit: _angular_core.InputSignal<number | undefined>;
|
|
19
|
-
readonly: _angular_core.InputSignal<boolean>;
|
|
20
|
-
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
21
|
-
readonly onChange: _angular_core.OutputEmitterRef<any>;
|
|
22
|
-
readonly requiredValidator: typeof Validators.required;
|
|
23
|
-
readonly value: _angular_core.WritableSignal<any>;
|
|
24
|
-
readonly files: _angular_core.Signal<any[]>;
|
|
25
|
-
readonly primaryFile: _angular_core.Signal<any>;
|
|
26
|
-
readonly imgPath: _angular_core.Signal<string | undefined>;
|
|
27
|
-
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
28
|
-
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
29
|
-
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
30
|
-
private readonly httpClient;
|
|
31
|
-
private readonly pendingUploads;
|
|
32
|
-
onTouched: () => void;
|
|
33
|
-
onModelChange: (value: any) => void;
|
|
34
|
-
readonly ngControl: NgControl;
|
|
35
|
-
constructor();
|
|
36
|
-
writeValue(value: any): void;
|
|
37
|
-
registerOnChange(fn: any): void;
|
|
38
|
-
registerOnTouched(fn: any): void;
|
|
39
|
-
setDisabledState(disabled: boolean): void;
|
|
40
|
-
onAdd(item: any): void;
|
|
41
|
-
onDelete(item?: any): void;
|
|
42
|
-
onFileSelect(event: Event): void;
|
|
43
|
-
prepareFiles(files: File[]): void;
|
|
44
|
-
uploadFile(file: File): void;
|
|
45
|
-
handleUploadDone(file: any): void;
|
|
46
|
-
downloadFile(value: any): void;
|
|
47
|
-
onDragOver(event: DragEvent): void;
|
|
48
|
-
onDragLeave(event: DragEvent): void;
|
|
49
|
-
onDrop(event: DragEvent): void;
|
|
50
|
-
protected resolveImgPath(value: any): string | undefined;
|
|
51
|
-
private fetchMetadata;
|
|
52
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UploadField, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UploadField, "mt-upload-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "endPoint": { "alias": "endPoint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userImgClass": { "alias": "userImgClass"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "isDragging": { "alias": "isDragging"; "required": false; "isSignal": true; }; "fileSizeLimit": { "alias": "fileSizeLimit"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "isDragging": "isDraggingChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare class SecureImagePipe implements PipeTransform, OnDestroy {
|
|
57
|
-
private static readonly cachedBlobUrls;
|
|
58
|
-
private static readonly pendingRequests;
|
|
59
|
-
httpClient: HttpClient;
|
|
60
|
-
domSanitizer: DomSanitizer;
|
|
61
|
-
cdr: ChangeDetectorRef;
|
|
62
|
-
constructor();
|
|
63
|
-
ngOnDestroy(): void;
|
|
64
|
-
private subscription;
|
|
65
|
-
private latestValue;
|
|
66
|
-
private transformValue;
|
|
67
|
-
private loading;
|
|
68
|
-
transform(imagePath: string, wrapUrlOrContext?: boolean | HttpContext, contextOrEndpoint?: HttpContext | string, endPoint?: string): string | SafeUrl;
|
|
69
|
-
private static createCacheKey;
|
|
70
|
-
private static serializeContextValue;
|
|
71
|
-
private getOrLoadBlobUrl;
|
|
72
|
-
private setUpSubscription;
|
|
73
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SecureImagePipe, never>;
|
|
74
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SecureImagePipe, "secureImage", true>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { SecureImagePipe, UploadField };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
-
import { AutoComplete } from 'primeng/autocomplete';
|
|
5
|
-
import { isInvalid } from '@masterteam/components';
|
|
6
|
-
import { HttpContext } from '@angular/common/http';
|
|
7
|
-
|
|
8
|
-
interface User {
|
|
9
|
-
isExternal: boolean;
|
|
10
|
-
id: string;
|
|
11
|
-
displayName: string;
|
|
12
|
-
userName: string;
|
|
13
|
-
photo: string;
|
|
14
|
-
}
|
|
15
|
-
declare class UserSearchField implements ControlValueAccessor, OnInit {
|
|
16
|
-
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
17
|
-
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
18
|
-
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
19
|
-
readonly class: _angular_core.InputSignal<string>;
|
|
20
|
-
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
21
|
-
readonly required: _angular_core.InputSignal<boolean>;
|
|
22
|
-
readonly apiUrl: _angular_core.InputSignal<string>;
|
|
23
|
-
readonly dataKey: _angular_core.InputSignal<string>;
|
|
24
|
-
readonly paramName: _angular_core.InputSignal<string>;
|
|
25
|
-
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
26
|
-
styleClass: string;
|
|
27
|
-
requiredValidator: typeof Validators.required;
|
|
28
|
-
value: _angular_core.WritableSignal<User | null>;
|
|
29
|
-
disabled: _angular_core.WritableSignal<boolean>;
|
|
30
|
-
loading: _angular_core.WritableSignal<boolean>;
|
|
31
|
-
readonly size: _angular_core.InputSignal<"small" | "large" | undefined>;
|
|
32
|
-
filteredUsers: _angular_core.WritableSignal<User[]>;
|
|
33
|
-
private searchTerms;
|
|
34
|
-
readonly autocomplete: _angular_core.Signal<AutoComplete | undefined>;
|
|
35
|
-
onTouched: () => void;
|
|
36
|
-
onModelChange: (value: any) => void;
|
|
37
|
-
ngControl: NgControl | null;
|
|
38
|
-
private http;
|
|
39
|
-
isInvalid: typeof isInvalid;
|
|
40
|
-
constructor();
|
|
41
|
-
ngOnInit(): void;
|
|
42
|
-
search(event: {
|
|
43
|
-
query: string;
|
|
44
|
-
}): void;
|
|
45
|
-
onFocus(): void;
|
|
46
|
-
onSelect(event: {
|
|
47
|
-
originalEvent: Event;
|
|
48
|
-
value: User;
|
|
49
|
-
}): void;
|
|
50
|
-
onClear(): void;
|
|
51
|
-
writeValue(value: User | null): void;
|
|
52
|
-
registerOnChange(fn: (value: User | null) => void): void;
|
|
53
|
-
registerOnTouched(fn: any): void;
|
|
54
|
-
setDisabledState(disabled: boolean): void;
|
|
55
|
-
getUsers(): void;
|
|
56
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserSearchField, never>;
|
|
57
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserSearchField, "mt-user-search-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "apiUrl": { "alias": "apiUrl"; "required": true; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "paramName": { "alias": "paramName"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { UserSearchField };
|
|
61
|
-
export type { User };
|