@tectra-ng/core 0.3.1 → 0.4.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.
Files changed (39) hide show
  1. package/fesm2022/tectra-ng-core-a11y.mjs.map +1 -1
  2. package/fesm2022/tectra-ng-core-config.mjs.map +1 -1
  3. package/fesm2022/tectra-ng-core-fluid.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-core-forms.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-core-i18n-ua.mjs +0 -14
  6. package/fesm2022/tectra-ng-core-i18n-ua.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-core-i18n.mjs +0 -14
  8. package/fesm2022/tectra-ng-core-i18n.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-core-overlay.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-core-ripple.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-core-styles.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-core-utils.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-core.mjs +1 -1
  14. package/fesm2022/tectra-ng-core.mjs.map +1 -1
  15. package/package.json +5 -5
  16. package/types/tectra-ng-core-a11y.d.ts +42 -0
  17. package/types/tectra-ng-core-a11y.d.ts.map +1 -1
  18. package/types/tectra-ng-core-config.d.ts +63 -0
  19. package/types/tectra-ng-core-config.d.ts.map +1 -1
  20. package/types/tectra-ng-core-fluid.d.ts +2 -0
  21. package/types/tectra-ng-core-fluid.d.ts.map +1 -1
  22. package/types/tectra-ng-core-forms.d.ts +15 -0
  23. package/types/tectra-ng-core-forms.d.ts.map +1 -1
  24. package/types/tectra-ng-core-i18n-types.d.ts +493 -14
  25. package/types/tectra-ng-core-i18n-types.d.ts.map +1 -1
  26. package/types/tectra-ng-core-i18n-ua.d.ts +1 -0
  27. package/types/tectra-ng-core-i18n-ua.d.ts.map +1 -1
  28. package/types/tectra-ng-core-i18n.d.ts +14 -0
  29. package/types/tectra-ng-core-i18n.d.ts.map +1 -1
  30. package/types/tectra-ng-core-overlay.d.ts +135 -0
  31. package/types/tectra-ng-core-overlay.d.ts.map +1 -1
  32. package/types/tectra-ng-core-ripple.d.ts +6 -0
  33. package/types/tectra-ng-core-ripple.d.ts.map +1 -1
  34. package/types/tectra-ng-core-styles.d.ts +2 -0
  35. package/types/tectra-ng-core-styles.d.ts.map +1 -1
  36. package/types/tectra-ng-core-utils.d.ts +17 -0
  37. package/types/tectra-ng-core-utils.d.ts.map +1 -1
  38. package/types/tectra-ng-core.d.ts +2 -1
  39. package/types/tectra-ng-core.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-i18n-types.d.ts","names":[],"sources":["../../../../packages/core/i18n/types/src/translations.types.ts"],"mappings":"AAAA,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA,cAAc;;YAGJ"}
1
+ {"version":3,"file":"tectra-ng-core-i18n-types.d.ts","names":[],"sources":["../../../../packages/core/i18n/types/src/translations.types.ts"],"mappings":"AACA;iBAAiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAE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;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,cAAc;;;YAIJ"}
@@ -1,3 +1,4 @@
1
1
  import { TxLocaleDefinition } from "@tectra-ng/core/i18n/types";
2
+ /** Ukrainian locale; week starts on Monday. */
2
3
  export declare const TX_LOCALE_UA: TxLocaleDefinition;
3
4
  //# sourceMappingURL=tectra-ng-core-i18n-ua.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-i18n-ua.d.ts","names":[],"sources":["../../../../packages/core/i18n/ua/src/ua.locale.ts"],"mappings":";qBAEa,cAAc"}
1
+ {"version":3,"file":"tectra-ng-core-i18n-ua.d.ts","names":[],"sources":["../../../../packages/core/i18n/ua/src/ua.locale.ts"],"mappings":";;qBAGa,cAAc"}
@@ -1,26 +1,40 @@
1
1
  import { TxLocaleCode, TxLocaleDefinition, TxTranslations } from "@tectra-ng/core/config";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Signal } from "@angular/core";
4
+ /** Built-in English (US) locale, the fallback for every other locale. */
4
5
  export declare const TX_LOCALE_US: TxLocaleDefinition;
6
+ /** Values for the `{name}` placeholders of a message. */
5
7
  export type TxMessageParams = Record<string, string | number>;
8
+ /** Fills `{name}` placeholders and ICU `{count, plural, one {…} other {…}}` forms of a message, with `#` as the count. */
6
9
  export declare function formatMessage(template: string, params?: TxMessageParams, intl?: string): string;
