@ng-matero/extensions 12.7.0 → 13.0.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/README.md +2 -16
- package/_all-color.scss +1 -1
- package/_index.scss +1 -1
- package/_theming.scss +1 -1
- package/alert/_alert-theme.scss +2 -2
- package/alert/alert.component.d.ts +3 -0
- package/alert/alert.module.d.ts +6 -0
- package/alert/mtxAlert.d.ts +1 -0
- package/alert/package.json +5 -6
- package/button/button-loading.directive.d.ts +3 -0
- package/button/button.module.d.ts +8 -0
- package/button/mtxButton.d.ts +1 -0
- package/button/package.json +5 -6
- package/checkbox-group/checkbox-group.component.d.ts +3 -0
- package/checkbox-group/checkbox-group.module.d.ts +9 -0
- package/checkbox-group/mtxCheckboxGroup.d.ts +1 -0
- package/checkbox-group/package.json +5 -6
- package/colorpicker/_colorpicker-theme.scss +2 -2
- package/colorpicker/colorpicker-input.d.ts +3 -0
- package/colorpicker/colorpicker-module.d.ts +13 -0
- package/colorpicker/colorpicker-toggle.d.ts +5 -0
- package/colorpicker/colorpicker.d.ts +6 -1
- package/colorpicker/mtxColorpicker.d.ts +1 -0
- package/colorpicker/package.json +5 -6
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
- package/column-resize/column-resize-directives/column-resize.d.ts +3 -0
- package/column-resize/column-resize-module.d.ts +6 -7
- package/column-resize/column-resize-notifier.d.ts +5 -7
- package/column-resize/column-resize.d.ts +3 -0
- package/column-resize/column-size-store.d.ts +3 -7
- package/column-resize/event-dispatcher.d.ts +3 -0
- package/column-resize/mtxColumnResize.d.ts +1 -0
- package/column-resize/overlay-handle.d.ts +3 -0
- package/column-resize/package.json +5 -6
- package/column-resize/resizable.d.ts +3 -0
- package/column-resize/resize-strategy.d.ts +7 -0
- package/core/datetime/datetime.module.d.ts +8 -0
- package/core/datetime/native-datetime-adapter.d.ts +3 -0
- package/core/density/private/_compatibility.scss +74 -0
- package/core/mtxCore.d.ts +1 -0
- package/core/package.json +5 -6
- package/{pipes/public-api.d.ts → core/pipes/index.d.ts} +0 -0
- package/core/pipes/pipes.module.d.ts +8 -0
- package/{pipes → core/pipes}/to-observable.pipe.d.ts +3 -0
- package/core/public-api.d.ts +1 -0
- package/core/style/_elevation.scss +197 -0
- package/core/style/_private.scss +41 -0
- package/core/style/_variables.scss +44 -0
- package/core/style/_vendor-prefixes.scss +60 -0
- package/core/theming/_palette.scss +746 -0
- package/core/theming/_theming.scss +430 -0
- package/core/typography/_typography-utils.scss +101 -0
- package/core/typography/_typography.scss +273 -0
- package/datetimepicker/_datetimepicker-theme.scss +5 -5
- package/datetimepicker/calendar-body.d.ts +3 -0
- package/datetimepicker/calendar-body.scss +5 -4
- package/datetimepicker/calendar.d.ts +4 -1
- package/datetimepicker/clock.d.ts +3 -0
- package/datetimepicker/datetimepicker-input.d.ts +3 -0
- package/datetimepicker/datetimepicker-module.d.ts +18 -0
- package/datetimepicker/datetimepicker-toggle.d.ts +5 -0
- package/datetimepicker/datetimepicker-types.d.ts +1 -0
- package/datetimepicker/datetimepicker.d.ts +7 -2
- package/datetimepicker/month-view.d.ts +4 -1
- package/datetimepicker/mtxDatetimepicker.d.ts +1 -0
- package/datetimepicker/multi-year-view.d.ts +4 -1
- package/datetimepicker/package.json +5 -6
- package/datetimepicker/public-api.d.ts +1 -0
- package/datetimepicker/year-view.d.ts +4 -1
- package/dialog/dialog.component.d.ts +3 -0
- package/dialog/dialog.d.ts +3 -0
- package/dialog/dialog.module.d.ts +10 -0
- package/dialog/mtxDialog.d.ts +1 -0
- package/dialog/package.json +5 -6
- package/esm2020/alert/alert.component.mjs +52 -0
- package/esm2020/alert/alert.module.mjs +18 -0
- package/{esm2015/alert/mtxAlert.js → esm2020/alert/mtxAlert.mjs} +0 -0
- package/{esm2015/alert/public-api.js → esm2020/alert/public-api.mjs} +0 -0
- package/esm2020/button/button-loading.directive.mjs +79 -0
- package/esm2020/button/button.module.mjs +20 -0
- package/{esm2015/button/mtxButton.js → esm2020/button/mtxButton.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/esm2020/checkbox-group/checkbox-group.component.mjs +234 -0
- package/{esm2015/checkbox-group/checkbox-group.interface.js → esm2020/checkbox-group/checkbox-group.interface.mjs} +0 -0
- package/esm2020/checkbox-group/checkbox-group.module.mjs +21 -0
- package/{esm2015/checkbox-group/mtxCheckboxGroup.js → esm2020/checkbox-group/mtxCheckboxGroup.mjs} +0 -0
- package/{esm2015/checkbox-group/public-api.js → esm2020/checkbox-group/public-api.mjs} +0 -0
- package/{esm2015/colorpicker/colorpicker-animations.js → esm2020/colorpicker/colorpicker-animations.mjs} +0 -0
- package/esm2020/colorpicker/colorpicker-input.mjs +228 -0
- package/esm2020/colorpicker/colorpicker-module.mjs +65 -0
- package/esm2020/colorpicker/colorpicker-toggle.mjs +90 -0
- package/esm2020/colorpicker/colorpicker.mjs +363 -0
- package/{esm2015/colorpicker/mtxColorpicker.js → esm2020/colorpicker/mtxColorpicker.mjs} +0 -0
- package/{esm2015/colorpicker/public-api.js → esm2020/colorpicker/public-api.mjs} +0 -0
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +45 -0
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +45 -0
- package/{esm2015/column-resize/column-resize-directives/constants.js → esm2020/column-resize/column-resize-directives/constants.mjs} +0 -0
- package/esm2020/column-resize/column-resize-module.mjs +28 -0
- package/esm2020/column-resize/column-resize-notifier.mjs +47 -0
- package/esm2020/column-resize/column-resize.mjs +82 -0
- package/esm2020/column-resize/column-size-store.mjs +20 -0
- package/esm2020/column-resize/event-dispatcher.mjs +67 -0
- package/{esm2015/column-resize/mtxColumnResize.js → esm2020/column-resize/mtxColumnResize.mjs} +0 -0
- package/esm2020/column-resize/overlay-handle.mjs +146 -0
- package/{esm2015/column-resize/polyfill.js → esm2020/column-resize/polyfill.mjs} +0 -0
- package/{esm2015/column-resize/public-api.js → esm2020/column-resize/public-api.mjs} +0 -0
- package/esm2020/column-resize/resizable.mjs +199 -0
- package/{esm2015/column-resize/resize-ref.js → esm2020/column-resize/resize-ref.mjs} +0 -0
- package/esm2020/column-resize/resize-strategy.mjs +232 -0
- package/{esm2015/column-resize/selectors.js → esm2020/column-resize/selectors.mjs} +0 -0
- package/{esm2015/core/datetime/datetime-adapter.js → esm2020/core/datetime/datetime-adapter.mjs} +0 -0
- package/{esm2015/core/datetime/datetime-formats.js → esm2020/core/datetime/datetime-formats.mjs} +0 -0
- package/esm2020/core/datetime/datetime.module.mjs +42 -0
- package/{esm2015/core/datetime/index.js → esm2020/core/datetime/index.mjs} +0 -0
- package/esm2020/core/datetime/native-datetime-adapter.mjs +138 -0
- package/{esm2015/core/datetime/native-datetime-formats.js → esm2020/core/datetime/native-datetime-formats.mjs} +0 -0
- package/{esm2015/core/mtxCore.js → esm2020/core/mtxCore.mjs} +0 -0
- package/esm2020/core/pipes/index.mjs +3 -0
- package/esm2020/core/pipes/pipes.module.mjs +18 -0
- package/esm2020/core/pipes/to-observable.pipe.mjs +15 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +2 -1
- package/esm2020/datetimepicker/calendar-body.mjs +78 -0
- package/esm2020/datetimepicker/calendar.mjs +618 -0
- package/esm2020/datetimepicker/clock.mjs +277 -0
- package/{esm2015/datetimepicker/datetimepicker-animations.js → esm2020/datetimepicker/datetimepicker-animations.mjs} +0 -0
- package/{esm2015/datetimepicker/datetimepicker-errors.js → esm2020/datetimepicker/datetimepicker-errors.mjs} +0 -0
- package/{esm2015/datetimepicker/datetimepicker-filtertype.js → esm2020/datetimepicker/datetimepicker-filtertype.mjs} +0 -0
- package/esm2020/datetimepicker/datetimepicker-input.mjs +344 -0
- package/esm2020/datetimepicker/datetimepicker-module.mjs +75 -0
- package/esm2020/datetimepicker/datetimepicker-toggle.mjs +94 -0
- package/esm2020/datetimepicker/datetimepicker-types.mjs +2 -0
- package/esm2020/datetimepicker/datetimepicker.mjs +492 -0
- package/esm2020/datetimepicker/month-view.mjs +148 -0
- package/{esm2015/datetimepicker/mtxDatetimepicker.js → esm2020/datetimepicker/mtxDatetimepicker.mjs} +0 -0
- package/esm2020/datetimepicker/multi-year-view.mjs +214 -0
- package/{esm2015/datetimepicker/public-api.js → esm2020/datetimepicker/public-api.mjs} +2 -1
- package/esm2020/datetimepicker/year-view.mjs +138 -0
- package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
- package/esm2020/dialog/dialog.component.mjs +33 -0
- package/esm2020/dialog/dialog.mjs +74 -0
- package/esm2020/dialog/dialog.module.mjs +24 -0
- package/{esm2015/dialog/mtxDialog.js → esm2020/dialog/mtxDialog.mjs} +0 -0
- package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
- package/esm2020/form-group/form-group.component.mjs +37 -0
- package/esm2020/form-group/form-group.module.mjs +18 -0
- package/{esm2015/form-group/mtxFormGroup.js → esm2020/form-group/mtxFormGroup.mjs} +0 -0
- package/{esm2015/form-group/public-api.js → esm2020/form-group/public-api.mjs} +0 -0
- package/esm2020/grid/cell.component.mjs +108 -0
- package/esm2020/grid/column-menu.component.mjs +95 -0
- package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +37 -0
- package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +37 -0
- package/{esm2015/grid/column-resize/column-resize-directives/common.js → esm2020/grid/column-resize/column-resize-directives/common.mjs} +0 -0
- package/esm2020/grid/column-resize/column-resize-module.mjs +42 -0
- package/esm2020/grid/column-resize/overlay-handle.mjs +60 -0
- package/{esm2015/grid/column-resize/resizable-directives/common.js → esm2020/grid/column-resize/resizable-directives/common.mjs} +0 -0
- package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +62 -0
- package/esm2020/grid/column-resize/resize-strategy.mjs +42 -0
- package/esm2020/grid/expansion-toggle.directive.mjs +64 -0
- package/esm2020/grid/grid.component.mjs +556 -0
- package/{esm2015/grid/grid.interface.js → esm2020/grid/grid.interface.mjs} +0 -0
- package/esm2020/grid/grid.module.mjs +117 -0
- package/esm2020/grid/grid.service.mjs +44 -0
- package/{esm2015/grid/mtxGrid.js → esm2020/grid/mtxGrid.mjs} +0 -0
- package/esm2020/grid/public-api.mjs +16 -0
- package/esm2020/loader/loader.component.mjs +63 -0
- package/esm2020/loader/loader.module.mjs +20 -0
- package/{esm2015/loader/mtxLoader.js → esm2020/loader/mtxLoader.mjs} +0 -0
- package/{esm2015/loader/public-api.js → esm2020/loader/public-api.mjs} +0 -0
- package/esm2020/ng-matero-extensions.mjs +5 -0
- package/{esm2015/popover/mtxPopover.js → esm2020/popover/mtxPopover.mjs} +0 -0
- package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
- package/{esm2015/popover/popover-errors.js → esm2020/popover/popover-errors.mjs} +0 -0
- package/{esm2015/popover/popover-interfaces.js → esm2020/popover/popover-interfaces.mjs} +0 -0
- package/esm2020/popover/popover-module.mjs +22 -0
- package/esm2020/popover/popover-target.mjs +17 -0
- package/esm2020/popover/popover-trigger.mjs +441 -0
- package/{esm2015/popover/popover-types.js → esm2020/popover/popover-types.mjs} +0 -0
- package/esm2020/popover/popover.mjs +334 -0
- package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
- package/{esm2015/progress/mtxProgress.js → esm2020/progress/mtxProgress.mjs} +0 -0
- package/esm2020/progress/progress.component.mjs +55 -0
- package/esm2020/progress/progress.module.mjs +18 -0
- package/{esm2015/progress/public-api.js → esm2020/progress/public-api.mjs} +0 -0
- package/esm2020/public-api.mjs +5 -0
- package/{esm2015/select/mtxSelect.js → esm2020/select/mtxSelect.mjs} +0 -0
- package/{esm2015/select/option.component.js → esm2020/select/option.component.mjs} +18 -26
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/esm2020/select/select.component.mjs +459 -0
- package/esm2020/select/select.module.mjs +74 -0
- package/esm2020/select/templates.directive.mjs +124 -0
- package/{esm2015/slider/mtxSlider.js → esm2020/slider/mtxSlider.mjs} +0 -0
- package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
- package/esm2020/slider/slider-module.mjs +19 -0
- package/esm2020/slider/slider.mjs +1115 -0
- package/{esm2015/split/interface.js → esm2020/split/interface.mjs} +0 -0
- package/{esm2015/split/mtxSplit.js → esm2020/split/mtxSplit.mjs} +0 -0
- package/{esm2015/split/public-api.js → esm2020/split/public-api.mjs} +0 -0
- package/esm2020/split/split-pane.directive.mjs +149 -0
- package/esm2020/split/split.component.mjs +619 -0
- package/esm2020/split/split.module.mjs +19 -0
- package/{esm2015/split/utils.js → esm2020/split/utils.mjs} +0 -0
- package/{esm2015/text3d/mtxText3d.js → esm2020/text3d/mtxText3d.mjs} +0 -0
- package/{esm2015/text3d/public-api.js → esm2020/text3d/public-api.mjs} +0 -0
- package/esm2020/text3d/text3d.component.mjs +45 -0
- package/esm2020/text3d/text3d.module.mjs +18 -0
- package/{esm2015/tooltip/mtxTooltip.js → esm2020/tooltip/mtxTooltip.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip-module.mjs +23 -0
- package/esm2020/tooltip/tooltip.mjs +674 -0
- package/fesm2015/mtxAlert.mjs +74 -0
- package/fesm2015/mtxAlert.mjs.map +1 -0
- package/fesm2015/mtxButton.mjs +102 -0
- package/fesm2015/mtxButton.mjs.map +1 -0
- package/fesm2015/mtxCheckboxGroup.mjs +257 -0
- package/fesm2015/mtxCheckboxGroup.mjs.map +1 -0
- package/fesm2015/mtxColorpicker.mjs +754 -0
- package/fesm2015/mtxColorpicker.mjs.map +1 -0
- package/fesm2015/{mtxColumnResize.js → mtxColumnResize.mjs} +108 -145
- package/fesm2015/mtxColumnResize.mjs.map +1 -0
- package/fesm2015/mtxCore.mjs +362 -0
- package/fesm2015/mtxCore.mjs.map +1 -0
- package/fesm2015/mtxDatetimepicker.mjs +2474 -0
- package/fesm2015/mtxDatetimepicker.mjs.map +1 -0
- package/fesm2015/mtxDialog.mjs +128 -0
- package/fesm2015/mtxDialog.mjs.map +1 -0
- package/fesm2015/mtxFormGroup.mjs +59 -0
- package/fesm2015/mtxFormGroup.mjs.map +1 -0
- package/fesm2015/mtxGrid.mjs +1271 -0
- package/fesm2015/mtxGrid.mjs.map +1 -0
- package/fesm2015/mtxLoader.mjs +87 -0
- package/fesm2015/mtxLoader.mjs.map +1 -0
- package/fesm2015/mtxPopover.mjs +865 -0
- package/fesm2015/mtxPopover.mjs.map +1 -0
- package/fesm2015/mtxProgress.mjs +77 -0
- package/fesm2015/mtxProgress.mjs.map +1 -0
- package/fesm2015/mtxSelect.mjs +713 -0
- package/fesm2015/mtxSelect.mjs.map +1 -0
- package/fesm2015/mtxSlider.mjs +1139 -0
- package/fesm2015/mtxSlider.mjs.map +1 -0
- package/fesm2015/{mtxSplit.js → mtxSplit.mjs} +75 -85
- package/fesm2015/mtxSplit.mjs.map +1 -0
- package/fesm2015/mtxText3d.mjs +67 -0
- package/fesm2015/mtxText3d.mjs.map +1 -0
- package/fesm2015/{mtxTooltip.js → mtxTooltip.mjs} +83 -86
- package/fesm2015/mtxTooltip.mjs.map +1 -0
- package/fesm2015/ng-matero-extensions.mjs +9 -0
- package/fesm2015/ng-matero-extensions.mjs.map +1 -0
- package/fesm2020/mtxAlert.mjs +74 -0
- package/fesm2020/mtxAlert.mjs.map +1 -0
- package/fesm2020/mtxButton.mjs +102 -0
- package/fesm2020/mtxButton.mjs.map +1 -0
- package/fesm2020/mtxCheckboxGroup.mjs +257 -0
- package/fesm2020/mtxCheckboxGroup.mjs.map +1 -0
- package/{fesm2015/mtxColorpicker.js → fesm2020/mtxColorpicker.mjs} +420 -413
- package/fesm2020/mtxColorpicker.mjs.map +1 -0
- package/fesm2020/mtxColumnResize.mjs +953 -0
- package/fesm2020/mtxColumnResize.mjs.map +1 -0
- package/{fesm2015/mtxCore.js → fesm2020/mtxCore.mjs} +75 -42
- package/fesm2020/mtxCore.mjs.map +1 -0
- package/{fesm2015/mtxDatetimepicker.js → fesm2020/mtxDatetimepicker.mjs} +1300 -1306
- package/fesm2020/mtxDatetimepicker.mjs.map +1 -0
- package/fesm2020/mtxDialog.mjs +129 -0
- package/fesm2020/mtxDialog.mjs.map +1 -0
- package/fesm2020/mtxFormGroup.mjs +59 -0
- package/fesm2020/mtxFormGroup.mjs.map +1 -0
- package/fesm2020/mtxGrid.mjs +1259 -0
- package/fesm2020/mtxGrid.mjs.map +1 -0
- package/fesm2020/mtxLoader.mjs +87 -0
- package/fesm2020/mtxLoader.mjs.map +1 -0
- package/{fesm2015/mtxPopover.js → fesm2020/mtxPopover.mjs} +120 -111
- package/fesm2020/mtxPopover.mjs.map +1 -0
- package/fesm2020/mtxProgress.mjs +77 -0
- package/fesm2020/mtxProgress.mjs.map +1 -0
- package/fesm2020/mtxSelect.mjs +710 -0
- package/fesm2020/mtxSelect.mjs.map +1 -0
- package/{fesm2015/mtxSlider.js → fesm2020/mtxSlider.mjs} +97 -94
- package/fesm2020/mtxSlider.mjs.map +1 -0
- package/fesm2020/mtxSplit.mjs +1007 -0
- package/fesm2020/mtxSplit.mjs.map +1 -0
- package/fesm2020/mtxText3d.mjs +67 -0
- package/fesm2020/mtxText3d.mjs.map +1 -0
- package/fesm2020/mtxTooltip.mjs +718 -0
- package/fesm2020/mtxTooltip.mjs.map +1 -0
- package/fesm2020/ng-matero-extensions.mjs +9 -0
- package/fesm2020/ng-matero-extensions.mjs.map +1 -0
- package/form-group/_form-group-theme.scss +1 -1
- package/form-group/form-group.component.d.ts +3 -0
- package/form-group/form-group.module.d.ts +6 -0
- package/form-group/mtxFormGroup.d.ts +1 -0
- package/form-group/package.json +5 -6
- package/grid/_grid-theme.scss +1 -1
- package/grid/cell.component.d.ts +3 -0
- package/grid/column-menu.component.d.ts +3 -0
- package/grid/column-menu.component.scss +1 -1
- package/grid/column-resize/_column-resize.scss +3 -3
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +3 -0
- package/grid/column-resize/column-resize-module.d.ts +12 -7
- package/grid/column-resize/overlay-handle.d.ts +3 -0
- package/grid/column-resize/resizable-directives/resizable.d.ts +3 -0
- package/grid/column-resize/resize-strategy.d.ts +3 -0
- package/grid/expansion-toggle.directive.d.ts +3 -0
- package/grid/grid.component.d.ts +20 -1
- package/grid/grid.module.d.ts +26 -0
- package/grid/grid.service.d.ts +3 -0
- package/grid/mtxGrid.d.ts +1 -0
- package/grid/package.json +5 -6
- package/grid/public-api.d.ts +0 -1
- package/loader/_loader-theme.scss +1 -1
- package/loader/loader.component.d.ts +3 -0
- package/loader/loader.module.d.ts +8 -0
- package/loader/mtxLoader.d.ts +1 -0
- package/loader/package.json +5 -6
- package/{extensions.d.ts → ng-matero-extensions.d.ts} +1 -0
- package/package.json +178 -15
- package/popover/_popover-theme.scss +1 -1
- package/popover/mtxPopover.d.ts +1 -0
- package/popover/package.json +5 -6
- package/popover/popover-module.d.ts +10 -0
- package/popover/popover-target.d.ts +3 -0
- package/popover/popover-trigger.d.ts +3 -0
- package/popover/popover.d.ts +3 -0
- package/progress/_progress-theme.scss +2 -2
- package/progress/mtxProgress.d.ts +1 -0
- package/progress/package.json +5 -6
- package/progress/progress.component.d.ts +3 -0
- package/progress/progress.module.d.ts +6 -0
- package/public-api.d.ts +2 -19
- package/select/_select-theme.scss +1 -1
- package/select/mtxSelect.d.ts +1 -0
- package/select/option.component.d.ts +3 -0
- package/select/package.json +5 -6
- package/select/select.component.d.ts +3 -0
- package/select/select.component.scss +1 -1
- package/select/select.module.d.ts +10 -0
- package/select/templates.directive.d.ts +23 -0
- package/slider/_slider-theme.scss +4 -4
- package/slider/mtxSlider.d.ts +1 -0
- package/slider/package.json +5 -6
- package/slider/slider-module.d.ts +7 -0
- package/slider/slider.d.ts +4 -1
- package/slider/slider.scss +7 -7
- package/split/_split-theme.scss +1 -1
- package/split/mtxSplit.d.ts +1 -0
- package/split/package.json +5 -6
- package/split/split-pane.directive.d.ts +3 -0
- package/split/split.component.d.ts +4 -1
- package/split/split.module.d.ts +7 -0
- package/text3d/_text3d-theme.scss +2 -2
- package/text3d/mtxText3d.d.ts +1 -0
- package/text3d/package.json +5 -6
- package/text3d/text3d.component.d.ts +3 -0
- package/text3d/text3d.module.d.ts +6 -0
- package/tooltip/_tooltip-theme.scss +3 -3
- package/tooltip/mtxTooltip.d.ts +1 -0
- package/tooltip/package.json +5 -6
- package/tooltip/tooltip-module.d.ts +10 -0
- package/tooltip/tooltip.d.ts +5 -0
- package/tooltip/tooltip.scss +1 -1
- package/alert/mtxAlert.metadata.json +0 -1
- package/bundles/extensions.umd.js +0 -164
- package/bundles/extensions.umd.js.map +0 -1
- package/bundles/mtxAlert.umd.js +0 -101
- package/bundles/mtxAlert.umd.js.map +0 -1
- package/bundles/mtxButton.umd.js +0 -119
- package/bundles/mtxButton.umd.js.map +0 -1
- package/bundles/mtxCheckboxGroup.umd.js +0 -284
- package/bundles/mtxCheckboxGroup.umd.js.map +0 -1
- package/bundles/mtxColorpicker.umd.js +0 -1123
- package/bundles/mtxColorpicker.umd.js.map +0 -1
- package/bundles/mtxColumnResize.umd.js +0 -1339
- package/bundles/mtxColumnResize.umd.js.map +0 -1
- package/bundles/mtxCore.umd.js +0 -670
- package/bundles/mtxCore.umd.js.map +0 -1
- package/bundles/mtxDatetimepicker.umd.js +0 -3045
- package/bundles/mtxDatetimepicker.umd.js.map +0 -1
- package/bundles/mtxDialog.umd.js +0 -158
- package/bundles/mtxDialog.umd.js.map +0 -1
- package/bundles/mtxFormGroup.umd.js +0 -73
- package/bundles/mtxFormGroup.umd.js.map +0 -1
- package/bundles/mtxGrid.umd.js +0 -1581
- package/bundles/mtxGrid.umd.js.map +0 -1
- package/bundles/mtxLoader.umd.js +0 -107
- package/bundles/mtxLoader.umd.js.map +0 -1
- package/bundles/mtxPipes.umd.js +0 -44
- package/bundles/mtxPipes.umd.js.map +0 -1
- package/bundles/mtxPopover.umd.js +0 -1260
- package/bundles/mtxPopover.umd.js.map +0 -1
- package/bundles/mtxProgress.umd.js +0 -92
- package/bundles/mtxProgress.umd.js.map +0 -1
- package/bundles/mtxSelect.umd.js +0 -1097
- package/bundles/mtxSelect.umd.js.map +0 -1
- package/bundles/mtxSlider.umd.js +0 -1551
- package/bundles/mtxSlider.umd.js.map +0 -1
- package/bundles/mtxSplit.umd.js +0 -1431
- package/bundles/mtxSplit.umd.js.map +0 -1
- package/bundles/mtxText3d.umd.js +0 -84
- package/bundles/mtxText3d.umd.js.map +0 -1
- package/bundles/mtxTooltip.umd.js +0 -1083
- package/bundles/mtxTooltip.umd.js.map +0 -1
- package/button/mtxButton.metadata.json +0 -1
- package/checkbox-group/mtxCheckboxGroup.metadata.json +0 -1
- package/colorpicker/mtxColorpicker.metadata.json +0 -1
- package/column-resize/mtxColumnResize.metadata.json +0 -1
- package/core/mtxCore.metadata.json +0 -1
- package/datetimepicker/mtxDatetimepicker.metadata.json +0 -1
- package/dialog/mtxDialog.metadata.json +0 -1
- package/esm2015/alert/alert.component.js +0 -63
- package/esm2015/alert/alert.module.js +0 -14
- package/esm2015/button/button-loading.directive.js +0 -89
- package/esm2015/button/button.module.js +0 -16
- package/esm2015/checkbox-group/checkbox-group.component.js +0 -235
- package/esm2015/checkbox-group/checkbox-group.module.js +0 -17
- package/esm2015/colorpicker/colorpicker-input.js +0 -228
- package/esm2015/colorpicker/colorpicker-module.js +0 -41
- package/esm2015/colorpicker/colorpicker-toggle.js +0 -97
- package/esm2015/colorpicker/colorpicker.js +0 -372
- package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +0 -54
- package/esm2015/column-resize/column-resize-directives/column-resize.js +0 -54
- package/esm2015/column-resize/column-resize-module.js +0 -24
- package/esm2015/column-resize/column-resize-notifier.js +0 -54
- package/esm2015/column-resize/column-resize.js +0 -80
- package/esm2015/column-resize/column-size-store.js +0 -18
- package/esm2015/column-resize/event-dispatcher.js +0 -75
- package/esm2015/column-resize/overlay-handle.js +0 -144
- package/esm2015/column-resize/resizable.js +0 -197
- package/esm2015/column-resize/resize-strategy.js +0 -245
- package/esm2015/core/datetime/datetime.module.js +0 -32
- package/esm2015/core/datetime/native-datetime-adapter.js +0 -144
- package/esm2015/datetimepicker/calendar-body.js +0 -76
- package/esm2015/datetimepicker/calendar.js +0 -614
- package/esm2015/datetimepicker/clock.js +0 -283
- package/esm2015/datetimepicker/datetimepicker-input.js +0 -336
- package/esm2015/datetimepicker/datetimepicker-module.js +0 -52
- package/esm2015/datetimepicker/datetimepicker-toggle.js +0 -103
- package/esm2015/datetimepicker/datetimepicker.js +0 -490
- package/esm2015/datetimepicker/month-view.js +0 -150
- package/esm2015/datetimepicker/multi-year-view.js +0 -215
- package/esm2015/datetimepicker/year-view.js +0 -141
- package/esm2015/dialog/dialog.component.js +0 -40
- package/esm2015/dialog/dialog.js +0 -81
- package/esm2015/dialog/dialog.module.js +0 -21
- package/esm2015/extensions-experimental.module.js +0 -13
- package/esm2015/extensions.js +0 -5
- package/esm2015/extensions.module.js +0 -40
- package/esm2015/form-group/form-group.component.js +0 -40
- package/esm2015/form-group/form-group.module.js +0 -14
- package/esm2015/grid/cell-selection.directive.js +0 -62
- package/esm2015/grid/cell.component.js +0 -115
- package/esm2015/grid/column-menu.component.js +0 -72
- package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +0 -47
- package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +0 -47
- package/esm2015/grid/column-resize/column-resize-module.js +0 -36
- package/esm2015/grid/column-resize/overlay-handle.js +0 -68
- package/esm2015/grid/column-resize/resizable-directives/resizable.js +0 -75
- package/esm2015/grid/column-resize/resize-strategy.js +0 -45
- package/esm2015/grid/expansion-toggle.directive.js +0 -62
- package/esm2015/grid/grid.component.js +0 -418
- package/esm2015/grid/grid.module.js +0 -69
- package/esm2015/grid/grid.service.js +0 -50
- package/esm2015/grid/public-api.js +0 -17
- package/esm2015/loader/loader.component.js +0 -69
- package/esm2015/loader/loader.module.js +0 -16
- package/esm2015/pipes/mtxPipes.js +0 -5
- package/esm2015/pipes/pipes.module.js +0 -14
- package/esm2015/pipes/public-api.js +0 -3
- package/esm2015/pipes/to-observable.pipe.js +0 -12
- package/esm2015/popover/popover-module.js +0 -18
- package/esm2015/popover/popover-target.js +0 -24
- package/esm2015/popover/popover-trigger.js +0 -434
- package/esm2015/popover/popover.js +0 -326
- package/esm2015/progress/progress.component.js +0 -54
- package/esm2015/progress/progress.module.js +0 -14
- package/esm2015/public-api.js +0 -23
- package/esm2015/select/select.component.js +0 -380
- package/esm2015/select/select.module.js +0 -46
- package/esm2015/select/templates.directive.js +0 -211
- package/esm2015/slider/slider-module.js +0 -15
- package/esm2015/slider/slider.js +0 -1115
- package/esm2015/split/split-pane.directive.js +0 -156
- package/esm2015/split/split.component.js +0 -624
- package/esm2015/split/split.module.js +0 -15
- package/esm2015/text3d/text3d.component.js +0 -45
- package/esm2015/text3d/text3d.module.js +0 -14
- package/esm2015/tooltip/tooltip-module.js +0 -20
- package/esm2015/tooltip/tooltip.js +0 -683
- package/extensions-experimental.module.d.ts +0 -2
- package/extensions.metadata.json +0 -1
- package/extensions.module.d.ts +0 -2
- package/fesm2015/extensions.js +0 -80
- package/fesm2015/extensions.js.map +0 -1
- package/fesm2015/mtxAlert.js +0 -82
- package/fesm2015/mtxAlert.js.map +0 -1
- package/fesm2015/mtxButton.js +0 -108
- package/fesm2015/mtxButton.js.map +0 -1
- package/fesm2015/mtxCheckboxGroup.js +0 -255
- package/fesm2015/mtxCheckboxGroup.js.map +0 -1
- package/fesm2015/mtxColorpicker.js.map +0 -1
- package/fesm2015/mtxColumnResize.js.map +0 -1
- package/fesm2015/mtxCore.js.map +0 -1
- package/fesm2015/mtxDatetimepicker.js.map +0 -1
- package/fesm2015/mtxDialog.js +0 -141
- package/fesm2015/mtxDialog.js.map +0 -1
- package/fesm2015/mtxFormGroup.js +0 -59
- package/fesm2015/mtxFormGroup.js.map +0 -1
- package/fesm2015/mtxGrid.js +0 -1186
- package/fesm2015/mtxGrid.js.map +0 -1
- package/fesm2015/mtxLoader.js +0 -90
- package/fesm2015/mtxLoader.js.map +0 -1
- package/fesm2015/mtxPipes.js +0 -31
- package/fesm2015/mtxPipes.js.map +0 -1
- package/fesm2015/mtxPopover.js.map +0 -1
- package/fesm2015/mtxProgress.js +0 -73
- package/fesm2015/mtxProgress.js.map +0 -1
- package/fesm2015/mtxSelect.js +0 -700
- package/fesm2015/mtxSelect.js.map +0 -1
- package/fesm2015/mtxSlider.js.map +0 -1
- package/fesm2015/mtxSplit.js.map +0 -1
- package/fesm2015/mtxText3d.js +0 -64
- package/fesm2015/mtxText3d.js.map +0 -1
- package/fesm2015/mtxTooltip.js.map +0 -1
- package/form-group/mtxFormGroup.metadata.json +0 -1
- package/grid/cell-selection.directive.d.ts +0 -17
- package/grid/mtxGrid.metadata.json +0 -1
- package/loader/mtxLoader.metadata.json +0 -1
- package/pipes/mtxPipes.d.ts +0 -4
- package/pipes/mtxPipes.metadata.json +0 -1
- package/pipes/package.json +0 -11
- package/pipes/pipes.module.d.ts +0 -2
- package/popover/mtxPopover.metadata.json +0 -1
- package/progress/mtxProgress.metadata.json +0 -1
- package/select/mtxSelect.metadata.json +0 -1
- package/slider/mtxSlider.metadata.json +0 -1
- package/split/mtxSplit.metadata.json +0 -1
- package/text3d/mtxText3d.metadata.json +0 -1
- package/tooltip/mtxTooltip.metadata.json +0 -1
package/bundles/mtxSelect.umd.js
DELETED
|
@@ -1,1097 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ng-select/ng-select'), require('@angular/material/form-field'), require('@angular/cdk/coercion'), require('@angular/cdk/a11y'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/select', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ng-select/ng-select', '@angular/material/form-field', '@angular/cdk/coercion', '@angular/cdk/a11y', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-matero"] = global["ng-matero"] || {}, global["ng-matero"].extensions = global["ng-matero"].extensions || {}, global["ng-matero"].extensions.select = {}), global.ng.core, global.ng.common, global.ng.forms, global["ng-select"], global.ng.material.formField, global.ng.cdk.coercion, global.ng.cdk.a11y, global.rxjs, global.rxjs.operators));
|
|
5
|
-
})(this, (function (exports, core, common, forms, ngSelect, formField, coercion, a11y, rxjs, operators) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from, pack) {
|
|
234
|
-
if (pack || arguments.length === 2)
|
|
235
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
-
if (ar || !(i in from)) {
|
|
237
|
-
if (!ar)
|
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
-
ar[i] = from[i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return to.concat(ar || from);
|
|
243
|
-
}
|
|
244
|
-
function __await(v) {
|
|
245
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
246
|
-
}
|
|
247
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
248
|
-
if (!Symbol.asyncIterator)
|
|
249
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
250
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
251
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
252
|
-
function verb(n) { if (g[n])
|
|
253
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
254
|
-
function resume(n, v) { try {
|
|
255
|
-
step(g[n](v));
|
|
256
|
-
}
|
|
257
|
-
catch (e) {
|
|
258
|
-
settle(q[0][3], e);
|
|
259
|
-
} }
|
|
260
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
261
|
-
function fulfill(value) { resume("next", value); }
|
|
262
|
-
function reject(value) { resume("throw", value); }
|
|
263
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
264
|
-
resume(q[0][0], q[0][1]); }
|
|
265
|
-
}
|
|
266
|
-
function __asyncDelegator(o) {
|
|
267
|
-
var i, p;
|
|
268
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
270
|
-
}
|
|
271
|
-
function __asyncValues(o) {
|
|
272
|
-
if (!Symbol.asyncIterator)
|
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
-
var m = o[Symbol.asyncIterator], i;
|
|
275
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
276
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
277
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
278
|
-
}
|
|
279
|
-
function __makeTemplateObject(cooked, raw) {
|
|
280
|
-
if (Object.defineProperty) {
|
|
281
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
cooked.raw = raw;
|
|
285
|
-
}
|
|
286
|
-
return cooked;
|
|
287
|
-
}
|
|
288
|
-
;
|
|
289
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
290
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
291
|
-
}) : function (o, v) {
|
|
292
|
-
o["default"] = v;
|
|
293
|
-
};
|
|
294
|
-
function __importStar(mod) {
|
|
295
|
-
if (mod && mod.__esModule)
|
|
296
|
-
return mod;
|
|
297
|
-
var result = {};
|
|
298
|
-
if (mod != null)
|
|
299
|
-
for (var k in mod)
|
|
300
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
301
|
-
__createBinding(result, mod, k);
|
|
302
|
-
__setModuleDefault(result, mod);
|
|
303
|
-
return result;
|
|
304
|
-
}
|
|
305
|
-
function __importDefault(mod) {
|
|
306
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
-
if (kind === "a" && !f)
|
|
310
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
314
|
-
}
|
|
315
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
-
if (kind === "m")
|
|
317
|
-
throw new TypeError("Private method is not writable");
|
|
318
|
-
if (kind === "a" && !f)
|
|
319
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
var MtxSelectOptionTemplateDirective = /** @class */ (function () {
|
|
326
|
-
function MtxSelectOptionTemplateDirective(template) {
|
|
327
|
-
this.template = template;
|
|
328
|
-
}
|
|
329
|
-
return MtxSelectOptionTemplateDirective;
|
|
330
|
-
}());
|
|
331
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
332
|
-
MtxSelectOptionTemplateDirective.decorators = [
|
|
333
|
-
{ type: core.Directive, args: [{ selector: '[ng-option-tmp]' },] }
|
|
334
|
-
];
|
|
335
|
-
/**
|
|
336
|
-
* @type {function(): !Array<(null|{
|
|
337
|
-
* type: ?,
|
|
338
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
339
|
-
* })>}
|
|
340
|
-
* @nocollapse
|
|
341
|
-
*/
|
|
342
|
-
MtxSelectOptionTemplateDirective.ctorParameters = function () { return [
|
|
343
|
-
{ type: core.TemplateRef }
|
|
344
|
-
]; };
|
|
345
|
-
var MtxSelectOptgroupTemplateDirective = /** @class */ (function () {
|
|
346
|
-
function MtxSelectOptgroupTemplateDirective(template) {
|
|
347
|
-
this.template = template;
|
|
348
|
-
}
|
|
349
|
-
return MtxSelectOptgroupTemplateDirective;
|
|
350
|
-
}());
|
|
351
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
352
|
-
MtxSelectOptgroupTemplateDirective.decorators = [
|
|
353
|
-
{ type: core.Directive, args: [{ selector: '[ng-optgroup-tmp]' },] }
|
|
354
|
-
];
|
|
355
|
-
/**
|
|
356
|
-
* @type {function(): !Array<(null|{
|
|
357
|
-
* type: ?,
|
|
358
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
359
|
-
* })>}
|
|
360
|
-
* @nocollapse
|
|
361
|
-
*/
|
|
362
|
-
MtxSelectOptgroupTemplateDirective.ctorParameters = function () { return [
|
|
363
|
-
{ type: core.TemplateRef }
|
|
364
|
-
]; };
|
|
365
|
-
var MtxSelectLabelTemplateDirective = /** @class */ (function () {
|
|
366
|
-
function MtxSelectLabelTemplateDirective(template) {
|
|
367
|
-
this.template = template;
|
|
368
|
-
}
|
|
369
|
-
return MtxSelectLabelTemplateDirective;
|
|
370
|
-
}());
|
|
371
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
372
|
-
MtxSelectLabelTemplateDirective.decorators = [
|
|
373
|
-
{ type: core.Directive, args: [{ selector: '[ng-label-tmp]' },] }
|
|
374
|
-
];
|
|
375
|
-
/**
|
|
376
|
-
* @type {function(): !Array<(null|{
|
|
377
|
-
* type: ?,
|
|
378
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
379
|
-
* })>}
|
|
380
|
-
* @nocollapse
|
|
381
|
-
*/
|
|
382
|
-
MtxSelectLabelTemplateDirective.ctorParameters = function () { return [
|
|
383
|
-
{ type: core.TemplateRef }
|
|
384
|
-
]; };
|
|
385
|
-
var MtxSelectMultiLabelTemplateDirective = /** @class */ (function () {
|
|
386
|
-
function MtxSelectMultiLabelTemplateDirective(template) {
|
|
387
|
-
this.template = template;
|
|
388
|
-
}
|
|
389
|
-
return MtxSelectMultiLabelTemplateDirective;
|
|
390
|
-
}());
|
|
391
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
392
|
-
MtxSelectMultiLabelTemplateDirective.decorators = [
|
|
393
|
-
{ type: core.Directive, args: [{ selector: '[ng-multi-label-tmp]' },] }
|
|
394
|
-
];
|
|
395
|
-
/**
|
|
396
|
-
* @type {function(): !Array<(null|{
|
|
397
|
-
* type: ?,
|
|
398
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
399
|
-
* })>}
|
|
400
|
-
* @nocollapse
|
|
401
|
-
*/
|
|
402
|
-
MtxSelectMultiLabelTemplateDirective.ctorParameters = function () { return [
|
|
403
|
-
{ type: core.TemplateRef }
|
|
404
|
-
]; };
|
|
405
|
-
var MtxSelectHeaderTemplateDirective = /** @class */ (function () {
|
|
406
|
-
function MtxSelectHeaderTemplateDirective(template) {
|
|
407
|
-
this.template = template;
|
|
408
|
-
}
|
|
409
|
-
return MtxSelectHeaderTemplateDirective;
|
|
410
|
-
}());
|
|
411
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
412
|
-
MtxSelectHeaderTemplateDirective.decorators = [
|
|
413
|
-
{ type: core.Directive, args: [{ selector: '[ng-header-tmp]' },] }
|
|
414
|
-
];
|
|
415
|
-
/**
|
|
416
|
-
* @type {function(): !Array<(null|{
|
|
417
|
-
* type: ?,
|
|
418
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
419
|
-
* })>}
|
|
420
|
-
* @nocollapse
|
|
421
|
-
*/
|
|
422
|
-
MtxSelectHeaderTemplateDirective.ctorParameters = function () { return [
|
|
423
|
-
{ type: core.TemplateRef }
|
|
424
|
-
]; };
|
|
425
|
-
var MtxSelectFooterTemplateDirective = /** @class */ (function () {
|
|
426
|
-
function MtxSelectFooterTemplateDirective(template) {
|
|
427
|
-
this.template = template;
|
|
428
|
-
}
|
|
429
|
-
return MtxSelectFooterTemplateDirective;
|
|
430
|
-
}());
|
|
431
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
432
|
-
MtxSelectFooterTemplateDirective.decorators = [
|
|
433
|
-
{ type: core.Directive, args: [{ selector: '[ng-footer-tmp]' },] }
|
|
434
|
-
];
|
|
435
|
-
/**
|
|
436
|
-
* @type {function(): !Array<(null|{
|
|
437
|
-
* type: ?,
|
|
438
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
439
|
-
* })>}
|
|
440
|
-
* @nocollapse
|
|
441
|
-
*/
|
|
442
|
-
MtxSelectFooterTemplateDirective.ctorParameters = function () { return [
|
|
443
|
-
{ type: core.TemplateRef }
|
|
444
|
-
]; };
|
|
445
|
-
var MtxSelectNotFoundTemplateDirective = /** @class */ (function () {
|
|
446
|
-
function MtxSelectNotFoundTemplateDirective(template) {
|
|
447
|
-
this.template = template;
|
|
448
|
-
}
|
|
449
|
-
return MtxSelectNotFoundTemplateDirective;
|
|
450
|
-
}());
|
|
451
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
452
|
-
MtxSelectNotFoundTemplateDirective.decorators = [
|
|
453
|
-
{ type: core.Directive, args: [{ selector: '[ng-notfound-tmp]' },] }
|
|
454
|
-
];
|
|
455
|
-
/**
|
|
456
|
-
* @type {function(): !Array<(null|{
|
|
457
|
-
* type: ?,
|
|
458
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
459
|
-
* })>}
|
|
460
|
-
* @nocollapse
|
|
461
|
-
*/
|
|
462
|
-
MtxSelectNotFoundTemplateDirective.ctorParameters = function () { return [
|
|
463
|
-
{ type: core.TemplateRef }
|
|
464
|
-
]; };
|
|
465
|
-
var MtxSelectTypeToSearchTemplateDirective = /** @class */ (function () {
|
|
466
|
-
function MtxSelectTypeToSearchTemplateDirective(template) {
|
|
467
|
-
this.template = template;
|
|
468
|
-
}
|
|
469
|
-
return MtxSelectTypeToSearchTemplateDirective;
|
|
470
|
-
}());
|
|
471
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
472
|
-
MtxSelectTypeToSearchTemplateDirective.decorators = [
|
|
473
|
-
{ type: core.Directive, args: [{ selector: '[ng-typetosearch-tmp]' },] }
|
|
474
|
-
];
|
|
475
|
-
/**
|
|
476
|
-
* @type {function(): !Array<(null|{
|
|
477
|
-
* type: ?,
|
|
478
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
479
|
-
* })>}
|
|
480
|
-
* @nocollapse
|
|
481
|
-
*/
|
|
482
|
-
MtxSelectTypeToSearchTemplateDirective.ctorParameters = function () { return [
|
|
483
|
-
{ type: core.TemplateRef }
|
|
484
|
-
]; };
|
|
485
|
-
var MtxSelectLoadingTextTemplateDirective = /** @class */ (function () {
|
|
486
|
-
function MtxSelectLoadingTextTemplateDirective(template) {
|
|
487
|
-
this.template = template;
|
|
488
|
-
}
|
|
489
|
-
return MtxSelectLoadingTextTemplateDirective;
|
|
490
|
-
}());
|
|
491
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
492
|
-
MtxSelectLoadingTextTemplateDirective.decorators = [
|
|
493
|
-
{ type: core.Directive, args: [{ selector: '[ng-loadingtext-tmp]' },] }
|
|
494
|
-
];
|
|
495
|
-
/**
|
|
496
|
-
* @type {function(): !Array<(null|{
|
|
497
|
-
* type: ?,
|
|
498
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
499
|
-
* })>}
|
|
500
|
-
* @nocollapse
|
|
501
|
-
*/
|
|
502
|
-
MtxSelectLoadingTextTemplateDirective.ctorParameters = function () { return [
|
|
503
|
-
{ type: core.TemplateRef }
|
|
504
|
-
]; };
|
|
505
|
-
var MtxSelectTagTemplateDirective = /** @class */ (function () {
|
|
506
|
-
function MtxSelectTagTemplateDirective(template) {
|
|
507
|
-
this.template = template;
|
|
508
|
-
}
|
|
509
|
-
return MtxSelectTagTemplateDirective;
|
|
510
|
-
}());
|
|
511
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
512
|
-
MtxSelectTagTemplateDirective.decorators = [
|
|
513
|
-
{ type: core.Directive, args: [{ selector: '[ng-tag-tmp]' },] }
|
|
514
|
-
];
|
|
515
|
-
/**
|
|
516
|
-
* @type {function(): !Array<(null|{
|
|
517
|
-
* type: ?,
|
|
518
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
519
|
-
* })>}
|
|
520
|
-
* @nocollapse
|
|
521
|
-
*/
|
|
522
|
-
MtxSelectTagTemplateDirective.ctorParameters = function () { return [
|
|
523
|
-
{ type: core.TemplateRef }
|
|
524
|
-
]; };
|
|
525
|
-
var MtxSelectLoadingSpinnerTemplateDirective = /** @class */ (function () {
|
|
526
|
-
function MtxSelectLoadingSpinnerTemplateDirective(template) {
|
|
527
|
-
this.template = template;
|
|
528
|
-
}
|
|
529
|
-
return MtxSelectLoadingSpinnerTemplateDirective;
|
|
530
|
-
}());
|
|
531
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
532
|
-
MtxSelectLoadingSpinnerTemplateDirective.decorators = [
|
|
533
|
-
{ type: core.Directive, args: [{ selector: '[ng-loadingspinner-tmp]' },] }
|
|
534
|
-
];
|
|
535
|
-
/**
|
|
536
|
-
* @type {function(): !Array<(null|{
|
|
537
|
-
* type: ?,
|
|
538
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
539
|
-
* })>}
|
|
540
|
-
* @nocollapse
|
|
541
|
-
*/
|
|
542
|
-
MtxSelectLoadingSpinnerTemplateDirective.ctorParameters = function () { return [
|
|
543
|
-
{ type: core.TemplateRef }
|
|
544
|
-
]; };
|
|
545
|
-
|
|
546
|
-
var MtxOptionComponent = /** @class */ (function () {
|
|
547
|
-
function MtxOptionComponent(elementRef) {
|
|
548
|
-
this.elementRef = elementRef;
|
|
549
|
-
this.stateChange$ = new rxjs.Subject();
|
|
550
|
-
this._disabled = false;
|
|
551
|
-
}
|
|
552
|
-
Object.defineProperty(MtxOptionComponent.prototype, "disabled", {
|
|
553
|
-
get: function () {
|
|
554
|
-
return this._disabled;
|
|
555
|
-
},
|
|
556
|
-
set: function (value) {
|
|
557
|
-
this._disabled = this._isDisabled(value);
|
|
558
|
-
},
|
|
559
|
-
enumerable: false,
|
|
560
|
-
configurable: true
|
|
561
|
-
});
|
|
562
|
-
Object.defineProperty(MtxOptionComponent.prototype, "label", {
|
|
563
|
-
get: function () {
|
|
564
|
-
return (this.elementRef.nativeElement.textContent || '').trim();
|
|
565
|
-
},
|
|
566
|
-
enumerable: false,
|
|
567
|
-
configurable: true
|
|
568
|
-
});
|
|
569
|
-
MtxOptionComponent.prototype.ngOnChanges = function (changes) {
|
|
570
|
-
if (changes.disabled) {
|
|
571
|
-
this.stateChange$.next({
|
|
572
|
-
value: this.value,
|
|
573
|
-
disabled: this._disabled,
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
MtxOptionComponent.prototype.ngAfterViewChecked = function () {
|
|
578
|
-
if (this.label !== this._previousLabel) {
|
|
579
|
-
this._previousLabel = this.label;
|
|
580
|
-
this.stateChange$.next({
|
|
581
|
-
value: this.value,
|
|
582
|
-
disabled: this._disabled,
|
|
583
|
-
label: this.elementRef.nativeElement.innerHTML,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
MtxOptionComponent.prototype.ngOnDestroy = function () {
|
|
588
|
-
this.stateChange$.complete();
|
|
589
|
-
};
|
|
590
|
-
MtxOptionComponent.prototype._isDisabled = function (value) {
|
|
591
|
-
return value != null && "" + value !== 'false';
|
|
592
|
-
};
|
|
593
|
-
return MtxOptionComponent;
|
|
594
|
-
}());
|
|
595
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
596
|
-
MtxOptionComponent.decorators = [
|
|
597
|
-
{ type: core.Component, args: [{
|
|
598
|
-
selector: 'mtx-option',
|
|
599
|
-
exportAs: 'mtxOption',
|
|
600
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
601
|
-
template: "<ng-content></ng-content>"
|
|
602
|
-
},] }
|
|
603
|
-
];
|
|
604
|
-
/**
|
|
605
|
-
* @type {function(): !Array<(null|{
|
|
606
|
-
* type: ?,
|
|
607
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
608
|
-
* })>}
|
|
609
|
-
* @nocollapse
|
|
610
|
-
*/
|
|
611
|
-
MtxOptionComponent.ctorParameters = function () { return [
|
|
612
|
-
{ type: core.ElementRef }
|
|
613
|
-
]; };
|
|
614
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
615
|
-
MtxOptionComponent.propDecorators = {
|
|
616
|
-
value: [{ type: core.Input }],
|
|
617
|
-
disabled: [{ type: core.Input }]
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
function isDefined(value) {
|
|
621
|
-
return value !== undefined && value !== null;
|
|
622
|
-
}
|
|
623
|
-
var nextUniqueId = 0;
|
|
624
|
-
var MtxSelectComponent = /** @class */ (function () {
|
|
625
|
-
function MtxSelectComponent(_focusMonitor, _elementRef, _changeDetectorRef, ngControl) {
|
|
626
|
-
var _this = this;
|
|
627
|
-
this._focusMonitor = _focusMonitor;
|
|
628
|
-
this._elementRef = _elementRef;
|
|
629
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
630
|
-
this.ngControl = ngControl;
|
|
631
|
-
/** MtxSelect options */
|
|
632
|
-
this.addTag = false;
|
|
633
|
-
this.addTagText = 'Add item';
|
|
634
|
-
this.appearance = 'underline';
|
|
635
|
-
this.closeOnSelect = true;
|
|
636
|
-
this.clearAllText = 'Clear all';
|
|
637
|
-
this.clearable = true;
|
|
638
|
-
this.clearOnBackspace = true;
|
|
639
|
-
this.dropdownPosition = 'auto';
|
|
640
|
-
this.selectableGroup = false;
|
|
641
|
-
this.selectableGroupAsModel = true;
|
|
642
|
-
this.hideSelected = false;
|
|
643
|
-
this.loading = false;
|
|
644
|
-
this.loadingText = 'Loading...';
|
|
645
|
-
this.labelForId = null;
|
|
646
|
-
this.markFirst = true;
|
|
647
|
-
this.multiple = false;
|
|
648
|
-
this.notFoundText = 'No items found';
|
|
649
|
-
this.searchable = true;
|
|
650
|
-
this.readonly = false;
|
|
651
|
-
this.searchFn = null;
|
|
652
|
-
this.searchWhileComposing = true;
|
|
653
|
-
this.selectOnTab = false;
|
|
654
|
-
this.trackByFn = null;
|
|
655
|
-
this.inputAttrs = {};
|
|
656
|
-
this.minTermLength = 0;
|
|
657
|
-
this.editableSearchTerm = false;
|
|
658
|
-
this.keyDownFn = function (_) { return true; };
|
|
659
|
-
this.virtualScroll = false;
|
|
660
|
-
this.typeToSearchText = 'Type to search';
|
|
661
|
-
this.blurEvent = new core.EventEmitter();
|
|
662
|
-
this.focusEvent = new core.EventEmitter();
|
|
663
|
-
this.changeEvent = new core.EventEmitter();
|
|
664
|
-
this.openEvent = new core.EventEmitter();
|
|
665
|
-
this.closeEvent = new core.EventEmitter();
|
|
666
|
-
this.searchEvent = new core.EventEmitter();
|
|
667
|
-
this.clearEvent = new core.EventEmitter();
|
|
668
|
-
this.addEvent = new core.EventEmitter();
|
|
669
|
-
this.removeEvent = new core.EventEmitter();
|
|
670
|
-
this.scroll = new core.EventEmitter();
|
|
671
|
-
this.scrollToEnd = new core.EventEmitter();
|
|
672
|
-
this._items = [];
|
|
673
|
-
this._destroy$ = new rxjs.Subject();
|
|
674
|
-
this._value = null;
|
|
675
|
-
/** Implemented as part of MatFormFieldControl. */
|
|
676
|
-
this.stateChanges = new rxjs.Subject();
|
|
677
|
-
/** Unique id for this input. */
|
|
678
|
-
this._uid = "mtx-select-" + nextUniqueId++;
|
|
679
|
-
this._focused = false;
|
|
680
|
-
this._required = false;
|
|
681
|
-
this._disabled = false;
|
|
682
|
-
this.errorState = false;
|
|
683
|
-
/** A name for this control that can be used by `mat-form-field`. */
|
|
684
|
-
this.controlType = 'mtx-select';
|
|
685
|
-
/** `View -> model callback called when value changes` */
|
|
686
|
-
this._onChange = function () { };
|
|
687
|
-
/** `View -> model callback called when select has been touched` */
|
|
688
|
-
this._onTouched = function () { };
|
|
689
|
-
_focusMonitor.monitor(_elementRef, true).subscribe(function (origin) {
|
|
690
|
-
if (_this._focused && !origin) {
|
|
691
|
-
_this._onTouched();
|
|
692
|
-
}
|
|
693
|
-
_this._focused = !!origin;
|
|
694
|
-
_this.stateChanges.next();
|
|
695
|
-
});
|
|
696
|
-
if (this.ngControl != null) {
|
|
697
|
-
this.ngControl.valueAccessor = this;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
Object.defineProperty(MtxSelectComponent.prototype, "clearSearchOnAdd", {
|
|
701
|
-
get: function () {
|
|
702
|
-
return isDefined(this._clearSearchOnAdd) ? this._clearSearchOnAdd : this.closeOnSelect;
|
|
703
|
-
},
|
|
704
|
-
set: function (value) {
|
|
705
|
-
this._clearSearchOnAdd = value;
|
|
706
|
-
},
|
|
707
|
-
enumerable: false,
|
|
708
|
-
configurable: true
|
|
709
|
-
});
|
|
710
|
-
Object.defineProperty(MtxSelectComponent.prototype, "items", {
|
|
711
|
-
get: function () {
|
|
712
|
-
return this._items;
|
|
713
|
-
},
|
|
714
|
-
set: function (value) {
|
|
715
|
-
this._itemsAreUsed = true;
|
|
716
|
-
this._items = value;
|
|
717
|
-
},
|
|
718
|
-
enumerable: false,
|
|
719
|
-
configurable: true
|
|
720
|
-
});
|
|
721
|
-
Object.defineProperty(MtxSelectComponent.prototype, "value", {
|
|
722
|
-
/** Value of the select control. */
|
|
723
|
-
get: function () {
|
|
724
|
-
return this._value;
|
|
725
|
-
},
|
|
726
|
-
set: function (newValue) {
|
|
727
|
-
this._value = newValue;
|
|
728
|
-
this._onChange(newValue);
|
|
729
|
-
this.stateChanges.next();
|
|
730
|
-
},
|
|
731
|
-
enumerable: false,
|
|
732
|
-
configurable: true
|
|
733
|
-
});
|
|
734
|
-
Object.defineProperty(MtxSelectComponent.prototype, "id", {
|
|
735
|
-
/** Unique id of the element. */
|
|
736
|
-
get: function () {
|
|
737
|
-
return this._id;
|
|
738
|
-
},
|
|
739
|
-
set: function (value) {
|
|
740
|
-
this._id = value || this._uid;
|
|
741
|
-
this.stateChanges.next();
|
|
742
|
-
},
|
|
743
|
-
enumerable: false,
|
|
744
|
-
configurable: true
|
|
745
|
-
});
|
|
746
|
-
Object.defineProperty(MtxSelectComponent.prototype, "placeholder", {
|
|
747
|
-
/** Placeholder to be shown if value is empty. */
|
|
748
|
-
get: function () {
|
|
749
|
-
return this._placeholder;
|
|
750
|
-
},
|
|
751
|
-
set: function (value) {
|
|
752
|
-
this._placeholder = value;
|
|
753
|
-
this.stateChanges.next();
|
|
754
|
-
},
|
|
755
|
-
enumerable: false,
|
|
756
|
-
configurable: true
|
|
757
|
-
});
|
|
758
|
-
Object.defineProperty(MtxSelectComponent.prototype, "focused", {
|
|
759
|
-
/** Whether the input is focused. */
|
|
760
|
-
get: function () {
|
|
761
|
-
return this._focused;
|
|
762
|
-
},
|
|
763
|
-
enumerable: false,
|
|
764
|
-
configurable: true
|
|
765
|
-
});
|
|
766
|
-
Object.defineProperty(MtxSelectComponent.prototype, "empty", {
|
|
767
|
-
get: function () {
|
|
768
|
-
return this.value == null || (Array.isArray(this.value) && this.value.length === 0);
|
|
769
|
-
},
|
|
770
|
-
enumerable: false,
|
|
771
|
-
configurable: true
|
|
772
|
-
});
|
|
773
|
-
Object.defineProperty(MtxSelectComponent.prototype, "shouldLabelFloat", {
|
|
774
|
-
get: function () {
|
|
775
|
-
return this.focused || !this.empty;
|
|
776
|
-
},
|
|
777
|
-
enumerable: false,
|
|
778
|
-
configurable: true
|
|
779
|
-
});
|
|
780
|
-
Object.defineProperty(MtxSelectComponent.prototype, "required", {
|
|
781
|
-
get: function () {
|
|
782
|
-
return this._required;
|
|
783
|
-
},
|
|
784
|
-
set: function (value) {
|
|
785
|
-
this._required = coercion.coerceBooleanProperty(value);
|
|
786
|
-
this.stateChanges.next();
|
|
787
|
-
},
|
|
788
|
-
enumerable: false,
|
|
789
|
-
configurable: true
|
|
790
|
-
});
|
|
791
|
-
Object.defineProperty(MtxSelectComponent.prototype, "disabled", {
|
|
792
|
-
get: function () {
|
|
793
|
-
return this._disabled;
|
|
794
|
-
},
|
|
795
|
-
set: function (value) {
|
|
796
|
-
this._disabled = coercion.coerceBooleanProperty(value);
|
|
797
|
-
this.readonly = this._disabled;
|
|
798
|
-
this.stateChanges.next();
|
|
799
|
-
},
|
|
800
|
-
enumerable: false,
|
|
801
|
-
configurable: true
|
|
802
|
-
});
|
|
803
|
-
MtxSelectComponent.prototype.ngOnInit = function () {
|
|
804
|
-
// Fix compareWith warning of undefined value
|
|
805
|
-
// https://github.com/ng-select/ng-select/issues/1537
|
|
806
|
-
if (this.compareWith) {
|
|
807
|
-
this.ngSelect.compareWith = this.compareWith;
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
MtxSelectComponent.prototype.ngAfterViewInit = function () {
|
|
811
|
-
if (!this._itemsAreUsed) {
|
|
812
|
-
this._setItemsFromMtxOptions();
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
MtxSelectComponent.prototype.ngDoCheck = function () {
|
|
816
|
-
if (this.ngControl) {
|
|
817
|
-
this.errorState = (this.ngControl.invalid && this.ngControl.touched);
|
|
818
|
-
this.stateChanges.next();
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
MtxSelectComponent.prototype.ngOnDestroy = function () {
|
|
822
|
-
this._destroy$.next();
|
|
823
|
-
this._destroy$.complete();
|
|
824
|
-
this.stateChanges.complete();
|
|
825
|
-
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
826
|
-
};
|
|
827
|
-
/** Implemented as part of MatFormFieldControl. */
|
|
828
|
-
MtxSelectComponent.prototype.setDescribedByIds = function (ids) {
|
|
829
|
-
this._ariaDescribedby = ids.join(' ');
|
|
830
|
-
};
|
|
831
|
-
/**
|
|
832
|
-
* Disables the select. Part of the ControlValueAccessor interface required
|
|
833
|
-
* to integrate with Angular's core forms API.
|
|
834
|
-
*
|
|
835
|
-
* @param isDisabled Sets whether the component is disabled.
|
|
836
|
-
*/
|
|
837
|
-
MtxSelectComponent.prototype.setDisabledState = function (isDisabled) {
|
|
838
|
-
this.disabled = isDisabled;
|
|
839
|
-
};
|
|
840
|
-
/** Implemented as part of MatFormFieldControl. */
|
|
841
|
-
MtxSelectComponent.prototype.onContainerClick = function (event) {
|
|
842
|
-
var _a;
|
|
843
|
-
var target = event.target;
|
|
844
|
-
if (/mat-form-field|mtx-select/g.test(((_a = target.parentElement) === null || _a === void 0 ? void 0 : _a.classList[0]) || '')) {
|
|
845
|
-
this.focus();
|
|
846
|
-
this.open();
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
/**
|
|
850
|
-
* Sets the select's value. Part of the ControlValueAccessor interface
|
|
851
|
-
* required to integrate with Angular's core forms API.
|
|
852
|
-
*
|
|
853
|
-
* @param value New value to be written to the model.
|
|
854
|
-
*/
|
|
855
|
-
MtxSelectComponent.prototype.writeValue = function (value) {
|
|
856
|
-
this.value = value;
|
|
857
|
-
this._changeDetectorRef.markForCheck();
|
|
858
|
-
};
|
|
859
|
-
/**
|
|
860
|
-
* Saves a callback function to be invoked when the select's value
|
|
861
|
-
* changes from user input. Part of the ControlValueAccessor interface
|
|
862
|
-
* required to integrate with Angular's core forms API.
|
|
863
|
-
*
|
|
864
|
-
* @param fn Callback to be triggered when the value changes.
|
|
865
|
-
*/
|
|
866
|
-
MtxSelectComponent.prototype.registerOnChange = function (fn) {
|
|
867
|
-
this._onChange = fn;
|
|
868
|
-
};
|
|
869
|
-
/**
|
|
870
|
-
* Saves a callback function to be invoked when the select is blurred
|
|
871
|
-
* by the user. Part of the ControlValueAccessor interface required
|
|
872
|
-
* to integrate with Angular's core forms API.
|
|
873
|
-
*
|
|
874
|
-
* @param fn Callback to be triggered when the component has been touched.
|
|
875
|
-
*/
|
|
876
|
-
MtxSelectComponent.prototype.registerOnTouched = function (fn) {
|
|
877
|
-
this._onTouched = fn;
|
|
878
|
-
};
|
|
879
|
-
/** NgSelect: _setItemsFromNgOptions */
|
|
880
|
-
MtxSelectComponent.prototype._setItemsFromMtxOptions = function () {
|
|
881
|
-
var _this = this;
|
|
882
|
-
var mapMtxOptions = function (options) {
|
|
883
|
-
_this.items = options.map(function (option) { return ({
|
|
884
|
-
$ngOptionValue: option.value,
|
|
885
|
-
$ngOptionLabel: option.elementRef.nativeElement.innerHTML,
|
|
886
|
-
disabled: option.disabled,
|
|
887
|
-
}); });
|
|
888
|
-
_this.ngSelect.itemsList.setItems(_this.items);
|
|
889
|
-
if (_this.ngSelect.hasValue) {
|
|
890
|
-
_this.ngSelect.itemsList.mapSelectedItems();
|
|
891
|
-
}
|
|
892
|
-
_this.ngSelect.detectChanges();
|
|
893
|
-
};
|
|
894
|
-
var handleOptionChange = function () {
|
|
895
|
-
var changedOrDestroyed = rxjs.merge(_this.mtxOptions.changes, _this._destroy$);
|
|
896
|
-
rxjs.merge.apply(void 0, __spreadArray([], __read(_this.mtxOptions.map(function (option) { return option.stateChange$; })))).pipe(operators.takeUntil(changedOrDestroyed))
|
|
897
|
-
.subscribe(function (option) {
|
|
898
|
-
var item = _this.ngSelect.itemsList.findItem(option.value);
|
|
899
|
-
item.disabled = option.disabled;
|
|
900
|
-
item.label = option.label || item.label;
|
|
901
|
-
_this.ngSelect.detectChanges();
|
|
902
|
-
});
|
|
903
|
-
};
|
|
904
|
-
this.mtxOptions.changes
|
|
905
|
-
.pipe(operators.startWith(this.mtxOptions), operators.takeUntil(this._destroy$))
|
|
906
|
-
.subscribe(function (options) {
|
|
907
|
-
mapMtxOptions(options);
|
|
908
|
-
handleOptionChange();
|
|
909
|
-
});
|
|
910
|
-
};
|
|
911
|
-
MtxSelectComponent.prototype.open = function () {
|
|
912
|
-
this.ngSelect.open();
|
|
913
|
-
};
|
|
914
|
-
MtxSelectComponent.prototype.close = function () {
|
|
915
|
-
this.ngSelect.close();
|
|
916
|
-
};
|
|
917
|
-
MtxSelectComponent.prototype.focus = function () {
|
|
918
|
-
this.ngSelect.focus();
|
|
919
|
-
};
|
|
920
|
-
MtxSelectComponent.prototype.blur = function () {
|
|
921
|
-
this.ngSelect.blur();
|
|
922
|
-
};
|
|
923
|
-
return MtxSelectComponent;
|
|
924
|
-
}());
|
|
925
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
926
|
-
MtxSelectComponent.decorators = [
|
|
927
|
-
{ type: core.Component, args: [{
|
|
928
|
-
selector: 'mtx-select',
|
|
929
|
-
exportAs: 'mtxSelect',
|
|
930
|
-
host: {
|
|
931
|
-
'[attr.id]': 'id',
|
|
932
|
-
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
933
|
-
'[class.mtx-select-floating]': 'shouldLabelFloat',
|
|
934
|
-
'[class.mtx-select-invalid]': 'errorState',
|
|
935
|
-
'class': 'mtx-select',
|
|
936
|
-
},
|
|
937
|
-
template: "<ng-select #ngSelect [class.ng-select-invalid]=\"errorState\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n [items]=\"items\"\n [addTag]=\"addTag\"\n [addTagText]=\"addTagText\"\n [appendTo]=\"appendTo\"\n [appearance]=\"appearance\"\n [bindLabel]=\"bindLabel\"\n [bindValue]=\"bindValue\"\n [closeOnSelect]=\"closeOnSelect\"\n [clearAllText]=\"clearAllText\"\n [clearable]=\"clearable\"\n [clearOnBackspace]=\"clearOnBackspace\"\n [dropdownPosition]=\"dropdownPosition\"\n [groupBy]=\"groupBy\"\n [groupValue]=\"groupValue\"\n [hideSelected]=\"hideSelected\"\n [isOpen]=\"isOpen\"\n [inputAttrs]=\"inputAttrs\"\n [loading]=\"loading\"\n [loadingText]=\"loadingText\"\n [labelForId]=\"labelForId\"\n [markFirst]=\"markFirst\"\n [maxSelectedItems]=\"maxSelectedItems\"\n [multiple]=\"multiple\"\n [notFoundText]=\"notFoundText\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeahead\"\n [typeToSearchText]=\"typeToSearchText\"\n [trackByFn]=\"trackByFn\"\n [searchable]=\"searchable\"\n [searchFn]=\"searchFn\"\n [searchWhileComposing]=\"searchWhileComposing\"\n [clearSearchOnAdd]=\"clearSearchOnAdd\"\n [selectableGroup]=\"selectableGroup\"\n [selectableGroupAsModel]=\"selectableGroupAsModel\"\n [selectOnTab]=\"selectOnTab\"\n [tabIndex]=\"tabIndex\"\n [openOnEnter]=\"openOnEnter\"\n [minTermLength]=\"minTermLength\"\n [editableSearchTerm]=\"editableSearchTerm\"\n [keyDownFn]=\"keyDownFn\"\n [virtualScroll]=\"virtualScroll\"\n (blur)=\"blurEvent.emit($event)\"\n (focus)=\"focusEvent.emit($event)\"\n (change)=\"changeEvent.emit($event)\"\n (open)=\"openEvent.emit($event)\"\n (close)=\"closeEvent.emit($event)\"\n (search)=\"searchEvent.emit($event)\"\n (clear)=\"clearEvent.emit($event)\"\n (add)=\"addEvent.emit($event)\"\n (remove)=\"removeEvent.emit($event)\"\n (scroll)=\"scroll.emit($event)\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\">\n\n <ng-container *ngIf=\"optionTemplate\">\n <ng-template ng-option-tmp let-item=\"item\" let-item$=\"item$\" let-index=\"index\"\n let-searchTerm=\"searchTerm\">\n <ng-template [ngTemplateOutlet]=\"optionTemplate\"\n [ngTemplateOutletContext]=\"{ item: item, item$: item$, index: index, searchTerm: searchTerm }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"optgroupTemplate\">\n <ng-template ng-optgroup-tmp let-item=\"item\" let-item$=\"item$\" let-index=\"index\"\n let-searchTerm=\"searchTerm\">\n <ng-template [ngTemplateOutlet]=\"optgroupTemplate\"\n [ngTemplateOutletContext]=\"{ item: item, item$: item$, index: index, searchTerm: searchTerm }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"labelTemplate\">\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\" let-label=\"label\">\n <ng-template [ngTemplateOutlet]=\"labelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item, clear: clear, label: label }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"multiLabelTemplate\">\n <ng-template ng-multi-label-tmp let-items=\"items\" let-clear=\"clear\">\n <ng-template [ngTemplateOutlet]=\"multiLabelTemplate\"\n [ngTemplateOutletContext]=\"{ items: items, clear: clear }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"headerTemplate\">\n <ng-template ng-header-tmp>\n <ng-template [ngTemplateOutlet]=\"headerTemplate\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"footerTemplate\">\n <ng-template ng-footer-tmp>\n <ng-template [ngTemplateOutlet]=\"footerTemplate\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"notFoundTemplate\">\n <ng-template ng-notfound-tmp let-searchTerm=\"searchTerm\">\n <ng-template [ngTemplateOutlet]=\"notFoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"typeToSearchTemplate\">\n <ng-template ng-typetosearch-tmp>\n <ng-template [ngTemplateOutlet]=\"typeToSearchTemplate\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"loadingTextTemplate\">\n <ng-template ng-loadingtext-tmp let-searchTerm=\"searchTerm\">\n <ng-template [ngTemplateOutlet]=\"loadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"tagTemplate\">\n <ng-template ng-tag-tmp let-searchTerm=\"searchTerm\">\n <ng-template [ngTemplateOutlet]=\"tagTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"loadingSpinnerTemplate\">\n <ng-template ng-loadingspinner-tmp>\n <ng-template [ngTemplateOutlet]=\"loadingSpinnerTemplate\">\n </ng-template>\n </ng-template>\n </ng-container>\n\n</ng-select>\n",
|
|
938
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
939
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
940
|
-
providers: [{ provide: formField.MatFormFieldControl, useExisting: MtxSelectComponent }],
|
|
941
|
-
styles: [".ng-select{padding-top:1.28125em;margin-top:-1.28125em;padding-bottom:.4375em;margin-bottom:-.4375em}.ng-select .ng-select-container{align-items:center}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-input>input{font:inherit;padding:0}.mat-form-field-has-label .ng-select .ng-placeholder{transition:opacity .2s;opacity:0}.mat-form-field-has-label .mtx-select-floating .ng-select .ng-placeholder{opacity:1}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-placeholder:after,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value:after{display:inline-block;content:\"\"}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{margin:-4px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin:4px;border-radius:16px;font-size:.875em;line-height:18px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 8px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;width:18px;height:18px;border-radius:100%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-right:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-left:-4px;margin-right:auto}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-left:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-right:-4px;margin-left:auto}.ng-select .ng-clear-wrapper{height:18px;text-align:center}.ng-select .ng-arrow-wrapper{width:18px}.ng-select .ng-arrow-wrapper .ng-arrow{border-width:5px 5px 2px;border-style:solid}.ng-dropdown-panel{left:0}[dir=rtl] .ng-dropdown-panel{right:0;left:auto}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{height:3em;padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-right:5px;font-size:80%;font-weight:400}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}\n"]
|
|
942
|
-
},] }
|
|
943
|
-
];
|
|
944
|
-
/**
|
|
945
|
-
* @type {function(): !Array<(null|{
|
|
946
|
-
* type: ?,
|
|
947
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
948
|
-
* })>}
|
|
949
|
-
* @nocollapse
|
|
950
|
-
*/
|
|
951
|
-
MtxSelectComponent.ctorParameters = function () { return [
|
|
952
|
-
{ type: a11y.FocusMonitor },
|
|
953
|
-
{ type: core.ElementRef },
|
|
954
|
-
{ type: core.ChangeDetectorRef },
|
|
955
|
-
{ type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }] }
|
|
956
|
-
]; };
|
|
957
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
958
|
-
MtxSelectComponent.propDecorators = {
|
|
959
|
-
ngSelect: [{ type: core.ViewChild, args: ['ngSelect', { static: true },] }],
|
|
960
|
-
optionTemplate: [{ type: core.ContentChild, args: [MtxSelectOptionTemplateDirective, { read: core.TemplateRef },] }],
|
|
961
|
-
optgroupTemplate: [{ type: core.ContentChild, args: [MtxSelectOptgroupTemplateDirective, { read: core.TemplateRef },] }],
|
|
962
|
-
labelTemplate: [{ type: core.ContentChild, args: [MtxSelectLabelTemplateDirective, { read: core.TemplateRef },] }],
|
|
963
|
-
multiLabelTemplate: [{ type: core.ContentChild, args: [MtxSelectMultiLabelTemplateDirective, { read: core.TemplateRef },] }],
|
|
964
|
-
headerTemplate: [{ type: core.ContentChild, args: [MtxSelectHeaderTemplateDirective, { read: core.TemplateRef },] }],
|
|
965
|
-
footerTemplate: [{ type: core.ContentChild, args: [MtxSelectFooterTemplateDirective, { read: core.TemplateRef },] }],
|
|
966
|
-
notFoundTemplate: [{ type: core.ContentChild, args: [MtxSelectNotFoundTemplateDirective, { read: core.TemplateRef },] }],
|
|
967
|
-
typeToSearchTemplate: [{ type: core.ContentChild, args: [MtxSelectTypeToSearchTemplateDirective, { read: core.TemplateRef },] }],
|
|
968
|
-
loadingTextTemplate: [{ type: core.ContentChild, args: [MtxSelectLoadingTextTemplateDirective, { read: core.TemplateRef },] }],
|
|
969
|
-
tagTemplate: [{ type: core.ContentChild, args: [MtxSelectTagTemplateDirective, { read: core.TemplateRef },] }],
|
|
970
|
-
loadingSpinnerTemplate: [{ type: core.ContentChild, args: [MtxSelectLoadingSpinnerTemplateDirective, { read: core.TemplateRef },] }],
|
|
971
|
-
mtxOptions: [{ type: core.ContentChildren, args: [MtxOptionComponent, { descendants: true },] }],
|
|
972
|
-
addTag: [{ type: core.Input }],
|
|
973
|
-
addTagText: [{ type: core.Input }],
|
|
974
|
-
appearance: [{ type: core.Input }],
|
|
975
|
-
appendTo: [{ type: core.Input }],
|
|
976
|
-
bindLabel: [{ type: core.Input }],
|
|
977
|
-
bindValue: [{ type: core.Input }],
|
|
978
|
-
closeOnSelect: [{ type: core.Input }],
|
|
979
|
-
clearAllText: [{ type: core.Input }],
|
|
980
|
-
clearable: [{ type: core.Input }],
|
|
981
|
-
clearOnBackspace: [{ type: core.Input }],
|
|
982
|
-
compareWith: [{ type: core.Input }],
|
|
983
|
-
dropdownPosition: [{ type: core.Input }],
|
|
984
|
-
groupBy: [{ type: core.Input }],
|
|
985
|
-
groupValue: [{ type: core.Input }],
|
|
986
|
-
selectableGroup: [{ type: core.Input }],
|
|
987
|
-
selectableGroupAsModel: [{ type: core.Input }],
|
|
988
|
-
hideSelected: [{ type: core.Input }],
|
|
989
|
-
isOpen: [{ type: core.Input }],
|
|
990
|
-
loading: [{ type: core.Input }],
|
|
991
|
-
loadingText: [{ type: core.Input }],
|
|
992
|
-
labelForId: [{ type: core.Input }],
|
|
993
|
-
markFirst: [{ type: core.Input }],
|
|
994
|
-
maxSelectedItems: [{ type: core.Input }],
|
|
995
|
-
multiple: [{ type: core.Input }],
|
|
996
|
-
notFoundText: [{ type: core.Input }],
|
|
997
|
-
searchable: [{ type: core.Input }],
|
|
998
|
-
readonly: [{ type: core.Input }],
|
|
999
|
-
searchFn: [{ type: core.Input }],
|
|
1000
|
-
searchWhileComposing: [{ type: core.Input }],
|
|
1001
|
-
selectOnTab: [{ type: core.Input }],
|
|
1002
|
-
trackByFn: [{ type: core.Input }],
|
|
1003
|
-
inputAttrs: [{ type: core.Input }],
|
|
1004
|
-
tabIndex: [{ type: core.Input }],
|
|
1005
|
-
openOnEnter: [{ type: core.Input }],
|
|
1006
|
-
minTermLength: [{ type: core.Input }],
|
|
1007
|
-
editableSearchTerm: [{ type: core.Input }],
|
|
1008
|
-
keyDownFn: [{ type: core.Input }],
|
|
1009
|
-
virtualScroll: [{ type: core.Input }],
|
|
1010
|
-
typeToSearchText: [{ type: core.Input }],
|
|
1011
|
-
typeahead: [{ type: core.Input }],
|
|
1012
|
-
blurEvent: [{ type: core.Output, args: ['blur',] }],
|
|
1013
|
-
focusEvent: [{ type: core.Output, args: ['focus',] }],
|
|
1014
|
-
changeEvent: [{ type: core.Output, args: ['change',] }],
|
|
1015
|
-
openEvent: [{ type: core.Output, args: ['open',] }],
|
|
1016
|
-
closeEvent: [{ type: core.Output, args: ['close',] }],
|
|
1017
|
-
searchEvent: [{ type: core.Output, args: ['search',] }],
|
|
1018
|
-
clearEvent: [{ type: core.Output, args: ['clear',] }],
|
|
1019
|
-
addEvent: [{ type: core.Output, args: ['add',] }],
|
|
1020
|
-
removeEvent: [{ type: core.Output, args: ['remove',] }],
|
|
1021
|
-
scroll: [{ type: core.Output, args: ['scroll',] }],
|
|
1022
|
-
scrollToEnd: [{ type: core.Output, args: ['scrollToEnd',] }],
|
|
1023
|
-
clearSearchOnAdd: [{ type: core.Input }],
|
|
1024
|
-
items: [{ type: core.Input }],
|
|
1025
|
-
value: [{ type: core.Input }],
|
|
1026
|
-
id: [{ type: core.Input }],
|
|
1027
|
-
placeholder: [{ type: core.Input }],
|
|
1028
|
-
required: [{ type: core.Input }],
|
|
1029
|
-
disabled: [{ type: core.Input }]
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
|
-
var MtxSelectModule = /** @class */ (function () {
|
|
1033
|
-
function MtxSelectModule() {
|
|
1034
|
-
}
|
|
1035
|
-
return MtxSelectModule;
|
|
1036
|
-
}());
|
|
1037
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1038
|
-
MtxSelectModule.decorators = [
|
|
1039
|
-
{ type: core.NgModule, args: [{
|
|
1040
|
-
imports: [common.CommonModule, forms.FormsModule, forms.ReactiveFormsModule, ngSelect.NgSelectModule],
|
|
1041
|
-
exports: [
|
|
1042
|
-
MtxSelectComponent,
|
|
1043
|
-
MtxOptionComponent,
|
|
1044
|
-
MtxSelectOptgroupTemplateDirective,
|
|
1045
|
-
MtxSelectOptionTemplateDirective,
|
|
1046
|
-
MtxSelectLabelTemplateDirective,
|
|
1047
|
-
MtxSelectMultiLabelTemplateDirective,
|
|
1048
|
-
MtxSelectHeaderTemplateDirective,
|
|
1049
|
-
MtxSelectFooterTemplateDirective,
|
|
1050
|
-
MtxSelectNotFoundTemplateDirective,
|
|
1051
|
-
MtxSelectTypeToSearchTemplateDirective,
|
|
1052
|
-
MtxSelectLoadingTextTemplateDirective,
|
|
1053
|
-
MtxSelectTagTemplateDirective,
|
|
1054
|
-
MtxSelectLoadingSpinnerTemplateDirective,
|
|
1055
|
-
],
|
|
1056
|
-
declarations: [
|
|
1057
|
-
MtxSelectComponent,
|
|
1058
|
-
MtxOptionComponent,
|
|
1059
|
-
MtxSelectOptgroupTemplateDirective,
|
|
1060
|
-
MtxSelectOptionTemplateDirective,
|
|
1061
|
-
MtxSelectLabelTemplateDirective,
|
|
1062
|
-
MtxSelectMultiLabelTemplateDirective,
|
|
1063
|
-
MtxSelectHeaderTemplateDirective,
|
|
1064
|
-
MtxSelectFooterTemplateDirective,
|
|
1065
|
-
MtxSelectNotFoundTemplateDirective,
|
|
1066
|
-
MtxSelectTypeToSearchTemplateDirective,
|
|
1067
|
-
MtxSelectLoadingTextTemplateDirective,
|
|
1068
|
-
MtxSelectTagTemplateDirective,
|
|
1069
|
-
MtxSelectLoadingSpinnerTemplateDirective,
|
|
1070
|
-
],
|
|
1071
|
-
},] }
|
|
1072
|
-
];
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* Generated bundle index. Do not edit.
|
|
1076
|
-
*/
|
|
1077
|
-
|
|
1078
|
-
exports.MtxOptionComponent = MtxOptionComponent;
|
|
1079
|
-
exports.MtxSelectComponent = MtxSelectComponent;
|
|
1080
|
-
exports.MtxSelectFooterTemplateDirective = MtxSelectFooterTemplateDirective;
|
|
1081
|
-
exports.MtxSelectHeaderTemplateDirective = MtxSelectHeaderTemplateDirective;
|
|
1082
|
-
exports.MtxSelectLabelTemplateDirective = MtxSelectLabelTemplateDirective;
|
|
1083
|
-
exports.MtxSelectLoadingSpinnerTemplateDirective = MtxSelectLoadingSpinnerTemplateDirective;
|
|
1084
|
-
exports.MtxSelectLoadingTextTemplateDirective = MtxSelectLoadingTextTemplateDirective;
|
|
1085
|
-
exports.MtxSelectModule = MtxSelectModule;
|
|
1086
|
-
exports.MtxSelectMultiLabelTemplateDirective = MtxSelectMultiLabelTemplateDirective;
|
|
1087
|
-
exports.MtxSelectNotFoundTemplateDirective = MtxSelectNotFoundTemplateDirective;
|
|
1088
|
-
exports.MtxSelectOptgroupTemplateDirective = MtxSelectOptgroupTemplateDirective;
|
|
1089
|
-
exports.MtxSelectOptionTemplateDirective = MtxSelectOptionTemplateDirective;
|
|
1090
|
-
exports.MtxSelectTagTemplateDirective = MtxSelectTagTemplateDirective;
|
|
1091
|
-
exports.MtxSelectTypeToSearchTemplateDirective = MtxSelectTypeToSearchTemplateDirective;
|
|
1092
|
-
exports.isDefined = isDefined;
|
|
1093
|
-
|
|
1094
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1095
|
-
|
|
1096
|
-
}));
|
|
1097
|
-
//# sourceMappingURL=mtxSelect.umd.js.map
|