@dereekb/dbx-web 9.19.5 → 9.20.1

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 (41) hide show
  1. package/calendar/package.json +2 -2
  2. package/esm2020/lib/extension/index.mjs +2 -1
  3. package/esm2020/lib/extension/model/index.mjs +9 -0
  4. package/esm2020/lib/extension/model/model.module.mjs +66 -0
  5. package/esm2020/lib/extension/model/model.state.service.mjs +25 -0
  6. package/esm2020/lib/extension/model/model.tracker.mjs +7 -0
  7. package/esm2020/lib/extension/model/model.tracker.service.mjs +45 -0
  8. package/esm2020/lib/extension/model/model.tracker.view.storage.mjs +73 -0
  9. package/esm2020/lib/extension/model/model.types.mjs +2 -0
  10. package/esm2020/lib/extension/model/model.types.service.mjs +68 -0
  11. package/esm2020/lib/extension/model/state/actions/actions.mjs +3 -0
  12. package/esm2020/lib/extension/model/state/actions/index.mjs +4 -0
  13. package/esm2020/lib/extension/model/state/actions/model.actions.mjs +3 -0
  14. package/esm2020/lib/extension/model/state/effects/tracker.effects.mjs +30 -0
  15. package/esm2020/lib/extension/model/state/index.mjs +6 -0
  16. package/esm2020/lib/extension/model/state/reducers/index.mjs +13 -0
  17. package/esm2020/lib/extension/model/state/reducers/model.module.config.mjs +8 -0
  18. package/esm2020/lib/extension/model/state/state.mjs +2 -0
  19. package/fesm2015/dereekb-dbx-web.mjs +317 -4
  20. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  21. package/fesm2020/dereekb-dbx-web.mjs +323 -4
  22. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  23. package/lib/extension/index.d.ts +1 -0
  24. package/lib/extension/model/index.d.ts +8 -0
  25. package/lib/extension/model/model.module.d.ts +19 -0
  26. package/lib/extension/model/model.state.service.d.ts +14 -0
  27. package/lib/extension/model/model.tracker.d.ts +32 -0
  28. package/lib/extension/model/model.tracker.service.d.ts +20 -0
  29. package/lib/extension/model/model.tracker.view.storage.d.ts +27 -0
  30. package/lib/extension/model/model.types.d.ts +41 -0
  31. package/lib/extension/model/model.types.service.d.ts +31 -0
  32. package/lib/extension/model/state/actions/actions.d.ts +1 -0
  33. package/lib/extension/model/state/actions/index.d.ts +3 -0
  34. package/lib/extension/model/state/actions/model.actions.d.ts +9 -0
  35. package/lib/extension/model/state/effects/tracker.effects.d.ts +16 -0
  36. package/lib/extension/model/state/index.d.ts +5 -0
  37. package/lib/extension/model/state/reducers/index.d.ts +15 -0
  38. package/lib/extension/model/state/reducers/model.module.config.d.ts +5 -0
  39. package/lib/extension/model/state/state.d.ts +2 -0
  40. package/mapbox/package.json +3 -3
  41. package/package.json +4 -3
@@ -5,7 +5,7 @@ import { BehaviorSubject, map, combineLatest, distinctUntilChanged, shareReplay,
5
5
  import * as i1$1 from '@angular/material/snack-bar';
6
6
  import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
7
7
  import * as i1$2 from '@dereekb/dbx-core';
8
- import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, DbxInjectionComponentModule, AbstractDbxActionHandlerDirective, provideActionStoreSource, AbstractDbxAnchorDirective, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, DbxCoreFilterModule, asSegueRef, isSegueRefActive, DBX_INJECTION_COMPONENT_DATA, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
8
+ import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, DbxInjectionComponentModule, AbstractDbxActionHandlerDirective, provideActionStoreSource, AbstractDbxAnchorDirective, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, DbxCoreFilterModule, asSegueRef, isSegueRefActive, DBX_INJECTION_COMPONENT_DATA, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, isIdleActionState, canTriggerAction, onDbxAppAuth, SimpleStorageAccessorFactory } from '@dereekb/dbx-core';
9
9
  import ms from 'ms';
