@covalent/core 6.4.0 → 6.4.2

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 (271) hide show
  1. package/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  2. package/common/styles/font/_font.scss +1 -35
  3. package/dialogs/src/README.md +223 -0
  4. package/dialogs/window-dialog/window-dialog.component.d.ts +1 -1
  5. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  6. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  7. package/dynamic-menu/dynamic-menu.component.d.ts +1 -1
  8. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
  9. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +131 -0
  10. package/{esm2022 → esm2020}/breadcrumbs/breadcrumbs.module.mjs +5 -5
  11. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
  12. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  13. package/{esm2022 → esm2020}/common/behaviors/disabled.mixin.mjs +2 -2
  14. package/{esm2022 → esm2020}/common/common.module.mjs +17 -17
  15. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  16. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  17. package/esm2020/common/functions/convert.mjs +84 -0
  18. package/esm2020/common/functions/download.mjs +75 -0
  19. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
  20. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
  21. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  22. package/{esm2022 → esm2020}/common/pipes/time-ago/time-ago.pipe.mjs +4 -4
  23. package/{esm2022 → esm2020}/common/pipes/time-difference/time-difference.pipe.mjs +4 -4
  24. package/{esm2022 → esm2020}/common/pipes/time-until/time-until.pipe.mjs +4 -4
  25. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  26. package/esm2020/common/services/icon.service.mjs +1089 -0
  27. package/esm2020/common/services/router-path.service.mjs +29 -0
  28. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
  29. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
  30. package/esm2020/dialogs/dialog.component.mjs +57 -0
  31. package/{esm2022 → esm2020}/dialogs/dialogs.module.mjs +39 -39
  32. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +75 -0
  33. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
  34. package/esm2020/dialogs/services/dialog.service.mjs +174 -0
  35. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
  36. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
  37. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
  38. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
  39. package/{esm2022 → esm2020}/dynamic-menu/dynamic-menu.module.mjs +19 -19
  40. package/esm2020/file/directives/file-drop.directive.mjs +139 -0
  41. package/esm2020/file/directives/file-select.directive.mjs +77 -0
  42. package/esm2020/file/file-input/file-input.component.mjs +128 -0
  43. package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
  44. package/{esm2022 → esm2020}/file/file.module.mjs +21 -21
  45. package/esm2020/file/services/file.service.mjs +64 -0
  46. package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
  47. package/{esm2022 → esm2020}/json-formatter/json-formatter.module.mjs +5 -5
  48. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
  49. package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
  50. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
  51. package/{esm2022 → esm2020}/layout/layout-manage-list/layout-manage-list.directives.mjs +10 -10
  52. package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
  53. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
  54. package/{esm2022 → esm2020}/layout/layout-nav-list/layout-nav-list.directives.mjs +10 -10
  55. package/esm2020/layout/layout-toggle.class.mjs +92 -0
  56. package/esm2020/layout/layout.component.mjs +92 -0
  57. package/{esm2022 → esm2020}/layout/layout.directives.mjs +10 -10
  58. package/{esm2022 → esm2020}/layout/layout.module.mjs +55 -55
  59. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +163 -0
  60. package/esm2020/loading/directives/loading.directive.mjs +126 -0
  61. package/esm2020/loading/loading.component.mjs +187 -0
  62. package/{esm2022 → esm2020}/loading/loading.module.mjs +13 -13
  63. package/esm2020/loading/services/loading.factory.mjs +207 -0
  64. package/esm2020/loading/services/loading.service.mjs +213 -0
  65. package/{esm2022 → esm2020}/menu/menu.component.mjs +4 -4
  66. package/{esm2022 → esm2020}/menu/menu.module.mjs +5 -5
  67. package/esm2020/message/message.component.mjs +203 -0
  68. package/{esm2022 → esm2020}/message/message.module.mjs +7 -7
  69. package/esm2020/search/search-box/search-box.component.mjs +194 -0
  70. package/esm2020/search/search-input/search-input.component.mjs +207 -0
  71. package/{esm2022 → esm2020}/search/search.module.mjs +13 -13
  72. package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
  73. package/esm2020/side-sheet/side-sheet-ref.mjs +26 -0
  74. package/{esm2022 → esm2020}/side-sheet/side-sheet.config.mjs +5 -2
  75. package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
  76. package/esm2020/side-sheet/side-sheet.mjs +228 -0
  77. package/{esm2022 → esm2020}/side-sheet/side-sheet.module.mjs +14 -14
  78. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +23 -0
  79. package/esm2020/user-profile/user-profile.component.mjs +19 -0
  80. package/{esm2022 → esm2020}/user-profile/user-profile.module.mjs +15 -15
  81. package/{fesm2022 → fesm2015}/covalent-core-breadcrumbs.mjs +22 -28
  82. package/{fesm2022 → fesm2015}/covalent-core-breadcrumbs.mjs.map +1 -1
  83. package/fesm2015/covalent-core-common.mjs +2281 -0
  84. package/fesm2015/covalent-core-common.mjs.map +1 -0
  85. package/fesm2015/covalent-core-dialogs.mjs +668 -0
  86. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  87. package/fesm2015/covalent-core-dynamic-menu.mjs +126 -0
  88. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  89. package/fesm2015/covalent-core-file.mjs +621 -0
  90. package/fesm2015/covalent-core-file.mjs.map +1 -0
  91. package/fesm2015/covalent-core-json-formatter.mjs +298 -0
  92. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  93. package/fesm2015/covalent-core-layout.mjs +1024 -0
  94. package/{fesm2022 → fesm2015}/covalent-core-layout.mjs.map +1 -1
  95. package/fesm2015/covalent-core-loading.mjs +766 -0
  96. package/fesm2015/covalent-core-loading.mjs.map +1 -0
  97. package/{fesm2022 → fesm2015}/covalent-core-menu.mjs +7 -7
  98. package/{fesm2022 → fesm2015}/covalent-core-menu.mjs.map +1 -1
  99. package/fesm2015/covalent-core-message.mjs +284 -0
  100. package/fesm2015/covalent-core-message.mjs.map +1 -0
  101. package/fesm2015/covalent-core-search.mjs +430 -0
  102. package/fesm2015/covalent-core-search.mjs.map +1 -0
  103. package/fesm2015/covalent-core-side-sheet.mjs +784 -0
  104. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  105. package/fesm2015/covalent-core-user-profile.mjs +83 -0
  106. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  107. package/fesm2020/covalent-core-breadcrumbs.mjs +243 -0
  108. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
  109. package/{fesm2022 → fesm2020}/covalent-core-common.mjs +1125 -1131
  110. package/fesm2020/covalent-core-common.mjs.map +1 -0
  111. package/{fesm2022 → fesm2020}/covalent-core-dialogs.mjs +82 -111
  112. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  113. package/fesm2020/covalent-core-dynamic-menu.mjs +126 -0
  114. package/{fesm2022 → fesm2020}/covalent-core-dynamic-menu.mjs.map +1 -1
  115. package/{fesm2022 → fesm2020}/covalent-core-file.mjs +110 -148
  116. package/{fesm2022 → fesm2020}/covalent-core-file.mjs.map +1 -1
  117. package/{fesm2022 → fesm2020}/covalent-core-json-formatter.mjs +21 -26
  118. package/{fesm2022 → fesm2020}/covalent-core-json-formatter.mjs.map +1 -1
  119. package/{fesm2022 → fesm2020}/covalent-core-layout.mjs +271 -396
  120. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  121. package/{fesm2022 → fesm2020}/covalent-core-loading.mjs +78 -100
  122. package/{fesm2022 → fesm2020}/covalent-core-loading.mjs.map +1 -1
  123. package/fesm2020/covalent-core-menu.mjs +37 -0
  124. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  125. package/{fesm2022 → fesm2020}/covalent-core-message.mjs +23 -42
  126. package/{fesm2022 → fesm2020}/covalent-core-message.mjs.map +1 -1
  127. package/fesm2020/covalent-core-search.mjs +427 -0
  128. package/fesm2020/covalent-core-search.mjs.map +1 -0
  129. package/{fesm2022 → fesm2020}/covalent-core-side-sheet.mjs +99 -124
  130. package/{fesm2022 → fesm2020}/covalent-core-side-sheet.mjs.map +1 -1
  131. package/fesm2020/covalent-core-user-profile.mjs +83 -0
  132. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  133. package/fesm2020/covalent-core.mjs +4 -0
  134. package/fesm2020/covalent-core.mjs.map +1 -0
  135. package/file/directives/file-drop.directive.d.ts +1 -1
  136. package/file/directives/file-select.directive.d.ts +1 -1
  137. package/file/file-input/file-input.component.d.ts +1 -1
  138. package/file/file-upload/file-upload.component.d.ts +1 -1
  139. package/file/src/file-input/README.md +147 -0
  140. package/file/src/file-upload/README.md +136 -0
  141. package/json-formatter/json-formatter.component.d.ts +1 -1
  142. package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
  143. package/layout/layout-footer/layout-footer.component.d.ts +1 -1
  144. package/layout/layout-manage-list/layout-manage-list.component.d.ts +1 -1
  145. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +3 -3
  146. package/layout/layout-nav/layout-nav.component.d.ts +1 -1
  147. package/layout/layout-nav-list/layout-nav-list.component.d.ts +1 -1
  148. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +3 -3
  149. package/layout/layout-toggle.class.d.ts +1 -1
  150. package/layout/layout.component.d.ts +1 -1
  151. package/layout/layout.directives.d.ts +3 -3
  152. package/layout/navigation-drawer/navigation-drawer.component.d.ts +1 -1
  153. package/layout/src/layout-card-over/README.md +43 -0
  154. package/layout/src/layout-manage-list/README.md +80 -0
  155. package/layout/src/layout-nav/README.md +50 -0
  156. package/layout/src/layout-nav-list/README.md +105 -0
  157. package/loading/directives/loading.directive.d.ts +1 -1
  158. package/message/message.component.d.ts +1 -1
  159. package/package.json +91 -55
  160. package/search/search-box/search-box.component.d.ts +1 -1
  161. package/search/search-input/search-input.component.d.ts +1 -1
  162. package/search/src/search-box/README.md +73 -0
  163. package/search/src/search-input/README.md +74 -0
  164. package/side-sheet/side-sheet.content-directives.d.ts +2 -2
  165. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +1 -1
  166. package/user-profile/user-profile.component.d.ts +1 -1
  167. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  168. package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -94
  169. package/esm2022/breadcrumbs/breadcrumbs.component.mjs +0 -135
  170. package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +0 -43
  171. package/esm2022/common/behaviors/disable-ripple.mixin.mjs +0 -24
  172. package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +0 -87
  173. package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +0 -37
  174. package/esm2022/common/functions/convert.mjs +0 -84
  175. package/esm2022/common/functions/download.mjs +0 -75
  176. package/esm2022/common/pipes/bytes/bytes.pipe.mjs +0 -42
  177. package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +0 -42
  178. package/esm2022/common/pipes/digits/digits.pipe.mjs +0 -41
  179. package/esm2022/common/pipes/truncate/truncate.pipe.mjs +0 -27
  180. package/esm2022/common/services/icon.service.mjs +0 -1087
  181. package/esm2022/common/services/router-path.service.mjs +0 -30
  182. package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +0 -26
  183. package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -31
  184. package/esm2022/dialogs/dialog.component.mjs +0 -60
  185. package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +0 -84
  186. package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +0 -220
  187. package/esm2022/dialogs/services/dialog.service.mjs +0 -179
  188. package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +0 -40
  189. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +0 -30
  190. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +0 -23
  191. package/esm2022/dynamic-menu/dynamic-menu.component.mjs +0 -28
  192. package/esm2022/file/directives/file-drop.directive.mjs +0 -145
  193. package/esm2022/file/directives/file-select.directive.mjs +0 -78
  194. package/esm2022/file/file-input/file-input.component.mjs +0 -146
  195. package/esm2022/file/file-upload/file-upload.component.mjs +0 -185
  196. package/esm2022/file/services/file.service.mjs +0 -66
  197. package/esm2022/json-formatter/json-formatter.component.mjs +0 -222
  198. package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +0 -50
  199. package/esm2022/layout/layout-footer/layout-footer.component.mjs +0 -36
  200. package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +0 -92
  201. package/esm2022/layout/layout-nav/layout-nav.component.mjs +0 -76
  202. package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +0 -154
  203. package/esm2022/layout/layout-toggle.class.mjs +0 -96
  204. package/esm2022/layout/layout.component.mjs +0 -91
  205. package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +0 -221
  206. package/esm2022/loading/directives/loading.directive.mjs +0 -133
  207. package/esm2022/loading/loading.component.mjs +0 -193
  208. package/esm2022/loading/services/loading.factory.mjs +0 -210
  209. package/esm2022/loading/services/loading.service.mjs +0 -219
  210. package/esm2022/message/message.component.mjs +0 -222
  211. package/esm2022/search/search-box/search-box.component.mjs +0 -198
  212. package/esm2022/search/search-input/search-input.component.mjs +0 -214
  213. package/esm2022/side-sheet/side-sheet-container.mjs +0 -285
  214. package/esm2022/side-sheet/side-sheet-ref.mjs +0 -30
  215. package/esm2022/side-sheet/side-sheet.content-directives.mjs +0 -206
  216. package/esm2022/side-sheet/side-sheet.mjs +0 -236
  217. package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +0 -25
  218. package/esm2022/user-profile/user-profile.component.mjs +0 -21
  219. package/fesm2022/covalent-core-common.mjs.map +0 -1
  220. package/fesm2022/covalent-core-dialogs.mjs.map +0 -1
  221. package/fesm2022/covalent-core-dynamic-menu.mjs +0 -125
  222. package/fesm2022/covalent-core-search.mjs +0 -438
  223. package/fesm2022/covalent-core-search.mjs.map +0 -1
  224. package/fesm2022/covalent-core-user-profile.mjs +0 -87
  225. package/fesm2022/covalent-core-user-profile.mjs.map +0 -1
  226. /package/{esm2022 → esm2020}/breadcrumbs/covalent-core-breadcrumbs.mjs +0 -0
  227. /package/{esm2022 → esm2020}/breadcrumbs/public_api.mjs +0 -0
  228. /package/{esm2022 → esm2020}/common/animations/bounce/bounce.animation.mjs +0 -0
  229. /package/{esm2022 → esm2020}/common/animations/collapse/collapse.animation.mjs +0 -0
  230. /package/{esm2022 → esm2020}/common/animations/common/interfaces.mjs +0 -0
  231. /package/{esm2022 → esm2020}/common/animations/fade/fadeInOut.animation.mjs +0 -0
  232. /package/{esm2022 → esm2020}/common/animations/flash/flash.animation.mjs +0 -0
  233. /package/{esm2022 → esm2020}/common/animations/headshake/headshake.animation.mjs +0 -0
  234. /package/{esm2022 → esm2020}/common/animations/jello/jello.animation.mjs +0 -0
  235. /package/{esm2022 → esm2020}/common/animations/pulse/pulse.animation.mjs +0 -0
  236. /package/{esm2022 → esm2020}/common/animations/rotate/rotate.animation.mjs +0 -0
  237. /package/{esm2022 → esm2020}/common/covalent-core-common.mjs +0 -0
  238. /package/{esm2022 → esm2020}/common/forms/validators/validators.mjs +0 -0
  239. /package/{esm2022 → esm2020}/common/functions/clipboard.mjs +0 -0
  240. /package/{esm2022 → esm2020}/common/functions/file.mjs +0 -0
  241. /package/{esm2022 → esm2020}/common/public_api.mjs +0 -0
  242. /package/{esm2022 → esm2020}/covalent-core.mjs +0 -0
  243. /package/{esm2022 → esm2020}/dialogs/covalent-core-dialogs.mjs +0 -0
  244. /package/{esm2022 → esm2020}/dialogs/public_api.mjs +0 -0
  245. /package/{esm2022 → esm2020}/dynamic-menu/covalent-core-dynamic-menu.mjs +0 -0
  246. /package/{esm2022 → esm2020}/dynamic-menu/dynamic-menu.menu.mjs +0 -0
  247. /package/{esm2022 → esm2020}/dynamic-menu/public_api.mjs +0 -0
  248. /package/{esm2022 → esm2020}/file/covalent-core-file.mjs +0 -0
  249. /package/{esm2022 → esm2020}/file/public_api.mjs +0 -0
  250. /package/{esm2022 → esm2020}/json-formatter/collapse.animation.mjs +0 -0
  251. /package/{esm2022 → esm2020}/json-formatter/covalent-core-json-formatter.mjs +0 -0
  252. /package/{esm2022 → esm2020}/json-formatter/public_api.mjs +0 -0
  253. /package/{esm2022 → esm2020}/layout/covalent-core-layout.mjs +0 -0
  254. /package/{esm2022 → esm2020}/layout/public_api.mjs +0 -0
  255. /package/{esm2022 → esm2020}/loading/covalent-core-loading.mjs +0 -0
  256. /package/{esm2022 → esm2020}/loading/public_api.mjs +0 -0
  257. /package/{esm2022 → esm2020}/menu/covalent-core-menu.mjs +0 -0
  258. /package/{esm2022 → esm2020}/menu/public_api.mjs +0 -0
  259. /package/{esm2022 → esm2020}/message/collapse.animation.mjs +0 -0
  260. /package/{esm2022 → esm2020}/message/covalent-core-message.mjs +0 -0
  261. /package/{esm2022 → esm2020}/message/public_api.mjs +0 -0
  262. /package/{esm2022 → esm2020}/public_api.mjs +0 -0
  263. /package/{esm2022 → esm2020}/search/covalent-core-search.mjs +0 -0
  264. /package/{esm2022 → esm2020}/search/public_api.mjs +0 -0
  265. /package/{esm2022 → esm2020}/side-sheet/covalent-core-side-sheet.mjs +0 -0
  266. /package/{esm2022 → esm2020}/side-sheet/public_api.mjs +0 -0
  267. /package/{esm2022 → esm2020}/side-sheet/side-sheet.animation.mjs +0 -0
  268. /package/{esm2022 → esm2020}/user-profile/covalent-core-user-profile.mjs +0 -0
  269. /package/{esm2022 → esm2020}/user-profile/public_api.mjs +0 -0
  270. /package/{fesm2022 → fesm2015}/covalent-core.mjs +0 -0
  271. /package/{fesm2022 → fesm2015}/covalent-core.mjs.map +0 -0
