@ifsworld/granite-components 4.4.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +117 -4
  2. package/esm2020/ifsworld-granite-components.mjs +5 -0
  3. package/esm2020/index.mjs +48 -0
  4. package/esm2020/lib/arrange-grid/arrange-grid-item.component.mjs +44 -0
  5. package/esm2020/lib/arrange-grid/arrange-grid.component.mjs +125 -0
  6. package/esm2020/lib/arrange-grid/arrange-grid.module.mjs +19 -0
  7. package/esm2020/lib/badge/badge.component.mjs +39 -0
  8. package/esm2020/lib/badge/badge.module.mjs +18 -0
  9. package/esm2020/lib/badge/testing/badge.harness.mjs +25 -0
  10. package/esm2020/lib/button/button.component.mjs +89 -0
  11. package/esm2020/lib/button/button.module.mjs +16 -0
  12. package/esm2020/lib/checkbox/checkbox-group.component.mjs +17 -0
  13. package/esm2020/lib/checkbox/checkbox.component.mjs +96 -0
  14. package/esm2020/lib/checkbox/checkbox.module.mjs +17 -0
  15. package/esm2020/lib/core/animation.mjs +34 -0
  16. package/esm2020/lib/core/client-environment.mjs +20 -0
  17. package/esm2020/lib/core/common-behaviors/disabled.mjs +27 -0
  18. package/esm2020/lib/core/core.module.mjs +36 -0
  19. package/esm2020/lib/core/devices/client-input-desktop.directive.mjs +29 -0
  20. package/esm2020/lib/core/devices/client-input-touch.directive.mjs +29 -0
  21. package/esm2020/lib/core/devices/client-output-desktop.directive.mjs +29 -0
  22. package/esm2020/lib/core/devices/client-output-touch.directive.mjs +29 -0
  23. package/esm2020/lib/core/pipes/pure-pipes.module.mjs +16 -0
  24. package/esm2020/lib/core/pipes/title.pipe.mjs +21 -0
  25. package/esm2020/lib/core/radio-checkbox-base.mjs +19 -0
  26. package/esm2020/lib/core/theme.library.mjs +59 -0
  27. package/esm2020/lib/core/types.mjs +2 -0
  28. package/esm2020/lib/grid/grid.component.mjs +128 -0
  29. package/esm2020/lib/grid/grid.module.mjs +18 -0
  30. package/esm2020/lib/icon/icon.component.mjs +43 -0
  31. package/esm2020/lib/icon/icon.module.mjs +16 -0
  32. package/esm2020/lib/input-field/input-field.component.mjs +160 -0
  33. package/esm2020/lib/input-field/input-field.module.mjs +20 -0
  34. package/esm2020/lib/menu/divider.directive.mjs +23 -0
  35. package/esm2020/lib/menu/menu-base.mjs +347 -0
  36. package/esm2020/lib/menu/menu-desktop-animations.mjs +23 -0
  37. package/esm2020/lib/menu/menu-errors.mjs +37 -0
  38. package/esm2020/lib/menu/menu-item.component.mjs +91 -0
  39. package/esm2020/lib/menu/menu-panel.mjs +7 -0
  40. package/esm2020/lib/menu/menu-positions.mjs +9 -0
  41. package/esm2020/lib/menu/menu-touch-animations.mjs +137 -0
  42. package/esm2020/lib/menu/menu-touch-close.component.mjs +13 -0
  43. package/esm2020/lib/menu/menu-touch-title.component.mjs +59 -0
  44. package/esm2020/lib/menu/menu-trigger-for.directive.mjs +702 -0
  45. package/esm2020/lib/menu/menu.component.mjs +30 -0
  46. package/esm2020/lib/menu/menu.module.mjs +55 -0
  47. package/esm2020/lib/menu/testing/menu.harness.mjs +109 -0
  48. package/esm2020/lib/menu/title.directive.mjs +17 -0
  49. package/esm2020/lib/radio-button/radio-button.component.mjs +118 -0
  50. package/esm2020/lib/radio-button/radio-button.module.mjs +17 -0
  51. package/esm2020/lib/radio-button/radio-group.component.mjs +17 -0
  52. package/esm2020/lib/table/cell/cell.mjs +15 -0
  53. package/esm2020/lib/table/cell/table-data-cell.component.mjs +26 -0
  54. package/esm2020/lib/table/cell/table-header-cell.component.mjs +12 -0
  55. package/esm2020/lib/table/column/table-column.directive.mjs +23 -0
  56. package/esm2020/lib/table/table-constants.library.mjs +4 -0
  57. package/esm2020/lib/table/table.component.mjs +36 -0
  58. package/esm2020/lib/table/table.module.mjs +32 -0
  59. package/esm2020/lib/toggle-switch/toggle-switch.component.mjs +96 -0
  60. package/esm2020/lib/toggle-switch/toggle-switch.module.mjs +16 -0
  61. package/fesm2015/ifsworld-granite-components.mjs +3145 -0
  62. package/fesm2015/ifsworld-granite-components.mjs.map +1 -0
  63. package/fesm2020/ifsworld-granite-components.mjs +3103 -0
  64. package/fesm2020/ifsworld-granite-components.mjs.map +1 -0
  65. package/ifsworld-granite-components.d.ts +1 -8
  66. package/lib/arrange-grid/arrange-grid-item.component.d.ts +3 -0
  67. package/lib/arrange-grid/arrange-grid.component.d.ts +3 -0
  68. package/lib/arrange-grid/arrange-grid.module.d.ts +7 -0
  69. package/lib/badge/badge.component.d.ts +3 -0
  70. package/lib/badge/badge.module.d.ts +6 -0
  71. package/lib/button/button.component.d.ts +5 -0
  72. package/lib/button/button.module.d.ts +5 -0
  73. package/lib/checkbox/checkbox-group.component.d.ts +3 -0
  74. package/lib/checkbox/checkbox.component.d.ts +3 -0
  75. package/lib/checkbox/checkbox.module.d.ts +6 -0
  76. package/lib/core/core.module.d.ts +8 -0
  77. package/lib/core/devices/client-input-desktop.directive.d.ts +3 -0
  78. package/lib/core/devices/client-input-touch.directive.d.ts +3 -0
  79. package/lib/core/devices/client-output-desktop.directive.d.ts +3 -0
  80. package/lib/core/devices/client-output-touch.directive.d.ts +3 -0
  81. package/lib/core/pipes/pure-pipes.module.d.ts +5 -0
  82. package/lib/core/pipes/title.pipe.d.ts +3 -0
  83. package/lib/core/radio-checkbox-base.d.ts +3 -0
  84. package/lib/grid/grid.component.d.ts +5 -0
  85. package/lib/grid/grid.module.d.ts +6 -0
  86. package/lib/icon/icon.component.d.ts +3 -0
  87. package/lib/icon/icon.module.d.ts +5 -0
  88. package/lib/input-field/input-field.component.d.ts +3 -0
  89. package/lib/input-field/input-field.module.d.ts +8 -0
  90. package/lib/menu/divider.directive.d.ts +3 -0
  91. package/lib/menu/menu-base.d.ts +190 -0
  92. package/lib/menu/menu-item.component.d.ts +3 -0
  93. package/lib/menu/menu-touch-close.component.d.ts +3 -0
  94. package/lib/menu/menu-touch-title.component.d.ts +4 -1
  95. package/lib/menu/menu-trigger-for.directive.d.ts +4 -1
  96. package/lib/menu/menu.component.d.ts +4 -187
  97. package/lib/menu/menu.module.d.ts +15 -0
  98. package/lib/menu/title.directive.d.ts +3 -0
  99. package/lib/radio-button/radio-button.component.d.ts +4 -1
  100. package/lib/radio-button/radio-button.module.d.ts +6 -0
  101. package/lib/radio-button/radio-group.component.d.ts +3 -0
  102. package/lib/table/cell/cell.d.ts +3 -0
  103. package/lib/table/cell/table-data-cell.component.d.ts +3 -0
  104. package/lib/table/cell/table-header-cell.component.d.ts +3 -0
  105. package/lib/table/column/table-column.directive.d.ts +3 -0
  106. package/lib/table/table.component.d.ts +3 -0
  107. package/lib/table/table.module.d.ts +12 -0
  108. package/lib/toggle-switch/toggle-switch.component.d.ts +3 -0
  109. package/lib/toggle-switch/toggle-switch.module.d.ts +5 -0
  110. package/package.json +26 -13
  111. package/bundles/ifsworld-granite-components.umd.js +0 -3649
  112. package/bundles/ifsworld-granite-components.umd.js.map +0 -1
  113. package/bundles/ifsworld-granite-components.umd.min.js +0 -10
  114. package/bundles/ifsworld-granite-components.umd.min.js.map +0 -1
  115. package/esm2015/ifsworld-granite-components.js +0 -13
  116. package/esm2015/ifsworld-granite-components.js.map +0 -1
  117. package/esm2015/ifsworld-granite-components.metadata.json +0 -1
  118. package/esm2015/index.js +0 -48
  119. package/esm2015/index.js.map +0 -1
  120. package/esm2015/index.metadata.json +0 -1
  121. package/esm2015/lib/arrange-grid/arrange-grid-item.component.js +0 -48
  122. package/esm2015/lib/arrange-grid/arrange-grid-item.component.js.map +0 -1
  123. package/esm2015/lib/arrange-grid/arrange-grid-item.component.metadata.json +0 -1
  124. package/esm2015/lib/arrange-grid/arrange-grid.component.js +0 -123
  125. package/esm2015/lib/arrange-grid/arrange-grid.component.js.map +0 -1
  126. package/esm2015/lib/arrange-grid/arrange-grid.component.metadata.json +0 -1
  127. package/esm2015/lib/arrange-grid/arrange-grid.module.js +0 -14
  128. package/esm2015/lib/arrange-grid/arrange-grid.module.js.map +0 -1
  129. package/esm2015/lib/arrange-grid/arrange-grid.module.metadata.json +0 -1
  130. package/esm2015/lib/badge/badge.component.js +0 -44
  131. package/esm2015/lib/badge/badge.component.js.map +0 -1
  132. package/esm2015/lib/badge/badge.component.metadata.json +0 -1
  133. package/esm2015/lib/badge/badge.module.js +0 -13
  134. package/esm2015/lib/badge/badge.module.js.map +0 -1
  135. package/esm2015/lib/badge/badge.module.metadata.json +0 -1
  136. package/esm2015/lib/badge/testing/badge.harness.js +0 -30
  137. package/esm2015/lib/badge/testing/badge.harness.js.map +0 -1
  138. package/esm2015/lib/badge/testing/badge.harness.metadata.json +0 -1
  139. package/esm2015/lib/button/button.component.js +0 -108
  140. package/esm2015/lib/button/button.component.js.map +0 -1
  141. package/esm2015/lib/button/button.component.metadata.json +0 -1
  142. package/esm2015/lib/button/button.module.js +0 -11
  143. package/esm2015/lib/button/button.module.js.map +0 -1
  144. package/esm2015/lib/button/button.module.metadata.json +0 -1
  145. package/esm2015/lib/checkbox/checkbox-group.component.js +0 -19
  146. package/esm2015/lib/checkbox/checkbox-group.component.js.map +0 -1
  147. package/esm2015/lib/checkbox/checkbox-group.component.metadata.json +0 -1
  148. package/esm2015/lib/checkbox/checkbox.component.js +0 -89
  149. package/esm2015/lib/checkbox/checkbox.component.js.map +0 -1
  150. package/esm2015/lib/checkbox/checkbox.component.metadata.json +0 -1
  151. package/esm2015/lib/checkbox/checkbox.module.js +0 -12
  152. package/esm2015/lib/checkbox/checkbox.module.js.map +0 -1
  153. package/esm2015/lib/checkbox/checkbox.module.metadata.json +0 -1
  154. package/esm2015/lib/core/animation.js +0 -34
  155. package/esm2015/lib/core/animation.js.map +0 -1
  156. package/esm2015/lib/core/animation.metadata.json +0 -1
  157. package/esm2015/lib/core/client-environment.js +0 -20
  158. package/esm2015/lib/core/client-environment.js.map +0 -1
  159. package/esm2015/lib/core/client-environment.metadata.json +0 -1
  160. package/esm2015/lib/core/common-behaviors/disabled.js +0 -25
  161. package/esm2015/lib/core/common-behaviors/disabled.js.map +0 -1
  162. package/esm2015/lib/core/common-behaviors/disabled.metadata.json +0 -1
  163. package/esm2015/lib/core/core.module.js +0 -25
  164. package/esm2015/lib/core/core.module.js.map +0 -1
  165. package/esm2015/lib/core/core.module.metadata.json +0 -1
  166. package/esm2015/lib/core/devices/client-input-desktop.directive.js +0 -22
  167. package/esm2015/lib/core/devices/client-input-desktop.directive.js.map +0 -1
  168. package/esm2015/lib/core/devices/client-input-desktop.directive.metadata.json +0 -1
  169. package/esm2015/lib/core/devices/client-input-touch.directive.js +0 -22
  170. package/esm2015/lib/core/devices/client-input-touch.directive.js.map +0 -1
  171. package/esm2015/lib/core/devices/client-input-touch.directive.metadata.json +0 -1
  172. package/esm2015/lib/core/devices/client-output-desktop.directive.js +0 -22
  173. package/esm2015/lib/core/devices/client-output-desktop.directive.js.map +0 -1
  174. package/esm2015/lib/core/devices/client-output-desktop.directive.metadata.json +0 -1
  175. package/esm2015/lib/core/devices/client-output-touch.directive.js +0 -22
  176. package/esm2015/lib/core/devices/client-output-touch.directive.js.map +0 -1
  177. package/esm2015/lib/core/devices/client-output-touch.directive.metadata.json +0 -1
  178. package/esm2015/lib/core/pipes/pure-pipes.module.js +0 -11
  179. package/esm2015/lib/core/pipes/pure-pipes.module.js.map +0 -1
  180. package/esm2015/lib/core/pipes/pure-pipes.module.metadata.json +0 -1
  181. package/esm2015/lib/core/pipes/title.pipe.js +0 -17
  182. package/esm2015/lib/core/pipes/title.pipe.js.map +0 -1
  183. package/esm2015/lib/core/pipes/title.pipe.metadata.json +0 -1
  184. package/esm2015/lib/core/radio-checkbox-base.js +0 -15
  185. package/esm2015/lib/core/radio-checkbox-base.js.map +0 -1
  186. package/esm2015/lib/core/radio-checkbox-base.metadata.json +0 -1
  187. package/esm2015/lib/core/theme.library.js +0 -59
  188. package/esm2015/lib/core/theme.library.js.map +0 -1
  189. package/esm2015/lib/core/theme.library.metadata.json +0 -1
  190. package/esm2015/lib/core/types.js +0 -2
  191. package/esm2015/lib/core/types.js.map +0 -1
  192. package/esm2015/lib/core/types.metadata.json +0 -1
  193. package/esm2015/lib/grid/grid.component.js +0 -131
  194. package/esm2015/lib/grid/grid.component.js.map +0 -1
  195. package/esm2015/lib/grid/grid.component.metadata.json +0 -1
  196. package/esm2015/lib/grid/grid.module.js +0 -13
  197. package/esm2015/lib/grid/grid.module.js.map +0 -1
  198. package/esm2015/lib/grid/grid.module.metadata.json +0 -1
  199. package/esm2015/lib/icon/icon.component.js +0 -48
  200. package/esm2015/lib/icon/icon.component.js.map +0 -1
  201. package/esm2015/lib/icon/icon.component.metadata.json +0 -1
  202. package/esm2015/lib/icon/icon.module.js +0 -11
  203. package/esm2015/lib/icon/icon.module.js.map +0 -1
  204. package/esm2015/lib/icon/icon.module.metadata.json +0 -1
  205. package/esm2015/lib/input-field/input-field.component.js +0 -144
  206. package/esm2015/lib/input-field/input-field.component.js.map +0 -1
  207. package/esm2015/lib/input-field/input-field.component.metadata.json +0 -1
  208. package/esm2015/lib/input-field/input-field.module.js +0 -15
  209. package/esm2015/lib/input-field/input-field.module.js.map +0 -1
  210. package/esm2015/lib/input-field/input-field.module.metadata.json +0 -1
  211. package/esm2015/lib/menu/divider.directive.js +0 -20
  212. package/esm2015/lib/menu/divider.directive.js.map +0 -1
  213. package/esm2015/lib/menu/divider.directive.metadata.json +0 -1
  214. package/esm2015/lib/menu/menu-desktop-animations.js +0 -23
  215. package/esm2015/lib/menu/menu-desktop-animations.js.map +0 -1
  216. package/esm2015/lib/menu/menu-desktop-animations.metadata.json +0 -1
  217. package/esm2015/lib/menu/menu-errors.js +0 -37
  218. package/esm2015/lib/menu/menu-errors.js.map +0 -1
  219. package/esm2015/lib/menu/menu-errors.metadata.json +0 -1
  220. package/esm2015/lib/menu/menu-item.component.js +0 -82
  221. package/esm2015/lib/menu/menu-item.component.js.map +0 -1
  222. package/esm2015/lib/menu/menu-item.component.metadata.json +0 -1
  223. package/esm2015/lib/menu/menu-panel.js +0 -7
  224. package/esm2015/lib/menu/menu-panel.js.map +0 -1
  225. package/esm2015/lib/menu/menu-panel.metadata.json +0 -1
  226. package/esm2015/lib/menu/menu-positions.js +0 -9
  227. package/esm2015/lib/menu/menu-positions.js.map +0 -1
  228. package/esm2015/lib/menu/menu-positions.metadata.json +0 -1
  229. package/esm2015/lib/menu/menu-touch-animations.js +0 -137
  230. package/esm2015/lib/menu/menu-touch-animations.js.map +0 -1
  231. package/esm2015/lib/menu/menu-touch-animations.metadata.json +0 -1
  232. package/esm2015/lib/menu/menu-touch-close.component.js +0 -16
  233. package/esm2015/lib/menu/menu-touch-close.component.js.map +0 -1
  234. package/esm2015/lib/menu/menu-touch-close.component.metadata.json +0 -1
  235. package/esm2015/lib/menu/menu-touch-title.component.js +0 -45
  236. package/esm2015/lib/menu/menu-touch-title.component.js.map +0 -1
  237. package/esm2015/lib/menu/menu-touch-title.component.metadata.json +0 -1
  238. package/esm2015/lib/menu/menu-trigger-for.directive.js +0 -684
  239. package/esm2015/lib/menu/menu-trigger-for.directive.js.map +0 -1
  240. package/esm2015/lib/menu/menu-trigger-for.directive.metadata.json +0 -1
  241. package/esm2015/lib/menu/menu.component.js +0 -362
  242. package/esm2015/lib/menu/menu.component.js.map +0 -1
  243. package/esm2015/lib/menu/menu.component.metadata.json +0 -1
  244. package/esm2015/lib/menu/menu.module.js +0 -38
  245. package/esm2015/lib/menu/menu.module.js.map +0 -1
  246. package/esm2015/lib/menu/menu.module.metadata.json +0 -1
  247. package/esm2015/lib/menu/testing/menu.harness.js +0 -133
  248. package/esm2015/lib/menu/testing/menu.harness.js.map +0 -1
  249. package/esm2015/lib/menu/testing/menu.harness.metadata.json +0 -1
  250. package/esm2015/lib/menu/title.directive.js +0 -13
  251. package/esm2015/lib/menu/title.directive.js.map +0 -1
  252. package/esm2015/lib/menu/title.directive.metadata.json +0 -1
  253. package/esm2015/lib/radio-button/radio-button.component.js +0 -110
  254. package/esm2015/lib/radio-button/radio-button.component.js.map +0 -1
  255. package/esm2015/lib/radio-button/radio-button.component.metadata.json +0 -1
  256. package/esm2015/lib/radio-button/radio-button.module.js +0 -12
  257. package/esm2015/lib/radio-button/radio-button.module.js.map +0 -1
  258. package/esm2015/lib/radio-button/radio-button.module.metadata.json +0 -1
  259. package/esm2015/lib/radio-button/radio-group.component.js +0 -19
  260. package/esm2015/lib/radio-button/radio-group.component.js.map +0 -1
  261. package/esm2015/lib/radio-button/radio-group.component.metadata.json +0 -1
  262. package/esm2015/lib/table/cell/cell.js +0 -12
  263. package/esm2015/lib/table/cell/cell.js.map +0 -1
  264. package/esm2015/lib/table/cell/cell.metadata.json +0 -1
  265. package/esm2015/lib/table/cell/table-data-cell.component.js +0 -21
  266. package/esm2015/lib/table/cell/table-data-cell.component.js.map +0 -1
  267. package/esm2015/lib/table/cell/table-data-cell.component.metadata.json +0 -1
  268. package/esm2015/lib/table/cell/table-header-cell.component.js +0 -13
  269. package/esm2015/lib/table/cell/table-header-cell.component.js.map +0 -1
  270. package/esm2015/lib/table/cell/table-header-cell.component.metadata.json +0 -1
  271. package/esm2015/lib/table/column/table-column.directive.js +0 -16
  272. package/esm2015/lib/table/column/table-column.directive.js.map +0 -1
  273. package/esm2015/lib/table/column/table-column.directive.metadata.json +0 -1
  274. package/esm2015/lib/table/table-constants.library.js +0 -4
  275. package/esm2015/lib/table/table-constants.library.js.map +0 -1
  276. package/esm2015/lib/table/table-constants.library.metadata.json +0 -1
  277. package/esm2015/lib/table/table.component.js +0 -28
  278. package/esm2015/lib/table/table.component.js.map +0 -1
  279. package/esm2015/lib/table/table.component.metadata.json +0 -1
  280. package/esm2015/lib/table/table.module.js +0 -24
  281. package/esm2015/lib/table/table.module.js.map +0 -1
  282. package/esm2015/lib/table/table.module.metadata.json +0 -1
  283. package/esm2015/lib/toggle-switch/toggle-switch.component.js +0 -89
  284. package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +0 -1
  285. package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +0 -1
  286. package/esm2015/lib/toggle-switch/toggle-switch.module.js +0 -11
  287. package/esm2015/lib/toggle-switch/toggle-switch.module.js.map +0 -1
  288. package/esm2015/lib/toggle-switch/toggle-switch.module.metadata.json +0 -1
  289. package/fesm2015/ifsworld-granite-components.js +0 -2992
  290. package/fesm2015/ifsworld-granite-components.js.map +0 -1
  291. package/ifsworld-granite-components.metadata.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox-group.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/checkbox/checkbox-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAgBvE,MAAM,OAAO,6BAA8B,SAAQ,wBAAwB;;;YAd1E,SAAS,SAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,IAAI,EAAE;oBACJ,KAAK,EAAE,wBAAwB;oBAC/B,aAAa,EAAE,SAAS;oBACxB,wBAAwB,EAAE,gBAAgB;oBAC1C,uDAAuD,EACrD,yBAAyB;iBAC5B;gBAED,QAAQ,EAAE,2BAA2B;gBAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD","sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { GraniteRadioCheckboxBase } from '../core/radio-checkbox-base';\n\n@Component({\n selector: 'granite-checkbox-group',\n host: {\n class: 'granite-checkbox-group',\n '[attr.role]': '\"group\"',\n '[attr.aria-labelledby]': 'ariaLabelledby',\n '[class.granite-radio-checkbox-base-layout-horizontal]':\n 'layout === \"horizontal\"',\n },\n\n template: '<ng-content></ng-content>',\n styleUrls: ['./checkbox-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteCheckboxGroupComponent extends GraniteRadioCheckboxBase {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteCheckboxGroupComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../core/radio-checkbox-base","name":"GraniteRadioCheckboxBase","line":17,"character":51},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"granite-checkbox-group","host":{"class":"granite-checkbox-group","[attr.role]":"\"group\"","[attr.aria-labelledby]":"ariaLabelledby","[class.granite-radio-checkbox-base-layout-horizontal]":"layout === \"horizontal\"","$quoted$":["[attr.role]","[attr.aria-labelledby]","[class.granite-radio-checkbox-base-layout-horizontal]"]},"template":"<ng-content></ng-content>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"styles":[":host(.granite-radio-checkbox-base-layout-horizontal){display:flex;align-items:flex-start}"]}]}]}}}]
@@ -1,89 +0,0 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
- import { ChangeDetectionStrategy, Component, Input, Output, EventEmitter, ElementRef, ViewChild, } from '@angular/core';
4
- export class GraniteCheckboxComponent {
5
- constructor(_focusMonitor) {
6
- this._focusMonitor = _focusMonitor;
7
- this.id = null;
8
- this.checked = false;
9
- this.disabled = false;
10
- this.readonly = false;
11
- this.labelPosition = 'after';
12
- this.ariaLabel = null;
13
- this.ariaLabelledby = null;
14
- this.valueChange = new EventEmitter();
15
- this.checkboxChange = new EventEmitter();
16
- this.checkboxBlur = new EventEmitter();
17
- this._positionBefore = false;
18
- this._checkboxDisabled = false;
19
- }
20
- ngOnChanges(changes) {
21
- if (changes.checked) {
22
- this.checked = coerceBooleanProperty(changes.checked.currentValue);
23
- }
24
- if (changes.disabled) {
25
- this.disabled = coerceBooleanProperty(changes.disabled.currentValue);
26
- }
27
- if (changes.readonly) {
28
- this.readonly = coerceBooleanProperty(changes.readonly.currentValue);
29
- }
30
- if (changes.labelPosition != null) {
31
- this._positionBefore =
32
- changes.labelPosition.currentValue != null &&
33
- changes.labelPosition.currentValue === 'before';
34
- }
35
- if ((changes.disabled || changes.readonly) &&
36
- (this.disabled || this.readonly)) {
37
- this._checkboxDisabled = true;
38
- }
39
- }
40
- focus(origin = 'program', options) {
41
- this._focusMonitor.focusVia(this._getInputElement(), origin, options);
42
- }
43
- _onBlur() {
44
- this.checkboxBlur.emit();
45
- }
46
- _checkboxChange() {
47
- this.checked = this._getInputElement().checked;
48
- this.valueChange.emit(this.checked);
49
- }
50
- _checkboxClick() {
51
- this.checkboxChange.emit();
52
- }
53
- _getInputElement() {
54
- return this._inputElement.nativeElement;
55
- }
56
- }
57
- GraniteCheckboxComponent.decorators = [
58
- { type: Component, args: [{
59
- selector: 'granite-checkbox',
60
- exportAs: 'graniteCheckbox',
61
- host: {
62
- class: 'granite-checkbox',
63
- '[class.granite-checkbox-checked]': 'checked',
64
- '[class.granite-checkbox-disabled]': 'disabled',
65
- '[class.granite-checkbox-readonly]': 'readonly',
66
- '[class.granite-checkbox-label-before]': '_positionBefore',
67
- },
68
- template: "<label [attr.for]=\"id\" class=\"granite-checkbox-label\">\n <div class=\"granite-checkbox-box\">\n <input\n #input\n [id]=\"id\"\n class=\"granite-checkbox-input cdk-visually-hidden\"\n role=\"checkbox\"\n type=\"checkbox\"\n [attr.aria-checked]=\"checked.toString()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [checked]=\"checked\"\n [disabled]=\"_checkboxDisabled\"\n [readonly]=\"readonly\"\n (click)=\"_checkboxClick()\"\n (change)=\"_checkboxChange()\"\n (blur)=\"_onBlur()\"\n />\n <div class=\"granite-checkbox-check\"></div>\n </div>\n <span class=\"granite-checkbox-text\"><ng-content></ng-content></span>\n</label>\n",
69
- changeDetection: ChangeDetectionStrategy.OnPush,
70
- styles: [".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}:host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit;cursor:pointer}:host(.granite-checkbox){color:var(--granite-color-text)}:host(.granite-checkbox):not(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-label:hover .granite-checkbox-box{border-color:var(--granite-color-background-active)}:host(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-label:hover .granite-checkbox-box{background-color:var(--granite-color-background-active-hover);border-color:var(--granite-color-background-active-hover)}:host(.granite-checkbox-checked) .granite-checkbox-box{border-color:var(--granite-color-background-active);background-color:var(--granite-color-background-active)}:host(.granite-checkbox-checked) .granite-checkbox-box:focus-within{border-color:var(--granite-color-focus)}:host(.granite-checkbox-checked) .granite-checkbox-check{display:flex}:host(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-box{-webkit-animation:fadeInAnimation .2s;animation:fadeInAnimation .2s;-webkit-animation-iteration-count:1;animation-iteration-count:1}:host(:not(.granite-checkbox-checked)) .granite-checkbox-box{-webkit-animation:fadeOutAnimation .2s;animation:fadeOutAnimation .2s;-webkit-animation-iteration-count:1;animation-iteration-count:1}:host(.granite-checkbox-readonly.granite-checkbox-checked) .granite-checkbox-box{background-color:var(--granite-color-text);border-color:var(--granite-color-text)}:host(.granite-checkbox-readonly.granite-checkbox-checked) .granite-checkbox-box .granite-checkbox-check{border-color:var(--granite-color-background)}:host(.granite-checkbox-disabled) .granite-checkbox-box{opacity:.3;background-color:var(--granite-color-border-soft)}:host(.granite-checkbox-disabled) .granite-checkbox-label{opacity:.6}:host(.granite-checkbox-disabled) *,:host(.granite-checkbox-readonly) *{cursor:default}:host(.granite-checkbox-label-before) .granite-checkbox-label{flex-direction:row-reverse}:host(.granite-checkbox-label-before) .granite-checkbox-text{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:var(--granite-spacing-s);padding-inline-end:var(--granite-spacing-s)}.granite-checkbox-label{display:flex;align-items:center;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-margin-end:var(--granite-spacing-xl);margin-inline-end:var(--granite-spacing-xl)}.granite-checkbox-box{width:1rem;height:1rem;border:solid var(--granite-color-background-inactive);border-width:.0625rem;border-radius:.25rem;display:flex;justify-content:center;position:relative}.granite-checkbox-box:focus-within{border:.0625rem solid var(--granite-color-focus)}.granite-checkbox-check{position:relative;display:none;width:.5625rem;height:.3125rem;background-color:transparent;border:solid var(--granite-color-text-static-light);transform:rotate(-45deg);margin-top:var(--granite-spacing-xs);border-width:0 0 .125rem .125rem}.granite-checkbox-text{-webkit-padding-start:var(--granite-spacing-s);padding-inline-start:var(--granite-spacing-s)}.granite-checkbox-text:empty{display:none}@-webkit-keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}@keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOutAnimation{0%{opacity:1}to{opacity:0}}@keyframes fadeOutAnimation{0%{opacity:1}to{opacity:0}}"]
71
- },] }
72
- ];
73
- GraniteCheckboxComponent.ctorParameters = () => [
74
- { type: FocusMonitor }
75
- ];
76
- GraniteCheckboxComponent.propDecorators = {
77
- id: [{ type: Input }],
78
- checked: [{ type: Input }],
79
- disabled: [{ type: Input }],
80
- readonly: [{ type: Input }],
81
- labelPosition: [{ type: Input }],
82
- ariaLabel: [{ type: Input, args: ['aria-label',] }],
83
- ariaLabelledby: [{ type: Input, args: ['aria-labelledby',] }],
84
- valueChange: [{ type: Output }],
85
- checkboxChange: [{ type: Output }],
86
- checkboxBlur: [{ type: Output }],
87
- _inputElement: [{ type: ViewChild, args: ['input',] }]
88
- };
89
- //# sourceMappingURL=checkbox.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/checkbox/checkbox.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,KAAK,EACL,MAAM,EAGN,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;AAiBvB,MAAM,OAAO,wBAAwB;IAqCnC,YAAoB,aAA2B;QAA3B,kBAAa,GAAb,aAAa,CAAc;QAnC/C,OAAE,GAAkB,IAAI,CAAC;QAGzB,YAAO,GAAY,KAAK,CAAC;QAGzB,aAAQ,GAAY,KAAK,CAAC;QAG1B,aAAQ,GAAY,KAAK,CAAC;QAG1B,kBAAa,GAAa,OAAO,CAAC;QAGlC,cAAS,GAAkB,IAAI,CAAC;QAGhC,mBAAc,GAAkB,IAAI,CAAC;QAG5B,gBAAW,GAA0B,IAAI,YAAY,EAAW,CAAC;QAGjE,mBAAc,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAG9D,iBAAY,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAKrE,oBAAe,GAAY,KAAK,CAAC;QACjC,sBAAiB,GAAY,KAAK,CAAC;IAEe,CAAC;IAEnD,WAAW,CAAC,OAAsB;QAChC,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,IAAI,CAAC,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACpE;QAED,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;SACtE;QAED,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;SACtE;QAED,IAAI,OAAO,CAAC,aAAa,IAAI,IAAI,EAAE;YACjC,IAAI,CAAC,eAAe;gBAClB,OAAO,CAAC,aAAa,CAAC,YAAY,IAAI,IAAI;oBAC1C,OAAO,CAAC,aAAa,CAAC,YAAY,KAAK,QAAQ,CAAC;SACnD;QAED,IACE,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;YACtC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,EAChC;YACA,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;SAC/B;IACH,CAAC;IAED,KAAK,CAAC,SAAsB,SAAS,EAAE,OAAsB;QAC3D,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,OAAO;QACL,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,eAAe;QACb,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,OAAO,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IAEO,gBAAgB;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC;IAC1C,CAAC;;;YAnGF,SAAS,SAAC;gBACT,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,iBAAiB;gBAC3B,IAAI,EAAE;oBACJ,KAAK,EAAE,kBAAkB;oBACzB,kCAAkC,EAAE,SAAS;oBAC7C,mCAAmC,EAAE,UAAU;oBAC/C,mCAAmC,EAAE,UAAU;oBAC/C,uCAAuC,EAAE,iBAAiB;iBAC3D;gBACD,uvBAAwC;gBAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YA5BQ,YAAY;;;iBA8BlB,KAAK;sBAGL,KAAK;uBAGL,KAAK;uBAGL,KAAK;4BAGL,KAAK;wBAGL,KAAK,SAAC,YAAY;6BAGlB,KAAK,SAAC,iBAAiB;0BAGvB,MAAM;6BAGN,MAAM;2BAGN,MAAM;4BAGN,SAAS,SAAC,OAAO","sourcesContent":["import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n Input,\n Output,\n OnChanges,\n SimpleChanges,\n EventEmitter,\n ElementRef,\n ViewChild,\n} from '@angular/core';\nimport { Position } from '../core/types';\n\n@Component({\n selector: 'granite-checkbox',\n exportAs: 'graniteCheckbox',\n host: {\n class: 'granite-checkbox',\n '[class.granite-checkbox-checked]': 'checked',\n '[class.granite-checkbox-disabled]': 'disabled',\n '[class.granite-checkbox-readonly]': 'readonly',\n '[class.granite-checkbox-label-before]': '_positionBefore',\n },\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteCheckboxComponent implements OnChanges {\n @Input()\n id: string | null = null;\n\n @Input()\n checked: boolean = false;\n\n @Input()\n disabled: boolean = false;\n\n @Input()\n readonly: boolean = false;\n\n @Input()\n labelPosition: Position = 'after';\n\n @Input('aria-label')\n ariaLabel: string | null = null;\n\n @Input('aria-labelledby')\n ariaLabelledby: string | null = null;\n\n @Output()\n readonly valueChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n @Output()\n readonly checkboxChange: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n readonly checkboxBlur: EventEmitter<void> = new EventEmitter<void>();\n\n @ViewChild('input')\n private _inputElement: ElementRef<HTMLInputElement>;\n\n _positionBefore: boolean = false;\n _checkboxDisabled: boolean = false;\n\n constructor(private _focusMonitor: FocusMonitor) {}\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.checked) {\n this.checked = coerceBooleanProperty(changes.checked.currentValue);\n }\n\n if (changes.disabled) {\n this.disabled = coerceBooleanProperty(changes.disabled.currentValue);\n }\n\n if (changes.readonly) {\n this.readonly = coerceBooleanProperty(changes.readonly.currentValue);\n }\n\n if (changes.labelPosition != null) {\n this._positionBefore =\n changes.labelPosition.currentValue != null &&\n changes.labelPosition.currentValue === 'before';\n }\n\n if (\n (changes.disabled || changes.readonly) &&\n (this.disabled || this.readonly)\n ) {\n this._checkboxDisabled = true;\n }\n }\n\n focus(origin: FocusOrigin = 'program', options?: FocusOptions): void {\n this._focusMonitor.focusVia(this._getInputElement(), origin, options);\n }\n\n _onBlur(): void {\n this.checkboxBlur.emit();\n }\n\n _checkboxChange(): void {\n this.checked = this._getInputElement().checked;\n this.valueChange.emit(this.checked);\n }\n\n _checkboxClick(): void {\n this.checkboxChange.emit();\n }\n\n private _getInputElement(): HTMLInputElement {\n return this._inputElement.nativeElement;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteCheckboxComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"granite-checkbox","exportAs":"graniteCheckbox","host":{"class":"granite-checkbox","[class.granite-checkbox-checked]":"checked","[class.granite-checkbox-disabled]":"disabled","[class.granite-checkbox-readonly]":"readonly","[class.granite-checkbox-label-before]":"_positionBefore","$quoted$":["[class.granite-checkbox-checked]","[class.granite-checkbox-disabled]","[class.granite-checkbox-readonly]","[class.granite-checkbox-label-before]"]},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":27,"character":19},"member":"OnPush"},"template":"<label [attr.for]=\"id\" class=\"granite-checkbox-label\">\n <div class=\"granite-checkbox-box\">\n <input\n #input\n [id]=\"id\"\n class=\"granite-checkbox-input cdk-visually-hidden\"\n role=\"checkbox\"\n type=\"checkbox\"\n [attr.aria-checked]=\"checked.toString()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [checked]=\"checked\"\n [disabled]=\"_checkboxDisabled\"\n [readonly]=\"readonly\"\n (click)=\"_checkboxClick()\"\n (change)=\"_checkboxChange()\"\n (blur)=\"_onBlur()\"\n />\n <div class=\"granite-checkbox-check\"></div>\n </div>\n <span class=\"granite-checkbox-text\"><ng-content></ng-content></span>\n</label>\n","styles":[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}:host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit;cursor:pointer}:host(.granite-checkbox){color:var(--granite-color-text)}:host(.granite-checkbox):not(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-label:hover .granite-checkbox-box{border-color:var(--granite-color-background-active)}:host(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-label:hover .granite-checkbox-box{background-color:var(--granite-color-background-active-hover);border-color:var(--granite-color-background-active-hover)}:host(.granite-checkbox-checked) .granite-checkbox-box{border-color:var(--granite-color-background-active);background-color:var(--granite-color-background-active)}:host(.granite-checkbox-checked) .granite-checkbox-box:focus-within{border-color:var(--granite-color-focus)}:host(.granite-checkbox-checked) .granite-checkbox-check{display:flex}:host(.granite-checkbox-checked):not(.granite-checkbox-readonly):not(.granite-checkbox-disabled) .granite-checkbox-box{-webkit-animation:fadeInAnimation .2s;animation:fadeInAnimation .2s;-webkit-animation-iteration-count:1;animation-iteration-count:1}:host(:not(.granite-checkbox-checked)) .granite-checkbox-box{-webkit-animation:fadeOutAnimation .2s;animation:fadeOutAnimation .2s;-webkit-animation-iteration-count:1;animation-iteration-count:1}:host(.granite-checkbox-readonly.granite-checkbox-checked) .granite-checkbox-box{background-color:var(--granite-color-text);border-color:var(--granite-color-text)}:host(.granite-checkbox-readonly.granite-checkbox-checked) .granite-checkbox-box .granite-checkbox-check{border-color:var(--granite-color-background)}:host(.granite-checkbox-disabled) .granite-checkbox-box{opacity:.3;background-color:var(--granite-color-border-soft)}:host(.granite-checkbox-disabled) .granite-checkbox-label{opacity:.6}:host(.granite-checkbox-disabled) *,:host(.granite-checkbox-readonly) *{cursor:default}:host(.granite-checkbox-label-before) .granite-checkbox-label{flex-direction:row-reverse}:host(.granite-checkbox-label-before) .granite-checkbox-text{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:var(--granite-spacing-s);padding-inline-end:var(--granite-spacing-s)}.granite-checkbox-label{display:flex;align-items:center;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-margin-end:var(--granite-spacing-xl);margin-inline-end:var(--granite-spacing-xl)}.granite-checkbox-box{width:1rem;height:1rem;border:solid var(--granite-color-background-inactive);border-width:.0625rem;border-radius:.25rem;display:flex;justify-content:center;position:relative}.granite-checkbox-box:focus-within{border:.0625rem solid var(--granite-color-focus)}.granite-checkbox-check{position:relative;display:none;width:.5625rem;height:.3125rem;background-color:transparent;border:solid var(--granite-color-text-static-light);transform:rotate(-45deg);margin-top:var(--granite-spacing-xs);border-width:0 0 .125rem .125rem}.granite-checkbox-text{-webkit-padding-start:var(--granite-spacing-s);padding-inline-start:var(--granite-spacing-s)}.granite-checkbox-text:empty{display:none}@-webkit-keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}@keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOutAnimation{0%{opacity:1}to{opacity:0}}@keyframes fadeOutAnimation{0%{opacity:1}to{opacity:0}}"]}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"checked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3},"arguments":["aria-label"]}]}],"ariaLabelledby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3},"arguments":["aria-labelledby"]}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"checkboxChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"checkboxBlur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"_inputElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":60,"character":3},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusMonitor","line":66,"character":37}]}],"ngOnChanges":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"_onBlur":[{"__symbolic":"method"}],"_checkboxChange":[{"__symbolic":"method"}],"_checkboxClick":[{"__symbolic":"method"}],"_getInputElement":[{"__symbolic":"method"}]}}}}]
@@ -1,12 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { GraniteCheckboxComponent } from './checkbox.component';
3
- import { GraniteCheckboxGroupComponent } from './checkbox-group.component';
4
- export class GraniteCheckboxModule {
5
- }
6
- GraniteCheckboxModule.decorators = [
7
- { type: NgModule, args: [{
8
- declarations: [GraniteCheckboxComponent, GraniteCheckboxGroupComponent],
9
- exports: [GraniteCheckboxComponent, GraniteCheckboxGroupComponent],
10
- },] }
11
- ];
12
- //# sourceMappingURL=checkbox.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/checkbox/checkbox.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAM3E,MAAM,OAAO,qBAAqB;;;YAJjC,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;gBACvE,OAAO,EAAE,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;aACnE","sourcesContent":["import { NgModule } from '@angular/core';\nimport { GraniteCheckboxComponent } from './checkbox.component';\nimport { GraniteCheckboxGroupComponent } from './checkbox-group.component';\n\n@NgModule({\n declarations: [GraniteCheckboxComponent, GraniteCheckboxGroupComponent],\n exports: [GraniteCheckboxComponent, GraniteCheckboxGroupComponent],\n})\nexport class GraniteCheckboxModule {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteCheckboxModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./checkbox.component","name":"GraniteCheckboxComponent","line":5,"character":17},{"__symbolic":"reference","module":"./checkbox-group.component","name":"GraniteCheckboxGroupComponent","line":5,"character":43}],"exports":[{"__symbolic":"reference","module":"./checkbox.component","name":"GraniteCheckboxComponent","line":6,"character":12},{"__symbolic":"reference","module":"./checkbox-group.component","name":"GraniteCheckboxGroupComponent","line":6,"character":38}]}]}]}}}]
@@ -1,34 +0,0 @@
1
- /**
2
- * Returns an ease-out CSS animation string with a slightly steeper curve
3
- * than usual.
4
- *
5
- * @param duration Duration in milliseconds
6
- * @param delay Delay in milliseconds
7
- */
8
- export function getEaseOutSteep(duration, delay) {
9
- return (`${duration}ms ` +
10
- (delay !== undefined ? ` ${delay}ms ` : '') +
11
- 'cubic-bezier(0, 0, 0.2, 1)');
12
- }
13
- /**
14
- * Returns an ease-out-back CSS animation string with a slightly steeper
15
- * curve than usual.
16
- *
17
- * @param duration Duration in milliseconds
18
- * @param delay Delay in milliseconds
19
- */
20
- export function getEaseOutSteepBack(duration, delay) {
21
- return (`${duration}ms ` +
22
- (delay !== undefined ? ` ${delay}ms ` : '') +
23
- 'cubic-bezier(.37,1.3,.77,1)');
24
- }
25
- /**
26
- * Returns a linear CSS animation string
27
- *
28
- * @param duration Duration in milliseconds
29
- * @param delay Delay in milliseconds
30
- */
31
- export function getEaseLinear(duration, delay) {
32
- return (`${duration}ms ` + (delay !== undefined ? ` ${delay}ms ` : '') + 'linear');
33
- }
34
- //# sourceMappingURL=animation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/animation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,KAAc;IAC9D,OAAO,CACL,GAAG,QAAQ,KAAK;QAChB,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,4BAA4B,CAC7B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,KAAc;IAClE,OAAO,CACL,GAAG,QAAQ,KAAK;QAChB,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,6BAA6B,CAC9B,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,KAAc;IAC5D,OAAO,CACL,GAAG,QAAQ,KAAK,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,CAC1E,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Returns an ease-out CSS animation string with a slightly steeper curve\n * than usual.\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseOutSteep(duration: number, delay?: number): string {\n return (\n `${duration}ms ` +\n (delay !== undefined ? ` ${delay}ms ` : '') +\n 'cubic-bezier(0, 0, 0.2, 1)'\n );\n}\n\n/**\n * Returns an ease-out-back CSS animation string with a slightly steeper\n * curve than usual.\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseOutSteepBack(duration: number, delay?: number): string {\n return (\n `${duration}ms ` +\n (delay !== undefined ? ` ${delay}ms ` : '') +\n 'cubic-bezier(.37,1.3,.77,1)'\n );\n}\n\n/**\n * Returns a linear CSS animation string\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseLinear(duration: number, delay?: number): string {\n return (\n `${duration}ms ` + (delay !== undefined ? ` ${delay}ms ` : '') + 'linear'\n );\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"getEaseOutSteep":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"cubic-bezier(0, 0, 0.2, 1)"}},"getEaseOutSteepBack":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"cubic-bezier(.37,1.3,.77,1)"}},"getEaseLinear":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"linear"}}}}]
@@ -1,20 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Injection token used to provide components knowledge of what device types
4
- * are being used for input.
5
- */
6
- export const GRANITE_CLIENT_INPUT = new InjectionToken('GRANITE_CLIENT_INPUT');
7
- /**
8
- * Injection token used to provide components knowledge of what device type
9
- * is being used for output.
10
- */
11
- export const GRANITE_CLIENT_OUTPUT = new InjectionToken('GRANITE_CLIENT_OUTPUT');
12
- export const deviceDesktop = {
13
- input: { devices: ['mouse', 'keyboard'] },
14
- output: { device: 'desktop' },
15
- };
16
- export const deviceTouch = {
17
- input: { devices: ['touch', 'onscreen-keyboard'] },
18
- output: { device: 'touch' },
19
- };
20
- //# sourceMappingURL=client-environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-environment.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/client-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB,CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,CACxB,CAAC;AA2BF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;IACzC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B;IAChD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE;IAClD,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;CAC5B,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * Injection token used to provide components knowledge of what device types\n * are being used for input.\n */\nexport const GRANITE_CLIENT_INPUT = new InjectionToken<ClientInputInterface>(\n 'GRANITE_CLIENT_INPUT'\n);\n\n/**\n * Injection token used to provide components knowledge of what device type\n * is being used for output.\n */\nexport const GRANITE_CLIENT_OUTPUT = new InjectionToken<ClientOutputInterface>(\n 'GRANITE_CLIENT_OUTPUT'\n);\n\nexport type InputDeviceTypes =\n | void\n | 'touch'\n | 'mouse'\n | 'keyboard'\n | 'onscreen-keyboard';\n\nexport type OutputDeviceTypes =\n | void\n | 'touch' // TODO: Change to 'touch-screen' for touch\n | 'desktop'; // TODO: Change to 'screen' for desktop\n\nexport interface ClientInputInterface {\n devices: InputDeviceTypes[];\n}\n\nexport interface ClientOutputInterface {\n device: OutputDeviceTypes;\n}\n\ninterface DevicePrefabInterface {\n input: ClientInputInterface;\n output: ClientOutputInterface;\n}\n\nexport const deviceDesktop: DevicePrefabInterface = {\n input: { devices: ['mouse', 'keyboard'] },\n output: { device: 'desktop' },\n};\n\nexport const deviceTouch: DevicePrefabInterface = {\n input: { devices: ['touch', 'onscreen-keyboard'] },\n output: { device: 'touch' },\n};\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GRANITE_CLIENT_INPUT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":40},"arguments":["GRANITE_CLIENT_INPUT"]},"GRANITE_CLIENT_OUTPUT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":41},"arguments":["GRANITE_CLIENT_OUTPUT"]},"InputDeviceTypes":{"__symbolic":"interface"},"OutputDeviceTypes":{"__symbolic":"interface"},"ClientInputInterface":{"__symbolic":"interface"},"ClientOutputInterface":{"__symbolic":"interface"},"deviceDesktop":{"input":{"devices":["mouse","keyboard"]},"output":{"device":"desktop"}},"deviceTouch":{"input":{"devices":["touch","onscreen-keyboard"]},"output":{"device":"touch"}}}}]
@@ -1,25 +0,0 @@
1
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
2
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
- import { Input, Directive } from '@angular/core';
4
- export const disabledMixin = (Base = class {
5
- }) => {
6
- class Derived extends Base {
7
- constructor() {
8
- super(...arguments);
9
- this.disabled = false;
10
- }
11
- ngOnChanges(changes) {
12
- if (changes.disabled) {
13
- this.disabled = coerceBooleanProperty(changes.disabled.currentValue);
14
- }
15
- }
16
- }
17
- Derived.decorators = [
18
- { type: Directive }
19
- ];
20
- Derived.propDecorators = {
21
- disabled: [{ type: Input }]
22
- };
23
- return Derived;
24
- };
25
- //# sourceMappingURL=disabled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disabled.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/common-behaviors/disabled.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAA4B,SAAS,EAAE,MAAM,eAAe,CAAC;AAI3E,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,OAAU;CAAe,EACzB,EAAE;IACF,MAEM,OAAQ,SAAQ,IAAI;QAF1B;;YAIE,aAAQ,GAAY,KAAK,CAAC;QAO5B,CAAC;QALC,WAAW,CAAC,OAAsB;YAChC,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;aACtE;QACH,CAAC;;;gBAVF,SAAS;;;2BAGP,KAAK;;IAUR,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Input, OnChanges, SimpleChanges, Directive } from '@angular/core';\n\ntype Constructor<T> = new (...args: any[]) => T;\n\nexport const disabledMixin = <T extends Constructor<Record<string, unknown>>>(\n Base: T = class {} as any\n) => {\n @Directive()\n // eslint-disable-next-line @angular-eslint/directive-class-suffix\n class Derived extends Base implements OnChanges {\n @Input()\n disabled: boolean = false;\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.disabled) {\n this.disabled = coerceBooleanProperty(changes.disabled.currentValue);\n }\n }\n }\n\n return Derived;\n};\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"disabledMixin":{"__symbolic":"error","message":"Lambda not supported","line":6,"character":29}}}]
@@ -1,25 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { ClientOutputDesktopDirective } from './devices/client-output-desktop.directive';
3
- import { ClientOutputTouchDirective } from './devices/client-output-touch.directive';
4
- import { ClientInputDesktopDirective } from './devices/client-input-desktop.directive';
5
- import { ClientInputTouchDirective } from './devices/client-input-touch.directive';
6
- // TODO: Move client devices into a separate module
7
- export class GraniteCoreModule {
8
- }
9
- GraniteCoreModule.decorators = [
10
- { type: NgModule, args: [{
11
- declarations: [
12
- ClientOutputDesktopDirective,
13
- ClientOutputTouchDirective,
14
- ClientInputDesktopDirective,
15
- ClientInputTouchDirective,
16
- ],
17
- exports: [
18
- ClientOutputDesktopDirective,
19
- ClientOutputTouchDirective,
20
- ClientInputDesktopDirective,
21
- ClientInputTouchDirective,
22
- ],
23
- },] }
24
- ];
25
- //# sourceMappingURL=core.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/core.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,mDAAmD;AAgBnD,MAAM,OAAO,iBAAiB;;;YAd7B,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,4BAA4B;oBAC5B,0BAA0B;oBAC1B,2BAA2B;oBAC3B,yBAAyB;iBAC1B;gBACD,OAAO,EAAE;oBACP,4BAA4B;oBAC5B,0BAA0B;oBAC1B,2BAA2B;oBAC3B,yBAAyB;iBAC1B;aACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { ClientOutputDesktopDirective } from './devices/client-output-desktop.directive';\nimport { ClientOutputTouchDirective } from './devices/client-output-touch.directive';\nimport { ClientInputDesktopDirective } from './devices/client-input-desktop.directive';\nimport { ClientInputTouchDirective } from './devices/client-input-touch.directive';\n\n// TODO: Move client devices into a separate module\n\n@NgModule({\n declarations: [\n ClientOutputDesktopDirective,\n ClientOutputTouchDirective,\n ClientInputDesktopDirective,\n ClientInputTouchDirective,\n ],\n exports: [\n ClientOutputDesktopDirective,\n ClientOutputTouchDirective,\n ClientInputDesktopDirective,\n ClientInputTouchDirective,\n ],\n})\nexport class GraniteCoreModule {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteCoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./devices/client-output-desktop.directive","name":"ClientOutputDesktopDirective","line":10,"character":4},{"__symbolic":"reference","module":"./devices/client-output-touch.directive","name":"ClientOutputTouchDirective","line":11,"character":4},{"__symbolic":"reference","module":"./devices/client-input-desktop.directive","name":"ClientInputDesktopDirective","line":12,"character":4},{"__symbolic":"reference","module":"./devices/client-input-touch.directive","name":"ClientInputTouchDirective","line":13,"character":4}],"exports":[{"__symbolic":"reference","module":"./devices/client-output-desktop.directive","name":"ClientOutputDesktopDirective","line":16,"character":4},{"__symbolic":"reference","module":"./devices/client-output-touch.directive","name":"ClientOutputTouchDirective","line":17,"character":4},{"__symbolic":"reference","module":"./devices/client-input-desktop.directive","name":"ClientInputDesktopDirective","line":18,"character":4},{"__symbolic":"reference","module":"./devices/client-input-touch.directive","name":"ClientInputTouchDirective","line":19,"character":4}]}]}]}}}]
@@ -1,22 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { deviceDesktop, GRANITE_CLIENT_INPUT } from '../client-environment';
3
- const ɵ0 = deviceDesktop.input;
4
- /**
5
- * Directive used to tell components and their sub components that client input
6
- * should be adapted for desktop devices, like personal computers.
7
- */
8
- export class ClientInputDesktopDirective {
9
- }
10
- ClientInputDesktopDirective.decorators = [
11
- { type: Directive, args: [{
12
- selector: `[graniteClientInputDesktop]`,
13
- providers: [
14
- {
15
- provide: GRANITE_CLIENT_INPUT,
16
- useValue: ɵ0,
17
- },
18
- ],
19
- },] }
20
- ];
21
- export { ɵ0 };
22
- //# sourceMappingURL=client-input-desktop.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-input-desktop.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-input-desktop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;WAW5D,aAAa,CAAC,KAAK;AATnC;;;GAGG;AAUH,MAAM,OAAO,2BAA2B;;;YATvC,SAAS,SAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,oBAAoB;wBAC7B,QAAQ,IAAqB;qBAC9B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceDesktop, GRANITE_CLIENT_INPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client input\n * should be adapted for desktop devices, like personal computers.\n */\n@Directive({\n selector: `[graniteClientInputDesktop]`,\n providers: [\n {\n provide: GRANITE_CLIENT_INPUT,\n useValue: deviceDesktop.input,\n },\n ],\n})\nexport class ClientInputDesktopDirective {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceDesktop","line":12,"character":16},"member":"input"},"ClientInputDesktopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientInputDesktop]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_INPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
@@ -1,22 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { deviceTouch, GRANITE_CLIENT_INPUT } from '../client-environment';
3
- const ɵ0 = deviceTouch.input;
4
- /**
5
- * Directive used to tell components and their sub components that client input
6
- * should be adapted for touch devices, like mobiles and tablets.
7
- */
8
- export class ClientInputTouchDirective {
9
- }
10
- ClientInputTouchDirective.decorators = [
11
- { type: Directive, args: [{
12
- selector: `[graniteClientInputTouch]`,
13
- providers: [
14
- {
15
- provide: GRANITE_CLIENT_INPUT,
16
- useValue: ɵ0,
17
- },
18
- ],
19
- },] }
20
- ];
21
- export { ɵ0 };
22
- //# sourceMappingURL=client-input-touch.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-input-touch.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-input-touch.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;WAW1D,WAAW,CAAC,KAAK;AATjC;;;GAGG;AAUH,MAAM,OAAO,yBAAyB;;;YATrC,SAAS,SAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,oBAAoB;wBAC7B,QAAQ,IAAmB;qBAC5B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceTouch, GRANITE_CLIENT_INPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client input\n * should be adapted for touch devices, like mobiles and tablets.\n */\n@Directive({\n selector: `[graniteClientInputTouch]`,\n providers: [\n {\n provide: GRANITE_CLIENT_INPUT,\n useValue: deviceTouch.input,\n },\n ],\n})\nexport class ClientInputTouchDirective {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceTouch","line":12,"character":16},"member":"input"},"ClientInputTouchDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientInputTouch]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_INPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
@@ -1,22 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { deviceDesktop, GRANITE_CLIENT_OUTPUT } from '../client-environment';
3
- const ɵ0 = deviceDesktop.output;
4
- /**
5
- * Directive used to tell components and their sub components that client output
6
- * should be adapted for desktop devices like personal computers.
7
- */
8
- export class ClientOutputDesktopDirective {
9
- }
10
- ClientOutputDesktopDirective.decorators = [
11
- { type: Directive, args: [{
12
- selector: `[graniteClientOutputDesktop]`,
13
- providers: [
14
- {
15
- provide: GRANITE_CLIENT_OUTPUT,
16
- useValue: ɵ0,
17
- },
18
- ],
19
- },] }
20
- ];
21
- export { ɵ0 };
22
- //# sourceMappingURL=client-output-desktop.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-output-desktop.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-output-desktop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;WAW7D,aAAa,CAAC,MAAM;AATpC;;;GAGG;AAUH,MAAM,OAAO,4BAA4B;;;YATxC,SAAS,SAAC;gBACT,QAAQ,EAAE,8BAA8B;gBACxC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,qBAAqB;wBAC9B,QAAQ,IAAsB;qBAC/B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceDesktop, GRANITE_CLIENT_OUTPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client output\n * should be adapted for desktop devices like personal computers.\n */\n@Directive({\n selector: `[graniteClientOutputDesktop]`,\n providers: [\n {\n provide: GRANITE_CLIENT_OUTPUT,\n useValue: deviceDesktop.output,\n },\n ],\n})\nexport class ClientOutputDesktopDirective {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceDesktop","line":12,"character":16},"member":"output"},"ClientOutputDesktopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientOutputDesktop]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_OUTPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
@@ -1,22 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { GRANITE_CLIENT_OUTPUT, deviceTouch } from '../client-environment';
3
- const ɵ0 = deviceTouch.output;
4
- /**
5
- * Directive used to tell components and their sub components that client output
6
- * should be adapted for touch devices like mobiles and tablets.
7
- */
8
- export class ClientOutputTouchDirective {
9
- }
10
- ClientOutputTouchDirective.decorators = [
11
- { type: Directive, args: [{
12
- selector: `[graniteClientOutputTouch]`,
13
- providers: [
14
- {
15
- provide: GRANITE_CLIENT_OUTPUT,
16
- useValue: ɵ0,
17
- },
18
- ],
19
- },] }
20
- ];
21
- export { ɵ0 };
22
- //# sourceMappingURL=client-output-touch.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-output-touch.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-output-touch.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;WAW3D,WAAW,CAAC,MAAM;AATlC;;;GAGG;AAUH,MAAM,OAAO,0BAA0B;;;YATtC,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,qBAAqB;wBAC9B,QAAQ,IAAoB;qBAC7B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { GRANITE_CLIENT_OUTPUT, deviceTouch } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client output\n * should be adapted for touch devices like mobiles and tablets.\n */\n@Directive({\n selector: `[graniteClientOutputTouch]`,\n providers: [\n {\n provide: GRANITE_CLIENT_OUTPUT,\n useValue: deviceTouch.output,\n },\n ],\n})\nexport class ClientOutputTouchDirective {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceTouch","line":12,"character":16},"member":"output"},"ClientOutputTouchDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientOutputTouch]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_OUTPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
@@ -1,11 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { GraniteTitlePipe } from './title.pipe';
3
- export class PurePipesModule {
4
- }
5
- PurePipesModule.decorators = [
6
- { type: NgModule, args: [{
7
- exports: [GraniteTitlePipe],
8
- declarations: [GraniteTitlePipe],
9
- },] }
10
- ];
11
- //# sourceMappingURL=pure-pipes.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pure-pipes.module.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/pipes/pure-pipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,OAAO,eAAe;;;YAJ3B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;aACjC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { GraniteTitlePipe } from './title.pipe';\n\n@NgModule({\n exports: [GraniteTitlePipe],\n declarations: [GraniteTitlePipe],\n})\nexport class PurePipesModule {}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"PurePipesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"./title.pipe","name":"GraniteTitlePipe","line":4,"character":12}],"declarations":[{"__symbolic":"reference","module":"./title.pipe","name":"GraniteTitlePipe","line":5,"character":17}]}]}]}}}]
@@ -1,17 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- export class GraniteTitlePipe {
3
- transform(value) {
4
- const words = value.split(/(?=[A-Z ])/);
5
- return words
6
- .map((word) => word.trim())
7
- .filter(Boolean)
8
- .map((word) => word.charAt(0).toLocaleUpperCase() + word.slice(1))
9
- .join(' ');
10
- }
11
- }
12
- GraniteTitlePipe.decorators = [
13
- { type: Pipe, args: [{
14
- name: 'graniteTitle',
15
- },] }
16
- ];
17
- //# sourceMappingURL=title.pipe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"title.pipe.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/pipes/title.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAKpD,MAAM,OAAO,gBAAgB;IAC3B,SAAS,CAAC,KAAa;QACrB,MAAM,KAAK,GAAa,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAClD,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;aAC1B,MAAM,CAAC,OAAO,CAAC;aACf,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACjE,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;;;YAXF,IAAI,SAAC;gBACJ,IAAI,EAAE,cAAc;aACrB","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'graniteTitle',\n})\nexport class GraniteTitlePipe implements PipeTransform {\n transform(value: string): string {\n const words: string[] = value.split(/(?=[A-Z ])/);\n return words\n .map((word) => word.trim())\n .filter(Boolean)\n .map((word) => word.charAt(0).toLocaleUpperCase() + word.slice(1))\n .join(' ');\n }\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteTitlePipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":2,"character":1},"arguments":[{"name":"graniteTitle"}]}],"members":{"transform":[{"__symbolic":"method"}]}}}}]
@@ -1,15 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- export class GraniteRadioCheckboxBase {
3
- constructor() {
4
- this.layout = 'horizontal';
5
- this.ariaLabelledby = null;
6
- }
7
- }
8
- GraniteRadioCheckboxBase.decorators = [
9
- { type: Directive }
10
- ];
11
- GraniteRadioCheckboxBase.propDecorators = {
12
- layout: [{ type: Input }],
13
- ariaLabelledby: [{ type: Input, args: ['aria-labelledby',] }]
14
- };
15
- //# sourceMappingURL=radio-checkbox-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-checkbox-base.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/radio-checkbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIjD,MAAM,OAAgB,wBAAwB;IAD9C;QAGE,WAAM,GAAW,YAAY,CAAC;QAG9B,mBAAc,GAAkB,IAAI,CAAC;IACvC,CAAC;;;YAPA,SAAS;;;qBAEP,KAAK;6BAGL,KAAK,SAAC,iBAAiB","sourcesContent":["import { Directive, Input } from '@angular/core';\nimport { Layout } from './types';\n\n@Directive()\nexport abstract class GraniteRadioCheckboxBase {\n @Input()\n layout: Layout = 'horizontal';\n\n @Input('aria-labelledby')\n ariaLabelledby: string | null = null;\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GraniteRadioCheckboxBase":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1}}],"members":{"layout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":5,"character":3}}]}],"ariaLabelledby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3},"arguments":["aria-labelledby"]}]}]}}}}]
@@ -1,59 +0,0 @@
1
- export const TOKEN_PREFIX = 'granite-';
2
- export const TOKEN_PREFIX_OLD = 'fnd-'; // TODO: Remove this when all tokens have 'granite-' as the prefix
3
- /**
4
- * Get the theme that corresponds to a given ID
5
- */
6
- export function getThemeById(themes, id) {
7
- const theme = id !== undefined ? themes.find((t) => t.id === id) : undefined;
8
- return theme;
9
- }
10
- /**
11
- * Apply a theme to a DOM element by iterating though all tokens,
12
- * setting a CSS variable for each one.
13
- *
14
- * @param theme Theme to set
15
- * @param element Target element
16
- */
17
- export function applyTheme(theme, element) {
18
- applyTokens(theme.tokens, element);
19
- }
20
- /**
21
- * Set a CSS variable for each token on the specified element.
22
- *
23
- * @param theme Theme to set
24
- * @param element Target element
25
- */
26
- export function applyTokens(tokens, element) {
27
- for (const token of Object.keys(tokens)) {
28
- element.style.setProperty(token, tokens[token]);
29
- }
30
- }
31
- /**
32
- * Remove theme token CSS variables from an element using the specified keys
33
- *
34
- * @param theme Theme with tokens to clear
35
- * @param element Target element
36
- */
37
- export function clearTheme(theme, element) {
38
- clearTokens(Object.keys(theme.tokens), element);
39
- }
40
- /**
41
- * Remove token CSS variables from an element using the specified keys.
42
- *
43
- * @param keys Token keys
44
- * @param element Target element
45
- */
46
- export function clearTokens(keys, element) {
47
- for (const token of keys) {
48
- element.style.removeProperty(token);
49
- }
50
- }
51
- export function isValidToken(key) {
52
- return (key && (key.startsWith(TOKEN_PREFIX) || key.startsWith(TOKEN_PREFIX_OLD)));
53
- }
54
- export function setPropertyValue(name, value, element) {
55
- if (element && element.style && value != null) {
56
- element.style.setProperty(name, isValidToken(value) ? `var(--${value})` : value);
57
- }
58
- }
59
- //# sourceMappingURL=theme.library.js.map