@kato-lee/cdk 14.2.7 → 20.2.14

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 (735) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +8 -8
  3. package/_adev_assets/cdk_drag_drop.json +7215 -0
  4. package/_adev_assets/cdk_testing.json +7605 -0
  5. package/_adev_assets/cdk_testing_protractor.json +1747 -0
  6. package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -0
  7. package/_adev_assets/cdk_testing_testbed.json +1903 -0
  8. package/_index.scss +8 -8
  9. package/a11y/_index.scss +60 -102
  10. package/a11y/index.d.ts +550 -1212
  11. package/a11y-module.d.d.ts +314 -0
  12. package/a11y-prebuilt.css +1 -1
  13. package/accordion/index.d.ts +92 -140
  14. package/activedescendant-key-manager.d.d.ts +39 -0
  15. package/bidi/index.d.ts +21 -80
  16. package/bidi-module.d.d.ts +57 -0
  17. package/clipboard/index.d.ts +101 -115
  18. package/coercion/index.d.ts +45 -67
  19. package/coercion/private/index.d.ts +9 -0
  20. package/collections/index.d.ts +99 -374
  21. package/data-source.d.d.ts +43 -0
  22. package/dialog/index.d.ts +412 -469
  23. package/drag-drop/index.d.ts +1410 -1614
  24. package/fesm2022/a11y-module.mjs +951 -0
  25. package/fesm2022/a11y-module.mjs.map +1 -0
  26. package/fesm2022/a11y.mjs +538 -0
  27. package/fesm2022/a11y.mjs.map +1 -0
  28. package/fesm2022/accordion.mjs +216 -0
  29. package/fesm2022/accordion.mjs.map +1 -0
  30. package/fesm2022/activedescendant-key-manager.mjs +16 -0
  31. package/fesm2022/activedescendant-key-manager.mjs.map +1 -0
  32. package/fesm2022/array.mjs +6 -0
  33. package/fesm2022/array.mjs.map +1 -0
  34. package/fesm2022/bidi.mjs +78 -0
  35. package/fesm2022/bidi.mjs.map +1 -0
  36. package/fesm2022/breakpoints-observer.mjs +179 -0
  37. package/fesm2022/breakpoints-observer.mjs.map +1 -0
  38. package/fesm2022/cdk.mjs +7 -0
  39. package/fesm2022/cdk.mjs.map +1 -0
  40. package/{fesm2020 → fesm2022}/clipboard.mjs +210 -259
  41. package/fesm2022/clipboard.mjs.map +1 -0
  42. package/fesm2022/coercion/private.mjs +15 -0
  43. package/fesm2022/coercion/private.mjs.map +1 -0
  44. package/fesm2022/coercion.mjs +43 -0
  45. package/fesm2022/coercion.mjs.map +1 -0
  46. package/fesm2022/collections.mjs +8 -0
  47. package/fesm2022/collections.mjs.map +1 -0
  48. package/fesm2022/css-pixel-value.mjs +10 -0
  49. package/fesm2022/css-pixel-value.mjs.map +1 -0
  50. package/fesm2022/data-source.mjs +15 -0
  51. package/fesm2022/data-source.mjs.map +1 -0
  52. package/{fesm2020 → fesm2022}/dialog.mjs +874 -787
  53. package/fesm2022/dialog.mjs.map +1 -0
  54. package/fesm2022/directionality.mjs +77 -0
  55. package/fesm2022/directionality.mjs.map +1 -0
  56. package/fesm2022/dispose-view-repeater-strategy.mjs +44 -0
  57. package/fesm2022/dispose-view-repeater-strategy.mjs.map +1 -0
  58. package/{fesm2020 → fesm2022}/drag-drop.mjs +4477 -3808
  59. package/fesm2022/drag-drop.mjs.map +1 -0
  60. package/fesm2022/element.mjs +29 -0
  61. package/fesm2022/element.mjs.map +1 -0
  62. package/fesm2022/fake-event-detection.mjs +24 -0
  63. package/fesm2022/fake-event-detection.mjs.map +1 -0
  64. package/fesm2022/focus-key-manager.mjs +22 -0
  65. package/fesm2022/focus-key-manager.mjs.map +1 -0
  66. package/fesm2022/focus-monitor.mjs +622 -0
  67. package/fesm2022/focus-monitor.mjs.map +1 -0
  68. package/fesm2022/id-generator.mjs +37 -0
  69. package/fesm2022/id-generator.mjs.map +1 -0
  70. package/fesm2022/keycodes.mjs +15 -0
  71. package/fesm2022/keycodes.mjs.map +1 -0
  72. package/{fesm2015/keycodes.mjs → fesm2022/keycodes2.mjs} +122 -167
  73. package/fesm2022/keycodes2.mjs.map +1 -0
  74. package/fesm2022/layout.mjs +43 -0
  75. package/fesm2022/layout.mjs.map +1 -0
  76. package/fesm2022/list-key-manager.mjs +360 -0
  77. package/fesm2022/list-key-manager.mjs.map +1 -0
  78. package/fesm2022/listbox.mjs +928 -0
  79. package/fesm2022/listbox.mjs.map +1 -0
  80. package/fesm2022/menu.mjs +2001 -0
  81. package/fesm2022/menu.mjs.map +1 -0
  82. package/fesm2022/observers/private.mjs +124 -0
  83. package/fesm2022/observers/private.mjs.map +1 -0
  84. package/fesm2022/observers.mjs +210 -0
  85. package/fesm2022/observers.mjs.map +1 -0
  86. package/{fesm2020/overlay.mjs → fesm2022/overlay-module.mjs} +3062 -3145
  87. package/fesm2022/overlay-module.mjs.map +1 -0
  88. package/fesm2022/overlay.mjs +101 -0
  89. package/fesm2022/overlay.mjs.map +1 -0
  90. package/fesm2022/passive-listeners.mjs +31 -0
  91. package/fesm2022/passive-listeners.mjs.map +1 -0
  92. package/fesm2022/platform.mjs +73 -0
  93. package/fesm2022/platform.mjs.map +1 -0
  94. package/fesm2022/platform2.mjs +77 -0
  95. package/fesm2022/platform2.mjs.map +1 -0
  96. package/{fesm2020 → fesm2022}/portal.mjs +614 -689
  97. package/fesm2022/portal.mjs.map +1 -0
  98. package/fesm2022/private.mjs +19 -0
  99. package/fesm2022/private.mjs.map +1 -0
  100. package/fesm2022/recycle-view-repeater-strategy.mjs +156 -0
  101. package/fesm2022/recycle-view-repeater-strategy.mjs.map +1 -0
  102. package/{fesm2015 → fesm2022}/scrolling.mjs +1472 -1558
  103. package/fesm2022/scrolling.mjs.map +1 -0
  104. package/fesm2022/scrolling2.mjs +99 -0
  105. package/fesm2022/scrolling2.mjs.map +1 -0
  106. package/fesm2022/selection-model.mjs +221 -0
  107. package/fesm2022/selection-model.mjs.map +1 -0
  108. package/fesm2022/shadow-dom.mjs +49 -0
  109. package/fesm2022/shadow-dom.mjs.map +1 -0
  110. package/fesm2022/stepper.mjs +632 -0
  111. package/fesm2022/stepper.mjs.map +1 -0
  112. package/fesm2022/style-loader.mjs +47 -0
  113. package/fesm2022/style-loader.mjs.map +1 -0
  114. package/{fesm2020 → fesm2022}/table.mjs +2511 -2348
  115. package/fesm2022/table.mjs.map +1 -0
  116. package/fesm2022/test-environment.mjs +19 -0
  117. package/fesm2022/test-environment.mjs.map +1 -0
  118. package/fesm2022/testing/selenium-webdriver.mjs +353 -0
  119. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -0
  120. package/fesm2022/testing/testbed.mjs +782 -0
  121. package/fesm2022/testing/testbed.mjs.map +1 -0
  122. package/fesm2022/testing.mjs +950 -0
  123. package/fesm2022/testing.mjs.map +1 -0
  124. package/{fesm2020 → fesm2022}/text-field.mjs +432 -459
  125. package/fesm2022/text-field.mjs.map +1 -0
  126. package/fesm2022/tree-key-manager.mjs +360 -0
  127. package/fesm2022/tree-key-manager.mjs.map +1 -0
  128. package/fesm2022/tree.mjs +1800 -0
  129. package/fesm2022/tree.mjs.map +1 -0
  130. package/fesm2022/typeahead.mjs +88 -0
  131. package/fesm2022/typeahead.mjs.map +1 -0
  132. package/fesm2022/unique-selection-dispatcher.mjs +49 -0
  133. package/fesm2022/unique-selection-dispatcher.mjs.map +1 -0
  134. package/focus-key-manager.d.d.ts +39 -0
  135. package/focus-monitor.d.d.ts +208 -0
  136. package/harness-environment.d.d.ts +944 -0
  137. package/index.d.ts +6 -6
  138. package/keycodes/index.d.ts +129 -249
  139. package/layout/index.d.ts +89 -90
  140. package/list-key-manager.d.d.ts +170 -0
  141. package/listbox/index.d.ts +354 -419
  142. package/menu/index.d.ts +834 -1013
  143. package/number-property.d.d.ts +16 -0
  144. package/observers/index.d.ts +84 -109
  145. package/observers/private/index.d.ts +34 -0
  146. package/overlay/_index-deprecated.scss +13 -13
  147. package/overlay/_index.scss +193 -152
  148. package/overlay/index.d.ts +328 -1343
  149. package/overlay-module.d.d.ts +801 -0
  150. package/overlay-prebuilt.css +1 -1
  151. package/package.json +177 -232
  152. package/platform/index.d.ts +67 -106
  153. package/platform.d.d.ts +33 -0
  154. package/portal/index.d.ts +51 -328
  155. package/portal-directives.d.d.ts +211 -0
  156. package/private/index.d.ts +13 -0
  157. package/schematics/collection.json +18 -0
  158. package/schematics/index.d.ts +14 -0
  159. package/schematics/index.js +37 -0
  160. package/schematics/index.js.map +1 -0
  161. package/schematics/migration.json +15 -0
  162. package/schematics/ng-add/index.d.ts +17 -0
  163. package/schematics/ng-add/index.js +31 -0
  164. package/schematics/ng-add/index.js.map +1 -0
  165. package/schematics/ng-add/schema.d.ts +11 -0
  166. package/schematics/ng-add/schema.js +10 -0
  167. package/schematics/ng-add/schema.js.map +1 -0
  168. package/schematics/ng-add/schema.json +16 -0
  169. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +53 -0
  170. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +21 -0
  171. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +25 -0
  172. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +45 -0
  173. package/schematics/ng-generate/drag-drop/index.d.ts +11 -0
  174. package/schematics/ng-generate/drag-drop/index.js +42 -0
  175. package/schematics/ng-generate/drag-drop/index.js.map +1 -0
  176. package/schematics/ng-generate/drag-drop/schema.d.ts +10 -0
  177. package/schematics/ng-generate/drag-drop/schema.js +10 -0
  178. package/schematics/ng-generate/drag-drop/schema.js.map +1 -0
  179. package/schematics/ng-generate/drag-drop/schema.json +100 -0
  180. package/schematics/ng-update/data/attribute-selectors.d.ts +15 -0
  181. package/schematics/ng-update/data/attribute-selectors.js +12 -0
  182. package/schematics/ng-update/data/attribute-selectors.js.map +1 -0
  183. package/schematics/ng-update/data/class-names.d.ts +15 -0
  184. package/schematics/ng-update/data/class-names.js +12 -0
  185. package/schematics/ng-update/data/class-names.js.map +1 -0
  186. package/schematics/ng-update/data/constructor-checks.d.ts +15 -0
  187. package/schematics/ng-update/data/constructor-checks.js +17 -0
  188. package/schematics/ng-update/data/constructor-checks.js.map +1 -0
  189. package/schematics/ng-update/data/css-selectors.d.ts +27 -0
  190. package/schematics/ng-update/data/css-selectors.js +12 -0
  191. package/schematics/ng-update/data/css-selectors.js.map +1 -0
  192. package/schematics/ng-update/data/css-tokens.d.ts +27 -0
  193. package/schematics/ng-update/data/css-tokens.js +12 -0
  194. package/schematics/ng-update/data/css-tokens.js.map +1 -0
  195. package/schematics/ng-update/data/element-selectors.d.ts +15 -0
  196. package/schematics/ng-update/data/element-selectors.js +12 -0
  197. package/schematics/ng-update/data/element-selectors.js.map +1 -0
  198. package/schematics/ng-update/data/index.d.ts +18 -0
  199. package/schematics/ng-update/data/index.js +35 -0
  200. package/schematics/ng-update/data/index.js.map +1 -0
  201. package/schematics/ng-update/data/input-names.d.ts +22 -0
  202. package/schematics/ng-update/data/input-names.js +12 -0
  203. package/schematics/ng-update/data/input-names.js.map +1 -0
  204. package/schematics/ng-update/data/method-call-checks.d.ts +17 -0
  205. package/schematics/ng-update/data/method-call-checks.js +12 -0
  206. package/schematics/ng-update/data/method-call-checks.js.map +1 -0
  207. package/schematics/ng-update/data/output-names.d.ts +22 -0
  208. package/schematics/ng-update/data/output-names.js +12 -0
  209. package/schematics/ng-update/data/output-names.js.map +1 -0
  210. package/schematics/ng-update/data/property-names.d.ts +20 -0
  211. package/schematics/ng-update/data/property-names.js +12 -0
  212. package/schematics/ng-update/data/property-names.js.map +1 -0
  213. package/schematics/ng-update/data/symbol-removal.d.ts +17 -0
  214. package/schematics/ng-update/data/symbol-removal.js +12 -0
  215. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  216. package/schematics/ng-update/devkit-file-system.d.ts +30 -0
  217. package/schematics/ng-update/devkit-file-system.js +83 -0
  218. package/schematics/ng-update/devkit-file-system.js.map +1 -0
  219. package/schematics/ng-update/devkit-migration-rule.d.ts +24 -0
  220. package/schematics/ng-update/devkit-migration-rule.js +142 -0
  221. package/schematics/ng-update/devkit-migration-rule.js.map +1 -0
  222. package/schematics/ng-update/devkit-migration.d.ts +35 -0
  223. package/schematics/ng-update/devkit-migration.js +20 -0
  224. package/schematics/ng-update/devkit-migration.js.map +1 -0
  225. package/schematics/ng-update/find-stylesheets.d.ts +16 -0
  226. package/schematics/ng-update/find-stylesheets.js +41 -0
  227. package/schematics/ng-update/find-stylesheets.js.map +1 -0
  228. package/schematics/ng-update/html-parsing/angular.d.ts +15 -0
  229. package/schematics/ng-update/html-parsing/angular.js +51 -0
  230. package/schematics/ng-update/html-parsing/angular.js.map +1 -0
  231. package/schematics/ng-update/html-parsing/elements.d.ts +24 -0
  232. package/schematics/ng-update/html-parsing/elements.js +63 -0
  233. package/schematics/ng-update/html-parsing/elements.js.map +1 -0
  234. package/schematics/ng-update/index.d.ts +10 -0
  235. package/schematics/ng-update/index.js +29 -0
  236. package/schematics/ng-update/index.js.map +1 -0
  237. package/schematics/ng-update/migrations/attribute-selectors.d.ts +26 -0
  238. package/schematics/ng-update/migrations/attribute-selectors.js +71 -0
  239. package/schematics/ng-update/migrations/attribute-selectors.js.map +1 -0
  240. package/schematics/ng-update/migrations/class-inheritance.d.ts +26 -0
  241. package/schematics/ng-update/migrations/class-inheritance.js +58 -0
  242. package/schematics/ng-update/migrations/class-inheritance.js.map +1 -0
  243. package/schematics/ng-update/migrations/class-names.d.ts +32 -0
  244. package/schematics/ng-update/migrations/class-names.js +91 -0
  245. package/schematics/ng-update/migrations/class-names.js.map +1 -0
  246. package/schematics/ng-update/migrations/constructor-signature.d.ts +29 -0
  247. package/schematics/ng-update/migrations/constructor-signature.js +139 -0
  248. package/schematics/ng-update/migrations/constructor-signature.js.map +1 -0
  249. package/schematics/ng-update/migrations/css-selectors.d.ts +26 -0
  250. package/schematics/ng-update/migrations/css-selectors.js +75 -0
  251. package/schematics/ng-update/migrations/css-selectors.js.map +1 -0
  252. package/schematics/ng-update/migrations/css-tokens.d.ts +26 -0
  253. package/schematics/ng-update/migrations/css-tokens.js +83 -0
  254. package/schematics/ng-update/migrations/css-tokens.js.map +1 -0
  255. package/schematics/ng-update/migrations/element-selectors.d.ts +26 -0
  256. package/schematics/ng-update/migrations/element-selectors.js +66 -0
  257. package/schematics/ng-update/migrations/element-selectors.js.map +1 -0
  258. package/schematics/ng-update/migrations/input-names.d.ts +26 -0
  259. package/schematics/ng-update/migrations/input-names.js +59 -0
  260. package/schematics/ng-update/migrations/input-names.js.map +1 -0
  261. package/schematics/ng-update/migrations/method-call-arguments.d.ts +22 -0
  262. package/schematics/ng-update/migrations/method-call-arguments.js +62 -0
  263. package/schematics/ng-update/migrations/method-call-arguments.js.map +1 -0
  264. package/schematics/ng-update/migrations/misc-template.d.ts +18 -0
  265. package/schematics/ng-update/migrations/misc-template.js +25 -0
  266. package/schematics/ng-update/migrations/misc-template.js.map +1 -0
  267. package/schematics/ng-update/migrations/output-names.d.ts +22 -0
  268. package/schematics/ng-update/migrations/output-names.js +46 -0
  269. package/schematics/ng-update/migrations/output-names.js.map +1 -0
  270. package/schematics/ng-update/migrations/property-names.d.ts +22 -0
  271. package/schematics/ng-update/migrations/property-names.js +60 -0
  272. package/schematics/ng-update/migrations/property-names.js.map +1 -0
  273. package/schematics/ng-update/migrations/symbol-removal.d.ts +18 -0
  274. package/schematics/ng-update/migrations/symbol-removal.js +47 -0
  275. package/schematics/ng-update/migrations/symbol-removal.js.map +1 -0
  276. package/schematics/ng-update/public-api.d.ts +19 -0
  277. package/schematics/ng-update/public-api.js +36 -0
  278. package/schematics/ng-update/public-api.js.map +1 -0
  279. package/schematics/ng-update/typescript/base-types.d.ts +10 -0
  280. package/schematics/ng-update/typescript/base-types.js +23 -0
  281. package/schematics/ng-update/typescript/base-types.js.map +1 -0
  282. package/schematics/ng-update/typescript/imports.d.ts +18 -0
  283. package/schematics/ng-update/typescript/imports.js +53 -0
  284. package/schematics/ng-update/typescript/imports.js.map +1 -0
  285. package/schematics/ng-update/typescript/literal.d.ts +18 -0
  286. package/schematics/ng-update/typescript/literal.js +32 -0
  287. package/schematics/ng-update/typescript/literal.js.map +1 -0
  288. package/schematics/ng-update/typescript/module-specifiers.d.ts +16 -0
  289. package/schematics/ng-update/typescript/module-specifiers.js +35 -0
  290. package/schematics/ng-update/typescript/module-specifiers.js.map +1 -0
  291. package/schematics/ng-update/upgrade-data.d.ts +35 -0
  292. package/schematics/ng-update/upgrade-data.js +40 -0
  293. package/schematics/ng-update/upgrade-data.js.map +1 -0
  294. package/schematics/package.json +3 -0
  295. package/schematics/paths.d.ts +11 -0
  296. package/schematics/paths.js +16 -0
  297. package/schematics/paths.js.map +1 -0
  298. package/schematics/update-tool/component-resource-collector.d.ts +44 -0
  299. package/schematics/update-tool/component-resource-collector.js +164 -0
  300. package/schematics/update-tool/component-resource-collector.js.map +1 -0
  301. package/schematics/update-tool/file-system.d.ts +72 -0
  302. package/schematics/update-tool/file-system.js +18 -0
  303. package/schematics/update-tool/file-system.js.map +1 -0
  304. package/schematics/update-tool/index.d.ts +74 -0
  305. package/schematics/update-tool/index.js +172 -0
  306. package/schematics/update-tool/index.js.map +1 -0
  307. package/schematics/update-tool/logger.d.ts +15 -0
  308. package/schematics/update-tool/logger.js +18 -0
  309. package/schematics/update-tool/logger.js.map +1 -0
  310. package/schematics/update-tool/migration.d.ts +87 -0
  311. package/schematics/update-tool/migration.js +70 -0
  312. package/schematics/update-tool/migration.js.map +1 -0
  313. package/schematics/update-tool/public-api.d.ts +16 -0
  314. package/schematics/update-tool/public-api.js +33 -0
  315. package/schematics/update-tool/public-api.js.map +1 -0
  316. package/schematics/update-tool/target-version.d.ts +16 -0
  317. package/schematics/update-tool/target-version.js +27 -0
  318. package/schematics/update-tool/target-version.js.map +1 -0
  319. package/schematics/update-tool/update-recorder.d.ts +13 -0
  320. package/schematics/update-tool/update-recorder.js +10 -0
  321. package/schematics/update-tool/update-recorder.js.map +1 -0
  322. package/schematics/update-tool/utils/decorators.d.ts +22 -0
  323. package/schematics/update-tool/utils/decorators.js +41 -0
  324. package/schematics/update-tool/utils/decorators.js.map +1 -0
  325. package/schematics/update-tool/utils/diagnostics.d.ts +11 -0
  326. package/schematics/update-tool/utils/diagnostics.js +18 -0
  327. package/schematics/update-tool/utils/diagnostics.js.map +1 -0
  328. package/schematics/update-tool/utils/functions.d.ts +14 -0
  329. package/schematics/update-tool/utils/functions.js +20 -0
  330. package/schematics/update-tool/utils/functions.js.map +1 -0
  331. package/schematics/update-tool/utils/imports.d.ts +17 -0
  332. package/schematics/update-tool/utils/imports.js +110 -0
  333. package/schematics/update-tool/utils/imports.js.map +1 -0
  334. package/schematics/update-tool/utils/line-mappings.d.ts +21 -0
  335. package/schematics/update-tool/utils/line-mappings.js +75 -0
  336. package/schematics/update-tool/utils/line-mappings.js.map +1 -0
  337. package/schematics/update-tool/utils/parse-tsconfig.d.ts +18 -0
  338. package/schematics/update-tool/utils/parse-tsconfig.js +45 -0
  339. package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -0
  340. package/schematics/update-tool/utils/property-name.d.ts +18 -0
  341. package/schematics/update-tool/utils/property-name.js +27 -0
  342. package/schematics/update-tool/utils/property-name.js.map +1 -0
  343. package/schematics/update-tool/utils/virtual-host.d.ts +36 -0
  344. package/schematics/update-tool/utils/virtual-host.js +71 -0
  345. package/schematics/update-tool/utils/virtual-host.js.map +1 -0
  346. package/schematics/update-tool/version-changes.d.ts +32 -0
  347. package/schematics/update-tool/version-changes.js +38 -0
  348. package/schematics/update-tool/version-changes.js.map +1 -0
  349. package/schematics/utils/ast/ng-module-imports.d.ts +12 -0
  350. package/schematics/utils/ast/ng-module-imports.js +82 -0
  351. package/schematics/utils/ast/ng-module-imports.js.map +1 -0
  352. package/schematics/utils/ast.d.ts +25 -0
  353. package/schematics/utils/ast.js +79 -0
  354. package/schematics/utils/ast.js.map +1 -0
  355. package/schematics/utils/build-component.d.ts +20 -0
  356. package/schematics/utils/build-component.js +189 -0
  357. package/schematics/utils/build-component.js.map +1 -0
  358. package/schematics/utils/get-project.d.ts +13 -0
  359. package/schematics/utils/get-project.js +28 -0
  360. package/schematics/utils/get-project.js.map +1 -0
  361. package/schematics/utils/html-manipulation.d.ts +15 -0
  362. package/schematics/utils/html-manipulation.js +91 -0
  363. package/schematics/utils/html-manipulation.js.map +1 -0
  364. package/schematics/utils/index.d.ts +19 -0
  365. package/schematics/utils/index.js +36 -0
  366. package/schematics/utils/index.js.map +1 -0
  367. package/schematics/utils/parse5-element.d.ts +12 -0
  368. package/schematics/utils/parse5-element.js +30 -0
  369. package/schematics/utils/parse5-element.js.map +1 -0
  370. package/schematics/utils/project-index-file.d.ts +13 -0
  371. package/schematics/utils/project-index-file.js +43 -0
  372. package/schematics/utils/project-index-file.js.map +1 -0
  373. package/schematics/utils/project-main-file.d.ts +11 -0
  374. package/schematics/utils/project-main-file.js +25 -0
  375. package/schematics/utils/project-main-file.js.map +1 -0
  376. package/schematics/utils/project-style-file.d.ts +13 -0
  377. package/schematics/utils/project-style-file.js +42 -0
  378. package/schematics/utils/project-style-file.js.map +1 -0
  379. package/schematics/utils/project-targets.d.ts +15 -0
  380. package/schematics/utils/project-targets.js +46 -0
  381. package/schematics/utils/project-targets.js.map +1 -0
  382. package/schematics/utils/project-tsconfig-paths.d.ts +14 -0
  383. package/schematics/utils/project-tsconfig-paths.js +46 -0
  384. package/schematics/utils/project-tsconfig-paths.js.map +1 -0
  385. package/schematics/utils/schematic-options.d.ts +20 -0
  386. package/schematics/utils/schematic-options.js +89 -0
  387. package/schematics/utils/schematic-options.js.map +1 -0
  388. package/scrolling/index.d.ts +62 -849
  389. package/scrolling-module.d.d.ts +551 -0
  390. package/selection-model.d.d.ts +112 -0
  391. package/stepper/index.d.ts +236 -419
  392. package/style-loader.d.d.ts +21 -0
  393. package/table/index.d.ts +901 -1483
  394. package/testing/index.d.ts +98 -0
  395. package/testing/selenium-webdriver/index.d.ts +150 -0
  396. package/testing/testbed/index.d.ts +157 -0
  397. package/text-field/_index.scss +89 -89
  398. package/text-field/index.d.ts +154 -203
  399. package/text-field-prebuilt.css +1 -1
  400. package/tree/index.d.ts +720 -593
  401. package/tree-key-manager-strategy.d.d.ts +116 -0
  402. package/unique-selection-dispatcher.d.d.ts +33 -0
  403. package/view-repeater.d.d.ts +88 -0
  404. package/a11y/_index.import.scss +0 -2
  405. package/esm2020/a11y/a11y-module.mjs +0 -32
  406. package/esm2020/a11y/a11y_public_index.mjs +0 -5
  407. package/esm2020/a11y/aria-describer/aria-describer.mjs +0 -232
  408. package/esm2020/a11y/aria-describer/aria-reference.mjs +0 -44
  409. package/esm2020/a11y/fake-event-detection.mjs +0 -31
  410. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +0 -451
  411. package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +0 -9
  412. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +0 -53
  413. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +0 -51
  414. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +0 -61
  415. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +0 -11
  416. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +0 -53
  417. package/esm2020/a11y/focus-trap/focus-trap.mjs +0 -402
  418. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +0 -109
  419. package/esm2020/a11y/index.mjs +0 -9
  420. package/esm2020/a11y/input-modality/input-modality-detector.mjs +0 -176
  421. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +0 -238
  422. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +0 -20
  423. package/esm2020/a11y/key-manager/focus-key-manager.mjs +0 -29
  424. package/esm2020/a11y/key-manager/list-key-manager.mjs +0 -321
  425. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +0 -19
  426. package/esm2020/a11y/live-announcer/live-announcer.mjs +0 -178
  427. package/esm2020/a11y/public-api.mjs +0 -26
  428. package/esm2020/accordion/accordion-item.mjs +0 -167
  429. package/esm2020/accordion/accordion-module.mjs +0 -24
  430. package/esm2020/accordion/accordion.mjs +0 -70
  431. package/esm2020/accordion/accordion_public_index.mjs +0 -5
  432. package/esm2020/accordion/index.mjs +0 -9
  433. package/esm2020/accordion/public-api.mjs +0 -11
  434. package/esm2020/bidi/bidi-module.mjs +0 -23
  435. package/esm2020/bidi/bidi_public_index.mjs +0 -5
  436. package/esm2020/bidi/dir-document-token.mjs +0 -33
  437. package/esm2020/bidi/dir.mjs +0 -69
  438. package/esm2020/bidi/directionality.mjs +0 -52
  439. package/esm2020/bidi/index.mjs +0 -9
  440. package/esm2020/bidi/public-api.mjs +0 -12
  441. package/esm2020/clipboard/clipboard-module.mjs +0 -23
  442. package/esm2020/clipboard/clipboard.mjs +0 -53
  443. package/esm2020/clipboard/clipboard_public_index.mjs +0 -5
  444. package/esm2020/clipboard/copy-to-clipboard.mjs +0 -99
  445. package/esm2020/clipboard/index.mjs +0 -9
  446. package/esm2020/clipboard/pending-copy.mjs +0 -69
  447. package/esm2020/clipboard/public-api.mjs +0 -12
  448. package/esm2020/coercion/array.mjs +0 -11
  449. package/esm2020/coercion/boolean-property.mjs +0 -12
  450. package/esm2020/coercion/css-pixel-value.mjs +0 -15
  451. package/esm2020/coercion/element.mjs +0 -16
  452. package/esm2020/coercion/index.mjs +0 -9
  453. package/esm2020/coercion/number-property.mjs +0 -21
  454. package/esm2020/coercion/public-api.mjs +0 -14
  455. package/esm2020/coercion/string-array.mjs +0 -38
  456. package/esm2020/collections/array-data-source.mjs +0 -21
  457. package/esm2020/collections/collection-viewer.mjs +0 -9
  458. package/esm2020/collections/collections_public_index.mjs +0 -5
  459. package/esm2020/collections/data-source.mjs +0 -19
  460. package/esm2020/collections/dispose-view-repeater-strategy.mjs +0 -47
  461. package/esm2020/collections/index.mjs +0 -9
  462. package/esm2020/collections/public-api.mjs +0 -17
  463. package/esm2020/collections/recycle-view-repeater-strategy.mjs +0 -128
  464. package/esm2020/collections/selection-model.mjs +0 -216
  465. package/esm2020/collections/tree-adapter.mjs +0 -9
  466. package/esm2020/collections/unique-selection-dispatcher.mjs +0 -55
  467. package/esm2020/collections/view-repeater.mjs +0 -14
  468. package/esm2020/dialog/dialog-config.mjs +0 -63
  469. package/esm2020/dialog/dialog-container.mjs +0 -278
  470. package/esm2020/dialog/dialog-injectors.mjs +0 -26
  471. package/esm2020/dialog/dialog-module.mjs +0 -42
  472. package/esm2020/dialog/dialog-ref.mjs +0 -76
  473. package/esm2020/dialog/dialog.mjs +0 -301
  474. package/esm2020/dialog/dialog_public_index.mjs +0 -5
  475. package/esm2020/dialog/index.mjs +0 -9
  476. package/esm2020/dialog/public-api.mjs +0 -14
  477. package/esm2020/drag-drop/directives/assertions.mjs +0 -18
  478. package/esm2020/drag-drop/directives/config.mjs +0 -14
  479. package/esm2020/drag-drop/directives/drag-handle.mjs +0 -66
  480. package/esm2020/drag-drop/directives/drag-placeholder.mjs +0 -36
  481. package/esm2020/drag-drop/directives/drag-preview.mjs +0 -47
  482. package/esm2020/drag-drop/directives/drag.mjs +0 -487
  483. package/esm2020/drag-drop/directives/drop-list-group.mjs +0 -53
  484. package/esm2020/drag-drop/directives/drop-list.mjs +0 -345
  485. package/esm2020/drag-drop/dom/client-rect.mjs +0 -64
  486. package/esm2020/drag-drop/dom/clone-node.mjs +0 -65
  487. package/esm2020/drag-drop/dom/parent-position-tracker.mjs +0 -76
  488. package/esm2020/drag-drop/dom/styling.mjs +0 -69
  489. package/esm2020/drag-drop/dom/transition-duration.mjs +0 -36
  490. package/esm2020/drag-drop/drag-drop-module.mjs +0 -57
  491. package/esm2020/drag-drop/drag-drop-registry.mjs +0 -231
  492. package/esm2020/drag-drop/drag-drop.mjs +0 -57
  493. package/esm2020/drag-drop/drag-drop_public_index.mjs +0 -5
  494. package/esm2020/drag-drop/drag-events.mjs +0 -9
  495. package/esm2020/drag-drop/drag-parent.mjs +0 -16
  496. package/esm2020/drag-drop/drag-ref.mjs +0 -1146
  497. package/esm2020/drag-drop/drag-utils.mjs +0 -60
  498. package/esm2020/drag-drop/drop-list-ref.mjs +0 -577
  499. package/esm2020/drag-drop/index.mjs +0 -9
  500. package/esm2020/drag-drop/public-api.mjs +0 -23
  501. package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +0 -9
  502. package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +0 -341
  503. package/esm2020/index.mjs +0 -9
  504. package/esm2020/keycodes/index.mjs +0 -9
  505. package/esm2020/keycodes/keycodes.mjs +0 -127
  506. package/esm2020/keycodes/keycodes_public_index.mjs +0 -5
  507. package/esm2020/keycodes/modifiers.mjs +0 -18
  508. package/esm2020/keycodes/public-api.mjs +0 -10
  509. package/esm2020/layout/breakpoints-observer.mjs +0 -105
  510. package/esm2020/layout/breakpoints.mjs +0 -29
  511. package/esm2020/layout/index.mjs +0 -9
  512. package/esm2020/layout/layout-module.mjs +0 -19
  513. package/esm2020/layout/layout_public_index.mjs +0 -5
  514. package/esm2020/layout/media-matcher.mjs +0 -85
  515. package/esm2020/layout/public-api.mjs +0 -12
  516. package/esm2020/listbox/index.mjs +0 -9
  517. package/esm2020/listbox/listbox-module.mjs +0 -24
  518. package/esm2020/listbox/listbox.mjs +0 -872
  519. package/esm2020/listbox/listbox_public_index.mjs +0 -5
  520. package/esm2020/listbox/public-api.mjs +0 -10
  521. package/esm2020/menu/context-menu-trigger.mjs +0 -212
  522. package/esm2020/menu/index.mjs +0 -9
  523. package/esm2020/menu/menu-aim.mjs +0 -203
  524. package/esm2020/menu/menu-bar.mjs +0 -133
  525. package/esm2020/menu/menu-base.mjs +0 -187
  526. package/esm2020/menu/menu-errors.mjs +0 -22
  527. package/esm2020/menu/menu-group.mjs +0 -30
  528. package/esm2020/menu/menu-interface.mjs +0 -11
  529. package/esm2020/menu/menu-item-checkbox.mjs +0 -49
  530. package/esm2020/menu/menu-item-radio.mjs +0 -71
  531. package/esm2020/menu/menu-item-selectable.mjs +0 -42
  532. package/esm2020/menu/menu-item.mjs +0 -267
  533. package/esm2020/menu/menu-module.mjs +0 -62
  534. package/esm2020/menu/menu-stack.mjs +0 -156
  535. package/esm2020/menu/menu-trigger-base.mjs +0 -107
  536. package/esm2020/menu/menu-trigger.mjs +0 -291
  537. package/esm2020/menu/menu.mjs +0 -134
  538. package/esm2020/menu/menu_public_index.mjs +0 -5
  539. package/esm2020/menu/pointer-focus-tracker.mjs +0 -51
  540. package/esm2020/menu/public-api.mjs +0 -24
  541. package/esm2020/observers/index.mjs +0 -9
  542. package/esm2020/observers/observe-content.mjs +0 -187
  543. package/esm2020/observers/observers_public_index.mjs +0 -5
  544. package/esm2020/observers/public-api.mjs +0 -9
  545. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +0 -52
  546. package/esm2020/overlay/dispatchers/index.mjs +0 -10
  547. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +0 -81
  548. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +0 -138
  549. package/esm2020/overlay/fullscreen-overlay-container.mjs +0 -94
  550. package/esm2020/overlay/index.mjs +0 -9
  551. package/esm2020/overlay/overlay-config.mjs +0 -45
  552. package/esm2020/overlay/overlay-container.mjs +0 -81
  553. package/esm2020/overlay/overlay-directives.mjs +0 -427
  554. package/esm2020/overlay/overlay-module.mjs +0 -29
  555. package/esm2020/overlay/overlay-ref.mjs +0 -427
  556. package/esm2020/overlay/overlay-reference.mjs +0 -9
  557. package/esm2020/overlay/overlay.mjs +0 -125
  558. package/esm2020/overlay/overlay_public_index.mjs +0 -5
  559. package/esm2020/overlay/position/connected-position.mjs +0 -88
  560. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +0 -985
  561. package/esm2020/overlay/position/global-position-strategy.mjs +0 -237
  562. package/esm2020/overlay/position/overlay-position-builder.mjs +0 -50
  563. package/esm2020/overlay/position/position-strategy.mjs +0 -9
  564. package/esm2020/overlay/position/scroll-clip.mjs +0 -40
  565. package/esm2020/overlay/public-api.mjs +0 -22
  566. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +0 -80
  567. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +0 -61
  568. package/esm2020/overlay/scroll/index.mjs +0 -14
  569. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +0 -17
  570. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +0 -61
  571. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +0 -55
  572. package/esm2020/overlay/scroll/scroll-strategy.mjs +0 -14
  573. package/esm2020/platform/features/input-types.mjs +0 -59
  574. package/esm2020/platform/features/passive-listeners.mjs +0 -36
  575. package/esm2020/platform/features/scrolling.mjs +0 -85
  576. package/esm2020/platform/features/shadow-dom.mjs +0 -54
  577. package/esm2020/platform/features/test-environment.mjs +0 -24
  578. package/esm2020/platform/index.mjs +0 -9
  579. package/esm2020/platform/platform-module.mjs +0 -19
  580. package/esm2020/platform/platform.mjs +0 -85
  581. package/esm2020/platform/platform_public_index.mjs +0 -5
  582. package/esm2020/platform/public-api.mjs +0 -15
  583. package/esm2020/portal/dom-portal-outlet.mjs +0 -158
  584. package/esm2020/portal/index.mjs +0 -9
  585. package/esm2020/portal/portal-directives.mjs +0 -246
  586. package/esm2020/portal/portal-errors.mjs +0 -51
  587. package/esm2020/portal/portal-injector.mjs +0 -28
  588. package/esm2020/portal/portal.mjs +0 -188
  589. package/esm2020/portal/portal_public_index.mjs +0 -5
  590. package/esm2020/portal/public-api.mjs +0 -12
  591. package/esm2020/public-api.mjs +0 -9
  592. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +0 -217
  593. package/esm2020/scrolling/index.mjs +0 -9
  594. package/esm2020/scrolling/public-api.mjs +0 -20
  595. package/esm2020/scrolling/scroll-dispatcher.mjs +0 -163
  596. package/esm2020/scrolling/scrollable.mjs +0 -176
  597. package/esm2020/scrolling/scrolling-module.mjs +0 -67
  598. package/esm2020/scrolling/scrolling_public_index.mjs +0 -5
  599. package/esm2020/scrolling/viewport-ruler.mjs +0 -146
  600. package/esm2020/scrolling/virtual-for-of.mjs +0 -298
  601. package/esm2020/scrolling/virtual-scroll-repeater.mjs +0 -9
  602. package/esm2020/scrolling/virtual-scroll-strategy.mjs +0 -11
  603. package/esm2020/scrolling/virtual-scroll-viewport.mjs +0 -437
  604. package/esm2020/scrolling/virtual-scrollable-element.mjs +0 -41
  605. package/esm2020/scrolling/virtual-scrollable-window.mjs +0 -40
  606. package/esm2020/scrolling/virtual-scrollable.mjs +0 -40
  607. package/esm2020/stepper/index.mjs +0 -9
  608. package/esm2020/stepper/public-api.mjs +0 -13
  609. package/esm2020/stepper/step-header.mjs +0 -30
  610. package/esm2020/stepper/step-label.mjs +0 -23
  611. package/esm2020/stepper/stepper-button.mjs +0 -56
  612. package/esm2020/stepper/stepper-module.mjs +0 -40
  613. package/esm2020/stepper/stepper.mjs +0 -458
  614. package/esm2020/stepper/stepper_public_index.mjs +0 -5
  615. package/esm2020/table/can-stick.mjs +0 -44
  616. package/esm2020/table/cell.mjs +0 -217
  617. package/esm2020/table/coalesced-style-scheduler.mjs +0 -91
  618. package/esm2020/table/index.mjs +0 -9
  619. package/esm2020/table/public-api.mjs +0 -20
  620. package/esm2020/table/row.mjs +0 -262
  621. package/esm2020/table/sticky-position-listener.mjs +0 -11
  622. package/esm2020/table/sticky-styler.mjs +0 -345
  623. package/esm2020/table/table-errors.mjs +0 -67
  624. package/esm2020/table/table-module.mjs +0 -94
  625. package/esm2020/table/table.mjs +0 -1065
  626. package/esm2020/table/table_public_index.mjs +0 -5
  627. package/esm2020/table/text-column.mjs +0 -153
  628. package/esm2020/table/tokens.mjs +0 -16
  629. package/esm2020/text-field/autofill.mjs +0 -113
  630. package/esm2020/text-field/autosize.mjs +0 -309
  631. package/esm2020/text-field/index.mjs +0 -9
  632. package/esm2020/text-field/public-api.mjs +0 -11
  633. package/esm2020/text-field/text-field-module.mjs +0 -24
  634. package/esm2020/text-field/text-field_public_index.mjs +0 -5
  635. package/esm2020/tree/control/base-tree-control.mjs +0 -57
  636. package/esm2020/tree/control/flat-tree-control.mjs +0 -51
  637. package/esm2020/tree/control/nested-tree-control.mjs +0 -58
  638. package/esm2020/tree/control/tree-control.mjs +0 -2
  639. package/esm2020/tree/index.mjs +0 -9
  640. package/esm2020/tree/nested-node.mjs +0 -112
  641. package/esm2020/tree/node.mjs +0 -35
  642. package/esm2020/tree/outlet.mjs +0 -39
  643. package/esm2020/tree/padding.mjs +0 -131
  644. package/esm2020/tree/public-api.mjs +0 -20
  645. package/esm2020/tree/toggle.mjs +0 -50
  646. package/esm2020/tree/tree-errors.mjs +0 -43
  647. package/esm2020/tree/tree-module.mjs +0 -49
  648. package/esm2020/tree/tree.mjs +0 -347
  649. package/esm2020/tree/tree_public_index.mjs +0 -5
  650. package/esm2020/version.mjs +0 -11
  651. package/fesm2015/a11y.mjs +0 -2473
  652. package/fesm2015/a11y.mjs.map +0 -1
  653. package/fesm2015/accordion.mjs +0 -414
  654. package/fesm2015/accordion.mjs.map +0 -1
  655. package/fesm2015/bidi.mjs +0 -194
  656. package/fesm2015/bidi.mjs.map +0 -1
  657. package/fesm2015/cdk.mjs +0 -30
  658. package/fesm2015/cdk.mjs.map +0 -1
  659. package/fesm2015/clipboard.mjs +0 -263
  660. package/fesm2015/clipboard.mjs.map +0 -1
  661. package/fesm2015/coercion.mjs +0 -132
  662. package/fesm2015/coercion.mjs.map +0 -1
  663. package/fesm2015/collections.mjs +0 -519
  664. package/fesm2015/collections.mjs.map +0 -1
  665. package/fesm2015/dialog.mjs +0 -1050
  666. package/fesm2015/dialog.mjs.map +0 -1
  667. package/fesm2015/drag-drop.mjs +0 -3812
  668. package/fesm2015/drag-drop.mjs.map +0 -1
  669. package/fesm2015/keycodes.mjs.map +0 -1
  670. package/fesm2015/layout.mjs +0 -337
  671. package/fesm2015/layout.mjs.map +0 -1
  672. package/fesm2015/listbox.mjs +0 -1200
  673. package/fesm2015/listbox.mjs.map +0 -1
  674. package/fesm2015/menu.mjs +0 -2719
  675. package/fesm2015/menu.mjs.map +0 -1
  676. package/fesm2015/observers.mjs +0 -326
  677. package/fesm2015/observers.mjs.map +0 -1
  678. package/fesm2015/overlay.mjs +0 -3137
  679. package/fesm2015/overlay.mjs.map +0 -1
  680. package/fesm2015/platform.mjs +0 -385
  681. package/fesm2015/platform.mjs.map +0 -1
  682. package/fesm2015/portal.mjs +0 -691
  683. package/fesm2015/portal.mjs.map +0 -1
  684. package/fesm2015/scrolling.mjs.map +0 -1
  685. package/fesm2015/stepper.mjs +0 -989
  686. package/fesm2015/stepper.mjs.map +0 -1
  687. package/fesm2015/table.mjs +0 -2356
  688. package/fesm2015/table.mjs.map +0 -1
  689. package/fesm2015/testing.mjs +0 -833
  690. package/fesm2015/testing.mjs.map +0 -1
  691. package/fesm2015/text-field.mjs +0 -461
  692. package/fesm2015/text-field.mjs.map +0 -1
  693. package/fesm2015/tree.mjs +0 -1303
  694. package/fesm2015/tree.mjs.map +0 -1
  695. package/fesm2020/a11y.mjs +0 -2476
  696. package/fesm2020/a11y.mjs.map +0 -1
  697. package/fesm2020/accordion.mjs +0 -414
  698. package/fesm2020/accordion.mjs.map +0 -1
  699. package/fesm2020/bidi.mjs +0 -192
  700. package/fesm2020/bidi.mjs.map +0 -1
  701. package/fesm2020/cdk.mjs +0 -30
  702. package/fesm2020/cdk.mjs.map +0 -1
  703. package/fesm2020/clipboard.mjs.map +0 -1
  704. package/fesm2020/coercion.mjs +0 -132
  705. package/fesm2020/coercion.mjs.map +0 -1
  706. package/fesm2020/collections.mjs +0 -535
  707. package/fesm2020/collections.mjs.map +0 -1
  708. package/fesm2020/dialog.mjs.map +0 -1
  709. package/fesm2020/drag-drop.mjs.map +0 -1
  710. package/fesm2020/keycodes.mjs +0 -167
  711. package/fesm2020/keycodes.mjs.map +0 -1
  712. package/fesm2020/layout.mjs +0 -337
  713. package/fesm2020/layout.mjs.map +0 -1
  714. package/fesm2020/listbox.mjs +0 -1164
  715. package/fesm2020/listbox.mjs.map +0 -1
  716. package/fesm2020/menu.mjs +0 -2615
  717. package/fesm2020/menu.mjs.map +0 -1
  718. package/fesm2020/observers.mjs +0 -325
  719. package/fesm2020/observers.mjs.map +0 -1
  720. package/fesm2020/overlay.mjs.map +0 -1
  721. package/fesm2020/platform.mjs +0 -383
  722. package/fesm2020/platform.mjs.map +0 -1
  723. package/fesm2020/portal.mjs.map +0 -1
  724. package/fesm2020/scrolling.mjs +0 -1591
  725. package/fesm2020/scrolling.mjs.map +0 -1
  726. package/fesm2020/stepper.mjs +0 -985
  727. package/fesm2020/stepper.mjs.map +0 -1
  728. package/fesm2020/table.mjs.map +0 -1
  729. package/fesm2020/testing.mjs +0 -797
  730. package/fesm2020/testing.mjs.map +0 -1
  731. package/fesm2020/text-field.mjs.map +0 -1
  732. package/fesm2020/tree.mjs +0 -1305
  733. package/fesm2020/tree.mjs.map +0 -1
  734. package/overlay/_index.import.scss +0 -13
  735. package/text-field/_index.import.scss +0 -2
