@angular/material 10.0.2 → 10.1.0
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/_theming.scss +9 -9
- package/autocomplete/index.metadata.json +1 -1
- package/autocomplete/testing/autocomplete-harness.d.ts +2 -0
- package/bundles/material-autocomplete-testing.umd.js +11 -0
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +2 -2
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +1 -1
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge-testing.umd.min.js +1 -1
- package/bundles/material-badge-testing.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
- package/bundles/material-button-testing.umd.js +11 -0
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.min.js +2 -2
- package/bundles/material-button-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +11 -0
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js +3 -3
- package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +12 -2
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +2 -2
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +7 -2
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +4 -4
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card-testing.umd.js +335 -0
- package/bundles/material-card-testing.umd.js.map +1 -0
- package/bundles/material-card-testing.umd.min.js +44 -0
- package/bundles/material-card-testing.umd.min.js.map +1 -0
- package/bundles/material-checkbox-testing.umd.js +11 -0
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js +3 -3
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +36 -12
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +4 -4
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core-testing.umd.min.js +1 -1
- package/bundles/material-core-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +11 -3
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +11 -11
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +1 -1
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +5 -5
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog-testing.umd.min.js +1 -1
- package/bundles/material-dialog-testing.umd.min.js.map +1 -1
- package/bundles/material-divider-testing.umd.min.js +1 -1
- package/bundles/material-divider-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion-testing.umd.js +11 -0
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.min.js +3 -3
- package/bundles/material-expansion-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing.umd.min.js +1 -1
- package/bundles/material-form-field-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +43 -7
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +5 -5
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.min.js +1 -1
- package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-input-testing.umd.js +23 -6
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.min.js +3 -3
- package/bundles/material-input-testing.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +27 -3
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +3 -3
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +33 -0
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +2 -2
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-menu-testing.umd.js +22 -0
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.min.js +2 -2
- package/bundles/material-menu-testing.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +13 -2
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +4 -4
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator-testing.umd.min.js +1 -1
- package/bundles/material-paginator-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +2 -2
- package/bundles/material-progress-spinner.umd.min.js +3 -3
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +11 -0
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.min.js +3 -3
- package/bundles/material-radio-testing.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +15 -5
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +2 -2
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select-testing.umd.js +11 -0
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -2
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +11 -3
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +4 -4
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.min.js +1 -1
- package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.js +11 -0
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js +2 -2
- package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-slider-testing.umd.js +11 -0
- package/bundles/material-slider-testing.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.min.js +2 -2
- package/bundles/material-slider-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +4 -2
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort-testing.umd.js +10 -10
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.min.js +3 -3
- package/bundles/material-sort-testing.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +25 -12
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +5 -5
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-table-testing.umd.min.js +1 -1
- package/bundles/material-table-testing.umd.min.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-testing.umd.min.js +1 -1
- package/bundles/material-tabs-testing.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +23 -4
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +5 -12
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +330 -0
- package/bundles/material-toolbar-testing.umd.js.map +1 -0
- package/bundles/material-toolbar-testing.umd.min.js +44 -0
- package/bundles/material-toolbar-testing.umd.min.js.map +1 -0
- package/bundles/material-tooltip-testing.umd.min.js +1 -1
- package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +14 -1
- 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.map +1 -1
- package/button/_button-base.scss +1 -1
- package/button/_button-theme.scss +8 -8
- package/button/index.metadata.json +1 -1
- package/button/testing/button-harness.d.ts +2 -0
- package/button-toggle/button-toggle.d.ts +6 -0
- package/button-toggle/index.metadata.json +1 -1
- package/button-toggle/testing/button-toggle-harness.d.ts +2 -0
- package/card/testing/card-harness-filters.d.ts +17 -0
- package/card/testing/card-harness.d.ts +36 -0
- package/card/testing/index.d.ts +8 -0
- package/card/testing/package.json +9 -0
- package/card/testing/public-api.d.ts +9 -0
- package/checkbox/testing/checkbox-harness.d.ts +2 -0
- package/chips/chip.d.ts +19 -1
- package/chips/index.metadata.json +1 -1
- package/core/focus-indicators/_focus-indicators.scss +1 -1
- package/core/index.metadata.json +1 -1
- package/core/option/optgroup.d.ts +7 -0
- package/datepicker/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete.js +3 -3
- package/esm2015/autocomplete/testing/autocomplete-harness.js +7 -1
- package/esm2015/button/button.js +8 -3
- package/esm2015/button/testing/button-harness.js +7 -1
- package/esm2015/button-toggle/button-toggle.js +12 -3
- package/esm2015/button-toggle/testing/button-toggle-harness.js +7 -1
- package/esm2015/card/testing/card-harness-filters.js +8 -0
- package/esm2015/card/testing/card-harness.js +52 -0
- package/esm2015/card/testing/index.js +9 -0
- package/esm2015/card/testing/public-api.js +10 -0
- package/esm2015/card/testing/testing.externs.js +0 -0
- package/esm2015/checkbox/testing/checkbox-harness.js +7 -1
- package/esm2015/chips/chip-list.js +3 -3
- package/esm2015/chips/chip.js +32 -11
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/option/optgroup.js +9 -2
- package/esm2015/core/option/option.js +3 -3
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input.js +4 -4
- package/esm2015/expansion/testing/expansion-harness.js +7 -1
- package/esm2015/form-field/error.js +10 -3
- package/esm2015/form-field/form-field.js +11 -10
- package/esm2015/form-field/hint.js +13 -3
- package/esm2015/form-field/prefix.js +9 -2
- package/esm2015/form-field/suffix.js +9 -2
- package/esm2015/grid-list/grid-list.js +2 -2
- package/esm2015/grid-list/tile-styler.js +1 -1
- package/esm2015/input/input.js +29 -5
- package/esm2015/input/testing/input-harness.js +13 -3
- package/esm2015/list/testing/action-list-harness.js +7 -1
- package/esm2015/list/testing/nav-list-harness.js +7 -1
- package/esm2015/list/testing/selection-list-harness.js +7 -1
- package/esm2015/menu/menu-content.js +10 -3
- package/esm2015/menu/menu-panel.js +1 -1
- package/esm2015/menu/menu-trigger.js +2 -1
- package/esm2015/menu/menu.js +5 -3
- package/esm2015/menu/testing/menu-harness.js +13 -1
- package/esm2015/progress-spinner/progress-spinner.js +2 -2
- package/esm2015/radio/radio.js +15 -6
- package/esm2015/radio/testing/radio-harness.js +7 -1
- package/esm2015/select/select.js +12 -5
- package/esm2015/select/testing/select-harness.js +7 -1
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +7 -1
- package/esm2015/slider/testing/slider-harness.js +7 -1
- package/esm2015/snack-bar/snack-bar.js +5 -3
- package/esm2015/sort/sort-header-intl.js +6 -2
- package/esm2015/sort/sort-header.js +18 -8
- package/esm2015/sort/testing/sort-header-harness.js +10 -7
- package/esm2015/tabs/index.js +4 -2
- package/esm2015/tabs/tab-content.js +12 -3
- package/esm2015/tabs/tab-label.js +9 -2
- package/esm2015/tabs/tab.js +6 -5
- package/esm2015/toolbar/testing/index.js +9 -0
- package/esm2015/toolbar/testing/public-api.js +10 -0
- package/esm2015/toolbar/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/toolbar-harness-filters.js +8 -0
- package/esm2015/toolbar/testing/toolbar-harness.js +47 -0
- package/esm2015/tooltip/tooltip.js +15 -2
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/expansion/testing/expansion-harness.d.ts +2 -0
- package/fesm2015/autocomplete/testing.js +6 -0
- package/fesm2015/autocomplete/testing.js.map +1 -1
- package/fesm2015/autocomplete.js +2 -2
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/button/testing.js +6 -0
- package/fesm2015/button/testing.js.map +1 -1
- package/fesm2015/button-toggle/testing.js +6 -0
- package/fesm2015/button-toggle/testing.js.map +1 -1
- package/fesm2015/button-toggle.js +12 -3
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/button.js +7 -2
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/card/testing.js +79 -0
- package/fesm2015/card/testing.js.map +1 -0
- package/fesm2015/checkbox/testing.js +6 -0
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/chips.js +33 -12
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +11 -4
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +1 -1
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/expansion/testing.js +6 -0
- package/fesm2015/expansion/testing.js.map +1 -1
- package/fesm2015/form-field.js +41 -9
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/grid-list.js.map +1 -1
- package/fesm2015/input/testing.js +12 -2
- package/fesm2015/input/testing.js.map +1 -1
- package/fesm2015/input.js +28 -4
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list/testing.js +18 -0
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/menu/testing.js +12 -0
- package/fesm2015/menu/testing.js.map +1 -1
- package/fesm2015/menu.js +14 -4
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/progress-spinner.js +2 -2
- package/fesm2015/radio/testing.js +6 -0
- package/fesm2015/radio/testing.js.map +1 -1
- package/fesm2015/radio.js +16 -7
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +6 -0
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +12 -5
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/slide-toggle/testing.js +6 -0
- package/fesm2015/slide-toggle/testing.js.map +1 -1
- package/fesm2015/slider/testing.js +6 -0
- package/fesm2015/slider/testing.js.map +1 -1
- package/fesm2015/snack-bar.js +4 -2
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/sort/testing.js +9 -6
- package/fesm2015/sort/testing.js.map +1 -1
- package/fesm2015/sort.js +22 -8
- package/fesm2015/sort.js.map +1 -1
- package/fesm2015/tabs.js +21 -4
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar/testing.js +74 -0
- package/fesm2015/toolbar/testing.js.map +1 -0
- package/fesm2015/tooltip.js +14 -1
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree.js.map +1 -1
- package/form-field/error.d.ts +7 -0
- package/form-field/hint.d.ts +10 -0
- package/form-field/index.metadata.json +1 -1
- package/form-field/prefix.d.ts +7 -0
- package/form-field/suffix.d.ts +7 -0
- package/grid-list/grid-list.d.ts +2 -1
- package/grid-list/index.metadata.json +1 -1
- package/grid-list/tile-styler.d.ts +10 -5
- package/input/index.metadata.json +1 -1
- package/input/input.d.ts +6 -2
- package/input/testing/input-harness.d.ts +2 -0
- package/list/testing/action-list-harness.d.ts +2 -0
- package/list/testing/nav-list-harness.d.ts +2 -0
- package/list/testing/selection-list-harness.d.ts +2 -0
- package/menu/index.metadata.json +1 -1
- package/menu/menu-content.d.ts +7 -1
- package/menu/menu-panel.d.ts +1 -0
- package/menu/menu.d.ts +4 -0
- package/menu/testing/menu-harness.d.ts +4 -0
- package/package.json +2 -2
- 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/progress-spinner/index.metadata.json +1 -1
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +6 -0
- package/radio/testing/radio-harness.d.ts +2 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +3 -3
- package/schematics/ng-generate/navigation/schema.json +5 -0
- package/select/index.metadata.json +1 -1
- package/select/select.d.ts +6 -0
- package/select/testing/select-harness.d.ts +2 -0
- package/slide-toggle/testing/slide-toggle-harness.d.ts +2 -0
- package/slider/testing/slider-harness.d.ts +2 -0
- package/sort/index.metadata.json +1 -1
- package/sort/sort-header-intl.d.ts +5 -1
- package/sort/sort-header.d.ts +3 -1
- package/sort/testing/sort-header-harness.d.ts +6 -2
- package/tabs/index.d.ts +3 -1
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-content.d.ts +7 -1
- package/tabs/tab-label.d.ts +7 -0
- package/toolbar/testing/index.d.ts +8 -0
- package/toolbar/testing/package.json +9 -0
- package/toolbar/testing/public-api.d.ts +9 -0
- package/toolbar/testing/toolbar-harness-filters.d.ts +13 -0
- package/toolbar/testing/toolbar-harness.d.ts +31 -0
- package/tooltip/index.metadata.json +1 -1
- package/tooltip/tooltip.d.ts +1 -0
- package/tree/data-source/flat-data-source.d.ts +4 -4
- package/tree/index.metadata.json +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var
|
|
15
|
+
***************************************************************************** */var _=function(e,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -27,14 +27,14 @@ var v={transformPanelWrap:f.trigger("transformPanelWrap",[f.transition("* => voi
|
|
|
27
27
|
*
|
|
28
28
|
* Use of this source code is governed by an MIT-style license that can be
|
|
29
29
|
* found in the LICENSE file at https://angular.io/license
|
|
30
|
-
*/function C(e){return function(){return e.scrollStrategies.reposition()}}var k=new i.InjectionToken("MAT_SELECT_CONFIG"),w={provide:O,deps:[t.Overlay],useFactory:C},M=function M(e,t){this.source=e,this.value=t},I=r.mixinDisableRipple(r.mixinTabIndex(r.mixinDisabled(r.mixinErrorState((function S(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}))))),E=function(){function e(){}return e.decorators=[{type:i.Directive,args:[{selector:"mat-select-trigger"}]}],e}(),
|
|
30
|
+
*/function C(e){return function(){return e.scrollStrategies.reposition()}}var k=new i.InjectionToken("MAT_SELECT_CONFIG"),w={provide:O,deps:[t.Overlay],useFactory:C},M=function M(e,t){this.source=e,this.value=t},I=r.mixinDisableRipple(r.mixinTabIndex(r.mixinDisabled(r.mixinErrorState((function S(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}))))),E=new i.InjectionToken("MatSelectTrigger"),x=function(){function e(){}return e.decorators=[{type:i.Directive,args:[{selector:"mat-select-trigger",providers:[{provide:E,useExisting:e}]}]}],e}(),T=function(e){function n(t,n,r,o,a,s,l,c,p,u,h,f,_,m){var v=e.call(this,a,o,l,c,u)||this;return v._viewportRuler=t,v._changeDetectorRef=n,v._ngZone=r,v._dir=s,v._parentFormField=p,v.ngControl=u,v._liveAnnouncer=_,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-"+b++,v._destroy=new d.Subject,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new d.Subject,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=d.defer((function(){var e=v.options;return e?e.changes.pipe(g.startWith(e),g.switchMap((function(){return d.merge.apply(void 0,y(e.map((function(e){return e.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(g.take(1),g.switchMap((function(){return v.optionSelectionChanges})))})),v.openedChange=new i.EventEmitter,v._openedStream=v.openedChange.pipe(g.filter((function(e){return e})),g.map((function(){}))),v._closedStream=v.openedChange.pipe(g.filter((function(e){return!e})),g.map((function(){}))),v.selectionChange=new i.EventEmitter,v.valueChange=new i.EventEmitter,v.ngControl&&(v.ngControl.valueAccessor=v),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(h)||0,v.id=v.id,m&&(null!=m.disableOptionCentering&&(v.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=m.typeaheadDebounceInterval)),v}return function f(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),Object.defineProperty(n.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(e){this._required=c.coerceBooleanProperty(e),this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"multiple",{get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw function t(){return Error("Cannot change `multiple` mode of select after initialization.")}();this._multiple=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw function t(){return Error("`compareWith` must be a function.")}
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright Google LLC All Rights Reserved.
|
|
34
34
|
*
|
|
35
35
|
* Use of this source code is governed by an MIT-style license that can be
|
|
36
36
|
* found in the LICENSE file at https://angular.io/license
|
|
37
|
-
*/();this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=c.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;this._selectionModel=new p.SelectionModel(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(g.distinctUntilChanged(),g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))},n.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(g.takeUntil(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(g.startWith(null),g.takeUntil(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))},n.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},n.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},n.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},n.prototype.toggle=function(){this.panelOpen?this.close():this.open()},n.prototype.open=function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(g.take(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")})))},n.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},n.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(n.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!1,configurable:!0}),n.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},n.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},n.prototype._handleClosedKeydown=function(e){var t=e.keyCode,n=t===u.DOWN_ARROW||t===u.UP_ARROW||t===u.LEFT_ARROW||t===u.RIGHT_ARROW,i=t===u.ENTER||t===u.SPACE,r=this._keyManager;if(!r.isTyping()&&i&&!u.hasModifierKey(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;t===u.HOME||t===u.END?(t===u.HOME?r.setFirstItemActive():r.setLastItemActive(),e.preventDefault()):r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},n.prototype._handleOpenKeydown=function(e){var t=this._keyManager,n=e.keyCode,i=n===u.DOWN_ARROW||n===u.UP_ARROW,r=t.isTyping();if(n===u.HOME||n===u.END)e.preventDefault(),n===u.HOME?t.setFirstItemActive():t.setLastItemActive();else if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==u.ENTER&&n!==u.SPACE||!t.activeItem||u.hasModifierKey(e))if(!r&&this._multiple&&n===u.A&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()},n.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},n.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},n.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(g.take(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))},n.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(n.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!1,configurable:!0}),n.prototype._initializeSelection=function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))},n.prototype._setSelectionByValue=function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw function n(){return Error("Value must be an array in multiple-selection mode.")}();this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(e);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},n.prototype._selectValue=function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(e){return i.isDevMode()&&console.warn(e),!1}}));return n&&this._selectionModel.select(n),n},n.prototype._initKeyManager=function(){var e=this;this._keyManager=new s.ActiveDescendantKeyManager(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))},n.prototype._resetOptions=function(){var e=this,t=d.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g.takeUntil(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),d.merge.apply(void 0,y(this.options.map((function(e){return e._stateChanges})))).pipe(g.takeUntil(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()},n.prototype._onSelect=function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()},n.prototype._sortValues=function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}},n.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new M(this,t)),this._changeDetectorRef.markForCheck()},n.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")},n.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},n.prototype._scrollActiveOptionIntoView=function(){var e=this._keyManager.activeItemIndex||0,t=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=r._getOptionScrollPosition(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},n.prototype.focus=function(e){this._elementRef.nativeElement.focus(e)},n.prototype._getOptionIndex=function(e){return this.options.reduce((function(t,n,i){return void 0!==t?t:e===n?i:void 0}),void 0)},n.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n,o=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);o+=r._countGroupLabelsBeforeOption(o,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(o,a,i),this._offsetY=this._calculateOverlayOffsetY(o,a,i),this._checkOverlayWithinViewport(i)},n.prototype._calculateOverlayScroll=function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)},n.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},n.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},n.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},n.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()},n.prototype._calculateOverlayOffsetY=function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))},n.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()},n.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},n.prototype._adjustPanelDown=function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},n.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},n.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},n.prototype._getItemHeight=function(){return 3*this._triggerFontSize},n.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},n.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(n.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!1,configurable:!0}),n.decorators=[{type:i.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'<div cdk-overlay-origin\n class="mat-select-trigger"\n aria-hidden="true"\n (click)="toggle()"\n #origin="cdkOverlayOrigin"\n #trigger>\n <div class="mat-select-value" [ngSwitch]="empty">\n <span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \'\\u00A0\'}}</span>\n <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">\n <span *ngSwitchDefault>{{triggerValue || \'\\u00A0\'}}</span>\n <ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>\n </span>\n </div>\n\n <div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayOpen]="panelOpen"\n [cdkConnectedOverlayPositions]="_positions"\n [cdkConnectedOverlayMinWidth]="_triggerRect?.width"\n [cdkConnectedOverlayOffsetY]="_offsetY"\n (backdropClick)="close()"\n (attach)="_onAttached()"\n (detach)="close()">\n <div class="mat-select-panel-wrap" [@transformPanelWrap]>\n <div\n #panel\n [attr.id]="id + \'-panel\'"\n class="mat-select-panel {{ _getPanelTheme() }}"\n [ngClass]="panelClass"\n [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'"\n (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"\n [style.transformOrigin]="_transformOrigin"\n [style.font-size.px]="_triggerFontSize"\n (keydown)="_handleKeydown($event)">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n',inputs:["disabled","disableRipple","tabIndex"],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"listbox","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_getAriaLabel()","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-owns]":"panelOpen ? _optionIds : null","[attr.aria-multiselectable]":"multiple","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required","[class.mat-select-empty]":"empty",class:"mat-select","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[v.transformPanelWrap,v.transformPanel],providers:[{provide:o.MatFormFieldControl,useExisting:n},{provide:r.MAT_OPTION_PARENT_COMPONENT,useExisting:n}],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"]}]}],n.ctorParameters=function(){return[{type:a.ViewportRuler},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:r.ErrorStateMatcher},{type:i.ElementRef},{type:l.Directionality,decorators:[{type:i.Optional}]},{type:h.NgForm,decorators:[{type:i.Optional}]},{type:h.FormGroupDirective,decorators:[{type:i.Optional}]},{type:o.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[o.MAT_FORM_FIELD]}]},{type:h.NgControl,decorators:[{type:i.Self},{type:i.Optional}]},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:i.Inject,args:[O]}]},{type:s.LiveAnnouncer},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[k]}]}]},n.propDecorators={trigger:[{type:i.ViewChild,args:["trigger"]}],panel:[{type:i.ViewChild,args:["panel"]}],overlayDir:[{type:i.ViewChild,args:[t.CdkConnectedOverlay]}],options:[{type:i.ContentChildren,args:[r.MatOption,{descendants:!0}]}],optionGroups:[{type:i.ContentChildren,args:[r.MatOptgroup,{descendants:!0}]}],panelClass:[{type:i.Input}],customTrigger:[{type:i.ContentChild,args:[E]}],placeholder:[{type:i.Input}],required:[{type:i.Input}],multiple:[{type:i.Input}],disableOptionCentering:[{type:i.Input}],compareWith:[{type:i.Input}],value:[{type:i.Input}],ariaLabel:[{type:i.Input,args:["aria-label"]}],ariaLabelledby:[{type:i.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:i.Input}],typeaheadDebounceInterval:[{type:i.Input}],sortComparator:[{type:i.Input}],id:[{type:i.Input}],openedChange:[{type:i.Output}],_openedStream:[{type:i.Output,args:["opened"]}],_closedStream:[{type:i.Output,args:["closed"]}],selectionChange:[{type:i.Output}],valueChange:[{type:i.Output}]},n}(I),D=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[n.CommonModule,t.OverlayModule,r.MatOptionModule,r.MatCommonModule],exports:[a.CdkScrollableModule,o.MatFormFieldModule,x,E,r.MatOptionModule,r.MatCommonModule],declarations:[x,E],providers:[w]}]}],e}();
|
|
37
|
+
*/();this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=c.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;this._selectionModel=new p.SelectionModel(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(g.distinctUntilChanged(),g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))},n.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(g.takeUntil(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(g.startWith(null),g.takeUntil(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))},n.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},n.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},n.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},n.prototype.toggle=function(){this.panelOpen?this.close():this.open()},n.prototype.open=function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(g.take(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")})))},n.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},n.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(n.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!1,configurable:!0}),n.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},n.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},n.prototype._handleClosedKeydown=function(e){var t=e.keyCode,n=t===u.DOWN_ARROW||t===u.UP_ARROW||t===u.LEFT_ARROW||t===u.RIGHT_ARROW,i=t===u.ENTER||t===u.SPACE,r=this._keyManager;if(!r.isTyping()&&i&&!u.hasModifierKey(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;t===u.HOME||t===u.END?(t===u.HOME?r.setFirstItemActive():r.setLastItemActive(),e.preventDefault()):r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},n.prototype._handleOpenKeydown=function(e){var t=this._keyManager,n=e.keyCode,i=n===u.DOWN_ARROW||n===u.UP_ARROW,r=t.isTyping();if(n===u.HOME||n===u.END)e.preventDefault(),n===u.HOME?t.setFirstItemActive():t.setLastItemActive();else if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==u.ENTER&&n!==u.SPACE||!t.activeItem||u.hasModifierKey(e))if(!r&&this._multiple&&n===u.A&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()},n.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},n.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},n.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(g.take(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))},n.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(n.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!1,configurable:!0}),n.prototype._initializeSelection=function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))},n.prototype._setSelectionByValue=function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw function n(){return Error("Value must be an array in multiple-selection mode.")}();this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(e);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},n.prototype._selectValue=function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(e){return i.isDevMode()&&console.warn(e),!1}}));return n&&this._selectionModel.select(n),n},n.prototype._initKeyManager=function(){var e=this;this._keyManager=new s.ActiveDescendantKeyManager(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))},n.prototype._resetOptions=function(){var e=this,t=d.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g.takeUntil(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),d.merge.apply(void 0,y(this.options.map((function(e){return e._stateChanges})))).pipe(g.takeUntil(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()},n.prototype._onSelect=function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()},n.prototype._sortValues=function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}},n.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new M(this,t)),this._changeDetectorRef.markForCheck()},n.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")},n.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},n.prototype._scrollActiveOptionIntoView=function(){var e=this._keyManager.activeItemIndex||0,t=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=r._getOptionScrollPosition(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},n.prototype.focus=function(e){this._elementRef.nativeElement.focus(e)},n.prototype._getOptionIndex=function(e){return this.options.reduce((function(t,n,i){return void 0!==t?t:e===n?i:void 0}),void 0)},n.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n,o=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);o+=r._countGroupLabelsBeforeOption(o,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(o,a,i),this._offsetY=this._calculateOverlayOffsetY(o,a,i),this._checkOverlayWithinViewport(i)},n.prototype._calculateOverlayScroll=function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)},n.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},n.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},n.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},n.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()},n.prototype._calculateOverlayOffsetY=function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))},n.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()},n.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},n.prototype._adjustPanelDown=function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},n.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},n.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},n.prototype._getItemHeight=function(){return 3*this._triggerFontSize},n.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},n.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(n.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!1,configurable:!0}),n.decorators=[{type:i.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'<div cdk-overlay-origin\n class="mat-select-trigger"\n aria-hidden="true"\n (click)="toggle()"\n #origin="cdkOverlayOrigin"\n #trigger>\n <div class="mat-select-value" [ngSwitch]="empty">\n <span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \'\\u00A0\'}}</span>\n <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">\n <span *ngSwitchDefault>{{triggerValue || \'\\u00A0\'}}</span>\n <ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>\n </span>\n </div>\n\n <div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayOpen]="panelOpen"\n [cdkConnectedOverlayPositions]="_positions"\n [cdkConnectedOverlayMinWidth]="_triggerRect?.width"\n [cdkConnectedOverlayOffsetY]="_offsetY"\n (backdropClick)="close()"\n (attach)="_onAttached()"\n (detach)="close()">\n <div class="mat-select-panel-wrap" [@transformPanelWrap]>\n <div\n #panel\n [attr.id]="id + \'-panel\'"\n class="mat-select-panel {{ _getPanelTheme() }}"\n [ngClass]="panelClass"\n [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'"\n (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"\n [style.transformOrigin]="_transformOrigin"\n [style.font-size.px]="_triggerFontSize"\n (keydown)="_handleKeydown($event)">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n',inputs:["disabled","disableRipple","tabIndex"],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"listbox","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_getAriaLabel()","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-owns]":"panelOpen ? _optionIds : null","[attr.aria-multiselectable]":"multiple","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required","[class.mat-select-empty]":"empty",class:"mat-select","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[v.transformPanelWrap,v.transformPanel],providers:[{provide:o.MatFormFieldControl,useExisting:n},{provide:r.MAT_OPTION_PARENT_COMPONENT,useExisting:n}],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"]}]}],n.ctorParameters=function(){return[{type:a.ViewportRuler},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:r.ErrorStateMatcher},{type:i.ElementRef},{type:l.Directionality,decorators:[{type:i.Optional}]},{type:h.NgForm,decorators:[{type:i.Optional}]},{type:h.FormGroupDirective,decorators:[{type:i.Optional}]},{type:o.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[o.MAT_FORM_FIELD]}]},{type:h.NgControl,decorators:[{type:i.Self},{type:i.Optional}]},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:i.Inject,args:[O]}]},{type:s.LiveAnnouncer},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[k]}]}]},n.propDecorators={trigger:[{type:i.ViewChild,args:["trigger"]}],panel:[{type:i.ViewChild,args:["panel"]}],overlayDir:[{type:i.ViewChild,args:[t.CdkConnectedOverlay]}],options:[{type:i.ContentChildren,args:[r.MatOption,{descendants:!0}]}],optionGroups:[{type:i.ContentChildren,args:[r.MAT_OPTGROUP,{descendants:!0}]}],panelClass:[{type:i.Input}],customTrigger:[{type:i.ContentChild,args:[E]}],placeholder:[{type:i.Input}],required:[{type:i.Input}],multiple:[{type:i.Input}],disableOptionCentering:[{type:i.Input}],compareWith:[{type:i.Input}],value:[{type:i.Input}],ariaLabel:[{type:i.Input,args:["aria-label"]}],ariaLabelledby:[{type:i.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:i.Input}],typeaheadDebounceInterval:[{type:i.Input}],sortComparator:[{type:i.Input}],id:[{type:i.Input}],openedChange:[{type:i.Output}],_openedStream:[{type:i.Output,args:["opened"]}],_closedStream:[{type:i.Output,args:["closed"]}],selectionChange:[{type:i.Output}],valueChange:[{type:i.Output}]},n}(I),D=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[n.CommonModule,t.OverlayModule,r.MatOptionModule,r.MatCommonModule],exports:[a.CdkScrollableModule,o.MatFormFieldModule,T,x,r.MatOptionModule,r.MatCommonModule],declarations:[T,x],providers:[w]}]}],e}();
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -42,4 +42,4 @@ var v={transformPanelWrap:f.trigger("transformPanelWrap",[f.transition("* => voi
|
|
|
42
42
|
* Use of this source code is governed by an MIT-style license that can be
|
|
43
43
|
* found in the LICENSE file at https://angular.io/license
|
|
44
44
|
*/
|
|
45
|
-
e.MAT_SELECT_CONFIG=k,e.MAT_SELECT_SCROLL_STRATEGY=O,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=w,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=C,e.MatSelect=
|
|
45
|
+
e.MAT_SELECT_CONFIG=k,e.MAT_SELECT_SCROLL_STRATEGY=O,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=w,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=C,e.MAT_SELECT_TRIGGER=E,e.MatSelect=T,e.MatSelectChange=M,e.MatSelectModule=D,e.MatSelectTrigger=x,e.SELECT_ITEM_HEIGHT_EM=3,e.SELECT_MULTIPLE_PANEL_PADDING_X=40,e.SELECT_PANEL_INDENT_PADDING_X=32,e.SELECT_PANEL_MAX_HEIGHT=256,e.SELECT_PANEL_PADDING_X=16,e.SELECT_PANEL_VIEWPORT_PADDING=8,e.matSelectAnimations=v,Object.defineProperty(e,"__esModule",{value:!0})}));
|