@ifsworld/granite-components 4.5.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/esm2020/ifsworld-granite-components.mjs +5 -0
  2. package/esm2020/index.mjs +48 -0
  3. package/esm2020/lib/arrange-grid/arrange-grid-item.component.mjs +44 -0
  4. package/esm2020/lib/arrange-grid/arrange-grid.component.mjs +125 -0
  5. package/esm2020/lib/arrange-grid/arrange-grid.module.mjs +19 -0
  6. package/esm2020/lib/badge/badge.component.mjs +39 -0
  7. package/esm2020/lib/badge/badge.module.mjs +18 -0
  8. package/esm2020/lib/badge/testing/badge.harness.mjs +25 -0
  9. package/esm2020/lib/button/button.component.mjs +89 -0
  10. package/esm2020/lib/button/button.module.mjs +16 -0
  11. package/esm2020/lib/checkbox/checkbox-group.component.mjs +17 -0
  12. package/esm2020/lib/checkbox/checkbox.component.mjs +96 -0
  13. package/esm2020/lib/checkbox/checkbox.module.mjs +17 -0
  14. package/esm2020/lib/core/animation.mjs +34 -0
  15. package/esm2020/lib/core/client-environment.mjs +20 -0
  16. package/esm2020/lib/core/common-behaviors/disabled.mjs +27 -0
  17. package/esm2020/lib/core/core.module.mjs +36 -0
  18. package/esm2020/lib/core/devices/client-input-desktop.directive.mjs +29 -0
  19. package/esm2020/lib/core/devices/client-input-touch.directive.mjs +29 -0
  20. package/esm2020/lib/core/devices/client-output-desktop.directive.mjs +29 -0
  21. package/esm2020/lib/core/devices/client-output-touch.directive.mjs +29 -0
  22. package/esm2020/lib/core/pipes/pure-pipes.module.mjs +16 -0
  23. package/esm2020/lib/core/pipes/title.pipe.mjs +21 -0
  24. package/esm2020/lib/core/radio-checkbox-base.mjs +19 -0
  25. package/esm2020/lib/core/theme.library.mjs +59 -0
  26. package/esm2020/lib/core/types.mjs +2 -0
  27. package/esm2020/lib/grid/grid.component.mjs +128 -0
  28. package/esm2020/lib/grid/grid.module.mjs +18 -0
  29. package/esm2020/lib/icon/icon.component.mjs +43 -0
  30. package/esm2020/lib/icon/icon.module.mjs +16 -0
  31. package/esm2020/lib/input-field/input-field.component.mjs +160 -0
  32. package/esm2020/lib/input-field/input-field.module.mjs +20 -0
  33. package/esm2020/lib/menu/divider.directive.mjs +23 -0
  34. package/esm2020/lib/menu/menu-base.mjs +347 -0
  35. package/esm2020/lib/menu/menu-desktop-animations.mjs +23 -0
  36. package/esm2020/lib/menu/menu-errors.mjs +37 -0
  37. package/esm2020/lib/menu/menu-item.component.mjs +91 -0
  38. package/esm2020/lib/menu/menu-panel.mjs +7 -0
  39. package/esm2020/lib/menu/menu-positions.mjs +9 -0
  40. package/esm2020/lib/menu/menu-touch-animations.mjs +137 -0
  41. package/esm2020/lib/menu/menu-touch-close.component.mjs +13 -0
  42. package/esm2020/lib/menu/menu-touch-title.component.mjs +59 -0
  43. package/esm2020/lib/menu/menu-trigger-for.directive.mjs +702 -0
  44. package/esm2020/lib/menu/menu.component.mjs +30 -0
  45. package/esm2020/lib/menu/menu.module.mjs +55 -0
  46. package/esm2020/lib/menu/testing/menu.harness.mjs +109 -0
  47. package/esm2020/lib/menu/title.directive.mjs +17 -0
  48. package/esm2020/lib/radio-button/radio-button.component.mjs +118 -0
  49. package/esm2020/lib/radio-button/radio-button.module.mjs +17 -0
  50. package/esm2020/lib/radio-button/radio-group.component.mjs +17 -0
  51. package/esm2020/lib/table/cell/cell.mjs +15 -0
  52. package/esm2020/lib/table/cell/table-data-cell.component.mjs +26 -0
  53. package/esm2020/lib/table/cell/table-header-cell.component.mjs +12 -0
  54. package/esm2020/lib/table/column/table-column.directive.mjs +23 -0
  55. package/esm2020/lib/table/table-constants.library.mjs +4 -0
  56. package/esm2020/lib/table/table.component.mjs +36 -0
  57. package/esm2020/lib/table/table.module.mjs +32 -0
  58. package/esm2020/lib/toggle-switch/toggle-switch.component.mjs +96 -0
  59. package/esm2020/lib/toggle-switch/toggle-switch.module.mjs +16 -0
  60. package/fesm2015/ifsworld-granite-components.mjs +3145 -0
  61. package/fesm2015/ifsworld-granite-components.mjs.map +1 -0
  62. package/fesm2020/ifsworld-granite-components.mjs +3103 -0
  63. package/fesm2020/ifsworld-granite-components.mjs.map +1 -0
  64. package/ifsworld-granite-components.d.ts +1 -8
  65. package/lib/arrange-grid/arrange-grid-item.component.d.ts +3 -0
  66. package/lib/arrange-grid/arrange-grid.component.d.ts +3 -0
  67. package/lib/arrange-grid/arrange-grid.module.d.ts +7 -0
  68. package/lib/badge/badge.component.d.ts +3 -0
  69. package/lib/badge/badge.module.d.ts +6 -0
  70. package/lib/button/button.component.d.ts +5 -0
  71. package/lib/button/button.module.d.ts +5 -0
  72. package/lib/checkbox/checkbox-group.component.d.ts +3 -0
  73. package/lib/checkbox/checkbox.component.d.ts +3 -0
  74. package/lib/checkbox/checkbox.module.d.ts +6 -0
  75. package/lib/core/core.module.d.ts +8 -0
  76. package/lib/core/devices/client-input-desktop.directive.d.ts +3 -0
  77. package/lib/core/devices/client-input-touch.directive.d.ts +3 -0
  78. package/lib/core/devices/client-output-desktop.directive.d.ts +3 -0
  79. package/lib/core/devices/client-output-touch.directive.d.ts +3 -0
  80. package/lib/core/pipes/pure-pipes.module.d.ts +5 -0
  81. package/lib/core/pipes/title.pipe.d.ts +3 -0
  82. package/lib/core/radio-checkbox-base.d.ts +3 -0
  83. package/lib/grid/grid.component.d.ts +5 -0
  84. package/lib/grid/grid.module.d.ts +6 -0
  85. package/lib/icon/icon.component.d.ts +3 -0
  86. package/lib/icon/icon.module.d.ts +5 -0
  87. package/lib/input-field/input-field.component.d.ts +3 -0
  88. package/lib/input-field/input-field.module.d.ts +8 -0
  89. package/lib/menu/divider.directive.d.ts +3 -0
  90. package/lib/menu/menu-base.d.ts +190 -0
  91. package/lib/menu/menu-item.component.d.ts +3 -0
  92. package/lib/menu/menu-touch-close.component.d.ts +3 -0
  93. package/lib/menu/menu-touch-title.component.d.ts +4 -1
  94. package/lib/menu/menu-trigger-for.directive.d.ts +4 -1
  95. package/lib/menu/menu.component.d.ts +4 -187
  96. package/lib/menu/menu.module.d.ts +15 -0
  97. package/lib/menu/title.directive.d.ts +3 -0
  98. package/lib/radio-button/radio-button.component.d.ts +3 -0
  99. package/lib/radio-button/radio-button.module.d.ts +6 -0
  100. package/lib/radio-button/radio-group.component.d.ts +3 -0
  101. package/lib/table/cell/cell.d.ts +3 -0
  102. package/lib/table/cell/table-data-cell.component.d.ts +3 -0
  103. package/lib/table/cell/table-header-cell.component.d.ts +3 -0
  104. package/lib/table/column/table-column.directive.d.ts +3 -0
  105. package/lib/table/table.component.d.ts +3 -0
  106. package/lib/table/table.module.d.ts +12 -0
  107. package/lib/toggle-switch/toggle-switch.component.d.ts +3 -0
  108. package/lib/toggle-switch/toggle-switch.module.d.ts +5 -0
  109. package/package.json +25 -12
  110. package/bundles/ifsworld-granite-components.umd.js +0 -3648
  111. package/bundles/ifsworld-granite-components.umd.js.map +0 -1
  112. package/bundles/ifsworld-granite-components.umd.min.js +0 -10
  113. package/bundles/ifsworld-granite-components.umd.min.js.map +0 -1
  114. package/esm2015/ifsworld-granite-components.js +0 -13
  115. package/esm2015/ifsworld-granite-components.js.map +0 -1
  116. package/esm2015/ifsworld-granite-components.metadata.json +0 -1
  117. package/esm2015/index.js +0 -48
  118. package/esm2015/index.js.map +0 -1
  119. package/esm2015/index.metadata.json +0 -1
  120. package/esm2015/lib/arrange-grid/arrange-grid-item.component.js +0 -48
  121. package/esm2015/lib/arrange-grid/arrange-grid-item.component.js.map +0 -1
  122. package/esm2015/lib/arrange-grid/arrange-grid-item.component.metadata.json +0 -1
  123. package/esm2015/lib/arrange-grid/arrange-grid.component.js +0 -123
  124. package/esm2015/lib/arrange-grid/arrange-grid.component.js.map +0 -1
  125. package/esm2015/lib/arrange-grid/arrange-grid.component.metadata.json +0 -1
  126. package/esm2015/lib/arrange-grid/arrange-grid.module.js +0 -14
  127. package/esm2015/lib/arrange-grid/arrange-grid.module.js.map +0 -1
  128. package/esm2015/lib/arrange-grid/arrange-grid.module.metadata.json +0 -1
  129. package/esm2015/lib/badge/badge.component.js +0 -44
  130. package/esm2015/lib/badge/badge.component.js.map +0 -1
  131. package/esm2015/lib/badge/badge.component.metadata.json +0 -1
  132. package/esm2015/lib/badge/badge.module.js +0 -13
  133. package/esm2015/lib/badge/badge.module.js.map +0 -1
  134. package/esm2015/lib/badge/badge.module.metadata.json +0 -1
  135. package/esm2015/lib/badge/testing/badge.harness.js +0 -30
  136. package/esm2015/lib/badge/testing/badge.harness.js.map +0 -1
  137. package/esm2015/lib/badge/testing/badge.harness.metadata.json +0 -1
  138. package/esm2015/lib/button/button.component.js +0 -108
  139. package/esm2015/lib/button/button.component.js.map +0 -1
  140. package/esm2015/lib/button/button.component.metadata.json +0 -1
  141. package/esm2015/lib/button/button.module.js +0 -11
  142. package/esm2015/lib/button/button.module.js.map +0 -1
  143. package/esm2015/lib/button/button.module.metadata.json +0 -1
  144. package/esm2015/lib/checkbox/checkbox-group.component.js +0 -19
  145. package/esm2015/lib/checkbox/checkbox-group.component.js.map +0 -1
  146. package/esm2015/lib/checkbox/checkbox-group.component.metadata.json +0 -1
  147. package/esm2015/lib/checkbox/checkbox.component.js +0 -89
  148. package/esm2015/lib/checkbox/checkbox.component.js.map +0 -1
  149. package/esm2015/lib/checkbox/checkbox.component.metadata.json +0 -1
  150. package/esm2015/lib/checkbox/checkbox.module.js +0 -12
  151. package/esm2015/lib/checkbox/checkbox.module.js.map +0 -1
  152. package/esm2015/lib/checkbox/checkbox.module.metadata.json +0 -1
  153. package/esm2015/lib/core/animation.js +0 -34
  154. package/esm2015/lib/core/animation.js.map +0 -1
  155. package/esm2015/lib/core/animation.metadata.json +0 -1
  156. package/esm2015/lib/core/client-environment.js +0 -20
  157. package/esm2015/lib/core/client-environment.js.map +0 -1
  158. package/esm2015/lib/core/client-environment.metadata.json +0 -1
  159. package/esm2015/lib/core/common-behaviors/disabled.js +0 -25
  160. package/esm2015/lib/core/common-behaviors/disabled.js.map +0 -1
  161. package/esm2015/lib/core/common-behaviors/disabled.metadata.json +0 -1
  162. package/esm2015/lib/core/core.module.js +0 -25
  163. package/esm2015/lib/core/core.module.js.map +0 -1
  164. package/esm2015/lib/core/core.module.metadata.json +0 -1
  165. package/esm2015/lib/core/devices/client-input-desktop.directive.js +0 -22
  166. package/esm2015/lib/core/devices/client-input-desktop.directive.js.map +0 -1
  167. package/esm2015/lib/core/devices/client-input-desktop.directive.metadata.json +0 -1
  168. package/esm2015/lib/core/devices/client-input-touch.directive.js +0 -22
  169. package/esm2015/lib/core/devices/client-input-touch.directive.js.map +0 -1
  170. package/esm2015/lib/core/devices/client-input-touch.directive.metadata.json +0 -1
  171. package/esm2015/lib/core/devices/client-output-desktop.directive.js +0 -22
  172. package/esm2015/lib/core/devices/client-output-desktop.directive.js.map +0 -1
  173. package/esm2015/lib/core/devices/client-output-desktop.directive.metadata.json +0 -1
  174. package/esm2015/lib/core/devices/client-output-touch.directive.js +0 -22
  175. package/esm2015/lib/core/devices/client-output-touch.directive.js.map +0 -1
  176. package/esm2015/lib/core/devices/client-output-touch.directive.metadata.json +0 -1
  177. package/esm2015/lib/core/pipes/pure-pipes.module.js +0 -11
  178. package/esm2015/lib/core/pipes/pure-pipes.module.js.map +0 -1
  179. package/esm2015/lib/core/pipes/pure-pipes.module.metadata.json +0 -1
  180. package/esm2015/lib/core/pipes/title.pipe.js +0 -17
  181. package/esm2015/lib/core/pipes/title.pipe.js.map +0 -1
  182. package/esm2015/lib/core/pipes/title.pipe.metadata.json +0 -1
  183. package/esm2015/lib/core/radio-checkbox-base.js +0 -15
  184. package/esm2015/lib/core/radio-checkbox-base.js.map +0 -1
  185. package/esm2015/lib/core/radio-checkbox-base.metadata.json +0 -1
  186. package/esm2015/lib/core/theme.library.js +0 -59
  187. package/esm2015/lib/core/theme.library.js.map +0 -1
  188. package/esm2015/lib/core/theme.library.metadata.json +0 -1
  189. package/esm2015/lib/core/types.js +0 -2
  190. package/esm2015/lib/core/types.js.map +0 -1
  191. package/esm2015/lib/core/types.metadata.json +0 -1
  192. package/esm2015/lib/grid/grid.component.js +0 -131
  193. package/esm2015/lib/grid/grid.component.js.map +0 -1
  194. package/esm2015/lib/grid/grid.component.metadata.json +0 -1
  195. package/esm2015/lib/grid/grid.module.js +0 -13
  196. package/esm2015/lib/grid/grid.module.js.map +0 -1
  197. package/esm2015/lib/grid/grid.module.metadata.json +0 -1
  198. package/esm2015/lib/icon/icon.component.js +0 -48
  199. package/esm2015/lib/icon/icon.component.js.map +0 -1
  200. package/esm2015/lib/icon/icon.component.metadata.json +0 -1
  201. package/esm2015/lib/icon/icon.module.js +0 -11
  202. package/esm2015/lib/icon/icon.module.js.map +0 -1
  203. package/esm2015/lib/icon/icon.module.metadata.json +0 -1
  204. package/esm2015/lib/input-field/input-field.component.js +0 -144
  205. package/esm2015/lib/input-field/input-field.component.js.map +0 -1
  206. package/esm2015/lib/input-field/input-field.component.metadata.json +0 -1
  207. package/esm2015/lib/input-field/input-field.module.js +0 -15
  208. package/esm2015/lib/input-field/input-field.module.js.map +0 -1
  209. package/esm2015/lib/input-field/input-field.module.metadata.json +0 -1
  210. package/esm2015/lib/menu/divider.directive.js +0 -20
  211. package/esm2015/lib/menu/divider.directive.js.map +0 -1
  212. package/esm2015/lib/menu/divider.directive.metadata.json +0 -1
  213. package/esm2015/lib/menu/menu-desktop-animations.js +0 -23
  214. package/esm2015/lib/menu/menu-desktop-animations.js.map +0 -1
  215. package/esm2015/lib/menu/menu-desktop-animations.metadata.json +0 -1
  216. package/esm2015/lib/menu/menu-errors.js +0 -37
  217. package/esm2015/lib/menu/menu-errors.js.map +0 -1
  218. package/esm2015/lib/menu/menu-errors.metadata.json +0 -1
  219. package/esm2015/lib/menu/menu-item.component.js +0 -82
  220. package/esm2015/lib/menu/menu-item.component.js.map +0 -1
  221. package/esm2015/lib/menu/menu-item.component.metadata.json +0 -1
  222. package/esm2015/lib/menu/menu-panel.js +0 -7
  223. package/esm2015/lib/menu/menu-panel.js.map +0 -1
  224. package/esm2015/lib/menu/menu-panel.metadata.json +0 -1
  225. package/esm2015/lib/menu/menu-positions.js +0 -9
  226. package/esm2015/lib/menu/menu-positions.js.map +0 -1
  227. package/esm2015/lib/menu/menu-positions.metadata.json +0 -1
  228. package/esm2015/lib/menu/menu-touch-animations.js +0 -137
  229. package/esm2015/lib/menu/menu-touch-animations.js.map +0 -1
  230. package/esm2015/lib/menu/menu-touch-animations.metadata.json +0 -1
  231. package/esm2015/lib/menu/menu-touch-close.component.js +0 -16
  232. package/esm2015/lib/menu/menu-touch-close.component.js.map +0 -1
  233. package/esm2015/lib/menu/menu-touch-close.component.metadata.json +0 -1
  234. package/esm2015/lib/menu/menu-touch-title.component.js +0 -45
  235. package/esm2015/lib/menu/menu-touch-title.component.js.map +0 -1
  236. package/esm2015/lib/menu/menu-touch-title.component.metadata.json +0 -1
  237. package/esm2015/lib/menu/menu-trigger-for.directive.js +0 -684
  238. package/esm2015/lib/menu/menu-trigger-for.directive.js.map +0 -1
  239. package/esm2015/lib/menu/menu-trigger-for.directive.metadata.json +0 -1
  240. package/esm2015/lib/menu/menu.component.js +0 -362
  241. package/esm2015/lib/menu/menu.component.js.map +0 -1
  242. package/esm2015/lib/menu/menu.component.metadata.json +0 -1
  243. package/esm2015/lib/menu/menu.module.js +0 -38
  244. package/esm2015/lib/menu/menu.module.js.map +0 -1
  245. package/esm2015/lib/menu/menu.module.metadata.json +0 -1
  246. package/esm2015/lib/menu/testing/menu.harness.js +0 -133
  247. package/esm2015/lib/menu/testing/menu.harness.js.map +0 -1
  248. package/esm2015/lib/menu/testing/menu.harness.metadata.json +0 -1
  249. package/esm2015/lib/menu/title.directive.js +0 -13
  250. package/esm2015/lib/menu/title.directive.js.map +0 -1
  251. package/esm2015/lib/menu/title.directive.metadata.json +0 -1
  252. package/esm2015/lib/radio-button/radio-button.component.js +0 -109
  253. package/esm2015/lib/radio-button/radio-button.component.js.map +0 -1
  254. package/esm2015/lib/radio-button/radio-button.component.metadata.json +0 -1
  255. package/esm2015/lib/radio-button/radio-button.module.js +0 -12
  256. package/esm2015/lib/radio-button/radio-button.module.js.map +0 -1
  257. package/esm2015/lib/radio-button/radio-button.module.metadata.json +0 -1
  258. package/esm2015/lib/radio-button/radio-group.component.js +0 -19
  259. package/esm2015/lib/radio-button/radio-group.component.js.map +0 -1
  260. package/esm2015/lib/radio-button/radio-group.component.metadata.json +0 -1
  261. package/esm2015/lib/table/cell/cell.js +0 -12
  262. package/esm2015/lib/table/cell/cell.js.map +0 -1
  263. package/esm2015/lib/table/cell/cell.metadata.json +0 -1
  264. package/esm2015/lib/table/cell/table-data-cell.component.js +0 -21
  265. package/esm2015/lib/table/cell/table-data-cell.component.js.map +0 -1
  266. package/esm2015/lib/table/cell/table-data-cell.component.metadata.json +0 -1
  267. package/esm2015/lib/table/cell/table-header-cell.component.js +0 -13
  268. package/esm2015/lib/table/cell/table-header-cell.component.js.map +0 -1
  269. package/esm2015/lib/table/cell/table-header-cell.component.metadata.json +0 -1
  270. package/esm2015/lib/table/column/table-column.directive.js +0 -16
  271. package/esm2015/lib/table/column/table-column.directive.js.map +0 -1
  272. package/esm2015/lib/table/column/table-column.directive.metadata.json +0 -1
  273. package/esm2015/lib/table/table-constants.library.js +0 -4
  274. package/esm2015/lib/table/table-constants.library.js.map +0 -1
  275. package/esm2015/lib/table/table-constants.library.metadata.json +0 -1
  276. package/esm2015/lib/table/table.component.js +0 -28
  277. package/esm2015/lib/table/table.component.js.map +0 -1
  278. package/esm2015/lib/table/table.component.metadata.json +0 -1
  279. package/esm2015/lib/table/table.module.js +0 -24
  280. package/esm2015/lib/table/table.module.js.map +0 -1
  281. package/esm2015/lib/table/table.module.metadata.json +0 -1
  282. package/esm2015/lib/toggle-switch/toggle-switch.component.js +0 -89
  283. package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +0 -1
  284. package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +0 -1
  285. package/esm2015/lib/toggle-switch/toggle-switch.module.js +0 -11
  286. package/esm2015/lib/toggle-switch/toggle-switch.module.js.map +0 -1
  287. package/esm2015/lib/toggle-switch/toggle-switch.module.metadata.json +0 -1
  288. package/fesm2015/ifsworld-granite-components.js +0 -2991
  289. package/fesm2015/ifsworld-granite-components.js.map +0 -1
  290. package/ifsworld-granite-components.metadata.json +0 -1
