@agorapulse/ui-components 13.2.3 → 13.2.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-components",
3
3
  "description": "Agorapulse UI Components Library",
4
- "version": "13.2.3",
4
+ "version": "13.2.4",
5
5
  "author": "Benoit Hediard",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,5 +11,6 @@ export declare const defaultOptions: {
11
11
  shadow: boolean;
12
12
  theme: string;
13
13
  offset: number;
14
+ offsets: {};
14
15
  maxWidth: string;
15
16
  };
@@ -6,6 +6,7 @@ export interface PopmenuOptions {
6
6
  'arrowPosition'?: boolean;
7
7
  'arrowOffset'?: number;
8
8
  'hasBackdrop'?: boolean;
9
+ 'backdropClass'?: string;
9
10
  'placement'?: string;
10
11
  'rounded'?: boolean;
11
12
  'delay'?: number;
@@ -14,7 +15,24 @@ export interface PopmenuOptions {
14
15
  'trigger'?: string;
15
16
  'shadow'?: boolean;
16
17
  'theme'?: string;
18
+ /**
19
+ * @deprecated use offsets (with an S at the end) instead
20
+ */
17
21
  'offset'?: number;
22
+ /**
23
+ * Allow to customize the position of the popmenu from the target
24
+ *
25
+ * Skidding: displaces the popper along the reference element.
26
+ *
27
+ * Distance: displaces the popper away from, or toward, the reference element in the direction of its placement.
28
+ * A positive number displaces it further away, while a negative number lets it overlap the reference.
29
+ *
30
+ * See popper.js documentation for more explanation about skidding and distance: https://popper.js.org/docs/v2/modifiers/offset/
31
+ */
32
+ 'offsets'?: {
33
+ distance?: number;
34
+ skidding?: number;
35
+ };
18
36
  'width'?: number;
19
37
  'max-width'?: number;
20
38
  'position'?: {
@@ -42,12 +42,15 @@ export declare class PopmenuComponent implements AfterViewInit {
42
42
  get element(): any;
43
43
  get elementPosition(): any;
44
44
  get hasBackdrop(): any;
45
+ get backdropClass(): any;
45
46
  get isThemeLight(): boolean;
46
47
  get options(): any;
47
48
  get placement(): any;
48
49
  get rounded(): any;
49
50
  get shadow(): any;
50
51
  get tooltipOffset(): number;
52
+ get offsetSkidding(): number;
53
+ get offsetDistance(): number;
51
54
  get value(): any;
52
55
  constructor(renderer: Renderer2, elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
53
56
  ngAfterViewInit(): void;
@@ -31,7 +31,12 @@ export declare class PopmenuDirective implements OnChanges, OnInit {
31
31
  arrowPosition: string;
32
32
  close: boolean;
33
33
  hasBackdrop: boolean;
34
+ backdropClass: string;
34
35
  offset: number;
36
+ offsets: {
37
+ distance?: number;
38
+ skidding?: number;
39
+ };
35
40
  placement: string;
36
41
  pointer: boolean;
37
42
  popMenuValue: TemplateRef<any>;
@@ -68,5 +73,5 @@ export declare class PopmenuDirective implements OnChanges, OnInit {
68
73
  showTooltipElem(): void;
69
74
  hideTooltipElem(): void;
70
75
  static ɵfac: i0.ɵɵFactoryDeclaration<PopmenuDirective, [{ optional: true; }, null, null, null, null, null]>;
71
- static ɵdir: i0.ɵɵDirectiveDeclaration<PopmenuDirective, "[apPopmenu]", never, { "apPopmenuBorder": "apPopmenuBorder"; "apPopmenuDisabled": "apPopmenuDisabled"; "apPopmenuBackground": "apPopmenuBackground"; "arrow": "arrow"; "arrowOffset": "arrowOffset"; "arrowPosition": "arrowPosition"; "close": "close"; "hasBackdrop": "hasBackdrop"; "offset": "offset"; "placement": "placement"; "pointer": "pointer"; "popMenuValue": "apPopmenu"; "position": "position"; "rounded": "rounded"; "shadow": "shadow"; "options": "options"; }, { "menuClosed": "menuClosed"; "menuOpened": "menuOpened"; }, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PopmenuDirective, "[apPopmenu]", never, { "apPopmenuBorder": "apPopmenuBorder"; "apPopmenuDisabled": "apPopmenuDisabled"; "apPopmenuBackground": "apPopmenuBackground"; "arrow": "arrow"; "arrowOffset": "arrowOffset"; "arrowPosition": "arrowPosition"; "close": "close"; "hasBackdrop": "hasBackdrop"; "backdropClass": "backdropClass"; "offset": "offset"; "offsets": "offsets"; "placement": "placement"; "pointer": "pointer"; "popMenuValue": "apPopmenu"; "position": "position"; "rounded": "rounded"; "shadow": "shadow"; "options": "options"; }, { "menuClosed": "menuClosed"; "menuOpened": "menuOpened"; }, never>;
72
77
  }
Binary file