@ng-matero/extensions 12.7.0 → 13.0.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/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 +458 -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 +712 -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 +709 -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 +171 -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
|
@@ -1,21 +1,330 @@
|
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
1
2
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
2
|
-
import
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { forwardRef, EventEmitter, Directive, Optional, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChild, ViewChild, InjectionToken, Inject, NgModule } from '@angular/core';
|
|
5
|
+
import * as i3 from '@angular/cdk/overlay';
|
|
3
6
|
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
4
7
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
5
8
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
9
|
+
import * as i1$1 from '@angular/material/button';
|
|
6
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
7
11
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
8
|
-
import { ESCAPE, hasModifierKey, UP_ARROW
|
|
12
|
+
import { DOWN_ARROW, ESCAPE, hasModifierKey, UP_ARROW } from '@angular/cdk/keycodes';
|
|
9
13
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators } from '@angular/forms';
|
|
10
|
-
import { MatFormField } from '@angular/material/form-field';
|
|
11
14
|
import { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
15
|
+
import { Subscription, of, merge, Subject } from 'rxjs';
|
|
16
|
+
import * as i1 from '@angular/material/form-field';
|
|
14
17
|
import { mixinColor } from '@angular/material/core';
|
|
15
18
|
import { take, filter } from 'rxjs/operators';
|
|
16
19
|
import { trigger, transition, animate, keyframes, style } from '@angular/animations';
|
|
17
20
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
21
|
+
import * as i1$2 from 'ngx-color/chrome';
|
|
18
22
|
import { ColorChromeModule } from 'ngx-color/chrome';
|
|
23
|
+
import * as i4 from '@angular/cdk/bidi';
|
|
24
|
+
|
|
25
|
+
class MtxColorPickerInputEvent {
|
|
26
|
+
constructor(
|
|
27
|
+
/** Reference to the colorpicker input component that emitted the event. */
|
|
28
|
+
target,
|
|
29
|
+
/** Reference to the native input element associated with the colorpicker input. */
|
|
30
|
+
targetElement) {
|
|
31
|
+
this.target = target;
|
|
32
|
+
this.targetElement = targetElement;
|
|
33
|
+
this.value = this.target.value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const MTX_COLORPICKER_VALUE_ACCESSOR = {
|
|
37
|
+
provide: NG_VALUE_ACCESSOR,
|
|
38
|
+
useExisting: forwardRef(() => MtxColorpickerInput),
|
|
39
|
+
multi: true,
|
|
40
|
+
};
|
|
41
|
+
const MTX_COLORPICKER_VALIDATORS = {
|
|
42
|
+
provide: NG_VALIDATORS,
|
|
43
|
+
useExisting: forwardRef(() => MtxColorpickerInput),
|
|
44
|
+
multi: true,
|
|
45
|
+
};
|
|
46
|
+
class MtxColorpickerInput {
|
|
47
|
+
constructor(_elementRef, _formField) {
|
|
48
|
+
this._elementRef = _elementRef;
|
|
49
|
+
this._formField = _formField;
|
|
50
|
+
/** The input and output color format. */
|
|
51
|
+
this.format = 'hex';
|
|
52
|
+
/** Emits when a `change` event is fired on this `<input>`. */
|
|
53
|
+
this.colorChange = new EventEmitter();
|
|
54
|
+
/** Emits when an `input` event is fired on this `<input>`. */
|
|
55
|
+
this.colorInput = new EventEmitter();
|
|
56
|
+
/** Emits when the disabled state has changed */
|
|
57
|
+
this._disabledChange = new EventEmitter();
|
|
58
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
59
|
+
this._valueChange = new EventEmitter();
|
|
60
|
+
this._onTouched = () => { };
|
|
61
|
+
this._validatorOnChange = () => { };
|
|
62
|
+
this._cvaOnChange = () => { };
|
|
63
|
+
this._pickerSubscription = Subscription.EMPTY;
|
|
64
|
+
/** The combined form control validator for this input. */
|
|
65
|
+
this._validator = Validators.compose([]);
|
|
66
|
+
/** Whether the last value set on the input was valid. */
|
|
67
|
+
this._lastValueValid = false;
|
|
68
|
+
}
|
|
69
|
+
set mtxColorpicker(value) {
|
|
70
|
+
if (!value) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this._picker = value;
|
|
74
|
+
this._picker.registerInput(this);
|
|
75
|
+
this._pickerSubscription.unsubscribe();
|
|
76
|
+
this._pickerSubscription = this._picker._selectedChanged.subscribe((selected) => {
|
|
77
|
+
this.value = selected;
|
|
78
|
+
this._cvaOnChange(selected);
|
|
79
|
+
this._onTouched();
|
|
80
|
+
this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
81
|
+
this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/** Whether the colorpicker-input is disabled. */
|
|
85
|
+
get disabled() {
|
|
86
|
+
return !!this._disabled;
|
|
87
|
+
}
|
|
88
|
+
set disabled(value) {
|
|
89
|
+
const newValue = coerceBooleanProperty(value);
|
|
90
|
+
const element = this._elementRef.nativeElement;
|
|
91
|
+
if (this._disabled !== newValue) {
|
|
92
|
+
this._disabled = newValue;
|
|
93
|
+
this._disabledChange.emit(newValue);
|
|
94
|
+
}
|
|
95
|
+
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
96
|
+
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
97
|
+
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
98
|
+
// element has been inserted.
|
|
99
|
+
if (newValue && this._isInitialized && element.blur) {
|
|
100
|
+
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
101
|
+
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
102
|
+
// which then causes a changed after checked error if the input element was focused before.
|
|
103
|
+
element.blur();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/** The value of the input. */
|
|
107
|
+
get value() {
|
|
108
|
+
return this._value;
|
|
109
|
+
}
|
|
110
|
+
set value(value) {
|
|
111
|
+
const oldValue = this.value;
|
|
112
|
+
this._value = value;
|
|
113
|
+
this._formatValue(value);
|
|
114
|
+
this._valueChange.emit(value);
|
|
115
|
+
}
|
|
116
|
+
ngAfterViewInit() {
|
|
117
|
+
this._isInitialized = true;
|
|
118
|
+
}
|
|
119
|
+
ngOnDestroy() {
|
|
120
|
+
this._pickerSubscription.unsubscribe();
|
|
121
|
+
this._valueChange.complete();
|
|
122
|
+
this._disabledChange.complete();
|
|
123
|
+
}
|
|
124
|
+
registerOnValidatorChange(fn) {
|
|
125
|
+
this._validatorOnChange = fn;
|
|
126
|
+
}
|
|
127
|
+
/** @docs-private */
|
|
128
|
+
validate(c) {
|
|
129
|
+
return this._validator ? this._validator(c) : null;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated
|
|
133
|
+
* @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead
|
|
134
|
+
*/
|
|
135
|
+
getPopupConnectionElementRef() {
|
|
136
|
+
return this.getConnectedOverlayOrigin();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Gets the element that the colorpicker popup should be connected to.
|
|
140
|
+
* @return The element to connect the popup to.
|
|
141
|
+
*/
|
|
142
|
+
getConnectedOverlayOrigin() {
|
|
143
|
+
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
|
|
144
|
+
}
|
|
145
|
+
/** Gets the ID of an element that should be used a description for the overlay. */
|
|
146
|
+
getOverlayLabelId() {
|
|
147
|
+
if (this._formField) {
|
|
148
|
+
return this._formField.getLabelId();
|
|
149
|
+
}
|
|
150
|
+
return this._elementRef.nativeElement.getAttribute('aria-labelledby');
|
|
151
|
+
}
|
|
152
|
+
// Implemented as part of ControlValueAccessor.
|
|
153
|
+
writeValue(value) {
|
|
154
|
+
this.value = value;
|
|
155
|
+
}
|
|
156
|
+
// Implemented as part of ControlValueAccessor.
|
|
157
|
+
registerOnChange(fn) {
|
|
158
|
+
this._cvaOnChange = fn;
|
|
159
|
+
}
|
|
160
|
+
// Implemented as part of ControlValueAccessor.
|
|
161
|
+
registerOnTouched(fn) {
|
|
162
|
+
this._onTouched = fn;
|
|
163
|
+
}
|
|
164
|
+
// Implemented as part of ControlValueAccessor.
|
|
165
|
+
setDisabledState(isDisabled) {
|
|
166
|
+
this.disabled = isDisabled;
|
|
167
|
+
}
|
|
168
|
+
_onKeydown(event) {
|
|
169
|
+
const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;
|
|
170
|
+
if (this._picker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {
|
|
171
|
+
this._picker.open();
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/** Handles blur events on the input. */
|
|
176
|
+
_onBlur() {
|
|
177
|
+
// Reformat the input only if we have a valid value.
|
|
178
|
+
if (this.value) {
|
|
179
|
+
this._formatValue(this.value);
|
|
180
|
+
}
|
|
181
|
+
this._onTouched();
|
|
182
|
+
}
|
|
183
|
+
_onInput(value) {
|
|
184
|
+
const nextValue = value;
|
|
185
|
+
this._value = nextValue;
|
|
186
|
+
this._cvaOnChange(nextValue);
|
|
187
|
+
this._valueChange.emit(nextValue);
|
|
188
|
+
this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
189
|
+
}
|
|
190
|
+
_onChange() {
|
|
191
|
+
this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
192
|
+
}
|
|
193
|
+
/** Returns the palette used by the input's form field, if any. */
|
|
194
|
+
getThemePalette() {
|
|
195
|
+
return this._formField ? this._formField.color : undefined;
|
|
196
|
+
}
|
|
197
|
+
/** TODO: Formats a value and sets it on the input element. */
|
|
198
|
+
_formatValue(value) {
|
|
199
|
+
this._elementRef.nativeElement.value = value ? value : '';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
203
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerInput, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: "disabled", value: "value", format: "format" }, outputs: { colorChange: "colorChange", colorInput: "colorInput" }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_picker ? \"dialog\" : null", "attr.aria-owns": "(_picker?.opened && _picker.id) || null", "disabled": "disabled" }, classAttribute: "mtx-colorpicker-input" }, providers: [
|
|
204
|
+
MTX_COLORPICKER_VALUE_ACCESSOR,
|
|
205
|
+
MTX_COLORPICKER_VALIDATORS,
|
|
206
|
+
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
|
|
207
|
+
], exportAs: ["mtxColorpickerInput"], ngImport: i0 });
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerInput, decorators: [{
|
|
209
|
+
type: Directive,
|
|
210
|
+
args: [{
|
|
211
|
+
selector: 'input[mtxColorpicker]',
|
|
212
|
+
providers: [
|
|
213
|
+
MTX_COLORPICKER_VALUE_ACCESSOR,
|
|
214
|
+
MTX_COLORPICKER_VALIDATORS,
|
|
215
|
+
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
|
|
216
|
+
],
|
|
217
|
+
host: {
|
|
218
|
+
'class': 'mtx-colorpicker-input',
|
|
219
|
+
'[attr.aria-haspopup]': '_picker ? "dialog" : null',
|
|
220
|
+
'[attr.aria-owns]': '(_picker?.opened && _picker.id) || null',
|
|
221
|
+
'[disabled]': 'disabled',
|
|
222
|
+
'(input)': '_onInput($event.target.value)',
|
|
223
|
+
'(change)': '_onChange()',
|
|
224
|
+
'(blur)': '_onBlur()',
|
|
225
|
+
'(keydown)': '_onKeydown($event)',
|
|
226
|
+
},
|
|
227
|
+
exportAs: 'mtxColorpickerInput',
|
|
228
|
+
}]
|
|
229
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.MatFormField, decorators: [{
|
|
230
|
+
type: Optional
|
|
231
|
+
}] }]; }, propDecorators: { mtxColorpicker: [{
|
|
232
|
+
type: Input
|
|
233
|
+
}], disabled: [{
|
|
234
|
+
type: Input
|
|
235
|
+
}], value: [{
|
|
236
|
+
type: Input
|
|
237
|
+
}], format: [{
|
|
238
|
+
type: Input
|
|
239
|
+
}], colorChange: [{
|
|
240
|
+
type: Output
|
|
241
|
+
}], colorInput: [{
|
|
242
|
+
type: Output
|
|
243
|
+
}] } });
|
|
244
|
+
|
|
245
|
+
/** Can be used to override the icon of a `mtxColorpickerToggle`. */
|
|
246
|
+
class MtxColorpickerToggleIcon {
|
|
247
|
+
}
|
|
248
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
249
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerToggleIcon, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 });
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
|
|
251
|
+
type: Directive,
|
|
252
|
+
args: [{
|
|
253
|
+
selector: '[mtxColorpickerToggleIcon]',
|
|
254
|
+
}]
|
|
255
|
+
}] });
|
|
256
|
+
class MtxColorpickerToggle {
|
|
257
|
+
constructor(_changeDetectorRef) {
|
|
258
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
259
|
+
this._stateChanges = Subscription.EMPTY;
|
|
260
|
+
}
|
|
261
|
+
/** Whether the toggle button is disabled. */
|
|
262
|
+
get disabled() {
|
|
263
|
+
if (this._disabled == null && this.picker) {
|
|
264
|
+
return this.picker.disabled;
|
|
265
|
+
}
|
|
266
|
+
return !!this._disabled;
|
|
267
|
+
}
|
|
268
|
+
set disabled(value) {
|
|
269
|
+
this._disabled = coerceBooleanProperty(value);
|
|
270
|
+
}
|
|
271
|
+
ngOnChanges(changes) {
|
|
272
|
+
if (changes.picker) {
|
|
273
|
+
this._watchStateChanges();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
ngOnDestroy() {
|
|
277
|
+
this._stateChanges.unsubscribe();
|
|
278
|
+
}
|
|
279
|
+
ngAfterContentInit() {
|
|
280
|
+
this._watchStateChanges();
|
|
281
|
+
}
|
|
282
|
+
open(event) {
|
|
283
|
+
if (this.picker && !this.disabled) {
|
|
284
|
+
this.picker.open();
|
|
285
|
+
event.stopPropagation();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
_watchStateChanges() {
|
|
289
|
+
const pickerDisabled = this.picker ? this.picker._disabledChange : of();
|
|
290
|
+
const inputDisabled = this.picker && this.picker.pickerInput ? this.picker.pickerInput._disabledChange : of();
|
|
291
|
+
const datepickerToggled = this.picker
|
|
292
|
+
? merge(this.picker.openedStream, this.picker.closedStream)
|
|
293
|
+
: of();
|
|
294
|
+
this._stateChanges.unsubscribe();
|
|
295
|
+
this._stateChanges = merge([pickerDisabled, inputDisabled, datepickerToggled]).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
299
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "focus": "_button.focus()" }, properties: { "attr.tabindex": "disabled ? null : -1", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n (click)=\"open($event)\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
|
|
301
|
+
type: Component,
|
|
302
|
+
args: [{ selector: 'mtx-colorpicker-toggle', host: {
|
|
303
|
+
'class': 'mtx-colorpicker-toggle',
|
|
304
|
+
// Always set the tabindex to -1 so that it doesn't overlap with any custom tabindex the
|
|
305
|
+
// consumer may have provided, while still being able to receive focus.
|
|
306
|
+
'[attr.tabindex]': 'disabled ? null : -1',
|
|
307
|
+
'[class.mtx-colorpicker-toggle-active]': 'picker && picker.opened',
|
|
308
|
+
'[class.mat-accent]': 'picker && picker.color === "accent"',
|
|
309
|
+
'[class.mat-warn]': 'picker && picker.color === "warn"',
|
|
310
|
+
'(focus)': '_button.focus()',
|
|
311
|
+
}, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n (click)=\"open($event)\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"] }]
|
|
312
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { picker: [{
|
|
313
|
+
type: Input,
|
|
314
|
+
args: ['for']
|
|
315
|
+
}], tabIndex: [{
|
|
316
|
+
type: Input
|
|
317
|
+
}], disabled: [{
|
|
318
|
+
type: Input
|
|
319
|
+
}], disableRipple: [{
|
|
320
|
+
type: Input
|
|
321
|
+
}], _customIcon: [{
|
|
322
|
+
type: ContentChild,
|
|
323
|
+
args: [MtxColorpickerToggleIcon]
|
|
324
|
+
}], _button: [{
|
|
325
|
+
type: ViewChild,
|
|
326
|
+
args: ['button']
|
|
327
|
+
}] } });
|
|
19
328
|
|
|
20
329
|
/**
|
|
21
330
|
* Animations used by the colorpicker.
|
|
@@ -76,35 +385,16 @@ class MtxColorpickerContent extends _MtxColorpickerContentBase {
|
|
|
76
385
|
}[this.picker.format];
|
|
77
386
|
}
|
|
78
387
|
}
|
|
79
|
-
/** @
|
|
80
|
-
MtxColorpickerContent
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
'
|
|
88
|
-
|
|
89
|
-
animations: [mtxColorpickerAnimations.transformPanel],
|
|
90
|
-
exportAs: 'mtxColorpickerContent',
|
|
91
|
-
encapsulation: ViewEncapsulation.None,
|
|
92
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
93
|
-
inputs: ['color'],
|
|
94
|
-
styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"]
|
|
95
|
-
},] }
|
|
96
|
-
];
|
|
97
|
-
/**
|
|
98
|
-
* @type {function(): !Array<(null|{
|
|
99
|
-
* type: ?,
|
|
100
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
101
|
-
* })>}
|
|
102
|
-
* @nocollapse
|
|
103
|
-
*/
|
|
104
|
-
MtxColorpickerContent.ctorParameters = () => [
|
|
105
|
-
{ type: ElementRef },
|
|
106
|
-
{ type: ChangeDetectorRef }
|
|
107
|
-
];
|
|
388
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
389
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerContent, selector: "mtx-colorpicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.done": "_animationDone.next()" }, properties: { "@transformPanel": "_animationState" }, classAttribute: "mtx-colorpicker-content" }, exportAs: ["mtxColorpickerContent"], usesInheritance: true, ngImport: i0, template: "<ng-template [ngIf]=\"picker.content\" [ngIfElse]=\"default\"\n [ngTemplateOutlet]=\"picker.content\">\n</ng-template>\n<ng-template #default>\n <color-chrome [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\">\n </color-chrome>\n</ng-template>\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"], components: [{ type: i1$2.ChromeComponent, selector: "color-chrome", inputs: ["disableAlpha"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [mtxColorpickerAnimations.transformPanel], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerContent, decorators: [{
|
|
391
|
+
type: Component,
|
|
392
|
+
args: [{ selector: 'mtx-colorpicker-content', host: {
|
|
393
|
+
'class': 'mtx-colorpicker-content',
|
|
394
|
+
'[@transformPanel]': '_animationState',
|
|
395
|
+
'(@transformPanel.done)': '_animationDone.next()',
|
|
396
|
+
}, animations: [mtxColorpickerAnimations.transformPanel], exportAs: 'mtxColorpickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: "<ng-template [ngIf]=\"picker.content\" [ngIfElse]=\"default\"\n [ngTemplateOutlet]=\"picker.content\">\n</ng-template>\n<ng-template #default>\n <color-chrome [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\">\n </color-chrome>\n</ng-template>\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"] }]
|
|
397
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
108
398
|
class MtxColorpicker {
|
|
109
399
|
constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
|
|
110
400
|
this._overlay = _overlay;
|
|
@@ -353,391 +643,108 @@ class MtxColorpicker {
|
|
|
353
643
|
})));
|
|
354
644
|
}
|
|
355
645
|
}
|
|
356
|
-
/** @type {
|
|
357
|
-
MtxColorpicker
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
targetElement) {
|
|
401
|
-
this.target = target;
|
|
402
|
-
this.targetElement = targetElement;
|
|
403
|
-
this.value = this.target.value;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
const MTX_COLORPICKER_VALUE_ACCESSOR = {
|
|
407
|
-
provide: NG_VALUE_ACCESSOR,
|
|
408
|
-
useExisting: forwardRef(() => MtxColorpickerInput),
|
|
409
|
-
multi: true,
|
|
410
|
-
};
|
|
411
|
-
const MTX_COLORPICKER_VALIDATORS = {
|
|
412
|
-
provide: NG_VALIDATORS,
|
|
413
|
-
useExisting: forwardRef(() => MtxColorpickerInput),
|
|
414
|
-
multi: true,
|
|
415
|
-
};
|
|
416
|
-
class MtxColorpickerInput {
|
|
417
|
-
constructor(_elementRef, _formField) {
|
|
418
|
-
this._elementRef = _elementRef;
|
|
419
|
-
this._formField = _formField;
|
|
420
|
-
/** The input and output color format. */
|
|
421
|
-
this.format = 'hex';
|
|
422
|
-
/** Emits when a `change` event is fired on this `<input>`. */
|
|
423
|
-
this.colorChange = new EventEmitter();
|
|
424
|
-
/** Emits when an `input` event is fired on this `<input>`. */
|
|
425
|
-
this.colorInput = new EventEmitter();
|
|
426
|
-
/** Emits when the disabled state has changed */
|
|
427
|
-
this._disabledChange = new EventEmitter();
|
|
428
|
-
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
429
|
-
this._valueChange = new EventEmitter();
|
|
430
|
-
this._onTouched = () => { };
|
|
431
|
-
this._validatorOnChange = () => { };
|
|
432
|
-
this._cvaOnChange = () => { };
|
|
433
|
-
this._pickerSubscription = Subscription.EMPTY;
|
|
434
|
-
/** The combined form control validator for this input. */
|
|
435
|
-
this._validator = Validators.compose([]);
|
|
436
|
-
/** Whether the last value set on the input was valid. */
|
|
437
|
-
this._lastValueValid = false;
|
|
438
|
-
}
|
|
439
|
-
set mtxColorpicker(value) {
|
|
440
|
-
if (!value) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
this._picker = value;
|
|
444
|
-
this._picker.registerInput(this);
|
|
445
|
-
this._pickerSubscription.unsubscribe();
|
|
446
|
-
this._pickerSubscription = this._picker._selectedChanged.subscribe((selected) => {
|
|
447
|
-
this.value = selected;
|
|
448
|
-
this._cvaOnChange(selected);
|
|
449
|
-
this._onTouched();
|
|
450
|
-
this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
451
|
-
this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
/** Whether the colorpicker-input is disabled. */
|
|
455
|
-
get disabled() {
|
|
456
|
-
return !!this._disabled;
|
|
457
|
-
}
|
|
458
|
-
set disabled(value) {
|
|
459
|
-
const newValue = coerceBooleanProperty(value);
|
|
460
|
-
const element = this._elementRef.nativeElement;
|
|
461
|
-
if (this._disabled !== newValue) {
|
|
462
|
-
this._disabled = newValue;
|
|
463
|
-
this._disabledChange.emit(newValue);
|
|
464
|
-
}
|
|
465
|
-
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
466
|
-
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
467
|
-
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
468
|
-
// element has been inserted.
|
|
469
|
-
if (newValue && this._isInitialized && element.blur) {
|
|
470
|
-
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
471
|
-
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
472
|
-
// which then causes a changed after checked error if the input element was focused before.
|
|
473
|
-
element.blur();
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
/** The value of the input. */
|
|
477
|
-
get value() {
|
|
478
|
-
return this._value;
|
|
479
|
-
}
|
|
480
|
-
set value(value) {
|
|
481
|
-
const oldValue = this.value;
|
|
482
|
-
this._value = value;
|
|
483
|
-
this._formatValue(value);
|
|
484
|
-
this._valueChange.emit(value);
|
|
485
|
-
}
|
|
486
|
-
ngAfterViewInit() {
|
|
487
|
-
this._isInitialized = true;
|
|
488
|
-
}
|
|
489
|
-
ngOnDestroy() {
|
|
490
|
-
this._pickerSubscription.unsubscribe();
|
|
491
|
-
this._valueChange.complete();
|
|
492
|
-
this._disabledChange.complete();
|
|
493
|
-
}
|
|
494
|
-
registerOnValidatorChange(fn) {
|
|
495
|
-
this._validatorOnChange = fn;
|
|
496
|
-
}
|
|
497
|
-
/** @docs-private */
|
|
498
|
-
validate(c) {
|
|
499
|
-
return this._validator ? this._validator(c) : null;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* @deprecated
|
|
503
|
-
* @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead
|
|
504
|
-
*/
|
|
505
|
-
getPopupConnectionElementRef() {
|
|
506
|
-
return this.getConnectedOverlayOrigin();
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Gets the element that the colorpicker popup should be connected to.
|
|
510
|
-
* @return The element to connect the popup to.
|
|
511
|
-
*/
|
|
512
|
-
getConnectedOverlayOrigin() {
|
|
513
|
-
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
|
|
514
|
-
}
|
|
515
|
-
/** Gets the ID of an element that should be used a description for the overlay. */
|
|
516
|
-
getOverlayLabelId() {
|
|
517
|
-
if (this._formField) {
|
|
518
|
-
return this._formField.getLabelId();
|
|
519
|
-
}
|
|
520
|
-
return this._elementRef.nativeElement.getAttribute('aria-labelledby');
|
|
521
|
-
}
|
|
522
|
-
// Implemented as part of ControlValueAccessor.
|
|
523
|
-
writeValue(value) {
|
|
524
|
-
this.value = value;
|
|
525
|
-
}
|
|
526
|
-
// Implemented as part of ControlValueAccessor.
|
|
527
|
-
registerOnChange(fn) {
|
|
528
|
-
this._cvaOnChange = fn;
|
|
529
|
-
}
|
|
530
|
-
// Implemented as part of ControlValueAccessor.
|
|
531
|
-
registerOnTouched(fn) {
|
|
532
|
-
this._onTouched = fn;
|
|
533
|
-
}
|
|
534
|
-
// Implemented as part of ControlValueAccessor.
|
|
535
|
-
setDisabledState(isDisabled) {
|
|
536
|
-
this.disabled = isDisabled;
|
|
537
|
-
}
|
|
538
|
-
_onKeydown(event) {
|
|
539
|
-
const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;
|
|
540
|
-
if (this._picker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {
|
|
541
|
-
this._picker.open();
|
|
542
|
-
event.preventDefault();
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
/** Handles blur events on the input. */
|
|
546
|
-
_onBlur() {
|
|
547
|
-
// Reformat the input only if we have a valid value.
|
|
548
|
-
if (this.value) {
|
|
549
|
-
this._formatValue(this.value);
|
|
550
|
-
}
|
|
551
|
-
this._onTouched();
|
|
552
|
-
}
|
|
553
|
-
_onInput(value) {
|
|
554
|
-
const nextValue = value;
|
|
555
|
-
this._value = nextValue;
|
|
556
|
-
this._cvaOnChange(nextValue);
|
|
557
|
-
this._valueChange.emit(nextValue);
|
|
558
|
-
this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
559
|
-
}
|
|
560
|
-
_onChange() {
|
|
561
|
-
this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
|
|
562
|
-
}
|
|
563
|
-
/** Returns the palette used by the input's form field, if any. */
|
|
564
|
-
getThemePalette() {
|
|
565
|
-
return this._formField ? this._formField.color : undefined;
|
|
566
|
-
}
|
|
567
|
-
/** TODO: Formats a value and sets it on the input element. */
|
|
568
|
-
_formatValue(value) {
|
|
569
|
-
this._elementRef.nativeElement.value = value ? value : '';
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
573
|
-
MtxColorpickerInput.decorators = [
|
|
574
|
-
{ type: Directive, args: [{
|
|
575
|
-
selector: 'input[mtxColorpicker]',
|
|
576
|
-
providers: [
|
|
577
|
-
MTX_COLORPICKER_VALUE_ACCESSOR,
|
|
578
|
-
MTX_COLORPICKER_VALIDATORS,
|
|
579
|
-
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
|
|
580
|
-
],
|
|
581
|
-
host: {
|
|
582
|
-
'class': 'mtx-colorpicker-input',
|
|
583
|
-
'[attr.aria-haspopup]': '_picker ? "dialog" : null',
|
|
584
|
-
'[attr.aria-owns]': '(_picker?.opened && _picker.id) || null',
|
|
585
|
-
'[disabled]': 'disabled',
|
|
586
|
-
'(input)': '_onInput($event.target.value)',
|
|
587
|
-
'(change)': '_onChange()',
|
|
588
|
-
'(blur)': '_onBlur()',
|
|
589
|
-
'(keydown)': '_onKeydown($event)',
|
|
590
|
-
},
|
|
591
|
-
exportAs: 'mtxColorpickerInput',
|
|
592
|
-
},] }
|
|
593
|
-
];
|
|
594
|
-
/**
|
|
595
|
-
* @type {function(): !Array<(null|{
|
|
596
|
-
* type: ?,
|
|
597
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
598
|
-
* })>}
|
|
599
|
-
* @nocollapse
|
|
600
|
-
*/
|
|
601
|
-
MtxColorpickerInput.ctorParameters = () => [
|
|
602
|
-
{ type: ElementRef },
|
|
603
|
-
{ type: MatFormField, decorators: [{ type: Optional }] }
|
|
604
|
-
];
|
|
605
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
606
|
-
MtxColorpickerInput.propDecorators = {
|
|
607
|
-
mtxColorpicker: [{ type: Input }],
|
|
608
|
-
disabled: [{ type: Input }],
|
|
609
|
-
value: [{ type: Input }],
|
|
610
|
-
format: [{ type: Input }],
|
|
611
|
-
colorChange: [{ type: Output }],
|
|
612
|
-
colorInput: [{ type: Output }]
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
/** Can be used to override the icon of a `mtxColorpickerToggle`. */
|
|
616
|
-
class MtxColorpickerToggleIcon {
|
|
617
|
-
}
|
|
618
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
619
|
-
MtxColorpickerToggleIcon.decorators = [
|
|
620
|
-
{ type: Directive, args: [{
|
|
621
|
-
selector: '[mtxColorpickerToggleIcon]',
|
|
622
|
-
},] }
|
|
623
|
-
];
|
|
624
|
-
class MtxColorpickerToggle {
|
|
625
|
-
constructor(_changeDetectorRef) {
|
|
626
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
627
|
-
this._stateChanges = Subscription.EMPTY;
|
|
628
|
-
}
|
|
629
|
-
/** Whether the toggle button is disabled. */
|
|
630
|
-
get disabled() {
|
|
631
|
-
if (this._disabled == null && this.picker) {
|
|
632
|
-
return this.picker.disabled;
|
|
633
|
-
}
|
|
634
|
-
return !!this._disabled;
|
|
635
|
-
}
|
|
636
|
-
set disabled(value) {
|
|
637
|
-
this._disabled = coerceBooleanProperty(value);
|
|
638
|
-
}
|
|
639
|
-
ngOnChanges(changes) {
|
|
640
|
-
if (changes.picker) {
|
|
641
|
-
this._watchStateChanges();
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
ngOnDestroy() {
|
|
645
|
-
this._stateChanges.unsubscribe();
|
|
646
|
-
}
|
|
647
|
-
ngAfterContentInit() {
|
|
648
|
-
this._watchStateChanges();
|
|
649
|
-
}
|
|
650
|
-
open(event) {
|
|
651
|
-
if (this.picker && !this.disabled) {
|
|
652
|
-
this.picker.open();
|
|
653
|
-
event.stopPropagation();
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
_watchStateChanges() {
|
|
657
|
-
const pickerDisabled = this.picker ? this.picker._disabledChange : of();
|
|
658
|
-
const inputDisabled = this.picker && this.picker.pickerInput ? this.picker.pickerInput._disabledChange : of();
|
|
659
|
-
const datepickerToggled = this.picker
|
|
660
|
-
? merge(this.picker.openedStream, this.picker.closedStream)
|
|
661
|
-
: of();
|
|
662
|
-
this._stateChanges.unsubscribe();
|
|
663
|
-
this._stateChanges = merge([pickerDisabled, inputDisabled, datepickerToggled]).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
667
|
-
MtxColorpickerToggle.decorators = [
|
|
668
|
-
{ type: Component, args: [{
|
|
669
|
-
selector: 'mtx-colorpicker-toggle',
|
|
670
|
-
template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n (click)=\"open($event)\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n",
|
|
671
|
-
host: {
|
|
672
|
-
'class': 'mtx-colorpicker-toggle',
|
|
673
|
-
// Always set the tabindex to -1 so that it doesn't overlap with any custom tabindex the
|
|
674
|
-
// consumer may have provided, while still being able to receive focus.
|
|
675
|
-
'[attr.tabindex]': 'disabled ? null : -1',
|
|
676
|
-
'[class.mtx-colorpicker-toggle-active]': 'picker && picker.opened',
|
|
677
|
-
'[class.mat-accent]': 'picker && picker.color === "accent"',
|
|
678
|
-
'[class.mat-warn]': 'picker && picker.color === "warn"',
|
|
679
|
-
'(focus)': '_button.focus()',
|
|
680
|
-
},
|
|
681
|
-
exportAs: 'mtxColorpickerToggle',
|
|
682
|
-
encapsulation: ViewEncapsulation.None,
|
|
683
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
684
|
-
styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"]
|
|
685
|
-
},] }
|
|
686
|
-
];
|
|
687
|
-
/**
|
|
688
|
-
* @type {function(): !Array<(null|{
|
|
689
|
-
* type: ?,
|
|
690
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
691
|
-
* })>}
|
|
692
|
-
* @nocollapse
|
|
693
|
-
*/
|
|
694
|
-
MtxColorpickerToggle.ctorParameters = () => [
|
|
695
|
-
{ type: ChangeDetectorRef }
|
|
696
|
-
];
|
|
697
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
698
|
-
MtxColorpickerToggle.propDecorators = {
|
|
699
|
-
picker: [{ type: Input, args: ['for',] }],
|
|
700
|
-
tabIndex: [{ type: Input }],
|
|
701
|
-
disabled: [{ type: Input }],
|
|
702
|
-
disableRipple: [{ type: Input }],
|
|
703
|
-
_customIcon: [{ type: ContentChild, args: [MtxColorpickerToggleIcon,] }],
|
|
704
|
-
_button: [{ type: ViewChild, args: ['button',] }]
|
|
705
|
-
};
|
|
646
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpicker, deps: [{ token: i3.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MTX_COLORPICKER_SCROLL_STRATEGY }, { token: i4.Directionality, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
647
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpicker, selector: "mtx-colorpicker", inputs: { content: "content", disabled: "disabled", xPosition: "xPosition", yPosition: "yPosition", restoreFocus: "restoreFocus", opened: "opened", color: "color", format: "format" }, outputs: { openedStream: "opened", closedStream: "closed" }, exportAs: ["mtxColorpicker"], usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpicker, decorators: [{
|
|
649
|
+
type: Component,
|
|
650
|
+
args: [{
|
|
651
|
+
selector: 'mtx-colorpicker',
|
|
652
|
+
template: '',
|
|
653
|
+
exportAs: 'mtxColorpicker',
|
|
654
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
655
|
+
encapsulation: ViewEncapsulation.None,
|
|
656
|
+
}]
|
|
657
|
+
}], ctorParameters: function () { return [{ type: i3.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
658
|
+
type: Inject,
|
|
659
|
+
args: [MTX_COLORPICKER_SCROLL_STRATEGY]
|
|
660
|
+
}] }, { type: i4.Directionality, decorators: [{
|
|
661
|
+
type: Optional
|
|
662
|
+
}] }, { type: undefined, decorators: [{
|
|
663
|
+
type: Optional
|
|
664
|
+
}, {
|
|
665
|
+
type: Inject,
|
|
666
|
+
args: [DOCUMENT]
|
|
667
|
+
}] }]; }, propDecorators: { content: [{
|
|
668
|
+
type: Input
|
|
669
|
+
}], openedStream: [{
|
|
670
|
+
type: Output,
|
|
671
|
+
args: ['opened']
|
|
672
|
+
}], closedStream: [{
|
|
673
|
+
type: Output,
|
|
674
|
+
args: ['closed']
|
|
675
|
+
}], disabled: [{
|
|
676
|
+
type: Input
|
|
677
|
+
}], xPosition: [{
|
|
678
|
+
type: Input
|
|
679
|
+
}], yPosition: [{
|
|
680
|
+
type: Input
|
|
681
|
+
}], restoreFocus: [{
|
|
682
|
+
type: Input
|
|
683
|
+
}], opened: [{
|
|
684
|
+
type: Input
|
|
685
|
+
}], color: [{
|
|
686
|
+
type: Input
|
|
687
|
+
}], format: [{
|
|
688
|
+
type: Input
|
|
689
|
+
}] } });
|
|
706
690
|
|
|
707
691
|
class MtxColorpickerModule {
|
|
708
692
|
}
|
|
709
|
-
/** @
|
|
710
|
-
MtxColorpickerModule
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
693
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
694
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, declarations: [MtxColorpicker,
|
|
695
|
+
MtxColorpickerContent,
|
|
696
|
+
MtxColorpickerInput,
|
|
697
|
+
MtxColorpickerToggle,
|
|
698
|
+
MtxColorpickerToggleIcon], imports: [CommonModule,
|
|
699
|
+
OverlayModule,
|
|
700
|
+
A11yModule,
|
|
701
|
+
PortalModule,
|
|
702
|
+
MatButtonModule,
|
|
703
|
+
ColorChromeModule], exports: [MtxColorpicker,
|
|
704
|
+
MtxColorpickerContent,
|
|
705
|
+
MtxColorpickerInput,
|
|
706
|
+
MtxColorpickerToggle,
|
|
707
|
+
MtxColorpickerToggleIcon] });
|
|
708
|
+
/** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
|
|
709
|
+
CommonModule,
|
|
710
|
+
OverlayModule,
|
|
711
|
+
A11yModule,
|
|
712
|
+
PortalModule,
|
|
713
|
+
MatButtonModule,
|
|
714
|
+
ColorChromeModule,
|
|
715
|
+
]] });
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, decorators: [{
|
|
717
|
+
type: NgModule,
|
|
718
|
+
args: [{
|
|
719
|
+
imports: [
|
|
720
|
+
CommonModule,
|
|
721
|
+
OverlayModule,
|
|
722
|
+
A11yModule,
|
|
723
|
+
PortalModule,
|
|
724
|
+
MatButtonModule,
|
|
725
|
+
ColorChromeModule,
|
|
726
|
+
],
|
|
727
|
+
exports: [
|
|
728
|
+
MtxColorpicker,
|
|
729
|
+
MtxColorpickerContent,
|
|
730
|
+
MtxColorpickerInput,
|
|
731
|
+
MtxColorpickerToggle,
|
|
732
|
+
MtxColorpickerToggleIcon,
|
|
733
|
+
],
|
|
734
|
+
declarations: [
|
|
735
|
+
MtxColorpicker,
|
|
736
|
+
MtxColorpickerContent,
|
|
737
|
+
MtxColorpickerInput,
|
|
738
|
+
MtxColorpickerToggle,
|
|
739
|
+
MtxColorpickerToggleIcon,
|
|
740
|
+
],
|
|
741
|
+
providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],
|
|
742
|
+
}]
|
|
743
|
+
}] });
|
|
737
744
|
|
|
738
745
|
/**
|
|
739
746
|
* Generated bundle index. Do not edit.
|
|
740
747
|
*/
|
|
741
748
|
|
|
742
749
|
export { MTX_COLORPICKER_SCROLL_STRATEGY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MTX_COLORPICKER_VALIDATORS, MTX_COLORPICKER_VALUE_ACCESSOR, MtxColorpicker, MtxColorpickerContent, MtxColorpickerInput, MtxColorpickerModule, MtxColorpickerToggle, MtxColorpickerToggleIcon, mtxColorpickerAnimations };
|
|
743
|
-
//# sourceMappingURL=mtxColorpicker.
|
|
750
|
+
//# sourceMappingURL=mtxColorpicker.mjs.map
|