@odx/angular 1.0.0-rc.6 → 1.0.0-rc.7

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 (193) hide show
  1. package/cdk/connected-overlay/README.md +3 -0
  2. package/cdk/connected-overlay/index.d.ts +3 -0
  3. package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +28 -0
  4. package/cdk/connected-overlay/lib/connected-overlay.service.d.ts +10 -0
  5. package/cdk/connected-overlay/lib/helpers/compute-overlay-position.d.ts +3 -0
  6. package/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.d.ts +2 -0
  7. package/cdk/connected-overlay/lib/helpers/get-overlay-side.d.ts +2 -0
  8. package/cdk/connected-overlay/lib/helpers/index.d.ts +3 -0
  9. package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +23 -0
  10. package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +12 -0
  11. package/cdk/connected-overlay/lib/models/index.d.ts +2 -0
  12. package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +1 -1
  13. package/components/circular-progress/lib/circular-progress.component.d.ts +1 -0
  14. package/components/dropdown/README.md +3 -0
  15. package/components/dropdown/index.d.ts +3 -0
  16. package/components/dropdown/lib/dropdown.component.d.ts +11 -0
  17. package/components/dropdown/lib/dropdown.directive.d.ts +32 -0
  18. package/components/dropdown/lib/dropdown.module.d.ts +8 -0
  19. package/components/dropdown/lib/models/dropdown-options.d.ts +3 -0
  20. package/components/dropdown/lib/models/index.d.ts +1 -0
  21. package/components/inline-message/README.md +3 -0
  22. package/components/inline-message/index.d.ts +2 -0
  23. package/components/inline-message/lib/inline-message.component.d.ts +9 -0
  24. package/components/inline-message/lib/models/inline-message-variant.d.ts +7 -0
  25. package/components/loading-spinner/lib/loading-spinner.component.d.ts +2 -2
  26. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +6 -7
  27. package/components/select/README.md +3 -0
  28. package/components/select/index.d.ts +7 -0
  29. package/components/select/lib/abstract/index.d.ts +2 -0
  30. package/components/select/lib/abstract/select-control-option.d.ts +7 -0
  31. package/components/select/lib/abstract/select-control.d.ts +11 -0
  32. package/components/select/lib/components/index.d.ts +1 -0
  33. package/components/select/lib/components/option/option.component.d.ts +22 -0
  34. package/components/select/lib/directives/index.d.ts +1 -0
  35. package/components/select/lib/directives/select-search-field.directive.d.ts +13 -0
  36. package/components/select/lib/pipes/index.d.ts +1 -0
  37. package/components/select/lib/pipes/select-search-filter.pipe.d.ts +13 -0
  38. package/components/select/lib/select.component.d.ts +50 -0
  39. package/components/select/lib/select.module.d.ts +11 -0
  40. package/components/select/lib/select.tokens.d.ts +3 -0
  41. package/components/spinbox/README.md +3 -0
  42. package/components/spinbox/index.d.ts +1 -0
  43. package/components/spinbox/lib/spinbox.component.d.ts +25 -0
  44. package/components/tooltip/README.md +3 -0
  45. package/components/tooltip/index.d.ts +3 -0
  46. package/components/tooltip/lib/helpers/index.d.ts +1 -0
  47. package/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.d.ts +2 -0
  48. package/components/tooltip/lib/models/index.d.ts +3 -0
  49. package/components/tooltip/lib/models/tooltip-options.d.ts +10 -0
  50. package/components/tooltip/lib/models/tooltip-size.d.ts +7 -0
  51. package/components/tooltip/lib/models/tooltip-trigger.d.ts +1 -0
  52. package/components/tooltip/lib/tooltip.component.d.ts +12 -0
  53. package/components/tooltip/lib/tooltip.directive.d.ts +33 -0
  54. package/esm2020/cdk/connected-overlay/index.mjs +4 -0
  55. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +112 -0
  56. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +25 -0
  57. package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +57 -0
  58. package/esm2020/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.mjs +13 -0
  59. package/esm2020/cdk/connected-overlay/lib/helpers/get-overlay-side.mjs +4 -0
  60. package/esm2020/cdk/connected-overlay/lib/helpers/index.mjs +4 -0
  61. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +10 -0
  62. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +15 -0
  63. package/esm2020/cdk/connected-overlay/lib/models/index.mjs +3 -0
  64. package/esm2020/cdk/connected-overlay/odx-angular-cdk-connected-overlay.mjs +5 -0
  65. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +5 -3
  66. package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +4 -2
  67. package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +1 -1
  68. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +3 -3
  69. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +11 -4
  70. package/esm2020/components/dropdown/index.mjs +4 -0
  71. package/esm2020/components/dropdown/lib/dropdown.component.mjs +31 -0
  72. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +123 -0
  73. package/esm2020/components/dropdown/lib/dropdown.module.mjs +18 -0
  74. package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +7 -0
  75. package/esm2020/components/dropdown/lib/models/index.mjs +2 -0
  76. package/esm2020/components/dropdown/odx-angular-components-dropdown.mjs +5 -0
  77. package/esm2020/components/inline-message/index.mjs +3 -0
  78. package/esm2020/components/inline-message/lib/inline-message.component.mjs +43 -0
  79. package/esm2020/components/inline-message/lib/models/inline-message-variant.mjs +7 -0
  80. package/esm2020/components/inline-message/odx-angular-components-inline-message.mjs +5 -0
  81. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +7 -7
  82. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +28 -24
  83. package/esm2020/components/main-menu/lib/main-menu.component.mjs +3 -3
  84. package/esm2020/components/select/index.mjs +8 -0
  85. package/esm2020/components/select/lib/abstract/index.mjs +3 -0
  86. package/esm2020/components/select/lib/abstract/select-control-option.mjs +2 -0
  87. package/esm2020/components/select/lib/abstract/select-control.mjs +2 -0
  88. package/esm2020/components/select/lib/components/index.mjs +2 -0
  89. package/esm2020/components/select/lib/components/option/option.component.mjs +78 -0
  90. package/esm2020/components/select/lib/directives/index.mjs +2 -0
  91. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +47 -0
  92. package/esm2020/components/select/lib/pipes/index.mjs +2 -0
  93. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +51 -0
  94. package/esm2020/components/select/lib/select.component.mjs +190 -0
  95. package/esm2020/components/select/lib/select.module.mjs +21 -0
  96. package/esm2020/components/select/lib/select.tokens.mjs +3 -0
  97. package/esm2020/components/select/odx-angular-components-select.mjs +5 -0
  98. package/esm2020/components/spinbox/index.mjs +2 -0
  99. package/esm2020/components/spinbox/lib/spinbox.component.mjs +91 -0
  100. package/esm2020/components/spinbox/odx-angular-components-spinbox.mjs +5 -0
  101. package/esm2020/components/tooltip/index.mjs +4 -0
  102. package/esm2020/components/tooltip/lib/helpers/index.mjs +2 -0
  103. package/esm2020/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.mjs +9 -0
  104. package/esm2020/components/tooltip/lib/models/index.mjs +4 -0
  105. package/esm2020/components/tooltip/lib/models/tooltip-options.mjs +10 -0
  106. package/esm2020/components/tooltip/lib/models/tooltip-size.mjs +7 -0
  107. package/esm2020/components/tooltip/lib/models/tooltip-trigger.mjs +2 -0
  108. package/esm2020/components/tooltip/lib/tooltip.component.mjs +39 -0
  109. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +132 -0
  110. package/esm2020/components/tooltip/odx-angular-components-tooltip.mjs +5 -0
  111. package/esm2020/index.mjs +2 -1
  112. package/esm2020/lib/tokens/identity-matcher.mjs +7 -0
  113. package/esm2020/lib/tokens/index.mjs +4 -0
  114. package/esm2020/lib/tokens/string-search-handler.mjs +9 -0
  115. package/esm2020/lib/tokens/stringify.mjs +8 -0
  116. package/esm2020/rxjs/index.mjs +2 -1
  117. package/esm2020/rxjs/lib/delay-until.mjs +5 -0
  118. package/esm2020/utils/lib/decorators/index.mjs +2 -1
  119. package/esm2020/utils/lib/decorators/pure.mjs +37 -0
  120. package/esm2020/utils/lib/helpers/defer-fn.mjs +4 -0
  121. package/esm2020/utils/lib/helpers/event-manager.mjs +30 -0
  122. package/esm2020/utils/lib/helpers/index.mjs +3 -1
  123. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +234 -0
  124. package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  125. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +6 -3
  126. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  127. package/fesm2015/odx-angular-components-accordion.mjs +2 -2
  128. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  129. package/fesm2015/odx-angular-components-circular-progress.mjs +10 -3
  130. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  131. package/fesm2015/odx-angular-components-dropdown.mjs +168 -0
  132. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -0
  133. package/fesm2015/odx-angular-components-inline-message.mjs +55 -0
  134. package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -0
  135. package/fesm2015/odx-angular-components-loading-spinner.mjs +75 -85
  136. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
  137. package/fesm2015/odx-angular-components-main-menu.mjs +2 -2
  138. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  139. package/fesm2015/odx-angular-components-select.mjs +375 -0
  140. package/fesm2015/odx-angular-components-select.mjs.map +1 -0
  141. package/fesm2015/odx-angular-components-spinbox.mjs +100 -0
  142. package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -0
  143. package/fesm2015/odx-angular-components-tooltip.mjs +187 -0
  144. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -0
  145. package/fesm2015/odx-angular-rxjs.mjs +6 -2
  146. package/fesm2015/odx-angular-rxjs.mjs.map +1 -1
  147. package/fesm2015/odx-angular-utils.mjs +72 -2
  148. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  149. package/fesm2015/odx-angular.mjs +21 -1
  150. package/fesm2015/odx-angular.mjs.map +1 -1
  151. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +230 -0
  152. package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  153. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +6 -3
  154. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  155. package/fesm2020/odx-angular-components-accordion.mjs +2 -2
  156. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  157. package/fesm2020/odx-angular-components-circular-progress.mjs +10 -3
  158. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  159. package/fesm2020/odx-angular-components-dropdown.mjs +172 -0
  160. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -0
  161. package/fesm2020/odx-angular-components-inline-message.mjs +55 -0
  162. package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -0
  163. package/fesm2020/odx-angular-components-loading-spinner.mjs +74 -84
  164. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
  165. package/fesm2020/odx-angular-components-main-menu.mjs +2 -2
  166. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  167. package/fesm2020/odx-angular-components-select.mjs +362 -0
  168. package/fesm2020/odx-angular-components-select.mjs.map +1 -0
  169. package/fesm2020/odx-angular-components-spinbox.mjs +97 -0
  170. package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -0
  171. package/fesm2020/odx-angular-components-tooltip.mjs +192 -0
  172. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -0
  173. package/fesm2020/odx-angular-rxjs.mjs +6 -2
  174. package/fesm2020/odx-angular-rxjs.mjs.map +1 -1
  175. package/fesm2020/odx-angular-utils.mjs +71 -2
  176. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  177. package/fesm2020/odx-angular.mjs +21 -1
  178. package/fesm2020/odx-angular.mjs.map +1 -1
  179. package/index.d.ts +1 -0
  180. package/lib/tokens/identity-matcher.d.ts +3 -0
  181. package/lib/tokens/index.d.ts +3 -0
  182. package/lib/tokens/string-search-handler.d.ts +3 -0
  183. package/lib/tokens/stringify.d.ts +3 -0
  184. package/package.json +50 -2
  185. package/rxjs/index.d.ts +1 -0
  186. package/rxjs/lib/delay-until.d.ts +2 -0
  187. package/utils/lib/decorators/index.d.ts +1 -0
  188. package/utils/lib/decorators/pure.d.ts +1 -0
  189. package/utils/lib/helpers/defer-fn.d.ts +1 -0
  190. package/utils/lib/helpers/event-manager.d.ts +12 -0
  191. package/utils/lib/helpers/index.d.ts +2 -0
  192. package/components/loading-spinner/lib/loading-spinner.service.d.ts +0 -9
  193. package/esm2020/components/loading-spinner/lib/loading-spinner.service.mjs +0 -17
