@fundamental-ngx/cdk 0.38.3-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/README.md +89 -0
  2. package/data-source/README.md +7 -0
  3. package/data-source/base/abstract-data-provider.class.d.ts +43 -0
  4. package/data-source/base/base-data-source.class.d.ts +57 -0
  5. package/data-source/data-source.directive.d.ts +47 -0
  6. package/data-source/data-source.module.d.ts +7 -0
  7. package/data-source/helpers/apply-datasource-directive.d.ts +6 -0
  8. package/data-source/helpers/common.d.ts +7 -0
  9. package/data-source/helpers/is-datasource.d.ts +5 -0
  10. package/data-source/index.d.ts +8 -0
  11. package/data-source/models/data-source-provider.d.ts +23 -0
  12. package/data-source/models/data-source.d.ts +16 -0
  13. package/data-source/models/index.d.ts +3 -0
  14. package/data-source/models/matching-strategy.d.ts +10 -0
  15. package/data-source/tokens.d.ts +6 -0
  16. package/esm2020/data-source/base/abstract-data-provider.class.mjs +126 -0
  17. package/esm2020/data-source/base/base-data-source.class.mjs +99 -0
  18. package/esm2020/data-source/data-source.directive.mjs +96 -0
  19. package/esm2020/data-source/data-source.module.mjs +16 -0
  20. package/esm2020/data-source/fundamental-ngx-cdk-data-source.mjs +5 -0
  21. package/esm2020/data-source/helpers/apply-datasource-directive.mjs +7 -0
  22. package/esm2020/data-source/helpers/common.mjs +17 -0
  23. package/esm2020/data-source/helpers/is-datasource.mjs +7 -0
  24. package/esm2020/data-source/index.mjs +9 -0
  25. package/esm2020/data-source/models/data-source-provider.mjs +2 -0
  26. package/esm2020/data-source/models/data-source.mjs +2 -0
  27. package/esm2020/data-source/models/index.mjs +4 -0
  28. package/esm2020/data-source/models/matching-strategy.mjs +7 -0
  29. package/esm2020/data-source/tokens.mjs +6 -0
  30. package/esm2020/forms/cva/cva-control.class.mjs +43 -0
  31. package/esm2020/forms/cva/cva.directive.mjs +309 -0
  32. package/esm2020/forms/forms.module.mjs +16 -0
  33. package/esm2020/forms/fundamental-ngx-cdk-forms.mjs +5 -0
  34. package/esm2020/forms/helpers/state.mjs +6 -0
  35. package/esm2020/forms/index.mjs +13 -0
  36. package/esm2020/forms/models/cva.mjs +2 -0
  37. package/esm2020/forms/models/form-error.mjs +2 -0
  38. package/esm2020/forms/models/form-field-control.mjs +2 -0
  39. package/esm2020/forms/models/form-field.mjs +9 -0
  40. package/esm2020/forms/models/form-state.mjs +2 -0
  41. package/esm2020/forms/models/select-item.mjs +14 -0
  42. package/esm2020/forms/tokens/form-field-control.token.mjs +3 -0
  43. package/esm2020/forms/tokens/form-field.token.mjs +3 -0
  44. package/esm2020/fundamental-ngx-cdk.mjs +5 -0
  45. package/esm2020/fundamental-ngx.module.mjs +19 -0
  46. package/esm2020/public_api.mjs +5 -0
  47. package/esm2020/utils/abstract-fd-ngx-class.mjs +56 -0
  48. package/esm2020/utils/coercion/array.mjs +7 -0
  49. package/esm2020/utils/consts/error-messages.mjs +6 -0
  50. package/esm2020/utils/consts/index.mjs +5 -0
  51. package/esm2020/utils/consts/overflow-priority-score.mjs +8 -0
  52. package/esm2020/utils/consts/unicode-letters.regex.mjs +11 -0
  53. package/esm2020/utils/consts/unicode-numbers.regex.mjs +8 -0
  54. package/esm2020/utils/datatypes/color-accent.datatype.mjs +2 -0
  55. package/esm2020/utils/datatypes/hash.datatype.mjs +2 -0
  56. package/esm2020/utils/datatypes/index.mjs +4 -0
  57. package/esm2020/utils/datatypes/size.datatype.mjs +2 -0
  58. package/esm2020/utils/decorators/apply-css-class.decorator.mjs +60 -0
  59. package/esm2020/utils/decorators/apply-css-style.decorator.mjs +28 -0
  60. package/esm2020/utils/decorators/coerce-boolean.mjs +7 -0
  61. package/esm2020/utils/decorators/coerce-css-pixel.mjs +4 -0
  62. package/esm2020/utils/decorators/index.mjs +6 -0
  63. package/esm2020/utils/decorators/setter-alternator.mjs +18 -0
  64. package/esm2020/utils/deprecated-selector.class.mjs +20 -0
  65. package/esm2020/utils/directives/auto-complete/auto-complete.directive.mjs +136 -0
  66. package/esm2020/utils/directives/auto-complete/auto-complete.module.mjs +17 -0
  67. package/esm2020/utils/directives/clicked/clicked-behavior.module.mjs +45 -0
  68. package/esm2020/utils/directives/clicked/clicked-event.plugin.mjs +74 -0
  69. package/esm2020/utils/directives/clicked/clicked.directive.mjs +52 -0
  70. package/esm2020/utils/directives/clicked/fdk-clicked-provider.service.mjs +49 -0
  71. package/esm2020/utils/directives/clicked/index.mjs +4 -0
  72. package/esm2020/utils/directives/disabled/default-disabled-view-modifier.mjs +12 -0
  73. package/esm2020/utils/directives/disabled/disabled-behavior.directive.mjs +102 -0
  74. package/esm2020/utils/directives/disabled/disabled-behavior.interface.mjs +2 -0
  75. package/esm2020/utils/directives/disabled/disabled-behavior.module.mjs +16 -0
  76. package/esm2020/utils/directives/disabled/disabled-view-modifier.interface.mjs +2 -0
  77. package/esm2020/utils/directives/disabled/disabled.observer.mjs +35 -0
  78. package/esm2020/utils/directives/disabled/fdk-disabled-provider.service.mjs +101 -0
  79. package/esm2020/utils/directives/disabled/fdk-disabled.token.mjs +3 -0
  80. package/esm2020/utils/directives/disabled/index.mjs +9 -0
  81. package/esm2020/utils/directives/disabled/set-disabled-state.mjs +16 -0
  82. package/esm2020/utils/directives/focus-key-manager/focus-key-manager-helpers.module.mjs +33 -0
  83. package/esm2020/utils/directives/focus-key-manager/focus-key-manager-item.directive.mjs +98 -0
  84. package/esm2020/utils/directives/focus-key-manager/focus-key-manager-list.directive.mjs +113 -0
  85. package/esm2020/utils/directives/focus-key-manager/focus-key-manager.tokens.mjs +3 -0
  86. package/esm2020/utils/directives/focus-key-manager/index.mjs +5 -0
  87. package/esm2020/utils/directives/focusable-item/default-focusable-item-view-modifier.mjs +14 -0
  88. package/esm2020/utils/directives/focusable-item/fdk-focusable-item-provider.service.mjs +97 -0
  89. package/esm2020/utils/directives/focusable-item/focusable-item-view-modifier.interface.mjs +2 -0
  90. package/esm2020/utils/directives/focusable-item/focusable-item.directive.mjs +106 -0
  91. package/esm2020/utils/directives/focusable-item/focusable-item.module.mjs +16 -0
  92. package/esm2020/utils/directives/focusable-item/focusable.observer.mjs +47 -0
  93. package/esm2020/utils/directives/focusable-item/focusable.tokens.mjs +3 -0
  94. package/esm2020/utils/directives/focusable-item/index.mjs +9 -0
  95. package/esm2020/utils/directives/focusable-item/is-element-focusable-by-default.mjs +32 -0
  96. package/esm2020/utils/directives/focusable-item/set-focusable.mjs +12 -0
  97. package/esm2020/utils/directives/focusable-list/focusable-list.directive.mjs +79 -0
  98. package/esm2020/utils/directives/focusable-list/focusable-list.module.mjs +17 -0
  99. package/esm2020/utils/directives/focusable-list/focusable-list.service.mjs +54 -0
  100. package/esm2020/utils/directives/focusable-list/index.mjs +4 -0
  101. package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +79 -0
  102. package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +16 -0
  103. package/esm2020/utils/directives/ignore-click-on-selection/tokens.mjs +3 -0
  104. package/esm2020/utils/directives/index.mjs +31 -0
  105. package/esm2020/utils/directives/initial-focus/initial-focus.directive.mjs +117 -0
  106. package/esm2020/utils/directives/initial-focus/initial-focus.module.mjs +16 -0
  107. package/esm2020/utils/directives/line-clamp/line-clamp.directive.mjs +263 -0
  108. package/esm2020/utils/directives/line-clamp/line-clamp.module.mjs +32 -0
  109. package/esm2020/utils/directives/only-digits/only-digits.directive.mjs +218 -0
  110. package/esm2020/utils/directives/only-digits/only-digits.module.mjs +16 -0
  111. package/esm2020/utils/directives/overflow-list/overflow-list-item.directive.mjs +42 -0
  112. package/esm2020/utils/directives/overflow-list/overflow-list.directive.mjs +140 -0
  113. package/esm2020/utils/directives/overflow-list/overflow-list.module.mjs +33 -0
  114. package/esm2020/utils/directives/readonly/default-readonly-view-modifier.mjs +12 -0
  115. package/esm2020/utils/directives/readonly/fdk-readonly-provider.service.mjs +102 -0
  116. package/esm2020/utils/directives/readonly/fdk-readonly.token.mjs +3 -0
  117. package/esm2020/utils/directives/readonly/index.mjs +10 -0
  118. package/esm2020/utils/directives/readonly/readonly-behavior.directive.mjs +97 -0
  119. package/esm2020/utils/directives/readonly/readonly-behavior.interface.mjs +2 -0
  120. package/esm2020/utils/directives/readonly/readonly-behavior.module.mjs +16 -0
  121. package/esm2020/utils/directives/readonly/readonly-view-modifier.interface.mjs +2 -0
  122. package/esm2020/utils/directives/readonly/readonly.observer.mjs +33 -0
  123. package/esm2020/utils/directives/readonly/set-readonly-state.mjs +14 -0
  124. package/esm2020/utils/directives/repeat/repeat.directive.mjs +65 -0
  125. package/esm2020/utils/directives/repeat/repeat.module.mjs +16 -0
  126. package/esm2020/utils/directives/resize/resize-handle.directive.mjs +42 -0
  127. package/esm2020/utils/directives/resize/resize.directive.mjs +231 -0
  128. package/esm2020/utils/directives/resize/resize.module.mjs +17 -0
  129. package/esm2020/utils/directives/selectable-list/index.mjs +8 -0
  130. package/esm2020/utils/directives/selectable-list/select-component-root.token.mjs +3 -0
  131. package/esm2020/utils/directives/selectable-list/selectable-item.directive.mjs +147 -0
  132. package/esm2020/utils/directives/selectable-list/selectable-item.token.mjs +3 -0
  133. package/esm2020/utils/directives/selectable-list/selectable-list.directive.mjs +93 -0
  134. package/esm2020/utils/directives/selectable-list/selectable-list.module.mjs +17 -0
  135. package/esm2020/utils/directives/selectable-list/selectable-list.tokens.mjs +3 -0
  136. package/esm2020/utils/directives/selectable-list/selection.service.mjs +135 -0
  137. package/esm2020/utils/directives/template/template.directive.mjs +49 -0
  138. package/esm2020/utils/directives/template/template.module.mjs +16 -0
  139. package/esm2020/utils/directives/truncate/truncate.directive.mjs +96 -0
  140. package/esm2020/utils/directives/truncate/truncate.module.mjs +16 -0
  141. package/esm2020/utils/drag-and-drop/dnd-item/dnd-item.directive.mjs +255 -0
  142. package/esm2020/utils/drag-and-drop/dnd-keyboard-group/dnd-keyboard-group.directive.mjs +88 -0
  143. package/esm2020/utils/drag-and-drop/dnd-keyboard-item/dnd-keyboard-item.directive.mjs +83 -0
  144. package/esm2020/utils/drag-and-drop/dnd-list/dnd-list.directive.mjs +220 -0
  145. package/esm2020/utils/drag-and-drop/dnd.interfaces.mjs +2 -0
  146. package/esm2020/utils/drag-and-drop/drag-and-drop.module.mjs +22 -0
  147. package/esm2020/utils/drag-and-drop/index.mjs +8 -0
  148. package/esm2020/utils/drag-and-drop/tokens.mjs +4 -0
  149. package/esm2020/utils/dynamic-component/dynamic-component-config.mjs +2 -0
  150. package/esm2020/utils/dynamic-component/dynamic-component-container.mjs +21 -0
  151. package/esm2020/utils/dynamic-component/dynamic-component-injector.mjs +20 -0
  152. package/esm2020/utils/dynamic-component/dynamic-component.service.mjs +90 -0
  153. package/esm2020/utils/dynamic-component/index.mjs +5 -0
  154. package/esm2020/utils/functions/consumer-provider-factory.mjs +12 -0
  155. package/esm2020/utils/functions/element-size.mjs +23 -0
  156. package/esm2020/utils/functions/get-document-font-size.mjs +5 -0
  157. package/esm2020/utils/functions/index.mjs +13 -0
  158. package/esm2020/utils/functions/intersection-observable.mjs +26 -0
  159. package/esm2020/utils/functions/is-compact-density.mjs +11 -0
  160. package/esm2020/utils/functions/key-util.mjs +77 -0
  161. package/esm2020/utils/functions/module-deprecations-provider.mjs +18 -0
  162. package/esm2020/utils/functions/parser-file-size.mjs +37 -0
  163. package/esm2020/utils/functions/random-color-accent.mjs +5 -0
  164. package/esm2020/utils/functions/resize-observable.mjs +33 -0
  165. package/esm2020/utils/functions/scroll.mjs +19 -0
  166. package/esm2020/utils/functions/uuidv4-generator.mjs +12 -0
  167. package/esm2020/utils/fundamental-ngx-cdk-utils.mjs +5 -0
  168. package/esm2020/utils/helpers/get-native-element.mjs +18 -0
  169. package/esm2020/utils/helpers/index.mjs +3 -0
  170. package/esm2020/utils/helpers/range-selector.mjs +117 -0
  171. package/esm2020/utils/index.mjs +19 -0
  172. package/esm2020/utils/interfaces/content-density.mjs +2 -0
  173. package/esm2020/utils/interfaces/css-class-builder.interface.mjs +2 -0
  174. package/esm2020/utils/interfaces/css-style-builder.interface.mjs +2 -0
  175. package/esm2020/utils/interfaces/has-element-ref.interface.mjs +2 -0
  176. package/esm2020/utils/interfaces/index.mjs +8 -0
  177. package/esm2020/utils/interfaces/keyboard-support-item.interface.mjs +2 -0
  178. package/esm2020/utils/interfaces/module-deprecation.interface.mjs +2 -0
  179. package/esm2020/utils/interfaces/require.interface.mjs +2 -0
  180. package/esm2020/utils/list-item/list-item-utils.mjs +3 -0
  181. package/esm2020/utils/models/nullable.mjs +2 -0
  182. package/esm2020/utils/pipes/displayFn.pipe.mjs +17 -0
  183. package/esm2020/utils/pipes/filter-strings.pipe.mjs +30 -0
  184. package/esm2020/utils/pipes/index.mjs +10 -0
  185. package/esm2020/utils/pipes/is-compact.pipe.mjs +16 -0
  186. package/esm2020/utils/pipes/pipe.module.mjs +55 -0
  187. package/esm2020/utils/pipes/safe.pipe.mjs +36 -0
  188. package/esm2020/utils/pipes/search-highlight.pipe.mjs +31 -0
  189. package/esm2020/utils/pipes/truncate.pipe.mjs +17 -0
  190. package/esm2020/utils/pipes/two-digits.pipe.mjs +22 -0
  191. package/esm2020/utils/pipes/value-by-path.pipe.mjs +16 -0
  192. package/esm2020/utils/services/content-density.service.mjs +34 -0
  193. package/esm2020/utils/services/destroyed.service.mjs +20 -0
  194. package/esm2020/utils/services/focus-trap.service.mjs +92 -0
  195. package/esm2020/utils/services/index.mjs +11 -0
  196. package/esm2020/utils/services/keyboard-support/keyboard-support.service.mjs +73 -0
  197. package/esm2020/utils/services/local-storage.service.mjs +38 -0
  198. package/esm2020/utils/services/observers/attribute.observer.mjs +81 -0
  199. package/esm2020/utils/services/resize-observer.service.mjs +94 -0
  200. package/esm2020/utils/services/rtl.service.mjs +29 -0
  201. package/esm2020/utils/services/tabbable-element.service.mjs +43 -0
  202. package/esm2020/utils/services/themes.service.mjs +133 -0
  203. package/esm2020/utils/tokens/module-deprecations.token.mjs +3 -0
  204. package/esm2020/utils/typecheck.mjs +75 -0
  205. package/esm2020/utils/utils.module.mjs +136 -0
  206. package/fesm2015/fundamental-ngx-cdk-data-source.mjs +378 -0
  207. package/fesm2015/fundamental-ngx-cdk-data-source.mjs.map +1 -0
  208. package/fesm2015/fundamental-ngx-cdk-forms.mjs +404 -0
  209. package/fesm2015/fundamental-ngx-cdk-forms.mjs.map +1 -0
  210. package/fesm2015/fundamental-ngx-cdk-utils.mjs +5767 -0
  211. package/fesm2015/fundamental-ngx-cdk-utils.mjs.map +1 -0
  212. package/fesm2015/fundamental-ngx-cdk.mjs +30 -0
  213. package/fesm2015/fundamental-ngx-cdk.mjs.map +1 -0
  214. package/fesm2020/fundamental-ngx-cdk-data-source.mjs +374 -0
  215. package/fesm2020/fundamental-ngx-cdk-data-source.mjs.map +1 -0
  216. package/fesm2020/fundamental-ngx-cdk-forms.mjs +399 -0
  217. package/fesm2020/fundamental-ngx-cdk-forms.mjs.map +1 -0
  218. package/fesm2020/fundamental-ngx-cdk-utils.mjs +5724 -0
  219. package/fesm2020/fundamental-ngx-cdk-utils.mjs.map +1 -0
  220. package/fesm2020/fundamental-ngx-cdk.mjs +30 -0
  221. package/fesm2020/fundamental-ngx-cdk.mjs.map +1 -0
  222. package/forms/README.md +7 -0
  223. package/forms/cva/cva-control.class.d.ts +26 -0
  224. package/forms/cva/cva.directive.d.ts +178 -0
  225. package/forms/forms.module.d.ts +7 -0
  226. package/forms/helpers/state.d.ts +3 -0
  227. package/forms/index.d.ts +12 -0
  228. package/forms/models/cva.d.ts +4 -0
  229. package/forms/models/form-error.d.ts +31 -0
  230. package/forms/models/form-field-control.d.ts +61 -0
  231. package/forms/models/form-field.d.ts +30 -0
  232. package/forms/models/form-state.d.ts +1 -0
  233. package/forms/models/select-item.d.ts +47 -0
  234. package/forms/tokens/form-field-control.token.d.ts +3 -0
  235. package/forms/tokens/form-field.token.d.ts +3 -0
  236. package/fundamental-ngx-cdk-v0.38.3-rc.4.tgz +0 -0
  237. package/fundamental-ngx.module.d.ts +9 -0
  238. package/index.d.ts +5 -0
  239. package/package.json +80 -0
  240. package/public_api.d.ts +4 -0
  241. package/utils/README.md +7 -0
  242. package/utils/abstract-fd-ngx-class.d.ts +27 -0
  243. package/utils/coercion/array.d.ts +2 -0
  244. package/utils/consts/error-messages.d.ts +3 -0
  245. package/utils/consts/index.d.ts +4 -0
  246. package/utils/consts/overflow-priority-score.d.ts +2 -0
  247. package/utils/consts/unicode-letters.regex.d.ts +7 -0
  248. package/utils/consts/unicode-numbers.regex.d.ts +6 -0
  249. package/utils/datatypes/color-accent.datatype.d.ts +1 -0
  250. package/utils/datatypes/hash.datatype.d.ts +3 -0
  251. package/utils/datatypes/index.d.ts +3 -0
  252. package/utils/datatypes/size.datatype.d.ts +1 -0
  253. package/utils/decorators/apply-css-class.decorator.d.ts +10 -0
  254. package/utils/decorators/apply-css-style.decorator.d.ts +10 -0
  255. package/utils/decorators/coerce-boolean.d.ts +4 -0
  256. package/utils/decorators/coerce-css-pixel.d.ts +1 -0
  257. package/utils/decorators/index.d.ts +5 -0
  258. package/utils/decorators/setter-alternator.d.ts +4 -0
  259. package/utils/deprecated-selector.class.d.ts +14 -0
  260. package/utils/directives/auto-complete/auto-complete.directive.d.ts +58 -0
  261. package/utils/directives/auto-complete/auto-complete.module.d.ts +7 -0
  262. package/utils/directives/clicked/clicked-behavior.module.d.ts +12 -0
  263. package/utils/directives/clicked/clicked-event.plugin.d.ts +22 -0
  264. package/utils/directives/clicked/clicked.directive.d.ts +21 -0
  265. package/utils/directives/clicked/fdk-clicked-provider.service.d.ts +24 -0
  266. package/utils/directives/clicked/index.d.ts +3 -0
  267. package/utils/directives/disabled/default-disabled-view-modifier.d.ts +9 -0
  268. package/utils/directives/disabled/disabled-behavior.directive.d.ts +35 -0
  269. package/utils/directives/disabled/disabled-behavior.interface.d.ts +7 -0
  270. package/utils/directives/disabled/disabled-behavior.module.d.ts +7 -0
  271. package/utils/directives/disabled/disabled-view-modifier.interface.d.ts +3 -0
  272. package/utils/directives/disabled/disabled.observer.d.ts +18 -0
  273. package/utils/directives/disabled/fdk-disabled-provider.service.d.ts +35 -0
  274. package/utils/directives/disabled/fdk-disabled.token.d.ts +3 -0
  275. package/utils/directives/disabled/index.d.ts +8 -0
  276. package/utils/directives/disabled/set-disabled-state.d.ts +4 -0
  277. package/utils/directives/focus-key-manager/focus-key-manager-helpers.module.d.ts +8 -0
  278. package/utils/directives/focus-key-manager/focus-key-manager-item.directive.d.ts +37 -0
  279. package/utils/directives/focus-key-manager/focus-key-manager-list.directive.d.ts +42 -0
  280. package/utils/directives/focus-key-manager/focus-key-manager.tokens.d.ts +3 -0
  281. package/utils/directives/focus-key-manager/index.d.ts +4 -0
  282. package/utils/directives/focusable-item/default-focusable-item-view-modifier.d.ts +11 -0
  283. package/utils/directives/focusable-item/fdk-focusable-item-provider.service.d.ts +43 -0
  284. package/utils/directives/focusable-item/focusable-item-view-modifier.interface.d.ts +3 -0
  285. package/utils/directives/focusable-item/focusable-item.directive.d.ts +37 -0
  286. package/utils/directives/focusable-item/focusable-item.module.d.ts +7 -0
  287. package/utils/directives/focusable-item/focusable.observer.d.ts +18 -0
  288. package/utils/directives/focusable-item/focusable.tokens.d.ts +2 -0
  289. package/utils/directives/focusable-item/index.d.ts +8 -0
  290. package/utils/directives/focusable-item/is-element-focusable-by-default.d.ts +4 -0
  291. package/utils/directives/focusable-item/set-focusable.d.ts +4 -0
  292. package/utils/directives/focusable-list/focusable-list.directive.d.ts +25 -0
  293. package/utils/directives/focusable-list/focusable-list.module.d.ts +8 -0
  294. package/utils/directives/focusable-list/focusable-list.service.d.ts +35 -0
  295. package/utils/directives/focusable-list/index.d.ts +3 -0
  296. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +22 -0
  297. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +7 -0
  298. package/utils/directives/ignore-click-on-selection/tokens.d.ts +2 -0
  299. package/utils/directives/index.d.ts +30 -0
  300. package/utils/directives/initial-focus/initial-focus.directive.d.ts +43 -0
  301. package/utils/directives/initial-focus/initial-focus.module.d.ts +7 -0
  302. package/utils/directives/line-clamp/line-clamp.directive.d.ts +101 -0
  303. package/utils/directives/line-clamp/line-clamp.module.d.ts +7 -0
  304. package/utils/directives/only-digits/only-digits.directive.d.ts +44 -0
  305. package/utils/directives/only-digits/only-digits.module.d.ts +7 -0
  306. package/utils/directives/overflow-list/overflow-list-item.directive.d.ts +14 -0
  307. package/utils/directives/overflow-list/overflow-list.directive.d.ts +62 -0
  308. package/utils/directives/overflow-list/overflow-list.module.d.ts +8 -0
  309. package/utils/directives/readonly/default-readonly-view-modifier.d.ts +9 -0
  310. package/utils/directives/readonly/fdk-readonly-provider.service.d.ts +35 -0
  311. package/utils/directives/readonly/fdk-readonly.token.d.ts +2 -0
  312. package/utils/directives/readonly/index.d.ts +9 -0
  313. package/utils/directives/readonly/readonly-behavior.directive.d.ts +32 -0
  314. package/utils/directives/readonly/readonly-behavior.interface.d.ts +7 -0
  315. package/utils/directives/readonly/readonly-behavior.module.d.ts +7 -0
  316. package/utils/directives/readonly/readonly-view-modifier.interface.d.ts +3 -0
  317. package/utils/directives/readonly/readonly.observer.d.ts +18 -0
  318. package/utils/directives/readonly/set-readonly-state.d.ts +4 -0
  319. package/utils/directives/repeat/repeat.directive.d.ts +28 -0
  320. package/utils/directives/repeat/repeat.module.d.ts +7 -0
  321. package/utils/directives/resize/resize-handle.directive.d.ts +14 -0
  322. package/utils/directives/resize/resize.directive.d.ts +57 -0
  323. package/utils/directives/resize/resize.module.d.ts +8 -0
  324. package/utils/directives/selectable-list/index.d.ts +7 -0
  325. package/utils/directives/selectable-list/select-component-root.token.d.ts +10 -0
  326. package/utils/directives/selectable-list/selectable-item.directive.d.ts +47 -0
  327. package/utils/directives/selectable-list/selectable-item.token.d.ts +11 -0
  328. package/utils/directives/selectable-list/selectable-list.directive.d.ts +33 -0
  329. package/utils/directives/selectable-list/selectable-list.module.d.ts +8 -0
  330. package/utils/directives/selectable-list/selectable-list.tokens.d.ts +2 -0
  331. package/utils/directives/selectable-list/selection.service.d.ts +65 -0
  332. package/utils/directives/template/template.directive.d.ts +18 -0
  333. package/utils/directives/template/template.module.d.ts +7 -0
  334. package/utils/directives/truncate/truncate.directive.d.ts +51 -0
  335. package/utils/directives/truncate/truncate.module.d.ts +7 -0
  336. package/utils/drag-and-drop/dnd-item/dnd-item.directive.d.ts +86 -0
  337. package/utils/drag-and-drop/dnd-keyboard-group/dnd-keyboard-group.directive.d.ts +32 -0
  338. package/utils/drag-and-drop/dnd-keyboard-item/dnd-keyboard-item.directive.d.ts +61 -0
  339. package/utils/drag-and-drop/dnd-list/dnd-list.directive.d.ts +65 -0
  340. package/utils/drag-and-drop/dnd.interfaces.d.ts +33 -0
  341. package/utils/drag-and-drop/drag-and-drop.module.d.ts +12 -0
  342. package/utils/drag-and-drop/index.d.ts +7 -0
  343. package/utils/drag-and-drop/tokens.d.ts +3 -0
  344. package/utils/dynamic-component/dynamic-component-config.d.ts +6 -0
  345. package/utils/dynamic-component/dynamic-component-container.d.ts +19 -0
  346. package/utils/dynamic-component/dynamic-component-injector.d.ts +13 -0
  347. package/utils/dynamic-component/dynamic-component.service.d.ts +46 -0
  348. package/utils/dynamic-component/index.d.ts +4 -0
  349. package/utils/functions/consumer-provider-factory.d.ts +5 -0
  350. package/utils/functions/element-size.d.ts +12 -0
  351. package/utils/functions/get-document-font-size.d.ts +2 -0
  352. package/utils/functions/index.d.ts +12 -0
  353. package/utils/functions/intersection-observable.d.ts +8 -0
  354. package/utils/functions/is-compact-density.d.ts +7 -0
  355. package/utils/functions/key-util.d.ts +16 -0
  356. package/utils/functions/module-deprecations-provider.d.ts +5 -0
  357. package/utils/functions/parser-file-size.d.ts +2 -0
  358. package/utils/functions/random-color-accent.d.ts +3 -0
  359. package/utils/functions/resize-observable.d.ts +8 -0
  360. package/utils/functions/scroll.d.ts +7 -0
  361. package/utils/functions/uuidv4-generator.d.ts +2 -0
  362. package/utils/helpers/get-native-element.d.ts +13 -0
  363. package/utils/helpers/index.d.ts +2 -0
  364. package/utils/helpers/range-selector.d.ts +84 -0
  365. package/utils/index.d.ts +18 -0
  366. package/utils/interfaces/content-density.d.ts +1 -0
  367. package/utils/interfaces/css-class-builder.interface.d.ts +6 -0
  368. package/utils/interfaces/css-style-builder.interface.d.ts +5 -0
  369. package/utils/interfaces/has-element-ref.interface.d.ts +5 -0
  370. package/utils/interfaces/index.d.ts +7 -0
  371. package/utils/interfaces/keyboard-support-item.interface.d.ts +6 -0
  372. package/utils/interfaces/module-deprecation.interface.d.ts +8 -0
  373. package/utils/interfaces/require.interface.d.ts +6 -0
  374. package/utils/list-item/list-item-utils.d.ts +7 -0
  375. package/utils/models/nullable.d.ts +6 -0
  376. package/utils/pipes/displayFn.pipe.d.ts +8 -0
  377. package/utils/pipes/filter-strings.pipe.d.ts +16 -0
  378. package/utils/pipes/index.d.ts +9 -0
  379. package/utils/pipes/is-compact.pipe.d.ts +9 -0
  380. package/utils/pipes/pipe.module.d.ts +14 -0
  381. package/utils/pipes/safe.pipe.d.ts +12 -0
  382. package/utils/pipes/search-highlight.pipe.d.ts +8 -0
  383. package/utils/pipes/truncate.pipe.d.ts +8 -0
  384. package/utils/pipes/two-digits.pipe.d.ts +8 -0
  385. package/utils/pipes/value-by-path.pipe.d.ts +8 -0
  386. package/utils/services/content-density.service.d.ts +19 -0
  387. package/utils/services/destroyed.service.d.ts +11 -0
  388. package/utils/services/focus-trap.service.d.ts +43 -0
  389. package/utils/services/index.d.ts +10 -0
  390. package/utils/services/keyboard-support/keyboard-support.service.d.ts +34 -0
  391. package/utils/services/local-storage.service.d.ts +13 -0
  392. package/utils/services/observers/attribute.observer.d.ts +26 -0
  393. package/utils/services/resize-observer.service.d.ts +34 -0
  394. package/utils/services/rtl.service.d.ts +12 -0
  395. package/utils/services/tabbable-element.service.d.ts +12 -0
  396. package/utils/services/themes.service.d.ts +43 -0
  397. package/utils/tokens/module-deprecations.token.d.ts +3 -0
  398. package/utils/typecheck.d.ts +47 -0
  399. package/utils/utils.module.d.ts +23 -0
