@taiga-ui/core 3.17.0 → 3.18.0-dev.main-05a0bf8
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/bundles/taiga-ui-core-abstract.umd.js +11 -19
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +14 -23
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +11 -20
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +11 -20
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +20 -29
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +203 -190
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +11 -20
- package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +14 -23
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.js +14 -23
- package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +7 -7
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +14 -23
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.js +11 -20
- package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +12 -21
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +11 -20
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +13 -22
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +11 -20
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +11 -20
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +11 -20
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +21 -30
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +11 -20
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +11 -20
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +17 -26
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +17 -26
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +109 -38
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +11 -20
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +39 -30
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +83 -72
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +95 -100
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +7 -7
- package/bundles/taiga-ui-core-directives-mode.umd.js +11 -20
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +11 -20
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +35 -44
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.js +7 -7
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +11 -20
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-format-date.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-format-number.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-month.umd.js +7 -7
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +11 -20
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +22 -31
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +43 -14
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +4 -13
- package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +4 -13
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/components/dialog/dialog-close.service.d.ts +15 -0
- package/components/dialog/dialog.component.d.ts +5 -4
- package/components/dialog/dialog.tokens.d.ts +2 -0
- package/components/dialog/index.d.ts +1 -1
- package/components/notification/notification.component.d.ts +2 -2
- package/components/svg/deprecated-icons.d.ts +1 -0
- package/components/svg/index.d.ts +2 -0
- package/components/svg/svg-options.d.ts +14 -0
- package/components/svg/svg.component.d.ts +5 -7
- package/components/tooltip/tooltip.component.d.ts +2 -2
- package/components/tooltip/tooltip.module.d.ts +5 -4
- package/directives/dropdown/dropdown-hover-options.directive.d.ts +9 -0
- package/directives/dropdown/dropdown-hover.directive.d.ts +3 -1
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +2 -2
- package/directives/dropdown/dropdown-position.directive.d.ts +2 -2
- package/directives/dropdown/index.d.ts +1 -0
- package/directives/hint/hint-hover.directive.d.ts +4 -2
- package/directives/hint/hint-position.directive.d.ts +2 -2
- package/esm2015/abstract/abstract-driver.directive.js +3 -3
- package/esm2015/abstract/abstract-textfield-host.js +3 -3
- package/esm2015/abstract/rect-accessor.js +2 -1
- package/esm2015/components/alert/alert.component.js +3 -3
- package/esm2015/components/alert/alert.module.js +4 -4
- package/esm2015/components/alert/alert.service.js +3 -3
- package/esm2015/components/button/button.component.js +3 -3
- package/esm2015/components/button/button.module.js +4 -4
- package/esm2015/components/calendar/calendar.component.js +3 -3
- package/esm2015/components/calendar/calendar.module.js +4 -4
- package/esm2015/components/data-list/data-list.component.js +3 -3
- package/esm2015/components/data-list/data-list.directive.js +3 -3
- package/esm2015/components/data-list/data-list.module.js +4 -4
- package/esm2015/components/data-list/opt-group.directive.js +3 -3
- package/esm2015/components/data-list/option/option.component.js +3 -3
- package/esm2015/components/dialog/dialog-close.service.js +51 -0
- package/esm2015/components/dialog/dialog.component.js +27 -11
- package/esm2015/components/dialog/dialog.directive.js +3 -3
- package/esm2015/components/dialog/dialog.module.js +4 -4
- package/esm2015/components/dialog/dialog.service.js +3 -3
- package/esm2015/components/dialog/dialog.tokens.js +5 -1
- package/esm2015/components/dialog/index.js +2 -2
- package/esm2015/components/error/error.component.js +3 -3
- package/esm2015/components/error/error.module.js +4 -4
- package/esm2015/components/expand/expand-content.directive.js +3 -3
- package/esm2015/components/expand/expand.component.js +3 -3
- package/esm2015/components/expand/expand.module.js +4 -4
- package/esm2015/components/group/group-styles.component.js +3 -3
- package/esm2015/components/group/group.directive.js +3 -3
- package/esm2015/components/group/group.module.js +4 -4
- package/esm2015/components/hints-host/hints-host.component.js +3 -3
- package/esm2015/components/hints-host/hints-host.module.js +4 -4
- package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +3 -3
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -3
- package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +4 -4
- package/esm2015/components/label/label.component.js +3 -3
- package/esm2015/components/label/label.module.js +4 -4
- package/esm2015/components/link/link.component.js +4 -4
- package/esm2015/components/link/link.module.js +4 -4
- package/esm2015/components/loader/loader.component.js +3 -3
- package/esm2015/components/loader/loader.module.js +4 -4
- package/esm2015/components/notification/notification.component.js +6 -6
- package/esm2015/components/notification/notification.module.js +4 -4
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
- package/esm2015/components/primitive-calendar/primitive-calendar.module.js +4 -4
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +3 -3
- package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +4 -4
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
- package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +4 -4
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +5 -5
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +3 -3
- package/esm2015/components/primitive-textfield/primitive-textfield.module.js +4 -4
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +3 -3
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
- package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +4 -4
- package/esm2015/components/root/root.component.js +3 -3
- package/esm2015/components/root/root.module.js +4 -4
- package/esm2015/components/scroll-controls/scroll-controls.component.js +3 -3
- package/esm2015/components/scroll-controls/scroll-controls.module.js +4 -4
- package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +3 -3
- package/esm2015/components/scroll-controls/scrollbar.directive.js +3 -3
- package/esm2015/components/scrollbar/scroll-ref.directive.js +3 -3
- package/esm2015/components/scrollbar/scrollable.directive.js +3 -3
- package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
- package/esm2015/components/scrollbar/scrollbar.module.js +4 -4
- package/esm2015/components/svg/deprecated-icons.js +59 -0
- package/esm2015/components/svg/index.js +3 -1
- package/esm2015/components/svg/svg-options.js +29 -0
- package/esm2015/components/svg/svg.component.js +14 -19
- package/esm2015/components/svg/svg.module.js +4 -4
- package/esm2015/components/theme-night/theme-night.component.js +3 -3
- package/esm2015/components/theme-night/theme-night.module.js +4 -4
- package/esm2015/components/tooltip/tooltip.component.js +15 -15
- package/esm2015/components/tooltip/tooltip.module.js +23 -6
- package/esm2015/directives/dropdown/dropdown-context.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown-driver.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown-host.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown-hover-options.directive.js +14 -0
- package/esm2015/directives/dropdown/dropdown-hover.directive.js +12 -7
- package/esm2015/directives/dropdown/dropdown-manual.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown-options.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +14 -14
- package/esm2015/directives/dropdown/dropdown-position.directive.js +13 -13
- package/esm2015/directives/dropdown/dropdown-selection.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown.component.js +3 -3
- package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
- package/esm2015/directives/dropdown/dropdown.module.js +4 -4
- package/esm2015/directives/dropdown/index.js +2 -1
- package/esm2015/directives/hint/hint-describe.directive.js +3 -3
- package/esm2015/directives/hint/hint-driver.directive.js +3 -3
- package/esm2015/directives/hint/hint-host.directive.js +3 -3
- package/esm2015/directives/hint/hint-hover.directive.js +14 -11
- package/esm2015/directives/hint/hint-manual.directive.js +3 -3
- package/esm2015/directives/hint/hint-options.directive.js +5 -5
- package/esm2015/directives/hint/hint-pointer.directive.js +3 -3
- package/esm2015/directives/hint/hint-position.directive.js +14 -13
- package/esm2015/directives/hint/hint.component.js +6 -5
- package/esm2015/directives/hint/hint.directive.js +3 -3
- package/esm2015/directives/hint/hint.module.js +4 -4
- package/esm2015/directives/mask-accessor/mask-accessor.directive.js +3 -3
- package/esm2015/directives/mask-accessor/mask-accessor.module.js +4 -4
- package/esm2015/directives/mode/mode.directive.js +3 -3
- package/esm2015/directives/mode/mode.module.js +4 -4
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
- package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-controller.module.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-filler.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-icon.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +3 -3
- package/esm2015/directives/wrapper/wrapper.directive.js +3 -3
- package/esm2015/directives/wrapper/wrapper.module.js +4 -4
- package/esm2015/interfaces/dialog-options.js +1 -1
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +3 -3
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +4 -4
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +3 -3
- package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +4 -4
- package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +4 -4
- package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +3 -3
- package/esm2015/pipes/format-date/format-date.module.js +4 -4
- package/esm2015/pipes/format-date/format-date.pipe.js +3 -3
- package/esm2015/pipes/format-number/format-number.module.js +4 -4
- package/esm2015/pipes/format-number/format-number.pipe.js +3 -3
- package/esm2015/pipes/format-phone/format-phone.module.js +4 -4
- package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -3
- package/esm2015/pipes/month/month.module.js +4 -4
- package/esm2015/pipes/month/month.pipe.js +3 -3
- package/esm2015/pipes/order-week-days/order-week-days.module.js +4 -4
- package/esm2015/pipes/order-week-days/order-week-days.pipe.js +3 -3
- package/esm2015/services/format-date.service.js +3 -3
- package/esm2015/services/hint.service.js +3 -3
- package/esm2015/services/night-theme.service.js +3 -3
- package/esm2015/services/position.service.js +3 -3
- package/esm2015/services/router-link-active.service.js +3 -3
- package/esm2015/services/svg.service.js +3 -3
- package/esm2015/tokens/icon-place.js +5 -2
- package/esm2015/tokens/icons-path.js +4 -1
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/tokens/svg-content-processor.js +4 -1
- package/esm2015/tokens/svg-src-processor.js +4 -1
- package/esm2015/tokens/viewport.js +26 -0
- package/fesm2015/taiga-ui-core-abstract.js +7 -6
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-alert.js +10 -10
- package/fesm2015/taiga-ui-core-components-button.js +7 -7
- package/fesm2015/taiga-ui-core-components-calendar.js +7 -7
- package/fesm2015/taiga-ui-core-components-data-list.js +16 -16
- package/fesm2015/taiga-ui-core-components-dialog.js +96 -80
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +7 -7
- package/fesm2015/taiga-ui-core-components-expand.js +10 -10
- package/fesm2015/taiga-ui-core-components-group.js +10 -10
- package/fesm2015/taiga-ui-core-components-hints-host.js +7 -7
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
- package/fesm2015/taiga-ui-core-components-label.js +7 -7
- package/fesm2015/taiga-ui-core-components-link.js +8 -8
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +7 -7
- package/fesm2015/taiga-ui-core-components-notification.js +9 -9
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +7 -7
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +7 -7
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +17 -17
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +7 -7
- package/fesm2015/taiga-ui-core-components-root.js +7 -7
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +13 -13
- package/fesm2015/taiga-ui-core-components-scrollbar.js +13 -13
- package/fesm2015/taiga-ui-core-components-svg.js +103 -26
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +7 -7
- package/fesm2015/taiga-ui-core-components-tooltip.js +36 -19
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +76 -59
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +61 -58
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js +7 -7
- package/fesm2015/taiga-ui-core-directives-mode.js +7 -7
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +7 -7
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +31 -31
- package/fesm2015/taiga-ui-core-directives-wrapper.js +7 -7
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +7 -7
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-format-date.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-format-number.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-month.js +7 -7
- package/fesm2015/taiga-ui-core-pipes-order-week-days.js +7 -7
- package/fesm2015/taiga-ui-core-services.js +18 -18
- package/fesm2015/taiga-ui-core-tokens.js +38 -2
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/interfaces/dialog-options.d.ts +4 -3
- package/package.json +4 -4
- package/styles/mixins/textfield.less +4 -22
- package/styles/mixins/textfield.scss +3 -22
- package/styles/theme/wrapper/icon.less +17 -27
- package/tokens/icon-place.d.ts +3 -0
- package/tokens/icons-path.d.ts +3 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/svg-content-processor.d.ts +3 -0
- package/tokens/svg-src-processor.d.ts +3 -0
- package/tokens/viewport.d.ts +4 -0
- package/components/dialog/dialog.providers.d.ts +0 -5
- package/esm2015/components/dialog/dialog.providers.js +0 -51
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/utils'), require('@angular/common'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/utils', '@angular/common', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.utils, global.ng.common, global
|
|
5
|
-
})(this, (function (exports, i0, i3,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/utils'), require('@angular/common'), require('@taiga-ui/core/constants')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/utils', '@angular/common', '@taiga-ui/core/constants'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1$1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.utils, global.ng.common, global["taiga-ui"].core.constants));
|
|
5
|
+
})(this, (function (exports, i0, i3, i1, animations, i5, i2$1, tokens, i1$1, operators, i2, utils, common, constants) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i3__namespace
|
|
27
|
-
var
|
|
26
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
27
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
28
28
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
29
29
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
31
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
/*! *****************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
35
35
|
|
|
36
36
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
function step(op) {
|
|
129
129
|
if (f)
|
|
130
130
|
throw new TypeError("Generator is already executing.");
|
|
131
|
-
while (
|
|
131
|
+
while (_)
|
|
132
132
|
try {
|
|
133
133
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
134
134
|
return t;
|
|
@@ -192,11 +192,7 @@
|
|
|
192
192
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
193
|
if (k2 === undefined)
|
|
194
194
|
k2 = k;
|
|
195
|
-
|
|
196
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
197
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
198
|
-
}
|
|
199
|
-
Object.defineProperty(o, k2, desc);
|
|
195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
200
196
|
}) : (function (o, m, k, k2) {
|
|
201
197
|
if (k2 === undefined)
|
|
202
198
|
k2 = k;
|
|
@@ -269,7 +265,7 @@
|
|
|
269
265
|
ar[i] = from[i];
|
|
270
266
|
}
|
|
271
267
|
}
|
|
272
|
-
return to.concat(ar ||
|
|
268
|
+
return to.concat(ar || from);
|
|
273
269
|
}
|
|
274
270
|
function __await(v) {
|
|
275
271
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -351,11 +347,6 @@
|
|
|
351
347
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
352
348
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
353
349
|
}
|
|
354
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
355
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
356
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
357
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
358
|
-
}
|
|
359
350
|
|
|
360
351
|
/** Default values for hint options */
|
|
361
352
|
var TUI_HINT_DEFAULT_OPTIONS = {
|
|
@@ -363,7 +354,7 @@
|
|
|
363
354
|
showDelay: 500,
|
|
364
355
|
hideDelay: 200,
|
|
365
356
|
appearance: '',
|
|
366
|
-
icon: '
|
|
357
|
+
icon: 'tuiIconHelpCircle',
|
|
367
358
|
};
|
|
368
359
|
var TUI_HINT_OPTIONS = new i0.InjectionToken('[TUI_HINT_OPTIONS] Default parameters for hint directive', {
|
|
369
360
|
factory: function () { return TUI_HINT_DEFAULT_OPTIONS; },
|
|
@@ -391,8 +382,8 @@
|
|
|
391
382
|
}
|
|
392
383
|
return TuiHintOptionsDirective;
|
|
393
384
|
}(i3.AbstractTuiController));
|
|
394
|
-
TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
395
|
-
TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
385
|
+
TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, deps: [{ token: TUI_HINT_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
386
|
+
TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
|
|
396
387
|
{
|
|
397
388
|
provide: TUI_HINT_OPTIONS,
|
|
398
389
|
useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
|
|
@@ -413,7 +404,7 @@
|
|
|
413
404
|
__decorate([
|
|
414
405
|
i3.tuiDefaultProp()
|
|
415
406
|
], TuiHintOptionsDirective.prototype, "hideDelay", void 0);
|
|
416
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
407
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
|
|
417
408
|
type: i0.Directive,
|
|
418
409
|
args: [{
|
|
419
410
|
selector: '[tuiHintContent]',
|
|
@@ -450,12 +441,13 @@
|
|
|
450
441
|
|
|
451
442
|
var TuiHintHoverDirective = /** @class */ (function (_super) {
|
|
452
443
|
__extends(TuiHintHoverDirective, _super);
|
|
453
|
-
function TuiHintHoverDirective(hovered$, options) {
|
|
444
|
+
function TuiHintHoverDirective(hovered$, options, elementRef) {
|
|
454
445
|
var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
|
|
455
446
|
_this.hovered$ = hovered$;
|
|
456
447
|
_this.options = options;
|
|
448
|
+
_this.elementRef = elementRef;
|
|
457
449
|
_this.toggle$ = new i2.Subject();
|
|
458
|
-
_this.stream$ = i2.merge(_this.toggle
|
|
450
|
+
_this.stream$ = i2.merge(_this.toggle$.pipe(operators.switchMap(function (visible) { return i2.of(visible).pipe(operators.delay(visible ? 0 : _this.hideDelay)); }), operators.takeUntil(_this.hovered$), operators.repeat()), _this.hovered$.pipe(operators.switchMap(function (visible) { return i2.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.takeUntil(_this.toggle$), operators.repeat()));
|
|
459
451
|
_this.showDelay = _this.options.showDelay;
|
|
460
452
|
_this.hideDelay = _this.options.hideDelay;
|
|
461
453
|
return _this;
|
|
@@ -464,20 +456,21 @@
|
|
|
464
456
|
this.toggle$.next(visible);
|
|
465
457
|
};
|
|
466
458
|
return TuiHintHoverDirective;
|
|
467
|
-
}(
|
|
468
|
-
TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
469
|
-
TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
459
|
+
}(i1.TuiDriver));
|
|
460
|
+
TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
461
|
+
TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
|
|
470
462
|
__decorate([
|
|
471
463
|
i3.tuiDefaultProp()
|
|
472
464
|
], TuiHintHoverDirective.prototype, "showDelay", void 0);
|
|
473
465
|
__decorate([
|
|
474
466
|
i3.tuiDefaultProp()
|
|
475
467
|
], TuiHintHoverDirective.prototype, "hideDelay", void 0);
|
|
476
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
468
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
|
|
477
469
|
type: i0.Directive,
|
|
478
470
|
args: [{
|
|
479
471
|
selector: '[tuiHint]:not(ng-container)',
|
|
480
|
-
|
|
472
|
+
exportAs: 'tuiHintHover',
|
|
473
|
+
providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
|
|
481
474
|
}]
|
|
482
475
|
}], ctorParameters: function () {
|
|
483
476
|
return [{ type: i2__namespace.Observable, decorators: [{
|
|
@@ -486,6 +479,9 @@
|
|
|
486
479
|
}] }, { type: undefined, decorators: [{
|
|
487
480
|
type: i0.Inject,
|
|
488
481
|
args: [TUI_HINT_OPTIONS]
|
|
482
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
483
|
+
type: i0.Inject,
|
|
484
|
+
args: [i0.ElementRef]
|
|
489
485
|
}] }];
|
|
490
486
|
}, propDecorators: { showDelay: [{
|
|
491
487
|
type: i0.Input,
|
|
@@ -493,9 +489,6 @@
|
|
|
493
489
|
}], hideDelay: [{
|
|
494
490
|
type: i0.Input,
|
|
495
491
|
args: ['tuiHintHideDelay']
|
|
496
|
-
}], toggle: [{
|
|
497
|
-
type: i0.HostListener,
|
|
498
|
-
args: ['click', ['true']]
|
|
499
492
|
}] } });
|
|
500
493
|
|
|
501
494
|
var TuiHintPointerDirective = /** @class */ (function (_super) {
|
|
@@ -514,18 +507,18 @@
|
|
|
514
507
|
};
|
|
515
508
|
return TuiHintPointerDirective;
|
|
516
509
|
}(TuiHintHoverDirective));
|
|
517
|
-
TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
518
|
-
TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
519
|
-
|
|
520
|
-
|
|
510
|
+
TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
511
|
+
TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
|
|
512
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
513
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
521
514
|
], usesInheritance: true, ngImport: i0__namespace });
|
|
522
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
515
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
|
|
523
516
|
type: i0.Directive,
|
|
524
517
|
args: [{
|
|
525
518
|
selector: '[tuiHint][tuiHintPointer]',
|
|
526
519
|
providers: [
|
|
527
|
-
|
|
528
|
-
|
|
520
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
521
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
529
522
|
],
|
|
530
523
|
}]
|
|
531
524
|
}], propDecorators: { onMove: [{
|
|
@@ -568,7 +561,8 @@
|
|
|
568
561
|
configurable: true
|
|
569
562
|
});
|
|
570
563
|
TuiHintComponent.prototype.onClick = function (target) {
|
|
571
|
-
if (!this.elementRef.nativeElement.contains(target)
|
|
564
|
+
if (!this.elementRef.nativeElement.contains(target) &&
|
|
565
|
+
!this.hover.elementRef.nativeElement.contains(target)) {
|
|
572
566
|
this.hover.toggle(false);
|
|
573
567
|
}
|
|
574
568
|
};
|
|
@@ -587,12 +581,12 @@
|
|
|
587
581
|
};
|
|
588
582
|
return TuiHintComponent;
|
|
589
583
|
}());
|
|
590
|
-
TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
591
|
-
TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
584
|
+
TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2$1.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: i1.TuiRectAccessor }, { token: i0.ElementRef }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: i1$1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: TuiHintPointerDirective, optional: true }, { token: i5.TuiModeDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
585
|
+
TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "this.animation", "attr.data-appearance": "this.appearance", "class._untouchable": "this.untouchable" } }, providers: [i3.TuiDestroyService, i2$1.TuiPositionService, i3.TuiHoveredService], ngImport: i0__namespace, template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-01);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=\"top\"]){visibility:hidden}:host._untouchable{pointer-events:none}\n"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
592
586
|
__decorate([
|
|
593
587
|
i3.tuiPure
|
|
594
588
|
], TuiHintComponent.prototype, "update", null);
|
|
595
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
589
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
|
|
596
590
|
type: i0.Component,
|
|
597
591
|
args: [{
|
|
598
592
|
selector: 'tui-hint',
|
|
@@ -614,9 +608,9 @@
|
|
|
614
608
|
}, {
|
|
615
609
|
type: i0.Inject,
|
|
616
610
|
args: [i3.TuiDestroyService]
|
|
617
|
-
}] }, { type:
|
|
611
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
618
612
|
type: i0.Inject,
|
|
619
|
-
args: [
|
|
613
|
+
args: [i1.TuiRectAccessor]
|
|
620
614
|
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
621
615
|
type: i0.Inject,
|
|
622
616
|
args: [i0.ElementRef]
|
|
@@ -625,7 +619,7 @@
|
|
|
625
619
|
args: [tokens.TUI_ANIMATION_OPTIONS]
|
|
626
620
|
}] }, { type: undefined, decorators: [{
|
|
627
621
|
type: i0.Inject,
|
|
628
|
-
args: [i1.POLYMORPHEUS_CONTEXT]
|
|
622
|
+
args: [i1$1.POLYMORPHEUS_CONTEXT]
|
|
629
623
|
}] }, { type: TuiHintHoverDirective, decorators: [{
|
|
630
624
|
type: i0.Inject,
|
|
631
625
|
args: [TuiHintHoverDirective]
|
|
@@ -697,14 +691,14 @@
|
|
|
697
691
|
};
|
|
698
692
|
return TuiHintDirective;
|
|
699
693
|
}());
|
|
700
|
-
TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
701
|
-
TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
702
|
-
|
|
703
|
-
|
|
694
|
+
TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.PolymorpheusComponent }, { token: i2$1.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
695
|
+
TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
|
|
696
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
697
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
704
698
|
{
|
|
705
|
-
provide: i1.PolymorpheusComponent,
|
|
699
|
+
provide: i1$1.PolymorpheusComponent,
|
|
706
700
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
707
|
-
useClass: i1.PolymorpheusComponent,
|
|
701
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
708
702
|
},
|
|
709
703
|
], usesOnChanges: true, ngImport: i0__namespace });
|
|
710
704
|
__decorate([
|
|
@@ -713,17 +707,17 @@
|
|
|
713
707
|
__decorate([
|
|
714
708
|
i3.tuiDefaultProp()
|
|
715
709
|
], TuiHintDirective.prototype, "tuiHintAppearance", void 0);
|
|
716
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
710
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
|
|
717
711
|
type: i0.Directive,
|
|
718
712
|
args: [{
|
|
719
713
|
selector: '[tuiHint]:not(ng-container)',
|
|
720
714
|
providers: [
|
|
721
|
-
|
|
722
|
-
|
|
715
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
716
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
723
717
|
{
|
|
724
|
-
provide: i1.PolymorpheusComponent,
|
|
718
|
+
provide: i1$1.PolymorpheusComponent,
|
|
725
719
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
726
|
-
useClass: i1.PolymorpheusComponent,
|
|
720
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
727
721
|
},
|
|
728
722
|
],
|
|
729
723
|
}]
|
|
@@ -733,14 +727,14 @@
|
|
|
733
727
|
args: [i0.ElementRef]
|
|
734
728
|
}] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
|
|
735
729
|
type: i0.Inject,
|
|
736
|
-
args: [i1.PolymorpheusComponent]
|
|
730
|
+
args: [i1$1.PolymorpheusComponent]
|
|
737
731
|
}] }, { type: i2__namespace$1.TuiHintService, decorators: [{
|
|
738
732
|
type: i0.Inject,
|
|
739
733
|
args: [i2$1.TuiHintService]
|
|
740
734
|
}] }, { type: undefined, decorators: [{
|
|
741
735
|
type: i0.Inject,
|
|
742
736
|
args: [TUI_HINT_OPTIONS]
|
|
743
|
-
}] }, { type: i3__namespace
|
|
737
|
+
}] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
|
|
744
738
|
type: i0.Optional
|
|
745
739
|
}, {
|
|
746
740
|
type: i0.Inject,
|
|
@@ -789,17 +783,17 @@
|
|
|
789
783
|
configurable: true
|
|
790
784
|
});
|
|
791
785
|
return TuiHintDescribeDirective;
|
|
792
|
-
}(
|
|
793
|
-
TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
794
|
-
TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
786
|
+
}(i1.TuiDriver));
|
|
787
|
+
TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: TuiHintHoverDirective }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
788
|
+
TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
795
789
|
__decorate([
|
|
796
790
|
i3.tuiPure
|
|
797
791
|
], TuiHintDescribeDirective.prototype, "element", null);
|
|
798
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
792
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
|
|
799
793
|
type: i0.Directive,
|
|
800
794
|
args: [{
|
|
801
795
|
selector: '[tuiHintDescribe]',
|
|
802
|
-
providers: [
|
|
796
|
+
providers: [i1.tuiAsDriver(TuiHintDescribeDirective)],
|
|
803
797
|
}]
|
|
804
798
|
}], ctorParameters: function () {
|
|
805
799
|
return [{ type: i0__namespace.NgZone, decorators: [{
|
|
@@ -825,10 +819,10 @@
|
|
|
825
819
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
826
820
|
}
|
|
827
821
|
return TuiHintDriverDirective;
|
|
828
|
-
}(
|
|
829
|
-
TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
830
|
-
TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
831
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
822
|
+
}(i1.AbstractTuiDriverDirective));
|
|
823
|
+
TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
824
|
+
TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
|
|
825
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
|
|
832
826
|
type: i0.Directive,
|
|
833
827
|
args: [{
|
|
834
828
|
selector: '[tuiHint]',
|
|
@@ -846,14 +840,14 @@
|
|
|
846
840
|
return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
|
|
847
841
|
};
|
|
848
842
|
return TuiHintHostDirective;
|
|
849
|
-
}(
|
|
850
|
-
TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
851
|
-
TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
852
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
843
|
+
}(i1.TuiRectAccessor));
|
|
844
|
+
TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
845
|
+
TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
846
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
|
|
853
847
|
type: i0.Directive,
|
|
854
848
|
args: [{
|
|
855
849
|
selector: '[tuiHint][tuiHintHost]',
|
|
856
|
-
providers: [
|
|
850
|
+
providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)],
|
|
857
851
|
}]
|
|
858
852
|
}], propDecorators: { tuiHintHost: [{
|
|
859
853
|
type: i0.Input
|
|
@@ -871,14 +865,14 @@
|
|
|
871
865
|
this.stream$.next(this.tuiHintManual);
|
|
872
866
|
};
|
|
873
867
|
return TuiHintManualDirective;
|
|
874
|
-
}(
|
|
875
|
-
TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
876
|
-
TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
877
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
868
|
+
}(i1.TuiDriver));
|
|
869
|
+
TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
870
|
+
TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
|
|
871
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
|
|
878
872
|
type: i0.Directive,
|
|
879
873
|
args: [{
|
|
880
874
|
selector: '[tuiHint][tuiHintManual]',
|
|
881
|
-
providers: [
|
|
875
|
+
providers: [i1.tuiAsDriver(TuiHintManualDirective)],
|
|
882
876
|
}]
|
|
883
877
|
}], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
|
|
884
878
|
type: i0.Input
|
|
@@ -889,9 +883,9 @@
|
|
|
889
883
|
var TOP = 0;
|
|
890
884
|
var LEFT = 1;
|
|
891
885
|
var TuiHintPositionDirective = /** @class */ (function () {
|
|
892
|
-
function TuiHintPositionDirective(options,
|
|
886
|
+
function TuiHintPositionDirective(options, viewport, accessor) {
|
|
893
887
|
this.options = options;
|
|
894
|
-
this.
|
|
888
|
+
this.viewport = viewport;
|
|
895
889
|
this.accessor = accessor;
|
|
896
890
|
this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
|
|
897
891
|
var _a;
|
|
@@ -938,7 +932,8 @@
|
|
|
938
932
|
};
|
|
939
933
|
Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
|
|
940
934
|
get: function () {
|
|
941
|
-
return this.points.top[TOP] >
|
|
935
|
+
return this.points.top[TOP] >
|
|
936
|
+
this.viewport.getClientRect().bottom - this.points.bottom[TOP]
|
|
942
937
|
? 'top'
|
|
943
938
|
: 'bottom';
|
|
944
939
|
},
|
|
@@ -947,35 +942,35 @@
|
|
|
947
942
|
});
|
|
948
943
|
TuiHintPositionDirective.prototype.checkPosition = function (_a, width, height) {
|
|
949
944
|
var _b = __read(_a, 2), top = _b[0], left = _b[1];
|
|
950
|
-
var
|
|
945
|
+
var viewport = this.viewport.getClientRect();
|
|
951
946
|
return (top > OFFSET &&
|
|
952
947
|
left > OFFSET &&
|
|
953
|
-
top + height <
|
|
954
|
-
left + width <
|
|
948
|
+
top + height < viewport.bottom - OFFSET &&
|
|
949
|
+
left + width < viewport.right - OFFSET);
|
|
955
950
|
};
|
|
956
951
|
return TuiHintPositionDirective;
|
|
957
952
|
}());
|
|
958
|
-
TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
959
|
-
TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
953
|
+
TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: i1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
954
|
+
TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)], ngImport: i0__namespace });
|
|
960
955
|
__decorate([
|
|
961
956
|
i3.tuiDefaultProp()
|
|
962
957
|
], TuiHintPositionDirective.prototype, "direction", void 0);
|
|
963
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
958
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
|
|
964
959
|
type: i0.Directive,
|
|
965
960
|
args: [{
|
|
966
961
|
selector: '[tuiHint]:not([tuiHintCustomPosition])',
|
|
967
|
-
providers: [
|
|
962
|
+
providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)],
|
|
968
963
|
}]
|
|
969
964
|
}], ctorParameters: function () {
|
|
970
965
|
return [{ type: undefined, decorators: [{
|
|
971
966
|
type: i0.Inject,
|
|
972
967
|
args: [TUI_HINT_OPTIONS]
|
|
973
|
-
}] }, { type:
|
|
968
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
974
969
|
type: i0.Inject,
|
|
975
|
-
args: [
|
|
976
|
-
}] }, { type:
|
|
970
|
+
args: [tokens.TUI_VIEWPORT]
|
|
971
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
977
972
|
type: i0.Inject,
|
|
978
|
-
args: [
|
|
973
|
+
args: [i1.TuiRectAccessor]
|
|
979
974
|
}] }];
|
|
980
975
|
}, propDecorators: { direction: [{
|
|
981
976
|
type: i0.Input,
|
|
@@ -987,8 +982,8 @@
|
|
|
987
982
|
}
|
|
988
983
|
return TuiHintModule;
|
|
989
984
|
}());
|
|
990
|
-
TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
991
|
-
TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
985
|
+
TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
986
|
+
TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
|
|
992
987
|
TuiHintDirective,
|
|
993
988
|
TuiHintDriverDirective,
|
|
994
989
|
TuiHintHostDirective,
|
|
@@ -997,7 +992,7 @@
|
|
|
997
992
|
TuiHintPointerDirective,
|
|
998
993
|
TuiHintDescribeDirective,
|
|
999
994
|
TuiHintPositionDirective,
|
|
1000
|
-
TuiHintOptionsDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
995
|
+
TuiHintOptionsDirective], imports: [common.CommonModule, i1$1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
1001
996
|
TuiHintDirective,
|
|
1002
997
|
TuiHintDriverDirective,
|
|
1003
998
|
TuiHintHostDirective,
|
|
@@ -1007,11 +1002,11 @@
|
|
|
1007
1002
|
TuiHintDescribeDirective,
|
|
1008
1003
|
TuiHintPositionDirective,
|
|
1009
1004
|
TuiHintOptionsDirective] });
|
|
1010
|
-
TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1011
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1005
|
+
TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1$1.PolymorpheusModule]] });
|
|
1006
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
|
|
1012
1007
|
type: i0.NgModule,
|
|
1013
1008
|
args: [{
|
|
1014
|
-
imports: [common.CommonModule, i1.PolymorpheusModule],
|
|
1009
|
+
imports: [common.CommonModule, i1$1.PolymorpheusModule],
|
|
1015
1010
|
declarations: [
|
|
1016
1011
|
TuiHintComponent,
|
|
1017
1012
|
TuiHintDirective,
|