@@ -0,0 +1,3 @@
1
+ # @odx/angular/cdk/connected-overlay
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/cdk/connected-overlay`.
@@ -0,0 +1,3 @@
1
+ export * from './lib/connected-overlay.component';
2
+ export * from './lib/connected-overlay.service';
3
+ export * from './lib/models';
@@ -0,0 +1,28 @@
1
+ import { AnimationEvent } from '@angular/animations';
2
+ import { ElementRef, OnChanges, OnDestroy } from '@angular/core';
3
+ import { Side, VirtualElement } from '@floating-ui/dom';
4
+ import { NgChanges } from '@odx/angular/utils';
5
+ import { Subject } from 'rxjs';
6
+ import { ConnectedOverlayOptions } from './models';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ConnectedOverlayComponent implements OnChanges, OnDestroy {
9
+ private readonly renderer;
10
+ private readonly zone;
11
+ private positionUpdater;
12
+ protected readonly injector: import("@angular/core").Injector;
13
+ protected overlaySide?: Side;
14
+ protected contentElement: ElementRef<HTMLElement>;
15
+ protected arrowElement: ElementRef<HTMLElement>;
16
+ readonly element: ElementRef<HTMLElement>;
17
+ referenceElement: VirtualElement;
18
+ options: ConnectedOverlayOptions;
19
+ closed: Subject<void>;
20
+ ngOnChanges(changes: NgChanges<ConnectedOverlayComponent>): void;
21
+ ngOnDestroy(): void;
22
+ protected onAnimationStart({ fromState }: AnimationEvent): void;
23
+ protected onAnimationDone({ fromState }: AnimationEvent): void;
24
+ private startPositionUpdater;
25
+ private stopPositionUpdater;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConnectedOverlayComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConnectedOverlayComponent, "odx-connected-overlay", never, { "referenceElement": "referenceElement"; "options": "options"; }, { "closed": "closed"; }, never, never, true>;
28
+ }
@@ -0,0 +1,10 @@
1
+ import { VirtualElement } from '@floating-ui/dom';
2
+ import { DynamicViewRenderingOptions } from '@odx/angular/cdk/dynamic-view';
3
+ import { ConnectedOverlayOptions, ConnectedOverlayRef } from './models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ConnectedOverlayService {
6
+ private readonly dynamicViewService;
7
+ createOverlay(referenceElement: VirtualElement, options?: Partial<ConnectedOverlayOptions>, renderingOptions?: Partial<DynamicViewRenderingOptions>): ConnectedOverlayRef;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConnectedOverlayService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConnectedOverlayService>;
10
+ }
@@ -0,0 +1,3 @@
1
+ import { ComputePositionReturn, VirtualElement } from '@floating-ui/dom';
2
+ import { ConnectedOverlayOptions } from '../models';
3
+ export declare function computeOverlayPosition(referenceElement: VirtualElement, overlayElement: HTMLElement, contentElement: HTMLElement, arrowElement: HTMLElement, options: ConnectedOverlayOptions): Promise<ComputePositionReturn>;
@@ -0,0 +1,2 @@
1
+ import { Side } from '@floating-ui/dom';
2
+ export declare function getOppositeOverlaySide(overlaySide: Side): Side;
@@ -0,0 +1,2 @@
1
+ import { Placement, Side } from '@floating-ui/dom';
2
+ export declare function getOverlaySide(position: Placement): Side;
@@ -0,0 +1,3 @@
1
+ export * from './compute-overlay-position';
2
+ export * from './get-opposite-overlay-side';
3
+ export * from './get-overlay-side';
@@ -0,0 +1,23 @@
1
+ import { Placement, Strategy } from '@floating-ui/dom';
2
+ import { DynamicContent } from '@odx/angular/cdk/dynamic-view';
3
+ export interface ConnectedOverlayOptions {
4
+ content?: DynamicContent | null;
5
+ context?: Record<string, unknown>;
6
+ containerClass?: string | null;
7
+ hiddenClass: string | null;
8
+ enableFallback: boolean;
9
+ matchReferenceWidth: boolean;
10
+ minHeight?: number | null;
11
+ offset: number;
12
+ outerPadding: number;
13
+ position: Placement;
14
+ strategy: Strategy;
15
+ showArrow?: boolean;
16
+ hooks?: {
17
+ beforeOpen?: () => void;
18
+ afterOpen?: () => void;
19
+ beforeClose?: () => void;
20
+ afterClose?: () => void;
21
+ };
22
+ }
23
+ export declare const DefaultConnectedOverlayOptions: ConnectedOverlayOptions;
@@ -0,0 +1,12 @@
1
+ import { DynamicViewRef } from '@odx/angular/cdk/dynamic-view';
2
+ import { Observable } from 'rxjs';
3
+ import { ConnectedOverlayComponent } from '../connected-overlay.component';
4
+ import { ConnectedOverlayOptions } from './connected-overlay-options';
5
+ export declare class ConnectedOverlayRef {
6
+ private readonly dynamicViewRef;
7
+ readonly element: Element;
8
+ readonly onClose$: Observable<void>;
9
+ constructor(dynamicViewRef: DynamicViewRef<typeof ConnectedOverlayComponent>);
10
+ update(options: Partial<ConnectedOverlayOptions>): void;
11
+ close(): void;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './connected-overlay-options';
2
+ export * from './connected-overlay-ref';
@@ -3,7 +3,7 @@ import { DynamicContent, GetDynamicViewContext } from '../facade';
3
3
  export interface DynamicViewRenderingOptions {
4
4
  injector: Injector;
5
5
  providers?: StaticProvider[];
6
- host?: ViewContainerRef | Element;
6
+ host?: ViewContainerRef | Element | null;
7
7
  }
8
8
  export interface DynamicViewOptions<T extends DynamicContent> extends DynamicViewRenderingOptions {
9
9
  context?: GetDynamicViewContext<T>;
@@ -7,6 +7,7 @@ export declare class CircularProgressComponent implements OnChanges, AfterViewIn
7
7
  static ngAcceptInputType_stroke: NumberInput;
8
8
  static ngAcceptInputType_value: NumberInput;
9
9
  private readonly changeDetector;
10
+ private readonly takeUntilDestroyed;
10
11
  private _value;
11
12
  protected readonly viewPortSize = 100;
12
13
  protected radius: number;
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/dropdown
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/dropdown`.
@@ -0,0 +1,3 @@
1
+ export * from './lib/dropdown.directive';
2
+ export * from './lib/dropdown.module';
3
+ export * from './lib/models';
@@ -0,0 +1,11 @@
1
+ import { DynamicContent } from '@odx/angular/cdk/dynamic-view';
2
+ import { DropdownDirective } from './dropdown.directive';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DropdownComponent {
5
+ protected readonly host: DropdownDirective;
6
+ protected readonly injector: import("@angular/core").Injector;
7
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
8
+ content?: DynamicContent | null;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "odx-dropdown", never, { "content": "content"; }, {}, never, never, true>;
11
+ }
@@ -0,0 +1,32 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, EventEmitter, OnChanges } from '@angular/core';
3
+ import { DynamicContent } from '@odx/angular/cdk/dynamic-view';
4
+ import { NgChanges } from '@odx/angular/utils';
5
+ import { DropdownOptions } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DropdownDirective implements AfterViewInit, OnChanges {
8
+ static ngAcceptInputType_disabled: BooleanInput;
9
+ static ngAcceptInputType_loading: BooleanInput;
10
+ private readonly connectedOverlayService;
11
+ private readonly eventManager;
12
+ private readonly injector;
13
+ private overlayRef;
14
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
15
+ get isOpen(): boolean;
16
+ content?: DynamicContent | null;
17
+ disabled: boolean;
18
+ showLoader: boolean;
19
+ options?: Partial<DropdownOptions> | null;
20
+ referenceElement?: HTMLElement | null;
21
+ beforeOpen: EventEmitter<void>;
22
+ afterOpen: EventEmitter<void>;
23
+ beforeClose: EventEmitter<void>;
24
+ afterClose: EventEmitter<void>;
25
+ ngAfterViewInit(): void;
26
+ ngOnChanges(changes: NgChanges<DropdownDirective>): void;
27
+ open(event?: Event): void;
28
+ close(): void;
29
+ private createOverlayOptions;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[odxDropdown]", ["odxDropdown"], { "content": "odxDropdown"; "disabled": "odxDropdownDisabled"; "showLoader": "odxDropdownShowLoader"; "options": "odxDropdownOptions"; "referenceElement": "odxDropdownReferenceElement"; }, { "beforeOpen": "odxDropdownBeforeOpen"; "afterOpen": "odxDropdownAfterOpen"; "beforeClose": "odxDropdownBeforeClose"; "afterClose": "odxDropdownAfterClose"; }, never, never, true>;
32
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown.directive";
3
+ import * as i2 from "@odx/angular";
4
+ export declare class DropdownModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownModule, never, [typeof i1.DropdownDirective], [typeof i2.CoreModule, typeof i1.DropdownDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<DropdownModule>;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { ConnectedOverlayOptions } from '@odx/angular/cdk/connected-overlay';
2
+ export declare type DropdownOptions = Pick<ConnectedOverlayOptions, 'position' | 'enableFallback' | 'matchReferenceWidth' | 'minHeight'>;
3
+ export declare const DefaultDropdownOptions: DropdownOptions;
@@ -0,0 +1 @@
1
+ export * from './dropdown-options';
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/inline-message
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/inline-message`.
@@ -0,0 +1,2 @@
1
+ export * from './lib/inline-message.component';
2
+ export * from './lib/models/inline-message-variant';
@@ -0,0 +1,9 @@
1
+ import { InlineMessageVariant } from './models/inline-message-variant';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InlineMessageComponent {
4
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
5
+ variant?: InlineMessageVariant | null;
6
+ get icon(): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineMessageComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<InlineMessageComponent, "odx-inline-message", never, { "variant": "variant"; }, {}, never, ["*"], true>;
9
+ }
@@ -0,0 +1,7 @@
1
+ export declare type InlineMessageVariant = typeof InlineMessageVariant[keyof typeof InlineMessageVariant];
2
+ export declare const InlineMessageVariant: {
3
+ readonly DEFAULT: "default";
4
+ readonly WARNING: "warning";
5
+ readonly DANGER: "danger";
6
+ readonly SUCCESS: "success";
7
+ };
@@ -2,13 +2,13 @@ import { AnimationEvent } from '@angular/animations';
2
2
  import { OnInit } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LoadingSpinnerComponent implements OnInit {
5
- private readonly spinnerService;
5
+ private readonly host;
6
6
  private readonly windowRef;
7
7
  protected backgroundColor: string | null;
8
8
  readonly element: import("@angular/core").ElementRef<HTMLElement>;
9
9
  autoColor: boolean;
10
- animationFinished({ toState }: AnimationEvent): void;
11
10
  ngOnInit(): void;
11
+ protected animationFinished({ toState }: AnimationEvent): void;
12
12
  private resolveBackgroundColor;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerComponent, "odx-loading-spinner", never, { "autoColor": "autoColor"; }, {}, never, never, true>;
@@ -7,20 +7,19 @@ export declare class LoadingSpinnerDirective {
7
7
  private readonly dynamicViewService;
8
8
  private readonly hostElement;
9
9
  private readonly renderer;
10
- private readonly spinnerService;
11
10
  private readonly injector;
12
11
  private readonly windowRef;
13
- private parentMinHeight;
12
+ private parentMinHeight?;
14
13
  private viewRef;
15
14
  autoColor: boolean;
16
- set isLoading(value: boolean);
15
+ set isLoading(value: boolean | null | undefined);
16
+ get isLoading(): boolean;
17
17
  set minHeight(value: unknown);
18
- private setParent;
19
18
  private setParentHeight;
20
- private appendSpinner;
21
- private resetParentElement;
19
+ private createSpinner;
20
+ private removeSpinner;
21
+ resetParentStyles(): void;
22
22
  private hasStaticPosition;
23
- constructor();
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerDirective, never>;
25
24
  static ɵdir: i0.ɵɵDirectiveDeclaration<LoadingSpinnerDirective, "[odxLoadingSpinner]", never, { "autoColor": "odxLoadingSpinnerAutoColor"; "isLoading": "odxLoadingSpinner"; "minHeight": "odxLoadingSpinnerMinHeight"; }, {}, never, never, true>;
26
25
  }
@@ -0,0 +1,3 @@
1
+ # @odx/angular/select
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/select`.
@@ -0,0 +1,7 @@
1
+ export * from './lib/abstract';
2
+ export * from './lib/components';
3
+ export * from './lib/directives';
4
+ export * from './lib/pipes';
5
+ export * from './lib/select.component';
6
+ export * from './lib/select.module';
7
+ export * from './lib/select.tokens';
@@ -0,0 +1,2 @@
1
+ export * from './select-control';
2
+ export * from './select-control-option';
@@ -0,0 +1,7 @@
1
+ import { Highlightable } from '@angular/cdk/a11y';
2
+ import { ElementRef } from '@angular/core';
3
+ export interface SelectControlOption<T> extends Highlightable {
4
+ element: ElementRef<HTMLElement>;
5
+ disabled: boolean;
6
+ value: T | null;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Controller, StringifyFn } from '@odx/angular';
2
+ import { SelectSearchFieldDirective } from '../directives';
3
+ import { SelectControlOption } from './select-control-option';
4
+ export interface SelectControl<T = unknown> extends Controller {
5
+ isOpen: boolean;
6
+ selectOption(option?: SelectControlOption<T> | null): void;
7
+ isOptionSelected(option: SelectControlOption<T>): boolean;
8
+ scrollOptionIntoView(option: SelectControlOption<T>): void;
9
+ searchField?: SelectSearchFieldDirective;
10
+ stringify?: StringifyFn<T>;
11
+ }
@@ -0,0 +1 @@
1
+ export * from './option/option.component';
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { SelectControlOption } from '../../abstract';
3
+ import * as i0 from "@angular/core";
4
+ export declare class OptionComponent<T = unknown> implements OnInit, SelectControlOption<T> {
5
+ private readonly disabledController;
6
+ private readonly readonlyController;
7
+ private readonly takeUntilDestroyed;
8
+ protected readonly selectControl: import("../../abstract").SelectControl<unknown>;
9
+ protected isActive: boolean;
10
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
11
+ isSelected: boolean;
12
+ value: T | null;
13
+ get disabled(): boolean;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ getLabel(): string;
17
+ setActiveStyles(): void;
18
+ setInactiveStyles(): void;
19
+ protected select(event: Event): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent<any>, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent<any>, "odx-option", never, { "value": "value"; }, {}, never, ["*"], true>;
22
+ }
@@ -0,0 +1 @@
1
+ export * from './select-search-field.directive';
@@ -0,0 +1,13 @@
1
+ import { DynamicContent } from '@odx/angular/cdk/dynamic-view';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SelectSearchFieldDirective {
4
+ private readonly takeUntilDestroyed;
5
+ readonly element: import("@angular/core").ElementRef<HTMLInputElement>;
6
+ notFoundContent: DynamicContent | null;
7
+ valueChange$: import("rxjs").Observable<string>;
8
+ reset(): void;
9
+ focus(): void;
10
+ getValue(): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchFieldDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectSearchFieldDirective, "input[odxSelectSearchField]", never, { "notFoundContent": "odxSelectSearchField"; }, {}, never, never, true>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './select-search-filter.pipe';
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { StringSearchHandler } from '@odx/angular';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectSearchFilterPipe implements PipeTransform {
5
+ private readonly searchController;
6
+ private readonly stringify;
7
+ private readonly stringSearchHandler;
8
+ private get searchField();
9
+ transform<T>(items: T[] | null, searchHandler?: StringSearchHandler): T[] | null;
10
+ private filter;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchFilterPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SelectSearchFilterPipe, "odxSelectSearchFilter", true>;
13
+ }
@@ -0,0 +1,50 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
3
+ import { IdentityMatcher, StringifyFn } from '@odx/angular';
4
+ import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
5
+ import { DropdownDirective } from '@odx/angular/components/dropdown';
6
+ import { SelectControl, SelectControlOption } from './abstract';
7
+ import { OptionComponent } from './components';
8
+ import { SelectSearchFieldDirective } from './directives';
9
+ import * as i0 from "@angular/core";
10
+ export declare class SelectComponent<T = unknown> extends CustomFormControl<T | null> implements AfterViewInit, SelectControl<T> {
11
+ static ngAcceptInputType_isLoading: BooleanInput;
12
+ private keyManager?;
13
+ protected searchFieldEnabled: boolean;
14
+ protected smoothScrollEnabled: boolean;
15
+ protected selectedOption: OptionComponent<T> | null;
16
+ protected selectedOptionText: string | null;
17
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
18
+ protected get hasOptions(): boolean;
19
+ get isOpen(): boolean;
20
+ get selectedOptionContent(): TemplateRef<{
21
+ $implicit: T | null;
22
+ }> | string | null;
23
+ placeholder: string;
24
+ isLoading: boolean;
25
+ selectedOptionTemplate?: TemplateRef<{
26
+ $implicit: T;
27
+ }> | null;
28
+ stringify?: StringifyFn<T | null>;
29
+ identityMatcher: IdentityMatcher<T | null>;
30
+ change: EventEmitter<void>;
31
+ searchField?: SelectSearchFieldDirective;
32
+ protected options?: QueryList<OptionComponent<T>>;
33
+ protected dropdown?: DropdownDirective;
34
+ constructor();
35
+ ngAfterViewInit(): void;
36
+ registerOnChange(fn: (value: T | null) => void): void;
37
+ selectOption(option?: SelectControlOption<T> | null): void;
38
+ isOptionSelected(option: SelectControlOption<T>): boolean;
39
+ scrollOptionIntoView({ element }: SelectControlOption<T>): void;
40
+ protected openDropdown(event: KeyboardEvent): void;
41
+ protected activateSelectedOption(): void;
42
+ protected onDropdownOpen(): void;
43
+ protected onDropdownClose(): void;
44
+ protected onDropdownClosed(): void;
45
+ protected disableSmoothScroll(): void;
46
+ protected enableSmoothScroll(): void;
47
+ private updateSelectedOption;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent<any>, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "odx-select", never, { "placeholder": "placeholder"; "isLoading": "isLoading"; "selectedOptionTemplate": "selectedOptionTemplate"; "stringify": "stringify"; "identityMatcher": "identityMatcher"; }, { "change": "change"; }, ["searchField", "options"], ["[odxSelectSearchField]", "*"], true>;
50
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./select.component";
3
+ import * as i2 from "./directives/select-search-field.directive";
4
+ import * as i3 from "./pipes/select-search-filter.pipe";
5
+ import * as i4 from "./components/option/option.component";
6
+ import * as i5 from "@odx/angular";
7
+ export declare class SelectModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, never, [typeof i1.SelectComponent, typeof i2.SelectSearchFieldDirective, typeof i3.SelectSearchFilterPipe, typeof i4.OptionComponent], [typeof i5.CoreModule, typeof i1.SelectComponent, typeof i2.SelectSearchFieldDirective, typeof i3.SelectSearchFilterPipe, typeof i4.OptionComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
11
+ }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SelectControl } from './abstract';
3
+ export declare const SELECT_CONTROL: InjectionToken<SelectControl<unknown>>;
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/spinbox
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/spinbox`.
@@ -0,0 +1 @@
1
+ export * from './lib/spinbox.component';
@@ -0,0 +1,25 @@
1
+ import { NumberInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, ElementRef } from '@angular/core';
3
+ import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SpinboxComponent extends CustomFormControl<number> implements AfterViewInit {
6
+ static ngAcceptInputType_max: NumberInput;
7
+ static ngAcceptInputType_min: NumberInput;
8
+ static ngAcceptInputType_step: NumberInput;
9
+ readonly element: ElementRef<HTMLElement>;
10
+ private readonly takeUntilDestroyed;
11
+ private get inputElement();
12
+ protected decrementButton: ElementRef<HTMLButtonElement>;
13
+ protected incrementButton: ElementRef<HTMLButtonElement>;
14
+ max: number;
15
+ min: number;
16
+ step: number;
17
+ constructor();
18
+ ngAfterViewInit(): void;
19
+ protected maxSteps({ code }: KeyboardEvent): void;
20
+ protected checkValue(): void;
21
+ protected onInputChange(): void;
22
+ private registerPressHold;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpinboxComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpinboxComponent, "odx-spinbox", never, { "max": "max"; "min": "min"; "step": "step"; }, {}, never, never, true>;
25
+ }
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/tooltip
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/tooltip`.
@@ -0,0 +1,3 @@
1
+ export * from './lib/helpers';
2
+ export * from './lib/models';
3
+ export * from './lib/tooltip.directive';
@@ -0,0 +1 @@
1
+ export * from './resolve-tooltip-trigger-events';
@@ -0,0 +1,2 @@
1
+ import { TooltipTrigger } from '../models';
2
+ export declare function resolveTooltipTriggerEvents(trigger: TooltipTrigger): [string, string | null];
@@ -0,0 +1,3 @@
1
+ export * from './tooltip-options';
2
+ export * from './tooltip-size';
3
+ export * from './tooltip-trigger';
@@ -0,0 +1,10 @@
1
+ import { ConnectedOverlayOptions } from '@odx/angular/cdk/connected-overlay';
2
+ import { TooltipSize } from './tooltip-size';
3
+ import { TooltipTrigger } from './tooltip-trigger';
4
+ export interface TooltipOptions extends Pick<ConnectedOverlayOptions, 'position' | 'matchReferenceWidth'> {
5
+ trigger: TooltipTrigger;
6
+ delayIn: number;
7
+ delayOut: number;
8
+ size: TooltipSize;
9
+ }
10
+ export declare const DefaultTooltipOptions: TooltipOptions;
@@ -0,0 +1,7 @@
1
+ export declare type TooltipSize = typeof TooltipSize[keyof typeof TooltipSize];
2
+ export declare const TooltipSize: {
3
+ readonly AUTO: "auto";
4
+ readonly SMALL: "small";
5
+ readonly MEDIUM: "medium";
6
+ readonly LARGE: "large";
7
+ };
@@ -0,0 +1 @@
1
+ export declare type TooltipTrigger = 'hover' | 'click';
@@ -0,0 +1,12 @@
1
+ import { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';
2
+ import { TooltipSize } from './models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TooltipComponent {
5
+ protected readonly injector: import("@angular/core").Injector;
6
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
7
+ id: string | null;
8
+ content?: DynamicTextContent | null;
9
+ size: TooltipSize;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "odx-tooltip", never, { "id": "id"; "content": "content"; "size": "size"; }, {}, never, never, true>;
12
+ }
@@ -0,0 +1,33 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { OnChanges, OnInit } from '@angular/core';
3
+ import { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';
4
+ import { NgChanges } from '@odx/angular/utils';
5
+ import { TooltipOptions, TooltipSize } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TooltipDirective implements OnInit, OnChanges {
8
+ private static ID;
9
+ static ngAcceptInputType_disabled: BooleanInput;
10
+ static ngAcceptInputType_visible: BooleanInput;
11
+ private readonly eventManager;
12
+ private readonly connectedOverlayService;
13
+ private readonly showTrigger$$;
14
+ private readonly hideTrigger$$;
15
+ private connectedOverlayRef;
16
+ private tooltipOptions;
17
+ protected tooltipId: string | null;
18
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
19
+ content?: DynamicTextContent | null;
20
+ disabled: boolean;
21
+ set options(value: Partial<TooltipOptions> | null | undefined);
22
+ size?: TooltipSize | null;
23
+ visible: boolean;
24
+ get isOpen(): boolean;
25
+ constructor();
26
+ ngOnInit(): void;
27
+ ngOnChanges(changes: NgChanges<TooltipDirective>): void;
28
+ show(): void;
29
+ hide(): void;
30
+ private registerEvents;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[odxTooltip]", ["odxTooltip"], { "content": "odxTooltip"; "disabled": "odxTooltipDisabled"; "options": "odxTooltipOptions"; "size": "odxTooltipSize"; "visible": "odxTooltipVisible"; }, {}, never, never, true>;
33
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/connected-overlay.component';
2
+ export * from './lib/connected-overlay.service';
3
+ export * from './lib/models';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2Nvbm5lY3RlZC1vdmVybGF5L3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb25uZWN0ZWQtb3ZlcmxheS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29ubmVjdGVkLW92ZXJsYXkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2RlbHMnO1xuIl19