package/package.json CHANGED
@@ -1,94 +1,122 @@
1
1
  {
2
2
  "name": "@covalent/core",
3
- "version": "6.4.0",
3
+ "version": "6.4.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./theming/_all-theme.scss",
7
7
  "types": "./index.d.ts",
8
- "esm2022": "./esm2022/covalent-core.mjs",
9
- "esm": "./esm2022/covalent-core.mjs",
10
- "default": "./fesm2022/covalent-core.mjs"
8
+ "esm2020": "./esm2020/covalent-core.mjs",
9
+ "es2020": "./fesm2020/covalent-core.mjs",
10
+ "es2015": "./fesm2015/covalent-core.mjs",
11
+ "node": "./fesm2015/covalent-core.mjs",
12
+ "default": "./fesm2020/covalent-core.mjs"
11
13
  },
12
14
  "./package.json": {
13
15
  "default": "./package.json"
14
16
  },
15
17
  "./breadcrumbs": {
16
18
  "types": "./breadcrumbs/index.d.ts",
17
- "esm2022": "./esm2022/breadcrumbs/covalent-core-breadcrumbs.mjs",
18
- "esm": "./esm2022/breadcrumbs/covalent-core-breadcrumbs.mjs",
19
- "default": "./fesm2022/covalent-core-breadcrumbs.mjs"
19
+ "esm2020": "./esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs",
20
+ "es2020": "./fesm2020/covalent-core-breadcrumbs.mjs",
21
+ "es2015": "./fesm2015/covalent-core-breadcrumbs.mjs",
22
+ "node": "./fesm2015/covalent-core-breadcrumbs.mjs",
23
+ "default": "./fesm2020/covalent-core-breadcrumbs.mjs"
24
+ },
25
+ "./common": {
26
+ "types": "./common/index.d.ts",
27
+ "esm2020": "./esm2020/common/covalent-core-common.mjs",
28
+ "es2020": "./fesm2020/covalent-core-common.mjs",
29
+ "es2015": "./fesm2015/covalent-core-common.mjs",
30
+ "node": "./fesm2015/covalent-core-common.mjs",
31
+ "default": "./fesm2020/covalent-core-common.mjs"
20
32
  },