10
+ /** Holds the current locale and translates, formats numbers and dates for it; the `locale` config option sets the start locale. */
7
11
  export declare class TxLocaleService {
8
12
  private config;
9
13
  private registry;
14
+ /** The current locale definition. */
10
15
  readonly locale: import("@angular/core").WritableSignal<TxLocaleDefinition>;
16
+ /** Translations of the current locale with the `translations` overrides of the config on top. */
11
17
  readonly translations: import("@angular/core").Signal<TxTranslations>;
12
18
  constructor();
13
19
  private request;
20
+ /** Switches the locale by code or definition; a code that is not registered yet is loaded first, and `us` is used if it fails. */
14
21
  setLocale(locale: TxLocaleCode | TxLocaleDefinition): Promise<void>;
22
+ /** Returns the text of a translation key with its parameters filled in. */
15
23
  translate(key: keyof TxTranslations, params?: TxMessageParams): string;
24
+ /** Fills the placeholders and plural forms of a template for the current locale. */
16
25
  format(template: string, params?: TxMessageParams): string;
26
+ /** Formats a number with `Intl.NumberFormat` for the current locale. */
17
27
  formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
28
+ /** Formats a date or timestamp with `Intl.DateTimeFormat` for the current locale. */
18
29
  formatDate(value: Date | number, options?: Intl.DateTimeFormatOptions): string;
30
+ /** The twelve month names, January first, in the current locale. */
19
31
  monthNames(style?: 'long' | 'short'): string[];
32
+ /** The seven weekday names in the current locale, starting at its first day of the week. */
20
33
  weekdayNames(style?: 'long' | 'short' | 'narrow'): string[];
21
34
  private resolve;
22
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TxLocaleService, never>;
23
36
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
24
37
  }
38
+ /** Returns the translations of the current locale as a signal; call it in an injection context. */
25
39
  export declare function injectTranslations(): Signal<TxTranslations>;
26
40
  //# sourceMappingURL=tectra-ng-core-i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-i18n.d.ts","names":[],"sources":["../../../../packages/core/i18n/src/locales.ts","../../../../packages/core/i18n/src/format-message.ts","../../../../packages/core/i18n/src/locale.service.ts","../../../../packages/core/i18n/src/translations.ts"],"mappings":";;;qBAEa,cAAc;YCCf,kBAAkB;wBAEd,cAAc,kBAAkB,SAAQ,iBAAsB;qBCCjE;UACH;UACA;WAEC,gCAAM,eAAA;WACN,sCAAY,OAAA;;UASb;EAEF,UAAU,QAAQ,eAAe,qBAAqB;EAY5D,UAAU,WAAW,gBAAgB,SAAQ;EAI7C,OAAO,kBAAkB,SAAQ;EAIjC,aAAa,eAAe,UAAU,KAAK;EAI3C,WAAW,OAAO,eAAe,UAAU,KAAK;EAIhD,WAAW;EAKX,aAAa;UAML;SAvDG,MAAA,GAAA,qBAAA;;;wBCFG,sBAAsB,OAAO"}
1
+ {"version":3,"file":"tectra-ng-core-i18n.d.ts","names":[],"sources":["../../../../packages/core/i18n/src/locales.ts","../../../../packages/core/i18n/src/format-message.ts","../../../../packages/core/i18n/src/locale.service.ts","../../../../packages/core/i18n/src/translations.ts"],"mappings":";;;;qBAGa,cAAc;;YCCf,kBAAkB;;wBAGd,cAAc,kBAAkB,SAAQ,iBAAsB;;qBCAjE;UACH;UACA;;WAGC,gCAAM,eAAA;;WAEN,sCAAY,OAAA;;UASb;;EAGF,UAAU,QAAQ,eAAe,qBAAqB;;EAa5D,UAAU,WAAW,gBAAgB,SAAQ;;EAK7C,OAAO,kBAAkB,SAAQ;;EAKjC,aAAa,eAAe,UAAU,KAAK;;EAK3C,WAAW,OAAO,eAAe,UAAU,KAAK;;EAKhD,WAAW;;EAMX,aAAa;UAML;SAhEG,MAAA,GAAA,qBAAA;;;;wBCFG,sBAAsB,OAAO"}
@@ -2,137 +2,267 @@ import { Observable } from "rxjs";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Injector, Signal, TemplateRef, Type, ViewContainerRef } from "@angular/core";
4
4
  import { CdkConnectedOverlay, ConnectedPosition, OverlayRef, ScrollStrategy, ViewportMargin } from "@angular/cdk/overlay";
5
+ /** Side of the origin element an overlay opens on. */
5
6
  export type TxPlacementSide = 'top' | 'bottom' | 'left' | 'right';
7
+ /** How an overlay lines up with the origin element along that side. */
6
8
  export type TxPlacementAlign = 'start' | 'center' | 'end';
9
+ /** Where an overlay opens relative to its origin: a side, optionally with `-start` or `-end` alignment. */
7
10
  export type TxPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
11
+ /** Stacking layer of an overlay, from the lowest (`dropdown`) to the highest (`toast`). */
8
12
  export type TxOverlayLayer = 'dropdown' | 'popover' | 'tooltip' | 'modal' | 'toast';
