@kato-lee/cdk 14.2.7

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 (374) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/_index.scss +8 -0
  4. package/a11y/_index.import.scss +2 -0
  5. package/a11y/_index.scss +102 -0
  6. package/a11y/index.d.ts +1212 -0
  7. package/a11y-prebuilt.css +1 -0
  8. package/accordion/index.d.ts +140 -0
  9. package/bidi/index.d.ts +80 -0
  10. package/clipboard/index.d.ts +115 -0
  11. package/coercion/index.d.ts +67 -0
  12. package/collections/index.d.ts +374 -0
  13. package/dialog/index.d.ts +469 -0
  14. package/drag-drop/index.d.ts +1614 -0
  15. package/esm2020/a11y/a11y-module.mjs +32 -0
  16. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  17. package/esm2020/a11y/aria-describer/aria-describer.mjs +232 -0
  18. package/esm2020/a11y/aria-describer/aria-reference.mjs +44 -0
  19. package/esm2020/a11y/fake-event-detection.mjs +31 -0
  20. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +451 -0
  21. package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +9 -0
  22. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  23. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  24. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  25. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  26. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  27. package/esm2020/a11y/focus-trap/focus-trap.mjs +402 -0
  28. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +109 -0
  29. package/esm2020/a11y/index.mjs +9 -0
  30. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  31. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  32. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +20 -0
  33. package/esm2020/a11y/key-manager/focus-key-manager.mjs +29 -0
  34. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  35. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  36. package/esm2020/a11y/live-announcer/live-announcer.mjs +178 -0
  37. package/esm2020/a11y/public-api.mjs +26 -0
  38. package/esm2020/accordion/accordion-item.mjs +167 -0
  39. package/esm2020/accordion/accordion-module.mjs +24 -0
  40. package/esm2020/accordion/accordion.mjs +70 -0
  41. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  42. package/esm2020/accordion/index.mjs +9 -0
  43. package/esm2020/accordion/public-api.mjs +11 -0
  44. package/esm2020/bidi/bidi-module.mjs +23 -0
  45. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  46. package/esm2020/bidi/dir-document-token.mjs +33 -0
  47. package/esm2020/bidi/dir.mjs +69 -0
  48. package/esm2020/bidi/directionality.mjs +52 -0
  49. package/esm2020/bidi/index.mjs +9 -0
  50. package/esm2020/bidi/public-api.mjs +12 -0
  51. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  52. package/esm2020/clipboard/clipboard.mjs +53 -0
  53. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  54. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  55. package/esm2020/clipboard/index.mjs +9 -0
  56. package/esm2020/clipboard/pending-copy.mjs +69 -0
  57. package/esm2020/clipboard/public-api.mjs +12 -0
  58. package/esm2020/coercion/array.mjs +11 -0
  59. package/esm2020/coercion/boolean-property.mjs +12 -0
  60. package/esm2020/coercion/css-pixel-value.mjs +15 -0
  61. package/esm2020/coercion/element.mjs +16 -0
  62. package/esm2020/coercion/index.mjs +9 -0
  63. package/esm2020/coercion/number-property.mjs +21 -0
  64. package/esm2020/coercion/public-api.mjs +14 -0
  65. package/esm2020/coercion/string-array.mjs +38 -0
  66. package/esm2020/collections/array-data-source.mjs +21 -0
  67. package/esm2020/collections/collection-viewer.mjs +9 -0
  68. package/esm2020/collections/collections_public_index.mjs +5 -0
  69. package/esm2020/collections/data-source.mjs +19 -0
  70. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  71. package/esm2020/collections/index.mjs +9 -0
  72. package/esm2020/collections/public-api.mjs +17 -0
  73. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  74. package/esm2020/collections/selection-model.mjs +216 -0
  75. package/esm2020/collections/tree-adapter.mjs +9 -0
  76. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  77. package/esm2020/collections/view-repeater.mjs +14 -0
  78. package/esm2020/dialog/dialog-config.mjs +63 -0
  79. package/esm2020/dialog/dialog-container.mjs +278 -0
  80. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  81. package/esm2020/dialog/dialog-module.mjs +42 -0
  82. package/esm2020/dialog/dialog-ref.mjs +76 -0
  83. package/esm2020/dialog/dialog.mjs +301 -0
  84. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  85. package/esm2020/dialog/index.mjs +9 -0
  86. package/esm2020/dialog/public-api.mjs +14 -0
  87. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  88. package/esm2020/drag-drop/directives/config.mjs +14 -0
  89. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  90. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  91. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  92. package/esm2020/drag-drop/directives/drag.mjs +487 -0
  93. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  94. package/esm2020/drag-drop/directives/drop-list.mjs +345 -0
  95. package/esm2020/drag-drop/dom/client-rect.mjs +64 -0
  96. package/esm2020/drag-drop/dom/clone-node.mjs +65 -0
  97. package/esm2020/drag-drop/dom/parent-position-tracker.mjs +76 -0
  98. package/esm2020/drag-drop/dom/styling.mjs +69 -0
  99. package/esm2020/drag-drop/dom/transition-duration.mjs +36 -0
  100. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  101. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  102. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  103. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  104. package/esm2020/drag-drop/drag-events.mjs +9 -0
  105. package/esm2020/drag-drop/drag-parent.mjs +16 -0
  106. package/esm2020/drag-drop/drag-ref.mjs +1146 -0
  107. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  108. package/esm2020/drag-drop/drop-list-ref.mjs +577 -0
  109. package/esm2020/drag-drop/index.mjs +9 -0
  110. package/esm2020/drag-drop/public-api.mjs +23 -0
  111. package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +9 -0
  112. package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +341 -0
  113. package/esm2020/index.mjs +9 -0
  114. package/esm2020/keycodes/index.mjs +9 -0
  115. package/esm2020/keycodes/keycodes.mjs +127 -0
  116. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  117. package/esm2020/keycodes/modifiers.mjs +18 -0
  118. package/esm2020/keycodes/public-api.mjs +10 -0
  119. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  120. package/esm2020/layout/breakpoints.mjs +29 -0
  121. package/esm2020/layout/index.mjs +9 -0
  122. package/esm2020/layout/layout-module.mjs +19 -0
  123. package/esm2020/layout/layout_public_index.mjs +5 -0
  124. package/esm2020/layout/media-matcher.mjs +85 -0
  125. package/esm2020/layout/public-api.mjs +12 -0
  126. package/esm2020/listbox/index.mjs +9 -0
  127. package/esm2020/listbox/listbox-module.mjs +24 -0
  128. package/esm2020/listbox/listbox.mjs +872 -0
  129. package/esm2020/listbox/listbox_public_index.mjs +5 -0
  130. package/esm2020/listbox/public-api.mjs +10 -0
  131. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  132. package/esm2020/menu/index.mjs +9 -0
  133. package/esm2020/menu/menu-aim.mjs +203 -0
  134. package/esm2020/menu/menu-bar.mjs +133 -0
  135. package/esm2020/menu/menu-base.mjs +187 -0
  136. package/esm2020/menu/menu-errors.mjs +22 -0
  137. package/esm2020/menu/menu-group.mjs +30 -0
  138. package/esm2020/menu/menu-interface.mjs +11 -0
  139. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  140. package/esm2020/menu/menu-item-radio.mjs +71 -0
  141. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  142. package/esm2020/menu/menu-item.mjs +267 -0
  143. package/esm2020/menu/menu-module.mjs +62 -0
  144. package/esm2020/menu/menu-stack.mjs +156 -0
  145. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  146. package/esm2020/menu/menu-trigger.mjs +291 -0
  147. package/esm2020/menu/menu.mjs +134 -0
  148. package/esm2020/menu/menu_public_index.mjs +5 -0
  149. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  150. package/esm2020/menu/public-api.mjs +24 -0
  151. package/esm2020/observers/index.mjs +9 -0
  152. package/esm2020/observers/observe-content.mjs +187 -0
  153. package/esm2020/observers/observers_public_index.mjs +5 -0
  154. package/esm2020/observers/public-api.mjs +9 -0
  155. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  156. package/esm2020/overlay/dispatchers/index.mjs +10 -0
  157. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +81 -0
  158. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +138 -0
  159. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  160. package/esm2020/overlay/index.mjs +9 -0
  161. package/esm2020/overlay/overlay-config.mjs +45 -0
  162. package/esm2020/overlay/overlay-container.mjs +81 -0
  163. package/esm2020/overlay/overlay-directives.mjs +427 -0
  164. package/esm2020/overlay/overlay-module.mjs +29 -0
  165. package/esm2020/overlay/overlay-ref.mjs +427 -0
  166. package/esm2020/overlay/overlay-reference.mjs +9 -0
  167. package/esm2020/overlay/overlay.mjs +125 -0
  168. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  169. package/esm2020/overlay/position/connected-position.mjs +88 -0
  170. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +985 -0
  171. package/esm2020/overlay/position/global-position-strategy.mjs +237 -0
  172. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  173. package/esm2020/overlay/position/position-strategy.mjs +9 -0
  174. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  175. package/esm2020/overlay/public-api.mjs +22 -0
  176. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +80 -0
  177. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  178. package/esm2020/overlay/scroll/index.mjs +14 -0
  179. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +17 -0
  180. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +61 -0
  181. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  182. package/esm2020/overlay/scroll/scroll-strategy.mjs +14 -0
  183. package/esm2020/platform/features/input-types.mjs +59 -0
  184. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  185. package/esm2020/platform/features/scrolling.mjs +85 -0
  186. package/esm2020/platform/features/shadow-dom.mjs +54 -0
  187. package/esm2020/platform/features/test-environment.mjs +24 -0
  188. package/esm2020/platform/index.mjs +9 -0
  189. package/esm2020/platform/platform-module.mjs +19 -0
  190. package/esm2020/platform/platform.mjs +85 -0
  191. package/esm2020/platform/platform_public_index.mjs +5 -0
  192. package/esm2020/platform/public-api.mjs +15 -0
  193. package/esm2020/portal/dom-portal-outlet.mjs +158 -0
  194. package/esm2020/portal/index.mjs +9 -0
  195. package/esm2020/portal/portal-directives.mjs +246 -0
  196. package/esm2020/portal/portal-errors.mjs +51 -0
  197. package/esm2020/portal/portal-injector.mjs +28 -0
  198. package/esm2020/portal/portal.mjs +188 -0
  199. package/esm2020/portal/portal_public_index.mjs +5 -0
  200. package/esm2020/portal/public-api.mjs +12 -0
  201. package/esm2020/public-api.mjs +9 -0
  202. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  203. package/esm2020/scrolling/index.mjs +9 -0
  204. package/esm2020/scrolling/public-api.mjs +20 -0
  205. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  206. package/esm2020/scrolling/scrollable.mjs +176 -0
  207. package/esm2020/scrolling/scrolling-module.mjs +67 -0
  208. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  209. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  210. package/esm2020/scrolling/virtual-for-of.mjs +298 -0
  211. package/esm2020/scrolling/virtual-scroll-repeater.mjs +9 -0
  212. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  213. package/esm2020/scrolling/virtual-scroll-viewport.mjs +437 -0
  214. package/esm2020/scrolling/virtual-scrollable-element.mjs +41 -0
  215. package/esm2020/scrolling/virtual-scrollable-window.mjs +40 -0
  216. package/esm2020/scrolling/virtual-scrollable.mjs +40 -0
  217. package/esm2020/stepper/index.mjs +9 -0
  218. package/esm2020/stepper/public-api.mjs +13 -0
  219. package/esm2020/stepper/step-header.mjs +30 -0
  220. package/esm2020/stepper/step-label.mjs +23 -0
  221. package/esm2020/stepper/stepper-button.mjs +56 -0
  222. package/esm2020/stepper/stepper-module.mjs +40 -0
  223. package/esm2020/stepper/stepper.mjs +458 -0
  224. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  225. package/esm2020/table/can-stick.mjs +44 -0
  226. package/esm2020/table/cell.mjs +217 -0
  227. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  228. package/esm2020/table/index.mjs +9 -0
  229. package/esm2020/table/public-api.mjs +20 -0
  230. package/esm2020/table/row.mjs +262 -0
  231. package/esm2020/table/sticky-position-listener.mjs +11 -0
  232. package/esm2020/table/sticky-styler.mjs +345 -0
  233. package/esm2020/table/table-errors.mjs +67 -0
  234. package/esm2020/table/table-module.mjs +94 -0
  235. package/esm2020/table/table.mjs +1065 -0
  236. package/esm2020/table/table_public_index.mjs +5 -0
  237. package/esm2020/table/text-column.mjs +153 -0
  238. package/esm2020/table/tokens.mjs +16 -0
  239. package/esm2020/text-field/autofill.mjs +113 -0
  240. package/esm2020/text-field/autosize.mjs +309 -0
  241. package/esm2020/text-field/index.mjs +9 -0
  242. package/esm2020/text-field/public-api.mjs +11 -0
  243. package/esm2020/text-field/text-field-module.mjs +24 -0
  244. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  245. package/esm2020/tree/control/base-tree-control.mjs +57 -0
  246. package/esm2020/tree/control/flat-tree-control.mjs +51 -0
  247. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  248. package/esm2020/tree/control/tree-control.mjs +2 -0
  249. package/esm2020/tree/index.mjs +9 -0
  250. package/esm2020/tree/nested-node.mjs +112 -0
  251. package/esm2020/tree/node.mjs +35 -0
  252. package/esm2020/tree/outlet.mjs +39 -0
  253. package/esm2020/tree/padding.mjs +131 -0
  254. package/esm2020/tree/public-api.mjs +20 -0
  255. package/esm2020/tree/toggle.mjs +50 -0
  256. package/esm2020/tree/tree-errors.mjs +43 -0
  257. package/esm2020/tree/tree-module.mjs +49 -0
  258. package/esm2020/tree/tree.mjs +347 -0
  259. package/esm2020/tree/tree_public_index.mjs +5 -0
  260. package/esm2020/version.mjs +11 -0
  261. package/fesm2015/a11y.mjs +2473 -0
  262. package/fesm2015/a11y.mjs.map +1 -0
  263. package/fesm2015/accordion.mjs +414 -0
  264. package/fesm2015/accordion.mjs.map +1 -0
  265. package/fesm2015/bidi.mjs +194 -0
  266. package/fesm2015/bidi.mjs.map +1 -0
  267. package/fesm2015/cdk.mjs +30 -0
  268. package/fesm2015/cdk.mjs.map +1 -0
  269. package/fesm2015/clipboard.mjs +263 -0
  270. package/fesm2015/clipboard.mjs.map +1 -0
  271. package/fesm2015/coercion.mjs +132 -0
  272. package/fesm2015/coercion.mjs.map +1 -0
  273. package/fesm2015/collections.mjs +519 -0
  274. package/fesm2015/collections.mjs.map +1 -0
  275. package/fesm2015/dialog.mjs +1050 -0
  276. package/fesm2015/dialog.mjs.map +1 -0
  277. package/fesm2015/drag-drop.mjs +3812 -0
  278. package/fesm2015/drag-drop.mjs.map +1 -0
  279. package/fesm2015/keycodes.mjs +167 -0
  280. package/fesm2015/keycodes.mjs.map +1 -0
  281. package/fesm2015/layout.mjs +337 -0
  282. package/fesm2015/layout.mjs.map +1 -0
  283. package/fesm2015/listbox.mjs +1200 -0
  284. package/fesm2015/listbox.mjs.map +1 -0
  285. package/fesm2015/menu.mjs +2719 -0
  286. package/fesm2015/menu.mjs.map +1 -0
  287. package/fesm2015/observers.mjs +326 -0
  288. package/fesm2015/observers.mjs.map +1 -0
  289. package/fesm2015/overlay.mjs +3137 -0
  290. package/fesm2015/overlay.mjs.map +1 -0
  291. package/fesm2015/platform.mjs +385 -0
  292. package/fesm2015/platform.mjs.map +1 -0
  293. package/fesm2015/portal.mjs +691 -0
  294. package/fesm2015/portal.mjs.map +1 -0
  295. package/fesm2015/scrolling.mjs +1558 -0
  296. package/fesm2015/scrolling.mjs.map +1 -0
  297. package/fesm2015/stepper.mjs +989 -0
  298. package/fesm2015/stepper.mjs.map +1 -0
  299. package/fesm2015/table.mjs +2356 -0
  300. package/fesm2015/table.mjs.map +1 -0
  301. package/fesm2015/testing.mjs +833 -0
  302. package/fesm2015/testing.mjs.map +1 -0
  303. package/fesm2015/text-field.mjs +461 -0
  304. package/fesm2015/text-field.mjs.map +1 -0
  305. package/fesm2015/tree.mjs +1303 -0
  306. package/fesm2015/tree.mjs.map +1 -0
  307. package/fesm2020/a11y.mjs +2476 -0
  308. package/fesm2020/a11y.mjs.map +1 -0
  309. package/fesm2020/accordion.mjs +414 -0
  310. package/fesm2020/accordion.mjs.map +1 -0
  311. package/fesm2020/bidi.mjs +192 -0
  312. package/fesm2020/bidi.mjs.map +1 -0
  313. package/fesm2020/cdk.mjs +30 -0
  314. package/fesm2020/cdk.mjs.map +1 -0
  315. package/fesm2020/clipboard.mjs +259 -0
  316. package/fesm2020/clipboard.mjs.map +1 -0
  317. package/fesm2020/coercion.mjs +132 -0
  318. package/fesm2020/coercion.mjs.map +1 -0
  319. package/fesm2020/collections.mjs +535 -0
  320. package/fesm2020/collections.mjs.map +1 -0
  321. package/fesm2020/dialog.mjs +787 -0
  322. package/fesm2020/dialog.mjs.map +1 -0
  323. package/fesm2020/drag-drop.mjs +3808 -0
  324. package/fesm2020/drag-drop.mjs.map +1 -0
  325. package/fesm2020/keycodes.mjs +167 -0
  326. package/fesm2020/keycodes.mjs.map +1 -0
  327. package/fesm2020/layout.mjs +337 -0
  328. package/fesm2020/layout.mjs.map +1 -0
  329. package/fesm2020/listbox.mjs +1164 -0
  330. package/fesm2020/listbox.mjs.map +1 -0
  331. package/fesm2020/menu.mjs +2615 -0
  332. package/fesm2020/menu.mjs.map +1 -0
  333. package/fesm2020/observers.mjs +325 -0
  334. package/fesm2020/observers.mjs.map +1 -0
  335. package/fesm2020/overlay.mjs +3145 -0
  336. package/fesm2020/overlay.mjs.map +1 -0
  337. package/fesm2020/platform.mjs +383 -0
  338. package/fesm2020/platform.mjs.map +1 -0
  339. package/fesm2020/portal.mjs +689 -0
  340. package/fesm2020/portal.mjs.map +1 -0
  341. package/fesm2020/scrolling.mjs +1591 -0
  342. package/fesm2020/scrolling.mjs.map +1 -0
  343. package/fesm2020/stepper.mjs +985 -0
  344. package/fesm2020/stepper.mjs.map +1 -0
  345. package/fesm2020/table.mjs +2348 -0
  346. package/fesm2020/table.mjs.map +1 -0
  347. package/fesm2020/testing.mjs +797 -0
  348. package/fesm2020/testing.mjs.map +1 -0
  349. package/fesm2020/text-field.mjs +459 -0
  350. package/fesm2020/text-field.mjs.map +1 -0
  351. package/fesm2020/tree.mjs +1305 -0
  352. package/fesm2020/tree.mjs.map +1 -0
  353. package/index.d.ts +6 -0
  354. package/keycodes/index.d.ts +249 -0
  355. package/layout/index.d.ts +90 -0
  356. package/listbox/index.d.ts +419 -0
  357. package/menu/index.d.ts +1013 -0
  358. package/observers/index.d.ts +109 -0
  359. package/overlay/_index-deprecated.scss +13 -0
  360. package/overlay/_index.import.scss +13 -0
  361. package/overlay/_index.scss +152 -0
  362. package/overlay/index.d.ts +1343 -0
  363. package/overlay-prebuilt.css +1 -0
  364. package/package.json +232 -0
  365. package/platform/index.d.ts +106 -0
  366. package/portal/index.d.ts +328 -0
  367. package/scrolling/index.d.ts +849 -0
  368. package/stepper/index.d.ts +419 -0
  369. package/table/index.d.ts +1483 -0
  370. package/text-field/_index.import.scss +2 -0
  371. package/text-field/_index.scss +89 -0
  372. package/text-field/index.d.ts +203 -0
  373. package/text-field-prebuilt.css +1 -0
  374. package/tree/index.d.ts +593 -0
