@angular/material 2.0.0-beta.0 → 2.0.0-beta.12
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.
- package/LICENSE +1 -1
- package/README.md +4 -165
- package/_theming.scss +3878 -0
- package/autocomplete/index.d.ts +8 -5
- package/autocomplete/index.metadata.json +12 -1
- package/autocomplete/package.json +7 -0
- package/autocomplete/typings/autocomplete-module.d.ts +2 -0
- package/autocomplete/typings/autocomplete-trigger.d.ts +159 -0
- package/autocomplete/typings/autocomplete.d.ts +62 -0
- package/autocomplete/typings/index.d.ts +4 -0
- package/autocomplete/typings/index.metadata.json +1 -0
- package/autocomplete/typings/public-api.d.ts +10 -0
- package/autocomplete.d.ts +8 -0
- package/autocomplete.metadata.json +12 -0
- package/bundles/material-autocomplete.umd.js +2969 -0
- package/bundles/material-autocomplete.umd.js.map +1 -0
- package/bundles/material-autocomplete.umd.min.js +10 -0
- package/bundles/material-autocomplete.umd.min.js.map +1 -0
- package/bundles/material-button-toggle.umd.js +2284 -0
- package/bundles/material-button-toggle.umd.js.map +1 -0
- package/bundles/material-button-toggle.umd.min.js +10 -0
- package/bundles/material-button-toggle.umd.min.js.map +1 -0
- package/bundles/material-button.umd.js +2092 -0
- package/bundles/material-button.umd.js.map +1 -0
- package/bundles/material-button.umd.min.js +10 -0
- package/bundles/material-button.umd.min.js.map +1 -0
- package/bundles/material-card.umd.js +2006 -0
- package/bundles/material-card.umd.js.map +1 -0
- package/bundles/material-card.umd.min.js +9 -0
- package/bundles/material-card.umd.min.js.map +1 -0
- package/bundles/material-checkbox.umd.js +2327 -0
- package/bundles/material-checkbox.umd.js.map +1 -0
- package/bundles/material-checkbox.umd.min.js +10 -0
- package/bundles/material-checkbox.umd.min.js.map +1 -0
- package/bundles/material-chips.umd.js +3542 -0
- package/bundles/material-chips.umd.js.map +1 -0
- package/bundles/material-chips.umd.min.js +10 -0
- package/bundles/material-chips.umd.min.js.map +1 -0
- package/bundles/material-core.umd.js +2206 -0
- package/bundles/material-core.umd.js.map +1 -0
- package/bundles/material-core.umd.min.js +9 -0
- package/bundles/material-core.umd.min.js.map +1 -0
- package/bundles/material-datepicker.umd.js +6128 -0
- package/bundles/material-datepicker.umd.js.map +1 -0
- package/bundles/material-datepicker.umd.min.js +12 -0
- package/bundles/material-datepicker.umd.min.js.map +1 -0
- package/bundles/material-dialog.umd.js +2530 -0
- package/bundles/material-dialog.umd.js.map +1 -0
- package/bundles/material-dialog.umd.min.js +10 -0
- package/bundles/material-dialog.umd.min.js.map +1 -0
- package/bundles/material-expansion.umd.js +2128 -0
- package/bundles/material-expansion.umd.js.map +1 -0
- package/bundles/material-expansion.umd.min.js +9 -0
- package/bundles/material-expansion.umd.min.js.map +1 -0
- package/bundles/material-form-field.umd.js +2091 -0
- package/bundles/material-form-field.umd.js.map +1 -0
- package/bundles/material-form-field.umd.min.js +10 -0
- package/bundles/material-form-field.umd.min.js.map +1 -0
- package/bundles/material-grid-list.umd.js +2621 -0
- package/bundles/material-grid-list.umd.js.map +1 -0
- package/bundles/material-grid-list.umd.min.js +10 -0
- package/bundles/material-grid-list.umd.min.js.map +1 -0
- package/bundles/material-icon.umd.js +2442 -0
- package/bundles/material-icon.umd.js.map +1 -0
- package/bundles/material-icon.umd.min.js +10 -0
- package/bundles/material-icon.umd.min.js.map +1 -0
- package/bundles/material-input.umd.js +2716 -0
- package/bundles/material-input.umd.js.map +1 -0
- package/bundles/material-input.umd.min.js +10 -0
- package/bundles/material-input.umd.min.js.map +1 -0
- package/bundles/material-list.umd.js +2611 -0
- package/bundles/material-list.umd.js.map +1 -0
- package/bundles/material-list.umd.min.js +11 -0
- package/bundles/material-list.umd.min.js.map +1 -0
- package/bundles/material-menu.umd.js +2613 -0
- package/bundles/material-menu.umd.js.map +1 -0
- package/bundles/material-menu.umd.min.js +10 -0
- package/bundles/material-menu.umd.min.js.map +1 -0
- package/bundles/material-paginator.umd.js +5228 -0
- package/bundles/material-paginator.umd.js.map +1 -0
- package/bundles/material-paginator.umd.min.js +11 -0
- package/bundles/material-paginator.umd.min.js.map +1 -0
- package/bundles/material-progress-bar.umd.js +1784 -0
- package/bundles/material-progress-bar.umd.js.map +1 -0
- package/bundles/material-progress-bar.umd.min.js +9 -0
- package/bundles/material-progress-bar.umd.min.js.map +1 -0
- package/bundles/material-progress-spinner.umd.js +2005 -0
- package/bundles/material-progress-spinner.umd.js.map +1 -0
- package/bundles/material-progress-spinner.umd.min.js +10 -0
- package/bundles/material-progress-spinner.umd.min.js.map +1 -0
- package/bundles/material-radio.umd.js +2530 -0
- package/bundles/material-radio.umd.js.map +1 -0
- package/bundles/material-radio.umd.min.js +10 -0
- package/bundles/material-radio.umd.min.js.map +1 -0
- package/bundles/material-select.umd.js +3843 -0
- package/bundles/material-select.umd.js.map +1 -0
- package/bundles/material-select.umd.min.js +10 -0
- package/bundles/material-select.umd.min.js.map +1 -0
- package/bundles/material-sidenav.umd.js +2577 -0
- package/bundles/material-sidenav.umd.js.map +1 -0
- package/bundles/material-sidenav.umd.min.js +10 -0
- package/bundles/material-sidenav.umd.min.js.map +1 -0
- package/bundles/material-slide-toggle.umd.js +2253 -0
- package/bundles/material-slide-toggle.umd.js.map +1 -0
- package/bundles/material-slide-toggle.umd.min.js +10 -0
- package/bundles/material-slide-toggle.umd.min.js.map +1 -0
- package/bundles/material-slider.umd.js +2621 -0
- package/bundles/material-slider.umd.js.map +1 -0
- package/bundles/material-slider.umd.min.js +10 -0
- package/bundles/material-slider.umd.min.js.map +1 -0
- package/bundles/material-snack-bar.umd.js +2258 -0
- package/bundles/material-snack-bar.umd.js.map +1 -0
- package/bundles/material-snack-bar.umd.min.js +10 -0
- package/bundles/material-snack-bar.umd.min.js.map +1 -0
- package/bundles/material-sort.umd.js +1917 -0
- package/bundles/material-sort.umd.js.map +1 -0
- package/bundles/material-sort.umd.min.js +9 -0
- package/bundles/material-sort.umd.min.js.map +1 -0
- package/bundles/material-stepper.umd.js +3271 -0
- package/bundles/material-stepper.umd.js.map +1 -0
- package/bundles/material-stepper.umd.min.js +10 -0
- package/bundles/material-stepper.umd.min.js.map +1 -0
- package/bundles/material-table.umd.js +1976 -0
- package/bundles/material-table.umd.js.map +1 -0
- package/bundles/material-table.umd.min.js +9 -0
- package/bundles/material-table.umd.min.js.map +1 -0
- package/bundles/material-tabs.umd.js +3341 -0
- package/bundles/material-tabs.umd.js.map +1 -0
- package/bundles/material-tabs.umd.min.js +10 -0
- package/bundles/material-tabs.umd.min.js.map +1 -0
- package/bundles/material-toolbar.umd.js +1790 -0
- package/bundles/material-toolbar.umd.js.map +1 -0
- package/bundles/material-toolbar.umd.min.js +9 -0
- package/bundles/material-toolbar.umd.min.js.map +1 -0
- package/bundles/material-tooltip.umd.js +2339 -0
- package/bundles/material-tooltip.umd.js.map +1 -0
- package/bundles/material-tooltip.umd.min.js +10 -0
- package/bundles/material-tooltip.umd.min.js.map +1 -0
- package/bundles/material.umd.js +21541 -12552
- package/bundles/material.umd.js.map +1 -0
- package/bundles/material.umd.min.js +22 -0
- package/bundles/material.umd.min.js.map +1 -0
- package/button/index.d.ts +8 -1
- package/button/index.metadata.json +12 -1
- package/button/package.json +7 -0
- package/button/typings/button-module.d.ts +2 -0
- package/button/typings/button.d.ts +77 -0
- package/button/typings/index.d.ts +4 -0
- package/button/typings/index.metadata.json +1 -0
- package/button/typings/public-api.d.ts +9 -0
- package/button-toggle/index.d.ts +8 -1
- package/button-toggle/index.metadata.json +12 -1
- package/button-toggle/package.json +7 -0
- package/button-toggle/typings/button-toggle-module.d.ts +2 -0
- package/button-toggle/typings/button-toggle.d.ts +163 -0
- package/button-toggle/typings/index.d.ts +4 -0
- package/button-toggle/typings/index.metadata.json +1 -0
- package/button-toggle/typings/public-api.d.ts +9 -0
- package/button-toggle.d.ts +8 -0
- package/button-toggle.metadata.json +12 -0
- package/button.d.ts +8 -0
- package/button.metadata.json +12 -0
- package/card/index.d.ts +8 -1
- package/card/index.metadata.json +12 -1
- package/card/package.json +7 -0
- package/card/typings/card-module.d.ts +2 -0
- package/card/typings/card.d.ts +95 -0
- package/card/typings/index.d.ts +4 -0
- package/card/typings/index.metadata.json +1 -0
- package/card/typings/public-api.d.ts +9 -0
- package/card.d.ts +8 -0
- package/card.metadata.json +12 -0
- package/checkbox/index.d.ts +8 -1
- package/checkbox/index.metadata.json +12 -1
- package/checkbox/package.json +7 -0
- package/checkbox/typings/checkbox-module.d.ts +2 -0
- package/checkbox/typings/checkbox-required-validator.d.ts +18 -0
- package/checkbox/typings/checkbox.d.ts +157 -0
- package/checkbox/typings/index.d.ts +4 -0
- package/checkbox/typings/index.metadata.json +1 -0
- package/checkbox/typings/public-api.d.ts +10 -0
- package/checkbox.d.ts +8 -0
- package/checkbox.metadata.json +12 -0
- package/chips/index.d.ts +8 -2
- package/chips/index.metadata.json +12 -1
- package/chips/package.json +7 -0
- package/chips/typings/chip-input.d.ts +43 -0
- package/chips/typings/chip-list.d.ts +222 -0
- package/chips/typings/chip.d.ts +123 -0
- package/chips/typings/chips-module.d.ts +2 -0
- package/chips/typings/index.d.ts +4 -0
- package/chips/typings/index.metadata.json +1 -0
- package/chips/typings/public-api.d.ts +11 -0
- package/chips.d.ts +8 -0
- package/chips.metadata.json +12 -0
- package/core/index.d.ts +8 -1
- package/core/index.metadata.json +12 -1
- package/core/package.json +7 -0
- package/core/typings/animation/animation.d.ts +20 -0
- package/core/typings/common-behaviors/color.d.ts +22 -0
- package/core/typings/common-behaviors/common-module.d.ts +25 -0
- package/core/typings/common-behaviors/constructor.d.ts +9 -0
- package/core/typings/common-behaviors/disable-ripple.d.ts +7 -0
- package/core/typings/common-behaviors/disabled.d.ts +7 -0
- package/core/typings/common-behaviors/index.d.ts +12 -0
- package/core/typings/common-behaviors/tabindex.d.ts +15 -0
- package/core/typings/compatibility/compatibility.d.ts +32 -0
- package/core/typings/datetime/date-adapter.d.ts +198 -0
- package/core/typings/datetime/date-formats.d.ts +20 -0
- package/core/typings/datetime/index.d.ts +8 -0
- package/core/typings/datetime/native-date-adapter.d.ts +50 -0
- package/core/typings/datetime/native-date-formats.d.ts +9 -0
- package/core/typings/error/error-options.d.ts +9 -0
- package/core/typings/gestures/gesture-annotations.d.ts +51 -0
- package/core/{gestures → typings/gestures}/gesture-config.d.ts +0 -0
- package/core/typings/index.d.ts +5 -0
- package/core/typings/index.metadata.json +1 -0
- package/core/typings/line/line.d.ts +30 -0
- package/core/typings/option/index.d.ts +4 -0
- package/core/typings/option/optgroup.d.ts +14 -0
- package/core/typings/option/option.d.ts +90 -0
- package/core/typings/placeholder/placeholder-options.d.ts +15 -0
- package/core/typings/public-api.d.ts +22 -0
- package/core/typings/ripple/index.d.ts +5 -0
- package/core/typings/ripple/ripple-ref.d.ts +28 -0
- package/core/typings/ripple/ripple-renderer.d.ts +69 -0
- package/core/typings/ripple/ripple.d.ts +65 -0
- package/core/typings/selection/index.d.ts +3 -0
- package/core/typings/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
- package/core/typings/style/apply-transform.d.ts +13 -0
- package/core/typings/style/index.d.ts +8 -0
- package/core/typings/testing/month-constants.d.ts +12 -0
- package/core/typings/util/object-extend.d.ts +15 -0
- package/core.d.ts +7 -0
- package/core.metadata.json +12 -1
- package/datepicker/index.d.ts +8 -0
- package/datepicker/index.metadata.json +12 -0
- package/datepicker/package.json +7 -0
- package/datepicker/typings/calendar-body.d.ts +52 -0
- package/datepicker/typings/calendar.d.ts +97 -0
- package/datepicker/typings/coerce-date-property.d.ts +19 -0
- package/datepicker/typings/datepicker-errors.d.ts +9 -0
- package/datepicker/typings/datepicker-input.d.ts +92 -0
- package/datepicker/typings/datepicker-intl.d.ts +25 -0
- package/datepicker/typings/datepicker-module.d.ts +2 -0
- package/datepicker/typings/datepicker-toggle.d.ts +24 -0
- package/datepicker/typings/datepicker.d.ts +117 -0
- package/datepicker/typings/index.d.ts +4 -0
- package/datepicker/typings/index.metadata.json +1 -0
- package/datepicker/typings/month-view.d.ts +66 -0
- package/datepicker/typings/public-api.d.ts +17 -0
- package/datepicker/typings/year-view.d.ts +55 -0
- package/datepicker.d.ts +8 -0
- package/datepicker.metadata.json +12 -0
- package/dialog/index.d.ts +8 -9
- package/dialog/index.metadata.json +12 -1
- package/dialog/package.json +7 -0
- package/dialog/typings/dialog-config.d.ts +54 -0
- package/dialog/typings/dialog-container.d.ts +68 -0
- package/dialog/typings/dialog-content-directives.d.ts +43 -0
- package/dialog/typings/dialog-module.d.ts +2 -0
- package/dialog/typings/dialog-ref.d.ts +68 -0
- package/dialog/typings/dialog.d.ts +108 -0
- package/dialog/typings/index.d.ts +4 -0
- package/dialog/typings/index.metadata.json +1 -0
- package/dialog/typings/public-api.d.ts +13 -0
- package/dialog.d.ts +8 -0
- package/dialog.metadata.json +12 -0
- package/esm2015/autocomplete.js +673 -0
- package/esm2015/autocomplete.js.map +1 -0
- package/esm2015/button-toggle.js +589 -0
- package/esm2015/button-toggle.js.map +1 -0
- package/esm2015/button.js +318 -0
- package/esm2015/button.js.map +1 -0
- package/esm2015/card.js +312 -0
- package/esm2015/card.js.map +1 -0
- package/esm2015/checkbox.js +500 -0
- package/esm2015/checkbox.js.map +1 -0
- package/esm2015/chips.js +1330 -0
- package/esm2015/chips.js.map +1 -0
- package/esm2015/core.js +2117 -0
- package/esm2015/core.js.map +1 -0
- package/esm2015/datepicker.js +1813 -0
- package/esm2015/datepicker.js.map +1 -0
- package/esm2015/dialog.js +854 -0
- package/esm2015/dialog.js.map +1 -0
- package/esm2015/expansion.js +587 -0
- package/esm2015/expansion.js.map +1 -0
- package/esm2015/form-field.js +535 -0
- package/esm2015/form-field.js.map +1 -0
- package/esm2015/grid-list.js +827 -0
- package/esm2015/grid-list.js.map +1 -0
- package/esm2015/icon.js +735 -0
- package/esm2015/icon.js.map +1 -0
- package/esm2015/input.js +585 -0
- package/esm2015/input.js.map +1 -0
- package/esm2015/list.js +640 -0
- package/esm2015/list.js.map +1 -0
- package/esm2015/material.js +51 -0
- package/esm2015/material.js.map +1 -0
- package/esm2015/menu.js +923 -0
- package/esm2015/menu.js.map +1 -0
- package/esm2015/paginator.js +303 -0
- package/esm2015/paginator.js.map +1 -0
- package/esm2015/progress-bar.js +133 -0
- package/esm2015/progress-bar.js.map +1 -0
- package/esm2015/progress-spinner.js +303 -0
- package/esm2015/progress-spinner.js.map +1 -0
- package/esm2015/radio.js +709 -0
- package/esm2015/radio.js.map +1 -0
- package/esm2015/select.js +1394 -0
- package/esm2015/select.js.map +1 -0
- package/esm2015/sidenav.js +866 -0
- package/esm2015/sidenav.js.map +1 -0
- package/esm2015/slide-toggle.js +428 -0
- package/esm2015/slide-toggle.js.map +1 -0
- package/esm2015/slider.js +834 -0
- package/esm2015/slider.js.map +1 -0
- package/esm2015/snack-bar.js +596 -0
- package/esm2015/snack-bar.js.map +1 -0
- package/esm2015/sort.js +371 -0
- package/esm2015/sort.js.map +1 -0
- package/esm2015/stepper.js +395 -0
- package/esm2015/stepper.js.map +1 -0
- package/esm2015/table.js +272 -0
- package/esm2015/table.js.map +1 -0
- package/esm2015/tabs.js +1480 -0
- package/esm2015/tabs.js.map +1 -0
- package/esm2015/toolbar.js +89 -0
- package/esm2015/toolbar.js.map +1 -0
- package/esm2015/tooltip.js +671 -0
- package/esm2015/tooltip.js.map +1 -0
- package/esm5/autocomplete.es5.js +712 -0
- package/esm5/autocomplete.es5.js.map +1 -0
- package/esm5/button-toggle.es5.js +646 -0
- package/esm5/button-toggle.es5.js.map +1 -0
- package/esm5/button.es5.js +344 -0
- package/esm5/button.es5.js.map +1 -0
- package/esm5/card.es5.js +355 -0
- package/esm5/card.es5.js.map +1 -0
- package/esm5/checkbox.es5.js +538 -0
- package/esm5/checkbox.es5.js.map +1 -0
- package/esm5/chips.es5.js +1464 -0
- package/esm5/chips.es5.js.map +1 -0
- package/esm5/core.es5.js +2126 -0
- package/esm5/core.es5.js.map +1 -0
- package/esm5/datepicker.es5.js +1946 -0
- package/esm5/datepicker.es5.js.map +1 -0
- package/esm5/dialog.es5.js +894 -0
- package/esm5/dialog.es5.js.map +1 -0
- package/esm5/expansion.es5.js +622 -0
- package/esm5/expansion.es5.js.map +1 -0
- package/esm5/form-field.es5.js +580 -0
- package/esm5/form-field.es5.js.map +1 -0
- package/esm5/grid-list.es5.js +888 -0
- package/esm5/grid-list.es5.js.map +1 -0
- package/esm5/icon.es5.js +754 -0
- package/esm5/icon.es5.js.map +1 -0
- package/esm5/input.es5.js +630 -0
- package/esm5/input.es5.js.map +1 -0
- package/esm5/list.es5.js +704 -0
- package/esm5/list.es5.js.map +1 -0
- package/esm5/material.es5.js +51 -0
- package/esm5/material.es5.js.map +1 -0
- package/esm5/menu.es5.js +962 -0
- package/esm5/menu.es5.js.map +1 -0
- package/esm5/paginator.es5.js +328 -0
- package/esm5/paginator.es5.js.map +1 -0
- package/esm5/progress-bar.es5.js +147 -0
- package/esm5/progress-bar.es5.js.map +1 -0
- package/esm5/progress-spinner.es5.js +317 -0
- package/esm5/progress-spinner.es5.js.map +1 -0
- package/esm5/radio.es5.js +786 -0
- package/esm5/radio.es5.js.map +1 -0
- package/esm5/select.es5.js +1481 -0
- package/esm5/select.es5.js.map +1 -0
- package/esm5/sidenav.es5.js +946 -0
- package/esm5/sidenav.es5.js.map +1 -0
- package/esm5/slide-toggle.es5.js +455 -0
- package/esm5/slide-toggle.es5.js.map +1 -0
- package/esm5/slider.es5.js +938 -0
- package/esm5/slider.es5.js.map +1 -0
- package/esm5/snack-bar.es5.js +622 -0
- package/esm5/snack-bar.es5.js.map +1 -0
- package/esm5/sort.es5.js +389 -0
- package/esm5/sort.es5.js.map +1 -0
- package/esm5/stepper.es5.js +448 -0
- package/esm5/stepper.es5.js.map +1 -0
- package/esm5/table.es5.js +323 -0
- package/esm5/table.es5.js.map +1 -0
- package/esm5/tabs.es5.js +1591 -0
- package/esm5/tabs.es5.js.map +1 -0
- package/esm5/toolbar.es5.js +100 -0
- package/esm5/toolbar.es5.js.map +1 -0
- package/esm5/tooltip.es5.js +705 -0
- package/esm5/tooltip.es5.js.map +1 -0
- package/expansion/index.d.ts +8 -0
- package/expansion/index.metadata.json +12 -0
- package/expansion/package.json +7 -0
- package/expansion/typings/accordion-item.d.ts +41 -0
- package/expansion/typings/accordion.d.ts +29 -0
- package/expansion/typings/expansion-module.d.ts +2 -0
- package/expansion/typings/expansion-panel-header.d.ts +49 -0
- package/expansion/typings/expansion-panel.d.ts +40 -0
- package/expansion/typings/index.d.ts +5 -0
- package/expansion/typings/index.metadata.json +1 -0
- package/expansion/typings/public-api.d.ts +12 -0
- package/expansion.d.ts +8 -0
- package/expansion.metadata.json +12 -0
- package/form-field/index.d.ts +8 -0
- package/form-field/index.metadata.json +12 -0
- package/form-field/package.json +7 -0
- package/form-field/typings/error.d.ts +4 -0
- package/form-field/typings/form-field-control.d.ts +47 -0
- package/form-field/typings/form-field-errors.d.ts +13 -0
- package/form-field/typings/form-field-module.d.ts +2 -0
- package/form-field/typings/form-field.d.ts +78 -0
- package/form-field/typings/hint.d.ts +7 -0
- package/form-field/typings/index.d.ts +4 -0
- package/form-field/typings/index.metadata.json +1 -0
- package/form-field/typings/placeholder.d.ts +3 -0
- package/form-field/typings/prefix.d.ts +3 -0
- package/form-field/typings/public-api.d.ts +16 -0
- package/form-field/typings/suffix.d.ts +3 -0
- package/form-field.d.ts +8 -0
- package/form-field.metadata.json +12 -0
- package/grid-list/index.d.ts +8 -1
- package/grid-list/index.metadata.json +12 -1
- package/grid-list/package.json +7 -0
- package/grid-list/typings/grid-list-measure.d.ts +17 -0
- package/grid-list/typings/grid-list-module.d.ts +2 -0
- package/grid-list/typings/grid-list.d.ts +53 -0
- package/grid-list/typings/grid-tile.d.ts +55 -0
- package/grid-list/typings/index.d.ts +5 -0
- package/grid-list/typings/index.metadata.json +1 -0
- package/grid-list/typings/public-api.d.ts +10 -0
- package/grid-list/typings/tile-coordinator.d.ts +64 -0
- package/grid-list/typings/tile-styler.d.ts +129 -0
- package/grid-list.d.ts +8 -0
- package/grid-list.metadata.json +12 -0
- package/icon/index.d.ts +8 -1
- package/icon/index.metadata.json +12 -1
- package/icon/package.json +7 -0
- package/icon/typings/icon-module.d.ts +2 -0
- package/icon/typings/icon-registry.d.ts +187 -0
- package/icon/typings/icon.d.ts +69 -0
- package/icon/typings/index.d.ts +4 -0
- package/icon/typings/index.metadata.json +1 -0
- package/icon/typings/public-api.d.ts +10 -0
- package/icon.d.ts +8 -0
- package/icon.metadata.json +12 -0
- package/input/index.d.ts +8 -4
- package/input/index.metadata.json +12 -1
- package/input/package.json +7 -0
- package/input/typings/autosize.d.ts +43 -0
- package/input/typings/index.d.ts +4 -0
- package/input/typings/index.metadata.json +1 -0
- package/input/typings/input-errors.d.ts +9 -0
- package/input/typings/input-module.d.ts +2 -0
- package/input/typings/input.d.ts +85 -0
- package/input/typings/public-api.d.ts +11 -0
- package/input.d.ts +8 -0
- package/input.metadata.json +12 -0
- package/list/index.d.ts +8 -1
- package/list/index.metadata.json +12 -1
- package/list/package.json +7 -0
- package/list/typings/index.d.ts +4 -0
- package/list/typings/index.metadata.json +1 -0
- package/list/typings/list-module.d.ts +2 -0
- package/list/typings/list.d.ts +77 -0
- package/list/typings/public-api.d.ts +10 -0
- package/list/typings/selection-list.d.ts +103 -0
- package/list.d.ts +8 -0
- package/list.metadata.json +12 -0
- package/material.d.ts +39 -0
- package/material.metadata.json +105 -0
- package/menu/index.d.ts +8 -5
- package/menu/index.metadata.json +12 -1
- package/menu/package.json +7 -0
- package/menu/typings/index.d.ts +6 -0
- package/menu/typings/index.metadata.json +1 -0
- package/menu/typings/menu-animations.d.ts +27 -0
- package/menu/typings/menu-directive.d.ts +89 -0
- package/menu/typings/menu-errors.d.ts +24 -0
- package/menu/typings/menu-item.d.ts +42 -0
- package/menu/typings/menu-module.d.ts +2 -0
- package/menu/typings/menu-panel.d.ts +22 -0
- package/menu/typings/menu-positions.d.ts +9 -0
- package/menu/typings/menu-trigger.d.ts +115 -0
- package/menu/typings/menu.d.ts +12 -0
- package/menu/typings/public-api.d.ts +11 -0
- package/menu.d.ts +8 -0
- package/menu.metadata.json +12 -0
- package/package.json +10 -9
- package/paginator/index.d.ts +8 -0
- package/paginator/index.metadata.json +12 -0
- package/paginator/package.json +7 -0
- package/paginator/typings/index.d.ts +4 -0
- package/paginator/typings/index.metadata.json +1 -0
- package/paginator/typings/paginator-intl.d.ts +20 -0
- package/paginator/typings/paginator-module.d.ts +2 -0
- package/paginator/typings/paginator.d.ts +75 -0
- package/paginator/typings/public-api.d.ts +10 -0
- package/paginator.d.ts +8 -0
- package/paginator.metadata.json +12 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -0
- package/prebuilt-themes/indigo-pink.css +1 -0
- package/prebuilt-themes/pink-bluegrey.css +1 -0
- package/prebuilt-themes/purple-green.css +1 -0
- package/progress-bar/index.d.ts +8 -1
- package/progress-bar/index.metadata.json +12 -1
- package/progress-bar/package.json +7 -0
- package/progress-bar/typings/index.d.ts +4 -0
- package/progress-bar/typings/index.metadata.json +1 -0
- package/progress-bar/typings/progress-bar-module.d.ts +2 -0
- package/progress-bar/typings/progress-bar.d.ts +32 -0
- package/progress-bar/typings/public-api.d.ts +9 -0
- package/progress-bar.d.ts +8 -0
- package/progress-bar.metadata.json +12 -0
- package/progress-spinner/index.d.ts +8 -2
- package/progress-spinner/index.metadata.json +12 -1
- package/progress-spinner/package.json +7 -0
- package/progress-spinner/typings/index.d.ts +4 -0
- package/progress-spinner/typings/index.metadata.json +1 -0
- package/progress-spinner/typings/progress-spinner-module.d.ts +3 -0
- package/progress-spinner/typings/progress-spinner.d.ts +69 -0
- package/progress-spinner/typings/public-api.d.ts +9 -0
- package/progress-spinner.d.ts +8 -0
- package/progress-spinner.metadata.json +12 -0
- package/radio/index.d.ts +8 -1
- package/radio/index.metadata.json +12 -1
- package/radio/package.json +7 -0
- package/radio/typings/index.d.ts +4 -0
- package/radio/typings/index.metadata.json +1 -0
- package/radio/typings/public-api.d.ts +9 -0
- package/radio/typings/radio-module.d.ts +2 -0
- package/radio/typings/radio.d.ts +215 -0
- package/radio.d.ts +8 -0
- package/radio.metadata.json +12 -0
- package/select/index.d.ts +8 -7
- package/select/index.metadata.json +12 -1
- package/select/package.json +7 -0
- package/select/typings/index.d.ts +4 -0
- package/select/typings/index.metadata.json +1 -0
- package/select/typings/public-api.d.ts +10 -0
- package/select/typings/select-animations.d.ts +30 -0
- package/select/typings/select-errors.d.ts +26 -0
- package/select/typings/select-module.d.ts +2 -0
- package/select/typings/select.d.ts +393 -0
- package/select.d.ts +8 -0
- package/select.metadata.json +12 -0
- package/sidenav/index.d.ts +8 -1
- package/sidenav/index.metadata.json +12 -1
- package/sidenav/package.json +7 -0
- package/sidenav/typings/drawer.d.ts +190 -0
- package/sidenav/typings/index.d.ts +4 -0
- package/sidenav/typings/index.metadata.json +1 -0
- package/sidenav/typings/public-api.d.ts +10 -0
- package/sidenav/typings/sidenav-module.d.ts +2 -0
- package/sidenav/typings/sidenav.d.ts +33 -0
- package/sidenav.d.ts +8 -0
- package/sidenav.metadata.json +12 -0
- package/slide-toggle/index.d.ts +8 -1
- package/slide-toggle/index.metadata.json +12 -1
- package/slide-toggle/package.json +7 -0
- package/slide-toggle/typings/index.d.ts +4 -0
- package/slide-toggle/typings/index.metadata.json +1 -0
- package/slide-toggle/typings/public-api.d.ts +9 -0
- package/slide-toggle/typings/slide-toggle-module.d.ts +2 -0
- package/slide-toggle/typings/slide-toggle.d.ts +93 -0
- package/slide-toggle.d.ts +8 -0
- package/slide-toggle.metadata.json +12 -0
- package/slider/index.d.ts +8 -1
- package/slider/index.metadata.json +12 -1
- package/slider/package.json +7 -0
- package/slider/typings/index.d.ts +4 -0
- package/slider/typings/index.metadata.json +1 -0
- package/slider/typings/public-api.d.ts +9 -0
- package/slider/typings/slider-module.d.ts +2 -0
- package/slider/typings/slider.d.ts +207 -0
- package/slider.d.ts +8 -0
- package/slider.metadata.json +12 -0
- package/snack-bar/index.d.ts +8 -4
- package/snack-bar/index.metadata.json +12 -1
- package/snack-bar/package.json +7 -0
- package/snack-bar/typings/index.d.ts +4 -0
- package/snack-bar/typings/index.metadata.json +1 -0
- package/snack-bar/typings/public-api.d.ts +13 -0
- package/snack-bar/typings/simple-snack-bar.d.ts +18 -0
- package/snack-bar/typings/snack-bar-config.d.ts +38 -0
- package/snack-bar/typings/snack-bar-container.d.ts +55 -0
- package/snack-bar/typings/snack-bar-module.d.ts +2 -0
- package/snack-bar/typings/snack-bar-ref.d.ts +51 -0
- package/snack-bar/typings/snack-bar.d.ts +70 -0
- package/snack-bar.d.ts +8 -0
- package/snack-bar.metadata.json +12 -0
- package/sort/index.d.ts +8 -0
- package/sort/index.metadata.json +12 -0
- package/sort/package.json +7 -0
- package/sort/typings/index.d.ts +4 -0
- package/sort/typings/index.metadata.json +1 -0
- package/sort/typings/public-api.d.ts +12 -0
- package/sort/typings/sort-direction.d.ts +8 -0
- package/sort/typings/sort-errors.d.ts +15 -0
- package/sort/typings/sort-header-intl.d.ts +17 -0
- package/sort/typings/sort-header.d.ts +43 -0
- package/sort/typings/sort-module.d.ts +2 -0
- package/sort/typings/sort.d.ts +55 -0
- package/sort.d.ts +8 -0
- package/sort.metadata.json +12 -0
- package/stepper/index.d.ts +8 -0
- package/stepper/index.metadata.json +12 -0
- package/stepper/package.json +7 -0
- package/stepper/typings/index.d.ts +4 -0
- package/stepper/typings/index.metadata.json +1 -0
- package/stepper/typings/public-api.d.ts +13 -0
- package/stepper/typings/step-header.d.ts +41 -0
- package/stepper/typings/step-label.d.ts +14 -0
- package/stepper/typings/stepper-button.d.ts +10 -0
- package/stepper/typings/stepper-intl.d.ts +11 -0
- package/stepper/typings/stepper-module.d.ts +2 -0
- package/stepper/typings/stepper.d.ts +26 -0
- package/stepper.d.ts +8 -0
- package/stepper.metadata.json +12 -0
- package/table/index.d.ts +8 -0
- package/table/index.metadata.json +12 -0
- package/table/package.json +7 -0
- package/table/typings/cell.d.ts +43 -0
- package/table/typings/index.d.ts +4 -0
- package/table/typings/index.metadata.json +1 -0
- package/table/typings/public-api.d.ts +11 -0
- package/table/typings/row.d.ts +25 -0
- package/table/typings/table-module.d.ts +2 -0
- package/table/typings/table.d.ts +8 -0
- package/table.d.ts +8 -0
- package/table.metadata.json +12 -0
- package/tabs/index.d.ts +8 -7
- package/tabs/index.metadata.json +12 -1
- package/tabs/package.json +7 -0
- package/tabs/typings/index.d.ts +8 -0
- package/tabs/typings/index.metadata.json +1 -0
- package/tabs/typings/ink-bar.d.ts +33 -0
- package/tabs/typings/public-api.d.ts +16 -0
- package/tabs/typings/tab-body.d.ts +69 -0
- package/tabs/typings/tab-group.d.ts +104 -0
- package/tabs/typings/tab-header.d.ts +158 -0
- package/tabs/typings/tab-label-wrapper.d.ts +25 -0
- package/tabs/typings/tab-label.d.ts +15 -0
- package/tabs/typings/tab-nav-bar/index.d.ts +8 -0
- package/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts +78 -0
- package/tabs/typings/tab.d.ts +50 -0
- package/tabs/typings/tabs-module.d.ts +2 -0
- package/tabs.d.ts +8 -0
- package/tabs.metadata.json +12 -0
- package/toolbar/index.d.ts +8 -1
- package/toolbar/index.metadata.json +12 -1
- package/toolbar/package.json +7 -0
- package/toolbar/typings/index.d.ts +4 -0
- package/toolbar/typings/index.metadata.json +1 -0
- package/toolbar/typings/public-api.d.ts +9 -0
- package/toolbar/typings/toolbar-module.d.ts +2 -0
- package/toolbar/typings/toolbar.d.ts +21 -0
- package/toolbar.d.ts +8 -0
- package/toolbar.metadata.json +12 -0
- package/tooltip/index.d.ts +8 -1
- package/tooltip/index.metadata.json +12 -1
- package/tooltip/package.json +7 -0
- package/tooltip/typings/index.d.ts +4 -0
- package/tooltip/typings/index.metadata.json +1 -0
- package/tooltip/typings/public-api.d.ts +9 -0
- package/tooltip/typings/tooltip-module.d.ts +2 -0
- package/tooltip/typings/tooltip.d.ts +175 -0
- package/tooltip.d.ts +8 -0
- package/tooltip.metadata.json +12 -0
- package/typings/autocomplete/autocomplete-module.d.ts +2 -0
- package/typings/autocomplete/autocomplete-trigger.d.ts +159 -0
- package/typings/autocomplete/autocomplete.d.ts +62 -0
- package/typings/autocomplete/index.d.ts +4 -0
- package/typings/autocomplete/index.metadata.json +1 -0
- package/typings/autocomplete/public-api.d.ts +10 -0
- package/typings/button/button-module.d.ts +2 -0
- package/typings/button/button.d.ts +77 -0
- package/typings/button/index.d.ts +4 -0
- package/typings/button/index.metadata.json +1 -0
- package/typings/button/public-api.d.ts +9 -0
- package/typings/button-toggle/button-toggle-module.d.ts +2 -0
- package/typings/button-toggle/button-toggle.d.ts +163 -0
- package/typings/button-toggle/index.d.ts +4 -0
- package/typings/button-toggle/index.metadata.json +1 -0
- package/typings/button-toggle/public-api.d.ts +9 -0
- package/typings/card/card-module.d.ts +2 -0
- package/typings/card/card.d.ts +95 -0
- package/typings/card/index.d.ts +4 -0
- package/typings/card/index.metadata.json +1 -0
- package/typings/card/public-api.d.ts +9 -0
- package/typings/checkbox/checkbox-module.d.ts +2 -0
- package/typings/checkbox/checkbox-required-validator.d.ts +18 -0
- package/typings/checkbox/checkbox.d.ts +157 -0
- package/typings/checkbox/index.d.ts +4 -0
- package/typings/checkbox/index.metadata.json +1 -0
- package/typings/checkbox/public-api.d.ts +10 -0
- package/typings/chips/chip-input.d.ts +43 -0
- package/typings/chips/chip-list.d.ts +222 -0
- package/typings/chips/chip.d.ts +123 -0
- package/typings/chips/chips-module.d.ts +2 -0
- package/typings/chips/index.d.ts +4 -0
- package/typings/chips/index.metadata.json +1 -0
- package/typings/chips/public-api.d.ts +11 -0
- package/typings/core/animation/animation.d.ts +20 -0
- package/typings/core/common-behaviors/color.d.ts +22 -0
- package/typings/core/common-behaviors/common-module.d.ts +25 -0
- package/typings/core/common-behaviors/constructor.d.ts +9 -0
- package/typings/core/common-behaviors/disable-ripple.d.ts +7 -0
- package/typings/core/common-behaviors/disabled.d.ts +7 -0
- package/typings/core/common-behaviors/index.d.ts +12 -0
- package/typings/core/common-behaviors/tabindex.d.ts +15 -0
- package/typings/core/compatibility/compatibility.d.ts +32 -0
- package/typings/core/datetime/date-adapter.d.ts +198 -0
- package/typings/core/datetime/date-formats.d.ts +20 -0
- package/typings/core/datetime/index.d.ts +8 -0
- package/typings/core/datetime/native-date-adapter.d.ts +50 -0
- package/typings/core/datetime/native-date-formats.d.ts +9 -0
- package/typings/core/error/error-options.d.ts +9 -0
- package/typings/core/gestures/gesture-annotations.d.ts +51 -0
- package/typings/core/gestures/gesture-config.d.ts +23 -0
- package/typings/core/index.d.ts +5 -0
- package/typings/core/index.metadata.json +1 -0
- package/typings/core/line/line.d.ts +30 -0
- package/typings/core/option/index.d.ts +4 -0
- package/typings/core/option/optgroup.d.ts +14 -0
- package/typings/core/option/option.d.ts +90 -0
- package/typings/core/placeholder/placeholder-options.d.ts +15 -0
- package/typings/core/public-api.d.ts +22 -0
- package/typings/core/ripple/index.d.ts +5 -0
- package/typings/core/ripple/ripple-ref.d.ts +28 -0
- package/typings/core/ripple/ripple-renderer.d.ts +69 -0
- package/typings/core/ripple/ripple.d.ts +65 -0
- package/typings/core/selection/index.d.ts +3 -0
- package/typings/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
- package/typings/core/style/apply-transform.d.ts +13 -0
- package/typings/core/style/index.d.ts +8 -0
- package/typings/core/testing/month-constants.d.ts +12 -0
- package/typings/core/util/object-extend.d.ts +15 -0
- package/typings/datepicker/calendar-body.d.ts +52 -0
- package/typings/datepicker/calendar.d.ts +97 -0
- package/typings/datepicker/coerce-date-property.d.ts +19 -0
- package/typings/datepicker/datepicker-errors.d.ts +9 -0
- package/typings/datepicker/datepicker-input.d.ts +92 -0
- package/typings/datepicker/datepicker-intl.d.ts +25 -0
- package/typings/datepicker/datepicker-module.d.ts +2 -0
- package/typings/datepicker/datepicker-toggle.d.ts +24 -0
- package/typings/datepicker/datepicker.d.ts +117 -0
- package/typings/datepicker/index.d.ts +4 -0
- package/typings/datepicker/index.metadata.json +1 -0
- package/typings/datepicker/month-view.d.ts +66 -0
- package/typings/datepicker/public-api.d.ts +17 -0
- package/typings/datepicker/year-view.d.ts +55 -0
- package/typings/dialog/dialog-config.d.ts +54 -0
- package/typings/dialog/dialog-container.d.ts +68 -0
- package/typings/dialog/dialog-content-directives.d.ts +43 -0
- package/typings/dialog/dialog-module.d.ts +2 -0
- package/typings/dialog/dialog-ref.d.ts +68 -0
- package/typings/dialog/dialog.d.ts +108 -0
- package/typings/dialog/index.d.ts +4 -0
- package/typings/dialog/index.metadata.json +1 -0
- package/typings/dialog/public-api.d.ts +13 -0
- package/typings/expansion/accordion-item.d.ts +41 -0
- package/typings/expansion/accordion.d.ts +29 -0
- package/typings/expansion/expansion-module.d.ts +2 -0
- package/typings/expansion/expansion-panel-header.d.ts +49 -0
- package/typings/expansion/expansion-panel.d.ts +40 -0
- package/typings/expansion/index.d.ts +5 -0
- package/typings/expansion/index.metadata.json +1 -0
- package/typings/expansion/public-api.d.ts +12 -0
- package/typings/form-field/error.d.ts +4 -0
- package/typings/form-field/form-field-control.d.ts +47 -0
- package/typings/form-field/form-field-errors.d.ts +13 -0
- package/typings/form-field/form-field-module.d.ts +2 -0
- package/typings/form-field/form-field.d.ts +78 -0
- package/typings/form-field/hint.d.ts +7 -0
- package/typings/form-field/index.d.ts +4 -0
- package/typings/form-field/index.metadata.json +1 -0
- package/typings/form-field/placeholder.d.ts +3 -0
- package/typings/form-field/prefix.d.ts +3 -0
- package/typings/form-field/public-api.d.ts +16 -0
- package/typings/form-field/suffix.d.ts +3 -0
- package/typings/grid-list/grid-list-measure.d.ts +17 -0
- package/typings/grid-list/grid-list-module.d.ts +2 -0
- package/typings/grid-list/grid-list.d.ts +53 -0
- package/typings/grid-list/grid-tile.d.ts +55 -0
- package/typings/grid-list/index.d.ts +5 -0
- package/typings/grid-list/index.metadata.json +1 -0
- package/typings/grid-list/public-api.d.ts +10 -0
- package/typings/grid-list/tile-coordinator.d.ts +64 -0
- package/typings/grid-list/tile-styler.d.ts +129 -0
- package/typings/icon/icon-module.d.ts +2 -0
- package/typings/icon/icon-registry.d.ts +187 -0
- package/typings/icon/icon.d.ts +69 -0
- package/typings/icon/index.d.ts +4 -0
- package/typings/icon/index.metadata.json +1 -0
- package/typings/icon/public-api.d.ts +10 -0
- package/typings/index.d.ts +4 -0
- package/typings/index.metadata.json +1 -0
- package/typings/input/autosize.d.ts +43 -0
- package/typings/input/index.d.ts +4 -0
- package/typings/input/index.metadata.json +1 -0
- package/typings/input/input-errors.d.ts +9 -0
- package/typings/input/input-module.d.ts +2 -0
- package/typings/input/input.d.ts +85 -0
- package/typings/input/public-api.d.ts +11 -0
- package/typings/list/index.d.ts +4 -0
- package/typings/list/index.metadata.json +1 -0
- package/typings/list/list-module.d.ts +2 -0
- package/typings/list/list.d.ts +77 -0
- package/typings/list/public-api.d.ts +10 -0
- package/typings/list/selection-list.d.ts +103 -0
- package/typings/menu/index.d.ts +6 -0
- package/typings/menu/index.metadata.json +1 -0
- package/typings/menu/menu-animations.d.ts +27 -0
- package/typings/menu/menu-directive.d.ts +89 -0
- package/typings/menu/menu-errors.d.ts +24 -0
- package/typings/menu/menu-item.d.ts +42 -0
- package/typings/menu/menu-module.d.ts +2 -0
- package/typings/menu/menu-panel.d.ts +22 -0
- package/typings/menu/menu-positions.d.ts +9 -0
- package/typings/menu/menu-trigger.d.ts +115 -0
- package/typings/menu/menu.d.ts +12 -0
- package/typings/menu/public-api.d.ts +11 -0
- package/typings/paginator/index.d.ts +4 -0
- package/typings/paginator/index.metadata.json +1 -0
- package/typings/paginator/paginator-intl.d.ts +20 -0
- package/typings/paginator/paginator-module.d.ts +2 -0
- package/typings/paginator/paginator.d.ts +75 -0
- package/typings/paginator/public-api.d.ts +10 -0
- package/typings/progress-bar/index.d.ts +4 -0
- package/typings/progress-bar/index.metadata.json +1 -0
- package/typings/progress-bar/progress-bar-module.d.ts +2 -0
- package/typings/progress-bar/progress-bar.d.ts +32 -0
- package/typings/progress-bar/public-api.d.ts +9 -0
- package/typings/progress-spinner/index.d.ts +4 -0
- package/typings/progress-spinner/index.metadata.json +1 -0
- package/typings/progress-spinner/progress-spinner-module.d.ts +3 -0
- package/typings/progress-spinner/progress-spinner.d.ts +69 -0
- package/typings/progress-spinner/public-api.d.ts +9 -0
- package/typings/public-api.d.ts +39 -0
- package/typings/radio/index.d.ts +4 -0
- package/typings/radio/index.metadata.json +1 -0
- package/typings/radio/public-api.d.ts +9 -0
- package/typings/radio/radio-module.d.ts +2 -0
- package/typings/radio/radio.d.ts +215 -0
- package/typings/select/index.d.ts +4 -0
- package/typings/select/index.metadata.json +1 -0
- package/typings/select/public-api.d.ts +10 -0
- package/typings/select/select-animations.d.ts +30 -0
- package/typings/select/select-errors.d.ts +26 -0
- package/typings/select/select-module.d.ts +2 -0
- package/typings/select/select.d.ts +393 -0
- package/typings/sidenav/drawer.d.ts +190 -0
- package/typings/sidenav/index.d.ts +4 -0
- package/typings/sidenav/index.metadata.json +1 -0
- package/typings/sidenav/public-api.d.ts +10 -0
- package/typings/sidenav/sidenav-module.d.ts +2 -0
- package/typings/sidenav/sidenav.d.ts +33 -0
- package/typings/slide-toggle/index.d.ts +4 -0
- package/typings/slide-toggle/index.metadata.json +1 -0
- package/typings/slide-toggle/public-api.d.ts +9 -0
- package/typings/slide-toggle/slide-toggle-module.d.ts +2 -0
- package/typings/slide-toggle/slide-toggle.d.ts +93 -0
- package/typings/slider/index.d.ts +4 -0
- package/typings/slider/index.metadata.json +1 -0
- package/typings/slider/public-api.d.ts +9 -0
- package/typings/slider/slider-module.d.ts +2 -0
- package/typings/slider/slider.d.ts +207 -0
- package/typings/snack-bar/index.d.ts +4 -0
- package/typings/snack-bar/index.metadata.json +1 -0
- package/typings/snack-bar/public-api.d.ts +13 -0
- package/typings/snack-bar/simple-snack-bar.d.ts +18 -0
- package/typings/snack-bar/snack-bar-config.d.ts +38 -0
- package/typings/snack-bar/snack-bar-container.d.ts +55 -0
- package/typings/snack-bar/snack-bar-module.d.ts +2 -0
- package/typings/snack-bar/snack-bar-ref.d.ts +51 -0
- package/typings/snack-bar/snack-bar.d.ts +70 -0
- package/typings/sort/index.d.ts +4 -0
- package/typings/sort/index.metadata.json +1 -0
- package/typings/sort/public-api.d.ts +12 -0
- package/typings/sort/sort-direction.d.ts +8 -0
- package/typings/sort/sort-errors.d.ts +15 -0
- package/typings/sort/sort-header-intl.d.ts +17 -0
- package/typings/sort/sort-header.d.ts +43 -0
- package/typings/sort/sort-module.d.ts +2 -0
- package/typings/sort/sort.d.ts +55 -0
- package/typings/stepper/index.d.ts +4 -0
- package/typings/stepper/index.metadata.json +1 -0
- package/typings/stepper/public-api.d.ts +13 -0
- package/typings/stepper/step-header.d.ts +41 -0
- package/typings/stepper/step-label.d.ts +14 -0
- package/typings/stepper/stepper-button.d.ts +10 -0
- package/typings/stepper/stepper-intl.d.ts +11 -0
- package/typings/stepper/stepper-module.d.ts +2 -0
- package/typings/stepper/stepper.d.ts +26 -0
- package/typings/table/cell.d.ts +43 -0
- package/typings/table/index.d.ts +4 -0
- package/typings/table/index.metadata.json +1 -0
- package/typings/table/public-api.d.ts +11 -0
- package/typings/table/row.d.ts +25 -0
- package/typings/table/table-module.d.ts +2 -0
- package/typings/table/table.d.ts +8 -0
- package/typings/tabs/index.d.ts +8 -0
- package/typings/tabs/index.metadata.json +1 -0
- package/typings/tabs/ink-bar.d.ts +33 -0
- package/typings/tabs/public-api.d.ts +16 -0
- package/typings/tabs/tab-body.d.ts +69 -0
- package/typings/tabs/tab-group.d.ts +104 -0
- package/typings/tabs/tab-header.d.ts +158 -0
- package/typings/tabs/tab-label-wrapper.d.ts +25 -0
- package/typings/tabs/tab-label.d.ts +15 -0
- package/typings/tabs/tab-nav-bar/index.d.ts +8 -0
- package/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts +78 -0
- package/typings/tabs/tab.d.ts +50 -0
- package/typings/tabs/tabs-module.d.ts +2 -0
- package/typings/toolbar/index.d.ts +4 -0
- package/typings/toolbar/index.metadata.json +1 -0
- package/typings/toolbar/public-api.d.ts +9 -0
- package/typings/toolbar/toolbar-module.d.ts +2 -0
- package/typings/toolbar/toolbar.d.ts +21 -0
- package/typings/tooltip/index.d.ts +4 -0
- package/typings/tooltip/index.metadata.json +1 -0
- package/typings/tooltip/public-api.d.ts +9 -0
- package/typings/tooltip/tooltip-module.d.ts +2 -0
- package/typings/tooltip/tooltip.d.ts +175 -0
- package/typings/version.d.ts +10 -0
- package/autocomplete/README.md +0 -5
- package/autocomplete/_autocomplete-theme.scss +0 -5
- package/autocomplete/autocomplete.css +0 -0
- package/autocomplete/autocomplete.css.map +0 -1
- package/autocomplete/autocomplete.d.ts +0 -2
- package/autocomplete/autocomplete.html +0 -1
- package/autocomplete/autocomplete.js +0 -25
- package/autocomplete/autocomplete.js.map +0 -1
- package/autocomplete/autocomplete.metadata.json +0 -1
- package/autocomplete/autocomplete.scss +0 -0
- package/autocomplete/index.js +0 -34
- package/autocomplete/index.js.map +0 -1
- package/button/OVERVIEW.md +0 -25
- package/button/README.md +0 -116
- package/button/_button-base.scss +0 -111
- package/button/_button-theme.scss +0 -85
- package/button/button.css +0 -1
- package/button/button.css.map +0 -1
- package/button/button.d.ts +0 -46
- package/button/button.html +0 -1
- package/button/button.js +0 -203
- package/button/button.js.map +0 -1
- package/button/button.metadata.json +0 -1
- package/button/button.scss +0 -105
- package/button/index.js +0 -3
- package/button/index.js.map +0 -1
- package/button-toggle/OVERVIEW.md +0 -22
- package/button-toggle/README.md +0 -139
- package/button-toggle/_button-toggle-theme.scss +0 -14
- package/button-toggle/button-toggle.css +0 -1
- package/button-toggle/button-toggle.css.map +0 -1
- package/button-toggle/button-toggle.d.ts +0 -136
- package/button-toggle/button-toggle.html +0 -1
- package/button-toggle/button-toggle.js +0 -502
- package/button-toggle/button-toggle.js.map +0 -1
- package/button-toggle/button-toggle.metadata.json +0 -1
- package/button-toggle/button-toggle.scss +0 -49
- package/button-toggle/index.js +0 -3
- package/button-toggle/index.js.map +0 -1
- package/card/OVERVIEW.md +0 -45
- package/card/README.md +0 -116
- package/card/_card-theme.scss +0 -17
- package/card/card-header.html +0 -1
- package/card/card-title-group.html +0 -1
- package/card/card.css +0 -1
- package/card/card.css.map +0 -1
- package/card/card.d.ts +0 -54
- package/card/card.html +0 -1
- package/card/card.js +0 -174
- package/card/card.js.map +0 -1
- package/card/card.metadata.json +0 -1
- package/card/card.scss +0 -227
- package/card/index.js +0 -3
- package/card/index.js.map +0 -1
- package/checkbox/OVERVIEW.md +0 -28
- package/checkbox/README.md +0 -93
- package/checkbox/_checkbox-theme.scss +0 -84
- package/checkbox/checkbox.css +0 -1
- package/checkbox/checkbox.css.map +0 -1
- package/checkbox/checkbox.d.ts +0 -155
- package/checkbox/checkbox.html +0 -1
- package/checkbox/checkbox.js +0 -432
- package/checkbox/checkbox.js.map +0 -1
- package/checkbox/checkbox.metadata.json +0 -1
- package/checkbox/checkbox.scss +0 -431
- package/checkbox/index.js +0 -3
- package/checkbox/index.js.map +0 -1
- package/chips/OVERVIEW.md +0 -40
- package/chips/README.md +0 -7
- package/chips/_chips-theme.scss +0 -49
- package/chips/chip-list.d.ts +0 -66
- package/chips/chip-list.js +0 -210
- package/chips/chip-list.js.map +0 -1
- package/chips/chip-list.metadata.json +0 -1
- package/chips/chip.d.ts +0 -53
- package/chips/chip.js +0 -177
- package/chips/chip.js.map +0 -1
- package/chips/chip.metadata.json +0 -1
- package/chips/chips.css +0 -1
- package/chips/chips.css.map +0 -1
- package/chips/chips.scss +0 -80
- package/chips/index.js +0 -4
- package/chips/index.js.map +0 -1
- package/core/README.md +0 -1
- package/core/_core.scss +0 -27
- package/core/a11y/README.md +0 -30
- package/core/a11y/_a11y.scss +0 -24
- package/core/a11y/fake-mousedown.d.ts +0 -8
- package/core/a11y/fake-mousedown.js +0 -12
- package/core/a11y/fake-mousedown.js.map +0 -1
- package/core/a11y/fake-mousedown.metadata.json +0 -1
- package/core/a11y/focus-trap.d.ts +0 -41
- package/core/a11y/focus-trap.html +0 -1
- package/core/a11y/focus-trap.js +0 -129
- package/core/a11y/focus-trap.js.map +0 -1
- package/core/a11y/focus-trap.metadata.json +0 -1
- package/core/a11y/index.d.ts +0 -7
- package/core/a11y/index.js +0 -40
- package/core/a11y/index.js.map +0 -1
- package/core/a11y/index.metadata.json +0 -1
- package/core/a11y/interactivity-checker.d.ts +0 -45
- package/core/a11y/interactivity-checker.js +0 -210
- package/core/a11y/interactivity-checker.js.map +0 -1
- package/core/a11y/interactivity-checker.metadata.json +0 -1
- package/core/a11y/list-key-manager.d.ts +0 -83
- package/core/a11y/list-key-manager.js +0 -157
- package/core/a11y/list-key-manager.js.map +0 -1
- package/core/a11y/list-key-manager.metadata.json +0 -1
- package/core/a11y/live-announcer.d.ts +0 -17
- package/core/a11y/live-announcer.js +0 -63
- package/core/a11y/live-announcer.js.map +0 -1
- package/core/a11y/live-announcer.metadata.json +0 -1
- package/core/animation/animation.d.ts +0 -13
- package/core/animation/animation.js +0 -21
- package/core/animation/animation.js.map +0 -1
- package/core/animation/animation.metadata.json +0 -1
- package/core/async/promise-completer.d.ts +0 -7
- package/core/async/promise-completer.js +0 -13
- package/core/async/promise-completer.js.map +0 -1
- package/core/async/promise-completer.metadata.json +0 -1
- package/core/coercion/boolean-property.d.ts +0 -2
- package/core/coercion/boolean-property.js +0 -6
- package/core/coercion/boolean-property.js.map +0 -1
- package/core/coercion/boolean-property.metadata.json +0 -1
- package/core/coercion/number-property.d.ts +0 -2
- package/core/coercion/number-property.js +0 -10
- package/core/coercion/number-property.js.map +0 -1
- package/core/coercion/number-property.metadata.json +0 -1
- package/core/compatibility/default-mode.d.ts +0 -19
- package/core/compatibility/default-mode.js +0 -61
- package/core/compatibility/default-mode.js.map +0 -1
- package/core/compatibility/default-mode.metadata.json +0 -1
- package/core/compatibility/no-conflict-mode.d.ts +0 -10
- package/core/compatibility/no-conflict-mode.js +0 -47
- package/core/compatibility/no-conflict-mode.js.map +0 -1
- package/core/compatibility/no-conflict-mode.metadata.json +0 -1
- package/core/coordination/unique-selection-dispatcher.d.ts +0 -21
- package/core/coordination/unique-selection-dispatcher.js +0 -46
- package/core/coordination/unique-selection-dispatcher.js.map +0 -1
- package/core/coordination/unique-selection-dispatcher.metadata.json +0 -1
- package/core/core.d.ts +0 -45
- package/core/core.js +0 -110
- package/core/core.js.map +0 -1
- package/core/core.metadata.json +0 -1
- package/core/errors/error.d.ts +0 -7
- package/core/errors/error.js +0 -20
- package/core/errors/error.js.map +0 -1
- package/core/errors/error.metadata.json +0 -1
- package/core/gestures/gesture-annotations.d.ts +0 -44
- package/core/gestures/gesture-annotations.js +0 -7
- package/core/gestures/gesture-annotations.js.map +0 -1
- package/core/gestures/gesture-config.js +0 -85
- package/core/gestures/gesture-config.js.map +0 -1
- package/core/gestures/gesture-config.metadata.json +0 -1
- package/core/index.js +0 -3
- package/core/index.js.map +0 -1
- package/core/keyboard/keycodes.d.ts +0 -14
- package/core/keyboard/keycodes.js +0 -20
- package/core/keyboard/keycodes.js.map +0 -1
- package/core/keyboard/keycodes.metadata.json +0 -1
- package/core/line/line.d.ts +0 -23
- package/core/line/line.js +0 -74
- package/core/line/line.js.map +0 -1
- package/core/line/line.metadata.json +0 -1
- package/core/observe-content/observe-content.d.ts +0 -17
- package/core/observe-content/observe-content.js +0 -66
- package/core/observe-content/observe-content.js.map +0 -1
- package/core/observe-content/observe-content.metadata.json +0 -1
- package/core/overlay/_overlay.scss +0 -68
- package/core/overlay/generic-component-type.d.ts +0 -3
- package/core/overlay/generic-component-type.js +0 -3
- package/core/overlay/generic-component-type.js.map +0 -1
- package/core/overlay/overlay-container.d.ts +0 -19
- package/core/overlay/overlay-container.js +0 -33
- package/core/overlay/overlay-container.js.map +0 -1
- package/core/overlay/overlay-container.metadata.json +0 -1
- package/core/overlay/overlay-directives.d.ts +0 -80
- package/core/overlay/overlay-directives.js +0 -316
- package/core/overlay/overlay-directives.js.map +0 -1
- package/core/overlay/overlay-directives.metadata.json +0 -1
- package/core/overlay/overlay-ref.d.ts +0 -56
- package/core/overlay/overlay-ref.js +0 -155
- package/core/overlay/overlay-ref.js.map +0 -1
- package/core/overlay/overlay-ref.metadata.json +0 -1
- package/core/overlay/overlay-state.d.ts +0 -24
- package/core/overlay/overlay-state.js +0 -17
- package/core/overlay/overlay-state.js.map +0 -1
- package/core/overlay/overlay-state.metadata.json +0 -1
- package/core/overlay/overlay.d.ts +0 -54
- package/core/overlay/overlay.js +0 -97
- package/core/overlay/overlay.js.map +0 -1
- package/core/overlay/overlay.metadata.json +0 -1
- package/core/overlay/position/connected-position-strategy.d.ts +0 -133
- package/core/overlay/position/connected-position-strategy.js +0 -292
- package/core/overlay/position/connected-position-strategy.js.map +0 -1
- package/core/overlay/position/connected-position-strategy.metadata.json +0 -1
- package/core/overlay/position/connected-position.d.ts +0 -56
- package/core/overlay/position/connected-position.js +0 -65
- package/core/overlay/position/connected-position.js.map +0 -1
- package/core/overlay/position/connected-position.metadata.json +0 -1
- package/core/overlay/position/fake-viewport-ruler.d.ts +0 -15
- package/core/overlay/position/fake-viewport-ruler.js +0 -16
- package/core/overlay/position/fake-viewport-ruler.js.map +0 -1
- package/core/overlay/position/fake-viewport-ruler.metadata.json +0 -1
- package/core/overlay/position/global-position-strategy.d.ts +0 -75
- package/core/overlay/position/global-position-strategy.js +0 -148
- package/core/overlay/position/global-position-strategy.js.map +0 -1
- package/core/overlay/position/global-position-strategy.metadata.json +0 -1
- package/core/overlay/position/overlay-position-builder.d.ts +0 -21
- package/core/overlay/position/overlay-position-builder.js +0 -41
- package/core/overlay/position/overlay-position-builder.js.map +0 -1
- package/core/overlay/position/overlay-position-builder.metadata.json +0 -1
- package/core/overlay/position/position-strategy.d.ts +0 -7
- package/core/overlay/position/position-strategy.js +0 -3
- package/core/overlay/position/position-strategy.js.map +0 -1
- package/core/overlay/position/relative-position-strategy.d.ts +0 -9
- package/core/overlay/position/relative-position-strategy.js +0 -16
- package/core/overlay/position/relative-position-strategy.js.map +0 -1
- package/core/overlay/position/relative-position-strategy.metadata.json +0 -1
- package/core/overlay/position/viewport-ruler.d.ts +0 -16
- package/core/overlay/position/viewport-ruler.js +0 -67
- package/core/overlay/position/viewport-ruler.js.map +0 -1
- package/core/overlay/position/viewport-ruler.metadata.json +0 -1
- package/core/overlay/scroll/scroll-dispatcher.d.ts +0 -44
- package/core/overlay/scroll/scroll-dispatcher.js +0 -94
- package/core/overlay/scroll/scroll-dispatcher.js.map +0 -1
- package/core/overlay/scroll/scroll-dispatcher.metadata.json +0 -1
- package/core/overlay/scroll/scrollable.d.ts +0 -21
- package/core/overlay/scroll/scrollable.js +0 -48
- package/core/overlay/scroll/scrollable.js.map +0 -1
- package/core/overlay/scroll/scrollable.metadata.json +0 -1
- package/core/platform/features.d.ts +0 -2
- package/core/platform/features.js +0 -37
- package/core/platform/features.js.map +0 -1
- package/core/platform/features.metadata.json +0 -1
- package/core/platform/index.d.ts +0 -6
- package/core/platform/index.js +0 -30
- package/core/platform/index.js.map +0 -1
- package/core/platform/index.metadata.json +0 -1
- package/core/platform/platform.d.ts +0 -16
- package/core/platform/platform.js +0 -48
- package/core/platform/platform.js.map +0 -1
- package/core/platform/platform.metadata.json +0 -1
- package/core/portal/README.md +0 -72
- package/core/portal/dom-portal-host.d.ts +0 -31
- package/core/portal/dom-portal-host.js +0 -108
- package/core/portal/dom-portal-host.js.map +0 -1
- package/core/portal/dom-portal-host.metadata.json +0 -1
- package/core/portal/portal-directives.d.ts +0 -49
- package/core/portal/portal-directives.js +0 -148
- package/core/portal/portal-directives.js.map +0 -1
- package/core/portal/portal-directives.metadata.json +0 -1
- package/core/portal/portal-errors.d.ts +0 -43
- package/core/portal/portal-errors.js +0 -75
- package/core/portal/portal-errors.js.map +0 -1
- package/core/portal/portal-errors.metadata.json +0 -1
- package/core/portal/portal.d.ts +0 -85
- package/core/portal/portal.js +0 -155
- package/core/portal/portal.js.map +0 -1
- package/core/portal/portal.metadata.json +0 -1
- package/core/projection/projection.d.ts +0 -45
- package/core/projection/projection.js +0 -111
- package/core/projection/projection.js.map +0 -1
- package/core/projection/projection.metadata.json +0 -1
- package/core/ripple/README.md +0 -27
- package/core/ripple/_ripple.scss +0 -106
- package/core/ripple/ripple-renderer.d.ts +0 -76
- package/core/ripple/ripple-renderer.js +0 -177
- package/core/ripple/ripple-renderer.js.map +0 -1
- package/core/ripple/ripple-renderer.metadata.json +0 -1
- package/core/ripple/ripple.d.ts +0 -92
- package/core/ripple/ripple.js +0 -295
- package/core/ripple/ripple.js.map +0 -1
- package/core/ripple/ripple.metadata.json +0 -1
- package/core/rtl/dir.d.ts +0 -21
- package/core/rtl/dir.js +0 -87
- package/core/rtl/dir.js.map +0 -1
- package/core/rtl/dir.metadata.json +0 -1
- package/core/style/_button-common.scss +0 -7
- package/core/style/_elevation.scss +0 -174
- package/core/style/_form-common.scss +0 -12
- package/core/style/_layout-common.scss +0 -8
- package/core/style/_list-common.scss +0 -49
- package/core/style/_menu-common.scss +0 -89
- package/core/style/_variables.scss +0 -64
- package/core/style/apply-transform.d.ts +0 -6
- package/core/style/apply-transform.js +0 -14
- package/core/style/apply-transform.js.map +0 -1
- package/core/style/apply-transform.metadata.json +0 -1
- package/core/theming/_all-theme.scss +0 -52
- package/core/theming/_palette.scss +0 -694
- package/core/theming/_theming.scss +0 -84
- package/core/theming/prebuilt/deeppurple-amber.css +0 -1
- package/core/theming/prebuilt/deeppurple-amber.css.map +0 -1
- package/core/theming/prebuilt/deeppurple-amber.scss +0 -14
- package/core/theming/prebuilt/indigo-pink.css +0 -1
- package/core/theming/prebuilt/indigo-pink.css.map +0 -1
- package/core/theming/prebuilt/indigo-pink.scss +0 -14
- package/core/theming/prebuilt/pink-bluegrey.css +0 -1
- package/core/theming/prebuilt/pink-bluegrey.css.map +0 -1
- package/core/theming/prebuilt/pink-bluegrey.scss +0 -14
- package/core/theming/prebuilt/purple-green.css +0 -1
- package/core/theming/prebuilt/purple-green.css.map +0 -1
- package/core/theming/prebuilt/purple-green.scss +0 -14
- package/core/typography/_typography.scss +0 -6
- package/core/util/object-extend.d.ts +0 -8
- package/core/util/object-extend.js +0 -29
- package/core/util/object-extend.js.map +0 -1
- package/core/util/object-extend.metadata.json +0 -1
- package/core.js +0 -3
- package/core.js.map +0 -1
- package/dialog/OVERVIEW.md +0 -39
- package/dialog/README.md +0 -102
- package/dialog/_dialog-theme.scss +0 -11
- package/dialog/dialog-config.d.ts +0 -26
- package/dialog/dialog-config.js +0 -19
- package/dialog/dialog-config.js.map +0 -1
- package/dialog/dialog-config.metadata.json +0 -1
- package/dialog/dialog-container.d.ts +0 -37
- package/dialog/dialog-container.html +0 -1
- package/dialog/dialog-container.js +0 -97
- package/dialog/dialog-container.js.map +0 -1
- package/dialog/dialog-container.metadata.json +0 -1
- package/dialog/dialog-content-directives.d.ts +0 -26
- package/dialog/dialog-content-directives.js +0 -81
- package/dialog/dialog-content-directives.js.map +0 -1
- package/dialog/dialog-content-directives.metadata.json +0 -1
- package/dialog/dialog-errors.d.ts +0 -8
- package/dialog/dialog-errors.js +0 -19
- package/dialog/dialog-errors.js.map +0 -1
- package/dialog/dialog-errors.metadata.json +0 -1
- package/dialog/dialog-injector.d.ts +0 -9
- package/dialog/dialog-injector.js +0 -17
- package/dialog/dialog-injector.js.map +0 -1
- package/dialog/dialog-injector.metadata.json +0 -1
- package/dialog/dialog-ref.d.ts +0 -22
- package/dialog/dialog-ref.js +0 -31
- package/dialog/dialog-ref.js.map +0 -1
- package/dialog/dialog-ref.metadata.json +0 -1
- package/dialog/dialog.css +0 -1
- package/dialog/dialog.css.map +0 -1
- package/dialog/dialog.d.ts +0 -57
- package/dialog/dialog.js +0 -157
- package/dialog/dialog.js.map +0 -1
- package/dialog/dialog.metadata.json +0 -1
- package/dialog/dialog.scss +0 -54
- package/dialog/index.js +0 -59
- package/dialog/index.js.map +0 -1
- package/grid-list/OVERVIEW.md +0 -43
- package/grid-list/README.md +0 -105
- package/grid-list/_grid-list-theme.scss +0 -6
- package/grid-list/grid-list-errors.d.ts +0 -22
- package/grid-list/grid-list-errors.js +0 -41
- package/grid-list/grid-list-errors.js.map +0 -1
- package/grid-list/grid-list-errors.metadata.json +0 -1
- package/grid-list/grid-list-measure.d.ts +0 -10
- package/grid-list/grid-list-measure.js +0 -16
- package/grid-list/grid-list-measure.js.map +0 -1
- package/grid-list/grid-list-measure.metadata.json +0 -1
- package/grid-list/grid-list.css +0 -1
- package/grid-list/grid-list.css.map +0 -1
- package/grid-list/grid-list.d.ts +0 -49
- package/grid-list/grid-list.html +0 -1
- package/grid-list/grid-list.js +0 -166
- package/grid-list/grid-list.js.map +0 -1
- package/grid-list/grid-list.metadata.json +0 -1
- package/grid-list/grid-list.scss +0 -91
- package/grid-list/grid-tile-text.html +0 -1
- package/grid-list/grid-tile.d.ts +0 -30
- package/grid-list/grid-tile.html +0 -1
- package/grid-list/grid-tile.js +0 -81
- package/grid-list/grid-tile.js.map +0 -1
- package/grid-list/grid-tile.metadata.json +0 -1
- package/grid-list/index.js +0 -3
- package/grid-list/index.js.map +0 -1
- package/grid-list/tile-coordinator.d.ts +0 -56
- package/grid-list/tile-coordinator.js +0 -129
- package/grid-list/tile-coordinator.js.map +0 -1
- package/grid-list/tile-coordinator.metadata.json +0 -1
- package/grid-list/tile-styler.d.ts +0 -112
- package/grid-list/tile-styler.js +0 -211
- package/grid-list/tile-styler.js.map +0 -1
- package/grid-list/tile-styler.metadata.json +0 -1
- package/icon/OVERVIEW.md +0 -88
- package/icon/README.md +0 -129
- package/icon/_icon-theme.scss +0 -25
- package/icon/fake-svgs.d.ts +0 -6
- package/icon/fake-svgs.js +0 -31
- package/icon/fake-svgs.js.map +0 -1
- package/icon/fake-svgs.metadata.json +0 -1
- package/icon/icon-registry.d.ts +0 -180
- package/icon/icon-registry.js +0 -413
- package/icon/icon-registry.js.map +0 -1
- package/icon/icon-registry.metadata.json +0 -1
- package/icon/icon.css +0 -1
- package/icon/icon.css.map +0 -1
- package/icon/icon.d.ts +0 -91
- package/icon/icon.js +0 -264
- package/icon/icon.js.map +0 -1
- package/icon/icon.metadata.json +0 -1
- package/icon/icon.scss +0 -13
- package/icon/index.js +0 -3
- package/icon/index.js.map +0 -1
- package/index.d.ts +0 -25
- package/index.js +0 -27
- package/index.js.map +0 -1
- package/index.metadata.json +0 -1
- package/input/OVERVIEW.md +0 -72
- package/input/README.md +0 -183
- package/input/_input-theme.scss +0 -62
- package/input/autosize.d.ts +0 -29
- package/input/autosize.js +0 -94
- package/input/autosize.js.map +0 -1
- package/input/autosize.metadata.json +0 -1
- package/input/index.js +0 -6
- package/input/index.js.map +0 -1
- package/input/input-container-errors.d.ts +0 -17
- package/input/input-container-errors.js +0 -41
- package/input/input-container-errors.js.map +0 -1
- package/input/input-container-errors.metadata.json +0 -1
- package/input/input-container.css +0 -1
- package/input/input-container.css.map +0 -1
- package/input/input-container.d.ts +0 -95
- package/input/input-container.html +0 -1
- package/input/input-container.js +0 -352
- package/input/input-container.js.map +0 -1
- package/input/input-container.metadata.json +0 -1
- package/input/input-container.scss +0 -32
- package/input/input.css +0 -1
- package/input/input.css.map +0 -1
- package/input/input.d.ts +0 -184
- package/input/input.html +0 -1
- package/input/input.js +0 -564
- package/input/input.js.map +0 -1
- package/input/input.metadata.json +0 -1
- package/input/input.scss +0 -202
- package/list/OVERVIEW.md +0 -124
- package/list/README.md +0 -154
- package/list/_list-theme.scss +0 -28
- package/list/index.js +0 -3
- package/list/index.js.map +0 -1
- package/list/list-item.html +0 -1
- package/list/list.css +0 -1
- package/list/list.css.map +0 -1
- package/list/list.d.ts +0 -23
- package/list/list.js +0 -119
- package/list/list.js.map +0 -1
- package/list/list.metadata.json +0 -1
- package/list/list.scss +0 -181
- package/menu/OVERVIEW.md +0 -62
- package/menu/README.md +0 -171
- package/menu/_menu-theme.scss +0 -29
- package/menu/index.js +0 -7
- package/menu/index.js.map +0 -1
- package/menu/menu-animations.d.ts +0 -19
- package/menu/menu-animations.js +0 -43
- package/menu/menu-animations.js.map +0 -1
- package/menu/menu-animations.metadata.json +0 -1
- package/menu/menu-directive.d.ts +0 -46
- package/menu/menu-directive.js +0 -136
- package/menu/menu-directive.js.map +0 -1
- package/menu/menu-directive.metadata.json +0 -1
- package/menu/menu-errors.d.ts +0 -24
- package/menu/menu-errors.js +0 -43
- package/menu/menu-errors.js.map +0 -1
- package/menu/menu-errors.metadata.json +0 -1
- package/menu/menu-item.d.ts +0 -20
- package/menu/menu-item.html +0 -1
- package/menu/menu-item.js +0 -77
- package/menu/menu-item.js.map +0 -1
- package/menu/menu-item.metadata.json +0 -1
- package/menu/menu-panel.d.ts +0 -10
- package/menu/menu-panel.js +0 -3
- package/menu/menu-panel.js.map +0 -1
- package/menu/menu-positions.d.ts +0 -2
- package/menu/menu-positions.js +0 -3
- package/menu/menu-positions.js.map +0 -1
- package/menu/menu-trigger.d.ts +0 -92
- package/menu/menu-trigger.js +0 -246
- package/menu/menu-trigger.js.map +0 -1
- package/menu/menu-trigger.metadata.json +0 -1
- package/menu/menu.css +0 -1
- package/menu/menu.css.map +0 -1
- package/menu/menu.d.ts +0 -9
- package/menu/menu.html +0 -1
- package/menu/menu.js +0 -40
- package/menu/menu.js.map +0 -1
- package/menu/menu.metadata.json +0 -1
- package/menu/menu.scss +0 -44
- package/module.d.ts +0 -6
- package/module.js +0 -132
- package/module.js.map +0 -1
- package/module.metadata.json +0 -1
- package/progress-bar/OVERVIEW.md +0 -30
- package/progress-bar/README.md +0 -54
- package/progress-bar/_progress-bar-theme.scss +0 -70
- package/progress-bar/index.js +0 -3
- package/progress-bar/index.js.map +0 -1
- package/progress-bar/progress-bar.css +0 -1
- package/progress-bar/progress-bar.css.map +0 -1
- package/progress-bar/progress-bar.d.ts +0 -36
- package/progress-bar/progress-bar.html +0 -1
- package/progress-bar/progress-bar.js +0 -124
- package/progress-bar/progress-bar.js.map +0 -1
- package/progress-bar/progress-bar.metadata.json +0 -1
- package/progress-bar/progress-bar.scss +0 -230
- package/progress-spinner/OVERVIEW.md +0 -23
- package/progress-spinner/README.md +0 -51
- package/progress-spinner/_progress-spinner-theme.scss +0 -23
- package/progress-spinner/index.js +0 -4
- package/progress-spinner/index.js.map +0 -1
- package/progress-spinner/progress-circle.d.ts +0 -4
- package/progress-spinner/progress-circle.js +0 -6
- package/progress-spinner/progress-circle.js.map +0 -1
- package/progress-spinner/progress-circle.metadata.json +0 -1
- package/progress-spinner/progress-spinner.css +0 -1
- package/progress-spinner/progress-spinner.css.map +0 -1
- package/progress-spinner/progress-spinner.d.ts +0 -80
- package/progress-spinner/progress-spinner.html +0 -1
- package/progress-spinner/progress-spinner.js +0 -337
- package/progress-spinner/progress-spinner.js.map +0 -1
- package/progress-spinner/progress-spinner.metadata.json +0 -1
- package/progress-spinner/progress-spinner.scss +0 -68
- package/radio/OVERVIEW.md +0 -29
- package/radio/README.md +0 -55
- package/radio/_radio-theme.scss +0 -39
- package/radio/index.js +0 -3
- package/radio/index.js.map +0 -1
- package/radio/radio.css +0 -1
- package/radio/radio.css.map +0 -1
- package/radio/radio.d.ts +0 -179
- package/radio/radio.html +0 -1
- package/radio/radio.js +0 -552
- package/radio/radio.js.map +0 -1
- package/radio/radio.metadata.json +0 -1
- package/radio/radio.scss +0 -102
- package/select/OVERVIEW.md +0 -8
- package/select/README.md +0 -3
- package/select/_select-theme.scss +0 -64
- package/select/index.js +0 -38
- package/select/index.js.map +0 -1
- package/select/option.d.ts +0 -44
- package/select/option.html +0 -1
- package/select/option.js +0 -135
- package/select/option.js.map +0 -1
- package/select/option.metadata.json +0 -1
- package/select/select-animations.d.ts +0 -29
- package/select/select-animations.js +0 -66
- package/select/select-animations.js.map +0 -1
- package/select/select-animations.metadata.json +0 -1
- package/select/select.css +0 -1
- package/select/select.css.map +0 -1
- package/select/select.d.ts +0 -258
- package/select/select.html +0 -1
- package/select/select.js +0 -604
- package/select/select.js.map +0 -1
- package/select/select.metadata.json +0 -1
- package/select/select.scss +0 -131
- package/sidenav/OVERVIEW.md +0 -70
- package/sidenav/README.md +0 -166
- package/sidenav/_sidenav-theme.scss +0 -37
- package/sidenav/index.js +0 -3
- package/sidenav/index.js.map +0 -1
- package/sidenav/sidenav-container.html +0 -1
- package/sidenav/sidenav-transitions.css +0 -1
- package/sidenav/sidenav-transitions.css.map +0 -1
- package/sidenav/sidenav-transitions.scss +0 -14
- package/sidenav/sidenav.css +0 -1
- package/sidenav/sidenav.css.map +0 -1
- package/sidenav/sidenav.d.ts +0 -182
- package/sidenav/sidenav.html +0 -1
- package/sidenav/sidenav.js +0 -580
- package/sidenav/sidenav.js.map +0 -1
- package/sidenav/sidenav.metadata.json +0 -1
- package/sidenav/sidenav.scss +0 -151
- package/slide-toggle/OVERVIEW.md +0 -24
- package/slide-toggle/README.md +0 -66
- package/slide-toggle/_slide-toggle-theme.scss +0 -89
- package/slide-toggle/index.js +0 -3
- package/slide-toggle/index.js.map +0 -1
- package/slide-toggle/slide-toggle.css +0 -1
- package/slide-toggle/slide-toggle.css.map +0 -1
- package/slide-toggle/slide-toggle.d.ts +0 -84
- package/slide-toggle/slide-toggle.html +0 -1
- package/slide-toggle/slide-toggle.js +0 -347
- package/slide-toggle/slide-toggle.js.map +0 -1
- package/slide-toggle/slide-toggle.metadata.json +0 -1
- package/slide-toggle/slide-toggle.scss +0 -158
- package/slider/OVERVIEW.md +0 -87
- package/slider/README.md +0 -150
- package/slider/_slider-theme.scss +0 -32
- package/slider/index.js +0 -3
- package/slider/index.js.map +0 -1
- package/slider/slider.css +0 -1
- package/slider/slider.css.map +0 -1
- package/slider/slider.d.ts +0 -176
- package/slider/slider.html +0 -1
- package/slider/slider.js +0 -609
- package/slider/slider.js.map +0 -1
- package/slider/slider.metadata.json +0 -1
- package/slider/slider.scss +0 -307
- package/slider/test-gesture-config.d.ts +0 -21
- package/slider/test-gesture-config.js +0 -60
- package/slider/test-gesture-config.js.map +0 -1
- package/slider/test-gesture-config.metadata.json +0 -1
- package/snack-bar/OVERVIEW.md +0 -47
- package/snack-bar/README.md +0 -37
- package/snack-bar/index.js +0 -6
- package/snack-bar/index.js.map +0 -1
- package/snack-bar/simple-snack-bar.css +0 -1
- package/snack-bar/simple-snack-bar.css.map +0 -1
- package/snack-bar/simple-snack-bar.d.ts +0 -17
- package/snack-bar/simple-snack-bar.html +0 -1
- package/snack-bar/simple-snack-bar.js +0 -38
- package/snack-bar/simple-snack-bar.js.map +0 -1
- package/snack-bar/simple-snack-bar.metadata.json +0 -1
- package/snack-bar/simple-snack-bar.scss +0 -28
- package/snack-bar/snack-bar-config.d.ts +0 -15
- package/snack-bar/snack-bar-config.js +0 -18
- package/snack-bar/snack-bar-config.js.map +0 -1
- package/snack-bar/snack-bar-config.metadata.json +0 -1
- package/snack-bar/snack-bar-container.css +0 -1
- package/snack-bar/snack-bar-container.css.map +0 -1
- package/snack-bar/snack-bar-container.d.ts +0 -43
- package/snack-bar/snack-bar-container.html +0 -1
- package/snack-bar/snack-bar-container.js +0 -124
- package/snack-bar/snack-bar-container.js.map +0 -1
- package/snack-bar/snack-bar-container.metadata.json +0 -1
- package/snack-bar/snack-bar-container.scss +0 -27
- package/snack-bar/snack-bar-errors.d.ts +0 -8
- package/snack-bar/snack-bar-errors.js +0 -19
- package/snack-bar/snack-bar-errors.js.map +0 -1
- package/snack-bar/snack-bar-errors.metadata.json +0 -1
- package/snack-bar/snack-bar-ref.d.ts +0 -38
- package/snack-bar/snack-bar-ref.js +0 -70
- package/snack-bar/snack-bar-ref.js.map +0 -1
- package/snack-bar/snack-bar-ref.metadata.json +0 -1
- package/snack-bar/snack-bar.d.ts +0 -45
- package/snack-bar/snack-bar.js +0 -145
- package/snack-bar/snack-bar.js.map +0 -1
- package/snack-bar/snack-bar.metadata.json +0 -1
- package/system-config-spec.d.ts +0 -2
- package/tabs/OVERVIEW.md +0 -81
- package/tabs/README.md +0 -64
- package/tabs/Tabs Pagination.png +0 -0
- package/tabs/_tabs-common.scss +0 -42
- package/tabs/_tabs-theme.scss +0 -24
- package/tabs/index.js +0 -9
- package/tabs/index.js.map +0 -1
- package/tabs/ink-bar.d.ts +0 -27
- package/tabs/ink-bar.js +0 -58
- package/tabs/ink-bar.js.map +0 -1
- package/tabs/ink-bar.metadata.json +0 -1
- package/tabs/tab-body.d.ts +0 -59
- package/tabs/tab-body.html +0 -1
- package/tabs/tab-body.js +0 -157
- package/tabs/tab-body.js.map +0 -1
- package/tabs/tab-body.metadata.json +0 -1
- package/tabs/tab-group.css +0 -1
- package/tabs/tab-group.css.map +0 -1
- package/tabs/tab-group.d.ts +0 -71
- package/tabs/tab-group.html +0 -1
- package/tabs/tab-group.js +0 -236
- package/tabs/tab-group.js.map +0 -1
- package/tabs/tab-group.metadata.json +0 -1
- package/tabs/tab-group.scss +0 -59
- package/tabs/tab-header.css +0 -1
- package/tabs/tab-header.css.map +0 -1
- package/tabs/tab-header.d.ts +0 -137
- package/tabs/tab-header.html +0 -1
- package/tabs/tab-header.js +0 -354
- package/tabs/tab-header.js.map +0 -1
- package/tabs/tab-header.metadata.json +0 -1
- package/tabs/tab-header.scss +0 -85
- package/tabs/tab-label-wrapper.d.ts +0 -15
- package/tabs/tab-label-wrapper.js +0 -53
- package/tabs/tab-label-wrapper.js.map +0 -1
- package/tabs/tab-label-wrapper.metadata.json +0 -1
- package/tabs/tab-label.d.ts +0 -6
- package/tabs/tab-label.js +0 -32
- package/tabs/tab-label.js.map +0 -1
- package/tabs/tab-label.metadata.json +0 -1
- package/tabs/tab-nav-bar/index.d.ts +0 -1
- package/tabs/tab-nav-bar/index.js +0 -3
- package/tabs/tab-nav-bar/index.js.map +0 -1
- package/tabs/tab-nav-bar/index.metadata.json +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.css +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.css.map +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -37
- package/tabs/tab-nav-bar/tab-nav-bar.html +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.js +0 -103
- package/tabs/tab-nav-bar/tab-nav-bar.js.map +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.metadata.json +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.scss +0 -26
- package/tabs/tab.d.ts +0 -30
- package/tabs/tab.html +0 -1
- package/tabs/tab.js +0 -74
- package/tabs/tab.js.map +0 -1
- package/tabs/tab.metadata.json +0 -1
- package/toolbar/OVERVIEW.md +0 -51
- package/toolbar/README.md +0 -68
- package/toolbar/_toolbar-theme.scss +0 -33
- package/toolbar/index.js +0 -3
- package/toolbar/index.js.map +0 -1
- package/toolbar/toolbar.css +0 -1
- package/toolbar/toolbar.css.map +0 -1
- package/toolbar/toolbar.d.ts +0 -16
- package/toolbar/toolbar.html +0 -1
- package/toolbar/toolbar.js +0 -84
- package/toolbar/toolbar.js.map +0 -1
- package/toolbar/toolbar.metadata.json +0 -1
- package/toolbar/toolbar.scss +0 -58
- package/tooltip/OVERVIEW.md +0 -35
- package/tooltip/README.md +0 -28
- package/tooltip/_tooltip-theme.scss +0 -9
- package/tooltip/index.js +0 -3
- package/tooltip/index.js.map +0 -1
- package/tooltip/tooltip-errors.d.ts +0 -8
- package/tooltip/tooltip-errors.js +0 -19
- package/tooltip/tooltip-errors.js.map +0 -1
- package/tooltip/tooltip-errors.metadata.json +0 -1
- package/tooltip/tooltip.css +0 -1
- package/tooltip/tooltip.css.map +0 -1
- package/tooltip/tooltip.d.ts +0 -116
- package/tooltip/tooltip.html +0 -1
- package/tooltip/tooltip.js +0 -387
- package/tooltip/tooltip.js.map +0 -1
- package/tooltip/tooltip.metadata.json +0 -1
- package/tooltip/tooltip.scss +0 -26
- package/tsconfig-srcs.json +0 -31
- package/tsconfig.json +0 -34
- package/typedoc.json +0 -20
- package/typings.d.ts +0 -1
package/core/a11y/README.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# LiveAnnouncer
|
|
2
|
-
`LiveAnnouncer` is a service, which announces messages to several screenreaders.
|
|
3
|
-
|
|
4
|
-
### Methods
|
|
5
|
-
|
|
6
|
-
| Name | Description |
|
|
7
|
-
| --- | --- |
|
|
8
|
-
| `announce(message, politeness)` | This announces a text message to the supported screenreaders. <br><br>The politeness parameter sets the `aria-live` attribute on the announcer element |
|
|
9
|
-
|
|
10
|
-
### Examples
|
|
11
|
-
The service can be injected in a component.
|
|
12
|
-
```ts
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'my-component'
|
|
15
|
-
providers: [LiveAnnouncer]
|
|
16
|
-
})
|
|
17
|
-
export class MyComponent {
|
|
18
|
-
|
|
19
|
-
constructor(live: LiveAnnouncer) {
|
|
20
|
-
live.announce("Hey Google");
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### Supported Screenreaders
|
|
27
|
-
- JAWS (Windows)
|
|
28
|
-
- NVDA (Windows)
|
|
29
|
-
- VoiceOver (OSX and iOS)
|
|
30
|
-
- TalkBack (Android)
|
package/core/a11y/_a11y.scss
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@mixin cdk-a11y {
|
|
2
|
-
.cdk-visually-hidden {
|
|
3
|
-
border: 0;
|
|
4
|
-
clip: rect(0 0 0 0);
|
|
5
|
-
height: 1px;
|
|
6
|
-
margin: -1px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
padding: 0;
|
|
9
|
-
position: absolute;
|
|
10
|
-
text-transform: none;
|
|
11
|
-
width: 1px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Applies styles for users in high contrast mode. Note that this only applies
|
|
17
|
-
* to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
|
|
18
|
-
* attribute, however Chrome handles high contrast differently.
|
|
19
|
-
*/
|
|
20
|
-
@mixin cdk-high-contrast {
|
|
21
|
-
@media screen and (-ms-high-contrast: active) {
|
|
22
|
-
@content;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Screenreaders will often fire fake mousedown events when a focusable element
|
|
3
|
-
* is activated using the keyboard. We can typically distinguish between these faked
|
|
4
|
-
* mousedown events and real mousedown events using the "buttons" property. While
|
|
5
|
-
* real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
|
|
6
|
-
* the left mouse button), faked mousedowns will usually set the property value to 0.
|
|
7
|
-
*/
|
|
8
|
-
export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Screenreaders will often fire fake mousedown events when a focusable element
|
|
3
|
-
* is activated using the keyboard. We can typically distinguish between these faked
|
|
4
|
-
* mousedown events and real mousedown events using the "buttons" property. While
|
|
5
|
-
* real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
|
|
6
|
-
* the left mouse button), faked mousedowns will usually set the property value to 0.
|
|
7
|
-
*/
|
|
8
|
-
export function isFakeMousedownFromScreenReader(event) {
|
|
9
|
-
return event.buttons === 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=fake-mousedown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/a11y/fake-mousedown.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,gDAAgD,KAAiB;IAC/D,MAAM,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAC7B,CAAC","file":"fake-mousedown.js","sourcesContent":["\n/**\n * Screenreaders will often fire fake mousedown events when a focusable element\n * is activated using the keyboard. We can typically distinguish between these faked\n * mousedown events and real mousedown events using the \"buttons\" property. While\n * real mousedowns will indicate the mouse button that was pressed (e.g. \"1\" for\n * the left mouse button), faked mousedowns will usually set the property value to 0.\n */\nexport function isFakeMousedownFromScreenReader(event: MouseEvent): boolean {\n return event.buttons === 0;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":2,"metadata":{"isFakeMousedownFromScreenReader":{"__symbolic":"function","parameters":["event"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"buttons"},"right":0}}}},{"__symbolic":"module","metadata":{"isFakeMousedownFromScreenReader":{"__symbolic":"function","parameters":["event"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"buttons"},"right":0}}},"version":1}]
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ElementRef, NgZone } from '@angular/core';
|
|
2
|
-
import { InteractivityChecker } from './interactivity-checker';
|
|
3
|
-
/**
|
|
4
|
-
* Directive for trapping focus within a region.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: This directive currently uses a very simple (naive) approach to focus trapping.
|
|
7
|
-
* It assumes that the tab order is the same as DOM order, which is not necessarily true.
|
|
8
|
-
* Things like tabIndex > 0, flex `order`, and shadow roots can cause to two to misalign.
|
|
9
|
-
* This will be replaced with a more intelligent solution before the library is considered stable.
|
|
10
|
-
*/
|
|
11
|
-
export declare class FocusTrap {
|
|
12
|
-
private _checker;
|
|
13
|
-
private _ngZone;
|
|
14
|
-
trappedContent: ElementRef;
|
|
15
|
-
/** Whether the focus trap is active. */
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
private _disabled;
|
|
18
|
-
constructor(_checker: InteractivityChecker, _ngZone: NgZone);
|
|
19
|
-
/**
|
|
20
|
-
* Waits for microtask queue to empty, then focuses the first tabbable element within the focus
|
|
21
|
-
* trap region.
|
|
22
|
-
*/
|
|
23
|
-
focusFirstTabbableElementWhenReady(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Waits for microtask queue to empty, then focuses the last tabbable element within the focus
|
|
26
|
-
* trap region.
|
|
27
|
-
*/
|
|
28
|
-
focusLastTabbableElementWhenReady(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Focuses the first tabbable element within the focus trap region.
|
|
31
|
-
*/
|
|
32
|
-
focusFirstTabbableElement(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Focuses the last tabbable element within the focus trap region.
|
|
35
|
-
*/
|
|
36
|
-
focusLastTabbableElement(): void;
|
|
37
|
-
/** Get the first tabbable element from a DOM subtree (inclusive). */
|
|
38
|
-
private _getFirstTabbableElement(root);
|
|
39
|
-
/** Get the last tabbable element from a DOM subtree (inclusive). */
|
|
40
|
-
private _getLastTabbableElement(root);
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div *ngIf="!disabled" tabindex="0" (focus)="focusLastTabbableElement()"></div><div #trappedContent class="cdk-focus-trap-content"><ng-content></ng-content></div><div *ngIf="!disabled" tabindex="0" (focus)="focusFirstTabbableElement()"></div>
|
package/core/a11y/focus-trap.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Component, ViewEncapsulation, ViewChild, ElementRef, Input, NgZone } from '@angular/core';
|
|
11
|
-
import { InteractivityChecker } from './interactivity-checker';
|
|
12
|
-
import { coerceBooleanProperty } from '../coercion/boolean-property';
|
|
13
|
-
/**
|
|
14
|
-
* Directive for trapping focus within a region.
|
|
15
|
-
*
|
|
16
|
-
* NOTE: This directive currently uses a very simple (naive) approach to focus trapping.
|
|
17
|
-
* It assumes that the tab order is the same as DOM order, which is not necessarily true.
|
|
18
|
-
* Things like tabIndex > 0, flex `order`, and shadow roots can cause to two to misalign.
|
|
19
|
-
* This will be replaced with a more intelligent solution before the library is considered stable.
|
|
20
|
-
*/
|
|
21
|
-
export var FocusTrap = (function () {
|
|
22
|
-
function FocusTrap(_checker, _ngZone) {
|
|
23
|
-
this._checker = _checker;
|
|
24
|
-
this._ngZone = _ngZone;
|
|
25
|
-
this._disabled = false;
|
|
26
|
-
}
|
|
27
|
-
Object.defineProperty(FocusTrap.prototype, "disabled", {
|
|
28
|
-
/** Whether the focus trap is active. */
|
|
29
|
-
get: function () { return this._disabled; },
|
|
30
|
-
set: function (val) { this._disabled = coerceBooleanProperty(val); },
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
/**
|
|
35
|
-
* Waits for microtask queue to empty, then focuses the first tabbable element within the focus
|
|
36
|
-
* trap region.
|
|
37
|
-
*/
|
|
38
|
-
FocusTrap.prototype.focusFirstTabbableElementWhenReady = function () {
|
|
39
|
-
var _this = this;
|
|
40
|
-
this._ngZone.onMicrotaskEmpty.first().subscribe(function () {
|
|
41
|
-
_this.focusFirstTabbableElement();
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Waits for microtask queue to empty, then focuses the last tabbable element within the focus
|
|
46
|
-
* trap region.
|
|
47
|
-
*/
|
|
48
|
-
FocusTrap.prototype.focusLastTabbableElementWhenReady = function () {
|
|
49
|
-
var _this = this;
|
|
50
|
-
this._ngZone.onMicrotaskEmpty.first().subscribe(function () {
|
|
51
|
-
_this.focusLastTabbableElement();
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Focuses the first tabbable element within the focus trap region.
|
|
56
|
-
*/
|
|
57
|
-
FocusTrap.prototype.focusFirstTabbableElement = function () {
|
|
58
|
-
var rootElement = this.trappedContent.nativeElement;
|
|
59
|
-
var redirectToElement = rootElement.querySelector('[cdk-focus-start]') ||
|
|
60
|
-
this._getFirstTabbableElement(rootElement);
|
|
61
|
-
if (redirectToElement) {
|
|
62
|
-
redirectToElement.focus();
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Focuses the last tabbable element within the focus trap region.
|
|
67
|
-
*/
|
|
68
|
-
FocusTrap.prototype.focusLastTabbableElement = function () {
|
|
69
|
-
var rootElement = this.trappedContent.nativeElement;
|
|
70
|
-
var focusTargets = rootElement.querySelectorAll('[cdk-focus-end]');
|
|
71
|
-
var redirectToElement = null;
|
|
72
|
-
if (focusTargets.length) {
|
|
73
|
-
redirectToElement = focusTargets[focusTargets.length - 1];
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
redirectToElement = this._getLastTabbableElement(rootElement);
|
|
77
|
-
}
|
|
78
|
-
if (redirectToElement) {
|
|
79
|
-
redirectToElement.focus();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
/** Get the first tabbable element from a DOM subtree (inclusive). */
|
|
83
|
-
FocusTrap.prototype._getFirstTabbableElement = function (root) {
|
|
84
|
-
if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
|
|
85
|
-
return root;
|
|
86
|
-
}
|
|
87
|
-
// Iterate in DOM order.
|
|
88
|
-
var childCount = root.children.length;
|
|
89
|
-
for (var i = 0; i < childCount; i++) {
|
|
90
|
-
var tabbableChild = this._getFirstTabbableElement(root.children[i]);
|
|
91
|
-
if (tabbableChild) {
|
|
92
|
-
return tabbableChild;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return null;
|
|
96
|
-
};
|
|
97
|
-
/** Get the last tabbable element from a DOM subtree (inclusive). */
|
|
98
|
-
FocusTrap.prototype._getLastTabbableElement = function (root) {
|
|
99
|
-
if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
|
|
100
|
-
return root;
|
|
101
|
-
}
|
|
102
|
-
// Iterate in reverse DOM order.
|
|
103
|
-
for (var i = root.children.length - 1; i >= 0; i--) {
|
|
104
|
-
var tabbableChild = this._getLastTabbableElement(root.children[i]);
|
|
105
|
-
if (tabbableChild) {
|
|
106
|
-
return tabbableChild;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return null;
|
|
110
|
-
};
|
|
111
|
-
__decorate([
|
|
112
|
-
ViewChild('trappedContent'),
|
|
113
|
-
__metadata('design:type', ElementRef)
|
|
114
|
-
], FocusTrap.prototype, "trappedContent", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
Input(),
|
|
117
|
-
__metadata('design:type', Boolean)
|
|
118
|
-
], FocusTrap.prototype, "disabled", null);
|
|
119
|
-
FocusTrap = __decorate([
|
|
120
|
-
Component({selector: 'cdk-focus-trap, focus-trap',
|
|
121
|
-
template: "<div *ngIf=\"!disabled\" tabindex=\"0\" (focus)=\"focusLastTabbableElement()\"></div><div #trappedContent class=\"cdk-focus-trap-content\"><ng-content></ng-content></div><div *ngIf=\"!disabled\" tabindex=\"0\" (focus)=\"focusFirstTabbableElement()\"></div>",
|
|
122
|
-
encapsulation: ViewEncapsulation.None,
|
|
123
|
-
}),
|
|
124
|
-
__metadata('design:paramtypes', [InteractivityChecker, NgZone])
|
|
125
|
-
], FocusTrap);
|
|
126
|
-
return FocusTrap;
|
|
127
|
-
}());
|
|
128
|
-
|
|
129
|
-
//# sourceMappingURL=focus-trap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/a11y/focus-trap.ts"],"names":[],"mappings":"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","file":"focus-trap.js","sourcesContent":["import {Component, ViewEncapsulation, ViewChild, ElementRef, Input, NgZone} from '@angular/core';\nimport {InteractivityChecker} from './interactivity-checker';\nimport {coerceBooleanProperty} from '../coercion/boolean-property';\n\n\n/**\n * Directive for trapping focus within a region.\n *\n * NOTE: This directive currently uses a very simple (naive) approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like tabIndex > 0, flex `order`, and shadow roots can cause to two to misalign.\n * This will be replaced with a more intelligent solution before the library is considered stable.\n */\n@Component({\n moduleId: module.id,\n selector: 'cdk-focus-trap, focus-trap',\n templateUrl: 'focus-trap.html',\n encapsulation: ViewEncapsulation.None,\n})\nexport class FocusTrap {\n @ViewChild('trappedContent') trappedContent: ElementRef;\n\n /** Whether the focus trap is active. */\n @Input()\n get disabled(): boolean { return this._disabled; }\n set disabled(val: boolean) { this._disabled = coerceBooleanProperty(val); }\n private _disabled: boolean = false;\n\n constructor(private _checker: InteractivityChecker, private _ngZone: NgZone) { }\n\n /**\n * Waits for microtask queue to empty, then focuses the first tabbable element within the focus\n * trap region.\n */\n focusFirstTabbableElementWhenReady() {\n this._ngZone.onMicrotaskEmpty.first().subscribe(() => {\n this.focusFirstTabbableElement();\n });\n }\n\n /**\n * Waits for microtask queue to empty, then focuses the last tabbable element within the focus\n * trap region.\n */\n focusLastTabbableElementWhenReady() {\n this._ngZone.onMicrotaskEmpty.first().subscribe(() => {\n this.focusLastTabbableElement();\n });\n }\n\n /**\n * Focuses the first tabbable element within the focus trap region.\n */\n focusFirstTabbableElement() {\n let rootElement = this.trappedContent.nativeElement;\n let redirectToElement = rootElement.querySelector('[cdk-focus-start]') as HTMLElement ||\n this._getFirstTabbableElement(rootElement);\n\n if (redirectToElement) {\n redirectToElement.focus();\n }\n }\n\n /**\n * Focuses the last tabbable element within the focus trap region.\n */\n focusLastTabbableElement() {\n let rootElement = this.trappedContent.nativeElement;\n let focusTargets = rootElement.querySelectorAll('[cdk-focus-end]');\n let redirectToElement: HTMLElement = null;\n\n if (focusTargets.length) {\n redirectToElement = focusTargets[focusTargets.length - 1] as HTMLElement;\n } else {\n redirectToElement = this._getLastTabbableElement(rootElement);\n }\n\n if (redirectToElement) {\n redirectToElement.focus();\n }\n }\n\n /** Get the first tabbable element from a DOM subtree (inclusive). */\n private _getFirstTabbableElement(root: HTMLElement): HTMLElement {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n\n // Iterate in DOM order.\n let childCount = root.children.length;\n for (let i = 0; i < childCount; i++) {\n let tabbableChild = this._getFirstTabbableElement(root.children[i] as HTMLElement);\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n\n return null;\n }\n\n /** Get the last tabbable element from a DOM subtree (inclusive). */\n private _getLastTabbableElement(root: HTMLElement): HTMLElement {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n\n // Iterate in reverse DOM order.\n for (let i = root.children.length - 1; i >= 0; i--) {\n let tabbableChild = this._getLastTabbableElement(root.children[i] as HTMLElement);\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n\n return null;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":2,"metadata":{"FocusTrap":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"cdk-focus-trap, focus-trap","templateUrl":"focus-trap.html","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"trappedContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["trappedContent"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./interactivity-checker","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"focusFirstTabbableElementWhenReady":[{"__symbolic":"method"}],"focusLastTabbableElementWhenReady":[{"__symbolic":"method"}],"focusFirstTabbableElement":[{"__symbolic":"method"}],"focusLastTabbableElement":[{"__symbolic":"method"}],"_getFirstTabbableElement":[{"__symbolic":"method"}],"_getLastTabbableElement":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","metadata":{"FocusTrap":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"cdk-focus-trap, focus-trap","templateUrl":"focus-trap.html","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"trappedContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["trappedContent"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./interactivity-checker","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"focusFirstTabbableElementWhenReady":[{"__symbolic":"method"}],"focusLastTabbableElementWhenReady":[{"__symbolic":"method"}],"focusFirstTabbableElement":[{"__symbolic":"method"}],"focusLastTabbableElement":[{"__symbolic":"method"}],"_getFirstTabbableElement":[{"__symbolic":"method"}],"_getLastTabbableElement":[{"__symbolic":"method"}]}}},"version":1}]
|
package/core/a11y/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { LiveAnnouncer } from './live-announcer';
|
|
3
|
-
import { InteractivityChecker } from './interactivity-checker';
|
|
4
|
-
export declare const A11Y_PROVIDERS: (typeof InteractivityChecker | typeof LiveAnnouncer)[];
|
|
5
|
-
export declare class A11yModule {
|
|
6
|
-
static forRoot(): ModuleWithProviders;
|
|
7
|
-
}
|
package/core/a11y/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { NgModule } from '@angular/core';
|
|
11
|
-
import { FocusTrap } from './focus-trap';
|
|
12
|
-
import { LiveAnnouncer } from './live-announcer';
|
|
13
|
-
import { InteractivityChecker } from './interactivity-checker';
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
import { PlatformModule } from '../platform/index';
|
|
16
|
-
export var A11Y_PROVIDERS = [LiveAnnouncer, InteractivityChecker];
|
|
17
|
-
export var A11yModule = (function () {
|
|
18
|
-
function A11yModule() {
|
|
19
|
-
}
|
|
20
|
-
A11yModule.forRoot = function () {
|
|
21
|
-
return {
|
|
22
|
-
ngModule: A11yModule,
|
|
23
|
-
providers: [
|
|
24
|
-
PlatformModule.forRoot().providers,
|
|
25
|
-
A11Y_PROVIDERS,
|
|
26
|
-
],
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
A11yModule = __decorate([
|
|
30
|
-
NgModule({
|
|
31
|
-
imports: [CommonModule, PlatformModule],
|
|
32
|
-
declarations: [FocusTrap],
|
|
33
|
-
exports: [FocusTrap],
|
|
34
|
-
}),
|
|
35
|
-
__metadata('design:paramtypes', [])
|
|
36
|
-
], A11yModule);
|
|
37
|
-
return A11yModule;
|
|
38
|
-
}());
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=index.js.map
|
package/core/a11y/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/a11y/index.ts"],"names":[],"mappings":";;;;;;;;;OAAO,EAAC,QAAQ,EAAsB,MAAM,eAAe;OACpD,EAAC,SAAS,EAAC,MAAM,cAAc;OAC/B,EAAC,aAAa,EAAC,MAAM,kBAAkB;OACvC,EAAC,oBAAoB,EAAC,MAAM,yBAAyB;OACrD,EAAC,YAAY,EAAC,MAAM,iBAAiB;OACrC,EAAC,cAAc,EAAC,MAAM,mBAAmB;AAEhD,OAAO,IAAM,cAAc,GAAG,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC;AAOpE;IAAA;IAUA,CAAC;IATQ,kBAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE;gBACT,cAAc,CAAC,OAAO,EAAE,CAAC,SAAS;gBAClC,cAAc;aACf;SACF,CAAC;IACJ,CAAC;IAdH;QAAC,QAAQ,CAAC;YACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;YACvC,YAAY,EAAE,CAAC,SAAS,CAAC;YACzB,OAAO,EAAE,CAAC,SAAS,CAAC;SACrB,CAAC;;kBAAA;IAWF,iBAAC;AAAD,CAVA,AAUC,IAAA","file":"index.js","sourcesContent":["import {NgModule, ModuleWithProviders} from '@angular/core';\nimport {FocusTrap} from './focus-trap';\nimport {LiveAnnouncer} from './live-announcer';\nimport {InteractivityChecker} from './interactivity-checker';\nimport {CommonModule} from '@angular/common';\nimport {PlatformModule} from '../platform/index';\n\nexport const A11Y_PROVIDERS = [LiveAnnouncer, InteractivityChecker];\n\n@NgModule({\n imports: [CommonModule, PlatformModule],\n declarations: [FocusTrap],\n exports: [FocusTrap],\n})\nexport class A11yModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: A11yModule,\n providers: [\n PlatformModule.forRoot().providers,\n A11Y_PROVIDERS,\n ],\n };\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":2,"metadata":{"A11Y_PROVIDERS":[{"__symbolic":"reference","module":"./live-announcer","name":"LiveAnnouncer"},{"__symbolic":"reference","module":"./interactivity-checker","name":"InteractivityChecker"}],"A11yModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../platform/index","name":"PlatformModule"}],"declarations":[{"__symbolic":"reference","module":"./focus-trap","name":"FocusTrap"}],"exports":[{"__symbolic":"reference","module":"./focus-trap","name":"FocusTrap"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"A11yModule"},"providers":[{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../platform/index","name":"PlatformModule"},"member":"forRoot"}},"member":"providers"},{"__symbolic":"reference","name":"A11Y_PROVIDERS"}]}}}}}},{"__symbolic":"module","metadata":{"A11Y_PROVIDERS":[{"__symbolic":"reference","module":"./live-announcer","name":"LiveAnnouncer"},{"__symbolic":"reference","module":"./interactivity-checker","name":"InteractivityChecker"}],"A11yModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../platform/index","name":"PlatformModule"}],"declarations":[{"__symbolic":"reference","module":"./focus-trap","name":"FocusTrap"}],"exports":[{"__symbolic":"reference","module":"./focus-trap","name":"FocusTrap"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"A11yModule"},"providers":[{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../platform/index","name":"PlatformModule"},"member":"forRoot"}},"member":"providers"},{"__symbolic":"reference","name":"A11Y_PROVIDERS"}]}}}}},"version":1}]
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Platform } from '../platform/platform';
|
|
2
|
-
/**
|
|
3
|
-
* The InteractivityChecker leans heavily on the ally.js accessibility utilities.
|
|
4
|
-
* Methods like `isTabbable` are only covering specific edge-cases for the browsers which are
|
|
5
|
-
* supported.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Utility for checking the interactivity of an element, such as whether is is focusable or
|
|
9
|
-
* tabbable.
|
|
10
|
-
*/
|
|
11
|
-
export declare class InteractivityChecker {
|
|
12
|
-
private _platform;
|
|
13
|
-
constructor(_platform: Platform);
|
|
14
|
-
/**
|
|
15
|
-
* Gets whether an element is disabled.
|
|
16
|
-
*
|
|
17
|
-
* @param element Element to be checked.
|
|
18
|
-
* @returns Whether the element is disabled.
|
|
19
|
-
*/
|
|
20
|
-
isDisabled(element: HTMLElement): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Gets whether an element is visible for the purposes of interactivity.
|
|
23
|
-
*
|
|
24
|
-
* This will capture states like `display: none` and `visibility: hidden`, but not things like
|
|
25
|
-
* being clipped by an `overflow: hidden` parent or being outside the viewport.
|
|
26
|
-
*
|
|
27
|
-
* @returns Whether the element is visible.
|
|
28
|
-
*/
|
|
29
|
-
isVisible(element: HTMLElement): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Gets whether an element can be reached via Tab key.
|
|
32
|
-
* Assumes that the element has already been checked with isFocusable.
|
|
33
|
-
*
|
|
34
|
-
* @param element Element to be checked.
|
|
35
|
-
* @returns Whether the element is tabbable.
|
|
36
|
-
*/
|
|
37
|
-
isTabbable(element: HTMLElement): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Gets whether an element can be focused by the user.
|
|
40
|
-
*
|
|
41
|
-
* @param element Element to be checked.
|
|
42
|
-
* @returns Whether the element is focusable.
|
|
43
|
-
*/
|
|
44
|
-
isFocusable(element: HTMLElement): boolean;
|
|
45
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Injectable } from '@angular/core';
|
|
11
|
-
import { Platform } from '../platform/platform';
|
|
12
|
-
/**
|
|
13
|
-
* The InteractivityChecker leans heavily on the ally.js accessibility utilities.
|
|
14
|
-
* Methods like `isTabbable` are only covering specific edge-cases for the browsers which are
|
|
15
|
-
* supported.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Utility for checking the interactivity of an element, such as whether is is focusable or
|
|
19
|
-
* tabbable.
|
|
20
|
-
*/
|
|
21
|
-
export var InteractivityChecker = (function () {
|
|
22
|
-
function InteractivityChecker(_platform) {
|
|
23
|
-
this._platform = _platform;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Gets whether an element is disabled.
|
|
27
|
-
*
|
|
28
|
-
* @param element Element to be checked.
|
|
29
|
-
* @returns Whether the element is disabled.
|
|
30
|
-
*/
|
|
31
|
-
InteractivityChecker.prototype.isDisabled = function (element) {
|
|
32
|
-
// This does not capture some cases, such as a non-form control with a disabled attribute or
|
|
33
|
-
// a form control inside of a disabled form, but should capture the most common cases.
|
|
34
|
-
return element.hasAttribute('disabled');
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Gets whether an element is visible for the purposes of interactivity.
|
|
38
|
-
*
|
|
39
|
-
* This will capture states like `display: none` and `visibility: hidden`, but not things like
|
|
40
|
-
* being clipped by an `overflow: hidden` parent or being outside the viewport.
|
|
41
|
-
*
|
|
42
|
-
* @returns Whether the element is visible.
|
|
43
|
-
*/
|
|
44
|
-
InteractivityChecker.prototype.isVisible = function (element) {
|
|
45
|
-
return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Gets whether an element can be reached via Tab key.
|
|
49
|
-
* Assumes that the element has already been checked with isFocusable.
|
|
50
|
-
*
|
|
51
|
-
* @param element Element to be checked.
|
|
52
|
-
* @returns Whether the element is tabbable.
|
|
53
|
-
*/
|
|
54
|
-
InteractivityChecker.prototype.isTabbable = function (element) {
|
|
55
|
-
var frameElement = getWindow(element).frameElement;
|
|
56
|
-
if (frameElement) {
|
|
57
|
-
var frameType = frameElement && frameElement.nodeName.toLowerCase();
|
|
58
|
-
// Frame elements inherit their tabindex onto all child elements.
|
|
59
|
-
if (getTabIndexValue(frameElement) === -1) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
// Webkit and Blink consider anything inside of an <object> element as non-tabbable.
|
|
63
|
-
if ((this._platform.BLINK || this._platform.WEBKIT) && frameType === 'object') {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
// Webkit and Blink disable tabbing to an element inside of an invisible frame.
|
|
67
|
-
if ((this._platform.BLINK || this._platform.WEBKIT) && !this.isVisible(frameElement)) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var nodeName = element.nodeName.toLowerCase();
|
|
72
|
-
var tabIndexValue = getTabIndexValue(element);
|
|
73
|
-
if (element.hasAttribute('contenteditable')) {
|
|
74
|
-
return tabIndexValue !== -1;
|
|
75
|
-
}
|
|
76
|
-
if (nodeName === 'iframe') {
|
|
77
|
-
// The frames may be tabbable depending on content, but it's not possibly to reliably
|
|
78
|
-
// investigate the content of the frames.
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
if (nodeName === 'audio') {
|
|
82
|
-
if (!element.hasAttribute('controls')) {
|
|
83
|
-
// By default an <audio> element without the controls enabled is not tabbable.
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
else if (this._platform.BLINK) {
|
|
87
|
-
// In Blink <audio controls> elements are always tabbable.
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (nodeName === 'video') {
|
|
92
|
-
if (!element.hasAttribute('controls') && this._platform.TRIDENT) {
|
|
93
|
-
// In Trident a <video> element without the controls enabled is not tabbable.
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
else if (this._platform.BLINK || this._platform.FIREFOX) {
|
|
97
|
-
// In Chrome and Firefox <video controls> elements are always tabbable.
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
if (nodeName === 'object' && (this._platform.BLINK || this._platform.WEBKIT)) {
|
|
102
|
-
// In all Blink and WebKit based browsers <object> elements are never tabbable.
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
// In iOS the browser only considers some specific elements as tabbable.
|
|
106
|
-
if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
return element.tabIndex >= 0;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Gets whether an element can be focused by the user.
|
|
113
|
-
*
|
|
114
|
-
* @param element Element to be checked.
|
|
115
|
-
* @returns Whether the element is focusable.
|
|
116
|
-
*/
|
|
117
|
-
InteractivityChecker.prototype.isFocusable = function (element) {
|
|
118
|
-
// Perform checks in order of left to most expensive.
|
|
119
|
-
// Again, naive approach that does not capture many edge cases and browser quirks.
|
|
120
|
-
return isPotentiallyFocusable(element) && !this.isDisabled(element) && this.isVisible(element);
|
|
121
|
-
};
|
|
122
|
-
InteractivityChecker = __decorate([
|
|
123
|
-
Injectable(),
|
|
124
|
-
__metadata('design:paramtypes', [Platform])
|
|
125
|
-
], InteractivityChecker);
|
|
126
|
-
return InteractivityChecker;
|
|
127
|
-
}());
|
|
128
|
-
/** Checks whether the specified element has any geometry / rectangles. */
|
|
129
|
-
function hasGeometry(element) {
|
|
130
|
-
// Use logic from jQuery to check for an invisible element.
|
|
131
|
-
// See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
|
|
132
|
-
return !!(element.offsetWidth || element.offsetHeight || element.getClientRects().length);
|
|
133
|
-
}
|
|
134
|
-
/** Gets whether an element's */
|
|
135
|
-
function isNativeFormElement(element) {
|
|
136
|
-
var nodeName = element.nodeName.toLowerCase();
|
|
137
|
-
return nodeName === 'input' ||
|
|
138
|
-
nodeName === 'select' ||
|
|
139
|
-
nodeName === 'button' ||
|
|
140
|
-
nodeName === 'textarea';
|
|
141
|
-
}
|
|
142
|
-
/** Gets whether an element is an <input type="hidden">. */
|
|
143
|
-
function isHiddenInput(element) {
|
|
144
|
-
return isInputElement(element) && element.type == 'hidden';
|
|
145
|
-
}
|
|
146
|
-
/** Gets whether an element is an anchor that has an href attribute. */
|
|
147
|
-
function isAnchorWithHref(element) {
|
|
148
|
-
return isAnchorElement(element) && element.hasAttribute('href');
|
|
149
|
-
}
|
|
150
|
-
/** Gets whether an element is an input element. */
|
|
151
|
-
function isInputElement(element) {
|
|
152
|
-
return element.nodeName == 'input';
|
|
153
|
-
}
|
|
154
|
-
/** Gets whether an element is an anchor element. */
|
|
155
|
-
function isAnchorElement(element) {
|
|
156
|
-
return element.nodeName.toLowerCase() == 'a';
|
|
157
|
-
}
|
|
158
|
-
/** Gets whether an element has a valid tabindex. */
|
|
159
|
-
function hasValidTabIndex(element) {
|
|
160
|
-
if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
var tabIndex = element.getAttribute('tabindex');
|
|
164
|
-
// IE11 parses tabindex="" as the value "-32768"
|
|
165
|
-
if (tabIndex == '-32768') {
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Returns the parsed tabindex from the element attributes instead of returning the
|
|
172
|
-
* evaluated tabindex from the browsers defaults.
|
|
173
|
-
*/
|
|
174
|
-
function getTabIndexValue(element) {
|
|
175
|
-
if (!hasValidTabIndex(element)) {
|
|
176
|
-
return null;
|
|
177
|
-
}
|
|
178
|
-
// See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
179
|
-
var tabIndex = parseInt(element.getAttribute('tabindex'), 10);
|
|
180
|
-
return isNaN(tabIndex) ? -1 : tabIndex;
|
|
181
|
-
}
|
|
182
|
-
/** Checks whether the specified element is potentially tabbable on iOS */
|
|
183
|
-
function isPotentiallyTabbableIOS(element) {
|
|
184
|
-
var nodeName = element.nodeName.toLowerCase();
|
|
185
|
-
var inputType = nodeName === 'input' && element.type;
|
|
186
|
-
return inputType === 'text'
|
|
187
|
-
|| inputType === 'password'
|
|
188
|
-
|| nodeName === 'select'
|
|
189
|
-
|| nodeName === 'textarea';
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Gets whether an element is potentially focusable without taking current visible/disabled state
|
|
193
|
-
* into account.
|
|
194
|
-
*/
|
|
195
|
-
function isPotentiallyFocusable(element) {
|
|
196
|
-
// Inputs are potentially focusable *unless* they're type="hidden".
|
|
197
|
-
if (isHiddenInput(element)) {
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
|
-
return isNativeFormElement(element) ||
|
|
201
|
-
isAnchorWithHref(element) ||
|
|
202
|
-
element.hasAttribute('contenteditable') ||
|
|
203
|
-
hasValidTabIndex(element);
|
|
204
|
-
}
|
|
205
|
-
/** Gets the parent window of a DOM node with regards of being inside of an iframe. */
|
|
206
|
-
function getWindow(node) {
|
|
207
|
-
return node.ownerDocument.defaultView || window;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
//# sourceMappingURL=interactivity-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/a11y/interactivity-checker.ts"],"names":[],"mappings":"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","file":"interactivity-checker.js","sourcesContent":["import {Injectable} from '@angular/core';\nimport {Platform} from '../platform/platform';\n\n/**\n * The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n * Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n * supported.\n */\n\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\n@Injectable()\nexport class InteractivityChecker {\n\n constructor(private _platform: Platform) {}\n\n /**\n * Gets whether an element is disabled.\n *\n * @param element Element to be checked.\n * @returns Whether the element is disabled.\n */\n isDisabled(element: HTMLElement): boolean {\n // This does not capture some cases, such as a non-form control with a disabled attribute or\n // a form control inside of a disabled form, but should capture the most common cases.\n return element.hasAttribute('disabled');\n }\n\n /**\n * Gets whether an element is visible for the purposes of interactivity.\n *\n * This will capture states like `display: none` and `visibility: hidden`, but not things like\n * being clipped by an `overflow: hidden` parent or being outside the viewport.\n *\n * @returns Whether the element is visible.\n */\n isVisible(element: HTMLElement): boolean {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }\n\n /**\n * Gets whether an element can be reached via Tab key.\n * Assumes that the element has already been checked with isFocusable.\n *\n * @param element Element to be checked.\n * @returns Whether the element is tabbable.\n */\n isTabbable(element: HTMLElement): boolean {\n\n let frameElement = getWindow(element).frameElement as HTMLElement;\n\n if (frameElement) {\n\n let frameType = frameElement && frameElement.nodeName.toLowerCase();\n\n // Frame elements inherit their tabindex onto all child elements.\n if (getTabIndexValue(frameElement) === -1) {\n return false;\n }\n\n // Webkit and Blink consider anything inside of an <object> element as non-tabbable.\n if ((this._platform.BLINK || this._platform.WEBKIT) && frameType === 'object') {\n return false;\n }\n\n // Webkit and Blink disable tabbing to an element inside of an invisible frame.\n if ((this._platform.BLINK || this._platform.WEBKIT) && !this.isVisible(frameElement)) {\n return false;\n }\n\n }\n\n let nodeName = element.nodeName.toLowerCase();\n let tabIndexValue = getTabIndexValue(element);\n\n if (element.hasAttribute('contenteditable')) {\n return tabIndexValue !== -1;\n }\n\n if (nodeName === 'iframe') {\n // The frames may be tabbable depending on content, but it's not possibly to reliably\n // investigate the content of the frames.\n return false;\n }\n\n if (nodeName === 'audio') {\n if (!element.hasAttribute('controls')) {\n // By default an <audio> element without the controls enabled is not tabbable.\n return false;\n } else if (this._platform.BLINK) {\n // In Blink <audio controls> elements are always tabbable.\n return true;\n }\n }\n\n if (nodeName === 'video') {\n if (!element.hasAttribute('controls') && this._platform.TRIDENT) {\n // In Trident a <video> element without the controls enabled is not tabbable.\n return false;\n } else if (this._platform.BLINK || this._platform.FIREFOX) {\n // In Chrome and Firefox <video controls> elements are always tabbable.\n return true;\n }\n }\n\n if (nodeName === 'object' && (this._platform.BLINK || this._platform.WEBKIT)) {\n // In all Blink and WebKit based browsers <object> elements are never tabbable.\n return false;\n }\n\n // In iOS the browser only considers some specific elements as tabbable.\n if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n return false;\n }\n\n return element.tabIndex >= 0;\n }\n\n /**\n * Gets whether an element can be focused by the user.\n *\n * @param element Element to be checked.\n * @returns Whether the element is focusable.\n */\n isFocusable(element: HTMLElement): boolean {\n // Perform checks in order of left to most expensive.\n // Again, naive approach that does not capture many edge cases and browser quirks.\n return isPotentiallyFocusable(element) && !this.isDisabled(element) && this.isVisible(element);\n }\n\n}\n\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element: HTMLElement): boolean {\n // Use logic from jQuery to check for an invisible element.\n // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n return !!(element.offsetWidth || element.offsetHeight || element.getClientRects().length);\n}\n\n/** Gets whether an element's */\nfunction isNativeFormElement(element: Node) {\n let nodeName = element.nodeName.toLowerCase();\n return nodeName === 'input' ||\n nodeName === 'select' ||\n nodeName === 'button' ||\n nodeName === 'textarea';\n}\n\n/** Gets whether an element is an <input type=\"hidden\">. */\nfunction isHiddenInput(element: HTMLElement): boolean {\n return isInputElement(element) && element.type == 'hidden';\n}\n\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element: HTMLElement): boolean {\n return isAnchorElement(element) && element.hasAttribute('href');\n}\n\n/** Gets whether an element is an input element. */\nfunction isInputElement(element: HTMLElement): element is HTMLInputElement {\n return element.nodeName == 'input';\n}\n\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element: HTMLElement): element is HTMLAnchorElement {\n return element.nodeName.toLowerCase() == 'a';\n}\n\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element: HTMLElement): boolean {\n if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n return false;\n }\n\n let tabIndex = element.getAttribute('tabindex');\n\n // IE11 parses tabindex=\"\" as the value \"-32768\"\n if (tabIndex == '-32768') {\n return false;\n }\n\n return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element: HTMLElement): number {\n if (!hasValidTabIndex(element)) {\n return null;\n }\n\n // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n const tabIndex = parseInt(element.getAttribute('tabindex'), 10);\n\n return isNaN(tabIndex) ? -1 : tabIndex;\n}\n\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element: HTMLElement): boolean {\n let nodeName = element.nodeName.toLowerCase();\n let inputType = nodeName === 'input' && (element as HTMLInputElement).type;\n\n return inputType === 'text'\n || inputType === 'password'\n || nodeName === 'select'\n || nodeName === 'textarea';\n}\n\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element: HTMLElement): boolean {\n // Inputs are potentially focusable *unless* they're type=\"hidden\".\n if (isHiddenInput(element)) {\n return false;\n }\n\n return isNativeFormElement(element) ||\n isAnchorWithHref(element) ||\n element.hasAttribute('contenteditable') ||\n hasValidTabIndex(element);\n}\n\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node: HTMLElement): Window {\n return node.ownerDocument.defaultView || window;\n}\n"]}
|