@odx/angular 1.0.4 → 2.1.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.
Files changed (263) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/breakpoints/README.md +3 -0
  3. package/breakpoints/index.d.ts +7 -0
  4. package/breakpoints/lib/breakpoints.config.d.ts +21 -0
  5. package/breakpoints/lib/breakpoints.module.d.ts +7 -0
  6. package/breakpoints/lib/breakpoints.service.d.ts +13 -0
  7. package/breakpoints/lib/breakpoints.typings.d.ts +8 -0
  8. package/breakpoints/lib/directives/index.d.ts +1 -0
  9. package/breakpoints/lib/directives/match-breakpoints.directive.d.ts +16 -0
  10. package/breakpoints/lib/helpers/configure-breakpoint.d.ts +4 -0
  11. package/breakpoints/lib/helpers/index.d.ts +1 -0
  12. package/breakpoints/lib/models/breakpoint.d.ts +5 -0
  13. package/breakpoints/lib/models/index.d.ts +1 -0
  14. package/cdk/autocomplete-control/README.md +3 -0
  15. package/cdk/autocomplete-control/index.d.ts +3 -0
  16. package/cdk/autocomplete-control/lib/abstract/base-search-field.directive.d.ts +13 -0
  17. package/cdk/autocomplete-control/lib/abstract/index.d.ts +1 -0
  18. package/cdk/autocomplete-control/lib/autocomplete-control.d.ts +39 -0
  19. package/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.d.ts +11 -0
  20. package/cdk/autocomplete-control/lib/pipes/index.d.ts +1 -0
  21. package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +1 -1
  22. package/cdk/option-control/README.md +3 -0
  23. package/cdk/option-control/index.d.ts +1 -0
  24. package/cdk/option-control/lib/option-control.d.ts +17 -0
  25. package/components/autocomplete/README.md +3 -0
  26. package/components/autocomplete/index.d.ts +6 -0
  27. package/components/autocomplete/lib/autocomplete.component.d.ts +30 -0
  28. package/components/autocomplete/lib/autocomplete.module.d.ts +11 -0
  29. package/components/autocomplete/lib/autocomplete.tokens.d.ts +3 -0
  30. package/components/autocomplete/lib/components/index.d.ts +1 -0
  31. package/components/autocomplete/lib/components/option/autocomplete-option.component.d.ts +9 -0
  32. package/components/autocomplete/lib/directives/autocomplete-search-field.directive.d.ts +9 -0
  33. package/components/autocomplete/lib/directives/index.d.ts +1 -0
  34. package/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.d.ts +12 -0
  35. package/components/autocomplete/lib/pipes/index.d.ts +1 -0
  36. package/components/chip/index.d.ts +1 -1
  37. package/components/chip/lib/{chip.component.d.ts → components/chip/chip.component.d.ts} +1 -1
  38. package/components/chip/lib/components/chip-list/chip-list.component.d.ts +6 -0
  39. package/components/chip/lib/components/chip-list-row/chip-list-row.component.d.ts +6 -0
  40. package/components/chip/lib/components/index.d.ts +3 -0
  41. package/components/dropdown/lib/dropdown.directive.d.ts +2 -1
  42. package/components/form-field/lib/models/form-field-variant.d.ts +1 -0
  43. package/components/main-menu/lib/directives/index.d.ts +1 -0
  44. package/components/main-menu/lib/directives/main-menu-close.directive.d.ts +7 -0
  45. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +3 -4
  46. package/components/main-menu/lib/main-menu.module.d.ts +3 -2
  47. package/components/menu/lib/directives/menu-item.directive.d.ts +1 -1
  48. package/components/menu/lib/menu.module.d.ts +3 -2
  49. package/components/rail-navigation/index.d.ts +2 -1
  50. package/components/rail-navigation/lib/components/index.d.ts +1 -0
  51. package/components/rail-navigation/lib/models/index.d.ts +1 -0
  52. package/components/rail-navigation/lib/models/rail-navigation-variant.d.ts +5 -0
  53. package/components/rail-navigation/lib/rail-navigation.component.d.ts +4 -2
  54. package/components/rail-navigation/lib/rail-navigation.module.d.ts +2 -2
  55. package/components/select/index.d.ts +0 -1
  56. package/components/select/lib/components/index.d.ts +1 -1
  57. package/components/select/lib/components/select-option/select-option.component.d.ts +19 -0
  58. package/components/select/lib/directives/select-search-field.directive.d.ts +3 -7
  59. package/components/select/lib/pipes/select-search-filter.pipe.d.ts +8 -8
  60. package/components/select/lib/select.component.d.ts +15 -30
  61. package/components/select/lib/select.module.d.ts +2 -2
  62. package/components/select/lib/select.tokens.d.ts +2 -2
  63. package/components/table/README.md +3 -0
  64. package/components/table/index.d.ts +5 -0
  65. package/components/table/lib/components/check-cell/check-cell.component.d.ts +11 -0
  66. package/components/table/lib/components/header-title/header-title.component.d.ts +28 -0
  67. package/components/table/lib/components/index.d.ts +2 -0
  68. package/components/table/lib/directives/index.d.ts +2 -0
  69. package/components/table/lib/directives/table-cell.directive.d.ts +6 -0
  70. package/components/table/lib/directives/table-row.directive.d.ts +6 -0
  71. package/components/table/lib/interfaces/index.d.ts +3 -0
  72. package/components/table/lib/models/index.d.ts +2 -0
  73. package/components/table/lib/models/sort-variant.d.ts +6 -0
  74. package/components/table/lib/models/table-variant.d.ts +5 -0
  75. package/components/table/lib/table.component.d.ts +29 -0
  76. package/components/table/lib/table.config.d.ts +4 -0
  77. package/components/table/lib/table.module.d.ts +11 -0
  78. package/components/wizard/README.md +3 -0
  79. package/components/wizard/index.d.ts +3 -0
  80. package/components/wizard/lib/components/index.d.ts +1 -0
  81. package/components/wizard/lib/components/wizard-step/wizard-step.component.d.ts +17 -0
  82. package/components/wizard/lib/wizard.component.d.ts +31 -0
  83. package/components/wizard/lib/wizard.module.d.ts +9 -0
  84. package/esm2020/breakpoints/index.mjs +8 -0
  85. package/esm2020/breakpoints/lib/breakpoints.config.mjs +13 -0
  86. package/esm2020/breakpoints/lib/breakpoints.module.mjs +17 -0
  87. package/esm2020/breakpoints/lib/breakpoints.service.mjs +34 -0
  88. package/esm2020/breakpoints/lib/breakpoints.typings.mjs +2 -0
  89. package/esm2020/breakpoints/lib/directives/index.mjs +2 -0
  90. package/esm2020/breakpoints/lib/directives/match-breakpoints.directive.mjs +48 -0
  91. package/esm2020/breakpoints/lib/helpers/configure-breakpoint.mjs +8 -0
  92. package/esm2020/breakpoints/lib/helpers/index.mjs +2 -0
  93. package/esm2020/breakpoints/lib/models/breakpoint.mjs +2 -0
  94. package/esm2020/breakpoints/lib/models/index.mjs +2 -0
  95. package/esm2020/breakpoints/odx-angular-breakpoints.mjs +5 -0
  96. package/esm2020/cdk/autocomplete-control/index.mjs +4 -0
  97. package/esm2020/cdk/autocomplete-control/lib/abstract/base-search-field.directive.mjs +38 -0
  98. package/esm2020/cdk/autocomplete-control/lib/abstract/index.mjs +2 -0
  99. package/esm2020/cdk/autocomplete-control/lib/autocomplete-control.mjs +90 -0
  100. package/esm2020/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.mjs +32 -0
  101. package/esm2020/cdk/autocomplete-control/lib/pipes/index.mjs +2 -0
  102. package/esm2020/cdk/autocomplete-control/odx-angular-cdk-autocomplete-control.mjs +5 -0
  103. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +5 -5
  104. package/esm2020/cdk/option-control/index.mjs +2 -0
  105. package/esm2020/cdk/option-control/lib/option-control.mjs +47 -0
  106. package/esm2020/cdk/option-control/odx-angular-cdk-option-control.mjs +5 -0
  107. package/esm2020/components/autocomplete/index.mjs +7 -0
  108. package/esm2020/components/autocomplete/lib/autocomplete.component.mjs +162 -0
  109. package/esm2020/components/autocomplete/lib/autocomplete.module.mjs +21 -0
  110. package/esm2020/components/autocomplete/lib/autocomplete.tokens.mjs +3 -0
  111. package/esm2020/components/autocomplete/lib/components/index.mjs +2 -0
  112. package/esm2020/components/autocomplete/lib/components/option/autocomplete-option.component.mjs +33 -0
  113. package/esm2020/components/autocomplete/lib/directives/autocomplete-search-field.directive.mjs +26 -0
  114. package/esm2020/components/autocomplete/lib/directives/index.mjs +2 -0
  115. package/esm2020/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.mjs +30 -0
  116. package/esm2020/components/autocomplete/lib/pipes/index.mjs +2 -0
  117. package/esm2020/components/autocomplete/odx-angular-components-autocomplete.mjs +5 -0
  118. package/esm2020/components/card/lib/card.component.mjs +2 -2
  119. package/esm2020/components/checkbox/lib/checkbox.component.mjs +2 -2
  120. package/esm2020/components/chip/index.mjs +2 -2
  121. package/esm2020/components/chip/lib/{chip.component.mjs → components/chip/chip.component.mjs} +2 -2
  122. package/esm2020/components/chip/lib/components/chip-list/chip-list.component.mjs +21 -0
  123. package/esm2020/components/chip/lib/components/chip-list-row/chip-list-row.component.mjs +21 -0
  124. package/esm2020/components/chip/lib/components/index.mjs +4 -0
  125. package/esm2020/components/dropdown/lib/dropdown.component.mjs +3 -3
  126. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +10 -2
  127. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
  128. package/esm2020/components/form-field/lib/form-field.component.mjs +3 -3
  129. package/esm2020/components/form-field/lib/form-field.service.mjs +2 -2
  130. package/esm2020/components/form-field/lib/models/form-field-variant.mjs +2 -1
  131. package/esm2020/components/main-menu/lib/directives/index.mjs +2 -1
  132. package/esm2020/components/main-menu/lib/directives/main-menu-close.directive.mjs +24 -0
  133. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +6 -12
  134. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  135. package/esm2020/components/main-menu/lib/main-menu.service.mjs +2 -11
  136. package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +3 -3
  137. package/esm2020/components/menu/lib/menu.module.mjs +5 -4
  138. package/esm2020/components/rail-navigation/index.mjs +3 -2
  139. package/esm2020/components/rail-navigation/lib/components/index.mjs +2 -0
  140. package/esm2020/components/rail-navigation/lib/components/{rail-navigation-item.component.mjs → rail-navigation-item/rail-navigation-item.component.mjs} +3 -3
  141. package/esm2020/components/rail-navigation/lib/models/index.mjs +2 -0
  142. package/esm2020/components/rail-navigation/lib/models/rail-navigation-variant.mjs +5 -0
  143. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +19 -11
  144. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +4 -4
  145. package/esm2020/components/select/index.mjs +1 -2
  146. package/esm2020/components/select/lib/components/index.mjs +2 -2
  147. package/esm2020/components/select/lib/components/select-option/select-option.component.mjs +75 -0
  148. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +9 -21
  149. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +12 -33
  150. package/esm2020/components/select/lib/select.component.mjs +44 -86
  151. package/esm2020/components/select/lib/select.module.mjs +5 -5
  152. package/esm2020/components/select/lib/select.tokens.mjs +2 -2
  153. package/esm2020/components/table/index.mjs +6 -0
  154. package/esm2020/components/table/lib/components/check-cell/check-cell.component.mjs +29 -0
  155. package/esm2020/components/table/lib/components/header-title/header-title.component.mjs +86 -0
  156. package/esm2020/components/table/lib/components/index.mjs +3 -0
  157. package/esm2020/components/table/lib/directives/index.mjs +3 -0
  158. package/esm2020/components/table/lib/directives/table-cell.directive.mjs +27 -0
  159. package/esm2020/components/table/lib/directives/table-row.directive.mjs +28 -0
  160. package/esm2020/components/table/lib/interfaces/index.mjs +4 -0
  161. package/esm2020/components/table/lib/models/index.mjs +3 -0
  162. package/esm2020/components/table/lib/models/sort-variant.mjs +6 -0
  163. package/esm2020/components/table/lib/models/table-variant.mjs +5 -0
  164. package/esm2020/components/table/lib/table.component.mjs +86 -0
  165. package/esm2020/components/table/lib/table.config.mjs +3 -0
  166. package/esm2020/components/table/lib/table.module.mjs +21 -0
  167. package/esm2020/components/table/odx-angular-components-table.mjs +5 -0
  168. package/esm2020/components/wizard/index.mjs +4 -0
  169. package/esm2020/components/wizard/lib/components/index.mjs +2 -0
  170. package/esm2020/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +73 -0
  171. package/esm2020/components/wizard/lib/wizard.component.mjs +155 -0
  172. package/esm2020/components/wizard/lib/wizard.module.mjs +19 -0
  173. package/esm2020/components/wizard/odx-angular-components-wizard.mjs +5 -0
  174. package/esm2020/internal/decorators/css-component.mjs +1 -1
  175. package/esm2020/internal/decorators/css-modifier.mjs +16 -21
  176. package/esm2020/internal/helpers/get-css-variables.mjs +12 -19
  177. package/esm2020/lib/services/window-ref.mjs +4 -1
  178. package/fesm2015/odx-angular-breakpoints.mjs +111 -0
  179. package/fesm2015/odx-angular-breakpoints.mjs.map +1 -0
  180. package/fesm2015/odx-angular-cdk-autocomplete-control.mjs +164 -0
  181. package/fesm2015/odx-angular-cdk-autocomplete-control.mjs.map +1 -0
  182. package/fesm2015/odx-angular-cdk-expandable.mjs +4 -4
  183. package/fesm2015/odx-angular-cdk-expandable.mjs.map +1 -1
  184. package/fesm2015/odx-angular-cdk-option-control.mjs +55 -0
  185. package/fesm2015/odx-angular-cdk-option-control.mjs.map +1 -0
  186. package/fesm2015/odx-angular-components-autocomplete.mjs +263 -0
  187. package/fesm2015/odx-angular-components-autocomplete.mjs.map +1 -0
  188. package/fesm2015/odx-angular-components-card.mjs +1 -1
  189. package/fesm2015/odx-angular-components-card.mjs.map +1 -1
  190. package/fesm2015/odx-angular-components-checkbox.mjs +1 -1
  191. package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
  192. package/fesm2015/odx-angular-components-chip.mjs +35 -5
  193. package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
  194. package/fesm2015/odx-angular-components-dropdown.mjs +11 -3
  195. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -1
  196. package/fesm2015/odx-angular-components-form-field.mjs +5 -4
  197. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  198. package/fesm2015/odx-angular-components-main-menu.mjs +30 -24
  199. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  200. package/fesm2015/odx-angular-components-menu.mjs +6 -5
  201. package/fesm2015/odx-angular-components-menu.mjs.map +1 -1
  202. package/fesm2015/odx-angular-components-rail-navigation.mjs +23 -11
  203. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -1
  204. package/fesm2015/odx-angular-components-select.mjs +80 -175
  205. package/fesm2015/odx-angular-components-select.mjs.map +1 -1
  206. package/fesm2015/odx-angular-components-table.mjs +264 -0
  207. package/fesm2015/odx-angular-components-table.mjs.map +1 -0
  208. package/fesm2015/odx-angular-components-wizard.mjs +242 -0
  209. package/fesm2015/odx-angular-components-wizard.mjs.map +1 -0
  210. package/fesm2015/odx-angular-internal.mjs +27 -40
  211. package/fesm2015/odx-angular-internal.mjs.map +1 -1
  212. package/fesm2015/odx-angular.mjs +3 -0
  213. package/fesm2015/odx-angular.mjs.map +1 -1
  214. package/fesm2020/odx-angular-breakpoints.mjs +117 -0
  215. package/fesm2020/odx-angular-breakpoints.mjs.map +1 -0
  216. package/fesm2020/odx-angular-cdk-autocomplete-control.mjs +160 -0
  217. package/fesm2020/odx-angular-cdk-autocomplete-control.mjs.map +1 -0
  218. package/fesm2020/odx-angular-cdk-expandable.mjs +4 -4
  219. package/fesm2020/odx-angular-cdk-expandable.mjs.map +1 -1
  220. package/fesm2020/odx-angular-cdk-option-control.mjs +54 -0
  221. package/fesm2020/odx-angular-cdk-option-control.mjs.map +1 -0
  222. package/fesm2020/odx-angular-components-autocomplete.mjs +254 -0
  223. package/fesm2020/odx-angular-components-autocomplete.mjs.map +1 -0
  224. package/fesm2020/odx-angular-components-card.mjs +1 -1
  225. package/fesm2020/odx-angular-components-card.mjs.map +1 -1
  226. package/fesm2020/odx-angular-components-checkbox.mjs +1 -1
  227. package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
  228. package/fesm2020/odx-angular-components-chip.mjs +35 -5
  229. package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
  230. package/fesm2020/odx-angular-components-dropdown.mjs +11 -3
  231. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -1
  232. package/fesm2020/odx-angular-components-form-field.mjs +5 -4
  233. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  234. package/fesm2020/odx-angular-components-main-menu.mjs +30 -24
  235. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  236. package/fesm2020/odx-angular-components-menu.mjs +6 -5
  237. package/fesm2020/odx-angular-components-menu.mjs.map +1 -1
  238. package/fesm2020/odx-angular-components-rail-navigation.mjs +23 -11
  239. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -1
  240. package/fesm2020/odx-angular-components-select.mjs +77 -170
  241. package/fesm2020/odx-angular-components-select.mjs.map +1 -1
  242. package/fesm2020/odx-angular-components-table.mjs +259 -0
  243. package/fesm2020/odx-angular-components-table.mjs.map +1 -0
  244. package/fesm2020/odx-angular-components-wizard.mjs +239 -0
  245. package/fesm2020/odx-angular-components-wizard.mjs.map +1 -0
  246. package/fesm2020/odx-angular-internal.mjs +26 -38
  247. package/fesm2020/odx-angular-internal.mjs.map +1 -1
  248. package/fesm2020/odx-angular.mjs +3 -0
  249. package/fesm2020/odx-angular.mjs.map +1 -1
  250. package/internal/decorators/css-component.d.ts +1 -1
  251. package/internal/decorators/css-modifier.d.ts +2 -2
  252. package/internal/helpers/get-css-variables.d.ts +2 -3
  253. package/lib/services/window-ref.d.ts +1 -0
  254. package/package.json +52 -4
  255. package/components/select/lib/abstract/index.d.ts +0 -2
  256. package/components/select/lib/abstract/select-control-option.d.ts +0 -9
  257. package/components/select/lib/abstract/select-control.d.ts +0 -12
  258. package/components/select/lib/components/option/option.component.d.ts +0 -26
  259. package/esm2020/components/select/lib/abstract/index.mjs +0 -3
  260. package/esm2020/components/select/lib/abstract/select-control-option.mjs +0 -2
  261. package/esm2020/components/select/lib/abstract/select-control.mjs +0 -2
  262. package/esm2020/components/select/lib/components/option/option.component.mjs +0 -95
  263. /package/components/rail-navigation/lib/components/{rail-navigation-item.component.d.ts → rail-navigation-item/rail-navigation-item.component.d.ts} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { StringSearchHandler } from '@odx/angular';
