@dereekb/dbx-core 0.0.1 → 1.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 (146) hide show
  1. package/README.md +4 -5
  2. package/esm2020/lib/action/action.handler.mjs +2 -2
  3. package/esm2020/lib/action/action.module.mjs +21 -21
  4. package/esm2020/lib/action/action.store.source.mjs +2 -2
  5. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +5 -5
  6. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +7 -7
  7. package/esm2020/lib/action/directive/auto/action.autotrigger.value.directive.mjs +5 -5
  8. package/esm2020/lib/action/directive/context/action.directive.mjs +8 -8
  9. package/esm2020/lib/action/directive/context/action.source.directive.mjs +7 -7
  10. package/esm2020/lib/action/directive/context/index.mjs +1 -2
  11. package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +6 -6
  12. package/esm2020/lib/action/directive/map/action.map.directive.mjs +7 -7
  13. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +9 -9
  14. package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +7 -7
  15. package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +8 -8
  16. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +5 -5
  17. package/esm2020/lib/action/directive/state/action.disabled.modified.directive.mjs +5 -5
  18. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +5 -5
  19. package/esm2020/lib/action/directive/state/action.success.component.mjs +5 -5
  20. package/esm2020/lib/action/directive/state/action.success.directive.mjs +5 -5
  21. package/esm2020/lib/action/directive/state/action.value.directive.mjs +5 -5
  22. package/esm2020/lib/action/directive/state/action.working.component.mjs +5 -5
  23. package/esm2020/lib/action/snackbar/snackbar.mjs +1 -1
  24. package/esm2020/lib/button/action/action.button.directive.mjs +8 -8
  25. package/esm2020/lib/button/action/action.button.trigger.directive.mjs +7 -7
  26. package/esm2020/lib/button/button.directive.mjs +12 -12
  27. package/esm2020/lib/button/button.loading.directive.mjs +7 -7
  28. package/esm2020/lib/button/button.mjs +6 -5
  29. package/esm2020/lib/button/button.module.mjs +28 -28
  30. package/esm2020/lib/button/router/button.segue.directive.mjs +8 -8
  31. package/esm2020/lib/filter/action/action.filter.source.directive.mjs +33 -0
  32. package/esm2020/lib/filter/action/index.mjs +2 -0
  33. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +24 -0
  34. package/esm2020/lib/filter/filter.abstract.source.directive.mjs +38 -0
  35. package/esm2020/lib/filter/filter.connector.directive.mjs +25 -0
  36. package/esm2020/lib/filter/filter.content.mjs +24 -0
  37. package/esm2020/lib/filter/filter.map.connector.directive.mjs +40 -0
  38. package/esm2020/lib/filter/filter.map.directive.mjs +26 -0
  39. package/esm2020/lib/filter/filter.map.instance.directive.mjs +26 -0
  40. package/esm2020/lib/filter/filter.map.source.directive.mjs +41 -0
  41. package/esm2020/lib/filter/filter.module.mjs +46 -0
  42. package/esm2020/lib/filter/filter.source.directive.mjs +19 -0
  43. package/esm2020/lib/filter/index.mjs +12 -0
  44. package/esm2020/lib/index.mjs +2 -1
  45. package/esm2020/lib/injected/injected.component.mjs +6 -6
  46. package/esm2020/lib/injected/injected.component.module.mjs +9 -9
  47. package/esm2020/lib/injected/injected.directive.mjs +11 -10
  48. package/esm2020/lib/injected/injected.instance.mjs +20 -5
  49. package/esm2020/lib/injected/injected.mjs +16 -2
  50. package/esm2020/lib/pipe/date/date.pipe.module.mjs +6 -6
  51. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +4 -4
  52. package/esm2020/lib/router/anchor/anchor.directive.mjs +7 -7
  53. package/esm2020/lib/router/anchor/anchor.mjs +43 -15
  54. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +15 -9
  55. package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +14 -14
  56. package/esm2020/lib/router/router/provider/uirouter/index.mjs +2 -1
  57. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +20 -9
  58. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +15 -15
  59. package/esm2020/lib/router/router/provider/uirouter/util/future.mjs +38 -0
  60. package/esm2020/lib/router/router/provider/uirouter/util/index.mjs +2 -0
  61. package/esm2020/lib/router/router/service/router.service.mjs +2 -2
  62. package/esm2020/lib/router/router/service/router.transition.service.mjs +2 -2
  63. package/esm2020/lib/router/router/transition/index.mjs +3 -1
  64. package/esm2020/lib/router/router/transition/transition.directive.mjs +22 -0
  65. package/esm2020/lib/router/router/transition/transition.mjs +6 -6
  66. package/esm2020/lib/router/router/transition/transition.rxjs.mjs +18 -0
  67. package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +9 -10
  68. package/esm2020/lib/storage/storage.accessor.simple.mjs +3 -3
  69. package/esm2020/lib/storage/storage.di.mjs +3 -3
  70. package/esm2020/lib/storage/storage.module.mjs +7 -7
  71. package/esm2020/lib/util/view.mjs +12 -1
  72. package/fesm2015/dereekb-dbx-core.mjs +720 -292
  73. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  74. package/fesm2020/dereekb-dbx-core.mjs +720 -292
  75. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  76. package/lib/action/action.handler.d.ts +1 -1
  77. package/lib/action/action.module.d.ts +22 -23
  78. package/lib/action/action.store.source.d.ts +1 -1
  79. package/lib/action/directive/auto/action.automodify.directive.d.ts +3 -3
  80. package/lib/action/directive/auto/action.autotrigger.directive.d.ts +5 -5
  81. package/lib/action/directive/auto/action.autotrigger.value.directive.d.ts +5 -5
  82. package/lib/action/directive/context/action.directive.d.ts +4 -4
  83. package/lib/action/directive/context/action.source.directive.d.ts +4 -4
  84. package/lib/action/directive/context/index.d.ts +0 -1
  85. package/lib/action/directive/debug/action.logger.directive.d.ts +3 -3
  86. package/lib/action/directive/map/action.map.directive.d.ts +5 -5
  87. package/lib/action/directive/map/action.map.key.directive.d.ts +6 -6
  88. package/lib/action/directive/map/action.map.source.directive.d.ts +5 -5
  89. package/lib/action/directive/map/action.map.working.disable.directive.d.ts +6 -6
  90. package/lib/action/directive/state/action.disabled.directive.d.ts +3 -3
  91. package/lib/action/directive/state/action.disabled.modified.directive.d.ts +3 -3
  92. package/lib/action/directive/state/action.handler.directive.d.ts +3 -3
  93. package/lib/action/directive/state/action.success.component.d.ts +3 -3
  94. package/lib/action/directive/state/action.success.directive.d.ts +3 -3
  95. package/lib/action/directive/state/action.value.directive.d.ts +3 -3
  96. package/lib/action/directive/state/action.working.component.d.ts +3 -3
  97. package/lib/action/snackbar/snackbar.d.ts +3 -3
  98. package/lib/button/action/action.button.directive.d.ts +6 -6
  99. package/lib/button/action/action.button.trigger.directive.d.ts +6 -6
  100. package/lib/button/button.d.ts +4 -4
  101. package/lib/button/button.directive.d.ts +10 -10
  102. package/lib/button/button.loading.directive.d.ts +6 -6
  103. package/lib/button/button.module.d.ts +4 -4
  104. package/lib/button/router/button.segue.directive.d.ts +8 -8
  105. package/lib/filter/action/action.filter.source.directive.d.ts +17 -0
  106. package/lib/filter/action/index.d.ts +1 -0
  107. package/lib/filter/filter.abstract.connector.directive.d.ts +16 -0
  108. package/lib/filter/filter.abstract.source.directive.d.ts +20 -0
  109. package/lib/filter/filter.connector.directive.d.ts +9 -0
  110. package/lib/filter/filter.content.d.ts +10 -0
  111. package/lib/filter/filter.map.connector.directive.d.ts +14 -0
  112. package/lib/filter/filter.map.directive.d.ts +13 -0
  113. package/lib/filter/filter.map.instance.directive.d.ts +18 -0
  114. package/lib/filter/filter.map.source.directive.d.ts +16 -0
  115. package/lib/filter/filter.module.d.ts +12 -0
  116. package/lib/filter/filter.source.directive.d.ts +9 -0
  117. package/lib/filter/index.d.ts +11 -0
  118. package/lib/index.d.ts +1 -0
  119. package/lib/injected/injected.component.d.ts +7 -7
  120. package/lib/injected/injected.component.module.d.ts +4 -4
  121. package/lib/injected/injected.d.ts +25 -5
  122. package/lib/injected/injected.directive.d.ts +9 -7
  123. package/lib/injected/injected.instance.d.ts +11 -9
  124. package/lib/pipe/date/date.pipe.module.d.ts +4 -4
  125. package/lib/pipe/date/datedistance.pipe.d.ts +2 -2
  126. package/lib/router/anchor/anchor.d.ts +31 -8
  127. package/lib/router/anchor/anchor.directive.d.ts +4 -4
  128. package/lib/router/router/provider/angular/angular.router.service.d.ts +9 -7
  129. package/lib/router/router/provider/angular/angular.router.service.module.d.ts +5 -5
  130. package/lib/router/router/provider/uirouter/index.d.ts +1 -0
  131. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +9 -7
  132. package/lib/router/router/provider/uirouter/uirouter.router.service.module.d.ts +5 -5
  133. package/lib/router/router/provider/uirouter/util/future.d.ts +1 -0
  134. package/lib/router/router/provider/uirouter/util/index.d.ts +1 -0
  135. package/lib/router/router/service/router.service.d.ts +17 -1
  136. package/lib/router/router/service/router.transition.service.d.ts +4 -4
  137. package/lib/router/router/transition/index.d.ts +2 -0
  138. package/lib/router/router/transition/transition.d.ts +3 -3
  139. package/lib/router/router/transition/transition.directive.d.ts +14 -0
  140. package/lib/router/router/transition/transition.rxjs.d.ts +11 -0
  141. package/lib/router/router/transition/transition.watcher.directive.d.ts +4 -4
  142. package/lib/storage/storage.module.d.ts +5 -5
  143. package/lib/util/view.d.ts +9 -0
  144. package/package.json +9 -9
  145. package/esm2020/lib/action/directive/context/action.component.mjs +0 -18
  146. package/lib/action/directive/context/action.component.d.ts +0 -6
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, forwardRef, Host, Input, Injectable, Optional, Component, NgModule, EventEmitter, Output, LOCALE_ID, Pipe, Inject, ViewContainerRef, ViewChild, InjectionToken } from '@angular/core';
3
- import { SubscriptionObject, LockSet, filterMaybe, scanCount, combineLatestFromMapValuesObsFn, skipFirstMaybe } from '@dereekb/rxjs';
2
+ import { Directive, forwardRef, Host, Input, Injectable, Optional, Component, NgModule, EventEmitter, Output, LOCALE_ID, Pipe, Inject, ViewChild, InjectionToken, Injector, ViewContainerRef } from '@angular/core';
3
+ import * as i1$3 from '@dereekb/rxjs';
4
+ import { SubscriptionObject, LockSet, filterMaybe, scanCount, combineLatestFromMapValuesObsFn, skipFirstMaybe, FilterSourceInstance, FilterSource, FilterSourceConnector, FilterMap } from '@dereekb/rxjs';
4
5
  import * as i1 from 'rxjs';
5
- import { BehaviorSubject, combineLatest, Subject, interval, EMPTY, of, isObservable, Observable } from 'rxjs';
6
+ import { BehaviorSubject, combineLatest, Subject, interval, EMPTY, of, isObservable, delay as delay$1, filter as filter$1, startWith as startWith$1, switchMap as switchMap$1, shareReplay as shareReplay$1, first as first$1, Observable, tap as tap$1 } from 'rxjs';
6
7
  import { switchMap, first, distinctUntilChanged, filter, debounce, throttle, exhaustMap, mergeMap, map, shareReplay, withLatestFrom, startWith, tap, delay } from 'rxjs/operators';