21
33
  "./dialogs": {
22
34
  "types": "./dialogs/index.d.ts",
23
- "esm2022": "./esm2022/dialogs/covalent-core-dialogs.mjs",
24
- "esm": "./esm2022/dialogs/covalent-core-dialogs.mjs",
25
- "default": "./fesm2022/covalent-core-dialogs.mjs"
35
+ "esm2020": "./esm2020/dialogs/covalent-core-dialogs.mjs",
36
+ "es2020": "./fesm2020/covalent-core-dialogs.mjs",
37
+ "es2015": "./fesm2015/covalent-core-dialogs.mjs",
38
+ "node": "./fesm2015/covalent-core-dialogs.mjs",
39
+ "default": "./fesm2020/covalent-core-dialogs.mjs"
26
40
  },
27
41
  "./dynamic-menu": {
28
42
  "types": "./dynamic-menu/index.d.ts",
29
- "esm2022": "./esm2022/dynamic-menu/covalent-core-dynamic-menu.mjs",
30
- "esm": "./esm2022/dynamic-menu/covalent-core-dynamic-menu.mjs",
31
- "default": "./fesm2022/covalent-core-dynamic-menu.mjs"
32
- },
33
- "./common": {
34
- "types": "./common/index.d.ts",
35
- "esm2022": "./esm2022/common/covalent-core-common.mjs",
36
- "esm": "./esm2022/common/covalent-core-common.mjs",
37
- "default": "./fesm2022/covalent-core-common.mjs"
43
+ "esm2020": "./esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs",
44
+ "es2020": "./fesm2020/covalent-core-dynamic-menu.mjs",
45
+ "es2015": "./fesm2015/covalent-core-dynamic-menu.mjs",
46
+ "node": "./fesm2015/covalent-core-dynamic-menu.mjs",
47
+ "default": "./fesm2020/covalent-core-dynamic-menu.mjs"
38
48
  },
