matcha-components 20.12.0 → 20.13.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.
- package/fesm2022/matcha-components.mjs +599 -444
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +74 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, EventEmitter, SimpleChanges, AfterContentInit, OnDestroy, QueryList, ElementRef, Renderer2, TemplateRef, ChangeDetectorRef, AfterViewInit, NgZone, ApplicationRef, Injector, RendererFactory2, Type, ComponentRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
6
|
import { FormControlName, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@angular/common';
|
|
@@ -1159,6 +1159,76 @@ declare class MatchaAutocompleteComponent implements AfterContentInit, AfterView
|
|
|
1159
1159
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaAutocompleteComponent, "matcha-autocomplete", never, { "placement": { "alias": "placement"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, ["options"], ["*"], false, never>;
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
+
interface PageEvent {
|
|
1163
|
+
/** The current page index. */
|
|
1164
|
+
pageIndex: number;
|
|
1165
|
+
/** Index of the page that was selected previously. */
|
|
1166
|
+
previousPageIndex?: number;
|
|
1167
|
+
/** The current page size. */
|
|
1168
|
+
pageSize: number;
|
|
1169
|
+
/** The current total number of items being paged. */
|
|
1170
|
+
length: number;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Service to internationalize the paginator component.
|
|
1175
|
+
* Based on Angular Material's MatPaginatorIntl
|
|
1176
|
+
*/
|
|
1177
|
+
declare class MatchaPaginatorIntl {
|
|
1178
|
+
/** Stream to emit from when labels are changed. Used by the paginator to update the labels. */
|
|
1179
|
+
readonly changes: Subject<void>;
|
|
1180
|
+
/** A label for the page size selector. */
|
|
1181
|
+
itemsPerPageLabel: string;
|
|
1182
|
+
/** A label for the button that increments the current page. */
|
|
1183
|
+
nextPageLabel: string;
|
|
1184
|
+
/** A label for the button that decrements the current page. */
|
|
1185
|
+
previousPageLabel: string;
|
|
1186
|
+
/** A label for the button that moves to the first page. */
|
|
1187
|
+
firstPageLabel: string;
|
|
1188
|
+
/** A label for the button that moves to the last page. */
|
|
1189
|
+
lastPageLabel: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* A label for the range of items within the current page and the length of the whole list.
|
|
1192
|
+
*/
|
|
1193
|
+
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
1194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPaginatorIntl, never>;
|
|
1195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatchaPaginatorIntl>;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
declare class MatchaPaginatorComponent implements OnDestroy {
|
|
1199
|
+
_intl: MatchaPaginatorIntl;
|
|
1200
|
+
private _changeDetectorRef;
|
|
1201
|
+
pageIndex: number;
|
|
1202
|
+
length: number;
|
|
1203
|
+
pageSize: number;
|
|
1204
|
+
pageSizeOptions: number[];
|
|
1205
|
+
/** Color theme for active page button. Defaults to 'accent' */
|
|
1206
|
+
color: string;
|
|
1207
|
+
page: EventEmitter<PageEvent>;
|
|
1208
|
+
private _intlChanges;
|
|
1209
|
+
constructor(_intl: MatchaPaginatorIntl, _changeDetectorRef: ChangeDetectorRef);
|
|
1210
|
+
ngOnDestroy(): void;
|
|
1211
|
+
get currentPage(): number;
|
|
1212
|
+
get totalPages(): number;
|
|
1213
|
+
get hasPreviousPage(): boolean;
|
|
1214
|
+
get hasNextPage(): boolean;
|
|
1215
|
+
get displayPages(): (number | string)[];
|
|
1216
|
+
trackByPage(index: number, item: number | string): number | string;
|
|
1217
|
+
/** Check if item is a number (for template use only) */
|
|
1218
|
+
typeof(value: any): string;
|
|
1219
|
+
/** Navigate to previous page */
|
|
1220
|
+
previousPage(): void;
|
|
1221
|
+
/** Navigate to next page */
|
|
1222
|
+
nextPage(): void;
|
|
1223
|
+
/** Navigate to specific page */
|
|
1224
|
+
goToPage(page: number): void;
|
|
1225
|
+
/** Handle page size change */
|
|
1226
|
+
onPageSizeChange(event: Event): void;
|
|
1227
|
+
private changePage;
|
|
1228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPaginatorComponent, never>;
|
|
1229
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaPaginatorComponent, "matcha-paginator", never, { "pageIndex": { "alias": "pageIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "page": "page"; }, never, never, false, never>;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1162
1232
|
declare class MatchaTooltipDirective {
|
|
1163
1233
|
private el;
|
|
1164
1234
|
private renderer;
|
|
@@ -1425,17 +1495,9 @@ declare class MatchaMenuModule {
|
|
|
1425
1495
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaMenuModule>;
|
|
1426
1496
|
}
|
|
1427
1497
|
|
|
1428
|
-
declare class MatchaPaginatorDirective {
|
|
1429
|
-
private _elementRef;
|
|
1430
|
-
private _renderer;
|
|
1431
|
-
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
|
1432
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPaginatorDirective, never>;
|
|
1433
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaPaginatorDirective, "[matchaPaginator]", never, {}, {}, never, never, false, never>;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
1498
|
declare class MatchaPaginatorModule {
|
|
1437
1499
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaPaginatorModule, never>;
|
|
1438
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaPaginatorModule, [typeof
|
|
1500
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaPaginatorModule, [typeof MatchaPaginatorComponent], [typeof i2.CommonModule, typeof MatchaIconModule], [typeof MatchaPaginatorComponent]>;
|
|
1439
1501
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaPaginatorModule>;
|
|
1440
1502
|
}
|
|
1441
1503
|
|
|
@@ -1734,5 +1796,5 @@ declare class StepContentDirective {
|
|
|
1734
1796
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StepContentDirective, "[step]", never, { "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
1735
1797
|
}
|
|
1736
1798
|
|
|
1737
|
-
export { MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDateComponent, MatchaDateModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule,
|
|
1738
|
-
export type { DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaOptionParent, ModalComponent, PanelPlacement, PanelPosition };
|
|
1799
|
+
export { MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDateComponent, MatchaDateModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
1800
|
+
export type { DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaOptionParent, ModalComponent, PageEvent, PanelPlacement, PanelPosition };
|