10
10
  import * as i1 from '@angular/common';
11
11
  import { CommonModule } from '@angular/common';
@@ -15,7 +15,7 @@ import * as i3 from '@angular/material/progress-spinner';
15
15
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
16
16
  import * as i2$1 from '@angular/material/icon';
17
17
  import { MatIconModule } from '@angular/material/icon';
18
- import { getValueFromGetter, mergeObjects, splitCommaSeparatedStringToSet, objectHasNoKeys, modifier, combineMaps, addModifiers, removeModifiers, applyBestFit, isMaybeNot, isNotNullOrEmptyString, filterMaybeValues, mapIterable, toReadableError, isDefaultReadableError, build, ServerErrorResponse, UnauthorizedServerErrorResponse, maybeModifierMapToFunction } from '@dereekb/util';
18
+ import { getValueFromGetter, mergeObjects, splitCommaSeparatedStringToSet, objectHasNoKeys, modifier, combineMaps, addModifiers, removeModifiers, applyBestFit, isMaybeNot, isNotNullOrEmptyString, filterMaybeValues, mapIterable, toReadableError, isDefaultReadableError, build, ServerErrorResponse, UnauthorizedServerErrorResponse, maybeModifierMapToFunction, ModelRelationUtility, encodeModelKeyTypePair, useIterableOrValue } from '@dereekb/util';
19
19
  import * as i3$1 from '@angular/material/progress-bar';
20
20
  import { MatProgressBarModule } from '@angular/material/progress-bar';
21
21
  import * as i4$1 from '@angular/material/core';
@@ -34,7 +34,7 @@ import * as i4 from '@angular/material/divider';
34
34
  import { MatDividerModule } from '@angular/material/divider';
35
35
  import * as i3$2 from '@angular/flex-layout/flex';
36
36
  import { FlexLayoutModule } from '@angular/flex-layout';
37
- import { shareReplay as shareReplay$1 } from 'rxjs/operators';
37
+ import { shareReplay as shareReplay$1, mergeMap as mergeMap$1, map as map$1, catchError as catchError$1, distinctUntilChanged as distinctUntilChanged$1, tap as tap$1, filter as filter$1 } from 'rxjs/operators';
38
38
  import * as i3$3 from '@angular/material/list';
39
39
  import { MatListModule } from '@angular/material/list';
40
40
  import * as i4$3 from '@angular/material/tabs';
@@ -60,6 +60,12 @@ import linkifyStr from 'linkify-string';
60
60
  import * as i1$9 from '@angular/platform-browser';
61
61
  import * as i4$4 from '@angular/flex-layout/grid';
62
62
  import * as i2$4 from '@uirouter/core';
63
+ import * as i1$b from '@ngrx/store';
64
+ import { createAction, props, createReducer, on, combineReducers, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
65
+ import * as i1$a from '@ngrx/effects';
66
+ import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
67
+ import { unixTimeNumberForNow } from '@dereekb/date';
68
+ import { capitalCase } from 'change-case';
63
69
 
64
70
  class DbxSpacerDirective {
65
71
  }
@@ -7792,6 +7798,319 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
7792
7798
  }]
7793
7799
  }] });
7794
7800
 
