@angular/cdk 10.1.2 → 10.1.3

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 (115) hide show
  1. package/bundles/cdk-a11y.umd.js +425 -373
  2. package/bundles/cdk-a11y.umd.js.map +1 -1
  3. package/bundles/cdk-a11y.umd.min.js +34 -10
  4. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  5. package/bundles/cdk-accordion.umd.js +40 -40
  6. package/bundles/cdk-accordion.umd.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.min.js +10 -2
  8. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  9. package/bundles/cdk-bidi.umd.js +25 -25
  10. package/bundles/cdk-bidi.umd.js.map +1 -1
  11. package/bundles/cdk-bidi.umd.min.js +5 -4
  12. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  13. package/bundles/cdk-clipboard.umd.js +31 -31
  14. package/bundles/cdk-clipboard.umd.js.map +1 -1
  15. package/bundles/cdk-clipboard.umd.min.js +10 -2
  16. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  17. package/bundles/cdk-coercion.umd.js.map +1 -1
  18. package/bundles/cdk-collections.umd.js +303 -237
  19. package/bundles/cdk-collections.umd.js.map +1 -1
  20. package/bundles/cdk-collections.umd.min.js +3 -9
  21. package/bundles/cdk-collections.umd.min.js.map +1 -1
  22. package/bundles/cdk-drag-drop.umd.js +484 -425
  23. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  24. package/bundles/cdk-drag-drop.umd.min.js +68 -5
  25. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  26. package/bundles/cdk-keycodes.umd.js.map +1 -1
  27. package/bundles/cdk-layout.umd.js +18 -18
  28. package/bundles/cdk-layout.umd.js.map +1 -1
  29. package/bundles/cdk-layout.umd.min.js +6 -5
  30. package/bundles/cdk-layout.umd.min.js.map +1 -1
  31. package/bundles/cdk-observers.umd.js +34 -34
  32. package/bundles/cdk-observers.umd.js.map +1 -1
  33. package/bundles/cdk-observers.umd.min.js +2 -2
  34. package/bundles/cdk-observers.umd.min.js.map +1 -1
  35. package/bundles/cdk-overlay.umd.js +442 -383
  36. package/bundles/cdk-overlay.umd.js.map +1 -1
  37. package/bundles/cdk-overlay.umd.min.js +57 -11
  38. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  39. package/bundles/cdk-platform.umd.js +10 -10
  40. package/bundles/cdk-platform.umd.js.map +1 -1
  41. package/bundles/cdk-platform.umd.min.js +3 -10
  42. package/bundles/cdk-platform.umd.min.js.map +1 -1
  43. package/bundles/cdk-portal.umd.js +351 -299
  44. package/bundles/cdk-portal.umd.js.map +1 -1
  45. package/bundles/cdk-portal.umd.min.js +4 -5
  46. package/bundles/cdk-portal.umd.min.js.map +1 -1
  47. package/bundles/cdk-scrolling.umd.js +432 -378
  48. package/bundles/cdk-scrolling.umd.js.map +1 -1
  49. package/bundles/cdk-scrolling.umd.min.js +20 -19
  50. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  51. package/bundles/cdk-stepper.umd.js +117 -117
  52. package/bundles/cdk-stepper.umd.js.map +1 -1
  53. package/bundles/cdk-stepper.umd.min.js +11 -2
  54. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  55. package/bundles/cdk-table.umd.js +684 -588
  56. package/bundles/cdk-table.umd.js.map +1 -1
  57. package/bundles/cdk-table.umd.min.js +7 -14
  58. package/bundles/cdk-table.umd.min.js.map +1 -1
  59. package/bundles/cdk-testing-protractor.umd.js +300 -241
  60. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  61. package/bundles/cdk-testing-protractor.umd.min.js +2 -9
  62. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  63. package/bundles/cdk-testing-testbed.umd.js +301 -256
  64. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  65. package/bundles/cdk-testing-testbed.umd.min.js +7 -30
  66. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  67. package/bundles/cdk-testing.umd.js +326 -270
  68. package/bundles/cdk-testing.umd.js.map +1 -1
  69. package/bundles/cdk-testing.umd.min.js +1 -16
  70. package/bundles/cdk-testing.umd.min.js.map +1 -1
  71. package/bundles/cdk-text-field.umd.js +51 -51
  72. package/bundles/cdk-text-field.umd.js.map +1 -1
  73. package/bundles/cdk-text-field.umd.min.js +10 -2
  74. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  75. package/bundles/cdk-tree.umd.js +443 -394
  76. package/bundles/cdk-tree.umd.js.map +1 -1
  77. package/bundles/cdk-tree.umd.min.js +28 -3
  78. package/bundles/cdk-tree.umd.min.js.map +1 -1
  79. package/bundles/cdk.umd.js +1 -1
  80. package/bundles/cdk.umd.js.map +1 -1
  81. package/bundles/cdk.umd.min.js +1 -1
  82. package/bundles/cdk.umd.min.js.map +1 -1
  83. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  84. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  85. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  86. package/esm2015/bidi/directionality.js +1 -1
  87. package/esm2015/overlay/position/flexible-connected-position-strategy.js +3 -3
  88. package/esm2015/scrolling/scrolling-module.js +4 -1
  89. package/esm2015/table/cell.js +18 -3
  90. package/esm2015/table/coalesced-style-scheduler.js +21 -10
  91. package/esm2015/table/sticky-styler.js +21 -7
  92. package/esm2015/table/table.js +8 -2
  93. package/esm2015/tree/tree.js +9 -23
  94. package/esm2015/version.js +1 -1
  95. package/fesm2015/cdk.js +1 -1
  96. package/fesm2015/cdk.js.map +1 -1
  97. package/fesm2015/overlay.js +2 -2
  98. package/fesm2015/overlay.js.map +1 -1
  99. package/fesm2015/scrolling.js +3 -0
  100. package/fesm2015/scrolling.js.map +1 -1
  101. package/fesm2015/table.js +65 -19
  102. package/fesm2015/table.js.map +1 -1
  103. package/fesm2015/tree.js +7 -21
  104. package/fesm2015/tree.js.map +1 -1
  105. package/package.json +1 -1
  106. package/schematics/ng-add/index.js +1 -1
  107. package/scrolling/index.metadata.json +1 -1
  108. package/scrolling/scrolling-module.d.ts +3 -0
  109. package/table/cell.d.ts +13 -0
  110. package/table/coalesced-style-scheduler.d.ts +1 -0
  111. package/table/index.metadata.json +1 -1
  112. package/table/sticky-styler.d.ts +5 -1
  113. package/table/table.d.ts +6 -0
  114. package/tree/index.metadata.json +1 -1
  115. package/tree/tree.d.ts +2 -4
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-keycodes.umd.js","sources":["../../../../../../src/cdk/keycodes/keycodes.ts","../../../../../../src/cdk/keycodes/modifiers.ts","../../../../../../src/cdk/keycodes/public-api.ts","../../../../../../src/cdk/keycodes/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport const MAC_ENTER = 3;\nexport const BACKSPACE = 8;\nexport const TAB = 9;\nexport const NUM_CENTER = 12;\nexport const ENTER = 13;\nexport const SHIFT = 16;\nexport const CONTROL = 17;\nexport const ALT = 18;\nexport const PAUSE = 19;\nexport const CAPS_LOCK = 20;\nexport const ESCAPE = 27;\nexport const SPACE = 32;\nexport const PAGE_UP = 33;\nexport const PAGE_DOWN = 34;\nexport const END = 35;\nexport const HOME = 36;\nexport const LEFT_ARROW = 37;\nexport const UP_ARROW = 38;\nexport const RIGHT_ARROW = 39;\nexport const DOWN_ARROW = 40;\nexport const PLUS_SIGN = 43;\nexport const PRINT_SCREEN = 44;\nexport const INSERT = 45;\nexport const DELETE = 46;\nexport const ZERO = 48;\nexport const ONE = 49;\nexport const TWO = 50;\nexport const THREE = 51;\nexport const FOUR = 52;\nexport const FIVE = 53;\nexport const SIX = 54;\nexport const SEVEN = 55;\nexport const EIGHT = 56;\nexport const NINE = 57;\nexport const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186\nexport const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187\nexport const QUESTION_MARK = 63;\nexport const AT_SIGN = 64;\nexport const A = 65;\nexport const B = 66;\nexport const C = 67;\nexport const D = 68;\nexport const E = 69;\nexport const F = 70;\nexport const G = 71;\nexport const H = 72;\nexport const I = 73;\nexport const J = 74;\nexport const K = 75;\nexport const L = 76;\nexport const M = 77;\nexport const N = 78;\nexport const O = 79;\nexport const P = 80;\nexport const Q = 81;\nexport const R = 82;\nexport const S = 83;\nexport const T = 84;\nexport const U = 85;\nexport const V = 86;\nexport const W = 87;\nexport const X = 88;\nexport const Y = 89;\nexport const Z = 90;\nexport const META = 91; // WIN_KEY_LEFT\nexport const MAC_WK_CMD_LEFT = 91;\nexport const MAC_WK_CMD_RIGHT = 93;\nexport const CONTEXT_MENU = 93;\nexport const NUMPAD_ZERO = 96;\nexport const NUMPAD_ONE = 97;\nexport const NUMPAD_TWO = 98;\nexport const NUMPAD_THREE = 99;\nexport const NUMPAD_FOUR = 100;\nexport const NUMPAD_FIVE = 101;\nexport const NUMPAD_SIX = 102;\nexport const NUMPAD_SEVEN = 103;\nexport const NUMPAD_EIGHT = 104;\nexport const NUMPAD_NINE = 105;\nexport const NUMPAD_MULTIPLY = 106;\nexport const NUMPAD_PLUS = 107;\nexport const NUMPAD_MINUS = 109;\nexport const NUMPAD_PERIOD = 110;\nexport const NUMPAD_DIVIDE = 111;\nexport const F1 = 112;\nexport const F2 = 113;\nexport const F3 = 114;\nexport const F4 = 115;\nexport const F5 = 116;\nexport const F6 = 117;\nexport const F7 = 118;\nexport const F8 = 119;\nexport const F9 = 120;\nexport const F10 = 121;\nexport const F11 = 122;\nexport const F12 = 123;\nexport const NUM_LOCK = 144;\nexport const SCROLL_LOCK = 145;\nexport const FIRST_MEDIA = 166;\nexport const FF_MINUS = 173;\nexport const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE\nexport const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN\nexport const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP\nexport const FF_MUTE = 181;\nexport const FF_VOLUME_DOWN = 182;\nexport const LAST_MEDIA = 183;\nexport const FF_VOLUME_UP = 183;\nexport const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON\nexport const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS\nexport const COMMA = 188;\nexport const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS\nexport const SLASH = 191;\nexport const APOSTROPHE = 192;\nexport const TILDE = 192;\nexport const OPEN_SQUARE_BRACKET = 219;\nexport const BACKSLASH = 220;\nexport const CLOSE_SQUARE_BRACKET = 221;\nexport const SINGLE_QUOTE = 222;\nexport const MAC_META = 224;\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\ntype ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';\n\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nexport function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './keycodes';\nexport * from './modifiers';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;IAAA;;;;;;;AAQA,QAAa,SAAS,GAAG,CAAC,CAAC;AAC3B,QAAa,SAAS,GAAG,CAAC,CAAC;AAC3B,QAAa,GAAG,GAAG,CAAC,CAAC;AACrB,QAAa,UAAU,GAAG,EAAE,CAAC;AAC7B,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAa,GAAG,GAA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G,CAAC;AACzB,QAAa,IAAI,GAAG,GAAG,CAAC;AACxB,QAAa,KAAK,GAAG,GAAG,CAAC;AACzB,QAAa,UAAU,GAAG,GAAG,CAAC;AAC9B,QAAa,KAAK,GAAG,GAAG,CAAC;AACzB,QAAa,mBAAmB,GAAG,GAAG,CAAC;AACvC,QAAa,SAAS,GAAG,GAAG,CAAC;AAC7B,QAAa,oBAAoB,GAAG,GAAG,CAAC;AACxC,QAAa,YAAY,GAAG,GAAG,CAAC;AAChC,QAAa,QAAQ,GAAG,GAAG;;IC7H3B;;;;;;;IAUA;;;;AAIA,aAAgB,cAAc,CAAC,KAAoB;QAAE,mBAA2B;aAA3B,UAA2B,EAA3B,qBAA2B,EAA3B,IAA2B;YAA3B,kCAA2B;;QAC9E,IAAI,SAAS,CAAC,MAAM,EAAE;YACpB,OAAO,SAAS,CAAC,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,KAAK,CAAC,QAAQ,CAAC,GAAA,CAAC,CAAC;SACpD;QAED,OAAO,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;IAC1E,CAAC;;ICpBD;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"cdk-keycodes.umd.js","sources":["../../../../../src/cdk/keycodes/keycodes.ts","../../../../../src/cdk/keycodes/modifiers.ts","../../../../../src/cdk/keycodes/public-api.ts","../../../../../src/cdk/keycodes/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport const MAC_ENTER = 3;\nexport const BACKSPACE = 8;\nexport const TAB = 9;\nexport const NUM_CENTER = 12;\nexport const ENTER = 13;\nexport const SHIFT = 16;\nexport const CONTROL = 17;\nexport const ALT = 18;\nexport const PAUSE = 19;\nexport const CAPS_LOCK = 20;\nexport const ESCAPE = 27;\nexport const SPACE = 32;\nexport const PAGE_UP = 33;\nexport const PAGE_DOWN = 34;\nexport const END = 35;\nexport const HOME = 36;\nexport const LEFT_ARROW = 37;\nexport const UP_ARROW = 38;\nexport const RIGHT_ARROW = 39;\nexport const DOWN_ARROW = 40;\nexport const PLUS_SIGN = 43;\nexport const PRINT_SCREEN = 44;\nexport const INSERT = 45;\nexport const DELETE = 46;\nexport const ZERO = 48;\nexport const ONE = 49;\nexport const TWO = 50;\nexport const THREE = 51;\nexport const FOUR = 52;\nexport const FIVE = 53;\nexport const SIX = 54;\nexport const SEVEN = 55;\nexport const EIGHT = 56;\nexport const NINE = 57;\nexport const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186\nexport const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187\nexport const QUESTION_MARK = 63;\nexport const AT_SIGN = 64;\nexport const A = 65;\nexport const B = 66;\nexport const C = 67;\nexport const D = 68;\nexport const E = 69;\nexport const F = 70;\nexport const G = 71;\nexport const H = 72;\nexport const I = 73;\nexport const J = 74;\nexport const K = 75;\nexport const L = 76;\nexport const M = 77;\nexport const N = 78;\nexport const O = 79;\nexport const P = 80;\nexport const Q = 81;\nexport const R = 82;\nexport const S = 83;\nexport const T = 84;\nexport const U = 85;\nexport const V = 86;\nexport const W = 87;\nexport const X = 88;\nexport const Y = 89;\nexport const Z = 90;\nexport const META = 91; // WIN_KEY_LEFT\nexport const MAC_WK_CMD_LEFT = 91;\nexport const MAC_WK_CMD_RIGHT = 93;\nexport const CONTEXT_MENU = 93;\nexport const NUMPAD_ZERO = 96;\nexport const NUMPAD_ONE = 97;\nexport const NUMPAD_TWO = 98;\nexport const NUMPAD_THREE = 99;\nexport const NUMPAD_FOUR = 100;\nexport const NUMPAD_FIVE = 101;\nexport const NUMPAD_SIX = 102;\nexport const NUMPAD_SEVEN = 103;\nexport const NUMPAD_EIGHT = 104;\nexport const NUMPAD_NINE = 105;\nexport const NUMPAD_MULTIPLY = 106;\nexport const NUMPAD_PLUS = 107;\nexport const NUMPAD_MINUS = 109;\nexport const NUMPAD_PERIOD = 110;\nexport const NUMPAD_DIVIDE = 111;\nexport const F1 = 112;\nexport const F2 = 113;\nexport const F3 = 114;\nexport const F4 = 115;\nexport const F5 = 116;\nexport const F6 = 117;\nexport const F7 = 118;\nexport const F8 = 119;\nexport const F9 = 120;\nexport const F10 = 121;\nexport const F11 = 122;\nexport const F12 = 123;\nexport const NUM_LOCK = 144;\nexport const SCROLL_LOCK = 145;\nexport const FIRST_MEDIA = 166;\nexport const FF_MINUS = 173;\nexport const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE\nexport const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN\nexport const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP\nexport const FF_MUTE = 181;\nexport const FF_VOLUME_DOWN = 182;\nexport const LAST_MEDIA = 183;\nexport const FF_VOLUME_UP = 183;\nexport const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON\nexport const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS\nexport const COMMA = 188;\nexport const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS\nexport const SLASH = 191;\nexport const APOSTROPHE = 192;\nexport const TILDE = 192;\nexport const OPEN_SQUARE_BRACKET = 219;\nexport const BACKSLASH = 220;\nexport const CLOSE_SQUARE_BRACKET = 221;\nexport const SINGLE_QUOTE = 222;\nexport const MAC_META = 224;\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\ntype ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';\n\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nexport function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './keycodes';\nexport * from './modifiers';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;IAAA;;;;;;;AAQA,QAAa,SAAS,GAAG,CAAC,CAAC;AAC3B,QAAa,SAAS,GAAG,CAAC,CAAC;AAC3B,QAAa,GAAG,GAAG,CAAC,CAAC;AACrB,QAAa,UAAU,GAAG,EAAE,CAAC;AAC7B,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAa,GAAG,GAAG,EAAE,CAAC;AACtB,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,SAAS,GAAG,EAAE,CAAC;AAC5B,QAAa,MAAM,GAAG,EAAE,CAAC;AACzB,QAAa,KAAK,GAAG,EAAE,CAAC;AACxB,QAAa,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAa,SAAS,GAAG,EAAE,CAAC;AAC5B,QAAa,GAAG,GAAG,EAAE,CAAC;AACtB,QAAa,IAAI,GAAG,EAAE,CAAC;AACvB,QAAa,UAAU,GAAG,EAAE,CAAC;AAC7B,QAAa,QAAQ,GAAG,EAAE,CAAC;AAC3B,QAAa,WAAW,GAAG,EAAE,CAAC;AAC9B,QAAa,UAAU,GAAG,EAAE,CAAC;AAC7B,QAAa,SAAS,GAAG,EAAE,CAAC;AAC5B,QAAa,YAAY,GAAG,EAAE,CAAC;AAC/B,QAAa,MAAM,GAAG,EAA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AI,OAAA,KAAK,CAAC,QAAQ,CAAC,GAAA,CAAC,CAAC;SACpD;QAED,OAAO,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;IAC1E,CAAC;;ICpBD;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -14,11 +14,11 @@
14
14
  var LayoutModule = /** @class */ (function () {
15
15
  function LayoutModule() {
16
16
  }
17
- LayoutModule.decorators = [
18
- { type: i0.NgModule, args: [{},] }
19
- ];
20
17
  return LayoutModule;
21
18
  }());
