@dereekb/dbx-web 13.11.2 → 13.11.4
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/index.cjs.js
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
]);
|
|
16
16
|
/**
|
|
17
17
|
* Module that holds the dbx-components RxJS extras (SubscriptionObject).
|
|
18
|
-
*/ var
|
|
18
|
+
*/ var DBX_COMPONENTS_RXJS_MODULE = '@dereekb/rxjs';
|
|
19
19
|
/**
|
|
20
20
|
* Module that holds Subject/BehaviorSubject/etc.
|
|
21
21
|
*/ var RXJS_MODULE = 'rxjs';
|
|
22
22
|
/**
|
|
23
23
|
* Module that holds the cleanup helpers (cleanSubscription, completeOnDestroy, clean).
|
|
24
|
-
*/ var
|
|
24
|
+
*/ var DBX_COMPONENTS_DBX_CORE_MODULE = '@dereekb/dbx-core';
|
|
25
25
|
/**
|
|
26
26
|
* Identifier name for the `SubscriptionObject` class.
|
|
27
27
|
*/ var SUBSCRIPTION_OBJECT_NAME = 'SubscriptionObject';
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
var result = false;
|
|
520
520
|
if (!isCalledIdentifier(expression, ACCEPTED_WRAPPERS$1) && expression.type === 'NewExpression') {
|
|
521
521
|
var callee = expression.callee;
|
|
522
|
-
if ((callee === null || callee === void 0 ? void 0 : callee.type) === 'Identifier' && callee.name === SUBSCRIPTION_OBJECT_NAME && isImportedFrom(registry, SUBSCRIPTION_OBJECT_NAME,
|
|
522
|
+
if ((callee === null || callee === void 0 ? void 0 : callee.type) === 'Identifier' && callee.name === SUBSCRIPTION_OBJECT_NAME && isImportedFrom(registry, SUBSCRIPTION_OBJECT_NAME, DBX_COMPONENTS_RXJS_MODULE)) {
|
|
523
523
|
result = true;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
fixer: fixer,
|
|
546
546
|
registry: registry,
|
|
547
547
|
importName: CLEAN_SUBSCRIPTION_HELPER,
|
|
548
|
-
fromSource:
|
|
548
|
+
fromSource: DBX_COMPONENTS_DBX_CORE_MODULE
|
|
549
549
|
});
|
|
550
550
|
if (importFix) {
|
|
551
551
|
collected.push(importFix);
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
fixer: fixer,
|
|
781
781
|
registry: registry,
|
|
782
782
|
importName: COMPLETE_ON_DESTROY_HELPER,
|
|
783
|
-
fromSource:
|
|
783
|
+
fromSource: DBX_COMPONENTS_DBX_CORE_MODULE
|
|
784
784
|
});
|
|
785
785
|
if (importFix) {
|
|
786
786
|
fixes.push(importFix);
|
package/eslint/index.esm.js
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
]);
|
|
14
14
|
/**
|
|
15
15
|
* Module that holds the dbx-components RxJS extras (SubscriptionObject).
|
|
16
|
-
*/ var
|
|
16
|
+
*/ var DBX_COMPONENTS_RXJS_MODULE = '@dereekb/rxjs';
|
|
17
17
|
/**
|
|
18
18
|
* Module that holds Subject/BehaviorSubject/etc.
|
|
19
19
|
*/ var RXJS_MODULE = 'rxjs';
|
|
20
20
|
/**
|
|
21
21
|
* Module that holds the cleanup helpers (cleanSubscription, completeOnDestroy, clean).
|
|
22
|
-
*/ var
|
|
22
|
+
*/ var DBX_COMPONENTS_DBX_CORE_MODULE = '@dereekb/dbx-core';
|
|
23
23
|
/**
|
|
24
24
|
* Identifier name for the `SubscriptionObject` class.
|
|
25
25
|
*/ var SUBSCRIPTION_OBJECT_NAME = 'SubscriptionObject';
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
var result = false;
|
|
518
518
|
if (!isCalledIdentifier(expression, ACCEPTED_WRAPPERS$1) && expression.type === 'NewExpression') {
|
|
519
519
|
var callee = expression.callee;
|
|
520
|
-
if ((callee === null || callee === void 0 ? void 0 : callee.type) === 'Identifier' && callee.name === SUBSCRIPTION_OBJECT_NAME && isImportedFrom(registry, SUBSCRIPTION_OBJECT_NAME,
|
|
520
|
+
if ((callee === null || callee === void 0 ? void 0 : callee.type) === 'Identifier' && callee.name === SUBSCRIPTION_OBJECT_NAME && isImportedFrom(registry, SUBSCRIPTION_OBJECT_NAME, DBX_COMPONENTS_RXJS_MODULE)) {
|
|
521
521
|
result = true;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
fixer: fixer,
|
|
544
544
|
registry: registry,
|
|
545
545
|
importName: CLEAN_SUBSCRIPTION_HELPER,
|
|
546
|
-
fromSource:
|
|
546
|
+
fromSource: DBX_COMPONENTS_DBX_CORE_MODULE
|
|
547
547
|
});
|
|
548
548
|
if (importFix) {
|
|
549
549
|
collected.push(importFix);
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
fixer: fixer,
|
|
779
779
|
registry: registry,
|
|
780
780
|
importName: COMPLETE_ON_DESTROY_HELPER,
|
|
781
|
-
fromSource:
|
|
781
|
+
fromSource: DBX_COMPONENTS_DBX_CORE_MODULE
|
|
782
782
|
});
|
|
783
783
|
if (importFix) {
|
|
784
784
|
fixes.push(importFix);
|
package/eslint/src/lib/util.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const ANGULAR_COMPONENT_DECORATORS: ReadonlySet<string>;
|
|
|
12
12
|
/**
|
|
13
13
|
* Module that holds the dbx-components RxJS extras (SubscriptionObject).
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const DBX_COMPONENTS_RXJS_MODULE = "@dereekb/rxjs";
|
|
16
16
|
/**
|
|
17
17
|
* Module that holds Subject/BehaviorSubject/etc.
|
|
18
18
|
*/
|
|
@@ -20,7 +20,7 @@ export declare const RXJS_MODULE = "rxjs";
|
|
|
20
20
|
/**
|
|
21
21
|
* Module that holds the cleanup helpers (cleanSubscription, completeOnDestroy, clean).
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const DBX_COMPONENTS_DBX_CORE_MODULE = "@dereekb/dbx-core";
|
|
24
24
|
/**
|
|
25
25
|
* Identifier name for the `SubscriptionObject` class.
|
|
26
26
|
*/
|
|
@@ -5323,6 +5323,7 @@ function fileAcceptFilterTypeStringArray(accept) {
|
|
|
5323
5323
|
* const result = matchFn(fileList);
|
|
5324
5324
|
* console.log(result.accepted, result.rejected);
|
|
5325
5325
|
* ```
|
|
5326
|
+
* @__NO_SIDE_EFFECTS__
|
|
5326
5327
|
*/
|
|
5327
5328
|
function fileArrayAcceptMatchFunction(config) {
|
|
5328
5329
|
const multiple = config.multiple ?? true;
|
|
@@ -5351,6 +5352,7 @@ function fileArrayAcceptMatchFunction(config) {
|
|
|
5351
5352
|
* isAccepted({ name: 'photo.png', type: 'image/png' }); // true
|
|
5352
5353
|
* isAccepted({ name: 'doc.txt', type: 'text/plain' }); // false
|
|
5353
5354
|
* ```
|
|
5355
|
+
* @__NO_SIDE_EFFECTS__
|
|
5354
5356
|
*/
|
|
5355
5357
|
function fileAcceptFunction(accept) {
|
|
5356
5358
|
const acceptList = fileAcceptFilterTypeStringArray(accept);
|
|
@@ -6930,6 +6932,7 @@ const DBX_ACTION_SNACKBAR_DEFAULTS = {
|
|
|
6930
6932
|
* error: { message: 'Failed', button: 'X' }
|
|
6931
6933
|
* });
|
|
6932
6934
|
* ```
|
|
6935
|
+
* @__NO_SIDE_EFFECTS__
|
|
6933
6936
|
*/
|
|
6934
6937
|
function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config) {
|
|
6935
6938
|
return (input) => {
|
|
@@ -8155,6 +8158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
8155
8158
|
*
|
|
8156
8159
|
* @param storageAccessorFactory - The factory used to create typed storage accessors
|
|
8157
8160
|
* @returns A storage accessor configured with the `mtvs` prefix for model view tracker events
|
|
8161
|
+
* @__NO_SIDE_EFFECTS__
|
|
8158
8162
|
*/
|
|
8159
8163
|
function defaultDbxModelViewTrackerStorageAccessorFactory(storageAccessorFactory) {
|
|
8160
8164
|
return storageAccessorFactory.createStorageAccessor({
|
|
@@ -8165,6 +8169,7 @@ function defaultDbxModelViewTrackerStorageAccessorFactory(storageAccessorFactory
|
|
|
8165
8169
|
* Creates EnvironmentProviders for providing DbxModelTrackerService, DbxModelObjectStateService and sets up the NgRx store for DbxModelTrackerEffects.
|
|
8166
8170
|
*
|
|
8167
8171
|
* @returns EnvironmentProviders
|
|
8172
|
+
* @__NO_SIDE_EFFECTS__
|
|
8168
8173
|
*/
|
|
8169
8174
|
function provideDbxModelService() {
|
|
8170
8175
|
const providers = [
|
|
@@ -8394,6 +8399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
8394
8399
|
* const copy = copyToClipboardFunction(clipboard, { copyTimeoutSeconds: 10 });
|
|
8395
8400
|
* const success = await copy('some text');
|
|
8396
8401
|
* ```
|
|
8402
|
+
* @__NO_SIDE_EFFECTS__
|
|
8397
8403
|
*/
|
|
8398
8404
|
function copyToClipboardFunction(clipboard, config) {
|
|
8399
8405
|
const copyTimeoutSeconds = config?.copyTimeoutSeconds ?? 15;
|
|
@@ -8440,6 +8446,7 @@ function copyToClipboardFunction(clipboard, config) {
|
|
|
8440
8446
|
* const copy = injectCopyToClipboardFunction();
|
|
8441
8447
|
* await copy('copied text');
|
|
8442
8448
|
* ```
|
|
8449
|
+
* @__NO_SIDE_EFFECTS__
|
|
8443
8450
|
*/
|
|
8444
8451
|
function injectCopyToClipboardFunction(config) {
|
|
8445
8452
|
return copyToClipboardFunction(inject(Clipboard), config);
|
|
@@ -10737,7 +10744,11 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
10737
10744
|
anchor
|
|
10738
10745
|
};
|
|
10739
10746
|
});
|
|
10740
|
-
return applyBestFit(results,
|
|
10747
|
+
return applyBestFit(results, {
|
|
10748
|
+
filter: (x) => x.selected,
|
|
10749
|
+
compare: (a, b) => this._dbxRouterService.comparePrecision(a.anchor, b.anchor),
|
|
10750
|
+
updateNonBestFit: (nonBestFit) => ({ ...nonBestFit, selected: false })
|
|
10751
|
+
});
|
|
10741
10752
|
}), shareReplay(1));
|
|
10742
10753
|
selectedAnchor$ = this.anchors$.pipe(map((x) => x.find((y) => y.selected)));
|
|
10743
10754
|
nextRotateAnchor$ = this.anchors$.pipe(map((x) => findNext(x, (y) => y.selected) || x[0]));
|
|
@@ -12122,6 +12133,7 @@ const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken('DbxValueListViewItem');
|
|
|
12122
12133
|
*
|
|
12123
12134
|
* @param decisionFunction
|
|
12124
12135
|
* @returns
|
|
12136
|
+
* @__NO_SIDE_EFFECTS__
|
|
12125
12137
|
*/
|
|
12126
12138
|
function dbxValueListItemDecisionFunction(decisionFunction) {
|
|
12127
12139
|
return (item) => decisionFunction(item.itemValue);
|
|
@@ -14532,6 +14544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
14532
14544
|
*
|
|
14533
14545
|
* @param config - configuration specifying the default style and its allowed suffixes
|
|
14534
14546
|
* @returns environment providers for the DbxStyleService and its default config token
|
|
14547
|
+
* @__NO_SIDE_EFFECTS__
|
|
14535
14548
|
*/
|
|
14536
14549
|
function provideDbxStyleService(config) {
|
|
14537
14550
|
const { dbxStyleConfig } = config;
|
|
@@ -16350,6 +16363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
16350
16363
|
* ```ts
|
|
16351
16364
|
* provideDbxWebPageTitleService({ defaultTitle: 'MyApp' })
|
|
16352
16365
|
* ```
|
|
16366
|
+
* @__NO_SIDE_EFFECTS__
|
|
16353
16367
|
*/
|
|
16354
16368
|
function provideDbxWebPageTitleService(config) {
|
|
16355
16369
|
const providers = [DbxWebPageTitleService];
|
|
@@ -16632,6 +16646,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
16632
16646
|
*
|
|
16633
16647
|
* @param helpContextKeys - Observable or static array of help context keys to register with the service
|
|
16634
16648
|
* @returns A destroy function that unregisters the help context keys when called
|
|
16649
|
+
* @__NO_SIDE_EFFECTS__
|
|
16635
16650
|
*/
|
|
16636
16651
|
function registerHelpContextKeysWithDbxHelpContextService(helpContextKeys) {
|
|
16637
16652
|
const helpContextService = inject(DbxHelpContextService);
|
|
@@ -16842,6 +16857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
16842
16857
|
*
|
|
16843
16858
|
* @param config Optional configuration
|
|
16844
16859
|
* @returns EnvironmentProviders
|
|
16860
|
+
* @__NO_SIDE_EFFECTS__
|
|
16845
16861
|
*/
|
|
16846
16862
|
function provideDbxHelpServices(config) {
|
|
16847
16863
|
const providers = [DbxHelpWidgetService, DbxHelpContextService];
|
|
@@ -17208,6 +17224,7 @@ const DEFAULT_ENTRY_ID_FACTORY = sequentialIncrementingNumberStringModelIdFactor
|
|
|
17208
17224
|
* @param file - File the user added.
|
|
17209
17225
|
* @param config - Optional config for slot attribution and id factory override.
|
|
17210
17226
|
* @returns The new entry with `validating` status, or `null` when the file is not a supported PDF/PNG/JPEG.
|
|
17227
|
+
* @__NO_SIDE_EFFECTS__
|
|
17211
17228
|
*/
|
|
17212
17229
|
function buildPdfMergeEntry(file, config) {
|
|
17213
17230
|
const kind = classifyPdfMergeFile(file);
|
|
@@ -18104,6 +18121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
18104
18121
|
* providers: [provideDbxScreenMediaService()]
|
|
18105
18122
|
* });
|
|
18106
18123
|
* ```
|
|
18124
|
+
* @__NO_SIDE_EFFECTS__
|
|
18107
18125
|
*/
|
|
18108
18126
|
function provideDbxScreenMediaService(config = {}) {
|
|
18109
18127
|
const screenConfig = config.config ?? DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG;
|