@@ -1,189 +1,6 @@
1
- import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, TemplateRef } from '@angular/core';
2
- import { FocusOrigin } from '@angular/cdk/a11y';
3
- import { Direction } from '@angular/cdk/bidi';
4
- import { AnimationEvent } from '@angular/animations';
5
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
6
- import { GraniteMenuItemComponent } from './menu-item.component';
7
- import { ClosedEventType, GraniteMenuPanelInterface } from './menu-panel';
8
- import { ClientOutputInterface, ClientInputInterface } from '../core/client-environment';
9
- import { MenuPositionX, MenuPositionY } from './menu-positions';
10
- /** Menu panel animation states */
11
- declare type TransformMenuStates = 'void' | 'enter' | 'enter-from-below' | 'below-with-delay' | 'below' | 'pan' | 'hide' | 'pan-hidden';
12
- /**
13
- * Menu panel animation transform/state object. Has to be an object as we supply
14
- * the `xOffset` parameter and not just the state name.
15
- */
16
- declare type TransformMenu = {
17
- /** Current animation state name */
18
- value: TransformMenuStates;
19
- params: {
20
- /** How far the menu has been panned/swiped by the user */
21
- xOffset: number;
22
- };
23
- };
24
- /** Base class with all of the menu functionality. */
25
- export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy, AfterContentChecked, GraniteMenuPanelInterface {
26
- private _changeDetectorRef;
27
- /** Position of the menu in the X axis. */
28
- get xPosition(): MenuPositionX;
29
- set xPosition(value: MenuPositionX);
30
- /** Position of the menu in the Y axis. */
31
- get yPosition(): MenuPositionY;
32
- set yPosition(value: MenuPositionY);
33
- /** Optional touch menu panel title */
34
- title: string;
35
- /**
36
- * Touch menu close button label. If not set, any label set by parent will
37
- * be used.
38
- */
39
- closeLabel: string;
40
- openOnHover: boolean;
41
- templateRef: TemplateRef<any>;
42
- /** All items inside the menu. Includes items nested inside another menu. */
43
- _allItems: QueryList<GraniteMenuItemComponent>;
44
- /**
45
- * Event emitted when the menu is closed
46
- */
47
- readonly closed: EventEmitter<ClosedEventType>;
48
- /**
49
- * Used for locating the panel in tests and setting the aria-control attribute
50
- * for the menu trigger.
51
- */
52
- readonly panelId: string;
53
- /** Parent menu of the current menu panel. */
54
- parentMenu: GraniteMenuPanelInterface | undefined;
55
- /** Layout direction of the menu. */
56
- direction: Direction;
57
- /** Whether to show back button in touch menu title bar */
58
- showBackButton: boolean;
59
- /** Whether to show touch menu title bar */
60
- showTitle: boolean;
61
- /** Whether to add a close button below the menu */
62
- showCloseButton: boolean;
63
- /** Observable current state of the panel animation. */
64
- _transformMenu: BehaviorSubject<TransformMenu>;
65
- /** Emits whenever an animation on the menu completes. */
66
- _animationDone: Subject<AnimationEvent>;
67
- /** Whether the menu is animating. */
68
- _isAnimating: boolean;
69
- /** Whether the menu is about to be destroyed. */
70
- _isClosing: boolean;
71
- /** Client input device information */
72
- _clientInput: ClientInputInterface;
73
- /** Client output device information */
74
- _clientOutput: ClientOutputInterface;
75
- private _menuEmpty$;
76
- _isMenuEmpty$: Observable<boolean>;
77
- /** Only the direct descendant menu items. */
78
- private _directDescendantItems;
79
- private _keyManager;
80
- /** Subscription to tab events on the menu panel */
81
- private _tabSubscription;
82
- private _xPosition;
83
- private _yPosition;
84
- /** Current state of the panel animation. */
85
- set _panelAnimationState(state: TransformMenuStates);
86
- /**
87
- * Current horizontal offset. Used with `pan` and `pan-hidden`
88
- * animation states.
89
- */
90
- private xOffset;
91
- constructor(_changeDetectorRef: ChangeDetectorRef);
92
- ngAfterContentChecked(): void;
93
- ngAfterContentInit(): void;
94
- ngOnDestroy(): void;
95
- /**
96
- * Stream that combines the `_hovered` observables of all the menu's items
97
- * into a single observable. Emits whenever the hovered menu item changes.
98
- */
99
- _hovered(): Observable<GraniteMenuItemComponent>;
100
- /** Handle a keyboard event from the menu, delegating to the appropriate action. */
101
- _handleKeydown(event: KeyboardEvent): void;
102
- /**
103
- * Focus the first item in the menu.
104
- * @param origin Action from which the focus originated. Used to set the correct styling.
105
- */
106
- focusFirstItem(origin?: FocusOrigin): void;
107
- /** Updates the `showTitle` property for touch device UI */
108
- _updateShowTitle(): void;
109
- /** Starts the enter animation */
110
- _startAnimation(): void;
111
- /** Resets the panel animation to its initial state. */
112
- _resetAnimation(): void;
113
- /**
114
- * Starts the 'below' animation, moving a menu down, out of view below the
115
- * viewport. Used to close the whole menu, for example when clicking
116
- * the backdrop.
117
- */
118
- _startTouchCloseDownAnimation(): void;
119
- /**
120
- * Starts the 'below-with-delay' animation, moving a menu down, out of view below the
121
- * viewport. Used to close the whole menu as a response to the user tapping
122
- * a menu item. There is a short delay before the animation starts, to that
123
- * the user gets a visual feedback on what item was selected.
124
- */
125
- _startTouchCloseDownAnimationWithDelay(): void;
126
- /**
127
- * Starts the 'void' animation, moving a (sub) menu out of view to the side
128
- * of the viewport. Used when going "back" from a sub menu.
129
- */
130
- _startTouchCloseSideAnimation(): void;
131
- /**
132
- * Starts the enter-from-below animation, moving a (root) menu into view,
133
- * Animates upwards from a starting position below the viewport.
134
- */
135
- _startTouchRootEnterAnimation(): void;
136
- /** Starts the enter animation, moving a (sub) menu into view. */
137
- _startTouchSubmenuEnterAnimation(): void;
138
- /**
139
- * Starts the pan animation, to position a submenu in a response
140
- * to user dragging sideways (panning).
141
- */
142
- _startTouchPanAnimation(xOffset: number): void;
143
- /**
144
- * Starts the pan-hidden animation, to position a parent menu next to an
145
- * active submenu that the user is dragging sideways (panning).
146
- */
147
- _startTouchHidePanAnimation(xOffset: number): void;
148
- /**
149
- * Starts the hide animation, to make a parent menu slide out to leave
150
- * space for a submenu.
151
- */
152
- _startTouchHideAnimation(): void;
153
- /** Callback that is invoked when the panel animation completes. */
154
- _onAnimationDone(event: AnimationEvent): void;
155
- _onAnimationStart(event: AnimationEvent): void;
156
- /**
157
- * Handle click on the menu by emitting on the `closed` emitter
158
- * with a `click` reason
159
- */
160
- _handleClick(): void;
161
- /**
162
- * Handle click on the close button by emitting on the `closed` emitter
163
- * without any particular reason
164
- */
165
- _handleCloseClick(): void;
166
- /**
167
- * Handle click on the back icon by emitting on the `clicked` emitter
168
- */
169
- _handleBackClick(e: MouseEvent): void;
170
- /**
171
- * Update client device information for the menu and its menu items.
172
- */
173
- _setDevice(clientInput: ClientInputInterface, clientOutput: ClientOutputInterface): void;
174
- /**
175
- * Resets the active item in the menu. This is used when the menu is opened, allowing
176
- * the user to start from the first option when pressing the down arrow.
177
- */
178
- resetActiveItem(): void;
179
- /**
180
- * Sets up a stream that will keep track of any newly-added menu items and will update the list
181
- * of direct descendants. We collect the descendants this way, because `_allItems` can include
182
- * items that are part of child menus, and using a custom way of registering items is unreliable
183
- * when it comes to maintaining the item order.
184
- */
185
- private _updateDirectDescendants;
186
- }
1
+ import { _MenuBaseComponent } from './menu-base';
2
+ import * as i0 from "@angular/core";
187
3
  export declare class GraniteMenuComponent extends _MenuBaseComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteMenuComponent, "granite-menu", ["graniteMenu"], {}, {}, never, ["*"]>;
