@aurelia-mdc-web/all 9.3.1-au2 → 9.3.3-au2

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 (621) hide show
  1. package/dist/alert/alert-configuration.js +15 -0
  2. package/dist/alert/alert-configuration.js.map +1 -0
  3. package/dist/alert/alert-modal/alert-modal.html +27 -0
  4. package/dist/alert/alert-modal/alert-modal.js +30 -0
  5. package/dist/alert/alert-modal/alert-modal.js.map +1 -0
  6. package/dist/alert/alert-modal/i-alert-modal-payload.js +14 -0
  7. package/dist/alert/alert-modal/i-alert-modal-payload.js.map +1 -0
  8. package/dist/alert/alert-service.js +106 -0
  9. package/dist/alert/alert-service.js.map +1 -0
  10. package/dist/alert/decorators/confirm-action.js +17 -0
  11. package/dist/alert/decorators/confirm-action.js.map +1 -0
  12. package/dist/alert/decorators/using-progress.js +27 -0
  13. package/dist/alert/decorators/using-progress.js.map +1 -0
  14. package/dist/alert/exceptions-tracker.js +8 -0
  15. package/dist/alert/exceptions-tracker.js.map +1 -0
  16. package/dist/alert/global-progress/global-progress.html +9 -0
  17. package/dist/alert/global-progress/global-progress.js +64 -0
  18. package/dist/alert/global-progress/global-progress.js.map +1 -0
  19. package/dist/alert/prompt-dialog/prompt-dialog.html +15 -0
  20. package/dist/alert/prompt-dialog/prompt-dialog.js +44 -0
  21. package/dist/alert/prompt-dialog/prompt-dialog.js.map +1 -0
  22. package/dist/banner/mdc-banner.html +21 -21
  23. package/dist/banner/mdc-banner.js +45 -42
  24. package/dist/banner/mdc-banner.js.map +1 -1
  25. package/dist/base/attributes/mdc-focus-trap.js +25 -22
  26. package/dist/base/attributes/mdc-focus-trap.js.map +1 -1
  27. package/dist/base/elements/i-validated-element.js +2 -1
  28. package/dist/base/elements/i-validated-element.js.map +1 -1
  29. package/dist/base/elements/mdc-promisify-reference.js +16 -13
  30. package/dist/base/elements/mdc-promisify-reference.js.map +1 -1
  31. package/dist/base/index.js +21 -9
  32. package/dist/base/index.js.map +1 -1
  33. package/dist/base/interceptors.js +12 -5
  34. package/dist/base/interceptors.js.map +1 -1
  35. package/dist/base/material-palette.js +4 -1
  36. package/dist/base/material-palette.js.map +1 -1
  37. package/dist/base/mdc-component.js +5 -1
  38. package/dist/base/mdc-component.js.map +1 -1
  39. package/dist/base/next-element.js +4 -1
  40. package/dist/base/next-element.js.map +1 -1
  41. package/dist/button/enhance-mdc-button.js +9 -6
  42. package/dist/button/enhance-mdc-button.js.map +1 -1
  43. package/dist/button/mdc-button-label.js +9 -6
  44. package/dist/button/mdc-button-label.js.map +1 -1
  45. package/dist/button/mdc-button.html +12 -12
  46. package/dist/button/mdc-button.js +30 -27
  47. package/dist/button/mdc-button.js.map +1 -1
  48. package/dist/card/mdc-card-action-buttons.js +9 -6
  49. package/dist/card/mdc-card-action-buttons.js.map +1 -1
  50. package/dist/card/mdc-card-action-icons.js +9 -6
  51. package/dist/card/mdc-card-action-icons.js.map +1 -1
  52. package/dist/card/mdc-card-actions/mdc-card-actions.html +3 -3
  53. package/dist/card/mdc-card-actions/mdc-card-actions.js +15 -12
  54. package/dist/card/mdc-card-actions/mdc-card-actions.js.map +1 -1
  55. package/dist/card/mdc-card-media/mdc-card-media.html +5 -5
  56. package/dist/card/mdc-card-media/mdc-card-media.js +18 -15
  57. package/dist/card/mdc-card-media/mdc-card-media.js.map +1 -1
  58. package/dist/card/mdc-card-primary-action.html +5 -5
  59. package/dist/card/mdc-card-primary-action.js +15 -12
  60. package/dist/card/mdc-card-primary-action.js.map +1 -1
  61. package/dist/card/mdc-card.html +3 -3
  62. package/dist/card/mdc-card.js +15 -12
  63. package/dist/card/mdc-card.js.map +1 -1
  64. package/dist/checkbox/mdc-checkbox.html +12 -12
  65. package/dist/checkbox/mdc-checkbox.js +38 -35
  66. package/dist/checkbox/mdc-checkbox.js.map +1 -1
  67. package/dist/chips/mdc-chip/mdc-chip.html +24 -24
  68. package/dist/chips/mdc-chip/mdc-chip.js +37 -34
  69. package/dist/chips/mdc-chip/mdc-chip.js.map +1 -1
  70. package/dist/chips/mdc-chip-action/enhance-mdc-chip-action.js +9 -6
  71. package/dist/chips/mdc-chip-action/enhance-mdc-chip-action.js.map +1 -1
  72. package/dist/chips/mdc-chip-action/mdc-chip-action.html +25 -25
  73. package/dist/chips/mdc-chip-action/mdc-chip-action.js +40 -37
  74. package/dist/chips/mdc-chip-action/mdc-chip-action.js.map +1 -1
  75. package/dist/chips/mdc-chip-set/mdc-chip-set.html +10 -10
  76. package/dist/chips/mdc-chip-set/mdc-chip-set.js +27 -24
  77. package/dist/chips/mdc-chip-set/mdc-chip-set.js.map +1 -1
  78. package/dist/circular-progress/mdc-circular-progress.html +38 -38
  79. package/dist/circular-progress/mdc-circular-progress.js +25 -22
  80. package/dist/circular-progress/mdc-circular-progress.js.map +1 -1
  81. package/dist/data-table/mdc-data-table-row.js +13 -10
  82. package/dist/data-table/mdc-data-table-row.js.map +1 -1
  83. package/dist/data-table/mdc-data-table.html +50 -49
  84. package/dist/data-table/mdc-data-table.js +183 -91
  85. package/dist/data-table/mdc-data-table.js.map +1 -1
  86. package/dist/dialog/mdc-dialog-actions.js +13 -10
  87. package/dist/dialog/mdc-dialog-actions.js.map +1 -1
  88. package/dist/dialog/mdc-dialog-content.js +9 -6
  89. package/dist/dialog/mdc-dialog-content.js.map +1 -1
  90. package/dist/dialog/mdc-dialog-service.js +20 -13
  91. package/dist/dialog/mdc-dialog-service.js.map +1 -1
  92. package/dist/dialog/mdc-dialog-title.js +9 -6
  93. package/dist/dialog/mdc-dialog-title.js.map +1 -1
  94. package/dist/dialog/mdc-dialog.html +14 -14
  95. package/dist/dialog/mdc-dialog.js +49 -46
  96. package/dist/dialog/mdc-dialog.js.map +1 -1
  97. package/dist/drawer/mdc-drawer-app-content.js +9 -6
  98. package/dist/drawer/mdc-drawer-app-content.js.map +1 -1
  99. package/dist/drawer/mdc-drawer-content.js +9 -6
  100. package/dist/drawer/mdc-drawer-content.js.map +1 -1
  101. package/dist/drawer/mdc-drawer-header/mdc-drawer-header.html +5 -5
  102. package/dist/drawer/mdc-drawer-header/mdc-drawer-header.js +17 -14
  103. package/dist/drawer/mdc-drawer-header/mdc-drawer-header.js.map +1 -1
  104. package/dist/drawer/mdc-drawer.html +6 -6
  105. package/dist/drawer/mdc-drawer.js +24 -21
  106. package/dist/drawer/mdc-drawer.js.map +1 -1
  107. package/dist/elevation/mdc-elevation.js +9 -6
  108. package/dist/elevation/mdc-elevation.js.map +1 -1
  109. package/dist/expandable/mdc-expandable.html +28 -28
  110. package/dist/expandable/mdc-expandable.js +20 -17
  111. package/dist/expandable/mdc-expandable.js.map +1 -1
  112. package/dist/fab/enhance-mdc-fab.js +9 -6
  113. package/dist/fab/enhance-mdc-fab.js.map +1 -1
  114. package/dist/fab/mdc-fab-icon.js +9 -6
  115. package/dist/fab/mdc-fab-icon.js.map +1 -1
  116. package/dist/fab/mdc-fab.html +13 -13
  117. package/dist/fab/mdc-fab.js +33 -30
  118. package/dist/fab/mdc-fab.js.map +1 -1
  119. package/dist/floating-label/mdc-floating-label.html +1 -1
  120. package/dist/floating-label/mdc-floating-label.js +16 -13
  121. package/dist/floating-label/mdc-floating-label.js.map +1 -1
  122. package/dist/form-field/mdc-form-field.html +6 -6
  123. package/dist/form-field/mdc-form-field.js +27 -24
  124. package/dist/form-field/mdc-form-field.js.map +1 -1
  125. package/dist/icon/mdc-icon.html +3 -3
  126. package/dist/icon/mdc-icon.js +10 -7
  127. package/dist/icon/mdc-icon.js.map +1 -1
  128. package/dist/icon-button/enhance-mdc-icon-button.js +9 -6
  129. package/dist/icon-button/enhance-mdc-icon-button.js.map +1 -1
  130. package/dist/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.html +4 -4
  131. package/dist/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.js +18 -15
  132. package/dist/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.js.map +1 -1
  133. package/dist/icon-button/mdc-icon-button.html +11 -11
  134. package/dist/icon-button/mdc-icon-button.js +28 -25
  135. package/dist/icon-button/mdc-icon-button.js.map +1 -1
  136. package/dist/image-list/mdc-image-list-item/mdc-image-list-item.html +9 -9
  137. package/dist/image-list/mdc-image-list-item/mdc-image-list-item.js +22 -19
  138. package/dist/image-list/mdc-image-list-item/mdc-image-list-item.js.map +1 -1
  139. package/dist/image-list/mdc-image-list.html +7 -7
  140. package/dist/image-list/mdc-image-list.js +35 -32
  141. package/dist/image-list/mdc-image-list.js.map +1 -1
  142. package/dist/index.js +297 -139
  143. package/dist/index.js.map +1 -1
  144. package/dist/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.html +12 -12
  145. package/dist/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.js +36 -33
  146. package/dist/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.js.map +1 -1
  147. package/dist/layout-grid/mdc-layout-grid-inner.js +9 -6
  148. package/dist/layout-grid/mdc-layout-grid-inner.js.map +1 -1
  149. package/dist/layout-grid/mdc-layout-grid.html +8 -8
  150. package/dist/layout-grid/mdc-layout-grid.js +33 -30
  151. package/dist/layout-grid/mdc-layout-grid.js.map +1 -1
  152. package/dist/line-ripple/mdc-line-ripple.js +13 -10
  153. package/dist/line-ripple/mdc-line-ripple.js.map +1 -1
  154. package/dist/linear-progress/mdc-linear-progress.html +12 -12
  155. package/dist/linear-progress/mdc-linear-progress.js +26 -23
  156. package/dist/linear-progress/mdc-linear-progress.js.map +1 -1
  157. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.html +4 -4
  158. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.js +18 -15
  159. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.js.map +1 -1
  160. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-group.js +17 -14
  161. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-group.js.map +1 -1
  162. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/enhance-mdc-deprecated-list-item.js +9 -6
  163. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/enhance-mdc-deprecated-list-item.js.map +1 -1
  164. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-graphic.js +9 -6
  165. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-graphic.js.map +1 -1
  166. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-meta.js +9 -6
  167. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-meta.js.map +1 -1
  168. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.html +8 -8
  169. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.js +28 -25
  170. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.js.map +1 -1
  171. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-primary-text.js +9 -6
  172. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-primary-text.js.map +1 -1
  173. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-secondary-text.js +9 -6
  174. package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-secondary-text.js.map +1 -1
  175. package/dist/list/mdc-deprecated-list/mdc-deprecated-list.html +15 -15
  176. package/dist/list/mdc-deprecated-list/mdc-deprecated-list.js +78 -75
  177. package/dist/list/mdc-deprecated-list/mdc-deprecated-list.js.map +1 -1
  178. package/dist/list/mdc-list-divider/mdc-list-divider.html +7 -7
  179. package/dist/list/mdc-list-divider/mdc-list-divider.js +21 -18
  180. package/dist/list/mdc-list-divider/mdc-list-divider.js.map +1 -1
  181. package/dist/list/mdc-list-group.js +17 -14
  182. package/dist/list/mdc-list-group.js.map +1 -1
  183. package/dist/list/mdc-list-item/enhance-mdc-list-item.js +9 -6
  184. package/dist/list/mdc-list-item/enhance-mdc-list-item.js.map +1 -1
  185. package/dist/list/mdc-list-item/mdc-list-item-leading.js +9 -6
  186. package/dist/list/mdc-list-item/mdc-list-item-leading.js.map +1 -1
  187. package/dist/list/mdc-list-item/mdc-list-item-trailing.js +9 -6
  188. package/dist/list/mdc-list-item/mdc-list-item-trailing.js.map +1 -1
  189. package/dist/list/mdc-list-item/mdc-list-item.html +13 -13
  190. package/dist/list/mdc-list-item/mdc-list-item.js +40 -37
  191. package/dist/list/mdc-list-item/mdc-list-item.js.map +1 -1
  192. package/dist/list/mdc-list-item-overline-text.js +9 -6
  193. package/dist/list/mdc-list-item-overline-text.js.map +1 -1
  194. package/dist/list/mdc-list-item-primary-text.js +9 -6
  195. package/dist/list/mdc-list-item-primary-text.js.map +1 -1
  196. package/dist/list/mdc-list-item-secondary-text.js +9 -6
  197. package/dist/list/mdc-list-item-secondary-text.js.map +1 -1
  198. package/dist/list/mdc-list.html +5 -5
  199. package/dist/list/mdc-list.js +58 -55
  200. package/dist/list/mdc-list.js.map +1 -1
  201. package/dist/lookup/discardable-promise.js +5 -1
  202. package/dist/lookup/discardable-promise.js.map +1 -1
  203. package/dist/lookup/mdc-lookup-configuration.js +5 -1
  204. package/dist/lookup/mdc-lookup-configuration.js.map +1 -1
  205. package/dist/lookup/mdc-lookup.html +27 -27
  206. package/dist/lookup/mdc-lookup.js +74 -71
  207. package/dist/lookup/mdc-lookup.js.map +1 -1
  208. package/dist/mdc-configuration.js +15 -9
  209. package/dist/mdc-configuration.js.map +1 -1
  210. package/dist/menu/mdc-menu-selection-group-icon.js +9 -6
  211. package/dist/menu/mdc-menu-selection-group-icon.js.map +1 -1
  212. package/dist/menu/mdc-menu-selection-group.js +9 -6
  213. package/dist/menu/mdc-menu-selection-group.js.map +1 -1
  214. package/dist/menu/mdc-menu.html +6 -6
  215. package/dist/menu/mdc-menu.js +71 -68
  216. package/dist/menu/mdc-menu.js.map +1 -1
  217. package/dist/menu-surface/mdc-menu-surface-anchor.js +11 -8
  218. package/dist/menu-surface/mdc-menu-surface-anchor.js.map +1 -1
  219. package/dist/menu-surface/mdc-menu-surface.js +61 -58
  220. package/dist/menu-surface/mdc-menu-surface.js.map +1 -1
  221. package/dist/notched-outline/mdc-notched-outline.html +7 -7
  222. package/dist/notched-outline/mdc-notched-outline.js +20 -17
  223. package/dist/notched-outline/mdc-notched-outline.js.map +1 -1
  224. package/dist/radio/mdc-radio.html +9 -9
  225. package/dist/radio/mdc-radio.js +27 -24
  226. package/dist/radio/mdc-radio.js.map +1 -1
  227. package/dist/ripple/mdc-ripple.js +51 -48
  228. package/dist/ripple/mdc-ripple.js.map +1 -1
  229. package/dist/segmented-button/mdc-segmented-button-segment/enhance-mdc-segmented-button-segment.js +9 -6
  230. package/dist/segmented-button/mdc-segmented-button-segment/enhance-mdc-segmented-button-segment.js.map +1 -1
  231. package/dist/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.html +11 -11
  232. package/dist/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.js +27 -24
  233. package/dist/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.js.map +1 -1
  234. package/dist/segmented-button/mdc-segmented-button.html +3 -3
  235. package/dist/segmented-button/mdc-segmented-button.js +24 -21
  236. package/dist/segmented-button/mdc-segmented-button.js.map +1 -1
  237. package/dist/select/mdc-default-select-configuration.js +5 -1
  238. package/dist/select/mdc-default-select-configuration.js.map +1 -1
  239. package/dist/select/mdc-select-adapter-aurelia.js +2 -1
  240. package/dist/select/mdc-select-adapter-aurelia.js.map +1 -1
  241. package/dist/select/mdc-select-foundation-aurelia.js +47 -43
  242. package/dist/select/mdc-select-foundation-aurelia.js.map +1 -1
  243. package/dist/select/mdc-select-helper-text/mdc-select-helper-text.html +7 -7
  244. package/dist/select/mdc-select-helper-text/mdc-select-helper-text.js +27 -24
  245. package/dist/select/mdc-select-helper-text/mdc-select-helper-text.js.map +1 -1
  246. package/dist/select/mdc-select-icon.js +16 -13
  247. package/dist/select/mdc-select-icon.js.map +1 -1
  248. package/dist/select/mdc-select-value-observer.js +16 -12
  249. package/dist/select/mdc-select-value-observer.js.map +1 -1
  250. package/dist/select/mdc-select.html +38 -38
  251. package/dist/select/mdc-select.js +71 -68
  252. package/dist/select/mdc-select.js.map +1 -1
  253. package/dist/slider/mdc-slider-foundation-aurelia.js +6 -2
  254. package/dist/slider/mdc-slider-foundation-aurelia.js.map +1 -1
  255. package/dist/slider/mdc-slider.html +36 -36
  256. package/dist/slider/mdc-slider.js +79 -76
  257. package/dist/slider/mdc-slider.js.map +1 -1
  258. package/dist/snackbar/mdc-snackbar-service.js +8 -4
  259. package/dist/snackbar/mdc-snackbar-service.js.map +1 -1
  260. package/dist/snackbar/mdc-snackbar.html +14 -14
  261. package/dist/snackbar/mdc-snackbar.js +55 -52
  262. package/dist/snackbar/mdc-snackbar.js.map +1 -1
  263. package/dist/switch/enhance-mdc-switch.js +9 -6
  264. package/dist/switch/enhance-mdc-switch.js.map +1 -1
  265. package/dist/switch/mdc-switch.html +21 -21
  266. package/dist/switch/mdc-switch.js +16 -13
  267. package/dist/switch/mdc-switch.js.map +1 -1
  268. package/dist/tab-bar/indicator/mdc-tab-indicator.html +9 -9
  269. package/dist/tab-bar/indicator/mdc-tab-indicator.js +26 -23
  270. package/dist/tab-bar/indicator/mdc-tab-indicator.js.map +1 -1
  271. package/dist/tab-bar/mdc-tab-bar.html +6 -6
  272. package/dist/tab-bar/mdc-tab-bar.js +29 -26
  273. package/dist/tab-bar/mdc-tab-bar.js.map +1 -1
  274. package/dist/tab-bar/scroller/mdc-tab-scroller.html +11 -11
  275. package/dist/tab-bar/scroller/mdc-tab-scroller.js +25 -22
  276. package/dist/tab-bar/scroller/mdc-tab-scroller.js.map +1 -1
  277. package/dist/tab-bar/tab/mdc-tab.html +20 -20
  278. package/dist/tab-bar/tab/mdc-tab.js +44 -41
  279. package/dist/tab-bar/tab/mdc-tab.js.map +1 -1
  280. package/dist/text-field/enhance-mdc-text-field.js +9 -6
  281. package/dist/text-field/enhance-mdc-text-field.js.map +1 -1
  282. package/dist/text-field/mdc-default-text-field-configuration.js +5 -1
  283. package/dist/text-field/mdc-default-text-field-configuration.js.map +1 -1
  284. package/dist/text-field/mdc-inputmask.js +76 -0
  285. package/dist/text-field/mdc-inputmask.js.map +1 -0
  286. package/dist/text-field/mdc-text-field-character-counter.js +13 -10
  287. package/dist/text-field/mdc-text-field-character-counter.js.map +1 -1
  288. package/dist/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.html +7 -7
  289. package/dist/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.js +14 -11
  290. package/dist/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.js.map +1 -1
  291. package/dist/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.html +6 -6
  292. package/dist/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.js +22 -19
  293. package/dist/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.js.map +1 -1
  294. package/dist/text-field/mdc-text-field-icon.js +22 -19
  295. package/dist/text-field/mdc-text-field-icon.js.map +1 -1
  296. package/dist/text-field/mdc-text-field.html +29 -29
  297. package/dist/text-field/mdc-text-field.js +116 -113
  298. package/dist/text-field/mdc-text-field.js.map +1 -1
  299. package/dist/tooltip/mdc-default-tooltip-configuration.js +5 -1
  300. package/dist/tooltip/mdc-default-tooltip-configuration.js.map +1 -1
  301. package/dist/tooltip/mdc-tooltip-attribute.js +39 -36
  302. package/dist/tooltip/mdc-tooltip-attribute.js.map +1 -1
  303. package/dist/tooltip/mdc-tooltip.html +7 -7
  304. package/dist/tooltip/mdc-tooltip.js +66 -63
  305. package/dist/tooltip/mdc-tooltip.js.map +1 -1
  306. package/dist/top-app-bar/enhance-top-app-bar-actions.js +9 -6
  307. package/dist/top-app-bar/enhance-top-app-bar-actions.js.map +1 -1
  308. package/dist/top-app-bar/mdc-top-app-bar-action-item.js +9 -6
  309. package/dist/top-app-bar/mdc-top-app-bar-action-item.js.map +1 -1
  310. package/dist/top-app-bar/mdc-top-app-bar-fixed-adjust.js +9 -6
  311. package/dist/top-app-bar/mdc-top-app-bar-fixed-adjust.js.map +1 -1
  312. package/dist/top-app-bar/mdc-top-app-bar-nav-icon.js +9 -6
  313. package/dist/top-app-bar/mdc-top-app-bar-nav-icon.js.map +1 -1
  314. package/dist/top-app-bar/mdc-top-app-bar-row.js +9 -6
  315. package/dist/top-app-bar/mdc-top-app-bar-row.js.map +1 -1
  316. package/dist/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.html +3 -3
  317. package/dist/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.js +15 -12
  318. package/dist/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.js.map +1 -1
  319. package/dist/top-app-bar/mdc-top-app-bar-title.js +9 -6
  320. package/dist/top-app-bar/mdc-top-app-bar-title.js.map +1 -1
  321. package/dist/top-app-bar/mdc-top-app-bar.html +9 -9
  322. package/dist/top-app-bar/mdc-top-app-bar.js +43 -40
  323. package/dist/top-app-bar/mdc-top-app-bar.js.map +1 -1
  324. package/dist/tree-view/i-tree-node.js +2 -1
  325. package/dist/tree-view/i-tree-node.js.map +1 -1
  326. package/dist/tree-view/mdc-tree-node-meta.js +9 -6
  327. package/dist/tree-view/mdc-tree-node-meta.js.map +1 -1
  328. package/dist/tree-view/mdc-tree-node.js +9 -6
  329. package/dist/tree-view/mdc-tree-node.js.map +1 -1
  330. package/dist/tree-view/mdc-tree-view.js +29 -25
  331. package/dist/tree-view/mdc-tree-view.js.map +1 -1
  332. package/dist/tree-view/node-filter.js +9 -6
  333. package/dist/tree-view/node-filter.js.map +1 -1
  334. package/dist/types/alert/alert-configuration.d.ts +8 -0
  335. package/dist/types/alert/alert-modal/alert-modal.d.ts +6 -0
  336. package/dist/types/alert/alert-modal/i-alert-modal-payload.d.ts +9 -0
  337. package/dist/types/alert/alert-service.d.ts +27 -0
  338. package/dist/types/alert/decorators/confirm-action.d.ts +3 -0
  339. package/dist/types/alert/decorators/using-progress.d.ts +6 -0
  340. package/dist/types/alert/exceptions-tracker.d.ts +3 -0
  341. package/dist/types/alert/global-progress/global-progress.d.ts +11 -0
  342. package/dist/types/alert/prompt-dialog/prompt-dialog.d.ts +21 -0
  343. package/dist/types/data-table/mdc-data-table.d.ts +16 -4
  344. package/dist/types/index.d.ts +11 -1
  345. package/dist/types/lookup/mdc-lookup.d.ts +3 -3
  346. package/dist/types/mdc-configuration.d.ts +2 -0
  347. package/dist/types/select/mdc-select.d.ts +3 -3
  348. package/dist/types/text-field/mdc-inputmask.d.ts +11 -0
  349. package/dist/types/text-field/mdc-text-field.d.ts +3 -3
  350. package/dist/types/tooltip/mdc-tooltip.d.ts +3 -3
  351. package/dist/types/validation/validate.d.ts +10 -0
  352. package/dist/typography/mdc-typography.js +60 -57
  353. package/dist/typography/mdc-typography.js.map +1 -1
  354. package/dist/validation/mdc-validation-controller-factory.js +10 -6
  355. package/dist/validation/mdc-validation-controller-factory.js.map +1 -1
  356. package/dist/validation/mdc-validation-result-presenter.js +5 -1
  357. package/dist/validation/mdc-validation-result-presenter.js.map +1 -1
  358. package/dist/validation/validate.js +27 -0
  359. package/dist/validation/validate.js.map +1 -0
  360. package/package.json +4 -2
  361. package/src/alert/alert-configuration.ts +11 -0
  362. package/src/alert/alert-modal/alert-modal.html +27 -0
  363. package/src/alert/alert-modal/alert-modal.scss +10 -0
  364. package/src/alert/alert-modal/alert-modal.ts +13 -0
  365. package/src/alert/alert-modal/i-alert-modal-payload.ts +9 -0
  366. package/src/alert/alert-service.ts +113 -0
  367. package/src/alert/decorators/confirm-action.ts +18 -0
  368. package/src/alert/decorators/using-progress.ts +30 -0
  369. package/src/alert/exceptions-tracker.ts +3 -0
  370. package/src/alert/global-progress/global-progress.html +9 -0
  371. package/src/alert/global-progress/global-progress.scss +38 -0
  372. package/src/alert/global-progress/global-progress.ts +27 -0
  373. package/src/alert/prompt-dialog/prompt-dialog.html +15 -0
  374. package/src/alert/prompt-dialog/prompt-dialog.ts +35 -0
  375. package/src/banner/mdc-banner.html +21 -21
  376. package/src/banner/mdc-banner.ts +116 -116
  377. package/src/base/attributes/mdc-focus-trap.ts +42 -42
  378. package/src/base/elements/i-validated-element.ts +12 -12
  379. package/src/base/elements/mdc-promisify-reference.ts +21 -21
  380. package/src/base/interceptors.ts +25 -25
  381. package/src/base/material-palette.md +7 -7
  382. package/src/base/material-palette.ts +22 -22
  383. package/src/base/mdc-component.ts +69 -69
  384. package/src/base/next-element.ts +39 -39
  385. package/src/button/enhance-mdc-button.ts +8 -8
  386. package/src/button/mdc-button-label.ts +15 -15
  387. package/src/button/mdc-button.html +12 -12
  388. package/src/button/mdc-button.ts +62 -62
  389. package/src/card/mdc-card-action-buttons.ts +19 -19
  390. package/src/card/mdc-card-action-icons.ts +19 -19
  391. package/src/card/mdc-card-actions/mdc-card-actions.html +3 -3
  392. package/src/card/mdc-card-actions/mdc-card-actions.ts +15 -15
  393. package/src/card/mdc-card-media/mdc-card-media.html +5 -5
  394. package/src/card/mdc-card-media/mdc-card-media.ts +21 -21
  395. package/src/card/mdc-card-primary-action.html +5 -5
  396. package/src/card/mdc-card-primary-action.ts +16 -16
  397. package/src/card/mdc-card.html +3 -3
  398. package/src/card/mdc-card.ts +16 -16
  399. package/src/checkbox/mdc-checkbox.html +12 -12
  400. package/src/checkbox/mdc-checkbox.ts +217 -217
  401. package/src/chips/mdc-chip/mdc-chip.html +24 -24
  402. package/src/chips/mdc-chip-action/enhance-mdc-chip-action.ts +8 -8
  403. package/src/chips/mdc-chip-action/mdc-chip-action.html +25 -25
  404. package/src/chips/mdc-chip-action/mdc-chip-action.ts +143 -143
  405. package/src/chips/mdc-chip-set/mdc-chip-set.html +10 -10
  406. package/src/chips/mdc-chip-set/mdc-chip-set.ts +117 -117
  407. package/src/circular-progress/mdc-circular-progress.html +38 -38
  408. package/src/circular-progress/mdc-circular-progress.ts +91 -91
  409. package/src/circular-progress/styles/_index.scss +1 -1
  410. package/src/circular-progress/styles/mdc-circular-progress.import.scss +1 -1
  411. package/src/circular-progress/styles/mdc-circular-progress.scss +14 -14
  412. package/src/data-table/mdc-data-table-row.ts +24 -24
  413. package/src/data-table/mdc-data-table.html +50 -49
  414. package/src/data-table/mdc-data-table.ts +111 -13
  415. package/src/data-table/styles/_index.scss +1 -0
  416. package/src/data-table/styles/mdc-data-table.import.scss +1 -0
  417. package/src/data-table/styles/mdc-data-table.scss +64 -0
  418. package/src/dialog/mdc-dialog-actions.ts +23 -23
  419. package/src/dialog/mdc-dialog-content.ts +11 -11
  420. package/src/dialog/mdc-dialog-service.ts +83 -80
  421. package/src/dialog/mdc-dialog-title.ts +8 -8
  422. package/src/dialog/mdc-dialog.html +14 -14
  423. package/src/dialog/mdc-dialog.ts +224 -224
  424. package/src/drawer/mdc-drawer-app-content.ts +11 -11
  425. package/src/drawer/mdc-drawer-content.ts +11 -11
  426. package/src/drawer/mdc-drawer-header/mdc-drawer-header.html +5 -5
  427. package/src/drawer/mdc-drawer-header/mdc-drawer-header.ts +18 -18
  428. package/src/drawer/mdc-drawer.html +6 -6
  429. package/src/drawer/mdc-drawer.ts +125 -125
  430. package/src/elevation/mdc-elevation.ts +23 -23
  431. package/src/expandable/mdc-expandable.html +28 -28
  432. package/src/expandable/styles/_icon-variables.scss +3 -3
  433. package/src/expandable/styles/_index.scss +1 -1
  434. package/src/expandable/styles/_mixins.scss +287 -287
  435. package/src/expandable/styles/_variables.scss +17 -17
  436. package/src/expandable/styles/mdc-expandable.import.scss +1 -1
  437. package/src/expandable/styles/mdc-expandable.scss +3 -3
  438. package/src/fab/enhance-mdc-fab.ts +8 -8
  439. package/src/fab/mdc-fab-icon.ts +15 -15
  440. package/src/fab/mdc-fab.html +13 -13
  441. package/src/fab/mdc-fab.ts +50 -50
  442. package/src/floating-label/mdc-floating-label.html +1 -1
  443. package/src/floating-label/mdc-floating-label.ts +44 -44
  444. package/src/form-field/mdc-form-field.html +6 -6
  445. package/src/icon/mdc-icon.html +3 -3
  446. package/src/icon/mdc-icon.ts +11 -11
  447. package/src/icon-button/enhance-mdc-icon-button.ts +8 -8
  448. package/src/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.html +4 -4
  449. package/src/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.ts +29 -29
  450. package/src/icon-button/mdc-icon-button.html +11 -11
  451. package/src/icon-button/mdc-icon-button.ts +69 -69
  452. package/src/image-list/mdc-image-list-item/mdc-image-list-item.html +9 -9
  453. package/src/image-list/mdc-image-list-item/mdc-image-list-item.ts +31 -31
  454. package/src/image-list/mdc-image-list.html +7 -7
  455. package/src/image-list/mdc-image-list.ts +73 -73
  456. package/src/image-list/styles/_index.scss +1 -1
  457. package/src/image-list/styles/mdc-image-list.import.scss +1 -1
  458. package/src/image-list/styles/mdc-image-list.scss +7 -7
  459. package/src/index.ts +17 -3
  460. package/src/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.html +12 -12
  461. package/src/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.ts +49 -49
  462. package/src/layout-grid/mdc-layout-grid-inner.ts +8 -8
  463. package/src/layout-grid/mdc-layout-grid.html +8 -8
  464. package/src/layout-grid/mdc-layout-grid.ts +67 -67
  465. package/src/layout-grid/styles/_index.scss +1 -1
  466. package/src/layout-grid/styles/mdc-layout-grid.import.scss +1 -1
  467. package/src/layout-grid/styles/mdc-layout-grid.scss +11 -11
  468. package/src/line-ripple/mdc-line-ripple.ts +41 -41
  469. package/src/linear-progress/mdc-linear-progress.html +12 -12
  470. package/src/linear-progress/mdc-linear-progress.ts +103 -103
  471. package/src/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.html +4 -4
  472. package/src/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.ts +18 -18
  473. package/src/list/mdc-deprecated-list/mdc-deprecated-list-group.ts +27 -27
  474. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item/enhance-mdc-deprecated-list-item.ts +8 -8
  475. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-graphic.ts +15 -15
  476. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-meta.ts +15 -15
  477. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.html +8 -8
  478. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item-primary-text.ts +11 -11
  479. package/src/list/mdc-deprecated-list/mdc-deprecated-list-item-secondary-text.ts +11 -11
  480. package/src/list/mdc-deprecated-list/mdc-deprecated-list.html +15 -15
  481. package/src/list/mdc-deprecated-list/mdc-deprecated-list.ts +331 -331
  482. package/src/list/mdc-list-divider/mdc-list-divider.html +7 -7
  483. package/src/list/mdc-list-divider/mdc-list-divider.ts +24 -24
  484. package/src/list/mdc-list-group.ts +27 -27
  485. package/src/list/mdc-list-item/enhance-mdc-list-item.ts +8 -8
  486. package/src/list/mdc-list-item/mdc-list-item-leading.ts +34 -34
  487. package/src/list/mdc-list-item/mdc-list-item-trailing.ts +36 -36
  488. package/src/list/mdc-list-item/mdc-list-item.html +13 -13
  489. package/src/list/mdc-list-item-overline-text.ts +8 -8
  490. package/src/list/mdc-list-item-primary-text.ts +11 -11
  491. package/src/list/mdc-list-item-secondary-text.ts +11 -11
  492. package/src/list/mdc-list.html +5 -5
  493. package/src/list/mdc-list.ts +300 -300
  494. package/src/lookup/discardable-promise.ts +24 -24
  495. package/src/lookup/mdc-lookup-configuration.ts +11 -11
  496. package/src/lookup/mdc-lookup.html +27 -27
  497. package/src/lookup/mdc-lookup.ts +5 -5
  498. package/src/mdc-configuration.ts +2 -0
  499. package/src/menu/mdc-menu-selection-group-icon.ts +11 -11
  500. package/src/menu/mdc-menu-selection-group.ts +4 -4
  501. package/src/menu/mdc-menu.html +6 -6
  502. package/src/menu-surface/mdc-menu-surface-anchor.ts +12 -12
  503. package/src/menu-surface/mdc-menu-surface.ts +275 -275
  504. package/src/notched-outline/mdc-notched-outline.html +7 -7
  505. package/src/notched-outline/mdc-notched-outline.ts +60 -60
  506. package/src/radio/mdc-radio.html +9 -9
  507. package/src/radio/mdc-radio.ts +162 -162
  508. package/src/resource.d.ts +22 -22
  509. package/src/ripple/mdc-ripple.ts +114 -114
  510. package/src/segmented-button/mdc-segmented-button-segment/enhance-mdc-segmented-button-segment.ts +8 -8
  511. package/src/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.html +11 -11
  512. package/src/segmented-button/mdc-segmented-button.html +3 -3
  513. package/src/segmented-button/mdc-segmented-button.ts +89 -89
  514. package/src/select/mdc-default-select-configuration.ts +3 -3
  515. package/src/select/mdc-select-adapter-aurelia.ts +213 -213
  516. package/src/select/mdc-select-foundation-aurelia.ts +484 -484
  517. package/src/select/mdc-select-helper-text/mdc-select-helper-text.html +7 -7
  518. package/src/select/mdc-select-helper-text/mdc-select-helper-text.ts +55 -55
  519. package/src/select/mdc-select-icon.ts +41 -41
  520. package/src/select/mdc-select-value-observer.ts +347 -346
  521. package/src/select/mdc-select.html +38 -38
  522. package/src/select/mdc-select.ts +480 -480
  523. package/src/slider/mdc-slider-foundation-aurelia.ts +13 -13
  524. package/src/slider/mdc-slider.html +36 -36
  525. package/src/slider/mdc-slider.ts +409 -409
  526. package/src/slider/styles/_index.scss +1 -1
  527. package/src/slider/styles/mdc-slider.import.scss +1 -1
  528. package/src/slider/styles/mdc-slider.scss +8 -8
  529. package/src/snackbar/mdc-snackbar-service.ts +48 -48
  530. package/src/snackbar/mdc-snackbar.html +14 -14
  531. package/src/snackbar/mdc-snackbar.ts +109 -109
  532. package/src/switch/enhance-mdc-switch.ts +8 -8
  533. package/src/switch/mdc-switch.html +21 -21
  534. package/src/switch/mdc-switch.ts +86 -86
  535. package/src/tab-bar/indicator/mdc-tab-indicator.html +9 -9
  536. package/src/tab-bar/indicator/mdc-tab-indicator.ts +51 -51
  537. package/src/tab-bar/mdc-tab-bar.html +6 -6
  538. package/src/tab-bar/mdc-tab-bar.ts +119 -119
  539. package/src/tab-bar/scroller/mdc-tab-scroller.html +11 -11
  540. package/src/tab-bar/scroller/mdc-tab-scroller.ts +85 -85
  541. package/src/tab-bar/tab/mdc-tab.html +20 -20
  542. package/src/tab-bar/tab/mdc-tab.ts +118 -118
  543. package/src/text-field/enhance-mdc-text-field.ts +12 -12
  544. package/src/text-field/mdc-default-text-field-configuration.ts +3 -3
  545. package/src/text-field/mdc-inputmask.ts +45 -0
  546. package/src/text-field/mdc-text-field-character-counter.ts +32 -32
  547. package/src/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.html +7 -7
  548. package/src/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.ts +37 -37
  549. package/src/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.html +6 -6
  550. package/src/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.ts +47 -47
  551. package/src/text-field/mdc-text-field-icon.ts +59 -59
  552. package/src/text-field/mdc-text-field.html +29 -29
  553. package/src/text-field/mdc-text-field.ts +535 -535
  554. package/src/tooltip/mdc-default-tooltip-configuration.ts +5 -5
  555. package/src/tooltip/mdc-tooltip-attribute.ts +118 -118
  556. package/src/tooltip/mdc-tooltip.html +7 -7
  557. package/src/tooltip/mdc-tooltip.ts +6 -6
  558. package/src/top-app-bar/enhance-top-app-bar-actions.ts +9 -9
  559. package/src/top-app-bar/mdc-top-app-bar-action-item.ts +12 -12
  560. package/src/top-app-bar/mdc-top-app-bar-fixed-adjust.ts +13 -13
  561. package/src/top-app-bar/mdc-top-app-bar-nav-icon.ts +12 -12
  562. package/src/top-app-bar/mdc-top-app-bar-row.ts +7 -7
  563. package/src/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.html +3 -3
  564. package/src/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.ts +9 -9
  565. package/src/top-app-bar/mdc-top-app-bar-title.ts +7 -7
  566. package/src/top-app-bar/mdc-top-app-bar.html +9 -9
  567. package/src/top-app-bar/mdc-top-app-bar.ts +93 -93
  568. package/src/tree-view/i-tree-node.ts +8 -8
  569. package/src/tree-view/mdc-tree-node-meta.ts +11 -11
  570. package/src/tree-view/mdc-tree-node.ts +4 -4
  571. package/src/tree-view/node-filter.ts +12 -12
  572. package/src/tree-view/styles/_index.scss +1 -1
  573. package/src/tree-view/styles/_mixins.scss +145 -145
  574. package/src/tree-view/styles/_variables.scss +8 -8
  575. package/src/tree-view/styles/mdc-tree-view.import.scss +1 -1
  576. package/src/tree-view/styles/mdc-tree-view.scss +3 -3
  577. package/src/typography/mdc-typography.ts +130 -130
  578. package/src/validation/mdc-validation-controller-factory.ts +20 -20
  579. package/src/validation/mdc-validation-result-presenter.ts +36 -36
  580. package/src/validation/validate.ts +32 -0
  581. package/styles/mdc-all.scss +53 -52
  582. package/src/banner/doc/api.json +0 -1106
  583. package/src/base/doc/api.json +0 -1408
  584. package/src/button/doc/api.json +0 -621
  585. package/src/card/doc/api.json +0 -214
  586. package/src/checkbox/doc/api.json +0 -1320
  587. package/src/chips/doc/api.json +0 -2533
  588. package/src/circular-progress/doc/api.json +0 -1085
  589. package/src/data-table/doc/api.json +0 -2064
  590. package/src/dialog/doc/api.json +0 -1667
  591. package/src/drawer/doc/api.json +0 -1416
  592. package/src/elevation/doc/api.json +0 -317
  593. package/src/expandable/doc/api.json +0 -677
  594. package/src/fab/doc/api.json +0 -396
  595. package/src/floating-label/doc/api.json +0 -914
  596. package/src/form-field/doc/api.json +0 -948
  597. package/src/icon/doc/api.json +0 -224
  598. package/src/icon-button/doc/api.json +0 -1109
  599. package/src/image-list/doc/api.json +0 -438
  600. package/src/layout-grid/doc/api.json +0 -600
  601. package/src/line-ripple/doc/api.json +0 -857
  602. package/src/linear-progress/doc/api.json +0 -949
  603. package/src/list/doc/api.json +0 -5725
  604. package/src/lookup/doc/api.json +0 -2370
  605. package/src/menu/doc/api.json +0 -2246
  606. package/src/menu-surface/doc/api.json +0 -1800
  607. package/src/notched-outline/doc/api.json +0 -943
  608. package/src/radio/doc/api.json +0 -1159
  609. package/src/ripple/doc/api.json +0 -1212
  610. package/src/segmented-button/doc/api.json +0 -1937
  611. package/src/select/doc/api.json +0 -4247
  612. package/src/slider/doc/api.json +0 -1954
  613. package/src/snackbar/doc/api.json +0 -1699
  614. package/src/switch/doc/api.json +0 -899
  615. package/src/tab-bar/doc/api.json +0 -4253
  616. package/src/text-field/doc/api.json +0 -3179
  617. package/src/tooltip/doc/api.json +0 -2531
  618. package/src/top-app-bar/doc/api.json +0 -1752
  619. package/src/tree-view/doc/api.json +0 -1710
  620. package/src/typography/doc/api.json +0 -3058
  621. package/src/validation/doc/api.json +0 -371
