@ng-matero/extensions 12.3.0 → 12.5.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 +1 -1
- package/_all-color.scss +47 -0
- package/_all-theme.scss +5 -3
- package/_index.scss +4 -2
- package/_theming.scss +4 -2
- package/alert/_alert-theme.import.scss +2 -2
- package/alert/_alert-theme.scss +38 -17
- package/alert/alert.component.d.ts +6 -6
- package/alert/alert.component.scss +2 -1
- package/alert/mtxAlert.metadata.json +1 -1
- package/bundles/extensions.umd.js +21 -10
- package/bundles/extensions.umd.js.map +1 -1
- package/bundles/mtxAlert.umd.js +32 -14
- package/bundles/mtxAlert.umd.js.map +1 -1
- package/bundles/mtxButton.umd.js +36 -5
- package/bundles/mtxButton.umd.js.map +1 -1
- package/bundles/mtxCheckboxGroup.umd.js +10 -1
- package/bundles/mtxCheckboxGroup.umd.js.map +1 -1
- package/bundles/mtxColorPicker.umd.js +10 -1
- package/bundles/mtxColorPicker.umd.js.map +1 -1
- package/bundles/mtxColumnResize.umd.js +55 -6
- package/bundles/mtxColumnResize.umd.js.map +1 -1
- package/bundles/mtxCore.umd.js +10 -1
- package/bundles/mtxCore.umd.js.map +1 -1
- package/bundles/mtxDatetimepicker.umd.js +139 -32
- package/bundles/mtxDatetimepicker.umd.js.map +1 -1
- package/bundles/mtxDialog.umd.js +17 -2
- package/bundles/mtxDialog.umd.js.map +1 -1
- package/bundles/mtxFormGroup.umd.js +10 -1
- package/bundles/mtxFormGroup.umd.js.map +1 -1
- package/bundles/mtxGrid.umd.js +92 -12
- package/bundles/mtxGrid.umd.js.map +1 -1
- package/bundles/mtxLoader.umd.js +37 -8
- package/bundles/mtxLoader.umd.js.map +1 -1
- package/bundles/mtxPipes.umd.js +2 -0
- package/bundles/mtxPipes.umd.js.map +1 -1
- package/bundles/mtxPopover.umd.js +27 -3
- package/bundles/mtxPopover.umd.js.map +1 -1
- package/bundles/mtxProgress.umd.js +31 -4
- package/bundles/mtxProgress.umd.js.map +1 -1
- package/bundles/mtxSelect.umd.js +107 -13
- package/bundles/mtxSelect.umd.js.map +1 -1
- package/bundles/mtxSlider.umd.js +1551 -0
- package/bundles/mtxSlider.umd.js.map +1 -0
- package/bundles/mtxSplit.umd.js +23 -6
- package/bundles/mtxSplit.umd.js.map +1 -1
- package/bundles/mtxText3d.umd.js +10 -1
- package/bundles/mtxText3d.umd.js.map +1 -1
- package/bundles/mtxTooltip.umd.js +18 -2
- package/bundles/mtxTooltip.umd.js.map +1 -1
- package/button/button-loading.directive.d.ts +9 -2
- package/button/mtxButton.metadata.json +1 -1
- package/datetimepicker/_datetimepicker-theme.import.scss +4 -2
- package/datetimepicker/_datetimepicker-theme.scss +101 -29
- package/datetimepicker/calendar-body.scss +0 -3
- package/datetimepicker/calendar.d.ts +10 -3
- package/datetimepicker/calendar.scss +5 -22
- package/datetimepicker/clock.scss +0 -2
- package/datetimepicker/datetimepicker-content.scss +2 -2
- package/datetimepicker/datetimepicker-input.d.ts +5 -3
- package/datetimepicker/datetimepicker-toggle.d.ts +2 -0
- package/datetimepicker/datetimepicker.d.ts +13 -3
- package/datetimepicker/mtxDatetimepicker.metadata.json +1 -1
- package/esm2015/alert/alert.component.js +25 -11
- package/esm2015/alert/alert.module.js +2 -1
- package/esm2015/button/button-loading.directive.js +31 -8
- package/esm2015/button/button.module.js +2 -1
- package/esm2015/checkbox-group/checkbox-group.component.js +10 -2
- package/esm2015/checkbox-group/checkbox-group.module.js +2 -1
- package/esm2015/color-picker/color-picker.component.js +10 -2
- package/esm2015/color-picker/color-picker.module.js +2 -1
- package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +9 -2
- package/esm2015/column-resize/column-resize-directives/column-resize.js +9 -2
- package/esm2015/column-resize/column-resize-module.js +2 -1
- package/esm2015/column-resize/column-resize-notifier.js +10 -2
- package/esm2015/column-resize/column-resize.js +2 -1
- package/esm2015/column-resize/column-size-store.js +2 -1
- package/esm2015/column-resize/event-dispatcher.js +9 -2
- package/esm2015/column-resize/overlay-handle.js +2 -1
- package/esm2015/column-resize/resizable.js +2 -1
- package/esm2015/column-resize/resize-strategy.js +18 -3
- package/esm2015/core/datetime/datetime.module.js +3 -1
- package/esm2015/core/datetime/native-datetime-adapter.js +9 -2
- package/esm2015/datetimepicker/calendar-body.js +5 -3
- package/esm2015/datetimepicker/calendar.js +31 -12
- package/esm2015/datetimepicker/clock.js +11 -3
- package/esm2015/datetimepicker/datetimepicker-input.js +12 -4
- package/esm2015/datetimepicker/datetimepicker-toggle.js +11 -3
- package/esm2015/datetimepicker/datetimepicker.js +30 -8
- package/esm2015/datetimepicker/datetimepicker.module.js +2 -1
- package/esm2015/datetimepicker/month-view.js +11 -3
- package/esm2015/datetimepicker/multi-year-view.js +11 -3
- package/esm2015/datetimepicker/year-view.js +11 -3
- package/esm2015/dialog/dialog.component.js +9 -2
- package/esm2015/dialog/dialog.js +9 -2
- package/esm2015/dialog/dialog.module.js +2 -1
- package/esm2015/extensions-experimental.module.js +2 -1
- package/esm2015/extensions.module.js +6 -3
- package/esm2015/form-group/form-group.component.js +10 -2
- package/esm2015/form-group/form-group.module.js +2 -1
- package/esm2015/grid/cell-selection.directive.js +62 -0
- package/esm2015/{data-grid → grid}/cell.component.js +10 -2
- package/esm2015/{data-grid → grid}/column-menu.component.js +3 -1
- package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +47 -0
- package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +47 -0
- package/esm2015/grid/column-resize/column-resize-directives/common.js +34 -0
- package/esm2015/grid/column-resize/column-resize-module.js +36 -0
- package/esm2015/grid/column-resize/overlay-handle.js +68 -0
- package/esm2015/grid/column-resize/resizable-directives/common.js +29 -0
- package/esm2015/grid/column-resize/resizable-directives/resizable.js +75 -0
- package/esm2015/grid/column-resize/resize-strategy.js +45 -0
- package/esm2015/grid/expansion-toggle.directive.js +62 -0
- package/esm2015/{data-grid → grid}/grid.component.js +10 -2
- package/esm2015/grid/grid.interface.js +2 -0
- package/esm2015/grid/grid.module.js +69 -0
- package/esm2015/grid/grid.service.js +50 -0
- package/esm2015/grid/mtxGrid.js +5 -0
- package/esm2015/grid/public-api.js +17 -0
- package/esm2015/loader/loader.component.js +26 -5
- package/esm2015/loader/loader.module.js +2 -1
- package/esm2015/pipes/pipes.module.js +2 -1
- package/esm2015/pipes/to-observable.pipe.js +2 -1
- package/esm2015/popover/popover-module.js +2 -1
- package/esm2015/popover/popover-target.js +9 -2
- package/esm2015/popover/popover-trigger.js +10 -2
- package/esm2015/popover/popover.js +10 -2
- package/esm2015/progress/progress.component.js +20 -1
- package/esm2015/progress/progress.module.js +2 -1
- package/esm2015/public-api.js +4 -3
- package/esm2015/select/option.component.js +10 -2
- package/esm2015/select/select.component.js +10 -2
- package/esm2015/select/select.module.js +2 -1
- package/esm2015/select/templates.directive.js +89 -12
- package/esm2015/slider/mtxSlider.js +5 -0
- package/esm2015/slider/public-api.js +3 -0
- package/esm2015/slider/slider-module.js +15 -0
- package/esm2015/slider/slider.js +1115 -0
- package/esm2015/split/interface.js +2 -0
- package/esm2015/split/mtxSplit.js +5 -0
- package/esm2015/split/public-api.js +6 -0
- package/esm2015/split/split-pane.directive.js +156 -0
- package/esm2015/split/split.component.js +620 -0
- package/esm2015/split/split.module.js +15 -0
- package/esm2015/split/utils.js +227 -0
- package/esm2015/text3d/text3d.component.js +10 -2
- package/esm2015/text3d/text3d.module.js +2 -1
- package/esm2015/tooltip/tooltip-module.js +2 -1
- package/esm2015/tooltip/tooltip.js +18 -3
- package/extensions.metadata.json +1 -1
- package/fesm2015/extensions.js +9 -4
- package/fesm2015/extensions.js.map +1 -1
- package/fesm2015/mtxAlert.js +25 -10
- package/fesm2015/mtxAlert.js.map +1 -1
- package/fesm2015/mtxButton.js +31 -7
- package/fesm2015/mtxButton.js.map +1 -1
- package/fesm2015/mtxCheckboxGroup.js +10 -1
- package/fesm2015/mtxCheckboxGroup.js.map +1 -1
- package/fesm2015/mtxColorPicker.js +10 -1
- package/fesm2015/mtxColorPicker.js.map +1 -1
- package/fesm2015/mtxColumnResize.js +55 -6
- package/fesm2015/mtxColumnResize.js.map +1 -1
- package/fesm2015/mtxCore.js +10 -1
- package/fesm2015/mtxCore.js.map +1 -1
- package/fesm2015/mtxDatetimepicker.js +120 -29
- package/fesm2015/mtxDatetimepicker.js.map +1 -1
- package/fesm2015/mtxDialog.js +17 -2
- package/fesm2015/mtxDialog.js.map +1 -1
- package/fesm2015/mtxFormGroup.js +10 -1
- package/fesm2015/mtxFormGroup.js.map +1 -1
- package/fesm2015/mtxGrid.js +90 -10
- package/fesm2015/mtxGrid.js.map +1 -1
- package/fesm2015/mtxLoader.js +26 -4
- package/fesm2015/mtxLoader.js.map +1 -1
- package/fesm2015/mtxPipes.js +2 -0
- package/fesm2015/mtxPipes.js.map +1 -1
- package/fesm2015/mtxPopover.js +27 -3
- package/fesm2015/mtxPopover.js.map +1 -1
- package/fesm2015/mtxProgress.js +20 -0
- package/fesm2015/mtxProgress.js.map +1 -1
- package/fesm2015/mtxSelect.js +107 -13
- package/fesm2015/mtxSelect.js.map +1 -1
- package/fesm2015/mtxSlider.js +1134 -0
- package/fesm2015/mtxSlider.js.map +1 -0
- package/fesm2015/mtxSplit.js +21 -4
- package/fesm2015/mtxSplit.js.map +1 -1
- package/fesm2015/mtxText3d.js +10 -1
- package/fesm2015/mtxText3d.js.map +1 -1
- package/fesm2015/mtxTooltip.js +18 -2
- package/fesm2015/mtxTooltip.js.map +1 -1
- package/form-group/_form-group-theme.import.scss +2 -2
- package/form-group/_form-group-theme.scss +46 -22
- package/form-group/form-group.component.d.ts +2 -0
- package/grid/_grid-theme.import.scss +2 -0
- package/grid/_grid-theme.scss +114 -0
- package/{data-grid → grid}/cell-selection.directive.d.ts +0 -0
- package/{data-grid → grid}/cell.component.d.ts +0 -0
- package/{data-grid → grid}/cell.component.scss +0 -0
- package/{data-grid → grid}/column-menu.component.d.ts +0 -0
- package/{data-grid → grid}/column-menu.component.scss +0 -0
- package/{data-grid → grid}/column-resize/_column-resize.scss +19 -13
- package/{data-grid → grid}/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -0
- package/{data-grid → grid}/column-resize/column-resize-directives/column-resize.d.ts +0 -0
- package/{data-grid → grid}/column-resize/column-resize-directives/common.d.ts +0 -0
- package/{data-grid → grid}/column-resize/column-resize-module.d.ts +0 -0
- package/{data-grid → grid}/column-resize/overlay-handle.d.ts +0 -0
- package/{data-grid → grid}/column-resize/resizable-directives/common.d.ts +0 -0
- package/{data-grid → grid}/column-resize/resizable-directives/resizable.d.ts +0 -0
- package/{data-grid → grid}/column-resize/resize-strategy.d.ts +0 -0
- package/{data-grid → grid}/expansion-toggle.directive.d.ts +0 -0
- package/{data-grid → grid}/grid.component.d.ts +0 -0
- package/{data-grid → grid}/grid.component.scss +0 -0
- package/{data-grid → grid}/grid.interface.d.ts +0 -0
- package/{data-grid → grid}/grid.module.d.ts +0 -0
- package/{data-grid → grid}/grid.service.d.ts +0 -0
- package/{data-grid → grid}/mtxGrid.d.ts +0 -0
- package/{data-grid → grid}/mtxGrid.metadata.json +1 -1
- package/{data-grid → grid}/package.json +2 -2
- package/{data-grid → grid}/public-api.d.ts +0 -0
- package/loader/_loader-theme.import.scss +2 -2
- package/loader/_loader-theme.scss +30 -6
- package/loader/loader.component.d.ts +9 -2
- package/loader/mtxLoader.metadata.json +1 -1
- package/package.json +3 -3
- package/popover/_popover-theme.import.scss +2 -2
- package/popover/_popover-theme.scss +32 -8
- package/progress/_progress-theme.import.scss +2 -2
- package/progress/_progress-theme.scss +33 -8
- package/progress/mtxProgress.metadata.json +1 -1
- package/progress/progress.component.d.ts +9 -2
- package/public-api.d.ts +3 -2
- package/select/_select-theme.import.scss +2 -2
- package/select/_select-theme.scss +55 -31
- package/slider/_slider-theme.import.scss +2 -0
- package/slider/_slider-theme.scss +233 -0
- package/{split-pane/mtxSplit.d.ts → slider/mtxSlider.d.ts} +0 -0
- package/slider/mtxSlider.metadata.json +1 -0
- package/slider/package.json +11 -0
- package/slider/public-api.d.ts +2 -0
- package/slider/slider-module.d.ts +2 -0
- package/slider/slider.d.ts +274 -0
- package/slider/slider.scss +513 -0
- package/split/_split-theme.import.scss +2 -0
- package/split/_split-theme.scss +41 -0
- package/{split-pane → split}/interface.d.ts +0 -0
- package/split/mtxSplit.d.ts +4 -0
- package/split/mtxSplit.metadata.json +1 -0
- package/{split-pane → split}/package.json +2 -2
- package/{split-pane → split}/public-api.d.ts +0 -0
- package/{split-pane → split}/split-pane.directive.d.ts +0 -0
- package/{split-pane → split}/split.component.d.ts +0 -0
- package/{split-pane → split}/split.component.scss +3 -2
- package/{split-pane → split}/split.module.d.ts +0 -0
- package/{split-pane → split}/utils.d.ts +0 -0
- package/text3d/_text3d-theme.import.scss +2 -2
- package/text3d/_text3d-theme.scss +32 -7
- package/tooltip/_tooltip-theme.import.scss +2 -2
- package/tooltip/_tooltip-theme.scss +32 -15
- package/data-grid/_grid-theme.import.scss +0 -2
- package/data-grid/_grid-theme.scss +0 -90
- package/esm2015/data-grid/cell-selection.directive.js +0 -54
- package/esm2015/data-grid/column-resize/column-resize-directives/column-resize-flex.js +0 -40
- package/esm2015/data-grid/column-resize/column-resize-directives/column-resize.js +0 -40
- package/esm2015/data-grid/column-resize/column-resize-directives/common.js +0 -34
- package/esm2015/data-grid/column-resize/column-resize-module.js +0 -34
- package/esm2015/data-grid/column-resize/overlay-handle.js +0 -61
- package/esm2015/data-grid/column-resize/resizable-directives/common.js +0 -29
- package/esm2015/data-grid/column-resize/resizable-directives/resizable.js +0 -67
- package/esm2015/data-grid/column-resize/resize-strategy.js +0 -38
- package/esm2015/data-grid/expansion-toggle.directive.js +0 -54
- package/esm2015/data-grid/grid.interface.js +0 -2
- package/esm2015/data-grid/grid.module.js +0 -68
- package/esm2015/data-grid/grid.service.js +0 -43
- package/esm2015/data-grid/mtxGrid.js +0 -5
- package/esm2015/data-grid/public-api.js +0 -17
- package/esm2015/split-pane/interface.js +0 -2
- package/esm2015/split-pane/mtxSplit.js +0 -5
- package/esm2015/split-pane/public-api.js +0 -6
- package/esm2015/split-pane/split-pane.directive.js +0 -148
- package/esm2015/split-pane/split.component.js +0 -612
- package/esm2015/split-pane/split.module.js +0 -14
- package/esm2015/split-pane/utils.js +0 -227
- package/split-pane/_split-theme.import.scss +0 -2
- package/split-pane/_split-theme.scss +0 -17
- package/split-pane/mtxSplit.metadata.json +0 -1
|
@@ -1,60 +1,69 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '~@angular/material'
|
|
2
|
+
@use '~@angular/material/core/theming/theming';
|
|
3
|
+
@use '~@angular/material/core/theming/palette';
|
|
4
|
+
@use '~@angular/material/core/style/private';
|
|
5
|
+
@use '~@angular/material/core/typography/typography';
|
|
6
|
+
@use '~@angular/material/core/typography/typography-utils';
|
|
3
7
|
|
|
4
8
|
$selected-today-box-shadow-width: 1px;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$
|
|
9
|
+
$calendar-body-font-size: 13px !default;
|
|
10
|
+
$calendar-weekday-table-font-size: 11px !default;
|
|
11
|
+
$calendar-header-font-size: 30px !default;
|
|
12
|
+
$clock-font-size: 14px !default;
|
|
13
|
+
|
|
14
|
+
@mixin color($config-or-theme) {
|
|
15
|
+
$config: theming.get-color-config($config-or-theme);
|
|
16
|
+
$is-dark-theme: map.get($config, is-dark);
|
|
17
|
+
$primary: map.get($config, primary);
|
|
18
|
+
$background: map.get($config, background);
|
|
19
|
+
$foreground: map.get($config, foreground);
|
|
20
|
+
$disabled-color: theming.get-color-from-palette($foreground, disabled-text);
|
|
12
21
|
|
|
13
22
|
.mtx-datetimepicker-content {
|
|
14
|
-
background-color:
|
|
15
|
-
color:
|
|
23
|
+
background-color: theming.get-color-from-palette($background, card);
|
|
24
|
+
color: theming.get-color-from-palette($foreground, text);
|
|
16
25
|
|
|
17
|
-
@include
|
|
26
|
+
@include private.private-theme-elevation(8, $config);
|
|
18
27
|
}
|
|
19
28
|
|
|
20
29
|
.mtx-calendar-header {
|
|
21
|
-
background-color:
|
|
30
|
+
background-color: theming.get-color-from-palette($primary);
|
|
22
31
|
color: white;
|
|
23
32
|
}
|
|
24
33
|
|
|
25
34
|
.mtx-calendar-body-label {
|
|
26
|
-
color:
|
|
35
|
+
color: theming.get-color-from-palette($foreground, secondary-text);
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
.mtx-calendar-table-header {
|
|
30
|
-
color:
|
|
39
|
+
color: theming.get-color-from-palette($foreground, hint-text);
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
.mtx-calendar-body-cell-content {
|
|
34
|
-
color:
|
|
43
|
+
color: theming.get-color-from-palette($foreground, text);
|
|
35
44
|
|
|
36
45
|
&.mtx-calendar-body-selected {
|
|
37
|
-
background-color:
|
|
46
|
+
background-color: theming.get-color-from-palette($primary);
|
|
38
47
|
color: white;
|
|
39
48
|
|
|
40
49
|
&.mtx-calendar-body-today {
|
|
41
50
|
box-shadow:
|
|
42
51
|
inset 0 0 0 $selected-today-box-shadow-width
|
|
43
|
-
|
|
52
|
+
theming.get-color-from-palette($primary, default-contrast);
|
|
44
53
|
}
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
&:not(.mtx-calendar-body-selected) {
|
|
48
57
|
&.mtx-calendar-body-today {
|
|
49
|
-
border-color:
|
|
58
|
+
border-color: theming.get-color-from-palette($foreground, hint-text);
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
|
|
54
|
-
:not(.mtx-calendar-body-disabled):hover,
|
|
63
|
+
.mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover,
|
|
55
64
|
.mtx-calendar-body-active {
|
|
56
|
-
> .mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
|
|
57
|
-
background-color:
|
|
65
|
+
& > .mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
|
|
66
|
+
background-color: theming.get-color-from-palette($primary, .3);
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
|
|
@@ -68,7 +77,7 @@ $selected-today-box-shadow-width: 1px;
|
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
> .mtx-calendar-body-selected {
|
|
71
|
-
background-color:
|
|
80
|
+
background-color: theming.get-color-from-palette($primary, .4);
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
@@ -80,31 +89,31 @@ $selected-today-box-shadow-width: 1px;
|
|
|
80
89
|
}
|
|
81
90
|
|
|
82
91
|
.mtx-clock-wrapper {
|
|
83
|
-
background-color:
|
|
92
|
+
background-color: theming.get-color-from-palette($foreground, divider);
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
.mtx-clock-center {
|
|
87
|
-
background-color:
|
|
96
|
+
background-color: theming.get-color-from-palette($primary);
|
|
88
97
|
}
|
|
89
98
|
|
|
90
99
|
.mtx-clock-hand {
|
|
91
|
-
background-color:
|
|
100
|
+
background-color: theming.get-color-from-palette($primary);
|
|
92
101
|
|
|
93
102
|
&::before {
|
|
94
|
-
background-color:
|
|
103
|
+
background-color: theming.get-color-from-palette($primary);
|
|
95
104
|
}
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
.mtx-clock-cell {
|
|
99
|
-
color:
|
|
108
|
+
color: theming.get-color-from-palette($foreground, text);
|
|
100
109
|
|
|
101
110
|
&.mtx-clock-cell-selected {
|
|
102
|
-
background-color:
|
|
111
|
+
background-color: theming.get-color-from-palette($primary);
|
|
103
112
|
color: white;
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
&:not(.mtx-clock-cell-selected):not(.mtx-clock-cell-disabled):hover {
|
|
107
|
-
background-color:
|
|
116
|
+
background-color: theming.get-color-from-palette($background, hover);
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
&.mtx-clock-cell-disabled {
|
|
@@ -112,3 +121,66 @@ $selected-today-box-shadow-width: 1px;
|
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
}
|
|
124
|
+
|
|
125
|
+
@mixin typography($config-or-theme) {
|
|
126
|
+
$config: typography.private-typography-to-2014-config(
|
|
127
|
+
theming.get-typography-config($config-or-theme)
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
.mtx-calendar {
|
|
131
|
+
font-family: typography-utils.font-family($config);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.mtx-calendar-body {
|
|
135
|
+
font-size: $calendar-body-font-size;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.mtx-calendar-body-label,
|
|
139
|
+
.mtx-calendar-period-button {
|
|
140
|
+
font: {
|
|
141
|
+
size: typography-utils.font-size($config, button);
|
|
142
|
+
weight: typography-utils.font-weight($config, button);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mtx-calendar-table-header th {
|
|
147
|
+
font: {
|
|
148
|
+
size: $calendar-weekday-table-font-size;
|
|
149
|
+
weight: typography-utils.font-weight($config, body-1);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.mtx-calendar-header-date-time {
|
|
154
|
+
font-size: $calendar-header-font-size;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.mtx-calendar-header-ampm-container {
|
|
158
|
+
font-size: .75em;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.mtx-clock {
|
|
162
|
+
font-size: $clock-font-size;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@mixin _density($config-or-theme) {}
|
|
167
|
+
|
|
168
|
+
@mixin theme($theme-or-color-config) {
|
|
169
|
+
$theme: theming.private-legacy-get-theme($theme-or-color-config);
|
|
170
|
+
@include theming.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
|
|
171
|
+
$color: theming.get-color-config($theme);
|
|
172
|
+
$density: theming.get-density-config($theme);
|
|
173
|
+
$typography-default: typography.define-typography-config();
|
|
174
|
+
$typography: theming.get-typography-config($theme, $typography-default);
|
|
175
|
+
|
|
176
|
+
@if $color != null {
|
|
177
|
+
@include color($color);
|
|
178
|
+
}
|
|
179
|
+
@if $density != null {
|
|
180
|
+
@include _density($density);
|
|
181
|
+
}
|
|
182
|
+
@if $typography != null {
|
|
183
|
+
@include typography($typography);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@use '~@angular/material/core/style/private';
|
|
2
2
|
|
|
3
|
-
$calendar-body-font-size: 13px !default;
|
|
4
|
-
$calendar-body-header-font-size: 14px !default;
|
|
5
3
|
$calendar-body-label-padding-start: 5% !default;
|
|
6
4
|
$calendar-body-label-side-padding: private.private-div(33%, 7) !default;
|
|
7
5
|
$calendar-body-cell-min-size: 32px !default;
|
|
@@ -15,7 +13,6 @@ $calendar-body-min-size: 7 * $calendar-body-cell-min-size !default;
|
|
|
15
13
|
$calendar-body-cell-content-size: 100% - $calendar-body-cell-content-margin * 2 !default;
|
|
16
14
|
|
|
17
15
|
.mtx-calendar-body {
|
|
18
|
-
font-size: $calendar-body-font-size;
|
|
19
16
|
min-width: $calendar-body-min-size;
|
|
20
17
|
}
|
|
21
18
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
3
|
import { MatDatepickerIntl } from '@angular/material/datepicker';
|
|
3
4
|
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
4
5
|
import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
@@ -17,11 +18,15 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
17
18
|
private _adapter;
|
|
18
19
|
private _dateFormats;
|
|
19
20
|
_userSelection: EventEmitter<void>;
|
|
20
|
-
|
|
21
|
-
multiYearSelector: boolean;
|
|
21
|
+
get multiYearSelector(): boolean;
|
|
22
|
+
set multiYearSelector(value: boolean);
|
|
23
|
+
private _multiYearSelector;
|
|
24
|
+
/** if true change the clock to 12 hour format. */
|
|
25
|
+
get twelvehour(): boolean;
|
|
26
|
+
set twelvehour(value: boolean);
|
|
27
|
+
private _twelvehour;
|
|
22
28
|
/** Whether the calendar should be started in month or year view. */
|
|
23
29
|
startView: MtxCalendarView;
|
|
24
|
-
twelvehour: boolean;
|
|
25
30
|
timeInterval: number;
|
|
26
31
|
/** A function used to filter which dates are selectable. */
|
|
27
32
|
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
@@ -135,4 +140,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
135
140
|
private _nextMonthInSameCol;
|
|
136
141
|
private calendarState;
|
|
137
142
|
private _2digit;
|
|
143
|
+
static ngAcceptInputType_multiYearSelector: BooleanInput;
|
|
144
|
+
static ngAcceptInputType_twelvehour: BooleanInput;
|
|
138
145
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
$calendar-padding: 8px !default;
|
|
2
|
-
$calendar-weekday-table-font-size: 11px !default;
|
|
3
2
|
|
|
4
3
|
// We use the same padding as the month / year label, but subtract 16px since there is padding
|
|
5
4
|
// between the edge of the button and the text. This ensures that the button text lines up with
|
|
@@ -15,6 +14,7 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
15
14
|
|
|
16
15
|
.mtx-calendar {
|
|
17
16
|
display: block;
|
|
17
|
+
outline: none;
|
|
18
18
|
|
|
19
19
|
&[mode='landscape'] {
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
23
23
|
|
|
24
24
|
.mtx-calendar-header {
|
|
25
25
|
padding: $calendar-padding * 2;
|
|
26
|
-
font-size: 14px;
|
|
27
26
|
box-sizing: border-box;
|
|
28
27
|
border-radius: 4px 4px 0 0;
|
|
29
28
|
|
|
@@ -41,22 +40,19 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
41
40
|
.mtx-calendar-header-year,
|
|
42
41
|
.mtx-calendar-header-date-time {
|
|
43
42
|
width: 100%;
|
|
44
|
-
font-weight: 400;
|
|
45
43
|
white-space: nowrap;
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.mtx-calendar-header-year {
|
|
49
47
|
height: 32px;
|
|
50
48
|
line-height: 32px;
|
|
51
|
-
font-size: 16px;
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
> * {
|
|
54
51
|
vertical-align: middle;
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
.mtx-calendar-header-date-time {
|
|
59
|
-
font-size: 30px;
|
|
60
56
|
line-height: 34px;
|
|
61
57
|
|
|
62
58
|
[mode='landscape'] & {
|
|
@@ -65,10 +61,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
63
|
|
|
68
|
-
.mtx-calendar-header-ampm-container {
|
|
69
|
-
font-size: .77em;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
64
|
.mtx-calendar-header-year,
|
|
73
65
|
.mtx-calendar-header-date,
|
|
74
66
|
.mtx-calendar-header-hours,
|
|
@@ -131,7 +123,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
131
123
|
display: inline-block;
|
|
132
124
|
height: 40px;
|
|
133
125
|
line-height: 40px;
|
|
134
|
-
font-size: 14px;
|
|
135
126
|
outline: none;
|
|
136
127
|
border: 0;
|
|
137
128
|
background: transparent;
|
|
@@ -160,13 +151,9 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
160
151
|
width: 100%;
|
|
161
152
|
}
|
|
162
153
|
|
|
163
|
-
.mtx-calendar-table-header {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
font-size: $calendar-weekday-table-font-size;
|
|
167
|
-
font-weight: 400;
|
|
168
|
-
padding: $calendar-padding 0;
|
|
169
|
-
}
|
|
154
|
+
.mtx-calendar-table-header th {
|
|
155
|
+
text-align: center;
|
|
156
|
+
padding: $calendar-padding 0;
|
|
170
157
|
}
|
|
171
158
|
|
|
172
159
|
@media all and (orientation: landscape) {
|
|
@@ -192,9 +179,5 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
192
179
|
display: block;
|
|
193
180
|
padding: 0;
|
|
194
181
|
}
|
|
195
|
-
|
|
196
|
-
.mtx-calendar-content {
|
|
197
|
-
padding-top: $calendar-padding;
|
|
198
|
-
}
|
|
199
182
|
}
|
|
200
183
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
$clock-min-size: 224px !default;
|
|
2
2
|
$clock-margin: 8px !default;
|
|
3
|
-
$clock-font-size: 14px !default;
|
|
4
3
|
$clock-cell-size: 14.1666% !default;
|
|
5
4
|
|
|
6
5
|
.mtx-clock {
|
|
@@ -8,7 +7,6 @@ $clock-cell-size: 14.1666% !default;
|
|
|
8
7
|
display: block;
|
|
9
8
|
min-width: $clock-min-size;
|
|
10
9
|
margin: $clock-margin;
|
|
11
|
-
font-size: $clock-font-size;
|
|
12
10
|
box-sizing: border-box;
|
|
13
11
|
user-select: none;
|
|
14
12
|
}
|
|
@@ -37,7 +37,7 @@ $touch-max-height: 850px;
|
|
|
37
37
|
justify-content: space-between;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.mtx-calendar {
|
|
40
|
+
.mtx-datetimepicker-content .mtx-calendar {
|
|
41
41
|
width: $non-touch-calendar-portrait-width;
|
|
42
42
|
height: $non-touch-calendar-portrait-height;
|
|
43
43
|
|
|
@@ -48,7 +48,7 @@ $touch-max-height: 850px;
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@media all and (orientation: landscape) {
|
|
51
|
-
.mtx-calendar[mode='auto'] {
|
|
51
|
+
.mtx-datetimepicker-content .mtx-calendar[mode='auto'] {
|
|
52
52
|
width: $non-touch-calendar-landscape-width;
|
|
53
53
|
height: $non-touch-calendar-landscape-height;
|
|
54
54
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
4
|
import { MatFormField } from '@angular/material/form-field';
|
|
4
5
|
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
5
6
|
import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
@@ -43,10 +44,10 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
|
|
|
43
44
|
/** The datetimepicker that this input is associated with. */
|
|
44
45
|
set mtxDatetimepicker(value: MtxDatetimepicker<D>);
|
|
45
46
|
set mtxDatetimepickerFilter(filter: (date: D | null, type: MtxDatetimepickerFilterType) => boolean);
|
|
46
|
-
private _value;
|
|
47
47
|
/** The value of the input. */
|
|
48
48
|
get value(): D | null;
|
|
49
49
|
set value(value: D | null);
|
|
50
|
+
private _value;
|
|
50
51
|
/** The minimum valid date. */
|
|
51
52
|
get min(): D | null;
|
|
52
53
|
set min(value: D | null);
|
|
@@ -56,8 +57,8 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
|
|
|
56
57
|
set max(value: D | null);
|
|
57
58
|
private _max;
|
|
58
59
|
/** Whether the datetimepicker-input is disabled. */
|
|
59
|
-
get disabled():
|
|
60
|
-
set disabled(value:
|
|
60
|
+
get disabled(): boolean;
|
|
61
|
+
set disabled(value: boolean);
|
|
61
62
|
private _disabled;
|
|
62
63
|
_onTouched: () => void;
|
|
63
64
|
ngAfterContentInit(): void;
|
|
@@ -97,4 +98,5 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
|
|
|
97
98
|
private _validator;
|
|
98
99
|
/** Formats a value and sets it on the input element. */
|
|
99
100
|
private _formatValue;
|
|
101
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
100
102
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
3
|
import { MatDatepickerIntl } from '@angular/material/datepicker';
|
|
3
4
|
import { MtxDatetimepicker } from './datetimepicker';
|
|
4
5
|
export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
@@ -17,4 +18,5 @@ export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnC
|
|
|
17
18
|
ngAfterContentInit(): void;
|
|
18
19
|
_open(event: Event): void;
|
|
19
20
|
private _watchStateChanges;
|
|
21
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
20
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
4
|
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
-
import { AfterContentInit, EventEmitter, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
4
5
|
import { Subject } from 'rxjs';
|
|
5
6
|
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
6
7
|
import { MtxCalendarView, MtxCalendar } from './calendar';
|
|
@@ -29,9 +30,13 @@ export declare class MtxDatetimepicker<D> implements OnDestroy {
|
|
|
29
30
|
private _dateAdapter;
|
|
30
31
|
private _dir;
|
|
31
32
|
/** Active multi year view when click on year. */
|
|
32
|
-
multiYearSelector: boolean;
|
|
33
|
+
get multiYearSelector(): boolean;
|
|
34
|
+
set multiYearSelector(value: boolean);
|
|
35
|
+
private _multiYearSelector;
|
|
33
36
|
/** if true change the clock to 12 hour format. */
|
|
34
|
-
twelvehour: boolean;
|
|
37
|
+
get twelvehour(): boolean;
|
|
38
|
+
set twelvehour(value: boolean);
|
|
39
|
+
private _twelvehour;
|
|
35
40
|
/** The view that the calendar should start in. */
|
|
36
41
|
startView: MtxCalendarView;
|
|
37
42
|
mode: MtxDatetimepickerMode;
|
|
@@ -140,4 +145,9 @@ export declare class MtxDatetimepicker<D> implements OnDestroy {
|
|
|
140
145
|
private _setConnectedPositions;
|
|
141
146
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
142
147
|
private _getCloseStream;
|
|
148
|
+
static ngAcceptInputType_multiYearSelector: BooleanInput;
|
|
149
|
+
static ngAcceptInputType_twelvehour: BooleanInput;
|
|
150
|
+
static ngAcceptInputType_touchUi: BooleanInput;
|
|
151
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
152
|
+
static ngAcceptInputType_openOnFocus: BooleanInput;
|
|
143
153
|
}
|