13
+ /** What an open overlay does when the page scrolls: follow its origin, close, block scrolling or stay. */
9
14
  export type TxOverlayScroll = 'reposition' | 'close' | 'block' | 'none';
15
+ /** Why an overlay closed. */
10
16
  export type TxOverlayCloseReason = 'escape' | 'outside' | 'scroll' | 'api' | 'detached';
17
+ /** Open and close animation of an overlay: slide in from its side or pop out of its origin. */
11
18
  export type TxOverlayMotion = 'slide' | 'pop';
19
+ /** Options of `TxOverlay.open`: the origin element, placement, scroll and close behavior. */
12
20
  export interface TxOverlayOptions<TContext = unknown> {
21
+ /** Element the overlay is attached to. */
13
22
  origin: Element;
23
+ /** Container the content is created in; required when the content is a template. */
14
24
  viewContainerRef?: ViewContainerRef;
25
+ /** Injector for a component content (default: the root injector of the service). */
15
26
  injector?: Injector;
27
+ /** Context of a template content. */
16
28
  context?: TContext;
29
+ /** Where the overlay opens (default `bottom-start`); it flips when there is no room. */
17
30
  placement?: TxPlacement;
31
+ /** Gap between the origin and the overlay, in px (default 4). */
18
32
  offset?: number;
33
+ /** Free space kept between the overlay and the viewport edges, in px (default 8). */
19
34
  viewportMargin?: number;
35
+ /** Stacking layer (default `dropdown`). */
20
36
  layer?: TxOverlayLayer;
37
+ /** What happens on scroll (default `reposition`). */
21
38
  scroll?: TxOverlayScroll;
39
+ /** Gives the overlay the width the origin has when it opens. */
22
40
  matchWidth?: boolean;
41
+ /** Closes on `Escape` (default `true`). */
23
42
  closeOnEscape?: boolean;
43
+ /** Closes on a click outside the overlay and its origin (default `true`). */
24
44
  closeOnOutsideClick?: boolean;
45
+ /** Returns focus to the previously focused element on close, except after an outside click (default `true`). */
25
46
  restoreFocus?: boolean;
47
+ /** Animates opening and closing (default `true`). */
26
48
  animate?: boolean;
49
+ /** Kind of open and close animation (default `slide`). */
27
50
  motion?: TxOverlayMotion;
51
+ /** CSS class or classes added to the overlay pane. */
28
52
  panelClass?: string | string[];
29
53
  }
54
+ /** Handle of an open overlay. */
30
55
  export interface TxOverlayRef<TInstance = unknown> {
56
+ /** Placement the overlay currently has, after flipping. */
31
57
  readonly placement: Signal<TxPlacement>;
58
+ /** Emits the reason once when the overlay closes. */
32
59
  readonly closed: Observable<TxOverlayCloseReason>;
60
+ /** Instance of the content component; `null` for a template. */
33
61
  readonly instance: TInstance | null;
62
+ /** Pane element of the overlay. */
34
63
  readonly element: HTMLElement;
64
+ /** Closes the overlay (default reason `api`). */
35
65
  close(reason?: TxOverlayCloseReason): void;
66
+ /** Recomputes the position, for example after the content changed size. */
36
67
  updatePosition(): void;
37
68
  }
69
+ /** Edges of a rectangle in px: distances from the viewport top and left. */
38
70
  export interface TxOverlayBounds {
71
+ /** Top edge, in px. */
39
72
  top: number;
73
+ /** Right edge, in px. */
40
74
  right: number;
75
+ /** Bottom edge, in px. */
41
76
  bottom: number;
77
+ /** Left edge, in px. */
42
78
  left: number;
43
79
  }
80
+ /** Width and height of an element in px. */
44
81
  export interface TxOverlaySize {
82
+ /** Width, in px. */
45
83
  width: number;
84
+ /** Height, in px. */
46
85
  height: number;
47
86
  }
87
+ /** Space in px taken by fixed bars at the top and bottom of the viewport. */
48
88
  export interface TxOverlayInsetValues {
89
+ /** Space taken at the top, in px. */
49
90
  top: number;
91
+ /** Space taken at the bottom, in px. */
50
92
  bottom: number;
51
93
  }
94
+ /** Offset in px along both axes. */
52
95
  export interface TxOverlayShift {
96
+ /** Horizontal offset, in px. */
53
97
  x: number;
98
+ /** Vertical offset, in px. */
54
99
  y: number;
55
100
  }
101
+ /** Position and size of an element in px. */
56
102
  export interface TxOverlayBox {
103
+ /** Distance from the top, in px. */
57
104
  top: number;
105
+ /** Distance from the left, in px. */
58
106
  left: number;
107
+ /** Width, in px. */
59
108
  width: number;
109
+ /** Height, in px. */
60
110
  height: number;
61
111
  }