@@ -1,21 +1,24 @@
1
- import { __esDecorate, __runInitializers } from "tslib";
2
- import { booleanAttr, MdcComponent } from '../base';
3
- import { events, MDCBannerFoundation } from '@material/banner';
4
- import { inject, customElement, bindable } from 'aurelia';
5
- import template from './mdc-banner.html?raw';
6
- events.CLOSED = events.CLOSED.toLowerCase();
7
- events.CLOSING = events.CLOSING.toLowerCase();
8
- events.OPENED = events.OPENED.toLowerCase();
9
- events.OPENING = events.OPENING.toLowerCase();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MdcBanner = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const base_1 = require("../base");
6
+ const banner_1 = require("@material/banner");
7
+ const aurelia_1 = require("aurelia");
8
+ const mdc_banner_html_raw_1 = tslib_1.__importDefault(require("./mdc-banner.html?raw"));
9
+ banner_1.events.CLOSED = banner_1.events.CLOSED.toLowerCase();
10
+ banner_1.events.CLOSING = banner_1.events.CLOSING.toLowerCase();
11
+ banner_1.events.OPENED = banner_1.events.OPENED.toLowerCase();
12
+ banner_1.events.OPENING = banner_1.events.OPENING.toLowerCase();
10
13
  /**
11
14
  * @selector mdc-banner
12
15
  */
