@ethlete/core 4.4.1 → 4.5.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 (73) hide show
  1. package/esm2022/lib/components/structured-data/structured-data.component.mjs +3 -3
  2. package/esm2022/lib/decorators/memo/memo.decorator.mjs +1 -1
  3. package/esm2022/lib/directives/animatable/animatable.directive.mjs +4 -4
  4. package/esm2022/lib/directives/animated-if/animated-if.directive.mjs +4 -4
  5. package/esm2022/lib/directives/animated-lifecycle/animated-lifecycle.directive.mjs +4 -4
  6. package/esm2022/lib/directives/animated-overlay/animated-overlay.directive.mjs +4 -4
  7. package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +4 -4
  8. package/esm2022/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +4 -4
  9. package/esm2022/lib/directives/debug/debug.directive.mjs +3 -3
  10. package/esm2022/lib/directives/delayable/delayable.directive.mjs +4 -4
  11. package/esm2022/lib/directives/is-active-element/is-active-element.directive.mjs +3 -3
  12. package/esm2022/lib/directives/is-element/is-element.directive.mjs +3 -3
  13. package/esm2022/lib/directives/let/let.directive.mjs +4 -4
  14. package/esm2022/lib/directives/observe-content/observe-content.directive.mjs +4 -4
  15. package/esm2022/lib/directives/observe-resize/observe-resize.directive.mjs +4 -4
  16. package/esm2022/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +4 -4
  17. package/esm2022/lib/directives/observe-visibility/observe-visibility.directive.mjs +4 -4
  18. package/esm2022/lib/directives/repeat/repeat.directive.mjs +4 -4
  19. package/esm2022/lib/directives/root-boundary/root-boundary.directive.mjs +3 -3
  20. package/esm2022/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +3 -3
  21. package/esm2022/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +3 -3
  22. package/esm2022/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +3 -3
  23. package/esm2022/lib/directives/seo/seo.directive.mjs +4 -4
  24. package/esm2022/lib/pipes/infer-mime-type/infer-mime-type.pipe.mjs +3 -3
  25. package/esm2022/lib/pipes/infer-mime-type/infer-mime-type.util.mjs +1 -1
  26. package/esm2022/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +3 -3
  27. package/esm2022/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.mjs +1 -1
  28. package/esm2022/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +3 -3
  29. package/esm2022/lib/pipes/normalize-match-participants/normalize-match-participants.util.mjs +1 -1
  30. package/esm2022/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +3 -3
  31. package/esm2022/lib/pipes/normalize-match-score/normalize-match-score.util.mjs +1 -1
  32. package/esm2022/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +3 -3
  33. package/esm2022/lib/pipes/normalize-match-state/normalize-match-state.util.mjs +1 -1
  34. package/esm2022/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +3 -3
  35. package/esm2022/lib/pipes/normalize-match-type/normalize-match-type.util.mjs +1 -1
  36. package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +3 -3
  37. package/esm2022/lib/services/click-observer.service.mjs +7 -7
  38. package/esm2022/lib/services/content-observer.service.mjs +7 -7
  39. package/esm2022/lib/services/focus-visible.service.mjs +4 -4
  40. package/esm2022/lib/services/intersection-observer.service.mjs +7 -7
  41. package/esm2022/lib/services/resize-observer.service.mjs +7 -7
  42. package/esm2022/lib/services/router-state.service.mjs +4 -4
  43. package/esm2022/lib/services/viewport.service.mjs +4 -4
  44. package/esm2022/lib/utils/active-selection-model.utils.mjs +1 -1
  45. package/esm2022/lib/utils/animation.utils.mjs +1 -1
  46. package/esm2022/lib/utils/clone.util.mjs +1 -1
  47. package/esm2022/lib/utils/component-id.utils.mjs +7 -0
  48. package/esm2022/lib/utils/cookie.util.mjs +4 -3
  49. package/esm2022/lib/utils/equal.util.mjs +1 -1
  50. package/esm2022/lib/utils/form.utils.mjs +1 -1
  51. package/esm2022/lib/utils/key-press-manager.utils.mjs +1 -1
  52. package/esm2022/lib/utils/mutation-observable.util.mjs +1 -1
  53. package/esm2022/lib/utils/public-api.mjs +2 -1
  54. package/esm2022/lib/utils/reactive-binding.util.mjs +1 -1
  55. package/esm2022/lib/utils/resize-observable.util.mjs +1 -1
  56. package/esm2022/lib/utils/runtime-error.utils.mjs +1 -1
  57. package/esm2022/lib/utils/scrollable.utils.mjs +1 -1
  58. package/esm2022/lib/utils/selection-model.utils.mjs +2 -1
  59. package/esm2022/lib/utils/signal.utils.mjs +26 -10
  60. package/esm2022/lib/utils/smart-block-scroll-strategy.utils.mjs +1 -1
  61. package/esm2022/lib/validators/at-least-one-required.validator.mjs +1 -1
  62. package/esm2022/lib/validators/is-array-not-empty.validator.mjs +1 -1
  63. package/esm2022/lib/validators/is-email.validator.mjs +1 -1
  64. package/esm2022/lib/validators/must-match.validator.mjs +1 -1
  65. package/fesm2022/ethlete-core.mjs +157 -132
  66. package/fesm2022/ethlete-core.mjs.map +1 -1
  67. package/lib/directives/animated-lifecycle/animated-lifecycle.directive.d.ts +3 -0
  68. package/lib/utils/component-id.utils.d.ts +1 -0
  69. package/lib/utils/cookie.util.d.ts +1 -1
  70. package/lib/utils/public-api.d.ts +1 -0
  71. package/lib/utils/selection-model.utils.d.ts +2 -0
  72. package/lib/utils/signal.utils.d.ts +21 -0
  73. package/package.json +7 -7