@@ -1,459 +1,432 @@
1
- import * as i1 from '@kato-lee/cdk/platform';
2
- import { normalizePassiveListenerOptions } from '@kato-lee/cdk/platform';
3
- import * as i0 from '@angular/core';
4
- import { Injectable, EventEmitter, Directive, Output, Optional, Inject, Input, NgModule } from '@angular/core';
5
- import { coerceElement, coerceNumberProperty, coerceBooleanProperty } from '@kato-lee/cdk/coercion';
6
- import { EMPTY, Subject, fromEvent } from 'rxjs';
7
- import { auditTime, takeUntil } from 'rxjs/operators';
8
- import { DOCUMENT } from '@angular/common';
9
-
10
- /**
11
- * @license
12
- * Copyright Google LLC All Rights Reserved.
13
- *
14
- * Use of this source code is governed by an MIT-style license that can be
15
- * found in the LICENSE file at https://angular.io/license
16
- */
17
- /** Options to pass to the animationstart listener. */
18
- const listenerOptions = normalizePassiveListenerOptions({ passive: true });
19
- /**
20
- * An injectable service that can be used to monitor the autofill state of an input.
21
- * Based on the following blog post:
22
- * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
23
- */
24
- class AutofillMonitor {
25
- constructor(_platform, _ngZone) {
26
- this._platform = _platform;
27
- this._ngZone = _ngZone;
28
- this._monitoredElements = new Map();
29
- }
30
- monitor(elementOrRef) {
31
- if (!this._platform.isBrowser) {
32
- return EMPTY;
33
- }
34
- const element = coerceElement(elementOrRef);
35
- const info = this._monitoredElements.get(element);
36
- if (info) {
37
- return info.subject;
38
- }
39
- const result = new Subject();
40
- const cssClass = 'cdk-text-field-autofilled';
41
- const listener = ((event) => {
42
- // Animation events fire on initial element render, we check for the presence of the autofill
43
- // CSS class to make sure this is a real change in state, not just the initial render before
44
- // we fire off events.
45
- if (event.animationName === 'cdk-text-field-autofill-start' &&
46
- !element.classList.contains(cssClass)) {
47
- element.classList.add(cssClass);
48
- this._ngZone.run(() => result.next({ target: event.target, isAutofilled: true }));
49
- }
50
- else if (event.animationName === 'cdk-text-field-autofill-end' &&
51
- element.classList.contains(cssClass)) {
52
- element.classList.remove(cssClass);
53
- this._ngZone.run(() => result.next({ target: event.target, isAutofilled: false }));
54
- }
55
- });
56
- this._ngZone.runOutsideAngular(() => {
57
- element.addEventListener('animationstart', listener, listenerOptions);
58
- element.classList.add('cdk-text-field-autofill-monitored');
59
- });
60
- this._monitoredElements.set(element, {
61
- subject: result,
62
- unlisten: () => {
63
- element.removeEventListener('animationstart', listener, listenerOptions);
64
- },
65
- });
66
- return result;
67
- }
68
- stopMonitoring(elementOrRef) {
69
- const element = coerceElement(elementOrRef);
70
- const info = this._monitoredElements.get(element);
71
- if (info) {
72
- info.unlisten();
73
- info.subject.complete();
74
- element.classList.remove('cdk-text-field-autofill-monitored');
75
- element.classList.remove('cdk-text-field-autofilled');
76
- this._monitoredElements.delete(element);
77
- }
78
- }
79
- ngOnDestroy() {
80
- this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
81
- }
82
- }
83
- AutofillMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: AutofillMonitor, deps: [{ token: i1.Platform }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
84
- AutofillMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: AutofillMonitor, providedIn: 'root' });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: AutofillMonitor, decorators: [{
86
- type: Injectable,
87
- args: [{ providedIn: 'root' }]
88
- }], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }]; } });
89
- /** A directive that can be used to monitor the autofill state of an input. */
90
- class CdkAutofill {
91
- constructor(_elementRef, _autofillMonitor) {
92
- this._elementRef = _elementRef;
93
- this._autofillMonitor = _autofillMonitor;
94
- /** Emits when the autofill state of the element changes. */
95
- this.cdkAutofill = new EventEmitter();
96
- }
97
- ngOnInit() {
98
- this._autofillMonitor
99
- .monitor(this._elementRef)
100
- .subscribe(event => this.cdkAutofill.emit(event));
101
- }
102
- ngOnDestroy() {
103
- this._autofillMonitor.stopMonitoring(this._elementRef);
104
- }
105
- }
106
- CdkAutofill.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CdkAutofill, deps: [{ token: i0.ElementRef }, { token: AutofillMonitor }], target: i0.ɵɵFactoryTarget.Directive });
107
- CdkAutofill.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: CdkAutofill, selector: "[cdkAutofill]", outputs: { cdkAutofill: "cdkAutofill" }, ngImport: i0 });
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CdkAutofill, decorators: [{
109
- type: Directive,
110
- args: [{
111
- selector: '[cdkAutofill]',
112
- }]
113
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AutofillMonitor }]; }, propDecorators: { cdkAutofill: [{
114
- type: Output
115
- }] } });
116
-
117
- /**
118
- * @license
119
- * Copyright Google LLC All Rights Reserved.
120
- *
121
- * Use of this source code is governed by an MIT-style license that can be
122
- * found in the LICENSE file at https://angular.io/license
123
- */
124
- /** Directive to automatically resize a textarea to fit its content. */
125
- class CdkTextareaAutosize {
126
- constructor(_elementRef, _platform, _ngZone,
127
- /** @breaking-change 11.0.0 make document required */
128
- document) {
129
- this._elementRef = _elementRef;
130
- this._platform = _platform;
131
- this._ngZone = _ngZone;
132
- this._destroyed = new Subject();
133
- this._enabled = true;
134
- /**
135
- * Value of minRows as of last resize. If the minRows has decreased, the
136
- * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
137
- * does not have the same problem because it does not affect the textarea's scrollHeight.
138
- */
139
- this._previousMinRows = -1;
140
- this._isViewInited = false;
141
- /** Handles `focus` and `blur` events. */
142
- this._handleFocusEvent = (event) => {
143
- this._hasFocus = event.type === 'focus';
144
- };
145
- this._document = document;
146
- this._textareaElement = this._elementRef.nativeElement;
147
- }
148
- /** Minimum amount of rows in the textarea. */
149
- get minRows() {
150
- return this._minRows;
151
- }
152
- set minRows(value) {
153
- this._minRows = coerceNumberProperty(value);
154
- this._setMinHeight();
155
- }
156
- /** Maximum amount of rows in the textarea. */
157
- get maxRows() {
158
- return this._maxRows;
159
- }
160
- set maxRows(value) {
161
- this._maxRows = coerceNumberProperty(value);
162
- this._setMaxHeight();
163
- }
164
- /** Whether autosizing is enabled or not */
165
- get enabled() {
166
- return this._enabled;
167
- }
168
- set enabled(value) {
169
- value = coerceBooleanProperty(value);
170
- // Only act if the actual value changed. This specifically helps to not run
171
- // resizeToFitContent too early (i.e. before ngAfterViewInit)
172
- if (this._enabled !== value) {
173
- (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
174
- }
175
- }
176
- get placeholder() {
177
- return this._textareaElement.placeholder;
178
- }
179
- set placeholder(value) {
180
- this._cachedPlaceholderHeight = undefined;
181
- if (value) {
182
- this._textareaElement.setAttribute('placeholder', value);
183
- }
184
- else {
185
- this._textareaElement.removeAttribute('placeholder');
186
- }
187
- this._cacheTextareaPlaceholderHeight();
188
- }
189
- /** Sets the minimum height of the textarea as determined by minRows. */
190
- _setMinHeight() {
191
- const minHeight = this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;
192
- if (minHeight) {
193
- this._textareaElement.style.minHeight = minHeight;
194
- }
195
- }
196
- /** Sets the maximum height of the textarea as determined by maxRows. */
197
- _setMaxHeight() {
198
- const maxHeight = this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;
199
- if (maxHeight) {
200
- this._textareaElement.style.maxHeight = maxHeight;
201
- }
202
- }
203
- ngAfterViewInit() {
204
- if (this._platform.isBrowser) {
205
- // Remember the height which we started with in case autosizing is disabled
206
- this._initialHeight = this._textareaElement.style.height;
207
- this.resizeToFitContent();
208
- this._ngZone.runOutsideAngular(() => {
209
- const window = this._getWindow();
210
- fromEvent(window, 'resize')
211
- .pipe(auditTime(16), takeUntil(this._destroyed))
212
- .subscribe(() => this.resizeToFitContent(true));
213
- this._textareaElement.addEventListener('focus', this._handleFocusEvent);
214
- this._textareaElement.addEventListener('blur', this._handleFocusEvent);
215
- });
216
- this._isViewInited = true;
217
- this.resizeToFitContent(true);
218
- }
219
- }
220
- ngOnDestroy() {
221
- this._textareaElement.removeEventListener('focus', this._handleFocusEvent);
222
- this._textareaElement.removeEventListener('blur', this._handleFocusEvent);
223
- this._destroyed.next();
224
- this._destroyed.complete();
225
- }
226
- /**
227
- * Cache the height of a single-row textarea if it has not already been cached.
228
- *
229
- * We need to know how large a single "row" of a textarea is in order to apply minRows and
230
- * maxRows. For the initial version, we will assume that the height of a single line in the
231
- * textarea does not ever change.
232
- */
233
- _cacheTextareaLineHeight() {
234
- if (this._cachedLineHeight) {
235
- return;
236
- }
237
- // Use a clone element because we have to override some styles.
238
- let textareaClone = this._textareaElement.cloneNode(false);
239
- textareaClone.rows = 1;
240
- // Use `position: absolute` so that this doesn't cause a browser layout and use
241
- // `visibility: hidden` so that nothing is rendered. Clear any other styles that
242
- // would affect the height.
243
- textareaClone.style.position = 'absolute';
244
- textareaClone.style.visibility = 'hidden';
245
- textareaClone.style.border = 'none';
246
- textareaClone.style.padding = '0';
247
- textareaClone.style.height = '';
248
- textareaClone.style.minHeight = '';
249
- textareaClone.style.maxHeight = '';
250
- // In Firefox it happens that textarea elements are always bigger than the specified amount
251
- // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
252
- // As a workaround that removes the extra space for the scrollbar, we can just set overflow
253
- // to hidden. This ensures that there is no invalid calculation of the line height.
254
- // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654
255
- textareaClone.style.overflow = 'hidden';
256
- this._textareaElement.parentNode.appendChild(textareaClone);
257
- this._cachedLineHeight = textareaClone.clientHeight;
258
- textareaClone.remove();
259
- // Min and max heights have to be re-calculated if the cached line height changes
260
- this._setMinHeight();
261
- this._setMaxHeight();
262
- }
263
- _measureScrollHeight() {
264
- const element = this._textareaElement;
265
- const previousMargin = element.style.marginBottom || '';
266
- const isFirefox = this._platform.FIREFOX;
267
- const needsMarginFiller = isFirefox && this._hasFocus;
268
- const measuringClass = isFirefox
269
- ? 'cdk-textarea-autosize-measuring-firefox'
270
- : 'cdk-textarea-autosize-measuring';
271
- // In some cases the page might move around while we're measuring the `textarea` on Firefox. We
272
- // work around it by assigning a temporary margin with the same height as the `textarea` so that
273
- // it occupies the same amount of space. See #23233.
274
- if (needsMarginFiller) {
275
- element.style.marginBottom = `${element.clientHeight}px`;
276
- }
277
- // Reset the textarea height to auto in order to shrink back to its default size.
278
- // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
279
- element.classList.add(measuringClass);
280
- // The measuring class includes a 2px padding to workaround an issue with Chrome,
281
- // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
282
- const scrollHeight = element.scrollHeight - 4;
283
- element.classList.remove(measuringClass);
284
- if (needsMarginFiller) {
285
- element.style.marginBottom = previousMargin;
286
- }
287
- return scrollHeight;
288
- }
289
- _cacheTextareaPlaceholderHeight() {
290
- if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {
291
- return;
292
- }
293
- if (!this.placeholder) {
294
- this._cachedPlaceholderHeight = 0;
295
- return;
296
- }
297
- const value = this._textareaElement.value;
298
- this._textareaElement.value = this._textareaElement.placeholder;
299
- this._cachedPlaceholderHeight = this._measureScrollHeight();
300
- this._textareaElement.value = value;
301
- }
302
- ngDoCheck() {
303
- if (this._platform.isBrowser) {
304
- this.resizeToFitContent();
305
- }
306
- }
307
- /**
308
- * Resize the textarea to fit its content.
309
- * @param force Whether to force a height recalculation. By default the height will be
310
- * recalculated only if the value changed since the last call.
311
- */
312
- resizeToFitContent(force = false) {
313
- // If autosizing is disabled, just skip everything else
314
- if (!this._enabled) {
315
- return;
316
- }
317
- this._cacheTextareaLineHeight();
318
- this._cacheTextareaPlaceholderHeight();
319
- // If we haven't determined the line-height yet, we know we're still hidden and there's no point
320
- // in checking the height of the textarea.
321
- if (!this._cachedLineHeight) {
322
- return;
323
- }
324
- const textarea = this._elementRef.nativeElement;
325
- const value = textarea.value;
326
- // Only resize if the value or minRows have changed since these calculations can be expensive.
327
- if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
328
- return;
329
- }
330
- const scrollHeight = this._measureScrollHeight();
331
- const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);
332
- // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
333
- textarea.style.height = `${height}px`;
334
- this._ngZone.runOutsideAngular(() => {
335
- if (typeof requestAnimationFrame !== 'undefined') {
336
- requestAnimationFrame(() => this._scrollToCaretPosition(textarea));
337
- }
338
- else {
339
- setTimeout(() => this._scrollToCaretPosition(textarea));
340
- }
341
- });
342
- this._previousValue = value;
343
- this._previousMinRows = this._minRows;
344
- }
345
- /**
346
- * Resets the textarea to its original size
347
- */
348
- reset() {
349
- // Do not try to change the textarea, if the initialHeight has not been determined yet
350
- // This might potentially remove styles when reset() is called before ngAfterViewInit
351
- if (this._initialHeight !== undefined) {
352
- this._textareaElement.style.height = this._initialHeight;
353
- }
354
- }
355
- _noopInputHandler() {
356
- // no-op handler that ensures we're running change detection on input events.
357
- }
358
- /** Access injected document if available or fallback to global document reference */
359
- _getDocument() {
360
- return this._document || document;
361
- }
362
- /** Use defaultView of injected document if available or fallback to global window reference */
363
- _getWindow() {
364
- const doc = this._getDocument();
365
- return doc.defaultView || window;
366
- }
367
- /**
368
- * Scrolls a textarea to the caret position. On Firefox resizing the textarea will
369
- * prevent it from scrolling to the caret position. We need to re-set the selection
370
- * in order for it to scroll to the proper position.
371
- */
372
- _scrollToCaretPosition(textarea) {
373
- const { selectionStart, selectionEnd } = textarea;
374
- // IE will throw an "Unspecified error" if we try to set the selection range after the
375
- // element has been removed from the DOM. Assert that the directive hasn't been destroyed
376
- // between the time we requested the animation frame and when it was executed.
377
- // Also note that we have to assert that the textarea is focused before we set the
378
- // selection range. Setting the selection range on a non-focused textarea will cause
379
- // it to receive focus on IE and Edge.
380
- if (!this._destroyed.isStopped && this._hasFocus) {
381
- textarea.setSelectionRange(selectionStart, selectionEnd);
382
- }
383
- }
384
- }
385
- CdkTextareaAutosize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CdkTextareaAutosize, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
386
- CdkTextareaAutosize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: { minRows: ["cdkAutosizeMinRows", "minRows"], maxRows: ["cdkAutosizeMaxRows", "maxRows"], enabled: ["cdkTextareaAutosize", "enabled"], placeholder: "placeholder" }, host: { attributes: { "rows": "1" }, listeners: { "input": "_noopInputHandler()" }, classAttribute: "cdk-textarea-autosize" }, exportAs: ["cdkTextareaAutosize"], ngImport: i0 });
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: CdkTextareaAutosize, decorators: [{
388
- type: Directive,
389
- args: [{
390
- selector: 'textarea[cdkTextareaAutosize]',
391
- exportAs: 'cdkTextareaAutosize',
392
- host: {
393
- 'class': 'cdk-textarea-autosize',
394
- // Textarea elements that have the directive applied should have a single row by default.
395
- // Browsers normally show two rows by default and therefore this limits the minRows binding.
396
- 'rows': '1',
397
- '(input)': '_noopInputHandler()',
398
- },
399
- }]
400
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{
401
- type: Optional
402
- }, {
403
- type: Inject,
404
- args: [DOCUMENT]
405
- }] }]; }, propDecorators: { minRows: [{
406
- type: Input,
407
- args: ['cdkAutosizeMinRows']
408
- }], maxRows: [{
409
- type: Input,
410
- args: ['cdkAutosizeMaxRows']
411
- }], enabled: [{
412
- type: Input,
413
- args: ['cdkTextareaAutosize']
414
- }], placeholder: [{
415
- type: Input
416
- }] } });
417
-
418
- /**
419
- * @license
420
- * Copyright Google LLC All Rights Reserved.
421
- *
422
- * Use of this source code is governed by an MIT-style license that can be
423
- * found in the LICENSE file at https://angular.io/license
424
- */
425
- class TextFieldModule {
426
- }
427
- TextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
428
- TextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: TextFieldModule, declarations: [CdkAutofill, CdkTextareaAutosize], exports: [CdkAutofill, CdkTextareaAutosize] });
429
- TextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TextFieldModule });
430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: TextFieldModule, decorators: [{
431
- type: NgModule,
432
- args: [{
433
- declarations: [CdkAutofill, CdkTextareaAutosize],
434
- exports: [CdkAutofill, CdkTextareaAutosize],
435
- }]
436
- }] });
437
-
438
- /**
439
- * @license
440
- * Copyright Google LLC All Rights Reserved.
441
- *
442
- * Use of this source code is governed by an MIT-style license that can be
443
- * found in the LICENSE file at https://angular.io/license
444
- */
445
-
446
- /**
447
- * @license
448
- * Copyright Google LLC All Rights Reserved.
449
- *
450
- * Use of this source code is governed by an MIT-style license that can be
451
- * found in the LICENSE file at https://angular.io/license
452
- */
453
-
454
- /**
455
- * Generated bundle index. Do not edit.
456
- */
457
-
458
- export { AutofillMonitor, CdkAutofill, CdkTextareaAutosize, TextFieldModule };
459
- //# sourceMappingURL=text-field.mjs.map
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, inject, NgZone, RendererFactory2, Injectable, ElementRef, EventEmitter, Directive, Output, Renderer2, DOCUMENT, booleanAttribute, Input, NgModule } from '@angular/core';
3
+ import { EMPTY, Subject } from 'rxjs';
4
+ import { Platform } from './platform2.mjs';
5
+ import { _CdkPrivateStyleLoader } from './style-loader.mjs';
6
+ import { coerceElement, coerceNumberProperty } from './element.mjs';
7
+ import { auditTime } from 'rxjs/operators';
8
+ import '@angular/common';
9
+
10
+ /** Component used to load the structural styles of the text field. */
11
+ class _CdkTextFieldStyleLoader {
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: _CdkTextFieldStyleLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: _CdkTextFieldStyleLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-text-field-style-loader": "" } }, ngImport: i0, template: '', isInline: true, styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: _CdkTextFieldStyleLoader, decorators: [{
16
+ type: Component,
17
+ args: [{ template: '', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'cdk-text-field-style-loader': '' }, styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"] }]
18
+ }] });
19
+
20
+ /** Options to pass to the animationstart listener. */
21
+ const listenerOptions = { passive: true };
22
+ /**
23
+ * An injectable service that can be used to monitor the autofill state of an input.
24
+ * Based on the following blog post:
25
+ * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
26
+ */
27
+ class AutofillMonitor {
28
+ _platform = inject(Platform);
29
+ _ngZone = inject(NgZone);
30
+ _renderer = inject(RendererFactory2).createRenderer(null, null);
31
+ _styleLoader = inject(_CdkPrivateStyleLoader);
32
+ _monitoredElements = new Map();
33
+ constructor() { }
34
+ monitor(elementOrRef) {
35
+ if (!this._platform.isBrowser) {
36
+ return EMPTY;
37
+ }
38
+ this._styleLoader.load(_CdkTextFieldStyleLoader);
39
+ const element = coerceElement(elementOrRef);
40
+ const info = this._monitoredElements.get(element);
41
+ if (info) {
42
+ return info.subject;
43
+ }
44
+ const subject = new Subject();
45
+ const cssClass = 'cdk-text-field-autofilled';
46
+ const listener = (event) => {
47
+ // Animation events fire on initial element render, we check for the presence of the autofill
48
+ // CSS class to make sure this is a real change in state, not just the initial render before
49
+ // we fire off events.
50
+ if (event.animationName === 'cdk-text-field-autofill-start' &&
51
+ !element.classList.contains(cssClass)) {
52
+ element.classList.add(cssClass);
53
+ this._ngZone.run(() => subject.next({ target: event.target, isAutofilled: true }));
54
+ }
55
+ else if (event.animationName === 'cdk-text-field-autofill-end' &&
56
+ element.classList.contains(cssClass)) {
57
+ element.classList.remove(cssClass);
58
+ this._ngZone.run(() => subject.next({ target: event.target, isAutofilled: false }));
59
+ }
60
+ };
61
+ const unlisten = this._ngZone.runOutsideAngular(() => {
62
+ element.classList.add('cdk-text-field-autofill-monitored');
63
+ return this._renderer.listen(element, 'animationstart', listener, listenerOptions);
64
+ });
65
+ this._monitoredElements.set(element, { subject, unlisten });
66
+ return subject;
67
+ }
68
+ stopMonitoring(elementOrRef) {
69
+ const element = coerceElement(elementOrRef);
70
+ const info = this._monitoredElements.get(element);
71
+ if (info) {
72
+ info.unlisten();
73
+ info.subject.complete();
74
+ element.classList.remove('cdk-text-field-autofill-monitored');
75
+ element.classList.remove('cdk-text-field-autofilled');
76
+ this._monitoredElements.delete(element);
77
+ }
78
+ }
79
+ ngOnDestroy() {
80
+ this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
81
+ }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
83
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, providedIn: 'root' });
84
+ }
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, decorators: [{
86
+ type: Injectable,
87
+ args: [{ providedIn: 'root' }]
88
+ }], ctorParameters: () => [] });
89
+ /** A directive that can be used to monitor the autofill state of an input. */
90
+ class CdkAutofill {
91
+ _elementRef = inject(ElementRef);
92
+ _autofillMonitor = inject(AutofillMonitor);
93
+ /** Emits when the autofill state of the element changes. */
94
+ cdkAutofill = new EventEmitter();
95
+ constructor() { }
96
+ ngOnInit() {
97
+ this._autofillMonitor
98
+ .monitor(this._elementRef)
99
+ .subscribe(event => this.cdkAutofill.emit(event));
100
+ }
101
+ ngOnDestroy() {
102
+ this._autofillMonitor.stopMonitoring(this._elementRef);
103
+ }
104
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAutofill, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: CdkAutofill, isStandalone: true, selector: "[cdkAutofill]", outputs: { cdkAutofill: "cdkAutofill" }, ngImport: i0 });
106
+ }
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAutofill, decorators: [{
108
+ type: Directive,
109
+ args: [{
110
+ selector: '[cdkAutofill]',
111
+ }]
112
+ }], ctorParameters: () => [], propDecorators: { cdkAutofill: [{
113
+ type: Output
114
+ }] } });
115
+
116
+ /** Directive to automatically resize a textarea to fit its content. */
117
+ class CdkTextareaAutosize {
118
+ _elementRef = inject(ElementRef);
119
+ _platform = inject(Platform);
120
+ _ngZone = inject(NgZone);
121
+ _renderer = inject(Renderer2);
122
+ _resizeEvents = new Subject();
123
+ /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */
124
+ _previousValue;
125
+ _initialHeight;
126
+ _destroyed = new Subject();
127
+ _listenerCleanups;
128
+ _minRows;
129
+ _maxRows;
130
+ _enabled = true;
131
+ /**
132
+ * Value of minRows as of last resize. If the minRows has decreased, the
133
+ * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
134
+ * does not have the same problem because it does not affect the textarea's scrollHeight.
135
+ */
136
+ _previousMinRows = -1;
137
+ _textareaElement;
138
+ /** Minimum amount of rows in the textarea. */
139
+ get minRows() {
140
+ return this._minRows;
141
+ }
142
+ set minRows(value) {
143
+ this._minRows = coerceNumberProperty(value);
144
+ this._setMinHeight();
145
+ }
146
+ /** Maximum amount of rows in the textarea. */
147
+ get maxRows() {
148
+ return this._maxRows;
149
+ }
150
+ set maxRows(value) {
151
+ this._maxRows = coerceNumberProperty(value);
152
+ this._setMaxHeight();
153
+ }
154
+ /** Whether autosizing is enabled or not */
155
+ get enabled() {
156
+ return this._enabled;
157
+ }
158
+ set enabled(value) {
159
+ // Only act if the actual value changed. This specifically helps to not run
160
+ // resizeToFitContent too early (i.e. before ngAfterViewInit)
161
+ if (this._enabled !== value) {
162
+ (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
163
+ }
164
+ }
165
+ get placeholder() {
166
+ return this._textareaElement.placeholder;
167
+ }
168
+ set placeholder(value) {
169
+ this._cachedPlaceholderHeight = undefined;
170
+ if (value) {
171
+ this._textareaElement.setAttribute('placeholder', value);
172
+ }
173
+ else {
174
+ this._textareaElement.removeAttribute('placeholder');
175
+ }
176
+ this._cacheTextareaPlaceholderHeight();
177
+ }
178
+ /** Cached height of a textarea with a single row. */
179
+ _cachedLineHeight;
180
+ /** Cached height of a textarea with only the placeholder. */
181
+ _cachedPlaceholderHeight;
182
+ /** Used to reference correct document/window */
183
+ _document = inject(DOCUMENT);
184
+ _hasFocus;
185
+ _isViewInited = false;
186
+ constructor() {
187
+ const styleLoader = inject(_CdkPrivateStyleLoader);
188
+ styleLoader.load(_CdkTextFieldStyleLoader);
189
+ this._textareaElement = this._elementRef.nativeElement;
190
+ }
191
+ /** Sets the minimum height of the textarea as determined by minRows. */
192
+ _setMinHeight() {
193
+ const minHeight = this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;
194
+ if (minHeight) {
195
+ this._textareaElement.style.minHeight = minHeight;
196
+ }
197
+ }
198
+ /** Sets the maximum height of the textarea as determined by maxRows. */
199
+ _setMaxHeight() {
200
+ const maxHeight = this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;
201
+ if (maxHeight) {
202
+ this._textareaElement.style.maxHeight = maxHeight;
203
+ }
204
+ }
205
+ ngAfterViewInit() {
206
+ if (this._platform.isBrowser) {
207
+ // Remember the height which we started with in case autosizing is disabled
208
+ this._initialHeight = this._textareaElement.style.height;
209
+ this.resizeToFitContent();
210
+ this._ngZone.runOutsideAngular(() => {
211
+ this._listenerCleanups = [
212
+ this._renderer.listen('window', 'resize', () => this._resizeEvents.next()),
213
+ this._renderer.listen(this._textareaElement, 'focus', this._handleFocusEvent),
214
+ this._renderer.listen(this._textareaElement, 'blur', this._handleFocusEvent),
215
+ ];
216
+ this._resizeEvents.pipe(auditTime(16)).subscribe(() => {
217
+ // Clear the cached heights since the styles can change
218
+ // when the window is resized (e.g. by media queries).
219
+ this._cachedLineHeight = this._cachedPlaceholderHeight = undefined;
220
+ this.resizeToFitContent(true);
221
+ });
222
+ });
223
+ this._isViewInited = true;
224
+ this.resizeToFitContent(true);
225
+ }
226
+ }
227
+ ngOnDestroy() {
228
+ this._listenerCleanups?.forEach(cleanup => cleanup());
229
+ this._resizeEvents.complete();
230
+ this._destroyed.next();
231
+ this._destroyed.complete();
232
+ }
233
+ /**
234
+ * Cache the height of a single-row textarea if it has not already been cached.
235
+ *
236
+ * We need to know how large a single "row" of a textarea is in order to apply minRows and
237
+ * maxRows. For the initial version, we will assume that the height of a single line in the
238
+ * textarea does not ever change.
239
+ */
240
+ _cacheTextareaLineHeight() {
241
+ if (this._cachedLineHeight) {
242
+ return;
243
+ }
244
+ // Use a clone element because we have to override some styles.
245
+ const textareaClone = this._textareaElement.cloneNode(false);
246
+ const cloneStyles = textareaClone.style;
247
+ textareaClone.rows = 1;
248
+ // Use `position: absolute` so that this doesn't cause a browser layout and use
249
+ // `visibility: hidden` so that nothing is rendered. Clear any other styles that
250
+ // would affect the height.
251
+ cloneStyles.position = 'absolute';
252
+ cloneStyles.visibility = 'hidden';
253
+ cloneStyles.border = 'none';
254
+ cloneStyles.padding = '0';
255
+ cloneStyles.height = '';
256
+ cloneStyles.minHeight = '';
257
+ cloneStyles.maxHeight = '';
258
+ // App styles might be messing with the height through the positioning properties.
259
+ cloneStyles.top = cloneStyles.bottom = cloneStyles.left = cloneStyles.right = 'auto';
260
+ // In Firefox it happens that textarea elements are always bigger than the specified amount
261
+ // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
262
+ // As a workaround that removes the extra space for the scrollbar, we can just set overflow
263
+ // to hidden. This ensures that there is no invalid calculation of the line height.
264
+ // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654
265
+ cloneStyles.overflow = 'hidden';
266
+ this._textareaElement.parentNode.appendChild(textareaClone);
267
+ this._cachedLineHeight = textareaClone.clientHeight;
268
+ textareaClone.remove();
269
+ // Min and max heights have to be re-calculated if the cached line height changes
270
+ this._setMinHeight();
271
+ this._setMaxHeight();
272
+ }
273
+ _measureScrollHeight() {
274
+ const element = this._textareaElement;
275
+ const previousMargin = element.style.marginBottom || '';
276
+ const isFirefox = this._platform.FIREFOX;
277
+ const needsMarginFiller = isFirefox && this._hasFocus;
278
+ const measuringClass = isFirefox
279
+ ? 'cdk-textarea-autosize-measuring-firefox'
280
+ : 'cdk-textarea-autosize-measuring';
281
+ // In some cases the page might move around while we're measuring the `textarea` on Firefox. We
282
+ // work around it by assigning a temporary margin with the same height as the `textarea` so that
283
+ // it occupies the same amount of space. See #23233.
284
+ if (needsMarginFiller) {
285
+ element.style.marginBottom = `${element.clientHeight}px`;
286
+ }
287
+ // Reset the textarea height to auto in order to shrink back to its default size.
288
+ // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
289
+ element.classList.add(measuringClass);
290
+ // The measuring class includes a 2px padding to workaround an issue with Chrome,
291
+ // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
292
+ const scrollHeight = element.scrollHeight - 4;
293
+ element.classList.remove(measuringClass);
294
+ if (needsMarginFiller) {
295
+ element.style.marginBottom = previousMargin;
296
+ }
297
+ return scrollHeight;
298
+ }
299
+ _cacheTextareaPlaceholderHeight() {
300
+ if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {
301
+ return;
302
+ }
303
+ if (!this.placeholder) {
304
+ this._cachedPlaceholderHeight = 0;
305
+ return;
306
+ }
307
+ const value = this._textareaElement.value;
308
+ this._textareaElement.value = this._textareaElement.placeholder;
309
+ this._cachedPlaceholderHeight = this._measureScrollHeight();
310
+ this._textareaElement.value = value;
311
+ }
312
+ /** Handles `focus` and `blur` events. */
313
+ _handleFocusEvent = (event) => {
314
+ this._hasFocus = event.type === 'focus';
315
+ };
316
+ ngDoCheck() {
317
+ if (this._platform.isBrowser) {
318
+ this.resizeToFitContent();
319
+ }
320
+ }
321
+ /**
322
+ * Resize the textarea to fit its content.
323
+ * @param force Whether to force a height recalculation. By default the height will be
324
+ * recalculated only if the value changed since the last call.
325
+ */
326
+ resizeToFitContent(force = false) {
327
+ // If autosizing is disabled, just skip everything else
328
+ if (!this._enabled) {
329
+ return;
330
+ }
331
+ this._cacheTextareaLineHeight();
332
+ this._cacheTextareaPlaceholderHeight();
333
+ // If we haven't determined the line-height yet, we know we're still hidden and there's no point
334
+ // in checking the height of the textarea.
335
+ if (!this._cachedLineHeight) {
336
+ return;
337
+ }
338
+ const textarea = this._elementRef.nativeElement;
339
+ const value = textarea.value;
340
+ // Only resize if the value or minRows have changed since these calculations can be expensive.
341
+ if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
342
+ return;
343
+ }
344
+ const scrollHeight = this._measureScrollHeight();
345
+ const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);
346
+ // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
347
+ textarea.style.height = `${height}px`;
348
+ this._ngZone.runOutsideAngular(() => {
349
+ if (typeof requestAnimationFrame !== 'undefined') {
350
+ requestAnimationFrame(() => this._scrollToCaretPosition(textarea));
351
+ }
352
+ else {
353
+ setTimeout(() => this._scrollToCaretPosition(textarea));
354
+ }
355
+ });
356
+ this._previousValue = value;
357
+ this._previousMinRows = this._minRows;
358
+ }
359
+ /**
360
+ * Resets the textarea to its original size
361
+ */
362
+ reset() {
363
+ // Do not try to change the textarea, if the initialHeight has not been determined yet
364
+ // This might potentially remove styles when reset() is called before ngAfterViewInit
365
+ if (this._initialHeight !== undefined) {
366
+ this._textareaElement.style.height = this._initialHeight;
367
+ }
368
+ }
369
+ _noopInputHandler() {
370
+ // no-op handler that ensures we're running change detection on input events.
371
+ }
372
+ /**
373
+ * Scrolls a textarea to the caret position. On Firefox resizing the textarea will
374
+ * prevent it from scrolling to the caret position. We need to re-set the selection
375
+ * in order for it to scroll to the proper position.
376
+ */
377
+ _scrollToCaretPosition(textarea) {
378
+ const { selectionStart, selectionEnd } = textarea;
379
+ // IE will throw an "Unspecified error" if we try to set the selection range after the
380
+ // element has been removed from the DOM. Assert that the directive hasn't been destroyed
381
+ // between the time we requested the animation frame and when it was executed.
382
+ // Also note that we have to assert that the textarea is focused before we set the
383
+ // selection range. Setting the selection range on a non-focused textarea will cause
384
+ // it to receive focus on IE and Edge.
385
+ if (!this._destroyed.isStopped && this._hasFocus) {
386
+ textarea.setSelectionRange(selectionStart, selectionEnd);
387
+ }
388
+ }
389
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkTextareaAutosize, deps: [], target: i0.ɵɵFactoryTarget.Directive });
390
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.2.0-next.2", type: CdkTextareaAutosize, isStandalone: true, selector: "textarea[cdkTextareaAutosize]", inputs: { minRows: ["cdkAutosizeMinRows", "minRows"], maxRows: ["cdkAutosizeMaxRows", "maxRows"], enabled: ["cdkTextareaAutosize", "enabled", booleanAttribute], placeholder: "placeholder" }, host: { attributes: { "rows": "1" }, listeners: { "input": "_noopInputHandler()" }, classAttribute: "cdk-textarea-autosize" }, exportAs: ["cdkTextareaAutosize"], ngImport: i0 });
391
+ }
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkTextareaAutosize, decorators: [{
393
+ type: Directive,
394
+ args: [{
395
+ selector: 'textarea[cdkTextareaAutosize]',
396
+ exportAs: 'cdkTextareaAutosize',
397
+ host: {
398
+ 'class': 'cdk-textarea-autosize',
399
+ // Textarea elements that have the directive applied should have a single row by default.
400
+ // Browsers normally show two rows by default and therefore this limits the minRows binding.
401
+ 'rows': '1',
402
+ '(input)': '_noopInputHandler()',
403
+ },
404
+ }]
405
+ }], ctorParameters: () => [], propDecorators: { minRows: [{
406
+ type: Input,
407
+ args: ['cdkAutosizeMinRows']
408
+ }], maxRows: [{
409
+ type: Input,
410
+ args: ['cdkAutosizeMaxRows']
411
+ }], enabled: [{
412
+ type: Input,
413
+ args: [{ alias: 'cdkTextareaAutosize', transform: booleanAttribute }]
414
+ }], placeholder: [{
415
+ type: Input
416
+ }] } });
417
+
418
+ class TextFieldModule {
419
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
420
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, imports: [CdkAutofill, CdkTextareaAutosize], exports: [CdkAutofill, CdkTextareaAutosize] });
421
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule });
422
+ }
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, decorators: [{
424
+ type: NgModule,
425
+ args: [{
426
+ imports: [CdkAutofill, CdkTextareaAutosize],
427
+ exports: [CdkAutofill, CdkTextareaAutosize],
428
+ }]
429
+ }] });
430
+
431
+ export { AutofillMonitor, CdkAutofill, CdkTextareaAutosize, TextFieldModule };
432
+ //# sourceMappingURL=text-field.mjs.map