188
6
  }
189
- export {};
@@ -1,2 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./menu.component";
3
+ import * as i2 from "./menu-item.component";
4
+ import * as i3 from "./menu-trigger-for.directive";
5
+ import * as i4 from "./menu-touch-close.component";
6
+ import * as i5 from "./menu-touch-title.component";
7
+ import * as i6 from "./divider.directive";
8
+ import * as i7 from "./title.directive";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/cdk/overlay";
11
+ import * as i10 from "@angular/cdk/portal";
12
+ import * as i11 from "../icon/icon.module";
1
13
  export declare class GraniteMenuModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteMenuModule, [typeof i1.GraniteMenuComponent, typeof i2.GraniteMenuItemComponent, typeof i3.GraniteMenuTriggerForDirective, typeof i4.GraniteMenuTouchCloseComponent, typeof i5.GraniteMenuTouchTitleItemComponent, typeof i6.GraniteDividerDirective, typeof i7.GraniteTitleDirective], [typeof i8.CommonModule, typeof i9.OverlayModule, typeof i10.PortalModule, typeof i11.GraniteIconModule], [typeof i1.GraniteMenuComponent, typeof i2.GraniteMenuItemComponent, typeof i3.GraniteMenuTriggerForDirective, typeof i4.GraniteMenuTouchCloseComponent, typeof i5.GraniteMenuTouchTitleItemComponent, typeof i6.GraniteDividerDirective, typeof i7.GraniteTitleDirective]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<GraniteMenuModule>;
