@dereekb/dbx-web 12.1.5 → 12.1.7

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.
@@ -12,7 +12,7 @@ export type DbxWidgetDataPairWithSelection = DbxValueAsListItem<DbxWidgetDataPai
12
12
  export declare class DbxWidgetListGridComponent extends AbstractDbxListWrapperDirective<DbxWidgetDataPair> {
13
13
  constructor();
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxWidgetListGridComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxWidgetListGridComponent, "dbx-widget-grid", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxWidgetListGridComponent, "dbx-widget-grid", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]", "[end]"], true, never>;
16
16
  }
17
17
  export declare class DbxWidgetListGridViewComponent extends AbstractDbxListGridViewDirective<DbxWidgetDataPair> {
18
18
  readonly config: DbxValueListGridViewConfig<DbxWidgetDataPairWithSelection>;
@@ -85,6 +85,8 @@ export declare class DbxListComponent<T = unknown, V extends DbxListView<T> = Db
85
85
  readonly config: import("@angular/core").InputSignal<Maybe<DbxListConfig<T, V>>>;
86
86
  readonly disabled: import("@angular/core").InputSignal<Maybe<boolean>>;
87
87
  readonly selectionMode: import("@angular/core").InputSignal<Maybe<DbxListSelectionMode>>;
88
+ readonly hasMore: import("@angular/core").InputSignal<Maybe<boolean>>;
89
+ readonly hasMore$: Observable<Maybe<boolean>>;
88
90
  private readonly _internalContentSignal;
89
91
  readonly nativeElementSignal: import("@angular/core").Signal<HTMLElement | undefined>;
90
92
  private readonly _loadMoreTrigger;
@@ -96,6 +98,8 @@ export declare class DbxListComponent<T = unknown, V extends DbxListView<T> = Db
96
98
  private readonly _onSelectionChangeSub;
97
99
  readonly currentState$: Observable<Maybe<S>>;
98
100
  readonly context: import("@dereekb/rxjs").MutableListLoadingStateContext<T, S>;
101
+ readonly hasMoreFromCurrentState$: Observable<Maybe<boolean>>;
102
+ readonly isEnd$: Observable<Maybe<boolean>>;
99
103
  readonly isEmpty$: Observable<boolean>;
100
104
  readonly isEmptyLoading$: Observable<boolean>;
101
105
  readonly isEmptyAndNotLoading$: Observable<boolean>;
@@ -116,6 +120,7 @@ export declare class DbxListComponent<T = unknown, V extends DbxListView<T> = Db
116
120
  readonly injectedComponentConfigSignal: import("@angular/core").Signal<Maybe<DbxInjectionComponentConfig<V>>>;
117
121
  readonly isEmptyAndNotLoadingSignal: import("@angular/core").Signal<boolean | undefined>;
118
122
  readonly isEmptyLoadingSignal: import("@angular/core").Signal<boolean | undefined>;
123
+ readonly isEndSignal: import("@angular/core").Signal<Maybe<boolean>>;
119
124
  ngOnDestroy(): void;
120
125
  getScrollPositionRelativeToBottom(): number;
121
126
  jumpToBottom(): void;
@@ -125,5 +130,5 @@ export declare class DbxListComponent<T = unknown, V extends DbxListView<T> = Db
125
130
  loadMore(): void;
126
131
  setInternalContent(content: DbxListInternalContentDirective): void;
127
132
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxListComponent<any, any, any>, never>;
128
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxListComponent<any, any, any>, "dbx-list", never, { "padded": { "alias": "padded"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; }, { "contentScrolled": "contentScrolled"; }, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
133
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxListComponent<any, any, any>, "dbx-list", never, { "padded": { "alias": "padded"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "hasMore": { "alias": "hasMore"; "required": false; "isSignal": true; }; }, { "contentScrolled": "contentScrolled"; }, never, ["[top]", "[bottom]", "[end]", "[empty]", "[emptyLoading]"], true, never>;
129
134
  }
@@ -7,7 +7,7 @@ import { type Maybe } from '@dereekb/util';
7
7
  import { DbxListViewWrapper } from './list.wrapper';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "./list.component";
10
- export declare const DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE = "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n </dbx-list>";
10
+ export declare const DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE = "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>";
11
11
  export declare class DbxListWrapperComponentImportsModule {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxListWrapperComponentImportsModule, never>;
13
13
  static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListWrapperComponentImportsModule, never, [typeof i1.DbxListComponent], [typeof i1.DbxListComponent]>;
@@ -19,6 +19,7 @@ export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxLi
19
19
  private readonly _stateOverride;
20
20
  private readonly _selectionModeOverride;
21
21
  private readonly _selectionModeOverrideSignal;
22
+ readonly hasMore: import("@angular/core").InputSignal<Maybe<boolean>>;
22
23
  readonly clickItem: import("@angular/core").OutputEmitterRef<T>;
23
24
  readonly loadMore: import("@angular/core").OutputEmitterRef<void>;
24
25
  readonly disabled: import("@angular/core").InputSignal<Maybe<boolean>>;
@@ -38,7 +39,7 @@ export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxLi
38
39
  setSelectionMode(selectionMode: MaybeObservableOrValue<DbxListSelectionMode>): void;
39
40
  protected _buildListConfig(config: C): DbxListConfig<T, V>;
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never>;
41
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "deprecatedInputState$": { "alias": "state$"; "required": false; "isSignal": true; }; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never, never, false, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "hasMore": { "alias": "hasMore"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "deprecatedInputState$": { "alias": "state$"; "required": false; "isSignal": true; }; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never, never, false, never>;
42
43
  }
43
44
  export type DbxSelectionListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> = Omit<DbxListWrapperConfig<T, V>, 'onSelectionChange'>;
44
45
  export declare abstract class AbstractDbxSelectionListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxSelectionListWrapperConfig<T, V> = DbxSelectionListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> extends AbstractDbxListWrapperDirective<T, V, C, S> {
@@ -50,4 +51,4 @@ export declare abstract class AbstractDbxSelectionListWrapperDirective<T, V exte
50
51
  /**
51
52
  * @deprecated update components to use DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION instead of just referencing only the template and DbxListWrapperComponentImportsModule.
52
53
  */
53
- export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n </dbx-list>";
54
+ export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "12.1.5",
3
+ "version": "12.1.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",