@angular/material 15.0.0-rc.0 → 15.0.0-rc.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/_index.scss +1 -1
- package/checkbox/_checkbox-private.scss +1 -1
- package/chips/_chips-theme.scss +11 -19
- package/chips/index.d.ts +0 -2
- package/core/density/private/_all-density.scss +5 -9
- package/core/theming/_all-theme.scss +14 -18
- package/core/typography/_all-typography.scss +15 -19
- package/core/typography/_typography-deprecated.scss +1 -1
- package/core/typography/_typography.scss +130 -0
- package/esm2020/autocomplete/autocomplete-origin.mjs +6 -6
- package/esm2020/autocomplete/autocomplete-trigger.mjs +6 -6
- package/esm2020/autocomplete/autocomplete.mjs +6 -6
- package/esm2020/autocomplete/module.mjs +4 -4
- package/esm2020/badge/badge-module.mjs +4 -4
- package/esm2020/badge/badge.mjs +3 -3
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +3 -3
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet.mjs +3 -3
- package/esm2020/button/button-base.mjs +6 -6
- package/esm2020/button/button.mjs +8 -8
- package/esm2020/button/fab.mjs +16 -16
- package/esm2020/button/icon-button.mjs +6 -6
- package/esm2020/button/module.mjs +4 -4
- package/esm2020/button-toggle/button-toggle-module.mjs +4 -4
- package/esm2020/button-toggle/button-toggle.mjs +6 -6
- package/esm2020/card/card.mjs +42 -42
- package/esm2020/card/module.mjs +4 -4
- package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2020/checkbox/checkbox.mjs +6 -6
- package/esm2020/checkbox/module.mjs +8 -8
- package/esm2020/chips/chip-action.mjs +3 -3
- package/esm2020/chips/chip-edit-input.mjs +3 -3
- package/esm2020/chips/chip-grid.mjs +3 -3
- package/esm2020/chips/chip-icons.mjs +9 -9
- package/esm2020/chips/chip-input.mjs +3 -3
- package/esm2020/chips/chip-listbox.mjs +3 -3
- package/esm2020/chips/chip-option.mjs +7 -13
- package/esm2020/chips/chip-row.mjs +5 -5
- package/esm2020/chips/chip-set.mjs +3 -3
- package/esm2020/chips/chip.mjs +4 -4
- package/esm2020/chips/module.mjs +4 -4
- package/esm2020/core/common-behaviors/common-module.mjs +4 -4
- package/esm2020/core/datetime/index.mjs +8 -8
- package/esm2020/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2020/core/error/error-options.mjs +6 -6
- package/esm2020/core/line/line.mjs +7 -7
- package/esm2020/core/option/index.mjs +4 -4
- package/esm2020/core/option/optgroup.mjs +6 -6
- package/esm2020/core/option/option.mjs +6 -6
- package/esm2020/core/ripple/index.mjs +4 -4
- package/esm2020/core/ripple/ripple.mjs +3 -3
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +3 -3
- package/esm2020/datepicker/calendar.mjs +6 -6
- package/esm2020/datepicker/date-range-input-parts.mjs +12 -12
- package/esm2020/datepicker/date-range-input.mjs +3 -3
- package/esm2020/datepicker/date-range-picker.mjs +3 -3
- package/esm2020/datepicker/date-range-selection-strategy.mjs +3 -3
- package/esm2020/datepicker/date-selection-model.mjs +9 -9
- package/esm2020/datepicker/datepicker-actions.mjs +9 -9
- package/esm2020/datepicker/datepicker-base.mjs +6 -6
- package/esm2020/datepicker/datepicker-input-base.mjs +3 -3
- package/esm2020/datepicker/datepicker-input.mjs +3 -3
- package/esm2020/datepicker/datepicker-intl.mjs +3 -3
- package/esm2020/datepicker/datepicker-module.mjs +4 -4
- package/esm2020/datepicker/datepicker-toggle.mjs +6 -6
- package/esm2020/datepicker/datepicker.mjs +3 -3
- package/esm2020/datepicker/month-view.mjs +3 -3
- package/esm2020/datepicker/multi-year-view.mjs +3 -3
- package/esm2020/datepicker/year-view.mjs +3 -3
- package/esm2020/dialog/dialog-container.mjs +7 -7
- package/esm2020/dialog/dialog-content-directives.mjs +12 -12
- package/esm2020/dialog/dialog.mjs +6 -6
- package/esm2020/dialog/module.mjs +4 -4
- package/esm2020/divider/divider-module.mjs +4 -4
- package/esm2020/divider/divider.mjs +3 -3
- package/esm2020/expansion/accordion.mjs +3 -3
- package/esm2020/expansion/expansion-module.mjs +4 -4
- package/esm2020/expansion/expansion-panel-content.mjs +3 -3
- package/esm2020/expansion/expansion-panel-header.mjs +9 -9
- package/esm2020/expansion/expansion-panel.mjs +6 -6
- package/esm2020/form-field/directives/error.mjs +3 -3
- package/esm2020/form-field/directives/floating-label.mjs +3 -3
- package/esm2020/form-field/directives/hint.mjs +3 -3
- package/esm2020/form-field/directives/label.mjs +3 -3
- package/esm2020/form-field/directives/line-ripple.mjs +3 -3
- package/esm2020/form-field/directives/notched-outline.mjs +3 -3
- package/esm2020/form-field/directives/prefix.mjs +3 -3
- package/esm2020/form-field/directives/suffix.mjs +3 -3
- package/esm2020/form-field/form-field-control.mjs +3 -3
- package/esm2020/form-field/form-field.mjs +3 -3
- package/esm2020/form-field/module.mjs +4 -4
- package/esm2020/grid-list/grid-list-module.mjs +4 -4
- package/esm2020/grid-list/grid-list.mjs +3 -3
- package/esm2020/grid-list/grid-tile.mjs +15 -15
- package/esm2020/icon/icon-module.mjs +4 -4
- package/esm2020/icon/icon-registry.mjs +3 -3
- package/esm2020/icon/icon.mjs +3 -3
- package/esm2020/icon/testing/fake-icon-registry.mjs +7 -7
- package/esm2020/input/input.mjs +3 -3
- package/esm2020/input/module.mjs +4 -4
- package/esm2020/legacy-autocomplete/autocomplete-module.mjs +4 -4
- package/esm2020/legacy-autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2020/legacy-autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2020/legacy-autocomplete/autocomplete.mjs +3 -3
- package/esm2020/legacy-button/button-module.mjs +4 -4
- package/esm2020/legacy-button/button.mjs +6 -6
- package/esm2020/legacy-card/card-module.mjs +4 -4
- package/esm2020/legacy-card/card.mjs +42 -42
- package/esm2020/legacy-checkbox/checkbox-module.mjs +4 -4
- package/esm2020/legacy-checkbox/checkbox.mjs +3 -3
- package/esm2020/legacy-chips/chip-input.mjs +3 -3
- package/esm2020/legacy-chips/chip-list.mjs +3 -3
- package/esm2020/legacy-chips/chip.mjs +12 -12
- package/esm2020/legacy-chips/chips-module.mjs +4 -4
- package/esm2020/legacy-core/option/index.mjs +4 -4
- package/esm2020/legacy-core/option/optgroup.mjs +3 -3
- package/esm2020/legacy-core/option/option.mjs +3 -3
- package/esm2020/legacy-dialog/dialog-container.mjs +3 -3
- package/esm2020/legacy-dialog/dialog-content-directives.mjs +12 -12
- package/esm2020/legacy-dialog/dialog-module.mjs +4 -4
- package/esm2020/legacy-dialog/dialog.mjs +3 -3
- package/esm2020/legacy-form-field/error.mjs +3 -3
- package/esm2020/legacy-form-field/form-field-module.mjs +4 -4
- package/esm2020/legacy-form-field/form-field.mjs +3 -3
- package/esm2020/legacy-form-field/hint.mjs +3 -3
- package/esm2020/legacy-form-field/label.mjs +3 -3
- package/esm2020/legacy-form-field/placeholder.mjs +3 -3
- package/esm2020/legacy-form-field/prefix.mjs +3 -3
- package/esm2020/legacy-form-field/suffix.mjs +3 -3
- package/esm2020/legacy-input/input-module.mjs +4 -4
- package/esm2020/legacy-input/input.mjs +3 -3
- package/esm2020/legacy-list/list-module.mjs +4 -4
- package/esm2020/legacy-list/list.mjs +18 -18
- package/esm2020/legacy-list/selection-list.mjs +6 -6
- package/esm2020/legacy-menu/menu-content.mjs +3 -3
- package/esm2020/legacy-menu/menu-item.mjs +3 -3
- package/esm2020/legacy-menu/menu-module.mjs +4 -4
- package/esm2020/legacy-menu/menu-trigger.mjs +3 -3
- package/esm2020/legacy-menu/menu.mjs +3 -3
- package/esm2020/legacy-paginator/paginator-module.mjs +4 -4
- package/esm2020/legacy-paginator/paginator.mjs +3 -3
- package/esm2020/legacy-progress-bar/progress-bar-module.mjs +4 -4
- package/esm2020/legacy-progress-bar/progress-bar.mjs +3 -3
- package/esm2020/legacy-progress-spinner/progress-spinner-module.mjs +4 -4
- package/esm2020/legacy-progress-spinner/progress-spinner.mjs +3 -3
- package/esm2020/legacy-radio/radio-module.mjs +4 -4
- package/esm2020/legacy-radio/radio.mjs +6 -6
- package/esm2020/legacy-select/select-module.mjs +4 -4
- package/esm2020/legacy-select/select.mjs +6 -6
- package/esm2020/legacy-slide-toggle/slide-toggle-module.mjs +4 -4
- package/esm2020/legacy-slide-toggle/slide-toggle.mjs +3 -3
- package/esm2020/legacy-slider/slider-module.mjs +4 -4
- package/esm2020/legacy-slider/slider.mjs +3 -3
- package/esm2020/legacy-snack-bar/simple-snack-bar.mjs +3 -3
- package/esm2020/legacy-snack-bar/snack-bar-container.mjs +3 -3
- package/esm2020/legacy-snack-bar/snack-bar-module.mjs +4 -4
- package/esm2020/legacy-snack-bar/snack-bar.mjs +3 -3
- package/esm2020/legacy-table/cell.mjs +21 -21
- package/esm2020/legacy-table/row.mjs +21 -21
- package/esm2020/legacy-table/table-module.mjs +4 -4
- package/esm2020/legacy-table/table.mjs +6 -6
- package/esm2020/legacy-table/text-column.mjs +3 -3
- package/esm2020/legacy-tabs/ink-bar.mjs +3 -3
- package/esm2020/legacy-tabs/tab-body.mjs +6 -6
- package/esm2020/legacy-tabs/tab-content.mjs +3 -3
- package/esm2020/legacy-tabs/tab-group.mjs +3 -3
- package/esm2020/legacy-tabs/tab-header.mjs +3 -3
- package/esm2020/legacy-tabs/tab-label-wrapper.mjs +3 -3
- package/esm2020/legacy-tabs/tab-label.mjs +3 -3
- package/esm2020/legacy-tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
- package/esm2020/legacy-tabs/tab.mjs +3 -3
- package/esm2020/legacy-tabs/tabs-module.mjs +4 -4
- package/esm2020/legacy-tooltip/tooltip-module.mjs +4 -4
- package/esm2020/legacy-tooltip/tooltip.mjs +6 -6
- package/esm2020/list/action-list.mjs +3 -3
- package/esm2020/list/list-base.mjs +6 -6
- package/esm2020/list/list-item-sections.mjs +18 -18
- package/esm2020/list/list-module.mjs +4 -4
- package/esm2020/list/list-option.mjs +3 -3
- package/esm2020/list/list.mjs +6 -6
- package/esm2020/list/nav-list.mjs +3 -3
- package/esm2020/list/selection-list.mjs +16 -6
- package/esm2020/list/subheader.mjs +3 -3
- package/esm2020/menu/menu-content.mjs +6 -6
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/menu/menu-trigger.mjs +6 -6
- package/esm2020/menu/menu.mjs +6 -6
- package/esm2020/menu/module.mjs +4 -4
- package/esm2020/paginator/module.mjs +4 -4
- package/esm2020/paginator/paginator-intl.mjs +3 -3
- package/esm2020/paginator/paginator.mjs +6 -6
- package/esm2020/progress-bar/module.mjs +4 -4
- package/esm2020/progress-bar/progress-bar.mjs +3 -3
- package/esm2020/progress-spinner/module.mjs +4 -4
- package/esm2020/progress-spinner/progress-spinner.mjs +3 -3
- package/esm2020/radio/module.mjs +4 -4
- package/esm2020/radio/radio.mjs +12 -12
- package/esm2020/select/module.mjs +4 -4
- package/esm2020/select/select.mjs +9 -9
- package/esm2020/sidenav/drawer.mjs +9 -9
- package/esm2020/sidenav/sidenav-module.mjs +4 -4
- package/esm2020/sidenav/sidenav.mjs +9 -9
- package/esm2020/slide-toggle/module.mjs +8 -8
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +3 -3
- package/esm2020/slide-toggle/slide-toggle.mjs +7 -7
- package/esm2020/slider/module.mjs +10 -8
- package/esm2020/slider/public-api.mjs +4 -2
- package/esm2020/slider/slider-input.mjs +611 -0
- package/esm2020/slider/slider-interface.mjs +34 -0
- package/esm2020/slider/slider-thumb.mjs +229 -0
- package/esm2020/slider/slider.mjs +523 -925
- package/esm2020/snack-bar/module.mjs +4 -4
- package/esm2020/snack-bar/simple-snack-bar.mjs +3 -3
- package/esm2020/snack-bar/snack-bar-container.mjs +8 -8
- package/esm2020/snack-bar/snack-bar-content.mjs +9 -9
- package/esm2020/snack-bar/snack-bar.mjs +6 -6
- package/esm2020/sort/sort-header-intl.mjs +3 -3
- package/esm2020/sort/sort-header.mjs +3 -3
- package/esm2020/sort/sort-module.mjs +4 -4
- package/esm2020/sort/sort.mjs +3 -3
- package/esm2020/stepper/step-content.mjs +3 -3
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +3 -3
- package/esm2020/stepper/stepper-button.mjs +6 -6
- package/esm2020/stepper/stepper-icon.mjs +3 -3
- package/esm2020/stepper/stepper-intl.mjs +3 -3
- package/esm2020/stepper/stepper-module.mjs +4 -4
- package/esm2020/stepper/stepper.mjs +8 -8
- package/esm2020/table/cell.mjs +21 -21
- package/esm2020/table/module.mjs +4 -4
- package/esm2020/table/row.mjs +21 -21
- package/esm2020/table/table.mjs +8 -8
- package/esm2020/table/text-column.mjs +3 -3
- package/esm2020/tabs/module.mjs +4 -4
- package/esm2020/tabs/paginated-tab-header.mjs +3 -3
- package/esm2020/tabs/tab-body.mjs +9 -9
- package/esm2020/tabs/tab-content.mjs +3 -3
- package/esm2020/tabs/tab-group.mjs +6 -6
- package/esm2020/tabs/tab-header.mjs +7 -7
- package/esm2020/tabs/tab-label-wrapper.mjs +6 -6
- package/esm2020/tabs/tab-label.mjs +3 -3
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +106 -106
- package/esm2020/tabs/tab.mjs +6 -6
- package/esm2020/toolbar/toolbar-module.mjs +4 -4
- package/esm2020/toolbar/toolbar.mjs +6 -6
- package/esm2020/tooltip/module.mjs +4 -4
- package/esm2020/tooltip/tooltip.mjs +12 -12
- package/esm2020/tree/node.mjs +9 -9
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.mjs +3 -3
- package/esm2020/tree/toggle.mjs +3 -3
- package/esm2020/tree/tree-module.mjs +4 -4
- package/esm2020/tree/tree.mjs +3 -3
- package/fesm2015/autocomplete.mjs +22 -22
- package/fesm2015/badge.mjs +7 -7
- package/fesm2015/bottom-sheet.mjs +10 -10
- package/fesm2015/button-toggle.mjs +10 -10
- package/fesm2015/button.mjs +40 -40
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card.mjs +46 -46
- package/fesm2015/checkbox.mjs +17 -17
- package/fesm2015/chips.mjs +46 -52
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +59 -59
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +84 -84
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog.mjs +29 -29
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider.mjs +7 -7
- package/fesm2015/expansion.mjs +25 -25
- package/fesm2015/form-field.mjs +34 -34
- package/fesm2015/grid-list.mjs +22 -22
- package/fesm2015/icon/testing.mjs +7 -7
- package/fesm2015/icon.mjs +10 -10
- package/fesm2015/input.mjs +7 -7
- package/fesm2015/legacy-autocomplete.mjs +13 -13
- package/fesm2015/legacy-button.mjs +10 -10
- package/fesm2015/legacy-card.mjs +46 -46
- package/fesm2015/legacy-checkbox.mjs +7 -7
- package/fesm2015/legacy-chips.mjs +22 -22
- package/fesm2015/legacy-core.mjs +10 -10
- package/fesm2015/legacy-dialog.mjs +22 -22
- package/fesm2015/legacy-form-field.mjs +25 -25
- package/fesm2015/legacy-input.mjs +7 -7
- package/fesm2015/legacy-list.mjs +28 -28
- package/fesm2015/legacy-menu.mjs +16 -16
- package/fesm2015/legacy-paginator.mjs +7 -7
- package/fesm2015/legacy-progress-bar.mjs +7 -7
- package/fesm2015/legacy-progress-spinner.mjs +7 -7
- package/fesm2015/legacy-radio.mjs +10 -10
- package/fesm2015/legacy-select.mjs +10 -10
- package/fesm2015/legacy-slide-toggle.mjs +7 -7
- package/fesm2015/legacy-slider.mjs +7 -7
- package/fesm2015/legacy-snack-bar.mjs +13 -13
- package/fesm2015/legacy-table.mjs +55 -55
- package/fesm2015/legacy-tabs.mjs +40 -40
- package/fesm2015/legacy-tooltip.mjs +10 -10
- package/fesm2015/list.mjs +61 -51
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu.mjs +25 -25
- package/fesm2015/paginator.mjs +13 -13
- package/fesm2015/progress-bar.mjs +7 -7
- package/fesm2015/progress-spinner.mjs +7 -7
- package/fesm2015/radio.mjs +16 -16
- package/fesm2015/select.mjs +13 -13
- package/fesm2015/sidenav.mjs +22 -22
- package/fesm2015/slide-toggle.mjs +18 -18
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider.mjs +1300 -902
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +29 -29
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort.mjs +13 -13
- package/fesm2015/stepper.mjs +33 -33
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +57 -57
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs.mjs +161 -161
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +10 -10
- package/fesm2015/tooltip.mjs +16 -16
- package/fesm2015/tree.mjs +25 -25
- package/fesm2020/autocomplete.mjs +22 -22
- package/fesm2020/badge.mjs +7 -7
- package/fesm2020/bottom-sheet.mjs +10 -10
- package/fesm2020/button-toggle.mjs +10 -10
- package/fesm2020/button.mjs +40 -40
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card.mjs +46 -46
- package/fesm2020/checkbox.mjs +17 -17
- package/fesm2020/chips.mjs +46 -52
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +59 -59
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +84 -84
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog.mjs +29 -29
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider.mjs +7 -7
- package/fesm2020/expansion.mjs +25 -25
- package/fesm2020/form-field.mjs +34 -34
- package/fesm2020/grid-list.mjs +22 -22
- package/fesm2020/icon/testing.mjs +7 -7
- package/fesm2020/icon.mjs +10 -10
- package/fesm2020/input.mjs +7 -7
- package/fesm2020/legacy-autocomplete.mjs +13 -13
- package/fesm2020/legacy-button.mjs +10 -10
- package/fesm2020/legacy-card.mjs +46 -46
- package/fesm2020/legacy-checkbox.mjs +7 -7
- package/fesm2020/legacy-chips.mjs +22 -22
- package/fesm2020/legacy-core.mjs +10 -10
- package/fesm2020/legacy-dialog.mjs +22 -22
- package/fesm2020/legacy-form-field.mjs +25 -25
- package/fesm2020/legacy-input.mjs +7 -7
- package/fesm2020/legacy-list.mjs +28 -28
- package/fesm2020/legacy-menu.mjs +16 -16
- package/fesm2020/legacy-paginator.mjs +7 -7
- package/fesm2020/legacy-progress-bar.mjs +7 -7
- package/fesm2020/legacy-progress-spinner.mjs +7 -7
- package/fesm2020/legacy-radio.mjs +10 -10
- package/fesm2020/legacy-select.mjs +10 -10
- package/fesm2020/legacy-slide-toggle.mjs +7 -7
- package/fesm2020/legacy-slider.mjs +7 -7
- package/fesm2020/legacy-snack-bar.mjs +13 -13
- package/fesm2020/legacy-table.mjs +55 -55
- package/fesm2020/legacy-tabs.mjs +40 -40
- package/fesm2020/legacy-tooltip.mjs +10 -10
- package/fesm2020/list.mjs +61 -51
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu.mjs +25 -25
- package/fesm2020/paginator.mjs +13 -13
- package/fesm2020/progress-bar.mjs +7 -7
- package/fesm2020/progress-spinner.mjs +7 -7
- package/fesm2020/radio.mjs +16 -16
- package/fesm2020/select.mjs +13 -13
- package/fesm2020/sidenav.mjs +22 -22
- package/fesm2020/slide-toggle.mjs +18 -18
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider.mjs +1289 -882
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +29 -29
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort.mjs +13 -13
- package/fesm2020/stepper.mjs +33 -33
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +57 -57
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs.mjs +159 -159
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +10 -10
- package/fesm2020/tooltip.mjs +16 -16
- package/fesm2020/tree.mjs +25 -25
- package/legacy-core/density/private/_all-density.scss +10 -2
- package/legacy-core/theming/_all-theme.scss +29 -2
- package/legacy-core/typography/_all-typography.scss +31 -2
- package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +1 -1
- package/legacy-prebuilt-themes/legacy-indigo-pink.css +1 -1
- package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +1 -1
- package/legacy-prebuilt-themes/legacy-purple-green.css +1 -1
- package/list/index.d.ts +4 -1
- package/package.json +49 -49
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/radio/_radio-theme.scss +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +320 -47
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
- package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
- package/schematics/ng-update/index_bundled.js +2 -1
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/schematics/ng-update/ng_update_index_metadata.json +1 -1
- package/slider/index.d.ts +443 -235
- package/tabs/index.d.ts +1 -1
- package/esm2020/slider/global-change-and-input-listener.mjs +0 -59
package/radio/_radio-theme.scss
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
@include mdc-helpers.using-mdc-theme($config) {
|
|
30
30
|
$on-surface: rgba(mdc-theme-color.$on-surface, 0.54);
|
|
31
|
-
$is-dark: map
|
|
31
|
+
$is-dark: map.get($config, is-dark);
|
|
32
32
|
$active-border-color: if(
|
|
33
33
|
$is-dark,
|
|
34
34
|
theming.get-color-from-palette(palette.$gray-palette, 200),
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~15.0.0-rc.
|
|
21
|
+
const fallbackMaterialVersionRange = `~15.0.0-rc.2`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~15.0.0-rc.
|
|
21
|
+
const fallbackMaterialVersionRange = `~15.0.0-rc.2`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -1962,9 +1962,9 @@ var require_source_map_generator = __commonJS({
|
|
|
1962
1962
|
var mapping;
|
|
1963
1963
|
var nameIdx;
|
|
1964
1964
|
var sourceIdx;
|
|
1965
|
-
var
|
|
1966
|
-
for (var i = 0, len =
|
|
1967
|
-
mapping =
|
|
1965
|
+
var mappings2 = this._mappings.toArray();
|
|
1966
|
+
for (var i = 0, len = mappings2.length; i < len; i++) {
|
|
1967
|
+
mapping = mappings2[i];
|
|
1968
1968
|
next = "";
|
|
1969
1969
|
if (mapping.generatedLine !== previousGeneratedLine) {
|
|
1970
1970
|
previousGeneratedColumn = 0;
|
|
@@ -1974,7 +1974,7 @@ var require_source_map_generator = __commonJS({
|
|
|
1974
1974
|
}
|
|
1975
1975
|
} else {
|
|
1976
1976
|
if (i > 0) {
|
|
1977
|
-
if (!util.compareByGeneratedPositionsInflated(mapping,
|
|
1977
|
+
if (!util.compareByGeneratedPositionsInflated(mapping, mappings2[i - 1])) {
|
|
1978
1978
|
continue;
|
|
1979
1979
|
}
|
|
1980
1980
|
next += ",";
|
|
@@ -2190,13 +2190,13 @@ var require_source_map_consumer = __commonJS({
|
|
|
2190
2190
|
SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
|
|
2191
2191
|
var context = aContext || null;
|
|
2192
2192
|
var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
|
|
2193
|
-
var
|
|
2193
|
+
var mappings2;
|
|
2194
2194
|
switch (order) {
|
|
2195
2195
|
case SourceMapConsumer.GENERATED_ORDER:
|
|
2196
|
-
|
|
2196
|
+
mappings2 = this._generatedMappings;
|
|
2197
2197
|
break;
|
|
2198
2198
|
case SourceMapConsumer.ORIGINAL_ORDER:
|
|
2199
|
-
|
|
2199
|
+
mappings2 = this._originalMappings;
|
|
2200
2200
|
break;
|
|
2201
2201
|
default:
|
|
2202
2202
|
throw new Error("Unknown order of iteration.");
|
|
@@ -2206,8 +2206,8 @@ var require_source_map_consumer = __commonJS({
|
|
|
2206
2206
|
var names = this._names;
|
|
2207
2207
|
var sources = this._sources;
|
|
2208
2208
|
var sourceMapURL = this._sourceMapURL;
|
|
2209
|
-
for (var i = 0, n =
|
|
2210
|
-
var mapping =
|
|
2209
|
+
for (var i = 0, n = mappings2.length; i < n; i++) {
|
|
2210
|
+
var mapping = mappings2[i];
|
|
2211
2211
|
var source = mapping.source === null ? null : sources.at(mapping.source);
|
|
2212
2212
|
source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
|
|
2213
2213
|
boundCallback({
|
|
@@ -2231,14 +2231,14 @@ var require_source_map_consumer = __commonJS({
|
|
|
2231
2231
|
if (needle.source < 0) {
|
|
2232
2232
|
return [];
|
|
2233
2233
|
}
|
|
2234
|
-
var
|
|
2234
|
+
var mappings2 = [];
|
|
2235
2235
|
var index2 = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
|
|
2236
2236
|
if (index2 >= 0) {
|
|
2237
2237
|
var mapping = this._originalMappings[index2];
|
|
2238
2238
|
if (aArgs.column === void 0) {
|
|
2239
2239
|
var originalLine = mapping.originalLine;
|
|
2240
2240
|
while (mapping && mapping.originalLine === originalLine) {
|
|
2241
|
-
|
|
2241
|
+
mappings2.push({
|
|
2242
2242
|
line: util.getArg(mapping, "generatedLine", null),
|
|
2243
2243
|
column: util.getArg(mapping, "generatedColumn", null),
|
|
2244
2244
|
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
@@ -2248,7 +2248,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
2248
2248
|
} else {
|
|
2249
2249
|
var originalColumn = mapping.originalColumn;
|
|
2250
2250
|
while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
|
|
2251
|
-
|
|
2251
|
+
mappings2.push({
|
|
2252
2252
|
line: util.getArg(mapping, "generatedLine", null),
|
|
2253
2253
|
column: util.getArg(mapping, "generatedColumn", null),
|
|
2254
2254
|
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
@@ -2257,7 +2257,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
2257
2257
|
}
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
|
-
return
|
|
2260
|
+
return mappings2;
|
|
2261
2261
|
};
|
|
2262
2262
|
exports.SourceMapConsumer = SourceMapConsumer;
|
|
2263
2263
|
function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
@@ -2270,7 +2270,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
2270
2270
|
var names = util.getArg(sourceMap, "names", []);
|
|
2271
2271
|
var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
|
|
2272
2272
|
var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
|
|
2273
|
-
var
|
|
2273
|
+
var mappings2 = util.getArg(sourceMap, "mappings");
|
|
2274
2274
|
var file = util.getArg(sourceMap, "file", null);
|
|
2275
2275
|
if (version != this._version) {
|
|
2276
2276
|
throw new Error("Unsupported version: " + version);
|
|
@@ -2288,7 +2288,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
2288
2288
|
});
|
|
2289
2289
|
this.sourceRoot = sourceRoot;
|
|
2290
2290
|
this.sourcesContent = sourcesContent;
|
|
2291
|
-
this._mappings =
|
|
2291
|
+
this._mappings = mappings2;
|
|
2292
2292
|
this._sourceMapURL = aSourceMapURL;
|
|
2293
2293
|
this.file = file;
|
|
2294
2294
|
}
|
|
@@ -6271,11 +6271,25 @@ module.exports = __toCommonJS(mdc_migration_exports);
|
|
|
6271
6271
|
var END_OF_SELECTOR_REGEX = "(?!-)";
|
|
6272
6272
|
var MIXIN_ARGUMENTS_REGEX = "\\(((\\s|.)*)\\)";
|
|
6273
6273
|
var StyleMigrator = class {
|
|
6274
|
+
constructor() {
|
|
6275
|
+
this._processedNodes = /* @__PURE__ */ new WeakMap();
|
|
6276
|
+
}
|
|
6277
|
+
static wrapValue(value) {
|
|
6278
|
+
const escapeString = "__NG_MDC_MIGRATION_PLACEHOLDER__";
|
|
6279
|
+
return `${escapeString}${value}${escapeString}`;
|
|
6280
|
+
}
|
|
6281
|
+
static unwrapAllValues(content) {
|
|
6282
|
+
return content.replace(/__NG_MDC_MIGRATION_PLACEHOLDER__/g, "");
|
|
6283
|
+
}
|
|
6274
6284
|
isLegacyMixin(namespace, atRule2) {
|
|
6275
6285
|
return this.mixinChanges.some((change) => atRule2.params.includes(`${namespace}.${change.old}`));
|
|
6276
6286
|
}
|
|
6277
6287
|
getMixinChange(namespace, atRule2) {
|
|
6278
6288
|
var _a, _b;
|
|
6289
|
+
const processedKey = `mixinChange-${namespace}`;
|
|
6290
|
+
if (this._nodeIsProcessed(atRule2, processedKey)) {
|
|
6291
|
+
return null;
|
|
6292
|
+
}
|
|
6279
6293
|
const change = this.mixinChanges.find((c) => {
|
|
6280
6294
|
return atRule2.params.includes(`${namespace}.${c.old}`);
|
|
6281
6295
|
});
|
|
@@ -6294,6 +6308,7 @@ var StyleMigrator = class {
|
|
|
6294
6308
|
}
|
|
6295
6309
|
});
|
|
6296
6310
|
}
|
|
6311
|
+
this._trackProcessedNode(atRule2, processedKey);
|
|
6297
6312
|
return { old: change.old, new: replacements.length ? replacements : null };
|
|
6298
6313
|
}
|
|
6299
6314
|
isLegacySelector(rule2) {
|
|
@@ -6304,16 +6319,28 @@ var StyleMigrator = class {
|
|
|
6304
6319
|
}
|
|
6305
6320
|
replaceLegacySelector(rule2) {
|
|
6306
6321
|
var _a;
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6322
|
+
if (!this._nodeIsProcessed(rule2, "replaceLegacySelector")) {
|
|
6323
|
+
for (let i = 0; i < this.classChanges.length; i++) {
|
|
6324
|
+
const change = this.classChanges[i];
|
|
6325
|
+
if ((_a = rule2.selector) == null ? void 0 : _a.match(change.old + END_OF_SELECTOR_REGEX)) {
|
|
6326
|
+
rule2.selector = rule2.selector.replace(change.old, change.new);
|
|
6327
|
+
}
|
|
6311
6328
|
}
|
|
6329
|
+
this._trackProcessedNode(rule2, "replaceLegacySelector");
|
|
6312
6330
|
}
|
|
6313
6331
|
}
|
|
6314
6332
|
isDeprecatedSelector(rule2) {
|
|
6315
6333
|
return this.deprecatedPrefixes.some((deprecatedPrefix) => rule2.selector.includes(deprecatedPrefix));
|
|
6316
6334
|
}
|
|
6335
|
+
_trackProcessedNode(node, action) {
|
|
6336
|
+
const appliedActions = this._processedNodes.get(node) || /* @__PURE__ */ new Set();
|
|
6337
|
+
appliedActions.add(action);
|
|
6338
|
+
this._processedNodes.set(node, appliedActions);
|
|
6339
|
+
}
|
|
6340
|
+
_nodeIsProcessed(node, action) {
|
|
6341
|
+
var _a;
|
|
6342
|
+
return !!((_a = this._processedNodes.get(node)) == null ? void 0 : _a.has(action));
|
|
6343
|
+
}
|
|
6317
6344
|
};
|
|
6318
6345
|
|
|
6319
6346
|
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/components/autocomplete/autocomplete-styles.js
|
|
@@ -8412,14 +8439,14 @@ var SourceMapGenerator = class {
|
|
|
8412
8439
|
sources.push(url);
|
|
8413
8440
|
sourcesContent.push(this.sourcesContent.get(url) || null);
|
|
8414
8441
|
});
|
|
8415
|
-
let
|
|
8442
|
+
let mappings2 = "";
|
|
8416
8443
|
let lastCol0 = 0;
|
|
8417
8444
|
let lastSourceIndex = 0;
|
|
8418
8445
|
let lastSourceLine0 = 0;
|
|
8419
8446
|
let lastSourceCol0 = 0;
|
|
8420
8447
|
this.lines.forEach((segments) => {
|
|
8421
8448
|
lastCol0 = 0;
|
|
8422
|
-
|
|
8449
|
+
mappings2 += segments.map((segment) => {
|
|
8423
8450
|
let segAsStr = toBase64VLQ(segment.col0 - lastCol0);
|
|
8424
8451
|
lastCol0 = segment.col0;
|
|
8425
8452
|
if (segment.sourceUrl != null) {
|
|
@@ -8432,16 +8459,16 @@ var SourceMapGenerator = class {
|
|
|
8432
8459
|
}
|
|
8433
8460
|
return segAsStr;
|
|
8434
8461
|
}).join(",");
|
|
8435
|
-
|
|
8462
|
+
mappings2 += ";";
|
|
8436
8463
|
});
|
|
8437
|
-
|
|
8464
|
+
mappings2 = mappings2.slice(0, -1);
|
|
8438
8465
|
return {
|
|
8439
8466
|
"file": this.file || "",
|
|
8440
8467
|
"version": VERSION$1,
|
|
8441
8468
|
"sourceRoot": "",
|
|
8442
8469
|
"sources": sources,
|
|
8443
8470
|
"sourcesContent": sourcesContent,
|
|
8444
|
-
"mappings":
|
|
8471
|
+
"mappings": mappings2
|
|
8445
8472
|
};
|
|
8446
8473
|
}
|
|
8447
8474
|
toJsComment() {
|
|
@@ -21322,7 +21349,7 @@ function publishFacade(global2) {
|
|
|
21322
21349
|
const ng = global2.ng || (global2.ng = {});
|
|
21323
21350
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
21324
21351
|
}
|
|
21325
|
-
var VERSION = new Version("15.0.0-rc.
|
|
21352
|
+
var VERSION = new Version("15.0.0-rc.1");
|
|
21326
21353
|
var _VisitorMode;
|
|
21327
21354
|
(function(_VisitorMode2) {
|
|
21328
21355
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
@@ -22197,6 +22224,182 @@ var FormFieldTemplateMigrator = class extends TemplateMigrator {
|
|
|
22197
22224
|
}
|
|
22198
22225
|
};
|
|
22199
22226
|
|
|
22227
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/components/slider/slider-template.js
|
|
22228
|
+
var SliderTemplateMigrator = class extends TemplateMigrator {
|
|
22229
|
+
getUpdates(ast) {
|
|
22230
|
+
const updates = [];
|
|
22231
|
+
visitElements(ast.nodes, (node) => {
|
|
22232
|
+
if (node.name === "mat-slider") {
|
|
22233
|
+
const originalHtml = node.sourceSpan.start.file.content;
|
|
22234
|
+
const bindings = this._getBindings(node);
|
|
22235
|
+
const inputBindings = [];
|
|
22236
|
+
const comments = [];
|
|
22237
|
+
for (let i = 0; i < bindings.length; i++) {
|
|
22238
|
+
const binding = bindings[i];
|
|
22239
|
+
if (binding.name === "value") {
|
|
22240
|
+
const sourceSpan = binding.node.sourceSpan;
|
|
22241
|
+
inputBindings.push(originalHtml.slice(sourceSpan.start.offset, sourceSpan.end.offset));
|
|
22242
|
+
updates.push(this._removeBinding(originalHtml, binding.node));
|
|
22243
|
+
}
|
|
22244
|
+
if (binding.name === "invert" || binding.name === "vertical") {
|
|
22245
|
+
comments.push(`<!-- TODO: The '${binding.name}' property no longer exists -->`);
|
|
22246
|
+
updates.push(this._removeBinding(originalHtml, binding.node));
|
|
22247
|
+
}
|
|
22248
|
+
}
|
|
22249
|
+
if (comments.length) {
|
|
22250
|
+
updates.push(this._addComments(node, comments));
|
|
22251
|
+
}
|
|
22252
|
+
const matSliderThumb = inputBindings.length ? `<input matSliderThumb ${inputBindings.join(" ")} />` : "<input matSliderThumb />";
|
|
22253
|
+
updates.push({
|
|
22254
|
+
offset: node.startSourceSpan.end.offset,
|
|
22255
|
+
updateFn: (html) => html.slice(0, node.startSourceSpan.end.offset) + matSliderThumb + html.slice(node.startSourceSpan.end.offset)
|
|
22256
|
+
});
|
|
22257
|
+
}
|
|
22258
|
+
});
|
|
22259
|
+
return updates;
|
|
22260
|
+
}
|
|
22261
|
+
_addComments(node, comments) {
|
|
22262
|
+
const whitespace = this._parseIndentation(node);
|
|
22263
|
+
const indentation = "\n" + this._parseIndentation(node);
|
|
22264
|
+
const commentStr = whitespace.length === node.sourceSpan.start.col ? comments.join(indentation) : indentation + comments.join(indentation);
|
|
22265
|
+
return {
|
|
22266
|
+
offset: node.sourceSpan.start.offset,
|
|
22267
|
+
updateFn: (html) => html.slice(0, node.sourceSpan.start.offset) + commentStr + `${indentation}${html.slice(node.sourceSpan.start.offset)}`
|
|
22268
|
+
};
|
|
22269
|
+
}
|
|
22270
|
+
_parseIndentation(node) {
|
|
22271
|
+
const html = node.sourceSpan.start.file.content;
|
|
22272
|
+
const before = html.slice(node.sourceSpan.start.offset - node.sourceSpan.start.col, node.sourceSpan.start.offset);
|
|
22273
|
+
return before.slice(0, before.length - before.trimStart().length);
|
|
22274
|
+
}
|
|
22275
|
+
_removeBinding(originalHtml, binding) {
|
|
22276
|
+
let charIndex = binding.sourceSpan.start.offset - 1;
|
|
22277
|
+
while (/\s/.test(originalHtml.charAt(charIndex)) && charIndex > -1) {
|
|
22278
|
+
charIndex--;
|
|
22279
|
+
}
|
|
22280
|
+
return {
|
|
22281
|
+
offset: charIndex + 1,
|
|
22282
|
+
updateFn: (html) => html.slice(0, charIndex + 1) + html.slice(binding.sourceSpan.end.offset)
|
|
22283
|
+
};
|
|
22284
|
+
}
|
|
22285
|
+
_getBindings(node) {
|
|
22286
|
+
const allInputs = this._getInputs(node);
|
|
22287
|
+
const allOutputs = this._getOutputs(node);
|
|
22288
|
+
const attributes = this._getAttributes(node);
|
|
22289
|
+
const twoWayBindings = this._getTwoWayBindings(allInputs, allOutputs);
|
|
22290
|
+
const inputs = allInputs.filter((input) => !twoWayBindings.some((binding) => binding.name === input.name));
|
|
22291
|
+
const outputs = allOutputs.filter((output) => !twoWayBindings.some((binding) => binding.name === output.name));
|
|
22292
|
+
return inputs.concat(outputs).concat(attributes).concat(twoWayBindings);
|
|
22293
|
+
}
|
|
22294
|
+
_getTwoWayBindings(inputs, outputs) {
|
|
22295
|
+
return inputs.filter((input) => outputs.some((output) => output.name === input.name)).map((input) => __spreadProps(__spreadValues({}, input), { type: 3 }));
|
|
22296
|
+
}
|
|
22297
|
+
_getOutputs(node) {
|
|
22298
|
+
return node.outputs.map((output) => ({
|
|
22299
|
+
node: output,
|
|
22300
|
+
type: 1,
|
|
22301
|
+
name: node.sourceSpan.start.file.content.slice(output.keySpan.start.offset, output.keySpan.end.offset),
|
|
22302
|
+
value: node.sourceSpan.start.file.content.slice(output.handlerSpan.start.offset, output.handlerSpan.end.offset)
|
|
22303
|
+
}));
|
|
22304
|
+
}
|
|
22305
|
+
_getInputs(node) {
|
|
22306
|
+
return node.inputs.map((input) => ({
|
|
22307
|
+
node: input,
|
|
22308
|
+
type: 0,
|
|
22309
|
+
name: node.sourceSpan.start.file.content.slice(input.keySpan.start.offset, input.keySpan.end.offset),
|
|
22310
|
+
value: node.sourceSpan.start.file.content.slice(input.value.sourceSpan.start, input.value.sourceSpan.end)
|
|
22311
|
+
}));
|
|
22312
|
+
}
|
|
22313
|
+
_getAttributes(node) {
|
|
22314
|
+
return node.attributes.map((attribute) => ({
|
|
22315
|
+
node: attribute,
|
|
22316
|
+
type: 2,
|
|
22317
|
+
name: attribute.name,
|
|
22318
|
+
value: attribute.value
|
|
22319
|
+
}));
|
|
22320
|
+
}
|
|
22321
|
+
};
|
|
22322
|
+
|
|
22323
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/components/typography-hierarchy/constants.js
|
|
22324
|
+
var mappings = [
|
|
22325
|
+
["display-4", "headline-1"],
|
|
22326
|
+
["display-3", "headline-2"],
|
|
22327
|
+
["display-2", "headline-3"],
|
|
22328
|
+
["display-1", "headline-4"],
|
|
22329
|
+
["headline", "headline-5"],
|
|
22330
|
+
["title", "headline-6"],
|
|
22331
|
+
["subheading-2", "subtitle-1"],
|
|
22332
|
+
["body-2", "subtitle-2"],
|
|
22333
|
+
["subheading-1", "body-1"],
|
|
22334
|
+
["body-1", "body-2"]
|
|
22335
|
+
];
|
|
22336
|
+
var RENAMED_TYPOGRAPHY_LEVELS = new Map(mappings);
|
|
22337
|
+
var RENAMED_TYPOGRAPHY_CLASSES = new Map(mappings.map((m) => ["mat-" + m[0], "mat-" + m[1]]));
|
|
22338
|
+
|
|
22339
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/components/typography-hierarchy/typography-hierarchy-template.js
|
|
22340
|
+
var TypographyHierarchyTemplateMigrator = class extends TemplateMigrator {
|
|
22341
|
+
getUpdates(ast) {
|
|
22342
|
+
const updates = [];
|
|
22343
|
+
visitElements(ast.nodes, (node) => {
|
|
22344
|
+
this._addStaticClassUpdates(node, updates);
|
|
22345
|
+
this._addClassBindingUpdates(node, updates);
|
|
22346
|
+
});
|
|
22347
|
+
return updates;
|
|
22348
|
+
}
|
|
22349
|
+
_addStaticClassUpdates(node, updates) {
|
|
22350
|
+
const classAttr = node.attributes.find((attr) => attr.name === "class");
|
|
22351
|
+
if (classAttr && classAttr.keySpan && classAttr.valueSpan && classAttr.value.includes("mat-")) {
|
|
22352
|
+
const classes = classAttr.value.split(" ");
|
|
22353
|
+
let hasChanged = false;
|
|
22354
|
+
classes.forEach((current, index2) => {
|
|
22355
|
+
if (RENAMED_TYPOGRAPHY_CLASSES.has(current)) {
|
|
22356
|
+
hasChanged = true;
|
|
22357
|
+
classes[index2] = RENAMED_TYPOGRAPHY_CLASSES.get(current);
|
|
22358
|
+
}
|
|
22359
|
+
});
|
|
22360
|
+
if (hasChanged) {
|
|
22361
|
+
updates.push({
|
|
22362
|
+
offset: classAttr.keySpan.start.offset,
|
|
22363
|
+
updateFn: (html) => html.slice(0, classAttr.valueSpan.start.offset) + classes.join(" ") + html.slice(classAttr.valueSpan.end.offset)
|
|
22364
|
+
});
|
|
22365
|
+
}
|
|
22366
|
+
}
|
|
22367
|
+
}
|
|
22368
|
+
_addClassBindingUpdates(node, updates) {
|
|
22369
|
+
node.inputs.forEach((input) => {
|
|
22370
|
+
if (input.type === 2 && RENAMED_TYPOGRAPHY_CLASSES.has(input.name)) {
|
|
22371
|
+
updates.push({
|
|
22372
|
+
offset: input.keySpan.start.offset,
|
|
22373
|
+
updateFn: (html) => {
|
|
22374
|
+
return html.slice(0, input.keySpan.start.offset) + "class." + RENAMED_TYPOGRAPHY_CLASSES.get(input.name) + html.slice(input.keySpan.end.offset);
|
|
22375
|
+
}
|
|
22376
|
+
});
|
|
22377
|
+
}
|
|
22378
|
+
});
|
|
22379
|
+
}
|
|
22380
|
+
};
|
|
22381
|
+
|
|
22382
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/components/typography-hierarchy/typography-hierarchy-styles.js
|
|
22383
|
+
var TypographyHierarchyStylesMigrator = class extends StyleMigrator {
|
|
22384
|
+
constructor() {
|
|
22385
|
+
super();
|
|
22386
|
+
this.component = "typography-hierarchy";
|
|
22387
|
+
this.deprecatedPrefixes = [];
|
|
22388
|
+
this.classChanges = [];
|
|
22389
|
+
this.mixinChanges = [
|
|
22390
|
+
{
|
|
22391
|
+
old: "legacy-typography-hierarchy",
|
|
22392
|
+
new: ["typography-hierarchy"],
|
|
22393
|
+
checkForDuplicates: false
|
|
22394
|
+
}
|
|
22395
|
+
];
|
|
22396
|
+
RENAMED_TYPOGRAPHY_CLASSES.forEach((newClass, oldClass) => {
|
|
22397
|
+
const wrappedNewClass = RENAMED_TYPOGRAPHY_CLASSES.has(newClass) ? `.${StyleMigrator.wrapValue(newClass)}` : `.${newClass}`;
|
|
22398
|
+
this.classChanges.push({ new: wrappedNewClass, old: "." + oldClass });
|
|
22399
|
+
});
|
|
22400
|
+
}
|
|
22401
|
+
};
|
|
22402
|
+
|
|
22200
22403
|
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/index.js
|
|
22201
22404
|
var LEGACY_MODULES = new Set([
|
|
22202
22405
|
"legacy-autocomplete",
|
|
@@ -22322,7 +22525,8 @@ var MIGRATORS = [
|
|
|
22322
22525
|
},
|
|
22323
22526
|
{
|
|
22324
22527
|
component: "slider",
|
|
22325
|
-
styles: new SliderStylesMigrator()
|
|
22528
|
+
styles: new SliderStylesMigrator(),
|
|
22529
|
+
template: new SliderTemplateMigrator()
|
|
22326
22530
|
},
|
|
22327
22531
|
{
|
|
22328
22532
|
component: "snack-bar",
|
|
@@ -22341,6 +22545,13 @@ var MIGRATORS = [
|
|
|
22341
22545
|
styles: new TooltipStylesMigrator()
|
|
22342
22546
|
}
|
|
22343
22547
|
];
|
|
22548
|
+
var PERMANENT_MIGRATORS = [
|
|
22549
|
+
{
|
|
22550
|
+
component: "typography-hierarchy",
|
|
22551
|
+
template: new TypographyHierarchyTemplateMigrator(),
|
|
22552
|
+
styles: new TypographyHierarchyStylesMigrator()
|
|
22553
|
+
}
|
|
22554
|
+
];
|
|
22344
22555
|
|
|
22345
22556
|
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/index.mjs
|
|
22346
22557
|
var import_schematics4 = require("@angular/cdk/schematics");
|
|
@@ -22399,7 +22610,10 @@ var ThemingStylesMigration = class extends import_schematics.Migration {
|
|
|
22399
22610
|
this.enabled = true;
|
|
22400
22611
|
}
|
|
22401
22612
|
visitStylesheet(stylesheet) {
|
|
22402
|
-
|
|
22613
|
+
let migratedContent = this.migrate(stylesheet.content, stylesheet.filePath);
|
|
22614
|
+
if (this._namespace) {
|
|
22615
|
+
migratedContent = migrateTypographyConfigs(migratedContent, this._namespace);
|
|
22616
|
+
}
|
|
22403
22617
|
this.fileSystem.edit(stylesheet.filePath).remove(stylesheet.start, stylesheet.content.length).insertRight(stylesheet.start, migratedContent);
|
|
22404
22618
|
}
|
|
22405
22619
|
migrate(styles, filename) {
|
|
@@ -22407,31 +22621,32 @@ var ThemingStylesMigration = class extends import_schematics.Migration {
|
|
|
22407
22621
|
{
|
|
22408
22622
|
postcssPlugin: "theming-styles-migration-plugin",
|
|
22409
22623
|
AtRule: {
|
|
22410
|
-
use: this.
|
|
22411
|
-
include: this.
|
|
22624
|
+
use: this._atUseHandler.bind(this),
|
|
22625
|
+
include: (atRule2) => this._atIncludeHandler(atRule2)
|
|
22412
22626
|
},
|
|
22413
|
-
Rule: this.
|
|
22627
|
+
Rule: (rule2) => this._ruleHandler(rule2)
|
|
22414
22628
|
}
|
|
22415
22629
|
]);
|
|
22416
22630
|
try {
|
|
22417
|
-
|
|
22631
|
+
const result = processor.process(styles, { syntax: scss_syntax_exports }).toString();
|
|
22632
|
+
return result === styles ? styles : StyleMigrator.unwrapAllValues(result);
|
|
22418
22633
|
} catch (e) {
|
|
22419
22634
|
this.context.logger.error(`${e}`);
|
|
22420
22635
|
this.context.logger.warn(`Failed to process stylesheet: ${filename} (see error above).`);
|
|
22421
22636
|
return styles;
|
|
22422
22637
|
}
|
|
22423
22638
|
}
|
|
22424
|
-
|
|
22639
|
+
_atUseHandler(atRule2) {
|
|
22425
22640
|
if (isAngularMaterialImport(atRule2)) {
|
|
22426
|
-
this.
|
|
22641
|
+
this._namespace = parseNamespace(atRule2);
|
|
22427
22642
|
}
|
|
22428
22643
|
}
|
|
22429
|
-
|
|
22644
|
+
_atIncludeHandler(atRule2) {
|
|
22430
22645
|
const migrator = this.upgradeData.find((m) => {
|
|
22431
|
-
return m.styles.isLegacyMixin(this.
|
|
22646
|
+
return m.styles.isLegacyMixin(this._namespace, atRule2);
|
|
22432
22647
|
});
|
|
22433
22648
|
if (migrator) {
|
|
22434
|
-
const mixinChange = migrator.styles.getMixinChange(this.
|
|
22649
|
+
const mixinChange = migrator.styles.getMixinChange(this._namespace, atRule2);
|
|
22435
22650
|
if (mixinChange) {
|
|
22436
22651
|
if (mixinChange.new) {
|
|
22437
22652
|
replaceAtRuleWithMultiple(atRule2, mixinChange.old, mixinChange.new);
|
|
@@ -22447,30 +22662,33 @@ var ThemingStylesMigration = class extends import_schematics.Migration {
|
|
|
22447
22662
|
return;
|
|
22448
22663
|
}
|
|
22449
22664
|
}
|
|
22450
|
-
replaceCrossCuttingMixin(atRule2, this.
|
|
22665
|
+
replaceCrossCuttingMixin(atRule2, this._namespace);
|
|
22451
22666
|
}
|
|
22452
22667
|
}
|
|
22453
22668
|
isCrossCuttingMixin(mixinText) {
|
|
22454
22669
|
return [
|
|
22455
|
-
`${this.
|
|
22456
|
-
`${this.
|
|
22670
|
+
`${this._namespace}\\.all-legacy-component-`,
|
|
22671
|
+
`${this._namespace}\\.legacy-core([^-]|$)`
|
|
22457
22672
|
].some((r) => new RegExp(r).test(mixinText));
|
|
22458
22673
|
}
|
|
22459
22674
|
isPartialMigration() {
|
|
22460
|
-
return this.upgradeData.length !== MIGRATORS.length;
|
|
22675
|
+
return this.upgradeData.length !== MIGRATORS.length + PERMANENT_MIGRATORS.length;
|
|
22461
22676
|
}
|
|
22462
|
-
|
|
22463
|
-
let isLegacySelector;
|
|
22464
|
-
let isDeprecatedSelector;
|
|
22677
|
+
_ruleHandler(rule2) {
|
|
22678
|
+
let isLegacySelector = false;
|
|
22679
|
+
let isDeprecatedSelector = false;
|
|
22465
22680
|
const migrator = this.upgradeData.find((m) => {
|
|
22466
22681
|
isLegacySelector = m.styles.isLegacySelector(rule2);
|
|
22467
22682
|
isDeprecatedSelector = m.styles.isDeprecatedSelector(rule2);
|
|
22468
22683
|
return isLegacySelector || isDeprecatedSelector;
|
|
22469
22684
|
});
|
|
22685
|
+
if (!migrator) {
|
|
22686
|
+
return;
|
|
22687
|
+
}
|
|
22470
22688
|
if (isLegacySelector) {
|
|
22471
|
-
migrator
|
|
22689
|
+
migrator.styles.replaceLegacySelector(rule2);
|
|
22472
22690
|
} else if (isDeprecatedSelector) {
|
|
22473
|
-
addCommentBeforeNode(rule2,
|
|
22691
|
+
addCommentBeforeNode(rule2, `TODO(mdc-migration): The following rule targets internal classes of ${migrator.component} that may no longer apply for the MDC version.`);
|
|
22474
22692
|
}
|
|
22475
22693
|
}
|
|
22476
22694
|
};
|
|
@@ -22526,6 +22744,58 @@ function replaceAtRuleWithMultiple(atRule2, textToReplace, replacements) {
|
|
|
22526
22744
|
}
|
|
22527
22745
|
atRule2.remove();
|
|
22528
22746
|
}
|
|
22747
|
+
function migrateTypographyConfigs(content, namespace) {
|
|
22748
|
+
const calls = extractFunctionCalls(`${namespace}.define-legacy-typography-config`, content);
|
|
22749
|
+
const newFunctionName = `${namespace}.define-typography-config`;
|
|
22750
|
+
const replacements = [];
|
|
22751
|
+
calls.forEach(({ name, args }) => {
|
|
22752
|
+
const argContent = content.slice(args.start, args.end);
|
|
22753
|
+
replacements.push({ start: name.start, end: name.end, text: newFunctionName });
|
|
22754
|
+
RENAMED_TYPOGRAPHY_LEVELS.forEach((newName, oldName) => {
|
|
22755
|
+
const pattern = new RegExp(`\\$(${oldName}) *:`, "g");
|
|
22756
|
+
let match;
|
|
22757
|
+
while (match = pattern.exec(argContent)) {
|
|
22758
|
+
const start = args.start + match.index + 1;
|
|
22759
|
+
replacements.push({
|
|
22760
|
+
start,
|
|
22761
|
+
end: start + match[1].length,
|
|
22762
|
+
text: newName
|
|
22763
|
+
});
|
|
22764
|
+
}
|
|
22765
|
+
});
|
|
22766
|
+
});
|
|
22767
|
+
replacements.sort((a, b) => b.start - a.start).forEach(({ start, end, text }) => content = content.slice(0, start) + text + content.slice(end));
|
|
22768
|
+
return content;
|
|
22769
|
+
}
|
|
22770
|
+
function extractFunctionCalls(name, content) {
|
|
22771
|
+
const results = [];
|
|
22772
|
+
const callString = name + "(";
|
|
22773
|
+
let index2 = content.indexOf(callString);
|
|
22774
|
+
while (index2 > -1) {
|
|
22775
|
+
let openParens = 0;
|
|
22776
|
+
let endIndex = -1;
|
|
22777
|
+
let nameEnd = index2 + callString.length - 1;
|
|
22778
|
+
for (let i = nameEnd; i < content.length; i++) {
|
|
22779
|
+
const char = content[i];
|
|
22780
|
+
if (char === "(") {
|
|
22781
|
+
openParens++;
|
|
22782
|
+
} else if (char === ")") {
|
|
22783
|
+
openParens--;
|
|
22784
|
+
if (openParens === 0) {
|
|
22785
|
+
endIndex = i;
|
|
22786
|
+
break;
|
|
22787
|
+
}
|
|
22788
|
+
}
|
|
22789
|
+
}
|
|
22790
|
+
if (endIndex === -1) {
|
|
22791
|
+
index2 = content.indexOf(callString, nameEnd + 1);
|
|
22792
|
+
} else {
|
|
22793
|
+
results.push({ name: { start: index2, end: nameEnd }, args: { start: nameEnd + 1, end: endIndex } });
|
|
22794
|
+
index2 = content.indexOf(callString, endIndex);
|
|
22795
|
+
}
|
|
22796
|
+
}
|
|
22797
|
+
return results;
|
|
22798
|
+
}
|
|
22529
22799
|
|
|
22530
22800
|
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/rules/template-migration.js
|
|
22531
22801
|
var import_schematics2 = require("@angular/cdk/schematics");
|
|
@@ -22809,7 +23079,10 @@ function mdc_migration_default(options) {
|
|
|
22809
23079
|
const fileSystem = new import_schematics4.DevkitFileSystem(tree);
|
|
22810
23080
|
const analyzedFiles = /* @__PURE__ */ new Set();
|
|
22811
23081
|
const componentsToMigrate = getComponentsToMigrate(options.components);
|
|
22812
|
-
const migrators =
|
|
23082
|
+
const migrators = [
|
|
23083
|
+
...MIGRATORS.filter((m) => componentsToMigrate.has(m.component)),
|
|
23084
|
+
...PERMANENT_MIGRATORS
|
|
23085
|
+
];
|
|
22813
23086
|
let success = true;
|
|
22814
23087
|
if (options.directory) {
|
|
22815
23088
|
logger.info(`Limiting migration to: ${options.directory}`);
|
|
@@ -22850,7 +23123,7 @@ ${[...componentsToMigrate].join("\n")}`);
|
|
|
22850
23123
|
* found in the LICENSE file at https://angular.io/license
|
|
22851
23124
|
*/
|
|
22852
23125
|
/**
|
|
22853
|
-
* @license Angular v15.0.0-rc.
|
|
23126
|
+
* @license Angular v15.0.0-rc.1
|
|
22854
23127
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
22855
23128
|
* License: MIT
|
|
22856
23129
|
*/
|