@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';
2
+ import { Directive, forwardRef, Host, Input, Injectable, Optional, Component, NgModule, EventEmitter, Output, LOCALE_ID, Pipe, Inject, ViewChild, InjectionToken, Injector, ViewContainerRef } from '@angular/core';
3
3
  import * as i1 from 'rxjs';
4
- import { BehaviorSubject, combineLatest, Subject, interval, EMPTY, of, isObservable, Observable } from 'rxjs';
5
- import { SubscriptionObject, LockSet, filterMaybe, scanCount, combineLatestFromMapValuesObsFn, skipFirstMaybe } from '@dereekb/rxjs';
4
+ 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';
5
+ import * as i1$3 from '@dereekb/rxjs';
6
+ import { SubscriptionObject, LockSet, filterMaybe, scanCount, combineLatestFromMapValuesObsFn, skipFirstMaybe, FilterSourceInstance, FilterSource, FilterSourceConnector, FilterMap } from '@dereekb/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]',
@@ -252,9 +253,9 @@ const DEFAULT_THROTTLE_MS = 10 * 1000;
252
253
  const DEFAULT_ERROR_THROTTLE_MS = 3 * 1000;
253
254
  const MAX_ERRORS_TO_THROTTLE_ON = 6;
254
255
  /**
255
- * Extension of DbNgxActionTransitionSafetyDirective that automatically triggers the action periodically when it is in a modified state.
256
+ * Extension of DbxActionTransitionSafetyDirective that automatically triggers the action periodically when it is in a modified state.
256
257
  */
257
- class DbNgxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
258
+ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
258
259
  constructor(source) {
259
260
  super();
260
261
  this.source = source;
@@ -343,12 +344,12 @@ class DbNgxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
343
344
  });
344
345
  }
345
346
  }
346
- 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 });
347
- 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 });
348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerDirective, decorators: [{
347
+ 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 });
348
+ 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 });
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
349
350
  type: Directive,
350
351
  args: [{
351
- selector: '[dbxActionAutoTrigger]',
352
+ selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]',
352
353
  }]
353
354
  }], ctorParameters: function () { return [{ type: ActionContextStoreSourceInstance, decorators: [{
354
355
  type: Host
@@ -372,7 +373,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
372
373
  /**
373
374
  * Directive that watches an observable for changes and sets the new value and modified states as necessary.
374
375
  */
375
- class DbNgxActionAutoTriggerValueDirective {
376
+ class DbxActionAutoTriggerValueDirective {
376
377
  constructor(source) {
377
378
  this.source = source;
378
379
  this._valueObs = new BehaviorSubject(EMPTY);
@@ -422,9 +423,9 @@ class DbNgxActionAutoTriggerValueDirective {
422
423
  });
423
424
  }
424
425
  }
425
- 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 });
426
- 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 });
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionAutoTriggerValueDirective, decorators: [{
426
+ 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 });
427
+ 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 });
428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionAutoTriggerValueDirective, decorators: [{
428
429
  type: Directive,
429
430
  args: [{
430
431
  selector: '[dbxActionAutoTriggerValue]',
@@ -720,9 +721,9 @@ class ActionContextBaseSource {
720
721
  }
721
722
 
722
723
  /**
723
- * Provides an DbNgxActionContext.
724
+ * Provides an DbxActionContext.
724
725
  */
725
- class DbNgxActionContextDirective extends ActionContextBaseSource {
726
+ class DbxActionDirective extends ActionContextBaseSource {
726
727
  constructor(inputSource) {
727
728
  super(inputSource);
728
729
  }
@@ -732,14 +733,14 @@ class DbNgxActionContextDirective extends ActionContextBaseSource {
732
733
  });
733
734
  }
734
735
  }
735
- 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 });
736
- 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 });
737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextDirective, decorators: [{
736
+ 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 });
737
+ 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 });
738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDirective, decorators: [{
738
739
  type: Directive,
739
740
  args: [{
740
- selector: '[dbxActionContext]',
741
+ selector: 'dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]',
741
742
  exportAs: 'action',
742
- providers: ProvideActionStoreSource(DbNgxActionContextDirective)
743
+ providers: ProvideActionStoreSource(DbxActionDirective)
743
744
  }]
744
745
  }], ctorParameters: function () { return [{ type: SecondaryActionContextStoreSource, decorators: [{
745
746
  type: Optional
@@ -747,24 +748,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
747
748
  type: Host
748
749
  }] }]; } });
749
750
 
750
- class DbNgxActionComponent extends DbNgxActionContextDirective {
751
- }
752
- DbNgxActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
753
- 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 });
754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionComponent, decorators: [{
755
- type: Component,
756
- args: [{
757
- selector: 'dbx-action',
758
- exportAs: 'action',
759
- template: '<ng-content></ng-content>',
760
- providers: ProvideActionStoreSource(DbNgxActionComponent)
761
- }]
762
- }] });
763
-
764
751
  /**
765
- * Directive that provides a DbNgxActionSourceDirective that is passed in.
752
+ * Directive that provides a DbxActionSourceDirective that is passed in.
766
753
  */
767
- class DbNgxActionSourceDirective {
754
+ class DbxActionSourceDirective {
768
755
  constructor() {
769
756
  this._source = new BehaviorSubject(undefined);
770
757
  this.store$ = this._source.pipe(filterMaybe(), switchMap((x) => actionContextStoreSourcePipe(x.store$)));
@@ -782,13 +769,13 @@ class DbNgxActionSourceDirective {
782
769
  this._source.next(source);
783
770
  }
784
771
  }
785
- DbNgxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
786
- 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 });
787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSourceDirective, decorators: [{
772
+ DbxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
773
+ 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 });
774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
788
775
  type: Directive,
789
776
  args: [{
790
777
  selector: '[dbxActionSource]',
791
- providers: ProvideSecondaryActionStoreSource(DbNgxActionSourceDirective)
778
+ providers: ProvideSecondaryActionStoreSource(DbxActionSourceDirective)
792
779
  }]
793
780
  }], propDecorators: { source: [{
794
781
  type: Input,
@@ -798,7 +785,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
798
785
  /**
799
786
  * Prints out the current state to the console. Useful for debugging.
800
787
  */
801
- class DbNgxActionContextLoggerDirective extends AbstractSubscriptionDirective {
788
+ class DbxActionContextLoggerDirective extends AbstractSubscriptionDirective {
802
789
  constructor(source) {
803
790
  super();
804
791
  this.source = source;
@@ -809,12 +796,12 @@ class DbNgxActionContextLoggerDirective extends AbstractSubscriptionDirective {
809
796
  });
810
797
  }
811
798
  }
812
- 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 });
813
- DbNgxActionContextLoggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionContextLoggerDirective, selector: "[dbxActionContextLogger]", usesInheritance: true, ngImport: i0 });
814
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionContextLoggerDirective, decorators: [{
799
+ 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 });
800
+ DbxActionContextLoggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionContextLoggerDirective, selector: "[dbxActionLogger],[dbxActionContextLogger]", usesInheritance: true, ngImport: i0 });
801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionContextLoggerDirective, decorators: [{
815
802
  type: Directive,
816
803
  args: [{
817
- selector: '[dbxActionContextLogger]'
804
+ selector: '[dbxActionLogger],[dbxActionContextLogger]'
818
805
  }]
819
806
  }], ctorParameters: function () { return [{ type: ActionContextStoreSourceInstance, decorators: [{
820
807
  type: Host
@@ -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,16 +935,16 @@ 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]'
957
944
  }]
958
945
  }], ctorParameters: function () { return [{ type: ActionContextStoreSource, decorators: [{
959
946
  type: Host
960
- }] }, { type: DbNgxActionContextMapDirective }]; }, propDecorators: { key: [{
947
+ }] }, { type: DbxActionContextMapDirective }]; }, propDecorators: { key: [{
961
948
  type: Input,
962
949
  args: ['dbxActionMapSource']
963
950
  }] } });
@@ -968,11 +955,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
968
955
  class ActionContextStoreSourceMap {
969
956
  }
970
957
 
971
- const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = '';
958
+ const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = '__disabled';
972
959
  /**
973
960
  * Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
974
961
  */
975
- class DbNgxActionMapWorkingDisableDirective extends AbstractSubscriptionDirective {
962
+ class DbxActionMapWorkingDisableDirective extends AbstractSubscriptionDirective {
976
963
  constructor(source, _map) {
977
964
  super();
978
965
  this.source = source;
@@ -988,16 +975,16 @@ class DbNgxActionMapWorkingDisableDirective extends AbstractSubscriptionDirectiv
988
975
  this.source.enable(this.disabledKey || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY);
989
976
  }
990
977
  }
991
- 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 });
992
- DbNgxActionMapWorkingDisableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionMapWorkingDisableDirective, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: ["dbxActionMapWorkingDisable", "disabledKey"] }, usesInheritance: true, ngImport: i0 });
993
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionMapWorkingDisableDirective, decorators: [{
978
+ 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 });
979
+ DbxActionMapWorkingDisableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionMapWorkingDisableDirective, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: ["dbxActionMapWorkingDisable", "disabledKey"] }, usesInheritance: true, ngImport: i0 });
980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionMapWorkingDisableDirective, decorators: [{
994
981
  type: Directive,
995
982
  args: [{
996
983
  selector: '[dbxActionMapWorkingDisable]'
997
984
  }]
998
985
  }], ctorParameters: function () { return [{ type: ActionContextStoreSourceInstance, decorators: [{
999
986
  type: Host
1000
- }] }, { type: DbNgxActionContextMapDirective }]; }, propDecorators: { disabledKey: [{
987
+ }] }, { type: DbxActionContextMapDirective }]; }, propDecorators: { disabledKey: [{
1001
988
  type: Input,
1002
989
  args: ['dbxActionMapWorkingDisable']
1003
990
  }] } });
