@ptsecurity/mosaic 11.6.0 → 12.2.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/_theming.scss +407 -99
- package/_visual.scss +63 -26
- package/autocomplete/autocomplete-origin.directive.d.ts +3 -0
- package/autocomplete/autocomplete-trigger.directive.d.ts +3 -0
- package/autocomplete/autocomplete.component.d.ts +3 -0
- package/autocomplete/autocomplete.module.d.ts +10 -0
- package/autocomplete/package.json +0 -1
- package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +1 -0
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +178 -114
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +107 -71
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +106 -77
- package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +74 -43
- package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +114 -69
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +804 -256
- package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +599 -420
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +108 -26
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +55 -28
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +263 -187
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +200 -125
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +79 -41
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +222 -124
- package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +76 -45
- package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +344 -200
- package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +324 -220
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +289 -208
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +346 -640
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +126 -81
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +276 -154
- package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +105 -68
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +236 -158
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +112 -83
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +77 -44
- package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +894 -687
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +313 -209
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +107 -53
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +116 -71
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +97 -58
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +347 -615
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +223 -118
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +1162 -344
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic.umd.js +2 -2
- package/button/button.component.d.ts +7 -0
- package/button/button.module.d.ts +8 -0
- package/button/package.json +0 -1
- package/button/ptsecurity-mosaic-button.d.ts +1 -0
- package/button-toggle/button-toggle.component.d.ts +5 -0
- package/button-toggle/button-toggle.module.d.ts +7 -0
- package/button-toggle/package.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +1 -0
- package/card/card.component.d.ts +3 -0
- package/card/card.module.d.ts +8 -0
- package/card/package.json +0 -1
- package/card/ptsecurity-mosaic-card.d.ts +1 -0
- package/checkbox/checkbox-module.d.ts +7 -0
- package/checkbox/checkbox-required-validator.d.ts +3 -0
- package/checkbox/checkbox.d.ts +3 -0
- package/checkbox/package.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.d.ts +1 -0
- package/core/common-behaviors/color.d.ts +3 -3
- package/core/common-behaviors/common-module.d.ts +5 -0
- package/core/common-behaviors/disabled.d.ts +4 -3
- package/core/common-behaviors/tabindex.d.ts +2 -1
- package/core/error/error-options.d.ts +5 -0
- package/core/formatters/date/formatter.d.ts +3 -0
- package/core/formatters/index.d.ts +5 -0
- package/core/formatters/number/formatter.d.ts +4 -0
- package/core/forms/forms-module.d.ts +5 -0
- package/core/forms/forms.directive.d.ts +5 -0
- package/core/highlight/highlight.pipe.d.ts +3 -0
- package/core/highlight/index.d.ts +6 -0
- package/core/line/line.d.ts +6 -0
- package/core/option/action.d.ts +42 -0
- package/core/option/index.d.ts +1 -0
- package/core/option/optgroup.d.ts +3 -0
- package/core/option/option-module.d.ts +9 -0
- package/core/option/option.d.ts +3 -0
- package/core/overlay/overlay-position-map.d.ts +0 -4
- package/core/package.json +0 -1
- package/core/pop-up/constants.d.ts +29 -0
- package/core/pop-up/index.d.ts +3 -0
- package/core/pop-up/pop-up-trigger.d.ts +70 -0
- package/core/pop-up/pop-up.d.ts +35 -0
- package/core/ptsecurity-mosaic-core.d.ts +1 -1
- package/core/public-api.d.ts +1 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +6 -0
- package/core/services/measure-scrollbar.service.d.ts +3 -0
- package/datepicker/calendar-body.component.d.ts +5 -6
- package/datepicker/calendar.component.d.ts +5 -0
- package/datepicker/datepicker-input.directive.d.ts +6 -2
- package/datepicker/datepicker-intl.d.ts +3 -0
- package/datepicker/datepicker-module.d.ts +18 -0
- package/datepicker/datepicker-toggle.component.d.ts +5 -0
- package/datepicker/datepicker.component.d.ts +5 -0
- package/datepicker/month-view.component.d.ts +3 -0
- package/datepicker/multi-year-view.component.d.ts +3 -0
- package/datepicker/package.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.d.ts +1 -0
- package/datepicker/year-view.component.d.ts +3 -0
- package/design-tokens/package.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +1 -0
- package/design-tokens/tokens/components/list.json5 +0 -4
- package/design-tokens/tokens/components/popover.json5 +32 -4
- package/design-tokens/tokens/components/tooltip.json5 +49 -3
- package/design-tokens/tokens/components/tree.json5 +3 -3
- package/design-tokens/tokens/properties/globals.json5 +1 -1
- package/design-tokens/tokens.d.ts +56 -15
- package/divider/divider.component.d.ts +3 -0
- package/divider/divider.module.d.ts +6 -0
- package/divider/package.json +0 -1
- package/divider/ptsecurity-mosaic-divider.d.ts +1 -0
- package/dropdown/dropdown-content.directive.d.ts +3 -0
- package/dropdown/dropdown-item.component.d.ts +3 -0
- package/dropdown/dropdown-trigger.directive.d.ts +6 -8
- package/dropdown/dropdown.component.d.ts +5 -1
- package/dropdown/dropdown.module.d.ts +11 -0
- package/dropdown/package.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.d.ts +1 -0
- package/esm2015/autocomplete/autocomplete-origin.directive.js +11 -11
- package/esm2015/autocomplete/autocomplete-trigger.directive.js +53 -38
- package/esm2015/autocomplete/autocomplete.component.js +56 -37
- package/esm2015/autocomplete/autocomplete.module.js +25 -15
- package/esm2015/button/button.component.js +52 -56
- package/esm2015/button/button.module.js +35 -20
- package/esm2015/button-toggle/button-toggle.component.js +76 -55
- package/esm2015/button-toggle/button-toggle.module.js +13 -8
- package/esm2015/card/card.component.js +32 -30
- package/esm2015/card/card.module.js +23 -12
- package/esm2015/checkbox/checkbox-module.js +13 -8
- package/esm2015/checkbox/checkbox-required-validator.js +12 -8
- package/esm2015/checkbox/checkbox.js +61 -44
- package/esm2015/core/common-behaviors/color.js +2 -5
- package/esm2015/core/common-behaviors/common-module.js +17 -11
- package/esm2015/core/common-behaviors/disabled.js +1 -1
- package/esm2015/core/common-behaviors/tabindex.js +4 -13
- package/esm2015/core/error/error-options.js +12 -8
- package/esm2015/core/formatters/date/formatter.js +13 -10
- package/esm2015/core/formatters/index.js +13 -8
- package/esm2015/core/formatters/number/formatter.js +16 -10
- package/esm2015/core/forms/forms-module.js +20 -13
- package/esm2015/core/forms/forms.directive.js +32 -29
- package/esm2015/core/highlight/highlight.pipe.js +8 -4
- package/esm2015/core/highlight/index.js +13 -8
- package/esm2015/core/line/line.js +22 -14
- package/esm2015/core/option/action.js +131 -0
- package/esm2015/core/option/index.js +2 -1
- package/esm2015/core/option/optgroup.js +22 -19
- package/esm2015/core/option/option-module.js +14 -8
- package/esm2015/core/option/option.js +44 -35
- package/esm2015/core/overlay/overlay-position-map.js +16 -18
- package/esm2015/core/pop-up/constants.js +34 -0
- package/esm2015/core/pop-up/index.js +4 -0
- package/esm2015/core/pop-up/pop-up-trigger.js +241 -0
- package/esm2015/core/pop-up/pop-up.js +87 -0
- package/esm2015/core/ptsecurity-mosaic-core.js +1 -2
- package/esm2015/core/public-api.js +2 -1
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +25 -21
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +13 -8
- package/esm2015/core/services/measure-scrollbar.service.js +12 -12
- package/esm2015/datepicker/calendar-body.component.js +39 -32
- package/esm2015/datepicker/calendar.component.js +92 -58
- package/esm2015/datepicker/datepicker-input.directive.js +92 -61
- package/esm2015/datepicker/datepicker-intl.js +7 -5
- package/esm2015/datepicker/datepicker-module.js +89 -48
- package/esm2015/datepicker/datepicker-toggle.component.js +44 -32
- package/esm2015/datepicker/datepicker.component.js +88 -63
- package/esm2015/datepicker/month-view.component.js +48 -29
- package/esm2015/datepicker/multi-year-view.component.js +40 -27
- package/esm2015/datepicker/year-view.component.js +45 -28
- package/esm2015/design-tokens/tokens.js +57 -16
- package/esm2015/divider/divider.component.js +24 -20
- package/esm2015/divider/divider.module.js +13 -8
- package/esm2015/dropdown/dropdown-content.directive.js +13 -15
- package/esm2015/dropdown/dropdown-item.component.js +40 -30
- package/esm2015/dropdown/dropdown-trigger.directive.js +75 -67
- package/esm2015/dropdown/dropdown.component.js +63 -38
- package/esm2015/dropdown/dropdown.module.js +40 -23
- package/esm2015/form-field/cleaner.js +20 -11
- package/esm2015/form-field/form-field.js +77 -53
- package/esm2015/form-field/form-field.module.js +41 -24
- package/esm2015/form-field/hint.js +16 -13
- package/esm2015/form-field/prefix.js +10 -6
- package/esm2015/form-field/stepper.js +22 -11
- package/esm2015/form-field/suffix.js +10 -6
- package/esm2015/icon/icon.component.js +27 -22
- package/esm2015/icon/icon.module.js +31 -18
- package/esm2015/input/input-number-validators.js +48 -29
- package/esm2015/input/input-number.js +42 -28
- package/esm2015/input/input.js +94 -52
- package/esm2015/input/input.module.js +13 -8
- package/esm2015/link/link.component.js +38 -34
- package/esm2015/link/link.module.js +20 -11
- package/esm2015/list/list-selection.component.js +224 -122
- package/esm2015/list/list.component.js +35 -32
- package/esm2015/list/list.module.js +47 -25
- package/esm2015/modal/css-unit.pipe.js +10 -6
- package/esm2015/modal/modal-control.service.js +11 -8
- package/esm2015/modal/modal.component.js +107 -61
- package/esm2015/modal/modal.directive.js +43 -30
- package/esm2015/modal/modal.module.js +59 -31
- package/esm2015/modal/modal.service.js +9 -9
- package/esm2015/modal/ptsecurity-mosaic-modal.js +1 -3
- package/esm2015/navbar/navbar-item.component.js +111 -95
- package/esm2015/navbar/navbar.component.js +40 -30
- package/esm2015/navbar/navbar.module.js +66 -35
- package/esm2015/navbar/ptsecurity-mosaic-navbar.js +1 -2
- package/esm2015/navbar/vertical-navbar.component.js +68 -46
- package/esm2015/popover/popover-confirm.component.js +115 -0
- package/esm2015/popover/popover.component.js +180 -587
- package/esm2015/popover/popover.module.js +18 -12
- package/esm2015/popover/public-api.js +2 -1
- package/esm2015/progress-bar/progress-bar.component.js +26 -24
- package/esm2015/progress-bar/progress-bar.module.js +24 -15
- package/esm2015/progress-spinner/progress-spinner.component.js +26 -24
- package/esm2015/progress-spinner/progress-spinner.module.js +24 -15
- package/esm2015/radio/radio.component.js +87 -67
- package/esm2015/radio/radio.module.js +13 -8
- package/esm2015/select/select.component.js +181 -105
- package/esm2015/select/select.module.js +54 -28
- package/esm2015/sidebar/ptsecurity-mosaic-sidebar.js +1 -2
- package/esm2015/sidebar/sidebar.component.js +61 -50
- package/esm2015/sidebar/sidebar.module.js +25 -16
- package/esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js +1 -2
- package/esm2015/sidepanel/sidepanel-container.component.js +46 -40
- package/esm2015/sidepanel/sidepanel-directives.js +87 -57
- package/esm2015/sidepanel/sidepanel.module.js +63 -30
- package/esm2015/sidepanel/sidepanel.service.js +20 -12
- package/esm2015/splitter/splitter.component.js +62 -64
- package/esm2015/splitter/splitter.module.js +32 -19
- package/esm2015/table/table.component.js +13 -9
- package/esm2015/table/table.module.js +23 -12
- package/esm2015/tabs/paginated-tab-header.js +20 -18
- package/esm2015/tabs/ptsecurity-mosaic-tabs.js +1 -6
- package/esm2015/tabs/tab-body.component.js +52 -42
- package/esm2015/tabs/tab-content.directive.js +8 -8
- package/esm2015/tabs/tab-group.component.js +145 -74
- package/esm2015/tabs/tab-header.component.js +50 -36
- package/esm2015/tabs/tab-label-wrapper.directive.js +30 -16
- package/esm2015/tabs/tab-label.directive.js +11 -7
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +46 -46
- package/esm2015/tabs/tab.component.js +67 -33
- package/esm2015/tabs/tabs.module.js +87 -45
- package/esm2015/tags/tag-input.js +48 -34
- package/esm2015/tags/tag-list.component.js +93 -56
- package/esm2015/tags/tag.component.js +90 -73
- package/esm2015/tags/tag.module.js +46 -29
- package/esm2015/textarea/textarea.component.js +70 -41
- package/esm2015/textarea/textarea.module.js +13 -8
- package/esm2015/timepicker/timepicker.directive.js +64 -52
- package/esm2015/timepicker/timepicker.module.js +26 -13
- package/esm2015/toggle/toggle.component.js +65 -47
- package/esm2015/toggle/toggle.module.js +13 -8
- package/esm2015/tooltip/tooltip.animations.js +19 -0
- package/esm2015/tooltip/tooltip.component.js +239 -555
- package/esm2015/tooltip/tooltip.module.js +38 -11
- package/esm2015/tree/control/base-tree-control.js +60 -0
- package/esm2015/tree/control/flat-tree-control.js +123 -0
- package/esm2015/tree/control/nested-tree-control.js +41 -0
- package/esm2015/tree/control/tree-control.js +2 -0
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +31 -0
- package/esm2015/tree/outlet.js +15 -0
- package/esm2015/tree/padding.directive.js +98 -25
- package/esm2015/tree/public-api.js +9 -2
- package/esm2015/tree/toggle.js +65 -70
- package/esm2015/tree/tree-base.js +243 -0
- package/esm2015/tree/tree-errors.js +36 -0
- package/esm2015/tree/tree-option.component.js +102 -56
- package/esm2015/tree/tree-selection.component.js +180 -115
- package/esm2015/tree/tree.js +23 -0
- package/esm2015/tree/tree.module.js +38 -12
- package/esm2015/tree-select/tree-select.component.js +153 -85
- package/esm2015/tree-select/tree-select.module.js +33 -18
- package/fesm2015/ptsecurity-mosaic-autocomplete.js +140 -102
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js +87 -63
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.js +86 -76
- package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.js +54 -42
- package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js +82 -59
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.js +758 -239
- package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js +544 -376
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +57 -16
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +34 -26
- package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +219 -171
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +184 -119
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +56 -39
- package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.js +191 -116
- package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.js +57 -45
- package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.js +301 -177
- package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.js +243 -159
- package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +280 -205
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +297 -597
- package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.js +99 -76
- package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.js +236 -136
- package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js +85 -66
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js +207 -139
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +92 -82
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.js +33 -19
- package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js +557 -387
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.js +273 -192
- package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js +83 -50
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +87 -64
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js +77 -55
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +293 -566
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js +188 -106
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.js +1001 -279
- package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
- package/form-field/cleaner.d.ts +5 -0
- package/form-field/form-field.d.ts +5 -0
- package/form-field/form-field.module.d.ts +12 -0
- package/form-field/hint.d.ts +3 -0
- package/form-field/package.json +0 -1
- package/form-field/prefix.d.ts +3 -0
- package/form-field/ptsecurity-mosaic-form-field.d.ts +1 -0
- package/form-field/stepper.d.ts +3 -0
- package/form-field/suffix.d.ts +3 -0
- package/icon/icon.component.d.ts +5 -0
- package/icon/icon.module.d.ts +8 -0
- package/icon/package.json +0 -1
- package/icon/ptsecurity-mosaic-icon.d.ts +1 -0
- package/input/input-number-validators.d.ts +7 -2
- package/input/input-number.d.ts +3 -0
- package/input/input.d.ts +5 -0
- package/input/input.module.d.ts +11 -0
- package/input/package.json +0 -1
- package/input/ptsecurity-mosaic-input.d.ts +1 -0
- package/link/link.component.d.ts +3 -0
- package/link/link.module.d.ts +7 -0
- package/link/package.json +0 -1
- package/link/ptsecurity-mosaic-link.d.ts +1 -0
- package/list/list-selection.component.d.ts +30 -3
- package/list/list.component.d.ts +5 -0
- package/list/list.module.d.ts +9 -0
- package/list/package.json +0 -1
- package/list/ptsecurity-mosaic-list.d.ts +1 -0
- package/modal/css-unit.pipe.d.ts +3 -0
- package/modal/modal-control.service.d.ts +3 -0
- package/modal/modal.component.d.ts +5 -0
- package/modal/modal.directive.d.ts +9 -0
- package/modal/modal.module.d.ts +12 -0
- package/modal/modal.service.d.ts +3 -0
- package/modal/package.json +0 -1
- package/modal/ptsecurity-mosaic-modal.d.ts +1 -2
- package/navbar/navbar-item.component.d.ts +13 -0
- package/navbar/navbar.component.d.ts +5 -0
- package/navbar/navbar.module.d.ts +11 -0
- package/navbar/package.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.d.ts +1 -1
- package/navbar/vertical-navbar.component.d.ts +5 -0
- package/package.json +8 -9
- package/popover/package.json +0 -1
- package/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +50 -136
- package/popover/popover.module.d.ts +9 -0
- package/popover/ptsecurity-mosaic-popover.d.ts +1 -0
- package/popover/public-api.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -0
- package/progress-bar/package.json +0 -1
- package/progress-bar/progress-bar.component.d.ts +3 -0
- package/progress-bar/progress-bar.module.d.ts +7 -0
- package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +1 -0
- package/progress-spinner/package.json +0 -1
- package/progress-spinner/progress-spinner.component.d.ts +3 -0
- package/progress-spinner/progress-spinner.module.d.ts +7 -0
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +1 -0
- package/ptsecurity-mosaic.d.ts +1 -0
- package/radio/package.json +0 -1
- package/radio/ptsecurity-mosaic-radio.d.ts +1 -0
- package/radio/radio.component.d.ts +5 -0
- package/radio/radio.module.d.ts +8 -0
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +6 -3
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/select/package.json +0 -1
- package/select/ptsecurity-mosaic-select.d.ts +1 -0
- package/select/select.component.d.ts +11 -7
- package/select/select.module.d.ts +11 -0
- package/sidebar/package.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +7 -0
- package/sidebar/sidebar.module.d.ts +6 -0
- package/sidepanel/package.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +1 -1
- package/sidepanel/sidepanel-container.component.d.ts +3 -0
- package/sidepanel/sidepanel-directives.d.ts +13 -0
- package/sidepanel/sidepanel.module.d.ts +13 -0
- package/sidepanel/sidepanel.service.d.ts +3 -0
- package/splitter/package.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.d.ts +1 -0
- package/splitter/splitter.component.d.ts +7 -0
- package/splitter/splitter.module.d.ts +7 -0
- package/table/package.json +0 -1
- package/table/ptsecurity-mosaic-table.d.ts +1 -0
- package/table/table.component.d.ts +3 -0
- package/table/table.module.d.ts +8 -0
- package/tabs/package.json +0 -1
- package/tabs/paginated-tab-header.d.ts +3 -0
- package/tabs/ptsecurity-mosaic-tabs.d.ts +1 -5
- package/tabs/tab-body.component.d.ts +5 -0
- package/tabs/tab-content.directive.d.ts +3 -0
- package/tabs/tab-group.component.d.ts +24 -4
- package/tabs/tab-header.component.d.ts +3 -0
- package/tabs/tab-label-wrapper.directive.d.ts +9 -0
- package/tabs/tab-label.directive.d.ts +3 -0
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +5 -0
- package/tabs/tab.component.d.ts +12 -3
- package/tabs/tabs.module.d.ts +18 -0
- package/tags/package.json +0 -1
- package/tags/ptsecurity-mosaic-tags.d.ts +1 -0
- package/tags/tag-input.d.ts +3 -0
- package/tags/tag-list.component.d.ts +3 -0
- package/tags/tag.component.d.ts +9 -0
- package/tags/tag.module.d.ts +9 -0
- package/textarea/package.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.d.ts +1 -0
- package/textarea/textarea.component.d.ts +3 -0
- package/textarea/textarea.module.d.ts +9 -0
- package/timepicker/package.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.d.ts +1 -0
- package/timepicker/timepicker.directive.d.ts +5 -2
- package/timepicker/timepicker.module.d.ts +9 -0
- package/toggle/package.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.d.ts +1 -0
- package/toggle/toggle.component.d.ts +3 -0
- package/toggle/toggle.module.d.ts +8 -0
- package/tooltip/package.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.d.ts +1 -0
- package/tooltip/tooltip.animations.d.ts +8 -0
- package/tooltip/tooltip.component.d.ts +74 -134
- package/tooltip/tooltip.module.d.ts +7 -0
- package/tree/control/base-tree-control.d.ts +40 -0
- package/tree/control/flat-tree-control.d.ts +48 -0
- package/tree/control/nested-tree-control.d.ts +19 -0
- package/tree/control/tree-control.d.ts +44 -0
- package/tree/data-source/flat-data-source.d.ts +2 -1
- package/tree/node.d.ts +34 -0
- package/tree/outlet.d.ts +9 -0
- package/tree/package.json +0 -1
- package/tree/padding.directive.d.ts +36 -5
- package/tree/ptsecurity-mosaic-tree.d.ts +1 -0
- package/tree/public-api.d.ts +8 -1
- package/tree/toggle.d.ts +20 -15
- package/tree/tree-base.d.ts +97 -0
- package/tree/tree-errors.d.ts +25 -0
- package/tree/tree-option.component.d.ts +15 -4
- package/tree/tree-selection.component.d.ts +46 -24
- package/tree/tree.d.ts +6 -0
- package/tree/tree.module.d.ts +14 -0
- package/tree-select/package.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.d.ts +1 -0
- package/tree-select/tree-select.component.d.ts +8 -8
- package/tree-select/tree-select.module.d.ts +11 -0
- package/autocomplete/ptsecurity-mosaic-autocomplete.metadata.json +0 -1
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-card.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-core.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-divider.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-icon.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-input.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-link.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-list.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-modal.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-popover.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-radio.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-table.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tags.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic.umd.min.js.map +0 -1
- package/button/ptsecurity-mosaic-button.metadata.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.metadata.json +0 -1
- package/card/ptsecurity-mosaic-card.metadata.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.metadata.json +0 -1
- package/core/ptsecurity-mosaic-core.metadata.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.metadata.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +0 -1
- package/divider/ptsecurity-mosaic-divider.metadata.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +0 -1
- package/esm2015/tree/node.directive.js +0 -15
- package/form-field/ptsecurity-mosaic-form-field.metadata.json +0 -1
- package/icon/ptsecurity-mosaic-icon.metadata.json +0 -1
- package/input/ptsecurity-mosaic-input.metadata.json +0 -1
- package/link/ptsecurity-mosaic-link.metadata.json +0 -1
- package/list/ptsecurity-mosaic-list.metadata.json +0 -1
- package/modal/ptsecurity-mosaic-modal.metadata.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.metadata.json +0 -1
- package/popover/ptsecurity-mosaic-popover.metadata.json +0 -1
- package/progress-bar/ptsecurity-mosaic-progress-bar.metadata.json +0 -1
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.metadata.json +0 -1
- package/ptsecurity-mosaic.metadata.json +0 -1
- package/radio/ptsecurity-mosaic-radio.metadata.json +0 -1
- package/select/ptsecurity-mosaic-select.metadata.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.metadata.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.metadata.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.metadata.json +0 -1
- package/table/ptsecurity-mosaic-table.metadata.json +0 -1
- package/tabs/ptsecurity-mosaic-tabs.metadata.json +0 -1
- package/tags/ptsecurity-mosaic-tags.metadata.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.metadata.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.metadata.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.metadata.json +0 -1
- package/tree/node.directive.d.ts +0 -4
- package/tree/ptsecurity-mosaic-tree.metadata.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.metadata.json +0 -1
@@ -1,8 +1,31 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/common'), require('@angular/core'), require('@angular/cdk/
|
3
|
-
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/tooltip', ['exports', '@angular/cdk/overlay', '@angular/common', '@angular/core', '@angular/cdk/
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.tooltip = {}), global.ng.cdk.overlay, global.ng.common, global.ng.core, global.ng.cdk.
|
5
|
-
}(this, (function (exports,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/common'), require('@angular/core'), require('@angular/cdk/coercion'), require('@ptsecurity/mosaic/core'), require('rxjs'), require('@angular/animations'), require('@angular/cdk/bidi')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/tooltip', ['exports', '@angular/cdk/overlay', '@angular/common', '@angular/core', '@angular/cdk/coercion', '@ptsecurity/mosaic/core', 'rxjs', '@angular/animations', '@angular/cdk/bidi'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.tooltip = {}), global.ng.cdk.overlay, global.ng.common, global.ng.core, global.ng.cdk.coercion, global.ptsecurity.mosaic.core, global.rxjs, global.ng.animations, global.ng.cdk.bidi));
|
5
|
+
})(this, (function (exports, i2, i1, i0, coercion, core, rxjs, animations, i3) { 'use strict';
|
6
|
+
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
18
|
+
}
|
19
|
+
});
|
20
|
+
}
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
23
|
+
}
|
24
|
+
|
25
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
6
29
|
|
7
30
|
/*! *****************************************************************************
|
8
31
|
Copyright (c) Microsoft Corporation.
|
@@ -322,204 +345,80 @@
|
|
322
345
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
323
346
|
}
|
324
347
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
348
|
+
/**
|
349
|
+
* Animations used by McTooltip.
|
350
|
+
* @docs-private
|
351
|
+
*/
|
352
|
+
var mcTooltipAnimations = {
|
353
|
+
/** Animation that transitions a tooltip in and out. */
|
354
|
+
tooltipState: animations.trigger('state', [
|
355
|
+
animations.state('initial, void, hidden', animations.style({ opacity: 0, transform: 'scale(0)' })),
|
356
|
+
animations.state('visible', animations.style({ transform: 'scale(1)' })),
|
357
|
+
animations.transition('* => visible', animations.animate('200ms cubic-bezier(0, 0, 0.2, 1)', animations.keyframes([
|
358
|
+
animations.style({ opacity: 0, transform: 'scale(0)', offset: 0 }),
|
359
|
+
animations.style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),
|
360
|
+
animations.style({ opacity: 1, transform: 'scale(1)', offset: 1 })
|
361
|
+
]))),
|
362
|
+
animations.transition('* => hidden', animations.animate('100ms cubic-bezier(0, 0, 0.2, 1)', animations.style({ opacity: 0 })))
|
363
|
+
])
|
364
|
+
};
|
365
|
+
|
366
|
+
exports.TooltipModifier = void 0;
|
367
|
+
(function (TooltipModifier) {
|
368
|
+
TooltipModifier["Default"] = "default";
|
369
|
+
TooltipModifier["Warning"] = "warning";
|
370
|
+
TooltipModifier["Extended"] = "extended";
|
371
|
+
})(exports.TooltipModifier || (exports.TooltipModifier = {}));
|
372
|
+
var MC_TOOLTIP_OPEN_TIME = new i0.InjectionToken('mc-tooltip-open-time');
|
373
|
+
/** @docs-private */
|
374
|
+
var MC_TOOLTIP_OPEN_TIME_PROVIDER = {
|
375
|
+
provide: MC_TOOLTIP_OPEN_TIME,
|
376
|
+
useValue: { value: 0 }
|
332
377
|
};
|
333
|
-
var
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
this.mcMouseLeaveDelay = 0;
|
342
|
-
this._mcTrigger = 'hover';
|
343
|
-
this._mcPlacement = 'top';
|
344
|
-
this._mcVisible = new rxjs.BehaviorSubject(false);
|
345
|
-
/** Subject for notifying that the tooltip has been hidden from the view */
|
346
|
-
this.onHideSubject = new rxjs.Subject();
|
347
|
-
this.closeOnInteraction = false;
|
348
|
-
this.availablePositions = core.POSITION_MAP;
|
349
|
-
this.$visible = this._mcVisible.asObservable();
|
378
|
+
var MIN_TIME_FOR_DELAY = 2000;
|
379
|
+
var McTooltipComponent = /** @class */ (function (_super) {
|
380
|
+
__extends(McTooltipComponent, _super);
|
381
|
+
function McTooltipComponent(changeDetectorRef, openTime) {
|
382
|
+
var _this = _super.call(this, changeDetectorRef) || this;
|
383
|
+
_this.openTime = openTime;
|
384
|
+
_this.prefix = 'mc-tooltip';
|
385
|
+
return _this;
|
350
386
|
}
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
set: function (value) {
|
356
|
-
this._mcTitle = value;
|
357
|
-
},
|
358
|
-
enumerable: false,
|
359
|
-
configurable: true
|
360
|
-
});
|
361
|
-
Object.defineProperty(McTooltipComponent.prototype, "mcTrigger", {
|
362
|
-
get: function () {
|
363
|
-
return this._mcTrigger;
|
364
|
-
},
|
365
|
-
set: function (value) {
|
366
|
-
this._mcTrigger = value;
|
367
|
-
},
|
368
|
-
enumerable: false,
|
369
|
-
configurable: true
|
370
|
-
});
|
371
|
-
Object.defineProperty(McTooltipComponent.prototype, "mcPlacement", {
|
372
|
-
get: function () {
|
373
|
-
return this._mcPlacement;
|
374
|
-
},
|
375
|
-
set: function (value) {
|
376
|
-
if (value !== this._mcPlacement) {
|
377
|
-
this._mcPlacement = value;
|
378
|
-
this.positions.unshift(core.POSITION_MAP[this.mcPlacement]);
|
379
|
-
}
|
380
|
-
else if (!value) {
|
381
|
-
this._mcPlacement = 'top';
|
382
|
-
}
|
383
|
-
},
|
384
|
-
enumerable: false,
|
385
|
-
configurable: true
|
386
|
-
});
|
387
|
-
Object.defineProperty(McTooltipComponent.prototype, "mcTooltipClass", {
|
388
|
-
get: function () {
|
389
|
-
return this._mcTooltipClass;
|
390
|
-
},
|
391
|
-
set: function (value) {
|
392
|
-
this._mcTooltipClass = value;
|
393
|
-
},
|
394
|
-
enumerable: false,
|
395
|
-
configurable: true
|
396
|
-
});
|
397
|
-
Object.defineProperty(McTooltipComponent.prototype, "mcVisible", {
|
398
|
-
get: function () {
|
399
|
-
return this._mcVisible.value;
|
400
|
-
},
|
401
|
-
set: function (value) {
|
402
|
-
var visible = coercion.coerceBooleanProperty(value);
|
403
|
-
if (visible && this._mcVisible.value !== visible) {
|
404
|
-
this.show();
|
405
|
-
}
|
406
|
-
else {
|
407
|
-
this.hide();
|
408
|
-
}
|
409
|
-
},
|
410
|
-
enumerable: false,
|
411
|
-
configurable: true
|
412
|
-
});
|
413
|
-
Object.defineProperty(McTooltipComponent.prototype, "mcArrowPlacement", {
|
414
|
-
get: function () {
|
415
|
-
return this._mcArrowPlacement;
|
416
|
-
},
|
417
|
-
set: function (value) {
|
418
|
-
this._mcArrowPlacement = value;
|
419
|
-
},
|
420
|
-
enumerable: false,
|
421
|
-
configurable: true
|
422
|
-
});
|
423
|
-
McTooltipComponent.prototype.show = function () {
|
424
|
-
var _this = this;
|
425
|
-
if (this.hideTid) {
|
426
|
-
clearTimeout(this.hideTid);
|
427
|
-
}
|
428
|
-
if (!this.isContentEmpty()) {
|
429
|
-
if (this.mcTrigger !== 'manual') {
|
430
|
-
this.closeOnInteraction = true;
|
431
|
-
}
|
432
|
-
this.showTid = setTimeout(function () {
|
433
|
-
_this._mcVisible.next(true);
|
434
|
-
_this.mcVisibleChange.emit(true);
|
435
|
-
// Mark for check so if any parent component has set the
|
436
|
-
// ChangeDetectionStrategy to OnPush it will be checked anyways
|
437
|
-
_this.markForCheck();
|
438
|
-
}, this.mcMouseEnterDelay);
|
439
|
-
}
|
387
|
+
McTooltipComponent.prototype.show = function (delay) {
|
388
|
+
// tslint:disable-next-line:no-magic-numbers
|
389
|
+
_super.prototype.show.call(this, Date.now() - this.openTime.value < MIN_TIME_FOR_DELAY ? 0 : delay);
|
390
|
+
this.openTime.value = Date.now();
|
440
391
|
};
|
441
|
-
McTooltipComponent.prototype.
|
442
|
-
var _this = this;
|
443
|
-
if (this.showTid) {
|
444
|
-
clearTimeout(this.showTid);
|
445
|
-
}
|
446
|
-
this.hideTid = setTimeout(function () {
|
447
|
-
_this._mcVisible.next(false);
|
448
|
-
_this.mcVisibleChange.emit(false);
|
449
|
-
_this.onHideSubject.next();
|
450
|
-
// Mark for check so if any parent component has set the
|
451
|
-
// ChangeDetectionStrategy to OnPush it will be checked anyways
|
452
|
-
_this.markForCheck();
|
453
|
-
}, this.mcMouseLeaveDelay);
|
454
|
-
};
|
455
|
-
McTooltipComponent.prototype.setClassMap = function () {
|
392
|
+
McTooltipComponent.prototype.updateClassMap = function (placement, customClass, _a) {
|
456
393
|
var _b;
|
457
|
-
|
458
|
-
|
459
|
-
_b[this.
|
394
|
+
var modifier = _a.modifier;
|
395
|
+
var classMap = (_b = {},
|
396
|
+
_b[this.prefix + "_" + modifier] = true,
|
460
397
|
_b);
|
398
|
+
_super.prototype.updateClassMap.call(this, placement, customClass, classMap);
|
461
399
|
};
|
462
|
-
McTooltipComponent.prototype.isContentEmpty = function () {
|
463
|
-
return this.isTitleString ? (this.mcTitle === '' || !this.mcTitle) : false;
|
464
|
-
};
|
465
|
-
/** Returns an observable that notifies when the tooltip has been hidden from view. */
|
466
|
-
McTooltipComponent.prototype.afterHidden = function () {
|
467
|
-
return this.onHideSubject.asObservable();
|
468
|
-
};
|
469
|
-
McTooltipComponent.prototype.markForCheck = function () {
|
470
|
-
this.cdr.markForCheck();
|
471
|
-
};
|
472
|
-
McTooltipComponent.prototype.handleBodyInteraction = function () {
|
473
|
-
if (this.closeOnInteraction) {
|
474
|
-
this.hide();
|
475
|
-
}
|
476
|
-
};
|
477
|
-
Object.defineProperty(McTooltipComponent.prototype, "isTemplateRef", {
|
478
|
-
get: function () {
|
479
|
-
return this.mcTitle instanceof core$1.TemplateRef;
|
480
|
-
},
|
481
|
-
enumerable: false,
|
482
|
-
configurable: true
|
483
|
-
});
|
484
|
-
Object.defineProperty(McTooltipComponent.prototype, "isNonEmptyString", {
|
485
|
-
get: function () {
|
486
|
-
return (typeof this.mcTitle === 'string' || typeof this.mcTitle === 'number') && this._mcTitle !== '';
|
487
|
-
},
|
488
|
-
enumerable: false,
|
489
|
-
configurable: true
|
490
|
-
});
|
491
400
|
return McTooltipComponent;
|
492
|
-
}());
|
493
|
-
McTooltipComponent
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
mcMouseEnterDelay: [{ type: core$1.Input }],
|
514
|
-
mcMouseLeaveDelay: [{ type: core$1.Input }],
|
515
|
-
mcTitle: [{ type: core$1.Input }],
|
516
|
-
mcTrigger: [{ type: core$1.Input }],
|
517
|
-
mcPlacement: [{ type: core$1.Input }],
|
518
|
-
mcTooltipClass: [{ type: core$1.Input }],
|
519
|
-
mcVisible: [{ type: core$1.Input }],
|
520
|
-
mcArrowPlacement: [{ type: core$1.Input }]
|
521
|
-
};
|
522
|
-
var MC_TOOLTIP_SCROLL_STRATEGY = new core$1.InjectionToken('mc-tooltip-scroll-strategy');
|
401
|
+
}(core.McPopUp));
|
402
|
+
/** @nocollapse */ McTooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTooltipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: MC_TOOLTIP_OPEN_TIME }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
403
|
+
/** @nocollapse */ McTooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTooltipComponent, selector: "mc-tooltip-component", providers: [MC_TOOLTIP_OPEN_TIME_PROVIDER], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-tooltip\"\n [ngClass]=\"classMap\"\n [@state]=\"visibility\"\n (@state.start)=\"animationStart()\"\n (@state.done)=\"animationDone($event)\">\n\n <div class=\"mc-tooltip__inner\">\n <div class=\"mc-tooltip__arrow\"></div>\n\n <div class=\"mc-tooltip__header\" *ngIf=\"header\">\n <ng-container *ngIf=\"isTemplateRef(header)\" [ngTemplateOutlet]=\"$any(header)\"></ng-container>\n <ng-container *ngIf=\"!isTemplateRef(header)\">\n <div>{{ header }}</div>\n </ng-container>\n </div>\n <div class=\"mc-tooltip__content\">\n <ng-container *ngIf=\"isTemplateRef(content)\" [ngTemplateOutlet]=\"$any(content)\"></ng-container>\n <ng-container *ngIf=\"!isTemplateRef(content)\">\n <div>{{ content }}</div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".mc-tooltip__inner{border-radius:3px;border-radius:var(--mc-tooltip-size-border-radius, 3px)}.mc-tooltip{box-sizing:border-box;border-radius:3px;border-radius:var(--mc-tooltip-size-border-radius, 3px);z-index:1060;white-space:pre-line}.mc-tooltip.mc-tooltip_placement-top,.mc-tooltip.mc-tooltip_placement-top-left,.mc-tooltip.mc-tooltip_placement-top-right{margin-bottom:calc(9px);margin-bottom:calc(var(--mc-tooltip-size-trigger-margin, 9px))}.mc-tooltip.mc-tooltip_placement-right,.mc-tooltip.mc-tooltip_placement-right-top,.mc-tooltip.mc-tooltip_placement-right-bottom{margin-left:calc(9px);margin-left:calc(var(--mc-tooltip-size-trigger-margin, 9px))}.mc-tooltip.mc-tooltip_placement-bottom,.mc-tooltip.mc-tooltip_placement-bottom-left,.mc-tooltip.mc-tooltip_placement-bottom-right{margin-top:calc(9px);margin-top:calc(var(--mc-tooltip-size-trigger-margin, 9px))}.mc-tooltip.mc-tooltip_placement-left,.mc-tooltip.mc-tooltip_placement-left-top,.mc-tooltip.mc-tooltip_placement-left-bottom{margin-right:calc(9px);margin-right:calc(var(--mc-tooltip-size-trigger-margin, 9px))}.mc-tooltip.mc-tooltip_default,.mc-tooltip.mc-tooltip_warning{max-width:300px;max-width:var(--mc-tooltip-size-max-width, 300px)}.mc-tooltip.mc-tooltip_default .mc-tooltip__inner,.mc-tooltip.mc-tooltip_warning .mc-tooltip__inner{padding:8px 16px;padding:var(--mc-tooltip-size-padding, 8px 16px)}.mc-tooltip.mc-tooltip_extended{max-height:480px;max-height:var(--mc-extended-tooltip-size-max-height, 480px)}.mc-tooltip.mc-tooltip_extended .mc-tooltip__header{height:40px;height:var(--mc-extended-tooltip-header-size-height, 40px);padding:10px 16px;padding:var(--mc-extended-tooltip-header-size-padding, 10px 16px);border-top-left-radius:3px;border-top-left-radius:var(--mc-tooltip-size-border-radius, 3px);border-top-right-radius:3px;border-top-right-radius:var(--mc-tooltip-size-border-radius, 3px)}.mc-tooltip.mc-tooltip_extended .mc-tooltip__content{padding:8px 16px;padding:var(--mc-extended-tooltip-size-padding, 8px 16px)}.mc-tooltip__arrow{position:absolute;width:12px;width:var(--mc-tooltip-size-arrow-size, 12px);height:12px;height:var(--mc-tooltip-size-arrow-size, 12px);transform:rotate(45deg)}.mc-tooltip_placement-top .mc-tooltip__arrow{bottom:calc((12px - 1px) / -2);bottom:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);left:50%;margin-left:calc((12px - 1px) / -2);margin-left:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2)}.mc-tooltip_placement-top-left .mc-tooltip__arrow{bottom:calc((12px - 1px) / -2);bottom:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);left:calc(18px - 9px / 2);left:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-top-right .mc-tooltip__arrow{bottom:calc((12px - 1px) / -2);bottom:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);right:calc(18px - 9px / 2);right:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-right .mc-tooltip__arrow{left:calc((12px - 1px) / -2);left:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);top:50%;margin-top:calc((12px - 1px) / -2);margin-top:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2)}.mc-tooltip_placement-right-top .mc-tooltip__arrow{left:calc((12px - 1px) / -2);left:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);top:calc(18px - 9px / 2);top:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-right-bottom .mc-tooltip__arrow{left:calc((12px - 1px) / -2);left:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);bottom:calc(18px - 9px / 2);bottom:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-left .mc-tooltip__arrow{right:calc((12px - 1px) / -2);right:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);top:50%;margin-top:calc((12px - 1px) / -2);margin-top:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2)}.mc-tooltip_placement-left-top .mc-tooltip__arrow{right:calc((12px - 1px) / -2);right:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);top:calc(18px - 9px / 2);top:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-left-bottom .mc-tooltip__arrow{right:calc((12px - 1px) / -2);right:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);bottom:calc(18px - 9px / 2);bottom:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-bottom .mc-tooltip__arrow{top:calc((12px - 1px) / -2);top:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);left:50%;margin-left:calc((12px - 1px) / -2);margin-left:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2)}.mc-tooltip_placement-bottom-left .mc-tooltip__arrow{top:calc((12px - 1px) / -2);top:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);left:calc(18px - 9px / 2);left:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}.mc-tooltip_placement-bottom-right .mc-tooltip__arrow{top:calc((12px - 1px) / -2);top:calc((var(--mc-tooltip-size-arrow-size, 12px) - 1px) / -2);right:calc(18px - 9px / 2);right:calc(18px - var(--mc-tooltip-size-trigger-margin, 9px) / 2)}\n"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [mcTooltipAnimations.tooltipState], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
404
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTooltipComponent, decorators: [{
|
405
|
+
type: i0.Component,
|
406
|
+
args: [{
|
407
|
+
selector: 'mc-tooltip-component',
|
408
|
+
animations: [mcTooltipAnimations.tooltipState],
|
409
|
+
templateUrl: './tooltip.component.html',
|
410
|
+
styleUrls: ['./tooltip.scss'],
|
411
|
+
encapsulation: i0.ViewEncapsulation.None,
|
412
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
413
|
+
providers: [MC_TOOLTIP_OPEN_TIME_PROVIDER]
|
414
|
+
}]
|
415
|
+
}], ctorParameters: function () {
|
416
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
|
417
|
+
type: i0.Inject,
|
418
|
+
args: [MC_TOOLTIP_OPEN_TIME]
|
419
|
+
}] }];
|
420
|
+
} });
|
421
|
+
var MC_TOOLTIP_SCROLL_STRATEGY = new i0.InjectionToken('mc-tooltip-scroll-strategy');
|
523
422
|
/** @docs-private */
|
524
423
|
function mcTooltipScrollStrategyFactory(overlay) {
|
525
424
|
return function () { return overlay.scrollStrategies.reposition({ scrollThrottle: 20 }); };
|
@@ -527,519 +426,352 @@
|
|
527
426
|
/** @docs-private */
|
528
427
|
var MC_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
529
428
|
provide: MC_TOOLTIP_SCROLL_STRATEGY,
|
530
|
-
deps: [
|
429
|
+
deps: [i2.Overlay],
|
531
430
|
useFactory: mcTooltipScrollStrategyFactory
|
532
431
|
};
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
this.isDynamicTooltip = false;
|
549
|
-
this.parentDisabled = false;
|
550
|
-
this.mcVisibleChange = new core$1.EventEmitter();
|
551
|
-
this.$unsubscribe = new rxjs.Subject();
|
552
|
-
this._disabled = false;
|
553
|
-
this._mcTrigger = 'hover';
|
554
|
-
this._mcPlacement = 'top';
|
555
|
-
this.manualListeners = new Map();
|
556
|
-
this.destroyed = new rxjs.Subject();
|
557
|
-
this.availablePositions = core.POSITION_MAP;
|
432
|
+
var McTooltipTrigger = /** @class */ (function (_super) {
|
433
|
+
__extends(McTooltipTrigger, _super);
|
434
|
+
function McTooltipTrigger(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
|
435
|
+
var _this = _super.call(this, overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) || this;
|
436
|
+
_this.enterDelay = 400;
|
437
|
+
_this.leaveDelay = 0;
|
438
|
+
_this._trigger = core.PopUpTriggers.Hover + ", " + core.PopUpTriggers.Focus;
|
439
|
+
_this.placementChange = new i0.EventEmitter();
|
440
|
+
_this.visibleChange = new i0.EventEmitter();
|
441
|
+
_this.originSelector = '.mc-tooltip';
|
442
|
+
_this.overlayConfig = {
|
443
|
+
panelClass: 'mc-tooltip-panel'
|
444
|
+
};
|
445
|
+
_this.modifier = exports.TooltipModifier.Default;
|
446
|
+
return _this;
|
558
447
|
}
|
559
|
-
Object.defineProperty(
|
448
|
+
Object.defineProperty(McTooltipTrigger.prototype, "tooltipVisible", {
|
560
449
|
get: function () {
|
561
|
-
return this.
|
450
|
+
return this.visible;
|
562
451
|
},
|
563
|
-
set: function (
|
564
|
-
this
|
565
|
-
this.updateCompValue('mcTitle', title);
|
452
|
+
set: function (value) {
|
453
|
+
_super.prototype.updateVisible.call(this, value);
|
566
454
|
},
|
567
455
|
enumerable: false,
|
568
456
|
configurable: true
|
569
457
|
});
|
570
|
-
Object.defineProperty(
|
571
|
-
|
572
|
-
this.
|
458
|
+
Object.defineProperty(McTooltipTrigger.prototype, "tooltipPlacement", {
|
459
|
+
get: function () {
|
460
|
+
return this.placement;
|
461
|
+
},
|
462
|
+
set: function (value) {
|
463
|
+
_super.prototype.updatePlacement.call(this, value);
|
573
464
|
},
|
574
465
|
enumerable: false,
|
575
466
|
configurable: true
|
576
467
|
});
|
577
|
-
Object.defineProperty(
|
468
|
+
Object.defineProperty(McTooltipTrigger.prototype, "tooltipPlacementPriority", {
|
578
469
|
get: function () {
|
579
|
-
return this.
|
470
|
+
return this.placementPriority;
|
580
471
|
},
|
581
472
|
set: function (value) {
|
582
|
-
|
583
|
-
this.updateCompValue('mcTooltipDisabled', value);
|
473
|
+
_super.prototype.updatePlacementPriority.call(this, value);
|
584
474
|
},
|
585
475
|
enumerable: false,
|
586
476
|
configurable: true
|
587
477
|
});
|
588
|
-
Object.defineProperty(
|
478
|
+
Object.defineProperty(McTooltipTrigger.prototype, "content", {
|
589
479
|
get: function () {
|
590
|
-
return this.
|
480
|
+
return this._content;
|
591
481
|
},
|
592
|
-
set: function (
|
593
|
-
this.
|
594
|
-
this.
|
482
|
+
set: function (content) {
|
483
|
+
this._content = content;
|
484
|
+
this.updateData();
|
595
485
|
},
|
596
486
|
enumerable: false,
|
597
487
|
configurable: true
|
598
488
|
});
|
599
|
-
Object.defineProperty(
|
489
|
+
Object.defineProperty(McTooltipTrigger.prototype, "disabled", {
|
600
490
|
get: function () {
|
601
|
-
return this.
|
491
|
+
return this._disabled;
|
602
492
|
},
|
603
493
|
set: function (value) {
|
604
|
-
this.
|
605
|
-
this.updateCompValue('mcMouseLeaveDelay', value);
|
494
|
+
this._disabled = coercion.coerceBooleanProperty(value);
|
606
495
|
},
|
607
496
|
enumerable: false,
|
608
497
|
configurable: true
|
609
498
|
});
|
610
|
-
Object.defineProperty(
|
499
|
+
Object.defineProperty(McTooltipTrigger.prototype, "trigger", {
|
611
500
|
get: function () {
|
612
|
-
return this.
|
501
|
+
return this._trigger;
|
613
502
|
},
|
614
503
|
set: function (value) {
|
615
504
|
if (value) {
|
616
|
-
this.
|
617
|
-
this.updateCompValue('mcTrigger', value);
|
505
|
+
this._trigger = value;
|
618
506
|
}
|
619
507
|
else {
|
620
|
-
this.
|
508
|
+
this._trigger = core.PopUpTriggers.Hover + ", " + core.PopUpTriggers.Focus;
|
621
509
|
}
|
510
|
+
this.initListeners();
|
622
511
|
},
|
623
512
|
enumerable: false,
|
624
513
|
configurable: true
|
625
514
|
});
|
626
|
-
Object.defineProperty(
|
515
|
+
Object.defineProperty(McTooltipTrigger.prototype, "customClass", {
|
627
516
|
get: function () {
|
628
|
-
return this.
|
517
|
+
return this._customClass;
|
629
518
|
},
|
630
519
|
set: function (value) {
|
631
520
|
if (value) {
|
632
|
-
this.
|
633
|
-
this.
|
521
|
+
this._customClass = value;
|
522
|
+
this.updateClassMap();
|
634
523
|
}
|
635
524
|
else {
|
636
|
-
this.
|
637
|
-
}
|
638
|
-
if (this.mcVisible) {
|
639
|
-
this.updatePosition();
|
525
|
+
this._customClass = '';
|
640
526
|
}
|
641
527
|
},
|
642
528
|
enumerable: false,
|
643
529
|
configurable: true
|
644
530
|
});
|
645
|
-
|
531
|
+
McTooltipTrigger.prototype.updateData = function () {
|
532
|
+
if (!this.instance) {
|
533
|
+
return;
|
534
|
+
}
|
535
|
+
this.instance.content = this.content;
|
536
|
+
};
|
537
|
+
McTooltipTrigger.prototype.closingActions = function () {
|
538
|
+
return rxjs.merge(this.overlayRef.outsidePointerEvents(), this.overlayRef.detachments());
|
539
|
+
};
|
540
|
+
McTooltipTrigger.prototype.getOverlayHandleComponentType = function () {
|
541
|
+
return McTooltipComponent;
|
542
|
+
};
|
543
|
+
McTooltipTrigger.prototype.updateClassMap = function (newPlacement) {
|
544
|
+
if (newPlacement === void 0) { newPlacement = this.placement; }
|
545
|
+
if (!this.instance) {
|
546
|
+
return;
|
547
|
+
}
|
548
|
+
this.instance.updateClassMap(core.POSITION_TO_CSS_MAP[newPlacement], this.customClass, { modifier: this.modifier });
|
549
|
+
this.instance.markForCheck();
|
550
|
+
};
|
551
|
+
return McTooltipTrigger;
|
552
|
+
}(core.McPopUpTrigger));
|
553
|
+
/** @nocollapse */ McTooltipTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTooltipTrigger, deps: [{ token: i2__namespace.Overlay }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: i2__namespace.ScrollDispatcher }, { token: i0__namespace.ViewContainerRef }, { token: MC_TOOLTIP_SCROLL_STRATEGY }, { token: i3__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
554
|
+
/** @nocollapse */ McTooltipTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTooltipTrigger, selector: "[mcTooltip]", inputs: { tooltipVisible: ["mcVisible", "tooltipVisible"], tooltipPlacement: ["mcPlacement", "tooltipPlacement"], tooltipPlacementPriority: ["mcPlacementPriority", "tooltipPlacementPriority"], content: ["mcTooltip", "content"], disabled: ["mcTooltipDisabled", "disabled"], enterDelay: ["mcEnterDelay", "enterDelay"], leaveDelay: ["mcLeaveDelay", "leaveDelay"], trigger: ["mcTrigger", "trigger"], customClass: ["mcTooltipClass", "customClass"] }, outputs: { placementChange: "mcPlacementChange", visibleChange: "mcVisibleChange" }, host: { listeners: { "keydown": "handleKeydown($event)", "touchend": "handleTouchend()" }, properties: { "class.mc-tooltip_open": "isOpen" } }, exportAs: ["mcTooltip"], usesInheritance: true, ngImport: i0__namespace });
|
555
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTooltipTrigger, decorators: [{
|
556
|
+
type: i0.Directive,
|
557
|
+
args: [{
|
558
|
+
selector: '[mcTooltip]',
|
559
|
+
exportAs: 'mcTooltip',
|
560
|
+
host: {
|
561
|
+
'[class.mc-tooltip_open]': 'isOpen',
|
562
|
+
'(keydown)': 'handleKeydown($event)',
|
563
|
+
'(touchend)': 'handleTouchend()'
|
564
|
+
}
|
565
|
+
}]
|
566
|
+
}], ctorParameters: function () {
|
567
|
+
return [{ type: i2__namespace.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: i2__namespace.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
|
568
|
+
type: i0.Inject,
|
569
|
+
args: [MC_TOOLTIP_SCROLL_STRATEGY]
|
570
|
+
}] }, { type: i3__namespace.Directionality, decorators: [{
|
571
|
+
type: i0.Optional
|
572
|
+
}] }];
|
573
|
+
}, propDecorators: { tooltipVisible: [{
|
574
|
+
type: i0.Input,
|
575
|
+
args: ['mcVisible']
|
576
|
+
}], tooltipPlacement: [{
|
577
|
+
type: i0.Input,
|
578
|
+
args: ['mcPlacement']
|
579
|
+
}], tooltipPlacementPriority: [{
|
580
|
+
type: i0.Input,
|
581
|
+
args: ['mcPlacementPriority']
|
582
|
+
}], content: [{
|
583
|
+
type: i0.Input,
|
584
|
+
args: ['mcTooltip']
|
585
|
+
}], disabled: [{
|
586
|
+
type: i0.Input,
|
587
|
+
args: ['mcTooltipDisabled']
|
588
|
+
}], enterDelay: [{
|
589
|
+
type: i0.Input,
|
590
|
+
args: ['mcEnterDelay']
|
591
|
+
}], leaveDelay: [{
|
592
|
+
type: i0.Input,
|
593
|
+
args: ['mcLeaveDelay']
|
594
|
+
}], trigger: [{
|
595
|
+
type: i0.Input,
|
596
|
+
args: ['mcTrigger']
|
597
|
+
}], customClass: [{
|
598
|
+
type: i0.Input,
|
599
|
+
args: ['mcTooltipClass']
|
600
|
+
}], placementChange: [{
|
601
|
+
type: i0.Output,
|
602
|
+
args: ['mcPlacementChange']
|
603
|
+
}], visibleChange: [{
|
604
|
+
type: i0.Output,
|
605
|
+
args: ['mcVisibleChange']
|
606
|
+
}] } });
|
607
|
+
var McWarningTooltipTrigger = /** @class */ (function (_super) {
|
608
|
+
__extends(McWarningTooltipTrigger, _super);
|
609
|
+
function McWarningTooltipTrigger(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
|
610
|
+
var _this = _super.call(this, overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) || this;
|
611
|
+
_this.modifier = exports.TooltipModifier.Warning;
|
612
|
+
return _this;
|
613
|
+
}
|
614
|
+
Object.defineProperty(McWarningTooltipTrigger.prototype, "content", {
|
646
615
|
get: function () {
|
647
|
-
return this.
|
616
|
+
return this._content;
|
648
617
|
},
|
649
|
-
set: function (
|
650
|
-
|
651
|
-
|
652
|
-
this.updateCompValue('mcTooltipClass', value);
|
653
|
-
}
|
654
|
-
else {
|
655
|
-
this._mcTooltipClass = '';
|
656
|
-
}
|
618
|
+
set: function (content) {
|
619
|
+
this._content = content;
|
620
|
+
this.updateData();
|
657
621
|
},
|
658
622
|
enumerable: false,
|
659
623
|
configurable: true
|
660
624
|
});
|
661
|
-
|
625
|
+
return McWarningTooltipTrigger;
|
626
|
+
}(McTooltipTrigger));
|
627
|
+
/** @nocollapse */ McWarningTooltipTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McWarningTooltipTrigger, deps: [{ token: i2__namespace.Overlay }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: i2__namespace.ScrollDispatcher }, { token: i0__namespace.ViewContainerRef }, { token: MC_TOOLTIP_SCROLL_STRATEGY }, { token: i3__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
628
|
+
/** @nocollapse */ McWarningTooltipTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McWarningTooltipTrigger, selector: "[mcWarningTooltip]", inputs: { content: ["mcWarningTooltip", "content"] }, host: { listeners: { "keydown": "handleKeydown($event)", "touchend": "handleTouchend()" }, properties: { "class.mc-tooltip_open": "isOpen" } }, exportAs: ["mcWarningTooltip"], usesInheritance: true, ngImport: i0__namespace });
|
629
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McWarningTooltipTrigger, decorators: [{
|
630
|
+
type: i0.Directive,
|
631
|
+
args: [{
|
632
|
+
selector: '[mcWarningTooltip]',
|
633
|
+
exportAs: 'mcWarningTooltip',
|
634
|
+
host: {
|
635
|
+
'[class.mc-tooltip_open]': 'isOpen',
|
636
|
+
'(keydown)': 'handleKeydown($event)',
|
637
|
+
'(touchend)': 'handleTouchend()'
|
638
|
+
}
|
639
|
+
}]
|
640
|
+
}], ctorParameters: function () {
|
641
|
+
return [{ type: i2__namespace.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: i2__namespace.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
|
642
|
+
type: i0.Inject,
|
643
|
+
args: [MC_TOOLTIP_SCROLL_STRATEGY]
|
644
|
+
}] }, { type: i3__namespace.Directionality, decorators: [{
|
645
|
+
type: i0.Optional
|
646
|
+
}] }];
|
647
|
+
}, propDecorators: { content: [{
|
648
|
+
type: i0.Input,
|
649
|
+
args: ['mcWarningTooltip']
|
650
|
+
}] } });
|
651
|
+
var McExtendedTooltipTrigger = /** @class */ (function (_super) {
|
652
|
+
__extends(McExtendedTooltipTrigger, _super);
|
653
|
+
function McExtendedTooltipTrigger(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
|
654
|
+
var _this = _super.call(this, overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) || this;
|
655
|
+
_this.modifier = exports.TooltipModifier.Extended;
|
656
|
+
return _this;
|
657
|
+
}
|
658
|
+
Object.defineProperty(McExtendedTooltipTrigger.prototype, "content", {
|
662
659
|
get: function () {
|
663
|
-
return this.
|
660
|
+
return this._content;
|
664
661
|
},
|
665
|
-
set: function (
|
666
|
-
|
667
|
-
|
668
|
-
this._mcVisible = value;
|
669
|
-
this.updateCompValue('mcVisible', value);
|
670
|
-
if (value) {
|
671
|
-
this.show();
|
672
|
-
}
|
673
|
-
else {
|
674
|
-
this.hide();
|
675
|
-
}
|
676
|
-
}
|
662
|
+
set: function (content) {
|
663
|
+
this._content = content;
|
664
|
+
this.updateData();
|
677
665
|
},
|
678
666
|
enumerable: false,
|
679
667
|
configurable: true
|
680
668
|
});
|
681
|
-
Object.defineProperty(
|
669
|
+
Object.defineProperty(McExtendedTooltipTrigger.prototype, "header", {
|
682
670
|
get: function () {
|
683
|
-
return this.
|
671
|
+
return this._header;
|
684
672
|
},
|
685
|
-
set: function (
|
686
|
-
this.
|
673
|
+
set: function (header) {
|
674
|
+
this._header = header;
|
675
|
+
this.updateData();
|
687
676
|
},
|
688
677
|
enumerable: false,
|
689
678
|
configurable: true
|
690
679
|
});
|
691
|
-
|
692
|
-
this.
|
693
|
-
};
|
694
|
-
McTooltip.prototype.ngOnDestroy = function () {
|
695
|
-
var _this = this;
|
696
|
-
if (this.overlayRef) {
|
697
|
-
this.overlayRef.dispose();
|
698
|
-
}
|
699
|
-
this.manualListeners.forEach(function (listener, event) {
|
700
|
-
_this.elementRef.nativeElement.removeEventListener(event, listener);
|
701
|
-
});
|
702
|
-
this.manualListeners.clear();
|
703
|
-
this.$unsubscribe.next();
|
704
|
-
this.$unsubscribe.complete();
|
705
|
-
};
|
706
|
-
/** Create the overlay config and position strategy */
|
707
|
-
McTooltip.prototype.createOverlay = function () {
|
708
|
-
var _this = this;
|
709
|
-
if (this.overlayRef) {
|
710
|
-
return this.overlayRef;
|
711
|
-
}
|
712
|
-
// Create connected position strategy that listens for scroll events to reposition.
|
713
|
-
var strategy = this.overlay.position()
|
714
|
-
.flexibleConnectedTo(this.elementRef)
|
715
|
-
.withTransformOriginOn('.mc-tooltip')
|
716
|
-
.withFlexibleDimensions(false)
|
717
|
-
.withViewportMargin(VIEWPORT_MARGIN)
|
718
|
-
.withPositions(__spread(core.DEFAULT_4_POSITIONS));
|
719
|
-
var scrollableAncestors = this.scrollDispatcher.getAncestorScrollContainers(this.elementRef);
|
720
|
-
strategy.withScrollableContainers(scrollableAncestors);
|
721
|
-
strategy.positionChanges
|
722
|
-
.pipe(operators.takeUntil(this.destroyed))
|
723
|
-
.subscribe(function (change) {
|
724
|
-
if (_this.tooltip) {
|
725
|
-
_this.onPositionChange(change);
|
726
|
-
if (change.scrollableViewProperties.isOverlayClipped && _this.tooltip.mcVisible) {
|
727
|
-
// After position changes occur and the overlay is clipped by
|
728
|
-
// a parent scrollable then close the tooltip.
|
729
|
-
_this.ngZone.run(function () { return _this.hide(); });
|
730
|
-
}
|
731
|
-
}
|
732
|
-
});
|
733
|
-
this.overlayRef = this.overlay.create({
|
734
|
-
direction: this.direction,
|
735
|
-
positionStrategy: strategy,
|
736
|
-
panelClass: 'mc-tooltip-panel',
|
737
|
-
scrollStrategy: this.scrollStrategy()
|
738
|
-
});
|
739
|
-
this.updatePosition();
|
740
|
-
this.overlayRef.detachments()
|
741
|
-
.pipe(operators.takeUntil(this.destroyed))
|
742
|
-
.subscribe(function () { return _this.detach(); });
|
743
|
-
return this.overlayRef;
|
744
|
-
};
|
745
|
-
McTooltip.prototype.detach = function () {
|
746
|
-
if (this.overlayRef && this.overlayRef.hasAttached()) {
|
747
|
-
this.overlayRef.detach();
|
748
|
-
}
|
749
|
-
this.tooltip = null;
|
750
|
-
};
|
751
|
-
McTooltip.prototype.onPositionChange = function ($event) {
|
752
|
-
var _this = this;
|
753
|
-
var updatedPlacement = this.mcPlacement;
|
754
|
-
Object.keys(this.availablePositions).some(function (key) {
|
755
|
-
if ($event.connectionPair.originX === _this.availablePositions[key].originX &&
|
756
|
-
$event.connectionPair.originY === _this.availablePositions[key].originY &&
|
757
|
-
$event.connectionPair.overlayX === _this.availablePositions[key].overlayX &&
|
758
|
-
$event.connectionPair.overlayY === _this.availablePositions[key].overlayY) {
|
759
|
-
updatedPlacement = key;
|
760
|
-
return true;
|
761
|
-
}
|
762
|
-
return false;
|
763
|
-
});
|
764
|
-
this.updateCompValue('mcPlacement', updatedPlacement);
|
765
|
-
if (this.tooltip) {
|
766
|
-
this.tooltip.setClassMap();
|
767
|
-
this.tooltip.markForCheck();
|
768
|
-
}
|
769
|
-
this.handlePositioningUpdate();
|
770
|
-
};
|
771
|
-
McTooltip.prototype.handlePositioningUpdate = function () {
|
772
|
-
this.overlayRef = this.createOverlay();
|
773
|
-
if (this.mcPlacement === 'right' || this.mcPlacement === 'left') {
|
774
|
-
var halfDelimiter = 2;
|
775
|
-
var overlayElemHeight = this.overlayRef.overlayElement.clientHeight;
|
776
|
-
var currentContainerHeight = this.hostView.element.nativeElement.clientHeight;
|
777
|
-
if (this.mcArrowPlacement === ArrowPlacements.Center) {
|
778
|
-
var arrowElemRef = this.getTooltipArrowElem();
|
779
|
-
var containerPositionTop = this.hostView.element.nativeElement.getBoundingClientRect().top;
|
780
|
-
var halfOfContainerHeight = currentContainerHeight / halfDelimiter;
|
781
|
-
var halfOfTooltipHeight = overlayElemHeight / halfDelimiter;
|
782
|
-
this.overlayRef.overlayElement.style.top = (containerPositionTop + halfOfContainerHeight) - halfOfTooltipHeight + 1 + "px";
|
783
|
-
if (arrowElemRef) {
|
784
|
-
arrowElemRef.setAttribute('style', "top: " + (halfOfTooltipHeight - 1) + "px");
|
785
|
-
}
|
786
|
-
}
|
787
|
-
else {
|
788
|
-
var pos = (overlayElemHeight - currentContainerHeight) / halfDelimiter;
|
789
|
-
var defaultTooltipPlacementTop = parseInt(this.overlayRef.overlayElement.style.top || '0px', 10);
|
790
|
-
this.overlayRef.overlayElement.style.top = defaultTooltipPlacementTop + pos - 1 + "px";
|
791
|
-
}
|
792
|
-
}
|
793
|
-
};
|
794
|
-
// tslint:disable-next-line:no-any
|
795
|
-
McTooltip.prototype.updateCompValue = function (key, value) {
|
796
|
-
if (this.isDynamicTooltip && value && this.tooltip) {
|
797
|
-
this.tooltip[key] = value;
|
798
|
-
this.tooltip.markForCheck();
|
799
|
-
}
|
800
|
-
};
|
801
|
-
McTooltip.prototype.handleKeydown = function (e) {
|
802
|
-
if (this.isTooltipOpen && e.keyCode === keycodes.ESCAPE) { // tslint:disable-line
|
803
|
-
this.hide();
|
804
|
-
}
|
805
|
-
};
|
806
|
-
McTooltip.prototype.handleTouchend = function () {
|
807
|
-
this.hide();
|
808
|
-
};
|
809
|
-
McTooltip.prototype.initElementRefListeners = function () {
|
810
|
-
var _this = this;
|
811
|
-
this.clearListeners();
|
812
|
-
if (this.mcTrigger.includes('hover')) {
|
813
|
-
this.manualListeners
|
814
|
-
.set('mouseenter', function () { return _this.show(); })
|
815
|
-
.set('mouseleave', function () { return _this.hide(); })
|
816
|
-
.forEach(function (listener, event) { return _this.elementRef.nativeElement.addEventListener(event, listener); });
|
817
|
-
}
|
818
|
-
if (this.mcTrigger.includes('focus')) {
|
819
|
-
this.manualListeners
|
820
|
-
.set('focus', function () { return _this.show(); })
|
821
|
-
.set('blur', function () { return _this.hide(); })
|
822
|
-
.forEach(function (listener, event) { return _this.elementRef.nativeElement.addEventListener(event, listener); });
|
823
|
-
}
|
824
|
-
};
|
825
|
-
McTooltip.prototype.clearListeners = function () {
|
826
|
-
var _this = this;
|
827
|
-
this.manualListeners.forEach(function (listener, event) {
|
828
|
-
_this.elementRef.nativeElement.removeEventListener(event, listener);
|
829
|
-
});
|
830
|
-
this.manualListeners.clear();
|
831
|
-
};
|
832
|
-
McTooltip.prototype.show = function () {
|
833
|
-
var _this = this;
|
834
|
-
if (this.disabled) {
|
680
|
+
McExtendedTooltipTrigger.prototype.updateData = function () {
|
681
|
+
if (!this.instance) {
|
835
682
|
return;
|
836
683
|
}
|
837
|
-
|
838
|
-
|
839
|
-
this.detach();
|
840
|
-
this.portal = this.portal || new portal.ComponentPortal(McTooltipComponent, this.hostView);
|
841
|
-
this.tooltip = this.overlayRef.attach(this.portal).instance;
|
842
|
-
this.tooltip.afterHidden()
|
843
|
-
.pipe(operators.takeUntil(this.destroyed))
|
844
|
-
.subscribe(function () { return _this.detach(); });
|
845
|
-
this.isDynamicTooltip = true;
|
846
|
-
var properties = [
|
847
|
-
'mcTitle',
|
848
|
-
'mcPlacement',
|
849
|
-
'mcTrigger',
|
850
|
-
'mcTooltipDisabled',
|
851
|
-
'mcMouseEnterDelay',
|
852
|
-
'mcMouseLeaveDelay',
|
853
|
-
'mcTooltipClass'
|
854
|
-
];
|
855
|
-
properties.forEach(function (property) { return _this.updateCompValue(property, _this[property]); });
|
856
|
-
this.tooltip.mcVisibleChange
|
857
|
-
.pipe(operators.takeUntil(this.$unsubscribe), operators.distinctUntilChanged())
|
858
|
-
.subscribe(function (data) {
|
859
|
-
_this.mcVisible = data;
|
860
|
-
_this.mcVisibleChange.emit(data);
|
861
|
-
_this.isTooltipOpen = data;
|
862
|
-
});
|
863
|
-
}
|
864
|
-
this.updatePosition();
|
865
|
-
this.tooltip.show();
|
866
|
-
};
|
867
|
-
McTooltip.prototype.hide = function () {
|
868
|
-
if (this.tooltip) {
|
869
|
-
this.tooltip.hide();
|
870
|
-
}
|
871
|
-
};
|
872
|
-
/** Updates the position of the current tooltip. */
|
873
|
-
McTooltip.prototype.updatePosition = function () {
|
874
|
-
if (!this.overlayRef) {
|
875
|
-
this.overlayRef = this.createOverlay();
|
876
|
-
}
|
877
|
-
var position = this.overlayRef.getConfig().positionStrategy;
|
878
|
-
var origin = this.getOrigin();
|
879
|
-
var overlay = this.getOverlayPosition();
|
880
|
-
position.withPositions([
|
881
|
-
Object.assign(Object.assign({}, origin.main), overlay.main),
|
882
|
-
Object.assign(Object.assign({}, origin.fallback), overlay.fallback)
|
883
|
-
]);
|
884
|
-
if (this.tooltip) {
|
885
|
-
position.apply();
|
886
|
-
window.dispatchEvent(new Event('resize'));
|
887
|
-
}
|
684
|
+
_super.prototype.updateData.call(this);
|
685
|
+
this.instance.header = this.header;
|
888
686
|
};
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
}
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
};
|
919
|
-
/** Returns the overlay position and a fallback position based on the user's preference */
|
920
|
-
McTooltip.prototype.getOverlayPosition = function () {
|
921
|
-
var position = this.mcPlacement;
|
922
|
-
var isLtr = !this.direction || this.direction.value === 'ltr';
|
923
|
-
var overlayPosition;
|
924
|
-
if (position === 'top') {
|
925
|
-
overlayPosition = { overlayX: 'center', overlayY: 'bottom' };
|
926
|
-
}
|
927
|
-
else if (position === 'bottom') {
|
928
|
-
overlayPosition = { overlayX: 'center', overlayY: 'top' };
|
929
|
-
}
|
930
|
-
else if (position === 'top' ||
|
931
|
-
(position === 'left' && isLtr) ||
|
932
|
-
(position === 'right' && !isLtr)) {
|
933
|
-
overlayPosition = { overlayX: 'end', overlayY: 'center' };
|
934
|
-
}
|
935
|
-
else if (position === 'bottom' ||
|
936
|
-
(position === 'right' && isLtr) ||
|
937
|
-
(position === 'left' && !isLtr)) {
|
938
|
-
overlayPosition = { overlayX: 'start', overlayY: 'center' };
|
939
|
-
}
|
940
|
-
else {
|
941
|
-
throw getMcTooltipInvalidPositionError(position);
|
942
|
-
}
|
943
|
-
var _b = this.invertPosition(overlayPosition.overlayX, overlayPosition.overlayY), x = _b.x, y = _b.y;
|
944
|
-
return {
|
945
|
-
main: overlayPosition,
|
946
|
-
fallback: { overlayX: x, overlayY: y }
|
947
|
-
};
|
948
|
-
};
|
949
|
-
/** Inverts an overlay position. */
|
950
|
-
McTooltip.prototype.invertPosition = function (x, y) {
|
951
|
-
var newX = x;
|
952
|
-
var newY = y;
|
953
|
-
if (this.mcPlacement === 'top' || this.mcPlacement === 'bottom') {
|
954
|
-
if (y === 'top') {
|
955
|
-
newY = 'bottom';
|
956
|
-
}
|
957
|
-
else if (y === 'bottom') {
|
958
|
-
newY = 'top';
|
959
|
-
}
|
960
|
-
}
|
961
|
-
else {
|
962
|
-
if (x === 'end') {
|
963
|
-
newX = 'start';
|
964
|
-
}
|
965
|
-
else if (x === 'start') {
|
966
|
-
newX = 'end';
|
967
|
-
}
|
968
|
-
}
|
969
|
-
return { x: newX, y: newY };
|
970
|
-
};
|
971
|
-
McTooltip.prototype.getTooltipArrowElem = function () {
|
972
|
-
var _a;
|
973
|
-
var arrowClassName = 'mc-tooltip-arrow';
|
974
|
-
return (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.overlayElement.getElementsByClassName(arrowClassName)[0];
|
975
|
-
};
|
976
|
-
return McTooltip;
|
977
|
-
}());
|
978
|
-
McTooltip.decorators = [
|
979
|
-
{ type: core$1.Directive, args: [{
|
980
|
-
selector: '[mcTooltip], [attribute^="mcTooltip"]',
|
981
|
-
exportAs: 'mcTooltip',
|
982
|
-
host: {
|
983
|
-
'[class.mc-tooltip-open]': 'isTooltipOpen',
|
984
|
-
'[class.disabled]': 'parentDisabled',
|
985
|
-
'(keydown)': 'handleKeydown($event)',
|
986
|
-
'(touchend)': 'handleTouchend()'
|
987
|
-
}
|
988
|
-
},] }
|
989
|
-
];
|
990
|
-
/** @nocollapse */
|
991
|
-
McTooltip.ctorParameters = function () { return [
|
992
|
-
{ type: overlay.Overlay },
|
993
|
-
{ type: core$1.ElementRef },
|
994
|
-
{ type: core$1.NgZone },
|
995
|
-
{ type: overlay.ScrollDispatcher },
|
996
|
-
{ type: core$1.ViewContainerRef },
|
997
|
-
{ type: undefined, decorators: [{ type: core$1.Inject, args: [MC_TOOLTIP_SCROLL_STRATEGY,] }] },
|
998
|
-
{ type: bidi.Directionality, decorators: [{ type: core$1.Optional }] }
|
999
|
-
]; };
|
1000
|
-
McTooltip.propDecorators = {
|
1001
|
-
mcVisibleChange: [{ type: core$1.Output }],
|
1002
|
-
mcTitle: [{ type: core$1.Input, args: ['mcTooltip',] }],
|
1003
|
-
setTitle: [{ type: core$1.Input, args: ['mcTitle',] }],
|
1004
|
-
disabled: [{ type: core$1.Input, args: ['mcTooltipDisabled',] }],
|
1005
|
-
mcMouseEnterDelay: [{ type: core$1.Input }],
|
1006
|
-
mcMouseLeaveDelay: [{ type: core$1.Input }],
|
1007
|
-
mcTrigger: [{ type: core$1.Input }],
|
1008
|
-
mcPlacement: [{ type: core$1.Input }],
|
1009
|
-
mcTooltipClass: [{ type: core$1.Input }],
|
1010
|
-
mcVisible: [{ type: core$1.Input }],
|
1011
|
-
mcArrowPlacement: [{ type: core$1.Input }]
|
1012
|
-
};
|
687
|
+
return McExtendedTooltipTrigger;
|
688
|
+
}(McTooltipTrigger));
|
689
|
+
/** @nocollapse */ McExtendedTooltipTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McExtendedTooltipTrigger, deps: [{ token: i2__namespace.Overlay }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: i2__namespace.ScrollDispatcher }, { token: i0__namespace.ViewContainerRef }, { token: MC_TOOLTIP_SCROLL_STRATEGY }, { token: i3__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
690
|
+
/** @nocollapse */ McExtendedTooltipTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McExtendedTooltipTrigger, selector: "[mcExtendedTooltip]", inputs: { content: ["mcExtendedTooltip", "content"], header: ["mcTooltipHeader", "header"] }, host: { listeners: { "keydown": "handleKeydown($event)", "touchend": "handleTouchend()" }, properties: { "class.mc-tooltip_open": "isOpen" } }, exportAs: ["mcExtendedTooltip"], usesInheritance: true, ngImport: i0__namespace });
|
691
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McExtendedTooltipTrigger, decorators: [{
|
692
|
+
type: i0.Directive,
|
693
|
+
args: [{
|
694
|
+
selector: '[mcExtendedTooltip]',
|
695
|
+
exportAs: 'mcExtendedTooltip',
|
696
|
+
host: {
|
697
|
+
'[class.mc-tooltip_open]': 'isOpen',
|
698
|
+
'(keydown)': 'handleKeydown($event)',
|
699
|
+
'(touchend)': 'handleTouchend()'
|
700
|
+
}
|
701
|
+
}]
|
702
|
+
}], ctorParameters: function () {
|
703
|
+
return [{ type: i2__namespace.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: i2__namespace.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
|
704
|
+
type: i0.Inject,
|
705
|
+
args: [MC_TOOLTIP_SCROLL_STRATEGY]
|
706
|
+
}] }, { type: i3__namespace.Directionality, decorators: [{
|
707
|
+
type: i0.Optional
|
708
|
+
}] }];
|
709
|
+
}, propDecorators: { content: [{
|
710
|
+
type: i0.Input,
|
711
|
+
args: ['mcExtendedTooltip']
|
712
|
+
}], header: [{
|
713
|
+
type: i0.Input,
|
714
|
+
args: ['mcTooltipHeader']
|
715
|
+
}] } });
|
1013
716
|
|
1014
717
|
var McToolTipModule = /** @class */ (function () {
|
1015
718
|
function McToolTipModule() {
|
1016
719
|
}
|
1017
720
|
return McToolTipModule;
|
1018
721
|
}());
|
1019
|
-
McToolTipModule
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
722
|
+
/** @nocollapse */ McToolTipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McToolTipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
723
|
+
/** @nocollapse */ McToolTipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McToolTipModule, declarations: [McTooltipComponent,
|
724
|
+
McTooltipTrigger,
|
725
|
+
McExtendedTooltipTrigger,
|
726
|
+
McWarningTooltipTrigger], imports: [i1.CommonModule, i2.OverlayModule], exports: [McTooltipComponent,
|
727
|
+
McTooltipTrigger,
|
728
|
+
McExtendedTooltipTrigger,
|
729
|
+
McWarningTooltipTrigger] });
|
730
|
+
/** @nocollapse */ McToolTipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McToolTipModule, providers: [
|
731
|
+
MC_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
732
|
+
MC_TOOLTIP_OPEN_TIME_PROVIDER
|
733
|
+
], imports: [[i1.CommonModule, i2.OverlayModule]] });
|
734
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McToolTipModule, decorators: [{
|
735
|
+
type: i0.NgModule,
|
736
|
+
args: [{
|
737
|
+
declarations: [
|
738
|
+
McTooltipComponent,
|
739
|
+
McTooltipTrigger,
|
740
|
+
McExtendedTooltipTrigger,
|
741
|
+
McWarningTooltipTrigger
|
742
|
+
],
|
743
|
+
exports: [
|
744
|
+
McTooltipComponent,
|
745
|
+
McTooltipTrigger,
|
746
|
+
McExtendedTooltipTrigger,
|
747
|
+
McWarningTooltipTrigger
|
748
|
+
],
|
749
|
+
imports: [i1.CommonModule, i2.OverlayModule],
|
750
|
+
providers: [
|
751
|
+
MC_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
752
|
+
MC_TOOLTIP_OPEN_TIME_PROVIDER
|
753
|
+
],
|
754
|
+
entryComponents: [McTooltipComponent]
|
755
|
+
}]
|
756
|
+
}] });
|
1028
757
|
|
1029
758
|
/**
|
1030
759
|
* Generated bundle index. Do not edit.
|
1031
760
|
*/
|
1032
761
|
|
1033
|
-
exports.
|
762
|
+
exports.MC_TOOLTIP_OPEN_TIME = MC_TOOLTIP_OPEN_TIME;
|
763
|
+
exports.MC_TOOLTIP_OPEN_TIME_PROVIDER = MC_TOOLTIP_OPEN_TIME_PROVIDER;
|
1034
764
|
exports.MC_TOOLTIP_SCROLL_STRATEGY = MC_TOOLTIP_SCROLL_STRATEGY;
|
1035
765
|
exports.MC_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = MC_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
766
|
+
exports.MIN_TIME_FOR_DELAY = MIN_TIME_FOR_DELAY;
|
767
|
+
exports.McExtendedTooltipTrigger = McExtendedTooltipTrigger;
|
1036
768
|
exports.McToolTipModule = McToolTipModule;
|
1037
|
-
exports.McTooltip = McTooltip;
|
1038
769
|
exports.McTooltipComponent = McTooltipComponent;
|
1039
|
-
exports.
|
770
|
+
exports.McTooltipTrigger = McTooltipTrigger;
|
771
|
+
exports.McWarningTooltipTrigger = McWarningTooltipTrigger;
|
1040
772
|
exports.mcTooltipScrollStrategyFactory = mcTooltipScrollStrategyFactory;
|
1041
773
|
|
1042
774
|
Object.defineProperty(exports, '__esModule', { value: true });
|
1043
775
|
|
1044
|
-
}))
|
776
|
+
}));
|
1045
777
|
//# sourceMappingURL=ptsecurity-mosaic-tooltip.umd.js.map
|