@yomotech/view-toolkit 0.0.71 → 0.0.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yomotech/view-toolkit",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^21.0.0",
6
6
  "@angular/cdk": "^21.0.0",
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, ChangeDetectorRef, NgZone, SimpleChanges, OnInit, OnChanges, AfterViewInit, OnDestroy, ElementRef, Injector } from '@angular/core';
2
+ import { EventEmitter, ElementRef, ChangeDetectorRef, NgZone, SimpleChanges, OnInit, OnChanges, AfterViewInit, OnDestroy, Injector } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { Platform } from '@angular/cdk/platform';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { HttpClient, HttpHeaders } from '@angular/common/http';
7
7
  import { OAuthService } from 'angular-oauth2-oidc';
8
8
  import { NzModalService } from 'ng-zorro-antd/modal';
9
- import { OktaAuthStateService } from '@okta/okta-angular';
10
9
  import { ToastrService } from 'ngx-toastr';
10
+ import { OktaAuthStateService } from '@okta/okta-angular';
11
11
  import { NgForm } from '@angular/forms';
12
12
  import { DynamicDialogRef, DialogService } from 'primeng/dynamicdialog';
13
13
  import { NzI18nService } from 'ng-zorro-antd/i18n';
@@ -152,6 +152,17 @@ declare class ConfigService {
152
152
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
153
153
  }
154
154
 
155
+ declare class NotificationService {
156
+ toastr: ToastrService;
157
+ constructor(toastr: ToastrService);
158
+ success(message: string, time?: number): void;
159
+ info(message: string, time?: number): void;
160
+ warning(message: string, time?: number): void;
161
+ error(error: string, time?: number, message?: string): void;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
163
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
164
+ }
165
+
155
166
  declare class CardComponent {
156
167
  private utilityService;
157
168
  private platform;
@@ -160,6 +171,7 @@ declare class CardComponent {
160
171
  private cdr;
161
172
  private zone;
162
173
  private modalService;
174
+ private notificationService;
163
175
  private oauthService;
164
176
  private requestService;
165
177
  itemInfo: any;
@@ -167,6 +179,7 @@ declare class CardComponent {
167
179
  pageSize: number;
168
180
  selectedLanguageInfo: any;
169
181
  mobileDisplay: boolean;
182
+ scrollPagination: boolean;
170
183
  pages: number[];
171
184
  cardButtonClick: EventEmitter<any>;
172
185
  cardHeaderButtonClick: EventEmitter<any>;
@@ -175,21 +188,32 @@ declare class CardComponent {
175
188
  onPageSizeChange: EventEmitter<any>;
176
189
  onPageChange: EventEmitter<any>;
177
190
  paginationMode: 'client' | 'server';
191
+ paginationLoading: boolean;
178
192
  cardDataChange: EventEmitter<{
179
193
  records: any[];
180
194
  resetPage?: boolean;
181
195
  }>;
196
+ scrollPaginationSentinel?: ElementRef<HTMLElement>;
197
+ private scrollObserver?;
198
+ private requestedScrollPage;
182
199
  cardPerRow: string;
183
200
  deviceMode: 'desktop' | 'tablet' | 'mobile';
184
201
  isLoading: boolean;
185
202
  layoutSchemaCopy: any;
186
203
  headerSchemaCopy: any;
187
204
  footerSchemaCopy: any;
188
- constructor(utilityService: UtilityService, platform: Platform, http: HttpClient, configService: ConfigService, cdr: ChangeDetectorRef, zone: NgZone, modalService: NzModalService, oauthService: OAuthService, requestService: RequestService);
205
+ constructor(utilityService: UtilityService, platform: Platform, http: HttpClient, configService: ConfigService, cdr: ChangeDetectorRef, zone: NgZone, modalService: NzModalService, notificationService: NotificationService, oauthService: OAuthService, requestService: RequestService);
189
206
  ngOnInit(): void;
190
207
  ngOnChanges(changes: SimpleChanges): void;
191
208
  onWindowResize(): void;
192
209
  get displayedRecords(): any[];
210
+ private setupScrollObserver;
211
+ private loadNextScrollPage;
212
+ private hasNextScrollPage;
213
+ private refreshScrollObserver;
214
+ private destroyScrollObserver;
215
+ ngOnDestroy(): void;
216
+ ngAfterViewInit(): void;
193
217
  getRecordIndex(record: any): number;
194
218
  private publishCardDataChange;
195
219
  private setFilteredCardData;
@@ -236,7 +260,7 @@ declare class CardComponent {
236
260
  showButtonCaption(button: any): boolean;
237
261
  getScope(scope: any): string;
238
262
  static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
239
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vl-card", never, { "itemInfo": { "alias": "itemInfo"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "mobileDisplay": { "alias": "mobileDisplay"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "paginationMode": { "alias": "paginationMode"; "required": false; }; }, { "cardButtonClick": "cardButtonClick"; "cardHeaderButtonClick": "cardHeaderButtonClick"; "linkDetails": "linkDetails"; "imageDetails": "imageDetails"; "onPageSizeChange": "onPageSizeChange"; "onPageChange": "onPageChange"; "cardDataChange": "cardDataChange"; }, never, never, true, never>;
263
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vl-card", never, { "itemInfo": { "alias": "itemInfo"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "mobileDisplay": { "alias": "mobileDisplay"; "required": false; }; "scrollPagination": { "alias": "scrollPagination"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "paginationMode": { "alias": "paginationMode"; "required": false; }; "paginationLoading": { "alias": "paginationLoading"; "required": false; }; }, { "cardButtonClick": "cardButtonClick"; "cardHeaderButtonClick": "cardHeaderButtonClick"; "linkDetails": "linkDetails"; "imageDetails": "imageDetails"; "onPageSizeChange": "onPageSizeChange"; "onPageChange": "onPageChange"; "cardDataChange": "cardDataChange"; }, never, never, true, never>;
240
264
  }
241
265
 
242
266
  declare class FormComponent implements OnInit, OnChanges, AfterViewInit {
@@ -272,17 +296,6 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit {
272
296
  static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vl-form", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; "form": { "alias": "form"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; }, { "formButtonClick": "formButtonClick"; "checkBoxChangeEvent": "checkBoxChangeEvent"; }, never, never, true, never>;
273
297
  }
274
298
 
275
- declare class NotificationService {
276
- toastr: ToastrService;
277
- constructor(toastr: ToastrService);
278
- success(message: string, time?: number): void;
279
- info(message: string, time?: number): void;
280
- warning(message: string, time?: number): void;
281
- error(error: string, time?: number, message?: string): void;
282
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
283
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
284
- }
285
-
286
299
  declare class GridComponent implements AfterViewInit {
287
300
  private requestService;
288
301
  private utilityService;