@leanix/components 0.4.11 → 0.4.12

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.
@@ -9,7 +9,7 @@ import { ComponentPortal, CdkPortal, PortalModule } from '@angular/cdk/portal';
9
9
  import * as i1$1 from '@angular/cdk/overlay';
10
10
  import { OverlayModule, CdkConnectedOverlay } from '@angular/cdk/overlay';
11
11
  import { __decorate } from 'tslib';
12
- import { escape, trimEnd, sortBy, get, isEqual, toLower, some, padCharsStart, toString, toNumber, isNaN as isNaN$1, includes, last, findIndex, filter as filter$1, isObject, find, uniqueId } from 'lodash/fp';
12
+ import { escape, trimEnd, sortBy, get, isEqual as isEqual$1, toLower, some, padCharsStart, toString, toNumber, isNaN as isNaN$1, includes, last, findIndex, filter as filter$1, isObject, find, uniqueId } from 'lodash/fp';
13
13
  import * as i6 from 'rxjs';
14
14
  import { BehaviorSubject, timer, Subject, combineLatest, merge, concat, fromEvent, ReplaySubject, Observable, of, map as map$1 } from 'rxjs';
15
15
  import { skipWhile, map, switchMap, startWith, pairwise, filter, take, debounceTime, skip, withLatestFrom, distinctUntilChanged, takeUntil, delay, tap } from 'rxjs/operators';
@@ -17,7 +17,7 @@ import * as i1$3 from '@angular/platform-browser';
17
17
  import Color from 'color';
18
18
  import { format, distanceInWords, startOfDay } from 'date-fns';
19
19
  import { sanitize } from 'dompurify';
20
- import _, { curry } from 'lodash';
20
+ import { isArray, isEqual, split, isString, curry } from 'lodash-es';
21
21
  import { Renderer, marked } from 'marked';
22
22
  import * as i1$4 from '@angular/cdk/clipboard';
23
23
  import { ClipboardModule } from '@angular/cdk/clipboard';
@@ -1519,12 +1519,12 @@ class LxTranslatePipe {
1519
1519
  this.translatePipe = new TranslatePipe(this.translate, this.cdRef);
1520
1520
  }
1521
1521
  transform(query, interpolations) {
1522
- query = _.isArray(query) ? query.join('.') : query;
1522
+ query = isArray(query) ? query.join('.') : query;
1523
1523
  if (!this.interpolateParamsObject) {
1524
1524
  this.interpolateParamsObject = this.globalTranslationOptionsProvider?.createGlobalTranslationOptions();
1525
1525
  this.lastArgsExtended = this.interpolateParamsObject;
1526
1526
  }
1527
- if (interpolations && !_.isEqual(this.lastInterpolateArgs, interpolations)) {
1527
+ if (interpolations && !isEqual(this.lastInterpolateArgs, interpolations)) {
1528
1528
  this.lastInterpolateArgs = interpolations;
1529
1529
  this.lastArgsExtended = Object.assign({}, this.interpolateParamsObject, interpolations);
1530
1530
  }
@@ -1637,11 +1637,11 @@ function getValueForKey(key) {
1637
1637
  }
1638
1638
 
1639
1639
  function getTranslationParts(translateService, translationKey, cutMarkAndParams) {
1640
- translationKey = _.isArray(translationKey) ? translationKey.join('.') : translationKey;
1641
- const cutMark = _.isArray(cutMarkAndParams) ? cutMarkAndParams[0] : cutMarkAndParams;
1642
- const params = _.isArray(cutMarkAndParams) ? cutMarkAndParams[1] : null;
1640
+ translationKey = isArray(translationKey) ? translationKey.join('.') : translationKey;
1641
+ const cutMark = isArray(cutMarkAndParams) ? cutMarkAndParams[0] : cutMarkAndParams;
1642
+ const params = isArray(cutMarkAndParams) ? cutMarkAndParams[1] : null;
1643
1643
  const translation = translateService.instant(translationKey, params);
1644
- const parts = _.split(translation, `[[${cutMark}]]`);
1644
+ const parts = split(translation, `[[${cutMark}]]`);
1645
1645
  if (parts.length === 1) {
1646
1646
  console.error(`'[[${cutMark}]]' not found in '${translation}' for key '${translationKey}'.`);
1647
1647
  }
@@ -1710,17 +1710,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
1710
1710
  }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
1711
1711
 
1712
1712
  function getTranslationBetween(translateService, translationKey, cutMarksAndParams) {
1713
- translationKey = _.isArray(translationKey) ? translationKey.join('.') : translationKey;
1713
+ translationKey = isArray(translationKey) ? translationKey.join('.') : translationKey;
1714
1714
  const cutMarks = cutMarksAndParams.slice(0, 2);
1715
1715
  const params = cutMarksAndParams[2] || null;
1716
1716
  const translation = translateService.instant(translationKey, params);
1717
- const parts1 = _.split(translation, `[[${cutMarks[0]}]]`);
1717
+ const parts1 = split(translation, `[[${cutMarks[0]}]]`);
1718
1718
  if (parts1.length === 1) {
1719
1719
  console.error(`'[[${cutMarks[0]}]]' not found in '${translation}' for key '${translationKey}'.`);
1720
1720
  return translation;
1721
1721
  }
1722
1722
  else {
1723
- const parts2 = _.split(parts1[1], `[[${cutMarks[1]}]]`);
1723
+ const parts2 = split(parts1[1], `[[${cutMarks[1]}]]`);
1724
1724
  if (parts2.length === 1) {
1725
1725
  console.error(`'[[${cutMarks[1]}]]' not found in '${translation}' after '[[${cutMarks[0]}]]' for key '${translationKey}'.`);
1726
1726
  return translation;
@@ -2209,7 +2209,7 @@ class BasicDropdownComponent extends KeyboardSelectDirective {
2209
2209
  }
2210
2210
  const isEqualIgnoringCase = (item) => {
2211
2211
  const value = key ? item[key] : item;
2212
- return isEqual(toLower(value), toLower(term));
2212
+ return isEqual$1(toLower(value), toLower(term));
2213
2213
  };
2214
2214
  return !some(isEqualIgnoringCase, items);
2215
2215
  }
@@ -2859,7 +2859,7 @@ class CopyButtonComponent {
2859
2859
  }
2860
2860
  }
2861
2861
  getStringData() {
2862
- return _.isString(this.data) ? this.data : JSON.stringify(this.data, null, '\t');
2862
+ return isString(this.data) ? this.data : JSON.stringify(this.data, null, '\t');
2863
2863
  }
2864
2864
  }
2865
2865
  CopyButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: CopyButtonComponent, deps: [{ token: i1$4.Clipboard }], target: i0.ɵɵFactoryTarget.Component });
@@ -6531,7 +6531,7 @@ class SelectListComponent extends BaseSelectDirective {
6531
6531
  }
6532
6532
  }
6533
6533
  determineHighlightIndex(options, selection) {
6534
- return options.findIndex((option) => isEqual(selection, option));
6534
+ return options.findIndex((option) => isEqual$1(selection, option));
6535
6535
  }
6536
6536
  }
6537
6537
  SelectListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SelectListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -6792,8 +6792,8 @@ class SingleSelectComponent extends BaseSelectDirective {
6792
6792
  }
6793
6793
  determineHighlightIndex(options, selection, itemKey) {
6794
6794
  return itemKey
6795
- ? options.findIndex((option) => isEqual(get(itemKey, selection), get(itemKey, option)) || isEqual(selection, get(itemKey, option)))
6796
- : options.findIndex((option) => isEqual(selection, option));
6795
+ ? options.findIndex((option) => isEqual$1(get(itemKey, selection), get(itemKey, option)) || isEqual$1(selection, get(itemKey, option)))
6796
+ : options.findIndex((option) => isEqual$1(selection, option));
6797
6797
  }
6798
6798
  }
6799
6799
  SingleSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SingleSelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
@@ -7102,7 +7102,7 @@ class FilterSelectionPipe {
7102
7102
  }
7103
7103
  }
7104
7104
  else {
7105
- return !isEqual(item, selection);
7105
+ return !isEqual$1(item, selection);
7106
7106
  }
7107
7107
  }, items);
7108
7108
  }