@haloduck/ui 2.0.27 → 2.0.29

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/index.d.ts CHANGED
@@ -558,11 +558,11 @@ interface TableColumn {
558
558
  interface TableRow extends TableRowProperty {
559
559
  [key: string]: any;
560
560
  }
561
- declare class TableComponent implements OnInit, AfterViewInit, OnDestroy {
561
+ declare class TableComponent implements OnInit, AfterViewInit {
562
562
  private readonly coreService;
563
- private readonly ngZone;
564
- private readonly destroyRef;
563
+ loadMoreRowRef?: ElementRef;
565
564
  tableLayout: 'fixed' | 'auto';
565
+ autoLoad: boolean;
566
566
  showHeader: boolean;
567
567
  useLoadMore: boolean;
568
568
  columns: TableColumn[];
@@ -579,12 +579,6 @@ declare class TableComponent implements OnInit, AfterViewInit, OnDestroy {
579
579
  onLoadMore: EventEmitter<any>;
580
580
  onRowClick: EventEmitter<TableRow>;
581
581
  onRowDblClick: EventEmitter<TableRow>;
582
- private loadMoreRow?;
583
- private dataRows?;
584
- private scrollContainer?;
585
- private intersectionObserver?;
586
- private scrollListenerTarget?;
587
- private didScrollSinceLastLoad;
588
582
  getColumnValue(row: TableRow, column: TableColumn): Observable<string>;
589
583
  getColumnValueRaw(row: TableRow, column: TableColumn): any;
590
584
  getColumnValueRawWithArrayKey(row: TableRow, column: TableColumn): any;
@@ -595,19 +589,14 @@ declare class TableComponent implements OnInit, AfterViewInit, OnDestroy {
595
589
  onUpdateSort(field: string | string[], direction: SearchParams.SortDirection): void;
596
590
  getSortDirection(field: string | string[]): Observable<string | undefined>;
597
591
  onLoadMoreClicked(): void;
592
+ onAutoLoadTriggered(): void;
598
593
  onRowClicked(row: TableRow): void;
599
594
  onRowDblClicked(row: TableRow): void;
600
595
  ngOnInit(): void;
601
596
  ngAfterViewInit(): void;
602
- ngOnDestroy(): void;
603
- private setupIntersectionObserver;
604
- private cleanupIntersectionObserver;
605
- private hasObservedOnce;
606
- private onIntersection;
607
- private onScroll;
608
597
  constructor();
609
598
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
610
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "haloduck-table", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "useLoadMore": { "alias": "useLoadMore"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isPaging": { "alias": "isPaging"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "expandedTemplate": { "alias": "expandedTemplate"; "required": false; }; "customTemplates": { "alias": "customTemplates"; "required": false; }; "lastEvaluatedKey": { "alias": "lastEvaluatedKey"; "required": false; }; }, { "onSortChange": "onSortChange"; "onLoadMore": "onLoadMore"; "onRowClick": "onRowClick"; "onRowDblClick": "onRowDblClick"; }, never, never, true, never>;
599
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "haloduck-table", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "useLoadMore": { "alias": "useLoadMore"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isPaging": { "alias": "isPaging"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "expandedTemplate": { "alias": "expandedTemplate"; "required": false; }; "customTemplates": { "alias": "customTemplates"; "required": false; }; "lastEvaluatedKey": { "alias": "lastEvaluatedKey"; "required": false; }; }, { "onSortChange": "onSortChange"; "onLoadMore": "onLoadMore"; "onRowClick": "onRowClick"; "onRowDblClick": "onRowDblClick"; }, never, never, true, never>;
611
600
  }
612
601
 
613
602
  declare class ToggleComponent implements ControlValueAccessor, AfterViewInit {
@@ -724,6 +713,28 @@ declare class GroupedDirective implements OnInit {
724
713
  static ɵdir: i0.ɵɵDirectiveDeclaration<GroupedDirective, "[haloduckGrouped]", never, { "haloduckGrouped": { "alias": "haloduckGrouped"; "required": false; }; "layoutClasses": { "alias": "layoutClasses"; "required": false; }; "bgClasses": { "alias": "bgClasses"; "required": false; }; "borderClasses": { "alias": "borderClasses"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelClasses": { "alias": "labelClasses"; "required": false; }; "labelOffset": { "alias": "labelOffset"; "required": false; }; }, {}, never, never, true, never>;
725
714
  }
726
715
 
716
+ declare class AutoLoadDirective implements OnInit, OnDestroy {
717
+ private readonly elementRef;
718
+ private readonly ngZone;
719
+ private observer?;
720
+ private isLoading;
721
+ private hasLoadedOnce;
722
+ autoLoadEnabled: boolean;
723
+ autoLoadThreshold: number;
724
+ autoLoadRootMargin: string;
725
+ autoLoadTrigger: EventEmitter<void>;
726
+ ngOnInit(): void;
727
+ ngOnDestroy(): void;
728
+ private initializeObserver;
729
+ private triggerLoad;
730
+ private temporarilyDisableObserver;
731
+ private disconnect;
732
+ setLoadingState(loading: boolean): void;
733
+ resetAutoLoad(): void;
734
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoLoadDirective, never>;
735
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutoLoadDirective, "[haloduckAutoLoad]", never, { "autoLoadEnabled": { "alias": "autoLoadEnabled"; "required": false; }; "autoLoadThreshold": { "alias": "autoLoadThreshold"; "required": false; }; "autoLoadRootMargin": { "alias": "autoLoadRootMargin"; "required": false; }; }, { "autoLoadTrigger": "autoLoadTrigger"; }, never, never, true, never>;
736
+ }
737
+
727
738
  declare class BreadcrumbComponent implements OnInit {
728
739
  private readonly breadcrumbService;
729
740
  listBreadcrumb: {
@@ -795,5 +806,5 @@ declare const provideHaloduckTransloco: () => {
795
806
  multi: boolean;
796
807
  }[];
797
808
 
798
- export { AuthenticateComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
809
+ export { AuthenticateComponent, AutoLoadDirective, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
799
810
  export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, GroupedConfig, Location, Notification, NotificationType, Option, TabItem, TableColumn, TableRow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haloduck/ui",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "HaloDuck UI Library - Angular",
5
5
  "keywords": [
6
6
  "angular",