@@ -1006,7 +993,7 @@ const APP_ACTION_DISABLED_DIRECTIVE_KEY = 'dbx_action_disabled';
1006
993
  /**
1007
994
  * Directive that allows disabling an action using the inputs.
1008
995
  */
1009
- class DbNgxActionDisabledDirective extends AbstractSubscriptionDirective {
996
+ class DbxActionDisabledDirective extends AbstractSubscriptionDirective {
1010
997
  constructor(source) {
1011
998
  super();
1012
999
  this.source = source;
@@ -1030,9 +1017,9 @@ class DbNgxActionDisabledDirective extends AbstractSubscriptionDirective {
1030
1017
  this._disabled.next(disabled);
1031
1018
  }
1032
1019
  }
1033
- 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 });
1034
- DbNgxActionDisabledDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: { disabled: ["dbxActionDisabled", "disabled"] }, usesInheritance: true, ngImport: i0 });
1035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledDirective, decorators: [{
1020
+ 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 });
1021
+ DbxActionDisabledDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: { disabled: ["dbxActionDisabled", "disabled"] }, usesInheritance: true, ngImport: i0 });
1022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledDirective, decorators: [{
1036
1023
  type: Directive,
1037
1024
  args: [{
1038
1025
  selector: '[dbxActionDisabled]'
@@ -1048,7 +1035,7 @@ const APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY = 'dbx_action_is_not_modi
1048
1035
  /**
1049
1036
  * Directive that sets the disabled state based on the current isModified state.
1050
1037
  */
1051
- class DbNgxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDirective {
1038
+ class DbxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDirective {
1052
1039
  constructor(source) {
1053
1040
  super();
1054
1041
  this.source = source;
@@ -1063,9 +1050,9 @@ class DbNgxActionDisabledUntilModifiedDirective extends AbstractSubscriptionDire
1063
1050
  this.source.enable(APP_ACTION_DISABLED_UNTIL_MODIFIED_DIRECTIVE_KEY);
1064
1051
  }
1065
1052
  }
1066
- 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 });
1067
- DbNgxActionDisabledUntilModifiedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionDisabledUntilModifiedDirective, selector: "[dbxActionDisabledUntilModified]", usesInheritance: true, ngImport: i0 });
1068
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionDisabledUntilModifiedDirective, decorators: [{
1053
+ 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 });
1054
+ DbxActionDisabledUntilModifiedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionDisabledUntilModifiedDirective, selector: "[dbxActionDisabledUntilModified]", usesInheritance: true, ngImport: i0 });
1055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionDisabledUntilModifiedDirective, decorators: [{
1069
1056
  type: Directive,
1070
1057
  args: [{
1071
1058
  selector: '[dbxActionDisabledUntilModified]'
@@ -1092,7 +1079,7 @@ class WorkHandlerContextSourceDelegate {
1092
1079
  }
1093
1080
  }
1094
1081
  /**
1095
- * Used by DbNgxActionHandlerDirective when handling a function.
1082
+ * Used by DbxActionHandlerDirective when handling a function.
1096
1083
  */
1097
1084
  class WorkHandlerContext {
1098
1085
  constructor(value, delegate) {
@@ -1215,7 +1202,7 @@ function handleWorkValueReadyFn({ handlerFunction, delegate }) {
1215
1202
  /**
1216
1203
  * Context used for defining a function that performs an action using the input function on ValueReady.
1217
1204
  */
1218
- class DbNgxActionHandlerDirective extends AbstractSubscriptionDirective {
1205
+ class DbxActionHandlerDirective extends AbstractSubscriptionDirective {
1219
1206
  constructor(source) {
1220
1207
  super();
1221
1208
  this.source = source;
@@ -1244,9 +1231,9 @@ class DbNgxActionHandlerDirective extends AbstractSubscriptionDirective {
1244
1231
  });
1245
1232
  }
1246
1233
  }
1247
- 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 });
1248
- DbNgxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: { handlerFunction: ["dbxActionHandler", "handlerFunction"] }, usesInheritance: true, ngImport: i0 });
1249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionHandlerDirective, decorators: [{
1234
+ 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 });
1235
+ DbxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: { handlerFunction: ["dbxActionHandler", "handlerFunction"] }, usesInheritance: true, ngImport: i0 });
1236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
1250
1237
  type: Directive,
1251
1238
  args: [{
1252
1239
  selector: '[dbxActionHandler]',
@@ -1263,7 +1250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1263
1250
  *
1264
1251
  * Can be configured to show for a limited time afterwards, etc.
1265
1252
  */
1266
- class DbNgxActionSuccessComponent {
1253
+ class DbxActionSuccessComponent {
1267
1254
  constructor(source) {
1268
1255
  this.source = source;
1269
1256
  this.show$ = this.source.isSuccess$.pipe(exhaustMap((success) => {
@@ -1281,13 +1268,13 @@ class DbNgxActionSuccessComponent {
1281
1268
  }), shareReplay(1));
1282
1269
  }
1283
1270
  }
1284
- DbNgxActionSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1285
- DbNgxActionSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionSuccessComponent, selector: "dbx-action-success", inputs: { hideAfter: "hideAfter" }, ngImport: i0, template: `
1271
+ DbxActionSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1272
+ DbxActionSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSuccessComponent, selector: "dbx-action-success", inputs: { hideAfter: "hideAfter" }, ngImport: i0, template: `
1286
1273
  <ng-container *ngIf="show$ | async">
1287
1274
  <ng-content></ng-content>
1288
1275
  </ng-container>
1289
1276
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe } });
1290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessComponent, decorators: [{
1277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessComponent, decorators: [{
1291
1278
  type: Component,
1292
1279
  args: [{
1293
1280
  selector: 'dbx-action-success',
@@ -1304,7 +1291,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1304
1291
  /**
1305
1292
  * Directive that executes a function on ActionContextStore Success.
1306
1293
  */
1307
- class DbNgxActionSuccessDirective extends AbstractSubscriptionDirective {
1294
+ class DbxActionSuccessDirective extends AbstractSubscriptionDirective {
1308
1295
  constructor(source) {
1309
1296
  super();
1310
1297
  this.source = source;
@@ -1327,9 +1314,9 @@ class DbNgxActionSuccessDirective extends AbstractSubscriptionDirective {
1327
1314
  this._successFunction.complete();
1328
1315
  }
1329
1316
  }
1330
- 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 });
1331
- DbNgxActionSuccessDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: { successFunction: ["dbxActionSuccess", "successFunction"] }, usesInheritance: true, ngImport: i0 });
1332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionSuccessDirective, decorators: [{
1317
+ 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 });
1318
+ DbxActionSuccessDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: { successFunction: ["dbxActionSuccess", "successFunction"] }, usesInheritance: true, ngImport: i0 });
1319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSuccessDirective, decorators: [{
1333
1320
  type: Directive,
1334
1321
  args: [{
1335
1322
  selector: '[dbxActionSuccess]',
@@ -1346,7 +1333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1346
1333
  *
1347
1334
  * No value is required, allowing the directive to automatically call readyValue with undefined.
1348
1335
  */
1349
- class DbNgxActionValueDirective extends AbstractSubscriptionDirective {
1336
+ class DbxActionValueDirective extends AbstractSubscriptionDirective {
1350
1337
  constructor(source) {
1351
1338
  super();
1352
1339
  this.source = source;
@@ -1370,9 +1357,9 @@ class DbNgxActionValueDirective extends AbstractSubscriptionDirective {
1370
1357
  this._valueOrFunction.complete();
1371
1358
  }
1372
1359
  }
1373
- 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 });
1374
- DbNgxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionValueDirective, selector: "[dbxActionValue]", inputs: { valueOrFunction: ["dbxActionValue", "valueOrFunction"] }, usesInheritance: true, ngImport: i0 });
1375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionValueDirective, decorators: [{
1360
+ 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 });
1361
+ DbxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionValueDirective, selector: "[dbxActionValue]", inputs: { valueOrFunction: ["dbxActionValue", "valueOrFunction"] }, usesInheritance: true, ngImport: i0 });
1362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionValueDirective, decorators: [{
1376
1363
  type: Directive,
1377
1364
  args: [{
1378
1365
  selector: '[dbxActionValue]',
@@ -1387,19 +1374,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1387
1374
  /**
1388
1375
  * Displays the input content when working is set.
1389
1376
  */
1390
- class DbNgxActionWorkingComponent {
1377
+ class DbxActionWorkingComponent {
1391
1378
  constructor(source) {
1392
1379
  this.source = source;
1393
1380
  this.show$ = this.source.isWorking$;
1394
1381
  }
1395
1382
  }
1396
- DbNgxActionWorkingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionWorkingComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1397
- DbNgxActionWorkingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionWorkingComponent, selector: "dbx-action-working", ngImport: i0, template: `
1383
+ DbxActionWorkingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionWorkingComponent, deps: [{ token: ActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Component });
1384
+ DbxActionWorkingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionWorkingComponent, selector: "dbx-action-working", ngImport: i0, template: `
1398
1385
  <ng-container *ngIf="show$ | async">
1399
1386
  <ng-content></ng-content>
1400
1387
  </ng-container>
1401
1388
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe } });
1402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionWorkingComponent, decorators: [{
1389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionWorkingComponent, decorators: [{
1403
1390
  type: Component,
1404
1391
  args: [{
1405
1392
  selector: 'dbx-action-working',
@@ -1469,53 +1456,53 @@ class ActionContextMachine extends ActionContextBaseSource {
1469
1456
  }
1470
1457
  }
1471
1458
 
1472
- class DbNgxCoreActionModule {
1459
+ class DbxCoreActionModule {
1473
1460
  }
1474
- DbNgxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1475
- DbNgxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, declarations: [DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1476
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1477
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1478
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent], imports: [CommonModule], exports: [DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1479
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1480
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1481
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent] });
1482
- DbNgxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, imports: [[
1461
+ DbxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1462
+ DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1463
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1464
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1465
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent], imports: [CommonModule], exports: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1466
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1467
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1468
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent] });
1469
+ DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, imports: [[
1483
1470
  CommonModule
1484
1471
  ]] });
1485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreActionModule, decorators: [{
1472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreActionModule, decorators: [{
1486
1473
  type: NgModule,
1487
1474
  args: [{
1488
1475
  imports: [
1489
1476
  CommonModule
1490
1477
  ],
1491
1478
  declarations: [
1492
- DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1493
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1494
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1495
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent
1479
+ DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1480
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1481
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1482
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent
1496
1483
  ],
1497
1484
  exports: [
1498
- DbNgxActionComponent, DbNgxActionContextDirective, DbNgxActionContextMapDirective, DbNgxActionFromMapDirective, DbNgxActionMapSourceDirective,
1499
- DbNgxActionMapWorkingDisableDirective, DbNgxActionSourceDirective, DbNgxActionHandlerDirective, DbNgxActionDisabledDirective, DbNgxActionDisabledUntilModifiedDirective,
1500
- DbNgxActionAutoTriggerDirective, DbNgxActionAutoTriggerValueDirective, DbNgxActionAutoModifyDirective, DbNgxActionValueDirective, DbNgxActionContextLoggerDirective,
1501
- DbNgxActionSuccessComponent, DbNgxActionSuccessDirective, DbNgxActionWorkingComponent
1485
+ DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1486
+ DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionDisabledUntilModifiedDirective,
1487
+ DbxActionAutoTriggerDirective, DbxActionAutoTriggerValueDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1488
+ DbxActionSuccessComponent, DbxActionSuccessDirective, DbxActionWorkingComponent
1502
1489
  ]
1503
1490
  }]
1504
1491
  }] });
1505
1492
 
1506
- class DbNgxButton {
1493
+ class DbxButton {
1507
1494
  }
1508
- function ProvideDbNgxButton(sourceType) {
1495
+ function ProvideDbxButton(sourceType) {
1509
1496
  return [{
1510
- provide: DbNgxButton,
1511
- useExisting: sourceType
1497
+ provide: DbxButton,
1498
+ useExisting: forwardRef(() => sourceType)
1512
1499
  }];
1513
1500
  }
1514
1501
 
1515
1502
  /**
1516
1503
  * Context used for linking a button to an ActionContext and only look for triggers.
1517
1504
  */
1518
- class DbNgxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1505
+ class DbxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1519
1506
  constructor(button, source) {
1520
1507
  super();
1521
1508
  this.button = button;
@@ -1530,21 +1517,21 @@ class DbNgxActionButtonTriggerDirective extends AbstractSubscriptionDirective {
1530
1517
  this.source.trigger();
1531
1518
  }
1532
1519
  }
1533
- 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 });
1534
- DbNgxActionButtonTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionButtonTriggerDirective, selector: "[dbxActionButtonTrigger]", usesInheritance: true, ngImport: i0 });
1535
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonTriggerDirective, decorators: [{
1520
+ 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 });
1521
+ DbxActionButtonTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionButtonTriggerDirective, selector: "[dbxActionButtonTrigger]", usesInheritance: true, ngImport: i0 });
1522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonTriggerDirective, decorators: [{
1536
1523
  type: Directive,
1537
1524
  args: [{
1538
1525
  selector: '[dbxActionButtonTrigger]'
1539
1526
  }]
1540
- }], ctorParameters: function () { return [{ type: DbNgxButton, decorators: [{
1527
+ }], ctorParameters: function () { return [{ type: DbxButton, decorators: [{
1541
1528
  type: Host
1542
1529
  }] }, { type: ActionContextStoreSourceInstance }]; } });
1543
1530
 
1544
1531
  /**
1545
1532
  * Context used for linking a button to an ActionContext.
1546
1533
  */
1547
- class DbNgxActionButtonDirective extends DbNgxActionButtonTriggerDirective {
1534
+ class DbxActionButtonDirective extends DbxActionButtonTriggerDirective {
1548
1535
  constructor(button, source, ngZone) {
1549
1536
  super(button, source);
1550
1537
  this.ngZone = ngZone;
@@ -1568,62 +1555,88 @@ class DbNgxActionButtonDirective extends DbNgxActionButtonTriggerDirective {
1568
1555
  this._disabledSub.destroy();
1569
1556
  }
1570
1557
  }
1571
- 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 });
1572
- DbNgxActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxActionButtonDirective, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
1573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxActionButtonDirective, decorators: [{
1558
+ 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 });
1559
+ DbxActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionButtonDirective, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
1560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionButtonDirective, decorators: [{
1574
1561
  type: Directive,
1575
1562
  args: [{
1576
1563
  selector: '[dbxActionButton]'
1577
1564
  }]
1578
- }], ctorParameters: function () { return [{ type: DbNgxButton, decorators: [{
1565
+ }], ctorParameters: function () { return [{ type: DbxButton, decorators: [{
1579
1566
  type: Host
1580
1567
  }] }, { type: ActionContextStoreSourceInstance }, { type: i0.NgZone }]; } });
1581
1568
 
1569
+ const expandClickableAnchorLinkTreeNode = expandTreeFunction({
1570
+ getChildren: (x) => x.children
1571
+ });
1572
+ const flattenExpandedClickableAnchorLinkTree = flattenTreeToArrayFunction();
1573
+ const flattenExpandedClickableAnchorLinkTreeToLinks = flattenTreeToArrayFunction((x) => x.value);
1574
+ /**
1575
+ * Fully expands the given parent link and flattens the tree to a single parent link.
1576
+ *
1577
+ * @param link
1578
+ * @returns
1579
+ */
1580
+ function expandClickableAnchorLinkTree(link) {
1581
+ return flattenExpandedClickableAnchorLinkTree(expandClickableAnchorLinkTreeNode(link));
1582
+ }
1583
+ /**
1584
+ * Expands an array of links into an array of ExpandedClickableAnchorLinkTree tree values.
1585
+ */
1586
+ const expandClickableAnchorLinkTrees = expandFlattenTreeFunction(expandClickableAnchorLinkTreeNode, flattenExpandedClickableAnchorLinkTree);
1582
1587
  var AnchorType;
1583
1588
  (function (AnchorType) {
1584
- AnchorType[AnchorType["None"] = 0] = "None";
1585
- AnchorType[AnchorType["Clickable"] = 1] = "Clickable";
1586
- AnchorType[AnchorType["Sref"] = 2] = "Sref";
1587
- AnchorType[AnchorType["Href"] = 3] = "Href";
1588
- AnchorType[AnchorType["Disabled"] = 4] = "Disabled";
1589
+ /**
1590
+ * When the anchor has no specific content but is not disabled.
1591
+ *
1592
+ * Is a passthrough for the content.
1593
+ */
1594
+ AnchorType[AnchorType["PLAIN"] = 0] = "PLAIN";
1595
+ AnchorType[AnchorType["CLICKABLE"] = 1] = "CLICKABLE";
1596
+ AnchorType[AnchorType["SREF"] = 2] = "SREF";
1597
+ AnchorType[AnchorType["HREF"] = 3] = "HREF";
1598
+ AnchorType[AnchorType["DISABLED"] = 4] = "DISABLED";
1589
1599
  })(AnchorType || (AnchorType = {}));
1590
1600
  function anchorTypeForAnchor(anchor, disabled) {
1591
- let type = AnchorType.Disabled;
1601
+ let type = AnchorType.DISABLED;
1592
1602
  if (!disabled && anchor) {
1593
1603
  if (anchor.disabled) {
1594
- type = AnchorType.Disabled;
1604
+ type = AnchorType.DISABLED;
1595
1605
  }
1596
1606
  else if (anchor.ref) {
1597
- type = AnchorType.Sref;
1607
+ type = AnchorType.SREF;
1598
1608
  }
1599
1609
  else if (anchor.onClick) {
1600
- type = AnchorType.Clickable;
1610
+ type = AnchorType.CLICKABLE;
1601
1611
  }
1602
1612
  else if (anchor.url) {
1603
- type = AnchorType.Href;
1613
+ type = AnchorType.HREF;
1614
+ }
1615
+ else {
1616
+ type = AnchorType.PLAIN;
1604
1617
  }
1605
1618
  }
1606
1619
  return type;
1607
1620
  }
1608
- class DbNgxAnchor {
1621
+ class DbxAnchor {
1609
1622
  }
1610
- function ProvideDbNgxAnchor(sourceType) {
1623
+ function ProvideDbxAnchor(sourceType) {
1611
1624
  return [{
1612
- provide: DbNgxAnchor,
1613
- useExisting: sourceType
1625
+ provide: DbxAnchor,
1626
+ useExisting: forwardRef(() => sourceType)
1614
1627
  }];
1615
1628
  }
1616
1629
 
1617
1630
  /**
1618
1631
  * Abstract anchor directive.
1619
1632
  */
1620
- class AbstractDbNgxAnchorDirective {
1633
+ class AbstractDbxAnchorDirective {
1621
1634
  constructor() {
1622
1635
  this._disabled = new BehaviorSubject(false);
1623
1636
  this._anchor = new BehaviorSubject(undefined);
1624
1637
  this.disabled$ = this._disabled.asObservable();
1625
1638
  this.anchor$ = this._anchor.pipe(skipFirstMaybe(), distinctUntilChanged(), shareReplay(1));
1626
- this.type$ = combineLatest([this.disabled$, this.anchor$]).pipe(map(([disabled, anchor]) => anchorTypeForAnchor(anchor, disabled)), distinctUntilChanged(), shareReplay(1));
1639
+ this.type$ = combineLatest([this.disabled$, this.anchor$]).pipe(delay$1(0), map(([disabled, anchor]) => anchorTypeForAnchor(anchor, disabled)), distinctUntilChanged(), shareReplay(1));
1627
1640
  }
1628
1641
  get anchor() {
1629
1642
  return this._anchor.value;
@@ -1638,9 +1651,9 @@ class AbstractDbNgxAnchorDirective {
1638
1651
  this._disabled.next(disabled);
1639
1652
  }
1640
1653
  }
1641
- AbstractDbNgxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1642
- AbstractDbNgxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbNgxAnchorDirective, inputs: { anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
1643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxAnchorDirective, decorators: [{
1654
+ AbstractDbxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1655
+ AbstractDbxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxAnchorDirective, inputs: { anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
1656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
1644
1657
  type: Directive
1645
1658
  }], propDecorators: { anchor: [{
1646
1659
  type: Input
@@ -1648,22 +1661,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1648
1661
  type: Input
1649
1662
  }] } });
1650
1663
 
1651
- var DbNgxRouterTransitionEventType;
1652
- (function (DbNgxRouterTransitionEventType) {
1664
+ var DbxRouterTransitionEventType;
1665
+ (function (DbxRouterTransitionEventType) {
1653
1666
  /**
1654
1667
  * A transition started.
1655
1668
  */
1656
- DbNgxRouterTransitionEventType["START"] = "start";
1669
+ DbxRouterTransitionEventType["START"] = "start";
1657
1670
  /**
1658
1671
  * A transition ended.
1659
1672
  */
1660
- DbNgxRouterTransitionEventType["SUCCESS"] = "ended";
1661
- })(DbNgxRouterTransitionEventType || (DbNgxRouterTransitionEventType = {}));
1673
+ DbxRouterTransitionEventType["SUCCESS"] = "ended";
1674
+ })(DbxRouterTransitionEventType || (DbxRouterTransitionEventType = {}));
1662
1675
 
1663
1676
  /**
1664
- * AngularRouter implementation of DbNgxRouterService and DbNgxRouterTransitionService.
1677
+ * AngularRouter implementation of DbxRouterService and DbxRouterTransitionService.
1665
1678
  */
1666
- class DbNgxAngularRouterService {
1679
+ class DbxAngularRouterService {
1667
1680
  constructor(router, activatedRoute) {
1668
1681
  this.router = router;
1669
1682
  this.activatedRoute = activatedRoute;
@@ -1671,12 +1684,12 @@ class DbNgxAngularRouterService {
1671
1684
  let event;
1672
1685
  if (x instanceof NavigationStart) {
1673
1686
  event = {
1674
- type: DbNgxRouterTransitionEventType.START
1687
+ type: DbxRouterTransitionEventType.START
1675
1688
  };
1676
1689
  }
1677
1690
  else if (x instanceof NavigationEnd) {
1678
1691
  event = {
1679
- type: DbNgxRouterTransitionEventType.SUCCESS
1692
+ type: DbxRouterTransitionEventType.SUCCESS
1680
1693
  };
1681
1694
  }
1682
1695
  return event;
@@ -1696,55 +1709,98 @@ class DbNgxAngularRouterService {
1696
1709
  });
1697
1710
  }
1698
1711
  }
1712
+ isActive(segueRef) {
1713
+ return false; // TODO!
1714
+ }
1715
+ comparePrecision(a, b) {
1716
+ return 0; // TODO!
1717
+ }
1699
1718
  }
1700
- 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 });
1701
- DbNgxAngularRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxAngularRouterService });
1702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxAngularRouterService, decorators: [{
1719
+ 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 });
1720
+ DbxAngularRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxAngularRouterService });
1721
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxAngularRouterService, decorators: [{
1703
1722
  type: Injectable
1704
1723
  }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }]; } });