@@ -14,7 +14,10 @@ export declare class AnimatedLifecycleDirective implements AfterViewInit {
14
14
  get state(): AnimatedLifecycleState;
15
15
  readonly hostClassBindings: {
16
16
  remove: (...tokens: string[]) => void;
17
+ removeMany: (tokens: string[]) => void;
17
18
  has: (token: string) => boolean;
19
+ push: (tokenString: string, signal: import("@angular/core").Signal<unknown>) => void;
20
+ pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
18
21
  };
19
22
  ngAfterViewInit(): void;
20
23
  enter(config?: {
@@ -0,0 +1 @@
1
+ export declare const createComponentId: (prefix: string) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const hasCookie: (name: string) => boolean;
2
2
  export declare const getCookie: (name: string) => string | null | undefined;
3
- export declare const setCookie: (name: string, data: string, expiresInDays?: number, domain?: string | null, path?: string) => void;
3
+ export declare const setCookie: (name: string, data: string, expiresInDays?: number, domain?: string | null, path?: string, sameSite?: 'strict' | 'none' | 'lax') => void;
4
4
  export declare const deleteCookie: (name: string, path?: string, domain?: string | null) => void;
5
5
  export declare const getDomain: () => string | null;
@@ -3,6 +3,7 @@ export * from './angular.utils';
3
3
  export * from './animation.utils';
4
4
  export * from './clamp.util';
5
5
  export * from './clone.util';
6
+ export * from './component-id.utils';
6
7
  export * from './cookie.util';
7
8
  export * from './destroy.utils';
8
9
  export * from './equal.util';
@@ -1,3 +1,4 @@
1
+ import { TrackByFunction } from '@angular/core';
1
2
  import { Observable } from 'rxjs';
2
3
  import { TypedQueryList } from '../types';
3
4
  export type SelectionModelTypes = string | number | Record<string, unknown> | unknown;
@@ -61,6 +62,7 @@ export declare class SelectionModel<T extends SelectionModelTypes = unknown> {
61
62
  setAllowMultiple(allowMultiple: boolean): this;
62
63
  setFilter(filter: string | null): void;
63
64
  reset(): void;
65
+ trackByOptionKey: TrackByFunction<T>;
64
66
  getOptionByValue$(value: unknown): Observable<T | undefined>;
65
67
  getOptionByLabel$(label: string): Observable<T | undefined>;
66
68
  getOptionByKey$(key: string): Observable<T | undefined>;
@@ -20,32 +20,53 @@ export declare const buildSignalEffects: <T extends Record<string, Signal<unknow
20
20
  }) => void;
21
21
  }) => {
22
22
  remove: (...tokens: string[]) => void;
23
+ removeMany: (tokens: string[]) => void;
23
24
  has: (token: string) => boolean;
25
+ push: (tokenString: string, signal: Signal<unknown>) => void;
26
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
24
27
  };
