@ng-matero/extensions 12.5.2 → 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/_all-theme.scss +2 -0
- package/_index.scss +3 -1
- package/_theming.scss +3 -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 +5 -4
- 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.import.scss +2 -0
- package/colorpicker/_colorpicker-theme.scss +43 -0
- package/colorpicker/colorpicker-animations.d.ts +8 -0
- package/colorpicker/colorpicker-content.scss +4 -0
- package/colorpicker/colorpicker-input.d.ts +92 -0
- package/colorpicker/colorpicker-module.d.ts +15 -0
- package/colorpicker/colorpicker-toggle.d.ts +38 -0
- package/colorpicker/colorpicker-toggle.scss +23 -0
- package/colorpicker/colorpicker.d.ts +131 -0
- package/{extensions.d.ts → colorpicker/mtxColorpicker.d.ts} +1 -0
- package/colorpicker/package.json +10 -0
- package/colorpicker/public-api.d.ts +5 -0
- 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 +17 -5
- package/datetimepicker/calendar-body.d.ts +3 -0
- package/datetimepicker/calendar-body.scss +5 -4
- package/datetimepicker/calendar.d.ts +6 -11
- package/datetimepicker/clock.d.ts +13 -9
- package/datetimepicker/datetimepicker-animations.d.ts +7 -5
- package/datetimepicker/datetimepicker-input.d.ts +7 -2
- package/datetimepicker/datetimepicker-module.d.ts +20 -0
- package/datetimepicker/datetimepicker-toggle.d.ts +20 -2
- package/datetimepicker/datetimepicker-toggle.scss +23 -0
- package/datetimepicker/datetimepicker-types.d.ts +1 -0
- package/datetimepicker/datetimepicker.d.ts +73 -25
- package/datetimepicker/month-view.d.ts +7 -4
- package/datetimepicker/mtxDatetimepicker.d.ts +1 -2
- package/datetimepicker/multi-year-view.d.ts +7 -4
- package/datetimepicker/package.json +5 -6
- package/datetimepicker/public-api.d.ts +4 -1
- package/datetimepicker/year-view.d.ts +7 -4
- package/dialog/{dialog.config.d.ts → dialog-config.d.ts} +0 -0
- package/dialog/dialog.component.d.ts +4 -1
- package/dialog/dialog.d.ts +4 -1
- package/dialog/dialog.module.d.ts +10 -0
- package/dialog/mtxDialog.d.ts +1 -0
- package/dialog/package.json +5 -6
- package/dialog/public-api.d.ts +2 -2
- 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/esm2020/colorpicker/colorpicker-animations.mjs +16 -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/esm2020/colorpicker/mtxColorpicker.mjs +5 -0
- package/esm2020/colorpicker/public-api.mjs +6 -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/esm2020/datetimepicker/datetimepicker-animations.mjs +44 -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/esm2020/datetimepicker/mtxDatetimepicker.mjs +5 -0
- package/esm2020/datetimepicker/multi-year-view.mjs +214 -0
- package/esm2020/datetimepicker/public-api.mjs +14 -0
- package/esm2020/datetimepicker/year-view.mjs +138 -0
- package/{esm2015/dialog/dialog.config.js → esm2020/dialog/dialog-config.mjs} +1 -1
- 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/esm2020/dialog/public-api.mjs +5 -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} +1 -1
- 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/esm2020/split/utils.mjs +222 -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} +87 -98
- 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} +90 -88
- 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/fesm2020/mtxColorpicker.mjs +750 -0
- 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/fesm2020/mtxDatetimepicker.mjs +2462 -0
- 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 +5 -4
- 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 +7 -1
- package/loader/loader.module.d.ts +8 -0
- package/loader/mtxLoader.d.ts +1 -0
- package/loader/package.json +5 -6
- package/{color-picker/mtxColorPicker.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 +6 -3
- 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 +4 -1
- 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 +5 -5
- 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 +8 -7
- package/split/_split-theme.scss +10 -3
- package/split/interface.d.ts +1 -2
- 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 +12 -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 -1
- 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 -198
- 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 -285
- package/bundles/mtxCheckboxGroup.umd.js.map +0 -1
- package/bundles/mtxColorPicker.umd.js +0 -337
- 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 -2590
- package/bundles/mtxDatetimepicker.umd.js.map +0 -1
- package/bundles/mtxDialog.umd.js +0 -160
- package/bundles/mtxDialog.umd.js.map +0 -1
- package/bundles/mtxFormGroup.umd.js +0 -80
- package/bundles/mtxFormGroup.umd.js.map +0 -1
- package/bundles/mtxGrid.umd.js +0 -1583
- package/bundles/mtxGrid.umd.js.map +0 -1
- package/bundles/mtxLoader.umd.js +0 -104
- 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 -1430
- package/bundles/mtxSplit.umd.js.map +0 -1
- package/bundles/mtxText3d.umd.js +0 -92
- package/bundles/mtxText3d.umd.js.map +0 -1
- package/bundles/mtxTooltip.umd.js +0 -1078
- package/bundles/mtxTooltip.umd.js.map +0 -1
- package/button/mtxButton.metadata.json +0 -1
- package/checkbox-group/mtxCheckboxGroup.metadata.json +0 -1
- package/color-picker/color-picker.component.d.ts +0 -120
- package/color-picker/color-picker.module.d.ts +0 -2
- package/color-picker/mtxColorPicker.metadata.json +0 -1
- package/color-picker/package.json +0 -11
- package/color-picker/public-api.d.ts +0 -2
- package/column-resize/mtxColumnResize.metadata.json +0 -1
- package/core/mtxCore.metadata.json +0 -1
- package/datetimepicker/datetimepicker.module.d.ts +0 -2
- 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 -236
- package/esm2015/checkbox-group/checkbox-group.module.js +0 -17
- package/esm2015/color-picker/color-picker.component.js +0 -268
- package/esm2015/color-picker/color-picker.module.js +0 -26
- package/esm2015/color-picker/mtxColorPicker.js +0 -5
- package/esm2015/color-picker/public-api.js +0 -3
- 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 -75
- package/esm2015/datetimepicker/calendar.js +0 -629
- package/esm2015/datetimepicker/clock.js +0 -283
- package/esm2015/datetimepicker/datetimepicker-animations.js +0 -30
- package/esm2015/datetimepicker/datetimepicker-input.js +0 -333
- package/esm2015/datetimepicker/datetimepicker-toggle.js +0 -81
- package/esm2015/datetimepicker/datetimepicker.js +0 -411
- package/esm2015/datetimepicker/datetimepicker.module.js +0 -49
- package/esm2015/datetimepicker/month-view.js +0 -149
- package/esm2015/datetimepicker/mtxDatetimepicker.js +0 -7
- package/esm2015/datetimepicker/multi-year-view.js +0 -214
- package/esm2015/datetimepicker/public-api.js +0 -11
- package/esm2015/datetimepicker/year-view.js +0 -140
- 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/dialog/public-api.js +0 -5
- 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 -47
- 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 -66
- 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 -620
- package/esm2015/split/split.module.js +0 -15
- package/esm2015/split/utils.js +0 -227
- package/esm2015/text3d/text3d.component.js +0 -53
- package/esm2015/text3d/text3d.module.js +0 -14
- package/esm2015/tooltip/tooltip-module.js +0 -20
- package/esm2015/tooltip/tooltip.js +0 -678
- 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 -256
- package/fesm2015/mtxCheckboxGroup.js.map +0 -1
- package/fesm2015/mtxColorPicker.js +0 -295
- 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 +0 -2355
- 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 -66
- 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 -87
- 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 -72
- 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
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'typography-utils';
|
|
3
|
+
@use '../theming/theming';
|
|
4
|
+
|
|
5
|
+
/// Defines a typography level from the Material Design spec.
|
|
6
|
+
/// @param {String} $font-size The font-size for this level.
|
|
7
|
+
/// @param {String | Number} $line-height The line-height for this level.
|
|
8
|
+
/// @param {String | Number} $font-weight The font-weight for this level.
|
|
9
|
+
/// @param {String} $font-family The font-family for this level.
|
|
10
|
+
/// @param {String} $letter-spacing The letter-spacing for this level.
|
|
11
|
+
/// @returns {Map} A map representing the definition of this typpographic level.
|
|
12
|
+
@function define-typography-level(
|
|
13
|
+
$font-size,
|
|
14
|
+
$line-height: $font-size,
|
|
15
|
+
$font-weight: 400,
|
|
16
|
+
$font-family: null,
|
|
17
|
+
$letter-spacing: normal) {
|
|
18
|
+
|
|
19
|
+
@return (
|
|
20
|
+
font-size: $font-size,
|
|
21
|
+
line-height: $line-height,
|
|
22
|
+
font-weight: $font-weight,
|
|
23
|
+
font-family: $font-family,
|
|
24
|
+
letter-spacing: $letter-spacing
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// Defines a collection of typography levels to configure typography for an application.
|
|
29
|
+
/// Any level not specified defaults to the values defined in the Material Design specification:
|
|
30
|
+
/// https://material.io/guidelines/style/typography.html.
|
|
31
|
+
///
|
|
32
|
+
/// Note that the Material Design specification does not describe explicit letter-spacing values.
|
|
33
|
+
/// The values here come from reverse engineering the Material Design examples.
|
|
34
|
+
/// @param {String} $font-family Default font-family for levels that don't specify font-family.
|
|
35
|
+
/// @param {Map} $display-4 Configuration for the "display-4" typographic level.
|
|
36
|
+
/// @param {Map} $display-3 Configuration for the "display-3" typographic level.
|
|
37
|
+
/// @param {Map} $display-2 Configuration for the "display-2" typographic level.
|
|
38
|
+
/// @param {Map} $display-1 Configuration for the "display-1" typographic level.
|
|
39
|
+
/// @param {Map} $headline Configuration for the "headline" typographic level.
|
|
40
|
+
/// @param {Map} $title Configuration for the "title" typographic level.
|
|
41
|
+
/// @param {Map} $subheading-2 Configuration for the "subheading-2" typographic level.
|
|
42
|
+
/// @param {Map} $subheading-1 Configuration for the "subheading-1" typographic level.
|
|
43
|
+
/// @param {Map} $body-2 Configuration for the "body-2" typographic level.
|
|
44
|
+
/// @param {Map} $body-1 Configuration for the "body-1" typographic level.
|
|
45
|
+
/// @param {Map} $caption Configuration for the "caption" typographic level.
|
|
46
|
+
/// @param {Map} $button Configuration for the "button" typographic level.
|
|
47
|
+
/// @param {Map} $input Configuration for the "input" typographic level.
|
|
48
|
+
/// @returns {Map} A typography config for the application.
|
|
49
|
+
@function define-typography-config(
|
|
50
|
+
$font-family: 'Roboto, "Helvetica Neue", sans-serif',
|
|
51
|
+
$display-4: define-typography-level(112px, 112px, 300, $letter-spacing: -.05em),
|
|
52
|
+
$display-3: define-typography-level(56px, 56px, 400, $letter-spacing: -.02em),
|
|
53
|
+
$display-2: define-typography-level(45px, 48px, 400, $letter-spacing: -.005em),
|
|
54
|
+
$display-1: define-typography-level(34px, 40px, 400),
|
|
55
|
+
$headline: define-typography-level(24px, 32px, 400),
|
|
56
|
+
$title: define-typography-level(20px, 32px, 500),
|
|
57
|
+
$subheading-2: define-typography-level(16px, 28px, 400),
|
|
58
|
+
$subheading-1: define-typography-level(15px, 24px, 400),
|
|
59
|
+
$body-2: define-typography-level(14px, 24px, 500),
|
|
60
|
+
$body-1: define-typography-level(14px, 20px, 400),
|
|
61
|
+
$caption: define-typography-level(12px, 20px, 400),
|
|
62
|
+
$button: define-typography-level(14px, 14px, 500),
|
|
63
|
+
|
|
64
|
+
$input: define-typography-level(inherit, 1.125, 400)
|
|
65
|
+
) {
|
|
66
|
+
|
|
67
|
+
// Declare an initial map with all of the levels.
|
|
68
|
+
$config: (
|
|
69
|
+
display-4: $display-4,
|
|
70
|
+
display-3: $display-3,
|
|
71
|
+
display-2: $display-2,
|
|
72
|
+
display-1: $display-1,
|
|
73
|
+
headline: $headline,
|
|
74
|
+
title: $title,
|
|
75
|
+
subheading-2: $subheading-2,
|
|
76
|
+
subheading-1: $subheading-1,
|
|
77
|
+
body-2: $body-2,
|
|
78
|
+
body-1: $body-1,
|
|
79
|
+
caption: $caption,
|
|
80
|
+
button: $button,
|
|
81
|
+
input: $input,
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
// Loop through the levels and set the `font-family` of the ones that don't have one to the base.
|
|
85
|
+
// Note that Sass can't modify maps in place, which means that we need to merge and re-assign.
|
|
86
|
+
@each $key, $level in $config {
|
|
87
|
+
@if map.get($level, font-family) == null {
|
|
88
|
+
$new-level: map.merge($level, (font-family: $font-family));
|
|
89
|
+
$config: map.merge($config, ($key: $new-level));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Add the base font family to the config.
|
|
94
|
+
@return map.merge($config, (font-family: $font-family));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Whether a config is for the Material Design 2018 typography system.
|
|
98
|
+
@function private-typography-is-2018-config($config) {
|
|
99
|
+
@return map.get($config, headline-1) != null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Whether a config is for the Material Design 2014 typography system.
|
|
103
|
+
@function private-typography-is-2014-config($config) {
|
|
104
|
+
@return map.get($config, headline) != null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Given a config for either the 2014 or 2018 Material Design typography system,
|
|
108
|
+
// produces a normalized typography config for the 2014 Material Design typography system.
|
|
109
|
+
// 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
|
|
110
|
+
// 2018 - https://material.io/design/typography/the-type-system.html#type-scale
|
|
111
|
+
//
|
|
112
|
+
// Components using this function should be migrated to normalize to the 2018 style config instead.
|
|
113
|
+
// New components should not use this function.
|
|
114
|
+
@function private-typography-to-2014-config($config) {
|
|
115
|
+
@if $config == null {
|
|
116
|
+
@return null;
|
|
117
|
+
}
|
|
118
|
+
@if not private-typography-is-2014-config($config) {
|
|
119
|
+
$args: (
|
|
120
|
+
display-4: map.get($config, headline-1),
|
|
121
|
+
display-3: map.get($config, headline-2),
|
|
122
|
+
display-2: map.get($config, headline-3),
|
|
123
|
+
display-1: map.get($config, headline-4),
|
|
124
|
+
headline: map.get($config, headline-5),
|
|
125
|
+
title: map.get($config, headline-6),
|
|
126
|
+
subheading-2: map.get($config, subtitle-1),
|
|
127
|
+
subheading-1: map.get($config, subtitle-2),
|
|
128
|
+
body-2: map.get($config, body-1),
|
|
129
|
+
body-1: map.get($config, body-2),
|
|
130
|
+
button: map.get($config, button),
|
|
131
|
+
caption: map.get($config, caption),
|
|
132
|
+
);
|
|
133
|
+
$non-null-args: ();
|
|
134
|
+
@each $key, $value in $args {
|
|
135
|
+
@if $value != null {
|
|
136
|
+
$non-null-args: map.merge($non-null-args, ($key: $value));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
@return define-typography-config($non-null-args...);
|
|
140
|
+
}
|
|
141
|
+
@return $config;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Given a config for either the 2014 or 2018 Material Design typography system,
|
|
145
|
+
// produces a normalized typography config for the 2018 Material Design typography system.
|
|
146
|
+
// 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
|
|
147
|
+
// 2018 - https://material.io/design/typography/the-type-system.html#type-scale
|
|
148
|
+
@function private-typography-to-2018-config($config) {
|
|
149
|
+
@if $config == null {
|
|
150
|
+
@return null;
|
|
151
|
+
}
|
|
152
|
+
@if not private-typography-is-2018-config($config) {
|
|
153
|
+
@return (
|
|
154
|
+
headline-1: map.get($config, display-4),
|
|
155
|
+
headline-2: map.get($config, display-3),
|
|
156
|
+
headline-3: map.get($config, display-2),
|
|
157
|
+
headline-4: map.get($config, display-1),
|
|
158
|
+
headline-5: map.get($config, headline),
|
|
159
|
+
headline-6: map.get($config, title),
|
|
160
|
+
subtitle-1: map.get($config, subheading-2),
|
|
161
|
+
|
|
162
|
+
subtitle-2: map.get($config, body-2),
|
|
163
|
+
body-1: map.get($config, subheading-1),
|
|
164
|
+
|
|
165
|
+
body-2: map.get($config, body-1),
|
|
166
|
+
button: map.get($config, button),
|
|
167
|
+
caption: map.get($config, caption),
|
|
168
|
+
overline: if(map.get($config, overline), map.get($config, overline), define-typography-level(12px, 32px, 500))
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
@return $config;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/// Emits baseline typographic styles based on a given config.
|
|
175
|
+
/// @param {Map} $config-or-theme A typography config for an entire theme.
|
|
176
|
+
/// @param {String} $selector Ancestor selector under which native elements, such as h1, will
|
|
177
|
+
/// be styled.
|
|
178
|
+
@mixin typography-hierarchy($config-or-theme, $selector: '.mat-typography') {
|
|
179
|
+
$config: private-typography-to-2014-config(theming.get-typography-config($config-or-theme));
|
|
180
|
+
|
|
181
|
+
.mat-h1, .mat-headline, #{$selector} h1 {
|
|
182
|
+
@include typography-utils.typography-level($config, headline);
|
|
183
|
+
|
|
184
|
+
margin: 0 0 16px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.mat-h2, .mat-title, #{$selector} h2 {
|
|
188
|
+
@include typography-utils.typography-level($config, title);
|
|
189
|
+
|
|
190
|
+
margin: 0 0 16px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mat-h3, .mat-subheading-2, #{$selector} h3 {
|
|
194
|
+
@include typography-utils.typography-level($config, subheading-2);
|
|
195
|
+
|
|
196
|
+
margin: 0 0 16px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.mat-h4, .mat-subheading-1, #{$selector} h4 {
|
|
200
|
+
@include typography-utils.typography-level($config, subheading-1);
|
|
201
|
+
|
|
202
|
+
margin: 0 0 16px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Note: the spec doesn't have anything that would correspond to h5 and h6, but we add these for
|
|
206
|
+
// consistency. The font sizes come from the Chrome user agent styles which have h5 at 0.83em
|
|
207
|
+
// and h6 at 0.67em.
|
|
208
|
+
.mat-h5, #{$selector} h5 {
|
|
209
|
+
@include typography-utils.font-shorthand(
|
|
210
|
+
|
|
211
|
+
calc(#{typography-utils.font-size($config, body-1)} * .83),
|
|
212
|
+
typography-utils.font-weight($config, body-1),
|
|
213
|
+
typography-utils.line-height($config, body-1),
|
|
214
|
+
typography-utils.font-family($config, body-1)
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
margin: 0 0 12px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.mat-h6, #{$selector} h6 {
|
|
221
|
+
@include typography-utils.font-shorthand(
|
|
222
|
+
|
|
223
|
+
calc(#{typography-utils.font-size($config, body-1)} * .67),
|
|
224
|
+
typography-utils.font-weight($config, body-1),
|
|
225
|
+
typography-utils.line-height($config, body-1),
|
|
226
|
+
typography-utils.font-family($config, body-1)
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
margin: 0 0 12px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.mat-body-strong,
|
|
233
|
+
.mat-body-2 {
|
|
234
|
+
@include typography-utils.typography-level($config, body-2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.mat-body, .mat-body-1, #{$selector} {
|
|
238
|
+
@include typography-utils.typography-level($config, body-1);
|
|
239
|
+
|
|
240
|
+
p {
|
|
241
|
+
margin: 0 0 12px;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.mat-small,
|
|
246
|
+
.mat-caption {
|
|
247
|
+
@include typography-utils.typography-level($config, caption);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.mat-display-4, #{$selector} .mat-display-4 {
|
|
251
|
+
@include typography-utils.typography-level($config, display-4);
|
|
252
|
+
|
|
253
|
+
margin: 0 0 56px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.mat-display-3, #{$selector} .mat-display-3 {
|
|
257
|
+
@include typography-utils.typography-level($config, display-3);
|
|
258
|
+
|
|
259
|
+
margin: 0 0 64px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.mat-display-2, #{$selector} .mat-display-2 {
|
|
263
|
+
@include typography-utils.typography-level($config, display-2);
|
|
264
|
+
|
|
265
|
+
margin: 0 0 64px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.mat-display-1, #{$selector} .mat-display-1 {
|
|
269
|
+
@include typography-utils.typography-level($config, display-1);
|
|
270
|
+
|
|
271
|
+
margin: 0 0 64px;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
5
|
-
@use '
|
|
6
|
-
@use '
|
|
2
|
+
@use '../core/theming/theming';
|
|
3
|
+
@use '../core/theming/palette';
|
|
4
|
+
@use '../core/style/private';
|
|
5
|
+
@use '../core/typography/typography';
|
|
6
|
+
@use '../core/typography/typography-utils';
|
|
7
7
|
|
|
8
8
|
$selected-today-box-shadow-width: 1px;
|
|
9
9
|
$calendar-body-font-size: 13px !default;
|
|
@@ -120,6 +120,18 @@ $clock-font-size: 14px !default;
|
|
|
120
120
|
color: $disabled-color;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
+
|
|
124
|
+
.mtx-datetimepicker-toggle-active {
|
|
125
|
+
color: theming.get-color-from-palette(map.get($config, primary), text);
|
|
126
|
+
|
|
127
|
+
&.mat-accent {
|
|
128
|
+
color: theming.get-color-from-palette(map.get($config, accent), text);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.mat-warn {
|
|
132
|
+
color: theming.get-color-from-palette(map.get($config, warn), text);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
123
135
|
}
|
|
124
136
|
|
|
125
137
|
@mixin typography($config-or-theme) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* An internal class that represents the data corresponding to a single calendar cell.
|
|
4
5
|
* @docs-private
|
|
@@ -37,4 +38,6 @@ export declare class MtxCalendarBody {
|
|
|
37
38
|
get _firstRowOffset(): number;
|
|
38
39
|
_cellClicked(cell: MtxCalendarCell): void;
|
|
39
40
|
_isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendarBody, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": "label"; "rows": "rows"; "todayValue": "todayValue"; "selectedValue": "selectedValue"; "labelMinRequiredCells": "labelMinRequiredCells"; "numCols": "numCols"; "allowDisabledSelection": "allowDisabledSelection"; "activeCell": "activeCell"; }, { "selectedValueChange": "selectedValueChange"; }, never, never>;
|
|
40
43
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../core/style/private';
|
|
2
3
|
|
|
3
4
|
$calendar-body-label-padding-start: 5% !default;
|
|
4
|
-
$calendar-body-label-side-padding:
|
|
5
|
+
$calendar-body-label-side-padding: math.div(33%, 7) !default;
|
|
5
6
|
$calendar-body-cell-min-size: 32px !default;
|
|
6
|
-
$calendar-body-cell-size:
|
|
7
|
-
$calendar-body-cell-padding:
|
|
7
|
+
$calendar-body-cell-size: math.div(100%, 7) !default;
|
|
8
|
+
$calendar-body-cell-padding: math.div($calendar-body-cell-size, 2) !default;
|
|
8
9
|
$calendar-body-cell-content-margin: 5% !default;
|
|
9
10
|
$calendar-body-cell-content-border-width: 1px !default;
|
|
10
11
|
$calendar-body-cell-radius: 999px !default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
3
|
import { MatDatepickerIntl } from '@angular/material/datepicker';
|
|
4
|
-
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
5
|
-
import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
4
|
+
import { DatetimeAdapter, MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
6
5
|
import { MtxClockView } from './clock';
|
|
7
|
-
import { MtxDatetimepickerType } from './datetimepicker';
|
|
8
6
|
import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
|
|
7
|
+
import { MtxDatetimepickerType } from './datetimepicker-types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
9
|
export declare type MtxCalendarView = 'clock' | 'month' | 'year' | 'multi-year';
|
|
10
10
|
/**
|
|
11
11
|
* A calendar that is used as part of the datetimepicker.
|
|
@@ -17,7 +17,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
17
17
|
private _ngZone;
|
|
18
18
|
private _adapter;
|
|
19
19
|
private _dateFormats;
|
|
20
|
-
_userSelection: EventEmitter<void>;
|
|
21
20
|
get multiYearSelector(): boolean;
|
|
22
21
|
set multiYearSelector(value: boolean);
|
|
23
22
|
private _multiYearSelector;
|
|
@@ -30,19 +29,13 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
30
29
|
timeInterval: number;
|
|
31
30
|
/** A function used to filter which dates are selectable. */
|
|
32
31
|
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
33
|
-
ariaLabel: string;
|
|
34
|
-
ariaNextMonthLabel: string;
|
|
35
|
-
ariaPrevMonthLabel: string;
|
|
36
|
-
ariaNextYearLabel: string;
|
|
37
|
-
ariaPrevYearLabel: string;
|
|
38
|
-
ariaNextMultiYearLabel: string;
|
|
39
|
-
ariaPrevMultiYearLabel: string;
|
|
40
32
|
/** Prevent user to select same date time */
|
|
41
33
|
preventSameDateTimeSelection: boolean;
|
|
42
34
|
/** Emits when the currently selected date changes. */
|
|
43
35
|
selectedChange: EventEmitter<D>;
|
|
44
36
|
/** Emits when the view has been changed. */
|
|
45
37
|
viewChanged: EventEmitter<MtxCalendarView>;
|
|
38
|
+
_userSelection: EventEmitter<void>;
|
|
46
39
|
_AMPM: string;
|
|
47
40
|
_clockView: MtxClockView;
|
|
48
41
|
_calendarState: string;
|
|
@@ -142,4 +135,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
142
135
|
private _2digit;
|
|
143
136
|
static ngAcceptInputType_multiYearSelector: BooleanInput;
|
|
144
137
|
static ngAcceptInputType_twelvehour: BooleanInput;
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendar<any>, [null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendar<any>, "mtx-calendar", ["mtxCalendar"], { "multiYearSelector": "multiYearSelector"; "twelvehour": "twelvehour"; "startView": "startView"; "timeInterval": "timeInterval"; "dateFilter": "dateFilter"; "preventSameDateTimeSelection": "preventSameDateTimeSelection"; "type": "type"; "startAt": "startAt"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; "_userSelection": "_userSelection"; }, never, never>;
|
|
145
140
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
2
|
import { AfterContentInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
3
|
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
3
4
|
import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
4
6
|
export declare const CLOCK_RADIUS = 50;
|
|
5
7
|
export declare const CLOCK_INNER_RADIUS = 27.5;
|
|
6
8
|
export declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
@@ -13,14 +15,16 @@ export declare type MtxClockView = 'hour' | 'minute';
|
|
|
13
15
|
export declare class MtxClock<D> implements AfterContentInit {
|
|
14
16
|
private _element;
|
|
15
17
|
private _adapter;
|
|
16
|
-
_userSelection: EventEmitter<void>;
|
|
17
18
|
/** A function used to filter which dates are selectable. */
|
|
18
19
|
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
19
20
|
interval: number;
|
|
20
21
|
twelvehour: boolean;
|
|
21
22
|
/** Emits when the currently selected date changes. */
|
|
22
23
|
selectedChange: EventEmitter<D>;
|
|
24
|
+
/** Emits when any date is activated. */
|
|
23
25
|
activeDateChange: EventEmitter<D>;
|
|
26
|
+
/** Emits when any date is selected. */
|
|
27
|
+
readonly _userSelection: EventEmitter<void>;
|
|
24
28
|
/** Hours and Minutes representing the clock view. */
|
|
25
29
|
_hours: any[];
|
|
26
30
|
_minutes: any[];
|
|
@@ -32,32 +36,29 @@ export declare class MtxClock<D> implements AfterContentInit {
|
|
|
32
36
|
private mouseMoveListener;
|
|
33
37
|
private mouseUpListener;
|
|
34
38
|
constructor(_element: ElementRef, _adapter: DatetimeAdapter<D>);
|
|
35
|
-
private _activeDate;
|
|
36
39
|
/**
|
|
37
40
|
* The date to display in this clock view.
|
|
38
41
|
*/
|
|
39
42
|
get activeDate(): D;
|
|
40
43
|
set activeDate(value: D);
|
|
41
|
-
private
|
|
44
|
+
private _activeDate;
|
|
42
45
|
/** The currently selected date. */
|
|
43
46
|
get selected(): D | null;
|
|
44
47
|
set selected(value: D | null);
|
|
45
|
-
private
|
|
48
|
+
private _selected;
|
|
46
49
|
/** The minimum selectable date. */
|
|
47
50
|
get minDate(): D | null;
|
|
48
51
|
set minDate(value: D | null);
|
|
49
|
-
private
|
|
52
|
+
private _minDate;
|
|
50
53
|
/** The maximum selectable date. */
|
|
51
54
|
get maxDate(): D | null;
|
|
52
55
|
set maxDate(value: D | null);
|
|
56
|
+
private _maxDate;
|
|
53
57
|
/** Whether the clock should be started in hour or minute view. */
|
|
54
58
|
set startView(value: MtxClockView);
|
|
55
59
|
get _hand(): any;
|
|
56
60
|
ngAfterContentInit(): void;
|
|
57
|
-
/**
|
|
58
|
-
* TODO: use `fromEvent` of rxjs.
|
|
59
|
-
* Handles mousedown events on the clock body.
|
|
60
|
-
*/
|
|
61
|
+
/** Handles mousedown events on the clock body. */
|
|
61
62
|
_handleMousedown(event: any): void;
|
|
62
63
|
_handleMousemove(event: any): void;
|
|
63
64
|
_handleMouseup(): void;
|
|
@@ -68,4 +69,7 @@ export declare class MtxClock<D> implements AfterContentInit {
|
|
|
68
69
|
* @param event
|
|
69
70
|
*/
|
|
70
71
|
private setTime;
|
|
72
|
+
static ngAcceptInputType_twelvehour: BooleanInput;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxClock<any>, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxClock<any>, "mtx-clock", ["mtxClock"], { "dateFilter": "dateFilter"; "interval": "interval"; "twelvehour": "twelvehour"; "activeDate": "activeDate"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; "startView": "startView"; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; }, never, never>;
|
|
71
75
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* panel has transformed in.
|
|
3
|
+
* Animations used by the Material datepicker.
|
|
4
|
+
* @docs-private
|
|
6
5
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
6
|
+
export declare const mtxDatetimepickerAnimations: {
|
|
7
|
+
readonly transformPanel: AnimationTriggerMetadata;
|
|
8
|
+
readonly fadeInCalendar: AnimationTriggerMetadata;
|
|
9
|
+
readonly slideCalendar: AnimationTriggerMetadata;
|
|
10
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { ThemePalette } from '@angular/material/core';
|
|
4
5
|
import { MatFormField } from '@angular/material/form-field';
|
|
5
|
-
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
6
|
-
import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
6
|
+
import { DatetimeAdapter, MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
7
7
|
import { MtxDatetimepicker } from './datetimepicker';
|
|
8
8
|
import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
export declare const MAT_DATETIMEPICKER_VALUE_ACCESSOR: any;
|
|
10
11
|
export declare const MAT_DATETIMEPICKER_VALIDATORS: any;
|
|
11
12
|
/**
|
|
@@ -98,5 +99,9 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
|
|
|
98
99
|
private _validator;
|
|
99
100
|
/** Formats a value and sets it on the input element. */
|
|
100
101
|
private _formatValue;
|
|
102
|
+
/** Returns the palette used by the input's form field, if any. */
|
|
103
|
+
getThemePalette(): ThemePalette;
|
|
101
104
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerInput<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerInput<any>, "input[mtxDatetimepicker]", ["mtxDatetimepickerInput"], { "mtxDatetimepicker": "mtxDatetimepicker"; "mtxDatetimepickerFilter": "mtxDatetimepickerFilter"; "value": "value"; "min": "min"; "max": "max"; "disabled": "disabled"; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never>;
|
|
102
107
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./calendar";
|
|
3
|
+
import * as i2 from "./calendar-body";
|
|
4
|
+
import * as i3 from "./clock";
|
|
5
|
+
import * as i4 from "./datetimepicker";
|
|
6
|
+
import * as i5 from "./datetimepicker-toggle";
|
|
7
|
+
import * as i6 from "./datetimepicker-input";
|
|
8
|
+
import * as i7 from "./month-view";
|
|
9
|
+
import * as i8 from "./year-view";
|
|
10
|
+
import * as i9 from "./multi-year-view";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/material/button";
|
|
13
|
+
import * as i12 from "@angular/cdk/overlay";
|
|
14
|
+
import * as i13 from "@angular/cdk/a11y";
|
|
15
|
+
import * as i14 from "@angular/cdk/portal";
|
|
16
|
+
export declare class MtxDatetimepickerModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxDatetimepickerModule, [typeof i1.MtxCalendar, typeof i2.MtxCalendarBody, typeof i3.MtxClock, typeof i4.MtxDatetimepicker, typeof i5.MtxDatetimepickerToggle, typeof i5.MtxDatetimepickerToggleIcon, typeof i6.MtxDatetimepickerInput, typeof i4.MtxDatetimepickerContent, typeof i7.MtxMonthView, typeof i8.MtxYearView, typeof i9.MtxMultiYearView], [typeof i10.CommonModule, typeof i11.MatButtonModule, typeof i12.OverlayModule, typeof i13.A11yModule, typeof i14.PortalModule], [typeof i1.MtxCalendar, typeof i2.MtxCalendarBody, typeof i3.MtxClock, typeof i4.MtxDatetimepicker, typeof i5.MtxDatetimepickerToggle, typeof i5.MtxDatetimepickerToggleIcon, typeof i6.MtxDatetimepickerInput, typeof i4.MtxDatetimepickerContent, typeof i7.MtxMonthView, typeof i8.MtxYearView, typeof i9.MtxMultiYearView]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MtxDatetimepickerModule>;
|
|
20
|
+
}
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { MatButton } from '@angular/material/button';
|
|
3
4
|
import { MatDatepickerIntl } from '@angular/material/datepicker';
|
|
4
5
|
import { MtxDatetimepicker } from './datetimepicker';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Can be used to override the icon of a `mtxDatetimepickerToggle`. */
|
|
8
|
+
export declare class MtxDatetimepickerToggleIcon {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggleIcon, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerToggleIcon, "[mtxDatetimepickerToggleIcon]", never, {}, {}, never>;
|
|
11
|
+
}
|
|
5
12
|
export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
6
13
|
_intl: MatDatepickerIntl;
|
|
7
14
|
private _changeDetectorRef;
|
|
15
|
+
private _stateChanges;
|
|
8
16
|
/** Datetimepicker instance that the button will toggle. */
|
|
9
17
|
datetimepicker: MtxDatetimepicker<D>;
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
/** Tabindex for the toggle. */
|
|
19
|
+
tabIndex: number;
|
|
12
20
|
/** Whether the toggle button is disabled. */
|
|
13
21
|
get disabled(): boolean;
|
|
14
22
|
set disabled(value: boolean);
|
|
15
23
|
private _disabled;
|
|
24
|
+
/** Whether ripples on the toggle should be disabled. */
|
|
25
|
+
disableRipple: boolean;
|
|
26
|
+
/** Custom icon set by the consumer. */
|
|
27
|
+
_customIcon: MtxDatetimepickerToggleIcon;
|
|
28
|
+
/** Underlying button element. */
|
|
29
|
+
_button: MatButton;
|
|
30
|
+
constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef);
|
|
16
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
32
|
ngOnDestroy(): void;
|
|
18
33
|
ngAfterContentInit(): void;
|
|
19
34
|
_open(event: Event): void;
|
|
20
35
|
private _watchStateChanges;
|
|
21
36
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
37
|
+
static ngAcceptInputType_disableRipple: BooleanInput;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggle<any>, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerToggle<any>, "mtx-datetimepicker-toggle", ["mtxDatetimepickerToggle"], { "datetimepicker": "for"; "tabIndex": "tabIndex"; "disabled": "disabled"; "disableRipple": "disableRipple"; }, {}, ["_customIcon"], ["[mtxDatetimepickerToggleIcon]"]>;
|
|
22
40
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.mat-form-field-appearance-legacy {
|
|
2
|
+
.mat-form-field-prefix,
|
|
3
|
+
.mat-form-field-suffix {
|
|
4
|
+
.mtx-datetimepicker-toggle-default-icon {
|
|
5
|
+
width: 1em;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mat-form-field:not(.mat-form-field-appearance-legacy) {
|
|
11
|
+
.mat-form-field-prefix,
|
|
12
|
+
.mat-form-field-suffix {
|
|
13
|
+
.mtx-datetimepicker-toggle-default-icon {
|
|
14
|
+
display: block;
|
|
15
|
+
width: 1.5em;
|
|
16
|
+
height: 1.5em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.mat-icon-button .mtx-datetimepicker-toggle-default-icon {
|
|
20
|
+
margin: auto;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type MtxDatetimepickerType = 'date' | 'time' | 'month' | 'year' | 'datetime';
|