112
+ /** Splits a placement into its side and alignment; no alignment means `center`. */
62
113
  export declare function parsePlacement(placement: TxPlacement): {
63
114
  side: TxPlacementSide;
64
115
  align: TxPlacementAlign;
65
116
  };
117
+ /** Joins a side and an alignment into a placement. */
66
118
  export declare function toPlacement(side: TxPlacementSide, align: TxPlacementAlign): TxPlacement;
119
+ /**
120
+ * Connected positions for a placement (default `bottom-start`) and an offset in px (default 4), ordered by
121
+ * preference with the fallbacks after it.
122
+ */
67
123
  export declare function txPositions(placement?: TxPlacement, offset?: number): ConnectedPosition[];
124
+ /** Placement a connected position stands for; `null` for a position not made by `txPositions`. */
68
125
  export declare function placementFromPosition(position: ConnectedPosition): TxPlacement | null;
126
+ /**
127
+ * CSS `calc()` value that places an arrow on the origin center, for a placement, origin size and optional
128
+ * inset from the overlay edge.
129
+ */
69
130
  export declare function txArrowOffset(placement: TxPlacement, origin: TxOverlaySize, inset?: string): string;
131
+ /** Position and size of an element, as in `DOMRect`. */
70
132
  type TxBox = Pick<DOMRect, 'top' | 'left' | 'width' | 'height'>;
133
+ /** Tells whether an overlay of the given size placed at a connected position stays inside the bounds. */
71
134
  export declare function fitsInBounds(position: ConnectedPosition, origin: TxBox, size: TxOverlaySize, bounds: TxOverlayBounds): boolean;
135
+ /**
136
+ * Moves the first position that fits the bounds to the front; the order stays when the first one already fits
137
+ * or none does.
138
+ */
72
139
  export declare function orderByRoom(positions: ConnectedPosition[], origin: TxBox, size: TxOverlaySize, bounds: TxOverlayBounds): ConnectedPosition[];
140
+ /**
141
+ * Opens a template or a component in an overlay next to an origin element, with flipping, scroll handling and
142
+ * open and close animation.
143
+ */
73
144
  export declare class TxOverlay {
74
145
  private injector;
75
146
  private document;
76
147
  private overlayInsets;
148
+ /** Opens the content in an overlay and returns its handle. */
77
149
  open<TInstance = unknown, TContext = unknown>(content: TemplateRef<TContext> | Type<TInstance>, options: TxOverlayOptions<TContext>): TxOverlayRef<TInstance>;
78
150
  private attach;
79
151
  private scrollStrategy;
80
152
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOverlay, never>;
81
153
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
82
154
  }
155
+ /** CSS `transform-origin` for the pop animation: the edge of the overlay facing its side, at the anchor center. */
83
156
  export declare function txPopOrigin(element: Element, side: TxPlacementSide, anchor?: Element): string;
157
+ /** Plays the open animation of an overlay; does nothing under reduced motion. */
84
158
  export declare function txAnimateEnter(element: Element, placement: TxPlacement, motion?: TxOverlayMotion, anchor?: Element): void;
159
+ /** Plays the close animation of an overlay and resolves when it ends; resolves at once under reduced motion. */
85
160
  export declare function txAnimateLeave(element: Element, placement: TxPlacement, motion?: TxOverlayMotion, anchor?: Element): Promise<void>;
161
+ /**
162
+ * Measures the space that fixed or stuck bars (marked with `txOverlayInset`) and the config take at the top
163
+ * and bottom of the viewport.
164
+ */
86
165
  export declare class TxOverlayInsets {
87
166
  private configured;
88
167
  private elements;
168
+ /** Adds an element to measure; returns a function that removes it. */
89
169
  register(element: HTMLElement): () => void;
170
+ /**
171
+ * Space taken now at the top and bottom, in px: the configured insets or the registered elements pinned to
172
+ * an edge, whichever is larger.
173
+ */
90
174
  measure(): TxOverlayInsetValues;
91
175
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOverlayInsets, never>;
92
176
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
93
177
  }
178
+ /** Viewport margin for an overlay: the free margin on every side plus the space taken by fixed bars. */
94
179
  export declare function txViewportMargin(insets: TxOverlayInsetValues, margin: number): ViewportMargin;
180
+ /**
181
+ * Viewport margin for connected overlays: the free margin at the bottom and sides, plus the space of a bottom
182
+ * bar; the top margin is 0.
183
+ */
95
184
  export declare function txConnectedMargin(insets: TxOverlayInsetValues, margin: number): ViewportMargin;
185
+ /** Area of the viewport an overlay may use: the viewport minus the margin and the space taken by fixed bars. */
96
186
  export declare function txOverlayBounds(insets: TxOverlayInsetValues, margin: number, document: Document): TxOverlayBounds;