19
+ LayoutModule.decorators = [
20
+ { type: i0.NgModule, args: [{},] }
21
+ ];
22
22
 
23
23
  /**
24
24
  * @license
@@ -53,15 +53,15 @@
53
53
  }
54
54
  return this._matchMedia(query);
55
55
  };
56
- MediaMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function MediaMatcher_Factory() { return new MediaMatcher(i0.ɵɵinject(i1.Platform)); }, token: MediaMatcher, providedIn: "root" });
57
- MediaMatcher.decorators = [
58
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
59
- ];
60
- MediaMatcher.ctorParameters = function () { return [
61
- { type: i1.Platform }
62
- ]; };
63
56
  return MediaMatcher;
64
57
  }());
58
+ MediaMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function MediaMatcher_Factory() { return new MediaMatcher(i0.ɵɵinject(i1.Platform)); }, token: MediaMatcher, providedIn: "root" });
59
+ MediaMatcher.decorators = [
60
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
61
+ ];
62
+ MediaMatcher.ctorParameters = function () { return [
63
+ { type: i1.Platform }
64
+ ]; };
65
65
  /**
66
66
  * For Webkit engines that only trigger the MediaQueryListListener when
67
67
  * there is at least one CSS selector for the respective media query.
@@ -181,16 +181,16 @@
181
181
  this._queries.set(query, output);
182
182
  return output;
183
183
  };
184
- BreakpointObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function BreakpointObserver_Factory() { return new BreakpointObserver(i0.ɵɵinject(MediaMatcher), i0.ɵɵinject(i0.NgZone)); }, token: BreakpointObserver, providedIn: "root" });
185
- BreakpointObserver.decorators = [
186
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
187
- ];
188
- BreakpointObserver.ctorParameters = function () { return [
189
- { type: MediaMatcher },
190
- { type: i0.NgZone }
191
- ]; };
192
184
  return BreakpointObserver;
193
185
  }());
186
+ BreakpointObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function BreakpointObserver_Factory() { return new BreakpointObserver(i0.ɵɵinject(MediaMatcher), i0.ɵɵinject(i0.NgZone)); }, token: BreakpointObserver, providedIn: "root" });
187
+ BreakpointObserver.decorators = [
188
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
189
+ ];
190
+ BreakpointObserver.ctorParameters = function () { return [
191
+ { type: MediaMatcher },
192
+ { type: i0.NgZone }
193
+ ]; };
194
194
  /**
195
195
  * Split each query string into separate query strings if two queries are provided as comma
196
196
  * separated.
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-layout.umd.js","sources":["../../../../../../src/cdk/layout/layout-module.ts","../../../../../../src/cdk/layout/media-matcher.ts","../../../../../../src/cdk/layout/breakpoints-observer.ts","../../../../../../src/cdk/layout/breakpoints.ts","../../../../../../src/cdk/layout/public-api.ts","../../../../../../src/cdk/layout/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {NgModule} from '@angular/core';\n\n\n@NgModule({})\nexport class LayoutModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {Injectable} from '@angular/core';\nimport {Platform} from '@angular/cdk/platform';\n\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility: Set<string> = new Set<string>();\n\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode: HTMLStyleElement | undefined;\n\n/** A utility for calling matchMedia queries. */\n@Injectable({providedIn: 'root'})\nexport class MediaMatcher {\n /** The internal matchMedia method to return back a MediaQueryList like object. */\n private _matchMedia: (query: string) => MediaQueryList;\n\n constructor(private _platform: Platform) {\n this._matchMedia = this._platform.isBrowser && window.matchMedia ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) :\n noopMatchMedia;\n }\n\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n matchMedia(query: string): MediaQueryList {\n if (this._platform.WEBKIT) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n }\n}\n\n/**\n * For Webkit engines that only trigger the MediaQueryListListener when\n * there is at least one CSS selector for the respective media query.\n */\nfunction createEmptyStyleRule(query: string) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head!.appendChild(mediaQueryStyleNode);\n }\n\n if (mediaQueryStyleNode.sheet) {\n (mediaQueryStyleNode.sheet as CSSStyleSheet)\n .insertRule(`@media ${query} {.fx-query-test{ }}`, 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n } catch (e) {\n console.error(e);\n }\n}\n\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query: string): MediaQueryList {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: () => {},\n removeListener: () => {}\n } as any;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Injectable, NgZone, OnDestroy} from '@angular/core';\nimport {MediaMatcher} from './media-matcher';\nimport {combineLatest, concat, Observable, Subject, Observer} from 'rxjs';\nimport {debounceTime, map, skip, startWith, take, takeUntil} from 'rxjs/operators';\nimport {coerceArray} from '@angular/cdk/coercion';\n\n\n/** The current state of a layout breakpoint. */\nexport interface BreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /**\n * A key boolean pair for each query provided to the observe method,\n * with its current matched state.\n */\n breakpoints: {\n [key: string]: boolean;\n };\n}\n\n/** The current state of a layout breakpoint. */\ninterface InternalBreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /** The media query being to be matched */\n query: string;\n}\n\ninterface Query {\n observable: Observable<InternalBreakpointState>;\n mql: MediaQueryList;\n}\n\n/** Utility for checking the matching state of @media queries. */\n@Injectable({providedIn: 'root'})\nexport class BreakpointObserver implements OnDestroy {\n /** A map of all media queries currently being listened for. */\n private _queries = new Map<string, Query>();\n /** A subject for all other observables to takeUntil based on. */\n private _destroySubject = new Subject<void>();\n\n constructor(private _mediaMatcher: MediaMatcher, private _zone: NgZone) {}\n\n /** Completes the active subject, signalling to all other observables to complete. */\n ngOnDestroy() {\n this._destroySubject.next();\n this._destroySubject.complete();\n }\n\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n isMatched(value: string | string[]): boolean {\n const queries = splitQueries(coerceArray(value));\n return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n }\n\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n observe(value: string | string[]): Observable<BreakpointState> {\n const queries = splitQueries(coerceArray(value));\n const observables = queries.map(query => this._registerQuery(query).observable);\n\n let stateObservable = combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = concat(\n stateObservable.pipe(take(1)),\n stateObservable.pipe(skip(1), debounceTime(0)));\n return stateObservable.pipe(map((breakpointStates: InternalBreakpointState[]) => {\n const response: BreakpointState = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach((state: InternalBreakpointState) => {\n response.matches = response.matches || state.matches;\n response.breakpoints[state.query] = state.matches;\n });\n return response;\n }));\n }\n\n /** Registers a specific query to be listened for. */\n private _registerQuery(query: string): Query {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query)!;\n }\n\n const mql: MediaQueryList = this._mediaMatcher.matchMedia(query);\n\n // Create callback for match changes and add it is as a listener.\n const queryObservable = new Observable<MediaQueryList>((observer: Observer<MediaQueryList>) => {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n const handler = (e: any) => this._zone.run(() => observer.next(e));\n mql.addListener(handler);\n\n return () => {\n mql.removeListener(handler);\n };\n }).pipe(\n startWith(mql),\n map((nextMql: MediaQueryList) => ({query, matches: nextMql.matches})),\n takeUntil(this._destroySubject)\n );\n\n // Add the MediaQueryList to the set of queries.\n const output = {observable: queryObservable, mql};\n this._queries.set(query, output);\n return output;\n }\n}\n\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries: string[]): string[] {\n return queries.map((query: string) => query.split(','))\n .reduce((a1: string[], a2: string[]) => a1.concat(a2))\n .map(query => query.trim());\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// PascalCase is being used as Breakpoints is used like an enum.\n// tslint:disable-next-line:variable-name\nexport const Breakpoints = {\n XSmall: '(max-width: 599.99px)',\n Small: '(min-width: 600px) and (max-width: 959.99px)',\n Medium: '(min-width: 960px) and (max-width: 1279.99px)',\n Large: '(min-width: 1280px) and (max-width: 1919.99px)',\n XLarge: '(min-width: 1920px)',\n\n Handset: '(max-width: 599.99px) and (orientation: portrait), ' +\n '(max-width: 959.99px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n\n HandsetPortrait: '(max-width: 599.99px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n\n HandsetLandscape: '(max-width: 959.99px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n};\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {LayoutModule} from './layout-module';\nexport {BreakpointObserver, BreakpointState} from './breakpoints-observer';\nexport {Breakpoints} from './breakpoints';\nexport {MediaMatcher} from './media-matcher';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["NgModule","Injectable","Platform","Subject","coerceArray","combineLatest","concat","take","skip","debounceTime","map","Observable","startWith","takeUntil","NgZone"],"mappings":";;;;;;IAAA;;;;;;;AAOA;QAGA;SAC4B;;oBAD3BA,WAAQ,SAAC,EAAE;;QACe,mBAAC;KAD5B;;ICVA;;;;;;;AAOA,IAGA;IACA,IAAM,kCAAkC,GAAgB,IAAI,GAAG,EAAU,CAAC;IAE1E;IAC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YAAY,EAAE,kDAAkD;KACjE;;IC9BD;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"cdk-layout.umd.js","sources":["../../../../../src/cdk/layout/layout-module.ts","../../../../../src/cdk/layout/media-matcher.ts","../../../../../src/cdk/layout/breakpoints-observer.ts","../../../../../src/cdk/layout/breakpoints.ts","../../../../../src/cdk/layout/public-api.ts","../../../../../src/cdk/layout/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {NgModule} from '@angular/core';\n\n\n@NgModule({})\nexport class LayoutModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {Injectable} from '@angular/core';\nimport {Platform} from '@angular/cdk/platform';\n\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility: Set<string> = new Set<string>();\n\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode: HTMLStyleElement | undefined;\n\n/** A utility for calling matchMedia queries. */\n@Injectable({providedIn: 'root'})\nexport class MediaMatcher {\n /** The internal matchMedia method to return back a MediaQueryList like object. */\n private _matchMedia: (query: string) => MediaQueryList;\n\n constructor(private _platform: Platform) {\n this._matchMedia = this._platform.isBrowser && window.matchMedia ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) :\n noopMatchMedia;\n }\n\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n matchMedia(query: string): MediaQueryList {\n if (this._platform.WEBKIT) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n }\n}\n\n/**\n * For Webkit engines that only trigger the MediaQueryListListener when\n * there is at least one CSS selector for the respective media query.\n */\nfunction createEmptyStyleRule(query: string) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head!.appendChild(mediaQueryStyleNode);\n }\n\n if (mediaQueryStyleNode.sheet) {\n (mediaQueryStyleNode.sheet as CSSStyleSheet)\n .insertRule(`@media ${query} {.fx-query-test{ }}`, 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n } catch (e) {\n console.error(e);\n }\n}\n\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query: string): MediaQueryList {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: () => {},\n removeListener: () => {}\n } as any;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Injectable, NgZone, OnDestroy} from '@angular/core';\nimport {MediaMatcher} from './media-matcher';\nimport {combineLatest, concat, Observable, Subject, Observer} from 'rxjs';\nimport {debounceTime, map, skip, startWith, take, takeUntil} from 'rxjs/operators';\nimport {coerceArray} from '@angular/cdk/coercion';\n\n\n/** The current state of a layout breakpoint. */\nexport interface BreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /**\n * A key boolean pair for each query provided to the observe method,\n * with its current matched state.\n */\n breakpoints: {\n [key: string]: boolean;\n };\n}\n\n/** The current state of a layout breakpoint. */\ninterface InternalBreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /** The media query being to be matched */\n query: string;\n}\n\ninterface Query {\n observable: Observable<InternalBreakpointState>;\n mql: MediaQueryList;\n}\n\n/** Utility for checking the matching state of @media queries. */\n@Injectable({providedIn: 'root'})\nexport class BreakpointObserver implements OnDestroy {\n /** A map of all media queries currently being listened for. */\n private _queries = new Map<string, Query>();\n /** A subject for all other observables to takeUntil based on. */\n private _destroySubject = new Subject<void>();\n\n constructor(private _mediaMatcher: MediaMatcher, private _zone: NgZone) {}\n\n /** Completes the active subject, signalling to all other observables to complete. */\n ngOnDestroy() {\n this._destroySubject.next();\n this._destroySubject.complete();\n }\n\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n isMatched(value: string | string[]): boolean {\n const queries = splitQueries(coerceArray(value));\n return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n }\n\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n observe(value: string | string[]): Observable<BreakpointState> {\n const queries = splitQueries(coerceArray(value));\n const observables = queries.map(query => this._registerQuery(query).observable);\n\n let stateObservable = combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = concat(\n stateObservable.pipe(take(1)),\n stateObservable.pipe(skip(1), debounceTime(0)));\n return stateObservable.pipe(map((breakpointStates: InternalBreakpointState[]) => {\n const response: BreakpointState = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach((state: InternalBreakpointState) => {\n response.matches = response.matches || state.matches;\n response.breakpoints[state.query] = state.matches;\n });\n return response;\n }));\n }\n\n /** Registers a specific query to be listened for. */\n private _registerQuery(query: string): Query {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query)!;\n }\n\n const mql: MediaQueryList = this._mediaMatcher.matchMedia(query);\n\n // Create callback for match changes and add it is as a listener.\n const queryObservable = new Observable<MediaQueryList>((observer: Observer<MediaQueryList>) => {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n const handler = (e: any) => this._zone.run(() => observer.next(e));\n mql.addListener(handler);\n\n return () => {\n mql.removeListener(handler);\n };\n }).pipe(\n startWith(mql),\n map((nextMql: MediaQueryList) => ({query, matches: nextMql.matches})),\n takeUntil(this._destroySubject)\n );\n\n // Add the MediaQueryList to the set of queries.\n const output = {observable: queryObservable, mql};\n this._queries.set(query, output);\n return output;\n }\n}\n\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries: string[]): string[] {\n return queries.map((query: string) => query.split(','))\n .reduce((a1: string[], a2: string[]) => a1.concat(a2))\n .map(query => query.trim());\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// PascalCase is being used as Breakpoints is used like an enum.\n// tslint:disable-next-line:variable-name\nexport const Breakpoints = {\n XSmall: '(max-width: 599.99px)',\n Small: '(min-width: 600px) and (max-width: 959.99px)',\n Medium: '(min-width: 960px) and (max-width: 1279.99px)',\n Large: '(min-width: 1280px) and (max-width: 1919.99px)',\n XLarge: '(min-width: 1920px)',\n\n Handset: '(max-width: 599.99px) and (orientation: portrait), ' +\n '(max-width: 959.99px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n\n HandsetPortrait: '(max-width: 599.99px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n\n HandsetLandscape: '(max-width: 959.99px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n};\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {LayoutModule} from './layout-module';\nexport {BreakpointObserver, BreakpointState} from './breakpoints-observer';\nexport {Breakpoints} from './breakpoints';\nexport {MediaMatcher} from './media-matcher';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["NgModule","Injectable","Platform","Subject","coerceArray","combineLatest","concat","take","skip","debounceTime","map","Observable","startWith","takeUntil","NgZone"],"mappings":";;;;;;IAAA;;;;;;;AAOA;QAIA;;;;;gBADCA,WAAQ,SAAC,EAAE;;;ICVZ;;;;;;;AAOA,IAGA;IACA,IAAM,kCAAkC,GAAgB,IAAI,GAAG,EAAU,CAAC;IAE1E;IACA,IAAI,mBAAiD,CAAC;IAEtD;AAEA;QAIE,sBAAoB,SAAmB;YAAnB,cAAS,GAAT,SAAS,CAAU;YACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,MAAM,CAAC,UAAU;;;gBAG9D,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC9B,cAAc,CAAC;SAClB;;;;;;;QAQD,iCAAU,GAAV,UAAW,KAAa;YACtB,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;gBACzB,oBAAoB,CAAC,KAAK,CAAC,CAAC;aAC7B;YACD,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAChC;;;;;gBAxBFC,aAAU,SAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;gBATxBC,WAAQ;;IAoChB;;;;IAIA,SAAS,oBAAoB,CAAC,KAAa;QACzC,IAAI,kCAAkC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YACjD,OAAO;SACR;QAED,IAAI;YACF,IAAI,CAAC,mBAAmB,EAAE;gBACxB,mBAAmB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CA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C;;IC1ID;;;;;;;IAOA;IACA;AACA,QAAa,WAAW,GAAG;QACzB,MAAM,EAAE,uBAAuB;QAC/B,KAAK,EAAE,8CAA8C;QACrD,MAAM,EAAE,+CAA+C;QACvD,KAAK,EAAE,gDAAgD;QACvD,MAAM,EAAE,qBAAqB;QAE7B,OAAO,EAAE,qDAAqD;YACrD,oDAAoD;QAC7D,MAAM,EAAE,4EAA4E;YAC5E,4EAA4E;QACpF,GAAG,EAAE,kDAAkD;YAClD,kDAAkD;QAEvD,eAAe,EAAE,mDAAmD;QACpE,cAAc,EAAE,0EAA0E;QAC1F,WAAW,EAAE,gDAAgD;QAE7D,gBAAgB,EAAE,oDAAoD;QACtE,eAAe,EAAE,4EAA4E;QAC7F,YAAY,EAAE,kDAAkD;KACjE;;IC9BD;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;"}
@@ -5,28 +5,29 @@
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
8
- */var o,c=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{}]}],t}(),d=new Set,s=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function e(t){if(!d.has(t))try{o||((o=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(o)),o.sheet&&(o.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),d.add(t))}catch(t){console.error(t)}}(t),this._matchMedia(t)},t.ɵprov=e.ɵɵdefineInjectable({factory:function r(){return new t(e.ɵɵinject(n.Platform))},token:t,providedIn:"root"}),t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.Platform}]},t}();
8
+ */var o;(o=function o(){}).decorators=[{type:e.NgModule,args:[{}]}];
9
9
  /**
10
10
  * @license
11
11
  * Copyright Google LLC All Rights Reserved.
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license that can be
14
14
  * found in the LICENSE file at https://angular.io/license
15
- */function u(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}
15
+ */
16
+ var c,d=new Set,s=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function e(t){if(!d.has(t))try{c||((c=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(c)),c.sheet&&(c.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),d.add(t))}catch(t){console.error(t)}}(t),this._matchMedia(t)},t}();function u(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}
16
17
  /**
17
18
  * @license
18
19
  * Copyright Google LLC All Rights Reserved.
19
20
  *
20
21
  * Use of this source code is governed by an MIT-style license that can be
21
22
  * found in the LICENSE file at https://angular.io/license
22
- */var p=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.Subject}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return m(i.coerceArray(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=m(i.coerceArray(t)).map((function(t){return e._registerQuery(t).observable})),o=r.combineLatest(n);return(o=r.concat(o.pipe(a.take(1)),o.pipe(a.skip(1),a.debounceTime(0)))).pipe(a.map((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new r.Observable((function(t){var r=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(r),function(){n.removeListener(r)}})).pipe(a.startWith(n),a.map((function(e){return{query:t,matches:e.matches}})),a.takeUntil(this._destroySubject)),mql:n};return this._queries.set(t,i),i},t.ɵprov=e.ɵɵdefineInjectable({factory:function n(){return new t(e.ɵɵinject(s),e.ɵɵinject(e.NgZone))},token:t,providedIn:"root"}),t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:s},{type:e.NgZone}]},t}();function m(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}
23
+ */s.ɵprov=e.ɵɵdefineInjectable({factory:function t(){return new s(e.ɵɵinject(n.Platform))},token:s,providedIn:"root"}),s.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[{type:n.Platform}]};var p=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.Subject}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return m(i.coerceArray(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=m(i.coerceArray(t)).map((function(t){return e._registerQuery(t).observable})),o=r.combineLatest(n);return(o=r.concat(o.pipe(a.take(1)),o.pipe(a.skip(1),a.debounceTime(0)))).pipe(a.map((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new r.Observable((function(t){var r=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(r),function(){n.removeListener(r)}})).pipe(a.startWith(n),a.map((function(e){return{query:t,matches:e.matches}})),a.takeUntil(this._destroySubject)),mql:n};return this._queries.set(t,i),i},t}();function m(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}
23
24
  /**
24
25
  * @license
25
26
  * Copyright Google LLC All Rights Reserved.
26
27
  *
27
28
  * Use of this source code is governed by an MIT-style license that can be
28
29
  * found in the LICENSE file at https://angular.io/license
29
- */
30
+ */p.ɵprov=e.ɵɵdefineInjectable({factory:function t(){return new p(e.ɵɵinject(s),e.ɵɵinject(e.NgZone))},token:p,providedIn:"root"}),p.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],p.ctorParameters=function(){return[{type:s},{type:e.NgZone}]},
30
31
  /**
31
32
  * @license
32
33
  * Copyright Google LLC All Rights Reserved.
@@ -34,4 +35,4 @@
34
35
  * Use of this source code is governed by an MIT-style license that can be
35
36
  * found in the LICENSE file at https://angular.io/license
36
37
  */
37
- t.BreakpointObserver=p,t.Breakpoints={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},t.LayoutModule=c,t.MediaMatcher=s,Object.defineProperty(t,"__esModule",{value:!0})}));
38
+ t.BreakpointObserver=p,t.Breakpoints={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},t.LayoutModule=o,t.MediaMatcher=s,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -1 +1 @@
1
- {"version":3,"sources":["src/cdk/cdk-layout.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","cdk","layout","core","platform","rxjs","operators","coercion","this","i0","i1","mediaQueryStyleNode","LayoutModule","decorators","type","NgModule","args","mediaQueriesForWebkitCompatibility","Set","MediaMatcher","_platform","_matchMedia","isBrowser","window","matchMedia","bind","noopMatchMedia","prototype","query","WEBKIT","createEmptyStyleRule","has","document","createElement","setAttribute","head","appendChild","sheet","insertRule","add","e","console","error","ɵprov","ɵɵdefineInjectable","MediaMatcher_Factory","ɵɵinject","Platform","token","providedIn","Injectable","ctorParameters","matches","media","addListener","removeListener","BreakpointObserver","_mediaMatcher","_zone","_queries","Map","_destroySubject","Subject","ngOnDestroy","next","complete","isMatched","value","_this","splitQueries","coerceArray","some","mediaQuery","_registerQuery","mql","observe","observables","map","observable","stateObservable","combineLatest","concat","pipe","take","skip","debounceTime","breakpointStates","response","breakpoints","forEach","state","get","output","Observable","observer","handler","run","startWith","nextMql","takeUntil","set","BreakpointObserver_Factory","NgZone","queries","split","reduce","a1","a2","trim","Breakpoints","XSmall","Small","Medium","Large","XLarge","Handset","Tablet","Web","HandsetPortrait","TabletPortrait","WebPortrait","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AAErC,KAAMK,GACR,CAAEL,KAAML,EAAG6F,UAER9C,EAnF4B,GAyFvC,SAASa,EAAakC,GAClB,OAAOA,EAAQ1B,KAAI,SAAUjD,GAAS,OAAOA,EAAM4E,MAAM,QACpDC,QAAO,SAAUC,EAAIC,GAAM,OAAOD,EAAGzB,OAAO0B,MAC5C9B,KAAI,SAAUjD,GAAS,OAAOA,EAAMgF;;;;;;;;;;;;;;;AA4C7ClH,EAAQ8D,mBAAqBA,EAC7B9D,EAAQmH,YAjCU,CACdC,OAAQ,wBACRC,MAAO,+CACPC,OAAQ,gDACRC,MAAO,iDACPC,OAAQ,sBACRC,QAAS,wGAETC,OAAQ,uJAERC,IAAK,mGAELC,gBAAiB,oDACjBC,eAAgB,2EAChBC,YAAa,iDACbC,iBAAkB,qDAClBC,gBAAiB,6EACjBC,aAAc,oDAiBlBjI,EAAQkB,aAAeA,EACvBlB,EAAQyB,aAAeA,EAEvByG,OAAOC,eAAenI,EAAS,aAAc,CAAEyE,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/platform'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/coercion')) :\n typeof define === 'function' && define.amd ? define('@angular/cdk/layout', ['exports', '@angular/core', '@angular/cdk/platform', 'rxjs', 'rxjs/operators', '@angular/cdk/coercion'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.layout = {}), global.ng.core, global.ng.cdk.platform, global.rxjs, global.rxjs.operators, global.ng.cdk.coercion));\n}(this, (function (exports, i0, i1, rxjs, operators, coercion) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var LayoutModule = /** @class */ (function () {\n function LayoutModule() {\n }\n LayoutModule.decorators = [\n { type: i0.NgModule, args: [{},] }\n ];\n return LayoutModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Global registry for all dynamically-created, injected media queries. */\n var mediaQueriesForWebkitCompatibility = new Set();\n /** Style tag that holds all of the dynamically-created media queries. */\n var mediaQueryStyleNode;\n /** A utility for calling matchMedia queries. */\n var MediaMatcher = /** @class */ (function () {\n function MediaMatcher(_platform) {\n this._platform = _platform;\n this._matchMedia = this._platform.isBrowser && window.matchMedia ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) :\n noopMatchMedia;\n }\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n MediaMatcher.prototype.matchMedia = function (query) {\n if (this._platform.WEBKIT) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n };\n MediaMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function MediaMatcher_Factory() { return new MediaMatcher(i0.ɵɵinject(i1.Platform)); }, token: MediaMatcher, providedIn: \"root\" });\n MediaMatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n MediaMatcher.ctorParameters = function () { return [\n { type: i1.Platform }\n ]; };\n return MediaMatcher;\n }());\n /**\n * For Webkit engines that only trigger the MediaQueryListListener when\n * there is at least one CSS selector for the respective media query.\n */\n function createEmptyStyleRule(query) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head.appendChild(mediaQueryStyleNode);\n }\n if (mediaQueryStyleNode.sheet) {\n mediaQueryStyleNode.sheet\n .insertRule(\"@media \" + query + \" {.fx-query-test{ }}\", 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n /** No-op matchMedia replacement for non-browser platforms. */\n function noopMatchMedia(query) {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: function () { },\n removeListener: function () { }\n };\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Utility for checking the matching state of @media queries. */\n var BreakpointObserver = /** @class */ (function () {\n function BreakpointObserver(_mediaMatcher, _zone) {\n this._mediaMatcher = _mediaMatcher;\n this._zone = _zone;\n /** A map of all media queries currently being listened for. */\n this._queries = new Map();\n /** A subject for all other observables to takeUntil based on. */\n this._destroySubject = new rxjs.Subject();\n }\n /** Completes the active subject, signalling to all other observables to complete. */\n BreakpointObserver.prototype.ngOnDestroy = function () {\n this._destroySubject.next();\n this._destroySubject.complete();\n };\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n BreakpointObserver.prototype.isMatched = function (value) {\n var _this = this;\n var queries = splitQueries(coercion.coerceArray(value));\n return queries.some(function (mediaQuery) { return _this._registerQuery(mediaQuery).mql.matches; });\n };\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n BreakpointObserver.prototype.observe = function (value) {\n var _this = this;\n var queries = splitQueries(coercion.coerceArray(value));\n var observables = queries.map(function (query) { return _this._registerQuery(query).observable; });\n var stateObservable = rxjs.combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = rxjs.concat(stateObservable.pipe(operators.take(1)), stateObservable.pipe(operators.skip(1), operators.debounceTime(0)));\n return stateObservable.pipe(operators.map(function (breakpointStates) {\n var response = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach(function (state) {\n response.matches = response.matches || state.matches;\n response.breakpoints[state.query] = state.matches;\n });\n return response;\n }));\n };\n /** Registers a specific query to be listened for. */\n BreakpointObserver.prototype._registerQuery = function (query) {\n var _this = this;\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query);\n }\n var mql = this._mediaMatcher.matchMedia(query);\n // Create callback for match changes and add it is as a listener.\n var queryObservable = new rxjs.Observable(function (observer) {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n var handler = function (e) { return _this._zone.run(function () { return observer.next(e); }); };\n mql.addListener(handler);\n return function () {\n mql.removeListener(handler);\n };\n }).pipe(operators.startWith(mql), operators.map(function (nextMql) { return ({ query: query, matches: nextMql.matches }); }), operators.takeUntil(this._destroySubject));\n // Add the MediaQueryList to the set of queries.\n var output = { observable: queryObservable, mql: mql };\n this._queries.set(query, output);\n return output;\n };\n BreakpointObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function BreakpointObserver_Factory() { return new BreakpointObserver(i0.ɵɵinject(MediaMatcher), i0.ɵɵinject(i0.NgZone)); }, token: BreakpointObserver, providedIn: \"root\" });\n BreakpointObserver.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n BreakpointObserver.ctorParameters = function () { return [\n { type: MediaMatcher },\n { type: i0.NgZone }\n ]; };\n return BreakpointObserver;\n }());\n /**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\n function splitQueries(queries) {\n return queries.map(function (query) { return query.split(','); })\n .reduce(function (a1, a2) { return a1.concat(a2); })\n .map(function (query) { return query.trim(); });\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // PascalCase is being used as Breakpoints is used like an enum.\n // tslint:disable-next-line:variable-name\n var Breakpoints = {\n XSmall: '(max-width: 599.99px)',\n Small: '(min-width: 600px) and (max-width: 959.99px)',\n Medium: '(min-width: 960px) and (max-width: 1279.99px)',\n Large: '(min-width: 1280px) and (max-width: 1919.99px)',\n XLarge: '(min-width: 1920px)',\n Handset: '(max-width: 599.99px) and (orientation: portrait), ' +\n '(max-width: 959.99px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n HandsetPortrait: '(max-width: 599.99px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n HandsetLandscape: '(max-width: 959.99px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.BreakpointObserver = BreakpointObserver;\n exports.Breakpoints = Breakpoints;\n exports.LayoutModule = LayoutModule;\n exports.MediaMatcher = MediaMatcher;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=cdk-layout.umd.js.map\n"]}
1
+ {"version":3,"sources":["src/cdk/cdk-layout.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","cdk","layout","core","platform","rxjs","operators","coercion","this","i0","i1","LayoutModule","decorators","type","NgModule","args","mediaQueryStyleNode","mediaQueriesForWebkitCompatibility","Set","MediaMatcher","_platform","_matchMedia","isBrowser","window","matchMedia","bind","noopMatchMedia","prototype","query","WEBKIT","createEmptyStyleRule","has","document","createElement","setAttribute","head","appendChild","sheet","insertRule","add","e","console","error","matches","media","addListener","removeListener","ɵprov","ɵɵdefineInjectable","MediaMatcher_Factory","ɵɵinject","Platform","token","providedIn","Injectable","ctorParameters","BreakpointObserver","_mediaMatcher","_zone","_queries","Map","_destroySubject","Subject","ngOnDestroy","next","complete","isMatched","value","_this","splitQueries","coerceArray","some","mediaQuery","_registerQuery","mql","observe","observables","map","observable","stateObservable","combineLatest","concat","pipe","take","skip","debounceTime","breakpointStates","response","breakpoints","forEach","state","get","output","Observable","observer","handler","run","startWith","nextMql","takeUntil","set","queries","split","reduce","a1","a2","trim","BreakpointObserver_Factory","NgZone","Breakpoints","XSmall","Small","Medium","Large","XLarge","Handset","Tablet","Web","HandsetPortrait","TabletPortrait","WebPortrait","HandsetLandscape","TabletLandscape","WebLandscape","Object","defineProperty"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,yBAA0BA,QAAQ,QAASA,QAAQ,kBAAmBA,QAAQ,0BAC9K,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,sBAAuB,CAAC,UAAW,gBAAiB,wBAAyB,OAAQ,iBAAkB,yBAA0BJ,GAC3JA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,IAAMT,EAAOQ,GAAGC,KAAO,GAAIT,EAAOQ,GAAGC,IAAIC,OAAS,IAAKV,EAAOQ,GAAGG,KAAMX,EAAOQ,GAAGC,IAAIG,SAAUZ,EAAOa,KAAMb,EAAOa,KAAKC,UAAWd,EAAOQ,GAAGC,IAAIM,UAH/N,CAIEC,MAAM,SAAWd,EAASe,EAAIC,EAAIL,EAAMC,EAAWC,GAAY;;;;;;;OAS7D,IAAII,GAAAA,EACA,SAASA,OAIAC,WAAa,CACtB,CAAEC,KAAMJ,EAAGK,SAAUC,KAAM,CAAC;;;;;;;;AAWh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,GAAW,MAAO,CAAGtE,MAAOA,EAAOe,QAASuD,EAAQvD,YAAgBrC,EAAU6F,UAAU3F,KAAKqD,kBAE3Ga,IAAKA,GAEjD,OADAlE,KAAKmD,SAASyC,IAAIxE,EAAOgE,GAClBA,GAEJpC,EA3E4B,GAyFvC,SAASa,EAAagC,GAClB,OAAOA,EAAQxB,KAAI,SAAUjD,GAAS,OAAOA,EAAM0E,MAAM,QACpDC,QAAO,SAAUC,EAAIC,GAAM,OAAOD,EAAGvB,OAAOwB,MAC5C5B,KAAI,SAAUjD,GAAS,OAAOA,EAAM8E;;;;;;;OAf7ClD,EAAmBT,MAAQtC,EAAGuC,mBAAmB,CAAEvD,QAAS,SAASkH,IAA+B,OAAO,IAAInD,EAAmB/C,EAAGyC,SAAS/B,GAAeV,EAAGyC,SAASzC,EAAGmG,UAAaxD,MAAOI,EAAoBH,WAAY,SAChOG,EAAmB5C,WAAa,CAC5B,CAAEC,KAAMJ,EAAG6C,WAAYvC,KAAM,CAAC,CAAEsC,WAAY,WAEhDG,EAAmBD,eAAiB,WAAc,MAAO,CACrD,CAAE1C,KAAMM,GACR,CAAEN,KAAMJ,EAAGmG;;;;;;;;AAqDflH,EAAQ8D,mBAAqBA,EAC7B9D,EAAQmH,YAjCU,CACdC,OAAQ,wBACRC,MAAO,+CACPC,OAAQ,gDACRC,MAAO,iDACPC,OAAQ,sBACRC,QAAS,wGAETC,OAAQ,uJAERC,IAAK,mGAELC,gBAAiB,oDACjBC,eAAgB,2EAChBC,YAAa,iDACbC,iBAAkB,qDAClBC,gBAAiB,6EACjBC,aAAc,oDAiBlBjI,EAAQiB,aAAeA,EACvBjB,EAAQyB,aAAeA,EAEvByG,OAAOC,eAAenI,EAAS,aAAc,CAAEyE,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/platform'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/coercion')) :\n typeof define === 'function' && define.amd ? define('@angular/cdk/layout', ['exports', '@angular/core', '@angular/cdk/platform', 'rxjs', 'rxjs/operators', '@angular/cdk/coercion'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.layout = {}), global.ng.core, global.ng.cdk.platform, global.rxjs, global.rxjs.operators, global.ng.cdk.coercion));\n}(this, (function (exports, i0, i1, rxjs, operators, coercion) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var LayoutModule = /** @class */ (function () {\n function LayoutModule() {\n }\n return LayoutModule;\n }());\n LayoutModule.decorators = [\n { type: i0.NgModule, args: [{},] }\n ];\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Global registry for all dynamically-created, injected media queries. */\n var mediaQueriesForWebkitCompatibility = new Set();\n /** Style tag that holds all of the dynamically-created media queries. */\n var mediaQueryStyleNode;\n /** A utility for calling matchMedia queries. */\n var MediaMatcher = /** @class */ (function () {\n function MediaMatcher(_platform) {\n this._platform = _platform;\n this._matchMedia = this._platform.isBrowser && window.matchMedia ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) :\n noopMatchMedia;\n }\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n MediaMatcher.prototype.matchMedia = function (query) {\n if (this._platform.WEBKIT) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n };\n return MediaMatcher;\n }());\n MediaMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function MediaMatcher_Factory() { return new MediaMatcher(i0.ɵɵinject(i1.Platform)); }, token: MediaMatcher, providedIn: \"root\" });\n MediaMatcher.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n MediaMatcher.ctorParameters = function () { return [\n { type: i1.Platform }\n ]; };\n /**\n * For Webkit engines that only trigger the MediaQueryListListener when\n * there is at least one CSS selector for the respective media query.\n */\n function createEmptyStyleRule(query) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head.appendChild(mediaQueryStyleNode);\n }\n if (mediaQueryStyleNode.sheet) {\n mediaQueryStyleNode.sheet\n .insertRule(\"@media \" + query + \" {.fx-query-test{ }}\", 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n /** No-op matchMedia replacement for non-browser platforms. */\n function noopMatchMedia(query) {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: function () { },\n removeListener: function () { }\n };\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Utility for checking the matching state of @media queries. */\n var BreakpointObserver = /** @class */ (function () {\n function BreakpointObserver(_mediaMatcher, _zone) {\n this._mediaMatcher = _mediaMatcher;\n this._zone = _zone;\n /** A map of all media queries currently being listened for. */\n this._queries = new Map();\n /** A subject for all other observables to takeUntil based on. */\n this._destroySubject = new rxjs.Subject();\n }\n /** Completes the active subject, signalling to all other observables to complete. */\n BreakpointObserver.prototype.ngOnDestroy = function () {\n this._destroySubject.next();\n this._destroySubject.complete();\n };\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n BreakpointObserver.prototype.isMatched = function (value) {\n var _this = this;\n var queries = splitQueries(coercion.coerceArray(value));\n return queries.some(function (mediaQuery) { return _this._registerQuery(mediaQuery).mql.matches; });\n };\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n BreakpointObserver.prototype.observe = function (value) {\n var _this = this;\n var queries = splitQueries(coercion.coerceArray(value));\n var observables = queries.map(function (query) { return _this._registerQuery(query).observable; });\n var stateObservable = rxjs.combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = rxjs.concat(stateObservable.pipe(operators.take(1)), stateObservable.pipe(operators.skip(1), operators.debounceTime(0)));\n return stateObservable.pipe(operators.map(function (breakpointStates) {\n var response = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach(function (state) {\n response.matches = response.matches || state.matches;\n response.breakpoints[state.query] = state.matches;\n });\n return response;\n }));\n };\n /** Registers a specific query to be listened for. */\n BreakpointObserver.prototype._registerQuery = function (query) {\n var _this = this;\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query);\n }\n var mql = this._mediaMatcher.matchMedia(query);\n // Create callback for match changes and add it is as a listener.\n var queryObservable = new rxjs.Observable(function (observer) {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n var handler = function (e) { return _this._zone.run(function () { return observer.next(e); }); };\n mql.addListener(handler);\n return function () {\n mql.removeListener(handler);\n };\n }).pipe(operators.startWith(mql), operators.map(function (nextMql) { return ({ query: query, matches: nextMql.matches }); }), operators.takeUntil(this._destroySubject));\n // Add the MediaQueryList to the set of queries.\n var output = { observable: queryObservable, mql: mql };\n this._queries.set(query, output);\n return output;\n };\n return BreakpointObserver;\n }());\n BreakpointObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function BreakpointObserver_Factory() { return new BreakpointObserver(i0.ɵɵinject(MediaMatcher), i0.ɵɵinject(i0.NgZone)); }, token: BreakpointObserver, providedIn: \"root\" });\n BreakpointObserver.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n BreakpointObserver.ctorParameters = function () { return [\n { type: MediaMatcher },\n { type: i0.NgZone }\n ]; };\n /**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\n function splitQueries(queries) {\n return queries.map(function (query) { return query.split(','); })\n .reduce(function (a1, a2) { return a1.concat(a2); })\n .map(function (query) { return query.trim(); });\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // PascalCase is being used as Breakpoints is used like an enum.\n // tslint:disable-next-line:variable-name\n var Breakpoints = {\n XSmall: '(max-width: 599.99px)',\n Small: '(min-width: 600px) and (max-width: 959.99px)',\n Medium: '(min-width: 960px) and (max-width: 1279.99px)',\n Large: '(min-width: 1280px) and (max-width: 1919.99px)',\n XLarge: '(min-width: 1920px)',\n Handset: '(max-width: 599.99px) and (orientation: portrait), ' +\n '(max-width: 959.99px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n HandsetPortrait: '(max-width: 599.99px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n HandsetLandscape: '(max-width: 959.99px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.BreakpointObserver = BreakpointObserver;\n exports.Breakpoints = Breakpoints;\n exports.LayoutModule = LayoutModule;\n exports.MediaMatcher = MediaMatcher;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=cdk-layout.umd.js.map\n"]}
@@ -21,12 +21,12 @@
21
21
  MutationObserverFactory.prototype.create = function (callback) {
22
22
  return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
23
23
  };