1705
1724
 
1706
1725
  /**
1707
1726
  * Router service definition that can route the app and provide routing details.
1708
1727
  */
1709
- class DbNgxRouterService {
1728
+ class DbxRouterService {
1710
1729
  }
1711
1730
 
1712
1731
  /**
1713
1732
  * Router service definition that provides high level information about router transitions.
1714
1733
  */
1715
- class DbNgxRouterTransitionService {
1734
+ class DbxRouterTransitionService {
1716
1735
  }
1717
1736
 
1718
- class DbNgxCoreAngularRouterSegueModule {
1737
+ class DbxCoreAngularRouterSegueModule {
1719
1738
  static forRoot() {
1720
1739
  return {
1721
- ngModule: DbNgxCoreAngularRouterSegueModule,
1740
+ ngModule: DbxCoreAngularRouterSegueModule,
1722
1741
  providers: [
1723
- DbNgxAngularRouterService,
1742
+ DbxAngularRouterService,
1724
1743
  {
1725
- provide: DbNgxRouterService,
1726
- useExisting: DbNgxAngularRouterService
1744
+ provide: DbxRouterService,
1745
+ useExisting: DbxAngularRouterService
1727
1746
  },
1728
1747
  {
1729
- provide: DbNgxRouterTransitionService,
1730
- useExisting: DbNgxAngularRouterService
1748
+ provide: DbxRouterTransitionService,
1749
+ useExisting: DbxAngularRouterService
1731
1750
  }
1732
1751
  ]
1733
1752
  };
1734
1753
  }
1735
1754
  }
1736
- DbNgxCoreAngularRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1737
- DbNgxCoreAngularRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule });
1738
- DbNgxCoreAngularRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule });
1739
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreAngularRouterSegueModule, decorators: [{
1755
+ DbxCoreAngularRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1756
+ DbxCoreAngularRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
1757
+ DbxCoreAngularRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
1758
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, decorators: [{
1740
1759
  type: NgModule,
1741
1760
  args: [{}]
1742
1761
  }] });
1743
1762
 
1744
1763
  /**
1745
- * UIRouter implementation of DbNgxRouterService and DbNgxRouterTransitionService.
1764
+ * Used for creating a future state that also captures any children urls.
1765
+ *
1766
+ * This is important for cases, such as /, where multiple urls should target a specific future so that
1767
+ * it can load that module and continue route resolution for the child url.
1768
+ *
1769
+ * For example:
1770
+ * - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
1771
+ * the root module does not know how to handle /a or /b, since they are children of /. We use
1772
+ * futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
1773
+ * to send /a or /b.
1774
+ *
1775
+ * @param state
1776
+ * @param urls
1777
+ * @returns
1778
+ *
1779
+ * @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
1780
+ */
1781
+ function futureStateWithChildrenUrls(state, urls) {
1782
+ const states = [state];
1783
+ mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
1784
+ return states;
1785
+ }
1786
+ /**
1787
+ * Copies the input state and replaces the url in each of them with the passed urls.
1788
+ *
1789
+ * @param state
1790
+ * @param urls
1791
+ * @returns
1792
+ *
1793
+ * @deprecated
1794
+ */
1795
+ function expandFutureStateWithUrls(state, urls) {
1796
+ const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
1797
+ return childrenStates;
1798
+ }
1799
+
1800
+ /**
1801
+ * UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
1746
1802
  */
1747
- class DbNgxUIRouterService {
1803
+ class DbxUIRouterService {
1748
1804
  constructor(state, transitionService, uiRouterGlobals) {
1749
1805
  this.state = state;
1750
1806
  this.transitionService = transitionService;
@@ -1757,60 +1813,103 @@ class DbNgxUIRouterService {
1757
1813
  });
1758
1814
  };
1759
1815
  this.transitionService.onStart({}, () => {
1760
- emitTransition(DbNgxRouterTransitionEventType.START);
1816
+ emitTransition(DbxRouterTransitionEventType.START);
1761
1817
  });
1762
1818
  this.transitionService.onSuccess({}, () => {
1763
- emitTransition(DbNgxRouterTransitionEventType.SUCCESS);
1819
+ emitTransition(DbxRouterTransitionEventType.SUCCESS);
1764
1820
  });
1765
1821
  }