187
+ /** Callbacks of `watchOrigin`. */
97
188
  export interface TxOriginWatch {
189
+ /** Called with the new bar insets when the page scrolls. */
98
190
  insetsChange: (insets: TxOverlayInsetValues) => void;
191
+ /** Called when a scrollable ancestor of the origin scrolls. */
99
192
  containerScroll: () => void;
100
193
  }
194
+ /** Scrollable ancestors of an element, nearest first, up to but not including the page. */
101
195
  export declare function scrollContainers(origin: Element): Element[];
196
+ /**
197
+ * Watches an origin element: reports new bar insets when the page scrolls and when a scrollable ancestor
198
+ * scrolls; returns a function that stops it.
199
+ */
102
200
  export declare function watchOrigin(origin: Element, overlayInsets: TxOverlayInsets, watch: TxOriginWatch): () => void;
201
+ /** Marks a fixed or sticky bar so overlays keep clear of it. */
103
202
  export declare class TxOverlayInset {
104
203
  private unregister;
105
204
  private readonly stopOnDestroy;
106
205
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOverlayInset, never>;
107
206
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxOverlayInset, "[txOverlayInset]", never, {}, {}, never, never, true, never>;
108
207
  }
208
+ /** Picks the position of a CDK connected overlay that has room, for components that use `cdkConnectedOverlay`. */
109
209
  export declare class TxOverlayRoom {
110
210
  private readonly preferred;
111
211
  private readonly margin;
112
212
  private insets;
213
+ /** Signal with the positions to give the overlay, the one with room first. */
113
214
  readonly positions: import("@angular/core").WritableSignal<ConnectedPosition[]>;
215
+ /** Signal with the viewport margin to give the overlay. */
114
216
  readonly viewportMargin: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ViewportMargin>;
115
217
  constructor(preferred: ConnectedPosition[], margin?: number);
218
+ /** Resets the positions to the preferred order and sets the bar insets when the overlay opens. */
116
219
  open(insets: TxOverlayInsetValues): void;
220
+ /** Updates the bar insets and the viewport margin. */
117
221
  move(insets: TxOverlayInsetValues): void;
222
+ /**
223
+ * Reorders the positions so one with room comes first; returns `true` when the order changed and the
224
+ * overlay is going to be repositioned.
225
+ */
118
226
  fit(origin: Element, panel: HTMLElement | null | undefined, overlay: CdkConnectedOverlay | undefined, injector: Injector): boolean;
227
+ /** Updates the insets, then reorders the positions or repositions the overlay. */
119
228
  follow(insets: TxOverlayInsetValues, origin: Element, panel: HTMLElement | null | undefined, overlay: CdkConnectedOverlay | undefined, injector: Injector): void;
120
229
  }
230
+ /** Scroll direction of a scroll timeline. */
121
231
  export type ScrollAxis = 'block' | 'inline';
232
+ /** Constructor of the browser `ScrollTimeline`. */
122
233
  export type ScrollTimelineConstructor = new (options: {
123
234
  source: Element;
124
235
  axis: ScrollAxis;
125
236
  }) => AnimationTimeline;
237
+ /**
238
+ * The `ScrollTimeline` constructor when the browser supports scroll-driven animations with ranges;
239
+ * `undefined` otherwise.
240
+ */
126
241
  export declare function scrollTimeline(view: Window | null): ScrollTimelineConstructor | undefined;
242
+ /** Tells whether the browser can animate an overlay along with the scroll of its origin. */
127
243
  export declare function txFollowsScroll(view: Window | null): boolean;
244
+ /**
245
+ * CDK scroll strategy that repositions an overlay on scroll, or does nothing where the browser moves it along
246
+ * with its origin.
247
+ */
128
248
  export declare function txScrollStrategy(injector: Injector): ScrollStrategy;
249
+ /** Scroll sources an element moves with, one per axis, from its nearest scrollable ancestor to the page. */
129
250
  export declare function scrollTracksOf(origin: Element): ScrollTrack[];
251
+ /** Elements whose scroll moves the given element, nearest first. */
130
252
  export declare function scrollersOf(origin: Element): Element[];
253
+ /** One scroll source and the axis it scrolls along. */
131
254
  interface ScrollTrack {
255
+ /** Element that scrolls. */
132
256
  source: Element;
257
+ /** Axis of the scroll. */
133
258
  axis: ScrollAxis;
134
259
  }
260
+ /**
261
+ * Keeps an overlay pane glued to its origin while the origin scrolls, and clips it under fixed bars; returns
262
+ * a function that stops it (also called when the overlay detaches).
263
+ */
135
264
  export declare function txAnchorPane(overlayRef: OverlayRef, origin: Element, chrome?: TxOverlayInsets, margin?: number): () => void;