2
17
  }
@@ -1,2 +1,5 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class GraniteTitleDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTitleDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteTitleDirective, "[graniteTitle]", ["graniteTitle"], {}, {}, never>;
2
5
  }
@@ -2,6 +2,7 @@ import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core
2
2
  import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
3
3
  import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
4
4
  import { Position } from '../core/types';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class GraniteRadioButtonComponent implements OnChanges, OnDestroy {
6
7
  private _focusMonitor;
7
8
  private _radioDispatcher;
@@ -29,4 +30,6 @@ export declare class GraniteRadioButtonComponent implements OnChanges, OnDestroy
29
30
  _radioChange(): void;
30
31
  _onBlur(): void;
31
32
  private _getInputElement;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioButtonComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteRadioButtonComponent, "granite-radio-button", ["graniteRadioButton"], { "value": "value"; "id": "id"; "name": "name"; "checked": "checked"; "required": "required"; "disabled": "disabled"; "readonly": "readonly"; "labelPosition": "labelPosition"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; }, { "radioChange": "radioChange"; "radioBlur": "radioBlur"; }, never, ["*"]>;
32
35
  }
@@ -1,2 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./radio-button.component";
3
+ import * as i2 from "./radio-group.component";
1
4
  export declare class GraniteRadioButtonModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioButtonModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteRadioButtonModule, [typeof i1.GraniteRadioButtonComponent, typeof i2.GraniteRadioGroupComponent], never, [typeof i1.GraniteRadioButtonComponent, typeof i2.GraniteRadioGroupComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<GraniteRadioButtonModule>;
2
8
  }
