@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,469 @@
1
+ import { BasePortalOutlet } from '@kato-lee/cdk/portal';
2
+ import { CdkPortalOutlet } from '@kato-lee/cdk/portal';
3
+ import { ComponentFactoryResolver } from '@angular/core';
4
+ import { ComponentPortal } from '@kato-lee/cdk/portal';
5
+ import { ComponentRef } from '@angular/core';
6
+ import { ComponentType } from '@kato-lee/cdk/overlay';
7
+ import { Direction } from '@kato-lee/cdk/bidi';
8
+ import { DomPortal } from '@kato-lee/cdk/portal';
9
+ import { ElementRef } from '@angular/core';
10
+ import { EmbeddedViewRef } from '@angular/core';
11
+ import { FocusMonitor } from '@kato-lee/cdk/a11y';
12
+ import { FocusOrigin } from '@kato-lee/cdk/a11y';
13
+ import { FocusTrapFactory } from '@kato-lee/cdk/a11y';
14
+ import * as i0 from '@angular/core';
15
+ import * as i2 from '@kato-lee/cdk/overlay';
16
+ import * as i3 from '@kato-lee/cdk/portal';
17
+ import * as i4 from '@kato-lee/cdk/a11y';
18
+ import { InjectionToken } from '@angular/core';
19
+ import { Injector } from '@angular/core';
20
+ import { InteractivityChecker } from '@kato-lee/cdk/a11y';
21
+ import { NgZone } from '@angular/core';
22
+ import { Observable } from 'rxjs';
23
+ import { OnDestroy } from '@angular/core';
24
+ import { Overlay } from '@kato-lee/cdk/overlay';
25
+ import { OverlayContainer } from '@kato-lee/cdk/overlay';
26
+ import { OverlayRef } from '@kato-lee/cdk/overlay';
27
+ import { PositionStrategy } from '@kato-lee/cdk/overlay';
28
+ import { ScrollStrategy } from '@kato-lee/cdk/overlay';
29
+ import { StaticProvider } from '@angular/core';
30
+ import { Subject } from 'rxjs';
31
+ import { TemplatePortal } from '@kato-lee/cdk/portal';
32
+ import { TemplateRef } from '@angular/core';
33
+ import { Type } from '@angular/core';
34
+ import { ViewContainerRef } from '@angular/core';
35
+
36
+ /** Options for where to set focus to automatically on dialog open */
37
+ export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
38
+
39
+ /**
40
+ * Internal component that wraps user-provided dialog content.
41
+ * @docs-private
42
+ */
43
+ export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig>
44
+ extends BasePortalOutlet
45
+ implements OnDestroy
46
+ {
47
+ protected _elementRef: ElementRef;
48
+ protected _focusTrapFactory: FocusTrapFactory;
49
+ readonly _config: C;
50
+ private _interactivityChecker;
51
+ private _ngZone;
52
+ private _overlayRef;
53
+ private _focusMonitor?;
54
+ protected _document: Document;
55
+ /** The portal outlet inside of this container into which the dialog content will be loaded. */
56
+ _portalOutlet: CdkPortalOutlet;
57
+ /** The class that traps and manages focus within the dialog. */
58
+ private _focusTrap;
59
+ /** Element that was focused before the dialog was opened. Save this to restore upon close. */
60
+ private _elementFocusedBeforeDialogWasOpened;
61
+ /**
62
+ * Type of interaction that led to the dialog being closed. This is used to determine
63
+ * whether the focus style will be applied when returning focus to its original location
64
+ * after the dialog is closed.
65
+ */
66
+ _closeInteractionType: FocusOrigin | null;
67
+ /** ID of the element that should be considered as the dialog's label. */
68
+ _ariaLabelledBy: string | null;
69
+ constructor(
70
+ _elementRef: ElementRef,
71
+ _focusTrapFactory: FocusTrapFactory,
72
+ _document: any,
73
+ _config: C,
74
+ _interactivityChecker: InteractivityChecker,
75
+ _ngZone: NgZone,
76
+ _overlayRef: OverlayRef,
77
+ _focusMonitor?: FocusMonitor | undefined
78
+ );
79
+ protected _contentAttached(): void;
80
+ /**
81
+ * Can be used by child classes to customize the initial focus
82
+ * capturing behavior (e.g. if it's tied to an animation).
83
+ */
84
+ protected _captureInitialFocus(): void;
85
+ ngOnDestroy(): void;
86
+ /**
87
+ * Attach a ComponentPortal as content to this dialog container.
88
+ * @param portal Portal to be attached as the dialog content.
89
+ */
90
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
91
+ /**
92
+ * Attach a TemplatePortal as content to this dialog container.
93
+ * @param portal Portal to be attached as the dialog content.
94
+ */
95
+ attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
96
+ /**
97
+ * Attaches a DOM portal to the dialog container.
98
+ * @param portal Portal to be attached.
99
+ * @deprecated To be turned into a method.
100
+ * @breaking-change 10.0.0
101
+ */
102
+ attachDomPortal: (portal: DomPortal) => void;
103
+ /** Captures focus if it isn't already inside the dialog. */
104
+ _recaptureFocus(): void;
105
+ /**
106
+ * Focuses the provided element. If the element is not focusable, it will add a tabIndex
107
+ * attribute to forcefully focus it. The attribute is removed after focus is moved.
108
+ * @param element The element to focus.
109
+ */
110
+ private _forceFocus;
111
+ /**
112
+ * Focuses the first element that matches the given selector within the focus trap.
113
+ * @param selector The CSS selector for the element to set focus to.
114
+ */
115
+ private _focusByCssSelector;
116
+ /**
117
+ * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
118
+ * cannot be moved then focus will go to the dialog container.
119
+ */
120
+ protected _trapFocus(): void;
121
+ /** Restores focus to the element that was focused before the dialog opened. */
122
+ private _restoreFocus;
123
+ /** Focuses the dialog container. */
124
+ private _focusDialogContainer;
125
+ /** Returns whether focus is inside the dialog. */
126
+ private _containsFocus;
127
+ /** Sets up the focus trap. */
128
+ private _initializeFocusTrap;
129
+ /** Sets up the listener that handles clicks on the dialog backdrop. */
130
+ private _handleBackdropClicks;
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<
132
+ CdkDialogContainer<any>,
133
+ [null, null, { optional: true }, null, null, null, null, null]
134
+ >;
135
+ static ɵcmp: i0.ɵɵComponentDeclaration<
136
+ CdkDialogContainer<any>,
137
+ 'cdk-dialog-container',
138
+ never,
139
+ {},
140
+ {},
141
+ never,
142
+ never,
143
+ false
144
+ >;
145
+ }
146
+
147
+ /** Injection token that can be used to provide default options for the dialog module. */
148
+ export declare const DEFAULT_DIALOG_CONFIG: InjectionToken<
149
+ DialogConfig<unknown, unknown, BasePortalOutlet>
150
+ >;
151
+
152
+ export declare class Dialog implements OnDestroy {
153
+ private _overlay;
154
+ private _injector;
155
+ private _defaultOptions;
156
+ private _parentDialog;
157
+ private _overlayContainer;
158
+ private _openDialogsAtThisLevel;
159
+ private readonly _afterAllClosedAtThisLevel;
160
+ private readonly _afterOpenedAtThisLevel;
161
+ private _ariaHiddenElements;
162
+ private _scrollStrategy;
163
+ /** Keeps track of the currently-open dialogs. */
164
+ get openDialogs(): readonly DialogRef<any, any>[];
165
+ /** Stream that emits when a dialog has been opened. */
166
+ get afterOpened(): Subject<DialogRef<any, any>>;
167
+ /**
168
+ * Stream that emits when all open dialog have finished closing.
169
+ * Will emit on subscribe if there are no open dialogs to begin with.
170
+ */
171
+ readonly afterAllClosed: Observable<void>;
172
+ constructor(
173
+ _overlay: Overlay,
174
+ _injector: Injector,
175
+ _defaultOptions: DialogConfig,
176
+ _parentDialog: Dialog,
177
+ _overlayContainer: OverlayContainer,
178
+ scrollStrategy: any
179
+ );
180
+ /**
181
+ * Opens a modal dialog containing the given component.
182
+ * @param component Type of the component to load into the dialog.
183
+ * @param config Extra configuration options.
184
+ * @returns Reference to the newly-opened dialog.
185
+ */
186
+ open<R = unknown, D = unknown, C = unknown>(
187
+ component: ComponentType<C>,
188
+ config?: DialogConfig<D, DialogRef<R, C>>
189
+ ): DialogRef<R, C>;
190
+ /**
191
+ * Opens a modal dialog containing the given template.
192
+ * @param template TemplateRef to instantiate as the dialog content.
193
+ * @param config Extra configuration options.
194
+ * @returns Reference to the newly-opened dialog.
195
+ */
196
+ open<R = unknown, D = unknown, C = unknown>(
197
+ template: TemplateRef<C>,
198
+ config?: DialogConfig<D, DialogRef<R, C>>
199
+ ): DialogRef<R, C>;
200
+ open<R = unknown, D = unknown, C = unknown>(
201
+ componentOrTemplateRef: ComponentType<C> | TemplateRef<C>,
202
+ config?: DialogConfig<D, DialogRef<R, C>>
203
+ ): DialogRef<R, C>;
204
+ /**
205
+ * Closes all of the currently-open dialogs.
206
+ */
207
+ closeAll(): void;
208
+ /**
209
+ * Finds an open dialog by its id.
210
+ * @param id ID to use when looking up the dialog.
211
+ */
212
+ getDialogById<R, C>(id: string): DialogRef<R, C> | undefined;
213
+ ngOnDestroy(): void;
214
+ /**
215
+ * Creates an overlay config from a dialog config.
216
+ * @param config The dialog configuration.
217
+ * @returns The overlay configuration.
218
+ */
219
+ private _getOverlayConfig;
220
+ /**
221
+ * Attaches a dialog container to a dialog's already-created overlay.
222
+ * @param overlay Reference to the dialog's underlying overlay.
223
+ * @param config The dialog configuration.
224
+ * @returns A promise resolving to a ComponentRef for the attached container.
225
+ */
226
+ private _attachContainer;
227
+ /**
228
+ * Attaches the user-provided component to the already-created dialog container.
229
+ * @param componentOrTemplateRef The type of component being loaded into the dialog,
230
+ * or a TemplateRef to instantiate as the content.
231
+ * @param dialogRef Reference to the dialog being opened.
232
+ * @param dialogContainer Component that is going to wrap the dialog content.
233
+ * @param config Configuration used to open the dialog.
234
+ */
235
+ private _attachDialogContent;
236
+ /**
237
+ * Creates a custom injector to be used inside the dialog. This allows a component loaded inside
238
+ * of a dialog to close itself and, optionally, to return a value.
239
+ * @param config Config object that is used to construct the dialog.
240
+ * @param dialogRef Reference to the dialog being opened.
241
+ * @param dialogContainer Component that is going to wrap the dialog content.
242
+ * @param fallbackInjector Injector to use as a fallback when a lookup fails in the custom
243
+ * dialog injector, if the user didn't provide a custom one.
244
+ * @returns The custom injector that can be used inside the dialog.
245
+ */
246
+ private _createInjector;
247
+ /**
248
+ * Removes a dialog from the array of open dialogs.
249
+ * @param dialogRef Dialog to be removed.
250
+ * @param emitEvent Whether to emit an event if this is the last dialog.
251
+ */
252
+ private _removeOpenDialog;
253
+ /** Hides all of the content that isn't an overlay from assistive technology. */
254
+ private _hideNonDialogContentFromAssistiveTechnology;
255
+ private _getAfterAllClosed;
256
+ static ɵfac: i0.ɵɵFactoryDeclaration<
257
+ Dialog,
258
+ [null, null, { optional: true }, { optional: true; skipSelf: true }, null, null]
259
+ >;
260
+ static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
261
+ }
262
+
263
+ /** Injection token for the Dialog's Data. */
264
+ export declare const DIALOG_DATA: InjectionToken<any>;
265
+
266
+ /** Injection token for the Dialog's ScrollStrategy. */
267
+ export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
268
+
269
+ /** @docs-private */
270
+ export declare const DIALOG_SCROLL_STRATEGY_PROVIDER: {
271
+ provide: InjectionToken<() => ScrollStrategy>;
272
+ deps: (typeof Overlay)[];
273
+ useFactory: typeof DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
274
+ };
275
+
276
+ /** @docs-private */
277
+ export declare function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(
278
+ overlay: Overlay
279
+ ): () => ScrollStrategy;
280
+
281
+ /** Additional options that can be passed in when closing a dialog. */
282
+ export declare interface DialogCloseOptions {
283
+ /** Focus original to use when restoring focus. */
284
+ focusOrigin?: FocusOrigin;
285
+ }
286
+
287
+ /** Configuration for opening a modal dialog. */
288
+ export declare class DialogConfig<
289
+ D = unknown,
290
+ R = unknown,
291
+ C extends BasePortalOutlet = BasePortalOutlet,
292
+ > {
293
+ /**
294
+ * Where the attached component should live in Angular's *logical* component tree.
295
+ * This affects what is available for injection and the change detection order for the
296
+ * component instantiated inside of the dialog. This does not affect where the dialog
297
+ * content will be rendered.
298
+ */
299
+ viewContainerRef?: ViewContainerRef;
300
+ /**
301
+ * Injector used for the instantiation of the component to be attached. If provided,
302
+ * takes precedence over the injector indirectly provided by `ViewContainerRef`.
303
+ */
304
+ injector?: Injector;
305
+ /** ID for the dialog. If omitted, a unique one will be generated. */
306
+ id?: string;
307
+ /** The ARIA role of the dialog element. */
308
+ role?: DialogRole;
309
+ /** Optional CSS class or classes applied to the overlay panel. */
310
+ panelClass?: string | string[];
311
+ /** Whether the dialog has a backdrop. */
312
+ hasBackdrop?: boolean;
313
+ /** Optional CSS class or classes applied to the overlay backdrop. */
314
+ backdropClass?: string | string[];
315
+ /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
316
+ disableClose?: boolean;
317
+ /** Width of the dialog. */
318
+ width?: string;
319
+ /** Height of the dialog. */
320
+ height?: string;
321
+ /** Min-width of the dialog. If a number is provided, assumes pixel units. */
322
+ minWidth?: number | string;
323
+ /** Min-height of the dialog. If a number is provided, assumes pixel units. */
324
+ minHeight?: number | string;
325
+ /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
326
+ maxWidth?: number | string;
327
+ /** Max-height of the dialog. If a number is provided, assumes pixel units. */
328
+ maxHeight?: number | string;
329
+ /** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
330
+ positionStrategy?: PositionStrategy;
331
+ /** Data being injected into the child component. */
332
+ data?: D | null;
333
+ /** Layout direction for the dialog's content. */
334
+ direction?: Direction;
335
+ /** ID of the element that describes the dialog. */
336
+ ariaDescribedBy?: string | null;
337
+ /** ID of the element that labels the dialog. */
338
+ ariaLabelledBy?: string | null;
339
+ /** Dialog label applied via `aria-label` */
340
+ ariaLabel?: string | null;
341
+ /** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */
342
+ ariaModal?: boolean;
343
+ /**
344
+ * Where the dialog should focus on open.
345
+ * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
346
+ * AutoFocusTarget instead.
347
+ */
348
+ autoFocus?: AutoFocusTarget | string | boolean;
349
+ /**
350
+ * Whether the dialog should restore focus to the previously-focused element upon closing.
351
+ * Has the following behavior based on the type that is passed in:
352
+ * - `boolean` - when true, will return focus to the element that was focused before the dialog
353
+ * was opened, otherwise won't restore focus at all.
354
+ * - `string` - focus will be restored to the first element that matches the CSS selector.
355
+ * - `HTMLElement` - focus will be restored to the specific element.
356
+ */
357
+ restoreFocus?: boolean | string | HTMLElement;
358
+ /**
359
+ * Scroll strategy to be used for the dialog. This determines how
360
+ * the dialog responds to scrolling underneath the panel element.
361
+ */
362
+ scrollStrategy?: ScrollStrategy;
363
+ /**
364
+ * Whether the dialog should close when the user navigates backwards or forwards through browser
365
+ * history. This does not apply to navigation via anchor element unless using URL-hash based
366
+ * routing (`HashLocationStrategy` in the Angular router).
367
+ */
368
+ closeOnNavigation?: boolean;
369
+ /**
370
+ * Whether the dialog should close when the dialog service is destroyed. This is useful if
371
+ * another service is wrapping the dialog and is managing the destruction instead.
372
+ */
373
+ closeOnDestroy?: boolean;
374
+ /** Alternate `ComponentFactoryResolver` to use when resolving the associated component. */
375
+ componentFactoryResolver?: ComponentFactoryResolver;
376
+ /**
377
+ * Providers that will be exposed to the contents of the dialog. Can also
378
+ * be provided as a function in order to generate the providers lazily.
379
+ */
380
+ providers?:
381
+ | StaticProvider[]
382
+ | ((dialogRef: R, config: DialogConfig<D, R, C>, container: C) => StaticProvider[]);
383
+ /**
384
+ * Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
385
+ * A configuration object can be passed in to customize the providers that will be exposed
386
+ * to the dialog container.
387
+ */
388
+ container?:
389
+ | Type<C>
390
+ | {
391
+ type: Type<C>;
392
+ providers: (config: DialogConfig<D, R, C>) => StaticProvider[];
393
+ };
394
+ /**
395
+ * Context that will be passed to template-based dialogs.
396
+ * A function can be passed in to resolve the context lazily.
397
+ */
398
+ templateContext?: Record<string, any> | (() => Record<string, any>);
399
+ }
400
+
401
+ export declare class DialogModule {
402
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
403
+ static ɵmod: i0.ɵɵNgModuleDeclaration<
404
+ DialogModule,
405
+ [typeof i1.CdkDialogContainer],
406
+ [typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.A11yModule],
407
+ [typeof i3.PortalModule, typeof i1.CdkDialogContainer]
408
+ >;
409
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
410
+ }
411
+
412
+ /**
413
+ * Reference to a dialog opened via the Dialog service.
414
+ */
415
+ export declare class DialogRef<R = unknown, C = unknown> {
416
+ readonly overlayRef: OverlayRef;
417
+ readonly config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>;
418
+ /**
419
+ * Instance of component opened into the dialog. Will be
420
+ * null when the dialog is opened using a `TemplateRef`.
421
+ */
422
+ readonly componentInstance: C | null;
423
+ /** Instance of the container that is rendering out the dialog content. */
424
+ readonly containerInstance: BasePortalOutlet & {
425
+ _closeInteractionType?: FocusOrigin;
426
+ };
427
+ /** Whether the user is allowed to close the dialog. */
428
+ disableClose: boolean | undefined;
429
+ /** Emits when the dialog has been closed. */
430
+ readonly closed: Observable<R | undefined>;
431
+ /** Emits when the backdrop of the dialog is clicked. */
432
+ readonly backdropClick: Observable<MouseEvent>;
433
+ /** Emits when on keyboard events within the dialog. */
434
+ readonly keydownEvents: Observable<KeyboardEvent>;
435
+ /** Emits on pointer events that happen outside of the dialog. */
436
+ readonly outsidePointerEvents: Observable<MouseEvent>;
437
+ /** Unique ID for the dialog. */
438
+ readonly id: string;
439
+ constructor(overlayRef: OverlayRef, config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>);
440
+ /**
441
+ * Close the dialog.
442
+ * @param result Optional result to return to the dialog opener.
443
+ * @param options Additional options to customize the closing behavior.
444
+ */
445
+ close(result?: R, options?: DialogCloseOptions): void;
446
+ /** Updates the position of the dialog based on the current position strategy. */
447
+ updatePosition(): this;
448
+ /**
449
+ * Updates the dialog's width and height.
450
+ * @param width New width of the dialog.
451
+ * @param height New height of the dialog.
452
+ */
453
+ updateSize(width?: string | number, height?: string | number): this;
454
+ /** Add a CSS class or an array of classes to the overlay pane. */
455
+ addPanelClass(classes: string | string[]): this;
456
+ /** Remove a CSS class or an array of classes from the overlay pane. */
457
+ removePanelClass(classes: string | string[]): this;
458
+ }
459
+
460
+ /** Valid ARIA roles for a dialog. */
461
+ export declare type DialogRole = 'dialog' | 'alertdialog';
462
+
463
+ declare namespace i1 {
464
+ export { throwDialogContentAlreadyAttachedError, CdkDialogContainer };
465
+ }
466
+
467
+ export declare function throwDialogContentAlreadyAttachedError(): void;
468
+
469
+ export {};