265
+ /** Applies `txAnchorPane` to a `cdkConnectedOverlay`, so it follows its origin on scroll. */
136
266
  export declare class TxOverlayAnchor {
137
267
  private connectedOverlay;
138
268
  private chrome;
@@ -142,10 +272,15 @@ export declare class TxOverlayAnchor {
142
272
  static ɵfac: i0.ɵɵFactoryDeclaration<TxOverlayAnchor, never>;
143
273
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxOverlayAnchor, "[cdkConnectedOverlay][txOverlayAnchor]", never, {}, {}, never, never, true, never>;
144
274
  }
275
+ /** Offset between the layout viewport and the visual viewport of the page, in px (differs when pinch-zoomed). */
145
276
  export declare function txLayoutShift(document: Document): TxOverlayShift;
277
+ /** Page position of the top left corner of the visual viewport, in px. */
146
278
  export declare function txLayoutOrigin(document: Document): TxOverlayShift;
279
+ /** Rectangle of an element in layout viewport coordinates, in px. */
147
280
  export declare function txLayoutRect(element: Element): TxOverlayBox;
281
+ /** Space between the overlay host and the root element on the sides the pane is pinned to, in px. */
148
282
  export declare function txHostGap(host: HTMLElement, pane: HTMLElement): TxOverlayShift;
283
+ /** Shift that keeps an overlay inside the viewport across its placement side, in px; zero when it already fits. */
149
284
  export declare function txCrossShift(pane: HTMLElement, margin: number): TxOverlayShift;
150
285
  export {};
151
286
  //# sourceMappingURL=tectra-ng-core-overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-overlay.d.ts","names":[],"sources":["../../../../packages/core/overlay/src/overlay.types.ts","../../../../packages/core/overlay/src/placements.ts","../../../../packages/core/overlay/src/overlay.service.ts","../../../../packages/core/overlay/src/overlay-motion.ts","../../../../packages/core/overlay/src/overlay-insets.service.ts","../../../../packages/core/overlay/src/overlay-inset.directive.ts","../../../../packages/core/overlay/src/overlay-room.ts","../../../../packages/core/overlay/src/overlay-scroll.ts","../../../../packages/core/overlay/src/overlay-anchor.ts","../../../../packages/core/overlay/src/overlay-viewport.ts"],"mappings":";;;;YAGY;YACA;YACA;YAcA;YACA;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AgB,UAAU,WAAW;iBAKlF;EACf,eAAe,QAAQ;EACvB;;wBAKc,iBAAiB,QAAQ,UAAU;wBAanC,YAAY,QAAQ,SAAS,eAAe,iBAAiB,OAAO;qBCjFvE;UACH;mBACS;SAFN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCGA;mBAMQ;mBACA;UANX;WACC,mCAAS,eAAA;WACT,wCAAc,8CAAA;EAGJ,YAAA,WAAW,qBACX;EAMnB,KAAK,QAAQ;EAMb,KAAK,QAAQ;EAKb,IAAI,QAAQ,SAAS,OAAO,gCAAgC,SAAS,iCAAiC,UAAU;EAehH,OAAO,QAAQ,sBAAsB,QAAQ,SAAS,OAAO,gCAAgC,SAAS,iCAAiC,UAAU;;YC3CvI;YACA,iCAAiC;EAAW,QAAQ;EAAS,MAAM;MAAiB;wBAOhF,eAAe,MAAM,gBAAgB;wBAMrC,gBAAgB,MAAM;wBAItB,iBAAiB,UAAU,WAAW;wBCUtC,eAAe,QAAQ,UAAU;wBAiCjC,YAAY,QAAQ,UAAU;UAIpC;EACR,QAAQ;EACR,MAAM;;wBAsBQ,aAAa,YAAY,YAAY,QAAQ,SAAS,SAAS,iBAAiB;qBAmLnF;UACH;UACA;UACA;;UAiBA;SApBG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;wBC7QG,cAAc,UAAU,WAAW;wBAYnC,eAAe,UAAU,WAAW;wBASpC,aAAa,SAAS,UAAU;wBAMhC,UAAU,MAAM,aAAa,MAAM,cAAc;wBAoBjD,aAAa,MAAM,aAAa,iBAAiB"}
1
+ {"version":3,"file":"tectra-ng-core-overlay.d.ts","names":[],"sources":["../../../../packages/core/overlay/src/overlay.types.ts","../../../../packages/core/overlay/src/placements.ts","../../../../packages/core/overlay/src/overlay.service.ts","../../../../packages/core/overlay/src/overlay-motion.ts","../../../../packages/core/overlay/src/overlay-insets.service.ts","../../../../packages/core/overlay/src/overlay-inset.directive.ts","../../../../packages/core/overlay/src/overlay-room.ts","../../../../packages/core/overlay/src/overlay-scroll.ts","../../../../packages/core/overlay/src/overlay-anchor.ts","../../../../packages/core/overlay/src/overlay-viewport.ts"],"mappings":";;;;;YAIY;;YAEA;;YAEA;;YAeA;;YAEA;;YAEA;;YAEA;;iBAGK,iBAAiB;;EAEhC,QAAQ;;EAER,mBAAmB;;EAEnB,WAAW;;EAEX,UAAU;;EAEV,YAAY;;EAEZ;;EAEA;;EAEA,QAAQ;;EAER,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET;;;iBAIe,aAAa;;WAEnB,WAAW,OAAO;;WAElB,QAAQ,WAAW;;WAEnB,UAAU;;WAEV,SAAS;;EAElB,MAAM,SAAS;;EAEf;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;wBCzHc,eAAe,WAAW;EAAgB,MAAM;EAAiB,OAAO;;;wBAMxE,YAAY,MAAM,iBAAiB,OAAO,mBAAmB;;;;;wBAiC7D,YAAY,YAAW,aAA8B,kBAAa;;wBAOlE,sBAAsB,UAAU,oBAAoB;;;;;wBASpD,cAAc,WAAW,aAAa,QAAQ,eAAe;;KAUxE,QAAQ,KAAK;;wBAWF,aAAa,UAAU,mBAAmB,QAAQ,OAAO,MAAM,eAAe,QAAQ;;;;;wBAUtF,YAAY,WAAW,qBAAqB,QAAQ,OAAO,MAAM,eAAe,QAAQ,kBAAkB;;;;;qBCrE7G;UACH;UACA;UACA;;EAGR,KAAK,qBAAqB,oBACxB,SAAS,YAAY,YAAY,KAAK,YACtC,SAAS,iBAAiB,YACzB,aAAa;UAgHR;UAiBA;SA1IG,MAAA,GAAA,qBAAA;;;;wBCQG,YAAY,SAAS,SAAS,MAAM,iBAAiB,SAAS;;wBAqB9D,eAAe,SAAS,SAAS,WAAW,aAAa,SAAQ,iBA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AUpC,aAAa,SAAS,UAAU;;wBAOhC,UAAU,MAAM,aAAa,MAAM,cAAc;;wBAqBjD,aAAa,MAAM,aAAa,iBAAiB"}
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ /** Adds the click ripple effect to an element; on by default only when the ripple is turned on in the config. */
2
3
  export declare class TxRipple {
3
4
  private readonly rippleTheme;
4
5
  private elementRef;
@@ -48,10 +49,15 @@ export declare class TxRipple {
48
49
  };
49
50
  }, {}, never, never, true, never>;
50
51
  }
