@ng-matero/extensions 12.5.3 → 13.0.1
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 +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.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} +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/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} +85 -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} +85 -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/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 +178 -15
- package/popover/_popover-theme.scss +1 -1
- package/popover/mtxPopover.d.ts +1 -0
- package/popover/package.json +5 -6
- package/popover/popover-module.d.ts +10 -0
- package/popover/popover-target.d.ts +3 -0
- package/popover/popover-trigger.d.ts +3 -0
- package/popover/popover.d.ts +3 -0
- package/progress/_progress-theme.scss +2 -2
- package/progress/mtxProgress.d.ts +1 -0
- package/progress/package.json +5 -6
- package/progress/progress.component.d.ts +3 -0
- package/progress/progress.module.d.ts +6 -0
- package/public-api.d.ts +2 -19
- package/select/_select-theme.scss +1 -1
- package/select/mtxSelect.d.ts +1 -0
- package/select/option.component.d.ts +3 -0
- package/select/package.json +5 -6
- package/select/select.component.d.ts +3 -0
- package/select/select.component.scss +1 -1
- package/select/select.module.d.ts +10 -0
- package/select/templates.directive.d.ts +23 -0
- package/slider/_slider-theme.scss +4 -4
- package/slider/mtxSlider.d.ts +1 -0
- package/slider/package.json +5 -6
- package/slider/slider-module.d.ts +7 -0
- package/slider/slider.d.ts +4 -1
- package/slider/slider.scss +7 -7
- package/split/_split-theme.scss +10 -3
- 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 -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 -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 -1581
- 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 -1432
- 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 -1081
- 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 -235
- 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 -622
- 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 -681
- 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 +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
package/bundles/mtxCore.umd.js
DELETED
|
@@ -1,670 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/core', ['exports', '@angular/core', '@angular/material/core'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-matero"] = global["ng-matero"] || {}, global["ng-matero"].extensions = global["ng-matero"].extensions || {}, global["ng-matero"].extensions.core = {}), global.ng.core, global.ng.material.core));
|
|
5
|
-
})(this, (function (exports, core$1, core) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from, pack) {
|
|
234
|
-
if (pack || arguments.length === 2)
|
|
235
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
-
if (ar || !(i in from)) {
|
|
237
|
-
if (!ar)
|
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
-
ar[i] = from[i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return to.concat(ar || from);
|
|
243
|
-
}
|
|
244
|
-
function __await(v) {
|
|
245
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
246
|
-
}
|
|
247
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
248
|
-
if (!Symbol.asyncIterator)
|
|
249
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
250
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
251
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
252
|
-
function verb(n) { if (g[n])
|
|
253
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
254
|
-
function resume(n, v) { try {
|
|
255
|
-
step(g[n](v));
|
|
256
|
-
}
|
|
257
|
-
catch (e) {
|
|
258
|
-
settle(q[0][3], e);
|
|
259
|
-
} }
|
|
260
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
261
|
-
function fulfill(value) { resume("next", value); }
|
|
262
|
-
function reject(value) { resume("throw", value); }
|
|
263
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
264
|
-
resume(q[0][0], q[0][1]); }
|
|
265
|
-
}
|
|
266
|
-
function __asyncDelegator(o) {
|
|
267
|
-
var i, p;
|
|
268
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
270
|
-
}
|
|
271
|
-
function __asyncValues(o) {
|
|
272
|
-
if (!Symbol.asyncIterator)
|
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
-
var m = o[Symbol.asyncIterator], i;
|
|
275
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
276
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
277
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
278
|
-
}
|
|
279
|
-
function __makeTemplateObject(cooked, raw) {
|
|
280
|
-
if (Object.defineProperty) {
|
|
281
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
cooked.raw = raw;
|
|
285
|
-
}
|
|
286
|
-
return cooked;
|
|
287
|
-
}
|
|
288
|
-
;
|
|
289
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
290
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
291
|
-
}) : function (o, v) {
|
|
292
|
-
o["default"] = v;
|
|
293
|
-
};
|
|
294
|
-
function __importStar(mod) {
|
|
295
|
-
if (mod && mod.__esModule)
|
|
296
|
-
return mod;
|
|
297
|
-
var result = {};
|
|
298
|
-
if (mod != null)
|
|
299
|
-
for (var k in mod)
|
|
300
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
301
|
-
__createBinding(result, mod, k);
|
|
302
|
-
__setModuleDefault(result, mod);
|
|
303
|
-
return result;
|
|
304
|
-
}
|
|
305
|
-
function __importDefault(mod) {
|
|
306
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
-
if (kind === "a" && !f)
|
|
310
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
314
|
-
}
|
|
315
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
-
if (kind === "m")
|
|
317
|
-
throw new TypeError("Private method is not writable");
|
|
318
|
-
if (kind === "a" && !f)
|
|
319
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
var DatetimeAdapter = /** @class */ (function (_super) {
|
|
326
|
-
__extends(DatetimeAdapter, _super);
|
|
327
|
-
function DatetimeAdapter(_delegate) {
|
|
328
|
-
var _this = _super.call(this) || this;
|
|
329
|
-
_this._delegate = _delegate;
|
|
330
|
-
return _this;
|
|
331
|
-
}
|
|
332
|
-
DatetimeAdapter.prototype.getValidDateOrNull = function (obj) {
|
|
333
|
-
return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;
|
|
334
|
-
};
|
|
335
|
-
DatetimeAdapter.prototype.compareDatetime = function (first, second, respectMinutePart) {
|
|
336
|
-
if (respectMinutePart === void 0) { respectMinutePart = true; }
|
|
337
|
-
return (this.compareDate(first, second) ||
|
|
338
|
-
this.getHour(first) - this.getHour(second) ||
|
|
339
|
-
(respectMinutePart && this.getMinute(first) - this.getMinute(second)));
|
|
340
|
-
};
|
|
341
|
-
DatetimeAdapter.prototype.sameDatetime = function (first, second) {
|
|
342
|
-
if (first && second) {
|
|
343
|
-
var firstValid = this.isValid(first);
|
|
344
|
-
var secondValid = this.isValid(second);
|
|
345
|
-
if (firstValid && secondValid) {
|
|
346
|
-
return !this.compareDatetime(first, second);
|
|
347
|
-
}
|
|
348
|
-
return firstValid === secondValid;
|
|
349
|
-
}
|
|
350
|
-
return first === second;
|
|
351
|
-
};
|
|
352
|
-
DatetimeAdapter.prototype.sameYear = function (first, second) {
|
|
353
|
-
return first && second && this.getYear(first) === this.getYear(second);
|
|
354
|
-
};
|
|
355
|
-
DatetimeAdapter.prototype.sameDay = function (first, second) {
|
|
356
|
-
return (first &&
|
|
357
|
-
second &&
|
|
358
|
-
this.getDate(first) === this.getDate(second) &&
|
|
359
|
-
this.sameMonthAndYear(first, second));
|
|
360
|
-
};
|
|
361
|
-
DatetimeAdapter.prototype.sameHour = function (first, second) {
|
|
362
|
-
return (first && second && this.getHour(first) === this.getHour(second) && this.sameDay(first, second));
|
|
363
|
-
};
|
|
364
|
-
DatetimeAdapter.prototype.sameMinute = function (first, second) {
|
|
365
|
-
return (first &&
|
|
366
|
-
second &&
|
|
367
|
-
this.getMinute(first) === this.getMinute(second) &&
|
|
368
|
-
this.sameHour(first, second));
|
|
369
|
-
};
|
|
370
|
-
DatetimeAdapter.prototype.sameMonthAndYear = function (first, second) {
|
|
371
|
-
if (first && second) {
|
|
372
|
-
var firstValid = this.isValid(first);
|
|
373
|
-
var secondValid = this.isValid(second);
|
|
374
|
-
if (firstValid && secondValid) {
|
|
375
|
-
return !(this.getYear(first) - this.getYear(second) || this.getMonth(first) - this.getMonth(second));
|
|
376
|
-
}
|
|
377
|
-
return firstValid === secondValid;
|
|
378
|
-
}
|
|
379
|
-
return first === second;
|
|
380
|
-
};
|
|
381
|
-
// delegate
|
|
382
|
-
DatetimeAdapter.prototype.clone = function (date) {
|
|
383
|
-
return this._delegate.clone(date);
|
|
384
|
-
};
|
|
385
|
-
DatetimeAdapter.prototype.addCalendarYears = function (date, years) {
|
|
386
|
-
return this._delegate.addCalendarYears(date, years);
|
|
387
|
-
};
|
|
388
|
-
DatetimeAdapter.prototype.addCalendarMonths = function (date, months) {
|
|
389
|
-
return this._delegate.addCalendarMonths(date, months);
|
|
390
|
-
};
|
|
391
|
-
DatetimeAdapter.prototype.addCalendarDays = function (date, days) {
|
|
392
|
-
return this._delegate.addCalendarDays(date, days);
|
|
393
|
-
};
|
|
394
|
-
DatetimeAdapter.prototype.getYear = function (date) {
|
|
395
|
-
return this._delegate.getYear(date);
|
|
396
|
-
};
|
|
397
|
-
DatetimeAdapter.prototype.getMonth = function (date) {
|
|
398
|
-
return this._delegate.getMonth(date);
|
|
399
|
-
};
|
|
400
|
-
DatetimeAdapter.prototype.getDate = function (date) {
|
|
401
|
-
return this._delegate.getDate(date);
|
|
402
|
-
};
|
|
403
|
-
DatetimeAdapter.prototype.getDayOfWeek = function (date) {
|
|
404
|
-
return this._delegate.getDayOfWeek(date);
|
|
405
|
-
};
|
|
406
|
-
DatetimeAdapter.prototype.getMonthNames = function (style) {
|
|
407
|
-
return this._delegate.getMonthNames(style);
|
|
408
|
-
};
|
|
409
|
-
DatetimeAdapter.prototype.getDateNames = function () {
|
|
410
|
-
return this._delegate.getDateNames();
|
|
411
|
-
};
|
|
412
|
-
DatetimeAdapter.prototype.getDayOfWeekNames = function (style) {
|
|
413
|
-
return this._delegate.getDayOfWeekNames(style);
|
|
414
|
-
};
|
|
415
|
-
DatetimeAdapter.prototype.getYearName = function (date) {
|
|
416
|
-
return this._delegate.getYearName(date);
|
|
417
|
-
};
|
|
418
|
-
DatetimeAdapter.prototype.getFirstDayOfWeek = function () {
|
|
419
|
-
return this._delegate.getFirstDayOfWeek();
|
|
420
|
-
};
|
|
421
|
-
DatetimeAdapter.prototype.getNumDaysInMonth = function (date) {
|
|
422
|
-
return this._delegate.getNumDaysInMonth(date);
|
|
423
|
-
};
|
|
424
|
-
DatetimeAdapter.prototype.createDate = function (year, month, date) {
|
|
425
|
-
return this._delegate.createDate(year, month, date);
|
|
426
|
-
};
|
|
427
|
-
DatetimeAdapter.prototype.today = function () {
|
|
428
|
-
return this._delegate.today();
|
|
429
|
-
};
|
|
430
|
-
DatetimeAdapter.prototype.parse = function (value, parseFormat) {
|
|
431
|
-
return this._delegate.parse(value, parseFormat);
|
|
432
|
-
};
|
|
433
|
-
DatetimeAdapter.prototype.format = function (date, displayFormat) {
|
|
434
|
-
return this._delegate.format(date, displayFormat);
|
|
435
|
-
};
|
|
436
|
-
DatetimeAdapter.prototype.toIso8601 = function (date) {
|
|
437
|
-
return this._delegate.toIso8601(date);
|
|
438
|
-
};
|
|
439
|
-
DatetimeAdapter.prototype.isDateInstance = function (obj) {
|
|
440
|
-
return this._delegate.isDateInstance(obj);
|
|
441
|
-
};
|
|
442
|
-
DatetimeAdapter.prototype.isValid = function (date) {
|
|
443
|
-
return this._delegate.isValid(date);
|
|
444
|
-
};
|
|
445
|
-
DatetimeAdapter.prototype.invalid = function () {
|
|
446
|
-
return this._delegate.invalid();
|
|
447
|
-
};
|
|
448
|
-
DatetimeAdapter.prototype.clampDate = function (date, min, max) {
|
|
449
|
-
if (min && this.compareDatetime(date, min) < 0) {
|
|
450
|
-
return min;
|
|
451
|
-
}
|
|
452
|
-
if (max && this.compareDatetime(date, max) > 0) {
|
|
453
|
-
return max;
|
|
454
|
-
}
|
|
455
|
-
return date;
|
|
456
|
-
};
|
|
457
|
-
return DatetimeAdapter;
|
|
458
|
-
}(core.DateAdapter));
|
|
459
|
-
|
|
460
|
-
var MTX_DATETIME_FORMATS = new core$1.InjectionToken('mtx-datetime-formats');
|
|
461
|
-
|
|
462
|
-
var ɵ0$1 = function (i) { return String(i); };
|
|
463
|
-
/** The default hour names to use if Intl API is not available. */
|
|
464
|
-
var DEFAULT_HOUR_NAMES = range(24, ɵ0$1);
|
|
465
|
-
var ɵ1 = function (i) { return String(i); };
|
|
466
|
-
/** The default minute names to use if Intl API is not available. */
|
|
467
|
-
var DEFAULT_MINUTE_NAMES = range(60, ɵ1);
|
|
468
|
-
function range(length, valueFunction) {
|
|
469
|
-
var valuesArray = Array(length);
|
|
470
|
-
for (var i = 0; i < length; i++) {
|
|
471
|
-
valuesArray[i] = valueFunction(i);
|
|
472
|
-
}
|
|
473
|
-
return valuesArray;
|
|
474
|
-
}
|
|
475
|
-
var NativeDatetimeAdapter = /** @class */ (function (_super) {
|
|
476
|
-
__extends(NativeDatetimeAdapter, _super);
|
|
477
|
-
function NativeDatetimeAdapter(matDateLocale, _delegate) {
|
|
478
|
-
var _this = _super.call(this, _delegate) || this;
|
|
479
|
-
_this.setLocale(matDateLocale);
|
|
480
|
-
return _this;
|
|
481
|
-
}
|
|
482
|
-
NativeDatetimeAdapter.prototype.clone = function (date) {
|
|
483
|
-
return this.createDatetime(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date), this.getMinute(date));
|
|
484
|
-
};
|
|
485
|
-
NativeDatetimeAdapter.prototype.getHour = function (date) {
|
|
486
|
-
return date.getHours();
|
|
487
|
-
};
|
|
488
|
-
NativeDatetimeAdapter.prototype.getMinute = function (date) {
|
|
489
|
-
return date.getMinutes();
|
|
490
|
-
};
|
|
491
|
-
NativeDatetimeAdapter.prototype.isInNextMonth = function (startDate, endDate) {
|
|
492
|
-
var nextMonth = this.getDateInNextMonth(startDate);
|
|
493
|
-
return this.sameMonthAndYear(nextMonth, endDate);
|
|
494
|
-
};
|
|
495
|
-
NativeDatetimeAdapter.prototype.createDatetime = function (year, month, date, hour, minute) {
|
|
496
|
-
// Check for invalid month and date (except upper bound on date which we have to check after
|
|
497
|
-
// creating the Date).
|
|
498
|
-
if (month < 0 || month > 11) {
|
|
499
|
-
throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
|
|
500
|
-
}
|
|
501
|
-
if (date < 1) {
|
|
502
|
-
throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
|
|
503
|
-
}
|
|
504
|
-
if (hour < 0 || hour > 23) {
|
|
505
|
-
throw Error("Invalid hour \"" + hour + "\". Hour has to be between 0 and 23.");
|
|
506
|
-
}
|
|
507
|
-
if (minute < 0 || minute > 59) {
|
|
508
|
-
throw Error("Invalid minute \"" + minute + "\". Minute has to be between 0 and 59.");
|
|
509
|
-
}
|
|
510
|
-
var result = this._createDateWithOverflow(year, month, date, hour, minute);
|
|
511
|
-
// Check that the date wasn't above the upper bound for the month, causing the month to overflow
|
|
512
|
-
if (result.getMonth() !== month) {
|
|
513
|
-
throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
|
|
514
|
-
}
|
|
515
|
-
return result;
|
|
516
|
-
};
|
|
517
|
-
NativeDatetimeAdapter.prototype.getFirstDateOfMonth = function (date) {
|
|
518
|
-
var result = new Date();
|
|
519
|
-
result.setFullYear(date.getFullYear(), date.getMonth(), 1);
|
|
520
|
-
return result;
|
|
521
|
-
};
|
|
522
|
-
NativeDatetimeAdapter.prototype.getHourNames = function () {
|
|
523
|
-
return DEFAULT_HOUR_NAMES;
|
|
524
|
-
};
|
|
525
|
-
NativeDatetimeAdapter.prototype.getMinuteNames = function () {
|
|
526
|
-
return DEFAULT_MINUTE_NAMES;
|
|
527
|
-
};
|
|
528
|
-
NativeDatetimeAdapter.prototype.addCalendarYears = function (date, years) {
|
|
529
|
-
return this.addCalendarMonths(date, years * 12);
|
|
530
|
-
};
|
|
531
|
-
NativeDatetimeAdapter.prototype.addCalendarMonths = function (date, months) {
|
|
532
|
-
var newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date), this.getHour(date), this.getMinute(date));
|
|
533
|
-
// It's possible to wind up in the wrong month if the original month has more days than the new
|
|
534
|
-
// month. In this case we want to go to the last day of the desired month.
|
|
535
|
-
// Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
|
|
536
|
-
// guarantee this.
|
|
537
|
-
if (this.getMonth(newDate) !== (((this.getMonth(date) + months) % 12) + 12) % 12) {
|
|
538
|
-
newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0, this.getHour(date), this.getMinute(date));
|
|
539
|
-
}
|
|
540
|
-
return newDate;
|
|
541
|
-
};
|
|
542
|
-
NativeDatetimeAdapter.prototype.addCalendarDays = function (date, days) {
|
|
543
|
-
return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days, this.getHour(date), this.getMinute(date));
|
|
544
|
-
};
|
|
545
|
-
NativeDatetimeAdapter.prototype.addCalendarHours = function (date, hours) {
|
|
546
|
-
return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date) + hours, this.getMinute(date));
|
|
547
|
-
};
|
|
548
|
-
NativeDatetimeAdapter.prototype.addCalendarMinutes = function (date, minutes) {
|
|
549
|
-
return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date), this.getMinute(date) + minutes);
|
|
550
|
-
};
|
|
551
|
-
NativeDatetimeAdapter.prototype.toIso8601 = function (date) {
|
|
552
|
-
return (_super.prototype.toIso8601.call(this, date) +
|
|
553
|
-
'T' +
|
|
554
|
-
[this._2digit(date.getUTCHours()), this._2digit(date.getUTCMinutes())].join(':'));
|
|
555
|
-
};
|
|
556
|
-
NativeDatetimeAdapter.prototype.getDateInNextMonth = function (date) {
|
|
557
|
-
return new Date(date.getFullYear(), date.getMonth() + 1, 1, date.getHours(), date.getMinutes());
|
|
558
|
-
};
|
|
559
|
-
/**
|
|
560
|
-
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
561
|
-
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
562
|
-
* date parsing.
|
|
563
|
-
* @param str The string to strip direction characters from.
|
|
564
|
-
* @returns The stripped string.
|
|
565
|
-
*/
|
|
566
|
-
NativeDatetimeAdapter.prototype._stripDirectionalityCharacters = function (str) {
|
|
567
|
-
return str.replace(/[\u200e\u200f]/g, '');
|
|
568
|
-
};
|
|
569
|
-
/**
|
|
570
|
-
* Pads a number to make it two digits.
|
|
571
|
-
* @param n The number to pad.
|
|
572
|
-
* @returns The padded number.
|
|
573
|
-
*/
|
|
574
|
-
NativeDatetimeAdapter.prototype._2digit = function (n) {
|
|
575
|
-
return ('00' + n).slice(-2);
|
|
576
|
-
};
|
|
577
|
-
/** Creates a date but allows the month and date to overflow. */
|
|
578
|
-
NativeDatetimeAdapter.prototype._createDateWithOverflow = function (year, month, date, hours, minutes) {
|
|
579
|
-
var result = new Date(year, month, date, hours, minutes);
|
|
580
|
-
// We need to correct for the fact that JS native Date treats years in range [0, 99] as
|
|
581
|
-
// abbreviations for 19xx.
|
|
582
|
-
if (year >= 0 && year < 100) {
|
|
583
|
-
result.setFullYear(this.getYear(result) - 1900);
|
|
584
|
-
}
|
|
585
|
-
return result;
|
|
586
|
-
};
|
|
587
|
-
return NativeDatetimeAdapter;
|
|
588
|
-
}(DatetimeAdapter));
|
|
589
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
590
|
-
NativeDatetimeAdapter.decorators = [
|
|
591
|
-
{ type: core$1.Injectable }
|
|
592
|
-
];
|
|
593
|
-
/**
|
|
594
|
-
* @type {function(): !Array<(null|{
|
|
595
|
-
* type: ?,
|
|
596
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
597
|
-
* })>}
|
|
598
|
-
* @nocollapse
|
|
599
|
-
*/
|
|
600
|
-
NativeDatetimeAdapter.ctorParameters = function () { return [
|
|
601
|
-
{ type: String, decorators: [{ type: core$1.Optional }, { type: core$1.Inject, args: [core.MAT_DATE_LOCALE,] }] },
|
|
602
|
-
{ type: core.DateAdapter }
|
|
603
|
-
]; };
|
|
604
|
-
|
|
605
|
-
var MTX_NATIVE_DATETIME_FORMATS = {
|
|
606
|
-
parse: {},
|
|
607
|
-
display: {
|
|
608
|
-
dateInput: { year: 'numeric', month: '2-digit', day: '2-digit' },
|
|
609
|
-
monthInput: { month: 'long' },
|
|
610
|
-
datetimeInput: {
|
|
611
|
-
year: 'numeric',
|
|
612
|
-
month: '2-digit',
|
|
613
|
-
day: '2-digit',
|
|
614
|
-
hour: '2-digit',
|
|
615
|
-
minute: '2-digit',
|
|
616
|
-
},
|
|
617
|
-
timeInput: { hour: '2-digit', minute: '2-digit' },
|
|
618
|
-
monthYearLabel: { year: 'numeric', month: 'short' },
|
|
619
|
-
dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
|
|
620
|
-
monthYearA11yLabel: { year: 'numeric', month: 'long' },
|
|
621
|
-
popupHeaderDateLabel: { weekday: 'short', month: 'short', day: '2-digit' },
|
|
622
|
-
},
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
var NativeDatetimeModule = /** @class */ (function () {
|
|
626
|
-
function NativeDatetimeModule() {
|
|
627
|
-
}
|
|
628
|
-
return NativeDatetimeModule;
|
|
629
|
-
}());
|
|
630
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
631
|
-
NativeDatetimeModule.decorators = [
|
|
632
|
-
{ type: core$1.NgModule, args: [{
|
|
633
|
-
imports: [core.NativeDateModule],
|
|
634
|
-
providers: [
|
|
635
|
-
{
|
|
636
|
-
provide: DatetimeAdapter,
|
|
637
|
-
useClass: NativeDatetimeAdapter,
|
|
638
|
-
},
|
|
639
|
-
],
|
|
640
|
-
},] }
|
|
641
|
-
];
|
|
642
|
-
var ɵ0 = MTX_NATIVE_DATETIME_FORMATS;
|
|
643
|
-
var MtxNativeDatetimeModule = /** @class */ (function () {
|
|
644
|
-
function MtxNativeDatetimeModule() {
|
|
645
|
-
}
|
|
646
|
-
return MtxNativeDatetimeModule;
|
|
647
|
-
}());
|
|
648
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
649
|
-
MtxNativeDatetimeModule.decorators = [
|
|
650
|
-
{ type: core$1.NgModule, args: [{
|
|
651
|
-
imports: [NativeDatetimeModule, core.MatNativeDateModule],
|
|
652
|
-
providers: [{ provide: MTX_DATETIME_FORMATS, useValue: ɵ0 }],
|
|
653
|
-
},] }
|
|
654
|
-
];
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* Generated bundle index. Do not edit.
|
|
658
|
-
*/
|
|
659
|
-
|
|
660
|
-
exports.DatetimeAdapter = DatetimeAdapter;
|
|
661
|
-
exports.MTX_DATETIME_FORMATS = MTX_DATETIME_FORMATS;
|
|
662
|
-
exports.MTX_NATIVE_DATETIME_FORMATS = MTX_NATIVE_DATETIME_FORMATS;
|
|
663
|
-
exports.MtxNativeDatetimeModule = MtxNativeDatetimeModule;
|
|
664
|
-
exports.NativeDatetimeAdapter = NativeDatetimeAdapter;
|
|
665
|
-
exports.NativeDatetimeModule = NativeDatetimeModule;
|
|
666
|
-
|
|
667
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
668
|
-
|
|
669
|
-
}));
|
|
670
|
-
//# sourceMappingURL=mtxCore.umd.js.map
|