@ng-matero/extensions 15.4.2 → 15.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/core/mdc-helpers/_mdc-helpers.scss +242 -0
- package/esm2020/grid/grid.mjs +8 -3
- package/esm2020/grid/interfaces.mjs +1 -1
- package/esm2020/select/select.mjs +2 -2
- package/esm2020/tooltip/tooltip-animations.mjs +9 -11
- package/esm2020/tooltip/tooltip-module.mjs +4 -4
- package/esm2020/tooltip/tooltip.mjs +437 -183
- package/fesm2015/mtxGrid.mjs +27 -22
- package/fesm2015/mtxGrid.mjs.map +1 -1
- package/fesm2015/mtxSelect.mjs +2 -2
- package/fesm2015/mtxSelect.mjs.map +1 -1
- package/fesm2015/mtxTooltip.mjs +466 -203
- package/fesm2015/mtxTooltip.mjs.map +1 -1
- package/fesm2020/mtxGrid.mjs +7 -2
- package/fesm2020/mtxGrid.mjs.map +1 -1
- package/fesm2020/mtxSelect.mjs +2 -2
- package/fesm2020/mtxSelect.mjs.map +1 -1
- package/fesm2020/mtxTooltip.mjs +455 -203
- package/fesm2020/mtxTooltip.mjs.map +1 -1
- package/grid/grid.d.ts +3 -1
- package/grid/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/select/select.scss +0 -7
- package/tooltip/_tooltip-theme.import.scss +1 -3
- package/tooltip/_tooltip-theme.scss +26 -29
- package/tooltip/tooltip-animations.d.ts +2 -2
- package/tooltip/tooltip.d.ts +130 -48
- package/tooltip/tooltip.scss +91 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
.mat-button-loading .mdc-button__label,.mat-button-loading .mat-icon{visibility:hidden}.mat-button-loading .mat-mdc-progress-spinner{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}.mtx-alert{background-color:#424242}.mtx-alert-info.mtx-alert{background-color:#2196f3;color:#fff}.mtx-alert-success.mtx-alert{background-color:#4caf50;color:#fff}.mtx-alert-warning.mtx-alert{background-color:#ff9800;color:#fff}.mtx-alert-danger.mtx-alert{background-color:#f44336;color:#fff}.mtx-colorpicker-toggle-active{color:#7b1fa2}.mtx-colorpicker-toggle-active.mat-accent{color:#69f0ae}.mtx-colorpicker-toggle-active.mat-warn{color:#f44336}.mtx-datetimepicker-content{background-color:#424242;color:#fff;box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mtx-calendar-header{background-color:#7b1fa2;color:#fff}.mtx-calendar-body-label{color:rgba(255,255,255,.7)}.mtx-calendar-table-header{color:rgba(255,255,255,.5)}.mtx-calendar-body-cell-content{color:#fff}.mtx-calendar-body-cell-content.mtx-calendar-body-selected{background-color:#7b1fa2;color:#fff}.mtx-calendar-body-cell-content.mtx-calendar-body-selected.mtx-calendar-body-today{box-shadow:inset 0 0 0 1px #fff}.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected).mtx-calendar-body-today{border-color:rgba(255,255,255,.5)}.mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected),.mtx-calendar-body-active>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:rgba(123,31,162,.3)}.mtx-calendar-body-disabled>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){color:rgba(255,255,255,.5)}.mtx-calendar-body-disabled>.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:rgba(255,255,255,.5)}.mtx-calendar-body-disabled>.mtx-calendar-body-selected{background-color:rgba(123,31,162,.4)}.mtx-calendar-previous-button.disabled,.mtx-calendar-next-button.disabled{color:rgba(255,255,255,.5)}.mtx-clock-wrapper{background-color:rgba(255,255,255,.12)}.mtx-clock-center{background-color:#7b1fa2}.mtx-clock-hand{background-color:#7b1fa2}.mtx-clock-hand::before{background-color:#7b1fa2}.mtx-clock-cell{color:#fff}.mtx-clock-cell.mtx-clock-cell-selected{background-color:#7b1fa2;color:#fff}.mtx-clock-cell:not(.mtx-clock-cell-selected,.mtx-clock-cell-disabled):hover{background-color:rgba(255,255,255,.04)}.mtx-clock-cell.mtx-clock-cell-disabled{color:rgba(255,255,255,.5)}.mtx-datetimepicker-toggle-active{color:#7b1fa2}.mtx-datetimepicker-toggle-active.mat-accent{color:#69f0ae}.mtx-datetimepicker-toggle-active.mat-warn{color:#f44336}.mtx-time-input{color:#fff;background-color:rgba(255,255,255,.12)}.mtx-time-input.mtx-time-input-active{color:#7b1fa2;background-color:rgba(123,31,162,.2)}.mtx-time-input.mtx-time-input-active:focus{border-color:#7b1fa2;background-color:#303030}.mtx-time-input.mtx-time-input-active:focus::placeholder{color:rgba(123,31,162,.6)}.mtx-time-input.mtx-time-input-warning{border-color:#f44336}.mtx-time-ampm .mtx-time-am,.mtx-time-ampm .mtx-time-pm{--mdc-text-button-label-text-color: rgba(255, 255, 255, 0.75);border-color:rgba(255,255,255,.5)}.mtx-time-ampm .mtx-time-am.mtx-time-ampm-active,.mtx-time-ampm .mtx-time-pm.mtx-time-ampm-active{--mdc-text-button-label-text-color: white;--mdc-typography-button-font-weight: 500;background-color:rgba(105,240,174,.2)}.mtx-calendar{font-family:Roboto, "Helvetica Neue", sans-serif}.mtx-calendar-body{font-size:13px}.mtx-calendar-body-label,.mtx-calendar-period-button{font-size:14px;font-weight:500}.mtx-calendar-table-header th{font-size:11px;font-weight:400}.mtx-clock{font-size:14px}.mtx-drawer-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);background:#424242;color:#fff}.mtx-grid{border:1px solid rgba(255,255,255,.2)}.mtx-grid .mat-table-sticky-left,.mtx-grid .mat-table-sticky-right{border-color:rgba(255,255,255,.12)}.mtx-grid .mat-mdc-table.mat-table-striped .mat-row-odd{background-color:#3a3a3a}.mtx-grid .mat-mdc-table.mat-table-hover .mat-mdc-row:hover{background-color:#2a2a2a}.mtx-grid .mat-mdc-table .mat-mdc-row.selected,.mtx-grid .mat-mdc-table .mat-mdc-row.mat-row-odd.selected{background-color:#2a2a2a}.mtx-grid .mat-mdc-table .mat-mdc-cell.selected{box-shadow:inset 0 0 0 1px #69f0ae}.mtx-grid .mat-mdc-footer-row .mat-mdc-footer-cell{border-top:1px solid rgba(255,255,255,.12);border-bottom-width:0;background-color:#212121}.mtx-grid .mat-mdc-paginator{border-top:1px solid rgba(255,255,255,.2)}.mtx-grid-toolbar{border-bottom:1px solid rgba(255,255,255,.2)}.mtx-grid-sidebar{border-color:rgba(255,255,255,.2)}.mtx-grid-statusbar{border-top:1px solid rgba(255,255,255,.2)}.mtx-grid-column-menu-item{color:#fff}.mtx-grid-column-menu-header,.mtx-grid-column-menu-footer{color:#fff;background-color:#424242}.mtx-grid-column-menu-header{border-bottom:1px solid rgba(255,255,255,.12)}.mtx-grid-column-menu-footer{border-top:1px solid rgba(255,255,255,.12)}.mat-column-resize-table.cdk-column-resize-with-resized-column{table-layout:fixed}.mat-column-resize-flex .mat-mdc-header-cell,.mat-column-resize-flex .mat-mdc-cell{box-sizing:border-box;min-width:32px}.mat-mdc-header-cell{position:relative}.mat-resizable{box-sizing:border-box}.mat-mdc-header-cell:not(.mat-resizable)::after,.mat-resizable-handle{position:absolute;bottom:0;top:0;right:0;width:1px;background:rgba(0,0,0,0);transition:background 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-header-cell:not(.mat-resizable)::after{content:""}[dir=rtl] .mat-mdc-header-cell:not(.mat-resizable)::after,[dir=rtl] .mat-resizable-handle{left:0;right:auto}.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-mdc-header-cell:not(.mat-resizable)::after{background:rgba(255,255,255,.12)}.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-resizable-handle{background:#ce93d8}.mat-resizable.cdk-resizable-overlay-thumb-active>.mat-resizable-handle{opacity:0;transition:none}.mat-resizable-handle:focus,.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-resizable-handle:focus{background:#9c27b0;outline:none}.mat-column-resize-overlay-thumb{background:rgba(0,0,0,0);cursor:col-resize;height:100%;transition:background 300ms cubic-bezier(0.55, 0, 0.55, 0.2);width:100%;-webkit-user-select:none;user-select:none}.mat-column-resize-overlay-thumb:active{background:linear-gradient(90deg, transparent, transparent 7px, #9c27b0, #9c27b0 1px, transparent 8px, transparent);will-change:transform}.mtx-loader-backdrop{background-color:rgba(48,48,48,.75)}.mtx-popover-panel{color:#fff;background-color:#424242}[class*=mtx-popover] .mtx-popover-direction-arrow::before{border-color:rgba(255,255,255,.12)}[class*=mtx-popover] .mtx-popover-direction-arrow::after{border-color:#424242}[class*=mtx-popover-below] .mtx-popover-direction-arrow::before,[class*=mtx-popover-below] .mtx-popover-direction-arrow::after,[class*=mtx-popover-above] .mtx-popover-direction-arrow::before,[class*=mtx-popover-above] .mtx-popover-direction-arrow::after{border-left-color:rgba(0,0,0,0);border-right-color:rgba(0,0,0,0)}[class*=mtx-popover-before] .mtx-popover-direction-arrow::before,[class*=mtx-popover-before] .mtx-popover-direction-arrow::after,[class*=mtx-popover-after] .mtx-popover-direction-arrow::before,[class*=mtx-popover-after] .mtx-popover-direction-arrow::after{border-top-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0)}.mtx-progress{background-color:rgba(255,255,255,.04)}.mtx-progress-fill-info{background-color:#2196f3;color:#fff}.mtx-progress-fill-success{background-color:#4caf50;color:#fff}.mtx-progress-fill-warning{background-color:#ff9800;color:#fff}.mtx-progress-fill-danger{background-color:#f44336;color:#fff}.ng-select .ng-select-container{color:#fff}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(255,255,255,.5)}.ng-select .ng-select-container .ng-value-container .ng-input>input{color:#fff}.ng-select.ng-select-disabled .ng-value{color:rgba(255,255,255,.5)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#fff;background-color:#616161;border:1px solid rgba(255,255,255,.12)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:rgba(255,255,255,.12)}.ng-select .ng-clear-wrapper{color:rgba(255,255,255,.7)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#f44336}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:rgba(255,255,255,.7) rgba(0,0,0,0) rgba(0,0,0,0)}.ng-select.ng-select-invalid .ng-arrow-wrapper .ng-arrow{border-color:#f44336 rgba(0,0,0,0) rgba(0,0,0,0)}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(255,255,255,.7)}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow-wrapper .ng-arrow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #f44336}.ng-dropdown-panel{background-color:#424242}.ng-dropdown-panel.multiple .ng-option.selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel.multiple .ng-option.marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{color:rgba(255,255,255,.7)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{color:#fff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(255,255,255,.5)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{color:rgba(255,255,255,.5)}.mdc-text-field--outlined .ng-select{padding-top:16px;padding-bottom:16px;margin-top:-16px;margin-bottom:-16px}.ng-select{padding-top:24px;padding-bottom:8px;margin-top:-24px;margin-bottom:-8px}.mdc-text-field--no-label .ng-select{padding-top:16px;padding-bottom:16px;margin-top:-16px;margin-bottom:-16px}.mtx-slider-thumb{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mtx-slider-track-background{background-color:#bdbdbd}.mat-primary .mtx-slider-track-fill,.mat-primary .mtx-slider-thumb,.mat-primary .mtx-slider-thumb-label{background-color:#7b1fa2}.mat-primary .mtx-slider-thumb-label-text{color:#fff}.mat-primary .mtx-slider-focus-ring{background-color:rgba(123,31,162,.2)}.mat-accent .mtx-slider-track-fill,.mat-accent .mtx-slider-thumb,.mat-accent .mtx-slider-thumb-label{background-color:#69f0ae}.mat-accent .mtx-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-accent .mtx-slider-focus-ring{background-color:rgba(105,240,174,.2)}.mat-warn .mtx-slider-track-fill,.mat-warn .mtx-slider-thumb,.mat-warn .mtx-slider-thumb-label{background-color:#f44336}.mat-warn .mtx-slider-thumb-label-text{color:#fff}.mat-warn .mtx-slider-focus-ring{background-color:rgba(244,67,54,.2)}.mtx-slider:hover .mtx-slider-track-background,.mtx-slider.cdk-focused .mtx-slider-track-background{background-color:rgba(255,255,255,.3)}.mtx-slider-disabled .mtx-slider-track-background{background-color:rgba(189,189,189,.54)}.mtx-slider-disabled .mtx-slider-track-fill,.mtx-slider-disabled .mtx-slider-thumb{background-color:#bdbdbd}.mtx-slider-disabled:hover .mtx-slider-track-background,.mtx-slider-disabled.cdk-focused .mtx-slider-track-background{background-color:rgba(189,189,189,.54)}.mtx-slider-min-value .mtx-slider-focus-ring{background-color:rgba(255,255,255,.12)}.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider) .mtx-slider-thumb,.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider) .mtx-slider-thumb-label{background-color:#fff}.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider).cdk-focused .mtx-slider-thumb,.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider).cdk-focused .mtx-slider-thumb-label{background-color:rgba(255,255,255,.3)}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider) .mtx-slider-thumb{background-color:#bdbdbd}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider):hover .mtx-slider-thumb,.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider).cdk-focused .mtx-slider-thumb{background-color:rgba(255,255,255,.3)}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider):hover.mtx-slider-disabled .mtx-slider-thumb,.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider).cdk-focused.mtx-slider-disabled .mtx-slider-thumb{border-color:#bdbdbd}.mtx-slider-has-ticks .mtx-slider-wrapper::after{border-color:rgba(255,255,255,.7)}.mtx-slider-horizontal .mtx-slider-ticks{background-image:repeating-linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent);background-image:repeating-linear-gradient(0.0001deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent)}.mtx-slider-vertical .mtx-slider-ticks{background-image:repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent)}.mtx-slider-thumb-label-text{font-family:Roboto, "Helvetica Neue", sans-serif;font-size:12px;font-weight:400}.mtx-split>.mtx-split-gutter{background-color:rgba(255,255,255,.12)}.mtx-split>.mtx-split-gutter:hover{background-color:#7b1fa2}.mtx-split>.mtx-split-gutter.mat-accent:hover{background-color:#69f0ae}.mtx-split>.mtx-split-gutter.mat-warn:hover{background-color:#f44336}.mtx-tooltip{background:rgba(97,97,97,.9)}.mtx-tooltip{font-family:Roboto, "Helvetica Neue", sans-serif;font-size:12px;padding-top:5px;padding-bottom:5px}.mtx-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}
|
|
1
|
+
.mat-button-loading .mdc-button__label,.mat-button-loading .mat-icon{visibility:hidden}.mat-button-loading .mat-mdc-progress-spinner{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}.mtx-alert{background-color:#424242}.mtx-alert-info.mtx-alert{background-color:#2196f3;color:#fff}.mtx-alert-success.mtx-alert{background-color:#4caf50;color:#fff}.mtx-alert-warning.mtx-alert{background-color:#ff9800;color:#fff}.mtx-alert-danger.mtx-alert{background-color:#f44336;color:#fff}.mtx-colorpicker-toggle-active{color:#7b1fa2}.mtx-colorpicker-toggle-active.mat-accent{color:#69f0ae}.mtx-colorpicker-toggle-active.mat-warn{color:#f44336}.mtx-datetimepicker-content{background-color:#424242;color:#fff;box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mtx-calendar-header{background-color:#7b1fa2;color:#fff}.mtx-calendar-body-label{color:rgba(255,255,255,.7)}.mtx-calendar-table-header{color:rgba(255,255,255,.5)}.mtx-calendar-body-cell-content{color:#fff}.mtx-calendar-body-cell-content.mtx-calendar-body-selected{background-color:#7b1fa2;color:#fff}.mtx-calendar-body-cell-content.mtx-calendar-body-selected.mtx-calendar-body-today{box-shadow:inset 0 0 0 1px #fff}.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected).mtx-calendar-body-today{border-color:rgba(255,255,255,.5)}.mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected),.mtx-calendar-body-active>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:rgba(123,31,162,.3)}.mtx-calendar-body-disabled>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){color:rgba(255,255,255,.5)}.mtx-calendar-body-disabled>.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:rgba(255,255,255,.5)}.mtx-calendar-body-disabled>.mtx-calendar-body-selected{background-color:rgba(123,31,162,.4)}.mtx-calendar-previous-button.disabled,.mtx-calendar-next-button.disabled{color:rgba(255,255,255,.5)}.mtx-clock-wrapper{background-color:rgba(255,255,255,.12)}.mtx-clock-center{background-color:#7b1fa2}.mtx-clock-hand{background-color:#7b1fa2}.mtx-clock-hand::before{background-color:#7b1fa2}.mtx-clock-cell{color:#fff}.mtx-clock-cell.mtx-clock-cell-selected{background-color:#7b1fa2;color:#fff}.mtx-clock-cell:not(.mtx-clock-cell-selected,.mtx-clock-cell-disabled):hover{background-color:rgba(255,255,255,.04)}.mtx-clock-cell.mtx-clock-cell-disabled{color:rgba(255,255,255,.5)}.mtx-datetimepicker-toggle-active{color:#7b1fa2}.mtx-datetimepicker-toggle-active.mat-accent{color:#69f0ae}.mtx-datetimepicker-toggle-active.mat-warn{color:#f44336}.mtx-time-input{color:#fff;background-color:rgba(255,255,255,.12)}.mtx-time-input.mtx-time-input-active{color:#7b1fa2;background-color:rgba(123,31,162,.2)}.mtx-time-input.mtx-time-input-active:focus{border-color:#7b1fa2;background-color:#303030}.mtx-time-input.mtx-time-input-active:focus::placeholder{color:rgba(123,31,162,.6)}.mtx-time-input.mtx-time-input-warning{border-color:#f44336}.mtx-time-ampm .mtx-time-am,.mtx-time-ampm .mtx-time-pm{--mdc-text-button-label-text-color: rgba(255, 255, 255, 0.75);border-color:rgba(255,255,255,.5)}.mtx-time-ampm .mtx-time-am.mtx-time-ampm-active,.mtx-time-ampm .mtx-time-pm.mtx-time-ampm-active{--mdc-text-button-label-text-color: white;--mdc-typography-button-font-weight: 500;background-color:rgba(105,240,174,.2)}.mtx-calendar{font-family:Roboto, "Helvetica Neue", sans-serif}.mtx-calendar-body{font-size:13px}.mtx-calendar-body-label,.mtx-calendar-period-button{font-size:14px;font-weight:500}.mtx-calendar-table-header th{font-size:11px;font-weight:400}.mtx-clock{font-size:14px}.mtx-drawer-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);background:#424242;color:#fff}.mtx-grid{border:1px solid rgba(255,255,255,.2)}.mtx-grid .mat-table-sticky-left,.mtx-grid .mat-table-sticky-right{border-color:rgba(255,255,255,.12)}.mtx-grid .mat-mdc-table.mat-table-striped .mat-row-odd{background-color:#3a3a3a}.mtx-grid .mat-mdc-table.mat-table-hover .mat-mdc-row:hover{background-color:#2a2a2a}.mtx-grid .mat-mdc-table .mat-mdc-row.selected,.mtx-grid .mat-mdc-table .mat-mdc-row.mat-row-odd.selected{background-color:#2a2a2a}.mtx-grid .mat-mdc-table .mat-mdc-cell.selected{box-shadow:inset 0 0 0 1px #69f0ae}.mtx-grid .mat-mdc-footer-row .mat-mdc-footer-cell{border-top:1px solid rgba(255,255,255,.12);border-bottom-width:0;background-color:#212121}.mtx-grid .mat-mdc-paginator{border-top:1px solid rgba(255,255,255,.2)}.mtx-grid-toolbar{border-bottom:1px solid rgba(255,255,255,.2)}.mtx-grid-sidebar{border-color:rgba(255,255,255,.2)}.mtx-grid-statusbar{border-top:1px solid rgba(255,255,255,.2)}.mtx-grid-column-menu-item{color:#fff}.mtx-grid-column-menu-header,.mtx-grid-column-menu-footer{color:#fff;background-color:#424242}.mtx-grid-column-menu-header{border-bottom:1px solid rgba(255,255,255,.12)}.mtx-grid-column-menu-footer{border-top:1px solid rgba(255,255,255,.12)}.mat-column-resize-table.cdk-column-resize-with-resized-column{table-layout:fixed}.mat-column-resize-flex .mat-mdc-header-cell,.mat-column-resize-flex .mat-mdc-cell{box-sizing:border-box;min-width:32px}.mat-mdc-header-cell{position:relative}.mat-resizable{box-sizing:border-box}.mat-mdc-header-cell:not(.mat-resizable)::after,.mat-resizable-handle{position:absolute;bottom:0;top:0;right:0;width:1px;background:rgba(0,0,0,0);transition:background 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-header-cell:not(.mat-resizable)::after{content:""}[dir=rtl] .mat-mdc-header-cell:not(.mat-resizable)::after,[dir=rtl] .mat-resizable-handle{left:0;right:auto}.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-mdc-header-cell:not(.mat-resizable)::after{background:rgba(255,255,255,.12)}.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-resizable-handle{background:#ce93d8}.mat-resizable.cdk-resizable-overlay-thumb-active>.mat-resizable-handle{opacity:0;transition:none}.mat-resizable-handle:focus,.mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-resizable-handle:focus{background:#9c27b0;outline:none}.mat-column-resize-overlay-thumb{background:rgba(0,0,0,0);cursor:col-resize;height:100%;transition:background 300ms cubic-bezier(0.55, 0, 0.55, 0.2);width:100%;-webkit-user-select:none;user-select:none}.mat-column-resize-overlay-thumb:active{background:linear-gradient(90deg, transparent, transparent 7px, #9c27b0, #9c27b0 1px, transparent 8px, transparent);will-change:transform}.mtx-loader-backdrop{background-color:rgba(48,48,48,.75)}.mtx-popover-panel{color:#fff;background-color:#424242}[class*=mtx-popover] .mtx-popover-direction-arrow::before{border-color:rgba(255,255,255,.12)}[class*=mtx-popover] .mtx-popover-direction-arrow::after{border-color:#424242}[class*=mtx-popover-below] .mtx-popover-direction-arrow::before,[class*=mtx-popover-below] .mtx-popover-direction-arrow::after,[class*=mtx-popover-above] .mtx-popover-direction-arrow::before,[class*=mtx-popover-above] .mtx-popover-direction-arrow::after{border-left-color:rgba(0,0,0,0);border-right-color:rgba(0,0,0,0)}[class*=mtx-popover-before] .mtx-popover-direction-arrow::before,[class*=mtx-popover-before] .mtx-popover-direction-arrow::after,[class*=mtx-popover-after] .mtx-popover-direction-arrow::before,[class*=mtx-popover-after] .mtx-popover-direction-arrow::after{border-top-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0)}.mtx-progress{background-color:rgba(255,255,255,.04)}.mtx-progress-fill-info{background-color:#2196f3;color:#fff}.mtx-progress-fill-success{background-color:#4caf50;color:#fff}.mtx-progress-fill-warning{background-color:#ff9800;color:#fff}.mtx-progress-fill-danger{background-color:#f44336;color:#fff}.ng-select .ng-select-container{color:#fff}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(255,255,255,.5)}.ng-select .ng-select-container .ng-value-container .ng-input>input{color:#fff}.ng-select.ng-select-disabled .ng-value{color:rgba(255,255,255,.5)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#fff;background-color:#616161;border:1px solid rgba(255,255,255,.12)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:rgba(255,255,255,.12)}.ng-select .ng-clear-wrapper{color:rgba(255,255,255,.7)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#f44336}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:rgba(255,255,255,.7) rgba(0,0,0,0) rgba(0,0,0,0)}.ng-select.ng-select-invalid .ng-arrow-wrapper .ng-arrow{border-color:#f44336 rgba(0,0,0,0) rgba(0,0,0,0)}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(255,255,255,.7)}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow-wrapper .ng-arrow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #f44336}.ng-dropdown-panel{background-color:#424242}.ng-dropdown-panel.multiple .ng-option.selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel.multiple .ng-option.marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{color:rgba(255,255,255,.7)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{color:#fff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background:rgba(255,255,255,.04)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background:rgba(255,255,255,.12)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(255,255,255,.5)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{color:rgba(255,255,255,.5)}.mdc-text-field--outlined .ng-select{padding-top:16px;padding-bottom:16px;margin-top:-16px;margin-bottom:-16px}.ng-select{padding-top:24px;padding-bottom:8px;margin-top:-24px;margin-bottom:-8px}.mdc-text-field--no-label .ng-select{padding-top:16px;padding-bottom:16px;margin-top:-16px;margin-bottom:-16px}.mtx-slider-thumb{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mtx-slider-track-background{background-color:#bdbdbd}.mat-primary .mtx-slider-track-fill,.mat-primary .mtx-slider-thumb,.mat-primary .mtx-slider-thumb-label{background-color:#7b1fa2}.mat-primary .mtx-slider-thumb-label-text{color:#fff}.mat-primary .mtx-slider-focus-ring{background-color:rgba(123,31,162,.2)}.mat-accent .mtx-slider-track-fill,.mat-accent .mtx-slider-thumb,.mat-accent .mtx-slider-thumb-label{background-color:#69f0ae}.mat-accent .mtx-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-accent .mtx-slider-focus-ring{background-color:rgba(105,240,174,.2)}.mat-warn .mtx-slider-track-fill,.mat-warn .mtx-slider-thumb,.mat-warn .mtx-slider-thumb-label{background-color:#f44336}.mat-warn .mtx-slider-thumb-label-text{color:#fff}.mat-warn .mtx-slider-focus-ring{background-color:rgba(244,67,54,.2)}.mtx-slider:hover .mtx-slider-track-background,.mtx-slider.cdk-focused .mtx-slider-track-background{background-color:rgba(255,255,255,.3)}.mtx-slider-disabled .mtx-slider-track-background{background-color:rgba(189,189,189,.54)}.mtx-slider-disabled .mtx-slider-track-fill,.mtx-slider-disabled .mtx-slider-thumb{background-color:#bdbdbd}.mtx-slider-disabled:hover .mtx-slider-track-background,.mtx-slider-disabled.cdk-focused .mtx-slider-track-background{background-color:rgba(189,189,189,.54)}.mtx-slider-min-value .mtx-slider-focus-ring{background-color:rgba(255,255,255,.12)}.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider) .mtx-slider-thumb,.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider) .mtx-slider-thumb-label{background-color:#fff}.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider).cdk-focused .mtx-slider-thumb,.mtx-slider-min-value.mtx-slider-thumb-label-showing:not(.mtx-range-slider).cdk-focused .mtx-slider-thumb-label{background-color:rgba(255,255,255,.3)}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider) .mtx-slider-thumb{background-color:#bdbdbd}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider):hover .mtx-slider-thumb,.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider).cdk-focused .mtx-slider-thumb{background-color:rgba(255,255,255,.3)}.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider):hover.mtx-slider-disabled .mtx-slider-thumb,.mtx-slider-min-value:not(.mtx-slider-thumb-label-showing,.mtx-range-slider).cdk-focused.mtx-slider-disabled .mtx-slider-thumb{border-color:#bdbdbd}.mtx-slider-has-ticks .mtx-slider-wrapper::after{border-color:rgba(255,255,255,.7)}.mtx-slider-horizontal .mtx-slider-ticks{background-image:repeating-linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent);background-image:repeating-linear-gradient(0.0001deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent)}.mtx-slider-vertical .mtx-slider-ticks{background-image:repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 2px, transparent 0, transparent)}.mtx-slider-thumb-label-text{font-family:Roboto, "Helvetica Neue", sans-serif;font-size:12px;font-weight:400}.mtx-split>.mtx-split-gutter{background-color:rgba(255,255,255,.12)}.mtx-split>.mtx-split-gutter:hover{background-color:#7b1fa2}.mtx-split>.mtx-split-gutter.mat-accent:hover{background-color:#69f0ae}.mtx-split>.mtx-split-gutter.mat-warn:hover{background-color:#f44336}.mtx-mdc-tooltip{--mdc-plain-tooltip-container-color:#616161;--mdc-plain-tooltip-supporting-text-color:white}.mtx-mdc-tooltip{--mdc-plain-tooltip-supporting-text-font:Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size:12px;--mdc-plain-tooltip-supporting-text-weight:400;--mdc-plain-tooltip-supporting-text-tracking:0.0333333333em}
|
package/select/select.scss
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
@forward 'tooltip-theme'
|
|
2
|
-
$handset-vertical-padding, $target-height, $vertical-padding, color, density, theme, typography;
|
|
3
|
-
@forward 'tooltip-theme' as mtx-tooltip-*;
|
|
1
|
+
@forward 'tooltip-theme' as mtx-mdc-tooltip-*;
|
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@material/tooltip/plain-tooltip-theme';
|
|
3
|
+
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
4
|
+
@use '@material/typography/typography' as mdc-typography;
|
|
2
5
|
@use '../core/theming/theming';
|
|
6
|
+
@use '../core/theming/palette';
|
|
7
|
+
@use '../core/mdc-helpers/mdc-helpers';
|
|
3
8
|
@use '../core/typography/typography';
|
|
4
|
-
@use '../core/typography/typography-utils';
|
|
5
|
-
|
|
6
|
-
$target-height: 22px;
|
|
7
|
-
$font-size: 12px;
|
|
8
|
-
$vertical-padding: ($target-height - $font-size) * .5;
|
|
9
|
-
|
|
10
|
-
$handset-target-height: 30px;
|
|
11
|
-
$handset-font-size: 14px;
|
|
12
|
-
$handset-vertical-padding: ($handset-target-height - $handset-font-size) * .5;
|
|
13
9
|
|
|
14
10
|
@mixin color($config-or-theme) {
|
|
15
11
|
$config: theming.get-color-config($config-or-theme);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
@include mdc-helpers.using-mdc-theme($config) {
|
|
13
|
+
.mtx-mdc-tooltip {
|
|
14
|
+
@include plain-tooltip-theme.theme((
|
|
15
|
+
container-color: map.get(palette.$light-theme-background-palette, tooltip),
|
|
16
|
+
supporting-text-color: mdc-theme-color.prop-value(text-primary-on-dark)
|
|
17
|
+
));
|
|
18
|
+
}
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
@mixin typography($config-or-theme) {
|
|
24
|
-
$config: typography.private-typography-to-
|
|
25
|
-
theming.get-typography-config($config-or-theme)
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.mtx-tooltip-handset {
|
|
36
|
-
font-size: $handset-font-size;
|
|
37
|
-
padding-top: $handset-vertical-padding;
|
|
38
|
-
padding-bottom: $handset-vertical-padding;
|
|
23
|
+
$config: typography.private-typography-to-2018-config(
|
|
24
|
+
theming.get-typography-config($config-or-theme));
|
|
25
|
+
@include mdc-helpers.using-mdc-typography($config) {
|
|
26
|
+
.mtx-mdc-tooltip {
|
|
27
|
+
@include plain-tooltip-theme.theme((
|
|
28
|
+
supporting-text-font: mdc-typography.get-font(caption),
|
|
29
|
+
supporting-text-size: mdc-typography.get-size(caption),
|
|
30
|
+
supporting-text-weight: mdc-typography.get-weight(caption),
|
|
31
|
+
supporting-text-tracking: mdc-typography.get-tracking(caption),
|
|
32
|
+
));
|
|
33
|
+
}
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
@mixin density($config-or-theme) {
|
|
37
|
+
@mixin density($config-or-theme) {
|
|
38
|
+
$density-scale: theming.get-density-config($config-or-theme);
|
|
39
|
+
}
|
|
43
40
|
|
|
44
41
|
@mixin theme($theme-or-color-config) {
|
|
45
42
|
$theme: theming.private-legacy-get-theme($theme-or-color-config);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
2
|
/**
|
|
3
|
-
* Animations used by
|
|
3
|
+
* Animations used by MatTooltip.
|
|
4
4
|
* @docs-private
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const matTooltipAnimations: {
|
|
7
7
|
readonly tooltipState: AnimationTriggerMetadata;
|
|
8
8
|
};
|
package/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { AnimationEvent } from '@angular/animations';
|
|
2
1
|
import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
|
|
3
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
4
3
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
5
|
-
import {
|
|
6
|
-
import { OriginConnectionPosition, Overlay, OverlayConnectionPosition, OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';
|
|
4
|
+
import { ComponentType, ConnectedPosition, OriginConnectionPosition, Overlay, OverlayConnectionPosition, OverlayRef, ScrollDispatcher, ScrollStrategy } from '@angular/cdk/overlay';
|
|
7
5
|
import { Platform } from '@angular/cdk/platform';
|
|
8
|
-
import {
|
|
9
|
-
import { ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef, AfterViewInit, TemplateRef } from '@angular/core';
|
|
6
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
10
7
|
import { Observable } from 'rxjs';
|
|
11
8
|
import * as i0 from "@angular/core";
|
|
12
9
|
/** Possible positions for a tooltip. */
|
|
@@ -20,8 +17,6 @@ export type TooltipTouchGestures = 'auto' | 'on' | 'off';
|
|
|
20
17
|
export type TooltipVisibility = 'initial' | 'visible' | 'hidden';
|
|
21
18
|
/** Time in ms to throttle repositioning after scroll events. */
|
|
22
19
|
export declare const SCROLL_THROTTLE_MS = 20;
|
|
23
|
-
/** CSS class that will be attached to the overlay panel. */
|
|
24
|
-
export declare const TOOLTIP_PANEL_CLASS = "mtx-tooltip-panel";
|
|
25
20
|
/**
|
|
26
21
|
* Creates an error to be thrown if the user supplied an invalid tooltip position.
|
|
27
22
|
* @docs-private
|
|
@@ -37,25 +32,37 @@ export declare const MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
|
37
32
|
deps: (typeof Overlay)[];
|
|
38
33
|
useFactory: typeof MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY;
|
|
39
34
|
};
|
|
35
|
+
/** @docs-private */
|
|
36
|
+
export declare function MTX_TOOLTIP_DEFAULT_OPTIONS_FACTORY(): MtxTooltipDefaultOptions;
|
|
37
|
+
/** Injection token to be used to override the default options for `mtxTooltip`. */
|
|
38
|
+
export declare const MTX_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MtxTooltipDefaultOptions>;
|
|
40
39
|
/** Default `mtxTooltip` options that can be overridden. */
|
|
41
40
|
export interface MtxTooltipDefaultOptions {
|
|
41
|
+
/** Default delay when the tooltip is shown. */
|
|
42
42
|
showDelay: number;
|
|
43
|
+
/** Default delay when the tooltip is hidden. */
|
|
43
44
|
hideDelay: number;
|
|
45
|
+
/** Default delay when hiding the tooltip on a touch device. */
|
|
44
46
|
touchendHideDelay: number;
|
|
47
|
+
/** Default touch gesture handling for tooltips. */
|
|
45
48
|
touchGestures?: TooltipTouchGestures;
|
|
49
|
+
/** Default position for tooltips. */
|
|
46
50
|
position?: TooltipPosition;
|
|
51
|
+
/**
|
|
52
|
+
* Default value for whether tooltips should be positioned near the click or touch origin
|
|
53
|
+
* instead of outside the element bounding box.
|
|
54
|
+
*/
|
|
55
|
+
positionAtOrigin?: boolean;
|
|
56
|
+
/** Disables the ability for the user to interact with the tooltip element. */
|
|
57
|
+
disableTooltipInteractivity?: boolean;
|
|
47
58
|
}
|
|
48
|
-
/** Injection token to be used to override the default options for `matTooltip`. */
|
|
49
|
-
export declare const MTX_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MtxTooltipDefaultOptions>;
|
|
50
|
-
/** @docs-private */
|
|
51
|
-
export declare function MTX_TOOLTIP_DEFAULT_OPTIONS_FACTORY(): MtxTooltipDefaultOptions;
|
|
52
59
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* https://material.io/design/components/tooltips.html
|
|
60
|
+
* CSS class that will be attached to the overlay panel.
|
|
61
|
+
* @deprecated
|
|
62
|
+
* @breaking-change 13.0.0 remove this variable
|
|
57
63
|
*/
|
|
58
|
-
export declare
|
|
64
|
+
export declare const TOOLTIP_PANEL_CLASS = "mtx-mdc-tooltip-panel";
|
|
65
|
+
export declare abstract class _MtxTooltipBase<T extends _TooltipComponentBase> implements OnDestroy, AfterViewInit {
|
|
59
66
|
private _overlay;
|
|
60
67
|
private _elementRef;
|
|
61
68
|
private _scrollDispatcher;
|
|
@@ -64,27 +71,38 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
|
|
|
64
71
|
private _platform;
|
|
65
72
|
private _ariaDescriber;
|
|
66
73
|
private _focusMonitor;
|
|
67
|
-
|
|
74
|
+
protected _dir: Directionality;
|
|
68
75
|
private _defaultOptions;
|
|
69
76
|
_overlayRef: OverlayRef | null;
|
|
70
|
-
_tooltipInstance:
|
|
77
|
+
_tooltipInstance: T | null;
|
|
71
78
|
private _portal;
|
|
72
79
|
private _position;
|
|
80
|
+
private _positionAtOrigin;
|
|
73
81
|
private _disabled;
|
|
74
82
|
private _tooltipClass;
|
|
75
83
|
private _scrollStrategy;
|
|
76
84
|
private _viewInitialized;
|
|
77
85
|
private _pointerExitEventsInitialized;
|
|
86
|
+
protected abstract readonly _tooltipComponent: ComponentType<T>;
|
|
87
|
+
protected _viewportMargin: number;
|
|
88
|
+
private _currentPosition;
|
|
89
|
+
protected readonly _cssClassPrefix: string;
|
|
78
90
|
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
79
91
|
get position(): TooltipPosition;
|
|
80
92
|
set position(value: TooltipPosition);
|
|
93
|
+
get positionAtOrigin(): boolean;
|
|
94
|
+
set positionAtOrigin(value: BooleanInput);
|
|
81
95
|
/** Disables the display of the tooltip. */
|
|
82
96
|
get disabled(): boolean;
|
|
83
|
-
set disabled(value:
|
|
97
|
+
set disabled(value: BooleanInput);
|
|
84
98
|
/** The default delay in ms before showing the tooltip after show is called */
|
|
85
|
-
showDelay: number;
|
|
99
|
+
get showDelay(): number;
|
|
100
|
+
set showDelay(value: NumberInput);
|
|
101
|
+
private _showDelay;
|
|
86
102
|
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
87
|
-
hideDelay: number;
|
|
103
|
+
get hideDelay(): number;
|
|
104
|
+
set hideDelay(value: NumberInput);
|
|
105
|
+
private _hideDelay;
|
|
88
106
|
/**
|
|
89
107
|
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
90
108
|
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
@@ -104,6 +122,10 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
|
|
|
104
122
|
get message(): string | TemplateRef<any>;
|
|
105
123
|
set message(value: string | TemplateRef<any>);
|
|
106
124
|
private _message;
|
|
125
|
+
/** Context to be passed to the tooltip. */
|
|
126
|
+
get tooltipContext(): any;
|
|
127
|
+
set tooltipContext(value: any);
|
|
128
|
+
private _tooltipContext;
|
|
107
129
|
/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
|
|
108
130
|
get tooltipClass(): string | string[] | Set<string> | {
|
|
109
131
|
[key: string]: any;
|
|
@@ -113,35 +135,40 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
|
|
|
113
135
|
});
|
|
114
136
|
/** Manually-bound passive event listeners. */
|
|
115
137
|
private readonly _passiveListeners;
|
|
138
|
+
/** Reference to the current document. */
|
|
139
|
+
private _document;
|
|
116
140
|
/** Timer started at the last `touchstart` event. */
|
|
117
141
|
private _touchstartTimeout;
|
|
118
142
|
/** Emits when the component is destroyed. */
|
|
119
143
|
private readonly _destroyed;
|
|
120
|
-
constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _scrollDispatcher: ScrollDispatcher, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform, _ariaDescriber: AriaDescriber, _focusMonitor: FocusMonitor, scrollStrategy: any, _dir: Directionality, _defaultOptions: MtxTooltipDefaultOptions);
|
|
144
|
+
constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _scrollDispatcher: ScrollDispatcher, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform, _ariaDescriber: AriaDescriber, _focusMonitor: FocusMonitor, scrollStrategy: any, _dir: Directionality, _defaultOptions: MtxTooltipDefaultOptions, _document: any);
|
|
121
145
|
ngAfterViewInit(): void;
|
|
122
146
|
/**
|
|
123
147
|
* Dispose the tooltip when destroyed.
|
|
124
148
|
*/
|
|
125
149
|
ngOnDestroy(): void;
|
|
126
150
|
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
127
|
-
show(delay?: number
|
|
151
|
+
show(delay?: number, origin?: {
|
|
152
|
+
x: number;
|
|
153
|
+
y: number;
|
|
154
|
+
}): void;
|
|
128
155
|
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
129
156
|
hide(delay?: number): void;
|
|
130
157
|
/** Shows/hides the tooltip */
|
|
131
|
-
toggle(
|
|
158
|
+
toggle(origin?: {
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
}): void;
|
|
132
162
|
/** Returns true if the tooltip is currently visible to the user */
|
|
133
163
|
_isTooltipVisible(): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Handles the keydown events on the host element.
|
|
136
|
-
* Needs to be an arrow function so that we can use it in addEventListener.
|
|
137
|
-
*/
|
|
138
|
-
private _handleKeydown;
|
|
139
164
|
/** Create the overlay config and position strategy */
|
|
140
165
|
private _createOverlay;
|
|
141
166
|
/** Detaches the currently-attached tooltip. */
|
|
142
167
|
private _detach;
|
|
143
168
|
/** Updates the position of the current tooltip. */
|
|
144
169
|
private _updatePosition;
|
|
170
|
+
/** Adds the configured offset to a position. Used as a hook for child classes. */
|
|
171
|
+
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
145
172
|
/**
|
|
146
173
|
* Returns the origin position and a fallback position based on the user's position preference.
|
|
147
174
|
* The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
|
|
@@ -157,49 +184,73 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
|
|
|
157
184
|
};
|
|
158
185
|
/** Updates the tooltip message and repositions the overlay according to the new message length */
|
|
159
186
|
private _updateTooltipMessage;
|
|
187
|
+
/** Updates the tooltip context */
|
|
188
|
+
private _setTooltipContext;
|
|
160
189
|
/** Updates the tooltip class */
|
|
161
190
|
private _setTooltipClass;
|
|
162
191
|
/** Inverts an overlay position. */
|
|
163
192
|
private _invertPosition;
|
|
193
|
+
/** Updates the class on the overlay panel based on the current position of the tooltip. */
|
|
194
|
+
private _updateCurrentPositionClass;
|
|
164
195
|
/** Binds the pointer events to the tooltip trigger. */
|
|
165
196
|
private _setupPointerEnterEventsIfNeeded;
|
|
166
197
|
private _setupPointerExitEventsIfNeeded;
|
|
167
198
|
private _addListeners;
|
|
168
199
|
private _platformSupportsMouseEvents;
|
|
200
|
+
/** Listener for the `wheel` event on the element. */
|
|
201
|
+
private _wheelListener;
|
|
169
202
|
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
170
203
|
private _disableNativeGesturesIfNecessary;
|
|
171
|
-
static
|
|
172
|
-
static
|
|
173
|
-
static ngAcceptInputType_showDelay: NumberInput;
|
|
174
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MtxTooltip, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
175
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxTooltip, "[mtxTooltip]", ["mtxTooltip"], { "position": "mtxTooltipPosition"; "disabled": "mtxTooltipDisabled"; "showDelay": "mtxTooltipShowDelay"; "hideDelay": "mtxTooltipHideDelay"; "touchGestures": "mtxTooltipTouchGestures"; "message": "mtxTooltip"; "tooltipClass": "mtxTooltipClass"; }, {}, never, never, false, never>;
|
|
204
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_MtxTooltipBase<any>, never>;
|
|
205
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MtxTooltipBase<any>, never, never, { "position": "mtxTooltipPosition"; "positionAtOrigin": "mtxTooltipPositionAtOrigin"; "disabled": "mtxTooltipDisabled"; "showDelay": "mtxTooltipShowDelay"; "hideDelay": "mtxTooltipHideDelay"; "touchGestures": "mtxTooltipTouchGestures"; "message": "mtxTooltip"; "tooltipContext": "mtxTooltipContext"; "tooltipClass": "mtxTooltipClass"; }, {}, never, never, false, never>;
|
|
176
206
|
}
|
|
177
207
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
208
|
+
* Directive that attaches a material design tooltip to the host element. Animates the showing and
|
|
209
|
+
* hiding of a tooltip provided position (defaults to below the element).
|
|
210
|
+
*
|
|
211
|
+
* https://material.io/design/components/tooltips.html
|
|
180
212
|
*/
|
|
181
|
-
export declare class
|
|
213
|
+
export declare class MtxTooltip extends _MtxTooltipBase<TooltipComponent> {
|
|
214
|
+
protected readonly _tooltipComponent: typeof TooltipComponent;
|
|
215
|
+
protected readonly _cssClassPrefix = "mtx-mdc";
|
|
216
|
+
constructor(overlay: Overlay, elementRef: ElementRef<HTMLElement>, scrollDispatcher: ScrollDispatcher, viewContainerRef: ViewContainerRef, ngZone: NgZone, platform: Platform, ariaDescriber: AriaDescriber, focusMonitor: FocusMonitor, scrollStrategy: any, dir: Directionality, defaultOptions: MtxTooltipDefaultOptions, _document: any);
|
|
217
|
+
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxTooltip, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
219
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxTooltip, "[mtxTooltip]", ["mtxTooltip"], {}, {}, never, never, false, never>;
|
|
220
|
+
}
|
|
221
|
+
export declare abstract class _TooltipComponentBase implements OnDestroy {
|
|
182
222
|
private _changeDetectorRef;
|
|
183
|
-
private _breakpointObserver;
|
|
184
223
|
/** Message to display in the tooltip */
|
|
185
224
|
message: string | TemplateRef<any>;
|
|
225
|
+
/** Context to be added to the tooltip */
|
|
226
|
+
tooltipContext: any;
|
|
186
227
|
/** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
|
|
187
228
|
tooltipClass: string | string[] | Set<string> | {
|
|
188
229
|
[key: string]: any;
|
|
189
230
|
};
|
|
190
231
|
/** The timeout ID of any current timer set to show the tooltip */
|
|
191
|
-
_showTimeoutId
|
|
232
|
+
private _showTimeoutId;
|
|
192
233
|
/** The timeout ID of any current timer set to hide the tooltip */
|
|
193
|
-
_hideTimeoutId
|
|
194
|
-
/**
|
|
195
|
-
|
|
234
|
+
private _hideTimeoutId;
|
|
235
|
+
/** Element that caused the tooltip to open. */
|
|
236
|
+
_triggerElement: HTMLElement;
|
|
237
|
+
/** Amount of milliseconds to delay the closing sequence. */
|
|
238
|
+
_mouseLeaveHideDelay: number;
|
|
239
|
+
/** Whether animations are currently disabled. */
|
|
240
|
+
private _animationsDisabled;
|
|
241
|
+
/** Reference to the internal tooltip element. */
|
|
242
|
+
abstract _tooltip: ElementRef<HTMLElement>;
|
|
196
243
|
/** Whether interactions on the page should close the tooltip */
|
|
197
244
|
private _closeOnInteraction;
|
|
245
|
+
/** Whether the tooltip is currently visible. */
|
|
246
|
+
private _isVisible;
|
|
198
247
|
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
199
248
|
private readonly _onHide;
|
|
200
|
-
/**
|
|
201
|
-
|
|
202
|
-
|
|
249
|
+
/** Name of the show animation and the class that toggles it. */
|
|
250
|
+
protected abstract readonly _showAnimation: string;
|
|
251
|
+
/** Name of the hide animation and the class that toggles it. */
|
|
252
|
+
protected abstract readonly _hideAnimation: string;
|
|
253
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, animationMode?: string);
|
|
203
254
|
/**
|
|
204
255
|
* Shows the tooltip with an animation originating from the provided origin
|
|
205
256
|
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
@@ -215,8 +266,6 @@ export declare class TooltipComponent implements OnDestroy {
|
|
|
215
266
|
/** Whether the tooltip is being displayed. */
|
|
216
267
|
isVisible(): boolean;
|
|
217
268
|
ngOnDestroy(): void;
|
|
218
|
-
_animationStart(): void;
|
|
219
|
-
_animationDone(event: AnimationEvent): void;
|
|
220
269
|
/**
|
|
221
270
|
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
222
271
|
* material design spec.
|
|
@@ -229,6 +278,39 @@ export declare class TooltipComponent implements OnDestroy {
|
|
|
229
278
|
* can be problematic in components with OnPush change detection.
|
|
230
279
|
*/
|
|
231
280
|
_markForCheck(): void;
|
|
232
|
-
|
|
281
|
+
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
282
|
+
/**
|
|
283
|
+
* Callback for when the timeout in this.show() gets completed.
|
|
284
|
+
* This method is only needed by the mdc-tooltip, and so it is only implemented
|
|
285
|
+
* in the mdc-tooltip, not here.
|
|
286
|
+
*/
|
|
287
|
+
protected _onShow(): void;
|
|
288
|
+
/** Event listener dispatched when an animation on the tooltip finishes. */
|
|
289
|
+
_handleAnimationEnd({ animationName }: AnimationEvent): void;
|
|
290
|
+
/** Cancels any pending animation sequences. */
|
|
291
|
+
_cancelPendingAnimations(): void;
|
|
292
|
+
/** Handles the cleanup after an animation has finished. */
|
|
293
|
+
private _finalizeAnimation;
|
|
294
|
+
/** Toggles the visibility of the tooltip element. */
|
|
295
|
+
private _toggleVisibility;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_TooltipComponentBase, [null, { optional: true; }]>;
|
|
297
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_TooltipComponentBase, never, never, {}, {}, never, never, false, never>;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Internal component that wraps the tooltip's content.
|
|
301
|
+
* @docs-private
|
|
302
|
+
*/
|
|
303
|
+
export declare class TooltipComponent extends _TooltipComponentBase {
|
|
304
|
+
private _elementRef;
|
|
305
|
+
_isMultiline: boolean;
|
|
306
|
+
/** Reference to the internal tooltip element. */
|
|
307
|
+
_tooltip: ElementRef<HTMLElement>;
|
|
308
|
+
_showAnimation: string;
|
|
309
|
+
_hideAnimation: string;
|
|
310
|
+
constructor(changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, animationMode?: string);
|
|
311
|
+
protected _onShow(): void;
|
|
312
|
+
/** Whether the tooltip text has overflown to the next line */
|
|
313
|
+
private _isTooltipMultiline;
|
|
314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, [null, null, { optional: true; }]>;
|
|
233
315
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mtx-tooltip-component", never, {}, {}, never, never, false, never>;
|
|
234
316
|
}
|
package/tooltip/tooltip.scss
CHANGED
|
@@ -1,36 +1,100 @@
|
|
|
1
|
-
@use '@
|
|
1
|
+
@use '@material/tooltip/tooltip';
|
|
2
|
+
@use '@material/tooltip/tooltip-theme';
|
|
3
|
+
@use '@material/tooltip/plain-tooltip-theme';
|
|
4
|
+
@use '../core/mdc-helpers/mdc-helpers';
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
@include mdc-helpers.disable-mdc-fallback-declarations {
|
|
7
|
+
// Only include the structural styles, because we handle the animation ourselves.
|
|
8
|
+
@include tooltip.static-styles($query: structure);
|
|
9
|
+
@include plain-tooltip-theme.theme-styles((
|
|
10
|
+
container-shape: tooltip-theme.$border-radius,
|
|
11
|
+
container-color: #fff,
|
|
12
|
+
supporting-text-color: #000,
|
|
13
|
+
supporting-text-font: inherit,
|
|
14
|
+
supporting-text-size: inherit,
|
|
15
|
+
supporting-text-tracking: inherit,
|
|
16
|
+
supporting-text-weight: inherit,
|
|
17
|
+
));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mtx-mdc-tooltip {
|
|
21
|
+
// We don't use MDC's positioning so this has to be relative.
|
|
22
|
+
position: relative;
|
|
23
|
+
transform: scale(0);
|
|
24
|
+
|
|
25
|
+
// Increases the area of the tooltip so the user's pointer can go from the trigger directly to it.
|
|
26
|
+
&::before {
|
|
27
|
+
$offset: -8px;
|
|
28
|
+
|
|
29
|
+
content: '';
|
|
30
|
+
top: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
z-index: -1;
|
|
35
|
+
position: absolute;
|
|
36
|
+
|
|
37
|
+
// Only set the offset on the side closest to the panel so we
|
|
38
|
+
// don't accidentally cover more content than we need to.
|
|
39
|
+
.mtx-mdc-tooltip-panel-below & {
|
|
40
|
+
top: $offset;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mtx-mdc-tooltip-panel-above & {
|
|
44
|
+
bottom: $offset;
|
|
45
|
+
}
|
|
6
46
|
|
|
7
|
-
|
|
8
|
-
|
|
47
|
+
// Note that here we use left/right instead of before/after
|
|
48
|
+
// so that we don't have to add extra styles for RTL.
|
|
49
|
+
.mtx-mdc-tooltip-panel-right & {
|
|
50
|
+
left: $offset;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.mtx-mdc-tooltip-panel-left & {
|
|
54
|
+
right: $offset;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&._mtx-animation-noopable {
|
|
59
|
+
animation: none;
|
|
60
|
+
transform: scale(1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
9
63
|
|
|
10
|
-
.mtx-tooltip-panel {
|
|
11
|
-
|
|
12
|
-
// depending on the state of the overlay. For tooltips the overlay panel should never enable
|
|
13
|
-
// pointer events. To overwrite the inline CSS from the overlay reference `!important` is needed.
|
|
14
|
-
pointer-events: none !important;
|
|
64
|
+
.mtx-mdc-tooltip-panel-non-interactive {
|
|
65
|
+
pointer-events: none;
|
|
15
66
|
}
|
|
16
67
|
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
68
|
+
// TODO(crisbeto): we may be able to use MDC directly for these animations.
|
|
69
|
+
|
|
70
|
+
@keyframes mtx-mdc-tooltip-show {
|
|
71
|
+
0% {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
transform: scale(.8);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
100% {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes mtx-mdc-tooltip-hide {
|
|
83
|
+
0% {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
transform: scale(1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
100% {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transform: scale(.8);
|
|
29
91
|
}
|
|
30
92
|
}
|
|
31
93
|
|
|
32
|
-
.mtx-tooltip-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
94
|
+
.mtx-mdc-tooltip-show {
|
|
95
|
+
animation: mtx-mdc-tooltip-show 150ms cubic-bezier(0, 0, .2, 1) forwards;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mtx-mdc-tooltip-hide {
|
|
99
|
+
animation: mtx-mdc-tooltip-hide 75ms cubic-bezier(.4, 0, 1, 1) forwards;
|
|
36
100
|
}
|