@dereekb/dbx-web 13.40.0 → 13.42.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.
- package/eslint/package.json +4 -4
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +69 -4
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-style-demo.mjs +5 -5
- package/fesm2022/dereekb-dbx-web-style-demo.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +8 -8
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/mapbox/README.md +49 -0
- package/package.json +7 -7
- package/types/dereekb-dbx-web-mapbox.d.ts +84 -2
|
@@ -942,7 +942,7 @@ class DbxColorService {
|
|
|
942
942
|
* @returns Array of all registered template keys.
|
|
943
943
|
*/
|
|
944
944
|
getAllRegisteredTemplateKeys() {
|
|
945
|
-
return
|
|
945
|
+
return Array.from(this._templates.keys());
|
|
946
946
|
}
|
|
947
947
|
/**
|
|
948
948
|
* Returns all registered templates flagged as part of the curated color set, in registration order.
|
|
@@ -952,7 +952,7 @@ class DbxColorService {
|
|
|
952
952
|
* @returns The curated templates in insertion order.
|
|
953
953
|
*/
|
|
954
954
|
getCuratedColorTemplates() {
|
|
955
|
-
return
|
|
955
|
+
return Array.from(this._templates.values()).filter((template) => template.curated === true);
|
|
956
956
|
}
|
|
957
957
|
/**
|
|
958
958
|
* Deterministically selects a curated {@link DbxColorConfig} for the given string from the registered curated set.
|
|
@@ -6374,7 +6374,7 @@ class DbxErrorWidgetService {
|
|
|
6374
6374
|
}
|
|
6375
6375
|
// MARK: Get
|
|
6376
6376
|
getErrorWidgetIdentifiers() {
|
|
6377
|
-
return
|
|
6377
|
+
return Array.from(this._entries.keys());
|
|
6378
6378
|
}
|
|
6379
6379
|
getDefaultErrorWidgetEntry() {
|
|
6380
6380
|
return this.getErrorWidgetEntry(DEFAULT_ERROR_WIDGET_CODE);
|
|
@@ -16983,7 +16983,7 @@ class DbxWebPageTitleService {
|
|
|
16983
16983
|
* The active leaf reference: the most recently registered reference whose `isLeaf$` is currently true. Emits `undefined` when no leaves exist.
|
|
16984
16984
|
*/
|
|
16985
16985
|
leafReference$ = this._references.pipe(switchMap((set) => {
|
|
16986
|
-
const refs =
|
|
16986
|
+
const refs = Array.from(set);
|
|
16987
16987
|
const obs = refs.length === 0
|
|
16988
16988
|
? of(undefined)
|
|
16989
16989
|
: combineLatest(refs.map((ref) => ref.isLeaf$.pipe(map((isLeaf) => ({ ref, isLeaf }))))).pipe(map((items) => items
|
|
@@ -17184,7 +17184,7 @@ class DbxWidgetService {
|
|
|
17184
17184
|
}
|
|
17185
17185
|
// MARK: Get
|
|
17186
17186
|
getWidgetIdentifiers() {
|
|
17187
|
-
return
|
|
17187
|
+
return Array.from(this._entries.keys());
|
|
17188
17188
|
}
|
|
17189
17189
|
getWidgetEntry(type) {
|
|
17190
17190
|
return this._entries.get(type);
|
|
@@ -17387,11 +17387,11 @@ class DbxHelpContextService {
|
|
|
17387
17387
|
/**
|
|
17388
17388
|
* Observable of all currently active help context strings.
|
|
17389
17389
|
*/
|
|
17390
|
-
activeHelpContextKeys$ = this._contextReferences.pipe(switchMap((allReferences) => combineLatest(
|
|
17390
|
+
activeHelpContextKeys$ = this._contextReferences.pipe(switchMap((allReferences) => combineLatest(Array.from(allReferences).map((ref) => ref.helpContextKeys$)).pipe(map((x) => x.flat()), defaultIfEmpty([]), map((x) => new Set(x)))), distinctUntilHasDifferentValues(), shareReplay(1));
|
|
17391
17391
|
/**
|
|
17392
17392
|
* Observable array of all currently active help context key strings.
|
|
17393
17393
|
*/
|
|
17394
|
-
activeHelpContextKeysArray$ = this.activeHelpContextKeys$.pipe(map((x) =>
|
|
17394
|
+
activeHelpContextKeysArray$ = this.activeHelpContextKeys$.pipe(map((x) => Array.from(x)), shareReplay(1));
|
|
17395
17395
|
/**
|
|
17396
17396
|
* Registers a help context reference, adding its keys to the active set.
|
|
17397
17397
|
*
|
|
@@ -17594,7 +17594,7 @@ class DbxHelpWidgetService {
|
|
|
17594
17594
|
* @returns Array of all registered help context keys.
|
|
17595
17595
|
*/
|
|
17596
17596
|
getAllRegisteredHelpContextKeys() {
|
|
17597
|
-
return
|
|
17597
|
+
return Array.from(this._entries.keys());
|
|
17598
17598
|
}
|
|
17599
17599
|
/**
|
|
17600
17600
|
* Retrieves the widget entry for a given help context key. Falls back to a default entry if a default widget component class is configured.
|