@fundamental-ngx/cdk 0.45.1 → 0.46.0-rc.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/cdk",
3
- "version": "0.45.1",
3
+ "version": "0.46.0-rc.1",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "description": "Fundamental Library for Angular - CDK",
6
6
  "license": "Apache-2.0",
@@ -23,13 +23,13 @@
23
23
  "rxjs": "^7.8.0"
24
24
  },
25
25
  "dependencies": {
26
- "@fundamental-ngx/i18n": "0.45.1",
27
- "@fundamental-styles/cx": "0.28.3",
26
+ "@fundamental-ngx/i18n": "0.46.0-rc.1",
27
+ "@fundamental-styles/cx": "0.30.0-rc.35",
28
28
  "@sap-theming/theming-base-content": "^11.6.0",
29
29
  "compare-versions": "^6.0.0",
30
30
  "fast-deep-equal": "3.1.3",
31
31
  "focus-trap": "^7.1.0",
32
- "fundamental-styles": "0.28.3",
32
+ "fundamental-styles": "0.30.2-rc.6",
33
33
  "lodash-es": "^4.17.0",
34
34
  "tslib": "^2.0.0"
35
35
  },
@@ -1,24 +1,36 @@
1
- import { ElementRef, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { ComponentType, Portal } from '@angular/cdk/portal';
1
+ import { AfterViewInit, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, TemplateRef } from '@angular/core';
2
+ import { CdkPortalOutlet, ComponentType } from '@angular/cdk/portal';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * A component that can be used to attach a portal to a DOM element, without explicitly creating portal instances on place.
6
6
  * This is useful when you have a list of the components or templates, or HTMLElmets, and you want to attach them to the DOM
7
7
  * dynamically in a loop.
8
8
  */
9
- export declare class DynamicPortalComponent implements OnChanges {
9
+ export declare class DynamicPortalComponent implements AfterViewInit {
10
10
  /** The DOM element to attach */
11
- domElement: HTMLElement | ElementRef<HTMLElement>;
11
+ set domElement(value: HTMLElement | ElementRef<HTMLElement> | string);
12
12
  /** The component to attach */
13
- component: ComponentType<any>;
13
+ set component(value: ComponentType<any>);
14
14
  /** The template to attach */
15
- template: TemplateRef<any>;
16
- /** Portal associated with the Portal outlet. */
17
- portal?: Portal<any>;
15
+ set template(value: TemplateRef<any>);
16
+ /** The Content which should be attached and can be any of the items */
17
+ set auto(value: DynamicPortalComponent['domElement' | 'component' | 'template']);
18
+ /** Emits when the portal is attached */
19
+ attached: EventEmitter<Element | EmbeddedViewRef<any> | ComponentRef<any>>;
20
+ /** @hidden */
21
+ portalOutlet?: CdkPortalOutlet;
22
+ /** @hidden */
23
+ private portalContent$;
24
+ /** @hidden */
25
+ private readonly _destroyRef;
18
26
  /** @hidden */
19
27
  private viewContainerRef;
20
28
  /** @hidden */
21
- ngOnChanges(changes: SimpleChanges): void;
29
+ private renderer;
30
+ /** @hidden */
31
+ private elementRef;
32
+ /** @hidden */
33
+ ngAfterViewInit(): void;
22
34
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPortalComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicPortalComponent, "fdk-dynamic-portal", never, { "domElement": { "alias": "domElement"; "required": false; }; "component": { "alias": "component"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never, false>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicPortalComponent, "fdk-dynamic-portal", never, { "domElement": { "alias": "domElement"; "required": false; }; "component": { "alias": "component"; "required": false; }; "template": { "alias": "template"; "required": false; }; "auto": { "alias": "auto"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never, false>;
24
36
  }
@@ -19,14 +19,14 @@ export declare class FocusableItemDirective implements FocusableItem {
19
19
  cellFocusedEventAnnouncer: CellFocusedEventAnnouncer;
20
20
  /** Event emitted when the cell receives focus, not being emitted when focus moves between item's children. */
21
21
  readonly cellFocused: EventEmitter<FocusableItemPosition>;
22
+ /** Element reference. */
23
+ readonly elementRef: ElementRef<HTMLElement>;
22
24
  /** @hidden */
23
25
  readonly keydown: Subject<KeyboardEvent>;
24
26
  /** @hidden */
25
27
  _position: FocusableItemPosition;
26
28
  /** @hidden */
27
29
  get _tabindex(): number;
28
- /** Element reference. */
29
- readonly elementRef: ElementRef<HTMLElement>;
30
30
  /** @hidden */
31
31
  protected readonly _destroyRef: DestroyRef;
32
32
  /** @hidden */
Binary file