52
+ /** One running ripple wave. */
51
53
  export interface TxRippleRef {
54
+ /** Element of the wave. */
52
55
  element: HTMLElement;
56
+ /** Whether the wave has finished growing. */
53
57
  isEntered: boolean;
58
+ /** Whether the press ended, so the wave can fade out. */
54
59
  isReleased: boolean;
60
+ /** Whether the wave was started with the keyboard instead of a pointer. */
55
61
  fromKeyboard: boolean;
56
62
  }
57
63
  //# sourceMappingURL=tectra-ng-core-ripple.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-ripple.d.ts","names":[],"sources":["../../../../packages/core/ripple/src/ripple.directive.ts","../../../../packages/core/ripple/src/ripple.types.ts"],"mappings":";qBAsBa;mBACM;UAET;UACA;UACA;UACA;UACA;UACA;WAEC,gCAAM;WACN,wCAAc;WACd,wCAAc;WACd,qCAAW;WAEX,mCAAS;EAElB,cAAc,OAAO;EAMrB,UAAU,OAAO;EAMjB,QAAQ,OAAO;EAMf;EAIA;UAIQ;UAyCA;UAUA;UAWA;UAKA;UAWA;UASA;SAlIG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;iBCtBJ;EACf,SAAS;EACT;EACA;EACA"}