7
- import * as i1$3 from '@dereekb/util';
8
- import { hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromObjectOrGetter, DataIsExpiredError, DataDoesNotExistError, filterMaybeValuesFn, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
8
+ import * as i1$4 from '@dereekb/util';
9
+ import { hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromObjectOrGetter, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mergeArrayIntoArray, objectFlatMergeMatrix, mergeArrays, filterMaybeValues, mergeObjects, mergeArrayOrValueIntoArray, DataIsExpiredError, DataDoesNotExistError, filterMaybeValuesFn, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
9
10
  import { ComponentStore } from '@ngrx/component-store';
10
11
  import * as i2 from '@angular/common';
11
12
  import { CommonModule, formatDate } from '@angular/common';
@@ -15,7 +16,7 @@ import { NavigationStart, NavigationEnd } from '@angular/router';
15
16
  import { isArray } from 'class-validator';
16
17
  import * as i1$2 from '@uirouter/core';
17
18
  import { addMinutes, isPast, formatDistance, isValid, formatDistanceToNow, startOfDay, isSameDay } from 'date-fns';
18
- import { toJsDate, formatToTimeString, unixTimeNumberForNow, timeNumberHasExpired } from '@dereekb/date';
19
+ import { toJsDate, formatToTimeString, unixTimeNumberForNow, timeHasExpired } from '@dereekb/date';
19
20
 
20
21
  /**
21
22
  * Abstract component that contains a SubscriptionObject and will clean it up automatically.
@@ -64,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
64
65
  class ActionContextStoreSource {
65
66
  }
66
67
  /**
67
- * Secondary source. Used by DbNgxActionContextComponent to find secondary sources.
68
+ * Secondary source. Used by DbxActionContextComponent to find secondary sources.
68
69
  */
69
70
  class SecondaryActionContextStoreSource extends ActionContextStoreSource {
70
71
  }
@@ -203,7 +204,7 @@ function ProvideSecondaryActionStoreSource(sourceType) {
203
204
  ];
204
205
  }
205
206
 
206
- class DbNgxActionAutoModifyDirective extends AbstractSubscriptionDirective {
207
+ class DbxActionAutoModifyDirective extends AbstractSubscriptionDirective {
207
208
  constructor(source) {
208
209
  super();
209
210
  this.source = source;
@@ -233,9 +234,9 @@ class DbNgxActionAutoModifyDirective extends AbstractSubscriptionDirective {
233
234
  });
234
235
  }
235
236
  }
236
- DbNgxActionAutoModifyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoModifyDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
237
- DbNgxActionAutoModifyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionAutoModifyDirective, selector: "[dbxActionAutoModify]", inputs: { autoModifyEnabled: ["dbxActionAutoModify", "autoModifyEnabled"] }, usesInheritance: true, ngImport: i0 });
238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoModifyDirective, decorators: [{
237
+ DbxActionAutoModifyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoModifyDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
238
+ DbxActionAutoModifyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionAutoModifyDirective, selector: "[dbxActionAutoModify]", inputs: { autoModifyEnabled: ["dbxActionAutoModify", "autoModifyEnabled"] }, usesInheritance: true, ngImport: i0 });
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoModifyDirective, decorators: [{
239
240
  type: Directive,
240
241
  args: [{
241
242
  selector: '[dbxActionAutoModify]',
@@ -254,9 +255,9 @@ const DEFAULT_THROTTLE_MS = 10 * 1000;
254
255
  const DEFAULT_ERROR_THROTTLE_MS = 3 * 1000;
255
256
  const MAX_ERRORS_TO_THROTTLE_ON = 6;
256
257
  /**
257
- * Extension of DbNgxActionTransitionSafetyDirective that automatically triggers the action periodically when it is in a modified state.
258
+ * Extension of DbxActionTransitionSafetyDirective that automatically triggers the action periodically when it is in a modified state.
258
259
  */
259
- class DbNgxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
260
+ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
260
261
  constructor(source) {
261
262
  super();
262
263
  this.source = source;
@@ -345,12 +346,12 @@ class DbNgxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
345
346
  });
346
347
  }
347
348
  }
348
- DbNgxActionAutoTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
349
- DbNgxActionAutoTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionAutoTriggerDirective, selector: "[dbxActionAutoTrigger]", inputs: { triggerEnabled: ["dbxActionAutoTrigger", "triggerEnabled"], triggerDebounce: "triggerDebounce", triggerThrottle: "triggerThrottle", triggerErrorThrottle: "triggerErrorThrottle", fastTrigger: "fastTrigger", instantTrigger: "instantTrigger", triggerLimit: "triggerLimit" }, usesInheritance: true, ngImport: i0 });
350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerDirective, decorators: [{
349
+ DbxActionAutoTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
350
+ DbxActionAutoTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger, [dbxActionAutoTrigger]", inputs: { triggerEnabled: ["dbxActionAutoTrigger", "triggerEnabled"], triggerDebounce: "triggerDebounce", triggerThrottle: "triggerThrottle", triggerErrorThrottle: "triggerErrorThrottle", fastTrigger: "fastTrigger", instantTrigger: "instantTrigger", triggerLimit: "triggerLimit" }, usesInheritance: true, ngImport: i0 });
351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
351
352
  type: Directive,
352
353
  args: [{
353
- selector: '[dbxActionAutoTrigger]',
354
+ selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]',
354
355
  }]
355
356
  }], ctorParameters: function () {
356
357
  return [{ type: ActionContextStoreSourceInstance, decorators: [{
@@ -376,7 +377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
376
377
  /**
377
378
  * Directive that watches an observable for changes and sets the new value and modified states as necessary.
378
379
  */
379
- class DbNgxActionAutoTriggerValueDirective {
380
+ class DbxActionAutoTriggerValueDirective {
380
381
  constructor(source) {
381
382
  this.source = source;
382
383
  this._valueObs = new BehaviorSubject(EMPTY);
@@ -426,9 +427,9 @@ class DbNgxActionAutoTriggerValueDirective {
426
427
  });
427
428
  }
428
429
  }
429
- DbNgxActionAutoTriggerValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerValueDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
430
- DbNgxActionAutoTriggerValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionAutoTriggerValueDirective, selector: "[dbxActionAutoTriggerValue]", inputs: { dbxActionAutoTriggerValue: "dbxActionAutoTriggerValue", dbxActionAutoTriggerModifiedNonEmptyValue: "dbxActionAutoTriggerModifiedNonEmptyValue", dbxActionAutoTriggerModified: "dbxActionAutoTriggerModified" }, ngImport: i0 });
431
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerValueDirective, decorators: [{
430
+ DbxActionAutoTriggerValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerValueDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
431
+ DbxActionAutoTriggerValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionAutoTriggerValueDirective, selector: "[dbxActionAutoTriggerValue]", inputs: { dbxActionAutoTriggerValue: "dbxActionAutoTriggerValue", dbxActionAutoTriggerModifiedNonEmptyValue: "dbxActionAutoTriggerModifiedNonEmptyValue", dbxActionAutoTriggerModified: "dbxActionAutoTriggerModified" }, ngImport: i0 });
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerValueDirective, decorators: [{
432
433
  type: Directive,
433
434
  args: [{
434
435
  selector: '[dbxActionAutoTriggerValue]',
@@ -716,9 +717,9 @@ class ActionContextBaseSource {
716
717
  }
717
718
 
718
719
  /**
719
- * Provides an DbNgxActionContext.
720
+ * Provides an DbxActionContext.
720
721
  */
721
- class DbNgxActionContextDirective extends ActionContextBaseSource {
722
+ class DbxActionDirective extends ActionContextBaseSource {
722
723
  constructor(inputSource) {
723
724
  super(inputSource);
724
725
  }
@@ -728,14 +729,14 @@ class DbNgxActionContextDirective extends ActionContextBaseSource {
728
729
  });
729
730
  }
730
731
  }
731
- DbNgxActionContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextDirective, deps: [{ token: SecondaryActionContextStoreSource, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
732
- DbNgxActionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionContextDirective, selector: "[dbxActionContext]", providers: ProvideActionStoreSource(DbNgxActionContextDirective), exportAs: ["action"], usesInheritance: true, ngImport: i0 });
733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextDirective, decorators: [{
732
+ DbxActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDirective, deps: [{ token: SecondaryActionContextStoreSource, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
733
+ DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers: ProvideActionStoreSource(DbxActionDirective), exportAs: ["action"], usesInheritance: true, ngImport: i0 });
734
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDirective, decorators: [{
734
735
  type: Directive,
735
736
  args: [{
736
- selector: '[dbxActionContext]',
737
+ selector: 'dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]',
737
738
  exportAs: 'action',
738
- providers: ProvideActionStoreSource(DbNgxActionContextDirective)
739
+ providers: ProvideActionStoreSource(DbxActionDirective)
739
740
  }]
740
741
  }], ctorParameters: function () {
741
742
  return [{ type: SecondaryActionContextStoreSource, decorators: [{
@@ -745,24 +746,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
745
746
  }] }];
746
747
  } });
747
748
 
748
- class DbNgxActionComponent extends DbNgxActionContextDirective {
749
- }
750
- DbNgxActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
751
- DbNgxActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionComponent, selector: "dbx-action", providers: ProvideActionStoreSource(DbNgxActionComponent), exportAs: ["action"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
752
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionComponent, decorators: [{
753
- type: Component,
754
- args: [{
755
- selector: 'dbx-action',
756
- exportAs: 'action',
757
- template: '<ng-content></ng-content>',
758
- providers: ProvideActionStoreSource(DbNgxActionComponent)
759
- }]
760
- }] });
761
-
762
749
  /**
763
- * Directive that provides a DbNgxActionSourceDirective that is passed in.
750
+ * Directive that provides a DbxActionSourceDirective that is passed in.
764
751
  */
765
- class DbNgxActionSourceDirective {
752
+ class DbxActionSourceDirective {
766
753
  constructor() {
767
754
  this._source = new BehaviorSubject(undefined);
768
755
  this.store$ = this._source.pipe(filterMaybe(), switchMap((x) => actionContextStoreSourcePipe(x.store$)));
@@ -780,13 +767,13 @@ class DbNgxActionSourceDirective {
780
767
  this._source.next(source);
781
768
  }
782
769
  }
783
- DbNgxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
784
- DbNgxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers: ProvideSecondaryActionStoreSource(DbNgxActionSourceDirective), ngImport: i0 });
785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSourceDirective, decorators: [{
770
+ DbxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
771
+ DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers: ProvideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
786
773
  type: Directive,
787
774
  args: [{
788
775
  selector: '[dbxActionSource]',
789
- providers: ProvideSecondaryActionStoreSource(DbNgxActionSourceDirective)
776
+ providers: ProvideSecondaryActionStoreSource(DbxActionSourceDirective)
790
777
  }]
791
778
  }], propDecorators: { source: [{
792
779
  type: Input,
@@ -796,7 +783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
796
783
  /**
797
784
  * Prints out the current state to the console. Useful for debugging.
798
785
  */
799
- class DbNgxActionContextLoggerDirective extends AbstractSubscriptionDirective {
786
+ class DbxActionContextLoggerDirective extends AbstractSubscriptionDirective {
800
787
  constructor(source) {
801
788
  super();
802
789
  this.source = source;
@@ -807,12 +794,12 @@ class DbNgxActionContextLoggerDirective extends AbstractSubscriptionDirective {
807
794
  });
808
795
  }
809
796
  }
810
- DbNgxActionContextLoggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextLoggerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
811
- DbNgxActionContextLoggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionContextLoggerDirective, selector: "[dbxActionContextLogger]", usesInheritance: true, ngImport: i0 });
812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextLoggerDirective, decorators: [{
797
+ DbxActionContextLoggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionContextLoggerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
798
+ DbxActionContextLoggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionContextLoggerDirective, selector: "[dbxActionLogger],[dbxActionContextLogger]", usesInheritance: true, ngImport: i0 });
799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionContextLoggerDirective, decorators: [{
813
800
  type: Directive,
814
801
  args: [{
815
- selector: '[dbxActionContextLogger]'
802
+ selector: '[dbxActionLogger],[dbxActionContextLogger]'
816
803
  }]
817
804
  }], ctorParameters: function () {
818
805
  return [{ type: ActionContextStoreSourceInstance, decorators: [{
@@ -825,7 +812,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
825
812
  *
826
813
  * This is useful for passing action contexts around via the providers instead of explicit injection.
827
814
  */
828
- class DbNgxActionContextMapDirective {
815
+ class DbxActionContextMapDirective {
829
816
  constructor() {
830
817
  this._map = new BehaviorSubject(new Map());
831
818
  this.map$ = this._map.asObservable();
@@ -835,7 +822,7 @@ class DbNgxActionContextMapDirective {
835
822
  return this._map.value;
836
823
  }
837
824
  sourceForKey(key) {
838
- return new DbNgxActionContextMapDirectiveSourceInstance(this, key);
825
+ return new DbxActionContextMapDirectiveSourceInstance(this, key);
839
826
  }
840
827
  addStoreSource(key, source) {
841
828
  if (this.map.has(key)) {
@@ -867,9 +854,9 @@ class DbNgxActionContextMapDirective {
867
854
  return this.map$.pipe(switchMap(combineLatestFromMapValuesObsFn((x) => x.store$.pipe(switchMap(mapFn)))));
868
855
  }
869
856
  }
870
- DbNgxActionContextMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
871
- DbNgxActionContextMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionContextMapDirective, selector: "[dbxActionContextMap]", providers: [], exportAs: ["actionMap"], ngImport: i0 });
872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextMapDirective, decorators: [{
857
+ DbxActionContextMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionContextMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
858
+ DbxActionContextMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionContextMapDirective, selector: "[dbxActionContextMap]", providers: [], exportAs: ["actionMap"], ngImport: i0 });
859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionContextMapDirective, decorators: [{
873
860
  type: Directive,
874
861
  args: [{
875
862
  selector: '[dbxActionContextMap]',
@@ -877,7 +864,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
877
864
  providers: [],
878
865
  }]
879
866
  }], ctorParameters: function () { return []; } });
880
- class DbNgxActionContextMapDirectiveSourceInstance {
867
+ class DbxActionContextMapDirectiveSourceInstance {
881
868
  constructor(parent, key) {
882
869
  this.parent = parent;
883
870
  this.key = key;
@@ -888,9 +875,9 @@ class DbNgxActionContextMapDirectiveSourceInstance {
888
875
  }
889
876
 
890
877
  /**
891
- * Directive that provides a ActionContextStoreSource using the input key and DbNgxActionContextMapDirective.
878
+ * Directive that provides a ActionContextStoreSource using the input key and DbxActionContextMapDirective.
892
879
  */
893
- class DbNgxActionFromMapDirective {
880
+ class DbxActionFromMapDirective {
894
881
  constructor(_map) {
895
882
  this._map = _map;
896
883
  this._key = new BehaviorSubject(undefined);
@@ -906,15 +893,15 @@ class DbNgxActionFromMapDirective {
906
893
  this._key.next(key);
907
894
  }
908
895
  }
909
- DbNgxActionFromMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionFromMapDirective, deps: [{ token: DbNgxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
910
- DbNgxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers: ProvideSecondaryActionStoreSource(DbNgxActionFromMapDirective), ngImport: i0 });
911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionFromMapDirective, decorators: [{
896
+ DbxActionFromMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionFromMapDirective, deps: [{ token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
897
+ DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers: ProvideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
898
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
912
899
  type: Directive,
913
900
  args: [{
914
901
  selector: '[dbxActionFromMap]',
915
- providers: ProvideSecondaryActionStoreSource(DbNgxActionFromMapDirective)
902
+ providers: ProvideSecondaryActionStoreSource(DbxActionFromMapDirective)
916
903
  }]
917
- }], ctorParameters: function () { return [{ type: DbNgxActionContextMapDirective }]; }, propDecorators: { key: [{
904
+ }], ctorParameters: function () { return [{ type: DbxActionContextMapDirective }]; }, propDecorators: { key: [{
918
905
  type: Input,
919
906
  args: ['dbxActionFromMap']
920
907
  }] } });
@@ -922,7 +909,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
922
909
  /**
923
910
  * Used to communicate with an dbxActionMap and set the ActionContextStore to the store based on the key.
924
911
  */
925
- class DbNgxActionMapSourceDirective {
912
+ class DbxActionMapSourceDirective {
926
913
  constructor(source, _map) {
927
914
  this.source = source;
928
915
  this._map = _map;
@@ -948,9 +935,9 @@ class DbNgxActionMapSourceDirective {
948
935
  }
949
936
  }
950
937
  }
951
- DbNgxActionMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionMapSourceDirective, deps: [{ token: ActionContextStoreSource, host: true }, { token: DbNgxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
952
- DbNgxActionMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionMapSourceDirective, selector: "[dbxActionMapSource]", inputs: { key: ["dbxActionMapSource", "key"] }, ngImport: i0 });
953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionMapSourceDirective, decorators: [{
938
+ DbxActionMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionMapSourceDirective, deps: [{ token: ActionContextStoreSource, host: true }, { token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
939
+ DbxActionMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionMapSourceDirective, selector: "[dbxActionMapSource]", inputs: { key: ["dbxActionMapSource", "key"] }, ngImport: i0 });
940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionMapSourceDirective, decorators: [{
954
941
  type: Directive,
955
942
  args: [{
956
943
  selector: '[dbxActionMapSource]'
@@ -958,7 +945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
958
945
  }], ctorParameters: function () {
959
946
  return [{ type: ActionContextStoreSource, decorators: [{
960
947
  type: Host
961
- }] }, { type: DbNgxActionContextMapDirective }];
948
+ }] }, { type: DbxActionContextMapDirective }];
962
949
  }, propDecorators: { key: [{
963
950
  type: Input,
964
951
  args: ['dbxActionMapSource']
@@ -970,11 +957,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
970
957
  class ActionContextStoreSourceMap {
971
958
  }
972
959
 
973
- const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = '';
960
+ const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = '__disabled';
974
961
  /**
975
962
  * Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
976
963
  */
977
- class DbNgxActionMapWorkingDisableDirective extends AbstractSubscriptionDirective {
964
+ class DbxActionMapWorkingDisableDirective extends AbstractSubscriptionDirective {
978
965
  constructor(source, _map) {
979
966
  super();
980
967
  this.source = source;
@@ -990,9 +977,9 @@ class DbNgxActionMapWorkingDisableDirective extends AbstractSubscriptionDirectiv
990
977
  this.source.enable(this.disabledKey || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY);
991
978
  }
992
979
  }
993
- DbNgxActionMapWorkingDisableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionMapWorkingDisableDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }, { token: DbNgxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
994
- DbNgxActionMapWorkingDisableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionMapWorkingDisableDirective, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: ["dbxActionMapWorkingDisable", "disabledKey"] }, usesInheritance: true, ngImport: i0 });
995
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionMapWorkingDisableDirective, decorators: [{
980
+ DbxActionMapWorkingDisableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionMapWorkingDisableDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }, { token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
981
+ DbxActionMapWorkingDisableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionMapWorkingDisableDirective, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: ["dbxActionMapWorkingDisable", "disabledKey"] }, usesInheritance: true, ngImport: i0 });
982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionMapWorkingDisableDirective, decorators: [{
996
983
  type: Directive,
997
984
  args: [{
998
985
  selector: '[dbxActionMapWorkingDisable]'
@@ -1000,7 +987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1000
987
  }], ctorParameters: function () {
1001
988
  return [{ type: ActionContextStoreSourceInstance, decorators: [{
1002
989
  type: Host
1003
- }] }, { type: DbNgxActionContextMapDirective }];
990
+ }] }, { type: DbxActionContextMapDirective }];
1004
991
  }, propDecorators: { disabledKey: [{
1005
992
  type: Input,
1006
993
  args: ['dbxActionMapWorkingDisable']
@@ -1010,7 +997,7 @@ const APP_ACTION_DISABLED_DIRECTIVE_KEY = 'dbx_action_disabled';
1010
997
  /**
1011
998
  * Directive that allows disabling an action using the inputs.
1012
999
  */
1013
- class DbNgxActionDisabledDirective extends AbstractSubscriptionDirective {
1000
+ class DbxActionDisabledDirective extends AbstractSubscriptionDirective {
1014
1001
  constructor(source) {
1015
1002
  super();
1016
1003
  this.source = source;
@@ -1034,9 +1021,9 @@ class DbNgxActionDisabledDirective extends AbstractSubscriptionDirective {
1034
1021
  this._disabled.next(disabled);
1035
1022
  }
1036
1023
  }
1037
- DbNgxActionDisabledDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1038
- DbNgxActionDisabledDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: { disabled: ["dbxActionDisabled", "disabled"] }, usesInheritance: true, ngImport: i0 });
1039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledDirective, decorators: [{
1024
+ DbxActionDisabledDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1025
+ DbxActionDisabledDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: { disabled: ["dbxActionDisabled", "disabled"] }, usesInheritance: true, ngImport: i0 });
1026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledDirective, decorators: [{
1040
1027
  type: Directive,
1041
1028
  args: [{
1042
1029
  selector: '[dbxActionDisabled]'
@@ -1054,7 +1041,7 @@ const APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY = 'dbx_action_is_not_modi
1054
1041
  /**
1055
1042
  * Directive that sets the disabled state based on the current isModified state.
1056
1043
  */
1057
- class DbNgxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDirective {
1044
+ class DbxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDirective {
1058
1045
  constructor(source) {
1059
1046
  super();
1060
1047
  this.source = source;
@@ -1069,9 +1056,9 @@ class DbNgxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDire
1069
1056
  this.source.enable(APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY);
1070
1057
  }
1071
1058
  }
1072
- DbNgxActionDisabledUntilModifiedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledUntilModifiedDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1073
- DbNgxActionDisabledUntilModifiedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionDisabledUntilModifiedDirective, selector: "[dbxActionDisabledUntilModified]", usesInheritance: true, ngImport: i0 });
1074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledUntilModifiedDirective, decorators: [{
1059
+ DbxActionDisabledUntilModifiedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledUntilModifiedDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1060
+ DbxActionDisabledUntilModifiedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionDisabledUntilModifiedDirective, selector: "[dbxActionDisabledUntilModified]", usesInheritance: true, ngImport: i0 });
1061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledUntilModifiedDirective, decorators: [{
1075
1062
  type: Directive,
1076
1063
  args: [{
1077
1064
  selector: '[dbxActionDisabledUntilModified]'
@@ -1100,7 +1087,7 @@ class WorkHandlerContextSourceDelegate {
1100
1087
  }
1101
1088
  }
1102
1089
  /**
1103
- * Used by DbNgxActionHandlerDirective when handling a function.
1090
+ * Used by DbxActionHandlerDirective when handling a function.
1104
1091
  */
1105
1092
  class WorkHandlerContext {
1106
1093
  constructor(value, delegate) {
@@ -1225,7 +1212,7 @@ function handleWorkValueReadyFn({ handlerFunction, delegate }) {
1225
1212
  /**
1226
1213
  * Context used for defining a function that performs an action using the input function on ValueReady.
1227
1214
  */
1228
- class DbNgxActionHandlerDirective extends AbstractSubscriptionDirective {
1215
+ class DbxActionHandlerDirective extends AbstractSubscriptionDirective {
1229
1216
  constructor(source) {
1230
1217
  super();
1231
1218
  this.source = source;
@@ -1254,9 +1241,9 @@ class DbNgxActionHandlerDirective extends AbstractSubscriptionDirective {
1254
1241
  });
1255
1242
  }
1256
1243
  }
1257
- DbNgxActionHandlerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionHandlerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1258
- DbNgxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: { handlerFunction: ["dbxActionHandler", "handlerFunction"] }, usesInheritance: true, ngImport: i0 });
1259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionHandlerDirective, decorators: [{
1244
+ DbxActionHandlerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionHandlerDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1245
+ DbxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: { handlerFunction: ["dbxActionHandler", "handlerFunction"] }, usesInheritance: true, ngImport: i0 });
1246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
1260
1247
  type: Directive,
1261
1248
  args: [{
1262
1249
  selector: '[dbxActionHandler]',
@@ -1275,7 +1262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1275
1262
  *
1276
1263
  * Can be configured to show for a limited time afterwards, etc.
1277
1264
  */
1278
- class DbNgxActionSuccessComponent {
1265
+ class DbxActionSuccessComponent {
1279
1266
  constructor(source) {
1280
1267
  this.source = source;
1281
1268
  this.show$ = this.source.isSuccess$.pipe(exhaustMap((success) => {
@@ -1293,13 +1280,13 @@ class DbNgxActionSuccessComponent {
1293
1280
  }), shareReplay(1));
1294
1281
  }
1295
1282
  }
1296
- DbNgxActionSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1297
- DbNgxActionSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionSuccessComponent, selector: "dbx-action-success", inputs: { hideAfter: "hideAfter" }, ngImport: i0, template: `
1283
+ DbxActionSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1284
+ DbxActionSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSuccessComponent, selector: "dbx-action-success", inputs: { hideAfter: "hideAfter" }, ngImport: i0, template: `
1298
1285
  <ng-container *ngIf="show$ | async">
1299
1286
  <ng-content></ng-content>
1300
1287
  </ng-container>
1301
1288
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe } });
1302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessComponent, decorators: [{
1289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessComponent, decorators: [{
1303
1290
  type: Component,
1304
1291
  args: [{
1305
1292
  selector: 'dbx-action-success',
@@ -1316,7 +1303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1316
1303
  /**
1317
1304
  * Directive that executes a function on ActionContextStore Success.
1318
1305
  */
1319
- class DbNgxActionSuccessDirective extends AbstractSubscriptionDirective {
1306
+ class DbxActionSuccessDirective extends AbstractSubscriptionDirective {
1320
1307
  constructor(source) {
1321
1308
  super();
1322
1309
  this.source = source;
@@ -1339,9 +1326,9 @@ class DbNgxActionSuccessDirective extends AbstractSubscriptionDirective {
1339
1326
  this._successFunction.complete();
1340
1327
  }
1341
1328
  }
1342
- DbNgxActionSuccessDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1343
- DbNgxActionSuccessDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: { successFunction: ["dbxActionSuccess", "successFunction"] }, usesInheritance: true, ngImport: i0 });
1344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessDirective, decorators: [{
1329
+ DbxActionSuccessDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1330
+ DbxActionSuccessDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: { successFunction: ["dbxActionSuccess", "successFunction"] }, usesInheritance: true, ngImport: i0 });
1331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessDirective, decorators: [{
1345
1332
  type: Directive,
1346
1333
  args: [{
1347
1334
  selector: '[dbxActionSuccess]',
@@ -1360,7 +1347,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1360
1347
  *
1361
1348
  * No value is required, allowing the directive to automatically call readyValue with undefined.
1362
1349
  */
1363
- class DbNgxActionValueDirective extends AbstractSubscriptionDirective {
1350
+ class DbxActionValueDirective extends AbstractSubscriptionDirective {
1364
1351
  constructor(source) {
1365
1352
  super();
1366
1353
  this.source = source;
@@ -1384,9 +1371,9 @@ class DbNgxActionValueDirective extends AbstractSubscriptionDirective {
1384
1371
  this._valueOrFunction.complete();
1385
1372
  }
1386
1373
  }
1387
- DbNgxActionValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionValueDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1388
- DbNgxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionValueDirective, selector: "[dbxActionValue]", inputs: { valueOrFunction: ["dbxActionValue", "valueOrFunction"] }, usesInheritance: true, ngImport: i0 });
1389
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionValueDirective, decorators: [{
1374
+ DbxActionValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionValueDirective, deps: [{ token: ActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
1375
+ DbxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionValueDirective, selector: "[dbxActionValue]", inputs: { valueOrFunction: ["dbxActionValue", "valueOrFunction"] }, usesInheritance: true, ngImport: i0 });
1376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionValueDirective, decorators: [{
1390
1377
  type: Directive,
1391
1378
  args: [{
1392
1379
  selector: '[dbxActionValue]',
@@ -1403,19 +1390,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1403
1390
  /**
1404
1391
  * Displays the input content when working is set.
1405
1392
  */
1406
- class DbNgxActionWorkingComponent {
1393
+ class DbxActionWorkingComponent {
1407
1394
  constructor(source) {
1408
1395
  this.source = source;
1409
1396
  this.show$ = this.source.isWorking$;
1410
1397
  }
1411
1398
  }
1412
- DbNgxActionWorkingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionWorkingComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1413
- DbNgxActionWorkingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionWorkingComponent, selector: "dbx-action-working", ngImport: i0, template: `
1399
+ DbxActionWorkingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionWorkingComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1400
+ DbxActionWorkingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionWorkingComponent, selector: "dbx-action-working", ngImport: i0, template: `
1414
1401
  <ng-container *ngIf="show$ | async">
1415
1402
  <ng-content></ng-content>
1416
1403
  </ng-container>
1417
1404
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe } });
1418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionWorkingComponent, decorators: [{
1405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionWorkingComponent, decorators: [{
1419
1406
  type: Component,
1420
1407
  args: [{
1421
1408
  selector: 'dbx-action-working',
@@ -1485,53 +1472,53 @@ class ActionContextMachine extends ActionContextBaseSource {
1485
1472
  }
1486
1473
  }
1487
1474
 
1488
- class DbNgxCoreActionModule {
1475
+ class DbxCoreActionModule {
1489
1476
  }
1490
- DbNgxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1491
- DbNgxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, declarations: [DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1492
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1493
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1494
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent], imports: [CommonModule], exports: [DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1495
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1496
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1497
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent] });
1498
- DbNgxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, imports: [[
1477
+ DbxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1478
+ DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1479
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1480
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1481
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent], imports: [CommonModule], exports: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1482
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1483
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1484
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent] });
1485
+ DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, imports: [[
1499
1486
  CommonModule
1500
1487
  ]] });
1501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, decorators: [{
1488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, decorators: [{
1502
1489
  type: NgModule,
1503
1490
  args: [{
1504
1491
  imports: [
1505
1492
  CommonModule
1506
1493
  ],
1507
1494
  declarations: [
1508
- DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1509
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1510
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1511
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent
1495
+ DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1496
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1497
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1498
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent
1512
1499
  ],
1513
1500
  exports: [
1514
- DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1515
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1516
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1517
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent
1501
+ DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1502
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1503
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1504
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent
1518
1505
  ]
1519
1506
  }]
1520
1507
  }] });
1521
1508
 
1522
- class DbNgxButton {
1509
+ class DbxButton {
1523
1510
  }
1524
- function ProvideDbNgxButton(sourceType) {
1511
+ function ProvideDbxButton(sourceType) {
1525
1512
  return [{
1526
- provide: DbNgxButton,
1527
- useExisting: sourceType
1513
+ provide: DbxButton,
1514
+ useExisting: forwardRef(() => sourceType)
1528
1515
  }];
1529
1516
  }
1530
1517
 
1531
1518
  /**
1532
1519
  * Context used for linking a button to an ActionContext and only look for triggers.
1533
1520
  */
1534
- class DbNgxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1521
+ class DbxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1535
1522
  constructor(button, source) {
1536
1523
  super();
1537
1524
  this.button = button;
@@ -1546,15 +1533,15 @@ class DbNgxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1546
1533
  this.source.trigger();
1547
1534
  }
1548
1535
  }
1549
- DbNgxActionButtonTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonTriggerDirective, deps: [{ token: DbNgxButton, host: true }, { token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
1550
- DbNgxActionButtonTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionButtonTriggerDirective, selector: "[dbxActionButtonTrigger]", usesInheritance: true, ngImport: i0 });
1551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonTriggerDirective, decorators: [{
1536
+ DbxActionButtonTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonTriggerDirective, deps: [{ token: DbxButton, host: true }, { token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
1537
+ DbxActionButtonTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionButtonTriggerDirective, selector: "[dbxActionButtonTrigger]", usesInheritance: true, ngImport: i0 });
1538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonTriggerDirective, decorators: [{
1552
1539
  type: Directive,
1553
1540
  args: [{
1554
1541
  selector: '[dbxActionButtonTrigger]'
1555
1542
  }]
1556
1543
  }], ctorParameters: function () {
1557
- return [{ type: DbNgxButton, decorators: [{
1544
+ return [{ type: DbxButton, decorators: [{
1558
1545
  type: Host
1559
1546
  }] }, { type: ActionContextStoreSourceInstance }];
1560
1547
  } });
@@ -1562,7 +1549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1562
1549
  /**
1563
1550
  * Context used for linking a button to an ActionContext.
1564
1551
  */
1565
- class DbNgxActionButtonDirective extends DbNgxActionButtonTriggerDirective {
1552
+ class DbxActionButtonDirective extends DbxActionButtonTriggerDirective {
1566
1553
  constructor(button, source, ngZone) {
1567
1554
  super(button, source);
1568
1555
  this.ngZone = ngZone;
@@ -1586,64 +1573,90 @@ class DbNgxActionButtonDirective extends DbNgxActionButtonTriggerDirective {
1586
1573
  this._disabledSub.destroy();
1587
1574
  }
1588
1575
  }
1589
- DbNgxActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonDirective, deps: [{ token: DbNgxButton, host: true }, { token: ActionContextStoreSourceInstance }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1590
- DbNgxActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionButtonDirective, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
1591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonDirective, decorators: [{
1576
+ DbxActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonDirective, deps: [{ token: DbxButton, host: true }, { token: ActionContextStoreSourceInstance }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1577
+ DbxActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionButtonDirective, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
1578
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonDirective, decorators: [{
1592
1579
  type: Directive,
1593
1580
  args: [{
1594
1581
  selector: '[dbxActionButton]'
1595
1582
  }]
1596
1583
  }], ctorParameters: function () {
1597
- return [{ type: DbNgxButton, decorators: [{
1584
+ return [{ type: DbxButton, decorators: [{
1598
1585
  type: Host
1599
1586
  }] }, { type: ActionContextStoreSourceInstance }, { type: i0.NgZone }];
1600
1587
  } });
1601
1588
 
1589
+ const expandClickableAnchorLinkTreeNode = expandTreeFunction({
1590
+ getChildren: (x) => x.children
1591
+ });
1592
+ const flattenExpandedClickableAnchorLinkTree = flattenTreeToArrayFunction();
1593
+ const flattenExpandedClickableAnchorLinkTreeToLinks = flattenTreeToArrayFunction((x) => x.value);
1594
+ /**
1595
+ * Fully expands the given parent link and flattens the tree to a single parent link.
1596
+ *
1597
+ * @param link
1598
+ * @returns
1599
+ */
1600
+ function expandClickableAnchorLinkTree(link) {
1601
+ return flattenExpandedClickableAnchorLinkTree(expandClickableAnchorLinkTreeNode(link));
1602
+ }
1603
+ /**
1604
+ * Expands an array of links into an array of ExpandedClickableAnchorLinkTree tree values.
1605
+ */
1606
+ const expandClickableAnchorLinkTrees = expandFlattenTreeFunction(expandClickableAnchorLinkTreeNode, flattenExpandedClickableAnchorLinkTree);
1602
1607
  var AnchorType;
1603
1608
  (function (AnchorType) {
1604
- AnchorType[AnchorType["None"] = 0] = "None";
1605
- AnchorType[AnchorType["Clickable"] = 1] = "Clickable";
1606
- AnchorType[AnchorType["Sref"] = 2] = "Sref";
1607
- AnchorType[AnchorType["Href"] = 3] = "Href";
1608
- AnchorType[AnchorType["Disabled"] = 4] = "Disabled";
1609
+ /**
1610
+ * When the anchor has no specific content but is not disabled.
1611
+ *
1612
+ * Is a passthrough for the content.
1613
+ */
1614
+ AnchorType[AnchorType["PLAIN"] = 0] = "PLAIN";
1615
+ AnchorType[AnchorType["CLICKABLE"] = 1] = "CLICKABLE";
1616
+ AnchorType[AnchorType["SREF"] = 2] = "SREF";
1617
+ AnchorType[AnchorType["HREF"] = 3] = "HREF";
1618
+ AnchorType[AnchorType["DISABLED"] = 4] = "DISABLED";
1609
1619
  })(AnchorType || (AnchorType = {}));
1610
1620
  function anchorTypeForAnchor(anchor, disabled) {
1611
- let type = AnchorType.Disabled;
1621
+ let type = AnchorType.DISABLED;
1612
1622
  if (!disabled && anchor) {
1613
1623
  if (anchor.disabled) {
1614
- type = AnchorType.Disabled;
1624
+ type = AnchorType.DISABLED;
1615
1625
  }
1616
1626
  else if (anchor.ref) {
1617
- type = AnchorType.Sref;
1627
+ type = AnchorType.SREF;
1618
1628
  }
1619
1629
  else if (anchor.onClick) {
1620
- type = AnchorType.Clickable;
1630
+ type = AnchorType.CLICKABLE;
1621
1631
  }
1622
1632
  else if (anchor.url) {
1623
- type = AnchorType.Href;
1633
+ type = AnchorType.HREF;
1634
+ }
1635
+ else {
1636
+ type = AnchorType.PLAIN;
1624
1637
  }
1625
1638
  }
1626
1639
  return type;
1627
1640
  }
1628
- class DbNgxAnchor {
1641
+ class DbxAnchor {
1629
1642
  }
1630
- function ProvideDbNgxAnchor(sourceType) {
1643
+ function ProvideDbxAnchor(sourceType) {
1631
1644
  return [{
1632
- provide: DbNgxAnchor,
1633
- useExisting: sourceType
1645
+ provide: DbxAnchor,
1646
+ useExisting: forwardRef(() => sourceType)
1634
1647
  }];
1635
1648
  }
1636
1649
 
1637
1650
  /**
1638
1651
  * Abstract anchor directive.
1639
1652
  */
1640
- class AbstractDbNgxAnchorDirective {
1653
+ class AbstractDbxAnchorDirective {
1641
1654
  constructor() {
1642
1655
  this._disabled = new BehaviorSubject(false);
1643
1656
  this._anchor = new BehaviorSubject(undefined);
1644
1657
  this.disabled$ = this._disabled.asObservable();
1645
1658
  this.anchor$ = this._anchor.pipe(skipFirstMaybe(), distinctUntilChanged(), shareReplay(1));
1646
- this.type$ = combineLatest([this.disabled$, this.anchor$]).pipe(map(([disabled, anchor]) => anchorTypeForAnchor(anchor, disabled)), distinctUntilChanged(), shareReplay(1));
1659
+ this.type$ = combineLatest([this.disabled$, this.anchor$]).pipe(delay$1(0), map(([disabled, anchor]) => anchorTypeForAnchor(anchor, disabled)), distinctUntilChanged(), shareReplay(1));
1647
1660
  }
1648
1661
  get anchor() {
1649
1662
  return this._anchor.value;
@@ -1658,9 +1671,9 @@ class AbstractDbNgxAnchorDirective {
1658
1671
  this._disabled.next(disabled);
1659
1672
  }
1660
1673
  }
1661
- AbstractDbNgxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1662
- AbstractDbNgxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbNgxAnchorDirective, inputs: { anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
1663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxAnchorDirective, decorators: [{
1674
+ AbstractDbxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1675
+ AbstractDbxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxAnchorDirective, inputs: { anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
1676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
1664
1677
  type: Directive
1665
1678
  }], propDecorators: { anchor: [{
1666
1679
  type: Input
@@ -1668,22 +1681,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1668
1681
  type: Input
1669
1682
  }] } });
1670
1683
 
1671
- var DbNgxRouterTransitionEventType;
1672
- (function (DbNgxRouterTransitionEventType) {
1684
+ var DbxRouterTransitionEventType;
1685
+ (function (DbxRouterTransitionEventType) {
1673
1686
  /**
1674
1687
  * A transition started.
1675
1688
  */
1676
- DbNgxRouterTransitionEventType["START"] = "start";
1689
+ DbxRouterTransitionEventType["START"] = "start";
1677
1690
  /**
1678
1691
  * A transition ended.
1679
1692
  */
1680
- DbNgxRouterTransitionEventType["SUCCESS"] = "ended";
1681
- })(DbNgxRouterTransitionEventType || (DbNgxRouterTransitionEventType = {}));
1693
+ DbxRouterTransitionEventType["SUCCESS"] = "ended";
1694
+ })(DbxRouterTransitionEventType || (DbxRouterTransitionEventType = {}));
1682
1695
 
1683
1696
  /**
1684
- * AngularRouter implementation of DbNgxRouterService and DbNgxRouterTransitionService.
1697
+ * AngularRouter implementation of DbxRouterService and DbxRouterTransitionService.
1685
1698
  */
1686
- class DbNgxAngularRouterService {
1699
+ class DbxAngularRouterService {
1687
1700
  constructor(router, activatedRoute) {
1688
1701
  this.router = router;
1689
1702
  this.activatedRoute = activatedRoute;
@@ -1691,12 +1704,12 @@ class DbNgxAngularRouterService {
1691
1704
  let event;
1692
1705
  if (x instanceof NavigationStart) {
1693
1706
  event = {
1694
- type: DbNgxRouterTransitionEventType.START
1707
+ type: DbxRouterTransitionEventType.START
1695
1708
  };
1696
1709
  }
1697
1710
  else if (x instanceof NavigationEnd) {
1698
1711
  event = {
1699
- type: DbNgxRouterTransitionEventType.SUCCESS
1712
+ type: DbxRouterTransitionEventType.SUCCESS
1700
1713
  };
1701
1714
  }
1702
1715
  return event;
@@ -1711,55 +1724,98 @@ class DbNgxAngularRouterService {
1711
1724
  return this.router.navigateByUrl(ref, Object.assign({}, segueRef.refOptions));
1712
1725
  }
1713
1726
  }
1727
+ isActive(segueRef) {
1728
+ return false; // TODO!
1729
+ }
1730
+ comparePrecision(a, b) {
1731
+ return 0; // TODO!
1732
+ }
1714
1733
  }
1715
- DbNgxAngularRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxAngularRouterService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
1716
- DbNgxAngularRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxAngularRouterService });
1717
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxAngularRouterService, decorators: [{
1734
+ DbxAngularRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxAngularRouterService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
1735
+ DbxAngularRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxAngularRouterService });
1736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxAngularRouterService, decorators: [{
1718
1737
  type: Injectable
1719
1738
  }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }]; } });
1720
1739
 
1721
1740
  /**
1722
1741
  * Router service definition that can route the app and provide routing details.
1723
1742
  */
1724
- class DbNgxRouterService {
1743
+ class DbxRouterService {
1725
1744
  }
1726
1745
 
1727
1746
  /**
1728
1747
  * Router service definition that provides high level information about router transitions.
1729
1748
  */
1730
- class DbNgxRouterTransitionService {
1749
+ class DbxRouterTransitionService {
1731
1750
  }
1732
1751
 
1733
- class DbNgxCoreAngularRouterSegueModule {
1752
+ class DbxCoreAngularRouterSegueModule {
1734
1753
  static forRoot() {
1735
1754
  return {
1736
- ngModule: DbNgxCoreAngularRouterSegueModule,
1755
+ ngModule: DbxCoreAngularRouterSegueModule,
1737
1756
  providers: [
1738
- DbNgxAngularRouterService,
1757
+ DbxAngularRouterService,
1739
1758
  {
1740
- provide: DbNgxRouterService,
1741
- useExisting: DbNgxAngularRouterService
1759
+ provide: DbxRouterService,
1760
+ useExisting: DbxAngularRouterService
1742
1761
  },
1743
1762
  {
1744
- provide: DbNgxRouterTransitionService,
1745
- useExisting: DbNgxAngularRouterService
1763
+ provide: DbxRouterTransitionService,
1764
+ useExisting: DbxAngularRouterService
1746
1765
  }
1747
1766
  ]
1748
1767
  };
1749
1768
  }
1750
1769
  }
1751
- DbNgxCoreAngularRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1752
- DbNgxCoreAngularRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule });
1753
- DbNgxCoreAngularRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule });
1754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule, decorators: [{
1770
+ DbxCoreAngularRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1771
+ DbxCoreAngularRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
1772
+ DbxCoreAngularRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
1773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, decorators: [{
1755
1774
  type: NgModule,
1756
1775
  args: [{}]
1757
1776
  }] });
1758
1777
 
1759
1778
  /**
1760
- * UIRouter implementation of DbNgxRouterService and DbNgxRouterTransitionService.
1779
+ * Used for creating a future state that also captures any children urls.
1780
+ *
1781
+ * This is important for cases, such as /, where multiple urls should target a specific future so that
1782
+ * it can load that module and continue route resolution for the child url.
1783
+ *
1784
+ * For example:
1785
+ * - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
1786
+ * the root module does not know how to handle /a or /b, since they are children of /. We use
1787
+ * futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
1788
+ * to send /a or /b.
1789
+ *
1790
+ * @param state
1791
+ * @param urls
1792
+ * @returns
1793
+ *
1794
+ * @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
1795
+ */
1796
+ function futureStateWithChildrenUrls(state, urls) {
1797
+ const states = [state];
1798
+ mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
1799
+ return states;
1800
+ }
1801
+ /**
1802
+ * Copies the input state and replaces the url in each of them with the passed urls.
1803
+ *
1804
+ * @param state
1805
+ * @param urls
1806
+ * @returns
1807
+ *
1808
+ * @deprecated
1809
+ */
1810
+ function expandFutureStateWithUrls(state, urls) {
1811
+ const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
1812
+ return childrenStates;
1813
+ }
1814
+
1815
+ /**
1816
+ * UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
1761
1817
  */
1762
- class DbNgxUIRouterService {
1818
+ class DbxUIRouterService {
1763
1819
  constructor(state, transitionService, uiRouterGlobals) {
1764
1820
  this.state = state;
1765
1821
  this.transitionService = transitionService;
@@ -1772,60 +1828,103 @@ class DbNgxUIRouterService {
1772
1828
  });
1773
1829
  };
1774
1830
  this.transitionService.onStart({}, () => {
1775
- emitTransition(DbNgxRouterTransitionEventType.START);
1831
+ emitTransition(DbxRouterTransitionEventType.START);
1776
1832
  });
1777
1833
  this.transitionService.onSuccess({}, () => {
1778
- emitTransition(DbNgxRouterTransitionEventType.SUCCESS);
1834
+ emitTransition(DbxRouterTransitionEventType.SUCCESS);
1779
1835
  });
1780
1836
  }
1781
1837
  go(segueRef) {
1782
1838
  const params = Object.assign(Object.assign({}, this.uiRouterGlobals.current.params), segueRef.refParams);
1783
1839
  return this.state.go(segueRef.ref, params, segueRef.refOptions).then(_ => true).catch(_ => false);
1784
1840
  }
1841
+ isActive(segueRef) {
1842
+ const { ref, refParams } = segueRef;
1843
+ const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
1844
+ const active = this.state.includes(targetRef, refParams);
1845
+ return active;
1846
+ }
1847
+ comparePrecision(a, b) {
1848
+ const aLength = a.ref.length;
1849
+ const bLength = b.ref.length;
1850
+ return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
1851
+ }
1785
1852
  }
1786
- DbNgxUIRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxUIRouterService, deps: [{ token: i1$2.StateService }, { token: i1$2.TransitionService }, { token: i1$2.UIRouterGlobals }], target: i0.ɵɵFactoryTarget.Injectable });
1787
- DbNgxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxUIRouterService });
1788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxUIRouterService, decorators: [{
1853
+ DbxUIRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxUIRouterService, deps: [{ token: i1$2.StateService }, { token: i1$2.TransitionService }, { token: i1$2.UIRouterGlobals }], target: i0.ɵɵFactoryTarget.Injectable });
1854
+ DbxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxUIRouterService });
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxUIRouterService, decorators: [{
1789
1856
  type: Injectable
1790
1857
  }], ctorParameters: function () { return [{ type: i1$2.StateService }, { type: i1$2.TransitionService }, { type: i1$2.UIRouterGlobals }]; } });
1791
1858
 
1792
- class DbNgxCoreUIRouterSegueModule {
1859
+ class DbxCoreUIRouterSegueModule {
1793
1860
  static forRoot() {
1794
1861
  return {
1795
- ngModule: DbNgxCoreUIRouterSegueModule,
1862
+ ngModule: DbxCoreUIRouterSegueModule,
1796
1863
  providers: [
1797
- DbNgxUIRouterService,
1864
+ DbxUIRouterService,
1798
1865
  {
1799
- provide: DbNgxRouterService,
1800
- useExisting: DbNgxUIRouterService
1866
+ provide: DbxRouterService,
1867
+ useExisting: DbxUIRouterService
1801
1868
  },
1802
1869
  {
1803
- provide: DbNgxRouterTransitionService,
1804
- useExisting: DbNgxUIRouterService
1870
+ provide: DbxRouterTransitionService,
1871
+ useExisting: DbxUIRouterService
1805
1872
  }
1806
1873
  ]
1807
1874
  };
1808
1875
  }
1809
1876
  }
1810
- DbNgxCoreUIRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1811
- DbNgxCoreUIRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule });
1812
- DbNgxCoreUIRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule });
1813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule, decorators: [{
1877
+ DbxCoreUIRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1878
+ DbxCoreUIRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule });
1879
+ DbxCoreUIRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule });
1880
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule, decorators: [{
1814
1881
  type: NgModule,
1815
1882
  args: [{}]
1816
1883
  }] });
1817
1884
 
1885
+ /**
1886
+ * Convenience function for filtering success from the input observable.
1887
+ *
1888
+ * @param obs
1889
+ * @returns
1890
+ */
1891
+ function successTransition(obs) {
1892
+ return obs.pipe(filterTransitionSuccess());
1893
+ }
1894
+ function filterTransitionSuccess() {
1895
+ return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
1896
+ }
1897
+ function filterTransitionEvent(type) {
1898
+ return filter$1(x => x.type === type);
1899
+ }
1900
+
1818
1901
  /**
1819
1902
  * Abstract directive that listens to onSuccess transition events and runs a function.
1820
1903
  */
1821
- class AbstractTransitionWatcherDirective {
1822
- constructor(dbNgxRouterTransitionService, ngZone) {
1904
+ class AbstractTransitionDirective {
1905
+ constructor(dbNgxRouterTransitionService) {
1823
1906
  this.dbNgxRouterTransitionService = dbNgxRouterTransitionService;
1907
+ this.transitionSuccess$ = successTransition(this.dbNgxRouterTransitionService.transitions$);
1908
+ this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith$1(undefined));
1909
+ }
1910
+ }
1911
+ AbstractTransitionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionDirective, deps: [{ token: DbxRouterTransitionService }], target: i0.ɵɵFactoryTarget.Directive });
1912
+ AbstractTransitionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionDirective, ngImport: i0 });
1913
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionDirective, decorators: [{
1914
+ type: Directive
1915
+ }], ctorParameters: function () { return [{ type: DbxRouterTransitionService }]; } });
1916
+
1917
+ /**
1918
+ * Abstract directive that listens to onSuccess transition events and runs a function.
1919
+ */
1920
+ class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
1921
+ constructor(dbNgxRouterTransitionService, ngZone) {
1922
+ super(dbNgxRouterTransitionService);
1824
1923
  this.ngZone = ngZone;
1825
1924
  this._transitionSub = new SubscriptionObject();
1826
1925
  }
1827
1926
  ngOnInit() {
1828
- this._transitionSub.subscription = this.dbNgxRouterTransitionService.transitions$.pipe(filter(x => x.type === DbNgxRouterTransitionEventType.SUCCESS)).subscribe(() => {
1927
+ this._transitionSub.subscription = this.transitionSuccess$.subscribe(() => {
1829
1928
  this.updateForSuccessfulTransition();
1830
1929
  });
1831
1930
  }
@@ -1837,11 +1936,11 @@ class AbstractTransitionWatcherDirective {
1837
1936
  this.ngZone.run(() => this.updateForSuccessfulTransition());
1838
1937
  }
1839
1938
  }
1840
- AbstractTransitionWatcherDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, deps: [{ token: DbNgxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1841
- AbstractTransitionWatcherDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionWatcherDirective, ngImport: i0 });
1939
+ AbstractTransitionWatcherDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, deps: [{ token: DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1940
+ AbstractTransitionWatcherDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionWatcherDirective, usesInheritance: true, ngImport: i0 });
1842
1941
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, decorators: [{
1843
1942
  type: Directive
1844
- }], ctorParameters: function () { return [{ type: DbNgxRouterTransitionService }, { type: i0.NgZone }]; } });
1943
+ }], ctorParameters: function () { return [{ type: DbxRouterTransitionService }, { type: i0.NgZone }]; } });
1845
1944
 
1846
1945
  function refStringToSegueRef(ref, options) {
1847
1946
  return Object.assign(Object.assign({}, options), { ref });
@@ -1851,7 +1950,7 @@ function mapRefStringObsToSegueRefObs(obs, options) {
1851
1950
  }
1852
1951
 
1853
1952
  // MARK: Button Directives
1854
- class DbNgxButtonSegueDirective extends AbstractSubscriptionDirective {
1953
+ class DbxButtonSegueDirective extends AbstractSubscriptionDirective {
1855
1954
  constructor(dbxButton, dbxRouterService) {
1856
1955
  super();
1857
1956
  this.dbxButton = dbxButton;
@@ -1871,14 +1970,14 @@ class DbNgxButtonSegueDirective extends AbstractSubscriptionDirective {
1871
1970
  })))).subscribe();
1872
1971
  }
1873
1972
  }
1874
- DbNgxButtonSegueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonSegueDirective, deps: [{ token: DbNgxButton }, { token: DbNgxRouterService }], target: i0.ɵɵFactoryTarget.Directive });
1875
- DbNgxButtonSegueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxButtonSegueDirective, selector: "[dbxButtonSegue]", inputs: { segueRef: ["dbxButtonSegue", "segueRef"] }, usesInheritance: true, ngImport: i0 });
1876
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonSegueDirective, decorators: [{
1973
+ DbxButtonSegueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonSegueDirective, deps: [{ token: DbxButton }, { token: DbxRouterService }], target: i0.ɵɵFactoryTarget.Directive });
1974
+ DbxButtonSegueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxButtonSegueDirective, selector: "[dbxButtonSegue]", inputs: { segueRef: ["dbxButtonSegue", "segueRef"] }, usesInheritance: true, ngImport: i0 });
1975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonSegueDirective, decorators: [{
1877
1976
  type: Directive,
1878
1977
  args: [{
1879
1978
  selector: '[dbxButtonSegue]'
1880
1979
  }]
1881
- }], ctorParameters: function () { return [{ type: DbNgxButton }, { type: DbNgxRouterService }]; }, propDecorators: { segueRef: [{
1980
+ }], ctorParameters: function () { return [{ type: DbxButton }, { type: DbxRouterService }]; }, propDecorators: { segueRef: [{
1882
1981
  type: Input,
1883
1982
  args: ['dbxButtonSegue']
1884
1983
  }] } });
@@ -1886,7 +1985,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1886
1985
  /**
1887
1986
  * Abstract button component.
1888
1987
  */
1889
- class AbstractDbNgxButtonDirective extends AbstractSubscriptionDirective {
1988
+ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
1890
1989
  constructor() {
1891
1990
  super();
1892
1991
  this._disabled = new BehaviorSubject(false);
@@ -1954,9 +2053,9 @@ class AbstractDbNgxButtonDirective extends AbstractSubscriptionDirective {
1954
2053
  this.buttonClick.emit();
1955
2054
  }
1956
2055
  }
1957
- AbstractDbNgxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1958
- AbstractDbNgxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbNgxButtonDirective, inputs: { disabled: "disabled", working: "working", icon: "icon", text: "text" }, outputs: { buttonClick: "buttonClick" }, usesInheritance: true, ngImport: i0 });
1959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxButtonDirective, decorators: [{
2056
+ AbstractDbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2057
+ AbstractDbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxButtonDirective, inputs: { disabled: "disabled", working: "working", icon: "icon", text: "text" }, outputs: { buttonClick: "buttonClick" }, usesInheritance: true, ngImport: i0 });
2058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxButtonDirective, decorators: [{
1960
2059
  type: Directive
1961
2060
  }], ctorParameters: function () { return []; }, propDecorators: { disabled: [{
1962
2061
  type: Input
@@ -1971,18 +2070,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1971
2070
  }] } });
1972
2071
  // MARK: Implementation
1973
2072
  /**
1974
- * Provides an DbNgxButton directive.
2073
+ * Provides an DbxButton directive.
1975
2074
  */
1976
- class DbNgxButtonDirective extends AbstractDbNgxButtonDirective {
2075
+ class DbxButtonDirective extends AbstractDbxButtonDirective {
1977
2076
  }
1978
- DbNgxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1979
- DbNgxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxButtonDirective, selector: "[dbxButton]", providers: ProvideDbNgxButton(DbNgxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
1980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonDirective, decorators: [{
2077
+ DbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2078
+ DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxButtonDirective, selector: "[dbxButton]", providers: ProvideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
2079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonDirective, decorators: [{
1981
2080
  type: Directive,
1982
2081
  args: [{
1983
2082
  selector: '[dbxButton]',
1984
2083
  exportAs: 'dbxButton',
1985
- providers: ProvideDbNgxButton(DbNgxButtonDirective)
2084
+ providers: ProvideDbxButton(DbxButtonDirective)
1986
2085
  }]
1987
2086
  }] });
1988
2087
 
@@ -1991,7 +2090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1991
2090
  *
1992
2091
  * It will be set working when the context is set loading.
1993
2092
  */
1994
- class DbNgxLoadingButtonDirective extends AbstractSubscriptionDirective {
2093
+ class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
1995
2094
  constructor(button, ngZone) {
1996
2095
  super();
1997
2096
  this.button = button;
@@ -2010,15 +2109,15 @@ class DbNgxLoadingButtonDirective extends AbstractSubscriptionDirective {
2010
2109
  this.sub = subscription;
2011
2110
  }
2012
2111
  }
2013
- DbNgxLoadingButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxLoadingButtonDirective, deps: [{ token: DbNgxButton, host: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2014
- DbNgxLoadingButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxLoadingButtonDirective, selector: "[dbxLoadingButton]", inputs: { context: ["dbxLoadingButton", "context"] }, usesInheritance: true, ngImport: i0 });
2015
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxLoadingButtonDirective, decorators: [{
2112
+ DbxLoadingButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxLoadingButtonDirective, deps: [{ token: DbxButton, host: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2113
+ DbxLoadingButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxLoadingButtonDirective, selector: "[dbxLoadingButton]", inputs: { context: ["dbxLoadingButton", "context"] }, usesInheritance: true, ngImport: i0 });
2114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxLoadingButtonDirective, decorators: [{
2016
2115
  type: Directive,
2017
2116
  args: [{
2018
2117
  selector: '[dbxLoadingButton]'
2019
2118
  }]
2020
2119
  }], ctorParameters: function () {
2021
- return [{ type: DbNgxButton, decorators: [{
2120
+ return [{ type: DbxButton, decorators: [{
2022
2121
  type: Host
2023
2122
  }] }, { type: i0.NgZone }];
2024
2123
  }, propDecorators: { context: [{
@@ -2026,36 +2125,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2026
2125
  args: ['dbxLoadingButton']
2027
2126
  }] } });
2028
2127
 
2029
- class DbNgxCoreButtonModule {
2030
- }
2031
- DbNgxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2032
- DbNgxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, declarations: [DbNgxButtonDirective,
2033
- DbNgxLoadingButtonDirective,
2034
- DbNgxActionButtonTriggerDirective,
2035
- DbNgxActionButtonDirective,
2036
- DbNgxButtonSegueDirective], exports: [DbNgxButtonDirective,
2037
- DbNgxLoadingButtonDirective,
2038
- DbNgxActionButtonTriggerDirective,
2039
- DbNgxActionButtonDirective,
2040
- DbNgxButtonSegueDirective] });
2041
- DbNgxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, imports: [[]] });
2042
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, decorators: [{
2128
+ class DbxCoreButtonModule {
2129
+ }
2130
+ DbxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2131
+ DbxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, declarations: [DbxButtonDirective,
2132
+ DbxLoadingButtonDirective,
2133
+ DbxActionButtonTriggerDirective,
2134
+ DbxActionButtonDirective,
2135
+ DbxButtonSegueDirective], exports: [DbxButtonDirective,
2136
+ DbxLoadingButtonDirective,
2137
+ DbxActionButtonTriggerDirective,
2138
+ DbxActionButtonDirective,
2139
+ DbxButtonSegueDirective] });
2140
+ DbxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, imports: [[]] });
2141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
2043
2142
  type: NgModule,
2044
2143
  args: [{
2045
2144
  imports: [],
2046
2145
  declarations: [
2047
- DbNgxButtonDirective,
2048
- DbNgxLoadingButtonDirective,
2049
- DbNgxActionButtonTriggerDirective,
2050
- DbNgxActionButtonDirective,
2051
- DbNgxButtonSegueDirective
2146
+ DbxButtonDirective,
2147
+ DbxLoadingButtonDirective,
2148
+ DbxActionButtonTriggerDirective,
2149
+ DbxActionButtonDirective,
2150
+ DbxButtonSegueDirective
2052
2151
  ],
2053
2152
  exports: [
2054
- DbNgxButtonDirective,
2055
- DbNgxLoadingButtonDirective,
2056
- DbNgxActionButtonTriggerDirective,
2057
- DbNgxActionButtonDirective,
2058
- DbNgxButtonSegueDirective
2153
+ DbxButtonDirective,
2154
+ DbxLoadingButtonDirective,
2155
+ DbxActionButtonTriggerDirective,
2156
+ DbxActionButtonDirective,
2157
+ DbxButtonSegueDirective
2059
2158
  ],
2060
2159
  }]
2061
2160
  }] });
@@ -2234,8 +2333,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2234
2333
  class DateDistancePipe {
2235
2334
  transform(input, to, unavailable = 'Not Available') {
2236
2335
  if (input) {
2237
- const defaultTo = !to;
2238
- if (defaultTo) {
2336
+ const useDefaultTo = !to;
2337
+ if (useDefaultTo) {
2239
2338
  to = new Date();
2240
2339
  }
2241
2340
  const from = ToJsDatePipe.toJsDate(input);
@@ -2243,7 +2342,7 @@ class DateDistancePipe {
2243
2342
  const toStart = startOfDay(to);
2244
2343
  if (isSameDay(fromStart, toStart)) {
2245
2344
  let text;
2246
- if (defaultTo || isSameDay(from, new Date())) {
2345
+ if (useDefaultTo || isSameDay(from, new Date())) {
2247
2346
  text = 'Today';
2248
2347
  }
2249
2348
  else {
@@ -2269,10 +2368,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2269
2368
  args: [{ name: 'dateDistance', pure: false }]
2270
2369
  }] });
2271
2370
 
2272
- class DbNgxDatePipeModule {
2371
+ class DbxDatePipeModule {
2273
2372
  }
2274
- DbNgxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2275
- DbNgxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, declarations: [DateFromToTimePipe,
2373
+ DbxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2374
+ DbxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, declarations: [DateFromToTimePipe,
2276
2375
  DateFormatDistancePipe,
2277
2376
  MinutesStringPipe,
2278
2377
  TimeDistanceCountdownPipe,
@@ -2287,8 +2386,8 @@ DbNgxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
2287
2386
  DateDistancePipe,
2288
2387
  ToJsDatePipe,
2289
2388
  ToMinutesPipe] });
2290
- DbNgxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule });
2291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, decorators: [{
2389
+ DbxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule });
2390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, decorators: [{
2292
2391
  type: NgModule,
2293
2392
  args: [{
2294
2393
  exports: [
@@ -2315,10 +2414,317 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2315
2414
  }] });
2316
2415
 
2317
2416
  /**
2318
- * Instance used by components to inject content based on the configuration into the view.
2417
+ * Abstract FilterSource implementation.
2319
2418
  */
2320
- class DbNgxInjectedComponentInstance {
2419
+ class AbstractFilterSourceDirective {
2321
2420
  constructor() {
2421
+ this._defaultFilterSource = new FilterSourceInstance();
2422
+ this.filter$ = this._defaultFilterSource.filter$;
2423
+ }
2424
+ ngOnInit() {
2425
+ this._defaultFilterSource.setDefaultFilter(this.makeDefaultFilter());
2426
+ }
2427
+ ngOnDestroy() {
2428
+ this._defaultFilterSource.destroy();
2429
+ }
2430
+ initWithFilter(filterObs) {
2431
+ this._defaultFilterSource.initWithFilter(filterObs);
2432
+ }
2433
+ setFilter(filter) {
2434
+ this._defaultFilterSource.setFilter(filter);
2435
+ }
2436
+ resetFilter() {
2437
+ this._defaultFilterSource.resetFilter();
2438
+ }
2439
+ // MARK: Internal
2440
+ makeDefaultFilter() {
2441
+ return of(undefined);
2442
+ }
2443
+ }
2444
+ AbstractFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2445
+ AbstractFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractFilterSourceDirective, ngImport: i0 });
2446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceDirective, decorators: [{
2447
+ type: Directive
2448
+ }] });
2449
+
2450
+ /**
2451
+ * Abstract filter source for components that use an action to filter.
2452
+ */
2453
+ class AbstractActionFilterSourceDirective extends AbstractFilterSourceDirective {
2454
+ constructor() {
2455
+ super(...arguments);
2456
+ /**
2457
+ * Pre-set action handler for the template to use to set the filter.
2458
+ */
2459
+ this.setFilterAction = (filter) => {
2460
+ this.setFilter(filter);
2461
+ return of(true);
2462
+ };
2463
+ }
2464
+ applyFilter() {
2465
+ this.filterAction.setIsModified(true); // Force setting modified.
2466
+ this.filterAction.trigger();
2467
+ }
2468
+ }
2469
+ AbstractActionFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractActionFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2470
+ AbstractActionFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractActionFilterSourceDirective, viewQueries: [{ propertyName: "filterAction", first: true, predicate: ActionContextStoreSourceInstance, descendants: true, read: ActionContextStoreSourceInstance, static: true }], usesInheritance: true, ngImport: i0 });
2471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractActionFilterSourceDirective, decorators: [{
2472
+ type: Directive
2473
+ }], propDecorators: { filterAction: [{
2474
+ type: ViewChild,
2475
+ args: [ActionContextStoreSourceInstance, { static: true, read: ActionContextStoreSourceInstance }]
2476
+ }] } });
2477
+
2478
+ /**
2479
+ * Abstract FilterSourceConnector directive.
2480
+ */
2481
+ class AbstractFilterSourceConnectorDirective {
2482
+ constructor() {
2483
+ this._source = new BehaviorSubject(undefined);
2484
+ this.filter$ = this._source.pipe(switchMap$1(x => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.filter$) !== null && _a !== void 0 ? _a : of(undefined); }), shareReplay$1(1));
2485
+ }
2486
+ ngOnDestroy() {
2487
+ this._source.complete();
2488
+ }
2489
+ connectWithSource(filterSource) {
2490
+ this._source.next(filterSource);
2491
+ }
2492
+ }
2493
+ AbstractFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2494
+ AbstractFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractFilterSourceConnectorDirective, ngImport: i0 });
2495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, decorators: [{
2496
+ type: Directive
2497
+ }] });
2498
+
2499
+ /**
2500
+ * Angular provider convenience function for a FilterSource.
2501
+ */
2502
+ function ProvideFilterSource(sourceType) {
2503
+ return [{
2504
+ provide: FilterSource,
2505
+ useExisting: forwardRef(() => sourceType)
2506
+ }];
2507
+ }
2508
+ /**
2509
+ * Angular provider convenience function for a FilterSourceConnector.
2510
+ */
2511
+ function ProvideFilterSourceConnector(sourceType) {
2512
+ return [{
2513
+ provide: FilterSourceConnector,
2514
+ useExisting: forwardRef(() => sourceType)
2515
+ }, {
2516
+ provide: FilterSource,
2517
+ useExisting: forwardRef(() => sourceType)
2518
+ }];
2519
+ }
2520
+
2521
+ /**
2522
+ * Used as a FilterSource and FilterSourceConnector.
2523
+ */
2524
+ class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
2525
+ }
2526
+ DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2527
+ DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
2528
+ ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
2529
+ ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
2530
+ ], usesInheritance: true, ngImport: i0 });
2531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
2532
+ type: Directive,
2533
+ args: [{
2534
+ selector: '[dbxFilterSourceConnector]',
2535
+ providers: [
2536
+ ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
2537
+ ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
2538
+ ]
2539
+ }]
2540
+ }] });
2541
+
2542
+ /**
2543
+ * Provides a FilterSource from a parent FilterMap.
2544
+ */
2545
+ class AbstractDbxFilterMapInstanceDirective {
2546
+ constructor(dbxFilterMap) {
2547
+ this.dbxFilterMap = dbxFilterMap;
2548
+ this._key = new BehaviorSubject(undefined);
2549
+ this.key$ = this._key.pipe(filterMaybe());
2550
+ this.instance$ = this.dbxFilterMap.instanceObsForKeyObs(this.key$);
2551
+ }
2552
+ ngOnDestroy() {
2553
+ this._key.complete();
2554
+ }
2555
+ }
2556
+ AbstractDbxFilterMapInstanceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, deps: [{ token: i1$3.FilterMap }], target: i0.ɵɵFactoryTarget.Directive });
2557
+ AbstractDbxFilterMapInstanceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxFilterMapInstanceDirective, ngImport: i0 });
2558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, decorators: [{
2559
+ type: Directive
2560
+ }], ctorParameters: function () { return [{ type: i1$3.FilterMap }]; } });
2561
+
2562
+ /**
2563
+ * Provides a FilterSource from a parent FilterMap.
2564
+ */
2565
+ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
2566
+ constructor() {
2567
+ super(...arguments);
2568
+ this.filter$ = this.instance$.pipe(switchMap$1(x => x.filter$));
2569
+ }
2570
+ get key() {
2571
+ return this._key.value;
2572
+ }
2573
+ set key(key) {
2574
+ this._key.next(key);
2575
+ }
2576
+ initWithFilter(filterObs) {
2577
+ this.instance$.pipe(first$1()).subscribe((x) => x.initWithFilter(filterObs));
2578
+ }
2579
+ }
2580
+ DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2581
+ DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
2582
+ ...ProvideFilterSource(DbxFilterMapSourceDirective)
2583
+ ], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
2584
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
2585
+ type: Directive,
2586
+ args: [{
2587
+ selector: '[dbxFilterMapSource]',
2588
+ exportAs: 'dbxFilterMapSource',
2589
+ providers: [
2590
+ ...ProvideFilterSource(DbxFilterMapSourceDirective)
2591
+ ]
2592
+ }]
2593
+ }], propDecorators: { key: [{
2594
+ type: Input,
2595
+ args: ['dbxFilterMapSource']
2596
+ }] } });
2597
+
2598
+ /**
2599
+ * Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
2600
+ */
2601
+ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
2602
+ get key() {
2603
+ return this._key.value;
2604
+ }
2605
+ set key(key) {
2606
+ this._key.next(key);
2607
+ }
2608
+ // MARK: FilterSourceConnector
2609
+ connectWithSource(filterSource) {
2610
+ this.instance$.pipe(first$1()).subscribe((x) => x.connectWithSource(filterSource));
2611
+ }
2612
+ }
2613
+ DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2614
+ DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
2615
+ ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
2616
+ ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
2617
+ ], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
2618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
2619
+ type: Directive,
2620
+ args: [{
2621
+ selector: '[dbxFilterMapSourceConnector]',
2622
+ exportAs: 'dbxFilterMapSourceConnector',
2623
+ providers: [
2624
+ ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
2625
+ ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
2626
+ ]
2627
+ }]
2628
+ }], propDecorators: { key: [{
2629
+ type: Input,
2630
+ args: ['dbxFilterMapSourceConnector']
2631
+ }] } });
2632
+
2633
+ /**
2634
+ * Direction that provides an FilterMap.
2635
+ */
2636
+ class DbxFilterMapDirective {
2637
+ constructor(filterMap) {
2638
+ this.filterMap = filterMap;
2639
+ }
2640
+ ngOnDestroy() {
2641
+ this.filterMap.destroy();
2642
+ }
2643
+ }
2644
+ DbxFilterMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapDirective, deps: [{ token: i1$3.FilterMap }], target: i0.ɵɵFactoryTarget.Directive });
2645
+ DbxFilterMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapDirective, selector: "[dbxFilterMap]", providers: [FilterMap], exportAs: ["dbxFilterMap"], ngImport: i0 });
2646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapDirective, decorators: [{
2647
+ type: Directive,
2648
+ args: [{
2649
+ selector: '[dbxFilterMap]',
2650
+ exportAs: 'dbxFilterMap',
2651
+ providers: [FilterMap]
2652
+ }]
2653
+ }], ctorParameters: function () { return [{ type: i1$3.FilterMap }]; } });
2654
+
2655
+ /**
2656
+ * Basic filter source directive.
2657
+ */
2658
+ class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
2659
+ }
2660
+ DbxFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2661
+ DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: ProvideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
2662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
2663
+ type: Directive,
2664
+ args: [{
2665
+ selector: '[dbxFilterSource]',
2666
+ providers: ProvideFilterSource(DbxFilterSourceDirective)
2667
+ }]
2668
+ }] });
2669
+
2670
+ class DbxCoreFilterModule {
2671
+ }
2672
+ DbxCoreFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2673
+ DbxCoreFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, declarations: [DbxFilterSourceDirective,
2674
+ DbxFilterSourceConnectorDirective,
2675
+ DbxFilterMapDirective,
2676
+ DbxFilterMapSourceConnectorDirective,
2677
+ DbxFilterMapSourceDirective], imports: [CommonModule], exports: [DbxFilterSourceDirective,
2678
+ DbxFilterSourceConnectorDirective,
2679
+ DbxFilterMapDirective,
2680
+ DbxFilterMapSourceConnectorDirective,
2681
+ DbxFilterMapSourceDirective] });
2682
+ DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, imports: [[
2683
+ CommonModule
2684
+ ]] });
2685
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
2686
+ type: NgModule,
2687
+ args: [{
2688
+ imports: [
2689
+ CommonModule
2690
+ ],
2691
+ declarations: [
2692
+ DbxFilterSourceDirective,
2693
+ DbxFilterSourceConnectorDirective,
2694
+ DbxFilterMapDirective,
2695
+ DbxFilterMapSourceConnectorDirective,
2696
+ DbxFilterMapSourceDirective,
2697
+ ],
2698
+ exports: [
2699
+ DbxFilterSourceDirective,
2700
+ DbxFilterSourceConnectorDirective,
2701
+ DbxFilterMapDirective,
2702
+ DbxFilterMapSourceConnectorDirective,
2703
+ DbxFilterMapSourceDirective,
2704
+ ]
2705
+ }]
2706
+ }] });
2707
+
2708
+ const DBX_INJECTED_COMPONENT_DATA = new InjectionToken('DbxInjectedComponentConfigData');
2709
+ /**
2710
+ * Merges multiple configurations into a single configuration.
2711
+ *
2712
+ * @param configs
2713
+ * @returns
2714
+ */
2715
+ function mergeDbxInjectedComponentConfigs(configs) {
2716
+ const providers = mergeArrays(filterMaybeValues(configs).map(x => x.providers));
2717
+ const result = mergeObjects(configs);
2718
+ result.providers = providers;
2719
+ return result;
2720
+ }
2721
+
2722
+ /**
2723
+ * Instance used by components to inject content based on the configuration into the view.
2724
+ */
2725
+ class DbxInjectedComponentInstance {
2726
+ constructor(_injector) {
2727
+ this._injector = _injector;
2322
2728
  this._subscriptionObject = new SubscriptionObject();
2323
2729
  this._config = new BehaviorSubject(undefined);
2324
2730
  this._template = new BehaviorSubject(undefined);
@@ -2385,8 +2791,19 @@ class DbNgxInjectedComponentInstance {
2385
2791
  }
2386
2792
  _initComponent(config, content) {
2387
2793
  content.clear();
2388
- const { init, injector, componentClass } = config;
2389
- const componentRef = content.createComponent(componentClass, { injector });
2794
+ const { init, injector: inputInjector, providers, ngModuleRef, componentClass, data } = config;
2795
+ let injector;
2796
+ const parentInjector = inputInjector !== null && inputInjector !== void 0 ? inputInjector : this._injector;
2797
+ if (Boolean(providers || data)) {
2798
+ injector = Injector.create({
2799
+ parent: parentInjector,
2800
+ providers: mergeArrayOrValueIntoArray([{
2801
+ provide: DBX_INJECTED_COMPONENT_DATA,
2802
+ useValue: data
2803
+ }], providers !== null && providers !== void 0 ? providers : [])
2804
+ });
2805
+ }
2806
+ const componentRef = content.createComponent(componentClass, { injector, ngModuleRef });
2390
2807
  const instance = componentRef.instance;
2391
2808
  if (init) {
2392
2809
  init(instance);
@@ -2415,9 +2832,10 @@ class DbNgxInjectedComponentInstance {
2415
2832
  /**
2416
2833
  * Abstract directive that injects content based on the configuration into the view.
2417
2834
  */
2418
- class AbstractDbNgxInjectedDirective {
2419
- constructor() {
2420
- this._instance = new DbNgxInjectedComponentInstance();
2835
+ class AbstractDbxInjectedDirective {
2836
+ constructor(_injector) {
2837
+ this._injector = _injector;
2838
+ this._instance = new DbxInjectedComponentInstance(this._injector);
2421
2839
  }
2422
2840
  ngOnInit() {
2423
2841
  this._instance.init();
@@ -2435,16 +2853,16 @@ class AbstractDbNgxInjectedDirective {
2435
2853
  this._instance.content = content;
2436
2854
  }
2437
2855
  }
2438
- AbstractDbNgxInjectedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxInjectedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2439
- AbstractDbNgxInjectedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbNgxInjectedDirective, ngImport: i0 });
2440
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxInjectedDirective, decorators: [{
2856
+ AbstractDbxInjectedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxInjectedDirective, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
2857
+ AbstractDbxInjectedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxInjectedDirective, ngImport: i0 });
2858
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxInjectedDirective, decorators: [{
2441
2859
  type: Directive
2442
- }] });
2860
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
2443
2861
 
2444
2862
  /**
2445
2863
  * Component that injects content based on the configuration into the view.
2446
2864
  */
2447
- class DbNgxInjectedComponent extends AbstractDbNgxInjectedDirective {
2865
+ class DbxInjectedComponent extends AbstractDbxInjectedDirective {
2448
2866
  set config(config) {
2449
2867
  this.setConfig(config);
2450
2868
  }
@@ -2455,9 +2873,9 @@ class DbNgxInjectedComponent extends AbstractDbNgxInjectedDirective {
2455
2873
  this.setContent(content);
2456
2874
  }
2457
2875
  }
2458
- DbNgxInjectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2459
- DbNgxInjectedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: { config: "config", template: "template" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `<ng-template #content></ng-template>`, isInline: true });
2460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponent, decorators: [{
2876
+ DbxInjectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2877
+ DbxInjectedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: { config: "config", template: "template" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `<ng-template #content></ng-template>`, isInline: true });
2878
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponent, decorators: [{
2461
2879
  type: Component,
2462
2880
  args: [{
2463
2881
  selector: 'dbx-injected-content, [dbx-injected-content]',
@@ -2472,24 +2890,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2472
2890
  args: ['content', { static: true, read: ViewContainerRef }]
2473
2891
  }] } });
2474
2892
 
2475
- class DbNgxInjectedComponentModule {
2893
+ class DbxInjectedComponentModule {
2476
2894
  }
2477
- DbNgxInjectedComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2478
- DbNgxInjectedComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, declarations: [DbNgxInjectedComponent], imports: [CommonModule], exports: [DbNgxInjectedComponent] });
2479
- DbNgxInjectedComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, imports: [[
2895
+ DbxInjectedComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2896
+ DbxInjectedComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, declarations: [DbxInjectedComponent], imports: [CommonModule], exports: [DbxInjectedComponent] });
2897
+ DbxInjectedComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, imports: [[
2480
2898
  CommonModule
2481
2899
  ]] });
2482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, decorators: [{
2900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, decorators: [{
2483
2901
  type: NgModule,
2484
2902
  args: [{
2485
2903
  imports: [
2486
2904
  CommonModule
2487
2905
  ],
2488
2906
  declarations: [
2489
- DbNgxInjectedComponent
2907
+ DbxInjectedComponent
2490
2908
  ],
2491
2909
  exports: [
2492
- DbNgxInjectedComponent
2910
+ DbxInjectedComponent
2493
2911
  ],
2494
2912
  }]
2495
2913
  }] });
@@ -2611,7 +3029,7 @@ class SimpleStorageAccessor {
2611
3029
  const expiresIn = this._config.expiresIn;
2612
3030
  if (expiresIn) {
2613
3031
  if (storeData.storedAt) {
2614
- return timeNumberHasExpired(storeData.storedAt, expiresIn);
3032
+ return timeHasExpired(storeData.storedAt, expiresIn);
2615
3033
  }
2616
3034
  return true;
2617
3035
  }
@@ -2694,8 +3112,8 @@ class StringStorageAccessor {
2694
3112
  }
2695
3113
  }
2696
3114
 
2697
- const DEFAULT_STORAGE_OBJECT_TOKEN = new InjectionToken('DEFAULT_STORAGE_OBJECT');
2698
- const DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN = new InjectionToken('DEFAULT_STORAGE_ACCESSOR_FACTORY');
3115
+ const DEFAULT_STORAGE_OBJECT_TOKEN = new InjectionToken('DBX_UTIL_DEFAULT_STORAGE_OBJECT');
3116
+ const DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN = new InjectionToken('DBX_UTIL_DEFAULT_STORAGE_ACCESSOR_FACTORY');
2699
3117
 
2700
3118
  /**
2701
3119
  * Used for building SimpleStorageAccessor instances from SimpleStorageAccessorConfig.
@@ -2720,7 +3138,7 @@ SimpleStorageAccessorFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "
2720
3138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: SimpleStorageAccessorFactory, decorators: [{
2721
3139
  type: Injectable
2722
3140
  }], ctorParameters: function () {
2723
- return [{ type: i1$3.FullStorageObject, decorators: [{
3141
+ return [{ type: i1$4.FullStorageObject, decorators: [{
2724
3142
  type: Inject,
2725
3143
  args: [DEFAULT_STORAGE_OBJECT_TOKEN]
2726
3144
  }] }];
@@ -2809,10 +3227,10 @@ function defaultStorageObjectFactory() {
2809
3227
  }
2810
3228
  return storageObject;
2811
3229
  }
2812
- class AppStorageModule {
3230
+ class DbxStorageModule {
2813
3231
  static forRoot() {
2814
3232
  return {
2815
- ngModule: AppStorageModule,
3233
+ ngModule: DbxStorageModule,
2816
3234
  providers: [{
2817
3235
  provide: DEFAULT_STORAGE_OBJECT_TOKEN,
2818
3236
  useFactory: defaultStorageObjectFactory
@@ -2826,13 +3244,23 @@ class AppStorageModule {
2826
3244
  };
2827
3245
  }
2828
3246
  }
2829
- AppStorageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2830
- AppStorageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule });
2831
- AppStorageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule });
2832
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule, decorators: [{
3247
+ DbxStorageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3248
+ DbxStorageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule });
3249
+ DbxStorageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule });
3250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule, decorators: [{
2833
3251
  type: NgModule
2834
3252
  }] });
2835
3253
 
3254
+ /**
3255
+ * Convenience function used within observables for views that need to detect changes after a value changes.
3256
+ *
3257
+ * @param cdRef
3258
+ * @param timeout
3259
+ * @returns
3260
+ */
3261
+ function tapDetectChanges(cdRef, timeout = 0) {
3262
+ return tap$1(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
3263
+ }
2836
3264
  /**
2837
3265
  * Triggers a detection change on the input view as long as the view has not been destroyed.
2838
3266
  *
@@ -2871,5 +3299,5 @@ function checkNgContentWrapperHasContent(ref) {
2871
3299
  * Generated bundle index. Do not edit.
2872
3300
  */
2873
3301
 
2874
- export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY, AbstractDbNgxAnchorDirective, AbstractDbNgxButtonDirective, AbstractDbNgxInjectedDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionWatcherDirective, ActionContextBaseSource, ActionContextMachine, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceInstance, ActionContextStoreSourceMap, ActionSnackbarDefaultType, ActionSnackbarEventType, ActionState, AnchorType, AppStorageModule, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_SNACKBAR_UNDO_DIRECTIVE_DURATION, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbNgxActionAutoModifyDirective, DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionButtonDirective, DbNgxActionButtonTriggerDirective, DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextLoggerDirective, DbNgxActionContextMapDirective, DbNgxActionContextMapDirectiveSourceInstance, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective, DbNgxActionFromMapDirective, DbNgxActionHandlerDirective, DbNgxActionMapSourceDirective, DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionValueDirective, DbNgxActionWorkingComponent, DbNgxAnchor, DbNgxAngularRouterService, DbNgxButton, DbNgxButtonDirective, DbNgxButtonSegueDirective, DbNgxCoreActionModule, DbNgxCoreAngularRouterSegueModule, DbNgxCoreButtonModule, DbNgxCoreUIRouterSegueModule, DbNgxDatePipeModule, DbNgxInjectedComponent, DbNgxInjectedComponentInstance, DbNgxInjectedComponentModule, DbNgxLoadingButtonDirective, DbNgxRouterService, DbNgxRouterTransitionEventType, DbNgxRouterTransitionService, DbNgxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, MemoryStorageObject, MinutesStringPipe, ProvideActionStoreSource, ProvideDbNgxAnchor, ProvideDbNgxButton, ProvideSecondaryActionStoreSource, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, TimeDistanceCountdownPipe, TimeDistancePipe, ToJsDatePipe, ToMinutesPipe, WorkHandlerContext, WorkHandlerContextSourceDelegate, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceInstanceFactory, actionContextStoreSourcePipe, anchorTypeForAnchor, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, defaultStorageObjectFactory, handleWorkValueReadyFn, handleWorkValueReadyWithConfigFn, isActionContextDisabled, isActionContextEnabled, isDisabledActionContextState, isIdleActionState, isWorkingActionState, mapRefStringObsToSegueRefObs, pipeActionStore, refStringToSegueRef, safeDetectChanges, useActionStore };
3302
+ export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY, AbstractActionFilterSourceDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxInjectedDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextBaseSource, ActionContextMachine, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceInstance, ActionContextStoreSourceMap, ActionSnackbarDefaultType, ActionSnackbarEventType, ActionState, AnchorType, DBX_INJECTED_COMPONENT_DATA, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_SNACKBAR_UNDO_DIRECTIVE_DURATION, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextLoggerDirective, DbxActionContextMapDirective, DbxActionContextMapDirectiveSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionValueDirective, DbxActionWorkingComponent, DbxAnchor, DbxAngularRouterService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxCoreUIRouterSegueModule, DbxDatePipeModule, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectedComponent, DbxInjectedComponentInstance, DbxInjectedComponentModule, DbxLoadingButtonDirective, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxStorageModule, DbxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, MemoryStorageObject, MinutesStringPipe, ProvideActionStoreSource, ProvideDbxAnchor, ProvideDbxButton, ProvideFilterSource, ProvideFilterSourceConnector, ProvideSecondaryActionStoreSource, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, TimeDistanceCountdownPipe, TimeDistancePipe, ToJsDatePipe, ToMinutesPipe, WorkHandlerContext, WorkHandlerContextSourceDelegate, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceInstanceFactory, actionContextStoreSourcePipe, anchorTypeForAnchor, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, defaultStorageObjectFactory, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, handleWorkValueReadyFn, handleWorkValueReadyWithConfigFn, isActionContextDisabled, isActionContextEnabled, isDisabledActionContextState, isIdleActionState, isWorkingActionState, mapRefStringObsToSegueRefObs, mergeDbxInjectedComponentConfigs, pipeActionStore, refStringToSegueRef, safeDetectChanges, successTransition, tapDetectChanges, useActionStore };
2875
3303
  //# sourceMappingURL=dereekb-dbx-core.mjs.map