@dereekb/dbx-web 13.11.2 → 13.11.3

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.
@@ -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, (x) => x.selected, (a, b) => this._dbxRouterService.comparePrecision(a.anchor, b.anchor), (nonBestFit) => ({ ...nonBestFit, selected: false }));
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;