@@ -1,3 +1,6 @@
1
1
  import { GraniteRadioCheckboxBase } from '../core/radio-checkbox-base';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class GraniteRadioGroupComponent extends GraniteRadioCheckboxBase {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioGroupComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteRadioGroupComponent, "granite-radio-group", never, {}, {}, never, ["*"]>;
3
6
  }
@@ -1,5 +1,8 @@
1
1
  import { GraniteTableColumnDirective } from '../column/table-column.directive';
2
+ import * as i0 from "@angular/core";
2
3
  export declare abstract class GraniteCell {
3
4
  id: string;
4
5
  column: GraniteTableColumnDirective;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCell, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCell, never, never, { "id": "id"; "column": "column"; }, {}, never>;
5
8
  }
@@ -1,5 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { GraniteCell } from './cell';
3
+ import * as i0 from "@angular/core";
3
4
  export declare type StaticType = 'text' | 'badge';
4
5
  export declare class GraniteTableDataCellComponent extends GraniteCell {
5
6
  value: any;
@@ -8,4 +9,6 @@ export declare class GraniteTableDataCellComponent extends GraniteCell {
8
9
  columnIndex: number;
9
10
  tableCellTemplateRef: TemplateRef<any>;
10
11
  row: any;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableDataCellComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableDataCellComponent, "cdk-cell[graniteTableDataCell]", never, { "value": "value"; "staticType": "staticType"; "rowIndex": "rowIndex"; "columnIndex": "columnIndex"; "tableCellTemplateRef": "tableCellTemplateRef"; "row": "row"; }, {}, never, never>;
11
14
  }
@@ -1,3 +1,6 @@
1
1
  import { GraniteCell } from './cell';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class GraniteTableHeaderCellComponent extends GraniteCell {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableHeaderCellComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableHeaderCellComponent, "cdk-header-cell[graniteTableHeaderCell]", never, {}, {}, never, ["*"]>;
3
6
  }
@@ -1,5 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { StaticType } from '../cell/table-data-cell.component';
3
+ import * as i0 from "@angular/core";
3
4
  export interface GraniteTableColumnInterface {
4
5
  name: string;
5
6
  title?: string;
@@ -10,4 +11,6 @@ export declare class GraniteTableColumnDirective implements GraniteTableColumnIn
10
11
  title: string;
11
12
  staticType: StaticType;
12
13
  tableCellTemplateRef: TemplateRef<any>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableColumnDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteTableColumnDirective, "granite-table-column", never, { "name": "name"; "title": "title"; "staticType": "staticType"; }, {}, ["tableCellTemplateRef"]>;
13
16
  }
@@ -2,6 +2,7 @@ import { DataSource } from '@angular/cdk/table';
2
2
  import { TrackByFunction, QueryList, AfterContentInit } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { GraniteTableColumnDirective } from './column/table-column.directive';
5
+ import * as i0 from "@angular/core";
5
6
  declare type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
6
7
  export declare class GraniteTableComponent<T> implements AfterContentInit {
7
8
  dataSource: CdkTableDataSourceInput<T>;
@@ -12,5 +13,7 @@ export declare class GraniteTableComponent<T> implements AfterContentInit {
12
13
  columns: GraniteTableColumnDirective[];
13
14
  renderedColumns: string[];
14
15
  ngAfterContentInit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableComponent<any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableComponent<any>, "granite-table", never, { "dataSource": "dataSource"; "trackBy": "trackBy"; "ariaLabel": "aria-label"; }, {}, ["tableColumnsComponent"], never>;
15
18
  }
16
19
  export {};
@@ -1,2 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./table.component";
3
+ import * as i2 from "./cell/table-data-cell.component";
4
+ import * as i3 from "./cell/table-header-cell.component";
5
+ import * as i4 from "./column/table-column.directive";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/cdk/table";
8
+ import * as i7 from "../badge/badge.module";
9
+ import * as i8 from "../core/pipes/pure-pipes.module";
1
10
  export declare class GraniteTableModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteTableModule, [typeof i1.GraniteTableComponent, typeof i2.GraniteTableDataCellComponent, typeof i3.GraniteTableHeaderCellComponent, typeof i4.GraniteTableColumnDirective], [typeof i5.CommonModule, typeof i6.CdkTableModule, typeof i7.GraniteBadgeModule, typeof i8.PurePipesModule], [typeof i1.GraniteTableComponent, typeof i4.GraniteTableColumnDirective]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<GraniteTableModule>;
2
14
  }
@@ -1,6 +1,7 @@
1
1
  import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
2
  import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
3
3
  import { Position } from '../core/types';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class GraniteToggleSwitchComponent implements OnChanges {
5
6
  private _focusMonitor;
6
7
  id: string | null;
@@ -23,4 +24,6 @@ export declare class GraniteToggleSwitchComponent implements OnChanges {
23
24
  _toggleSwitchChange(): void;
24
25
  _toggleSwitchClick(): void;
25
26
  private _getInputElement;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteToggleSwitchComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraniteToggleSwitchComponent, "granite-toggle-switch", ["graniteToggleSwitch"], { "id": "id"; "checked": "checked"; "disabled": "disabled"; "readonly": "readonly"; "labelPosition": "labelPosition"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; }, { "valueChange": "valueChange"; "toggleChange": "toggleChange"; "toggleBlur": "toggleBlur"; }, never, ["*"]>;
26
29
  }
@@ -1,2 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./toggle-switch.component";
1
3
  export declare class GraniteToggleSwitchModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraniteToggleSwitchModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteToggleSwitchModule, [typeof i1.GraniteToggleSwitchComponent], never, [typeof i1.GraniteToggleSwitchComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<GraniteToggleSwitchModule>;
2
7
  }
package/package.json CHANGED
@@ -1,28 +1,41 @@
1
1
  {
2
2
  "name": "@ifsworld/granite-components",
3
- "version": "4.5.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
- "@angular/cdk": ">=11.2.13",
6
- "@angular/common": ">=11.2.14",
7
- "@angular/core": ">=11.2.14",
5
+ "@angular/cdk": ">=13.0.0",
6
+ "@angular/common": ">=13.0.0",
7
+ "@angular/core": ">=13.0.0",
8
8
  "@ifsworld/granite-icons": "^1.0.2",
9
9
  "@ifsworld/token-interfaces": "^1.0.0",
10
10
  "@ifsworld/granite-tokens": "^4.0.0",
11
11
  "@microsoft/applicationinsights-web": "^2.8.4",
12
12
  "@microsoft/applicationinsights-clickanalytics-js": "^2.8.4",
13
13
  "rxjs": "~6.6.3",
14
- "@angular/platform-browser": "^11.2.0",
15
- "@angular/animations": "^11.2.0"
14
+ "@angular/platform-browser": "13.3.11",
15
+ "@angular/animations": "13.3.11",
16
+ "@angular/platform-browser-dynamic": "13.3.11"
16
17
  },
17
18
  "dependencies": {
18
19
  "tslib": "^2.0.0"
19
20
  },
20
- "main": "bundles/ifsworld-granite-components.umd.js",
21
- "module": "fesm2015/ifsworld-granite-components.js",
22
- "es2015": "fesm2015/ifsworld-granite-components.js",
23
- "esm2015": "esm2015/ifsworld-granite-components.js",
24
- "fesm2015": "fesm2015/ifsworld-granite-components.js",
21
+ "module": "fesm2015/ifsworld-granite-components.mjs",
22
+ "es2020": "fesm2020/ifsworld-granite-components.mjs",
23
+ "esm2020": "esm2020/ifsworld-granite-components.mjs",
24
+ "fesm2020": "fesm2020/ifsworld-granite-components.mjs",
25
+ "fesm2015": "fesm2015/ifsworld-granite-components.mjs",
25
26
  "typings": "ifsworld-granite-components.d.ts",
26
- "metadata": "ifsworld-granite-components.metadata.json",
27
+ "exports": {
28
+ "./package.json": {
29
+ "default": "./package.json"
30
+ },
31
+ ".": {
32
+ "types": "./ifsworld-granite-components.d.ts",
33
+ "esm2020": "./esm2020/ifsworld-granite-components.mjs",
34
+ "es2020": "./fesm2020/ifsworld-granite-components.mjs",
35
+ "es2015": "./fesm2015/ifsworld-granite-components.mjs",
36
+ "node": "./fesm2015/ifsworld-granite-components.mjs",
37
+ "default": "./fesm2020/ifsworld-granite-components.mjs"
38
+ }
39
+ },
27
40
  "sideEffects": false
28
41
  }