@dereekb/dbx-web 4.1.0 → 5.0.0

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.
Files changed (178) hide show
  1. package/LICENSE +21 -0
  2. package/esm2020/lib/action/key.trigger.directive.mjs +1 -1
  3. package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +5 -6
  4. package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +1 -1
  5. package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +1 -1
  6. package/esm2020/lib/action/snackbar/action.snackbar.mjs +1 -1
  7. package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +1 -1
  8. package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +1 -1
  9. package/esm2020/lib/action/transition/transition.safety.directive.mjs +3 -4
  10. package/esm2020/lib/button/button.component.mjs +7 -7
  11. package/esm2020/lib/button/button.spacer.component.mjs +3 -3
  12. package/esm2020/lib/button/progress/base.progress.button.directive.mjs +5 -6
  13. package/esm2020/lib/button/progress/button.progress.config.mjs +1 -1
  14. package/esm2020/lib/error/error.action.directive.mjs +1 -1
  15. package/esm2020/lib/error/error.api.mjs +16 -12
  16. package/esm2020/lib/error/error.component.mjs +3 -3
  17. package/esm2020/lib/error/state.mjs +9 -5
  18. package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +1 -1
  19. package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +1 -1
  20. package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +3 -3
  21. package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +1 -1
  22. package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +1 -1
  23. package/esm2020/lib/interaction/filter/filter.popover.component.mjs +1 -1
  24. package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +1 -1
  25. package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +4 -4
  26. package/esm2020/lib/interaction/popover/popover.action.directive.mjs +2 -3
  27. package/esm2020/lib/interaction/popover/popover.component.mjs +11 -11
  28. package/esm2020/lib/interaction/popover/popover.content.component.mjs +2 -3
  29. package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +3 -3
  30. package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +2 -2
  31. package/esm2020/lib/interaction/popover/popover.mjs +1 -1
  32. package/esm2020/lib/interaction/popover/popover.module.mjs +1 -1
  33. package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +1 -1
  34. package/esm2020/lib/interaction/popup/popup.component.mjs +3 -4
  35. package/esm2020/lib/interaction/popup/popup.content.component.mjs +2 -2
  36. package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +3 -3
  37. package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +2 -2
  38. package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +2 -2
  39. package/esm2020/lib/interaction/popup/popup.mjs +1 -1
  40. package/esm2020/lib/interaction/popup/popup.module.mjs +1 -1
  41. package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +2 -2
  42. package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +1 -1
  43. package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +1 -1
  44. package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +4 -4
  45. package/esm2020/lib/interaction/prompt/prompt.confirm.mjs +2 -2
  46. package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +1 -1
  47. package/esm2020/lib/keypress/keydown.listener.directive.mjs +2 -3
  48. package/esm2020/lib/layout/bar/bar.directive.mjs +3 -3
  49. package/esm2020/lib/layout/bar/bar.header.component.mjs +1 -1
  50. package/esm2020/lib/layout/block/two.block.component.mjs +1 -1
  51. package/esm2020/lib/layout/card/card.box.container.component.mjs +1 -1
  52. package/esm2020/lib/layout/column/two/two.column.component.mjs +3 -5
  53. package/esm2020/lib/layout/column/two/two.column.context.directive.mjs +5 -6
  54. package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +2 -2
  55. package/esm2020/lib/layout/column/two/two.column.right.component.mjs +3 -4
  56. package/esm2020/lib/layout/column/two/two.column.store.mjs +4 -5
  57. package/esm2020/lib/layout/compact/compact.mjs +2 -3
  58. package/esm2020/lib/layout/compact/compact.store.mjs +2 -2
  59. package/esm2020/lib/layout/content/content.border.directive.mjs +3 -3
  60. package/esm2020/lib/layout/content/content.box.directive.mjs +3 -3
  61. package/esm2020/lib/layout/content/content.container.directive.mjs +3 -3
  62. package/esm2020/lib/layout/content/content.directive.mjs +3 -3
  63. package/esm2020/lib/layout/content/content.elevate.directive.mjs +3 -3
  64. package/esm2020/lib/layout/content/content.page.directive.mjs +3 -3
  65. package/esm2020/lib/layout/flex/flex.group.directive.mjs +1 -1
  66. package/esm2020/lib/layout/list/list.component.mjs +15 -11
  67. package/esm2020/lib/layout/list/list.content.empty.component.mjs +1 -1
  68. package/esm2020/lib/layout/list/list.directive.mjs +1 -1
  69. package/esm2020/lib/layout/list/list.view.directive.mjs +3 -4
  70. package/esm2020/lib/layout/list/list.view.mjs +3 -2
  71. package/esm2020/lib/layout/list/list.view.value.component.mjs +1 -1
  72. package/esm2020/lib/layout/list/list.view.value.directive.mjs +1 -1
  73. package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +1 -1
  74. package/esm2020/lib/layout/list/list.view.value.mjs +2 -2
  75. package/esm2020/lib/layout/list/list.view.value.modifier.directive.mjs +5 -5
  76. package/esm2020/lib/layout/list/list.view.value.modifier.mjs +2 -2
  77. package/esm2020/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +2 -3
  78. package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +1 -1
  79. package/esm2020/lib/layout/list/list.wrapper.mjs +2 -2
  80. package/esm2020/lib/layout/section/section.component.mjs +1 -1
  81. package/esm2020/lib/layout/section/section.header.component.mjs +3 -3
  82. package/esm2020/lib/layout/section/section.intro.component.mjs +1 -1
  83. package/esm2020/lib/layout/section/section.page.component.mjs +2 -2
  84. package/esm2020/lib/layout/section/subsection.component.mjs +2 -2
  85. package/esm2020/lib/layout/step/step.component.mjs +1 -1
  86. package/esm2020/lib/layout/style/spacer.directive.mjs +3 -3
  87. package/esm2020/lib/layout/style/style.body.directive.mjs +1 -1
  88. package/esm2020/lib/layout/style/style.directive.mjs +3 -3
  89. package/esm2020/lib/layout/style/style.service.mjs +2 -2
  90. package/esm2020/lib/layout/style/style.set.directive.mjs +2 -3
  91. package/esm2020/lib/layout/text/icon.spacer.component.mjs +3 -3
  92. package/esm2020/lib/layout/text/linkify.component.mjs +2 -3
  93. package/esm2020/lib/layout/text/text.chips.component.mjs +1 -1
  94. package/esm2020/lib/layout/text/warn.component.mjs +1 -1
  95. package/esm2020/lib/loading/basic-loading.component.mjs +2 -3
  96. package/esm2020/lib/loading/loading-progress.component.mjs +2 -2
  97. package/esm2020/lib/router/layout/anchor/anchor.component.mjs +2 -3
  98. package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +2 -2
  99. package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +2 -2
  100. package/esm2020/lib/router/layout/navbar/navbar.component.mjs +3 -3
  101. package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +2 -2
  102. package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +1 -1
  103. package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +4 -5
  104. package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +9 -3
  105. package/esm2020/lib/screen/screen.service.mjs +3 -4
  106. package/fesm2015/dereekb-dbx-web.mjs +178 -162
  107. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  108. package/fesm2020/dereekb-dbx-web.mjs +178 -162
  109. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  110. package/lib/action/key.trigger.directive.d.ts +1 -1
  111. package/lib/action/snackbar/action.snackbar.component.d.ts +3 -4
  112. package/lib/action/snackbar/action.snackbar.d.ts +5 -5
  113. package/lib/action/snackbar/action.snackbar.directive.d.ts +6 -6
  114. package/lib/action/snackbar/action.snackbar.generator.d.ts +7 -7
  115. package/lib/action/snackbar/action.snackbar.service.d.ts +3 -3
  116. package/lib/button/button.spacer.component.d.ts +1 -1
  117. package/lib/button/progress/base.progress.button.directive.d.ts +2 -3
  118. package/lib/button/progress/button.progress.config.d.ts +1 -1
  119. package/lib/error/error.api.d.ts +2 -2
  120. package/lib/error/error.component.d.ts +2 -3
  121. package/lib/error/state.d.ts +3 -3
  122. package/lib/interaction/dialog/abstract.dialog.directive.d.ts +1 -1
  123. package/lib/interaction/dialog/dialog.action.directive.d.ts +4 -4
  124. package/lib/interaction/dialog/dialog.content.component.d.ts +1 -1
  125. package/lib/interaction/filter/filter.popover.button.component.d.ts +1 -1
  126. package/lib/interaction/filter/filter.popover.button.directive.d.ts +1 -2
  127. package/lib/interaction/filter/filter.popover.component.d.ts +6 -6
  128. package/lib/interaction/popover/abstract.popover.directive.d.ts +1 -1
  129. package/lib/interaction/popover/abstract.popover.ref.directive.d.ts +3 -4
  130. package/lib/interaction/popover/popover.action.directive.d.ts +4 -4
  131. package/lib/interaction/popover/popover.component.d.ts +2 -2
  132. package/lib/interaction/popover/popover.controls.directive.d.ts +1 -1
  133. package/lib/interaction/popover/popover.coordinator.service.d.ts +1 -1
  134. package/lib/interaction/popover/popover.d.ts +1 -1
  135. package/lib/interaction/popup/abstract.popup.directive.d.ts +1 -1
  136. package/lib/interaction/popup/popup.component.d.ts +1 -1
  137. package/lib/interaction/popup/popup.coordinator.service.d.ts +1 -2
  138. package/lib/interaction/popup/popup.d.ts +1 -1
  139. package/lib/interaction/prompt/prompt.confirm.d.ts +1 -1
  140. package/lib/interaction/prompt/prompt.confirm.directive.d.ts +3 -3
  141. package/lib/layout/bar/bar.directive.d.ts +1 -1
  142. package/lib/layout/column/two/two.column.component.d.ts +1 -2
  143. package/lib/layout/column/two/two.column.context.directive.d.ts +1 -2
  144. package/lib/layout/column/two/two.column.full.left.directive.d.ts +2 -3
  145. package/lib/layout/column/two/two.column.store.d.ts +3 -3
  146. package/lib/layout/content/content.border.directive.d.ts +1 -1
  147. package/lib/layout/content/content.box.directive.d.ts +1 -1
  148. package/lib/layout/content/content.container.directive.d.ts +1 -1
  149. package/lib/layout/content/content.directive.d.ts +1 -1
  150. package/lib/layout/content/content.elevate.directive.d.ts +1 -1
  151. package/lib/layout/content/content.page.directive.d.ts +1 -1
  152. package/lib/layout/flex/flex.group.directive.d.ts +2 -2
  153. package/lib/layout/list/list.component.d.ts +5 -5
  154. package/lib/layout/list/list.directive.d.ts +3 -5
  155. package/lib/layout/list/list.view.d.ts +1 -1
  156. package/lib/layout/list/list.view.directive.d.ts +0 -1
  157. package/lib/layout/list/list.view.value.component.d.ts +2 -2
  158. package/lib/layout/list/list.view.value.d.ts +7 -7
  159. package/lib/layout/list/list.view.value.directive.d.ts +1 -1
  160. package/lib/layout/list/list.view.value.modifier.d.ts +2 -2
  161. package/lib/layout/list/list.view.value.modifier.directive.d.ts +0 -1
  162. package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +1 -1
  163. package/lib/layout/list/list.view.value.selection.component.d.ts +2 -2
  164. package/lib/layout/list/list.wrapper.d.ts +2 -2
  165. package/lib/layout/section/section.header.component.d.ts +1 -1
  166. package/lib/layout/section/section.intro.component.d.ts +1 -2
  167. package/lib/layout/style/spacer.directive.d.ts +1 -1
  168. package/lib/layout/style/style.directive.d.ts +1 -1
  169. package/lib/layout/style/style.service.d.ts +1 -2
  170. package/lib/layout/style/style.set.directive.d.ts +1 -1
  171. package/lib/layout/text/icon.spacer.component.d.ts +1 -1
  172. package/lib/layout/text/text.chips.component.d.ts +2 -2
  173. package/lib/loading/basic-loading.component.d.ts +1 -2
  174. package/lib/loading/loading.action.directive.d.ts +1 -1
  175. package/lib/router/layout/anchor/anchor.component.d.ts +3 -3
  176. package/lib/router/layout/anchor/anchor.segue.directive.d.ts +2 -2
  177. package/lib/router/provider/uirouter/anchor.component.d.ts +4 -0
  178. package/package.json +6 -5