2
+ import { StringifyFn } from '@odx/angular';
3
+ import { BaseSearchFilterPipe } from '@odx/angular/cdk/autocomplete-control';
4
+ import { SelectSearchFieldDirective } from '../directives';
3
5
  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;
6
+ export declare class SelectSearchFilterPipe extends BaseSearchFilterPipe implements PipeTransform {
7
+ protected readonly hostController: import("@odx/angular/components/select").SelectComponent<unknown> | null;
8
+ protected get searchField(): SelectSearchFieldDirective | undefined;
9
+ protected queryHandler(query: string): string;
10
+ protected get searchBy(): StringifyFn<unknown>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchFilterPipe, never>;
12
12
  static ɵpipe: i0.ɵɵPipeDeclaration<SelectSearchFilterPipe, "odxSelectSearchFilter", true>;
13
13
  }
@@ -1,55 +1,40 @@
1
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';
2
+ import { AfterViewInit, QueryList, TemplateRef } from '@angular/core';
3
+ import { IdentityMatcher } from '@odx/angular';
4
+ import { AutocompleteControl } from '@odx/angular/cdk/autocomplete-control';
5
+ import { SelectOptionComponent } from './components';
8
6
  import { SelectSearchFieldDirective } from './directives';
9
7
  import * as i0 from "@angular/core";