13
16
  let MdcBanner = (() => {
14
- let _classDecorators = [inject(Element), customElement({ name: 'mdc-banner', template })];
17
+ let _classDecorators = [(0, aurelia_1.inject)(Element), (0, aurelia_1.customElement)({ name: 'mdc-banner', template: mdc_banner_html_raw_1.default })];
15
18
  let _classDescriptor;
16
19
  let _classExtraInitializers = [];
17
20
  let _classThis;
18
- let _classSuper = MdcComponent;
21
+ let _classSuper = base_1.MdcComponent;
19
22
  let _fixed_decorators;
20
23
  let _fixed_initializers = [];
21
24
  let _fixed_extraInitializers = [];
@@ -41,39 +44,39 @@ let MdcBanner = (() => {
41
44
  static { _classThis = this; }
42
45
  static {
43
46
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
44
- _fixed_decorators = [bindable({ set: booleanAttr })];
45
- _centered_decorators = [bindable({ set: booleanAttr })];
46
- _icon_decorators = [bindable()];
47
- _primaryAction_decorators = [bindable()];
48
- _secondaryAction_decorators = [bindable()];
49
- _disablePrimaryAutoClose_decorators = [bindable({ set: booleanAttr })];
50
- _disableSecondaryAutoClose_decorators = [bindable({ set: booleanAttr })];
51
- __esDecorate(null, null, _fixed_decorators, { kind: "field", name: "fixed", static: false, private: false, access: { has: obj => "fixed" in obj, get: obj => obj.fixed, set: (obj, value) => { obj.fixed = value; } }, metadata: _metadata }, _fixed_initializers, _fixed_extraInitializers);
52
- __esDecorate(null, null, _centered_decorators, { kind: "field", name: "centered", static: false, private: false, access: { has: obj => "centered" in obj, get: obj => obj.centered, set: (obj, value) => { obj.centered = value; } }, metadata: _metadata }, _centered_initializers, _centered_extraInitializers);
53
- __esDecorate(null, null, _icon_decorators, { kind: "field", name: "icon", static: false, private: false, access: { has: obj => "icon" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);
54
- __esDecorate(null, null, _primaryAction_decorators, { kind: "field", name: "primaryAction", static: false, private: false, access: { has: obj => "primaryAction" in obj, get: obj => obj.primaryAction, set: (obj, value) => { obj.primaryAction = value; } }, metadata: _metadata }, _primaryAction_initializers, _primaryAction_extraInitializers);
55
- __esDecorate(null, null, _secondaryAction_decorators, { kind: "field", name: "secondaryAction", static: false, private: false, access: { has: obj => "secondaryAction" in obj, get: obj => obj.secondaryAction, set: (obj, value) => { obj.secondaryAction = value; } }, metadata: _metadata }, _secondaryAction_initializers, _secondaryAction_extraInitializers);
56
- __esDecorate(null, null, _disablePrimaryAutoClose_decorators, { kind: "field", name: "disablePrimaryAutoClose", static: false, private: false, access: { has: obj => "disablePrimaryAutoClose" in obj, get: obj => obj.disablePrimaryAutoClose, set: (obj, value) => { obj.disablePrimaryAutoClose = value; } }, metadata: _metadata }, _disablePrimaryAutoClose_initializers, _disablePrimaryAutoClose_extraInitializers);
57
- __esDecorate(null, null, _disableSecondaryAutoClose_decorators, { kind: "field", name: "disableSecondaryAutoClose", static: false, private: false, access: { has: obj => "disableSecondaryAutoClose" in obj, get: obj => obj.disableSecondaryAutoClose, set: (obj, value) => { obj.disableSecondaryAutoClose = value; } }, metadata: _metadata }, _disableSecondaryAutoClose_initializers, _disableSecondaryAutoClose_extraInitializers);
58
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
47
+ _fixed_decorators = [(0, aurelia_1.bindable)({ set: base_1.booleanAttr })];
48
+ _centered_decorators = [(0, aurelia_1.bindable)({ set: base_1.booleanAttr })];
49
+ _icon_decorators = [(0, aurelia_1.bindable)()];
50
+ _primaryAction_decorators = [(0, aurelia_1.bindable)()];
51
+ _secondaryAction_decorators = [(0, aurelia_1.bindable)()];
52
+ _disablePrimaryAutoClose_decorators = [(0, aurelia_1.bindable)({ set: base_1.booleanAttr })];
53
+ _disableSecondaryAutoClose_decorators = [(0, aurelia_1.bindable)({ set: base_1.booleanAttr })];
54
+ tslib_1.__esDecorate(null, null, _fixed_decorators, { kind: "field", name: "fixed", static: false, private: false, access: { has: obj => "fixed" in obj, get: obj => obj.fixed, set: (obj, value) => { obj.fixed = value; } }, metadata: _metadata }, _fixed_initializers, _fixed_extraInitializers);
55
+ tslib_1.__esDecorate(null, null, _centered_decorators, { kind: "field", name: "centered", static: false, private: false, access: { has: obj => "centered" in obj, get: obj => obj.centered, set: (obj, value) => { obj.centered = value; } }, metadata: _metadata }, _centered_initializers, _centered_extraInitializers);
56
+ tslib_1.__esDecorate(null, null, _icon_decorators, { kind: "field", name: "icon", static: false, private: false, access: { has: obj => "icon" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);
57
+ tslib_1.__esDecorate(null, null, _primaryAction_decorators, { kind: "field", name: "primaryAction", static: false, private: false, access: { has: obj => "primaryAction" in obj, get: obj => obj.primaryAction, set: (obj, value) => { obj.primaryAction = value; } }, metadata: _metadata }, _primaryAction_initializers, _primaryAction_extraInitializers);
58
+ tslib_1.__esDecorate(null, null, _secondaryAction_decorators, { kind: "field", name: "secondaryAction", static: false, private: false, access: { has: obj => "secondaryAction" in obj, get: obj => obj.secondaryAction, set: (obj, value) => { obj.secondaryAction = value; } }, metadata: _metadata }, _secondaryAction_initializers, _secondaryAction_extraInitializers);
59
+ tslib_1.__esDecorate(null, null, _disablePrimaryAutoClose_decorators, { kind: "field", name: "disablePrimaryAutoClose", static: false, private: false, access: { has: obj => "disablePrimaryAutoClose" in obj, get: obj => obj.disablePrimaryAutoClose, set: (obj, value) => { obj.disablePrimaryAutoClose = value; } }, metadata: _metadata }, _disablePrimaryAutoClose_initializers, _disablePrimaryAutoClose_extraInitializers);
60
+ tslib_1.__esDecorate(null, null, _disableSecondaryAutoClose_decorators, { kind: "field", name: "disableSecondaryAutoClose", static: false, private: false, access: { has: obj => "disableSecondaryAutoClose" in obj, get: obj => obj.disableSecondaryAutoClose, set: (obj, value) => { obj.disableSecondaryAutoClose = value; } }, metadata: _metadata }, _disableSecondaryAutoClose_initializers, _disableSecondaryAutoClose_extraInitializers);
61
+ tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
59
62
  MdcBanner = _classThis = _classDescriptor.value;
60
63
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
61
- __runInitializers(_classThis, _classExtraInitializers);
64
+ tslib_1.__runInitializers(_classThis, _classExtraInitializers);
62
65
  }
63
66
  contentEl;
64
67
  mdcFocusTrap;
65
68
  /** When used below top app bars, banners should remain fixed at the top of the screen */
66
- fixed = __runInitializers(this, _fixed_initializers, void 0);
69
+ fixed = tslib_1.__runInitializers(this, _fixed_initializers, void 0);
67
70
  /** Displayed banner centered, optional */
68
- centered = (__runInitializers(this, _fixed_extraInitializers), __runInitializers(this, _centered_initializers, void 0));
71
+ centered = (tslib_1.__runInitializers(this, _fixed_extraInitializers), tslib_1.__runInitializers(this, _centered_initializers, void 0));
69
72
  /** Sets banner icon */
70
- icon = (__runInitializers(this, _centered_extraInitializers), __runInitializers(this, _icon_initializers, void 0));
73
+ icon = (tslib_1.__runInitializers(this, _centered_extraInitializers), tslib_1.__runInitializers(this, _icon_initializers, void 0));
71
74
  /** Sets the banner primary action text */
72
- primaryAction = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _primaryAction_initializers, void 0));
75
+ primaryAction = (tslib_1.__runInitializers(this, _icon_extraInitializers), tslib_1.__runInitializers(this, _primaryAction_initializers, void 0));
73
76
  /** Sets the banner secondary action text */
74
- secondaryAction = (__runInitializers(this, _primaryAction_extraInitializers), __runInitializers(this, _secondaryAction_initializers, void 0));
75
- disablePrimaryAutoClose = (__runInitializers(this, _secondaryAction_extraInitializers), __runInitializers(this, _disablePrimaryAutoClose_initializers, void 0));
76
- disableSecondaryAutoClose = (__runInitializers(this, _disablePrimaryAutoClose_extraInitializers), __runInitializers(this, _disableSecondaryAutoClose_initializers, void 0));
77
+ secondaryAction = (tslib_1.__runInitializers(this, _primaryAction_extraInitializers), tslib_1.__runInitializers(this, _secondaryAction_initializers, void 0));
78
+ disablePrimaryAutoClose = (tslib_1.__runInitializers(this, _secondaryAction_extraInitializers), tslib_1.__runInitializers(this, _disablePrimaryAutoClose_initializers, void 0));
79
+ disableSecondaryAutoClose = (tslib_1.__runInitializers(this, _disablePrimaryAutoClose_extraInitializers), tslib_1.__runInitializers(this, _disableSecondaryAutoClose_initializers, void 0));
77
80
  handlePrimaryActionClick() {
78
81
  this.foundation?.handlePrimaryActionClick(this.disablePrimaryAutoClose);
79
82
  }
@@ -111,19 +114,19 @@ let MdcBanner = (() => {
111
114
  return this.contentEl.offsetHeight;
112
115
  },
113
116
  notifyClosed: (reason) => {
114
- this.emit(events.CLOSED, { reason });
117
+ this.emit(banner_1.events.CLOSED, { reason });
115
118
  },
116
119
  notifyClosing: (reason) => {
117
- this.emit(events.CLOSING, { reason });
120
+ this.emit(banner_1.events.CLOSING, { reason });
118
121
  },
119
122
  notifyOpened: () => {
120
- this.emit(events.OPENED, {});
123
+ this.emit(banner_1.events.OPENED, {});
121
124
  },
122
125
  notifyOpening: () => {
123
- this.emit(events.OPENING, {});
126
+ this.emit(banner_1.events.OPENING, {});
124
127
  },
125
128
  notifyActionClicked: (action) => {
126
- this.emit(events.ACTION_CLICKED, { action });
129
+ this.emit(banner_1.events.ACTION_CLICKED, { action });
127
130
  },
128
131
  releaseFocus: () => {
129
132
  this.mdcFocusTrap?.releaseFocus();
@@ -138,14 +141,14 @@ let MdcBanner = (() => {
138
141
  this.mdcFocusTrap?.trapFocus();
139
142
  },
140
143
  };
141
- return new MDCBannerFoundation(adapter);
144
+ return new banner_1.MDCBannerFoundation(adapter);
142
145
  }
143
146
  constructor() {
144
147
  super(...arguments);
145
- __runInitializers(this, _disableSecondaryAutoClose_extraInitializers);
148
+ tslib_1.__runInitializers(this, _disableSecondaryAutoClose_extraInitializers);
146
149
  }
147
150
  };
148
151
  return MdcBanner = _classThis;
149
152
  })();
150
- export { MdcBanner };
153
+ exports.MdcBanner = MdcBanner;
151
154
  //# sourceMappingURL=mdc-banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-banner.js","sourceRoot":"","sources":["../../src/banner/mdc-banner.ts"],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AC,CAAC;gBAClE,CAAC;gBACD,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE;oBACxB,IAAI,CAAC,IAAI,CAA4B,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;gBACnE,CAAC;gBACD,YAAY,EAAE,GAAG,EAAE;oBACjB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC/B,CAAC;gBACD,aAAa,EAAE,GAAG,EAAE;oBAClB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAChC,CAAC;gBACD,mBAAmB,EAAE,CAAC,MAAM,EAAE,EAAE;oBAC9B,IAAI,CAAC,IAAI,CAA6B,MAAM,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;gBAC3E,CAAC;gBACD,YAAY,EAAE,GAAG,EAAE;oBACjB,IAAI,CAAC,YAAY,EAAE,YAAY,EAAE,CAAC;gBACpC,CAAC;gBACD,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE;oBACzB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBACxC,CAAC;gBACD,gBAAgB,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,EAAE;oBACxC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;gBACnD,CAAC;gBACD,SAAS,EAAE,GAAG,EAAE;oBACd,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC;gBACjC,CAAC;aACF,CAAC;YACF,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;;;;;;;;SAnGU,SAAS","sourcesContent":["import { booleanAttr, MdcComponent, MdcFocusTrap } from '../base';\nimport { CloseReason, events, MDCBannerActionEventDetail, MDCBannerAdapter, MDCBannerCloseEventDetail, MDCBannerFoundation } from '@material/banner';\nimport { inject, customElement, bindable } from 'aurelia';\nimport template from './mdc-banner.html?raw';\n\nevents.CLOSED = events.CLOSED.toLowerCase();\nevents.CLOSING = events.CLOSING.toLowerCase();\nevents.OPENED = events.OPENED.toLowerCase();\nevents.OPENING = events.OPENING.toLowerCase();\n\n/**\n * @selector mdc-banner\n */\n@inject(Element)\n@customElement({ name: 'mdc-banner', template })\nexport class MdcBanner extends MdcComponent<MDCBannerFoundation> {\n private contentEl: HTMLElement;\n private mdcFocusTrap: MdcFocusTrap;\n\n /** When used below top app bars, banners should remain fixed at the top of the screen */\n @bindable({ set: booleanAttr })\n fixed: boolean;\n\n /** Displayed banner centered, optional */\n @bindable({ set: booleanAttr })\n centered: boolean;\n\n /** Sets banner icon */\n @bindable()\n icon: string;\n\n /** Sets the banner primary action text */\n @bindable()\n primaryAction: string;\n\n /** Sets the banner secondary action text */\n @bindable()\n secondaryAction: string;\n\n @bindable({ set: booleanAttr })\n disablePrimaryAutoClose: boolean;\n\n @bindable({ set: booleanAttr })\n disableSecondaryAutoClose: boolean;\n\n handlePrimaryActionClick() {\n this.foundation?.handlePrimaryActionClick(this.disablePrimaryAutoClose);\n }\n\n handleSecondaryActionClick() {\n this.foundation?.handleSecondaryActionClick(this.disableSecondaryAutoClose);\n }\n\n /**\n * Opens the banner and fires events.OPENING to indicate the beginning of its\n * opening animation and then events.OPENED once the animation finishes.\n */\n open() {\n this.foundation?.open();\n }\n\n /**\n * Closes the banner and fires events.CLOSING to indicate the beginning of its\n * closing animation and then events.CLOSED once the animation finishes.\n * @param reason Why the banner was closed. Value will be passed to\n * events.CLOSING and events.CLOSED via the `event.detail.reason`\n * property. Standard values are CloseReason.PRIMARY and\n * CloseReason.SECONDARY, but CloseReason.UNSPECIFIED is provided for\n * custom handling of programmatic closing of the banner.\n */\n close(reason: CloseReason) {\n this.foundation?.close(reason);\n }\n\n getDefaultFoundation() {\n // DO NOT INLINE this variable. For backward compatibility, foundations take\n // a Partial<MDCFooAdapter>. To ensure we don't accidentally omit any\n // methods, we need a separate, strongly typed adapter variable.\n const adapter: MDCBannerAdapter = {\n addClass: (className) => {\n this.root.classList.add(className);\n },\n getContentHeight: () => {\n return this.contentEl.offsetHeight;\n },\n notifyClosed: (reason) => {\n this.emit<MDCBannerCloseEventDetail>(events.CLOSED, { reason });\n },\n notifyClosing: (reason) => {\n this.emit<MDCBannerCloseEventDetail>(events.CLOSING, { reason });\n },\n notifyOpened: () => {\n this.emit(events.OPENED, {});\n },\n notifyOpening: () => {\n this.emit(events.OPENING, {});\n },\n notifyActionClicked: (action) => {\n this.emit<MDCBannerActionEventDetail>(events.ACTION_CLICKED, { action });\n },\n releaseFocus: () => {\n this.mdcFocusTrap?.releaseFocus();\n },\n removeClass: (className) => {\n this.root.classList.remove(className);\n },\n setStyleProperty: (propertyName, value) => {\n this.root.style.setProperty(propertyName, value);\n },\n trapFocus: () => {\n this.mdcFocusTrap?.trapFocus();\n },\n };\n return new MDCBannerFoundation(adapter);\n }\n}\n"]}
1
+ {"version":3,"file":"mdc-banner.js","sourceRoot":"","sources":["../../src/banner/mdc-banner.ts"],"names":[],"mappings":";;;;AAAA,kCAAkE;AAClE,6CAAqJ;AACrJ,qCAA0D;AAC1D,wFAA6C;AAE7C,eAAM,CAAC,MAAM,GAAG,eAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;AAC5C,eAAM,CAAC,OAAO,GAAG,eAAM,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;AAC9C,eAAM,CAAC,MAAM,GAAG,eAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;AAC5C,eAAM,CAAC,OAAO,GAAG,eAAM,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;AAE9C;;GAEG;IAGU,SAAS;4BAFrB,IAAA,gBAAM,EAAC,OAAO,CAAC,EACf,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAR,6BAAQ,EAAE,CAAC;;;;sBACjB,mBAA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AAC;gBACD,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE;oBACzB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBACxC,CAAC;gBACD,gBAAgB,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,EAAE;oBACxC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;gBACnD,CAAC;gBACD,SAAS,EAAE,GAAG,EAAE;oBACd,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC;gBACjC,CAAC;aACF,CAAC;YACF,OAAO,IAAI,4BAAmB,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;;;;;;;;AAnGU,8BAAS","sourcesContent":["import { booleanAttr, MdcComponent, MdcFocusTrap } from '../base';\r\nimport { CloseReason, events, MDCBannerActionEventDetail, MDCBannerAdapter, MDCBannerCloseEventDetail, MDCBannerFoundation } from '@material/banner';\r\nimport { inject, customElement, bindable } from 'aurelia';\r\nimport template from './mdc-banner.html?raw';\r\n\r\nevents.CLOSED = events.CLOSED.toLowerCase();\r\nevents.CLOSING = events.CLOSING.toLowerCase();\r\nevents.OPENED = events.OPENED.toLowerCase();\r\nevents.OPENING = events.OPENING.toLowerCase();\r\n\r\n/**\r\n * @selector mdc-banner\r\n */\r\n@inject(Element)\r\n@customElement({ name: 'mdc-banner', template })\r\nexport class MdcBanner extends MdcComponent<MDCBannerFoundation> {\r\n private contentEl: HTMLElement;\r\n private mdcFocusTrap: MdcFocusTrap;\r\n\r\n /** When used below top app bars, banners should remain fixed at the top of the screen */\r\n @bindable({ set: booleanAttr })\r\n fixed: boolean;\r\n\r\n /** Displayed banner centered, optional */\r\n @bindable({ set: booleanAttr })\r\n centered: boolean;\r\n\r\n /** Sets banner icon */\r\n @bindable()\r\n icon: string;\r\n\r\n /** Sets the banner primary action text */\r\n @bindable()\r\n primaryAction: string;\r\n\r\n /** Sets the banner secondary action text */\r\n @bindable()\r\n secondaryAction: string;\r\n\r\n @bindable({ set: booleanAttr })\r\n disablePrimaryAutoClose: boolean;\r\n\r\n @bindable({ set: booleanAttr })\r\n disableSecondaryAutoClose: boolean;\r\n\r\n handlePrimaryActionClick() {\r\n this.foundation?.handlePrimaryActionClick(this.disablePrimaryAutoClose);\r\n }\r\n\r\n handleSecondaryActionClick() {\r\n this.foundation?.handleSecondaryActionClick(this.disableSecondaryAutoClose);\r\n }\r\n\r\n /**\r\n * Opens the banner and fires events.OPENING to indicate the beginning of its\r\n * opening animation and then events.OPENED once the animation finishes.\r\n */\r\n open() {\r\n this.foundation?.open();\r\n }\r\n\r\n /**\r\n * Closes the banner and fires events.CLOSING to indicate the beginning of its\r\n * closing animation and then events.CLOSED once the animation finishes.\r\n * @param reason Why the banner was closed. Value will be passed to\r\n * events.CLOSING and events.CLOSED via the `event.detail.reason`\r\n * property. Standard values are CloseReason.PRIMARY and\r\n * CloseReason.SECONDARY, but CloseReason.UNSPECIFIED is provided for\r\n * custom handling of programmatic closing of the banner.\r\n */\r\n close(reason: CloseReason) {\r\n this.foundation?.close(reason);\r\n }\r\n\r\n getDefaultFoundation() {\r\n // DO NOT INLINE this variable. For backward compatibility, foundations take\r\n // a Partial<MDCFooAdapter>. To ensure we don't accidentally omit any\r\n // methods, we need a separate, strongly typed adapter variable.\r\n const adapter: MDCBannerAdapter = {\r\n addClass: (className) => {\r\n this.root.classList.add(className);\r\n },\r\n getContentHeight: () => {\r\n return this.contentEl.offsetHeight;\r\n },\r\n notifyClosed: (reason) => {\r\n this.emit<MDCBannerCloseEventDetail>(events.CLOSED, { reason });\r\n },\r\n notifyClosing: (reason) => {\r\n this.emit<MDCBannerCloseEventDetail>(events.CLOSING, { reason });\r\n },\r\n notifyOpened: () => {\r\n this.emit(events.OPENED, {});\r\n },\r\n notifyOpening: () => {\r\n this.emit(events.OPENING, {});\r\n },\r\n notifyActionClicked: (action) => {\r\n this.emit<MDCBannerActionEventDetail>(events.ACTION_CLICKED, { action });\r\n },\r\n releaseFocus: () => {\r\n this.mdcFocusTrap?.releaseFocus();\r\n },\r\n removeClass: (className) => {\r\n this.root.classList.remove(className);\r\n },\r\n setStyleProperty: (propertyName, value) => {\r\n this.root.style.setProperty(propertyName, value);\r\n },\r\n trapFocus: () => {\r\n this.mdcFocusTrap?.trapFocus();\r\n },\r\n };\r\n return new MDCBannerFoundation(adapter);\r\n }\r\n}\r\n"]}
@@ -1,9 +1,12 @@
1
- import { __esDecorate, __runInitializers } from "tslib";
2
- import { FocusTrap } from '@material/dom/focus-trap';
3
- import { customAttribute, inject, bindable } from 'aurelia';
4
- import { booleanAttr } from '../interceptors';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MdcFocusTrap = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const focus_trap_1 = require("@material/dom/focus-trap");
6
+ const aurelia_1 = require("aurelia");
7
+ const interceptors_1 = require("../interceptors");
5
8
  let MdcFocusTrap = (() => {
6
- let _classDecorators = [customAttribute('mdc-focus-trap'), inject(Element)];
9
+ let _classDecorators = [(0, aurelia_1.customAttribute)('mdc-focus-trap'), (0, aurelia_1.inject)(Element)];
7
10
  let _classDescriptor;
8
11
  let _classExtraInitializers = [];
9
12
  let _classThis;
@@ -23,29 +26,29 @@ let MdcFocusTrap = (() => {
23
26
  static { _classThis = this; }
24
27
  static {
25
28
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
26
- _delay_decorators = [bindable({ set: booleanAttr })];
27
- _initialFocusEl_decorators = [bindable()];
28
- _skipInitialFocus_decorators = [bindable({ set: booleanAttr })];
29
- _skipRestoreFocus_decorators = [bindable({ set: booleanAttr })];
30
- __esDecorate(null, null, _delay_decorators, { kind: "field", name: "delay", static: false, private: false, access: { has: obj => "delay" in obj, get: obj => obj.delay, set: (obj, value) => { obj.delay = value; } }, metadata: _metadata }, _delay_initializers, _delay_extraInitializers);
31
- __esDecorate(null, null, _initialFocusEl_decorators, { kind: "field", name: "initialFocusEl", static: false, private: false, access: { has: obj => "initialFocusEl" in obj, get: obj => obj.initialFocusEl, set: (obj, value) => { obj.initialFocusEl = value; } }, metadata: _metadata }, _initialFocusEl_initializers, _initialFocusEl_extraInitializers);
32
- __esDecorate(null, null, _skipInitialFocus_decorators, { kind: "field", name: "skipInitialFocus", static: false, private: false, access: { has: obj => "skipInitialFocus" in obj, get: obj => obj.skipInitialFocus, set: (obj, value) => { obj.skipInitialFocus = value; } }, metadata: _metadata }, _skipInitialFocus_initializers, _skipInitialFocus_extraInitializers);
33
- __esDecorate(null, null, _skipRestoreFocus_decorators, { kind: "field", name: "skipRestoreFocus", static: false, private: false, access: { has: obj => "skipRestoreFocus" in obj, get: obj => obj.skipRestoreFocus, set: (obj, value) => { obj.skipRestoreFocus = value; } }, metadata: _metadata }, _skipRestoreFocus_initializers, _skipRestoreFocus_extraInitializers);
34
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
29
+ _delay_decorators = [(0, aurelia_1.bindable)({ set: interceptors_1.booleanAttr })];
30
+ _initialFocusEl_decorators = [(0, aurelia_1.bindable)()];
31
+ _skipInitialFocus_decorators = [(0, aurelia_1.bindable)({ set: interceptors_1.booleanAttr })];
32
+ _skipRestoreFocus_decorators = [(0, aurelia_1.bindable)({ set: interceptors_1.booleanAttr })];
33
+ tslib_1.__esDecorate(null, null, _delay_decorators, { kind: "field", name: "delay", static: false, private: false, access: { has: obj => "delay" in obj, get: obj => obj.delay, set: (obj, value) => { obj.delay = value; } }, metadata: _metadata }, _delay_initializers, _delay_extraInitializers);
34
+ tslib_1.__esDecorate(null, null, _initialFocusEl_decorators, { kind: "field", name: "initialFocusEl", static: false, private: false, access: { has: obj => "initialFocusEl" in obj, get: obj => obj.initialFocusEl, set: (obj, value) => { obj.initialFocusEl = value; } }, metadata: _metadata }, _initialFocusEl_initializers, _initialFocusEl_extraInitializers);
35
+ tslib_1.__esDecorate(null, null, _skipInitialFocus_decorators, { kind: "field", name: "skipInitialFocus", static: false, private: false, access: { has: obj => "skipInitialFocus" in obj, get: obj => obj.skipInitialFocus, set: (obj, value) => { obj.skipInitialFocus = value; } }, metadata: _metadata }, _skipInitialFocus_initializers, _skipInitialFocus_extraInitializers);
36
+ tslib_1.__esDecorate(null, null, _skipRestoreFocus_decorators, { kind: "field", name: "skipRestoreFocus", static: false, private: false, access: { has: obj => "skipRestoreFocus" in obj, get: obj => obj.skipRestoreFocus, set: (obj, value) => { obj.skipRestoreFocus = value; } }, metadata: _metadata }, _skipRestoreFocus_initializers, _skipRestoreFocus_extraInitializers);
37
+ tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
35
38
  MdcFocusTrap = _classThis = _classDescriptor.value;
36
39
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
37
- __runInitializers(_classThis, _classExtraInitializers);
40
+ tslib_1.__runInitializers(_classThis, _classExtraInitializers);
38
41
  }
39
42
  root;
40
43
  constructor(root) {
41
- __runInitializers(this, _skipRestoreFocus_extraInitializers);
44
+ tslib_1.__runInitializers(this, _skipRestoreFocus_extraInitializers);
42
45
  this.root = root;
43
46
  }
44
47
  focusTrap;
45
- delay = __runInitializers(this, _delay_initializers, void 0);
46
- initialFocusEl = (__runInitializers(this, _delay_extraInitializers), __runInitializers(this, _initialFocusEl_initializers, void 0));
47
- skipInitialFocus = (__runInitializers(this, _initialFocusEl_extraInitializers), __runInitializers(this, _skipInitialFocus_initializers, void 0));
48
- skipRestoreFocus = (__runInitializers(this, _skipInitialFocus_extraInitializers), __runInitializers(this, _skipRestoreFocus_initializers, void 0));
48
+ delay = tslib_1.__runInitializers(this, _delay_initializers, void 0);
49
+ initialFocusEl = (tslib_1.__runInitializers(this, _delay_extraInitializers), tslib_1.__runInitializers(this, _initialFocusEl_initializers, void 0));
50
+ skipInitialFocus = (tslib_1.__runInitializers(this, _initialFocusEl_extraInitializers), tslib_1.__runInitializers(this, _skipInitialFocus_initializers, void 0));
51
+ skipRestoreFocus = (tslib_1.__runInitializers(this, _skipInitialFocus_extraInitializers), tslib_1.__runInitializers(this, _skipRestoreFocus_initializers, void 0));
49
52
  attached() {
50
53
  if (!this.delay) {
51
54
  this.create();
@@ -53,7 +56,7 @@ let MdcFocusTrap = (() => {
53
56
  }
54
57
  create() {
55
58
  const el = this.initialFocusEl instanceof HTMLElement || this.initialFocusEl === undefined ? this.initialFocusEl : this.initialFocusEl();
56
- this.focusTrap = new FocusTrap(this.root, { initialFocusEl: el, skipInitialFocus: this.skipInitialFocus, skipRestoreFocus: this.skipRestoreFocus });
59
+ this.focusTrap = new focus_trap_1.FocusTrap(this.root, { initialFocusEl: el, skipInitialFocus: this.skipInitialFocus, skipRestoreFocus: this.skipRestoreFocus });
57
60
  }
58
61
  trapFocus() {
59
62
  this.focusTrap?.trapFocus();
@@ -64,5 +67,5 @@ let MdcFocusTrap = (() => {
64
67
  };
65
68
  return MdcFocusTrap = _classThis;
66
69
  })();
67
- export { MdcFocusTrap };
70
+ exports.MdcFocusTrap = MdcFocusTrap;
68
71
  //# sourceMappingURL=mdc-focus-trap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-focus-trap.js","sourceRoot":"","sources":["../../../src/base/attributes/mdc-focus-trap.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;IAIjC,YAAY;4BAFxB,eAAe,CAAC,gBAAgB,CAAC,EACjC,MAAM,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;iCAMb,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,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/focus-trap';\nimport { customAttribute, inject, bindable } from 'aurelia';\nimport { booleanAttr } from '../interceptors';\n\n@customAttribute('mdc-focus-trap')\n@inject(Element)\nexport class MdcFocusTrap {\n constructor(private root: HTMLElement) { }\n\n focusTrap?: FocusTrap;\n\n @bindable({ set: booleanAttr })\n delay: boolean;\n\n @bindable()\n initialFocusEl?: HTMLElement | (() => HTMLElement);\n\n @bindable({ set: booleanAttr })\n skipInitialFocus: boolean;\n\n @bindable({ set: booleanAttr })\n skipRestoreFocus: boolean;\n\n attached() {\n if (!this.delay) {\n this.create();\n }\n }\n\n create() {\n const el = this.initialFocusEl instanceof HTMLElement || this.initialFocusEl === undefined ? this.initialFocusEl : this.initialFocusEl();\n this.focusTrap = new FocusTrap(this.root, { initialFocusEl: el, skipInitialFocus: this.skipInitialFocus, skipRestoreFocus: this.skipRestoreFocus });\n }\n\n trapFocus() {\n this.focusTrap?.trapFocus();\n }\n\n releaseFocus() {\n this.focusTrap?.releaseFocus();\n }\n}\n"]}
1
+ {"version":3,"file":"mdc-focus-trap.js","sourceRoot":"","sources":["../../../src/base/attributes/mdc-focus-trap.ts"],"names":[],"mappings":";;;;AAAA,yDAAqD;AACrD,qCAA4D;AAC5D,kDAA8C;IAIjC,YAAY;4BAFxB,IAAA,yBAAe,EAAC,gBAAgB,CAAC,EACjC,IAAA,gBAAM,EAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;iCAMb,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,0BAAW,EAAE,CAAC;0CAG9B,IAAA,kBAAQ,GAAE;4CAGV,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,0BAAW,EAAE,CAAC;4CAG9B,IAAA,kBAAQ,EAAC,EAAE,GAAG,EAAE,0BAAW,EAAE,CAAC;YAR/B,yKAAA,KAAK,6BAAL,KAAK,qFAAU;YAGf,oMAAA,cAAc,6BAAd,cAAc,uGAAqC;YAGnD,0MAAA,gBAAgB,6BAAhB,gBAAgB,2GAAU;YAG1B,0MAAA,gBAAgB,6BAAhB,gBAAgB,2GAAU;YAf5B,qLAmCC;;;YAnCY,+DAAY;;QACH,IAAI;QAAxB,YAAoB,IAAiB;;YAAjB,SAAI,GAAJ,IAAI,CAAa;SAAK;QAE1C,SAAS,CAAa;QAGtB,KAAK,gEAAU;QAGf,cAAc,sIAAqC;QAGnD,gBAAgB,iJAAU;QAG1B,gBAAgB,mJAAU;QAE1B,QAAQ;YACN,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBAChB,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,CAAC;QACH,CAAC;QAED,MAAM;YACJ,MAAM,EAAE,GAAG,IAAI,CAAC,cAAc,YAAY,WAAW,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YACzI,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACtJ,CAAC;QAED,SAAS;YACP,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC;QAC9B,CAAC;QAED,YAAY;YACV,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC;QACjC,CAAC;;;;AAlCU,oCAAY","sourcesContent":["import { FocusTrap } from '@material/dom/focus-trap';\r\nimport { customAttribute, inject, bindable } from 'aurelia';\r\nimport { booleanAttr } from '../interceptors';\r\n\r\n@customAttribute('mdc-focus-trap')\r\n@inject(Element)\r\nexport class MdcFocusTrap {\r\n constructor(private root: HTMLElement) { }\r\n\r\n focusTrap?: FocusTrap;\r\n\r\n @bindable({ set: booleanAttr })\r\n delay: boolean;\r\n\r\n @bindable()\r\n initialFocusEl?: HTMLElement | (() => HTMLElement);\r\n\r\n @bindable({ set: booleanAttr })\r\n skipInitialFocus: boolean;\r\n\r\n @bindable({ set: booleanAttr })\r\n skipRestoreFocus: boolean;\r\n\r\n attached() {\r\n if (!this.delay) {\r\n this.create();\r\n }\r\n }\r\n\r\n create() {\r\n const el = this.initialFocusEl instanceof HTMLElement || this.initialFocusEl === undefined ? this.initialFocusEl : this.initialFocusEl();\r\n this.focusTrap = new FocusTrap(this.root, { initialFocusEl: el, skipInitialFocus: this.skipInitialFocus, skipRestoreFocus: this.skipRestoreFocus });\r\n }\r\n\r\n trapFocus() {\r\n this.focusTrap?.trapFocus();\r\n }\r\n\r\n releaseFocus() {\r\n this.focusTrap?.releaseFocus();\r\n }\r\n}\r\n"]}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=i-validated-element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-validated-element.js","sourceRoot":"","sources":["../../../src/base/elements/i-validated-element.ts"],"names":[],"mappings":"","sourcesContent":["/** @hidden */\nexport interface IError {\n message: string | undefined;\n}\n\n/** @hidden */\nexport interface IValidatedElement extends HTMLElement {\n addError(error: IError): void;\n removeError(error: IError): void;\n renderErrors(): void;\n valid: boolean;\n}\n"]}
1
+ {"version":3,"file":"i-validated-element.js","sourceRoot":"","sources":["../../../src/base/elements/i-validated-element.ts"],"names":[],"mappings":"","sourcesContent":["/** @hidden */\r\nexport interface IError {\r\n message: string | undefined;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IValidatedElement extends HTMLElement {\r\n addError(error: IError): void;\r\n removeError(error: IError): void;\r\n renderErrors(): void;\r\n valid: boolean;\r\n}\r\n"]}
@@ -1,7 +1,10 @@
1
- import { __esDecorate, __runInitializers } from "tslib";
2
- import { bindable, customElement, BindingMode } from 'aurelia';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MdcPromisifyReference = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const aurelia_1 = require("aurelia");
3
6
  let MdcPromisifyReference = (() => {
4
- let _classDecorators = [customElement({ name: 'mdc-promisify-reference' })];
7
+ let _classDecorators = [(0, aurelia_1.customElement)({ name: 'mdc-promisify-reference' })];
5
8
  let _classDescriptor;
6
9
  let _classExtraInitializers = [];
7
10
  let _classThis;
@@ -15,18 +18,18 @@ let MdcPromisifyReference = (() => {
15
18
  static { _classThis = this; }
16
19
  static {
17
20
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
18
- _promiseRef_decorators = [bindable({ mode: BindingMode.fromView })];
19
- _reference_decorators = [bindable({ mode: BindingMode.toView })];
20
- __esDecorate(null, null, _promiseRef_decorators, { kind: "field", name: "promiseRef", static: false, private: false, access: { has: obj => "promiseRef" in obj, get: obj => obj.promiseRef, set: (obj, value) => { obj.promiseRef = value; } }, metadata: _metadata }, _promiseRef_initializers, _promiseRef_extraInitializers);
21
- __esDecorate(null, null, _reference_decorators, { kind: "field", name: "reference", static: false, private: false, access: { has: obj => "reference" in obj, get: obj => obj.reference, set: (obj, value) => { obj.reference = value; } }, metadata: _metadata }, _reference_initializers, _reference_extraInitializers);
22
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
21
+ _promiseRef_decorators = [(0, aurelia_1.bindable)({ mode: aurelia_1.BindingMode.fromView })];
22
+ _reference_decorators = [(0, aurelia_1.bindable)({ mode: aurelia_1.BindingMode.toView })];
23
+ tslib_1.__esDecorate(null, null, _promiseRef_decorators, { kind: "field", name: "promiseRef", static: false, private: false, access: { has: obj => "promiseRef" in obj, get: obj => obj.promiseRef, set: (obj, value) => { obj.promiseRef = value; } }, metadata: _metadata }, _promiseRef_initializers, _promiseRef_extraInitializers);
24
+ tslib_1.__esDecorate(null, null, _reference_decorators, { kind: "field", name: "reference", static: false, private: false, access: { has: obj => "reference" in obj, get: obj => obj.reference, set: (obj, value) => { obj.reference = value; } }, metadata: _metadata }, _reference_initializers, _reference_extraInitializers);
25
+ tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
23
26
  MdcPromisifyReference = _classThis = _classDescriptor.value;
24
27
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
25
- __runInitializers(_classThis, _classExtraInitializers);
28
+ tslib_1.__runInitializers(_classThis, _classExtraInitializers);
26
29
  }
27
30
  resolve;
28
- promiseRef = __runInitializers(this, _promiseRef_initializers, void 0);
29
- reference = (__runInitializers(this, _promiseRef_extraInitializers), __runInitializers(this, _reference_initializers, void 0));
31
+ promiseRef = tslib_1.__runInitializers(this, _promiseRef_initializers, void 0);
32
+ reference = (tslib_1.__runInitializers(this, _promiseRef_extraInitializers), tslib_1.__runInitializers(this, _reference_initializers, void 0));
30
33
  referenceChanged() {
31
34
  if (this.reference) {
32
35
  this.resolve(this.reference);
@@ -36,10 +39,10 @@ let MdcPromisifyReference = (() => {
36
39
  this.promiseRef = new Promise(r => this.resolve = r);
37
40
  }
38
41
  constructor() {
39
- __runInitializers(this, _reference_extraInitializers);
42
+ tslib_1.__runInitializers(this, _reference_extraInitializers);
40
43
  }
41
44
  };
42
45
  return MdcPromisifyReference = _classThis;
43
46
  })();
44
- export { MdcPromisifyReference };
47
+ exports.MdcPromisifyReference = MdcPromisifyReference;
45
48
  //# sourceMappingURL=mdc-promisify-reference.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-promisify-reference.js","sourceRoot":"","sources":["../../../src/base/elements/mdc-promisify-reference.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;IAGlD,qBAAqB;4BADjC,aAAa,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;sCAIhD,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC;qCAGxC,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;YAFvC,gLAAA,UAAU,6BAAV,UAAU,+FAAmB;YAG7B,6KAAA,SAAS,6BAAT,SAAS,6FAAU;YAPrB,6KAiBC;;;YAjBY,uDAAqB;;QAChC,OAAO,CAAkD;QAGzD,UAAU,6DAAmB;QAG7B,SAAS,sHAAU;QACnB,gBAAgB;YACd,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,QAAQ;YACN,IAAI,CAAC,UAAU,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACvD,CAAC;;;;;;;SAhBU,qBAAqB","sourcesContent":["import { bindable, customElement, BindingMode } from 'aurelia';\n\n@customElement({ name: 'mdc-promisify-reference' })\nexport class MdcPromisifyReference {\n resolve: (value: unknown | PromiseLike<unknown>) => void;\n\n @bindable({ mode: BindingMode.fromView })\n promiseRef: Promise<unknown>;\n\n @bindable({ mode: BindingMode.toView })\n reference: unknown;\n referenceChanged() {\n if (this.reference) {\n this.resolve(this.reference);\n }\n }\n\n attached() {\n this.promiseRef = new Promise(r => this.resolve = r);\n }\n}\n"]}
1
+ {"version":3,"file":"mdc-promisify-reference.js","sourceRoot":"","sources":["../../../src/base/elements/mdc-promisify-reference.ts"],"names":[],"mappings":";;;;AAAA,qCAA+D;IAGlD,qBAAqB;4BADjC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;sCAIhD,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,qBAAW,CAAC,QAAQ,EAAE,CAAC;qCAGxC,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,qBAAW,CAAC,MAAM,EAAE,CAAC;YAFvC,wLAAA,UAAU,6BAAV,UAAU,+FAAmB;YAG7B,qLAAA,SAAS,6BAAT,SAAS,6FAAU;YAPrB,qLAiBC;;;YAjBY,+DAAqB;;QAChC,OAAO,CAAkD;QAGzD,UAAU,qEAAmB;QAG7B,SAAS,sIAAU;QACnB,gBAAgB;YACd,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,QAAQ;YACN,IAAI,CAAC,UAAU,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACvD,CAAC;;;;;;;AAhBU,sDAAqB","sourcesContent":["import { bindable, customElement, BindingMode } from 'aurelia';\r\n\r\n@customElement({ name: 'mdc-promisify-reference' })\r\nexport class MdcPromisifyReference {\r\n resolve: (value: unknown | PromiseLike<unknown>) => void;\r\n\r\n @bindable({ mode: BindingMode.fromView })\r\n promiseRef: Promise<unknown>;\r\n\r\n @bindable({ mode: BindingMode.toView })\r\n reference: unknown;\r\n referenceChanged() {\r\n if (this.reference) {\r\n this.resolve(this.reference);\r\n }\r\n }\r\n\r\n attached() {\r\n this.promiseRef = new Promise(r => this.resolve = r);\r\n }\r\n}\r\n"]}
@@ -1,19 +1,31 @@
1
- import { MdcFocusTrap } from './attributes/mdc-focus-trap';
2
- import { MdcPromisifyReference } from './elements/mdc-promisify-reference';
3
- export { MdcComponent } from './mdc-component';
4
- export { MATERIAL_PALETTE } from './material-palette';
5
- export { boolean, booleanAttr, date, number, string } from './interceptors';
6
- export { MdcFocusTrap } from './attributes/mdc-focus-trap';
7
- export { nextElement } from './next-element';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseConfiguration = exports.nextElement = exports.MdcFocusTrap = exports.string = exports.number = exports.date = exports.booleanAttr = exports.boolean = exports.MATERIAL_PALETTE = exports.MdcComponent = void 0;
4
+ const mdc_focus_trap_1 = require("./attributes/mdc-focus-trap");
5
+ const mdc_promisify_reference_1 = require("./elements/mdc-promisify-reference");
6
+ var mdc_component_1 = require("./mdc-component");
7
+ Object.defineProperty(exports, "MdcComponent", { enumerable: true, get: function () { return mdc_component_1.MdcComponent; } });
8
+ var material_palette_1 = require("./material-palette");
9
+ Object.defineProperty(exports, "MATERIAL_PALETTE", { enumerable: true, get: function () { return material_palette_1.MATERIAL_PALETTE; } });
10
+ var interceptors_1 = require("./interceptors");
11
+ Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return interceptors_1.boolean; } });
12
+ Object.defineProperty(exports, "booleanAttr", { enumerable: true, get: function () { return interceptors_1.booleanAttr; } });
13
+ Object.defineProperty(exports, "date", { enumerable: true, get: function () { return interceptors_1.date; } });
14
+ Object.defineProperty(exports, "number", { enumerable: true, get: function () { return interceptors_1.number; } });
15
+ Object.defineProperty(exports, "string", { enumerable: true, get: function () { return interceptors_1.string; } });
16
+ var mdc_focus_trap_2 = require("./attributes/mdc-focus-trap");
17
+ Object.defineProperty(exports, "MdcFocusTrap", { enumerable: true, get: function () { return mdc_focus_trap_2.MdcFocusTrap; } });
18
+ var next_element_1 = require("./next-element");
19
+ Object.defineProperty(exports, "nextElement", { enumerable: true, get: function () { return next_element_1.nextElement; } });
8
20
  let registered = false;
9
- export const BaseConfiguration = {
21
+ exports.BaseConfiguration = {
10
22
  register(container) {
11
23
  if (registered) {
12
24
  return container;
13
25
  }
14
26
  else {
15
27
  registered = true;
16
- return container.register(MdcPromisifyReference, MdcFocusTrap);
28
+ return container.register(mdc_promisify_reference_1.MdcPromisifyReference, mdc_focus_trap_1.MdcFocusTrap);
17
29
  }
18
30
  }
19
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,IAAI,UAAU,GAAG,KAAK,CAAC;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,CAAC,SAAqB;QAC5B,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,SAAS,CAAC;QACnB,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAC;YAClB,OAAO,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF,CAAC","sourcesContent":["import { IContainer } from 'aurelia';\r\nimport { MdcFocusTrap } from './attributes/mdc-focus-trap';\r\nimport { MdcPromisifyReference } from './elements/mdc-promisify-reference';\r\n\r\nexport { MdcComponent } from './mdc-component';\r\nexport type { IValidatedElement, IError } from './elements/i-validated-element';\r\nexport { MATERIAL_PALETTE } from './material-palette';\r\nexport { boolean, booleanAttr, date, number, string } from './interceptors';\r\nexport { MdcFocusTrap } from './attributes/mdc-focus-trap';\r\nexport { nextElement } from './next-element';\r\n\r\nlet registered = false;\r\n\r\nexport const BaseConfiguration = {\r\n register(container: IContainer): IContainer {\r\n if (registered) {\r\n return container;\r\n } else {\r\n registered = true;\r\n return container.register(MdcPromisifyReference, MdcFocusTrap);\r\n }\r\n }\r\n};\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":";;;AACA,gEAA2D;AAC3D,gFAA2E;AAE3E,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AAErB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,+CAA4E;AAAnE,uGAAA,OAAO,OAAA;AAAE,2GAAA,WAAW,OAAA;AAAE,oGAAA,IAAI,OAAA;AAAE,sGAAA,MAAM,OAAA;AAAE,sGAAA,MAAM,OAAA;AACnD,8DAA2D;AAAlD,8GAAA,YAAY,OAAA;AACrB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AAEpB,IAAI,UAAU,GAAG,KAAK,CAAC;AAEV,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,CAAC,SAAqB;QAC5B,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,SAAS,CAAC;QACnB,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAC;YAClB,OAAO,SAAS,CAAC,QAAQ,CAAC,+CAAqB,EAAE,6BAAY,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF,CAAC","sourcesContent":["import { IContainer } from 'aurelia';\r\nimport { MdcFocusTrap } from './attributes/mdc-focus-trap';\r\nimport { MdcPromisifyReference } from './elements/mdc-promisify-reference';\r\n\r\nexport { MdcComponent } from './mdc-component';\r\nexport type { IValidatedElement, IError } from './elements/i-validated-element';\r\nexport { MATERIAL_PALETTE } from './material-palette';\r\nexport { boolean, booleanAttr, date, number, string } from './interceptors';\r\nexport { MdcFocusTrap } from './attributes/mdc-focus-trap';\r\nexport { nextElement } from './next-element';\r\n\r\nlet registered = false;\r\n\r\nexport const BaseConfiguration = {\r\n register(container: IContainer): IContainer {\r\n if (registered) {\r\n return container;\r\n } else {\r\n registered = true;\r\n return container.register(MdcPromisifyReference, MdcFocusTrap);\r\n }\r\n }\r\n};\r\n"]}
@@ -1,13 +1,20 @@
1
- export function number(a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.number = number;
4
+ exports.string = string;
5
+ exports.boolean = boolean;
6
+ exports.date = date;
7
+ exports.booleanAttr = booleanAttr;
8
+ function number(a) {
2
9
  return Number(a);
3
10
  }
4
- export function string(a) {
11
+ function string(a) {
5
12
  return `${a}`;
6
13
  }
7
- export function boolean(a) {
14
+ function boolean(a) {
8
15
  return !!a;
9
16
  }
10
- export function date(val) {
17
+ function date(val) {
11
18
  // Invalid date instances are quite problematic
12
19
  // so we need to deal with it properly by default
13
20
  if (val === null || val === undefined) {
@@ -16,7 +23,7 @@ export function date(val) {
16
23
  const d = new Date(val);
17
24
  return isNaN(d.getTime()) ? null : d;
18
25
  }
19
- export function booleanAttr(val) {
26
+ function booleanAttr(val) {
20
27
  return val || val === '' ? true : false;
21
28
  }
22
29
  //# sourceMappingURL=interceptors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../../src/base/interceptors.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,CAAU;IAC/B,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,CAAU;IAC/B,OAAO,GAAG,CAAC,EAAE,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,CAAU;IAChC,OAAO,CAAC,CAAC,CAAC,CAAC;AACb,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,GAAuC;IAC1D,+CAA+C;IAC/C,iDAAiD;IACjD,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IACxB,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AAC1C,CAAC","sourcesContent":["export function number(a: unknown): number {\n return Number(a);\n}\n\nexport function string(a: unknown): string {\n return `${a}`;\n}\n\nexport function boolean(a: unknown): boolean {\n return !!a;\n}\n\nexport function date(val: string | number | undefined | null): Date | null {\n // Invalid date instances are quite problematic\n // so we need to deal with it properly by default\n if (val === null || val === undefined) {\n return null;\n }\n const d = new Date(val);\n return isNaN(d.getTime()) ? null : d;\n}\n\nexport function booleanAttr(val: unknown): boolean {\n return val || val === '' ? true : false;\n}\n"]}
1
+ {"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../../src/base/interceptors.ts"],"names":[],"mappings":";;AAAA,wBAEC;AAED,wBAEC;AAED,0BAEC;AAED,oBAQC;AAED,kCAEC;AAxBD,SAAgB,MAAM,CAAC,CAAU;IAC/B,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC;AAED,SAAgB,MAAM,CAAC,CAAU;IAC/B,OAAO,GAAG,CAAC,EAAE,CAAC;AAChB,CAAC;AAED,SAAgB,OAAO,CAAC,CAAU;IAChC,OAAO,CAAC,CAAC,CAAC,CAAC;AACb,CAAC;AAED,SAAgB,IAAI,CAAC,GAAuC;IAC1D,+CAA+C;IAC/C,iDAAiD;IACjD,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IACxB,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,WAAW,CAAC,GAAY;IACtC,OAAO,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AAC1C,CAAC","sourcesContent":["export function number(a: unknown): number {\r\n return Number(a);\r\n}\r\n\r\nexport function string(a: unknown): string {\r\n return `${a}`;\r\n}\r\n\r\nexport function boolean(a: unknown): boolean {\r\n return !!a;\r\n}\r\n\r\nexport function date(val: string | number | undefined | null): Date | null {\r\n // Invalid date instances are quite problematic\r\n // so we need to deal with it properly by default\r\n if (val === null || val === undefined) {\r\n return null;\r\n }\r\n const d = new Date(val);\r\n return isNaN(d.getTime()) ? null : d;\r\n}\r\n\r\nexport function booleanAttr(val: unknown): boolean {\r\n return val || val === '' ? true : false;\r\n}\r\n"]}
@@ -1,5 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MATERIAL_PALETTE = void 0;
1
4
  /** @hidden */
2
- export const MATERIAL_PALETTE = {
5
+ exports.MATERIAL_PALETTE = {
3
6
  red: { b50: '#FFEBEE', b100: '#FFCDD2', b200: '#EF9A9A', b300: '#E57373', b400: '#EF5350', b500: '#F44336', b600: '#E53935', b700: '#D32F2F', b800: '#C62828', b900: '#B71C1C', a100: '#FF8A80', a200: '#FF5252', a400: '#FF1744', a700: '#D50000' },
4
7
  pink: { b50: '#FCE4EC', b100: '#F8BBD0', b200: '#F48FB1', b300: '#F06292', b400: '#EC407A', b500: '#E91E63', b600: '#D81B60', b700: '#C2185B', b800: '#AD1457', b900: '#880E4F', a100: '#FF80AB', a200: '#FF4081', a400: '#F50057', a700: '#C51162' },
5
8
  purple: { b50: '#F3E5F5', b100: '#E1BEE7', b200: '#CE93D8', b300: '#BA68C8', b400: '#AB47BC', b500: '#9C27B0', b600: '#8E24AA', b700: '#7B1FA2', b800: '#6A1B9A', b900: '#4A148C', a100: '#EA80FC', a200: '#E040FB', a400: '#D500F9', a700: '#AA00FF' },
@@ -1 +1 @@
1
- {"version":3,"file":"material-palette.js","sourceRoot":"","sources":["../../src/base/material-palette.ts"],"names":[],"mappings":"AAAA,cAAc;AAC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AAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACjL,QAAQ,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACtL,CAAC","sourcesContent":["/** @hidden */\nexport const MATERIAL_PALETTE = {\n red: { b50: '#FFEBEE', b100: '#FFCDD2', b200: '#EF9A9A', b300: '#E57373', b400: '#EF5350', b500: '#F44336', b600: '#E53935', b700: '#D32F2F', b800: '#C62828', b900: '#B71C1C', a100: '#FF8A80', a200: '#FF5252', a400: '#FF1744', a700: '#D50000' },\n pink: { b50: '#FCE4EC', b100: '#F8BBD0', b200: '#F48FB1', b300: '#F06292', b400: '#EC407A', b500: '#E91E63', b600: '#D81B60', b700: '#C2185B', b800: '#AD1457', b900: '#880E4F', a100: '#FF80AB', a200: '#FF4081', a400: '#F50057', a700: '#C51162' },\n purple: { b50: '#F3E5F5', b100: '#E1BEE7', b200: '#CE93D8', b300: '#BA68C8', b400: '#AB47BC', b500: '#9C27B0', b600: '#8E24AA', b700: '#7B1FA2', b800: '#6A1B9A', b900: '#4A148C', a100: '#EA80FC', a200: '#E040FB', a400: '#D500F9', a700: '#AA00FF' },\n deepPurple: { b50: '#EDE7F6', b100: '#D1C4E9', b200: '#B39DDB', b300: '#9575CD', b400: '#7E57C2', b500: '#673AB7', b600: '#5E35B1', b700: '#512DA8', b800: '#4527A0', b900: '#311B92', a100: '#B388FF', a200: '#7C4DFF', a400: '#651FFF', a700: '#6200EA' },\n indigo: { b50: '#E8EAF6', b100: '#C5CAE9', b200: '#9FA8DA', b300: '#7986CB', b400: '#5C6BC0', b500: '#3F51B5', b600: '#3949AB', b700: '#303F9F', b800: '#283593', b900: '#1A237E', a100: '#8C9EFF', a200: '#536DFE', a400: '#3D5AFE', a700: '#304FFE' },\n blue: { b50: '#E3F2FD', b100: '#BBDEFB', b200: '#90CAF9', b300: '#64B5F6', b400: '#42A5F5', b500: '#2196F3', b600: '#1E88E5', b700: '#1976D2', b800: '#1565C0', b900: '#0D47A1', a100: '#82B1FF', a200: '#448AFF', a400: '#2979FF', a700: '#2962FF' },\n lightBlue: { b50: '#E1F5FE', b100: '#B3E5FC', b200: '#81D4FA', b300: '#4FC3F7', b400: '#29B6F6', b500: '#03A9F4', b600: '#039BE5', b700: '#0288D1', b800: '#0277BD', b900: '#01579B', a100: '#80D8FF', a200: '#40C4FF', a400: '#00B0FF', a700: '#0091EA' },\n cyan: { b50: '#E0F7FA', b100: '#B2EBF2', b200: '#80DEEA', b300: '#4DD0E1', b400: '#26C6DA', b500: '#00BCD4', b600: '#00ACC1', b700: '#0097A7', b800: '#00838F', b900: '#006064', a100: '#84FFFF', a200: '#18FFFF', a400: '#00E5FF', a700: '#00B8D4' },\n teal: { b50: '#E0F2F1', b100: '#B2DFDB', b200: '#80CBC4', b300: '#4DB6AC', b400: '#26A69A', b500: '#009688', b600: '#00897B', b700: '#00796B', b800: '#00695C', b900: '#004D40', a100: '#A7FFEB', a200: '#64FFDA', a400: '#1DE9B6', a700: '#00BFA5' },\n green: { b50: '#E8F5E9', b100: '#C8E6C9', b200: '#A5D6A7', b300: '#81C784', b400: '#66BB6A', b500: '#4CAF50', b600: '#43A047', b700: '#388E3C', b800: '#2E7D32', b900: '#1B5E20', a100: '#B9F6CA', a200: '#69F0AE', a400: '#00E676', a700: '#00C853' },\n lightGreen: { b50: '#F1F8E9', b100: '#DCEDC8', b200: '#C5E1A5', b300: '#AED581', b400: '#9CCC65', b500: '#8BC34A', b600: '#7CB342', b700: '#689F38', b800: '#558B2F', b900: '#33691E', a100: '#CCFF90', a200: '#B2FF59', a400: '#76FF03', a700: '#64DD17' },\n lime: { b50: '#F9FBE7', b100: '#F0F4C3', b200: '#E6EE9C', b300: '#DCE775', b400: '#D4E157', b500: '#CDDC39', b600: '#C0CA33', b700: '#AFB42B', b800: '#9E9D24', b900: '#827717', a100: '#F4FF81', a200: '#EEFF41', a400: '#C6FF00', a700: '#AEEA00' },\n yellow: { b50: '#FFFDE7', b100: '#FFF9C4', b200: '#FFF59D', b300: '#FFF176', b400: '#FFEE58', b500: '#FFEB3B', b600: '#FDD835', b700: '#FBC02D', b800: '#F9A825', b900: '#F57F17', a100: '#FFFF8D', a200: '#FFFF00', a400: '#FFEA00', a700: '#FFD600' },\n amber: { b50: '#FFF8E1', b100: '#FFECB3', b200: '#FFE082', b300: '#FFD54F', b400: '#FFCA28', b500: '#FFC107', b600: '#FFB300', b700: '#FFA000', b800: '#FF8F00', b900: '#FF6F00', a100: '#FFE57F', a200: '#FFD740', a400: '#FFC400', a700: '#FFAB00' },\n orange: { b50: '#FFF3E0', b100: '#FFE0B2', b200: '#FFCC80', b300: '#FFB74D', b400: '#FFA726', b500: '#FF9800', b600: '#FB8C00', b700: '#F57C00', b800: '#EF6C00', b900: '#E65100', a100: '#FFD180', a200: '#FFAB40', a400: '#FF9100', a700: '#FF6D00' },\n deepOrange: { b50: '#FBE9E7', b100: '#FFCCBC', b200: '#FFAB91', b300: '#FF8A65', b400: '#FF7043', b500: '#FF5722', b600: '#F4511E', b700: '#E64A19', b800: '#D84315', b900: '#BF360C', a100: '#FF9E80', a200: '#FF6E40', a400: '#FF3D00', a700: '#DD2C00' },\n brown: { b50: '#EFEBE9', b100: '#D7CCC8', b200: '#BCAAA4', b300: '#A1887F', b400: '#8D6E63', b500: '#795548', b600: '#6D4C41', b700: '#5D4037', b800: '#4E342E', b900: '#3E2723' },\n grey: { b50: '#FAFAFA', b100: '#F5F5F5', b200: '#EEEEEE', b300: '#E0E0E0', b400: '#BDBDBD', b500: '#9E9E9E', b600: '#757575', b700: '#616161', b800: '#424242', b900: '#212121' },\n blueGrey: { b50: '#ECEFF1', b100: '#CFD8DC', b200: '#B0BEC5', b300: '#90A4AE', b400: '#78909C', b500: '#607D8B', b600: '#546E7A', b700: '#455A64', b800: '#37474F', b900: '#263238' }\n};\n"]}
1
+ {"version":3,"file":"material-palette.js","sourceRoot":"","sources":["../../src/base/material-palette.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACD,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACpP,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACrP,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,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AE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IAClL,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACjL,QAAQ,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACtL,CAAC","sourcesContent":["/** @hidden */\r\nexport const MATERIAL_PALETTE = {\r\n red: { b50: '#FFEBEE', b100: '#FFCDD2', b200: '#EF9A9A', b300: '#E57373', b400: '#EF5350', b500: '#F44336', b600: '#E53935', b700: '#D32F2F', b800: '#C62828', b900: '#B71C1C', a100: '#FF8A80', a200: '#FF5252', a400: '#FF1744', a700: '#D50000' },\r\n pink: { b50: '#FCE4EC', b100: '#F8BBD0', b200: '#F48FB1', b300: '#F06292', b400: '#EC407A', b500: '#E91E63', b600: '#D81B60', b700: '#C2185B', b800: '#AD1457', b900: '#880E4F', a100: '#FF80AB', a200: '#FF4081', a400: '#F50057', a700: '#C51162' },\r\n purple: { b50: '#F3E5F5', b100: '#E1BEE7', b200: '#CE93D8', b300: '#BA68C8', b400: '#AB47BC', b500: '#9C27B0', b600: '#8E24AA', b700: '#7B1FA2', b800: '#6A1B9A', b900: '#4A148C', a100: '#EA80FC', a200: '#E040FB', a400: '#D500F9', a700: '#AA00FF' },\r\n deepPurple: { b50: '#EDE7F6', b100: '#D1C4E9', b200: '#B39DDB', b300: '#9575CD', b400: '#7E57C2', b500: '#673AB7', b600: '#5E35B1', b700: '#512DA8', b800: '#4527A0', b900: '#311B92', a100: '#B388FF', a200: '#7C4DFF', a400: '#651FFF', a700: '#6200EA' },\r\n indigo: { b50: '#E8EAF6', b100: '#C5CAE9', b200: '#9FA8DA', b300: '#7986CB', b400: '#5C6BC0', b500: '#3F51B5', b600: '#3949AB', b700: '#303F9F', b800: '#283593', b900: '#1A237E', a100: '#8C9EFF', a200: '#536DFE', a400: '#3D5AFE', a700: '#304FFE' },\r\n blue: { b50: '#E3F2FD', b100: '#BBDEFB', b200: '#90CAF9', b300: '#64B5F6', b400: '#42A5F5', b500: '#2196F3', b600: '#1E88E5', b700: '#1976D2', b800: '#1565C0', b900: '#0D47A1', a100: '#82B1FF', a200: '#448AFF', a400: '#2979FF', a700: '#2962FF' },\r\n lightBlue: { b50: '#E1F5FE', b100: '#B3E5FC', b200: '#81D4FA', b300: '#4FC3F7', b400: '#29B6F6', b500: '#03A9F4', b600: '#039BE5', b700: '#0288D1', b800: '#0277BD', b900: '#01579B', a100: '#80D8FF', a200: '#40C4FF', a400: '#00B0FF', a700: '#0091EA' },\r\n cyan: { b50: '#E0F7FA', b100: '#B2EBF2', b200: '#80DEEA', b300: '#4DD0E1', b400: '#26C6DA', b500: '#00BCD4', b600: '#00ACC1', b700: '#0097A7', b800: '#00838F', b900: '#006064', a100: '#84FFFF', a200: '#18FFFF', a400: '#00E5FF', a700: '#00B8D4' },\r\n teal: { b50: '#E0F2F1', b100: '#B2DFDB', b200: '#80CBC4', b300: '#4DB6AC', b400: '#26A69A', b500: '#009688', b600: '#00897B', b700: '#00796B', b800: '#00695C', b900: '#004D40', a100: '#A7FFEB', a200: '#64FFDA', a400: '#1DE9B6', a700: '#00BFA5' },\r\n green: { b50: '#E8F5E9', b100: '#C8E6C9', b200: '#A5D6A7', b300: '#81C784', b400: '#66BB6A', b500: '#4CAF50', b600: '#43A047', b700: '#388E3C', b800: '#2E7D32', b900: '#1B5E20', a100: '#B9F6CA', a200: '#69F0AE', a400: '#00E676', a700: '#00C853' },\r\n lightGreen: { b50: '#F1F8E9', b100: '#DCEDC8', b200: '#C5E1A5', b300: '#AED581', b400: '#9CCC65', b500: '#8BC34A', b600: '#7CB342', b700: '#689F38', b800: '#558B2F', b900: '#33691E', a100: '#CCFF90', a200: '#B2FF59', a400: '#76FF03', a700: '#64DD17' },\r\n lime: { b50: '#F9FBE7', b100: '#F0F4C3', b200: '#E6EE9C', b300: '#DCE775', b400: '#D4E157', b500: '#CDDC39', b600: '#C0CA33', b700: '#AFB42B', b800: '#9E9D24', b900: '#827717', a100: '#F4FF81', a200: '#EEFF41', a400: '#C6FF00', a700: '#AEEA00' },\r\n yellow: { b50: '#FFFDE7', b100: '#FFF9C4', b200: '#FFF59D', b300: '#FFF176', b400: '#FFEE58', b500: '#FFEB3B', b600: '#FDD835', b700: '#FBC02D', b800: '#F9A825', b900: '#F57F17', a100: '#FFFF8D', a200: '#FFFF00', a400: '#FFEA00', a700: '#FFD600' },\r\n amber: { b50: '#FFF8E1', b100: '#FFECB3', b200: '#FFE082', b300: '#FFD54F', b400: '#FFCA28', b500: '#FFC107', b600: '#FFB300', b700: '#FFA000', b800: '#FF8F00', b900: '#FF6F00', a100: '#FFE57F', a200: '#FFD740', a400: '#FFC400', a700: '#FFAB00' },\r\n orange: { b50: '#FFF3E0', b100: '#FFE0B2', b200: '#FFCC80', b300: '#FFB74D', b400: '#FFA726', b500: '#FF9800', b600: '#FB8C00', b700: '#F57C00', b800: '#EF6C00', b900: '#E65100', a100: '#FFD180', a200: '#FFAB40', a400: '#FF9100', a700: '#FF6D00' },\r\n deepOrange: { b50: '#FBE9E7', b100: '#FFCCBC', b200: '#FFAB91', b300: '#FF8A65', b400: '#FF7043', b500: '#FF5722', b600: '#F4511E', b700: '#E64A19', b800: '#D84315', b900: '#BF360C', a100: '#FF9E80', a200: '#FF6E40', a400: '#FF3D00', a700: '#DD2C00' },\r\n brown: { b50: '#EFEBE9', b100: '#D7CCC8', b200: '#BCAAA4', b300: '#A1887F', b400: '#8D6E63', b500: '#795548', b600: '#6D4C41', b700: '#5D4037', b800: '#4E342E', b900: '#3E2723' },\r\n grey: { b50: '#FAFAFA', b100: '#F5F5F5', b200: '#EEEEEE', b300: '#E0E0E0', b400: '#BDBDBD', b500: '#9E9E9E', b600: '#757575', b700: '#616161', b800: '#424242', b900: '#212121' },\r\n blueGrey: { b50: '#ECEFF1', b100: '#CFD8DC', b200: '#B0BEC5', b300: '#90A4AE', b400: '#78909C', b500: '#607D8B', b600: '#546E7A', b700: '#455A64', b800: '#37474F', b900: '#263238' }\r\n};\r\n"]}
@@ -1,4 +1,7 @@
1
- export class MdcComponent {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MdcComponent = void 0;
4
+ class MdcComponent {
2
5
  root;
3
6
  constructor(root) {
4
7
  this.root = root;
@@ -54,4 +57,5 @@ export class MdcComponent {
54
57
  this.root.dispatchEvent(evt);
55
58
  }
56
59
  }
60
+ exports.MdcComponent = MdcComponent;
57
61
  //# sourceMappingURL=mdc-component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-component.js","sourceRoot":"","sources":["../../src/base/mdc-component.ts"],"names":[],"mappings":"AAEA,MAAM,OAAgB,YAAY;IACb;IAAnB,YAAmB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;QAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACrD,CAAC;IAED,UAAU,CAAkB;IAE5B,WAAW,CAAmB;IACpB,kBAAkB,CAA4B;IAEhD,KAAK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YAAY;gBACrB,MAAM,EAAE,OAAO;aAChB,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YAC1C,GAAG,CAAC,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;CACF","sourcesContent":["import { MDCFoundation } from '@material/base';\n\nexport abstract class MdcComponent<FoundationType extends MDCFoundation> {\n constructor(public root: HTMLElement) {\n this.initialised = this.createInitiliasedPromise();\n }\n\n foundation?: FoundationType;\n\n initialised: Promise<unknown>;\n protected initialisedResolve: (value?: unknown) => void;\n\n private async createInitiliasedPromise() {\n return new Promise(r => this.initialisedResolve = r);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initialSyncWithDOM() { }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n beforeFoundationCreated() { }\n\n attached() {\n this.beforeFoundationCreated();\n this.foundation = this.getDefaultFoundation();\n this.foundation.init();\n this.initialisedResolve?.();\n this.initialSyncWithDOM();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n destroy() { }\n\n detaching() {\n this.destroy();\n this.foundation?.destroy();\n this.foundation = undefined;\n this.initialised = this.createInitiliasedPromise();\n }\n\n abstract getDefaultFoundation(): FoundationType;\n\n listen(evtType: string, handler: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean) {\n this.root.addEventListener(evtType, handler, options);\n }\n\n unlisten(evtType: string, handler: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean) {\n this.root.removeEventListener(evtType, handler, options);\n }\n\n /**\n * @hidden\n * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.\n */\n emit<T>(evtType: string, evtData: T, shouldBubble = false) {\n let evt: CustomEvent<T>;\n if (typeof CustomEvent === 'function') {\n evt = new CustomEvent<T>(evtType, {\n bubbles: shouldBubble,\n detail: evtData,\n });\n } else {\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(evtType, shouldBubble, false, evtData);\n }\n\n this.root.dispatchEvent(evt);\n }\n}\n"]}
1
+ {"version":3,"file":"mdc-component.js","sourceRoot":"","sources":["../../src/base/mdc-component.ts"],"names":[],"mappings":";;;AAEA,MAAsB,YAAY;IACb;IAAnB,YAAmB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;QAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACrD,CAAC;IAED,UAAU,CAAkB;IAE5B,WAAW,CAAmB;IACpB,kBAAkB,CAA4B;IAEhD,KAAK,CAAC,wBAAwB;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,gEAAgE;IAChE,kBAAkB,KAAK,CAAC;IAExB,gEAAgE;IAChE,uBAAuB,KAAK,CAAC;IAE7B,QAAQ;QACN,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAC5B,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,gEAAgE;IAChE,OAAO,KAAK,CAAC;IAEb,SAAS;QACP,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACrD,CAAC;IAID,MAAM,CAAC,OAAe,EAAE,OAA4C,EAAE,OAA2C;QAC/G,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,QAAQ,CAAC,OAAe,EAAE,OAA4C,EAAE,OAA2C;QACjH,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,IAAI,CAAI,OAAe,EAAE,OAAU,EAAE,YAAY,GAAG,KAAK;QACvD,IAAI,GAAmB,CAAC;QACxB,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE,CAAC;YACtC,GAAG,GAAG,IAAI,WAAW,CAAI,OAAO,EAAE;gBAChC,OAAO,EAAE,YAAY;gBACrB,MAAM,EAAE,OAAO;aAChB,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YAC1C,GAAG,CAAC,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;CACF;AAlED,oCAkEC","sourcesContent":["import { MDCFoundation } from '@material/base';\r\n\r\nexport abstract class MdcComponent<FoundationType extends MDCFoundation> {\r\n constructor(public root: HTMLElement) {\r\n this.initialised = this.createInitiliasedPromise();\r\n }\r\n\r\n foundation?: FoundationType;\r\n\r\n initialised: Promise<unknown>;\r\n protected initialisedResolve: (value?: unknown) => void;\r\n\r\n private async createInitiliasedPromise() {\r\n return new Promise(r => this.initialisedResolve = r);\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n initialSyncWithDOM() { }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n beforeFoundationCreated() { }\r\n\r\n attached() {\r\n this.beforeFoundationCreated();\r\n this.foundation = this.getDefaultFoundation();\r\n this.foundation.init();\r\n this.initialisedResolve?.();\r\n this.initialSyncWithDOM();\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n destroy() { }\r\n\r\n detaching() {\r\n this.destroy();\r\n this.foundation?.destroy();\r\n this.foundation = undefined;\r\n this.initialised = this.createInitiliasedPromise();\r\n }\r\n\r\n abstract getDefaultFoundation(): FoundationType;\r\n\r\n listen(evtType: string, handler: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean) {\r\n this.root.addEventListener(evtType, handler, options);\r\n }\r\n\r\n unlisten(evtType: string, handler: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean) {\r\n this.root.removeEventListener(evtType, handler, options);\r\n }\r\n\r\n /**\r\n * @hidden\r\n * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.\r\n */\r\n emit<T>(evtType: string, evtData: T, shouldBubble = false) {\r\n let evt: CustomEvent<T>;\r\n if (typeof CustomEvent === 'function') {\r\n evt = new CustomEvent<T>(evtType, {\r\n bubbles: shouldBubble,\r\n detail: evtData,\r\n });\r\n } else {\r\n evt = document.createEvent('CustomEvent');\r\n evt.initCustomEvent(evtType, shouldBubble, false, evtData);\r\n }\r\n\r\n this.root.dispatchEvent(evt);\r\n }\r\n}\r\n"]}