1766
1822
  go(segueRef) {
1767
1823
  const params = { ...this.uiRouterGlobals.current.params, ...segueRef.refParams };
1768
1824
  return this.state.go(segueRef.ref, params, segueRef.refOptions).then(_ => true).catch(_ => false);
1769
1825
  }
1826
+ isActive(segueRef) {
1827
+ const { ref, refParams } = segueRef;
1828
+ const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
1829
+ const active = this.state.includes(targetRef, refParams);
1830
+ return active;
1831
+ }
1832
+ comparePrecision(a, b) {
1833
+ const aLength = a.ref.length;
1834
+ const bLength = b.ref.length;
1835
+ return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
1836
+ }
1770
1837
  }
1771
- 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 });
1772
- DbNgxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxUIRouterService });
1773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxUIRouterService, decorators: [{
1838
+ 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 });
1839
+ DbxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxUIRouterService });
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxUIRouterService, decorators: [{
1774
1841
  type: Injectable
1775
1842
  }], ctorParameters: function () { return [{ type: i1$2.StateService }, { type: i1$2.TransitionService }, { type: i1$2.UIRouterGlobals }]; } });
1776
1843
 
1777
- class DbNgxCoreUIRouterSegueModule {
1844
+ class DbxCoreUIRouterSegueModule {
1778
1845
  static forRoot() {
1779
1846
  return {
1780
- ngModule: DbNgxCoreUIRouterSegueModule,
1847
+ ngModule: DbxCoreUIRouterSegueModule,
1781
1848
  providers: [
1782
- DbNgxUIRouterService,
1849
+ DbxUIRouterService,
1783
1850
  {
1784
- provide: DbNgxRouterService,
1785
- useExisting: DbNgxUIRouterService
1851
+ provide: DbxRouterService,
1852
+ useExisting: DbxUIRouterService
1786
1853
  },
1787
1854
  {
1788
- provide: DbNgxRouterTransitionService,
1789
- useExisting: DbNgxUIRouterService
1855
+ provide: DbxRouterTransitionService,
1856
+ useExisting: DbxUIRouterService
1790
1857
  }
1791
1858
  ]
1792
1859
  };
1793
1860
  }
1794
1861
  }
1795
- DbNgxCoreUIRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1796
- DbNgxCoreUIRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule });
1797
- DbNgxCoreUIRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule });
1798
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreUIRouterSegueModule, decorators: [{
1862
+ DbxCoreUIRouterSegueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1863
+ DbxCoreUIRouterSegueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule });
1864
+ DbxCoreUIRouterSegueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule });
1865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreUIRouterSegueModule, decorators: [{
1799
1866
  type: NgModule,
1800
1867
  args: [{}]
1801
1868
  }] });
1802
1869
 
1870
+ /**
1871
+ * Convenience function for filtering success from the input observable.
1872
+ *
1873
+ * @param obs
1874
+ * @returns
1875
+ */
1876
+ function successTransition(obs) {
1877
+ return obs.pipe(filterTransitionSuccess());
1878
+ }
1879
+ function filterTransitionSuccess() {
1880
+ return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
1881
+ }
1882
+ function filterTransitionEvent(type) {
1883
+ return filter$1(x => x.type === type);
1884
+ }
1885
+
1803
1886
  /**
1804
1887
  * Abstract directive that listens to onSuccess transition events and runs a function.
1805
1888
  */
1806
- class AbstractTransitionWatcherDirective {
1807
- constructor(dbNgxRouterTransitionService, ngZone) {
1889
+ class AbstractTransitionDirective {
1890
+ constructor(dbNgxRouterTransitionService) {
1808
1891
  this.dbNgxRouterTransitionService = dbNgxRouterTransitionService;
1892
+ this.transitionSuccess$ = successTransition(this.dbNgxRouterTransitionService.transitions$);
1893
+ this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith$1(undefined));
1894
+ }
1895
+ }
1896
+ AbstractTransitionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionDirective, deps: [{ token: DbxRouterTransitionService }], target: i0.ɵɵFactoryTarget.Directive });
1897
+ AbstractTransitionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionDirective, ngImport: i0 });
1898
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionDirective, decorators: [{
1899
+ type: Directive
1900
+ }], ctorParameters: function () { return [{ type: DbxRouterTransitionService }]; } });
1901
+
1902
+ /**
1903
+ * Abstract directive that listens to onSuccess transition events and runs a function.
1904
+ */
1905
+ class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
1906
+ constructor(dbNgxRouterTransitionService, ngZone) {
1907
+ super(dbNgxRouterTransitionService);
1809
1908
  this.ngZone = ngZone;
1810
1909
  this._transitionSub = new SubscriptionObject();
1811
1910
  }
1812
1911
  ngOnInit() {
1813
- this._transitionSub.subscription = this.dbNgxRouterTransitionService.transitions$.pipe(filter(x => x.type === DbNgxRouterTransitionEventType.SUCCESS)).subscribe(() => {
1912
+ this._transitionSub.subscription = this.transitionSuccess$.subscribe(() => {
1814
1913
  this.updateForSuccessfulTransition();
1815
1914
  });
1816
1915
  }
@@ -1822,11 +1921,11 @@ class AbstractTransitionWatcherDirective {
1822
1921
  this.ngZone.run(() => this.updateForSuccessfulTransition());
1823
1922
  }
1824
1923
  }
1825
- 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 });
1826
- AbstractTransitionWatcherDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionWatcherDirective, ngImport: i0 });
1924
+ 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 });
1925
+ AbstractTransitionWatcherDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractTransitionWatcherDirective, usesInheritance: true, ngImport: i0 });
1827
1926
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, decorators: [{
1828
1927
  type: Directive
1829
- }], ctorParameters: function () { return [{ type: DbNgxRouterTransitionService }, { type: i0.NgZone }]; } });
1928
+ }], ctorParameters: function () { return [{ type: DbxRouterTransitionService }, { type: i0.NgZone }]; } });
1830
1929
 
1831
1930
  function refStringToSegueRef(ref, options) {
1832
1931
  return { ...options, ref };
@@ -1836,7 +1935,7 @@ function mapRefStringObsToSegueRefObs(obs, options) {
1836
1935
  }
1837
1936
 
1838
1937
  // MARK: Button Directives
1839
- class DbNgxButtonSegueDirective extends AbstractSubscriptionDirective {
1938
+ class DbxButtonSegueDirective extends AbstractSubscriptionDirective {
1840
1939
  constructor(dbxButton, dbxRouterService) {
1841
1940
  super();
1842
1941
  this.dbxButton = dbxButton;
@@ -1856,14 +1955,14 @@ class DbNgxButtonSegueDirective extends AbstractSubscriptionDirective {
1856
1955
  })))).subscribe();
1857
1956
  }
1858
1957
  }
1859
- 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 });
1860
- DbNgxButtonSegueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxButtonSegueDirective, selector: "[dbxButtonSegue]", inputs: { segueRef: ["dbxButtonSegue", "segueRef"] }, usesInheritance: true, ngImport: i0 });
1861
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonSegueDirective, decorators: [{
1958
+ 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 });
1959
+ DbxButtonSegueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxButtonSegueDirective, selector: "[dbxButtonSegue]", inputs: { segueRef: ["dbxButtonSegue", "segueRef"] }, usesInheritance: true, ngImport: i0 });
1960
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonSegueDirective, decorators: [{
1862
1961
  type: Directive,
1863
1962
  args: [{
1864
1963
  selector: '[dbxButtonSegue]'
1865
1964
  }]
1866
- }], ctorParameters: function () { return [{ type: DbNgxButton }, { type: DbNgxRouterService }]; }, propDecorators: { segueRef: [{
1965
+ }], ctorParameters: function () { return [{ type: DbxButton }, { type: DbxRouterService }]; }, propDecorators: { segueRef: [{
1867
1966
  type: Input,
1868
1967
  args: ['dbxButtonSegue']
1869
1968
  }] } });
@@ -1871,7 +1970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1871
1970
  /**
1872
1971
  * Abstract button component.
1873
1972
  */
1874
- class AbstractDbNgxButtonDirective extends AbstractSubscriptionDirective {
1973
+ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
1875
1974
  constructor() {
1876
1975
  super();
1877
1976
  this._disabled = new BehaviorSubject(false);
@@ -1939,9 +2038,9 @@ class AbstractDbNgxButtonDirective extends AbstractSubscriptionDirective {
1939
2038
  this.buttonClick.emit();
1940
2039
  }
1941
2040
  }
1942
- AbstractDbNgxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1943
- 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 });
1944
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxButtonDirective, decorators: [{
2041
+ AbstractDbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2042
+ 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 });
2043
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxButtonDirective, decorators: [{
1945
2044
  type: Directive
1946
2045
  }], ctorParameters: function () { return []; }, propDecorators: { disabled: [{
1947
2046
  type: Input
@@ -1956,18 +2055,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1956
2055
  }] } });