@@ -8,5 +8,5 @@ export declare class DbxContentContainerDirective {
8
8
  grow: DbxContentContainerWidth;
9
9
  padding: DbxContentContainerPadding;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentContainerDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentContainerDirective, "dbx-content-container,[dbx-content-container],.dbx-content-container", never, { "grow": "grow"; "padding": "padding"; }, {}, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentContainerDirective, "dbx-content-container,[dbxContentContainer],.dbx-content-container", never, { "grow": "grow"; "padding": "padding"; }, {}, never>;
12
12
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  */
5
5
  export declare class DbxContentDirective {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentDirective, "dbx-content,[dbx-content]", never, {}, {}, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentDirective, "dbx-content,[dbxContent]", never, {}, {}, never>;
8
8
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  */
5
5
  export declare class DbxContentElevateDirective {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentElevateDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentElevateDirective, "dbx-content-elevate,[dbx-content-elevate]", never, {}, {}, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentElevateDirective, "dbx-content-elevate,[dbxContentElevate]", never, {}, {}, never>;
8
8
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  */
5
5
  export declare class DbxContentPageDirective {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentPageDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentPageDirective, "dbx-content-page,[dbx-content-page]", never, {}, {}, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentPageDirective, "dbx-content-page,[dbxContentPage]", never, {}, {}, never>;
8
8
  }
@@ -1,13 +1,13 @@
1
1
  import { ScreenMediaWidthType } from '../../screen/screen';
2
2
  import { DbxScreenMediaService } from '../../screen/screen.service';
3
- import { ChangeDetectorRef, OnInit } from '@angular/core';
3
+ import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
4
4
  import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
5
5
  import { Maybe } from '@dereekb/util';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Used to declare a dbxFlexGroup.
9
9
  */
10
- export declare class DbxFlexGroupDirective extends AbstractSubscriptionDirective implements OnInit {
10
+ export declare class DbxFlexGroupDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
11
11
  private readonly _dbxScreenMediaService;
12
12
  readonly cdRef: ChangeDetectorRef;
13
13
  content: boolean;
@@ -18,7 +18,7 @@ export declare type DbxListLoadMoreHandler = () => Observable<void> | void;
18
18
  /**
19
19
  * DbxListComponent configuration.
20
20
  */
21
- export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T>> extends DbxInjectionComponentConfig<V> {
21
+ export interface DbxListConfig<T = unknown, V extends DbxListView<T> = DbxListView<T>> extends DbxInjectionComponentConfig<V> {
22
22
  /**
23
23
  * Whether or not to hide the list content when it is an empty list.
24
24
  */
@@ -57,7 +57,7 @@ export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T
57
57
  *
58
58
  * This component is generally wrapped by another component that provides this one configuration.
59
59
  */
60
- export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxListView<T>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnDestroy {
60
+ export declare class DbxListComponent<T = unknown, V extends DbxListView<T> = DbxListView<T>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnDestroy {
61
61
  readonly cdRef: ChangeDetectorRef;
62
62
  readonly DEFAULT_SCROLL_DISTANCE = 1.5;
63
63
  readonly DEFAULT_THROTTLE_SCROLL = 50;
@@ -116,9 +116,9 @@ export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxLis
116
116
  export declare class DbxListInternalContentDirective {
117
117
  private readonly parent;
118
118
  readonly elementRef: ElementRef;
119
- hide: Maybe<Boolean>;
119
+ hide: Maybe<boolean>;
120
120
  constructor(parent: DbxListComponent, elementRef: ElementRef);
121
- onScrollEvent($event: any): void;
121
+ onScrollEvent($event: Event): void;
122
122
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxListInternalContentDirective, never>;
123
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxListInternalContentDirective, "[dbx-list-internal-content]", never, { "hide": "hide"; }, {}, never>;
123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxListInternalContentDirective, "[dbxListInternalContent]", never, { "hide": "hide"; }, {}, never>;
124
124
  }
@@ -8,8 +8,7 @@ import { DbxListViewWrapper } from './list.wrapper';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare const DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE = "\n<dbx-list [config]=\"config\">\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</dbx-list>\n";
10
10
  export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n<dbx-list [state$]=\"state$\" [config]=\"config$ | async\" [disabled]=\"disabled\" [selectionMode]=\"selectionMode\">\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</dbx-list>\n";
11
- export interface DbxListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListConfig<T, V>, 'onClick' | 'loadMore'> {
12
- }
11
+ export declare type DbxListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> = Omit<DbxListConfig<T, V>, 'onClick' | 'loadMore'>;
13
12
  export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxListWrapperConfig<T, V> = DbxListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnInit, OnDestroy, DbxListViewWrapper<T, S> {
14
13
  readonly initConfig: ObservableOrValue<C>;
15
14
  private readonly _init;
@@ -26,9 +25,8 @@ export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxLi
26
25
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never>;
27
26
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "disabled": "disabled"; "selectionMode": "selectionMode"; "state$": "state$"; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never>;
28
27
  }
29
- export interface DbxSelectionListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListWrapperConfig<T, V>, 'onSelectionChange'> {
30
- }
31
- 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> {
28
+ export declare type DbxSelectionListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> = Omit<DbxListWrapperConfig<T, V>, 'onSelectionChange'>;
29
+ 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> implements OnDestroy {
32
30
  selectionChange: EventEmitter<ListSelectionState<T>>;
33
31
  ngOnDestroy(): void;
34
32
  protected _buildListConfig(config: C): DbxListConfig<T, V>;
@@ -52,4 +52,4 @@ export declare abstract class DbxListView<T, S extends ListLoadingState<T> = Lis
52
52
  */
53
53
  abstract setSelectionMode(selectionMode: Maybe<DbxListSelectionMode>): void;
54
54
  }
55
- export declare function ProvideDbxListView<V extends DbxListView<any>>(sourceType: Type<V>): Provider[];
55
+ export declare function provideDbxListView<V extends DbxListView<any>>(sourceType: Type<V>): Provider[];
@@ -15,7 +15,6 @@ export declare abstract class AbstractDbxListViewDirective<T> implements DbxList
15
15
  readonly disabled$: Observable<boolean>;
16
16
  readonly selectionMode$: Observable<Maybe<DbxListSelectionMode>>;
17
17
  clickValue: EventEmitter<T>;
18
- constructor();
19
18
  set valueArray(values: Maybe<T[]>);
20
19
  set values(values: Maybe<Observable<T[]>>);
21
20
  ngOnDestroy(): void;
@@ -3,13 +3,13 @@ import { AbstractDbxValueListViewDirective } from './list.view.value.directive';
3
3
  import { DbxListView } from './list.view';
4
4
  import { Maybe } from '@dereekb/util';
5
5
  import * as i0 from "@angular/core";
6
- export interface DbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewConfig<T, I, V> {
6
+ export interface DbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends AbstractDbxValueListViewConfig<T, I, V> {
7
7
  emitAllClicks?: boolean;
8
8
  }
9
9
  /**
10
10
  * Renders a list view using input configuration. Requires a parent DbxListView.
11
11
  */
12
- export declare class DbxValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any, C extends DbxValueListViewConfig<T, I, V> = DbxValueListViewConfig<T, I, V>> extends AbstractDbxValueListViewDirective<T, I, V, C> {
12
+ export declare class DbxValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown, C extends DbxValueListViewConfig<T, I, V> = DbxValueListViewConfig<T, I, V>> extends AbstractDbxValueListViewDirective<T, I, V, C> {
13
13
  readonly emitAllClicks$: import("rxjs").Observable<boolean | undefined>;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxValueListViewComponent<any, any, any, any>, never>;
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxValueListViewComponent<any, any, any, any>, "dbx-list-view", never, {}, {}, never, never>;
@@ -2,7 +2,7 @@ import { InjectionToken, Provider, Type } from "@angular/core";
2
2
  import { ClickableAnchor, DbxInjectionComponentConfig } from "@dereekb/dbx-core";
3
3
  import { Observable } from "rxjs";
4
4
  import { Maybe } from '@dereekb/util';
5
- export declare const DBX_VALUE_LIST_VIEW_ITEM: InjectionToken<any>;
5
+ export declare const DBX_VALUE_LIST_VIEW_ITEM: InjectionToken<unknown>;
6
6
  export interface DbxValueListItem<T> {
7
7
  itemValue: T;
8
8
  icon?: string;
@@ -15,14 +15,14 @@ export interface DbxValueListItem<T> {
15
15
  * Special type used with values that contain all the items of DbxValueListItem internally.
16
16
  */
17
17
  export declare type DbxValueAsListItem<T> = T & Omit<DbxValueListItem<DbxValueListItem<T>>, 'itemValue'>;
18
- export interface AbstractDbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends DbxInjectionComponentConfig<V> {
18
+ export interface AbstractDbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends DbxInjectionComponentConfig<V> {
19
19
  mapValuesToItemValues?(values: T[]): Observable<I[]>;
20
20
  }
21
21
  export declare const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES: <T, I extends DbxValueListItem<T>>(itemValues: T[]) => Observable<I[]>;
22
- export declare type DbxValueListItemConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> = I & {
23
- config: DbxInjectionComponentConfig;
22
+ export declare type DbxValueListItemConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> = I & {
23
+ config: DbxInjectionComponentConfig<V>;
24
24
  };
25
- export declare function mapValuesToValuesListItemConfigObs<T, I extends DbxValueListItem<T>>(listViewConfig: AbstractDbxValueListViewConfig<T, I>, itemValues: T[]): Observable<DbxValueListItemConfig<T, I>[]>;
25
+ export declare function mapValuesToValuesListItemConfigObs<T, I extends DbxValueListItem<T>, V = unknown>(listViewConfig: AbstractDbxValueListViewConfig<T, I, V>, itemValues: T[]): Observable<DbxValueListItemConfig<T, I, V>[]>;
26
26
  /**
27
27
  * Adds config to the input value list items.
28
28
  *
@@ -30,8 +30,8 @@ export declare function mapValuesToValuesListItemConfigObs<T, I extends DbxValue
30
30
  * @param listItems
31
31
  * @returns
32
32
  */
33
- export declare function addConfigToValueListItems<T, I extends DbxValueListItem<T>>(listViewConfig: AbstractDbxValueListViewConfig<T, I>, listItems: I[]): DbxValueListItemConfig<T, I>[];
33
+ export declare function addConfigToValueListItems<T, I extends DbxValueListItem<T>, V = unknown>(listViewConfig: AbstractDbxValueListViewConfig<T, I, V>, listItems: I[]): DbxValueListItemConfig<T, I, V>[];
34
34
  export declare abstract class DbxValueListView<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> {
35
35
  readonly abstract items$: Observable<I[]>;
36
36
  }
37
- export declare function ProvideDbxValueListView<V extends DbxValueListView<any>>(sourceType: Type<V>): Provider[];
37
+ export declare function provideDbxValueListView<V extends DbxValueListView<unknown>>(sourceType: Type<V>): Provider[];
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Abstract list directive that takes in items and a AbstractDbxValueItemListViewConfig configuration.
10
10
  */
11
- export declare abstract class AbstractDbxValueListViewDirective<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any, C extends AbstractDbxValueListViewConfig<T, I, V> = AbstractDbxValueListViewConfig<T, I, V>> implements DbxValueListView<T, I>, OnDestroy {
11
+ export declare abstract class AbstractDbxValueListViewDirective<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown, C extends AbstractDbxValueListViewConfig<T, I, V> = AbstractDbxValueListViewConfig<T, I, V>> implements DbxValueListView<T, I>, OnDestroy {
12
12
  readonly dbxListView: DbxListView<T>;
13
13
  readonly dbxValueListViewModifier: DbxValueListItemModifier<T, I>;
14
14
  private _config;
@@ -2,11 +2,11 @@ import { Provider, Type } from "@angular/core";
2
2
  import { ArrayOrValue, Modifier, ModifierFunction, ModifierMap } from "@dereekb/util";
3
3
  import { Observable } from "rxjs";
4
4
  import { DbxValueListItem } from "./list.view.value";
5
- export declare abstract class DbxValueListItemModifier<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> {
5
+ export declare abstract class DbxValueListItemModifier<T = unknown, I extends DbxValueListItem<T> = DbxValueListItem<T>> {
6
6
  readonly abstract modifiers$: Observable<ModifierMap<I>>;
7
7
  abstract addModifiers(modifiers: ArrayOrValue<Modifier<I>>): void;
8
8
  abstract removeModifiers(modifiers: ArrayOrValue<Modifier<I>>): void;
9
9
  }
10
- export declare function ProvideDbxValueListViewModifier<V extends DbxValueListItemModifier<any>>(sourceType: Type<V>): Provider[];
10
+ export declare function provideDbxValueListViewModifier<V extends DbxValueListItemModifier>(sourceType: Type<V>): Provider[];
11
11
  export declare type ListItemModifier<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> = Modifier<I>;
12
12
  export declare function listItemModifier<T, I extends DbxValueListItem<T> = DbxValueListItem<T>>(key: string, modify: ModifierFunction<I>): ListItemModifier<T, I>;
@@ -11,7 +11,6 @@ export declare class DbxValueListItemModifierDirective<T, I extends DbxValueList
11
11
  private _modifiers;
12
12
  private _inputModifiers;
13
13
  readonly modifiers$: Observable<Map<string, Modifier<I>>>;
14
- constructor();
15
14
  ngOnDestroy(): void;
16
15
  addModifiers(modifiers: ArrayOrValue<Modifier<I>>): void;
17
16
  removeModifiers(modifiers: ArrayOrValue<Modifier<I>>): void;
@@ -6,7 +6,7 @@ import { AbstractDbxValueListItemModifierDirective } from "./list.view.value.mod
6
6
  import * as i0 from "@angular/core";
7
7
  export declare type DisableRippleForValueFunction<T> = (item: DbxValueListItem<T>) => boolean;
8
8
  export declare const DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY = "disable_ripple_anchor";
9
- export declare const DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION: DisableRippleForValueFunction<any>;
9
+ export declare const DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION: DisableRippleForValueFunction<unknown>;
10
10
  export declare class DbxListItemDisableRippleModifierDirective<T> extends AbstractDbxValueListItemModifierDirective<T> implements OnDestroy {
11
11
  private _disableRippleForItem;
12
12
  readonly modifiers$: Observable<Maybe<ArrayOrValue<Modifier<DbxValueListItem<T>>>>>;
@@ -6,13 +6,13 @@ import { AbstractDbxValueListViewDirective } from './list.view.value.directive';
6
6
  import { Maybe } from '@dereekb/util';
7
7
  import { DbxValueListItemViewComponent } from './list.view.value.component';
8
8
  import * as i0 from "@angular/core";
9
- export interface DbxSelectionValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewConfig<T, I, V> {
9
+ export interface DbxSelectionValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends AbstractDbxValueListViewConfig<T, I, V> {
10
10
  multiple?: boolean;
11
11
  }
12
12
  /**
13
13
  * Renders a selection list view using input configuration. Requires a parent DbxListView.
14
14
  */
15
- export declare class DbxSelectionValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewDirective<T, I, V, DbxSelectionValueListViewConfig<T, I, V>> {
15
+ export declare class DbxSelectionValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends AbstractDbxValueListViewDirective<T, I, V, DbxSelectionValueListViewConfig<T, I, V>> {
16
16
  readonly selectionMode$: Observable<DbxListSelectionMode>;
17
17
  readonly multiple$: Observable<boolean>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxSelectionValueListViewComponent<any, any, any>, never>;
@@ -5,7 +5,7 @@ import { Maybe } from '@dereekb/util';
5
5
  /**
6
6
  * Common interface for views that may wrap a DbxListView, and pass values through to it.
7
7
  */
8
- export declare abstract class DbxListViewWrapper<T, S extends ListLoadingState<T> = ListLoadingState<T>> {
8
+ export declare abstract class DbxListViewWrapper<T = unknown, S extends ListLoadingState<T> = ListLoadingState<T>> {
9
9
  state$?: Maybe<Observable<S>>;
10
10
  }
11
- export declare function ProvideDbxListViewWrapper<V extends DbxListViewWrapper<any>>(sourceType: Type<V>): Provider[];
11
+ export declare function provideDbxListViewWrapper<V extends DbxListViewWrapper>(sourceType: Type<V>): Provider[];
@@ -11,5 +11,5 @@ export declare class DbxSectionHeaderComponent {
11
11
  hint?: Maybe<string>;
12
12
  get showTitle(): boolean;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxSectionHeaderComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxSectionHeaderComponent, ".dbx-section-header", never, { "h": "h"; "header": "header"; "icon": "icon"; "hint": "hint"; }, {}, never, ["*"]>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxSectionHeaderComponent, "dbx-section-header,.dbx-section-header", never, { "h": "h"; "header": "header"; "icon": "icon"; "hint": "hint"; }, {}, never, ["*"]>;
15
15
  }
@@ -1,5 +1,4 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
1
+ import { OnDestroy, EventEmitter } from '@angular/core';
3
2
  import { DbxSectionComponent } from './section.component';
4
3
  import * as i0 from "@angular/core";
5
4
  /**
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DbxSpacerDirective {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxSpacerDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxSpacerDirective, "dbx-spacer, [dbx-spacer]", never, {}, {}, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxSpacerDirective, "dbx-spacer, [dbxSpacer]", never, {}, {}, never>;
5
5
  }
@@ -11,5 +11,5 @@ export declare class DbxStyleDirective extends AbstractSubscriptionDirective {
11
11
  style: string;
12
12
  constructor(styleService: DbxStyleService, cdRef: ChangeDetectorRef);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxStyleDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxStyleDirective, "dbx-style, [dbx-style], .dbx-style", never, {}, {}, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxStyleDirective, "dbx-style, [dbxStyle], .dbx-style", never, {}, {}, never>;
15
15
  }
@@ -1,7 +1,6 @@
1
- import { Destroyable } from '@dereekb/util';
1
+ import { Destroyable, Maybe } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
3
  import { InjectionToken } from '@angular/core';
4
- import { Maybe } from '@dereekb/util';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare const DBX_STYLE_DEFAULT_CONFIG_TOKEN: InjectionToken<unknown>;
7
6
  export interface DbxStyleConfig {
@@ -1,6 +1,6 @@
1
+ import { Maybe } from '@dereekb/util';
1
2
  import { Observable } from 'rxjs';
2
3
  import { OnDestroy, ChangeDetectorRef, OnInit } from '@angular/core';
3
- import { Maybe } from '@dereekb/util';
4
4
  import { DbxStyleConfig, DbxStyleService } from './style.service';
5
5
  import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
6
6
  import * as i0 from "@angular/core";
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  */
5
5
  export declare class DbxIconSpacerDirective {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxIconSpacerDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxIconSpacerDirective, "dbx-icon-spacer,dbxIconSpacer", never, {}, {}, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxIconSpacerDirective, "dbx-icon-spacer,[dbxIconSpacer]", never, {}, {}, never>;
8
8
  }
@@ -1,12 +1,12 @@
1
1
  import { Maybe } from '@dereekb/util';
2
2
  import * as i0 from "@angular/core";
3
- export interface TextChip<T = any> {
3
+ export interface TextChip<T = unknown> {
4
4
  text: string;
5
5
  tooltip?: string;
6
6
  color?: 'primary' | 'accent';
7
7
  data?: T;
8
8
  }
9
- export declare class DbxTextChipsComponent<T = any> {
9
+ export declare class DbxTextChipsComponent<T = unknown> {
10
10
  chips?: Maybe<TextChip<T>[]>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxTextChipsComponent<any>, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxTextChipsComponent<any>, "dbx-text-chips", never, { "chips": "chips"; }, {}, never, never>;
@@ -1,5 +1,4 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { ElementRef } from '@angular/core';
1
+ import { OnDestroy, ElementRef } from '@angular/core';
3
2
  import { ThemePalette } from '@angular/material/core';
4
3
  import { ProgressBarMode } from '@angular/material/progress-bar';
5
4
  import { ErrorInput, Maybe } from '@dereekb/util';
@@ -11,7 +11,7 @@ export declare class DbxActionLoadingContextDirective implements OnInit, OnDestr
11
11
  readonly source: DbxActionContextStoreSourceInstance;
12
12
  private _context;
13
13
  constructor(loadingComponent: DbxLoadingComponent, source: DbxActionContextStoreSourceInstance);
14
- get context(): LoadingStateContextInstance<any, import("@dereekb/rxjs").LoadingState<any>>;
14
+ get context(): LoadingStateContextInstance<unknown, import("@dereekb/rxjs").LoadingState<unknown>>;
15
15
  ngOnInit(): void;
16
16
  ngOnDestroy(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionLoadingContextDirective, [{ host: true; }, null]>;
@@ -9,10 +9,10 @@ import * as i0 from "@angular/core";
9
9
  export declare class DbxAnchorComponent extends AbstractDbxAnchorDirective implements OnDestroy {
10
10
  private readonly dbNgxRouterWebProviderConfig;
11
11
  private _templateRef;
12
- readonly templateRef$: import("rxjs").Observable<Maybe<TemplateRef<any>>>;
12
+ readonly templateRef$: import("rxjs").Observable<Maybe<TemplateRef<unknown>>>;
13
13
  block?: boolean;
14
- get templateRef(): Maybe<TemplateRef<any>>;
15
- set templateRef(templateRef: Maybe<TemplateRef<any>>);
14
+ get templateRef(): Maybe<TemplateRef<unknown>>;
15
+ set templateRef(templateRef: Maybe<TemplateRef<unknown>>);
16
16
  readonly url$: import("rxjs").Observable<string | undefined>;
17
17
  readonly target$: import("rxjs").Observable<string | undefined>;
18
18
  constructor(dbNgxRouterWebProviderConfig: DbxRouterWebProviderConfig);
@@ -8,9 +8,9 @@ import * as i0 from "@angular/core";
8
8
  export declare abstract class AbstractDbxSegueAnchorDirective {
9
9
  readonly parent: DbxAnchorComponent;
10
10
  readonly target$: Observable<string | undefined>;
11
- readonly ref$: Observable<any>;
11
+ readonly ref$: Observable<import("@dereekb/dbx-core").SegueRefRouterLink | undefined>;
12
12
  readonly refParams$: Observable<import("@dereekb/dbx-core").SegueRefRawSegueParams | undefined>;
13
- readonly refOptions$: Observable<any>;
13
+ readonly refOptions$: Observable<object | undefined>;
14
14
  constructor(parent: DbxAnchorComponent);
15
15
  readonly template$: Observable<DbxInjectionTemplateConfig>;
16
16
  get anchor(): import("../../../../../../../dist/packages/util/src").Maybe<import("@dereekb/dbx-core").ClickableAnchor>;
@@ -1,9 +1,13 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { AbstractDbxSegueAnchorDirective } from '../../layout/anchor/anchor.segue.directive';
3
+ import { TransitionOptions } from '@uirouter/core';
2
4
  import * as i0 from "@angular/core";
3
5
  /**
4
6
  * SegueAnchor implementation for UIRouter.
5
7
  */
6
8
  export declare class DbxUIRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
9
+ readonly uiRef$: Observable<string | null>;
10
+ readonly uiOptions$: Observable<TransitionOptions | null>;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxUIRouterSegueAnchorComponent, never>;
8
12
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxUIRouterSegueAnchorComponent, "ng-component", never, {}, {}, never, never>;
9
13
  }
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",
7
7
  "@angular/material": "^13.0.0",
8
- "@dereekb/rxjs": "4.1.0",
9
- "@dereekb/dbx-core": "4.1.0",
8
+ "@dereekb/rxjs": "5.0.0",
9
+ "@dereekb/dbx-core": "5.0.0",
10
10
  "@angular/flex-layout": "^13.0.0-beta.38",
11
- "ng-overlay-container": "^13.0.0",
11
+ "ng-overlay-container": "^13.0.2",
12
12
  "@angular/cdk": "^13.0.0",
13
13
  "angular-resize-event": "^3.1.1",
14
14
  "ngx-infinite-scroll": "^13.0.2",
15
- "linkify-string": "4.0.0-beta.5"
15
+ "linkify-string": "4.0.0-beta.5",
16
+ "@uirouter/angular": "^9.1.0"
16
17
  },
17
18
  "dependencies": {
18
19
  "tslib": "^2.3.0"