39
49
  "./file": {
40
50
  "types": "./file/index.d.ts",
41
- "esm2022": "./esm2022/file/covalent-core-file.mjs",
42
- "esm": "./esm2022/file/covalent-core-file.mjs",
43
- "default": "./fesm2022/covalent-core-file.mjs"
51
+ "esm2020": "./esm2020/file/covalent-core-file.mjs",
52
+ "es2020": "./fesm2020/covalent-core-file.mjs",
53
+ "es2015": "./fesm2015/covalent-core-file.mjs",
54
+ "node": "./fesm2015/covalent-core-file.mjs",
55
+ "default": "./fesm2020/covalent-core-file.mjs"
44
56
  },
45
57
  "./json-formatter": {
46
58
  "types": "./json-formatter/index.d.ts",
47
- "esm2022": "./esm2022/json-formatter/covalent-core-json-formatter.mjs",
48
- "esm": "./esm2022/json-formatter/covalent-core-json-formatter.mjs",
49
- "default": "./fesm2022/covalent-core-json-formatter.mjs"
59
+ "esm2020": "./esm2020/json-formatter/covalent-core-json-formatter.mjs",
60
+ "es2020": "./fesm2020/covalent-core-json-formatter.mjs",
61
+ "es2015": "./fesm2015/covalent-core-json-formatter.mjs",
62
+ "node": "./fesm2015/covalent-core-json-formatter.mjs",
63
+ "default": "./fesm2020/covalent-core-json-formatter.mjs"
50
64
  },