10
- export declare class SelectComponent<T = unknown | unknown[]> extends CustomFormControl<T | null> implements AfterViewInit, SelectControl<T> {
11
- static ngAcceptInputType_isLoading: BooleanInput;
8
+ export declare class SelectComponent<T = unknown> extends AutocompleteControl<T | null> implements AfterViewInit {
12
9
  static ngAcceptInputType_multiple: BooleanInput;
13
- private keyManager?;
14
- private readonly changeDetector;
15
10
  protected searchFieldEnabled: boolean;
16
- protected smoothScrollEnabled: boolean;
17
- protected selectedOption: OptionComponent<T> | null;
11
+ protected selectedOption: SelectOptionComponent<T> | null;
18
12
  protected selectedOptionText: string | null;
19
- protected options?: QueryList<OptionComponent<T>>;
20
- protected dropdown?: DropdownDirective;
21
- get hasOptions(): boolean;
22
- readonly element: import("@angular/core").ElementRef<HTMLElement>;
23
- get isOpen(): boolean;
13
+ protected options?: QueryList<SelectOptionComponent<T>>;
14
+ searchField?: SelectSearchFieldDirective;
24
15
  get selectedOptionContent(): TemplateRef<{
25
16
  $implicit: T | null;
26
17
  }> | string | null;
27
18
  placeholder: string;
28
- isLoading: boolean;
29
19
  multiple: boolean;
30
20
  selectedOptionTemplate?: TemplateRef<{
31
21
  $implicit: T;
32
22
  }> | null;
33
- stringify?: StringifyFn<T | null>;
34
23
  identityMatcher: IdentityMatcher<T | null>;
35
- change: EventEmitter<void>;
36
- searchField?: SelectSearchFieldDirective;
37
- constructor();
38
24
  ngAfterViewInit(): void;
39
25
  registerOnChange(fn: (value: T | null) => void): void;
40
- selectOption(option?: SelectControlOption<T | T[]> | null): void;
41
- isOptionSelected(option: SelectControlOption<T | T[]>): boolean;
42
- scrollOptionIntoView({ element }: SelectControlOption<T>): void;
43
- protected openDropdown(event: KeyboardEvent): void;
44
- protected handleFocusOut(event: FocusEvent): void;
26
+ selectOption(option?: SelectOptionComponent<T | T[]> | null): void;
27
+ isOptionSelected(option: SelectOptionComponent<T | T[]>): boolean;
28
+ protected initKeyManager(options: QueryList<SelectOptionComponent<T>>): void;
29
+ protected handleQueryListOption(options: QueryList<SelectOptionComponent<T>>): void;
30
+ protected handleSearchFieldChanges(): void;
31
+ protected handleControllerEvent(event: KeyboardEvent): void;
45
32
  protected activateSelectedOption(): void;
46
33
  protected onDropdownOpen(): void;
47
34
  protected onDropdownClose(): void;
48
35
  protected onDropdownClosed(): void;
49
- protected disableSmoothScroll(): void;
50
- protected enableSmoothScroll(): void;
51
36
  private updateSelectedOption;
52
37
  private focusSelectSearchField;
53
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent<any>, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "odx-select", never, { "placeholder": "placeholder"; "isLoading": "isLoading"; "multiple": "multiple"; "selectedOptionTemplate": "selectedOptionTemplate"; "stringify": "stringify"; "identityMatcher": "identityMatcher"; }, { "change": "change"; }, ["searchField", "options"], ["[odxSelectSearchField]", "*"], true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "odx-select", never, { "placeholder": "placeholder"; "multiple": "multiple"; "selectedOptionTemplate": "selectedOptionTemplate"; "identityMatcher": "identityMatcher"; }, {}, ["searchField", "options"], ["[odxSelectSearchField]", "*"], true, never>;
55
40
  }
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./select.component";
3
3
  import * as i2 from "./directives/select-search-field.directive";
4
4
  import * as i3 from "./pipes/select-search-filter.pipe";
5
- import * as i4 from "./components/option/option.component";
5
+ import * as i4 from "./components/select-option/select-option.component";
6
6
  import * as i5 from "@odx/angular";
7
7
  export declare class SelectModule {
8
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]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, never, [typeof i1.SelectComponent, typeof i2.SelectSearchFieldDirective, typeof i3.SelectSearchFilterPipe, typeof i4.SelectOptionComponent], [typeof i5.CoreModule, typeof i1.SelectComponent, typeof i2.SelectSearchFieldDirective, typeof i3.SelectSearchFilterPipe, typeof i4.SelectOptionComponent]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
11
11
  }
