@natec/mef-dev-ui-kit 20.1.242 → 20.1.245
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/natec-mef-dev-ui-kit.mjs +1400 -3137
- package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -1
- package/index.d.ts +265 -792
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/lib/styles/core.scss +0 -3
- package/src/lib/styles/pg/modules/_select.scss +0 -619
- package/src/lib/styles/pg/modules/_tabs.scss +0 -320
- package/src/lib/styles/pg/modules/_tabs_accordian.scss +0 -654
package/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, EventEmitter, ElementRef, ModuleWithProviders, OnInit,
|
|
2
|
+
import { TemplateRef, EventEmitter, ElementRef, ModuleWithProviders, OnInit, OnDestroy, AfterViewChecked, OnChanges, SimpleChanges, AfterViewInit, Renderer2, ChangeDetectorRef, InjectionToken, AfterContentInit, QueryList, ViewContainerRef, Injector, ComponentRef, AfterContentChecked, Optional, DoCheck, NgZone, PipeTransform } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
|
-
import { Observable,
|
|
6
|
-
import * as
|
|
7
|
-
import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ScrollStrategy, ComponentType, OverlayRef, FlexibleConnectedPositionStrategyOrigin, ViewportRuler, Overlay, ConnectedPosition } from '@angular/cdk/overlay';
|
|
8
|
-
import * as i5 from '@angular/forms';
|
|
5
|
+
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
6
|
+
import * as i6 from '@angular/forms';
|
|
9
7
|
import { ControlValueAccessor, AbstractControl, FormGroupDirective, NgForm, NgControl, Validator, ValidationErrors } from '@angular/forms';
|
|
10
|
-
import * as i7 from '@angular/cdk/bidi';
|
|
11
|
-
import { Directionality, Direction } from '@angular/cdk/bidi';
|
|
12
8
|
import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion';
|
|
13
9
|
import * as i3 from '@angular/cdk/portal';
|
|
14
10
|
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, CdkPortal } from '@angular/cdk/portal';
|
|
15
|
-
import { FocusableOption, FocusOrigin,
|
|
16
|
-
import * as i1$3 from '@angular/cdk/
|
|
11
|
+
import { FocusableOption, FocusOrigin, FocusKeyManager, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
12
|
+
import * as i1$3 from '@angular/cdk/overlay';
|
|
13
|
+
import { ScrollStrategy, ComponentType, OverlayRef, FlexibleConnectedPositionStrategyOrigin, ViewportRuler, Overlay, CdkConnectedOverlay, ConnectedPosition } from '@angular/cdk/overlay';
|
|
14
|
+
import * as i1$2 from '@angular/cdk/dialog';
|
|
17
15
|
import { DialogConfig, CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
18
|
-
import * as
|
|
16
|
+
import * as i7 from '@angular/cdk/bidi';
|
|
17
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
18
|
+
import * as i1$1 from '@angular/cdk/scrolling';
|
|
19
19
|
import * as i3$1 from '@angular/cdk/stepper';
|
|
20
20
|
import { CdkStepLabel, StepState, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepHeader } from '@angular/cdk/stepper';
|
|
21
21
|
export { StepState, StepperOrientation } from '@angular/cdk/stepper';
|
|
@@ -338,209 +338,10 @@ declare class CardSimpleComponent implements OnInit {
|
|
|
338
338
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardSimpleComponent, "mefdev-card-simple", never, { "isDisabled": { "alias": "disabled"; "required": false; }; }, {}, ["card_title"], ["*", "[card-actions]"], false, never>;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
/**
|
|
342
|
-
* Example of usage:
|
|
343
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/controls/select</example-url>
|
|
344
|
-
*/
|
|
345
|
-
declare class MefDevSelectComponent implements OnInit, AfterContentInit, AfterContentChecked, ControlValueAccessor {
|
|
346
|
-
private _elementRef;
|
|
347
|
-
private _renderer;
|
|
348
|
-
private cDRef;
|
|
349
|
-
private _allowClear;
|
|
350
|
-
private _disabled;
|
|
351
|
-
private _isTags;
|
|
352
|
-
private _isMultiple;
|
|
353
|
-
private _keepUnListOptions;
|
|
354
|
-
private _showSearch;
|
|
355
|
-
_el: HTMLElement;
|
|
356
|
-
_isOpen: boolean;
|
|
357
|
-
_prefixCls: string;
|
|
358
|
-
_classList: string[];
|
|
359
|
-
_dropDownClassMap: any;
|
|
360
|
-
_dropDownPrefixCls: string;
|
|
361
|
-
_selectionClassMap: any;
|
|
362
|
-
_selectionPrefixCls: string;
|
|
363
|
-
_size: string;
|
|
364
|
-
_value: string[] | string;
|
|
365
|
-
_placeholder: string;
|
|
366
|
-
_notFoundContent: string;
|
|
367
|
-
_searchText: string;
|
|
368
|
-
_triggerWidth: number;
|
|
369
|
-
_selectedOption: MefDevOptionComponent;
|
|
370
|
-
_operatingMultipleOption: MefDevOptionComponent;
|
|
371
|
-
_selectedOptions: Set<MefDevOptionComponent>;
|
|
372
|
-
_options: MefDevOptionComponent[];
|
|
373
|
-
_cacheOptions: MefDevOptionComponent[];
|
|
374
|
-
_filterOptions: MefDevOptionComponent[];
|
|
375
|
-
_tagsOptions: MefDevOptionComponent[];
|
|
376
|
-
_activeFilterOption: MefDevOptionComponent;
|
|
377
|
-
_isMultiInit: boolean;
|
|
378
|
-
_dropDownPosition: "top" | "center" | "bottom";
|
|
379
|
-
_composing: boolean;
|
|
380
|
-
_mode: any;
|
|
381
|
-
onChange: (value: string | string[]) => void;
|
|
382
|
-
onTouched: () => void;
|
|
383
|
-
searchInputElementRef: any;
|
|
384
|
-
trigger: ElementRef;
|
|
385
|
-
dropdownUl: ElementRef;
|
|
386
|
-
SearchChange: EventEmitter<string>;
|
|
387
|
-
change: EventEmitter<string>;
|
|
388
|
-
OpenChange: EventEmitter<boolean>;
|
|
389
|
-
ScrollToBottom: EventEmitter<boolean>;
|
|
390
|
-
Filter: boolean;
|
|
391
|
-
MaxMultiple: number;
|
|
392
|
-
FirstDefault: boolean;
|
|
393
|
-
_cdkOverlay: CdkConnectedOverlay;
|
|
394
|
-
set AllowClear(value: boolean);
|
|
395
|
-
get AllowClear(): boolean;
|
|
396
|
-
set KeepUnListOptions(value: boolean);
|
|
397
|
-
get KeepUnListOptions(): boolean;
|
|
398
|
-
set Mode(value: string);
|
|
399
|
-
set Multiple(value: boolean);
|
|
400
|
-
get Multiple(): boolean;
|
|
401
|
-
set PlaceHolder(value: string);
|
|
402
|
-
get PlaceHolder(): string;
|
|
403
|
-
set NotFoundContent(value: string);
|
|
404
|
-
get NotFoundContent(): string;
|
|
405
|
-
set Size(value: string);
|
|
406
|
-
get Size(): string;
|
|
407
|
-
set ShowSearch(value: boolean);
|
|
408
|
-
get ShowSearch(): boolean;
|
|
409
|
-
set Tags(value: boolean);
|
|
410
|
-
get Tags(): boolean;
|
|
411
|
-
set Disabled(value: boolean);
|
|
412
|
-
get Disabled(): boolean;
|
|
413
|
-
set Open(value: boolean);
|
|
414
|
-
get Open(): boolean;
|
|
415
|
-
/** new -option insert or new tags insert */
|
|
416
|
-
addOption: (option: any) => void;
|
|
417
|
-
/** -option remove or tags remove */
|
|
418
|
-
removeOption(option: MefDevOptionComponent): void;
|
|
419
|
-
/** dropdown position changed */
|
|
420
|
-
onPositionChange(position: ConnectedOverlayPositionChange): void;
|
|
421
|
-
compositionStart(): void;
|
|
422
|
-
compositionEnd(): void;
|
|
423
|
-
/** clear single selected option */
|
|
424
|
-
clearSelect($event?: MouseEvent): void;
|
|
425
|
-
/** click dropdown option by user */
|
|
426
|
-
clickOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
|
|
427
|
-
/** choose option */
|
|
428
|
-
chooseOption(option: MefDevOptionComponent, isUserClick?: boolean, $event?: MouseEvent): void;
|
|
429
|
-
updateWidth(element: HTMLInputElement, text: string): void;
|
|
430
|
-
/** determine if option in set */
|
|
431
|
-
isInSet(set: Set<MefDevOptionComponent>, option: MefDevOptionComponent): MefDevOptionComponent;
|
|
432
|
-
/** cancel select multiple option */ unSelectMultipleOption: (option: any, $event?: any, emitChange?: boolean) => void;
|
|
433
|
-
/** select multiple option */
|
|
434
|
-
selectMultipleOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
|
|
435
|
-
/** emit multiple options */
|
|
436
|
-
emitMultipleOptions(): void;
|
|
437
|
-
/** update selected option when add remove option etc */
|
|
438
|
-
updateSelectedOption(currentModelValue: string | string[], triggerByNgModel?: boolean): void;
|
|
439
|
-
forceUpdateSelectedOption(value: string | string[]): void;
|
|
440
|
-
get Value(): string | string[];
|
|
441
|
-
set Value(value: string | string[]);
|
|
442
|
-
clearAllSelectedOption(emitChange?: boolean): void;
|
|
443
|
-
handleKeyEnterEvent(event: KeyboardEvent): void;
|
|
444
|
-
handleKeyBackspaceEvent(event: KeyboardEvent): void;
|
|
445
|
-
handleKeyDownEvent($event: MouseEvent): void;
|
|
446
|
-
handleKeyUpEvent($event: MouseEvent): void;
|
|
447
|
-
preOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
|
|
448
|
-
nextOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
|
|
449
|
-
clearSearchText(): void;
|
|
450
|
-
updateFilterOption(updateActiveFilter?: boolean): void;
|
|
451
|
-
onSearchChange(searchValue: string): void;
|
|
452
|
-
onClick(e: MouseEvent): void;
|
|
453
|
-
onKeyDown(e: KeyboardEvent): void;
|
|
454
|
-
closeDropDown(): void;
|
|
455
|
-
setClassMap(): void;
|
|
456
|
-
setDropDownClassMap(): void;
|
|
457
|
-
scrollToActive(): void;
|
|
458
|
-
flushComponentState(): void;
|
|
459
|
-
_setTriggerWidth(): void;
|
|
460
|
-
_getTriggerRect(): ClientRect;
|
|
461
|
-
writeValue(value: string | string[]): void;
|
|
462
|
-
registerOnChange(fn: (value: string | string[]) => void): void;
|
|
463
|
-
registerOnTouched(fn: () => void): void;
|
|
464
|
-
setDisabledState(isDisabled: boolean): void;
|
|
465
|
-
dropDownScroll(ul: HTMLUListElement): void;
|
|
466
|
-
checkDropDownScroll(): void;
|
|
467
|
-
constructor(_elementRef: ElementRef, _renderer: Renderer2, cDRef: ChangeDetectorRef);
|
|
468
|
-
ngAfterContentInit(): void;
|
|
469
|
-
ngOnInit(): void;
|
|
470
|
-
ngAfterContentChecked(): void;
|
|
471
|
-
private _updateValue;
|
|
472
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSelectComponent, never>;
|
|
473
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevSelectComponent, "mefdev-select", never, { "Filter": { "alias": "Filter"; "required": false; }; "MaxMultiple": { "alias": "MaxMultiple"; "required": false; }; "FirstDefault": { "alias": "FirstDefault"; "required": false; }; "AllowClear": { "alias": "AllowClear"; "required": false; }; "KeepUnListOptions": { "alias": "KeepUnListOptions"; "required": false; }; "Mode": { "alias": "Mode"; "required": false; }; "Multiple": { "alias": "Multiple"; "required": false; }; "PlaceHolder": { "alias": "PlaceHolder"; "required": false; }; "NotFoundContent": { "alias": "NotFoundContent"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "ShowSearch": { "alias": "ShowSearch"; "required": false; }; "Tags": { "alias": "Tags"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; "Open": { "alias": "Open"; "required": false; }; }, { "SearchChange": "SearchChange"; "change": "change"; "OpenChange": "OpenChange"; "ScrollToBottom": "ScrollToBottom"; }, never, never, false, never>;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* @skipTemplateDoc true
|
|
478
|
-
* Component for representing an option in a dropdown list.
|
|
479
|
-
*
|
|
480
|
-
*```
|
|
481
|
-
* <mefdev-select>
|
|
482
|
-
* <mefdev-option Value="1" Label="Option 1"></mefdev-option>
|
|
483
|
-
* <mefdev-option Value="2" Label="Option 2"></mefdev-option>
|
|
484
|
-
* <mefdev-option Value="3" Label="Option 3"></mefdev-option>
|
|
485
|
-
* </mefdev-select>
|
|
486
|
-
*```
|
|
487
|
-
*
|
|
488
|
-
*/
|
|
489
|
-
declare class MefDevOptionComponent implements OnDestroy, OnInit {
|
|
490
|
-
private _Select;
|
|
491
|
-
private _disabled;
|
|
492
|
-
_value: string;
|
|
493
|
-
_label: string;
|
|
494
|
-
/**
|
|
495
|
-
* Template for the content of the option.
|
|
496
|
-
*/
|
|
497
|
-
OptionTemplate: any;
|
|
498
|
-
/**
|
|
499
|
-
* The value of the option.
|
|
500
|
-
*/
|
|
501
|
-
set Value(value: string);
|
|
502
|
-
get Value(): string;
|
|
503
|
-
/**
|
|
504
|
-
* The label of the option.
|
|
505
|
-
*/
|
|
506
|
-
set Label(value: string);
|
|
507
|
-
get Label(): string;
|
|
508
|
-
/**
|
|
509
|
-
* Indicates whether the option is disabled.
|
|
510
|
-
*/
|
|
511
|
-
set Disabled(value: boolean);
|
|
512
|
-
get Disabled(): boolean;
|
|
513
|
-
constructor(_Select: MefDevSelectComponent);
|
|
514
|
-
/**
|
|
515
|
-
* Initialization lifecycle hook.
|
|
516
|
-
* Adds the option to the dropdown list.
|
|
517
|
-
*/
|
|
518
|
-
ngOnInit(): void;
|
|
519
|
-
/**
|
|
520
|
-
* Destruction lifecycle hook.
|
|
521
|
-
* Removes the option from the dropdown list.
|
|
522
|
-
*/
|
|
523
|
-
ngOnDestroy(): void;
|
|
524
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevOptionComponent, never>;
|
|
525
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevOptionComponent, "mefdev-option", never, { "Value": { "alias": "Value"; "required": false; }; "Label": { "alias": "Label"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; }, {}, ["OptionTemplate"], ["*"], false, never>;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
declare class OptionPipe implements PipeTransform {
|
|
529
|
-
transform(options: MefDevOptionComponent[], value: any): any;
|
|
530
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionPipe, never>;
|
|
531
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<OptionPipe, "OptionPipe", false>;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
declare class MefDevSelectModule {
|
|
535
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevSelectModule, never>;
|
|
536
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevSelectModule, [typeof OptionPipe, typeof MefDevOptionComponent, typeof MefDevSelectComponent], [typeof i1.CommonModule, typeof i5.FormsModule, typeof i1$1.OverlayModule], [typeof OptionPipe, typeof MefDevOptionComponent, typeof MefDevSelectComponent]>;
|
|
537
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevSelectModule>;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
341
|
declare const mefDevCardComponents: (typeof CardSimpleComponent)[];
|
|
541
342
|
declare class MefDevCardModule {
|
|
542
343
|
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevCardModule, never>;
|
|
543
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevCardModule, [typeof CardSimpleComponent], [typeof i1.CommonModule, typeof MefDevCollapseModule
|
|
344
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevCardModule, [typeof CardSimpleComponent], [typeof i1.CommonModule, typeof MefDevCollapseModule], [typeof CardSimpleComponent]>;
|
|
544
345
|
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevCardModule>;
|
|
545
346
|
}
|
|
546
347
|
|
|
@@ -793,7 +594,7 @@ declare class RightFilterComponent implements OnInit {
|
|
|
793
594
|
|
|
794
595
|
declare class MefDevModalModule {
|
|
795
596
|
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevModalModule, never>;
|
|
796
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevModalModule, [typeof FillComponent, typeof SlideUpComponent, typeof SlideRightComponent, typeof RightFilterComponent], [typeof i1.CommonModule
|
|
597
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevModalModule, [typeof FillComponent, typeof SlideUpComponent, typeof SlideRightComponent, typeof RightFilterComponent], [typeof i1.CommonModule], [typeof FillComponent, typeof SlideUpComponent, typeof SlideRightComponent, typeof RightFilterComponent]>;
|
|
797
598
|
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevModalModule>;
|
|
798
599
|
}
|
|
799
600
|
|
|
@@ -1227,7 +1028,7 @@ declare class StepExecutorComponent implements AfterViewInit {
|
|
|
1227
1028
|
|
|
1228
1029
|
declare class MefDevStepExecutorModule {
|
|
1229
1030
|
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevStepExecutorModule, never>;
|
|
1230
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevStepExecutorModule, [typeof StepExecutorComponent, typeof MefdevExecutorPageComponent, typeof StageComponent], [typeof MefDevModalModule, typeof i1.CommonModule, typeof
|
|
1031
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevStepExecutorModule, [typeof StepExecutorComponent, typeof MefdevExecutorPageComponent, typeof StageComponent], [typeof MefDevModalModule, typeof i1.CommonModule, typeof i6.FormsModule], [typeof StepExecutorComponent, typeof MefdevExecutorPageComponent, typeof StageComponent]>;
|
|
1231
1032
|
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevStepExecutorModule>;
|
|
1232
1033
|
}
|
|
1233
1034
|
|
|
@@ -1500,334 +1301,6 @@ declare class MefDevSwitchModule {
|
|
|
1500
1301
|
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevSwitchModule>;
|
|
1501
1302
|
}
|
|
1502
1303
|
|
|
1503
|
-
/**
|
|
1504
|
-
* Component representing the body of a tab, which displays the tab's content.
|
|
1505
|
-
*/
|
|
1506
|
-
declare class MefDevTabBodyComponent {
|
|
1507
|
-
/**
|
|
1508
|
-
* The content of the tab, which can be passed as a template.
|
|
1509
|
-
*/
|
|
1510
|
-
content: TemplateRef<void>;
|
|
1511
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabBodyComponent, never>;
|
|
1512
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabBodyComponent, "mefdev-tab-body", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
declare class MefDevTabLabelDirective {
|
|
1516
|
-
elementRef: ElementRef;
|
|
1517
|
-
private _disabled;
|
|
1518
|
-
set disabled(value: boolean);
|
|
1519
|
-
get disabled(): boolean;
|
|
1520
|
-
constructor(elementRef: ElementRef);
|
|
1521
|
-
getOffsetLeft(): number;
|
|
1522
|
-
getOffsetWidth(): number;
|
|
1523
|
-
getOffsetTop(): number;
|
|
1524
|
-
getOffsetHeight(): number;
|
|
1525
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabLabelDirective, never>;
|
|
1526
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MefDevTabLabelDirective, "[mefdev-tab-label]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
type TabPositionMode$2 = 'horizontal' | 'vertical';
|
|
1530
|
-
declare class MefDevTabsInkBarDirective {
|
|
1531
|
-
private _renderer;
|
|
1532
|
-
private _elementRef;
|
|
1533
|
-
private _ngZone;
|
|
1534
|
-
private _animated;
|
|
1535
|
-
set Animated(value: boolean);
|
|
1536
|
-
get Animated(): boolean;
|
|
1537
|
-
PositionMode: TabPositionMode$2;
|
|
1538
|
-
constructor(_renderer: Renderer2, _elementRef: ElementRef, _ngZone: NgZone);
|
|
1539
|
-
alignToElement(element: HTMLElement): void;
|
|
1540
|
-
show(): void;
|
|
1541
|
-
setDisplay(value: string): void;
|
|
1542
|
-
hide(): void;
|
|
1543
|
-
_getLeftPosition(element: HTMLElement): string;
|
|
1544
|
-
_getElementWidth(element: HTMLElement): string;
|
|
1545
|
-
_getTopPosition(element: HTMLElement): string;
|
|
1546
|
-
_getElementHeight(element: HTMLElement): string;
|
|
1547
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsInkBarDirective, never>;
|
|
1548
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MefDevTabsInkBarDirective, "[mefdev-tabs-ink-bar]", never, { "Animated": { "alias": "Animated"; "required": false; }; "PositionMode": { "alias": "PositionMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
/** code from https://github.com/angular/material2 */
|
|
1552
|
-
|
|
1553
|
-
type ScrollDirection$1 = 'after' | 'before';
|
|
1554
|
-
/** duplicated defined https://github.com/angular/angular-cli/issues/2034 **/
|
|
1555
|
-
type TabPositionMode$1 = 'horizontal' | 'vertical';
|
|
1556
|
-
declare class MefDevTabsNavComponent implements AfterContentChecked, AfterContentInit {
|
|
1557
|
-
_elementRef: ElementRef;
|
|
1558
|
-
private _ngZone;
|
|
1559
|
-
private _renderer;
|
|
1560
|
-
private _dir;
|
|
1561
|
-
private _animated;
|
|
1562
|
-
private _hideBar;
|
|
1563
|
-
private _showPagination;
|
|
1564
|
-
_showPaginationControls: boolean;
|
|
1565
|
-
_disableScrollAfter: boolean;
|
|
1566
|
-
_disableScrollBefore: boolean;
|
|
1567
|
-
_scrollDistance: number;
|
|
1568
|
-
_selectedIndexChanged: boolean;
|
|
1569
|
-
_realignInkBar: Subscription | null;
|
|
1570
|
-
_tabLabelCount: number;
|
|
1571
|
-
_scrollDistanceChanged: boolean;
|
|
1572
|
-
_selectedIndex: number;
|
|
1573
|
-
_tabPositionMode: TabPositionMode$1;
|
|
1574
|
-
_tabPosition: string;
|
|
1575
|
-
Size: string;
|
|
1576
|
-
_type: string;
|
|
1577
|
-
set Animated(value: boolean);
|
|
1578
|
-
get Animated(): boolean;
|
|
1579
|
-
set Position(value: string);
|
|
1580
|
-
get Position(): string;
|
|
1581
|
-
set HideBar(value: boolean);
|
|
1582
|
-
get HideBar(): boolean;
|
|
1583
|
-
set Type(value: string);
|
|
1584
|
-
get Type(): string;
|
|
1585
|
-
_tabBarExtraContent: TemplateRef<void>;
|
|
1586
|
-
_labelWrappers: QueryList<MefDevTabLabelDirective>;
|
|
1587
|
-
_inkBar: MefDevTabsInkBarDirective;
|
|
1588
|
-
_tabListContainer: ElementRef;
|
|
1589
|
-
_tabList: ElementRef;
|
|
1590
|
-
set ShowPagination(value: boolean);
|
|
1591
|
-
get ShowPagination(): boolean;
|
|
1592
|
-
set PositionMode(value: TabPositionMode$1);
|
|
1593
|
-
get PositionMode(): TabPositionMode$1;
|
|
1594
|
-
set selectedIndex(value: number);
|
|
1595
|
-
get selectedIndex(): number;
|
|
1596
|
-
constructor(_elementRef: ElementRef, _ngZone: NgZone, _renderer: Renderer2, _dir: Directionality);
|
|
1597
|
-
_onContentChanges(): void;
|
|
1598
|
-
_scrollHeader(scrollDir: ScrollDirection$1): void;
|
|
1599
|
-
ngAfterContentChecked(): void;
|
|
1600
|
-
ngAfterContentInit(): void;
|
|
1601
|
-
_updateTabScrollPosition(): void;
|
|
1602
|
-
_updatePagination(): void;
|
|
1603
|
-
_checkPaginationEnabled(): void;
|
|
1604
|
-
_scrollToLabel(labelIndex: number): void;
|
|
1605
|
-
_checkScrollingControls(): void;
|
|
1606
|
-
/**
|
|
1607
|
-
* Determines what is the maximum length in pixels that can be set for the scroll distance. This
|
|
1608
|
-
* is equal to the difference in width between the tab list container and tab header container.
|
|
1609
|
-
*
|
|
1610
|
-
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1611
|
-
* should be called sparingly.
|
|
1612
|
-
*/
|
|
1613
|
-
_getMaxScrollDistance(): number;
|
|
1614
|
-
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
1615
|
-
set scrollDistance(v: number);
|
|
1616
|
-
get scrollDistance(): number;
|
|
1617
|
-
get viewWidthHeightPix(): number;
|
|
1618
|
-
get tabListScrollWidthHeightPix(): number;
|
|
1619
|
-
get elementRefOffSetWidthHeight(): number;
|
|
1620
|
-
_getLayoutDirection(): Direction;
|
|
1621
|
-
_alignInkBarToSelectedTab(): void;
|
|
1622
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsNavComponent, [null, null, null, { optional: true; }]>;
|
|
1623
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabsNavComponent, "mefdev-tabs-nav", never, { "Size": { "alias": "Size"; "required": false; }; "Animated": { "alias": "Animated"; "required": false; }; "Position": { "alias": "Position"; "required": false; }; "HideBar": { "alias": "HideBar"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "PositionMode": { "alias": "PositionMode"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, {}, ["_tabBarExtraContent", "_labelWrappers"], ["*"], false, never>;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
/** code from https://github.com/angular/material2 */
|
|
1627
|
-
|
|
1628
|
-
interface AnimatedInterface {
|
|
1629
|
-
inkBar: boolean;
|
|
1630
|
-
tabPane: boolean;
|
|
1631
|
-
}
|
|
1632
|
-
declare class TabChangeEvent {
|
|
1633
|
-
index: number;
|
|
1634
|
-
tab: MefDevTabComponent;
|
|
1635
|
-
}
|
|
1636
|
-
type TabPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
1637
|
-
type TabPositionMode = 'horizontal' | 'vertical';
|
|
1638
|
-
type TabType = 'line' | 'fillup' | 'linetriangle';
|
|
1639
|
-
/**
|
|
1640
|
-
* Represents a tab set or tab group component.
|
|
1641
|
-
* @example
|
|
1642
|
-
* <mefdev-tabset TabPosition="top" Animated="true" ShowPagination="true">
|
|
1643
|
-
* <mefdev-tab label="Tab 1">Tab 1 content</mefdev-tab>
|
|
1644
|
-
* <mefdev-tab label="Tab 2">Tab 2 content</mefdev-tab>
|
|
1645
|
-
* </mefdev-tabset>
|
|
1646
|
-
*
|
|
1647
|
-
* Example of usage:
|
|
1648
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/tabset</example-url>
|
|
1649
|
-
*/
|
|
1650
|
-
declare class MefDevTabSetComponent implements AfterContentChecked, OnInit, AfterViewInit {
|
|
1651
|
-
private _renderer;
|
|
1652
|
-
_el: any;
|
|
1653
|
-
_classMap: any;
|
|
1654
|
-
_prefixCls: string;
|
|
1655
|
-
_width: any;
|
|
1656
|
-
_tabPosition: TabPosition;
|
|
1657
|
-
_tabPositionMode: TabPositionMode;
|
|
1658
|
-
_indexToSelect: number | null;
|
|
1659
|
-
_selectedIndex: number | null;
|
|
1660
|
-
_isViewInit: boolean;
|
|
1661
|
-
_tabs: MefDevTabComponent[];
|
|
1662
|
-
_tabAnimation: string;
|
|
1663
|
-
_extra_tab_class: string;
|
|
1664
|
-
_extra_tabcontent_class: string;
|
|
1665
|
-
/**
|
|
1666
|
-
* Template reference for additional content to be displayed in the tab bar.
|
|
1667
|
-
*/
|
|
1668
|
-
TabBarExtraTemplate: TemplateRef<void>;
|
|
1669
|
-
TabBarExtraContent: TemplateRef<void>;
|
|
1670
|
-
_tabNav: MefDevTabsNavComponent;
|
|
1671
|
-
_tabContent: ElementRef;
|
|
1672
|
-
_hostContent: ElementRef;
|
|
1673
|
-
/**
|
|
1674
|
-
* Whether the tab set is animated. Can be a boolean or an object of type AnimatedInterface.
|
|
1675
|
-
* @example
|
|
1676
|
-
* - true (enables animation for both ink bar and tab pane)
|
|
1677
|
-
* - { inkBar: true, tabPane: false } (enables animation for ink bar only)
|
|
1678
|
-
* Default: true
|
|
1679
|
-
*/
|
|
1680
|
-
Animated: AnimatedInterface | boolean;
|
|
1681
|
-
/**
|
|
1682
|
-
* Whether to show pagination controls for scrolling tabs.
|
|
1683
|
-
* @example true
|
|
1684
|
-
* Default: true
|
|
1685
|
-
*/
|
|
1686
|
-
ShowPagination: boolean;
|
|
1687
|
-
/**
|
|
1688
|
-
* Whether the tab set is hidden.
|
|
1689
|
-
* @example true
|
|
1690
|
-
* Default: false
|
|
1691
|
-
*/
|
|
1692
|
-
Hide: boolean;
|
|
1693
|
-
/**
|
|
1694
|
-
* The index of the selected tab.
|
|
1695
|
-
*/
|
|
1696
|
-
set SelectedIndex(value: number | null);
|
|
1697
|
-
get SelectedIndex(): number | null;
|
|
1698
|
-
/**
|
|
1699
|
-
* Event emitted when the selected tab index changes.
|
|
1700
|
-
* @returns An Observable emitting the index of the selected tab.
|
|
1701
|
-
*/
|
|
1702
|
-
get SelectedIndexChange(): Observable<number>;
|
|
1703
|
-
/**
|
|
1704
|
-
* Event emitted when a tab is selected.
|
|
1705
|
-
* @example
|
|
1706
|
-
* <mefdev-tabset (SelectChange)="onTabSelect($event)"></mefdev-tabset>
|
|
1707
|
-
*/
|
|
1708
|
-
SelectChange: EventEmitter<TabChangeEvent>;
|
|
1709
|
-
/**
|
|
1710
|
-
* Size of the tab set. Can be 'default', 'small', or 'large'.
|
|
1711
|
-
* @example 'large'
|
|
1712
|
-
* Default: 'default'
|
|
1713
|
-
*/
|
|
1714
|
-
Size: string;
|
|
1715
|
-
_type: TabType;
|
|
1716
|
-
tabs: MefDevTabComponent[];
|
|
1717
|
-
/**
|
|
1718
|
-
* Position of the tab set. Can be 'top', 'bottom', 'left', or 'right'.
|
|
1719
|
-
*/
|
|
1720
|
-
set TabPosition(value: TabPosition);
|
|
1721
|
-
get TabPosition(): TabPosition;
|
|
1722
|
-
/**
|
|
1723
|
-
* Additional CSS class for the tabs.
|
|
1724
|
-
*/
|
|
1725
|
-
set extraTabClass(value: string);
|
|
1726
|
-
/**
|
|
1727
|
-
* Additional CSS class for the tab content.
|
|
1728
|
-
*/
|
|
1729
|
-
set extraTabContentClass(value: string);
|
|
1730
|
-
/**
|
|
1731
|
-
* Type of the tab set. Can be 'line', 'fillup', or 'linetriangle'.
|
|
1732
|
-
*/
|
|
1733
|
-
set Type(value: TabType);
|
|
1734
|
-
/**
|
|
1735
|
-
* Animation to apply to the tabs. Accepts CSS animation name.
|
|
1736
|
-
*/
|
|
1737
|
-
set tabAnimation(value: string);
|
|
1738
|
-
get Type(): TabType;
|
|
1739
|
-
_setPosition(value: TabPosition): void;
|
|
1740
|
-
_setClassMap(): void;
|
|
1741
|
-
/**
|
|
1742
|
-
* Selects the tab at the specified index.
|
|
1743
|
-
* @param index The index of the tab to select.
|
|
1744
|
-
* ```
|
|
1745
|
-
* <button (click)="clickLabel(0)">Select Tab 1</button>
|
|
1746
|
-
*```
|
|
1747
|
-
*/
|
|
1748
|
-
clickLabel(index: number): void;
|
|
1749
|
-
ngOnInit(): void;
|
|
1750
|
-
ngAfterContentChecked(): void;
|
|
1751
|
-
ngAfterViewInit(): void;
|
|
1752
|
-
private _createChangeEvent;
|
|
1753
|
-
get inkBarAnimated(): boolean;
|
|
1754
|
-
get tabPaneAnimated(): boolean;
|
|
1755
|
-
constructor(_renderer: Renderer2);
|
|
1756
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabSetComponent, never>;
|
|
1757
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabSetComponent, "mefdev-tabset", never, { "TabBarExtraTemplate": { "alias": "TabBarExtraTemplate"; "required": false; }; "Animated": { "alias": "Animated"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "Hide": { "alias": "Hide"; "required": false; }; "SelectedIndex": { "alias": "SelectedIndex"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "TabPosition": { "alias": "TabPosition"; "required": false; }; "extraTabClass": { "alias": "extraTabClass"; "required": false; }; "extraTabContentClass": { "alias": "extraTabContentClass"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "tabAnimation": { "alias": "tabAnimation"; "required": false; }; }, { "SelectedIndexChange": "SelectedIndexChange"; "SelectChange": "SelectChange"; }, ["TabBarExtraContent"], never, false, never>;
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
declare class MefDevTabComponent implements OnDestroy, OnInit {
|
|
1761
|
-
private MefDevTabSetComponent;
|
|
1762
|
-
private disabled;
|
|
1763
|
-
position: number | null;
|
|
1764
|
-
origin: number | null;
|
|
1765
|
-
/**
|
|
1766
|
-
* Sets the disabled state of the tab.
|
|
1767
|
-
*```html
|
|
1768
|
-
* <mefdev-tab [Disabled]="true"></mefdev-tab>
|
|
1769
|
-
* ```
|
|
1770
|
-
*/
|
|
1771
|
-
set Disabled(value: boolean);
|
|
1772
|
-
/**
|
|
1773
|
-
* Gets the disabled state of the tab.
|
|
1774
|
-
*/
|
|
1775
|
-
get Disabled(): boolean;
|
|
1776
|
-
/**
|
|
1777
|
-
* Event emitted when the tab is selected.
|
|
1778
|
-
*```html
|
|
1779
|
-
* <mefdev-tab (pgSelect)="onTabSelect()"></mefdev-tab>
|
|
1780
|
-
* ```
|
|
1781
|
-
*/
|
|
1782
|
-
pgSelect: EventEmitter<any>;
|
|
1783
|
-
/**
|
|
1784
|
-
* Event emitted when the tab is clicked.
|
|
1785
|
-
*```html
|
|
1786
|
-
* <mefdev-tab (pgClick)="onTabClick()"></mefdev-tab>
|
|
1787
|
-
* ```
|
|
1788
|
-
*/
|
|
1789
|
-
pgClick: EventEmitter<any>;
|
|
1790
|
-
/**
|
|
1791
|
-
* Event emitted when the tab is deselected.
|
|
1792
|
-
*```html
|
|
1793
|
-
* <mefdev-tab (pgDeselect)="onTabDeselect()"></mefdev-tab>
|
|
1794
|
-
*```
|
|
1795
|
-
*/
|
|
1796
|
-
pgDeselect: EventEmitter<any>;
|
|
1797
|
-
/**
|
|
1798
|
-
* Reference to the template for the tab heading.
|
|
1799
|
-
*/
|
|
1800
|
-
_tabHeading: TemplateRef<void>;
|
|
1801
|
-
/**
|
|
1802
|
-
* Reference to the template for the tab content.
|
|
1803
|
-
*/
|
|
1804
|
-
_content: TemplateRef<void>;
|
|
1805
|
-
/**
|
|
1806
|
-
* Gets the template for the tab content.
|
|
1807
|
-
*```html
|
|
1808
|
-
* <ng-container *ngTemplateOutlet="content"></ng-container>
|
|
1809
|
-
*```
|
|
1810
|
-
*/
|
|
1811
|
-
get content(): TemplateRef<void> | null;
|
|
1812
|
-
constructor(MefDevTabSetComponent: MefDevTabSetComponent);
|
|
1813
|
-
/**
|
|
1814
|
-
* Initializes the tab component.
|
|
1815
|
-
*/
|
|
1816
|
-
ngOnInit(): void;
|
|
1817
|
-
/**
|
|
1818
|
-
* Cleans up resources when the tab component is destroyed.
|
|
1819
|
-
*/
|
|
1820
|
-
ngOnDestroy(): void;
|
|
1821
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabComponent, never>;
|
|
1822
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MefDevTabComponent, "mefdev-tab", never, { "Disabled": { "alias": "Disabled"; "required": false; }; }, { "pgSelect": "pgSelect"; "pgClick": "pgClick"; "pgDeselect": "pgDeselect"; }, ["_tabHeading"], ["*"], false, never>;
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
declare class MefDevTabsModule {
|
|
1826
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MefDevTabsModule, never>;
|
|
1827
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MefDevTabsModule, [typeof MefDevTabComponent, typeof MefDevTabSetComponent, typeof MefDevTabsNavComponent, typeof MefDevTabLabelDirective, typeof MefDevTabsInkBarDirective, typeof MefDevTabBodyComponent], [typeof i1.CommonModule], [typeof MefDevTabComponent, typeof MefDevTabSetComponent, typeof MefDevTabsNavComponent, typeof MefDevTabLabelDirective, typeof MefDevTabsInkBarDirective, typeof MefDevTabBodyComponent]>;
|
|
1828
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MefDevTabsModule>;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
1304
|
type AccordionDisplayMode = 'default' | 'flat';
|
|
1832
1305
|
type AccordionTogglePosition = 'before' | 'after';
|
|
1833
1306
|
interface AccordionBase extends CdkAccordion {
|
|
@@ -2631,7 +2104,7 @@ declare class MDDialogTitle extends DialogLayoutSection {
|
|
|
2631
2104
|
*/
|
|
2632
2105
|
declare class MDDialogContent {
|
|
2633
2106
|
static ɵfac: i0.ɵɵFactoryDeclaration<MDDialogContent, never>;
|
|
2634
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogContent, "[md-dialog-content], md-dialog-content, [mdDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i1$
|
|
2107
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MDDialogContent, "[md-dialog-content], md-dialog-content, [mdDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.CdkScrollable; inputs: {}; outputs: {}; }]>;
|
|
2635
2108
|
}
|
|
2636
2109
|
/**
|
|
2637
2110
|
* Action row of the dialog (typically hosts buttons).
|
|
@@ -2652,7 +2125,7 @@ declare class MDDialogActions extends DialogLayoutSection {
|
|
|
2652
2125
|
|
|
2653
2126
|
declare class MDModalModule {
|
|
2654
2127
|
static ɵfac: i0.ɵɵFactoryDeclaration<MDModalModule, never>;
|
|
2655
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MDModalModule, never, [typeof i1$
|
|
2128
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDModalModule, never, [typeof i1$2.DialogModule, typeof i1$3.OverlayModule, typeof i3.PortalModule, typeof MDDialogContainer, typeof MDDialogClose, typeof MDDialogTitle, typeof MDDialogActions, typeof MDDialogContent], [typeof MDDialogContainer, typeof MDDialogClose, typeof MDDialogTitle, typeof MDDialogActions, typeof MDDialogContent]>;
|
|
2656
2129
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDModalModule>;
|
|
2657
2130
|
}
|
|
2658
2131
|
|
|
@@ -2727,75 +2200,250 @@ declare class MDStepFooter {
|
|
|
2727
2200
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MDStepFooter, "[mdStepFooter]", never, {}, {}, never, never, true, never>;
|
|
2728
2201
|
}
|
|
2729
2202
|
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
};
|
|
2733
|
-
/**
|
|
2734
|
-
* ErrorStateMatcher that shows errors only once a control is dirty
|
|
2735
|
-
* (or when the parent form was submitted). Useful for “show on edit”.
|
|
2736
|
-
*/
|
|
2737
|
-
declare class ShowOnDirtyErrorStateMatcher implements StepperErrorStateMatcher {
|
|
2738
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2739
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
2740
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
2741
|
-
}
|
|
2742
|
-
/**
|
|
2743
|
-
* Default StepperErrorStateMatcher used across the stepper.
|
|
2744
|
-
* Marks error when a control is invalid and touched, or the form is submitted.
|
|
2745
|
-
*/
|
|
2746
|
-
declare class StepperErrorStateMatcher {
|
|
2747
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2748
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StepperErrorStateMatcher, never>;
|
|
2749
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StepperErrorStateMatcher>;
|
|
2750
|
-
}
|
|
2751
|
-
/**
|
|
2752
|
-
* Single step inside the stepper.
|
|
2753
|
-
* - Extends CdkStep and plugs in lazy content via <ng-template mdStepContent>.
|
|
2754
|
-
* - Provides StepperErrorStateMatcher so the step can decide its own error state.
|
|
2755
|
-
*/
|
|
2756
|
-
declare class MDStep extends CdkStep implements StepperErrorStateMatcher, AfterContentInit, OnDestroy {
|
|
2757
|
-
/** Parent-provided matcher used as a baseline in isErrorState. */
|
|
2758
|
-
private _errorStateMatcher;
|
|
2759
|
-
/** View container used to create a portal for lazy content. */
|
|
2760
|
-
private _viewContainerRef;
|
|
2761
|
-
/** Subscription to selected-state changes (to attach lazy content). */
|
|
2762
|
-
private _isSelected;
|
|
2763
|
-
/** Optional projected label for the step header. */
|
|
2764
|
-
stepLabel: MDStepLabel;
|
|
2765
|
-
/** Optional lazy body content template: <ng-template mdStepContent>…</ng-template> */
|
|
2766
|
-
_lazyContent: MDStepContent;
|
|
2767
|
-
/** Portal instance created when the step first becomes selected. */
|
|
2768
|
-
_portal: TemplatePortal;
|
|
2769
|
-
/** Attach lazy content when this step becomes selected for the first time. */
|
|
2770
|
-
ngAfterContentInit(): void;
|
|
2771
|
-
/** Cleanup subscription on destroy. */
|
|
2772
|
-
ngOnDestroy(): void;
|
|
2773
|
-
/**
|
|
2774
|
-
* StepperErrorStateMatcher implementation for this step.
|
|
2775
|
-
* Combines the injected default matcher with “interacted” state so that
|
|
2776
|
-
* a step can show errors after the user interacted with the step controls.
|
|
2777
|
-
*/
|
|
2778
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2779
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MDStep, never>;
|
|
2780
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MDStep, "md-step", ["mdStep"], {}, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
|
|
2781
|
-
}
|
|
2203
|
+
/** Direction to scroll the header when paginating. */
|
|
2204
|
+
type ScrollDirection = 'after' | 'before';
|
|
2782
2205
|
/**
|
|
2783
|
-
*
|
|
2784
|
-
*
|
|
2785
|
-
* - Tracks and emits animation lifecycle.
|
|
2786
|
-
* - Supports custom icon overrides via <ng-template mdStepperIcon name="...">.
|
|
2206
|
+
* Contract for focusable tab header items used by the header.
|
|
2207
|
+
* Must expose an `elementRef` for measurement/positioning.
|
|
2787
2208
|
*/
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2209
|
+
type PaginatedTabHeaderItem = FocusableOption & {
|
|
2210
|
+
elementRef: ElementRef;
|
|
2211
|
+
};
|
|
2212
|
+
declare abstract class PaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
2213
|
+
/** Root host element (the header wrapper). */
|
|
2214
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
2215
|
+
/** For OnPush marking when values change. */
|
|
2216
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
|
2217
|
+
/** Viewport ruler for resize/scrollbar metrics. */
|
|
2218
|
+
private _viewportRuler;
|
|
2219
|
+
/** Optional RTL service to flip layout. */
|
|
2220
|
+
private _dir;
|
|
2221
|
+
/** For running timers/listeners outside Angular. */
|
|
2222
|
+
private _ngZone;
|
|
2223
|
+
/** Platform detection (legacy engines). */
|
|
2224
|
+
private _platform;
|
|
2225
|
+
/** Efficient ResizeObserver sharing. */
|
|
2226
|
+
private _sharedResizeObserver;
|
|
2227
|
+
/** Injector for `afterNextRender` scheduling. */
|
|
2228
|
+
private _injector;
|
|
2229
|
+
/** Renderer for native event listeners & styles. */
|
|
2230
|
+
private _renderer;
|
|
2231
|
+
/** Cleanup callbacks for host-level listeners. */
|
|
2232
|
+
private _eventCleanups;
|
|
2233
|
+
/** List of focusable items (tab labels). */
|
|
2234
|
+
abstract _items: QueryList<PaginatedTabHeaderItem>;
|
|
2235
|
+
/** Ink bar API for alignment/hide. */
|
|
2236
|
+
abstract _inkBar: {
|
|
2237
|
+
hide: () => void;
|
|
2238
|
+
alignToElement: (element: HTMLElement) => void;
|
|
2239
|
+
};
|
|
2240
|
+
/** Container that clips the scrollable tab list. */
|
|
2241
|
+
abstract _tabListContainer: ElementRef<HTMLElement>;
|
|
2242
|
+
/** The horizontally translated list element. */
|
|
2243
|
+
abstract _tabList: ElementRef<HTMLElement>;
|
|
2244
|
+
/** Inner list wrapper used for measurements. */
|
|
2245
|
+
abstract _tabListInner: ElementRef<HTMLElement>;
|
|
2246
|
+
/** Next paginator button element. */
|
|
2247
|
+
abstract _nextPaginator: ElementRef<HTMLElement>;
|
|
2248
|
+
/** Previous paginator button element. */
|
|
2249
|
+
abstract _previousPaginator: ElementRef<HTMLElement>;
|
|
2250
|
+
/** Current horizontal scroll translation in px (LTR positive moves content left). */
|
|
2251
|
+
private _scrollDistance;
|
|
2252
|
+
/** Flag to know when selectedIndex changed between content checks. */
|
|
2253
|
+
private _selectedIndexChanged;
|
|
2254
|
+
/** Teardown notifier for streams. */
|
|
2255
|
+
protected readonly _destroyed: Subject<void>;
|
|
2256
|
+
/** Whether to render/show pagination controls. */
|
|
2257
|
+
_showPaginationControls: boolean;
|
|
2258
|
+
/** Disable "scroll after" paginator. */
|
|
2259
|
+
_disableScrollAfter: boolean;
|
|
2260
|
+
/** Disable "scroll before" paginator. */
|
|
2261
|
+
_disableScrollBefore: boolean;
|
|
2262
|
+
/** Cached count of tab labels to detect additions/removals. */
|
|
2263
|
+
private _tabLabelCount;
|
|
2264
|
+
/** Marker to apply pending scroll distance change to DOM. */
|
|
2265
|
+
private _scrollDistanceChanged;
|
|
2266
|
+
/** Keyboard manager for roving focus. */
|
|
2267
|
+
protected _keyManager: FocusKeyManager<PaginatedTabHeaderItem> | undefined;
|
|
2268
|
+
/** Used to detect text-content changes affecting layout. */
|
|
2269
|
+
private _currentTextContent;
|
|
2270
|
+
/** Emits when auto-scrolling should stop (mouseleave or end). */
|
|
2271
|
+
private _stopScrolling;
|
|
2272
|
+
hideInkBar: boolean;
|
|
2273
|
+
/**
|
|
2274
|
+
* Disable pagination and force-fit all tabs (no scroll).
|
|
2275
|
+
* @default false
|
|
2276
|
+
*/
|
|
2277
|
+
disablePagination: boolean;
|
|
2278
|
+
/**
|
|
2279
|
+
* Currently selected tab index (drives ink bar & scroll-to-visible).
|
|
2280
|
+
*/
|
|
2281
|
+
get selectedIndex(): number;
|
|
2282
|
+
set selectedIndex(v: number);
|
|
2283
|
+
private _selectedIndex;
|
|
2284
|
+
/**
|
|
2285
|
+
* Emits requested selection when user presses Enter/Space on a focused tab.
|
|
2286
|
+
* Consumers typically update `selectedIndex` in response.
|
|
2287
|
+
*/
|
|
2288
|
+
readonly selectFocusedIndex: EventEmitter<number>;
|
|
2289
|
+
/** Emits when focus moves to a different tab header item. */
|
|
2290
|
+
readonly indexFocused: EventEmitter<number>;
|
|
2291
|
+
constructor();
|
|
2292
|
+
/**
|
|
2293
|
+
* Subclass must implement: what happens when user "selects"
|
|
2294
|
+
* the focused item via keyboard (Enter/Space).
|
|
2295
|
+
*/
|
|
2296
|
+
protected abstract _itemSelected(event: KeyboardEvent): void;
|
|
2297
|
+
/** Lifecycle: attach touch handlers for press-and-hold scrolling. */
|
|
2298
|
+
ngAfterViewInit(): void;
|
|
2299
|
+
/** Lifecycle: set up keyboard manager, observers and initial alignment. */
|
|
2300
|
+
ngAfterContentInit(): void;
|
|
2301
|
+
/**
|
|
2302
|
+
* Observe when any header item has (re)measured to a non-zero size.
|
|
2303
|
+
* Helps re-evaluate pagination after lazy content/label changes.
|
|
2304
|
+
*/
|
|
2305
|
+
private _itemsResized;
|
|
2306
|
+
/** Lifecycle: react to item count/selection/scroll changes and flush DOM updates. */
|
|
2307
|
+
ngAfterContentChecked(): void;
|
|
2308
|
+
/** Lifecycle: teardown listeners/streams. */
|
|
2309
|
+
ngOnDestroy(): void;
|
|
2310
|
+
/**
|
|
2311
|
+
* Handle keydown on the header container.
|
|
2312
|
+
* Space/Enter select the focused tab; arrows/home/end are delegated to the key manager.
|
|
2313
|
+
*/
|
|
2314
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
2315
|
+
/** Called when projected content text changes may affect layout/widths. */
|
|
2316
|
+
_onContentChanges(): void;
|
|
2317
|
+
/** Recompute pagination state and apply current scroll position. */
|
|
2318
|
+
updatePagination(): void;
|
|
2319
|
+
/** Index of the currently focused item in the key manager. */
|
|
2320
|
+
get focusIndex(): number;
|
|
2321
|
+
set focusIndex(value: number);
|
|
2322
|
+
/** Returns whether the given index is valid for the items list. */
|
|
2323
|
+
_isValidIndex(index: number): boolean;
|
|
2324
|
+
/**
|
|
2325
|
+
* Moves focus to a given tab and ensures it is visible within the scroll container.
|
|
2326
|
+
* Also snaps container scroll to an edge (LTR/RTL) to avoid native scroll drift.
|
|
2327
|
+
*/
|
|
2328
|
+
_setTabFocus(tabIndex: number): void;
|
|
2329
|
+
/** Current layout direction derived from `Directionality`. */
|
|
2330
|
+
_getLayoutDirection(): Direction;
|
|
2331
|
+
/** Applies the current scroll transform to the tab list element. */
|
|
2332
|
+
_updateTabScrollPosition(): void;
|
|
2333
|
+
/** Current scroll distance (px). Setting it clamps to valid range and flags for DOM update. */
|
|
2334
|
+
get scrollDistance(): number;
|
|
2335
|
+
set scrollDistance(value: number);
|
|
2336
|
+
/** Scrolls the header to the start of the next/previous item where possible. */
|
|
2337
|
+
_scrollHeader(direction: ScrollDirection): {
|
|
2338
|
+
maxScrollDistance: number;
|
|
2339
|
+
distance: number;
|
|
2340
|
+
};
|
|
2341
|
+
/** Single-click paginator handler. */
|
|
2342
|
+
_handlePaginatorClick(direction: ScrollDirection): void;
|
|
2343
|
+
/**
|
|
2344
|
+
* Ensures the tab at `labelIndex` is fully visible within the scroll range.
|
|
2345
|
+
* Adjusts `scrollDistance` as needed based on LTR/RTL calculations.
|
|
2346
|
+
*/
|
|
2347
|
+
_scrollToLabel(labelIndex: number): void;
|
|
2348
|
+
private _getVisibleRange;
|
|
2349
|
+
private _getItemRanges;
|
|
2350
|
+
private _findPreviousItemRange;
|
|
2351
|
+
private _findNextItemRange;
|
|
2352
|
+
/** Evaluates whether pagination controls should be shown based on content width. */
|
|
2353
|
+
_checkPaginationEnabled(): void;
|
|
2354
|
+
/** Enables/disables paginator buttons based on current scroll position. */
|
|
2355
|
+
_checkScrollingControls(): void;
|
|
2356
|
+
/** Maximum scrollable distance of the tab list (px). */
|
|
2357
|
+
_getMaxScrollDistance(): number;
|
|
2358
|
+
/** Aligns the ink bar to the selected tab or hides it if no selection. */
|
|
2359
|
+
_alignInkBarToSelectedTab(): void;
|
|
2360
|
+
/** Stops any ongoing auto-scroll interval. */
|
|
2361
|
+
_stopInterval(): void;
|
|
2362
|
+
/**
|
|
2363
|
+
* Handles press-and-hold on a paginator button for continuous scrolling.
|
|
2364
|
+
* Uses a delay before repeating to avoid accidental long-press.
|
|
2365
|
+
*/
|
|
2366
|
+
_handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;
|
|
2367
|
+
/**
|
|
2368
|
+
* Clamps and applies a new scroll position.
|
|
2369
|
+
* @returns The max scroll distance and the clamped distance for convenience.
|
|
2370
|
+
*/
|
|
2371
|
+
private _scrollTo;
|
|
2372
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedTabHeader, never>;
|
|
2373
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginatedTabHeader, never, never, { "hideInkBar": { "alias": "hideInkBar"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never, true, never>;
|
|
2374
|
+
static ngAcceptInputType_disablePagination: unknown;
|
|
2375
|
+
static ngAcceptInputType_selectedIndex: unknown;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
type MDPaginatedStepHeaderItem = FocusableOption & {
|
|
2379
|
+
elementRef: ElementRef;
|
|
2380
|
+
};
|
|
2381
|
+
/**
|
|
2382
|
+
* ErrorStateMatcher that shows errors only once a control is dirty
|
|
2383
|
+
* (or when the parent form was submitted). Useful for “show on edit”.
|
|
2384
|
+
*/
|
|
2385
|
+
declare class ShowOnDirtyErrorStateMatcher implements StepperErrorStateMatcher {
|
|
2386
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2387
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
2388
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* Default StepperErrorStateMatcher used across the stepper.
|
|
2392
|
+
* Marks error when a control is invalid and touched, or the form is submitted.
|
|
2393
|
+
*/
|
|
2394
|
+
declare class StepperErrorStateMatcher {
|
|
2395
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2396
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperErrorStateMatcher, never>;
|
|
2397
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StepperErrorStateMatcher>;
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* Single step inside the stepper.
|
|
2401
|
+
* - Extends CdkStep and plugs in lazy content via <ng-template mdStepContent>.
|
|
2402
|
+
* - Provides StepperErrorStateMatcher so the step can decide its own error state.
|
|
2403
|
+
*/
|
|
2404
|
+
declare class MDStep extends CdkStep implements StepperErrorStateMatcher, AfterContentInit, OnDestroy {
|
|
2405
|
+
/** Parent-provided matcher used as a baseline in isErrorState. */
|
|
2406
|
+
private _errorStateMatcher;
|
|
2407
|
+
/** View container used to create a portal for lazy content. */
|
|
2408
|
+
private _viewContainerRef;
|
|
2409
|
+
/** Subscription to selected-state changes (to attach lazy content). */
|
|
2410
|
+
private _isSelected;
|
|
2411
|
+
/** Optional projected label for the step header. */
|
|
2412
|
+
stepLabel: MDStepLabel;
|
|
2413
|
+
/** Optional lazy body content template: <ng-template mdStepContent>…</ng-template> */
|
|
2414
|
+
_lazyContent: MDStepContent;
|
|
2415
|
+
/** Portal instance created when the step first becomes selected. */
|
|
2416
|
+
_portal: TemplatePortal;
|
|
2417
|
+
/** Attach lazy content when this step becomes selected for the first time. */
|
|
2418
|
+
ngAfterContentInit(): void;
|
|
2419
|
+
/** Cleanup subscription on destroy. */
|
|
2420
|
+
ngOnDestroy(): void;
|
|
2421
|
+
/**
|
|
2422
|
+
* StepperErrorStateMatcher implementation for this step.
|
|
2423
|
+
* Combines the injected default matcher with “interacted” state so that
|
|
2424
|
+
* a step can show errors after the user interacted with the step controls.
|
|
2425
|
+
*/
|
|
2426
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
2427
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MDStep, never>;
|
|
2428
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MDStep, "md-step", ["mdStep"], {}, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
|
|
2429
|
+
}
|
|
2430
|
+
/**
|
|
2431
|
+
* The stepper container that manages a sequence of md-step children.
|
|
2432
|
+
* - Handles orientation, header/label positioning, and animations.
|
|
2433
|
+
* - Tracks and emits animation lifecycle.
|
|
2434
|
+
* - Supports custom icon overrides via <ng-template mdStepperIcon name="...">.
|
|
2435
|
+
*/
|
|
2436
|
+
declare class MDStepper extends CdkStepper implements AfterViewInit, AfterContentInit, AfterViewChecked, OnDestroy {
|
|
2437
|
+
/** Run transition listeners outside Angular for perf. */
|
|
2438
|
+
private _ngZone;
|
|
2439
|
+
/** Used to set up/tear down transitionend listeners. */
|
|
2440
|
+
private _renderer;
|
|
2441
|
+
/** Disable animations flag (useful for testing or SSR). */
|
|
2442
|
+
private _animationsDisabled;
|
|
2443
|
+
/** Cleanup handle for the transitionend listener. */
|
|
2444
|
+
private _cleanupTransition;
|
|
2445
|
+
/** Reactive animating flag used by host binding. */
|
|
2446
|
+
protected _isAnimating: i0.WritableSignal<boolean>;
|
|
2799
2447
|
/** Step headers rendered by this component's own template. */
|
|
2800
2448
|
private _renderedStepHeaders;
|
|
2801
2449
|
/** Animated containers used to detect when transitions finish. */
|
|
@@ -2850,9 +2498,9 @@ declare class MDStepper extends CdkStepper implements AfterViewInit, AfterConten
|
|
|
2850
2498
|
_disableScrollBefore: boolean;
|
|
2851
2499
|
get scrollDistance(): number;
|
|
2852
2500
|
set scrollDistance(value: number);
|
|
2853
|
-
_handlePaginatorClick(direction: ScrollDirection
|
|
2854
|
-
_handlePaginatorPress(direction: ScrollDirection
|
|
2855
|
-
_scrollHeader(direction: ScrollDirection
|
|
2501
|
+
_handlePaginatorClick(direction: ScrollDirection): void;
|
|
2502
|
+
_handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;
|
|
2503
|
+
_scrollHeader(direction: ScrollDirection): {
|
|
2856
2504
|
maxScrollDistance: number;
|
|
2857
2505
|
distance: number;
|
|
2858
2506
|
};
|
|
@@ -3301,7 +2949,7 @@ declare class MDContextMenuTrigger extends MDMenuTriggerBase implements OnDestro
|
|
|
3301
2949
|
|
|
3302
2950
|
declare class MDMenuModule {
|
|
3303
2951
|
static ɵfac: i0.ɵɵFactoryDeclaration<MDMenuModule, never>;
|
|
3304
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MDMenuModule, never, [typeof i1$
|
|
2952
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDMenuModule, never, [typeof i1$3.OverlayModule, typeof MDMenu, typeof MDMenuItem, typeof MDMenuContent, typeof MDMenuTrigger, typeof MDContextMenuTrigger], [typeof i7.BidiModule, typeof i1$1.CdkScrollableModule, typeof MDMenu, typeof MDMenuItem, typeof MDMenuContent, typeof MDMenuTrigger, typeof MDContextMenuTrigger]>;
|
|
3305
2953
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDMenuModule>;
|
|
3306
2954
|
}
|
|
3307
2955
|
|
|
@@ -3725,7 +3373,7 @@ declare class MDSelectTrigger {
|
|
|
3725
3373
|
|
|
3726
3374
|
declare class MDSelectModule {
|
|
3727
3375
|
static ɵfac: i0.ɵɵFactoryDeclaration<MDSelectModule, never>;
|
|
3728
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MDSelectModule, never, [typeof i1.CommonModule, typeof
|
|
3376
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDSelectModule, never, [typeof i1.CommonModule, typeof i6.FormsModule, typeof i1$3.OverlayModule, typeof MDOption, typeof MDOptionGroup, typeof MDSelect, typeof MDSelectTrigger, typeof PseudoCheckbox], [typeof MDOption, typeof MDOptionGroup, typeof MDSelect, typeof MDSelectTrigger]>;
|
|
3729
3377
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDSelectModule>;
|
|
3730
3378
|
}
|
|
3731
3379
|
|
|
@@ -3928,181 +3576,6 @@ declare class MDSwitchModule {
|
|
|
3928
3576
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDSwitchModule>;
|
|
3929
3577
|
}
|
|
3930
3578
|
|
|
3931
|
-
/** Direction to scroll the header when paginating. */
|
|
3932
|
-
type ScrollDirection = 'after' | 'before';
|
|
3933
|
-
/**
|
|
3934
|
-
* Contract for focusable tab header items used by the header.
|
|
3935
|
-
* Must expose an `elementRef` for measurement/positioning.
|
|
3936
|
-
*/
|
|
3937
|
-
type PaginatedTabHeaderItem = FocusableOption & {
|
|
3938
|
-
elementRef: ElementRef;
|
|
3939
|
-
};
|
|
3940
|
-
declare abstract class PaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
3941
|
-
/** Root host element (the header wrapper). */
|
|
3942
|
-
protected _elementRef: ElementRef<HTMLElement>;
|
|
3943
|
-
/** For OnPush marking when values change. */
|
|
3944
|
-
protected _changeDetectorRef: ChangeDetectorRef;
|
|
3945
|
-
/** Viewport ruler for resize/scrollbar metrics. */
|
|
3946
|
-
private _viewportRuler;
|
|
3947
|
-
/** Optional RTL service to flip layout. */
|
|
3948
|
-
private _dir;
|
|
3949
|
-
/** For running timers/listeners outside Angular. */
|
|
3950
|
-
private _ngZone;
|
|
3951
|
-
/** Platform detection (legacy engines). */
|
|
3952
|
-
private _platform;
|
|
3953
|
-
/** Efficient ResizeObserver sharing. */
|
|
3954
|
-
private _sharedResizeObserver;
|
|
3955
|
-
/** Injector for `afterNextRender` scheduling. */
|
|
3956
|
-
private _injector;
|
|
3957
|
-
/** Renderer for native event listeners & styles. */
|
|
3958
|
-
private _renderer;
|
|
3959
|
-
/** Cleanup callbacks for host-level listeners. */
|
|
3960
|
-
private _eventCleanups;
|
|
3961
|
-
/** List of focusable items (tab labels). */
|
|
3962
|
-
abstract _items: QueryList<PaginatedTabHeaderItem>;
|
|
3963
|
-
/** Ink bar API for alignment/hide. */
|
|
3964
|
-
abstract _inkBar: {
|
|
3965
|
-
hide: () => void;
|
|
3966
|
-
alignToElement: (element: HTMLElement) => void;
|
|
3967
|
-
};
|
|
3968
|
-
/** Container that clips the scrollable tab list. */
|
|
3969
|
-
abstract _tabListContainer: ElementRef<HTMLElement>;
|
|
3970
|
-
/** The horizontally translated list element. */
|
|
3971
|
-
abstract _tabList: ElementRef<HTMLElement>;
|
|
3972
|
-
/** Inner list wrapper used for measurements. */
|
|
3973
|
-
abstract _tabListInner: ElementRef<HTMLElement>;
|
|
3974
|
-
/** Next paginator button element. */
|
|
3975
|
-
abstract _nextPaginator: ElementRef<HTMLElement>;
|
|
3976
|
-
/** Previous paginator button element. */
|
|
3977
|
-
abstract _previousPaginator: ElementRef<HTMLElement>;
|
|
3978
|
-
/** Current horizontal scroll translation in px (LTR positive moves content left). */
|
|
3979
|
-
private _scrollDistance;
|
|
3980
|
-
/** Flag to know when selectedIndex changed between content checks. */
|
|
3981
|
-
private _selectedIndexChanged;
|
|
3982
|
-
/** Teardown notifier for streams. */
|
|
3983
|
-
protected readonly _destroyed: Subject<void>;
|
|
3984
|
-
/** Whether to render/show pagination controls. */
|
|
3985
|
-
_showPaginationControls: boolean;
|
|
3986
|
-
/** Disable "scroll after" paginator. */
|
|
3987
|
-
_disableScrollAfter: boolean;
|
|
3988
|
-
/** Disable "scroll before" paginator. */
|
|
3989
|
-
_disableScrollBefore: boolean;
|
|
3990
|
-
/** Cached count of tab labels to detect additions/removals. */
|
|
3991
|
-
private _tabLabelCount;
|
|
3992
|
-
/** Marker to apply pending scroll distance change to DOM. */
|
|
3993
|
-
private _scrollDistanceChanged;
|
|
3994
|
-
/** Keyboard manager for roving focus. */
|
|
3995
|
-
protected _keyManager: FocusKeyManager<PaginatedTabHeaderItem> | undefined;
|
|
3996
|
-
/** Used to detect text-content changes affecting layout. */
|
|
3997
|
-
private _currentTextContent;
|
|
3998
|
-
/** Emits when auto-scrolling should stop (mouseleave or end). */
|
|
3999
|
-
private _stopScrolling;
|
|
4000
|
-
hideInkBar: boolean;
|
|
4001
|
-
/**
|
|
4002
|
-
* Disable pagination and force-fit all tabs (no scroll).
|
|
4003
|
-
* @default false
|
|
4004
|
-
*/
|
|
4005
|
-
disablePagination: boolean;
|
|
4006
|
-
/**
|
|
4007
|
-
* Currently selected tab index (drives ink bar & scroll-to-visible).
|
|
4008
|
-
*/
|
|
4009
|
-
get selectedIndex(): number;
|
|
4010
|
-
set selectedIndex(v: number);
|
|
4011
|
-
private _selectedIndex;
|
|
4012
|
-
/**
|
|
4013
|
-
* Emits requested selection when user presses Enter/Space on a focused tab.
|
|
4014
|
-
* Consumers typically update `selectedIndex` in response.
|
|
4015
|
-
*/
|
|
4016
|
-
readonly selectFocusedIndex: EventEmitter<number>;
|
|
4017
|
-
/** Emits when focus moves to a different tab header item. */
|
|
4018
|
-
readonly indexFocused: EventEmitter<number>;
|
|
4019
|
-
constructor();
|
|
4020
|
-
/**
|
|
4021
|
-
* Subclass must implement: what happens when user "selects"
|
|
4022
|
-
* the focused item via keyboard (Enter/Space).
|
|
4023
|
-
*/
|
|
4024
|
-
protected abstract _itemSelected(event: KeyboardEvent): void;
|
|
4025
|
-
/** Lifecycle: attach touch handlers for press-and-hold scrolling. */
|
|
4026
|
-
ngAfterViewInit(): void;
|
|
4027
|
-
/** Lifecycle: set up keyboard manager, observers and initial alignment. */
|
|
4028
|
-
ngAfterContentInit(): void;
|
|
4029
|
-
/**
|
|
4030
|
-
* Observe when any header item has (re)measured to a non-zero size.
|
|
4031
|
-
* Helps re-evaluate pagination after lazy content/label changes.
|
|
4032
|
-
*/
|
|
4033
|
-
private _itemsResized;
|
|
4034
|
-
/** Lifecycle: react to item count/selection/scroll changes and flush DOM updates. */
|
|
4035
|
-
ngAfterContentChecked(): void;
|
|
4036
|
-
/** Lifecycle: teardown listeners/streams. */
|
|
4037
|
-
ngOnDestroy(): void;
|
|
4038
|
-
/**
|
|
4039
|
-
* Handle keydown on the header container.
|
|
4040
|
-
* Space/Enter select the focused tab; arrows/home/end are delegated to the key manager.
|
|
4041
|
-
*/
|
|
4042
|
-
_handleKeydown(event: KeyboardEvent): void;
|
|
4043
|
-
/** Called when projected content text changes may affect layout/widths. */
|
|
4044
|
-
_onContentChanges(): void;
|
|
4045
|
-
/** Recompute pagination state and apply current scroll position. */
|
|
4046
|
-
updatePagination(): void;
|
|
4047
|
-
/** Index of the currently focused item in the key manager. */
|
|
4048
|
-
get focusIndex(): number;
|
|
4049
|
-
set focusIndex(value: number);
|
|
4050
|
-
/** Returns whether the given index is valid for the items list. */
|
|
4051
|
-
_isValidIndex(index: number): boolean;
|
|
4052
|
-
/**
|
|
4053
|
-
* Moves focus to a given tab and ensures it is visible within the scroll container.
|
|
4054
|
-
* Also snaps container scroll to an edge (LTR/RTL) to avoid native scroll drift.
|
|
4055
|
-
*/
|
|
4056
|
-
_setTabFocus(tabIndex: number): void;
|
|
4057
|
-
/** Current layout direction derived from `Directionality`. */
|
|
4058
|
-
_getLayoutDirection(): Direction;
|
|
4059
|
-
/** Applies the current scroll transform to the tab list element. */
|
|
4060
|
-
_updateTabScrollPosition(): void;
|
|
4061
|
-
/** Current scroll distance (px). Setting it clamps to valid range and flags for DOM update. */
|
|
4062
|
-
get scrollDistance(): number;
|
|
4063
|
-
set scrollDistance(value: number);
|
|
4064
|
-
/** Scrolls the header to the start of the next/previous item where possible. */
|
|
4065
|
-
_scrollHeader(direction: ScrollDirection): {
|
|
4066
|
-
maxScrollDistance: number;
|
|
4067
|
-
distance: number;
|
|
4068
|
-
};
|
|
4069
|
-
/** Single-click paginator handler. */
|
|
4070
|
-
_handlePaginatorClick(direction: ScrollDirection): void;
|
|
4071
|
-
/**
|
|
4072
|
-
* Ensures the tab at `labelIndex` is fully visible within the scroll range.
|
|
4073
|
-
* Adjusts `scrollDistance` as needed based on LTR/RTL calculations.
|
|
4074
|
-
*/
|
|
4075
|
-
_scrollToLabel(labelIndex: number): void;
|
|
4076
|
-
private _getVisibleRange;
|
|
4077
|
-
private _getItemRanges;
|
|
4078
|
-
private _findPreviousItemRange;
|
|
4079
|
-
private _findNextItemRange;
|
|
4080
|
-
/** Evaluates whether pagination controls should be shown based on content width. */
|
|
4081
|
-
_checkPaginationEnabled(): void;
|
|
4082
|
-
/** Enables/disables paginator buttons based on current scroll position. */
|
|
4083
|
-
_checkScrollingControls(): void;
|
|
4084
|
-
/** Maximum scrollable distance of the tab list (px). */
|
|
4085
|
-
_getMaxScrollDistance(): number;
|
|
4086
|
-
/** Aligns the ink bar to the selected tab or hides it if no selection. */
|
|
4087
|
-
_alignInkBarToSelectedTab(): void;
|
|
4088
|
-
/** Stops any ongoing auto-scroll interval. */
|
|
4089
|
-
_stopInterval(): void;
|
|
4090
|
-
/**
|
|
4091
|
-
* Handles press-and-hold on a paginator button for continuous scrolling.
|
|
4092
|
-
* Uses a delay before repeating to avoid accidental long-press.
|
|
4093
|
-
*/
|
|
4094
|
-
_handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;
|
|
4095
|
-
/**
|
|
4096
|
-
* Clamps and applies a new scroll position.
|
|
4097
|
-
* @returns The max scroll distance and the clamped distance for convenience.
|
|
4098
|
-
*/
|
|
4099
|
-
private _scrollTo;
|
|
4100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedTabHeader, never>;
|
|
4101
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginatedTabHeader, never, never, { "hideInkBar": { "alias": "hideInkBar"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never, true, never>;
|
|
4102
|
-
static ngAcceptInputType_disablePagination: unknown;
|
|
4103
|
-
static ngAcceptInputType_selectedIndex: unknown;
|
|
4104
|
-
}
|
|
4105
|
-
|
|
4106
3579
|
declare class TabBodyPortal extends CdkPortalOutlet implements OnInit, OnDestroy {
|
|
4107
3580
|
/** The owning tab body that drives attach/detach. */
|
|
4108
3581
|
private _host;
|
|
@@ -5230,7 +4703,7 @@ declare class MDAutocompleteTrigger implements ControlValueAccessor, AfterViewIn
|
|
|
5230
4703
|
|
|
5231
4704
|
declare class MDAutocompleteModule {
|
|
5232
4705
|
static ɵfac: i0.ɵɵFactoryDeclaration<MDAutocompleteModule, never>;
|
|
5233
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MDAutocompleteModule, never, [typeof i1$
|
|
4706
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MDAutocompleteModule, never, [typeof i1$3.OverlayModule, typeof MDOptionModule, typeof MDAutocomplete, typeof MDAutocompleteTrigger, typeof MDAutocompleteOrigin], [typeof i1$1.CdkScrollableModule, typeof MDAutocomplete, typeof MDOptionModule, typeof i7.BidiModule, typeof MDAutocompleteTrigger, typeof MDAutocompleteOrigin]>;
|
|
5234
4707
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDAutocompleteModule>;
|
|
5235
4708
|
}
|
|
5236
4709
|
|
|
@@ -6564,6 +6037,6 @@ declare class MDPaginatorModule {
|
|
|
6564
6037
|
static ɵinj: i0.ɵɵInjectorDeclaration<MDPaginatorModule>;
|
|
6565
6038
|
}
|
|
6566
6039
|
|
|
6567
|
-
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDAccordion, MDAutocomplete, MDAutocompleteModule, MDAutocompleteOrigin, MDAutocompleteSelectedEvent, MDAutocompleteTrigger, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCheckBox, MDCheckBoxModule, MDCheckboxChange, MDChip, MDChipAvatar, MDChipEdit, MDChipEditInput, MDChipGrid, MDChipGridChange, MDChipInput, MDChipListbox, MDChipListboxChange, MDChipOption, MDChipRemove, MDChipRow, MDChipSelectionChange, MDChipSet, MDChipTrailingIcon, MDChipsModule, MDCollapseModule, MDContextMenuTrigger, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDGridActionsColumnDirective, MDGridAutoSizeDirective, MDGridCellTemplateDirective, MDGridColumnDirective, MDGridComponent, MDGridEditTemplateDirective, MDGridHeaderTemplateDirective, MDGridIdColumnDirective, MDGridModule, MDGridResetFlexSizingDirective, MDGridToolbarTemplateDirective, MDHeaderCardComponent, MDHeaderCardModule, MDHeaderCardSetComponent, MDMenu, MDMenuContent, MDMenuItem, MDMenuModule, MDMenuTrigger, MDModalModule, MDOption, MDOptionGroup, MDOptionModule, MDOptionSelectionChange, MDPaginatorComponent, MDPaginatorModule, MDPseudoCheckboxModule, MDRadioButton, MDRadioGroup, MDRadioModule, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabLink, MDTabNav, MDTabNavPanel, MDTabsModule, MD_AUTOCOMPLETE_DEFAULT_OPTIONS, MD_AUTOCOMPLETE_SCROLL_STRATEGY, MD_AUTOCOMPLETE_VALUE_ACCESSOR, MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS, MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON, MD_EXPANSION_PANEL, MD_MENU_CONTENT, MD_MENU_DEFAULT_OPTIONS, MD_MENU_PANEL, MD_MENU_SCROLL_STRATEGY, MD_OPTION_PARENT_COMPONENT, MD_RADIO_GROUP, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, MENU_PANEL_TOP_PADDING, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule,
|
|
6568
|
-
export type { AccordionBase, AccordionDisplayMode, AccordionTogglePosition,
|
|
6040
|
+
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDAccordion, MDAutocomplete, MDAutocompleteModule, MDAutocompleteOrigin, MDAutocompleteSelectedEvent, MDAutocompleteTrigger, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCheckBox, MDCheckBoxModule, MDCheckboxChange, MDChip, MDChipAvatar, MDChipEdit, MDChipEditInput, MDChipGrid, MDChipGridChange, MDChipInput, MDChipListbox, MDChipListboxChange, MDChipOption, MDChipRemove, MDChipRow, MDChipSelectionChange, MDChipSet, MDChipTrailingIcon, MDChipsModule, MDCollapseModule, MDContextMenuTrigger, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDGridActionsColumnDirective, MDGridAutoSizeDirective, MDGridCellTemplateDirective, MDGridColumnDirective, MDGridComponent, MDGridEditTemplateDirective, MDGridHeaderTemplateDirective, MDGridIdColumnDirective, MDGridModule, MDGridResetFlexSizingDirective, MDGridToolbarTemplateDirective, MDHeaderCardComponent, MDHeaderCardModule, MDHeaderCardSetComponent, MDMenu, MDMenuContent, MDMenuItem, MDMenuModule, MDMenuTrigger, MDModalModule, MDOption, MDOptionGroup, MDOptionModule, MDOptionSelectionChange, MDPaginatorComponent, MDPaginatorModule, MDPseudoCheckboxModule, MDRadioButton, MDRadioGroup, MDRadioModule, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabLink, MDTabNav, MDTabNavPanel, MDTabsModule, MD_AUTOCOMPLETE_DEFAULT_OPTIONS, MD_AUTOCOMPLETE_SCROLL_STRATEGY, MD_AUTOCOMPLETE_VALUE_ACCESSOR, MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS, MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON, MD_EXPANSION_PANEL, MD_MENU_CONTENT, MD_MENU_DEFAULT_OPTIONS, MD_MENU_PANEL, MD_MENU_SCROLL_STRATEGY, MD_OPTION_PARENT_COMPONENT, MD_RADIO_GROUP, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, MENU_PANEL_TOP_PADDING, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule, MefDevPageLayoutsModule, MefDevProgressComponent, MefDevProgressModule, MefDevStepExecutorModule, MefDevSwitchComponent, MefDevSwitchModule, MefdevDropdownMenuComponent, MefdevExecutorPageComponent, ModalSize, PaginatedTabHeader, ProgressConfig, PseudoCheckbox, RADIO_GROUP_CONTROL_VALUE_ACCESSOR, RadioChange, RightFilterComponent, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, SlideRightComponent, SlideUpComponent, SortDirection, SortType, StageComponent, StepExecutorComponent, StepperErrorStateMatcher, StepperIntl, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TabBodyPortal, TablePageComponent, TransitionCheckState, _ErrorStateTracker, _closeDialogVia, _countGroupLabelsBeforeOption, _getOptionScrollPosition, components, getMDAutocompleteMissingPanelError, getMDSelectDynamicMultipleError, getMDSelectNonArrayValueError, getMDSelectNonFunctionValueError, groupRowsByProperty, mefDevCardComponents, mefDevCollapseModuleComponents, sortRows };
|
|
6041
|
+
export type { AccordionBase, AccordionDisplayMode, AccordionTogglePosition, AutoFocusTarget, CardAppearance, CardConfig, CardsGridEditContext, CheckboxClickAction, DialogPosition, DialogRole, ExpansionPanelBase, ExpansionPanelDefaultOptions, ExpansionPanelState, GridCellContext, GridColumn, GridColumnMobileRole, GridColumnResizeEvent, GridEditContext, GridHeaderContext, GridPageEvent, GridRowEditEvent, GridSortEvent, GroupedRows, MDAutocompleteActivatedEvent, MDChipEditedEvent, MDChipEvent, MDChipInputEvent, MDChipTextControl, MDChipsDefaultOptions, MDMenuDefaultOptions, MDMenuPanel, MDOptionParentComponent, MDPaginatedStepHeaderItem, MdAutocompleteDefaultOptions, MenuCloseReason, MenuPositionX, MenuPositionY, PaginatorPageEvent, PseudoCheckboxState, ScrollDirection, SeparatorKey, SortPropDir, StepperIconContext, TabBodyOriginState, TabBodyPositionState, TabGroupBaseHeader, TabHeaderPosition, TabsConfig, ToggleSwitchChangeEvent };
|
|
6569
6042
|
//# sourceMappingURL=index.d.ts.map
|