51
65
  "./layout": {
52
66
  "types": "./layout/index.d.ts",
53
- "esm2022": "./esm2022/layout/covalent-core-layout.mjs",
54
- "esm": "./esm2022/layout/covalent-core-layout.mjs",
55
- "default": "./fesm2022/covalent-core-layout.mjs"
67
+ "esm2020": "./esm2020/layout/covalent-core-layout.mjs",
68
+ "es2020": "./fesm2020/covalent-core-layout.mjs",
69
+ "es2015": "./fesm2015/covalent-core-layout.mjs",
70
+ "node": "./fesm2015/covalent-core-layout.mjs",
71
+ "default": "./fesm2020/covalent-core-layout.mjs"
56
72
  },
57
73
  "./loading": {
58
74
  "types": "./loading/index.d.ts",
59
- "esm2022": "./esm2022/loading/covalent-core-loading.mjs",
60
- "esm": "./esm2022/loading/covalent-core-loading.mjs",
61
- "default": "./fesm2022/covalent-core-loading.mjs"
75
+ "esm2020": "./esm2020/loading/covalent-core-loading.mjs",
76
+ "es2020": "./fesm2020/covalent-core-loading.mjs",
77
+ "es2015": "./fesm2015/covalent-core-loading.mjs",
78
+ "node": "./fesm2015/covalent-core-loading.mjs",
79
+ "default": "./fesm2020/covalent-core-loading.mjs"
62
80
  },
63
81
  "./menu": {
64
82
  "types": "./menu/index.d.ts",
65
- "esm2022": "./esm2022/menu/covalent-core-menu.mjs",
66
- "esm": "./esm2022/menu/covalent-core-menu.mjs",
67
- "default": "./fesm2022/covalent-core-menu.mjs"
83
+ "esm2020": "./esm2020/menu/covalent-core-menu.mjs",
84
+ "es2020": "./fesm2020/covalent-core-menu.mjs",
85
+ "es2015": "./fesm2015/covalent-core-menu.mjs",
86
+ "node": "./fesm2015/covalent-core-menu.mjs",
87
+ "default": "./fesm2020/covalent-core-menu.mjs"
68
88
  },
69
89
  "./message": {
70
90
  "types": "./message/index.d.ts",
71
- "esm2022": "./esm2022/message/covalent-core-message.mjs",
72
- "esm": "./esm2022/message/covalent-core-message.mjs",
73
- "default": "./fesm2022/covalent-core-message.mjs"
91
+ "esm2020": "./esm2020/message/covalent-core-message.mjs",
92
+ "es2020": "./fesm2020/covalent-core-message.mjs",
93
+ "es2015": "./fesm2015/covalent-core-message.mjs",
94
+ "node": "./fesm2015/covalent-core-message.mjs",
95
+ "default": "./fesm2020/covalent-core-message.mjs"
74
96
  },