1957
2056
  // MARK: Implementation
1958
2057
  /**
1959
- * Provides an DbNgxButton directive.
2058
+ * Provides an DbxButton directive.
1960
2059
  */
1961
- class DbNgxButtonDirective extends AbstractDbNgxButtonDirective {
2060
+ class DbxButtonDirective extends AbstractDbxButtonDirective {
1962
2061
  }
1963
- DbNgxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1964
- 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 });
1965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxButtonDirective, decorators: [{
2062
+ DbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2063
+ 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 });
2064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxButtonDirective, decorators: [{
1966
2065
  type: Directive,
1967
2066
  args: [{
1968
2067
  selector: '[dbxButton]',
1969
2068
  exportAs: 'dbxButton',
1970
- providers: ProvideDbNgxButton(DbNgxButtonDirective)
2069
+ providers: ProvideDbxButton(DbxButtonDirective)
1971
2070
  }]
1972
2071
  }] });
1973
2072
 
@@ -1976,7 +2075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
1976
2075
  *
1977
2076
  * It will be set working when the context is set loading.
1978
2077
  */
1979
- class DbNgxLoadingButtonDirective extends AbstractSubscriptionDirective {
2078
+ class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
1980
2079
  constructor(button, ngZone) {
1981
2080
  super();
1982
2081
  this.button = button;
@@ -1995,50 +2094,50 @@ class DbNgxLoadingButtonDirective extends AbstractSubscriptionDirective {
1995
2094
  this.sub = subscription;
1996
2095
  }
1997
2096
  }
1998
- 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 });
1999
- DbNgxLoadingButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbNgxLoadingButtonDirective, selector: "[dbxLoadingButton]", inputs: { context: ["dbxLoadingButton", "context"] }, usesInheritance: true, ngImport: i0 });
2000
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxLoadingButtonDirective, decorators: [{
2097
+ 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 });
2098
+ DbxLoadingButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxLoadingButtonDirective, selector: "[dbxLoadingButton]", inputs: { context: ["dbxLoadingButton", "context"] }, usesInheritance: true, ngImport: i0 });
2099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxLoadingButtonDirective, decorators: [{
2001
2100
  type: Directive,
2002
2101
  args: [{
2003
2102
  selector: '[dbxLoadingButton]'
2004
2103
  }]
2005
- }], ctorParameters: function () { return [{ type: DbNgxButton, decorators: [{
2104
+ }], ctorParameters: function () { return [{ type: DbxButton, decorators: [{
2006
2105
  type: Host
2007
2106
  }] }, { type: i0.NgZone }]; }, propDecorators: { context: [{
2008
2107
  type: Input,
2009
2108
  args: ['dbxLoadingButton']
2010
2109
  }] } });
2011
2110
 
2012
- class DbNgxCoreButtonModule {
2013
- }
2014
- DbNgxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2015
- DbNgxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, declarations: [DbNgxButtonDirective,
2016
- DbNgxLoadingButtonDirective,
2017
- DbNgxActionButtonTriggerDirective,
2018
- DbNgxActionButtonDirective,
2019
- DbNgxButtonSegueDirective], exports: [DbNgxButtonDirective,
2020
- DbNgxLoadingButtonDirective,
2021
- DbNgxActionButtonTriggerDirective,
2022
- DbNgxActionButtonDirective,
2023
- DbNgxButtonSegueDirective] });
2024
- DbNgxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, imports: [[]] });
2025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxCoreButtonModule, decorators: [{
2111
+ class DbxCoreButtonModule {
2112
+ }
2113
+ DbxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2114
+ DbxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, declarations: [DbxButtonDirective,
2115
+ DbxLoadingButtonDirective,
2116
+ DbxActionButtonTriggerDirective,
2117
+ DbxActionButtonDirective,
2118
+ DbxButtonSegueDirective], exports: [DbxButtonDirective,
2119
+ DbxLoadingButtonDirective,
2120
+ DbxActionButtonTriggerDirective,
2121
+ DbxActionButtonDirective,
2122
+ DbxButtonSegueDirective] });
2123
+ DbxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, imports: [[]] });
2124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
2026
2125
  type: NgModule,
2027
2126
  args: [{
2028
2127
  imports: [],
2029
2128
  declarations: [
2030
- DbNgxButtonDirective,
2031
- DbNgxLoadingButtonDirective,
2032
- DbNgxActionButtonTriggerDirective,
2033
- DbNgxActionButtonDirective,
2034
- DbNgxButtonSegueDirective
2129
+ DbxButtonDirective,
2130
+ DbxLoadingButtonDirective,
2131
+ DbxActionButtonTriggerDirective,
2132
+ DbxActionButtonDirective,
2133
+ DbxButtonSegueDirective
2035
2134
  ],
2036
2135
  exports: [
2037
- DbNgxButtonDirective,
2038
- DbNgxLoadingButtonDirective,
2039
- DbNgxActionButtonTriggerDirective,
2040
- DbNgxActionButtonDirective,
2041
- DbNgxButtonSegueDirective
2136
+ DbxButtonDirective,
2137
+ DbxLoadingButtonDirective,
2138
+ DbxActionButtonTriggerDirective,
2139
+ DbxActionButtonDirective,
2140
+ DbxButtonSegueDirective
2042
2141
  ],
2043
2142
  }]
2044
2143
  }] });
