pdm-ui-kit 0.1.47 → 0.1.49

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.
@@ -0,0 +1,15 @@
1
+ import { PositionStrategy } from '@angular/cdk/overlay';
2
+ import { Overlay } from '@angular/cdk/overlay';
3
+ /**
4
+ * Creates a flexible position strategy that automatically adjusts
5
+ * to keep the overlay within the viewport edges.
6
+ *
7
+ * The strategy tries positions in this order:
8
+ * 1. Bottom-left (origin bottom edge, aligns to left)
9
+ * 2. Top-left (origin top edge, aligns to left)
10
+ * 3. Bottom-right (origin bottom edge, aligns to right)
11
+ * 4. Top-right (origin top edge, aligns to right)
12
+ *
13
+ * CDK Overlay will use the first position that fits within the viewport.
14
+ */
15
+ export declare function createFlexiblePositionStrategy(overlay: Overlay, triggerElement: HTMLElement, offset?: number): PositionStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdm-ui-kit",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "PDM UI Kit Angular components",
5
5
  "author": "Corelusa",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "@angular/core": ">=14.0.0 <16.0.0",
21
21
  "@angular/platform-browser": ">=14.0.0 <16.0.0",
22
22
  "lucide": ">=0.575.0",
23
- "@angular/cdk": "^14.2.7"
23
+ "@angular/cdk": ">=14.2.7 <16.0.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "date-fns": "^2.30.0",
package/public-api.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './lib/pdm-ui-kit.module';
2
2
  export * from './lib/overlay/pdm-overlay-options';
3
+ export * from './lib/overlay/create-flexible-position-strategy';
3
4
  export * from './lib/components/accordion/accordion.component';
4
5
  export * from './lib/components/alert/alert.component';
5
6
  export * from './lib/components/alert-dialog/alert-dialog.component';