@@ -0,0 +1,989 @@
1
+ import { FocusKeyManager } from '@kato-lee/cdk/a11y';
2
+ import { coerceBooleanProperty, coerceNumberProperty } from '@kato-lee/cdk/coercion';
3
+ import { hasModifierKey, SPACE, ENTER } from '@kato-lee/cdk/keycodes';
4
+ import * as i0 from '@angular/core';
5
+ import {
6
+ Directive,
7
+ InjectionToken,
8
+ EventEmitter,
9
+ forwardRef,
10
+ TemplateRef,
11
+ Component,
12
+ ViewEncapsulation,
13
+ ChangeDetectionStrategy,
14
+ Inject,
15
+ Optional,
16
+ ContentChild,
17
+ ViewChild,
18
+ Input,
19
+ Output,
20
+ QueryList,
21
+ ContentChildren,
22
+ NgModule,
23
+ } from '@angular/core';
24
+ import { _getFocusedElementPierceShadowDom } from '@kato-lee/cdk/platform';
25
+ import { Subject, of } from 'rxjs';
26
+ import { startWith, takeUntil } from 'rxjs/operators';
27
+ import * as i1 from '@kato-lee/cdk/bidi';
28
+ import { BidiModule } from '@kato-lee/cdk/bidi';
29
+
30
+ /**
31
+ * @license
32
+ * Copyright Google LLC All Rights Reserved.
33
+ *
34
+ * Use of this source code is governed by an MIT-style license that can be
35
+ * found in the LICENSE file at https://angular.io/license
36
+ */
37
+ class CdkStepHeader {
38
+ constructor(_elementRef) {
39
+ this._elementRef = _elementRef;
40
+ }
41
+ /** Focuses the step header. */
42
+ focus() {
43
+ this._elementRef.nativeElement.focus();
44
+ }
45
+ }
46
+ CdkStepHeader.ɵfac = i0.ɵɵngDeclareFactory({
47
+ minVersion: '12.0.0',
48
+ version: '14.2.0',
49
+ ngImport: i0,
50
+ type: CdkStepHeader,
51
+ deps: [{ token: i0.ElementRef }],
52
+ target: i0.ɵɵFactoryTarget.Directive,
53
+ });
54
+ CdkStepHeader.ɵdir = i0.ɵɵngDeclareDirective({
55
+ minVersion: '14.0.0',
56
+ version: '14.2.0',
57
+ type: CdkStepHeader,
58
+ selector: '[cdkStepHeader]',
59
+ host: { attributes: { role: 'tab' } },
60
+ ngImport: i0,
61
+ });
62
+ i0.ɵɵngDeclareClassMetadata({
63
+ minVersion: '12.0.0',
64
+ version: '14.2.0',
65
+ ngImport: i0,
66
+ type: CdkStepHeader,
67
+ decorators: [
68
+ {
69
+ type: Directive,
70
+ args: [
71
+ {
72
+ selector: '[cdkStepHeader]',
73
+ host: {
74
+ role: 'tab',
75
+ },
76
+ },
77
+ ],
78
+ },
79
+ ],
80
+ ctorParameters: function () {
81
+ return [{ type: i0.ElementRef }];
82
+ },
83
+ });
84
+
85
+ /**
86
+ * @license
87
+ * Copyright Google LLC All Rights Reserved.
88
+ *
89
+ * Use of this source code is governed by an MIT-style license that can be
90
+ * found in the LICENSE file at https://angular.io/license
91
+ */
92
+ class CdkStepLabel {
93
+ constructor(/** @docs-private */ template) {
94
+ this.template = template;
95
+ }
96
+ }
97
+ CdkStepLabel.ɵfac = i0.ɵɵngDeclareFactory({
98
+ minVersion: '12.0.0',
99
+ version: '14.2.0',
100
+ ngImport: i0,
101
+ type: CdkStepLabel,
102
+ deps: [{ token: i0.TemplateRef }],
103
+ target: i0.ɵɵFactoryTarget.Directive,
104
+ });
105
+ CdkStepLabel.ɵdir = i0.ɵɵngDeclareDirective({
106
+ minVersion: '14.0.0',
107
+ version: '14.2.0',
108
+ type: CdkStepLabel,
109
+ selector: '[cdkStepLabel]',
110
+ ngImport: i0,
111
+ });
112
+ i0.ɵɵngDeclareClassMetadata({
113
+ minVersion: '12.0.0',
114
+ version: '14.2.0',
115
+ ngImport: i0,
116
+ type: CdkStepLabel,
117
+ decorators: [
118
+ {
119
+ type: Directive,
120
+ args: [
121
+ {
122
+ selector: '[cdkStepLabel]',
123
+ },
124
+ ],
125
+ },
126
+ ],
127
+ ctorParameters: function () {
128
+ return [{ type: i0.TemplateRef }];
129
+ },
130
+ });
131
+
132
+ /**
133
+ * @license
134
+ * Copyright Google LLC All Rights Reserved.
135
+ *
136
+ * Use of this source code is governed by an MIT-style license that can be
137
+ * found in the LICENSE file at https://angular.io/license
138
+ */
139
+ /** Used to generate unique ID for each stepper component. */
140
+ let nextId = 0;
141
+ /** Change event emitted on selection changes. */
142
+ class StepperSelectionEvent {}
143
+ /** Enum to represent the different states of the steps. */
144
+ const STEP_STATE = {
145
+ NUMBER: 'number',
146
+ EDIT: 'edit',
147
+ DONE: 'done',
148
+ ERROR: 'error',
149
+ };
150
+ /** InjectionToken that can be used to specify the global stepper options. */
151
+ const STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');
152
+ class CdkStep {
153
+ constructor(_stepper, stepperOptions) {
154
+ this._stepper = _stepper;
155
+ /** Whether user has attempted to move away from the step. */
156
+ this.interacted = false;
157
+ /** Emits when the user has attempted to move away from the step. */
158
+ this.interactedStream = new EventEmitter();
159
+ this._editable = true;
160
+ this._optional = false;
161
+ this._completedOverride = null;
162
+ this._customError = null;
163
+ this._stepperOptions = stepperOptions ? stepperOptions : {};
164
+ this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;
165
+ }
166
+ /** Whether the user can return to this step once it has been marked as completed. */
167
+ get editable() {
168
+ return this._editable;
169
+ }
170
+ set editable(value) {
171
+ this._editable = coerceBooleanProperty(value);
172
+ }
173
+ /** Whether the completion of step is optional. */
174
+ get optional() {
175
+ return this._optional;
176
+ }
177
+ set optional(value) {
178
+ this._optional = coerceBooleanProperty(value);
179
+ }
180
+ /** Whether step is marked as completed. */
181
+ get completed() {
182
+ return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;
183
+ }
184
+ set completed(value) {
185
+ this._completedOverride = coerceBooleanProperty(value);
186
+ }
187
+ _getDefaultCompleted() {
188
+ return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
189
+ }
190
+ /** Whether step has an error. */
191
+ get hasError() {
192
+ return this._customError == null ? this._getDefaultError() : this._customError;
193
+ }
194
+ set hasError(value) {
195
+ this._customError = coerceBooleanProperty(value);
196
+ }
197
+ _getDefaultError() {
198
+ return this.stepControl && this.stepControl.invalid && this.interacted;
199
+ }
200
+ /** Selects this step component. */
201
+ select() {
202
+ this._stepper.selected = this;
203
+ }
204
+ /** Resets the step to its initial state. Note that this includes resetting form data. */
205
+ reset() {
206
+ this.interacted = false;
207
+ if (this._completedOverride != null) {
208
+ this._completedOverride = false;
209
+ }
210
+ if (this._customError != null) {
211
+ this._customError = false;
212
+ }
213
+ if (this.stepControl) {
214
+ this.stepControl.reset();
215
+ }
216
+ }
217
+ ngOnChanges() {
218
+ // Since basically all inputs of the MatStep get proxied through the view down to the
219
+ // underlying MatStepHeader, we have to make sure that change detection runs correctly.
220
+ this._stepper._stateChanged();
221
+ }
222
+ _markAsInteracted() {
223
+ if (!this.interacted) {
224
+ this.interacted = true;
225
+ this.interactedStream.emit(this);
226
+ }
227
+ }
228
+ /** Determines whether the error state can be shown. */
229
+ _showError() {
230
+ var _a;
231
+ // We want to show the error state either if the user opted into/out of it using the
232
+ // global options, or if they've explicitly set it through the `hasError` input.
233
+ return (_a = this._stepperOptions.showError) !== null && _a !== void 0
234
+ ? _a
235
+ : this._customError != null;
236
+ }
237
+ }
238
+ CdkStep.ɵfac = i0.ɵɵngDeclareFactory({
239
+ minVersion: '12.0.0',
240
+ version: '14.2.0',
241
+ ngImport: i0,
242
+ type: CdkStep,
243
+ deps: [
244
+ { token: forwardRef(() => CdkStepper) },
245
+ { token: STEPPER_GLOBAL_OPTIONS, optional: true },
246
+ ],
247
+ target: i0.ɵɵFactoryTarget.Component,
248
+ });
249
+ CdkStep.ɵcmp = i0.ɵɵngDeclareComponent({
250
+ minVersion: '14.0.0',
251
+ version: '14.2.0',
252
+ type: CdkStep,
253
+ selector: 'cdk-step',
254
+ inputs: {
255
+ stepControl: 'stepControl',
256
+ label: 'label',
257
+ errorMessage: 'errorMessage',
258
+ ariaLabel: ['aria-label', 'ariaLabel'],
259
+ ariaLabelledby: ['aria-labelledby', 'ariaLabelledby'],
260
+ state: 'state',
261
+ editable: 'editable',
262
+ optional: 'optional',
263
+ completed: 'completed',
264
+ hasError: 'hasError',
265
+ },
266
+ outputs: { interactedStream: 'interacted' },
267
+ queries: [{ propertyName: 'stepLabel', first: true, predicate: CdkStepLabel, descendants: true }],
268
+ viewQueries: [
269
+ {
270
+ propertyName: 'content',
271
+ first: true,
272
+ predicate: TemplateRef,
273
+ descendants: true,
274
+ static: true,
275
+ },
276
+ ],
277
+ exportAs: ['cdkStep'],
278
+ usesOnChanges: true,
279
+ ngImport: i0,
280
+ template: '<ng-template><ng-content></ng-content></ng-template>',
281
+ isInline: true,
282
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
283
+ encapsulation: i0.ViewEncapsulation.None,
284
+ });
285
+ i0.ɵɵngDeclareClassMetadata({
286
+ minVersion: '12.0.0',
287
+ version: '14.2.0',
288
+ ngImport: i0,
289
+ type: CdkStep,
290
+ decorators: [
291
+ {
292
+ type: Component,
293
+ args: [
294
+ {
295
+ selector: 'cdk-step',
296
+ exportAs: 'cdkStep',
297
+ template: '<ng-template><ng-content></ng-content></ng-template>',
298
+ encapsulation: ViewEncapsulation.None,
299
+ changeDetection: ChangeDetectionStrategy.OnPush,
300
+ },
301
+ ],
302
+ },
303
+ ],
304
+ ctorParameters: function () {
305
+ return [
306
+ {
307
+ type: CdkStepper,
308
+ decorators: [
309
+ {
310
+ type: Inject,
311
+ args: [forwardRef(() => CdkStepper)],
312
+ },
313
+ ],
314
+ },
315
+ {
316
+ type: undefined,
317
+ decorators: [
318
+ {
319
+ type: Optional,
320
+ },
321
+ {
322
+ type: Inject,
323
+ args: [STEPPER_GLOBAL_OPTIONS],
324
+ },
325
+ ],
326
+ },
327
+ ];
328
+ },
329
+ propDecorators: {
330
+ stepLabel: [
331
+ {
332
+ type: ContentChild,
333
+ args: [CdkStepLabel],
334
+ },
335
+ ],
336
+ content: [
337
+ {
338
+ type: ViewChild,
339
+ args: [TemplateRef, { static: true }],
340
+ },
341
+ ],
342
+ stepControl: [
343
+ {
344
+ type: Input,
345
+ },
346
+ ],
347
+ interactedStream: [
348
+ {
349
+ type: Output,
350
+ args: ['interacted'],
351
+ },
352
+ ],
353
+ label: [
354
+ {
355
+ type: Input,
356
+ },
357
+ ],
358
+ errorMessage: [
359
+ {
360
+ type: Input,
361
+ },
362
+ ],
363
+ ariaLabel: [
364
+ {
365
+ type: Input,
366
+ args: ['aria-label'],
367
+ },
368
+ ],
369
+ ariaLabelledby: [
370
+ {
371
+ type: Input,
372
+ args: ['aria-labelledby'],
373
+ },
374
+ ],
375
+ state: [
376
+ {
377
+ type: Input,
378
+ },
379
+ ],
380
+ editable: [
381
+ {
382
+ type: Input,
383
+ },
384
+ ],
385
+ optional: [
386
+ {
387
+ type: Input,
388
+ },
389
+ ],
390
+ completed: [
391
+ {
392
+ type: Input,
393
+ },
394
+ ],
395
+ hasError: [
396
+ {
397
+ type: Input,
398
+ },
399
+ ],
400
+ },
401
+ });
402
+ class CdkStepper {
403
+ constructor(_dir, _changeDetectorRef, _elementRef) {
404
+ this._dir = _dir;
405
+ this._changeDetectorRef = _changeDetectorRef;
406
+ this._elementRef = _elementRef;
407
+ /** Emits when the component is destroyed. */
408
+ this._destroyed = new Subject();
409
+ /** Steps that belong to the current stepper, excluding ones from nested steppers. */
410
+ this.steps = new QueryList();
411
+ /** List of step headers sorted based on their DOM order. */
412
+ this._sortedHeaders = new QueryList();
413
+ this._linear = false;
414
+ this._selectedIndex = 0;
415
+ /** Event emitted when the selected step has changed. */
416
+ this.selectionChange = new EventEmitter();
417
+ this._orientation = 'horizontal';
418
+ this._groupId = nextId++;
419
+ }
420
+ /** Whether the validity of previous steps should be checked or not. */
421
+ get linear() {
422
+ return this._linear;
423
+ }
424
+ set linear(value) {
425
+ this._linear = coerceBooleanProperty(value);
426
+ }
427
+ /** The index of the selected step. */
428
+ get selectedIndex() {
429
+ return this._selectedIndex;
430
+ }
431
+ set selectedIndex(index) {
432
+ var _a;
433
+ const newIndex = coerceNumberProperty(index);
434
+ if (this.steps && this._steps) {
435
+ // Ensure that the index can't be out of bounds.
436
+ if (!this._isValidIndex(newIndex) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
437
+ throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');
438
+ }
439
+ (_a = this.selected) === null || _a === void 0 ? void 0 : _a._markAsInteracted();
440
+ if (
441
+ this._selectedIndex !== newIndex &&
442
+ !this._anyControlsInvalidOrPending(newIndex) &&
443
+ (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)
444
+ ) {
445
+ this._updateSelectedItemIndex(newIndex);
446
+ }
447
+ } else {
448
+ this._selectedIndex = newIndex;
449
+ }
450
+ }
451
+ /** The step that is selected. */
452
+ get selected() {
453
+ return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;
454
+ }
455
+ set selected(step) {
456
+ this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;
457
+ }
458
+ /** Orientation of the stepper. */
459
+ get orientation() {
460
+ return this._orientation;
461
+ }
462
+ set orientation(value) {
463
+ // This is a protected method so that `MatStepper` can hook into it.
464
+ this._orientation = value;
465
+ if (this._keyManager) {
466
+ this._keyManager.withVerticalOrientation(value === 'vertical');
467
+ }
468
+ }
469
+ ngAfterContentInit() {
470
+ this._steps.changes
471
+ .pipe(startWith(this._steps), takeUntil(this._destroyed))
472
+ .subscribe(steps => {
473
+ this.steps.reset(steps.filter(step => step._stepper === this));
474
+ this.steps.notifyOnChanges();
475
+ });
476
+ }
477
+ ngAfterViewInit() {
478
+ // If the step headers are defined outside of the `ngFor` that renders the steps, like in the
479
+ // Material stepper, they won't appear in the `QueryList` in the same order as they're
480
+ // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort
481
+ // them manually to ensure that they're correct. Alternatively, we can change the Material
482
+ // template to inline the headers in the `ngFor`, but that'll result in a lot of
483
+ // code duplication. See #23539.
484
+ this._stepHeader.changes
485
+ .pipe(startWith(this._stepHeader), takeUntil(this._destroyed))
486
+ .subscribe(headers => {
487
+ this._sortedHeaders.reset(
488
+ headers.toArray().sort((a, b) => {
489
+ const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(
490
+ b._elementRef.nativeElement
491
+ );
492
+ // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
493
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
494
+ // tslint:disable-next-line:no-bitwise
495
+ return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
496
+ })
497
+ );
498
+ this._sortedHeaders.notifyOnChanges();
499
+ });
500
+ // Note that while the step headers are content children by default, any components that
501
+ // extend this one might have them as view children. We initialize the keyboard handling in
502
+ // AfterViewInit so we're guaranteed for both view and content children to be defined.
503
+ this._keyManager = new FocusKeyManager(this._sortedHeaders)
504
+ .withWrap()
505
+ .withHomeAndEnd()
506
+ .withVerticalOrientation(this._orientation === 'vertical');
507
+ (this._dir ? this._dir.change : of())
508
+ .pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))
509
+ .subscribe(direction => this._keyManager.withHorizontalOrientation(direction));
510
+ this._keyManager.updateActiveItem(this._selectedIndex);
511
+ // No need to `takeUntil` here, because we're the ones destroying `steps`.
512
+ this.steps.changes.subscribe(() => {
513
+ if (!this.selected) {
514
+ this._selectedIndex = Math.max(this._selectedIndex - 1, 0);
515
+ }
516
+ });
517
+ // The logic which asserts that the selected index is within bounds doesn't run before the
518
+ // steps are initialized, because we don't how many steps there are yet so we may have an
519
+ // invalid index on init. If that's the case, auto-correct to the default so we don't throw.
520
+ if (!this._isValidIndex(this._selectedIndex)) {
521
+ this._selectedIndex = 0;
522
+ }
523
+ }
524
+ ngOnDestroy() {
525
+ this.steps.destroy();
526
+ this._sortedHeaders.destroy();
527
+ this._destroyed.next();
528
+ this._destroyed.complete();
529
+ }
530
+ /** Selects and focuses the next step in list. */
531
+ next() {
532
+ this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);
533
+ }
534
+ /** Selects and focuses the previous step in list. */
535
+ previous() {
536
+ this.selectedIndex = Math.max(this._selectedIndex - 1, 0);
537
+ }
538
+ /** Resets the stepper to its initial state. Note that this includes clearing form data. */
539
+ reset() {
540
+ this._updateSelectedItemIndex(0);
541
+ this.steps.forEach(step => step.reset());
542
+ this._stateChanged();
543
+ }
544
+ /** Returns a unique id for each step label element. */
545
+ _getStepLabelId(i) {
546
+ return `cdk-step-label-${this._groupId}-${i}`;
547
+ }
548
+ /** Returns unique id for each step content element. */
549
+ _getStepContentId(i) {
550
+ return `cdk-step-content-${this._groupId}-${i}`;
551
+ }
552
+ /** Marks the component to be change detected. */
553
+ _stateChanged() {
554
+ this._changeDetectorRef.markForCheck();
555
+ }
556
+ /** Returns position state of the step with the given index. */
557
+ _getAnimationDirection(index) {
558
+ const position = index - this._selectedIndex;
559
+ if (position < 0) {
560
+ return this._layoutDirection() === 'rtl' ? 'next' : 'previous';
561
+ } else if (position > 0) {
562
+ return this._layoutDirection() === 'rtl' ? 'previous' : 'next';
563
+ }
564
+ return 'current';
565
+ }
566
+ /** Returns the type of icon to be displayed. */
567
+ _getIndicatorType(index, state = STEP_STATE.NUMBER) {
568
+ const step = this.steps.toArray()[index];
569
+ const isCurrentStep = this._isCurrentStep(index);
570
+ return step._displayDefaultIndicatorType
571
+ ? this._getDefaultIndicatorLogic(step, isCurrentStep)
572
+ : this._getGuidelineLogic(step, isCurrentStep, state);
573
+ }
574
+ _getDefaultIndicatorLogic(step, isCurrentStep) {
575
+ if (step._showError() && step.hasError && !isCurrentStep) {
576
+ return STEP_STATE.ERROR;
577
+ } else if (!step.completed || isCurrentStep) {
578
+ return STEP_STATE.NUMBER;
579
+ } else {
580
+ return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;
581
+ }
582
+ }
583
+ _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {
584
+ if (step._showError() && step.hasError && !isCurrentStep) {
585
+ return STEP_STATE.ERROR;
586
+ } else if (step.completed && !isCurrentStep) {
587
+ return STEP_STATE.DONE;
588
+ } else if (step.completed && isCurrentStep) {
589
+ return state;
590
+ } else if (step.editable && isCurrentStep) {
591
+ return STEP_STATE.EDIT;
592
+ } else {
593
+ return state;
594
+ }
595
+ }
596
+ _isCurrentStep(index) {
597
+ return this._selectedIndex === index;
598
+ }
599
+ /** Returns the index of the currently-focused step header. */
600
+ _getFocusIndex() {
601
+ return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;
602
+ }
603
+ _updateSelectedItemIndex(newIndex) {
604
+ const stepsArray = this.steps.toArray();
605
+ this.selectionChange.emit({
606
+ selectedIndex: newIndex,
607
+ previouslySelectedIndex: this._selectedIndex,
608
+ selectedStep: stepsArray[newIndex],
609
+ previouslySelectedStep: stepsArray[this._selectedIndex],
610
+ });
611
+ // If focus is inside the stepper, move it to the next header, otherwise it may become
612
+ // lost when the active step content is hidden. We can't be more granular with the check
613
+ // (e.g. checking whether focus is inside the active step), because we don't have a
614
+ // reference to the elements that are rendering out the content.
615
+ this._containsFocus()
616
+ ? this._keyManager.setActiveItem(newIndex)
617
+ : this._keyManager.updateActiveItem(newIndex);
618
+ this._selectedIndex = newIndex;
619
+ this._stateChanged();
620
+ }
621
+ _onKeydown(event) {
622
+ const hasModifier = hasModifierKey(event);
623
+ const keyCode = event.keyCode;
624
+ const manager = this._keyManager;
625
+ if (
626
+ manager.activeItemIndex != null &&
627
+ !hasModifier &&
628
+ (keyCode === SPACE || keyCode === ENTER)
629
+ ) {
630
+ this.selectedIndex = manager.activeItemIndex;
631
+ event.preventDefault();
632
+ } else {
633
+ manager.onKeydown(event);
634
+ }
635
+ }
636
+ _anyControlsInvalidOrPending(index) {
637
+ if (this._linear && index >= 0) {
638
+ return this.steps
639
+ .toArray()
640
+ .slice(0, index)
641
+ .some(step => {
642
+ const control = step.stepControl;
643
+ const isIncomplete = control
644
+ ? control.invalid || control.pending || !step.interacted
645
+ : !step.completed;
646
+ return isIncomplete && !step.optional && !step._completedOverride;
647
+ });
648
+ }
649
+ return false;
650
+ }
651
+ _layoutDirection() {
652
+ return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
653
+ }
654
+ /** Checks whether the stepper contains the focused element. */
655
+ _containsFocus() {
656
+ const stepperElement = this._elementRef.nativeElement;
657
+ const focusedElement = _getFocusedElementPierceShadowDom();
658
+ return stepperElement === focusedElement || stepperElement.contains(focusedElement);
659
+ }
660
+ /** Checks whether the passed-in index is a valid step index. */
661
+ _isValidIndex(index) {
662
+ return index > -1 && (!this.steps || index < this.steps.length);
663
+ }
664
+ }
665
+ CdkStepper.ɵfac = i0.ɵɵngDeclareFactory({
666
+ minVersion: '12.0.0',
667
+ version: '14.2.0',
668
+ ngImport: i0,
669
+ type: CdkStepper,
670
+ deps: [
671
+ { token: i1.Directionality, optional: true },
672
+ { token: i0.ChangeDetectorRef },
673
+ { token: i0.ElementRef },
674
+ ],
675
+ target: i0.ɵɵFactoryTarget.Directive,
676
+ });
677
+ CdkStepper.ɵdir = i0.ɵɵngDeclareDirective({
678
+ minVersion: '14.0.0',
679
+ version: '14.2.0',
680
+ type: CdkStepper,
681
+ selector: '[cdkStepper]',
682
+ inputs: {
683
+ linear: 'linear',
684
+ selectedIndex: 'selectedIndex',
685
+ selected: 'selected',
686
+ orientation: 'orientation',
687
+ },
688
+ outputs: { selectionChange: 'selectionChange' },
689
+ queries: [
690
+ { propertyName: '_steps', predicate: CdkStep, descendants: true },
691
+ { propertyName: '_stepHeader', predicate: CdkStepHeader, descendants: true },
692
+ ],
693
+ exportAs: ['cdkStepper'],
694
+ ngImport: i0,
695
+ });
696
+ i0.ɵɵngDeclareClassMetadata({
697
+ minVersion: '12.0.0',
698
+ version: '14.2.0',
699
+ ngImport: i0,
700
+ type: CdkStepper,
701
+ decorators: [
702
+ {
703
+ type: Directive,
704
+ args: [
705
+ {
706
+ selector: '[cdkStepper]',
707
+ exportAs: 'cdkStepper',
708
+ },
709
+ ],
710
+ },
711
+ ],
712
+ ctorParameters: function () {
713
+ return [
714
+ {
715
+ type: i1.Directionality,
716
+ decorators: [
717
+ {
718
+ type: Optional,
719
+ },
720
+ ],
721
+ },
722
+ { type: i0.ChangeDetectorRef },
723
+ { type: i0.ElementRef },
724
+ ];
725
+ },
726
+ propDecorators: {
727
+ _steps: [
728
+ {
729
+ type: ContentChildren,
730
+ args: [CdkStep, { descendants: true }],
731
+ },
732
+ ],
733
+ _stepHeader: [
734
+ {
735
+ type: ContentChildren,
736
+ args: [CdkStepHeader, { descendants: true }],
737
+ },
738
+ ],
739
+ linear: [
740
+ {
741
+ type: Input,
742
+ },
743
+ ],
744
+ selectedIndex: [
745
+ {
746
+ type: Input,
747
+ },
748
+ ],
749
+ selected: [
750
+ {
751
+ type: Input,
752
+ },
753
+ ],
754
+ selectionChange: [
755
+ {
756
+ type: Output,
757
+ },
758
+ ],
759
+ orientation: [
760
+ {
761
+ type: Input,
762
+ },
763
+ ],
764
+ },
765
+ });
766
+
767
+ /**
768
+ * @license
769
+ * Copyright Google LLC All Rights Reserved.
770
+ *
771
+ * Use of this source code is governed by an MIT-style license that can be
772
+ * found in the LICENSE file at https://angular.io/license
773
+ */
774
+ /** Button that moves to the next step in a stepper workflow. */
775
+ class CdkStepperNext {
776
+ constructor(_stepper) {
777
+ this._stepper = _stepper;
778
+ /** Type of the next button. Defaults to "submit" if not specified. */
779
+ this.type = 'submit';
780
+ }
781
+ }
782
+ CdkStepperNext.ɵfac = i0.ɵɵngDeclareFactory({
783
+ minVersion: '12.0.0',
784
+ version: '14.2.0',
785
+ ngImport: i0,
786
+ type: CdkStepperNext,
787
+ deps: [{ token: CdkStepper }],
788
+ target: i0.ɵɵFactoryTarget.Directive,
789
+ });
790
+ CdkStepperNext.ɵdir = i0.ɵɵngDeclareDirective({
791
+ minVersion: '14.0.0',
792
+ version: '14.2.0',
793
+ type: CdkStepperNext,
794
+ selector: 'button[cdkStepperNext]',
795
+ inputs: { type: 'type' },
796
+ host: { listeners: { click: '_stepper.next()' }, properties: { type: 'type' } },
797
+ ngImport: i0,
798
+ });
799
+ i0.ɵɵngDeclareClassMetadata({
800
+ minVersion: '12.0.0',
801
+ version: '14.2.0',
802
+ ngImport: i0,
803
+ type: CdkStepperNext,
804
+ decorators: [
805
+ {
806
+ type: Directive,
807
+ args: [
808
+ {
809
+ selector: 'button[cdkStepperNext]',
810
+ host: {
811
+ '[type]': 'type',
812
+ '(click)': '_stepper.next()',
813
+ },
814
+ },
815
+ ],
816
+ },
817
+ ],
818
+ ctorParameters: function () {
819
+ return [{ type: CdkStepper }];
820
+ },
821
+ propDecorators: {
822
+ type: [
823
+ {
824
+ type: Input,
825
+ },
826
+ ],
827
+ },
828
+ });
829
+ /** Button that moves to the previous step in a stepper workflow. */
830
+ class CdkStepperPrevious {
831
+ constructor(_stepper) {
832
+ this._stepper = _stepper;
833
+ /** Type of the previous button. Defaults to "button" if not specified. */
834
+ this.type = 'button';
835
+ }
836
+ }
837
+ CdkStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({
838
+ minVersion: '12.0.0',
839
+ version: '14.2.0',
840
+ ngImport: i0,
841
+ type: CdkStepperPrevious,
842
+ deps: [{ token: CdkStepper }],
843
+ target: i0.ɵɵFactoryTarget.Directive,
844
+ });
845
+ CdkStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({
846
+ minVersion: '14.0.0',
847
+ version: '14.2.0',
848
+ type: CdkStepperPrevious,
849
+ selector: 'button[cdkStepperPrevious]',
850
+ inputs: { type: 'type' },
851
+ host: { listeners: { click: '_stepper.previous()' }, properties: { type: 'type' } },
852
+ ngImport: i0,
853
+ });
854
+ i0.ɵɵngDeclareClassMetadata({
855
+ minVersion: '12.0.0',
856
+ version: '14.2.0',
857
+ ngImport: i0,
858
+ type: CdkStepperPrevious,
859
+ decorators: [
860
+ {
861
+ type: Directive,
862
+ args: [
863
+ {
864
+ selector: 'button[cdkStepperPrevious]',
865
+ host: {
866
+ '[type]': 'type',
867
+ '(click)': '_stepper.previous()',
868
+ },
869
+ },
870
+ ],
871
+ },
872
+ ],
873
+ ctorParameters: function () {
874
+ return [{ type: CdkStepper }];
875
+ },
876
+ propDecorators: {
877
+ type: [
878
+ {
879
+ type: Input,
880
+ },
881
+ ],
882
+ },
883
+ });
884
+
885
+ /**
886
+ * @license
887
+ * Copyright Google LLC All Rights Reserved.
888
+ *
889
+ * Use of this source code is governed by an MIT-style license that can be
890
+ * found in the LICENSE file at https://angular.io/license
891
+ */
892
+ class CdkStepperModule {}
893
+ CdkStepperModule.ɵfac = i0.ɵɵngDeclareFactory({
894
+ minVersion: '12.0.0',
895
+ version: '14.2.0',
896
+ ngImport: i0,
897
+ type: CdkStepperModule,
898
+ deps: [],
899
+ target: i0.ɵɵFactoryTarget.NgModule,
900
+ });
901
+ CdkStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({
902
+ minVersion: '14.0.0',
903
+ version: '14.2.0',
904
+ ngImport: i0,
905
+ type: CdkStepperModule,
906
+ declarations: [
907
+ CdkStep,
908
+ CdkStepper,
909
+ CdkStepHeader,
910
+ CdkStepLabel,
911
+ CdkStepperNext,
912
+ CdkStepperPrevious,
913
+ ],
914
+ imports: [BidiModule],
915
+ exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
916
+ });
917
+ CdkStepperModule.ɵinj = i0.ɵɵngDeclareInjector({
918
+ minVersion: '12.0.0',
919
+ version: '14.2.0',
920
+ ngImport: i0,
921
+ type: CdkStepperModule,
922
+ imports: [BidiModule],
923
+ });
924
+ i0.ɵɵngDeclareClassMetadata({
925
+ minVersion: '12.0.0',
926
+ version: '14.2.0',
927
+ ngImport: i0,
928
+ type: CdkStepperModule,
929
+ decorators: [
930
+ {
931
+ type: NgModule,
932
+ args: [
933
+ {
934
+ imports: [BidiModule],
935
+ exports: [
936
+ CdkStep,
937
+ CdkStepper,
938
+ CdkStepHeader,
939
+ CdkStepLabel,
940
+ CdkStepperNext,
941
+ CdkStepperPrevious,
942
+ ],
943
+ declarations: [
944
+ CdkStep,
945
+ CdkStepper,
946
+ CdkStepHeader,
947
+ CdkStepLabel,
948
+ CdkStepperNext,
949
+ CdkStepperPrevious,
950
+ ],
951
+ },
952
+ ],
953
+ },
954
+ ],
955
+ });
956
+
957
+ /**
958
+ * @license
959
+ * Copyright Google LLC All Rights Reserved.
960
+ *
961
+ * Use of this source code is governed by an MIT-style license that can be
962
+ * found in the LICENSE file at https://angular.io/license
963
+ */
964
+
965
+ /**
966
+ * @license
967
+ * Copyright Google LLC All Rights Reserved.
968
+ *
969
+ * Use of this source code is governed by an MIT-style license that can be
970
+ * found in the LICENSE file at https://angular.io/license
971
+ */
972
+
973
+ /**
974
+ * Generated bundle index. Do not edit.
975
+ */
976
+
977
+ export {
978
+ CdkStep,
979
+ CdkStepHeader,
980
+ CdkStepLabel,
981
+ CdkStepper,
982
+ CdkStepperModule,
983
+ CdkStepperNext,
984
+ CdkStepperPrevious,
985
+ STEPPER_GLOBAL_OPTIONS,
986
+ STEP_STATE,
987
+ StepperSelectionEvent,
988
+ };
989
+ //# sourceMappingURL=stepper.mjs.map