@fundamental-ngx/cdk 0.56.5 → 0.57.0-rc.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 (242) hide show
  1. package/data-source/index.d.ts +236 -8
  2. package/fesm2022/fundamental-ngx-cdk-data-source.mjs +7 -7
  3. package/fesm2022/fundamental-ngx-cdk-data-source.mjs.map +1 -1
  4. package/fesm2022/fundamental-ngx-cdk-forms.mjs +10 -10
  5. package/fesm2022/fundamental-ngx-cdk-forms.mjs.map +1 -1
  6. package/fesm2022/fundamental-ngx-cdk-utils.mjs +302 -300
  7. package/fesm2022/fundamental-ngx-cdk-utils.mjs.map +1 -1
  8. package/fesm2022/fundamental-ngx-cdk.mjs +4 -4
  9. package/fesm2022/fundamental-ngx-cdk.mjs.map +1 -1
  10. package/forms/index.d.ts +396 -12
  11. package/index.d.ts +12 -1
  12. package/package.json +8 -8
  13. package/utils/index.d.ts +3253 -24
  14. package/data-source/base/abstract-data-provider.class.d.ts +0 -54
  15. package/data-source/base/base-data-source.class.d.ts +0 -64
  16. package/data-source/data-source.directive.d.ts +0 -46
  17. package/data-source/data-source.module.d.ts +0 -7
  18. package/data-source/helpers/apply-datasource-directive.d.ts +0 -6
  19. package/data-source/helpers/common.d.ts +0 -7
  20. package/data-source/helpers/is-datasource.d.ts +0 -5
  21. package/data-source/models/data-source-provider.d.ts +0 -22
  22. package/data-source/models/data-source.d.ts +0 -16
  23. package/data-source/models/index.d.ts +0 -3
  24. package/data-source/models/matching-strategy.d.ts +0 -10
  25. package/data-source/tokens.d.ts +0 -6
  26. package/forms/cva/cva-control.class.d.ts +0 -25
  27. package/forms/cva/cva.directive.d.ts +0 -181
  28. package/forms/forms.module.d.ts +0 -7
  29. package/forms/helpers/state.d.ts +0 -3
  30. package/forms/models/control-type.model.d.ts +0 -6
  31. package/forms/models/cva.d.ts +0 -4
  32. package/forms/models/form-error.d.ts +0 -36
  33. package/forms/models/form-field.d.ts +0 -88
  34. package/forms/models/form-state.d.ts +0 -2
  35. package/forms/models/select-item.d.ts +0 -47
  36. package/forms/tokens/form-field-control.token.d.ts +0 -3
  37. package/forms/tokens/form-field.token.d.ts +0 -3
  38. package/fundamental-ngx.module.d.ts +0 -9
  39. package/utils/abstract-fd-ngx-class.d.ts +0 -28
  40. package/utils/async-strategy/function-strategy.class.d.ts +0 -8
  41. package/utils/async-strategy/index.d.ts +0 -6
  42. package/utils/async-strategy/observable-strategy.class.d.ts +0 -9
  43. package/utils/async-strategy/promise-strategy.class.d.ts +0 -8
  44. package/utils/async-strategy/select-strategy.class.d.ts +0 -8
  45. package/utils/async-strategy/subscription-strategy.interface.d.ts +0 -10
  46. package/utils/async-strategy/value-strategy.class.d.ts +0 -8
  47. package/utils/coercion/array.d.ts +0 -2
  48. package/utils/components/dynamic-portal/dynamic-portal.component.d.ts +0 -36
  49. package/utils/components/index.d.ts +0 -1
  50. package/utils/consts/error-messages.d.ts +0 -3
  51. package/utils/consts/index.d.ts +0 -4
  52. package/utils/consts/overflow-priority-score.d.ts +0 -2
  53. package/utils/consts/unicode-letters.regex.d.ts +0 -7
  54. package/utils/consts/unicode-numbers.regex.d.ts +0 -6
  55. package/utils/datatypes/color-accent.datatype.d.ts +0 -3
  56. package/utils/datatypes/hash.datatype.d.ts +0 -3
  57. package/utils/datatypes/index.d.ts +0 -4
  58. package/utils/datatypes/object-nesting.types.d.ts +0 -4
  59. package/utils/datatypes/size.datatype.d.ts +0 -1
  60. package/utils/decorators/apply-css-class.decorator.d.ts +0 -10
  61. package/utils/decorators/apply-css-style.decorator.d.ts +0 -10
  62. package/utils/decorators/coerce-boolean.d.ts +0 -4
  63. package/utils/decorators/coerce-css-pixel.d.ts +0 -1
  64. package/utils/decorators/index.d.ts +0 -5
  65. package/utils/decorators/setter-alternator.d.ts +0 -4
  66. package/utils/deprecated-selector.class.d.ts +0 -18
  67. package/utils/directives/auto-complete/auto-complete.directive.d.ts +0 -59
  68. package/utils/directives/auto-complete/auto-complete.module.d.ts +0 -7
  69. package/utils/directives/breakpoints/breakpoint.directive.d.ts +0 -78
  70. package/utils/directives/breakpoints/responsive-breakpoints.d.ts +0 -10
  71. package/utils/directives/clicked/clicked-behavior.module.d.ts +0 -16
  72. package/utils/directives/clicked/clicked-event.plugin.d.ts +0 -26
  73. package/utils/directives/clicked/clicked.directive.d.ts +0 -17
  74. package/utils/directives/clicked/element-click.observable.d.ts +0 -8
  75. package/utils/directives/clicked/fdk-clicked-provider.service.d.ts +0 -23
  76. package/utils/directives/clicked/index.d.ts +0 -5
  77. package/utils/directives/clicked/provide-fdk-clicked.d.ts +0 -11
  78. package/utils/directives/disabled/default-disabled-view-modifier.d.ts +0 -9
  79. package/utils/directives/disabled/disabled-behavior.directive.d.ts +0 -35
  80. package/utils/directives/disabled/disabled-behavior.interface.d.ts +0 -7
  81. package/utils/directives/disabled/disabled-behavior.module.d.ts +0 -7
  82. package/utils/directives/disabled/disabled-view-modifier.interface.d.ts +0 -3
  83. package/utils/directives/disabled/disabled.observer.d.ts +0 -18
  84. package/utils/directives/disabled/fdk-disabled-provider.service.d.ts +0 -35
  85. package/utils/directives/disabled/fdk-disabled.token.d.ts +0 -3
  86. package/utils/directives/disabled/index.d.ts +0 -8
  87. package/utils/directives/disabled/set-disabled-state.d.ts +0 -4
  88. package/utils/directives/focus-key-manager/focus-key-manager-helpers.module.d.ts +0 -8
  89. package/utils/directives/focus-key-manager/focus-key-manager-item.directive.d.ts +0 -30
  90. package/utils/directives/focus-key-manager/focus-key-manager-list.directive.d.ts +0 -37
  91. package/utils/directives/focus-key-manager/focus-key-manager.tokens.d.ts +0 -3
  92. package/utils/directives/focus-key-manager/index.d.ts +0 -4
  93. package/utils/directives/focusable-grid/focusable-grid.directive.d.ts +0 -41
  94. package/utils/directives/focusable-grid/focusable-grid.module.d.ts +0 -8
  95. package/utils/directives/focusable-grid/focusable-grid.tokens.d.ts +0 -2
  96. package/utils/directives/focusable-grid/index.d.ts +0 -3
  97. package/utils/directives/focusable-item/focusable-item.directive.d.ts +0 -75
  98. package/utils/directives/focusable-item/focusable-item.module.d.ts +0 -7
  99. package/utils/directives/focusable-item/focusable-item.tokens.d.ts +0 -2
  100. package/utils/directives/focusable-item/focusable-list.position.d.ts +0 -4
  101. package/utils/directives/focusable-item/focusable.item.d.ts +0 -10
  102. package/utils/directives/focusable-item/focusable.observer.d.ts +0 -18
  103. package/utils/directives/focusable-item/get-item-element.d.ts +0 -7
  104. package/utils/directives/focusable-item/index.d.ts +0 -8
  105. package/utils/directives/focusable-item/indirect-focusable-item.directive.d.ts +0 -26
  106. package/utils/directives/focusable-item/is-element-focusable-by-default.d.ts +0 -4
  107. package/utils/directives/focusable-item/is-item-focusable.d.ts +0 -6
  108. package/utils/directives/focusable-list/focusable-list.directive.d.ts +0 -117
  109. package/utils/directives/focusable-list/focusable-list.module.d.ts +0 -8
  110. package/utils/directives/focusable-list/focusable-list.tokens.d.ts +0 -2
  111. package/utils/directives/focusable-list/index.d.ts +0 -5
  112. package/utils/directives/focusable-list/indirect-focusable-list.directive.d.ts +0 -25
  113. package/utils/directives/focusable-list/scroll.d.ts +0 -4
  114. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +0 -17
  115. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +0 -7
  116. package/utils/directives/ignore-click-on-selection/tokens.d.ts +0 -2
  117. package/utils/directives/index.d.ts +0 -34
  118. package/utils/directives/initial-focus/initial-focus.directive.d.ts +0 -43
  119. package/utils/directives/initial-focus/initial-focus.module.d.ts +0 -7
  120. package/utils/directives/intersection-spy/intersection-spy.directive.d.ts +0 -18
  121. package/utils/directives/line-clamp/line-clamp.directive.d.ts +0 -91
  122. package/utils/directives/line-clamp/line-clamp.module.d.ts +0 -7
  123. package/utils/directives/only-digits/only-digits.directive.d.ts +0 -39
  124. package/utils/directives/only-digits/only-digits.module.d.ts +0 -7
  125. package/utils/directives/overflow-list/overflow-list-item.directive.d.ts +0 -9
  126. package/utils/directives/overflow-list/overflow-list.directive.d.ts +0 -60
  127. package/utils/directives/overflow-list/overflow-list.module.d.ts +0 -8
  128. package/utils/directives/readonly/default-readonly-view-modifier.d.ts +0 -9
  129. package/utils/directives/readonly/fdk-readonly-provider.service.d.ts +0 -35
  130. package/utils/directives/readonly/fdk-readonly.token.d.ts +0 -2
  131. package/utils/directives/readonly/index.d.ts +0 -9
  132. package/utils/directives/readonly/readonly-behavior.directive.d.ts +0 -24
  133. package/utils/directives/readonly/readonly-behavior.interface.d.ts +0 -7
  134. package/utils/directives/readonly/readonly-behavior.module.d.ts +0 -7
  135. package/utils/directives/readonly/readonly-view-modifier.interface.d.ts +0 -3
  136. package/utils/directives/readonly/readonly.observer.d.ts +0 -18
  137. package/utils/directives/readonly/set-readonly-state.d.ts +0 -4
  138. package/utils/directives/repeat/repeat.directive.d.ts +0 -17
  139. package/utils/directives/repeat/repeat.module.d.ts +0 -7
  140. package/utils/directives/resize/resize-handle.directive.d.ts +0 -9
  141. package/utils/directives/resize/resize.directive.d.ts +0 -60
  142. package/utils/directives/resize/resize.module.d.ts +0 -8
  143. package/utils/directives/resize-observer/index.d.ts +0 -1
  144. package/utils/directives/resize-observer/resize-observer.directive.d.ts +0 -20
  145. package/utils/directives/selectable-list/index.d.ts +0 -7
  146. package/utils/directives/selectable-list/select-component-root.token.d.ts +0 -10
  147. package/utils/directives/selectable-list/selectable-item.directive.d.ts +0 -46
  148. package/utils/directives/selectable-list/selectable-item.token.d.ts +0 -11
  149. package/utils/directives/selectable-list/selectable-list.directive.d.ts +0 -34
  150. package/utils/directives/selectable-list/selectable-list.module.d.ts +0 -8
  151. package/utils/directives/selectable-list/selectable-list.tokens.d.ts +0 -2
  152. package/utils/directives/selectable-list/selection.service.d.ts +0 -64
  153. package/utils/directives/template/template.directive.d.ts +0 -13
  154. package/utils/directives/template/template.module.d.ts +0 -7
  155. package/utils/directives/truncate/truncate.directive.d.ts +0 -55
  156. package/utils/directives/truncate/truncate.module.d.ts +0 -7
  157. package/utils/drag-and-drop/dnd-item/dnd-item.directive.d.ts +0 -95
  158. package/utils/drag-and-drop/dnd-keyboard-group/dnd-keyboard-group.directive.d.ts +0 -32
  159. package/utils/drag-and-drop/dnd-keyboard-item/dnd-keyboard-item.directive.d.ts +0 -61
  160. package/utils/drag-and-drop/dnd-list/dnd-list.directive.d.ts +0 -113
  161. package/utils/drag-and-drop/dnd.interfaces.d.ts +0 -40
  162. package/utils/drag-and-drop/drag-and-drop.module.d.ts +0 -11
  163. package/utils/drag-and-drop/index.d.ts +0 -7
  164. package/utils/drag-and-drop/tokens.d.ts +0 -3
  165. package/utils/dynamic-component/dynamic-component-config.d.ts +0 -8
  166. package/utils/dynamic-component/dynamic-component-container.d.ts +0 -24
  167. package/utils/dynamic-component/dynamic-component-injector.d.ts +0 -13
  168. package/utils/dynamic-component/dynamic-component.service.d.ts +0 -46
  169. package/utils/dynamic-component/index.d.ts +0 -4
  170. package/utils/functions/consumer-provider-factory.d.ts +0 -5
  171. package/utils/functions/element-size.d.ts +0 -12
  172. package/utils/functions/get-document-font-size.d.ts +0 -2
  173. package/utils/functions/index.d.ts +0 -13
  174. package/utils/functions/intersection-observable.d.ts +0 -8
  175. package/utils/functions/is-compact-density.d.ts +0 -7
  176. package/utils/functions/is-odd.d.ts +0 -6
  177. package/utils/functions/key-util.d.ts +0 -16
  178. package/utils/functions/module-deprecations-provider.d.ts +0 -5
  179. package/utils/functions/parser-file-size.d.ts +0 -2
  180. package/utils/functions/random-color-accent.d.ts +0 -3
  181. package/utils/functions/resize-observable.d.ts +0 -8
  182. package/utils/functions/scroll.d.ts +0 -7
  183. package/utils/functions/uuidv4-generator.d.ts +0 -2
  184. package/utils/helpers/destroy-observable.d.ts +0 -7
  185. package/utils/helpers/dfs.d.ts +0 -18
  186. package/utils/helpers/get-native-element.d.ts +0 -13
  187. package/utils/helpers/index.d.ts +0 -5
  188. package/utils/helpers/range-selector.d.ts +0 -84
  189. package/utils/helpers/warn-once.d.ts +0 -2
  190. package/utils/interfaces/content-density.d.ts +0 -1
  191. package/utils/interfaces/css-class-builder.interface.d.ts +0 -13
  192. package/utils/interfaces/css-style-builder.interface.d.ts +0 -5
  193. package/utils/interfaces/has-element-ref.interface.d.ts +0 -5
  194. package/utils/interfaces/index.d.ts +0 -7
  195. package/utils/interfaces/keyboard-support-item.interface.d.ts +0 -6
  196. package/utils/interfaces/module-deprecation.interface.d.ts +0 -8
  197. package/utils/interfaces/require.interface.d.ts +0 -6
  198. package/utils/list-item/list-item-utils.d.ts +0 -7
  199. package/utils/models/nullable.d.ts +0 -6
  200. package/utils/pipes/async-or-sync.pipe.d.ts +0 -21
  201. package/utils/pipes/displayFn.pipe.d.ts +0 -8
  202. package/utils/pipes/filter-strings.pipe.d.ts +0 -16
  203. package/utils/pipes/index.d.ts +0 -11
  204. package/utils/pipes/is-compact.pipe.d.ts +0 -9
  205. package/utils/pipes/make-async.pipe.d.ts +0 -12
  206. package/utils/pipes/pipe.module.d.ts +0 -16
  207. package/utils/pipes/safe.pipe.d.ts +0 -12
  208. package/utils/pipes/search-highlight.pipe.d.ts +0 -8
  209. package/utils/pipes/truncate.pipe.d.ts +0 -8
  210. package/utils/pipes/two-digits.pipe.d.ts +0 -8
  211. package/utils/pipes/value-by-path.pipe.d.ts +0 -8
  212. package/utils/services/content-density.service.d.ts +0 -19
  213. package/utils/services/destroyed.service.d.ts +0 -15
  214. package/utils/services/focus-trap.service.d.ts +0 -43
  215. package/utils/services/index.d.ts +0 -9
  216. package/utils/services/keyboard-support/keyboard-support.service.d.ts +0 -32
  217. package/utils/services/local-storage.service.d.ts +0 -13
  218. package/utils/services/observers/attribute.observer.d.ts +0 -26
  219. package/utils/services/resize-observer.service.d.ts +0 -34
  220. package/utils/services/rtl.service.d.ts +0 -14
  221. package/utils/services/tabbable-element.service.d.ts +0 -12
  222. package/utils/toast/base-toast-animations.d.ts +0 -7
  223. package/utils/toast/base-toast-positions.d.ts +0 -129
  224. package/utils/toast/base-toast.service.d.ts +0 -148
  225. package/utils/toast/classes/action-dismissible/base-toast-action-dismissible-ref.d.ts +0 -23
  226. package/utils/toast/classes/base-toast-animated-container.component.d.ts +0 -41
  227. package/utils/toast/classes/base-toast-config.d.ts +0 -53
  228. package/utils/toast/classes/base-toast-container.component.d.ts +0 -55
  229. package/utils/toast/classes/base-toast-overlay-container.d.ts +0 -16
  230. package/utils/toast/classes/base-toast-ref.d.ts +0 -35
  231. package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-config.d.ts +0 -15
  232. package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-container.component.d.ts +0 -20
  233. package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-ref.d.ts +0 -20
  234. package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible.service.d.ts +0 -11
  235. package/utils/toast/index.d.ts +0 -15
  236. package/utils/toast/interfaces/toast-container-component.interface.d.ts +0 -14
  237. package/utils/toast/interfaces/toast-duration-dismissible-container-component.interface.d.ts +0 -6
  238. package/utils/toast/interfaces/toast-text-component.interface.d.ts +0 -5
  239. package/utils/tokens/module-deprecations.token.d.ts +0 -3
  240. package/utils/tokens/viewport-size.observable.d.ts +0 -8
  241. package/utils/typecheck.d.ts +0 -47
  242. package/utils/utils.module.d.ts +0 -25
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/cdk/drag-drop";
3
- import * as i2 from "./dnd-item/dnd-item.directive";
4
- import * as i3 from "./dnd-list/dnd-list.directive";
5
- import * as i4 from "./dnd-keyboard-group/dnd-keyboard-group.directive";
6
- import * as i5 from "./dnd-keyboard-item/dnd-keyboard-item.directive";
7
- export declare class DragAndDropModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<DragAndDropModule, never, [typeof i1.DragDropModule, typeof i2.DndItemDirective, typeof i3.DndListDirective, typeof i4.DndKeyboardGroupDirective, typeof i5.DndKeyboardItemDirective], [typeof i2.DndItemDirective, typeof i3.DndListDirective, typeof i4.DndKeyboardGroupDirective, typeof i5.DndKeyboardItemDirective]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<DragAndDropModule>;
11
- }
@@ -1,7 +0,0 @@
1
- export * from './dnd-item/dnd-item.directive';
2
- export * from './dnd-keyboard-group/dnd-keyboard-group.directive';
3
- export * from './dnd-keyboard-item/dnd-keyboard-item.directive';
4
- export * from './dnd-list/dnd-list.directive';
5
- export * from './dnd.interfaces';
6
- export * from './drag-and-drop.module';
7
- export * from './tokens';
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const DND_ITEM: InjectionToken<unknown>;
3
- export declare const DND_LIST: InjectionToken<unknown>;
@@ -1,8 +0,0 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- export interface DynamicComponentConfig {
3
- /** Data to pass along to the content through the dynamic component reference service. */
4
- data?: any;
5
- /** The container that the dynamic component is appended to. By default, it is appended to the body. */
6
- container?: HTMLElement | 'body';
7
- containerRef?: ViewContainerRef;
8
- }
@@ -1,24 +0,0 @@
1
- import { CdkPortalOutlet } from '@angular/cdk/portal';
2
- import { ComponentRef, ElementRef, EmbeddedViewRef, Injector, TemplateRef, Type } from '@angular/core';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { Nullable } from '../models/nullable';
5
- export declare abstract class DynamicComponentContainer<T = TemplateRef<any> | Type<any>> {
6
- elementRef: ElementRef;
7
- protected _injector: Injector;
8
- /** @hidden */
9
- abstract portalOutlet: CdkPortalOutlet;
10
- /** @hidden Load received content */
11
- protected abstract _loadContent(): void;
12
- /** @hidden */
13
- childContent: Nullable<T>;
14
- /** @hidden */
15
- protected _componentRef: ComponentRef<any> | EmbeddedViewRef<any>;
16
- /** @hidden */
17
- protected _contentLoaded$: BehaviorSubject<boolean>;
18
- /** @hidden */
19
- protected constructor(elementRef: ElementRef, _injector: Injector);
20
- /** @hidden Load received content as component */
21
- protected _createFromComponent(content: Type<any>): void;
22
- /** @hidden Load received content as embedded view */
23
- protected _createFromTemplate(content: TemplateRef<any>, context: any): void;
24
- }
@@ -1,13 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- export declare class DynamicComponentInjector implements Injector {
3
- private _parentInjector;
4
- private _additionalTokens;
5
- /** @hidden */
6
- constructor(_parentInjector: Injector, _additionalTokens: WeakMap<any, any>);
7
- /**
8
- *
9
- * @param token
10
- * @param notFoundValue
11
- */
12
- get(token: any, notFoundValue?: any): void;
13
- }
@@ -1,46 +0,0 @@
1
- import { ApplicationRef, Compiler, ComponentFactoryResolver, ComponentRef, Injector, NgModuleFactory, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
- import { DynamicComponentConfig } from './dynamic-component-config';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service used to dynamically generate components like dialogs/alerts/notifications
6
- */
7
- export declare class DynamicComponentService {
8
- private readonly _componentFactoryResolver;
9
- private readonly _applicationRef;
10
- private readonly _injector;
11
- private readonly _compiler;
12
- /** @hidden */
13
- constructor(_componentFactoryResolver: ComponentFactoryResolver, _applicationRef: ApplicationRef, _injector: Injector, _compiler: Compiler);
14
- /**
15
- * Function that creates dynamic component and injects services to allow communication between component and outside
16
- * @param content Type of the component content
17
- * @param componentType Type of component that should be rendered.
18
- * @param config Configuration that will be passed to the component.
19
- * @param inject enables to provide preconfigured component injector and dependencies
20
- */
21
- createDynamicComponent<T>(content: TemplateRef<any> | Type<any> | string | Record<string, any>, componentType: Type<T>, config: DynamicComponentConfig, inject?: {
22
- injector?: Injector;
23
- services?: any[];
24
- }): ComponentRef<T>;
25
- /**
26
- * Function that creates dynamic component and injects services to allow communication between component and outside
27
- * @param content Type of the component content
28
- * @param moduleType Type of module that should be compiled.
29
- * @param componentType Type of component that should be rendered.
30
- * @param containerRef The container that the dynamic component is appended to.
31
- * @param injector enables to provide preconfigured component injector
32
- */
33
- createDynamicModule<M, C>(content: TemplateRef<any> | Type<any> | string | Record<string, any>, moduleType: Type<M> | NgModuleFactory<M>, componentType: Type<C>, containerRef: ViewContainerRef, injector?: Injector): Promise<ComponentRef<C>>;
34
- /** Function that destroys dynamic component */
35
- destroyComponent(componentRef: ComponentRef<any>): void;
36
- /** @hidden */
37
- private _createDependencyMap;
38
- /** @hidden */
39
- private _attachToContainer;
40
- /** @hidden */
41
- private _createComponent;
42
- /** @hidden */
43
- private _passExternalContent;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
46
- }
@@ -1,4 +0,0 @@
1
- export * from './dynamic-component-config';
2
- export * from './dynamic-component-container';
3
- export * from './dynamic-component-injector';
4
- export * from './dynamic-component.service';
@@ -1,5 +0,0 @@
1
- import { Injector, Provider } from '@angular/core';
2
- /**
3
- * Creates provider for ConsumerClass
4
- */
5
- export declare function consumerProviderFactory<T = any>(ConsumerClass: new (injector: Injector, additionalConfig: Record<any, any> | undefined) => T, providedConfiguration?: Record<any, any>): Provider;
@@ -1,12 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- export declare const pxToNum: (pixels: string) => number;
3
- export declare const toNativeElement: (element: HTMLElement | ElementRef) => HTMLElement;
4
- /** Return elements capacity (width subtract by element padding)
5
- * @param element - HTMLelement or element reference
6
- * */
7
- export declare function getElementCapacity(element: HTMLElement | ElementRef): number;
8
- /** Return elements width
9
- * @param element - HTMLelement or element reference
10
- * @param withMargin - weather to add element margins to width
11
- * */
12
- export declare function getElementWidth(element: HTMLElement | ElementRef, withMargin?: boolean): number;
@@ -1,2 +0,0 @@
1
- /** Get document font size in pixels. */
2
- export declare function getDocumentFontSize(): number;
@@ -1,13 +0,0 @@
1
- export * from './consumer-provider-factory';
2
- export * from './element-size';
3
- export * from './get-document-font-size';
4
- export * from './intersection-observable';
5
- export * from './is-compact-density';
6
- export * from './is-odd';
7
- export * from './key-util';
8
- export * from './module-deprecations-provider';
9
- export * from './parser-file-size';
10
- export * from './random-color-accent';
11
- export * from './resize-observable';
12
- export * from './scroll';
13
- export * from './uuidv4-generator';
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * RxJS wrapper for IntersectionObserver class.
4
- * @param target HTML element to spy on.
5
- * @param options @see {IntersectionObserverInit}
6
- * @returns {Observable} with observer entries.
7
- */
8
- export declare function intersectionObservable(target: Element, options?: IntersectionObserverInit): Observable<IntersectionObserverEntry[]>;
@@ -1,7 +0,0 @@
1
- import { ContentDensity } from '../interfaces/content-density';
2
- /** Determines whether provided value is valid content density */
3
- export declare function isValidContentDensity(size: any): size is ContentDensity;
4
- /**
5
- * Determines if "compact" styles should be applied based on provided content density
6
- */
7
- export declare function isCompactDensity(size: ContentDensity): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- * Function checks whether the passed number is odd.
3
- * @param number number to check.
4
- * @returns Boolean whether the number is odd.
5
- */
6
- export declare function isOdd(number: number): boolean;
@@ -1,16 +0,0 @@
1
- export declare class KeyUtil {
2
- /**
3
- * Function used to unify key identification across different browsers using KeyCodes
4
- *
5
- * @param event - KeyboardEvent
6
- * @param keyCode - event.key name matching W3C specification / (ASSCI char. codes)
7
- * */
8
- static isKeyCode(event: KeyboardEvent, keyCode: number | number[]): boolean;
9
- /**
10
- * Function used to unify key identification across different browsers
11
- *
12
- * @param event - KeyboardEvent
13
- * @param keyType - Type of key
14
- * */
15
- static isKeyType(event: KeyboardEvent, keyType: 'alphabetical' | 'numeric' | 'control' | 'ime'): boolean;
16
- }
@@ -1,5 +0,0 @@
1
- import { FactorySansProvider, Provider } from '@angular/core';
2
- /** Module deprecations provider */
3
- export declare function moduleDeprecationsProvider(classRef: any): Provider;
4
- /** Module deprecations provider factory */
5
- export declare function moduleDeprecationsFactory(factory: FactorySansProvider): Provider;
@@ -1,2 +0,0 @@
1
- /** Parse file size to bytes */
2
- export declare function parserFileSize(fileSize: string): number;
@@ -1,3 +0,0 @@
1
- import { ColorAccent } from '../datatypes';
2
- /** Get random number from 1 to 10. */
3
- export declare function getRandomColorAccent(): ColorAccent;
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * RxJS wrapper for ResizeObserver class.
4
- * @param target HTML element to spy on.
5
- * @param options @see {ResizeObserverOptions}
6
- * @returns {Observable} with observer entries.
7
- */
8
- export declare function resizeObservable(target: Element, options?: ResizeObserverOptions): Observable<ResizeObserverEntry[]>;
@@ -1,7 +0,0 @@
1
- /**
2
- * Function used to scroll specified element by some distance
3
- *
4
- * @param containerElement - Container element scrolled
5
- * @param distanceToScroll - Distance of scroll in px
6
- * */
7
- export declare function scrollTop(containerElement: Element, distanceToScroll: number): void;
@@ -1,2 +0,0 @@
1
- /** Generate a UUID v4 */
2
- export declare function uuidv4(): string;
@@ -1,7 +0,0 @@
1
- import { DestroyRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Creates an observable that emits when the component is destroyed.
5
- * @param destroyRef
6
- */
7
- export declare const destroyObservable: (destroyRef?: DestroyRef) => Observable<void>;
@@ -1,18 +0,0 @@
1
- /** @hidden */
2
- interface DfsOptions<T> {
3
- children: string | ((item: T) => Array<T>);
4
- shouldVisit: (item: T) => boolean;
5
- postOrder: boolean;
6
- }
7
- /**
8
- * Depth-first search algorithm, which traverses a tree/graph/tree-like structure.
9
- * callback is called for each item in the collection. The order of the callback calls
10
- * depends on the options. By default, the algorithm is post-order, which means that
11
- * the callback is called for each item after its children have been visited.
12
- *
13
- * @param collection
14
- * @param callback
15
- * @param options
16
- */
17
- export declare function dfs<T>(collection: Array<T>, callback: (item: T) => void, options?: Partial<DfsOptions<T>>): void;
18
- export {};
@@ -1,13 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- /**
3
- * Retrieves native element from ElementRef.
4
- */
5
- export declare function getNativeElement<T extends Element = HTMLElement>(element: {
6
- elementRef: ElementRef<T>;
7
- } | T | ElementRef<T>): T;
8
- /**
9
- * Checks whether object has element reference in it.
10
- */
11
- export declare function hasElementRef<T extends Element = HTMLElement>(something: any): something is {
12
- elementRef: ElementRef<T>;
13
- };
@@ -1,5 +0,0 @@
1
- export * from './destroy-observable';
2
- export * from './dfs';
3
- export * from './get-native-element';
4
- export * from './range-selector';
5
- export * from './warn-once';
@@ -1,84 +0,0 @@
1
- /**
2
- * Utility type, that allows to track and select ranges of elements while using multi-selection.
3
- *
4
- * @usage
5
- * Imagine we have a simple list of checkboxes:
6
- * ```html
7
- * <input
8
- * #checkboxInput
9
- * *ngFor="let o of options; let idx = index"
10
- * type="checkbox"
11
- * [checked]="selectionModel.checked(o)"
12
- * (click)="toggle(idx, $event)"
13
- * >
14
- * ```
15
- * With the given layout the logic should be as follows:
16
- * ```typescript
17
- * export class YourComponent {
18
- * options = ['a', 'b', 'c'];
19
- * readonly selectionModel = new SelectionModel(true);
20
- *
21
- * private readonly _rangeSelector = new RangeSelector();
22
- *
23
- *
24
- * toggle(idx: number, event: PointerEvent): void {
25
- * // getting the toggled value of the checkbox
26
- * const toggledSelection = event.target.value;
27
- *
28
- * // registering the selection of current checkbox
29
- * this._rangeSelector.onRangeElementToggled(idx, event);
30
- *
31
- * // Apply value to each element in range.
32
- * // If checkbox was toggled without shift pressed or without previously selected one,
33
- * // this method will select only it.
34
- * this._rangeSelector.applyValueToEachInRange(idx => {
35
- * if (toggledSelection) {
36
- * this.selectionModel.select(options[idx]);
37
- * } else {
38
- * this.selectionModel.deselect(options[idx]);
39
- * }
40
- * });
41
- * }
42
- * }
43
- * ```
44
- */
45
- export declare class RangeSelector {
46
- /** @hidden */
47
- private _previousSelectedIndex;
48
- /** @hidden */
49
- private _state;
50
- /**
51
- * Last registered selection state (either multiple or single).
52
- * Is updated on each `onRangeElementClicked` invokation. Will be `null` initially or once `reset()` is called.
53
- */
54
- get lastRangeSelectionState(): RangeSelectionState | null;
55
- /**
56
- * The method that should be used to register each checkbox toggle.
57
- * Accepts two arguments: `index` and `event`. If none provided, will reset existing state.
58
- * Otherwise will register current index as last checked.
59
- *
60
- * If toggling was done with "shift" pressed and there's a previously registered index, will register a range selection.
61
- * At the same time if checkbox was toggled without shift pressed or without previously selected one, this method will select only it.
62
- *
63
- * After calling this method it's recommended to use `applyValueToEachInRange` to actually toggle each checkbox in range.
64
- *
65
- * See usage example on this class itself.
66
- */
67
- onRangeElementToggled(index?: number, event?: KeyboardEvent | MouseEvent | TouchEvent): RangeSelectionState | null;
68
- /**
69
- * Allows to apply selection to each item in selection range.
70
- * Accepts a function to apply selection to each item by registered index.
71
- *
72
- * See usage example on this class itself.
73
- */
74
- applyValueToEachInRange(selectionMethod: (index: number) => void): void;
75
- /** Resets selection state. Useful when the list of selectable items is changed (e.g. by filtering, sorting, page change) */
76
- reset(): void;
77
- /** @hidden */
78
- private _isNonNegativeInteger;
79
- }
80
- export interface RangeSelectionState {
81
- isRangeSelection: boolean;
82
- from: number;
83
- to: number;
84
- }
@@ -1,2 +0,0 @@
1
- /** @hidden */
2
- export declare function warnOnce(message: string): void;
@@ -1 +0,0 @@
1
- export type ContentDensity = 'cozy' | 'condensed' | 'compact';
@@ -1,13 +0,0 @@
1
- import { InputSignal } from '@angular/core';
2
- import { Nullable } from '../models/nullable';
3
- import { HasElementRef } from './has-element-ref.interface';
4
- export interface CssClassBuilder extends HasElementRef {
5
- /**
6
- * The class for the component
7
- **/
8
- class: Nullable<string> | InputSignal<string | undefined>;
9
- /**
10
- * Method to build component css class
11
- */
12
- buildComponentCssClass(): string[];
13
- }
@@ -1,5 +0,0 @@
1
- import { Hash } from '../datatypes';
2
- import { HasElementRef } from './has-element-ref.interface';
3
- export interface CssStyleBuilder extends HasElementRef {
4
- buildComponentCssStyle(): Hash<number | string>;
5
- }
@@ -1,5 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- export interface HasElementRef<ElementType extends Element = HTMLElement> {
3
- readonly elementRef: ElementRef<ElementType>;
4
- }
5
- export declare const ELEMENT_REF_EXCEPTION = "HasElementRef interface has to be implemented";
@@ -1,7 +0,0 @@
1
- export * from './content-density';
2
- export * from './css-class-builder.interface';
3
- export * from './css-style-builder.interface';
4
- export * from './has-element-ref.interface';
5
- export * from './keyboard-support-item.interface';
6
- export * from './module-deprecation.interface';
7
- export * from './require.interface';
@@ -1,6 +0,0 @@
1
- import { FocusableOption } from '@angular/cdk/a11y';
2
- import { EventEmitter } from '@angular/core';
3
- export interface KeyboardSupportItemInterface extends FocusableOption {
4
- keyDown: EventEmitter<KeyboardEvent>;
5
- click(): void;
6
- }
@@ -1,8 +0,0 @@
1
- export interface ModuleDeprecation {
2
- alternative: {
3
- name: string;
4
- link: string | string[];
5
- fragment?: string;
6
- };
7
- message: string;
8
- }
@@ -1,6 +0,0 @@
1
- export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
2
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
3
- }[Keys];
4
- export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
5
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
6
- }[Keys];
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const LIST_ITEM_COMPONENT: InjectionToken<string[]>;
3
- export interface ListItemInterface {
4
- selected: boolean;
5
- link: boolean;
6
- focus(): void;
7
- }
@@ -1,6 +0,0 @@
1
- /** Makes the provided type nullable */
2
- export type Nullable<T> = T | null | undefined;
3
- /** Makes each property of an object optional and nullable */
4
- export type NullableObject<T> = {
5
- [P in keyof T]?: Nullable<T[P]>;
6
- };
@@ -1,21 +0,0 @@
1
- import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export type FdkAsyncProperty<T> = T | Observable<T> | Promise<T>;
5
- export declare class AsyncOrSyncPipe implements OnDestroy, PipeTransform {
6
- /** @hidden */
7
- private _cdr;
8
- /** @hidden */
9
- private _asyncPipe;
10
- /** @hidden */
11
- constructor(ref: ChangeDetectorRef);
12
- /**
13
- * Transforms raw async-like value into static one.
14
- * @param value raw value. Can be either a static value, or Promise-like, or Observable-like.
15
- */
16
- transform<T>(value: FdkAsyncProperty<T>): T | null;
17
- /** @Hidden */
18
- ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<AsyncOrSyncPipe, never>;
20
- static ɵpipe: i0.ɵɵPipeDeclaration<AsyncOrSyncPipe, "fdkAsyncOrSync", true>;
21
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DisplayFnPipe implements PipeTransform {
4
- /** Transform value with display function. */
5
- transform(value: any, displayFn: any, ...args: any): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DisplayFnPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<DisplayFnPipe, "displayFnPipe", true>;
8
- }
@@ -1,16 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Nullable } from '../models/nullable';
3
- import * as i0 from "@angular/core";
4
- export declare class FilterStringsPipe implements PipeTransform {
5
- /**
6
- * Performs filtering.
7
- * @param values Array of items.
8
- * @param params Search parameters.
9
- */
10
- transform(values: any[] | undefined, params: {
11
- searchTerm: Nullable<string>;
12
- key: string;
13
- }): any[];
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterStringsPipe, never>;
15
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterStringsPipe, "fdFilterStrings", true>;
16
- }
@@ -1,11 +0,0 @@
1
- export * from './async-or-sync.pipe';
2
- export * from './displayFn.pipe';
3
- export * from './filter-strings.pipe';
4
- export * from './is-compact.pipe';
5
- export * from './make-async.pipe';
6
- export * from './pipe.module';
7
- export * from './safe.pipe';
8
- export * from './search-highlight.pipe';
9
- export * from './truncate.pipe';
10
- export * from './two-digits.pipe';
11
- export * from './value-by-path.pipe';
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { ContentDensity } from '../interfaces/content-density';
3
- import * as i0 from "@angular/core";
4
- export declare class IsCompactDensityPipe implements PipeTransform {
5
- /** Check if the content density is compact. */
6
- transform(size: ContentDensity): boolean;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<IsCompactDensityPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<IsCompactDensityPipe, "isCompactDensity", true>;
9
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class MakeAsyncPipe implements PipeTransform {
5
- /**
6
- * Transforms raw value into observable.
7
- * @param value raw value. Can be either a static value, or Promise-like, or Observable-like.
8
- */
9
- transform<T>(value: T | Promise<T> | Observable<T>): Observable<T> | Promise<T>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MakeAsyncPipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<MakeAsyncPipe, "fdkMakeAsync", true>;
12
- }
@@ -1,16 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./displayFn.pipe";
3
- import * as i2 from "./search-highlight.pipe";
4
- import * as i3 from "./two-digits.pipe";
5
- import * as i4 from "./safe.pipe";
6
- import * as i5 from "./value-by-path.pipe";
7
- import * as i6 from "./is-compact.pipe";
8
- import * as i7 from "./truncate.pipe";
9
- import * as i8 from "./filter-strings.pipe";
10
- import * as i9 from "./make-async.pipe";
11
- import * as i10 from "./async-or-sync.pipe";
12
- export declare class PipeModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<PipeModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, never, [typeof i1.DisplayFnPipe, typeof i2.SearchHighlightPipe, typeof i3.TwoDigitsPipe, typeof i4.SafePipe, typeof i5.ValueByPathPipe, typeof i6.IsCompactDensityPipe, typeof i7.TruncatePipe, typeof i8.FilterStringsPipe, typeof i9.MakeAsyncPipe, typeof i10.AsyncOrSyncPipe], [typeof i1.DisplayFnPipe, typeof i2.SearchHighlightPipe, typeof i3.TwoDigitsPipe, typeof i4.SafePipe, typeof i5.ValueByPathPipe, typeof i6.IsCompactDensityPipe, typeof i7.TruncatePipe, typeof i8.FilterStringsPipe, typeof i9.MakeAsyncPipe, typeof i10.AsyncOrSyncPipe]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<PipeModule>;
16
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class SafePipe implements PipeTransform {
5
- protected sanitizer: DomSanitizer;
6
- /** @hidden */
7
- constructor(sanitizer: DomSanitizer);
8
- /** Sanitize HTML string. */
9
- transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
12
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SearchHighlightPipe implements PipeTransform {
4
- /** Highlight search term in string. */
5
- transform(value: string, matches: string | Array<[number, number]>, active?: boolean, includeSpans?: boolean): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchHighlightPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SearchHighlightPipe, "highlight", true>;
8
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruncatePipe implements PipeTransform {
4
- /** Truncate string to given length. */
5
- transform(value: string, limit?: number): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
8
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TwoDigitsPipe implements PipeTransform {
4
- /** Transform number to two digits. */
5
- transform(value: number, enable?: boolean): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TwoDigitsPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<TwoDigitsPipe, "twoDigits", true>;
8
- }