@@ -0,0 +1,30 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+ import { FormsModule } from '@fundamental-ngx/cdk/forms';
4
+ export * from '@fundamental-ngx/cdk/forms';
5
+ import { DataSourceModule } from '@fundamental-ngx/cdk/data-source';
6
+ export * from '@fundamental-ngx/cdk/data-source';
7
+ import { UtilsModule } from '@fundamental-ngx/cdk/utils';
8
+ export * from '@fundamental-ngx/cdk/utils';
9
+
10
+ class FundamentalNgxCdkModule {
11
+ }
12
+ FundamentalNgxCdkModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FundamentalNgxCdkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
+ FundamentalNgxCdkModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: FundamentalNgxCdkModule, exports: [FormsModule, DataSourceModule, UtilsModule] });
14
+ FundamentalNgxCdkModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FundamentalNgxCdkModule, imports: [FormsModule, DataSourceModule, UtilsModule] });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FundamentalNgxCdkModule, decorators: [{
16
+ type: NgModule,
17
+ args: [{
18
+ imports: [],
19
+ declarations: [],
20
+ exports: [FormsModule, DataSourceModule, UtilsModule]
21
+ }]
22
+ }] });
23
+
24
+ /**
25
+ * Generated bundle index. Do not edit.
26
+ */
27
+
28
+ export { FundamentalNgxCdkModule };
29
+ //# sourceMappingURL=fundamental-ngx-cdk.mjs.map
30
+ //# sourceMappingURL=fundamental-ngx-cdk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fundamental-ngx-cdk.mjs","sources":["../../../../libs/cdk/src/lib/fundamental-ngx.module.ts","../../../../libs/cdk/src/lib/fundamental-ngx-cdk.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { FormsModule } from '@fundamental-ngx/cdk/forms';\nimport { DataSourceModule } from '@fundamental-ngx/cdk/data-source';\nimport { UtilsModule } from '@fundamental-ngx/cdk/utils';\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: [FormsModule, DataSourceModule, UtilsModule]\n})\nexport class FundamentalNgxCdkModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;MAUa,uBAAuB,CAAA;;oHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAFtB,OAAA,EAAA,CAAA,WAAW,EAAE,gBAAgB,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;AAE3C,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAFtB,OAAA,EAAA,CAAA,WAAW,EAAE,gBAAgB,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;2FAE3C,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,WAAW,CAAC;AACxD,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -0,0 +1,7 @@
1
+ # cdk-src-lib-forms
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test cdk-src-lib-forms` to execute the unit tests.
@@ -0,0 +1,26 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { CvaDirective } from './cva.directive';
3
+ import { DestroyedService } from '@fundamental-ngx/cdk/utils';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Base ControlValueAccessor control class.
7
+ * Used in conjunction with CvaDirective.
8
+ *
9
+ * This class performs generic change detection based on `CvaDirective` outputs.
10
+ */
11
+ export declare class CvaControl<T> {
12
+ /**
13
+ * Control value accessor directive instance.
14
+ */
15
+ cvaDirective: CvaDirective<any> | null;
16
+ /**
17
+ * Change detector instance.
18
+ */
19
+ protected _changeDetector: ChangeDetectorRef;
20
+ /** @Hidden */
21
+ protected _destroy$: DestroyedService;
22
+ /** @hidden */
23
+ listenToChanges(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CvaControl<any>, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<CvaControl<any>>;
26
+ }
@@ -0,0 +1,178 @@
1
+ import { AfterViewInit, DoCheck, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlContainer, ControlValueAccessor, NgControl, NgForm } from '@angular/forms';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
4
+ import { Subject, Subscription } from 'rxjs';
5
+ import { BaseCVA } from '../models/cva';
6
+ import { FormStates } from '../models/form-state';
7
+ import { FormField } from '../models/form-field';
8
+ import { FormFieldControl } from '../models/form-field-control';
9
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
10
+ import * as i0 from "@angular/core";
11
+ export declare class CvaDirective<T = any> implements BaseCVA, FormFieldControl, OnInit, DoCheck, AfterViewInit, OnDestroy, ControlValueAccessor {
12
+ /**
13
+ * NgControl instance.
14
+ */
15
+ readonly ngControl: NgControl | null;
16
+ /**
17
+ * Form container instance. Usually ngForm or FormGroup directives.
18
+ */
19
+ readonly controlContainer: ControlContainer | null;
20
+ /**
21
+ * Separate NgForm instance. For cases when formGroup is used with the form itself.
22
+ */
23
+ readonly ngForm: NgForm | null;
24
+ /**
25
+ * Element reference.
26
+ */
27
+ readonly elementRef: ElementRef<any>;
28
+ /** @hidden */
29
+ value: T;
30
+ /** @hidden */
31
+ constructor();
32
+ /** @hidden */
33
+ private _defaultId;
34
+ /** @hidden */
35
+ private _disabled;
36
+ /** @hidden */
37
+ private _editable;
38
+ /** @hidden */
39
+ private _destroyed;
40
+ /** ID for the Element */
41
+ id: string;
42
+ /** Input placeholder */
43
+ placeholder: string;
44
+ /**
45
+ * The state of the form control - applies css classes.
46
+ * Can be 'success', 'error', 'warning', 'default', 'information'.
47
+ *
48
+ * @default 'default'
49
+ */
50
+ set state(state: FormStates | undefined);
51
+ get state(): FormStates;
52
+ /** Holds the message with respect to state */
53
+ stateMessage: Nullable<string>;
54
+ /**
55
+ * @hidden
56
+ * The state of the form control - applies css classes.
57
+ * Can be `success`, `error`, `warning`, `information` or 'default'
58
+ */
59
+ private _state;
60
+ /** Whether the input is disabled */
61
+ set disabled(value: boolean);
62
+ get disabled(): boolean;
63
+ /**
64
+ * readOnly Value to Mark component read only
65
+ */
66
+ readonly: boolean;
67
+ /** Binds to control aria-labelledBy attribute */
68
+ ariaLabelledBy: Nullable<string>;
69
+ /** Sets control aria-label attribute value */
70
+ ariaLabel: Nullable<string>;
71
+ /**
72
+ * Tell the component if we are in editing mode.
73
+ */
74
+ set editable(value: BooleanInput);
75
+ get editable(): boolean;
76
+ /**
77
+ * Name of the control.
78
+ */
79
+ name: string;
80
+ /**
81
+ * Emits when change detection is needed.
82
+ */
83
+ detectChanges: EventEmitter<void>;
84
+ /**
85
+ * Emits when mark for changes detection is needed.
86
+ */
87
+ markForCheck: EventEmitter<void>;
88
+ /** @hidden */
89
+ protected _subscriptions: Subscription;
90
+ /**
91
+ * Reference to internal Input element
92
+ */
93
+ protected _elementRef: ElementRef;
94
+ /**
95
+ * See @FormFieldControl
96
+ */
97
+ focused: boolean;
98
+ /** Whether control has errors */
99
+ get controlInvalid(): boolean;
100
+ /**
101
+ * @hidden
102
+ */
103
+ private _controlInvalid;
104
+ /**
105
+ * See @FormFieldControl
106
+ */
107
+ readonly stateChanges: Subject<any>;
108
+ /** @hidden */
109
+ readonly formField: FormField | null;
110
+ /** set when input field is mandatory form field */
111
+ required: boolean;
112
+ /** @hidden */
113
+ onChange: (value: any) => void;
114
+ /** @hidden */
115
+ onTouched: () => void;
116
+ /** @hidden */
117
+ ngOnInit(): void;
118
+ /**
119
+ * Re-validate and emit event to parent container on every CD cycle as they are some errors
120
+ * that we can't subscribe to.
121
+ */
122
+ ngDoCheck(): void;
123
+ /** @hidden */
124
+ ngAfterViewInit(): void;
125
+ /** @hidden */
126
+ registerOnChange(fn: (_: any) => void): void;
127
+ /** @hidden */
128
+ registerOnTouched(fn: () => void): void;
129
+ /** @hidden */
130
+ ngOnDestroy(): void;
131
+ /** @hidden */
132
+ setDisabledState(isDisabled: BooleanInput): void;
133
+ /**
134
+ * Method for setting the value
135
+ * @param value
136
+ */
137
+ writeValue(value: T): void;
138
+ /**
139
+ *
140
+ * Keeps track of element focus
141
+ */
142
+ _onFocusChanged(isFocused: boolean): void;
143
+ /**
144
+ * Handles even when we click on parent container which is the FormField Wrapping this
145
+ * control
146
+ */
147
+ onContainerClick(event: MouseEvent): void;
148
+ /**
149
+ * In most of the cases when working with input element directly you should be just find to assign
150
+ * variable to this element
151
+ *
152
+ * ```
153
+ * <input #inputElementRef fd-form-control ...>
154
+ * ```
155
+ *
156
+ * and this default behavior used. For other cases implement focus.
157
+ *
158
+ */
159
+ focus(event?: MouseEvent): void;
160
+ /**
161
+ * Need re-validates errors on every CD iteration to make sure we are also
162
+ * covering non-control errors, errors that happens outside of this control
163
+ */
164
+ updateErrorState(): void;
165
+ /**
166
+ * Used to change the value of a control.
167
+ * @param value the value to be applied
168
+ * @param emitOnChange whether to emit "onChange" event.
169
+ * Should be "false", if the change is made programmatically (internally) by the control, "true" otherwise
170
+ */
171
+ setValue(value: T, emitOnChange?: boolean): void;
172
+ /** @hidden */
173
+ private _markForCheck;
174
+ /** @hidden */
175
+ private _detectChanges;
176
+ static ɵfac: i0.ɵɵFactoryDeclaration<CvaDirective<any>, never>;
177
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CvaDirective<any>, "[fdkCva]", never, { "id": "id"; "placeholder": "placeholder"; "state": "state"; "stateMessage": "stateMessage"; "disabled": "disabled"; "readonly": "readonly"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "editable": "editable"; "name": "name"; }, { "detectChanges": "detectChanges"; "markForCheck": "markForCheck"; }, never, never, true, never>;
178
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./cva/cva.directive";
3
+ export declare class FormsModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormsModule, never, [typeof i1.CvaDirective], [typeof i1.CvaDirective]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormsModule>;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { FormStates } from '../models/form-state';
2
+ /** Checks if the given state is a valid control state. */
3
+ export declare function isValidControlState(value: any): value is FormStates;
@@ -0,0 +1,12 @@
1
+ export * from './forms.module';
2
+ export * from './cva/cva.directive';
3
+ export * from './cva/cva-control.class';
4
+ export * from './models/cva';
5
+ export * from './models/form-error';
6
+ export * from './models/form-field';
7
+ export * from './models/form-state';
8
+ export * from './models/form-field-control';
9
+ export * from './models/select-item';
10
+ export * from './helpers/state';
11
+ export * from './tokens/form-field-control.token';
12
+ export * from './tokens/form-field.token';
@@ -0,0 +1,4 @@
1
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
2
+ export interface BaseCVA extends ControlValueAccessor {
3
+ ngControl: NgControl | null;
4
+ }
@@ -0,0 +1,31 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import { FormStates } from './form-state';
4
+ export interface FormFieldErrorContext<T> {
5
+ label: string;
6
+ $implicit: T;
7
+ }
8
+ export interface FormError<T = any> {
9
+ detectChanges$: Subject<void>;
10
+ fdpFormFieldErrorAs: T;
11
+ type: FormStates;
12
+ error: string;
13
+ _headingTemplateRef: TemplateRef<FormFieldErrorContext<T>>;
14
+ _descriptionTemplateRef: TemplateRef<FormFieldErrorContext<T>> | null;
15
+ templateRef: TemplateRef<FormFieldErrorContext<T>>;
16
+ registerHeading: (heading: FormErrorHeading) => void;
17
+ registerDescription: (description: FormErrorDescription) => void;
18
+ }
19
+ export interface FormErrorHeading<T = any> {
20
+ fdpFormFieldErrorHeadingAs: T;
21
+ fdpFormFieldErrorHeadingType?: FormStates;
22
+ templateRef: TemplateRef<FormFieldErrorContext<T>>;
23
+ }
24
+ export interface FormErrorDescription<T = any> {
25
+ fdpFormFieldErrorDescriptionAs: T;
26
+ templateRef: TemplateRef<FormFieldErrorContext<T>>;
27
+ }
28
+ export interface FormFieldErrorDirectiveContext {
29
+ directive: FormError;
30
+ error: any;
31
+ }
@@ -0,0 +1,61 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { FormField } from './form-field';
5
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
6
+ export interface FormFieldControl<T = any> {
7
+ /**
8
+ * Each input control has always a value. Need to make sure we keep a convention for
9
+ * input fields
10
+ */
11
+ value: T | null;
12
+ /**
13
+ * Need to have a way to set placeholder to the input
14
+ */
15
+ placeholder: string;
16
+ /**
17
+ * Need to have a way to set Mandatory to the input field
18
+ */
19
+ required: boolean;
20
+ /**
21
+ * Sets id from FF to Input
22
+ */
23
+ id: string;
24
+ /**
25
+ * This should be coming from Parent.
26
+ */
27
+ editable: boolean;
28
+ /**
29
+ * The height of the extra content at the bottom of the form control,
30
+ * which should not affect the alignment of form control and it's label
31
+ */
32
+ extraContentHeightPx?: number;
33
+ /**
34
+ *
35
+ * Form Field listen for all the changes happening inside the input
36
+ */
37
+ stateChanges: Observable<void>;
38
+ /**
39
+ * Each input should inject its own ngControl and we should retrieve it
40
+ */
41
+ ngControl: NgControl | null;
42
+ /** Whether the control is disabled. */
43
+ disabled: boolean;
44
+ /**
45
+ * Keeps track if the form element is in focus
46
+ */
47
+ focused: boolean;
48
+ /** Whether control has errors */
49
+ controlInvalid: boolean;
50
+ /** Corresponding element reference. */
51
+ elementRef: ElementRef;
52
+ /** Form field instance. */
53
+ formField: Nullable<FormField>;
54
+ /** Method for focusing on the element */
55
+ focus(event?: MouseEvent): void;
56
+ /**
57
+ * Handles even when we click on parent container which is the FormField Wrapping this
58
+ * control
59
+ */
60
+ onContainerClick(event: MouseEvent): void;
61
+ }
@@ -0,0 +1,30 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { FormError } from './form-error';
3
+ import { FormFieldControl } from './form-field-control';
4
+ import { FormStates } from './form-state';
5
+ /**
6
+ * FormField base class.
7
+ *
8
+ * This class is used to create form field components.
9
+ *
10
+ */
11
+ export declare abstract class FormField {
12
+ /**
13
+ * Register underlying form control
14
+ */
15
+ registerFormFieldControl: (control: FormFieldControl) => void;
16
+ /**
17
+ * Unregister underlying form control
18
+ */
19
+ unregisterFormFieldControl: (control: FormFieldControl) => void;
20
+ /**
21
+ * Set default columns layout
22
+ */
23
+ setDefaultColumnLayout: () => void;
24
+ /** Gets field error priority state. */
25
+ getPriorityState: () => FormStates;
26
+ /** Groups errors. */
27
+ groupErrors: () => void;
28
+ /** Sets error directives from parent container */
29
+ setErrorDirectives: (directives: QueryList<FormError>) => void;
30
+ }
@@ -0,0 +1 @@
1
+ export declare type FormStates = 'success' | 'error' | 'warning' | 'information' | 'default';
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Interface SelectItem is used to deal with complex object in order to be able to format
3
+ * custom label that is shown in the options.
4
+ *
5
+ * Used in various controls: Select, RadioGroup, CheckboxGroup, Combobox
6
+ */
7
+ export interface SelectItem<T = any> {
8
+ /**
9
+ * Item text shown in the popup
10
+ */
11
+ label: string;
12
+ /**
13
+ * References to the object instance
14
+ */
15
+ value: T;
16
+ disabled?: boolean;
17
+ icon?: string;
18
+ /**
19
+ * Trigger values is a text for selected item
20
+ */
21
+ triggerValue?: string;
22
+ isGroup?: boolean;
23
+ secondaryText?: string;
24
+ children?: SelectItem[];
25
+ }
26
+ export interface OptionItem<T = any> {
27
+ /** Item text */
28
+ label: string;
29
+ /**
30
+ * References to the object instance
31
+ */
32
+ value: T;
33
+ id?: string;
34
+ isGroup?: boolean;
35
+ secondaryText?: string;
36
+ children?: OptionItem[];
37
+ }
38
+ export interface SelectableOptionItem<T = any> extends OptionItem<T> {
39
+ selected?: boolean;
40
+ children?: SelectableOptionItem[];
41
+ }
42
+ /** @hidden */
43
+ export declare function isSelectableItem(item: SelectItem): item is SelectItem;
44
+ /** @hidden */
45
+ export declare function isSelectItem(item: SelectItem): item is SelectItem;
46
+ export declare const isOptionItem: typeof isSelectItem;
47
+ export declare const isSelectableOptionItem: typeof isSelectableItem;
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { FormFieldControl } from '../models/form-field-control';
3
+ export declare const FD_FORM_FIELD_CONTROL: InjectionToken<FormFieldControl<any>>;
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { FormField } from '../models/form-field';
3
+ export declare const FD_FORM_FIELD: InjectionToken<FormField>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@fundamental-ngx/cdk/forms";
3
+ import * as i2 from "@fundamental-ngx/cdk/data-source";
4
+ import * as i3 from "@fundamental-ngx/cdk/utils";
5
+ export declare class FundamentalNgxCdkModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FundamentalNgxCdkModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FundamentalNgxCdkModule, never, never, [typeof i1.FormsModule, typeof i2.DataSourceModule, typeof i3.UtilsModule]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FundamentalNgxCdkModule>;
9
+ }
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@fundamental-ngx/cdk" />
5
+ export * from './public_api';
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@fundamental-ngx/cdk",
3
+ "version": "0.38.3-rc.4",
4
+ "schematics": "./schematics/collection.json",
5
+ "description": "Fundamental Library for Angular - CDK",
6
+ "license": "Apache-2.0",
7
+ "homepage": "https://sap.github.io/fundamental-ngx/home",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/SAP/fundamental-ngx"
11
+ },
12
+ "engine": {
13
+ "node": ">= 10"
14
+ },
15
+ "peerDependencies": {
16
+ "@angular/common": "^15.0.0",
17
+ "@angular/platform-browser": "^15.0.0",
18
+ "@angular/core": "^15.0.0",
19
+ "@angular/forms": "^15.0.0",
20
+ "@angular/animations": "^15.0.0",
21
+ "@angular/router": "^15.0.0",
22
+ "@angular/cdk": "^15.0.0",
23
+ "rxjs": "^7.5.0"
24
+ },
25
+ "dependencies": {
26
+ "@sap-theming/theming-base-content": "^11.1.0",
27
+ "focus-trap": "^7.1.0",
28
+ "fundamental-styles": "0.26.5-rc.4",
29
+ "@fundamental-styles/cx": "0.26.3-rc.5",
30
+ "@fundamental-ngx/i18n": "0.38.3-rc.4",
31
+ "fast-deep-equal": "3.1.3",
32
+ "lodash-es": "^4.17.0",
33
+ "tslib": "^2.0.0",
34
+ "compare-versions": "^5.0.0"
35
+ },
36
+ "module": "fesm2015/fundamental-ngx-cdk.mjs",
37
+ "es2020": "fesm2020/fundamental-ngx-cdk.mjs",
38
+ "esm2020": "esm2020/fundamental-ngx-cdk.mjs",
39
+ "fesm2020": "fesm2020/fundamental-ngx-cdk.mjs",
40
+ "fesm2015": "fesm2015/fundamental-ngx-cdk.mjs",
41
+ "typings": "index.d.ts",
42
+ "exports": {
43
+ "./package.json": {
44
+ "default": "./package.json"
45
+ },
46
+ ".": {
47
+ "types": "./index.d.ts",
48
+ "esm2020": "./esm2020/fundamental-ngx-cdk.mjs",
49
+ "es2020": "./fesm2020/fundamental-ngx-cdk.mjs",
50
+ "es2015": "./fesm2015/fundamental-ngx-cdk.mjs",
51
+ "node": "./fesm2015/fundamental-ngx-cdk.mjs",
52
+ "default": "./fesm2020/fundamental-ngx-cdk.mjs"
53
+ },
54
+ "./data-source": {
55
+ "types": "./data-source/index.d.ts",
56
+ "esm2020": "./esm2020/data-source/fundamental-ngx-cdk-data-source.mjs",
57
+ "es2020": "./fesm2020/fundamental-ngx-cdk-data-source.mjs",
58
+ "es2015": "./fesm2015/fundamental-ngx-cdk-data-source.mjs",
59
+ "node": "./fesm2015/fundamental-ngx-cdk-data-source.mjs",
60
+ "default": "./fesm2020/fundamental-ngx-cdk-data-source.mjs"
61
+ },
62
+ "./forms": {
63
+ "types": "./forms/index.d.ts",
64
+ "esm2020": "./esm2020/forms/fundamental-ngx-cdk-forms.mjs",
65
+ "es2020": "./fesm2020/fundamental-ngx-cdk-forms.mjs",
66
+ "es2015": "./fesm2015/fundamental-ngx-cdk-forms.mjs",
67
+ "node": "./fesm2015/fundamental-ngx-cdk-forms.mjs",
68
+ "default": "./fesm2020/fundamental-ngx-cdk-forms.mjs"
69
+ },
70
+ "./utils": {
71
+ "types": "./utils/index.d.ts",
72
+ "esm2020": "./esm2020/utils/fundamental-ngx-cdk-utils.mjs",
73
+ "es2020": "./fesm2020/fundamental-ngx-cdk-utils.mjs",
74
+ "es2015": "./fesm2015/fundamental-ngx-cdk-utils.mjs",
75
+ "node": "./fesm2015/fundamental-ngx-cdk-utils.mjs",
76
+ "default": "./fesm2020/fundamental-ngx-cdk-utils.mjs"
77
+ }
78
+ },
79
+ "sideEffects": false
80
+ }
@@ -0,0 +1,4 @@
1
+ export * from './fundamental-ngx.module';
2
+ export * from '@fundamental-ngx/cdk/forms';
3
+ export * from '@fundamental-ngx/cdk/data-source';
4
+ export * from '@fundamental-ngx/cdk/utils';
@@ -0,0 +1,7 @@
1
+ # cdk-src-lib-utils
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test cdk-src-lib-utils` to execute the unit tests.
@@ -0,0 +1,27 @@
1
+ import { ElementRef, OnChanges, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /** @hidden */
4
+ export declare abstract class AbstractFdNgxClass implements OnInit, OnChanges {
5
+ /** @hidden */
6
+ private _elementRef;
7
+ /** @hidden */
8
+ class: string;
9
+ /** @hidden */
10
+ abstract _setProperties(): void;
11
+ /** @hidden */
12
+ _setClassToElement(className: string): void;
13
+ /** @hidden */
14
+ _clearElementClass(): void;
15
+ /** @hidden */
16
+ _addClassToElement(className: string): void;
17
+ /** @hidden */
18
+ _addStyleToElement(attribute: any, value: any): void;
19
+ /** @hidden */
20
+ protected constructor(elementRef: ElementRef);
21
+ /** @hidden */
22
+ ngOnChanges(): void;
23
+ /** @hidden */
24
+ ngOnInit(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFdNgxClass, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFdNgxClass, never, never, { "class": "class"; }, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,2 @@
1
+ /** @hidden */
2
+ export declare function coerceArraySafe<T>(value: T | T[]): T[];
@@ -0,0 +1,3 @@
1
+ export declare const MOBILE_CONFIG_ERROR = "Missing configuration object for mobile version of the component.\n Consult the documentation on how to provide MobileModeConfiguration object for this component.\n";
2
+ export declare const THEME_SWITCHER_ROUTER_MISSING_ERROR = "You need to import RouterModule to enable theme settings via the url.";
3
+ export declare const INVALID_DATE_ERROR = "Invalid Date";
@@ -0,0 +1,4 @@
1
+ export * from './error-messages';
2
+ export * from './unicode-letters.regex';
3
+ export * from './unicode-numbers.regex';
4
+ export * from './overflow-priority-score';
@@ -0,0 +1,2 @@
1
+ export declare type OverflowPriority = 'always' | 'never' | 'low' | 'high' | 'disappear';
2
+ export declare const OVERFLOW_PRIORITY_SCORE: Map<OverflowPriority, number>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Instead of `/\p{L}/u` because of it's not working in IE11 and Edge
3
+ * - https://github.com/Microsoft/ChakraCore/issues/2969
4
+ * */
5
+ export declare const LETTERS_UNICODE_RANGE = "[A-Za-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]";
6
+ export declare const ANY_LANGUAGE_LETTERS_REGEX: RegExp;
7
+ export declare const ANY_LANGUAGE_LETTERS_GROUP_REGEX: RegExp;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Polyfill for `/\p{Nd}/u` to work in IE11 and Edge
3
+ */
4
+ export declare const DECIMAL_NUMBER_UNICODE_RANGE = "[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]";
5
+ export declare const DECIMAL_NUMBER_UNICODE_REGEX: RegExp;
6
+ export declare const DECIMAL_NUMBER_UNICODE_GROUP_REGEX: RegExp;