75
97
  "./search": {
76
98
  "types": "./search/index.d.ts",
77
- "esm2022": "./esm2022/search/covalent-core-search.mjs",
78
- "esm": "./esm2022/search/covalent-core-search.mjs",
79
- "default": "./fesm2022/covalent-core-search.mjs"
99
+ "esm2020": "./esm2020/search/covalent-core-search.mjs",
100
+ "es2020": "./fesm2020/covalent-core-search.mjs",
101
+ "es2015": "./fesm2015/covalent-core-search.mjs",
102
+ "node": "./fesm2015/covalent-core-search.mjs",
103
+ "default": "./fesm2020/covalent-core-search.mjs"
80
104
  },
81
105
  "./side-sheet": {
82
106
  "types": "./side-sheet/index.d.ts",
83
- "esm2022": "./esm2022/side-sheet/covalent-core-side-sheet.mjs",
84
- "esm": "./esm2022/side-sheet/covalent-core-side-sheet.mjs",
85
- "default": "./fesm2022/covalent-core-side-sheet.mjs"
107
+ "esm2020": "./esm2020/side-sheet/covalent-core-side-sheet.mjs",
108
+ "es2020": "./fesm2020/covalent-core-side-sheet.mjs",
109
+ "es2015": "./fesm2015/covalent-core-side-sheet.mjs",
110
+ "node": "./fesm2015/covalent-core-side-sheet.mjs",
111
+ "default": "./fesm2020/covalent-core-side-sheet.mjs"
86
112
  },
87
113
  "./user-profile": {
88
114
  "types": "./user-profile/index.d.ts",
89
- "esm2022": "./esm2022/user-profile/covalent-core-user-profile.mjs",
90
- "esm": "./esm2022/user-profile/covalent-core-user-profile.mjs",
91
- "default": "./fesm2022/covalent-core-user-profile.mjs"
115
+ "esm2020": "./esm2020/user-profile/covalent-core-user-profile.mjs",
116
+ "es2020": "./fesm2020/covalent-core-user-profile.mjs",
117
+ "es2015": "./fesm2015/covalent-core-user-profile.mjs",
118
+ "node": "./fesm2015/covalent-core-user-profile.mjs",
119
+ "default": "./fesm2020/covalent-core-user-profile.mjs"
92
120
  }
93
121
  },
94
122
  "repository": {
@@ -101,18 +129,26 @@
101
129
  "license": "MIT",
102
130
  "author": "Teradata UX",
103
131
  "peerDependencies": {
104
- "@angular/common": "16.x.x",
105
- "@angular/core": "16.x.x",
106
- "@angular/forms": "16.x.x",
107
- "@angular/router": "16.x.x",
108
- "@angular/cdk": "16.x.x",
109
- "@angular/material": "16.x.x",
110
- "@covalent/core": "6.4.0"
132
+ "@angular/common": "^15.2.10",
133
+ "@angular/core": "^15.2.10",
134
+ "@angular/forms": "^15.2.10",
135
+ "@angular/router": "^15.2.10",
136
+ "@angular/cdk": "^15.2.9",
137
+ "@angular/material": "^15.2.9",
138
+ "@covalent/core": "6.4.2",
139
+ "@angular/platform-browser": "15.2.10",
140
+ "rxjs": "7.8.1",
141
+ "@angular/animations": "15.2.10",
142
+ "@angular/platform-browser-dynamic": "15.2.10"
111
143
  },
112
144
  "dependencies": {
113
145
  "tslib": "^2.0.0"
114
146
  },
115
- "module": "fesm2022/covalent-core.mjs",
147
+ "module": "fesm2015/covalent-core.mjs",
148
+ "es2020": "fesm2020/covalent-core.mjs",
149
+ "esm2020": "esm2020/covalent-core.mjs",
150
+ "fesm2020": "fesm2020/covalent-core.mjs",
151
+ "fesm2015": "fesm2015/covalent-core.mjs",
116
152
  "typings": "index.d.ts",
117
153
  "sideEffects": false
118
- }
154
+ }
@@ -84,5 +84,5 @@ export declare class TdSearchBoxComponent implements ControlValueAccessor {
84
84
  handleClear(): void;
85
85
  handleBlur(): void;
86
86
  static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchBoxComponent, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": { "alias": "backIcon"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "alwaysVisible": { "alias": "alwaysVisible"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": "backIcon"; "searchIcon": "searchIcon"; "clearIcon": "clearIcon"; "showUnderline": "showUnderline"; "debounce": "debounce"; "alwaysVisible": "alwaysVisible"; "placeholder": "placeholder"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
88
88
  }
@@ -80,5 +80,5 @@ export declare class TdSearchInputComponent extends _TdSearchInputMixinBase impl
80
80
  private _searchTermChanged;
81
81
  private _stopPropagation;
82
82
  static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchInputComponent, [{ optional: true; }, null, null]>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": { "alias": "appearance"; "required": false; }; "showUnderline": { "alias": "showUnderline"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": "appearance"; "showUnderline": "showUnderline"; "debounce": "debounce"; "placeholder": "placeholder"; "clearIcon": "clearIcon"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never, false, never>;
84
84
  }