25
28
  export declare const signalIsRendered: () => Signal<boolean>;
26
29
  export declare const signalClasses: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, classMap: T) => {
27
30
  remove: (...tokens: string[]) => void;
31
+ removeMany: (tokens: string[]) => void;
28
32
  has: (token: string) => boolean;
33
+ push: (tokenString: string, signal: Signal<unknown>) => void;
34
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
29
35
  };
30
36
  export declare const signalHostClasses: <T extends Record<string, Signal<unknown>>>(classMap: T) => {
31
37
  remove: (...tokens: string[]) => void;
38
+ removeMany: (tokens: string[]) => void;
32
39
  has: (token: string) => boolean;
40
+ push: (tokenString: string, signal: Signal<unknown>) => void;
41
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
33
42
  };
34
43
  export declare const signalAttributes: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, attributeMap: T) => {
35
44
  remove: (...tokens: string[]) => void;
45
+ removeMany: (tokens: string[]) => void;
36
46
  has: (token: string) => boolean;
47
+ push: (tokenString: string, signal: Signal<unknown>) => void;
48
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
37
49
  };
38
50
  export declare const signalHostAttributes: <T extends Record<string, Signal<unknown>>>(attributeMap: T) => {
39
51
  remove: (...tokens: string[]) => void;
52
+ removeMany: (tokens: string[]) => void;
40
53
  has: (token: string) => boolean;
54
+ push: (tokenString: string, signal: Signal<unknown>) => void;
55
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
41
56
  };
42
57
  export declare const signalStyles: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, styleMap: T) => {
43
58
  remove: (...tokens: string[]) => void;
59
+ removeMany: (tokens: string[]) => void;
44
60
  has: (token: string) => boolean;
61
+ push: (tokenString: string, signal: Signal<unknown>) => void;
62
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
45
63
  };
46
64
  export declare const signalHostStyles: <T extends Record<string, Signal<unknown>>>(styleMap: T) => {
47
65
  remove: (...tokens: string[]) => void;
66
+ removeMany: (tokens: string[]) => void;
48
67
  has: (token: string) => boolean;
68
+ push: (tokenString: string, signal: Signal<unknown>) => void;
69
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
49
70
  };
50
71
  export interface LogicalSize {
51
72
  inlineSize: number;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "4.4.1",
3
+ "version": "4.5.0",
4
4
  "peerDependencies": {
5
- "@angular/cdk": "17.0.4",
6
- "@angular/common": "17.0.8",
7
- "@angular/core": "17.0.8",
8
- "@angular/forms": "17.0.8",
9
- "@angular/platform-browser": "17.0.8",
10
- "@angular/router": "17.0.8",
5
+ "@angular/cdk": "17.1.0",
6
+ "@angular/common": "17.1.0",
7
+ "@angular/core": "17.1.0",
8
+ "@angular/forms": "17.1.0",
9
+ "@angular/platform-browser": "17.1.0",
10
+ "@angular/router": "17.1.0",
11
11
  "@ethlete/theming": "^2.3.1",
12
12
  "@ethlete/types": "^1.6.2",
13
13
  "@floating-ui/dom": "^1.5.3",