24
- MutationObserverFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function MutationObserverFactory_Factory() { return new MutationObserverFactory(); }, token: MutationObserverFactory, providedIn: "root" });
25
- MutationObserverFactory.decorators = [
26
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27
- ];
28
24
  return MutationObserverFactory;
29
25
  }());
26
+ MutationObserverFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function MutationObserverFactory_Factory() { return new MutationObserverFactory(); }, token: MutationObserverFactory, providedIn: "root" });
27
+ MutationObserverFactory.decorators = [
28
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29
+ ];
30
30
  /** An injectable service that allows watching elements for changes to their content. */
31
31
  var ContentObserver = /** @class */ (function () {
32
32
  function ContentObserver(_mutationObserverFactory) {
@@ -95,15 +95,15 @@
95
95
  this._observedElements.delete(element);
96
96
  }
97
97
  };
98
- ContentObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function ContentObserver_Factory() { return new ContentObserver(i0.ɵɵinject(MutationObserverFactory)); }, token: ContentObserver, providedIn: "root" });
99
- ContentObserver.decorators = [
100
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
101
- ];
102
- ContentObserver.ctorParameters = function () { return [
103
- { type: MutationObserverFactory }
104
- ]; };
105
98
  return ContentObserver;
106
99
  }());
100
+ ContentObserver.ɵprov = i0.ɵɵdefineInjectable({ factory: function ContentObserver_Factory() { return new ContentObserver(i0.ɵɵinject(MutationObserverFactory)); }, token: ContentObserver, providedIn: "root" });
101
+ ContentObserver.decorators = [
102
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
103
+ ];
104
+ ContentObserver.ctorParameters = function () { return [
105
+ { type: MutationObserverFactory }
106
+ ]; };
107
107
  /**
108
108
  * Directive that triggers a callback whenever the content of
109
109
  * its associated element has changed.
@@ -167,36 +167,36 @@
167
167
  this._currentSubscription.unsubscribe();
168
168
  }
169
169
  };
170
- CdkObserveContent.decorators = [
171
- { type: i0.Directive, args: [{
172
- selector: '[cdkObserveContent]',
173
- exportAs: 'cdkObserveContent',
174
- },] }
175
- ];
176
- CdkObserveContent.ctorParameters = function () { return [
177
- { type: ContentObserver },
178
- { type: i0.ElementRef },
179
- { type: i0.NgZone }
180
- ]; };
181
- CdkObserveContent.propDecorators = {
182
- event: [{ type: i0.Output, args: ['cdkObserveContent',] }],
183
- disabled: [{ type: i0.Input, args: ['cdkObserveContentDisabled',] }],
184
- debounce: [{ type: i0.Input }]
185
- };
186
170
  return CdkObserveContent;
187
171
  }());
172
+ CdkObserveContent.decorators = [
173
+ { type: i0.Directive, args: [{
174
+ selector: '[cdkObserveContent]',
175
+ exportAs: 'cdkObserveContent',
176
+ },] }
177
+ ];
178
+ CdkObserveContent.ctorParameters = function () { return [
179
+ { type: ContentObserver },
180
+ { type: i0.ElementRef },
181
+ { type: i0.NgZone }
182
+ ]; };
183
+ CdkObserveContent.propDecorators = {
184
+ event: [{ type: i0.Output, args: ['cdkObserveContent',] }],
185
+ disabled: [{ type: i0.Input, args: ['cdkObserveContentDisabled',] }],
186
+ debounce: [{ type: i0.Input }]
187
+ };
188
188
  var ObserversModule = /** @class */ (function () {
189
189
  function ObserversModule() {
190
190
  }
191
- ObserversModule.decorators = [
192
- { type: i0.NgModule, args: [{
193
- exports: [CdkObserveContent],
194
- declarations: [CdkObserveContent],
195
- providers: [MutationObserverFactory]
196
- },] }
197
- ];
198
191
  return ObserversModule;
199
192
  }());
