orque-ui 0.0.1
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 +64 -0
- package/fesm2022/orque-ui.mjs +1970 -0
- package/fesm2022/orque-ui.mjs.map +1 -0
- package/package.json +24 -0
- package/types/orque-ui.d.ts +673 -0
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, ElementRef, OnChanges, ChangeDetectorRef, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { ControlValueAccessor, FormGroup, FormControl } from '@angular/forms';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
declare class OUi {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OUi, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OUi, "o-o-ui", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* OPAC JSON Page Rendering Model
|
|
14
|
+
*/
|
|
15
|
+
interface FormField {
|
|
16
|
+
name: string;
|
|
17
|
+
label: string;
|
|
18
|
+
type?: 'input' | 'select' | 'date' | 'textarea' | 'hidden' | 'licenseModules' | 'roleActions';
|
|
19
|
+
inputType?: string;
|
|
20
|
+
isView?: boolean;
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
options?: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: any;
|
|
26
|
+
}[];
|
|
27
|
+
sectionName?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
colSpan?: 'col-1' | 'col-2' | 'col-3';
|
|
30
|
+
configPath?: string;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
interface FormStep {
|
|
34
|
+
stepName: string;
|
|
35
|
+
label: string;
|
|
36
|
+
index: number;
|
|
37
|
+
fields: FormField[];
|
|
38
|
+
}
|
|
39
|
+
interface TableColumn {
|
|
40
|
+
name: string;
|
|
41
|
+
label: string;
|
|
42
|
+
isHeaderView?: boolean;
|
|
43
|
+
columnView?: boolean;
|
|
44
|
+
pipe?: string;
|
|
45
|
+
width?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ToggleTab {
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
isDefault?: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface ContextMenuAction {
|
|
53
|
+
label: string;
|
|
54
|
+
action: string;
|
|
55
|
+
icon?: string;
|
|
56
|
+
showWhen?: string[];
|
|
57
|
+
type?: 'license' | 'tenant' | 'any';
|
|
58
|
+
subActions?: {
|
|
59
|
+
label: string;
|
|
60
|
+
action: string;
|
|
61
|
+
}[];
|
|
62
|
+
}
|
|
63
|
+
interface TableToolConfig {
|
|
64
|
+
add?: boolean;
|
|
65
|
+
edit?: boolean;
|
|
66
|
+
refresh?: boolean;
|
|
67
|
+
clear?: boolean;
|
|
68
|
+
export?: boolean;
|
|
69
|
+
import?: boolean;
|
|
70
|
+
print?: boolean;
|
|
71
|
+
duplicate?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface PageConfig {
|
|
74
|
+
title: string;
|
|
75
|
+
name: string;
|
|
76
|
+
store: string;
|
|
77
|
+
api: string;
|
|
78
|
+
workflowApiBase?: string;
|
|
79
|
+
tableUniqueFieldName?: string;
|
|
80
|
+
toggleButton?: {
|
|
81
|
+
elements: ToggleTab[];
|
|
82
|
+
statusMap?: Record<string, string[]>;
|
|
83
|
+
};
|
|
84
|
+
tableList?: TableColumn[];
|
|
85
|
+
steps?: FormStep[];
|
|
86
|
+
contextMenuActions?: ContextMenuAction[];
|
|
87
|
+
tableTool?: TableToolConfig;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class ContextSwitcherComponent {
|
|
91
|
+
private elementRef;
|
|
92
|
+
currentContext: string;
|
|
93
|
+
activeTenant: any;
|
|
94
|
+
contextChange: EventEmitter<string>;
|
|
95
|
+
dropdownOpen: boolean;
|
|
96
|
+
constructor(elementRef: ElementRef);
|
|
97
|
+
toggleDropdown(): void;
|
|
98
|
+
isLicensed(product: string): boolean;
|
|
99
|
+
switchContext(product: string): void;
|
|
100
|
+
getContextLabel(): string;
|
|
101
|
+
onClickOutside(event: MouseEvent): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextSwitcherComponent, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextSwitcherComponent, "o-context-switcher", never, { "currentContext": { "alias": "currentContext"; "required": false; }; "activeTenant": { "alias": "activeTenant"; "required": false; }; }, { "contextChange": "contextChange"; }, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class ToggleTabsComponent {
|
|
107
|
+
tabs: ToggleTab[];
|
|
108
|
+
activeTab: string;
|
|
109
|
+
tabChange: EventEmitter<string>;
|
|
110
|
+
select(value: string): void;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleTabsComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleTabsComponent, "o-toggle-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "tabChange": "tabChange"; }, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface TableAction {
|
|
116
|
+
label: string;
|
|
117
|
+
action: string;
|
|
118
|
+
icon?: string;
|
|
119
|
+
}
|
|
120
|
+
declare class DataTableComponent implements OnChanges {
|
|
121
|
+
columns: TableColumn[];
|
|
122
|
+
rows: any[];
|
|
123
|
+
selectable: boolean;
|
|
124
|
+
actions: TableAction[];
|
|
125
|
+
rowClick: EventEmitter<any>;
|
|
126
|
+
menuOpen: EventEmitter<{
|
|
127
|
+
event: MouseEvent;
|
|
128
|
+
row: any;
|
|
129
|
+
}>;
|
|
130
|
+
actionClick: EventEmitter<{
|
|
131
|
+
action: string;
|
|
132
|
+
row: any;
|
|
133
|
+
}>;
|
|
134
|
+
selectionChange: EventEmitter<any[]>;
|
|
135
|
+
visibleColumns: TableColumn[];
|
|
136
|
+
selectedRows: any[];
|
|
137
|
+
menuRow: any;
|
|
138
|
+
ngOnChanges(): void;
|
|
139
|
+
selectRow(row: any): void;
|
|
140
|
+
onCellClick(event: MouseEvent, colName: string, row: any): void;
|
|
141
|
+
isSelected(row: any): boolean;
|
|
142
|
+
toggleRow(row: any): void;
|
|
143
|
+
toggleAll(event: Event): void;
|
|
144
|
+
isAllSelected(): boolean;
|
|
145
|
+
openMenu(event: MouseEvent, row: any): void;
|
|
146
|
+
triggerAction(action: string, row: any, event: MouseEvent): void;
|
|
147
|
+
statusClass(status: string): string;
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "o-data-table", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "rowClick": "rowClick"; "menuOpen": "menuOpen"; "actionClick": "actionClick"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class FormDrawerComponent implements OnChanges {
|
|
153
|
+
private readonly cdr;
|
|
154
|
+
open: boolean;
|
|
155
|
+
title: string;
|
|
156
|
+
steps: FormStep[];
|
|
157
|
+
rowData: any;
|
|
158
|
+
showSubmit: boolean;
|
|
159
|
+
readOnly: boolean;
|
|
160
|
+
actionType: 'new' | 'edit' | 'view' | 'renew' | 'upgrade';
|
|
161
|
+
closeDrawer: EventEmitter<void>;
|
|
162
|
+
save: EventEmitter<any>;
|
|
163
|
+
submit: EventEmitter<any>;
|
|
164
|
+
formData: any;
|
|
165
|
+
selectedProducts: string[];
|
|
166
|
+
constructor(cdr: ChangeDetectorRef);
|
|
167
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
168
|
+
initializeProductDetails(): void;
|
|
169
|
+
getSelectedProducts(): string[];
|
|
170
|
+
onModulesChange(value: any): void;
|
|
171
|
+
private syncProductDetails;
|
|
172
|
+
/**
|
|
173
|
+
* Returns all fields for rendering, including hidden section-header fields and
|
|
174
|
+
* special component-type fields like licenseModules.
|
|
175
|
+
*/
|
|
176
|
+
visibleFields(step: FormStep): FormField[];
|
|
177
|
+
isRoleActionEnabled(action: string): boolean;
|
|
178
|
+
toggleRoleAction(action: string, enabled: boolean): void;
|
|
179
|
+
close(): void;
|
|
180
|
+
onSave(): void;
|
|
181
|
+
onSubmit(): void;
|
|
182
|
+
onOverlayClick(event: MouseEvent): void;
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDrawerComponent, never>;
|
|
184
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDrawerComponent, "o-form-drawer", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "showSubmit": { "alias": "showSubmit"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; }, { "closeDrawer": "closeDrawer"; "save": "save"; "submit": "submit"; }, never, never, true, never>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class ContextMenuComponent {
|
|
188
|
+
private el;
|
|
189
|
+
open: boolean;
|
|
190
|
+
position: {
|
|
191
|
+
top: number;
|
|
192
|
+
left: number;
|
|
193
|
+
};
|
|
194
|
+
actions: ContextMenuAction[];
|
|
195
|
+
row: any;
|
|
196
|
+
menuType: string;
|
|
197
|
+
actionTriggered: EventEmitter<{
|
|
198
|
+
action: string;
|
|
199
|
+
row: any;
|
|
200
|
+
}>;
|
|
201
|
+
closed: EventEmitter<void>;
|
|
202
|
+
hoveredAction: string | null;
|
|
203
|
+
constructor(el: ElementRef);
|
|
204
|
+
visibleActions(): ContextMenuAction[];
|
|
205
|
+
trigger(action: ContextMenuAction): void;
|
|
206
|
+
triggerSub(subAction: {
|
|
207
|
+
label: string;
|
|
208
|
+
action: string;
|
|
209
|
+
}): void;
|
|
210
|
+
setHovered(action: string | null): void;
|
|
211
|
+
isDangerAction(action: string): boolean;
|
|
212
|
+
onClickOutside(): void;
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
|
|
214
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "o-context-menu", never, { "open": { "alias": "open"; "required": false; }; "position": { "alias": "position"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "row": { "alias": "row"; "required": false; }; "menuType": { "alias": "menuType"; "required": false; }; }, { "actionTriggered": "actionTriggered"; "closed": "closed"; }, never, never, true, never>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface SidePanelColumn {
|
|
218
|
+
name: string;
|
|
219
|
+
label: string;
|
|
220
|
+
pipe?: string;
|
|
221
|
+
}
|
|
222
|
+
declare class OSidePanelComponent {
|
|
223
|
+
open: boolean;
|
|
224
|
+
title: string;
|
|
225
|
+
row: any;
|
|
226
|
+
columns: SidePanelColumn[];
|
|
227
|
+
closed: EventEmitter<void>;
|
|
228
|
+
onClose(): void;
|
|
229
|
+
getBadgeClass(value: string): Record<string, boolean>;
|
|
230
|
+
formatDate(value: string | null | undefined): string;
|
|
231
|
+
formatValue(val: any): string;
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OSidePanelComponent, never>;
|
|
233
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OSidePanelComponent, "o-side-panel", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "row": { "alias": "row"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type UserRole = 'SYSTEM_ADMIN' | 'APPROVER' | 'REQUESTER' | 'VIEWER';
|
|
237
|
+
interface PageAction {
|
|
238
|
+
action: string;
|
|
239
|
+
row: any;
|
|
240
|
+
payload?: any;
|
|
241
|
+
}
|
|
242
|
+
declare class PageRendererComponent implements OnChanges {
|
|
243
|
+
private readonly cdr;
|
|
244
|
+
private readonly http;
|
|
245
|
+
page: PageConfig | null;
|
|
246
|
+
data: any[];
|
|
247
|
+
userRole: UserRole;
|
|
248
|
+
/**
|
|
249
|
+
* If provided, forces this tab to be active.
|
|
250
|
+
* Parent sets this from route params.
|
|
251
|
+
*/
|
|
252
|
+
activeTab: string;
|
|
253
|
+
actionTriggered: EventEmitter<PageAction>;
|
|
254
|
+
/**
|
|
255
|
+
* Emitted when the user clicks a tab button so the parent
|
|
256
|
+
* can update the URL. The value is the tab's `.value` string.
|
|
257
|
+
*/
|
|
258
|
+
tabChange: EventEmitter<string>;
|
|
259
|
+
filteredRows: any[];
|
|
260
|
+
selectedRows: any[];
|
|
261
|
+
drawerReadOnly: boolean;
|
|
262
|
+
drawerAction: 'new' | 'edit' | 'view' | 'renew' | 'upgrade';
|
|
263
|
+
dynamicContextActions: ContextMenuAction[];
|
|
264
|
+
shareDialogOpen: boolean;
|
|
265
|
+
shareRow: any;
|
|
266
|
+
shareForm: {
|
|
267
|
+
to: string;
|
|
268
|
+
cc: string;
|
|
269
|
+
subject: string;
|
|
270
|
+
body: string;
|
|
271
|
+
};
|
|
272
|
+
shareSending: boolean;
|
|
273
|
+
shareSuccess: boolean;
|
|
274
|
+
constructor(cdr: ChangeDetectorRef, http: HttpClient);
|
|
275
|
+
onSelectionChange(rows: any[]): void;
|
|
276
|
+
onTableToolAction(action: string): void;
|
|
277
|
+
menuOpen: boolean;
|
|
278
|
+
menuPosition: {
|
|
279
|
+
top: number;
|
|
280
|
+
left: number;
|
|
281
|
+
};
|
|
282
|
+
menuRow: any;
|
|
283
|
+
drawerOpen: boolean;
|
|
284
|
+
drawerTitle: string;
|
|
285
|
+
drawerRowData: any;
|
|
286
|
+
showSubmitBtn: boolean;
|
|
287
|
+
sidePanelOpen: boolean;
|
|
288
|
+
sidePanelTitle: string;
|
|
289
|
+
sidePanelRow: any;
|
|
290
|
+
sidePanelColumns: SidePanelColumn[];
|
|
291
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
292
|
+
onTabChange(tab: string): void;
|
|
293
|
+
applyTabFilter(): void;
|
|
294
|
+
showAddButton(): boolean;
|
|
295
|
+
get computedTableToolConfig(): TableToolConfig | null;
|
|
296
|
+
get filteredContextActions(): ContextMenuAction[];
|
|
297
|
+
onMenuOpen(event: {
|
|
298
|
+
event: MouseEvent;
|
|
299
|
+
row: any;
|
|
300
|
+
}): void;
|
|
301
|
+
onRowClick(row: any): void;
|
|
302
|
+
onContextAction(event: {
|
|
303
|
+
action: string;
|
|
304
|
+
row: any;
|
|
305
|
+
}): void;
|
|
306
|
+
private populateLicenseDetails;
|
|
307
|
+
openShareDialog(row: any): void;
|
|
308
|
+
closeShareDialog(): void;
|
|
309
|
+
sendShareEmail(): void;
|
|
310
|
+
private openSidePanel;
|
|
311
|
+
openFormNew(): void;
|
|
312
|
+
onSave(payload: any): void;
|
|
313
|
+
onSubmitForApproval(payload: any): void;
|
|
314
|
+
private buildLicensePayload;
|
|
315
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageRendererComponent, never>;
|
|
316
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageRendererComponent, "o-page-renderer", never, { "page": { "alias": "page"; "required": false; }; "data": { "alias": "data"; "required": false; }; "userRole": { "alias": "userRole"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "actionTriggered": "actionTriggered"; "tabChange": "tabChange"; }, never, never, true, never>;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface BreadcrumbItem {
|
|
320
|
+
label: string;
|
|
321
|
+
route?: string;
|
|
322
|
+
}
|
|
323
|
+
declare class PageHeaderComponent {
|
|
324
|
+
breadcrumbs: BreadcrumbItem[];
|
|
325
|
+
title: string;
|
|
326
|
+
subtitle?: string;
|
|
327
|
+
actionLabel?: string;
|
|
328
|
+
showBack?: boolean;
|
|
329
|
+
actionClick: EventEmitter<void>;
|
|
330
|
+
backClick: EventEmitter<void>;
|
|
331
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "o-page-header", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "actionLabel": { "alias": "actionLabel"; "required": false; }; "showBack": { "alias": "showBack"; "required": false; }; }, { "actionClick": "actionClick"; "backClick": "backClick"; }, never, never, true, never>;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface NavItem {
|
|
336
|
+
key: string;
|
|
337
|
+
label: string;
|
|
338
|
+
svgPath: string;
|
|
339
|
+
tooltip?: string;
|
|
340
|
+
}
|
|
341
|
+
declare class SideNavComponent {
|
|
342
|
+
navItems: NavItem[];
|
|
343
|
+
activeKey: string;
|
|
344
|
+
showLogout: boolean;
|
|
345
|
+
navChange: EventEmitter<string>;
|
|
346
|
+
logout: EventEmitter<void>;
|
|
347
|
+
onNavClick(key: string): void;
|
|
348
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavComponent, never>;
|
|
349
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavComponent, "o-side-nav", never, { "navItems": { "alias": "navItems"; "required": false; }; "activeKey": { "alias": "activeKey"; "required": false; }; "showLogout": { "alias": "showLogout"; "required": false; }; }, { "navChange": "navChange"; "logout": "logout"; }, never, never, true, never>;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare class SearchFilterComponent implements OnInit, OnDestroy, OnChanges {
|
|
353
|
+
placeholder?: string;
|
|
354
|
+
value?: string;
|
|
355
|
+
search: EventEmitter<string>;
|
|
356
|
+
searchInputRef?: ElementRef<HTMLInputElement>;
|
|
357
|
+
inputValue: string;
|
|
358
|
+
private subject;
|
|
359
|
+
private sub?;
|
|
360
|
+
ngOnInit(): void;
|
|
361
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
362
|
+
ngOnDestroy(): void;
|
|
363
|
+
onInput(): void;
|
|
364
|
+
clear(): void;
|
|
365
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterComponent, never>;
|
|
366
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchFilterComponent, "o-search-filter", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "search": "search"; }, never, never, true, never>;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
type ConfirmationDialogType = 'danger' | 'warning' | 'info';
|
|
370
|
+
declare class ConfirmationDialogComponent {
|
|
371
|
+
open: boolean;
|
|
372
|
+
title: string;
|
|
373
|
+
message: string;
|
|
374
|
+
confirmLabel?: string;
|
|
375
|
+
cancelLabel?: string;
|
|
376
|
+
type?: ConfirmationDialogType;
|
|
377
|
+
confirmed: EventEmitter<void>;
|
|
378
|
+
cancelled: EventEmitter<void>;
|
|
379
|
+
onConfirm(): void;
|
|
380
|
+
onCancel(): void;
|
|
381
|
+
onOverlayClick(): void;
|
|
382
|
+
onEscape(): void;
|
|
383
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
384
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "o-confirmation-dialog", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface OTableColumn {
|
|
388
|
+
field: string;
|
|
389
|
+
header: string;
|
|
390
|
+
pipe?: 'status' | 'date';
|
|
391
|
+
width?: string;
|
|
392
|
+
}
|
|
393
|
+
interface OPagination {
|
|
394
|
+
page: number;
|
|
395
|
+
total: number;
|
|
396
|
+
total_pages: number;
|
|
397
|
+
startRow: number;
|
|
398
|
+
endRow: number;
|
|
399
|
+
pageLinks: number[];
|
|
400
|
+
}
|
|
401
|
+
declare class OTableComponent implements OnChanges {
|
|
402
|
+
columns: OTableColumn[];
|
|
403
|
+
rows: any[];
|
|
404
|
+
showActions: boolean;
|
|
405
|
+
showAdd: boolean;
|
|
406
|
+
addLabel: string;
|
|
407
|
+
pagination: OPagination;
|
|
408
|
+
openForm: EventEmitter<{
|
|
409
|
+
status: string;
|
|
410
|
+
row?: any;
|
|
411
|
+
}>;
|
|
412
|
+
paginationIndex: EventEmitter<number>;
|
|
413
|
+
rowSelect: EventEmitter<any>;
|
|
414
|
+
selectedRows: any[];
|
|
415
|
+
allSelected: boolean;
|
|
416
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
417
|
+
onRowClick(row: any): void;
|
|
418
|
+
toggleAll(event: Event): void;
|
|
419
|
+
toggleRow(row: any): void;
|
|
420
|
+
isSelected(row: any): boolean;
|
|
421
|
+
prevPage(): void;
|
|
422
|
+
nextPage(): void;
|
|
423
|
+
showPage(page: number): void;
|
|
424
|
+
onAddClick(): void;
|
|
425
|
+
getCellValue(row: any, field: string): any;
|
|
426
|
+
formatDate(value: any): string;
|
|
427
|
+
statusClass(status: string): string;
|
|
428
|
+
columnWidth(col: OTableColumn): string;
|
|
429
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, never>;
|
|
430
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTableComponent, "o-table", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "showAdd": { "alias": "showAdd"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; }, { "openForm": "openForm"; "paginationIndex": "paginationIndex"; "rowSelect": "rowSelect"; }, never, ["[slot=actions]"], true, never>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
interface OTableToolsConfig {
|
|
434
|
+
add?: boolean;
|
|
435
|
+
edit?: boolean;
|
|
436
|
+
refresh?: boolean;
|
|
437
|
+
clear?: boolean;
|
|
438
|
+
export?: boolean;
|
|
439
|
+
import?: boolean;
|
|
440
|
+
print?: boolean;
|
|
441
|
+
duplicate?: boolean;
|
|
442
|
+
}
|
|
443
|
+
declare class OTableToolsComponent {
|
|
444
|
+
config: OTableToolsConfig;
|
|
445
|
+
toolAction: EventEmitter<string>;
|
|
446
|
+
emit(action: string): void;
|
|
447
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OTableToolsComponent, never>;
|
|
448
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OTableToolsComponent, "o-table-tools", never, { "config": { "alias": "config"; "required": false; }; }, { "toolAction": "toolAction"; }, never, never, true, never>;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare class OToggleButtonComponent implements OnChanges {
|
|
452
|
+
elements: {
|
|
453
|
+
label: string;
|
|
454
|
+
value: string;
|
|
455
|
+
}[];
|
|
456
|
+
selectedValue?: string;
|
|
457
|
+
toggleChange: EventEmitter<{
|
|
458
|
+
label: string;
|
|
459
|
+
value: string;
|
|
460
|
+
}>;
|
|
461
|
+
activeIndex: number;
|
|
462
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
463
|
+
select(index: number, element: {
|
|
464
|
+
label: string;
|
|
465
|
+
value: string;
|
|
466
|
+
}): void;
|
|
467
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OToggleButtonComponent, never>;
|
|
468
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OToggleButtonComponent, "o-toggle-button", never, { "elements": { "alias": "elements"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, never, true, never>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare class ODialogComponent {
|
|
472
|
+
open: boolean;
|
|
473
|
+
title: string;
|
|
474
|
+
width: string;
|
|
475
|
+
valid: boolean;
|
|
476
|
+
showFooter: boolean;
|
|
477
|
+
submitLabel: string;
|
|
478
|
+
onClose: EventEmitter<void>;
|
|
479
|
+
onSubmit: EventEmitter<void>;
|
|
480
|
+
close(): void;
|
|
481
|
+
submit(): void;
|
|
482
|
+
onOverlayClick(event: MouseEvent): void;
|
|
483
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODialogComponent, never>;
|
|
484
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ODialogComponent, "o-dialog", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "submitLabel": { "alias": "submitLabel"; "required": false; }; }, { "onClose": "onClose"; "onSubmit": "onSubmit"; }, never, ["*"], true, never>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
declare class OStatusToggleComponent implements ControlValueAccessor {
|
|
488
|
+
labels: [string, string];
|
|
489
|
+
value: boolean;
|
|
490
|
+
disabled: boolean;
|
|
491
|
+
valueChange: EventEmitter<boolean>;
|
|
492
|
+
private onChange;
|
|
493
|
+
private onTouched;
|
|
494
|
+
get activeLabel(): string;
|
|
495
|
+
get inactiveLabel(): string;
|
|
496
|
+
toggle(): void;
|
|
497
|
+
writeValue(val: boolean): void;
|
|
498
|
+
registerOnChange(fn: (val: boolean) => void): void;
|
|
499
|
+
registerOnTouched(fn: () => void): void;
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OStatusToggleComponent, never>;
|
|
501
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OStatusToggleComponent, "o-status-toggle", never, { "labels": { "alias": "labels"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
interface ODotsActionItem {
|
|
505
|
+
label: string;
|
|
506
|
+
action: string;
|
|
507
|
+
isDanger?: boolean;
|
|
508
|
+
}
|
|
509
|
+
declare class ODotsActionComponent {
|
|
510
|
+
private readonly el;
|
|
511
|
+
items: ODotsActionItem[];
|
|
512
|
+
open: boolean;
|
|
513
|
+
itemClick: EventEmitter<ODotsActionItem>;
|
|
514
|
+
toggled: EventEmitter<boolean>;
|
|
515
|
+
constructor(el: ElementRef);
|
|
516
|
+
toggle(event: MouseEvent): void;
|
|
517
|
+
onItemClick(event: MouseEvent, item: ODotsActionItem): void;
|
|
518
|
+
onDocumentClick(event: MouseEvent): void;
|
|
519
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODotsActionComponent, never>;
|
|
520
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ODotsActionComponent, "o-dots-action", never, { "items": { "alias": "items"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, { "itemClick": "itemClick"; "toggled": "toggled"; }, never, never, true, never>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
interface OToastMessage {
|
|
524
|
+
id: string;
|
|
525
|
+
heading?: string;
|
|
526
|
+
message: string;
|
|
527
|
+
type: 'success' | 'error' | 'warning' | 'info';
|
|
528
|
+
autoHide?: boolean;
|
|
529
|
+
delay?: number;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
declare class OToastService {
|
|
533
|
+
private readonly _messages$;
|
|
534
|
+
get messages$(): Observable<OToastMessage[]>;
|
|
535
|
+
private add;
|
|
536
|
+
addSuccess(heading: string, message: string, autoHide?: boolean, delay?: number): void;
|
|
537
|
+
addError(heading: string, message: string, autoHide?: boolean, delay?: number): void;
|
|
538
|
+
addWarning(heading: string, message: string, autoHide?: boolean, delay?: number): void;
|
|
539
|
+
addInfo(heading: string, message: string, autoHide?: boolean, delay?: number): void;
|
|
540
|
+
remove(id: string): void;
|
|
541
|
+
clear(): void;
|
|
542
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OToastService, never>;
|
|
543
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OToastService>;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
declare class OToastComponent implements OnInit, OnDestroy {
|
|
547
|
+
private readonly toastService;
|
|
548
|
+
private readonly cdr;
|
|
549
|
+
messages: OToastMessage[];
|
|
550
|
+
private sub?;
|
|
551
|
+
constructor(toastService: OToastService, cdr: ChangeDetectorRef);
|
|
552
|
+
ngOnInit(): void;
|
|
553
|
+
ngOnDestroy(): void;
|
|
554
|
+
remove(id: string): void;
|
|
555
|
+
typeColor(type: OToastMessage['type']): string;
|
|
556
|
+
typeLabel(type: OToastMessage['type']): string;
|
|
557
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OToastComponent, never>;
|
|
558
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OToastComponent, "o-toast", never, {}, {}, never, never, true, never>;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare class OSelectComponent implements ControlValueAccessor {
|
|
562
|
+
options: {
|
|
563
|
+
label: string;
|
|
564
|
+
value: any;
|
|
565
|
+
}[];
|
|
566
|
+
placeholder: string;
|
|
567
|
+
value: any;
|
|
568
|
+
disabled: boolean;
|
|
569
|
+
valueChange: EventEmitter<any>;
|
|
570
|
+
private onChange;
|
|
571
|
+
onTouched: () => void;
|
|
572
|
+
onSelectChange(event: Event): void;
|
|
573
|
+
optionStringValue(val: any): string;
|
|
574
|
+
writeValue(val: any): void;
|
|
575
|
+
registerOnChange(fn: (val: any) => void): void;
|
|
576
|
+
registerOnTouched(fn: () => void): void;
|
|
577
|
+
setDisabledState(isDisabled: boolean): void;
|
|
578
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OSelectComponent, never>;
|
|
579
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OSelectComponent, "o-select", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
interface OLicenseModuleMetadata {
|
|
583
|
+
label: string;
|
|
584
|
+
desc: string;
|
|
585
|
+
icon: string;
|
|
586
|
+
}
|
|
587
|
+
interface OLicenseAccessKey {
|
|
588
|
+
screen: string;
|
|
589
|
+
name: string;
|
|
590
|
+
isMark: boolean;
|
|
591
|
+
isDisabled: boolean;
|
|
592
|
+
}
|
|
593
|
+
interface OLicensePlanData {
|
|
594
|
+
productName: string;
|
|
595
|
+
accessKeys: {
|
|
596
|
+
[groupKey: string]: OLicenseAccessKey[];
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
interface OLicenseModuleGroup {
|
|
600
|
+
groupName: string;
|
|
601
|
+
features: OLicenseDisplayedFeature[];
|
|
602
|
+
}
|
|
603
|
+
interface OLicenseDisplayedFeature {
|
|
604
|
+
screen: string;
|
|
605
|
+
name: string;
|
|
606
|
+
isDisabled: boolean;
|
|
607
|
+
productName: string;
|
|
608
|
+
}
|
|
609
|
+
interface OLicenseModulesConfig {
|
|
610
|
+
modules: {
|
|
611
|
+
[key: string]: {
|
|
612
|
+
label: string;
|
|
613
|
+
desc: string;
|
|
614
|
+
icon: string;
|
|
615
|
+
groups: {
|
|
616
|
+
[groupName: string]: string[];
|
|
617
|
+
};
|
|
618
|
+
systemSettings?: string[];
|
|
619
|
+
businessMaster?: string[];
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
system: {
|
|
623
|
+
[key: string]: string[];
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
interface OLicenseModulesValue {
|
|
627
|
+
[productName: string]: string[];
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class OLicenseModulesComponent implements OnInit, OnDestroy, OnChanges, ControlValueAccessor {
|
|
631
|
+
private readonly http;
|
|
632
|
+
private readonly cdr;
|
|
633
|
+
configPath: string;
|
|
634
|
+
disabled: boolean;
|
|
635
|
+
value: OLicenseModulesValue | null;
|
|
636
|
+
valueChange: EventEmitter<OLicenseModulesValue>;
|
|
637
|
+
allData: i0.WritableSignal<OLicensePlanData[]>;
|
|
638
|
+
selectedModules: i0.WritableSignal<Set<string>>;
|
|
639
|
+
isCustomMode: i0.WritableSignal<boolean>;
|
|
640
|
+
searchText: i0.WritableSignal<string>;
|
|
641
|
+
form: FormGroup;
|
|
642
|
+
private moduleMetadata;
|
|
643
|
+
private readonly destroy$;
|
|
644
|
+
private configLoaded;
|
|
645
|
+
private onChange;
|
|
646
|
+
private onTouched;
|
|
647
|
+
constructor(http: HttpClient, cdr: ChangeDetectorRef);
|
|
648
|
+
ngOnInit(): void;
|
|
649
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
650
|
+
ngOnDestroy(): void;
|
|
651
|
+
writeValue(val: OLicenseModulesValue | null): void;
|
|
652
|
+
registerOnChange(fn: (val: OLicenseModulesValue) => void): void;
|
|
653
|
+
registerOnTouched(fn: () => void): void;
|
|
654
|
+
setDisabledState(isDisabled: boolean): void;
|
|
655
|
+
private setupForm;
|
|
656
|
+
private applyInitialValue;
|
|
657
|
+
private checkAllFeaturesForPlan;
|
|
658
|
+
getModuleMetadata(name: string): OLicenseModuleMetadata | undefined;
|
|
659
|
+
toggleModule(productName: string): void;
|
|
660
|
+
private uncheckAllForProduct;
|
|
661
|
+
getFormControl(productName: string, screen: string): FormControl;
|
|
662
|
+
filterFeatures(text: string): void;
|
|
663
|
+
getDisplayedGroups(): OLicenseModuleGroup[];
|
|
664
|
+
getTotalFeaturesCount(): number;
|
|
665
|
+
getSelectedModulesTitle(): string;
|
|
666
|
+
clearAll(): void;
|
|
667
|
+
private buildOutputValue;
|
|
668
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OLicenseModulesComponent, never>;
|
|
669
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OLicenseModulesComponent, "o-license-modules", never, { "configPath": { "alias": "configPath"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export { ConfirmationDialogComponent, ContextMenuComponent, ContextSwitcherComponent, DataTableComponent, FormDrawerComponent, ODialogComponent, ODotsActionComponent, OLicenseModulesComponent, OSelectComponent, OSidePanelComponent, OStatusToggleComponent, OTableComponent, OTableToolsComponent, OToastComponent, OToastService, OToggleButtonComponent, OUi, PageHeaderComponent, PageRendererComponent, SearchFilterComponent, SideNavComponent, ToggleTabsComponent };
|
|
673
|
+
export type { BreadcrumbItem, ConfirmationDialogType, ContextMenuAction, FormField, FormStep, NavItem, ODotsActionItem, OLicenseAccessKey, OLicenseDisplayedFeature, OLicenseModuleGroup, OLicenseModuleMetadata, OLicenseModulesConfig, OLicenseModulesValue, OLicensePlanData, OPagination, OTableColumn, OTableToolsConfig, OToastMessage, PageAction, PageConfig, SidePanelColumn, TableAction, TableColumn, TableToolConfig, ToggleTab, UserRole };
|