matcha-components 19.0.2 → 19.0.4
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 +173 -6
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/lib/matcha-components.module.d.ts +36 -35
- package/lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component.d.ts +12 -0
- package/lib/matcha-infinite-scroll/matcha-infinite-scroll-data/matcha-infinite-scroll-data.component.d.ts +53 -0
- package/lib/matcha-infinite-scroll/matcha-infinite-scroll.module.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./matcha-overflow-draggable/matcha-overflow-draggable.component";
|
|
3
|
-
import * as i2 from "./matcha-
|
|
4
|
-
import * as i3 from "./matcha-
|
|
5
|
-
import * as i4 from "./matcha-
|
|
6
|
-
import * as i5 from "./matcha-
|
|
7
|
-
import * as i6 from "./matcha-
|
|
8
|
-
import * as i7 from "./matcha-
|
|
9
|
-
import * as i8 from "./matcha-
|
|
10
|
-
import * as i9 from "./matcha-
|
|
11
|
-
import * as i10 from "./matcha-
|
|
12
|
-
import * as i11 from "./matcha-button/button.module";
|
|
13
|
-
import * as i12 from "./matcha-
|
|
14
|
-
import * as i13 from "./matcha-
|
|
15
|
-
import * as i14 from "./matcha-
|
|
16
|
-
import * as i15 from "./matcha-
|
|
17
|
-
import * as i16 from "./matcha-
|
|
18
|
-
import * as i17 from "./matcha-
|
|
19
|
-
import * as i18 from "./matcha-
|
|
20
|
-
import * as i19 from "./matcha-
|
|
21
|
-
import * as i20 from "./matcha-
|
|
22
|
-
import * as i21 from "./matcha-
|
|
23
|
-
import * as i22 from "./matcha-
|
|
24
|
-
import * as i23 from "./matcha-
|
|
25
|
-
import * as i24 from "./matcha-
|
|
26
|
-
import * as i25 from "./matcha-
|
|
27
|
-
import * as i26 from "./matcha-progress-
|
|
28
|
-
import * as i27 from "./matcha-
|
|
29
|
-
import * as i28 from "./matcha-
|
|
30
|
-
import * as i29 from "./matcha-
|
|
31
|
-
import * as i30 from "./matcha-
|
|
32
|
-
import * as i31 from "./matcha-
|
|
33
|
-
import * as i32 from "./matcha-
|
|
34
|
-
import * as i33 from "./matcha-
|
|
35
|
-
import * as i34 from "./matcha-
|
|
36
|
-
import * as i35 from "./matcha-
|
|
3
|
+
import * as i2 from "./matcha-infinite-scroll/matcha-infinite-scroll.module";
|
|
4
|
+
import * as i3 from "./matcha-modal/matcha-modal.module";
|
|
5
|
+
import * as i4 from "./matcha-masonry/masonry.module";
|
|
6
|
+
import * as i5 from "./matcha-card/card.module";
|
|
7
|
+
import * as i6 from "./matcha-title/title.module";
|
|
8
|
+
import * as i7 from "./matcha-autocomplete/autocomplete.module";
|
|
9
|
+
import * as i8 from "./matcha-badge/badge.module";
|
|
10
|
+
import * as i9 from "./matcha-tabs/tabs.module";
|
|
11
|
+
import * as i10 from "./matcha-bottom-sheet/bottom-sheet.module";
|
|
12
|
+
import * as i11 from "./matcha-button-toggle/button-toggle.module";
|
|
13
|
+
import * as i12 from "./matcha-button/button.module";
|
|
14
|
+
import * as i13 from "./matcha-checkbox/checkbox.module";
|
|
15
|
+
import * as i14 from "./matcha-chips/chips.module";
|
|
16
|
+
import * as i15 from "./matcha-datepicker/datepicker.module";
|
|
17
|
+
import * as i16 from "./matcha-divider/divider.module";
|
|
18
|
+
import * as i17 from "./matcha-elevation/elevation.module";
|
|
19
|
+
import * as i18 from "./matcha-expansion/expansion.module";
|
|
20
|
+
import * as i19 from "./matcha-forms/forms.module";
|
|
21
|
+
import * as i20 from "./matcha-icon/icon.module";
|
|
22
|
+
import * as i21 from "./matcha-input/input.module";
|
|
23
|
+
import * as i22 from "./matcha-list/list.module";
|
|
24
|
+
import * as i23 from "./matcha-menu/menu.module";
|
|
25
|
+
import * as i24 from "./matcha-sidenav/sidenav.module";
|
|
26
|
+
import * as i25 from "./matcha-paginator/paginator.module";
|
|
27
|
+
import * as i26 from "./matcha-progress-bar/progress-bar.module";
|
|
28
|
+
import * as i27 from "./matcha-progress-spinner/progress-spinner.module";
|
|
29
|
+
import * as i28 from "./matcha-radio-button/radio-button.module";
|
|
30
|
+
import * as i29 from "./matcha-select/select.module";
|
|
31
|
+
import * as i30 from "./matcha-slide-toggle/slide-toggle.module";
|
|
32
|
+
import * as i31 from "./matcha-slider/slider.module";
|
|
33
|
+
import * as i32 from "./matcha-snackbar/snack-bar.module";
|
|
34
|
+
import * as i33 from "./matcha-sort-header/sort-header.module";
|
|
35
|
+
import * as i34 from "./matcha-table/table.module";
|
|
36
|
+
import * as i35 from "./matcha-tooltip/tooltip.module";
|
|
37
|
+
import * as i36 from "./matcha-tree/tree.module";
|
|
37
38
|
export declare class MatchaComponentsModule {
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaComponentsModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof i1.MatchaOverflowDraggableComponent], [typeof i2.
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof i1.MatchaOverflowDraggableComponent], [typeof i2.MatchaInfiniteScrollModule, typeof i3.MatchaModalModule, typeof i4.MatchaMasonryModule, typeof i5.MatchaCardModule, typeof i6.MatchaTitleModule, typeof i7.MatchaAutocompleteModule, typeof i8.MatchaBadgeModule, typeof i9.MatchaTabsModule, typeof i10.MatchaBottomSheetModule, typeof i11.MatchaButtonToggleModule, typeof i12.MatchaButtonModule, typeof i13.MatchaCheckboxModule, typeof i14.MatchaChipsModule, typeof i15.MatchaDatepickerModule, typeof i16.MatchaDividerModule, typeof i17.MatchaElevationModule, typeof i18.MatchaExpansionModule, typeof i19.MatchaFormsModule, typeof i20.MatchaIconModule, typeof i21.MatchaInputModule, typeof i22.MatchaListModule, typeof i23.MatchaMenuModule, typeof i24.MatchaSidenavModule, typeof i25.MatchaPaginatorModule, typeof i26.MatchaProgressBarModule, typeof i27.MatchaProgressSpinnerModule, typeof i28.MatchaRadioButtonModule, typeof i29.MatchaSelectModule, typeof i30.MatchaSlideToggleModule, typeof i31.MatchaSliderModule, typeof i32.MatchaSnackBarModule, typeof i33.MatchaSortHeaderModule, typeof i34.MatchaTableModule, typeof i9.MatchaTabsModule, typeof i35.MatchaTooltipModule, typeof i36.MatchaTreeModule], [typeof i2.MatchaInfiniteScrollModule, typeof i3.MatchaModalModule, typeof i4.MatchaMasonryModule, typeof i5.MatchaCardModule, typeof i6.MatchaTitleModule, typeof i7.MatchaAutocompleteModule, typeof i8.MatchaBadgeModule, typeof i9.MatchaTabsModule, typeof i10.MatchaBottomSheetModule, typeof i11.MatchaButtonToggleModule, typeof i12.MatchaButtonModule, typeof i13.MatchaCheckboxModule, typeof i14.MatchaChipsModule, typeof i15.MatchaDatepickerModule, typeof i16.MatchaDividerModule, typeof i17.MatchaElevationModule, typeof i18.MatchaExpansionModule, typeof i19.MatchaFormsModule, typeof i20.MatchaIconModule, typeof i21.MatchaInputModule, typeof i22.MatchaListModule, typeof i23.MatchaMenuModule, typeof i24.MatchaSidenavModule, typeof i25.MatchaPaginatorModule, typeof i26.MatchaProgressBarModule, typeof i27.MatchaProgressSpinnerModule, typeof i28.MatchaRadioButtonModule, typeof i29.MatchaSelectModule, typeof i30.MatchaSlideToggleModule, typeof i31.MatchaSliderModule, typeof i32.MatchaSnackBarModule, typeof i33.MatchaSortHeaderModule, typeof i34.MatchaTableModule, typeof i9.MatchaTabsModule, typeof i35.MatchaTooltipModule, typeof i36.MatchaTreeModule]>;
|
|
40
41
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaComponentsModule>;
|
|
41
42
|
}
|
package/lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MatchaInfiniteScrollComponent implements OnInit, OnDestroy {
|
|
4
|
+
private element;
|
|
5
|
+
scrolledToEnd: EventEmitter<void>;
|
|
6
|
+
private observer;
|
|
7
|
+
constructor(element: ElementRef);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaInfiniteScrollComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaInfiniteScrollComponent, "matcha-infinite-scroll", never, {}, { "scrolledToEnd": "scrolledToEnd"; }, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MatchaInfiniteScrollDataComponent implements OnInit, OnDestroy, OnChanges {
|
|
5
|
+
private element;
|
|
6
|
+
/**
|
|
7
|
+
* Função que carrega os dados com base no número da página.
|
|
8
|
+
* Deve retornar um Observable com um array de itens.
|
|
9
|
+
*/
|
|
10
|
+
loadData: (page: number) => Observable<any[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Lista inicial (opcional) para iniciar a agregação.
|
|
13
|
+
*/
|
|
14
|
+
initialList: any[];
|
|
15
|
+
/**
|
|
16
|
+
* Threshold para o Intersection Observer (padrão: 0.1 = 10% do elemento visível).
|
|
17
|
+
*/
|
|
18
|
+
threshold: number;
|
|
19
|
+
/**
|
|
20
|
+
* Chave para resetar a diretiva. Toda vez que esse valor mudar, a lista interna será limpa.
|
|
21
|
+
* Você pode, por exemplo, passar o valor do filtro atual.
|
|
22
|
+
*/
|
|
23
|
+
resetKey: any;
|
|
24
|
+
/**
|
|
25
|
+
* Emite a lista acumulada de itens.
|
|
26
|
+
*/
|
|
27
|
+
aggregatedData: EventEmitter<any[]>;
|
|
28
|
+
private aggregatedList;
|
|
29
|
+
private currentPage;
|
|
30
|
+
private observer;
|
|
31
|
+
private subscription;
|
|
32
|
+
constructor(element: ElementRef);
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Detecta mudanças no resetKey e, se for o caso, reseta a lista e a página atual.
|
|
36
|
+
*/
|
|
37
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
+
/**
|
|
39
|
+
* Inicializa ou reinicializa a lista agregada e o contador de página.
|
|
40
|
+
*/
|
|
41
|
+
private initialize;
|
|
42
|
+
/**
|
|
43
|
+
* Reseta o estado interno da diretiva.
|
|
44
|
+
*/
|
|
45
|
+
private reset;
|
|
46
|
+
/**
|
|
47
|
+
* Carrega a próxima página de dados utilizando a função loadData.
|
|
48
|
+
*/
|
|
49
|
+
private loadNextPage;
|
|
50
|
+
ngOnDestroy(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaInfiniteScrollDataComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaInfiniteScrollDataComponent, "matcha-infinite-scroll-data", never, { "loadData": { "alias": "loadData"; "required": false; }; "initialList": { "alias": "initialList"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "resetKey": { "alias": "resetKey"; "required": false; }; }, { "aggregatedData": "aggregatedData"; }, never, never, false, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./matcha-infinite-scroll/matcha-infinite-scroll.component";
|
|
3
|
+
import * as i2 from "./matcha-infinite-scroll-data/matcha-infinite-scroll-data.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class MatchaInfiniteScrollModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaInfiniteScrollModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaInfiniteScrollModule, [typeof i1.MatchaInfiniteScrollComponent, typeof i2.MatchaInfiniteScrollDataComponent], [typeof i3.CommonModule], [typeof i1.MatchaInfiniteScrollComponent, typeof i2.MatchaInfiniteScrollDataComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaInfiniteScrollModule>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component';
|
|
2
|
+
export * from './lib/matcha-infinite-scroll/matcha-infinite-scroll-data/matcha-infinite-scroll-data.component';
|
|
1
3
|
export * from './lib/matcha-button/button/button.component';
|
|
2
4
|
export * from './lib/matcha-card/card/card.component';
|
|
3
5
|
export * from './lib/matcha-divider/divider/divider.component';
|
|
@@ -15,6 +17,7 @@ export * from './lib/matcha-toolbar/toolbar/toolbar.component';
|
|
|
15
17
|
export * from './lib/matcha-toolbar/toolbar-button/toolbar-button.component';
|
|
16
18
|
export * from './lib/matcha-toolbar/toolbar-content/toolbar-content.component';
|
|
17
19
|
export * from './lib/matcha-toolbar/toolbar-main-button/toolbar-main-button.component';
|
|
20
|
+
export * from './lib/matcha-infinite-scroll/matcha-infinite-scroll.module';
|
|
18
21
|
export * from './lib/matcha-modal/matcha-modal.module';
|
|
19
22
|
export * from './lib/matcha-card/card.module';
|
|
20
23
|
export * from './lib/matcha-masonry/masonry.module';
|