@leanix/components 0.2.239 → 0.2.242

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -3,6 +3,8 @@ export * from './lib/core-ui/core-ui.constants';
3
3
  export * from './lib/core-ui/annotations/required';
4
4
  export * from './lib/core-ui/pipes/br.pipe';
5
5
  export * from './lib/core-ui/pipes/custom-date.pipe';
6
+ export * from './lib/core-ui/pipes/linkify/linkify.pipe';
7
+ export * from './lib/core-ui/pipes/linkify/unlinkify.pipe';
6
8
  export * from './lib/core-ui/pipes/lx-is-uuid.pipe';
7
9
  export * from './lib/core-ui/pipes/lx-time-ago.pipe';
8
10
  export * from './lib/core-ui/pipes/lx-translate.pipe';
@@ -15,25 +15,27 @@ import * as i13 from "./pipes/highlight-range.pipe";
15
15
  import * as i14 from "./pipes/highlight-term.pipe";
16
16
  import * as i15 from "./directives/html.directive";
17
17
  import * as i16 from "./components/icon-scale/icon-scale.component";
18
- import * as i17 from "./pipes/lx-time-ago.pipe";
19
- import * as i18 from "./pipes/lx-translate.pipe";
20
- import * as i19 from "./pipes/markdown.pipe";
21
- import * as i20 from "./pipes/nbsp.pipe";
22
- import * as i21 from "./pipes/lx-is-uuid.pipe";
23
- import * as i22 from "./components/spinner/spinner.component";
24
- import * as i23 from "./components/table/table.component";
25
- import * as i24 from "./components/table/table-header/table-header.component";
26
- import * as i25 from "./components/tiny-spinner/tiny-spinner.component";
27
- import * as i26 from "./pipes/translation-after.pipe";
28
- import * as i27 from "./pipes/translation-before.pipe";
29
- import * as i28 from "./pipes/translation-between.pipe";
30
- import * as i29 from "./pipes/sort.pipe";
31
- import * as i30 from "./pipes/contrast-color.pipe";
32
- import * as i31 from "./pipes/unescape-curly-braces.pipe";
33
- import * as i32 from "@angular/common";
34
- import * as i33 from "./tooltip/tooltip.module";
18
+ import * as i17 from "./pipes/linkify/linkify.pipe";
19
+ import * as i18 from "./pipes/linkify/unlinkify.pipe";
20
+ import * as i19 from "./pipes/lx-time-ago.pipe";
21
+ import * as i20 from "./pipes/lx-translate.pipe";
22
+ import * as i21 from "./pipes/markdown.pipe";
23
+ import * as i22 from "./pipes/nbsp.pipe";
24
+ import * as i23 from "./pipes/lx-is-uuid.pipe";
25
+ import * as i24 from "./components/spinner/spinner.component";
26
+ import * as i25 from "./components/table/table.component";
27
+ import * as i26 from "./components/table/table-header/table-header.component";
28
+ import * as i27 from "./components/tiny-spinner/tiny-spinner.component";
29
+ import * as i28 from "./pipes/translation-after.pipe";
30
+ import * as i29 from "./pipes/translation-before.pipe";
31
+ import * as i30 from "./pipes/translation-between.pipe";
32
+ import * as i31 from "./pipes/sort.pipe";
33
+ import * as i32 from "./pipes/contrast-color.pipe";
34
+ import * as i33 from "./pipes/unescape-curly-braces.pipe";
35
+ import * as i34 from "@angular/common";
36
+ import * as i35 from "./tooltip/tooltip.module";
35
37
  export declare class LxCoreUiModule {
36
38
  static ɵfac: i0.ɵɵFactoryDeclaration<LxCoreUiModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<LxCoreUiModule, [typeof i1.AfterViewInitDirective, typeof i2.AutocloseDirective, typeof i3.AutofocusDirective, typeof i4.BadgeComponent, typeof i5.ButtonComponent, typeof i6.ButtonGroupComponent, typeof i7.BrPipe, typeof i8.CardComponent, typeof i9.CollapsibleComponent, typeof i10.ColoredLabelComponent, typeof i11.CustomDatePipe, typeof i12.EllipsisComponent, typeof i13.HighlightRangePipe, typeof i14.HighlightTermPipe, typeof i15.HtmlDirective, typeof i16.IconScaleComponent, typeof i17.LxTimeAgo, typeof i18.LxTranslatePipe, typeof i19.MarkdownPipe, typeof i20.NbspPipe, typeof i21.LxIsUuidPipe, typeof i22.SpinnerComponent, typeof i23.TableComponent, typeof i24.TableHeaderComponent, typeof i25.TinySpinnerComponent, typeof i26.TranslationAfterPipe, typeof i27.TranslationBeforePipe, typeof i28.TranslationBetweenPipe, typeof i29.SortPipe, typeof i30.ContrastColorPipe, typeof i31.UnescapeCurlyBracesPipe], [typeof i32.CommonModule, typeof i33.LxTooltipModule], [typeof i33.LxTooltipModule, typeof i1.AfterViewInitDirective, typeof i2.AutocloseDirective, typeof i3.AutofocusDirective, typeof i4.BadgeComponent, typeof i5.ButtonComponent, typeof i7.BrPipe, typeof i6.ButtonGroupComponent, typeof i8.CardComponent, typeof i10.ColoredLabelComponent, typeof i11.CustomDatePipe, typeof i12.EllipsisComponent, typeof i13.HighlightRangePipe, typeof i14.HighlightTermPipe, typeof i15.HtmlDirective, typeof i16.IconScaleComponent, typeof i17.LxTimeAgo, typeof i18.LxTranslatePipe, typeof i19.MarkdownPipe, typeof i20.NbspPipe, typeof i21.LxIsUuidPipe, typeof i22.SpinnerComponent, typeof i23.TableComponent, typeof i24.TableHeaderComponent, typeof i25.TinySpinnerComponent, typeof i26.TranslationAfterPipe, typeof i27.TranslationBeforePipe, typeof i28.TranslationBetweenPipe, typeof i9.CollapsibleComponent, typeof i29.SortPipe, typeof i30.ContrastColorPipe, typeof i31.UnescapeCurlyBracesPipe]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LxCoreUiModule, [typeof i1.AfterViewInitDirective, typeof i2.AutocloseDirective, typeof i3.AutofocusDirective, typeof i4.BadgeComponent, typeof i5.ButtonComponent, typeof i6.ButtonGroupComponent, typeof i7.BrPipe, typeof i8.CardComponent, typeof i9.CollapsibleComponent, typeof i10.ColoredLabelComponent, typeof i11.CustomDatePipe, typeof i12.EllipsisComponent, typeof i13.HighlightRangePipe, typeof i14.HighlightTermPipe, typeof i15.HtmlDirective, typeof i16.IconScaleComponent, typeof i17.LxLinkifyPipe, typeof i18.LxUnlinkifyPipe, typeof i19.LxTimeAgo, typeof i20.LxTranslatePipe, typeof i21.MarkdownPipe, typeof i22.NbspPipe, typeof i23.LxIsUuidPipe, typeof i24.SpinnerComponent, typeof i25.TableComponent, typeof i26.TableHeaderComponent, typeof i27.TinySpinnerComponent, typeof i28.TranslationAfterPipe, typeof i29.TranslationBeforePipe, typeof i30.TranslationBetweenPipe, typeof i31.SortPipe, typeof i32.ContrastColorPipe, typeof i33.UnescapeCurlyBracesPipe], [typeof i34.CommonModule, typeof i35.LxTooltipModule], [typeof i35.LxTooltipModule, typeof i1.AfterViewInitDirective, typeof i2.AutocloseDirective, typeof i3.AutofocusDirective, typeof i4.BadgeComponent, typeof i5.ButtonComponent, typeof i7.BrPipe, typeof i6.ButtonGroupComponent, typeof i8.CardComponent, typeof i10.ColoredLabelComponent, typeof i11.CustomDatePipe, typeof i12.EllipsisComponent, typeof i13.HighlightRangePipe, typeof i14.HighlightTermPipe, typeof i15.HtmlDirective, typeof i16.IconScaleComponent, typeof i17.LxLinkifyPipe, typeof i18.LxUnlinkifyPipe, typeof i19.LxTimeAgo, typeof i20.LxTranslatePipe, typeof i21.MarkdownPipe, typeof i22.NbspPipe, typeof i23.LxIsUuidPipe, typeof i24.SpinnerComponent, typeof i25.TableComponent, typeof i26.TableHeaderComponent, typeof i27.TinySpinnerComponent, typeof i28.TranslationAfterPipe, typeof i29.TranslationBeforePipe, typeof i30.TranslationBetweenPipe, typeof i9.CollapsibleComponent, typeof i31.SortPipe, typeof i32.ContrastColorPipe, typeof i33.UnescapeCurlyBracesPipe]>;
38
40
  static ɵinj: i0.ɵɵInjectorDeclaration<LxCoreUiModule>;
39
41
  }