193
+ ObserversModule.decorators = [
194
+ { type: i0.NgModule, args: [{
195
+ exports: [CdkObserveContent],
196
+ declarations: [CdkObserveContent],
197
+ providers: [MutationObserverFactory]
198
+ },] }
199
+ ];
200
200
 
201
201
  /**
202
202
  * @license
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-observers.umd.js","sources":["../../../../../../src/cdk/observers/observe-content.ts","../../../../../../src/cdk/observers/public-api.ts","../../../../../../src/cdk/observers/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n coerceBooleanProperty,\n coerceNumberProperty,\n coerceElement,\n BooleanInput\n} from '@angular/cdk/coercion';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {Observable, Subject, Subscription, Observer} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable({providedIn: 'root'})\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n}\n\n\n/** An injectable service that allows watching elements for changes to their content. */\n@Injectable({providedIn: 'root'})\nexport class ContentObserver implements OnDestroy {\n /** Keeps track of the existing MutationObservers so they can be reused. */\n private _observedElements = new Map<Element, {\n observer: MutationObserver | null,\n stream: Subject<MutationRecord[]>,\n count: number\n }>();\n\n constructor(private _mutationObserverFactory: MutationObserverFactory) {}\n\n ngOnDestroy() {\n this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n }\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: Element): Observable<MutationRecord[]>;\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: ElementRef<Element>): Observable<MutationRecord[]>;\n\n observe(elementOrRef: Element | ElementRef<Element>): Observable<MutationRecord[]> {\n const element = coerceElement(elementOrRef);\n\n return new Observable((observer: Observer<MutationRecord[]>) => {\n const stream = this._observeElement(element);\n const subscription = stream.subscribe(observer);\n\n return () => {\n subscription.unsubscribe();\n this._unobserveElement(element);\n };\n });\n }\n\n /**\n * Observes the given element by using the existing MutationObserver if available, or creating a\n * new one if not.\n */\n private _observeElement(element: Element): Subject<MutationRecord[]> {\n if (!this._observedElements.has(element)) {\n const stream = new Subject<MutationRecord[]>();\n const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n this._observedElements.set(element, {observer, stream, count: 1});\n } else {\n this._observedElements.get(element)!.count++;\n }\n return this._observedElements.get(element)!.stream;\n }\n\n /**\n * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n * observing this element.\n */\n private _unobserveElement(element: Element) {\n if (this._observedElements.has(element)) {\n this._observedElements.get(element)!.count--;\n if (!this._observedElements.get(element)!.count) {\n this._cleanupObserver(element);\n }\n }\n }\n\n /** Clean up the underlying MutationObserver for the specified element. */\n private _cleanupObserver(element: Element) {\n if (this._observedElements.has(element)) {\n const {observer, stream} = this._observedElements.get(element)!;\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this._observedElements.delete(element);\n }\n }\n}\n\n\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\n@Directive({\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n})\nexport class CdkObserveContent implements AfterContentInit, OnDestroy {\n /** Event emitted for each change in the element's content. */\n @Output('cdkObserveContent') event = new EventEmitter<MutationRecord[]>();\n\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n @Input('cdkObserveContentDisabled')\n get disabled() { return this._disabled; }\n set disabled(value: any) {\n this._disabled = coerceBooleanProperty(value);\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n private _disabled = false;\n\n /** Debounce interval for emitting the changes. */\n @Input()\n get debounce(): number { return this._debounce; }\n set debounce(value: number) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n private _debounce: number;\n\n private _currentSubscription: Subscription | null = null;\n\n constructor(private _contentObserver: ContentObserver,\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone) {}\n\n ngAfterContentInit() {\n if (!this._currentSubscription && !this.disabled) {\n this._subscribe();\n }\n }\n\n ngOnDestroy() {\n this._unsubscribe();\n }\n\n private _subscribe() {\n this._unsubscribe();\n const stream = this._contentObserver.observe(this._elementRef);\n\n // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n // Consider brining it back inside the zone next time we're making breaking changes.\n // Bringing it back inside can cause things like infinite change detection loops and changed\n // after checked errors if people's code isn't handling it properly.\n this._ngZone.runOutsideAngular(() => {\n this._currentSubscription =\n (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);\n });\n }\n\n private _unsubscribe() {\n if (this._currentSubscription) {\n this._currentSubscription.unsubscribe();\n }\n }\n\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_debounce: BooleanInput;\n}\n\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory]\n})\nexport class ObserversModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './observe-content';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Injectable","coerceElement","Observable","Subject","EventEmitter","coerceBooleanProperty","coerceNumberProperty","debounceTime","Directive","ElementRef","NgZone","Output","Input","NgModule"],"mappings":";;;;;;IAAA;;;;;;;AAQA,IAqBA;;;;AAIA;QAAA;SAKC;QAHC,wCAAM,GAAN,UAAO,QAA0B;YAC/B,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IA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AAC;gBAC7B,KAAI,CAAC,oBAAoB;oBACrB,CAAC,KAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAACC,sBAAY,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC,KAAI,CAAC,KAAK,CAAC,CAAC;aAC/F,CAAC,CAAC;SACJ;QAEO,wCAAY,GAApB;YACE,IAAI,IAAI,CAAC,oBAAoB,EAAE;gBAC7B,IAAI,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC;aACzC;SACF;;oBA/DFC,YAAS,SAAC;wBACT,QAAQ,EAAE,qBAAqB;wBAC/B,QAAQ,EAAE,mBAAmB;qBAC9B;;;oBA4BuC,eAAe;oBAtJrDC,aAAU;oBAKVC,SAAM;;;4BAwHLC,SAAM,SAAC,mBAAmB;+BAM1BC,QAAK,SAAC,2BAA2B;+BASjCA,QAAK;;QA8CR,wBAAC;KAnED,IAmEC;;QAGD;SAK+B;;oBAL9BC,WAAQ,SAAC;wBACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;wBAC5B,YAAY,EAAE,CAAC,iBAAiB,CAAC;wBACjC,SAAS,EAAE,CAAC,uBAAuB,CAAC;qBACrC;;QAC6B,sBAAC;KAL/B;;IC9MA;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"cdk-observers.umd.js","sources":["../../../../../src/cdk/observers/observe-content.ts","../../../../../src/cdk/observers/public-api.ts","../../../../../src/cdk/observers/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n coerceBooleanProperty,\n coerceNumberProperty,\n coerceElement,\n BooleanInput\n} from '@angular/cdk/coercion';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Injectable,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {Observable, Subject, Subscription, Observer} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable({providedIn: 'root'})\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n}\n\n\n/** An injectable service that allows watching elements for changes to their content. */\n@Injectable({providedIn: 'root'})\nexport class ContentObserver implements OnDestroy {\n /** Keeps track of the existing MutationObservers so they can be reused. */\n private _observedElements = new Map<Element, {\n observer: MutationObserver | null,\n stream: Subject<MutationRecord[]>,\n count: number\n }>();\n\n constructor(private _mutationObserverFactory: MutationObserverFactory) {}\n\n ngOnDestroy() {\n this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n }\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: Element): Observable<MutationRecord[]>;\n\n /**\n * Observe content changes on an element.\n * @param element The element to observe for content changes.\n */\n observe(element: ElementRef<Element>): Observable<MutationRecord[]>;\n\n observe(elementOrRef: Element | ElementRef<Element>): Observable<MutationRecord[]> {\n const element = coerceElement(elementOrRef);\n\n return new Observable((observer: Observer<MutationRecord[]>) => {\n const stream = this._observeElement(element);\n const subscription = stream.subscribe(observer);\n\n return () => {\n subscription.unsubscribe();\n this._unobserveElement(element);\n };\n });\n }\n\n /**\n * Observes the given element by using the existing MutationObserver if available, or creating a\n * new one if not.\n */\n private _observeElement(element: Element): Subject<MutationRecord[]> {\n if (!this._observedElements.has(element)) {\n const stream = new Subject<MutationRecord[]>();\n const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n this._observedElements.set(element, {observer, stream, count: 1});\n } else {\n this._observedElements.get(element)!.count++;\n }\n return this._observedElements.get(element)!.stream;\n }\n\n /**\n * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n * observing this element.\n */\n private _unobserveElement(element: Element) {\n if (this._observedElements.has(element)) {\n this._observedElements.get(element)!.count--;\n if (!this._observedElements.get(element)!.count) {\n this._cleanupObserver(element);\n }\n }\n }\n\n /** Clean up the underlying MutationObserver for the specified element. */\n private _cleanupObserver(element: Element) {\n if (this._observedElements.has(element)) {\n const {observer, stream} = this._observedElements.get(element)!;\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this._observedElements.delete(element);\n }\n }\n}\n\n\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\n@Directive({\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n})\nexport class CdkObserveContent implements AfterContentInit, OnDestroy {\n /** Event emitted for each change in the element's content. */\n @Output('cdkObserveContent') event = new EventEmitter<MutationRecord[]>();\n\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n @Input('cdkObserveContentDisabled')\n get disabled() { return this._disabled; }\n set disabled(value: any) {\n this._disabled = coerceBooleanProperty(value);\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n private _disabled = false;\n\n /** Debounce interval for emitting the changes. */\n @Input()\n get debounce(): number { return this._debounce; }\n set debounce(value: number) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n private _debounce: number;\n\n private _currentSubscription: Subscription | null = null;\n\n constructor(private _contentObserver: ContentObserver,\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone) {}\n\n ngAfterContentInit() {\n if (!this._currentSubscription && !this.disabled) {\n this._subscribe();\n }\n }\n\n ngOnDestroy() {\n this._unsubscribe();\n }\n\n private _subscribe() {\n this._unsubscribe();\n const stream = this._contentObserver.observe(this._elementRef);\n\n // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n // Consider brining it back inside the zone next time we're making breaking changes.\n // Bringing it back inside can cause things like infinite change detection loops and changed\n // after checked errors if people's code isn't handling it properly.\n this._ngZone.runOutsideAngular(() => {\n this._currentSubscription =\n (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);\n });\n }\n\n private _unsubscribe() {\n if (this._currentSubscription) {\n this._currentSubscription.unsubscribe();\n }\n }\n\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_debounce: BooleanInput;\n}\n\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory]\n})\nexport class ObserversModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './observe-content';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Injectable","coerceElement","Observable","Subject","EventEmitter","coerceBooleanProperty","coerceNumberProperty","debounceTime","Directive","ElementRef","NgZone","Output","Input","NgModule"],"mappings":";;;;;;IAAA;;;;;;;AAQA,IAqBA;;;;AAKA;QAAA;;QACE,wCAAM,GAAN,UAAO,QAA0B;YAC/B,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;SACxF;;;;;gBAJFA,aAAU,SAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;IAQhC;AAEA;QAQE,yBAAoB,wBAAiD;YAAjD,6BAAwB,GAAxB,wBAAwB,CAAyB;;YAN7D,sBAAiB,GAAG,IAAI,GAAG,EAI/B,CAAC;SAEoE;QAEzE,qCAAW,GAAX;YAAA,iBAEC;YADC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAC,CAAC,EAAE,OAAO,IAAK,OAAA,KAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;SAChF;QAcD,iCAAO,GAAP,UAAQ,YAA2C;YAAnD,iBAYC;YAXC,IAAM,OAAO,GAAGC,sBAAa,CAAC,YAAY,CAAC,CAAC;YAE5C,OAAO,IAAIC,eA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;;gBALCC,WAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,SAAS,EAAE,CAAC,uBAAuB,CAAC;iBACrC;;;IClND;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
8
- */var s=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e.ɵprov=r.ɵɵdefineInjectable({factory:function t(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],e}(),i=function(){function e(e){this._mutationObserverFactory=e,this._observedElements=new Map}return e.prototype.ngOnDestroy=function(){var e=this;this._observedElements.forEach((function(t,r){return e._cleanupObserver(r)}))},e.prototype.observe=function(e){var r=this,o=t.coerceElement(e);return new n.Observable((function(e){var t=r._observeElement(o).subscribe(e);return function(){t.unsubscribe(),r._unobserveElement(o)}}))},e.prototype._observeElement=function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new n.Subject,r=this._mutationObserverFactory.create((function(e){return t.next(e)}));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream},e.prototype._unobserveElement=function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))},e.prototype._cleanupObserver=function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),r=t.observer,n=t.stream;r&&r.disconnect(),n.complete(),this._observedElements.delete(e)}},e.ɵprov=r.ɵɵdefineInjectable({factory:function t(){return new e(r.ɵɵinject(s))},token:e,providedIn:"root"}),e.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:s}]},e}(),c=function(){function e(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new r.EventEmitter,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=t.coerceBooleanProperty(e),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debounce},set:function(e){this._debounce=t.coerceNumberProperty(e),this._subscribe()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},e.prototype.ngOnDestroy=function(){this._unsubscribe()},e.prototype._subscribe=function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(o.debounceTime(e.debounce)):t).subscribe(e.event)}))},e.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},e.decorators=[{type:r.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],e.ctorParameters=function(){return[{type:i},{type:r.ElementRef},{type:r.NgZone}]},e.propDecorators={event:[{type:r.Output,args:["cdkObserveContent"]}],disabled:[{type:r.Input,args:["cdkObserveContentDisabled"]}],debounce:[{type:r.Input}]},e}(),u=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{exports:[c],declarations:[c],providers:[s]}]}],e}();
8
+ */var s=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e}();s.ɵprov=r.ɵɵdefineInjectable({factory:function e(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}];var i=function(){function e(e){this._mutationObserverFactory=e,this._observedElements=new Map}return e.prototype.ngOnDestroy=function(){var e=this;this._observedElements.forEach((function(t,r){return e._cleanupObserver(r)}))},e.prototype.observe=function(e){var r=this,o=t.coerceElement(e);return new n.Observable((function(e){var t=r._observeElement(o).subscribe(e);return function(){t.unsubscribe(),r._unobserveElement(o)}}))},e.prototype._observeElement=function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new n.Subject,r=this._mutationObserverFactory.create((function(e){return t.next(e)}));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream},e.prototype._unobserveElement=function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))},e.prototype._cleanupObserver=function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),r=t.observer,n=t.stream;r&&r.disconnect(),n.complete(),this._observedElements.delete(e)}},e}();i.ɵprov=r.ɵɵdefineInjectable({factory:function e(){return new i(r.ɵɵinject(s))},token:i,providedIn:"root"}),i.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],i.ctorParameters=function(){return[{type:s}]};var c,u=function(){function e(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new r.EventEmitter,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=t.coerceBooleanProperty(e),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debounce},set:function(e){this._debounce=t.coerceNumberProperty(e),this._subscribe()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},e.prototype.ngOnDestroy=function(){this._unsubscribe()},e.prototype._subscribe=function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(o.debounceTime(e.debounce)):t).subscribe(e.event)}))},e.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},e}();u.decorators=[{type:r.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],u.ctorParameters=function(){return[{type:i},{type:r.ElementRef},{type:r.NgZone}]},u.propDecorators={event:[{type:r.Output,args:["cdkObserveContent"]}],disabled:[{type:r.Input,args:["cdkObserveContentDisabled"]}],debounce:[{type:r.Input}]},(c=function c(){}).decorators=[{type:r.NgModule,args:[{exports:[u],declarations:[u],providers:[s]}]}],
9
9
  /**
10
10
  * @license
11
11
  * Copyright Google LLC All Rights Reserved.
@@ -13,4 +13,4 @@
13
13
  * Use of this source code is governed by an MIT-style license that can be
14
14
  * found in the LICENSE file at https://angular.io/license
15
15
  */
16
- e.CdkObserveContent=c,e.ContentObserver=i,e.MutationObserverFactory=s,e.ObserversModule=u,Object.defineProperty(e,"__esModule",{value:!0})}));
16
+ e.CdkObserveContent=u,e.ContentObserver=i,e.MutationObserverFactory=s,e.ObserversModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));