@muziehdesign/components 19.2.8-beta.2627 → 19.2.8-beta.2639

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MzAsyncError {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzAsyncError, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MzAsyncError, "[mzAsyncError]", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MzAsyncLoading {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzAsyncLoading, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MzAsyncLoading, "[mzAsyncLoading]", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MzAsync {
3
+ isLoading: import("@angular/core").InputSignal<boolean>;
4
+ error: import("@angular/core").InputSignal<Error | undefined>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzAsync, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<MzAsync, "mz-async", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, {}, never, ["[mzAsyncLoading]", "[mzAsyncError]", "[mzAsyncSuccess]"], true, never>;
7
+ }
@@ -22,6 +22,6 @@ import * as i18 from "./subject-display/subject-display.pipe";
22
22
  */
23
23
  export declare class MuziehComponentsModule {
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<MuziehComponentsModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<MuziehComponentsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.ButtonDirective, typeof i4.SvgIconComponent, typeof i5.MzSpinner, typeof i6.WizardProgressTrackerComponent, typeof i7.AlertComponent, typeof i8.EnumDisplayPipe, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.PaginationComponent, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe], [typeof i8.EnumDisplayPipe, typeof i5.MzSpinner, typeof i4.SvgIconComponent, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.PaginationComponent, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i7.AlertComponent, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe, typeof i3.ButtonDirective, typeof i6.WizardProgressTrackerComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MuziehComponentsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.ButtonDirective, typeof i4.SvgIconComponent, typeof i5.MzSpinner, typeof i6.WizardProgressTrackerComponent, typeof i7.AlertComponent, typeof i8.EnumDisplayPipe, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.MzPagination, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe], [typeof i8.EnumDisplayPipe, typeof i5.MzSpinner, typeof i4.SvgIconComponent, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.MzPagination, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i7.AlertComponent, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe, typeof i3.ButtonDirective, typeof i6.WizardProgressTrackerComponent]>;
26
26
  static ɵinj: i0.ɵɵInjectorDeclaration<MuziehComponentsModule>;
27
27
  }
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export declare const MZ_PAGINATION_DEFAULT_OPTIONS: InjectionToken<MzPaginationConfig>;
3
+ export declare class MzPaginationConfig {
4
+ pageSize: number;
5
+ pageSizeOptions: number[];
6
+ }
@@ -1,21 +1,25 @@
1
1
  import { EventEmitter, OnChanges } from '@angular/core';
2
2
  import { PageEvent } from '../models/page-event';
3
- import { PaginationDefaultOptions } from './pagination-default-options';
3
+ import { MzPaginationConfig } from './pagination-config';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PaginationComponent implements OnChanges {
6
- length: number;
7
- page: number;
8
- pageSize: number;
9
- changePage: EventEmitter<PageEvent>;
5
+ export declare class MzPagination implements OnChanges {
6
+ totalItems: number;
7
+ pageNumber: number;
8
+ pageSize?: number;
9
+ scrollTo?: HTMLElement;
10
10
  pageSizeOptions?: number[];
11
+ changePage: EventEmitter<PageEvent>;
11
12
  pages: number[];
12
13
  pageCount: number;
13
- constructor(paginationOptions: PaginationDefaultOptions);
14
+ protected options: MzPaginationConfig;
15
+ constructor(paginationOptions: MzPaginationConfig);
14
16
  ngOnChanges(): void;
15
17
  protected isEllipsis(v: number): v is -1;
18
+ protected getPageSize(): number;
19
+ protected getPageSizeOptions(): number[];
16
20
  changePageNumber(newValue: number): void;
17
21
  changePageSize(newValue: string): void;
18
22
  private updatePages;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, [{ optional: true; }]>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "mz-pagination", never, { "length": { "alias": "length"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "changePage": "changePage"; }, never, never, true, never>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzPagination, [{ optional: true; }]>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<MzPagination, "mz-pagination", never, { "totalItems": { "alias": "totalItems"; "required": true; }; "pageNumber": { "alias": "pageNumber"; "required": true; }; "pageSize": { "alias": "pageSize"; "required": false; }; "scrollTo": { "alias": "scrollTo"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "changePage": "changePage"; }, never, never, true, never>;
21
25
  }
@@ -14,7 +14,7 @@ export declare class ResultTableComponent implements AfterViewInit {
14
14
  options: ResultTableOptions;
15
15
  constructor();
16
16
  ngAfterViewInit(): void;
17
- changePage(page: PageEvent, table: HTMLElement): void;
17
+ changePage(page: PageEvent): void;
18
18
  searchAgain(): void;
19
19
  get state(): 'loading' | 'failed' | 'succeeded';
20
20
  get isEmpty(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muziehdesign/components",
3
- "version": "19.2.8-beta.2627",
3
+ "version": "19.2.8-beta.2639",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.8",
6
6
  "@angular/core": ">=19.2.8",
package/public-api.d.ts CHANGED
@@ -12,8 +12,11 @@ export { MzDatePipeConfig, MZ_DATE_PIPE_DEFAULT_OPTIONS } from './lib/date-displ
12
12
  export { MzInlineEditComponent } from './lib/inline-edit/inline-edit.component';
13
13
  export { SubjectDisplayPipe } from './lib/subject-display/subject-display.pipe';
14
14
  export { Subject } from './lib/models/subject';
15
+ export { MzAsync } from './lib/async/async.component';
16
+ export { MzAsyncError } from './lib/async/async-error.directive';
17
+ export { MzAsyncLoading } from './lib/async/async-loading.directive';
15
18
  export { ResultTableComponent } from './lib/result-table/result-table.component';
16
- export { PaginationComponent } from './lib/pagination/pagination.component';
19
+ export { MzPagination } from './lib/pagination/pagination.component';
17
20
  export { PageEvent } from './lib/models/page-event';
18
21
  export { LoadingState } from './lib/models/loading-state';
19
22
  export { ResultTableModel } from './lib/result-table/result-table.model';
@@ -1,4 +0,0 @@
1
- export interface PaginationDefaultOptions {
2
- pageSize: number;
3
- pageSizeOptions: number[];
4
- }
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from "@angular/core";
2
- import { PaginationDefaultOptions } from "./pagination-default-options";
3
- export declare const PAGINATION_DEFAULT_OPTIONS: InjectionToken<PaginationDefaultOptions>;