@@ -0,0 +1,48 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * This pipe transforms...
5
+ * - "raw" http(s) links
6
+ * - markdown link syntax
7
+ * ... into clickable anchor elements.
8
+ *
9
+ * You have an user interface where you don't want clickable links but also
10
+ * don't want users to see the "ugly" markdown link syntax?
11
+ * -> Use the 'lxUnlikify' pipe to replace markdown link syntax with just the link name
12
+ */
13
+ export declare class LxLinkifyPipe implements PipeTransform {
14
+ /**
15
+ * This is not the "one URL regex to rule them all", but a more realistic one which should work
16
+ * for any URLs that our customers include in text fields on a Fact Sheet.
17
+ *
18
+ * Regex rules explained in plain text:
19
+ *
20
+ * (?:(?:https?):\/\/) -> Links must start with "https://" or "http://"
21
+ *
22
+ * (?:[^\s/$.?#][^\s]*(?<![\.)])) LET'S SPLIT THIS ONE UP
23
+ *
24
+ * [^\s/$.?#][^\s]* -> Match any legal URL character until the next whitespace
25
+ * (?<![\.)] -> A negative lookahead to prevent matching a dot or parenthesis following a URL
26
+ *
27
+ * Link to regex101: https://regex101.com/r/d3KtfH/1 (NOTE: please update this link when changing the regex)
28
+ */
29
+ static readonly HTTP_LINK_REGEX: RegExp;
30
+ /**
31
+ * This will match the markdown link syntax: [link name](url)
32
+ * Regex rules explained in plain text:
33
+ *
34
+ * (?:\[([^\]]*)\]) -> Match any characters inside square brackets
35
+ * \(([^\s\/$.?#][^\s]*)\) -> Notice that this is the same regex as the HTTP_LINK_REGEX above,
36
+ * but without the requirement for the http protocol.
37
+ * This allows for links without including the protocol or also "mailto:hello@world.de" links
38
+ *
39
+ * Link to regex101: https://regex101.com/r/5UMUH8/1
40
+ */
41
+ static readonly NAMED_LINK_REGEX: RegExp;
42
+ transform(text?: string | null): string | undefined | null;
43
+ private turnMarkdownStyleLinksIntoAnchorTags;
44
+ private wrapRawHttpLinksWithAnchorTags;
45
+ private getAllRegexMatches;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<LxLinkifyPipe, never>;
47
+ static ɵpipe: i0.ɵɵPipeDeclaration<LxLinkifyPipe, "lxLinkify">;
48
+ }
@@ -0,0 +1,20 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * This pipe replaces markdown link syntax with just the link name (omits the link altogether).
5
+ * Example: [Angular documentation](http://angular.io/docs) -> Angular documentation
6
+ *
7
+ * It can also be used for "bridging the gap" until your view is ready to use "lxLinkify"
8
+ * and you just want to get rid of the "useless" markdown syntax fast.
9
+ *
10
+ * While there are views where we want markdown style links to be clickable anchor tags,
11
+ * there are other views where this can degrade the UX.
12
+ * Example: in the Fact Sheet list on the inventory list view, having an arbitrary number
13
+ * of links on the page can slow down the keyboard navigation while navigating through the list.
14
+ */
15
+ export declare class LxUnlinkifyPipe implements PipeTransform {
16
+ transform(text?: string | null): string | undefined | null;
17
+ private getAllRegexMatches;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<LxUnlinkifyPipe, never>;
19
+ static ɵpipe: i0.ɵɵPipeDeclaration<LxUnlinkifyPipe, "lxUnlinkify">;
20
+ }
@@ -21,6 +21,14 @@ export declare class ResizeObserverService {
21
21
  observe(element: ResizeableElement, callback: LxResizeObserverCallback, options?: ResizeObserverOptions): void;
22
22
  unobserve(element: HTMLElement): void;
23
23
  private resizeObserverCallback;
24
+ /**
25
+ * All browsers we officially support implement the ResizeObserver API.
26
+ * Still as a curtesy do customers who for some reason have older browsers
27
+ * we call the callback once with the initial dimensions of the element
28
+ * and then do not react on resize events afterwards.
29
+ * This should still make them happier than a "browser not supported" warning.
30
+ */
31
+ private getMockOneTimeResizeEventForUnsupportedBrowsers;
24
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
25
33
  static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
26
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.2.239",
3
+ "version": "0.2.242",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {