@angular/material 9.1.3 → 9.2.2
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/autocomplete/index.metadata.json +1 -1
- package/autocomplete/testing/autocomplete-harness.d.ts +4 -1
- package/badge/index.metadata.json +1 -1
- package/bottom-sheet/bottom-sheet.d.ts +2 -1
- package/bundles/material-autocomplete-testing.umd.js +55 -8
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +4 -5
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +23 -24
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +5 -5
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +1 -1
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +3 -2
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +16 -6
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +3 -3
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +3 -0
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +96 -73
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +10 -10
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +23 -10
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +7 -7
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +43 -23
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +6 -6
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +3 -3
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +12 -2
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +2 -2
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +14 -4
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +7 -6
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +5 -5
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +6 -6
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +62 -47
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +10 -2
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select-testing.umd.js +45 -10
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -3
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +24 -15
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +3 -3
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +2 -1
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +2 -2
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +14 -12
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.js +24 -2
- package/bundles/material-snack-bar-testing.umd.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +3 -3
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +4 -0
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +2 -2
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +5 -2
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +2 -2
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +5 -4
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +1 -1
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +5 -5
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +3 -3
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +1 -1
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/button-toggle/index.metadata.json +1 -1
- package/core/index.metadata.json +1 -1
- package/core/ripple/ripple-renderer.d.ts +10 -3
- package/core/ripple/ripple.d.ts +2 -1
- package/datepicker/datepicker-input.d.ts +5 -2
- package/datepicker/index.metadata.json +1 -1
- package/dialog/dialog-container.d.ts +6 -0
- package/dialog/dialog-ref.d.ts +5 -0
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete-module.js +3 -1
- package/esm2015/autocomplete/autocomplete-trigger.js +21 -22
- package/esm2015/autocomplete/testing/autocomplete-harness.js +18 -7
- package/esm2015/badge/badge-module.js +2 -2
- package/esm2015/bottom-sheet/bottom-sheet.js +5 -3
- package/esm2015/button-toggle/button-toggle.js +18 -7
- package/esm2015/chips/chip-list.js +4 -1
- package/esm2015/core/common-behaviors/common-module.js +3 -4
- package/esm2015/core/ripple/ripple-renderer.js +140 -119
- package/esm2015/core/ripple/ripple.js +10 -7
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/calendar-body.js +1 -1
- package/esm2015/datepicker/calendar.js +3 -3
- package/esm2015/datepicker/datepicker-input.js +19 -4
- package/esm2015/datepicker/datepicker-module.js +3 -1
- package/esm2015/datepicker/datepicker.js +8 -2
- package/esm2015/dialog/dialog-container.js +40 -13
- package/esm2015/dialog/dialog-ref.js +24 -6
- package/esm2015/dialog/dialog.js +1 -12
- package/esm2015/expansion/expansion-panel-header.js +3 -3
- package/esm2015/expansion/expansion-panel.js +1 -1
- package/esm2015/form-field/form-field.js +13 -3
- package/esm2015/form-field/public-api.js +2 -2
- package/esm2015/input/input.js +16 -6
- package/esm2015/list/list.js +2 -2
- package/esm2015/list/selection-list.js +9 -6
- package/esm2015/menu/menu-module.js +3 -2
- package/esm2015/radio/public-api.js +2 -2
- package/esm2015/radio/radio.js +70 -59
- package/esm2015/select/select-module.js +10 -2
- package/esm2015/select/select.js +14 -12
- package/esm2015/select/testing/select-harness.js +11 -6
- package/esm2015/sidenav/sidenav-module.js +4 -3
- package/esm2015/slider/slider.js +17 -15
- package/esm2015/snack-bar/snack-bar-container.js +5 -1
- package/esm2015/snack-bar/testing/snack-bar-harness.js +18 -3
- package/esm2015/table/table-module.js +2 -2
- package/esm2015/table/table.js +6 -3
- package/esm2015/tabs/paginated-tab-header.js +3 -2
- package/esm2015/tabs/tab-header.js +1 -1
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
- package/esm2015/tooltip/tooltip-module.js +3 -2
- package/esm2015/tree/tree-module.js +2 -2
- package/esm5/autocomplete/autocomplete-module.js +3 -1
- package/esm5/autocomplete/autocomplete-trigger.js +20 -22
- package/esm5/autocomplete/testing/autocomplete-harness.js +56 -9
- package/esm5/badge/badge-module.js +2 -2
- package/esm5/bottom-sheet/bottom-sheet.js +4 -3
- package/esm5/button-toggle/button-toggle.js +17 -7
- package/esm5/chips/chip-list.js +4 -1
- package/esm5/core/common-behaviors/common-module.js +3 -4
- package/esm5/core/ripple/ripple-renderer.js +91 -65
- package/esm5/core/ripple/ripple.js +4 -6
- package/esm5/core/version.js +1 -1
- package/esm5/datepicker/calendar-body.js +1 -1
- package/esm5/datepicker/calendar.js +3 -3
- package/esm5/datepicker/datepicker-input.js +10 -4
- package/esm5/datepicker/datepicker-module.js +3 -1
- package/esm5/datepicker/datepicker.js +8 -2
- package/esm5/dialog/dialog-container.js +26 -11
- package/esm5/dialog/dialog-ref.js +19 -6
- package/esm5/dialog/dialog.js +1 -9
- package/esm5/expansion/expansion-panel-header.js +3 -3
- package/esm5/expansion/expansion-panel.js +1 -1
- package/esm5/form-field/form-field.js +12 -3
- package/esm5/input/input.js +16 -6
- package/esm5/list/list.js +2 -2
- package/esm5/list/selection-list.js +6 -5
- package/esm5/menu/menu-module.js +3 -2
- package/esm5/radio/radio.js +63 -48
- package/esm5/select/select-module.js +10 -2
- package/esm5/select/select.js +14 -12
- package/esm5/select/testing/select-harness.js +46 -11
- package/esm5/sidenav/sidenav-module.js +4 -3
- package/esm5/slider/slider.js +15 -13
- package/esm5/snack-bar/snack-bar-container.js +5 -1
- package/esm5/snack-bar/testing/snack-bar-harness.js +26 -4
- package/esm5/table/table-module.js +2 -2
- package/esm5/table/table.js +6 -3
- package/esm5/tabs/paginated-tab-header.js +3 -2
- package/esm5/tabs/tab-header.js +1 -1
- package/esm5/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
- package/esm5/tooltip/tooltip-module.js +3 -2
- package/esm5/tree/tree-module.js +2 -2
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/autocomplete/testing.js +17 -6
- package/fesm2015/autocomplete/testing.js.map +1 -1
- package/fesm2015/autocomplete.js +22 -22
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/badge.js +1 -1
- package/fesm2015/badge.js.map +1 -1
- package/fesm2015/bottom-sheet.js +4 -2
- package/fesm2015/bottom-sheet.js.map +1 -1
- package/fesm2015/button-toggle.js +17 -6
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/chips.js +3 -0
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +151 -128
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +30 -7
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +62 -28
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/expansion.js +3 -3
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/form-field.js +13 -3
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/input.js +15 -5
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list.js +10 -7
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu.js +2 -1
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/radio.js +71 -60
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +10 -5
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +23 -14
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/sidenav.js +3 -2
- package/fesm2015/sidenav.js.map +1 -1
- package/fesm2015/slider.js +16 -14
- package/fesm2015/slider.js.map +1 -1
- package/fesm2015/snack-bar/testing.js +17 -2
- package/fesm2015/snack-bar/testing.js.map +1 -1
- package/fesm2015/snack-bar.js +4 -0
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/table.js +6 -3
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/tabs.js +5 -4
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/tooltip.js +2 -2
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree.js +1 -1
- package/fesm2015/tree.js.map +1 -1
- package/fesm5/autocomplete/testing.js +55 -8
- package/fesm5/autocomplete/testing.js.map +1 -1
- package/fesm5/autocomplete.js +21 -22
- package/fesm5/autocomplete.js.map +1 -1
- package/fesm5/badge.js +1 -1
- package/fesm5/badge.js.map +1 -1
- package/fesm5/bottom-sheet.js +3 -2
- package/fesm5/bottom-sheet.js.map +1 -1
- package/fesm5/button-toggle.js +16 -6
- package/fesm5/button-toggle.js.map +1 -1
- package/fesm5/chips.js +3 -0
- package/fesm5/chips.js.map +1 -1
- package/fesm5/core.js +96 -73
- package/fesm5/core.js.map +1 -1
- package/fesm5/datepicker.js +21 -7
- package/fesm5/datepicker.js.map +1 -1
- package/fesm5/dialog.js +43 -23
- package/fesm5/dialog.js.map +1 -1
- package/fesm5/expansion.js +3 -3
- package/fesm5/expansion.js.map +1 -1
- package/fesm5/form-field.js +12 -3
- package/fesm5/form-field.js.map +1 -1
- package/fesm5/input.js +15 -5
- package/fesm5/input.js.map +1 -1
- package/fesm5/list.js +7 -6
- package/fesm5/list.js.map +1 -1
- package/fesm5/menu.js +2 -1
- package/fesm5/menu.js.map +1 -1
- package/fesm5/radio.js +63 -49
- package/fesm5/radio.js.map +1 -1
- package/fesm5/select/testing.js +45 -10
- package/fesm5/select/testing.js.map +1 -1
- package/fesm5/select.js +23 -14
- package/fesm5/select.js.map +1 -1
- package/fesm5/sidenav.js +3 -2
- package/fesm5/sidenav.js.map +1 -1
- package/fesm5/slider.js +14 -12
- package/fesm5/slider.js.map +1 -1
- package/fesm5/snack-bar/testing.js +25 -3
- package/fesm5/snack-bar/testing.js.map +1 -1
- package/fesm5/snack-bar.js +4 -0
- package/fesm5/snack-bar.js.map +1 -1
- package/fesm5/table.js +6 -3
- package/fesm5/table.js.map +1 -1
- package/fesm5/tabs.js +5 -4
- package/fesm5/tabs.js.map +1 -1
- package/fesm5/tooltip.js +2 -2
- package/fesm5/tooltip.js.map +1 -1
- package/fesm5/tree.js +1 -1
- package/fesm5/tree.js.map +1 -1
- package/form-field/form-field.d.ts +6 -0
- package/form-field/index.metadata.json +1 -1
- package/input/index.metadata.json +1 -1
- package/list/index.metadata.json +1 -1
- package/menu/index.metadata.json +1 -1
- package/package.json +2 -2
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +8 -2
- package/schematics/collection.json +0 -7
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/index.js +23 -23
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-hammer-script-tags.d.ts +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags.js +51 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-main-module.d.ts +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js +41 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/gesture-config.template +0 -0
- package/schematics/ng-update/{upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.d.ts → migrations/hammer-gestures-v9/hammer-gestures-migration.d.ts} +6 -6
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +784 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/hammer-template-check.d.ts +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js +65 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/import-manager.d.ts +4 -4
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +379 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-array-element.d.ts +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js +75 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-element-from-html.d.ts +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js +37 -0
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.d.ts +19 -0
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +57 -0
- package/schematics/ng-update/{upgrade-rules/misc-checks/misc-class-names-rule.d.ts → migrations/misc-checks/misc-class-names.d.ts} +5 -5
- package/schematics/ng-update/migrations/misc-checks/misc-class-names.js +52 -0
- package/schematics/ng-update/{upgrade-rules/misc-checks/misc-imports-rule.d.ts → migrations/misc-checks/misc-imports.d.ts} +5 -5
- package/schematics/ng-update/migrations/misc-checks/misc-imports.js +63 -0
- package/schematics/ng-update/{upgrade-rules/misc-checks/misc-property-names-rule.d.ts → migrations/misc-checks/misc-property-names.d.ts} +5 -5
- package/schematics/ng-update/migrations/misc-checks/misc-property-names.js +56 -0
- package/schematics/ng-update/migrations/misc-checks/misc-template.d.ts +17 -0
- package/schematics/ng-update/migrations/misc-checks/misc-template.js +69 -0
- package/schematics/ng-update/{upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.d.ts → migrations/misc-ripples-v7/ripple-speed-factor-migration.d.ts} +5 -5
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +147 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/misc-ripples-v7/ripple-speed-factor.d.ts +1 -1
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor.js +39 -0
- package/schematics/ng-update/{upgrade-rules → migrations}/package-imports-v8/material-symbols.json +0 -0
- package/schematics/ng-update/{upgrade-rules/package-imports-v8/secondary-entry-points-rule.d.ts → migrations/package-imports-v8/secondary-entry-points-migration.d.ts} +5 -5
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +177 -0
- package/schematics/ng-update/upgrade-data.d.ts +2 -2
- package/schematics/ng-update/upgrade-data.js +1 -1
- package/select/index.metadata.json +1 -1
- package/select/testing/select-harness.d.ts +2 -1
- package/sidenav/index.metadata.json +1 -1
- package/snack-bar/testing/snack-bar-harness.d.ts +2 -0
- package/table/index.metadata.json +1 -1
- package/tabs/_tabs-common.scss +5 -3
- package/tabs/index.metadata.json +1 -1
- package/tooltip/index.metadata.json +1 -1
- package/tree/index.metadata.json +1 -1
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-hammer-script-tags.js +0 -51
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-main-module.js +0 -41
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.js +0 -781
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-template-check.js +0 -65
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/import-manager.js +0 -379
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-array-element.js +0 -75
- package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-element-from-html.js +0 -37
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.d.ts +0 -19
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.js +0 -57
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-names-rule.js +0 -52
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-imports-rule.js +0 -63
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-property-names-rule.js +0 -56
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.d.ts +0 -17
- package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.js +0 -69
- package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.js +0 -147
- package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor.js +0 -39
- package/schematics/ng-update/upgrade-rules/package-imports-v8/secondary-entry-points-rule.js +0 -177
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"MatRadioModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/material/core","name":"MatRippleModule","line":14,"character":12},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":14,"character":29}],"exports":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","name":"MatRadioButton"},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":15,"character":43}],"declarations":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","name":"MatRadioButton"}]}]}],"members":{}},"MatRadioDefaultOptions":{"__symbolic":"interface"},"MAT_RADIO_DEFAULT_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":51,"character":6},"arguments":["mat-radio-default-options",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_RADIO_DEFAULT_OPTIONS_FACTORY"}}]},"MAT_RADIO_DEFAULT_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"color":"accent"}},"MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":71,"character":11},"useExisting":{"__symbolic":"reference","name":"MatRadioGroup"},"multi":true},"MatRadioChange":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MatRadioButton"},{"__symbolic":"reference","name":"any"}]}]}},"MatRadioGroup":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":88,"character":1},"arguments":[{"selector":"mat-radio-group","exportAs":"matRadioGroup","providers":[{"__symbolic":"reference","name":"MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR"}],"host":{"role":"radiogroup","class":"mat-radio-group","$quoted$":["role","class"]}}]}],"members":{"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":133,"character":3}}]}],"_radios":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":136,"character":3},"arguments":[{"__symbolic":"reference","name":"MatRadioButton"},{"descendants":true}]}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":140,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":143,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":151,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":166,"character":3}}]}],"_checkSelectedRadioButton":[{"__symbolic":"method"}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":188,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":197,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":205,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":212,"character":39}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"_touch":[{"__symbolic":"method"}],"_updateRadioButtonNames":[{"__symbolic":"method"}],"_updateSelectedRadioFromValue":[{"__symbolic":"method"}],"_emitChangeEvent":[{"__symbolic":"method"}],"_markRadiosForCheck":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"MatRadioButton":{"__symbolic":"class","extends":{"__symbolic":"error","message":"Symbol reference expected","line":360,"character":36,"module":"./radio"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":332,"character":1},"arguments":[{"selector":"mat-radio-button","inputs":["disableRipple","tabIndex"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":337,"character":17},"member":"None"},"exportAs":"matRadioButton","host":{"class":"mat-radio-button","[class.mat-radio-checked]":"checked","[class.mat-radio-disabled]":"disabled","[class._mat-animation-noopable]":"_animationMode === \"NoopAnimations\"","[class.mat-primary]":"color === \"primary\"","[class.mat-accent]":"color === \"accent\"","[class.mat-warn]":"color === \"warn\"","[attr.tabindex]":"-1","[attr.id]":"id","[attr.aria-label]":"null","[attr.aria-labelledby]":"null","[attr.aria-describedby]":"null","(focus)":"_inputElement.nativeElement.focus()","$quoted$":["class","[class.mat-radio-checked]","[class.mat-radio-disabled]","[class._mat-animation-noopable]","[class.mat-primary]","[class.mat-accent]","[class.mat-warn]","[attr.tabindex]","[attr.id]","[attr.aria-label]","[attr.aria-labelledby]","[attr.aria-describedby]","(focus)"]},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":358,"character":19},"member":"OnPush"},"template":"<!-- TODO(jelbourn): render the radio on either side of the content -->\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\n<label [attr.for]=\"inputId\" class=\"mat-radio-label\" #label>\n <!-- The actual 'radio' part of the control. -->\n <div class=\"mat-radio-container\">\n <div class=\"mat-radio-outer-circle\"></div>\n <div class=\"mat-radio-inner-circle\"></div>\n <input #input class=\"mat-radio-input cdk-visually-hidden\" type=\"radio\"\n [id]=\"inputId\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [tabIndex]=\"tabIndex\"\n [attr.name]=\"name\"\n [attr.value]=\"value\"\n [required]=\"required\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n (change)=\"_onInputChange($event)\"\n (click)=\"_onInputClick($event)\">\n\n <!-- The ripple comes after the input so that we can target it with a CSS\n sibling selector when the input is focused. -->\n <div mat-ripple class=\"mat-radio-ripple mat-focus-indicator\"\n [matRippleTrigger]=\"label\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"true\"\n [matRippleRadius]=\"20\"\n [matRippleAnimation]=\"{enterDuration: 150}\">\n\n <div class=\"mat-ripple-element mat-radio-persistent-ripple\"></div>\n </div>\n </div>\n\n <!-- The label content for radio control. -->\n <div class=\"mat-radio-label-content\" [class.mat-radio-label-before]=\"labelPosition == 'before'\">\n <!-- Add an invisible span so JAWS can read the label -->\n <span style=\"display:none\"> </span>\n <ng-content></ng-content>\n </div>\n</label>\n","styles":[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"]}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":366,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":369,"character":3}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":372,"character":3},"arguments":["aria-label"]}]}],"ariaLabelledby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":375,"character":3},"arguments":["aria-labelledby"]}]}],"ariaDescribedby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":378,"character":3},"arguments":["aria-describedby"]}]}],"checked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":381,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":405,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":423,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":433,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":442,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":451,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":465,"character":3}}]}],"_inputElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":489,"character":3},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":491,"character":15}}],null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":496,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":496,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"ANIMATION_MODULE_TYPE","line":496,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":497,"character":17}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":497,"character":29},"arguments":[{"__symbolic":"reference","name":"MAT_RADIO_DEFAULT_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":492,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":212,"character":39},{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusMonitor","line":494,"character":37},{"__symbolic":"reference","module":"@angular/cdk/collections","name":"UniqueSelectionDispatcher","line":495,"character":40},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"focus":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_emitChangeEvent":[{"__symbolic":"method"}],"_isRippleDisabled":[{"__symbolic":"method"}],"_onInputClick":[{"__symbolic":"method"}],"_onInputChange":[{"__symbolic":"method"}],"_setDisabled":[{"__symbolic":"method"}]}}},"origins":{"MatRadioModule":"./radio-module","MatRadioDefaultOptions":"./radio","MAT_RADIO_DEFAULT_OPTIONS":"./radio","MAT_RADIO_DEFAULT_OPTIONS_FACTORY":"./radio","MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR":"./radio","MatRadioChange":"./radio","MatRadioGroup":"./radio","MatRadioButton":"./radio"},"importAs":"@angular/material/radio"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"MatRadioModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/material/core","name":"MatRippleModule","line":14,"character":12},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":14,"character":29}],"exports":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","name":"MatRadioButton"},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":15,"character":43}],"declarations":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","name":"MatRadioButton"}]}]}],"members":{}},"MatRadioDefaultOptions":{"__symbolic":"interface"},"MAT_RADIO_DEFAULT_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":51,"character":6},"arguments":["mat-radio-default-options",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_RADIO_DEFAULT_OPTIONS_FACTORY"}}]},"MAT_RADIO_DEFAULT_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"color":"accent"}},"MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":71,"character":11},"useExisting":{"__symbolic":"reference","name":"MatRadioGroup"},"multi":true},"MatRadioChange":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MatRadioButton"},{"__symbolic":"reference","name":"any"}]}]}},"MatRadioGroup":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":88,"character":1},"arguments":[{"selector":"mat-radio-group","exportAs":"matRadioGroup","providers":[{"__symbolic":"reference","name":"MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR"}],"host":{"role":"radiogroup","class":"mat-radio-group","$quoted$":["role","class"]}}]}],"members":{"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":133,"character":3}}]}],"_radios":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":136,"character":3},"arguments":[{"__symbolic":"reference","name":"MatRadioButton"},{"descendants":true}]}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":140,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":143,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":151,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":166,"character":3}}]}],"_checkSelectedRadioButton":[{"__symbolic":"method"}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":188,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":197,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":205,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":212,"character":39}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"_touch":[{"__symbolic":"method"}],"_updateRadioButtonNames":[{"__symbolic":"method"}],"_updateSelectedRadioFromValue":[{"__symbolic":"method"}],"_emitChangeEvent":[{"__symbolic":"method"}],"_markRadiosForCheck":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"_MatRadioButtonBase":{"__symbolic":"class","extends":{"__symbolic":"error","message":"Symbol reference expected","line":335,"character":50,"module":"./radio"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":333,"character":1}}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":341,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":344,"character":3}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":347,"character":3},"arguments":["aria-label"]}]}],"ariaLabelledby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":350,"character":3},"arguments":["aria-labelledby"]}]}],"ariaDescribedby":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":353,"character":3},"arguments":["aria-describedby"]}]}],"checked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":356,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":380,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":398,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":408,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":417,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":426,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":440,"character":3}}]}],"_inputElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":464,"character":3},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":466,"character":15}}],null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":471,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":471,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"ANIMATION_MODULE_TYPE","line":471,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":472,"character":17}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":472,"character":29},"arguments":[{"__symbolic":"reference","name":"MAT_RADIO_DEFAULT_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"MatRadioGroup"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":467,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":212,"character":39},{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusMonitor","line":469,"character":37},{"__symbolic":"reference","module":"@angular/cdk/collections","name":"UniqueSelectionDispatcher","line":470,"character":40},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"focus":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_emitChangeEvent":[{"__symbolic":"method"}],"_isRippleDisabled":[{"__symbolic":"method"}],"_onInputClick":[{"__symbolic":"method"}],"_onInputChange":[{"__symbolic":"method"}],"_setDisabled":[{"__symbolic":"method"}]}},"MatRadioButton":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"_MatRadioButtonBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":588,"character":1},"arguments":[{"selector":"mat-radio-button","inputs":["disableRipple","tabIndex"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":593,"character":17},"member":"None"},"exportAs":"matRadioButton","host":{"class":"mat-radio-button","[class.mat-radio-checked]":"checked","[class.mat-radio-disabled]":"disabled","[class._mat-animation-noopable]":"_animationMode === \"NoopAnimations\"","[class.mat-primary]":"color === \"primary\"","[class.mat-accent]":"color === \"accent\"","[class.mat-warn]":"color === \"warn\"","[attr.tabindex]":"-1","[attr.id]":"id","[attr.aria-label]":"null","[attr.aria-labelledby]":"null","[attr.aria-describedby]":"null","(focus)":"_inputElement.nativeElement.focus()","$quoted$":["class","[class.mat-radio-checked]","[class.mat-radio-disabled]","[class._mat-animation-noopable]","[class.mat-primary]","[class.mat-accent]","[class.mat-warn]","[attr.tabindex]","[attr.id]","[attr.aria-label]","[attr.aria-labelledby]","[attr.aria-describedby]","(focus)"]},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":614,"character":19},"member":"OnPush"},"template":"<!-- TODO(jelbourn): render the radio on either side of the content -->\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\n<label [attr.for]=\"inputId\" class=\"mat-radio-label\" #label>\n <!-- The actual 'radio' part of the control. -->\n <div class=\"mat-radio-container\">\n <div class=\"mat-radio-outer-circle\"></div>\n <div class=\"mat-radio-inner-circle\"></div>\n <input #input class=\"mat-radio-input cdk-visually-hidden\" type=\"radio\"\n [id]=\"inputId\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [tabIndex]=\"tabIndex\"\n [attr.name]=\"name\"\n [attr.value]=\"value\"\n [required]=\"required\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n (change)=\"_onInputChange($event)\"\n (click)=\"_onInputClick($event)\">\n\n <!-- The ripple comes after the input so that we can target it with a CSS\n sibling selector when the input is focused. -->\n <div mat-ripple class=\"mat-radio-ripple mat-focus-indicator\"\n [matRippleTrigger]=\"label\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"true\"\n [matRippleRadius]=\"20\"\n [matRippleAnimation]=\"{enterDuration: 150}\">\n\n <div class=\"mat-ripple-element mat-radio-persistent-ripple\"></div>\n </div>\n </div>\n\n <!-- The label content for radio control. -->\n <div class=\"mat-radio-label-content\" [class.mat-radio-label-before]=\"labelPosition == 'before'\">\n <!-- Add an invisible span so JAWS can read the label -->\n <span style=\"display:none\"> </span>\n <ng-content></ng-content>\n </div>\n</label>\n","styles":[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"]}]}],"members":{}}},"origins":{"MatRadioModule":"./radio-module","MatRadioDefaultOptions":"./radio","MAT_RADIO_DEFAULT_OPTIONS":"./radio","MAT_RADIO_DEFAULT_OPTIONS_FACTORY":"./radio","MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR":"./radio","MatRadioChange":"./radio","MatRadioGroup":"./radio","_MatRadioButtonBase":"./radio","MatRadioButton":"./radio"},"importAs":"@angular/material/radio"}
|
package/radio/radio.d.ts
CHANGED
|
@@ -147,9 +147,10 @@ declare class MatRadioButtonBase {
|
|
|
147
147
|
}
|
|
148
148
|
declare const _MatRadioButtonMixinBase: CanDisableRippleCtor & HasTabIndexCtor & typeof MatRadioButtonBase;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Base class with all of the `MatRadioButton` functionality.
|
|
151
|
+
* @docs-private
|
|
151
152
|
*/
|
|
152
|
-
export declare class
|
|
153
|
+
export declare abstract class _MatRadioButtonBase extends _MatRadioButtonMixinBase implements OnInit, AfterViewInit, OnDestroy, CanDisableRipple, HasTabIndex {
|
|
153
154
|
protected _changeDetector: ChangeDetectorRef;
|
|
154
155
|
private _focusMonitor;
|
|
155
156
|
private _radioDispatcher;
|
|
@@ -236,4 +237,9 @@ export declare class MatRadioButton extends _MatRadioButtonMixinBase implements
|
|
|
236
237
|
static ngAcceptInputType_required: BooleanInput;
|
|
237
238
|
static ngAcceptInputType_disableRipple: BooleanInput;
|
|
238
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* A Material design radio-button. Typically placed inside of `<mat-radio-group>` elements.
|
|
242
|
+
*/
|
|
243
|
+
export declare class MatRadioButton extends _MatRadioButtonBase {
|
|
244
|
+
}
|
|
239
245
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
// This is the root config file where the schematics are defined.
|
|
2
1
|
{
|
|
3
2
|
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
4
3
|
"schematics": {
|
|
5
|
-
// Adds Angular Material to an application without changing any templates
|
|
6
4
|
"ng-add": {
|
|
7
5
|
"description": "Adds Angular Material to the application without affecting any templates",
|
|
8
6
|
"factory": "./ng-add/index",
|
|
@@ -15,35 +13,30 @@
|
|
|
15
13
|
"factory": "./ng-add/setup-project",
|
|
16
14
|
"schema": "./ng-add/schema.json"
|
|
17
15
|
},
|
|
18
|
-
// Create a dashboard component
|
|
19
16
|
"dashboard": {
|
|
20
17
|
"description": "Create a card-based dashboard component",
|
|
21
18
|
"factory": "./ng-generate/dashboard/index",
|
|
22
19
|
"schema": "./ng-generate/dashboard/schema.json",
|
|
23
20
|
"aliases": ["material-dashboard"]
|
|
24
21
|
},
|
|
25
|
-
// Creates a table component
|
|
26
22
|
"table": {
|
|
27
23
|
"description": "Create a component that displays data with a data-table",
|
|
28
24
|
"factory": "./ng-generate/table/index",
|
|
29
25
|
"schema": "./ng-generate/table/schema.json",
|
|
30
26
|
"aliases": ["material-table"]
|
|
31
27
|
},
|
|
32
|
-
// Creates toolbar and navigation components
|
|
33
28
|
"navigation": {
|
|
34
29
|
"description": "Create a component with a responsive sidenav for navigation",
|
|
35
30
|
"factory": "./ng-generate/navigation/index",
|
|
36
31
|
"schema": "./ng-generate/navigation/schema.json",
|
|
37
32
|
"aliases": ["material-nav", "materialNav", "nav"]
|
|
38
33
|
},
|
|
39
|
-
// Create a file tree component
|
|
40
34
|
"tree": {
|
|
41
35
|
"description": "Create a file tree component.",
|
|
42
36
|
"factory": "./ng-generate/tree/index",
|
|
43
37
|
"schema": "./ng-generate/tree/schema.json",
|
|
44
38
|
"aliases": ["material-tree"]
|
|
45
39
|
},
|
|
46
|
-
// Creates a address form component
|
|
47
40
|
"addressForm": {
|
|
48
41
|
"description": "Create a component with a address form",
|
|
49
42
|
"factory": "./ng-generate/address-form/index",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
28
28
|
* the default for Angular framework dependencies in CLI projects.
|
|
29
29
|
*/
|
|
30
|
-
const fallbackMaterialVersionRange = `~9.
|
|
30
|
+
const fallbackMaterialVersionRange = `~9.2.2`;
|
|
31
31
|
/**
|
|
32
32
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
33
33
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -11,49 +11,49 @@
|
|
|
11
11
|
if (v !== undefined) module.exports = v;
|
|
12
12
|
}
|
|
13
13
|
else if (typeof define === "function" && define.amd) {
|
|
14
|
-
define("@angular/material/schematics/ng-update/index", ["require", "exports", "@angular/cdk/schematics", "@angular/material/schematics/ng-update/
|
|
14
|
+
define("@angular/material/schematics/ng-update/index", ["require", "exports", "@angular/cdk/schematics", "@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration", "@angular/material/schematics/ng-update/migrations/misc-checks/misc-class-inheritance", "@angular/material/schematics/ng-update/migrations/misc-checks/misc-class-names", "@angular/material/schematics/ng-update/migrations/misc-checks/misc-imports", "@angular/material/schematics/ng-update/migrations/misc-checks/misc-property-names", "@angular/material/schematics/ng-update/migrations/misc-checks/misc-template", "@angular/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration", "@angular/material/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration", "@angular/material/schematics/ng-update/upgrade-data"], factory);
|
|
15
15
|
}
|
|
16
16
|
})(function (require, exports) {
|
|
17
17
|
"use strict";
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const schematics_1 = require("@angular/cdk/schematics");
|
|
20
|
+
const hammer_gestures_migration_1 = require("@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration");
|
|
21
|
+
const misc_class_inheritance_1 = require("@angular/material/schematics/ng-update/migrations/misc-checks/misc-class-inheritance");
|
|
22
|
+
const misc_class_names_1 = require("@angular/material/schematics/ng-update/migrations/misc-checks/misc-class-names");
|
|
23
|
+
const misc_imports_1 = require("@angular/material/schematics/ng-update/migrations/misc-checks/misc-imports");
|
|
24
|
+
const misc_property_names_1 = require("@angular/material/schematics/ng-update/migrations/misc-checks/misc-property-names");
|
|
25
|
+
const misc_template_1 = require("@angular/material/schematics/ng-update/migrations/misc-checks/misc-template");
|
|
26
|
+
const ripple_speed_factor_migration_1 = require("@angular/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration");
|
|
27
|
+
const secondary_entry_points_migration_1 = require("@angular/material/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration");
|
|
20
28
|
const upgrade_data_1 = require("@angular/material/schematics/ng-update/upgrade-data");
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
misc_class_inheritance_rule_1.MiscClassInheritanceRule,
|
|
31
|
-
misc_class_names_rule_1.MiscClassNamesRule,
|
|
32
|
-
misc_imports_rule_1.MiscImportsRule,
|
|
33
|
-
misc_property_names_rule_1.MiscPropertyNamesRule,
|
|
34
|
-
misc_template_rule_1.MiscTemplateRule,
|
|
35
|
-
ripple_speed_factor_rule_1.RippleSpeedFactorRule,
|
|
36
|
-
secondary_entry_points_rule_1.SecondaryEntryPointsRule,
|
|
37
|
-
hammer_gestures_rule_1.HammerGesturesRule,
|
|
29
|
+
const materialMigrations = [
|
|
30
|
+
misc_class_inheritance_1.MiscClassInheritanceMigration,
|
|
31
|
+
misc_class_names_1.MiscClassNamesMigration,
|
|
32
|
+
misc_imports_1.MiscImportsMigration,
|
|
33
|
+
misc_property_names_1.MiscPropertyNamesMigration,
|
|
34
|
+
misc_template_1.MiscTemplateMigration,
|
|
35
|
+
ripple_speed_factor_migration_1.RippleSpeedFactorMigration,
|
|
36
|
+
secondary_entry_points_migration_1.SecondaryEntryPointsMigration,
|
|
37
|
+
hammer_gestures_migration_1.HammerGesturesMigration,
|
|
38
38
|
];
|
|
39
39
|
/** Entry point for the migration schematics with target of Angular Material v6 */
|
|
40
40
|
function updateToV6() {
|
|
41
|
-
return schematics_1.
|
|
41
|
+
return schematics_1.createMigrationSchematicRule(schematics_1.TargetVersion.V6, materialMigrations, upgrade_data_1.materialUpgradeData, onMigrationComplete);
|
|
42
42
|
}
|
|
43
43
|
exports.updateToV6 = updateToV6;
|
|
44
44
|
/** Entry point for the migration schematics with target of Angular Material v7 */
|
|
45
45
|
function updateToV7() {
|
|
46
|
-
return schematics_1.
|
|
46
|
+
return schematics_1.createMigrationSchematicRule(schematics_1.TargetVersion.V7, materialMigrations, upgrade_data_1.materialUpgradeData, onMigrationComplete);
|
|
47
47
|
}
|
|
48
48
|
exports.updateToV7 = updateToV7;
|
|
49
49
|
/** Entry point for the migration schematics with target of Angular Material v8 */
|
|
50
50
|
function updateToV8() {
|
|
51
|
-
return schematics_1.
|
|
51
|
+
return schematics_1.createMigrationSchematicRule(schematics_1.TargetVersion.V8, materialMigrations, upgrade_data_1.materialUpgradeData, onMigrationComplete);
|
|
52
52
|
}
|
|
53
53
|
exports.updateToV8 = updateToV8;
|
|
54
54
|
/** Entry point for the migration schematics with target of Angular Material v9 */
|
|
55
55
|
function updateToV9() {
|
|
56
|
-
return schematics_1.
|
|
56
|
+
return schematics_1.createMigrationSchematicRule(schematics_1.TargetVersion.V9, materialMigrations, upgrade_data_1.materialUpgradeData, onMigrationComplete);
|
|
57
57
|
}
|
|
58
58
|
exports.updateToV9 = updateToV9;
|
|
59
59
|
/** Function that will be called when the migration completed. */
|
|
@@ -67,4 +67,4 @@
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
70
|
+
//# sourceMappingURL=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biBjb21wbGV0ZWQuICovXG5mdW5jdGlvbiBvbk1pZ3JhdGlvbkNvbXBsZXRlKGNvbnRleHQ6IFNjaGVtYXRpY0NvbnRleHQsIHRhcmdldFZlcnNpb246IFRhcmdldFZlcnNpb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0ZhaWx1cmVzOiBib29sZWFuKSB7XG4gIGNvbnRleHQubG9nZ2VyLmluZm8oJycpO1xuICBjb250ZXh0LmxvZ2dlci5pbmZvKGAgIOKckyAgVXBkYXRlZCBBbmd1bGFyIE1hdGVyaWFsIHRvICR7dGFyZ2V0VmVyc2lvbn1gKTtcbiAgY29udGV4dC5sb2dnZXIuaW5mbygnJyk7XG5cbiAgaWYgKGhhc0ZhaWx1cmVzKSB7XG4gICAgY29udGV4dC5sb2dnZXIud2FybihcbiAgICAgICcgIOKaoCAgU29tZSBpc3N1ZXMgd2VyZSBkZXRlY3RlZCBidXQgY291bGQgbm90IGJlIGZpeGVkIGF1dG9tYXRpY2FsbHkuIFBsZWFzZSBjaGVjayB0aGUgJyArXG4gICAgICAnb3V0cHV0IGFib3ZlIGFuZCBmaXggdGhlc2UgaXNzdWVzIG1hbnVhbGx5LicpO1xuICB9XG59XG4iXX0=
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
/// <amd-module name="@angular/material/schematics/ng-update/
|
|
8
|
+
/// <amd-module name="@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags" />
|
|
9
9
|
import { parse5 } from '@angular/cdk/schematics';
|
|
10
10
|
/**
|
|
11
11
|
* Parses the specified HTML content and looks for "script" elements which
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
(function (factory) {
|
|
9
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
10
|
+
var v = factory(require, exports);
|
|
11
|
+
if (v !== undefined) module.exports = v;
|
|
12
|
+
}
|
|
13
|
+
else if (typeof define === "function" && define.amd) {
|
|
14
|
+
define("@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags", ["require", "exports", "@angular/cdk/schematics"], factory);
|
|
15
|
+
}
|
|
16
|
+
})(function (require, exports) {
|
|
17
|
+
"use strict";
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const schematics_1 = require("@angular/cdk/schematics");
|
|
20
|
+
/**
|
|
21
|
+
* Parses the specified HTML content and looks for "script" elements which
|
|
22
|
+
* potentially import HammerJS. These elements will be returned.
|
|
23
|
+
*/
|
|
24
|
+
function findHammerScriptImportElements(htmlContent) {
|
|
25
|
+
const document = schematics_1.parse5.parse(htmlContent, { sourceCodeLocationInfo: true });
|
|
26
|
+
const nodeQueue = [...document.childNodes];
|
|
27
|
+
const result = [];
|
|
28
|
+
while (nodeQueue.length) {
|
|
29
|
+
const node = nodeQueue.shift();
|
|
30
|
+
if (node.childNodes) {
|
|
31
|
+
nodeQueue.push(...node.childNodes);
|
|
32
|
+
}
|
|
33
|
+
if (node.nodeName.toLowerCase() === 'script' && node.attrs.length !== 0) {
|
|
34
|
+
const srcAttribute = node.attrs.find(a => a.name === 'src');
|
|
35
|
+
if (srcAttribute && isPotentialHammerScriptReference(srcAttribute.value)) {
|
|
36
|
+
result.push(node);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
exports.findHammerScriptImportElements = findHammerScriptImportElements;
|
|
43
|
+
/**
|
|
44
|
+
* Checks whether the specified source path is potentially referring to the
|
|
45
|
+
* HammerJS script output.
|
|
46
|
+
*/
|
|
47
|
+
function isPotentialHammerScriptReference(srcPath) {
|
|
48
|
+
return /\/hammer(\.min)?\.js($|\?)/.test(srcPath);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1oYW1tZXItc2NyaXB0LXRhZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2NoZW1hdGljcy9uZy11cGRhdGUvbWlncmF0aW9ucy9oYW1tZXItZ2VzdHVyZXMtdjkvZmluZC1oYW1tZXItc2NyaXB0LXRhZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7SUFFSCx3REFBK0M7SUFFL0M7OztPQUdHO0lBQ0gsU0FBZ0IsOEJBQThCLENBQUMsV0FBbUI7UUFDaEUsTUFBTSxRQUFRLEdBQ1YsbUJBQU0sQ0FBQyxLQUFLLENBQUMsV0FBVyxFQUFFLEVBQUMsc0JBQXNCLEVBQUUsSUFBSSxFQUFDLENBQStCLENBQUM7UUFDNUYsTUFBTSxTQUFTLEdBQUcsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUMzQyxNQUFNLE1BQU0sR0FBZ0MsRUFBRSxDQUFDO1FBRS9DLE9BQU8sU0FBUyxDQUFDLE1BQU0sRUFBRTtZQUN2QixNQUFNLElBQUksR0FBRyxTQUFTLENBQUMsS0FBSyxFQUErQixDQUFDO1lBRTVELElBQUksSUFBSSxDQUFDLFVBQVUsRUFBRTtnQkFDbkIsU0FBUyxDQUFDLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQzthQUNwQztZQUVELElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyxXQUFXLEVBQUUs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wdXNoKG5vZGUpO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gcmVzdWx0O1xufVxuXG4vKipcbiAqIENoZWNrcyB3aGV0aGVyIHRoZSBzcGVjaWZpZWQgc291cmNlIHBhdGggaXMgcG90ZW50aWFsbHkgcmVmZXJyaW5nIHRvIHRoZVxuICogSGFtbWVySlMgc2NyaXB0IG91dHB1dC5cbiAqL1xuZnVuY3Rpb24gaXNQb3RlbnRpYWxIYW1tZXJTY3JpcHRSZWZlcmVuY2Uoc3JjUGF0aDogc3RyaW5nKTogYm9vbGVhbiB7XG4gIHJldHVybiAvXFwvaGFtbWVyKFxcLm1pbik/XFwuanMoJHxcXD8pLy50ZXN0KHNyY1BhdGgpO1xufVxuIl19
|
package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-main-module.d.ts
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
/// <amd-module name="@angular/material/schematics/ng-update/
|
|
8
|
+
/// <amd-module name="@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module" />
|
|
9
9
|
import * as ts from 'typescript';
|
|
10
10
|
/**
|
|
11
11
|
* Finds the main Angular module within the specified source file. The first module
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
(function (factory) {
|
|
9
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
10
|
+
var v = factory(require, exports);
|
|
11
|
+
if (v !== undefined) module.exports = v;
|
|
12
|
+
}
|
|
13
|
+
else if (typeof define === "function" && define.amd) {
|
|
14
|
+
define("@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module", ["require", "exports", "typescript"], factory);
|
|
15
|
+
}
|
|
16
|
+
})(function (require, exports) {
|
|
17
|
+
"use strict";
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const ts = require("typescript");
|
|
20
|
+
/**
|
|
21
|
+
* Finds the main Angular module within the specified source file. The first module
|
|
22
|
+
* that is part of the "bootstrapModule" expression is returned.
|
|
23
|
+
*/
|
|
24
|
+
function findMainModuleExpression(mainSourceFile) {
|
|
25
|
+
let foundModule = null;
|
|
26
|
+
const visitNode = (node) => {
|
|
27
|
+
if (ts.isCallExpression(node) && node.arguments.length &&
|
|
28
|
+
ts.isPropertyAccessExpression(node.expression) && ts.isIdentifier(node.expression.name) &&
|
|
29
|
+
node.expression.name.text === 'bootstrapModule') {
|
|
30
|
+
foundModule = node.arguments[0];
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
ts.forEachChild(node, visitNode);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
ts.forEachChild(mainSourceFile, visitNode);
|
|
37
|
+
return foundModule;
|
|
38
|
+
}
|
|
39
|
+
exports.findMainModuleExpression = findMainModuleExpression;
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1tYWluLW1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zY2hlbWF0aWNzL25nLXVwZGF0ZS9taWdyYXRpb25zL2hhbW1lci1nZXN0dXJlcy12OS9maW5kLW1haW4tbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7O0lBRUgsaUNBQWlDO0lBRWpDOzs7T0FHRztJQUNILFNBQWdCLHdCQUF3Q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ules → migrations}/hammer-gestures-v9/gesture-config.template
RENAMED
|
File without changes
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
/// <amd-module name="@angular/material/schematics/ng-update/
|
|
8
|
+
/// <amd-module name="@angular/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration" />
|
|
9
9
|
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
10
|
-
import {
|
|
10
|
+
import { DevkitMigration, PostMigrationAction, ResolvedResource } from '@angular/cdk/schematics';
|
|
11
11
|
import * as ts from 'typescript';
|
|
12
|
-
export declare class
|
|
13
|
-
|
|
12
|
+
export declare class HammerGesturesMigration extends DevkitMigration<null> {
|
|
13
|
+
enabled: boolean;
|
|
14
14
|
private _printer;
|
|
15
15
|
private _importManager;
|
|
16
16
|
private _nodeFailures;
|
|
@@ -127,7 +127,7 @@ export declare class HammerGesturesRule extends MigrationRule<null> {
|
|
|
127
127
|
private _removeGestureConfigReference;
|
|
128
128
|
/** Removes the given hammer config token import if it is not used. */
|
|
129
129
|
private _removeHammerConfigTokenImportIfUnused;
|
|
130
|
-
/** Removes Hammer from all index HTML files of the
|
|
130
|
+
/** Removes Hammer from all index HTML files of the current project. */
|
|
131
131
|
private _removeHammerFromIndexFile;
|
|
132
132
|
/** Sets up the Hammer gesture config in the root module if needed. */
|
|
133
133
|
private _setupNewGestureConfigInRootModule;
|
|
@@ -136,7 +136,7 @@ export declare class HammerGesturesRule extends MigrationRule<null> {
|
|
|
136
136
|
* bootstrap expression in the specified source file.
|
|
137
137
|
*/
|
|
138
138
|
private _getRootModuleSymbol;
|
|
139
|
-
/** Sets up the "HammerModule" in the root module of the project. */
|
|
139
|
+
/** Sets up the "HammerModule" in the root module of the current project. */
|
|
140
140
|
private _setupHammerModuleInRootModule;
|
|
141
141
|
/** Prints a given node within the specified source file. */
|
|
142
142
|
private _printNode;
|