@@ -0,0 +1,73 @@
1
+ # TdSearchBoxComponent: td-search-box
2
+
3
+ `td-search-box` element to generate a search box with animations.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - backIcon?: string
10
+ - The icon used to close the search toggle, only shown when [alwaysVisible] is false. Defaults to 'search' icon.
11
+ - searchIcon?: string
12
+ - The icon used to open/focus the search toggle. Defaults to 'search' icon.
13
+ - clearIcon?: string
14
+ - The icon used to clear the search input. Defaults to 'cancel' icon.
15
+ - showUnderline?: boolean
16
+ - Sets if the input underline should be visible. Defaults to 'false'.
17
+ - debounce?: number
18
+ - Debounce timeout between keypresses. Defaults to 400.
19
+ - alwaysVisible?: boolean
20
+ - Sets if the input should always be visible. Defaults to 'false'.
21
+ - placeholder?: string
22
+ - Placeholder for the underlying input component.
23
+
24
+ #### Events
25
+
26
+ - searchDebounce?: string
27
+ - Event emitted after the [debounce] timeout.
28
+ - Emits a [string].
29
+ - search?: string
30
+ - Event emitted after the key enter has been pressed.
31
+ - Emits a [string].
32
+ - clear?: string
33
+ - Event emitted after the clear icon has been clicked.
34
+ - Emits [void].
35
+ - blur: function
36
+ - Event emitted after the blur event has been called in underlying input.
37
+ - Emits [void].
38
+
39
+ ## Setup
40
+
41
+ Import the [CovalentSearchModule] in your NgModule:
42
+
43
+ ```typescript
44
+ import { CovalentSearchModule } from '@covalent/core/search';
45
+ @NgModule({
46
+ imports: [
47
+ CovalentSearchModule,
48
+ ...
49
+ ],
50
+ ...
51
+ })
52
+ export class MyModule {}
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ Example for HTML usage:
58
+
59
+ ```html
60
+ <td-search-box
61
+ backIcon="arrow_back"
62
+ placeholder="Search here"
63
+ [(ngModel)]="searchInputTerm"
64
+ [showUnderline]="false|true"
65
+ [debounce]="500"
66
+ [alwaysVisible]="false|true"
67
+ (searchDebounce)="searchInputTerm = $event"
68
+ (search)="searchInputTerm = $event"
69
+ (clear)="searchInputTerm = ''"
70
+ (blur)="onBlurEvent()"
71
+ >
72
+ </td-search-box>
73
+ ```
@@ -0,0 +1,74 @@
1
+ # TdSearchInputComponent: td-search-input
2
+
3
+ `td-search-input` element to generate a search input with its animated cancel button.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - debounce?: number
10
+ - Debounce timeout between keypresses. Defaults to 400.
11
+ - placeholder?: string
12
+ - Placeholder for the underlying input component.
13
+ - showUnderline?: boolean
14
+ - Sets if the input underline should be visible. Defaults to 'false'.
15
+ - clearIcon?: string
16
+ - The icon used to clear the search input. Defaults to 'cancel' icon.
17
+ - appearance?: MatFormFieldAppearance
18
+ - Appearance style for the underlying input component.
19
+
20
+ #### Events
21
+
22
+ - searchDebounce: function
23
+ - Event emitted after the [debounce] timeout.
24
+ - Emits a [string].
25
+ - search: function
26
+ - Event emitted after the key enter has been pressed.
27
+ - Emits a [string].
28
+ - clear: function
29
+ - Event emitted after the clear icon has been clicked.
30
+ - Emits [void].
31
+ - blur: function
32
+ - Event emitted after the blur event has been called in underlying input.
33
+ - Emits [void].
34
+
35
+ #### Methods
36
+
37
+ - focus: function
38
+ - Method to focus to underlying input.
39
+ - clearSearch: function
40
+ - Method to clear the underlying input.
41
+
42
+ ## Setup
43
+
44
+ Import the [CovalentSearchModule] in your NgModule:
45
+
46
+ ```typescript
47
+ import { CovalentSearchModule } from '@covalent/core/search';
48
+ @NgModule({
49
+ imports: [
50
+ CovalentSearchModule,
51
+ ...
52
+ ],
53
+ ...
54
+ })
55
+ export class MyModule {}
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ Example for HTML usage:
61
+
62
+ ```html
63
+ <td-search-input
64
+ appearance="fill|outline"
65
+ placeholder="Search here"
66
+ [(ngModel)]="searchInputTerm"
67
+ [showUnderline]="false|true"
68
+ [debounce]="500"
69
+ (searchDebounce)="searchInputTerm = $event"
70
+ (search)="searchInputTerm = $event"
71
+ (clear)="searchInputTerm = ''"
72
+ >
73
+ </td-search-input>
74
+ ```
@@ -22,7 +22,7 @@ export declare class CovalentSideSheetCloseDirective implements OnInit, OnChange
22
22
  ngOnChanges(changes: SimpleChanges): void;
23
23
  _onButtonClick(event: MouseEvent): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetCloseDirective, [{ optional: true; }, null, null]>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "td-side-sheet-close"; "required": false; }; "_CovalentSideSheetClose": { "alias": "CovalentSideSheetClose"; "required": false; }; }, {}, never, never, false, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "td-side-sheet-close"; "_CovalentSideSheetClose": "CovalentSideSheetClose"; }, {}, never, never, false, never>;
26
26
  }