7801
+ const dbxModelResetState = createAction('[App/Model] Reset State');
7802
+
7803
+ var actions = /*#__PURE__*/Object.freeze({
7804
+ __proto__: null,
7805
+ dbxModelResetState: dbxModelResetState
7806
+ });
7807
+
7808
+ const emitObjectViewEvent = createAction('[App/Model/Type] Object Viewed', props());
7809
+
7810
+ var model_actions = /*#__PURE__*/Object.freeze({
7811
+ __proto__: null,
7812
+ emitObjectViewEvent: emitObjectViewEvent
7813
+ });
7814
+
7815
+ var index$1 = /*#__PURE__*/Object.freeze({
7816
+ __proto__: null,
7817
+ DbxModelStateActions: actions,
7818
+ DbxModelStateModelActions: model_actions
7819
+ });
7820
+
7821
+ const stateFeatureKey = 'model.module.config';
7822
+ const initialState = {
7823
+ types: {}
7824
+ };
7825
+ const reducer = createReducer(initialState, on(dbxModelResetState, () => initialState));
7826
+
7827
+ const featureKey = 'app.model';
7828
+ function reducers(state, action) {
7829
+ return combineReducers({
7830
+ [stateFeatureKey]: reducer
7831
+ })(state, action);
7832
+ }
7833
+ // MARK: Context
7834
+ const selectDbxModelFeature = createFeatureSelector(featureKey);
7835
+ // MARK: Module Config
7836
+ const selectDbxModelFeatureObjectModuleConfig = createSelector(selectDbxModelFeature, (state) => state[stateFeatureKey]);
7837
+
7838
+ var index = /*#__PURE__*/Object.freeze({
7839
+ __proto__: null,
7840
+ featureKey: featureKey,
7841
+ reducers: reducers,
7842
+ selectDbxModelFeature: selectDbxModelFeature,
7843
+ selectDbxModelFeatureObjectModuleConfig: selectDbxModelFeatureObjectModuleConfig
7844
+ });
7845
+
7846
+ /**
7847
+ * Used for managing DbxModelViewTrackerEvent storage.
7848
+ */
7849
+ class DbxModelViewTrackerStorage {
7850
+ constructor(storageAccessor) {
7851
+ this.storageAccessor = storageAccessor;
7852
+ }
7853
+ get storageKey() {
7854
+ return DbxModelViewTrackerStorage.OBJECT_VIEW_TRACKER_STORAGE_LIST_KEY;
7855
+ }
7856
+ get maxEventsToKeep() {
7857
+ return DbxModelViewTrackerStorage.MAX_EVENTS;
7858
+ }
7859
+ addTrackerEvent(event) {
7860
+ const storageKey = this.getStorageKeyForFolder(event.folder);
7861
+ return this._getEventSetForStorageKey(storageKey).pipe(mergeMap$1((set) => {
7862
+ const nextEvent = {
7863
+ d: event.d ?? unixTimeNumberForNow(),
7864
+ c: event.c,
7865
+ m: event.m
7866
+ };
7867
+ const e = ModelRelationUtility.removeDuplicates(set.e, (x) => encodeModelKeyTypePair(x.m), [encodeModelKeyTypePair(nextEvent.m)]);
7868
+ e.push(nextEvent);
7869
+ e.sort((a, b) => (b.d ?? 0) - (a.d ?? 0));
7870
+ return this.storageAccessor.set(storageKey, {
7871
+ l: Math.max(set.l ?? 0, nextEvent.d),
7872
+ e: e.slice(0, this.maxEventsToKeep)
7873
+ });
7874
+ }));
7875
+ }
7876
+ getAllEvents(folder) {
7877
+ return this.getEventSet(folder).pipe(map$1((x) => x.e));
7878
+ }
7879
+ getEventSet(folder) {
7880
+ const storageKey = this.getStorageKeyForFolder(folder);
7881
+ return this._getEventSetForStorageKey(storageKey);
7882
+ }
7883
+ _getEventSetForStorageKey(storageKey) {
7884
+ return this.storageAccessor.get(storageKey).pipe(catchError$1((e) => {
7885
+ return of(undefined);
7886
+ }), map$1((result) => result ?? { e: [], l: 0 }));
7887
+ }
7888
+ getStorageKeyForFolder(folder) {
7889
+ const storageKey = `${this.storageKey}_${folder ?? 'default'}`;
7890
+ return storageKey;
7891
+ }
7892
+ // MARK: Compat
7893
+ /**
7894
+ * @deprecated use addTrackerEvent() instead.
7895
+ */
7896
+ addEvent(event) {
7897
+ return this.addTrackerEvent(event);
7898
+ }
7899
+ }
7900
+ DbxModelViewTrackerStorage.OBJECT_VIEW_TRACKER_STORAGE_LIST_KEY = 'dbxModelViewTrackerEvents';
7901
+ DbxModelViewTrackerStorage.MAX_EVENTS = 60;
7902
+ DbxModelViewTrackerStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelViewTrackerStorage, deps: [{ token: i1$2.StorageAccessor }], target: i0.ɵɵFactoryTarget.Injectable });
7903
+ DbxModelViewTrackerStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelViewTrackerStorage, providedIn: 'root' });
7904
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelViewTrackerStorage, decorators: [{
7905
+ type: Injectable,
7906
+ args: [{
7907
+ providedIn: 'root'
7908
+ }]
7909
+ }], ctorParameters: function () { return [{ type: i1$2.StorageAccessor }]; } });
7910
+
7911
+ /**
7912
+ * Service used for tracking/logging different kinds of events on objects.
7913
+ */
7914
+ class DbxModelTrackerService {
7915
+ constructor(viewTrackerStorage) {
7916
+ this.viewTrackerStorage = viewTrackerStorage;
7917
+ }
7918
+ get defaultFolder() {
7919
+ return this._defaultFolder;
7920
+ }
7921
+ set defaultFolder(folder) {
7922
+ this._defaultFolder = folder ?? undefined;
7923
+ }
7924
+ // MARK: View
7925
+ trackViewedObject(modelKeyTypeNamePair, context, folder = this._defaultFolder) {
7926
+ this.viewTrackerStorage
7927
+ .addTrackerEvent({
7928
+ m: modelKeyTypeNamePair,
7929
+ c: context,
7930
+ folder
7931
+ })
7932
+ .pipe(first())
7933
+ .subscribe();
7934
+ }
7935
+ getAllViewEvents(folder = this._defaultFolder) {
7936
+ return this.viewTrackerStorage.getAllEvents(folder);
7937
+ }
7938
+ getViewEventSet(folder = this._defaultFolder) {
7939
+ return this.viewTrackerStorage.getEventSet(folder);
7940
+ }
7941
+ }
7942
+ DbxModelTrackerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerService, deps: [{ token: DbxModelViewTrackerStorage }], target: i0.ɵɵFactoryTarget.Injectable });
7943
+ DbxModelTrackerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerService, providedIn: 'root' });
7944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerService, decorators: [{
7945
+ type: Injectable,
7946
+ args: [{
7947
+ providedIn: 'root'
7948
+ }]
7949
+ }], ctorParameters: function () { return [{ type: DbxModelViewTrackerStorage }]; } });
7950
+
7951
+ /**
7952
+ * Used to pass Object Store events to the ObjectTracker.
7953
+ */
7954
+ class DbxModelTrackerEffects {
7955
+ constructor(actions$, dbxModelTrackerService) {
7956
+ this.actions$ = actions$;
7957
+ this.dbxModelTrackerService = dbxModelTrackerService;
7958
+ this.trackModelViewed$ = createEffect(() => this.actions$.pipe(ofType(emitObjectViewEvent), distinctUntilChanged$1((a, b) => a?.modelKeyTypeNamePair.key === b?.modelKeyTypeNamePair.key && a?.type === b?.type && a?.context === b?.context), tap$1((x) => {
7959
+ this.dbxModelTrackerService.trackViewedObject(x.modelKeyTypeNamePair, x.context);
7960
+ })), { dispatch: false });
7961
+ this.changeTrackerFolderToMatchAuth$ = createEffect(() => this.actions$.pipe(ofType(onDbxAppAuth.DbxAppAuthUserActions.setUserIdentifier), map$1((x) => x.id), filter$1((x) => Boolean(x)), distinctUntilChanged$1(), tap$1((accountId) => {
7962
+ this.dbxModelTrackerService.defaultFolder = accountId;
7963
+ })), { dispatch: false });
7964
+ }
7965
+ }
7966
+ DbxModelTrackerEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerEffects, deps: [{ token: i1$a.Actions }, { token: DbxModelTrackerService }], target: i0.ɵɵFactoryTarget.Injectable });
7967
+ DbxModelTrackerEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerEffects });
7968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTrackerEffects, decorators: [{
7969
+ type: Injectable
7970
+ }], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: DbxModelTrackerService }]; } });
7971
+
7972
+ function appObjectViewTrackerStorageFactory(storageAccessorFactory) {
7973
+ const accessor = storageAccessorFactory.createStorageAccessor({
7974
+ prefix: 'mtvs'
7975
+ });
7976
+ return new DbxModelViewTrackerStorage(accessor);
7977
+ }
7978
+ /**
7979
+ * Contains components related to displaying content related to models identified only by their model key.
7980
+ */
7981
+ class DbxModelInfoModule {
7982
+ static forRoot() {
7983
+ return {
7984
+ ngModule: DbxModelInfoModule,
7985
+ providers: [
7986
+ DbxModelTrackerService,
7987
+ {
7988
+ provide: DbxModelViewTrackerStorage,
7989
+ useFactory: appObjectViewTrackerStorageFactory,
7990
+ deps: [SimpleStorageAccessorFactory]
7991
+ }
7992
+ ]
7993
+ };
7994
+ }
7995
+ }
7996
+ DbxModelInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7997
+ DbxModelInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxModelInfoModule, imports: [
7998
+ //
7999
+ CommonModule,
8000
+ DbxListLayoutModule,
8001
+ DbxInjectionComponentModule, i1$a.EffectsFeatureModule, i1$b.StoreFeatureModule] });
8002
+ DbxModelInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelInfoModule, imports: [
8003
+ //
8004
+ CommonModule,
8005
+ DbxListLayoutModule,
8006
+ DbxInjectionComponentModule,
8007
+ EffectsModule.forFeature([DbxModelTrackerEffects]),
8008
+ StoreModule.forFeature(featureKey, reducers)] });
8009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelInfoModule, decorators: [{
8010
+ type: NgModule,
8011
+ args: [{
8012
+ imports: [
8013
+ //
8014
+ CommonModule,
8015
+ DbxListLayoutModule,
8016
+ DbxInjectionComponentModule,
8017
+ EffectsModule.forFeature([DbxModelTrackerEffects]),
8018
+ StoreModule.forFeature(featureKey, reducers)
8019
+ ],
8020
+ declarations: [],
8021
+ exports: []
8022
+ }]
8023
+ }] });
8024
+
8025
+ class DbxModelObjectStateService {
8026
+ constructor(store) {
8027
+ this.store = store;
8028
+ }
8029
+ /**
8030
+ * Emit a model viewed event.
8031
+ */
8032
+ emitModelViewEvent({ modelKeyTypeNamePair }) {
8033
+ this.store.dispatch(emitObjectViewEvent({ modelKeyTypeNamePair }));
8034
+ }
8035
+ }
8036
+ DbxModelObjectStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelObjectStateService, deps: [{ token: i1$b.Store }], target: i0.ɵɵFactoryTarget.Injectable });
8037
+ DbxModelObjectStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelObjectStateService, providedIn: 'root' });
8038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelObjectStateService, decorators: [{
8039
+ type: Injectable,
8040
+ args: [{
8041
+ providedIn: 'root'
8042
+ }]
8043
+ }], ctorParameters: function () { return [{ type: i1$b.Store }]; } });
8044
+
8045
+ function allDbxModelViewTrackerEventSetModelKeys(eventSet) {
8046
+ return allDbxModelViewTrackerEventModelKeys(eventSet.e);
8047
+ }
8048
+ function allDbxModelViewTrackerEventModelKeys(events) {
8049
+ return events.map((y) => y.m.key);
8050
+ }
8051
+
8052
+ class DbxModelTypesService {
8053
+ constructor(injector) {
8054
+ this.injector = injector;
8055
+ this._configs = new BehaviorSubject({});
8056
+ // MARK: Accessors
8057
+ this.typesMap$ = this._configs.pipe(map$1((types) => {
8058
+ const typesMap = {};
8059
+ Object.keys(types).forEach((type) => {
8060
+ const config = types[type];
8061
+ const label = config.label || capitalCase(type);
8062
+ const analyticsName = config.analyticsName || label;
8063
+ const sref = config.srefBuilder ? config.srefBuilder(this.injector) : config.sref;
8064
+ typesMap[type] = {
8065
+ ...config,
8066
+ sref,
8067
+ label,
8068
+ analyticsName,
8069
+ icon: config.icon ?? DbxModelTypesService.DEFAULT_ICON,
8070
+ canSegueToView: Boolean(sref)
8071
+ };
8072
+ });
8073
+ return typesMap;
8074
+ }), shareReplay$1(1));
8075
+ this.iconMap$ = this.typesMap$.pipe(map$1((types) => {
8076
+ const iconsMap = {};
8077
+ Object.keys(types).forEach((type) => {
8078
+ iconsMap[type] = types[type].icon;
8079
+ });
8080
+ return iconsMap;
8081
+ }), shareReplay$1(1));
8082
+ }
8083
+ // MARK: Configuration
8084
+ addTypeConfigs(configs) {
8085
+ const types = {
8086
+ ...this._configs.value
8087
+ };
8088
+ useIterableOrValue(configs, (config) => {
8089
+ types[config.modelType] = config;
8090
+ });
8091
+ this._configs.next(types);
8092
+ }
8093
+ addTypeConfigsMap(configs) {
8094
+ const newConfig = {
8095
+ ...this._configs.value,
8096
+ ...configs
8097
+ };
8098
+ this._configs.next(newConfig);
8099
+ }
8100
+ iconForType(type) {
8101
+ return this.iconMap$.pipe(map$1((x) => x[type]));
8102
+ }
8103
+ }
8104
+ DbxModelTypesService.DEFAULT_ICON = 'help_outline';
8105
+ DbxModelTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTypesService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
8106
+ DbxModelTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTypesService, providedIn: 'root' });
8107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxModelTypesService, decorators: [{
8108
+ type: Injectable,
8109
+ args: [{
8110
+ providedIn: 'root'
8111
+ }]
8112
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
8113
+
7795
8114
  /**
7796
8115
  * Service used to register widgets.
7797
8116
  */
@@ -8037,5 +8356,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
8037
8356
  * Generated bundle index. Do not edit.
8038
8357
  */
8039
8358
 
8040
- export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxErrorWidgetComponent, AbstractDbxListGridViewDirective, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListViewDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxValueListItemModifierDirective, AbstractDbxValueListViewDirective, AbstractDbxValueListViewItemComponent, AbstractDbxWidgetComponent, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, CompactContextStore, CompactMode, DBX_ACTION_SNACKBAR_DEFAULTS, DBX_ACTION_SNACKBAR_SERVICE_CONFIG, DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION, DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY, DBX_LIST_ITEM_IS_SELECTED_ITEM_MODIFIER_KEY, DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG, DBX_ROUTER_VALUE_LIST_ITEM_MODIFIER_KEY, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_LIST_ITEM_IS_SELECTED_FUNCTION, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_SELECTION_VALUE_LIST_DIRECTIVE_TEMPLATE, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE, DEFAULT_ERROR_POPOVER_KEY, DEFAULT_ERROR_WIDGET_CODE, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_GRID_SIZE_CONFIG, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH, DbxActionConfirmDirective, DbxActionDialogDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionPopoverDirective, DbxActionSnackbarComponent, DbxActionSnackbarDirective, DbxActionSnackbarModule, DbxActionSnackbarService, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorContentComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAngularRouterSegueAnchorComponent, DbxBarButtonComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule, DbxButtonSpacerDirective, DbxCardBoxComponent, DbxCardBoxContainerComponent, DbxCardBoxLayoutModule, DbxChipDirective, DbxColorDirective, DbxColumnLayoutModule, DbxCompactDirective, DbxCompactLayoutModule, DbxContentBorderDirective, DbxContentBoxDirective, DbxContentContainerDirective, DbxContentDirective, DbxContentElevateDirective, DbxContentLayoutModule, DbxContentPageDirective, DbxDialogContentCloseComponent, DbxDialogContentDirective, DbxDialogContentFooterComponent, DbxDialogInteractionModule, DbxErrorDefaultErrorWidgetComponent, DbxErrorDetailsComponent, DbxErrorPopoverComponent, DbxErrorWidgetService, DbxErrorWidgetViewComponent, DbxFilterInteractionModule, DbxFilterPopoverButtonComponent, DbxFilterPopoverComponent, DbxFilterWrapperComponent, DbxFlagComponent, DbxFlagLayoutModule, DbxFlagPromptComponent, DbxFlexGroupDirective, DbxFlexLayoutModule, DbxFlexSizeDirective, DbxFormDescriptionComponent, DbxHintComponent, DbxIconItemComponent, DbxIconSpacerDirective, DbxInteractionModule, DbxIntroActionSectionComponent, DbxItemLayoutModule, DbxKeypressModule, DbxLabelBlockComponent, DbxLabelComponent, DbxLayoutModule, DbxLinkifyComponent, DbxListComponent, DbxListEmptyContentComponent, DbxListInternalContentDirective, DbxListItemAnchorModifierDirective, DbxListItemDisableRippleModifierDirective, DbxListItemIsSelectedModifierDirective, DbxListLayoutModule, DbxListView, DbxListViewWrapper, DbxLoadingComponent, DbxLoadingErrorDirective, DbxLoadingModule, DbxLoadingProgressComponent, DbxNavbarComponent, DbxNoteComponent, DbxNoticeComponent, DbxOkComponent, DbxOneColumnComponent, DbxOneColumnLayoutModule, DbxPagebarComponent, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionContentModule, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxPresetFilterListComponent, DbxPresetFilterMenuComponent, DbxProgressButtonsModule, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterAnchorListModule, DbxRouterAnchorModule, DbxRouterLayoutModule, DbxRouterListModule, DbxRouterNavbarModule, DbxRouterSidenavModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxSpinnerButtonComponent, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnBackDirective, DbxTwoColumnColumnHeadComponent, DbxTwoColumnComponent, DbxTwoColumnContextDirective, DbxTwoColumnFullLeftDirective, DbxTwoColumnLayoutModule, DbxTwoColumnRightComponent, DbxTwoColumnSrefDirective, DbxTwoColumnSrefShowRightDirective, DbxUIRouterSegueAnchorComponent, DbxValueListGridItemViewComponent, DbxValueListGridSizeDirective, DbxValueListGridViewComponent, DbxValueListItemModifier, DbxValueListItemModifierDirective, DbxValueListItemViewComponent, DbxValueListView, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent, DbxWidgetModule, DbxWidgetService, DbxWidgetViewComponent, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TRACK_BY_MODEL_ID, TRACK_BY_MODEL_KEY, TwoColumnsContextStore, addConfigToValueListItems, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, dbxColorBackground, dbxValueListItemDecisionFunction, disableRightClickInCdkBackdrop, listItemModifier, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapValuesToValuesListItemConfigObs, provideDbxListView, provideDbxListViewWrapper, provideDbxPromptConfirm, provideDbxValueListView, provideDbxValueListViewModifier, provideTwoColumnsContext, screenMediaWidthTypeIsActive, trackByModelKeyRef, trackByUniqueIdentifier };
8359
+ export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxErrorWidgetComponent, AbstractDbxListGridViewDirective, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListViewDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxValueListItemModifierDirective, AbstractDbxValueListViewDirective, AbstractDbxValueListViewItemComponent, AbstractDbxWidgetComponent, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, CompactContextStore, CompactMode, DBX_ACTION_SNACKBAR_DEFAULTS, DBX_ACTION_SNACKBAR_SERVICE_CONFIG, DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION, DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY, DBX_LIST_ITEM_IS_SELECTED_ITEM_MODIFIER_KEY, DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG, DBX_ROUTER_VALUE_LIST_ITEM_MODIFIER_KEY, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_LIST_ITEM_IS_SELECTED_FUNCTION, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_SELECTION_VALUE_LIST_DIRECTIVE_TEMPLATE, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE, DEFAULT_ERROR_POPOVER_KEY, DEFAULT_ERROR_WIDGET_CODE, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_GRID_SIZE_CONFIG, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH, DbxActionConfirmDirective, DbxActionDialogDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionPopoverDirective, DbxActionSnackbarComponent, DbxActionSnackbarDirective, DbxActionSnackbarModule, DbxActionSnackbarService, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorContentComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAngularRouterSegueAnchorComponent, DbxBarButtonComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule, DbxButtonSpacerDirective, DbxCardBoxComponent, DbxCardBoxContainerComponent, DbxCardBoxLayoutModule, DbxChipDirective, DbxColorDirective, DbxColumnLayoutModule, DbxCompactDirective, DbxCompactLayoutModule, DbxContentBorderDirective, DbxContentBoxDirective, DbxContentContainerDirective, DbxContentDirective, DbxContentElevateDirective, DbxContentLayoutModule, DbxContentPageDirective, DbxDialogContentCloseComponent, DbxDialogContentDirective, DbxDialogContentFooterComponent, DbxDialogInteractionModule, DbxErrorDefaultErrorWidgetComponent, DbxErrorDetailsComponent, DbxErrorPopoverComponent, DbxErrorWidgetService, DbxErrorWidgetViewComponent, DbxFilterInteractionModule, DbxFilterPopoverButtonComponent, DbxFilterPopoverComponent, DbxFilterWrapperComponent, DbxFlagComponent, DbxFlagLayoutModule, DbxFlagPromptComponent, DbxFlexGroupDirective, DbxFlexLayoutModule, DbxFlexSizeDirective, DbxFormDescriptionComponent, DbxHintComponent, DbxIconItemComponent, DbxIconSpacerDirective, DbxInteractionModule, DbxIntroActionSectionComponent, DbxItemLayoutModule, DbxKeypressModule, DbxLabelBlockComponent, DbxLabelComponent, DbxLayoutModule, DbxLinkifyComponent, DbxListComponent, DbxListEmptyContentComponent, DbxListInternalContentDirective, DbxListItemAnchorModifierDirective, DbxListItemDisableRippleModifierDirective, DbxListItemIsSelectedModifierDirective, DbxListLayoutModule, DbxListView, DbxListViewWrapper, DbxLoadingComponent, DbxLoadingErrorDirective, DbxLoadingModule, DbxLoadingProgressComponent, DbxModelInfoModule, DbxModelObjectStateService, actions as DbxModelStateActions, model_actions as DbxModelStateModelActions, DbxModelTrackerService, DbxModelTypesService, DbxModelViewTrackerStorage, DbxNavbarComponent, DbxNoteComponent, DbxNoticeComponent, DbxOkComponent, DbxOneColumnComponent, DbxOneColumnLayoutModule, DbxPagebarComponent, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionContentModule, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxPresetFilterListComponent, DbxPresetFilterMenuComponent, DbxProgressButtonsModule, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterAnchorListModule, DbxRouterAnchorModule, DbxRouterLayoutModule, DbxRouterListModule, DbxRouterNavbarModule, DbxRouterSidenavModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxSpinnerButtonComponent, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnBackDirective, DbxTwoColumnColumnHeadComponent, DbxTwoColumnComponent, DbxTwoColumnContextDirective, DbxTwoColumnFullLeftDirective, DbxTwoColumnLayoutModule, DbxTwoColumnRightComponent, DbxTwoColumnSrefDirective, DbxTwoColumnSrefShowRightDirective, DbxUIRouterSegueAnchorComponent, DbxValueListGridItemViewComponent, DbxValueListGridSizeDirective, DbxValueListGridViewComponent, DbxValueListItemModifier, DbxValueListItemModifierDirective, DbxValueListItemViewComponent, DbxValueListView, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent, DbxWidgetModule, DbxWidgetService, DbxWidgetViewComponent, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TRACK_BY_MODEL_ID, TRACK_BY_MODEL_KEY, TwoColumnsContextStore, addConfigToValueListItems, allDbxModelViewTrackerEventModelKeys, allDbxModelViewTrackerEventSetModelKeys, appObjectViewTrackerStorageFactory, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, dbxColorBackground, dbxValueListItemDecisionFunction, disableRightClickInCdkBackdrop, index as fromDbxModel, listItemModifier, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapValuesToValuesListItemConfigObs, index$1 as onDbxModel, provideDbxListView, provideDbxListViewWrapper, provideDbxPromptConfirm, provideDbxValueListView, provideDbxValueListViewModifier, provideTwoColumnsContext, screenMediaWidthTypeIsActive, trackByModelKeyRef, trackByUniqueIdentifier };
8041
8360
  //# sourceMappingURL=dereekb-dbx-web.mjs.map