1
+ {"version":3,"file":"tectra-ng-core-ripple.d.ts","names":[],"sources":["../../../../packages/core/ripple/src/ripple.directive.ts","../../../../packages/core/ripple/src/ripple.types.ts"],"mappings":";;qBAuBa;mBACM;UAET;UACA;UACA;UACA;UACA;UACA;WAEC,gCAAM;WACN,wCAAc;WACd,wCAAc;WACd,qCAAW;WAEX,mCAAS;EAElB,cAAc,OAAO;EAMrB,UAAU,OAAO;EAMjB,QAAQ,OAAO;EAMf;EAIA;UAIQ;UAyCA;UAUA;UAWA;UAKA;UAWA;UASA;SAlIG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;;iBCtBJ;;EAEf,SAAS;;EAET;;EAEA;;EAEA"}
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { Type } from "@angular/core";
3
+ /** Adds the styles of a component once, however many instances use them. */
3
4
  export declare class TxStyleLoader {
4
5
  private environmentInjector;
5
6
  private loaded;
7
+ /** Creates the style-only component the first time it is passed; later calls do nothing. */
6
8
  load(styles: Type<unknown>): void;
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TxStyleLoader, never>;
8
10
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-styles.d.ts","names":[],"sources":["../../../../packages/core/styles/src/style-loader.service.ts"],"mappings":";;qBAGa;UACH;UACA;EAER,KAAK,QAAQ;SAJF,MAAA,GAAA,qBAAA"}
1
+ {"version":3,"file":"tectra-ng-core-styles.d.ts","names":[],"sources":["../../../../packages/core/styles/src/style-loader.service.ts"],"mappings":";;;qBAIa;UACH;UACA;;EAGR,KAAK,QAAQ;SALF,MAAA,GAAA,qBAAA"}
@@ -1,13 +1,30 @@
1
+ /**
2
+ * Input transform for a boolean that may be unset: `undefined` and `null` stay `undefined`, other values go
3
+ * through `booleanAttribute`.
4
+ */
1
5
  export declare function optionalBoolean(value: unknown): boolean | undefined;
6
+ /** Input transform for a number that may be unset: empty and non-numeric values become `undefined`. */
2
7
  export declare function optionalNumber(value: unknown): number | undefined;
8
+ /** Animation used when one view swaps for another. */
3
9
  export type TxSwapEffect = 'slide' | 'fade' | 'zoom' | 'blur' | 'flip' | 'none';
10
+ /** Direction of a swap animation: horizontal (`x`) or vertical (`y`). */
4
11
  export type TxSwapAxis = 'x' | 'y';
12
+ /** Keyframes of a swap animation for the entering and the leaving view. */
5
13
  export interface TxSwapMotion {
14
+ /** Keyframes of the entering view. */
6
15
  enter: Keyframe[];
16
+ /** Keyframes of the leaving view. */
7
17
  leave: Keyframe[];
18
+ /** Whether the leaving view must finish before the entering one starts. */
8
19
  sequential: boolean;
9
20
  }
21
+ /** Keyframes of a swap effect; `direction` is `1` forward and `-1` back, `null` for `none`. */
10
22
  export declare function txSwapMotion(effect: TxSwapEffect, direction: 1 | -1, axis?: TxSwapAxis): TxSwapMotion | null;
23
+ /**
24
+ * Tells whether an element can be animated: it supports the Web Animations API and the user has not asked for
25
+ * reduced motion.
26
+ */
11
27
  export declare function txCanAnimate(element: Element | null | undefined): element is HTMLElement;
28
+ /** Reads a CSS time custom property of an element in ms, or returns the fallback when it is not a number. */
12
29
  export declare function txCssTime(element: Element, property: string, fallback: number): number;
13
30
  //# sourceMappingURL=tectra-ng-core-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core-utils.d.ts","names":[],"sources":["../../../../packages/core/utils/src/optional-boolean.ts","../../../../packages/core/utils/src/optional-number.ts","../../../../packages/core/utils/src/swap-motion.ts"],"mappings":"AAEA,wBAAgB,gBAAgB;wBCAhB,eAAe;YCFnB;YAEA;iBAEK;EACf,OAAO;EACP,OAAO;EACP;;wBAKc,aAAa,QAAQ,cAAc,mBAAmB,OAAM,aAAmB;wBAqD/E,aAAa,SAAS,6BAA6B,WAAW;wBAO9D,UAAU,SAAS,SAAS,kBAAkB"}
1
+ {"version":3,"file":"tectra-ng-core-utils.d.ts","names":[],"sources":["../../../../packages/core/utils/src/optional-boolean.ts","../../../../packages/core/utils/src/optional-number.ts","../../../../packages/core/utils/src/swap-motion.ts"],"mappings":"AAMA;;;;wBAAgB,gBAAgB;;wBCHhB,eAAe;;YCFnB;;YAGA;;iBAGK;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;;wBAMc,aAAa,QAAQ,cAAc,mBAAmB,OAAM,aAAmB;;;;;wBAyD/E,aAAa,SAAS,6BAA6B,WAAW;;wBAQ9D,UAAU,SAAS,SAAS,kBAAkB"}
@@ -1,2 +1,3 @@
1
- export declare const TECTRA_CORE_VERSION = "0.0.0";
1
+ /** Version of the installed `@tectra-ng/core` package, written in when the package is built. */
2
+ export declare const TECTRA_CORE_VERSION = "0.4.0";
2
3
  //# sourceMappingURL=tectra-ng-core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-core.d.ts","names":[],"sources":["../../../../packages/core/index.ts"],"mappings":"AAAA,qBAAa"}
1
+ {"version":3,"file":"tectra-ng-core.d.ts","names":[],"sources":["../../../../packages/core/index.ts"],"mappings":"AACA;qBAAa"}