@@ -1,3 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { SelectControl } from './abstract';
3
- export declare const SELECT_CONTROL: InjectionToken<SelectControl<unknown>>;
2
+ import { SelectComponent } from './select.component';
3
+ export declare const SELECT_CONTROL: InjectionToken<SelectComponent<unknown>>;
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/table
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/table`.
@@ -0,0 +1,5 @@
1
+ export * from './lib/components';
2
+ export * from './lib/directives';
3
+ export * from './lib/models';
4
+ export * from './lib/table.component';
5
+ export * from './lib/table.module';
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckCellComponent {
4
+ private readonly table;
5
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
6
+ checked: boolean;
7
+ checkedChange: EventEmitter<boolean>;
8
+ update(e: boolean): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckCellComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckCellComponent, "td[odx-table-cell][checked]", never, { "checked": "checked"; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
11
+ }
@@ -0,0 +1,28 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import { SortStatus, TableHeaderCell } from '../../interfaces';
4
+ import { TableSortVariant } from '../../models/sort-variant';
5
+ import * as i0 from "@angular/core";
6
+ export declare class HeaderTitleComponent implements OnInit {
7
+ private readonly table;
8
+ private readonly cdr;
9
+ private readonly takeUntilDestroyed;
10
+ private sortStatus;
11
+ item: TableHeaderCell;
12
+ test: boolean;
13
+ checkForm: FormGroup<{
14
+ check: FormControl<boolean | null>;
15
+ }>;
16
+ get getSortStatus(): SortStatus;
17
+ get sortIcon(): TableSortVariant;
18
+ sortColumn(): void;
19
+ clearSortStatus(): void;
20
+ get selected(): number;
21
+ check(): void;
22
+ get checked(): boolean;
23
+ ngOnInit(): void;
24
+ private checkBoxListener;
25
+ get indeterminate(): boolean;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTitleComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderTitleComponent, "th[odxHeaderTitle]", never, { "item": "item"; }, {}, never, ["odx-form-field"], true, never>;
28
+ }
@@ -0,0 +1,2 @@
1
+ export * from './check-cell/check-cell.component';
2
+ export * from './header-title/header-title.component';
@@ -0,0 +1,2 @@
1
+ export * from './table-cell.directive';
2
+ export * from './table-row.directive';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableCellDirective {
3
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "td[odx-table-cell]", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableRowDirective {
3
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableRowDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowDirective, "tr[odx-table-row]", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './body-cell.d';
2
+ export * from './header-cell.d';
3
+ export * from './sort-status.d';
@@ -0,0 +1,2 @@
1
+ export * from './sort-variant';
2
+ export * from './table-variant';
@@ -0,0 +1,6 @@
1
+ export type TableSortVariant = typeof TableSortVariant[keyof typeof TableSortVariant];
2
+ export declare const TableSortVariant: {
3
+ readonly UNSORTED: "unsorted";
4
+ readonly ASC: "asc";
5
+ readonly DESC: "desc";
6
+ };
@@ -0,0 +1,5 @@
1
+ export type TableVariant = typeof TableVariant[keyof typeof TableVariant];
2
+ export declare const TableVariant: {
3
+ readonly DEFAULT: "default";
4
+ readonly STRIPED: "striped";
5
+ };
@@ -0,0 +1,29 @@
1
+ import { EventEmitter, OnInit, QueryList } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { HeaderTitleComponent } from './components/header-title/header-title.component';
4
+ import { SortStatus, TableHeaderCell } from './interfaces';
5
+ import { TableVariant } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TableComponent<T> implements OnInit {
8
+ private readonly takeUntilDestroyed;
9
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
10
+ variant?: TableVariant | null;
11
+ data: T[];
12
+ headerData: TableHeaderCell[];
13
+ form: FormGroup;
14
+ readonly sorted: EventEmitter<SortStatus>;
15
+ readonly filtered: EventEmitter<{
16
+ [key: string]: string;
17
+ }>;
18
+ readonly checked: EventEmitter<{
19
+ column: string;
20
+ check: boolean;
21
+ }>;
22
+ headers: QueryList<HeaderTitleComponent>;
23
+ ngOnInit(): void;
24
+ clearSort(): void;
25
+ private formListener;
26
+ private setHeaderData;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "table[odxTable]", never, { "variant": "variant"; "data": "data"; "headerData": "headerData"; }, { "sorted": "sorted"; "filtered": "filtered"; "checked": "checked"; }, never, ["tr"], true, never>;
29
+ }
@@ -0,0 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { TableBodyCell } from './interfaces';
3
+ import { TableComponent } from './table.component';
4
+ export declare const TABLE: InjectionToken<TableComponent<TableBodyCell>>;
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./table.component";
3
+ import * as i2 from "./directives/table-row.directive";
4
+ import * as i3 from "./directives/table-cell.directive";
5
+ import * as i4 from "./components/check-cell/check-cell.component";
6
+ import * as i5 from "@odx/angular";
7
+ export declare class TableModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, never, [typeof i1.TableComponent, typeof i2.TableRowDirective, typeof i3.TableCellDirective, typeof i4.CheckCellComponent], [typeof i5.CoreModule, typeof i1.TableComponent, typeof i2.TableRowDirective, typeof i3.TableCellDirective, typeof i4.CheckCellComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
11
+ }
@@ -0,0 +1,3 @@
1
+ # @odx/angular/components/wizard
2
+
3
+ Secondary entry point of `@odx/angular`. It can be used by importing from `@odx/angular/components/wizard`.
@@ -0,0 +1,3 @@
1
+ export * from './lib/components';
2
+ export * from './lib/wizard.component';
3
+ export * from './lib/wizard.module';
@@ -0,0 +1 @@
1
+ export * from './wizard-step/wizard-step.component';
@@ -0,0 +1,17 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@odx/angular";
4
+ export declare class WizardStepComponent {
5
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
6
+ readonly stepChosen$: Subject<WizardStepComponent>;
7
+ isLastTouched: boolean;
8
+ active: boolean;
9
+ passed: boolean;
10
+ visible: boolean;
11
+ valid: boolean;
12
+ touched: boolean;
13
+ setValid(state: boolean): void;
14
+ protected chooseStep(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "odx-wizard-step", never, { "valid": "valid"; }, {}, never, ["*"], true, [{ directive: typeof i1.WithTabIndex; inputs: {}; outputs: {}; }, { directive: typeof i1.WithDisabledState; inputs: {}; outputs: {}; }]>;
17
+ }
@@ -0,0 +1,31 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, EventEmitter } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class WizardComponent implements AfterViewInit {
5
+ static ngAcceptInputType_vertical: BooleanInput;
6
+ private readonly steps;
7
+ private readonly destroyed;
8
+ private readonly renderer;
9
+ private visibleStepsSegments;
10
+ private readonly dottedLineStart;
11
+ private readonly dottedLineEnd;
12
+ private readonly windowRef;
13
+ private activeStep;
14
+ readonly element: import("@angular/core").ElementRef<HTMLElement>;
15
+ vertical: boolean;
16
+ activeStepChanged: EventEmitter<number>;
17
+ ngAfterViewInit(): void;
18
+ nextStep(): void;
19
+ previousStep(): void;
20
+ setActiveStepValid(): void;
21
+ private calculateVisibleStepsSegments;
22
+ private getStyleFromCSS;
23
+ private setActiveStep;
24
+ private clickStepSubscriber;
25
+ private changeStepHandler;
26
+ private setHiddenSteps;
27
+ private isNeighbors;
28
+ private setDottedLineActive;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "odx-wizard", never, { "vertical": "vertical"; }, { "activeStepChanged": "activeStepChanged"; }, ["steps"], ["odx-wizard-step"], true, never>;
31
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./wizard.component";
3
+ import * as i2 from "./components/wizard-step/wizard-step.component";
4
+ import * as i3 from "@odx/angular";
5
+ export declare class WizardModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WizardModule, never, [typeof i1.WizardComponent, typeof i2.WizardStepComponent], [typeof i3.CoreModule, typeof i1.WizardComponent, typeof i2.WizardStepComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<WizardModule>;
9
+ }
@@ -0,0 +1,8 @@
1
+ export * from './lib/breakpoints.config';
2
+ export * from './lib/breakpoints.module';
3
+ export * from './lib/breakpoints.service';
4
+ export * from './lib/breakpoints.typings';
5
+ export * from './lib/directives';
6
+ export * from './lib/helpers';
7
+ export * from './lib/models';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2JyZWFrcG9pbnRzLmNvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9icmVha3BvaW50cy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvYnJlYWtwb2ludHMuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9icmVha3BvaW50cy50eXBpbmdzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvaGVscGVycyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2RlbHMnO1xuIl19
@@ -0,0 +1,13 @@
1
+ import { createConfigTokens } from '@odx/angular/utils';
2
+ import { configureBreakpoint } from './helpers/configure-breakpoint';
3
+ export const DEFAULT_BREAKPOINTS = {
4
+ ...configureBreakpoint('phone-s', 360, 480),
5
+ ...configureBreakpoint('phone', 480, 768),
6
+ ...configureBreakpoint('tablet', 768, 960),
7
+ ...configureBreakpoint('desktop-s', 960, 1200),
8
+ ...configureBreakpoint('desktop', 1200, 9999),
9
+ };
10
+ export const { BreakpointsConfig, BreakpointsDefaultConfig, injectBreakpointsConfig, provideBreakpointsConfig } = createConfigTokens('Breakpoints', '@odx/angular/breakpoints', {
11
+ breakpoints: DEFAULT_BREAKPOINTS,
12
+ });
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludHMuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi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wb2ludCc7XG5cbmV4cG9ydCBjb25zdCBERUZBVUxUX0JSRUFLUE9JTlRTID0ge1xuICAuLi5jb25maWd1cmVCcmVha3BvaW50KCdwaG9uZS1zJywgMzYwLCA0ODApLFxuICAuLi5jb25maWd1cmVCcmVha3BvaW50KCdwaG9uZScsIDQ4MCwgNzY4KSxcbiAgLi4uY29uZmlndXJlQnJlYWtwb2ludCgndGFibGV0JywgNzY4LCA5NjApLFxuICAuLi5jb25maWd1cmVCcmVha3BvaW50KCdkZXNrdG9wLXMnLCA5NjAsIDEyMDApLFxuICAuLi5jb25maWd1cmVCcmVha3BvaW50KCdkZXNrdG9wJywgMTIwMCwgOTk5OSksXG59IGFzIGNvbnN0O1xuXG5leHBvcnQgaW50ZXJmYWNlIEJyZWFrcG9pbnRzQ29uZmlnIHtcbiAgYnJlYWtwb2ludHM6IFBhcnRpYWw8T2R4QW5ndWxhci5CcmVha3BvaW50cz47XG59XG5cbmV4cG9ydCBjb25zdCB7IEJyZWFrcG9pbnRzQ29uZmlnLCBCcmVha3BvaW50c0RlZmF1bHRDb25maWcsIGluamVjdEJyZWFrcG9pbnRzQ29uZmlnLCBwcm92aWRlQnJlYWtwb2ludHNDb25maWcgfSA9IGNyZWF0ZUNvbmZpZ1Rva2VucyhcbiAgJ0JyZWFrcG9pbnRzJyxcbiAgJ0BvZHgvYW5ndWxhci9icmVha3BvaW50cycsXG4gIHtcbiAgICBicmVha3BvaW50czogREVGQVVMVF9CUkVBS1BPSU5UUyxcbiAgfSBhcyBCcmVha3BvaW50c0NvbmZpZ1xuKTtcbiJdfQ==
@@ -0,0 +1,17 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { MatchBreakpointsDirective } from './directives';
3
+ import * as i0 from "@angular/core";
4
+ const modules = [MatchBreakpointsDirective];
5
+ export class BreakpointsModule {
6
+ }
7
+ BreakpointsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ BreakpointsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsModule, imports: [MatchBreakpointsDirective], exports: [MatchBreakpointsDirective] });
9
+ BreakpointsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsModule });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsModule, decorators: [{
11
+ type: NgModule,
12
+ args: [{
13
+ imports: modules,
14
+ exports: modules,
15
+ }]
16
+ }] });
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2JyZWFrcG9pbnRzL3NyYy9saWIvYnJlYWtwb2ludHMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sY0FBYyxDQUFDOztBQUV6RCxNQUFNLE9BQU8sR0FBRyxDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFNNUMsTUFBTSxPQUFPLGlCQUFpQjs7OEdBQWpCLGlCQUFpQjsrR0FBakIsaUJBQWlCLFlBTmIseUJBQXlCLGFBQXpCLHlCQUF5QjsrR0FNN0IsaUJBQWlCOzJGQUFqQixpQkFBaUI7a0JBSjdCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLE9BQU87b0JBQ2hCLE9BQU8sRUFBRSxPQUFPO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNYXRjaEJyZWFrcG9pbnRzRGlyZWN0aXZlIH0gZnJvbSAnLi9kaXJlY3RpdmVzJztcblxuY29uc3QgbW9kdWxlcyA9IFtNYXRjaEJyZWFrcG9pbnRzRGlyZWN0aXZlXTtcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogbW9kdWxlcyxcbiAgZXhwb3J0czogbW9kdWxlcyxcbn0pXG5leHBvcnQgY2xhc3MgQnJlYWtwb2ludHNNb2R1bGUge31cbiJdfQ==
@@ -0,0 +1,34 @@
1
+ import { BreakpointObserver } from '@angular/cdk/layout';
2
+ import { inject, Injectable } from '@angular/core';
3
+ import { distinctUntilChanged, map, of, shareReplay } from 'rxjs';
4
+ import { injectBreakpointsConfig } from './breakpoints.config';
5
+ import * as i0 from "@angular/core";
6
+ export class BreakpointsService {
7
+ constructor() {
8
+ this.breakpointObserver = inject(BreakpointObserver);
9
+ this.config = injectBreakpointsConfig();
10
+ }
11
+ observe(breakpoints) {
12
+ const mediaQueries = this.getMediaQueries(breakpoints);
13
+ return this.createBreakpointObserver(mediaQueries);
14
+ }
15
+ matches(breakpoints) {
16
+ const mediaQueries = this.getMediaQueries(breakpoints);
17
+ return this.breakpointObserver.isMatched(mediaQueries);
18
+ }
19
+ getMediaQueries(breakpointNames) {
20
+ return breakpointNames.map((name) => this.config.breakpoints[name]).filter(Boolean);
21
+ }
22
+ createBreakpointObserver(mediaQueries) {
23
+ if (mediaQueries.length < 1)
24
+ return of(false);
25
+ return this.breakpointObserver.observe(mediaQueries).pipe(map(({ matches }) => matches), distinctUntilChanged(), shareReplay({ refCount: true }));
26
+ }
27
+ }
28
+ BreakpointsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
29
+ BreakpointsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsService, providedIn: 'root' });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreakpointsService, decorators: [{
31
+ type: Injectable,
32
+ args: [{ providedIn: 'root' }]
33
+ }] });
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludHMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci9icmVha3BvaW50cy9zcmMvbGliL2JyZWFrcG9pbnRzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLEdBQUcsRUFBYyxFQUFFLEVBQUUsV0FBVyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzlFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQUkvRCxNQUFNLE9BQU8sa0JBQWtCO0lBRC9CO1FBRW1CLHVCQUFrQixHQUFHLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO1FBQ2hELFdBQU0sR0FBRyx1QkFBdUIsRUFBRSxDQUFDO0tBMkJyRDtJQXpCUSxPQUFPLENBQUMsV0FBNkI7UUFDMUMsTUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUV2RCxPQUFPLElBQUksQ0FBQyx3QkFBd0IsQ0FBQyxZQUFZLENBQUMsQ0FBQztJQUNyRCxDQUFDO0lBRU0sT0FBT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Y2xhcmUgZ2xvYmFsIHtcbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1uYW1lc3BhY2VcbiAgbmFtZXNwYWNlIE9keEFuZ3VsYXIge1xuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZW1wdHktaW50ZXJmYWNlXG4gICAgZXhwb3J0IGludGVyZmFjZSBCcmVha3BvaW50cyBleHRlbmRzIFJlY29yZDxrZXlvZiB0eXBlb2YgREVGQVVMVF9CUkVBS1BPSU5UUywgc3RyaW5nPiB7fVxuICB9XG59XG5cbmV4cG9ydCB7fTtcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './match-breakpoints.directive';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL2xpYi9kaXJlY3RpdmVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21hdGNoLWJyZWFrcG9pbnRzLmRpcmVjdGl2ZSc7XG4iXX0=
@@ -0,0 +1,48 @@
1
+ import { coerceArray } from '@angular/cdk/coercion';
2
+ import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import { untilDestroyed } from '@odx/angular/utils';
4
+ import { BehaviorSubject, switchMap, tap } from 'rxjs';
5
+ import { BreakpointsService } from '../breakpoints.service';
6
+ import * as i0 from "@angular/core";
7
+ export class MatchBreakpointsDirective {
8
+ constructor() {
9
+ this.breakpoints$$ = new BehaviorSubject([]);
10
+ this.breakpointsService = inject(BreakpointsService);
11
+ this.takeUntilDestroyed = untilDestroyed();
12
+ this.template = inject(TemplateRef);
13
+ this.viewContainer = inject(ViewContainerRef);
14
+ // eslint-disable-next-line @angular-eslint/no-input-rename
15
+ this.elseTemplate = null;
16
+ }
17
+ set breakpoints(value) {
18
+ this.breakpoints$$.next(coerceArray(value ?? []));
19
+ }
20
+ ngOnInit() {
21
+ this.breakpoints$$
22
+ .pipe(switchMap((breakpoints) => this.breakpointsService.observe(breakpoints)), tap((matchesBreakpoints) => this.render(matchesBreakpoints)), this.takeUntilDestroyed())
23
+ .subscribe();
24
+ }
25
+ render(matchesBreakpoints) {
26
+ this.viewContainer.clear();
27
+ const template = matchesBreakpoints ? this.template : this.elseTemplate;
28
+ if (template) {
29
+ this.viewContainer.createEmbeddedView(template);
30
+ }
31
+ }
32
+ }
33
+ MatchBreakpointsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchBreakpointsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
34
+ MatchBreakpointsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MatchBreakpointsDirective, isStandalone: true, selector: "ng-template[odxMatchBreakpoints]", inputs: { breakpoints: ["odxMatchBreakpoints", "breakpoints"], elseTemplate: ["odxMatchBreakpointsElse", "elseTemplate"] }, ngImport: i0 });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchBreakpointsDirective, decorators: [{
36
+ type: Directive,
37
+ args: [{
38
+ standalone: true,
39
+ selector: 'ng-template[odxMatchBreakpoints]',
40
+ }]
41
+ }], propDecorators: { breakpoints: [{
42
+ type: Input,
43
+ args: ['odxMatchBreakpoints']
44
+ }], elseTemplate: [{
45
+ type: Input,
46
+ args: ['odxMatchBreakpointsElse']
47
+ }] } });
48
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW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RlbXBsYXRlO1xuICAgIGlmICh0ZW1wbGF0ZSkge1xuICAgICAgdGhpcy52aWV3Q29udGFpbmVyLmNyZWF0ZUVtYmVkZGVkVmlldyh0ZW1wbGF0ZSk7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -0,0 +1,8 @@
1
+ export function configureBreakpoint(name, min, max) {
2
+ return {
3
+ [`<${name}`]: `(max-width: ${min - 1}px)`,
4
+ [`=${name}`]: `(min-width: ${min}px) and (max-width: ${max - 1}px)`,
5
+ [`>${name}`]: `(min-width: ${min}px)`,
6
+ };
7
+ }
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJlLWJyZWFrcG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL2xpYi9oZWxwZXJzL2NvbmZpZ3VyZS1icmVha3BvaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE1BQU0sVUFBVSxtQkFBbUIsQ0FBbUIsSUFBTyxFQUFFLEdBQVcsRUFBRSxHQUFXO0lBQ3JGLE9BQU87UUFDTCxDQUFDLElBQUksSUFBSSxFQUFXLENBQUMsRUFBRSxlQUFlLEdBQUcsR0FBRyxDQUFDLEtBQUs7UUFDbEQsQ0FBQyxJQUFJLElBQUksRUFBVyxDQUFDLEVBQUUsZUFBZSxHQUFHLHVCQUF1QixHQUFHLEdBQUcsQ0FBQyxLQUFLO1FBQzVFLENBQUMsSUFBSSxJQUFJLEVBQVcsQ0FBQyxFQUFFLGVBQWUsR0FBRyxLQUFLO0tBQ3hCLENBQUM7QUFDM0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbInR5cGUgQnJlYWtwb2ludE9wZXJhdG9ycyA9ICc8JyB8ICc9JyB8ICc+JztcbnR5cGUgQnJlYWtwb2ludENvbmZpZzxUIGV4dGVuZHMgc3RyaW5nPiA9IFJlY29yZDxgJHtCcmVha3BvaW50T3BlcmF0b3JzfSR7VH1gLCBzdHJpbmc+O1xuXG5leHBvcnQgZnVuY3Rpb24gY29uZmlndXJlQnJlYWtwb2ludDxUIGV4dGVuZHMgc3RyaW5nPihuYW1lOiBULCBtaW46IG51bWJlciwgbWF4OiBudW1iZXIpOiBCcmVha3BvaW50Q29uZmlnPFQ+IHtcbiAgcmV0dXJuIHtcbiAgICBbYDwke25hbWV9YCBhcyBjb25zdF06IGAobWF4LXdpZHRoOiAke21pbiAtIDF9cHgpYCxcbiAgICBbYD0ke25hbWV9YCBhcyBjb25zdF06IGAobWluLXdpZHRoOiAke21pbn1weCkgYW5kIChtYXgtd2lkdGg6ICR7bWF4IC0gMX1weClgLFxuICAgIFtgPiR7bmFtZX1gIGFzIGNvbnN0XTogYChtaW4td2lkdGg6ICR7bWlufXB4KWAsXG4gIH0gYXMgQnJlYWtwb2ludENvbmZpZzxUPjtcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './configure-breakpoint';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL2xpYi9oZWxwZXJzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbmZpZ3VyZS1icmVha3BvaW50JztcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci9icmVha3BvaW50cy9zcmMvbGliL21vZGVscy9icmVha3BvaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBCcmVha3BvaW50TmFtZSA9IGtleW9mIE9keEFuZ3VsYXIuQnJlYWtwb2ludHM7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQnJlYWtwb2ludCB7XG4gIG1pbjogbnVtYmVyO1xuICBtYXg6IG51bWJlcjtcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './breakpoint';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL2xpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2JyZWFrcG9pbnQnO1xuIl19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2R4LWFuZ3VsYXItYnJlYWtwb2ludHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWtwb2ludHMvc3JjL29keC1hbmd1bGFyLWJyZWFrcG9pbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -0,0 +1,4 @@
1
+ export * from './lib/abstract';
2
+ export * from './lib/autocomplete-control';
3
+ export * from './lib/pipes';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2F1dG9jb21wbGV0ZS1jb250cm9sL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9hYnN0cmFjdCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hdXRvY29tcGxldGUtY29udHJvbCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9waXBlcyc7XG4iXX0=
@@ -0,0 +1,38 @@
1
+ import { Directive } from '@angular/core';
2
+ import { injectElement, untilDestroyed } from '@odx/angular/utils';
3
+ import { distinctUntilChanged, fromEvent, map } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export class BaseSearchFieldDirective {
6
+ constructor() {
7
+ this.takeUntilDestroyed = untilDestroyed();
8
+ this.element = injectElement();
9
+ this.valueChange$ = fromEvent(this.element.nativeElement, 'input').pipe(distinctUntilChanged(), map(() => this.nativeElementValue), this.takeUntilDestroyed());
10
+ }
11
+ get nativeElementValue() {
12
+ return this.element.nativeElement.value;
13
+ }
14
+ set nativeElementValue(value) {
15
+ this.element.nativeElement.value = value;
16
+ }
17
+ focus() {
18
+ this.element.nativeElement.focus();
19
+ }
20
+ blur() {
21
+ this.element.nativeElement.blur();
22
+ }
23
+ reset() {
24
+ this.element.nativeElement.value = '';
25
+ }
26
+ }
27
+ BaseSearchFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseSearchFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
28
+ BaseSearchFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: BaseSearchFieldDirective, isStandalone: true, host: { properties: { "class.odx-form-field-control": "true" } }, ngImport: i0 });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseSearchFieldDirective, decorators: [{
30
+ type: Directive,
31
+ args: [{
32
+ standalone: true,
33
+ host: {
34
+ '[class.odx-form-field-control]': 'true',
35
+ },
36
+ }]
37
+ }] });
38
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1zZWFyY2gtZmllbGQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2Nkay9hdXRvY29tcGxldGUtY29udHJvbC9zcmMvbGliL2Fic3RyYWN0L2Jhc2Utc2VhcmNoLWZpZWxkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxhQUFhLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDbkUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBUTVELE1BQU0sT0FBZ0Isd0JBQXdCO0lBTjlDO1FBT3FCLHV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gICAgdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQudmFsdWUgPSB2YWx1ZTtcbiAgfVxuXG4gIHB1YmxpYyBmb2N1cygpOiB2b2lkIHtcbiAgICB0aGlzLmVsZW1lbnQubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICB9XG5cbiAgcHVibGljIGJsdXIoKTogdm9pZCB7XG4gICAgdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuYmx1cigpO1xuICB9XG5cbiAgcHVibGljIHJlc2V0KCk6IHZvaWQge1xuICAgIHRoaXMuZWxlbWVudC5uYXRpdmVFbGVtZW50LnZhbHVlID0gJyc7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './base-search-field.directive';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2F1dG9jb21wbGV0ZS1jb250cm9sL3NyYy9saWIvYWJzdHJhY3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFzZS1zZWFyY2gtZmllbGQuZGlyZWN0aXZlJztcbiJdfQ==