@@ -2213,8 +2312,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2213
2312
  class DateDistancePipe {
2214
2313
  transform(input, to, unavailable = 'Not Available') {
2215
2314
  if (input) {
2216
- const defaultTo = !to;
2217
- if (defaultTo) {
2315
+ const useDefaultTo = !to;
2316
+ if (useDefaultTo) {
2218
2317
  to = new Date();
2219
2318
  }
2220
2319
  const from = ToJsDatePipe.toJsDate(input);
@@ -2222,7 +2321,7 @@ class DateDistancePipe {
2222
2321
  const toStart = startOfDay(to);
2223
2322
  if (isSameDay(fromStart, toStart)) {
2224
2323
  let text;
2225
- if (defaultTo || isSameDay(from, new Date())) {
2324
+ if (useDefaultTo || isSameDay(from, new Date())) {
2226
2325
  text = 'Today';
2227
2326
  }
2228
2327
  else {
@@ -2248,10 +2347,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2248
2347
  args: [{ name: 'dateDistance', pure: false }]
2249
2348
  }] });
2250
2349
 
2251
- class DbNgxDatePipeModule {
2350
+ class DbxDatePipeModule {
2252
2351
  }
2253
- DbNgxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2254
- DbNgxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, declarations: [DateFromToTimePipe,
2352
+ DbxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2353
+ DbxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, declarations: [DateFromToTimePipe,
2255
2354
  DateFormatDistancePipe,
2256
2355
  MinutesStringPipe,
2257
2356
  TimeDistanceCountdownPipe,
@@ -2266,8 +2365,8 @@ DbNgxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
2266
2365
  DateDistancePipe,
2267
2366
  ToJsDatePipe,
2268
2367
  ToMinutesPipe] });
2269
- DbNgxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule });
2270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxDatePipeModule, decorators: [{
2368
+ DbxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule });
2369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxDatePipeModule, decorators: [{
2271
2370
  type: NgModule,
2272
2371
  args: [{
2273
2372
  exports: [
@@ -2294,10 +2393,317 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2294
2393
  }] });
2295
2394
 
2296
2395
  /**
2297
- * Instance used by components to inject content based on the configuration into the view.
2396
+ * Abstract FilterSource implementation.
2298
2397
  */
2299
- class DbNgxInjectedComponentInstance {
2398
+ class AbstractFilterSourceDirective {
2300
2399
  constructor() {
2400
+ this._defaultFilterSource = new FilterSourceInstance();
2401
+ this.filter$ = this._defaultFilterSource.filter$;
2402
+ }
2403
+ ngOnInit() {
2404
+ this._defaultFilterSource.setDefaultFilter(this.makeDefaultFilter());
2405
+ }
2406
+ ngOnDestroy() {
2407
+ this._defaultFilterSource.destroy();
2408
+ }
2409
+ initWithFilter(filterObs) {
2410
+ this._defaultFilterSource.initWithFilter(filterObs);
2411
+ }
2412
+ setFilter(filter) {
2413
+ this._defaultFilterSource.setFilter(filter);
2414
+ }
2415
+ resetFilter() {
2416
+ this._defaultFilterSource.resetFilter();
2417
+ }
2418
+ // MARK: Internal
2419
+ makeDefaultFilter() {
2420
+ return of(undefined);
2421
+ }
2422
+ }
2423
+ AbstractFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2424
+ AbstractFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractFilterSourceDirective, ngImport: i0 });
2425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceDirective, decorators: [{
2426
+ type: Directive
2427
+ }] });
2428
+
2429
+ /**
2430
+ * Abstract filter source for components that use an action to filter.
2431
+ */
2432
+ class AbstractActionFilterSourceDirective extends AbstractFilterSourceDirective {
2433
+ constructor() {
2434
+ super(...arguments);
2435
+ /**
2436
+ * Pre-set action handler for the template to use to set the filter.
2437
+ */
2438
+ this.setFilterAction = (filter) => {
2439
+ this.setFilter(filter);
2440
+ return of(true);
2441
+ };
2442
+ }
2443
+ applyFilter() {
2444
+ this.filterAction.setIsModified(true); // Force setting modified.
2445
+ this.filterAction.trigger();
2446
+ }
2447
+ }
2448
+ AbstractActionFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractActionFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2449
+ 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 });
2450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractActionFilterSourceDirective, decorators: [{
2451
+ type: Directive
2452
+ }], propDecorators: { filterAction: [{
2453
+ type: ViewChild,
2454
+ args: [ActionContextStoreSourceInstance, { static: true, read: ActionContextStoreSourceInstance }]
2455
+ }] } });
2456
+
2457
+ /**
2458
+ * Abstract FilterSourceConnector directive.
2459
+ */
2460
+ class AbstractFilterSourceConnectorDirective {
2461
+ constructor() {
2462
+ this._source = new BehaviorSubject(undefined);
2463
+ this.filter$ = this._source.pipe(switchMap$1(x => x?.filter$ ?? of(undefined)), shareReplay$1(1));
2464
+ }
2465
+ ngOnDestroy() {
2466
+ this._source.complete();
2467
+ }
2468
+ connectWithSource(filterSource) {
2469
+ this._source.next(filterSource);
2470
+ }
2471
+ }
2472
+ AbstractFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2473
+ AbstractFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractFilterSourceConnectorDirective, ngImport: i0 });
2474
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, decorators: [{
2475
+ type: Directive
2476
+ }] });
2477
+
2478
+ /**
2479
+ * Angular provider convenience function for a FilterSource.
2480
+ */
2481
+ function ProvideFilterSource(sourceType) {
2482
+ return [{
2483
+ provide: FilterSource,
2484
+ useExisting: forwardRef(() => sourceType)
2485
+ }];
2486
+ }
2487
+ /**
2488
+ * Angular provider convenience function for a FilterSourceConnector.
2489
+ */
2490
+ function ProvideFilterSourceConnector(sourceType) {
2491
+ return [{
2492
+ provide: FilterSourceConnector,
2493
+ useExisting: forwardRef(() => sourceType)
2494
+ }, {
2495
+ provide: FilterSource,
2496
+ useExisting: forwardRef(() => sourceType)
2497
+ }];
2498
+ }
2499
+
2500
+ /**
2501
+ * Used as a FilterSource and FilterSourceConnector.
2502
+ */
2503
+ class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
2504
+ }
2505
+ DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2506
+ DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
2507
+ ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
2508
+ ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
2509
+ ], usesInheritance: true, ngImport: i0 });
2510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
2511
+ type: Directive,
2512
+ args: [{
2513
+ selector: '[dbxFilterSourceConnector]',
2514
+ providers: [
2515
+ ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
2516
+ ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
2517
+ ]
2518
+ }]
2519
+ }] });
2520
+
2521
+ /**
2522
+ * Provides a FilterSource from a parent FilterMap.
2523
+ */
2524
+ class AbstractDbxFilterMapInstanceDirective {
2525
+ constructor(dbxFilterMap) {
2526
+ this.dbxFilterMap = dbxFilterMap;
2527
+ this._key = new BehaviorSubject(undefined);
2528
+ this.key$ = this._key.pipe(filterMaybe());
2529
+ this.instance$ = this.dbxFilterMap.instanceObsForKeyObs(this.key$);
2530
+ }
2531
+ ngOnDestroy() {
2532
+ this._key.complete();
2533
+ }
2534
+ }
2535
+ 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 });
2536
+ AbstractDbxFilterMapInstanceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxFilterMapInstanceDirective, ngImport: i0 });
2537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, decorators: [{
2538
+ type: Directive
2539
+ }], ctorParameters: function () { return [{ type: i1$3.FilterMap }]; } });
2540
+
2541
+ /**
2542
+ * Provides a FilterSource from a parent FilterMap.
2543
+ */
2544
+ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
2545
+ constructor() {
2546
+ super(...arguments);
2547
+ this.filter$ = this.instance$.pipe(switchMap$1(x => x.filter$));
2548
+ }
2549
+ get key() {
2550
+ return this._key.value;
2551
+ }
2552
+ set key(key) {
2553
+ this._key.next(key);
2554
+ }
2555
+ initWithFilter(filterObs) {
2556
+ this.instance$.pipe(first$1()).subscribe((x) => x.initWithFilter(filterObs));
2557
+ }
2558
+ }
2559
+ DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2560
+ DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
2561
+ ...ProvideFilterSource(DbxFilterMapSourceDirective)
2562
+ ], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
2563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
2564
+ type: Directive,
2565
+ args: [{
2566
+ selector: '[dbxFilterMapSource]',
2567
+ exportAs: 'dbxFilterMapSource',
2568
+ providers: [
2569
+ ...ProvideFilterSource(DbxFilterMapSourceDirective)
2570
+ ]
2571
+ }]
2572
+ }], propDecorators: { key: [{
2573
+ type: Input,
2574
+ args: ['dbxFilterMapSource']
2575
+ }] } });
2576
+
2577
+ /**
2578
+ * Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
2579
+ */
2580
+ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
2581
+ get key() {
2582
+ return this._key.value;
2583
+ }
2584
+ set key(key) {
2585
+ this._key.next(key);
2586
+ }
2587
+ // MARK: FilterSourceConnector
2588
+ connectWithSource(filterSource) {
2589
+ this.instance$.pipe(first$1()).subscribe((x) => x.connectWithSource(filterSource));
2590
+ }
2591
+ }
2592
+ DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2593
+ DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
2594
+ ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
2595
+ ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
2596
+ ], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
2597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
2598
+ type: Directive,
2599
+ args: [{
2600
+ selector: '[dbxFilterMapSourceConnector]',
2601
+ exportAs: 'dbxFilterMapSourceConnector',
2602
+ providers: [
2603
+ ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
2604
+ ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
2605
+ ]
2606
+ }]
2607
+ }], propDecorators: { key: [{
2608
+ type: Input,
2609
+ args: ['dbxFilterMapSourceConnector']
2610
+ }] } });
2611
+
2612
+ /**
2613
+ * Direction that provides an FilterMap.
2614
+ */
2615
+ class DbxFilterMapDirective {
2616
+ constructor(filterMap) {
2617
+ this.filterMap = filterMap;
2618
+ }
2619
+ ngOnDestroy() {
2620
+ this.filterMap.destroy();
2621
+ }
2622
+ }
2623
+ 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 });
2624
+ DbxFilterMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterMapDirective, selector: "[dbxFilterMap]", providers: [FilterMap], exportAs: ["dbxFilterMap"], ngImport: i0 });
2625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterMapDirective, decorators: [{
2626
+ type: Directive,
2627
+ args: [{
2628
+ selector: '[dbxFilterMap]',
2629
+ exportAs: 'dbxFilterMap',
2630
+ providers: [FilterMap]
2631
+ }]
2632
+ }], ctorParameters: function () { return [{ type: i1$3.FilterMap }]; } });
2633
+
2634
+ /**
2635
+ * Basic filter source directive.
2636
+ */
2637
+ class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
2638
+ }
2639
+ DbxFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2640
+ DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: ProvideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
2641
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
2642
+ type: Directive,
2643
+ args: [{
2644
+ selector: '[dbxFilterSource]',
2645
+ providers: ProvideFilterSource(DbxFilterSourceDirective)
2646
+ }]
2647
+ }] });
2648
+
2649
+ class DbxCoreFilterModule {
2650
+ }
2651
+ DbxCoreFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2652
+ DbxCoreFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, declarations: [DbxFilterSourceDirective,
2653
+ DbxFilterSourceConnectorDirective,
2654
+ DbxFilterMapDirective,
2655
+ DbxFilterMapSourceConnectorDirective,
2656
+ DbxFilterMapSourceDirective], imports: [CommonModule], exports: [DbxFilterSourceDirective,
2657
+ DbxFilterSourceConnectorDirective,
2658
+ DbxFilterMapDirective,
2659
+ DbxFilterMapSourceConnectorDirective,
2660
+ DbxFilterMapSourceDirective] });
2661
+ DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, imports: [[
2662
+ CommonModule
2663
+ ]] });
2664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
2665
+ type: NgModule,
2666
+ args: [{
2667
+ imports: [
2668
+ CommonModule
2669
+ ],
2670
+ declarations: [
2671
+ DbxFilterSourceDirective,
2672
+ DbxFilterSourceConnectorDirective,
2673
+ DbxFilterMapDirective,
2674
+ DbxFilterMapSourceConnectorDirective,
2675
+ DbxFilterMapSourceDirective,
2676
+ ],
2677
+ exports: [
2678
+ DbxFilterSourceDirective,
2679
+ DbxFilterSourceConnectorDirective,
2680
+ DbxFilterMapDirective,
2681
+ DbxFilterMapSourceConnectorDirective,
2682
+ DbxFilterMapSourceDirective,
2683
+ ]
2684
+ }]
2685
+ }] });
2686
+
2687
+ const DBX_INJECTED_COMPONENT_DATA = new InjectionToken('DbxInjectedComponentConfigData');
2688
+ /**
2689
+ * Merges multiple configurations into a single configuration.
2690
+ *
2691
+ * @param configs
2692
+ * @returns
2693
+ */
2694
+ function mergeDbxInjectedComponentConfigs(configs) {
2695
+ const providers = mergeArrays(filterMaybeValues(configs).map(x => x.providers));
2696
+ const result = mergeObjects(configs);
2697
+ result.providers = providers;
2698
+ return result;
2699
+ }
2700
+
2701
+ /**
2702
+ * Instance used by components to inject content based on the configuration into the view.
2703
+ */
2704
+ class DbxInjectedComponentInstance {
2705
+ constructor(_injector) {
2706
+ this._injector = _injector;
2301
2707
  this._subscriptionObject = new SubscriptionObject();
2302
2708
  this._config = new BehaviorSubject(undefined);
2303
2709
  this._template = new BehaviorSubject(undefined);
@@ -2364,8 +2770,19 @@ class DbNgxInjectedComponentInstance {
2364
2770
  }
2365
2771
  _initComponent(config, content) {
2366
2772
  content.clear();
2367
- const { init, injector, componentClass } = config;
2368
- const componentRef = content.createComponent(componentClass, { injector });
2773
+ const { init, injector: inputInjector, providers, ngModuleRef, componentClass, data } = config;
2774
+ let injector;
2775
+ const parentInjector = inputInjector ?? this._injector;
2776
+ if (Boolean(providers || data)) {
2777
+ injector = Injector.create({
2778
+ parent: parentInjector,
2779
+ providers: mergeArrayOrValueIntoArray([{
2780
+ provide: DBX_INJECTED_COMPONENT_DATA,
2781
+ useValue: data
2782
+ }], providers ?? [])
2783
+ });
2784
+ }
2785
+ const componentRef = content.createComponent(componentClass, { injector, ngModuleRef });
2369
2786
  const instance = componentRef.instance;
2370
2787
  if (init) {
2371
2788
  init(instance);
@@ -2394,9 +2811,10 @@ class DbNgxInjectedComponentInstance {
2394
2811
  /**
2395
2812
  * Abstract directive that injects content based on the configuration into the view.
2396
2813
  */
2397
- class AbstractDbNgxInjectedDirective {
2398
- constructor() {
2399
- this._instance = new DbNgxInjectedComponentInstance();
2814
+ class AbstractDbxInjectedDirective {
2815
+ constructor(_injector) {
2816
+ this._injector = _injector;
2817
+ this._instance = new DbxInjectedComponentInstance(this._injector);
2400
2818
  }
2401
2819
  ngOnInit() {
2402
2820
  this._instance.init();
@@ -2414,16 +2832,16 @@ class AbstractDbNgxInjectedDirective {
2414
2832
  this._instance.content = content;
2415
2833
  }
2416
2834
  }
2417
- AbstractDbNgxInjectedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxInjectedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2418
- AbstractDbNgxInjectedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbNgxInjectedDirective, ngImport: i0 });
2419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbNgxInjectedDirective, decorators: [{
2835
+ AbstractDbxInjectedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxInjectedDirective, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
2836
+ AbstractDbxInjectedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: AbstractDbxInjectedDirective, ngImport: i0 });
2837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AbstractDbxInjectedDirective, decorators: [{
2420
2838
  type: Directive
2421
- }] });
2839
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
2422
2840
 
2423
2841
  /**
2424
2842
  * Component that injects content based on the configuration into the view.
2425
2843
  */
2426
- class DbNgxInjectedComponent extends AbstractDbNgxInjectedDirective {
2844
+ class DbxInjectedComponent extends AbstractDbxInjectedDirective {
2427
2845
  set config(config) {
2428
2846
  this.setConfig(config);
2429
2847
  }
@@ -2434,9 +2852,9 @@ class DbNgxInjectedComponent extends AbstractDbNgxInjectedDirective {
2434
2852
  this.setContent(content);
2435
2853
  }
2436
2854
  }
2437
- DbNgxInjectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2438
- 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 });
2439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponent, decorators: [{
2855
+ DbxInjectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2856
+ 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 });
2857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponent, decorators: [{
2440
2858
  type: Component,
2441
2859
  args: [{
2442
2860
  selector: 'dbx-injected-content, [dbx-injected-content]',
@@ -2451,24 +2869,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
2451
2869
  args: ['content', { static: true, read: ViewContainerRef }]
2452
2870
  }] } });
2453
2871
 
2454
- class DbNgxInjectedComponentModule {
2872
+ class DbxInjectedComponentModule {
2455
2873
  }
2456
- DbNgxInjectedComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2457
- DbNgxInjectedComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, declarations: [DbNgxInjectedComponent], imports: [CommonModule], exports: [DbNgxInjectedComponent] });
2458
- DbNgxInjectedComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, imports: [[
2874
+ DbxInjectedComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2875
+ DbxInjectedComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, declarations: [DbxInjectedComponent], imports: [CommonModule], exports: [DbxInjectedComponent] });
2876
+ DbxInjectedComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, imports: [[
2459
2877
  CommonModule
2460
2878
  ]] });