27
27
  /**
28
28
  * Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
@@ -38,7 +38,7 @@ export declare class CovalentSideSheetTitleDirective implements OnInit {
38
38
  constructor(_dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
39
39
  ngOnInit(): void;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetTitleDirective, [{ optional: true; }, null, null]>;
41
- static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": "id"; }, {}, never, never, false, never>;
42
42
  }
43
43
  /**
44
44
  * Scrollable content container of a dialog.
@@ -4,5 +4,5 @@ export declare class TdUserProfileMenuComponent {
4
4
  name?: string;
5
5
  _blockEvent(event: Event): void;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TdUserProfileMenuComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileMenuComponent, "td-user-profile-menu", never, { "email": { "alias": "email"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileMenuComponent, "td-user-profile-menu", never, { "email": "email"; "name": "name"; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
8
8
  }
@@ -3,5 +3,5 @@ export declare class TdUserProfileComponent {
3
3
  name?: string;
4
4
  email?: string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TdUserProfileComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileComponent, "td-user-profile", never, { "name": { "alias": "name"; "required": false; }; "email": { "alias": "email"; "required": false; }; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdUserProfileComponent, "td-user-profile", never, { "name": "name"; "email": "email"; }, {}, never, ["[td-user-info-list]", "[td-user-action-list]"], false, never>;
7
7
  }
@@ -1,94 +0,0 @@
1
- import { Component, ElementRef, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef, } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/material/icon";
5
- export class TdBreadcrumbComponent {
6
- _elementRef;
7
- _changeDetectorRef;
8
- _displayCrumb = true;
9
- _width = 0;
10
- _displayIcon = true;
11
- _separatorIcon = 'chevron_right';
12
- matButtonClass = true;
13
- tdBreadCrumbClass = true;
14
- // Sets the icon url shown between breadcrumbs. Defaults to 'chevron_right'
15
- get separatorIcon() {
16
- return this._separatorIcon;
17
- }
18
- set separatorIcon(separatorIcon) {
19
- this._separatorIcon = separatorIcon;
20
- setTimeout(() => {
21
- this._changeDetectorRef.markForCheck();
22
- });
23
- }
24
- // Should show the right chevron or not before the label
25
- get displayIcon() {
26
- return this._displayIcon;
27
- }
28
- set displayIcon(displayIcon) {
29
- this._displayIcon = displayIcon;
30
- setTimeout(() => {
31
- this._changeDetectorRef.markForCheck();
32
- });
33
- }
34
- get displayCrumb() {
35
- return this._displayCrumb;
36
- }
37
- /**
38
- * Whether to display the crumb or not
39
- */
40
- set displayCrumb(shouldDisplay) {
41
- this._displayCrumb = shouldDisplay;
42
- setTimeout(() => {
43
- this._changeDetectorRef.markForCheck();
44
- });
45
- }
46
- /**
47
- * Width of the DOM element of the crumb
48
- */
49
- get width() {
50
- return this._width;
51
- }
52
- /**
53
- * Gets the display style of the crumb
54
- */
55
- get displayBinding() {
56
- // Set the display to none on the component, just in case the end user is hiding
57
- // and showing them instead of the component doing itself for reasons like responsive
58
- return this._displayCrumb ? undefined : 'none';
59
- }
60
- constructor(_elementRef, _changeDetectorRef) {
61
- this._elementRef = _elementRef;
62
- this._changeDetectorRef = _changeDetectorRef;
63
- }
64
- ngAfterViewInit() {
65
- // set the width from the actual rendered DOM element
66
- setTimeout(() => {
67
- this._width = (this._elementRef.nativeElement).getBoundingClientRect().width;
68
- this._changeDetectorRef.markForCheck();
69
- });
70
- }
71
- /**
72
- * Stop click propagation when clicking on icon
73
- */
74
- _handleIconClick(event) {
75
- event.stopPropagation();
76
- event.preventDefault();
77
- }
78
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TdBreadcrumbComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
79
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: TdBreadcrumbComponent, selector: "td-breadcrumb, a[td-breadcrumb]", host: { properties: { "class.mdc-button": "this.matButtonClass", "class.td-breadcrumb": "this.tdBreadCrumbClass", "style.display": "this.displayBinding" } }, ngImport: i0, template: "<ng-content></ng-content>\n<mat-icon\n *ngIf=\"displayIcon\"\n class=\"td-breadcrumb-separator-icon\"\n [style.cursor]=\"'default'\"\n (click)=\"_handleIconClick($event)\"\n >{{ separatorIcon }}</mat-icon\n>\n", styles: [":host.td-breadcrumb{display:inline-block;box-sizing:border-box;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
80
- }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TdBreadcrumbComponent, decorators: [{
82
- type: Component,
83
- args: [{ selector: 'td-breadcrumb, a[td-breadcrumb]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<mat-icon\n *ngIf=\"displayIcon\"\n class=\"td-breadcrumb-separator-icon\"\n [style.cursor]=\"'default'\"\n (click)=\"_handleIconClick($event)\"\n >{{ separatorIcon }}</mat-icon\n>\n", styles: [":host.td-breadcrumb{display:inline-block;box-sizing:border-box;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}\n"] }]
84
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { matButtonClass: [{
85
- type: HostBinding,
86
- args: ['class.mdc-button']
87
- }], tdBreadCrumbClass: [{
88
- type: HostBinding,
89
- args: ['class.td-breadcrumb']
90
- }], displayBinding: [{
91
- type: HostBinding,
92
- args: ['style.display']
93
- }] } });
94
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWRjcnVtYnMvc3JjL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvYnJlYWRjcnVtYnMvc3JjL2JyZWF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