@eherve/angular-material-section-tabs 0.0.0-stage → 22.0.0
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.
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, EventEmitter, InjectionToken, OnChanges, OnDestroy, SimpleChanges, TemplateRef, Type } from "@angular/core";
|
|
3
|
+
import { Observable, Subject } from "rxjs";
|
|
4
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
5
|
+
import * as i9 from "@angular/common";
|
|
6
|
+
import * as i10 from "@angular/material/button";
|
|
7
|
+
import * as i11 from "@angular/material/icon";
|
|
8
|
+
import * as i12 from "@angular/material/menu";
|
|
9
|
+
import * as i13 from "@angular/material/core";
|
|
10
|
+
import * as i14 from "@angular/material/slide-toggle";
|
|
11
|
+
import * as i15 from "@angular/material/tooltip";
|
|
12
|
+
export interface SectionSelectionHandler {
|
|
13
|
+
observe(key: string): Observable<string | null>;
|
|
14
|
+
select(key: string, value: string): void | Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare const SECTION_SELECTION_HANDLER: InjectionToken<SectionSelectionHandler>;
|
|
17
|
+
export interface SectionTabsMessages {
|
|
18
|
+
sections: string;
|
|
19
|
+
emptySections: string;
|
|
20
|
+
emptyComponents: string;
|
|
21
|
+
emptyFields: string;
|
|
22
|
+
emptyFieldsDescription: string;
|
|
23
|
+
showEmptyFields: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class SectionTabsIntl {
|
|
26
|
+
readonly changes: Subject<void>;
|
|
27
|
+
messages: SectionTabsMessages;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsIntl, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
30
|
+
}
|
|
31
|
+
declare namespace section_tab_content_directive_d_exports {
|
|
32
|
+
export { SectionTabContentDirective };
|
|
33
|
+
}
|
|
34
|
+
export declare class SectionTabContentDirective {
|
|
35
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
36
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabContentDirective, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionTabContentDirective, "ng-template[appSectionTabContent]", never, {}, {}, never, never, false, never>;
|
|
39
|
+
}
|
|
40
|
+
declare namespace section_tab_label_directive_d_exports {
|
|
41
|
+
export { SectionTabLabelDirective };
|
|
42
|
+
}
|
|
43
|
+
export declare class SectionTabLabelDirective {
|
|
44
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
45
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabLabelDirective, never>;
|
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionTabLabelDirective, "ng-template[appSectionTabLabel]", never, {}, {}, never, never, false, never>;
|
|
48
|
+
}
|
|
49
|
+
declare namespace section_tab_component_d_exports {
|
|
50
|
+
export { SectionTabComponent, SectionTabCounter, SectionTabType };
|
|
51
|
+
}
|
|
52
|
+
export type SectionTabCounter = number | string | null | undefined;
|
|
53
|
+
export type SectionTabType = "button" | "separator";
|
|
54
|
+
export declare class SectionTabComponent implements OnChanges, OnDestroy {
|
|
55
|
+
type: SectionTabType;
|
|
56
|
+
queryParamValue?: string;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
done: SectionTabCounter;
|
|
59
|
+
total: SectionTabCounter;
|
|
60
|
+
totalMax: SectionTabCounter;
|
|
61
|
+
progress: boolean;
|
|
62
|
+
statusColor?: string | undefined;
|
|
63
|
+
statusColorDone?: string;
|
|
64
|
+
statusColorTotal?: string;
|
|
65
|
+
labelDirective?: SectionTabLabelDirective;
|
|
66
|
+
contentDirective?: SectionTabContentDirective;
|
|
67
|
+
readonly stateChanges: Subject<void>;
|
|
68
|
+
ngOnChanges(): void;
|
|
69
|
+
ngOnDestroy(): void;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionTabComponent, "app-section-tab", never, {
|
|
72
|
+
"type": {
|
|
73
|
+
"alias": "type";
|
|
74
|
+
"required": false;
|
|
75
|
+
};
|
|
76
|
+
"queryParamValue": {
|
|
77
|
+
"alias": "queryParamValue";
|
|
78
|
+
"required": false;
|
|
79
|
+
};
|
|
80
|
+
"disabled": {
|
|
81
|
+
"alias": "disabled";
|
|
82
|
+
"required": false;
|
|
83
|
+
};
|
|
84
|
+
"done": {
|
|
85
|
+
"alias": "done";
|
|
86
|
+
"required": false;
|
|
87
|
+
};
|
|
88
|
+
"total": {
|
|
89
|
+
"alias": "total";
|
|
90
|
+
"required": false;
|
|
91
|
+
};
|
|
92
|
+
"totalMax": {
|
|
93
|
+
"alias": "totalMax";
|
|
94
|
+
"required": false;
|
|
95
|
+
};
|
|
96
|
+
"progress": {
|
|
97
|
+
"alias": "progress";
|
|
98
|
+
"required": false;
|
|
99
|
+
};
|
|
100
|
+
"statusColor": {
|
|
101
|
+
"alias": "statusColor";
|
|
102
|
+
"required": false;
|
|
103
|
+
};
|
|
104
|
+
"statusColorDone": {
|
|
105
|
+
"alias": "statusColorDone";
|
|
106
|
+
"required": false;
|
|
107
|
+
};
|
|
108
|
+
"statusColorTotal": {
|
|
109
|
+
"alias": "statusColorTotal";
|
|
110
|
+
"required": false;
|
|
111
|
+
};
|
|
112
|
+
}, {}, ["labelDirective", "contentDirective"], never, false, never>;
|
|
113
|
+
static ngAcceptInputType_disabled: unknown;
|
|
114
|
+
}
|
|
115
|
+
declare namespace section_tabs_component_d_exports {
|
|
116
|
+
export { SectionTabItem, SectionTabsComponent, sectionTabsSlideBottomTransitions, sectionTabsSlideTopTransitions };
|
|
117
|
+
}
|
|
118
|
+
export interface SectionTabItem {
|
|
119
|
+
tab: SectionTabComponent;
|
|
120
|
+
type: SectionTabType;
|
|
121
|
+
index: number;
|
|
122
|
+
renderIndex: number;
|
|
123
|
+
queryParamValue?: string;
|
|
124
|
+
selected: boolean;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
buttonId: string;
|
|
127
|
+
panelId: string;
|
|
128
|
+
statusDoneLabel?: string;
|
|
129
|
+
statusTotalLabel?: string;
|
|
130
|
+
progress?: number;
|
|
131
|
+
labelTemplate?: TemplateRef<unknown>;
|
|
132
|
+
contentTemplate?: TemplateRef<unknown>;
|
|
133
|
+
}
|
|
134
|
+
export declare const sectionTabsSlideTopTransitions: (import("@angular/animations").AnimationQueryMetadata | import("@angular/animations").AnimationGroupMetadata)[];
|
|
135
|
+
export declare const sectionTabsSlideBottomTransitions: (import("@angular/animations").AnimationQueryMetadata | import("@angular/animations").AnimationGroupMetadata)[];
|
|
136
|
+
export declare class SectionTabsComponent implements AfterContentInit, OnChanges, OnDestroy {
|
|
137
|
+
private static nextId;
|
|
138
|
+
selectedIndex: number;
|
|
139
|
+
queryParamKey?: string;
|
|
140
|
+
selectedIndexChange: EventEmitter<number>;
|
|
141
|
+
private tabComponents;
|
|
142
|
+
private menuHeaderDirective?;
|
|
143
|
+
private footerDirective?;
|
|
144
|
+
readonly intl: SectionTabsIntl;
|
|
145
|
+
readonly instanceId: string;
|
|
146
|
+
tabItems: SectionTabItem[];
|
|
147
|
+
activeTabItems: SectionTabItem[];
|
|
148
|
+
selectedTabItem?: SectionTabItem;
|
|
149
|
+
menuHeaderTemplate?: TemplateRef<unknown>;
|
|
150
|
+
footerTemplate?: TemplateRef<unknown>;
|
|
151
|
+
private readonly changeDetectorRef;
|
|
152
|
+
private readonly handler;
|
|
153
|
+
private readonly errorHandler;
|
|
154
|
+
private handlerSubscription?;
|
|
155
|
+
private handlerGeneration;
|
|
156
|
+
private externalValue;
|
|
157
|
+
private readonly subscriptions;
|
|
158
|
+
private tabStateSubscriptions;
|
|
159
|
+
private contentInitialized;
|
|
160
|
+
ngAfterContentInit(): void;
|
|
161
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
162
|
+
ngOnDestroy(): void;
|
|
163
|
+
selectTab(tabItem: SectionTabItem): void;
|
|
164
|
+
private handleTabsChange;
|
|
165
|
+
private handleTabStateChange;
|
|
166
|
+
private refreshProjectedTemplates;
|
|
167
|
+
private refreshTabItems;
|
|
168
|
+
private buildTabItems;
|
|
169
|
+
private refreshTabStateSubscriptions;
|
|
170
|
+
private buildTabItem;
|
|
171
|
+
private synchronizeSelectionWithQueryParameter;
|
|
172
|
+
private bindSelectionHandler;
|
|
173
|
+
private getQueryParameterValue;
|
|
174
|
+
private updateQueryParameter;
|
|
175
|
+
private buildDoneLabel;
|
|
176
|
+
private buildTotalLabel;
|
|
177
|
+
private buildDisplayedTotal;
|
|
178
|
+
private toNumericCounter;
|
|
179
|
+
private buildProgress;
|
|
180
|
+
private hasCounterValue;
|
|
181
|
+
private applySelectedIndex;
|
|
182
|
+
private getSafeSelectedIndex;
|
|
183
|
+
private refreshSelection;
|
|
184
|
+
private clearSelection;
|
|
185
|
+
private getSelectableTabItems;
|
|
186
|
+
private isSelectableTabItem;
|
|
187
|
+
private isButtonTabItem;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsComponent, never>;
|
|
189
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionTabsComponent, "app-section-tabs", never, {
|
|
190
|
+
"selectedIndex": {
|
|
191
|
+
"alias": "selectedIndex";
|
|
192
|
+
"required": false;
|
|
193
|
+
};
|
|
194
|
+
"queryParamKey": {
|
|
195
|
+
"alias": "queryParamKey";
|
|
196
|
+
"required": false;
|
|
197
|
+
};
|
|
198
|
+
}, {
|
|
199
|
+
"selectedIndexChange": "selectedIndexChange";
|
|
200
|
+
}, ["menuHeaderDirective", "footerDirective", "tabComponents"], never, false, never>;
|
|
201
|
+
}
|
|
202
|
+
export interface SectionTabsDisplayGrid {
|
|
203
|
+
columns: number;
|
|
204
|
+
gap: string;
|
|
205
|
+
minColumnWidth: string;
|
|
206
|
+
}
|
|
207
|
+
export type SectionTabsDisplaySectionMode = 'default' | 'single-card';
|
|
208
|
+
export interface SectionTabsDisplayLayout {
|
|
209
|
+
colSpan?: number;
|
|
210
|
+
rowSpan?: number;
|
|
211
|
+
breakBefore?: boolean;
|
|
212
|
+
breakAfter?: boolean;
|
|
213
|
+
styles?: Record<string, string>;
|
|
214
|
+
classes?: string;
|
|
215
|
+
}
|
|
216
|
+
export type SectionTabsDisplayCounter = number | string | null | undefined;
|
|
217
|
+
export interface SectionTabsDisplayCompletion {
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
done?: SectionTabsDisplayCounter;
|
|
220
|
+
total?: SectionTabsDisplayCounter;
|
|
221
|
+
donePath?: string;
|
|
222
|
+
totalPath?: string;
|
|
223
|
+
}
|
|
224
|
+
export interface SectionTabsDisplaySelectOption {
|
|
225
|
+
label: string;
|
|
226
|
+
value: unknown;
|
|
227
|
+
color?: string;
|
|
228
|
+
}
|
|
229
|
+
export interface SectionTabsDisplayChipConfig {
|
|
230
|
+
icon?: string;
|
|
231
|
+
labelPath?: string;
|
|
232
|
+
color?: string;
|
|
233
|
+
colorPath?: string;
|
|
234
|
+
trackByPath?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface SectionTabsDisplayChipViewModel {
|
|
237
|
+
label: string;
|
|
238
|
+
trackValue: unknown;
|
|
239
|
+
icon?: string;
|
|
240
|
+
color?: string;
|
|
241
|
+
}
|
|
242
|
+
export type SectionTabsDisplayFieldKind = 'text' | 'number' | 'date' | 'select' | 'chips' | 'component' | string;
|
|
243
|
+
export type SectionTabsDisplayCardKind = 'fields' | 'component';
|
|
244
|
+
export interface SectionTabsDisplayFieldLabelAction {
|
|
245
|
+
active: boolean;
|
|
246
|
+
disabled: boolean;
|
|
247
|
+
ariaLabel: string;
|
|
248
|
+
onClick: () => void | Promise<void>;
|
|
249
|
+
}
|
|
250
|
+
export interface SectionTabsDisplayField {
|
|
251
|
+
kind: SectionTabsDisplayFieldKind;
|
|
252
|
+
visible?: (record: any) => boolean;
|
|
253
|
+
label: string;
|
|
254
|
+
path: string;
|
|
255
|
+
labelAction?: SectionTabsDisplayFieldLabelAction;
|
|
256
|
+
layout?: SectionTabsDisplayLayout;
|
|
257
|
+
color?: string;
|
|
258
|
+
suffix?: string;
|
|
259
|
+
decimal?: number;
|
|
260
|
+
unit?: string;
|
|
261
|
+
dateFormat?: string;
|
|
262
|
+
options?: SectionTabsDisplaySelectOption[];
|
|
263
|
+
chips?: SectionTabsDisplayChipConfig;
|
|
264
|
+
component?: Type<unknown>;
|
|
265
|
+
componentInputs?: Record<string, unknown>;
|
|
266
|
+
onClick?: (value: any) => void;
|
|
267
|
+
}
|
|
268
|
+
export interface SectionTabsDisplayCardMenuOption {
|
|
269
|
+
id: string;
|
|
270
|
+
label: string;
|
|
271
|
+
icon?: string;
|
|
272
|
+
tooltip?: string;
|
|
273
|
+
ariaLabel?: string;
|
|
274
|
+
disabled: boolean;
|
|
275
|
+
handle: () => void;
|
|
276
|
+
}
|
|
277
|
+
export interface SectionTabsDisplayCardAction {
|
|
278
|
+
id?: string;
|
|
279
|
+
type: 'icon' | 'button';
|
|
280
|
+
icon?: string;
|
|
281
|
+
label?: string;
|
|
282
|
+
tooltip?: string;
|
|
283
|
+
ariaLabel?: string;
|
|
284
|
+
color?: string;
|
|
285
|
+
disabled: boolean;
|
|
286
|
+
menuOptions?: SectionTabsDisplayCardMenuOption[];
|
|
287
|
+
handle: () => void;
|
|
288
|
+
}
|
|
289
|
+
export interface SectionTabsDisplayCard {
|
|
290
|
+
id: string;
|
|
291
|
+
visible?: (record: any) => boolean;
|
|
292
|
+
label: string;
|
|
293
|
+
icon?: string;
|
|
294
|
+
tooltip?: string;
|
|
295
|
+
kind?: SectionTabsDisplayCardKind;
|
|
296
|
+
path?: string;
|
|
297
|
+
grid?: SectionTabsDisplayGrid;
|
|
298
|
+
layout?: SectionTabsDisplayLayout;
|
|
299
|
+
fields?: SectionTabsDisplayField[];
|
|
300
|
+
component?: Type<unknown>;
|
|
301
|
+
componentInputs?: Record<string, unknown>;
|
|
302
|
+
completion?: false | SectionTabsDisplayCompletion;
|
|
303
|
+
actions?: SectionTabsDisplayCardAction[];
|
|
304
|
+
}
|
|
305
|
+
export interface SectionTabsDisplaySection {
|
|
306
|
+
id: string;
|
|
307
|
+
queryParamValue?: string;
|
|
308
|
+
visible?: (record: any) => boolean;
|
|
309
|
+
label: string;
|
|
310
|
+
icon?: string;
|
|
311
|
+
tooltip?: string;
|
|
312
|
+
sectionMode?: SectionTabsDisplaySectionMode;
|
|
313
|
+
grid?: SectionTabsDisplayGrid;
|
|
314
|
+
cards: SectionTabsDisplayCard[];
|
|
315
|
+
completion?: false | SectionTabsDisplayCompletion;
|
|
316
|
+
}
|
|
317
|
+
export interface SectionTabsDisplayOptions {
|
|
318
|
+
data: unknown;
|
|
319
|
+
sections: SectionTabsDisplaySection[];
|
|
320
|
+
showEmptyFields?: boolean;
|
|
321
|
+
showEmptyFieldsToggle?: boolean;
|
|
322
|
+
showEmptyFieldsLabel?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface SectionTabsDisplayFieldComponentContext {
|
|
325
|
+
data: unknown;
|
|
326
|
+
value: unknown;
|
|
327
|
+
field: SectionTabsDisplayField;
|
|
328
|
+
card: SectionTabsDisplayCard;
|
|
329
|
+
section: SectionTabsDisplaySection;
|
|
330
|
+
options: SectionTabsDisplayOptions;
|
|
331
|
+
}
|
|
332
|
+
export interface SectionTabsDisplayCardComponentContext {
|
|
333
|
+
data: unknown;
|
|
334
|
+
value: unknown;
|
|
335
|
+
card: SectionTabsDisplayCard;
|
|
336
|
+
section: SectionTabsDisplaySection;
|
|
337
|
+
options: SectionTabsDisplayOptions;
|
|
338
|
+
}
|
|
339
|
+
declare namespace section_tabs_display_component_d_exports {
|
|
340
|
+
export { SectionTabsDisplayComponent };
|
|
341
|
+
}
|
|
342
|
+
interface SectionTabsDisplayCompletionState {
|
|
343
|
+
enabled: boolean;
|
|
344
|
+
done?: SectionTabsDisplayCounter;
|
|
345
|
+
total?: SectionTabsDisplayCounter;
|
|
346
|
+
label?: string;
|
|
347
|
+
}
|
|
348
|
+
interface SectionTabsDisplayRenderBreak {
|
|
349
|
+
id: string;
|
|
350
|
+
type: 'break';
|
|
351
|
+
}
|
|
352
|
+
interface SectionTabsDisplayRenderField {
|
|
353
|
+
id: string;
|
|
354
|
+
type: 'field';
|
|
355
|
+
source: SectionTabsDisplayField;
|
|
356
|
+
label: string;
|
|
357
|
+
labelAction?: SectionTabsDisplayFieldLabelAction;
|
|
358
|
+
kind: SectionTabsDisplayFieldKind;
|
|
359
|
+
value: unknown;
|
|
360
|
+
filled: boolean;
|
|
361
|
+
displayValue: string | SafeHtml;
|
|
362
|
+
chipsValue: SectionTabsDisplayChipViewModel[];
|
|
363
|
+
color?: string;
|
|
364
|
+
suffix?: string;
|
|
365
|
+
component?: Type<unknown>;
|
|
366
|
+
componentInputs?: Record<string, unknown>;
|
|
367
|
+
styles: Record<string, string>;
|
|
368
|
+
classes: Record<string, boolean>;
|
|
369
|
+
onClick?: (value: any) => void;
|
|
370
|
+
}
|
|
371
|
+
type SectionTabsDisplayFieldItem = SectionTabsDisplayRenderBreak | SectionTabsDisplayRenderField;
|
|
372
|
+
interface SectionTabsDisplayRenderCard {
|
|
373
|
+
id: string;
|
|
374
|
+
type: 'card';
|
|
375
|
+
source: SectionTabsDisplayCard;
|
|
376
|
+
responsiveGrid: boolean;
|
|
377
|
+
label: string;
|
|
378
|
+
icon?: string;
|
|
379
|
+
tooltip?: string;
|
|
380
|
+
kind: SectionTabsDisplayCardKind;
|
|
381
|
+
component?: Type<unknown>;
|
|
382
|
+
componentInputs?: Record<string, unknown>;
|
|
383
|
+
gridStyles: Record<string, string>;
|
|
384
|
+
styles: Record<string, string>;
|
|
385
|
+
classes: Record<string, boolean>;
|
|
386
|
+
items: SectionTabsDisplayFieldItem[];
|
|
387
|
+
completion: SectionTabsDisplayCompletionState;
|
|
388
|
+
actions?: SectionTabsDisplayCardAction[];
|
|
389
|
+
}
|
|
390
|
+
interface SectionTabsDisplayRenderCardBreak {
|
|
391
|
+
id: string;
|
|
392
|
+
type: 'break';
|
|
393
|
+
}
|
|
394
|
+
type SectionTabsDisplayCardItem = SectionTabsDisplayRenderCard | SectionTabsDisplayRenderCardBreak;
|
|
395
|
+
interface SectionTabsDisplayRenderSection {
|
|
396
|
+
id: string;
|
|
397
|
+
queryParamValue: string;
|
|
398
|
+
source: SectionTabsDisplaySection;
|
|
399
|
+
responsiveGrid: boolean;
|
|
400
|
+
label: string;
|
|
401
|
+
icon?: string;
|
|
402
|
+
tooltip?: string;
|
|
403
|
+
sectionMode: SectionTabsDisplaySectionMode;
|
|
404
|
+
cardCount: number;
|
|
405
|
+
gridStyles: Record<string, string>;
|
|
406
|
+
items: SectionTabsDisplayCardItem[];
|
|
407
|
+
done?: SectionTabsDisplayCounter;
|
|
408
|
+
total?: SectionTabsDisplayCounter;
|
|
409
|
+
}
|
|
410
|
+
interface SectionTabsDisplayViewModel {
|
|
411
|
+
sections: SectionTabsDisplayRenderSection[];
|
|
412
|
+
empty: boolean;
|
|
413
|
+
}
|
|
414
|
+
export declare class SectionTabsDisplayComponent implements OnChanges {
|
|
415
|
+
private readonly locale;
|
|
416
|
+
readonly intl: SectionTabsIntl;
|
|
417
|
+
private readonly componentInputNamesByType;
|
|
418
|
+
private pickDeclaredComponentInputs;
|
|
419
|
+
private getDeclaredComponentInputNames;
|
|
420
|
+
options: SectionTabsDisplayOptions;
|
|
421
|
+
selectedIndex: number;
|
|
422
|
+
queryParamKey?: string;
|
|
423
|
+
menuHeader?: string;
|
|
424
|
+
showEmptyFields?: boolean;
|
|
425
|
+
selectedIndexChange: EventEmitter<number>;
|
|
426
|
+
showEmptyFieldsChange: EventEmitter<boolean>;
|
|
427
|
+
viewModel: SectionTabsDisplayViewModel;
|
|
428
|
+
showEmptyFieldsState: boolean;
|
|
429
|
+
showEmptyFieldsToggle: boolean;
|
|
430
|
+
showEmptyFieldsLabel: string;
|
|
431
|
+
private emptyFieldsStateInitialized;
|
|
432
|
+
private lastOptionShowEmptyFields?;
|
|
433
|
+
constructor(locale: string, intl: SectionTabsIntl, changeDetector: ChangeDetectorRef, destroyRef: DestroyRef);
|
|
434
|
+
ngOnChanges(): void;
|
|
435
|
+
onSelectedIndexChange(index: number): void;
|
|
436
|
+
onShowEmptyFieldsChange(checked: boolean): void;
|
|
437
|
+
onClickFieldItem(fieldItem: SectionTabsDisplayRenderField): void;
|
|
438
|
+
private syncEmptyFieldsLabel;
|
|
439
|
+
private syncEmptyFieldsOptions;
|
|
440
|
+
private buildViewModel;
|
|
441
|
+
private buildSection;
|
|
442
|
+
private buildCardItems;
|
|
443
|
+
private buildCard;
|
|
444
|
+
private buildFields;
|
|
445
|
+
private buildVisibleFieldItems;
|
|
446
|
+
private buildField;
|
|
447
|
+
private buildFieldComponentInputs;
|
|
448
|
+
private buildCardComponentInputs;
|
|
449
|
+
private buildFieldId;
|
|
450
|
+
private buildGridStyles;
|
|
451
|
+
private buildLayoutStyles;
|
|
452
|
+
private hasRowSpan;
|
|
453
|
+
private buildLayoutClasses;
|
|
454
|
+
private resolveCompletion;
|
|
455
|
+
private calculateFieldsCompletion;
|
|
456
|
+
private calculateSectionCompletion;
|
|
457
|
+
private resolveExplicitCounter;
|
|
458
|
+
private buildCompletionLabel;
|
|
459
|
+
private hasCounterValue;
|
|
460
|
+
private isVisible;
|
|
461
|
+
private shouldRenderField;
|
|
462
|
+
private getCardKind;
|
|
463
|
+
private formatFieldValue;
|
|
464
|
+
private formatTextValue;
|
|
465
|
+
private formatNumberValue;
|
|
466
|
+
private formatDateValue;
|
|
467
|
+
private buildChipViewModels;
|
|
468
|
+
private normalizeChipItems;
|
|
469
|
+
private resolveChipLabel;
|
|
470
|
+
private resolveChipTrackValue;
|
|
471
|
+
private resolveChipColor;
|
|
472
|
+
private formatOptionalValue;
|
|
473
|
+
private isSafeHtmlValue;
|
|
474
|
+
private formatUnknownValue;
|
|
475
|
+
private findSelectOption;
|
|
476
|
+
private areValuesEqual;
|
|
477
|
+
private getPathValue;
|
|
478
|
+
private parsePath;
|
|
479
|
+
private normalizePositiveInteger;
|
|
480
|
+
private isFilled;
|
|
481
|
+
private isPrimitiveValue;
|
|
482
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsDisplayComponent, never>;
|
|
483
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionTabsDisplayComponent, "app-section-tabs-display", never, {
|
|
484
|
+
"options": {
|
|
485
|
+
"alias": "options";
|
|
486
|
+
"required": true;
|
|
487
|
+
};
|
|
488
|
+
"selectedIndex": {
|
|
489
|
+
"alias": "selectedIndex";
|
|
490
|
+
"required": false;
|
|
491
|
+
};
|
|
492
|
+
"queryParamKey": {
|
|
493
|
+
"alias": "queryParamKey";
|
|
494
|
+
"required": false;
|
|
495
|
+
};
|
|
496
|
+
"menuHeader": {
|
|
497
|
+
"alias": "menuHeader";
|
|
498
|
+
"required": false;
|
|
499
|
+
};
|
|
500
|
+
"showEmptyFields": {
|
|
501
|
+
"alias": "showEmptyFields";
|
|
502
|
+
"required": false;
|
|
503
|
+
};
|
|
504
|
+
}, {
|
|
505
|
+
"selectedIndexChange": "selectedIndexChange";
|
|
506
|
+
"showEmptyFieldsChange": "showEmptyFieldsChange";
|
|
507
|
+
}, never, never, false, never>;
|
|
508
|
+
}
|
|
509
|
+
declare namespace section_tabs_menu_header_directive_d_exports {
|
|
510
|
+
export { SectionTabsMenuHeaderDirective };
|
|
511
|
+
}
|
|
512
|
+
export declare class SectionTabsMenuHeaderDirective {
|
|
513
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
514
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
515
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsMenuHeaderDirective, never>;
|
|
516
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionTabsMenuHeaderDirective, "ng-template[appSectionTabsMenuHeader]", never, {}, {}, never, never, false, never>;
|
|
517
|
+
}
|
|
518
|
+
declare namespace section_tabs_footer_directive_d_exports {
|
|
519
|
+
export { SectionTabsFooterDirective };
|
|
520
|
+
}
|
|
521
|
+
export declare class SectionTabsFooterDirective {
|
|
522
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
523
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
524
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsFooterDirective, never>;
|
|
525
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionTabsFooterDirective, "ng-template[appSectionTabsFooter]", never, {}, {}, never, never, false, never>;
|
|
526
|
+
}
|
|
527
|
+
declare namespace section_tabs_display_responsive_grid_directive_d_exports {
|
|
528
|
+
export { SectionTabsDisplayResponsiveGridDirective };
|
|
529
|
+
}
|
|
530
|
+
declare class SectionTabsDisplayResponsiveGridDirective implements AfterViewInit, OnChanges, OnDestroy {
|
|
531
|
+
private readonly elementRef;
|
|
532
|
+
grid?: SectionTabsDisplayGrid;
|
|
533
|
+
sectionTabsDisplayResponsiveGridEnabled: boolean;
|
|
534
|
+
private initialized;
|
|
535
|
+
private resizeObserver?;
|
|
536
|
+
private mutationObserver?;
|
|
537
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
538
|
+
ngAfterViewInit(): void;
|
|
539
|
+
ngOnChanges(_changes: SimpleChanges): void;
|
|
540
|
+
ngOnDestroy(): void;
|
|
541
|
+
private refreshObserver;
|
|
542
|
+
private observeMutations;
|
|
543
|
+
private applyLayout;
|
|
544
|
+
private applyResponsiveSpans;
|
|
545
|
+
private restoreConfiguredSpans;
|
|
546
|
+
private readOriginalSpan;
|
|
547
|
+
private resolveEffectiveColumns;
|
|
548
|
+
private getContentWidth;
|
|
549
|
+
private getGap;
|
|
550
|
+
private measureCssLength;
|
|
551
|
+
private parsePixelValue;
|
|
552
|
+
private normalizePositiveInteger;
|
|
553
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsDisplayResponsiveGridDirective, never>;
|
|
554
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionTabsDisplayResponsiveGridDirective, "[appSectionTabsDisplayResponsiveGrid]", never, {
|
|
555
|
+
"grid": {
|
|
556
|
+
"alias": "appSectionTabsDisplayResponsiveGrid";
|
|
557
|
+
"required": false;
|
|
558
|
+
};
|
|
559
|
+
"sectionTabsDisplayResponsiveGridEnabled": {
|
|
560
|
+
"alias": "sectionTabsDisplayResponsiveGridEnabled";
|
|
561
|
+
"required": false;
|
|
562
|
+
};
|
|
563
|
+
}, {}, never, never, false, never>;
|
|
564
|
+
}
|
|
565
|
+
export declare class SectionTabsModule {
|
|
566
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionTabsModule, never>;
|
|
567
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SectionTabsModule, [typeof SectionTabsComponent, typeof SectionTabComponent, typeof SectionTabsDisplayComponent, typeof SectionTabLabelDirective, typeof SectionTabContentDirective, typeof SectionTabsMenuHeaderDirective, typeof SectionTabsFooterDirective, typeof SectionTabsDisplayResponsiveGridDirective], [typeof i9.CommonModule, typeof i10.MatButtonModule, typeof i11.MatIconModule, typeof i12.MatMenuModule, typeof i13.MatRippleModule, typeof i14.MatSlideToggleModule, typeof i15.MatTooltipModule], [typeof SectionTabsComponent, typeof SectionTabComponent, typeof SectionTabsDisplayComponent, typeof SectionTabLabelDirective, typeof SectionTabContentDirective, typeof SectionTabsMenuHeaderDirective, typeof SectionTabsFooterDirective]>;
|
|
568
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SectionTabsModule>;
|
|
569
|
+
}
|