2461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbNgxInjectedComponentModule, decorators: [{
2879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxInjectedComponentModule, decorators: [{
2462
2880
  type: NgModule,
2463
2881
  args: [{
2464
2882
  imports: [
2465
2883
  CommonModule
2466
2884
  ],
2467
2885
  declarations: [
2468
- DbNgxInjectedComponent
2886
+ DbxInjectedComponent
2469
2887
  ],
2470
2888
  exports: [
2471
- DbNgxInjectedComponent
2889
+ DbxInjectedComponent
2472
2890
  ],
2473
2891
  }]
2474
2892
  }] });
@@ -2595,7 +3013,7 @@ class SimpleStorageAccessor {
2595
3013
  const expiresIn = this._config.expiresIn;
2596
3014
  if (expiresIn) {
2597
3015
  if (storeData.storedAt) {
2598
- return timeNumberHasExpired(storeData.storedAt, expiresIn);
3016
+ return timeHasExpired(storeData.storedAt, expiresIn);
2599
3017
  }
2600
3018
  return true;
2601
3019
  }
@@ -2678,8 +3096,8 @@ class StringStorageAccessor {
2678
3096
  }
2679
3097
  }
2680
3098
 
2681
- const DEFAULT_STORAGE_OBJECT_TOKEN = new InjectionToken('DEFAULT_STORAGE_OBJECT');
2682
- const DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN = new InjectionToken('DEFAULT_STORAGE_ACCESSOR_FACTORY');
3099
+ const DEFAULT_STORAGE_OBJECT_TOKEN = new InjectionToken('DBX_UTIL_DEFAULT_STORAGE_OBJECT');
3100
+ const DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN = new InjectionToken('DBX_UTIL_DEFAULT_STORAGE_ACCESSOR_FACTORY');
2683
3101
 
2684
3102
  /**
2685
3103
  * Used for building SimpleStorageAccessor instances from SimpleStorageAccessorConfig.
@@ -2702,7 +3120,7 @@ SimpleStorageAccessorFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0
2702
3120
  SimpleStorageAccessorFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: SimpleStorageAccessorFactory });
2703
3121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: SimpleStorageAccessorFactory, decorators: [{
2704
3122
  type: Injectable
2705
- }], ctorParameters: function () { return [{ type: i1$3.FullStorageObject, decorators: [{
3123
+ }], ctorParameters: function () { return [{ type: i1$4.FullStorageObject, decorators: [{
2706
3124
  type: Inject,
2707
3125
  args: [DEFAULT_STORAGE_OBJECT_TOKEN]
2708
3126
  }] }]; } });
@@ -2790,10 +3208,10 @@ function defaultStorageObjectFactory() {
2790
3208
  }
2791
3209
  return storageObject;
2792
3210
  }
2793
- class AppStorageModule {
3211
+ class DbxStorageModule {
2794
3212
  static forRoot() {
2795
3213
  return {
2796
- ngModule: AppStorageModule,
3214
+ ngModule: DbxStorageModule,
2797
3215
  providers: [{
2798
3216
  provide: DEFAULT_STORAGE_OBJECT_TOKEN,
2799
3217
  useFactory: defaultStorageObjectFactory
@@ -2807,13 +3225,23 @@ class AppStorageModule {
2807
3225
  };
2808
3226
  }
2809
3227
  }
2810
- AppStorageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2811
- AppStorageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule });
2812
- AppStorageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule });
2813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: AppStorageModule, decorators: [{
3228
+ DbxStorageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3229
+ DbxStorageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule });
3230
+ DbxStorageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule });
3231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxStorageModule, decorators: [{
2814
3232
  type: NgModule
2815
3233
  }] });
2816
3234
 
3235
+ /**
3236
+ * Convenience function used within observables for views that need to detect changes after a value changes.
3237
+ *
3238
+ * @param cdRef
3239
+ * @param timeout
3240
+ * @returns
3241
+ */
3242
+ function tapDetectChanges(cdRef, timeout = 0) {
3243
+ return tap$1(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
3244
+ }
2817
3245
  /**
2818
3246
  * Triggers a detection change on the input view as long as the view has not been destroyed.
2819
3247
  *
@@ -2852,5 +3280,5 @@ function checkNgContentWrapperHasContent(ref) {
2852
3280
  * Generated bundle index. Do not edit.
2853
3281
  */
2854
3282
 
2855
- 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 };
3283
+ 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 };
2856
3284
  //# sourceMappingURL=dereekb-dbx-core.mjs.map