@taiga-ui/core 2.74.0 → 2.76.0
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/abstract/abstract-dropdown.d.ts +2 -2
- package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-core-abstract.umd.js +49 -2
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +55 -10
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +60 -15
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +47 -2
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +83 -39
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +60 -15
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-dropdown-box.umd.js +84 -39
- package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +50 -5
- package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +58 -13
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.js +64 -19
- package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +93 -48
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +56 -11
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.js +51 -6
- package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +57 -12
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +48 -3
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +54 -9
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +48 -3
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +49 -4
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +48 -3
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +97 -52
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +48 -3
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +50 -5
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +72 -27
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +54 -9
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +61 -16
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +48 -3
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +53 -8
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-color.umd.js +52 -7
- package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-described-by.umd.js +50 -5
- package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +55 -10
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +48 -3
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js +52 -7
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +51 -6
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-manual-hint.umd.js +49 -4
- package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +47 -2
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +48 -3
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +50 -5
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +47 -2
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-table-mode.umd.js +48 -3
- package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +79 -34
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.js +55 -10
- package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +47 -2
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +47 -2
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +47 -2
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js +46 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js +46 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +46 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js +46 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-pluralize.umd.js +46 -1
- package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +46 -1
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +46 -1
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +1 -3
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +46 -1
- package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +47 -2
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
- package/components/button/button-options.d.ts +3 -3
- package/components/button/button.component.d.ts +2 -2
- package/components/calendar/calendar.component.d.ts +1 -1
- package/components/data-list/option/option.component.d.ts +1 -1
- package/components/dropdown-box/dropdown-box.component.d.ts +3 -3
- package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
- package/components/link/link.component.d.ts +1 -1
- package/components/loader/loader.component.d.ts +1 -1
- package/components/notification/notification.component.d.ts +1 -1
- package/components/primitive-calendar/primitive-calendar.component.d.ts +2 -2
- package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -2
- package/components/primitive-year-picker/primitive-year-picker.component.d.ts +1 -1
- package/components/svg/svg.component.d.ts +1 -1
- package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
- package/constants/version.d.ts +1 -1
- package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
- package/directives/textfield-controller/textfield-size.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield.controller.d.ts +1 -1
- package/esm2015/abstract/abstract-dropdown.js +1 -1
- package/esm2015/abstract/abstract-textfield-host.js +7 -3
- package/esm2015/components/alert/alert.component.js +10 -10
- package/esm2015/components/button/button-options.js +1 -1
- package/esm2015/components/button/button.component.js +15 -15
- package/esm2015/components/calendar/calendar.component.js +2 -2
- package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +9 -10
- package/esm2015/components/data-list/data-list.component.js +12 -12
- package/esm2015/components/data-list/data-list.directive.js +2 -2
- package/esm2015/components/data-list/opt-group.directive.js +5 -5
- package/esm2015/components/data-list/option/option.component.js +13 -13
- package/esm2015/components/dialog/dialog.component.js +12 -12
- package/esm2015/components/dialog/dialog.directive.js +4 -4
- package/esm2015/components/dropdown-box/dropdown-box.component.js +39 -39
- package/esm2015/components/error/error.component.js +5 -5
- package/esm2015/components/expand/expand-content.directive.js +2 -2
- package/esm2015/components/expand/expand.component.js +12 -12
- package/esm2015/components/group/group-styles.component.js +2 -2
- package/esm2015/components/group/group.component.js +4 -4
- package/esm2015/components/group/group.directive.js +15 -15
- package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
- package/esm2015/components/hints-host/hints-host.component.js +3 -3
- package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
- package/esm2015/components/label/label.component.js +6 -6
- package/esm2015/components/link/link.component.js +12 -12
- package/esm2015/components/loader/loader.component.js +3 -3
- package/esm2015/components/notification/notification.component.js +9 -9
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -28
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
- package/esm2015/components/root/root.component.js +5 -5
- package/esm2015/components/scroll-controls/scroll-controls.component.js +4 -4
- package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
- package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
- package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
- package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
- package/esm2015/components/scrollbar/scrollbar.component.js +7 -7
- package/esm2015/components/svg/svg.component.js +16 -16
- package/esm2015/components/theme-night/theme-night.component.js +3 -3
- package/esm2015/components/tooltip/tooltip.component.js +8 -8
- package/esm2015/directives/color/color.directive.js +7 -7
- package/esm2015/directives/described-by/described-by.directive.js +5 -5
- package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
- package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
- package/esm2015/directives/hint/hint.directive.js +6 -6
- package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
- package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
- package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
- package/esm2015/directives/mode/mode.directive.js +3 -3
- package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
- package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
- package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
- package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
- package/esm2015/interfaces/alert-options.js +1 -1
- package/esm2015/interfaces/dropdown-directive.js +1 -1
- package/esm2015/interfaces/hint.js +1 -1
- package/esm2015/interfaces/notification-options.js +1 -1
- package/esm2015/interfaces/number-format-settings.js +1 -1
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
- package/esm2015/mask/text-mask-list.js +1 -1
- package/esm2015/mask/text-mask-pipe-handler.js +1 -1
- package/esm2015/pipes/calendar-sheet/utils.js +2 -2
- package/esm2015/pipes/format-date/format-date.pipe.js +1 -1
- package/esm2015/types/brightness.js +1 -1
- package/esm2015/types/decimal-symbol.js +1 -1
- package/esm2015/types/decimal.js +1 -1
- package/esm2015/types/dialog-size.js +1 -1
- package/esm2015/types/direction.js +1 -1
- package/esm2015/types/dropdown-width.js +1 -1
- package/esm2015/types/marker-handler.js +1 -1
- package/esm2015/types/option-role.js +1 -1
- package/esm2015/types/orientation.js +1 -1
- package/esm2015/types/size.js +1 -1
- package/esm2015/utils/dom/get-safe-area-size.js +1 -1
- package/esm2015/utils/dom/process-icon.js +2 -4
- package/esm2015/utils/mask/create-number-mask.js +2 -2
- package/esm2015/utils/polyfills/inner-html.js +3 -3
- package/esm5/abstract/abstract-dropdown.js +1 -1
- package/esm5/abstract/abstract-textfield-host.js +4 -2
- package/esm5/components/alert/alert.component.js +10 -10
- package/esm5/components/button/button-options.js +1 -1
- package/esm5/components/button/button.component.js +15 -15
- package/esm5/components/calendar/calendar.component.js +2 -2
- package/esm5/components/data-list/data-list-dropdown-manager.directive.js +10 -11
- package/esm5/components/data-list/data-list.component.js +12 -12
- package/esm5/components/data-list/data-list.directive.js +2 -2
- package/esm5/components/data-list/opt-group.directive.js +5 -5
- package/esm5/components/data-list/option/option.component.js +13 -13
- package/esm5/components/dialog/dialog.component.js +12 -12
- package/esm5/components/dialog/dialog.directive.js +4 -4
- package/esm5/components/dropdown-box/dropdown-box.component.js +39 -39
- package/esm5/components/error/error.component.js +5 -5
- package/esm5/components/expand/expand-content.directive.js +2 -2
- package/esm5/components/expand/expand.component.js +12 -12
- package/esm5/components/group/group-styles.component.js +2 -2
- package/esm5/components/group/group.component.js +4 -4
- package/esm5/components/group/group.directive.js +15 -15
- package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
- package/esm5/components/hints-host/hints-host.component.js +3 -3
- package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
- package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
- package/esm5/components/label/label.component.js +6 -6
- package/esm5/components/link/link.component.js +12 -12
- package/esm5/components/loader/loader.component.js +3 -3
- package/esm5/components/notification/notification.component.js +9 -9
- package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
- package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
- package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
- package/esm5/components/primitive-textfield/primitive-textfield.component.js +28 -28
- package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
- package/esm5/components/primitive-textfield/textfield/textfield.component.js +13 -13
- package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
- package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
- package/esm5/components/root/root.component.js +5 -5
- package/esm5/components/scroll-controls/scroll-controls.component.js +4 -4
- package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
- package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
- package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
- package/esm5/components/scrollbar/scrollable.directive.js +2 -2
- package/esm5/components/scrollbar/scrollbar.component.js +7 -7
- package/esm5/components/svg/svg.component.js +16 -16
- package/esm5/components/theme-night/theme-night.component.js +3 -3
- package/esm5/components/tooltip/tooltip.component.js +8 -8
- package/esm5/directives/color/color.directive.js +7 -7
- package/esm5/directives/described-by/described-by.directive.js +5 -5
- package/esm5/directives/dropdown/dropdown.directive.js +3 -3
- package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
- package/esm5/directives/hint/hint.directive.js +6 -6
- package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
- package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
- package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
- package/esm5/directives/mode/mode.directive.js +3 -3
- package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
- package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
- package/esm5/directives/table-mode/table-mode.directive.js +3 -3
- package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
- package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
- package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
- package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
- package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
- package/esm5/directives/wrapper/wrapper.directive.js +10 -10
- package/esm5/interfaces/alert-options.js +1 -1
- package/esm5/interfaces/dropdown-directive.js +1 -1
- package/esm5/interfaces/hint.js +1 -1
- package/esm5/interfaces/notification-options.js +1 -1
- package/esm5/interfaces/number-format-settings.js +1 -1
- package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
- package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
- package/esm5/mask/text-mask-list.js +1 -1
- package/esm5/mask/text-mask-pipe-handler.js +1 -1
- package/esm5/pipes/calendar-sheet/utils.js +2 -2
- package/esm5/pipes/format-date/format-date.pipe.js +1 -1
- package/esm5/types/brightness.js +1 -1
- package/esm5/types/decimal-symbol.js +1 -1
- package/esm5/types/decimal.js +1 -1
- package/esm5/types/dialog-size.js +1 -1
- package/esm5/types/direction.js +1 -1
- package/esm5/types/dropdown-width.js +1 -1
- package/esm5/types/marker-handler.js +1 -1
- package/esm5/types/option-role.js +1 -1
- package/esm5/types/orientation.js +1 -1
- package/esm5/types/size.js +1 -1
- package/esm5/utils/dom/get-safe-area-size.js +1 -1
- package/esm5/utils/dom/process-icon.js +2 -4
- package/esm5/utils/mask/create-number-mask.js +2 -2
- package/esm5/utils/polyfills/inner-html.js +1 -1
- package/fesm2015/taiga-ui-core-abstract.js +6 -2
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-alert.js +9 -9
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +14 -14
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +36 -37
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +14 -14
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dropdown-box.js +38 -38
- package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +4 -4
- package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +12 -12
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-group.js +18 -18
- package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-label.js +5 -5
- package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +11 -11
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +2 -2
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +8 -8
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -3
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +51 -51
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +4 -4
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +26 -26
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +8 -8
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +15 -15
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-color.js +6 -6
- package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-described-by.js +4 -4
- package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +9 -9
- package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint-controller.js +6 -6
- package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +5 -5
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-manual-hint.js +3 -3
- package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
- package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js +4 -4
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
- package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +33 -33
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
- package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +1 -3
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-polyfills.js +2 -2
- package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
- package/fesm5/taiga-ui-core-abstract.js +3 -1
- package/fesm5/taiga-ui-core-abstract.js.map +1 -1
- package/fesm5/taiga-ui-core-components-alert.js +9 -9
- package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm5/taiga-ui-core-components-button.js +14 -14
- package/fesm5/taiga-ui-core-components-button.js.map +1 -1
- package/fesm5/taiga-ui-core-components-calendar.js +1 -1
- package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm5/taiga-ui-core-components-data-list.js +37 -38
- package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm5/taiga-ui-core-components-dialog.js +14 -14
- package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm5/taiga-ui-core-components-dropdown-box.js +38 -38
- package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
- package/fesm5/taiga-ui-core-components-error.js +4 -4
- package/fesm5/taiga-ui-core-components-error.js.map +1 -1
- package/fesm5/taiga-ui-core-components-expand.js +12 -12
- package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm5/taiga-ui-core-components-group.js +18 -18
- package/fesm5/taiga-ui-core-components-group.js.map +1 -1
- package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
- package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm5/taiga-ui-core-components-label.js +5 -5
- package/fesm5/taiga-ui-core-components-label.js.map +1 -1
- package/fesm5/taiga-ui-core-components-link.js +11 -11
- package/fesm5/taiga-ui-core-components-link.js.map +1 -1
- package/fesm5/taiga-ui-core-components-loader.js +2 -2
- package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm5/taiga-ui-core-components-notification.js +8 -8
- package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
- package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -3
- package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
- package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
- package/fesm5/taiga-ui-core-components-primitive-textfield.js +51 -51
- package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
- package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
- package/fesm5/taiga-ui-core-components-root.js +4 -4
- package/fesm5/taiga-ui-core-components-root.js.map +1 -1
- package/fesm5/taiga-ui-core-components-scroll-controls.js +26 -26
- package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm5/taiga-ui-core-components-scrollbar.js +8 -8
- package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm5/taiga-ui-core-components-svg.js +15 -15
- package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
- package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm5/taiga-ui-core-components-tooltip.js +7 -7
- package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-color.js +6 -6
- package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-described-by.js +4 -4
- package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-dropdown-controller.js +9 -9
- package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
- package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-hint-controller.js +6 -6
- package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-hint.js +5 -5
- package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-manual-hint.js +3 -3
- package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
- package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-mode.js +2 -2
- package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-pointer-hint.js +4 -4
- package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
- package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
- package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-textfield-controller.js +33 -33
- package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
- package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
- package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
- package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
- package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
- package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
- package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
- package/fesm5/taiga-ui-core-pipes-format-date.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-dom.js +1 -3
- package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-mask.js +1 -1
- package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
- package/interfaces/alert-options.d.ts +1 -1
- package/interfaces/dropdown-directive.d.ts +2 -2
- package/interfaces/hint.d.ts +1 -1
- package/interfaces/notification-options.d.ts +1 -1
- package/interfaces/number-format-settings.d.ts +1 -2
- package/mask/text-mask-list.d.ts +1 -1
- package/mask/text-mask-pipe-handler.d.ts +1 -1
- package/package.json +4 -4
- package/pipes/format-date/format-date.pipe.d.ts +1 -1
- package/tokens/dropdown-directive.d.ts +1 -1
- package/types/brightness.d.ts +1 -1
- package/types/decimal-symbol.d.ts +1 -1
- package/types/decimal.d.ts +1 -1
- package/types/dialog-size.d.ts +1 -1
- package/types/direction.d.ts +2 -2
- package/types/dropdown-width.d.ts +1 -1
- package/types/marker-handler.d.ts +1 -1
- package/types/option-role.d.ts +1 -1
- package/types/orientation.d.ts +1 -1
- package/types/size.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-hint-controller.js","sources":["ng://@taiga-ui/core/directives/hint-controller/hint-controller.token.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.directive.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.module.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.provider.ts","ng://@taiga-ui/core/directives/hint-controller/taiga-ui-core-directives-hint-controller.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {TUI_HINT_OPTIONS} from '@taiga-ui/core/directives/hint';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\nexport const TUI_HINT_CONTROLLER = new InjectionToken<TuiHintControllerDirective>(\n `Controls configuration of hints`,\n {\n factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),\n },\n);\n","import {Directive, forwardRef, Inject, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\n// TODO: v2.0 use in Charts\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-hint-controller.js","sources":["ng://@taiga-ui/core/directives/hint-controller/hint-controller.token.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.directive.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.module.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.provider.ts","ng://@taiga-ui/core/directives/hint-controller/taiga-ui-core-directives-hint-controller.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {TUI_HINT_OPTIONS} from '@taiga-ui/core/directives/hint';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\nexport const TUI_HINT_CONTROLLER = new InjectionToken<TuiHintControllerDirective>(\n `Controls configuration of hints`,\n {\n factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),\n },\n);\n","import {Directive, forwardRef, Inject, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\n// TODO: v2.0 use in Charts\n@Directive({\n selector: '[tuiHintContent]',\n providers: [\n {\n provide: TUI_HINT_CONTROLLER,\n useExisting: forwardRef(() => TuiHintControllerDirective),\n },\n ],\n})\nexport class TuiHintControllerDirective extends TuiController {\n // TODO: 3.0 Remove null\n @Input('tuiHintContent')\n @tuiDefaultProp()\n content: PolymorpheusContent | null = null;\n\n @Input('tuiHintDirection')\n @tuiDefaultProp()\n direction: TuiHintOptions['direction'] = this.options.direction;\n\n @Input('tuiHintMode')\n @tuiDefaultProp()\n mode: TuiHintOptions['mode'] = this.options.mode;\n\n @Input('tuiHintShowDelay')\n @tuiDefaultProp()\n showDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input('tuiHintHideDelay')\n @tuiDefaultProp()\n hideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n constructor(@Inject(TUI_HINT_OPTIONS) private readonly options: TuiHintOptions) {\n super();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\n@NgModule({\n declarations: [TuiHintControllerDirective],\n exports: [TuiHintControllerDirective],\n})\nexport class TuiHintControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\nexport const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken(`watched hint controller`);\n// TODO: 3.0 remove in ivy compilation\nexport const HINT_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const HINT_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_HINT_WATCHED_CONTROLLER,\n deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: HINT_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAKa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,0BAA0B,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;CAC1E;;;ACFL;IAUa,0BAA0B,kCAAvC,MAAa,0BAA2B,SAAQ,aAAa;IAsBzD,YAAuD,OAAuB;QAC1E,KAAK,EAAE,CAAC;QAD2C,YAAO,GAAP,OAAO,CAAgB;;QAlB9E,YAAO,GAA+B,IAAI,CAAC;QAI3C,cAAS,GAAgC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAIhE,SAAI,GAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAIjD,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBA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});
|
|
21
21
|
|
|
22
|
-
const HINT_HOVERED_CLASS =
|
|
22
|
+
const HINT_HOVERED_CLASS = '_hint_hovered';
|
|
23
23
|
let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
|
|
24
24
|
constructor(renderer, elementRef, hintService, destroy$, obscured$, hoveredService, activeZone, options) {
|
|
25
25
|
super(elementRef, hintService, activeZone, options);
|
|
@@ -34,7 +34,7 @@ let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
|
|
|
34
34
|
.pipe(map(([directiveHovered, componentHovered]) => directiveHovered || componentHovered), switchMap(visible => {
|
|
35
35
|
this.toggleClass(visible);
|
|
36
36
|
return of(visible).pipe(delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay));
|
|
37
|
-
}), switchMap(visible => visible && this.mode !==
|
|
37
|
+
}), switchMap(visible => visible && this.mode !== 'overflow'
|
|
38
38
|
? obscured$.pipe(map(obscured => !obscured), take(2))
|
|
39
39
|
: of(visible)), distinctUntilChanged(), takeUntil(destroy$))
|
|
40
40
|
.subscribe(visible => {
|
|
@@ -51,7 +51,7 @@ let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
|
|
|
51
51
|
set tuiHint(value) {
|
|
52
52
|
if (!value) {
|
|
53
53
|
this.hideTooltip();
|
|
54
|
-
this.content =
|
|
54
|
+
this.content = '';
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
this.content = value;
|
|
@@ -69,7 +69,7 @@ let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
|
|
|
69
69
|
this.hintService.unregister(this);
|
|
70
70
|
}
|
|
71
71
|
showTooltip() {
|
|
72
|
-
if (this.content ===
|
|
72
|
+
if (this.content === '') {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
this.toggleClass(true);
|
|
@@ -119,7 +119,7 @@ __decorate([
|
|
|
119
119
|
], TuiHintDirective.prototype, "tuiHint", null);
|
|
120
120
|
TuiHintDirective = __decorate([
|
|
121
121
|
Directive({
|
|
122
|
-
selector:
|
|
122
|
+
selector: '[tuiHint]:not(ng-container)',
|
|
123
123
|
providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],
|
|
124
124
|
}),
|
|
125
125
|
__param(0, Inject(Renderer2)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint-options.ts","ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n readonly tooltipIcon: PolymorpheusContent;\n}\n\n// TODO: 3.0 remove in ivy compilation\nexport const TUI_TOOLTIP_ICON = `tuiIconTooltipLarge`;\n\n/** Default values for hint options */\nexport const TUI_HINT_DEFAULT_OPTIONS: TuiHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 500,\n tuiHintHideDelay: 200,\n tooltipIcon: TUI_TOOLTIP_ICON,\n};\n\nexport const TUI_HINT_OPTIONS = new InjectionToken<TuiHintOptions>(\n `Default parameters for hint directive`,\n {\n factory: () => TUI_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiHintOptionsProvider: (\n options: Partial<TuiHintOptions>,\n) => ValueProvider = (options: Partial<TuiHintOptions>) => ({\n provide: TUI_HINT_OPTIONS,\n useValue: {...TUI_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from './hint-options';\n\nexport const HINT_HOVERED_CLASS = `_hint_hovered`;\n\n@Directive({\n selector: `[tuiHint]:not(ng-container)`,\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: 3.0 Remove null\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = ``;\n\n return;\n }\n\n this.content = value;\n }\n\n readonly componentHovered$ = new Subject<boolean>();\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TUI_HINT_OPTIONS) protected readonly options: TuiHintOptions,\n ) {\n super(elementRef, hintService, activeZone, options);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== `overflow`\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy(): void {\n this.hintService.unregister(this);\n }\n\n protected showTooltip(): void {\n if (this.content === ``) {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip(): void {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean): void {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintDirective} from './hint.directive';\n\n@NgModule({\n declarations: [TuiHintDirective],\n exports: [TuiHintDirective],\n})\nexport class TuiHintModule {}\n","/**\n * Generated bundle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;AA5BQ,gBAAgB;IAJ5B,SAAS,CAAC;QACP,QAAQ,EAAE,6BAA6B;QACvC,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;KAC9E,CAAC;IAkCO,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC1B,WAAA,IAAI,EAAE,CAAA;IAEN,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GA7CpB,gBAAgB,CA6H5B;;IC/JY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint-options.ts","ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n readonly tooltipIcon: PolymorpheusContent;\n}\n\n// TODO: 3.0 remove in ivy compilation\nexport const TUI_TOOLTIP_ICON = `tuiIconTooltipLarge`;\n\n/** Default values for hint options */\nexport const TUI_HINT_DEFAULT_OPTIONS: TuiHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 500,\n tuiHintHideDelay: 200,\n tooltipIcon: TUI_TOOLTIP_ICON,\n};\n\nexport const TUI_HINT_OPTIONS = new InjectionToken<TuiHintOptions>(\n `Default parameters for hint directive`,\n {\n factory: () => TUI_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiHintOptionsProvider: (\n options: Partial<TuiHintOptions>,\n) => ValueProvider = (options: Partial<TuiHintOptions>) => ({\n provide: TUI_HINT_OPTIONS,\n useValue: {...TUI_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from './hint-options';\n\nexport const HINT_HOVERED_CLASS = '_hint_hovered';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container)',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: 3.0 Remove null\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n readonly componentHovered$ = new Subject<boolean>();\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TUI_HINT_OPTIONS) protected readonly options: TuiHintOptions,\n ) {\n super(elementRef, hintService, activeZone, options);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== 'overflow'\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy(): void {\n this.hintService.unregister(this);\n }\n\n protected showTooltip(): void {\n if (this.content === '') {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip(): void {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean): void {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintDirective} from './hint.directive';\n\n@NgModule({\n declarations: [TuiHintDirective],\n exports: [TuiHintDirective],\n})\nexport class TuiHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAaA;MACa,gBAAgB,GAAG,sBAAsB;AAEtD;MACa,wBAAwB,mCAC9B,iCAAiC,KACpC,gBAAgB,EAAE,GAAG,EACrB,gBAAgB,EAAE,GAAG,EACrB,WAAW,EAAE,gBAAgB,IAC/B;MAEW,gBAAgB,GAAG,IAAI,cAAc,CAC9C,uCAAuC,EACvC;IACI,OAAO,EAAE,MAAM,wBAAwB;CAC1C,EACH;MAEW,sBAAsB,GAEd,CAAC,OAAgC,MAAM;IACxD,OAAO,EAAE,gBAAgB;IACzB,QAAQ,kCAAM,wBAAwB,GAAK,OAAO,CAAC;CACtD;;MCAY,kBAAkB,GAAG,gBAAgB;IAMrC,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,eAAe;IAgCjD,YACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B,SAA6B,EACF,cAAiC,EAG5D,UAAyC,EACI,OAAuB;QAEpE,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AAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
|
|
@@ -18,7 +18,7 @@ let TuiManualHintDirective = class TuiManualHintDirective extends AbstractTuiHin
|
|
|
18
18
|
constructor(elementRef, hintService, activeZone, options) {
|
|
19
19
|
super(elementRef, hintService, activeZone, options);
|
|
20
20
|
this.options = options;
|
|
21
|
-
this.content =
|
|
21
|
+
this.content = '';
|
|
22
22
|
}
|
|
23
23
|
set tuiManualHintShow(show) {
|
|
24
24
|
if (show) {
|
|
@@ -39,7 +39,7 @@ TuiManualHintDirective.ctorParameters = () => [
|
|
|
39
39
|
{ type: undefined, decorators: [{ type: Inject, args: [TUI_MANUAL_HINT_OPTIONS,] }] }
|
|
40
40
|
];
|
|
41
41
|
__decorate([
|
|
42
|
-
Input(
|
|
42
|
+
Input('tuiManualHint'),
|
|
43
43
|
tuiDefaultProp()
|
|
44
44
|
], TuiManualHintDirective.prototype, "content", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
], TuiManualHintDirective.prototype, "tuiManualHintShow", null);
|
|
49
49
|
TuiManualHintDirective = __decorate([
|
|
50
50
|
Directive({
|
|
51
|
-
selector:
|
|
51
|
+
selector: '[tuiManualHint]:not(ng-container)',
|
|
52
52
|
}),
|
|
53
53
|
__param(0, Inject(ElementRef)),
|
|
54
54
|
__param(1, Inject(TuiHintService)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint-options.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.directive.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.module.ts","ng://@taiga-ui/core/directives/manual-hint/taiga-ui-core-directives-manual-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport type TuiManualHintOptions = TuiAbstractHintOptions;\n\n/** Default values for manual hint options */\nexport const TUI_MANUAL_HINT_DEFAULT_OPTIONS: TuiManualHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n};\n\nexport const TUI_MANUAL_HINT_OPTIONS = new InjectionToken<TuiManualHintOptions>(\n `Default parameters for manual hint directive`,\n {\n factory: () => TUI_MANUAL_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiManualHintOptionsProvider: (\n options: Partial<TuiManualHintOptions>,\n) => ValueProvider = (options: Partial<TuiManualHintOptions>) => ({\n provide: TUI_MANUAL_HINT_OPTIONS,\n useValue: {...TUI_MANUAL_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, ElementRef, Inject, Input, Optional} from '@angular/core';\nimport {TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_MANUAL_HINT_OPTIONS, TuiManualHintOptions} from './manual-hint-options';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint-options.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.directive.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.module.ts","ng://@taiga-ui/core/directives/manual-hint/taiga-ui-core-directives-manual-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport type TuiManualHintOptions = TuiAbstractHintOptions;\n\n/** Default values for manual hint options */\nexport const TUI_MANUAL_HINT_DEFAULT_OPTIONS: TuiManualHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n};\n\nexport const TUI_MANUAL_HINT_OPTIONS = new InjectionToken<TuiManualHintOptions>(\n `Default parameters for manual hint directive`,\n {\n factory: () => TUI_MANUAL_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiManualHintOptionsProvider: (\n options: Partial<TuiManualHintOptions>,\n) => ValueProvider = (options: Partial<TuiManualHintOptions>) => ({\n provide: TUI_MANUAL_HINT_OPTIONS,\n useValue: {...TUI_MANUAL_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, ElementRef, Inject, Input, Optional} from '@angular/core';\nimport {TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_MANUAL_HINT_OPTIONS, TuiManualHintOptions} from './manual-hint-options';\n\n@Directive({\n selector: '[tuiManualHint]:not(ng-container)',\n})\nexport class TuiManualHintDirective extends AbstractTuiHint {\n @Input('tuiManualHint')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiRequiredSetter()\n set tuiManualHintShow(show: boolean) {\n if (show) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n }\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TUI_MANUAL_HINT_OPTIONS) protected readonly options: TuiManualHintOptions,\n ) {\n super(elementRef, hintService, activeZone, options);\n }\n\n getElementClientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiManualHintDirective} from './manual-hint.directive';\n\n@NgModule({\n declarations: [TuiManualHintDirective],\n exports: [TuiManualHintDirective],\n})\nexport class TuiManualHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAQA;MACa,+BAA+B,qBACrC,iCAAiC,EACtC;MAEW,uBAAuB,GAAG,IAAI,cAAc,CACrD,8CAA8C,EAC9C;IACI,OAAO,EAAE,MAAM,+BAA+B;CACjD,EACH;MAEW,4BAA4B,GAEpB,CAAC,OAAsC,MAAM;IAC9D,OAAO,EAAE,uBAAuB;IAChC,QAAQ,kCAAM,+BAA+B,GAAK,OAAO,CAAC;CAC7D;;ICdY,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,eAAe;IAevD,YACwB,UAAmC,EAC/B,WAA2B,EAGnD,UAAyC,EACW,OAA6B;QAEjF,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAFA,YAAO,GAAP,OAAO,CAAsB;QAlBrF,YAAO,GAAwB,EAAE,CAAC;KAqBjC;IAjBD,IAAI,iBAAiB,CAAC,IAAa;QAC/B,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;aAAM;YACH,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;KACJ;IAaD,oBAAoB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;EACJ;;YAbuC,UAAU,uBAAzC,MAAM,SAAC,UAAU;YACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;YAGV,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;4CAE7B,MAAM,SAAC,uBAAuB;;AAlBnC;IAFC,KAAK,CAAC,eAAe,CAAC;IACtB,cAAc,EAAE;uDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+DAOnB;AAbQ,sBAAsB;IAHlC,SAAS,CAAC;QACP,QAAQ,EAAE,mCAAmC;KAChD,CAAC;IAiBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;GArB3B,sBAAsB,CA6BlC;;IChCY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function fallbackAccessorFactory(\n accessor: readonly ControlValueAccessor[] | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function fallbackAccessorFactory(\n accessor: readonly ControlValueAccessor[] | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector: 'input[tuiMaskAccessor]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n deps: [[new Optional(), TUI_VALUE_ACCESSOR], DefaultValueAccessor],\n useFactory: fallbackAccessorFactory,\n multi: true,\n },\n ],\n})\nexport class TuiMaskAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMaskAccessorDirective} from './mask-accessor.directive';\n\n/**\n * @internal\n */\n@NgModule({\n declarations: [TuiMaskAccessorDirective],\n exports: [TuiMaskAccessorDirective],\n})\nexport class TuiMaskAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAQA;SACgB,uBAAuB,CACnC,QAAgD,EAChD,QAA8B;IAE9B,OAAO,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC7C,CAAC;IAaY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAXpC,SAAS,CAAC;QACP,QAAQ,EAAE,wBAAwB;QAClC,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,iBAAiB;gBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;gBAClE,UAAU,EAAE,uBAAuB;gBACnC,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;GACW,wBAAwB,CAAG;;ACvBxC;;;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACXrC;;;;;;"}
|
|
@@ -9,11 +9,11 @@ let TuiModeDirective = class TuiModeDirective extends TuiController {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
__decorate([
|
|
12
|
-
Input(
|
|
12
|
+
Input('tuiMode')
|
|
13
13
|
], TuiModeDirective.prototype, "mode", void 0);
|
|
14
14
|
TuiModeDirective = __decorate([
|
|
15
15
|
Directive({
|
|
16
|
-
selector:
|
|
16
|
+
selector: '[tuiMode]',
|
|
17
17
|
})
|
|
18
18
|
], TuiModeDirective);
|
|
19
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-mode.js","sources":["ng://@taiga-ui/core/directives/mode/mode.directive.ts","ng://@taiga-ui/core/directives/mode/mode.module.ts","ng://@taiga-ui/core/directives/mode/taiga-ui-core-directives-mode.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiBrightness} from '@taiga-ui/core/types';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-mode.js","sources":["ng://@taiga-ui/core/directives/mode/mode.directive.ts","ng://@taiga-ui/core/directives/mode/mode.module.ts","ng://@taiga-ui/core/directives/mode/taiga-ui-core-directives-mode.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiBrightness} from '@taiga-ui/core/types';\n\n@Directive({\n selector: '[tuiMode]',\n})\nexport class TuiModeDirective extends TuiController {\n @Input('tuiMode')\n mode: TuiBrightness | null = null;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiModeDirective} from './mode.directive';\n\n@NgModule({\n declarations: [TuiModeDirective],\n exports: [TuiModeDirective],\n})\nexport class TuiModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,aAAa;IAAnD;;QAEI,SAAI,GAAyB,IAAI,CAAC;KACrC;EAAA;AADG;IADC,KAAK,CAAC,SAAS,CAAC;8CACiB;AAFzB,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;KACxB,CAAC;GACW,gBAAgB,CAG5B;;ICFY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
|
|
@@ -24,7 +24,7 @@ let TuiPointerHintDirective = class TuiPointerHintDirective extends AbstractTuiH
|
|
|
24
24
|
this.currentMouseRect = this.mousePositionToClientRect();
|
|
25
25
|
this.tuiHintShowDelay = this.options.tuiHintShowDelay;
|
|
26
26
|
this.tuiHintHideDelay = this.options.tuiHintHideDelay;
|
|
27
|
-
this.content =
|
|
27
|
+
this.content = '';
|
|
28
28
|
const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(filter(() => !!this.content), startWith(false), distinctUntilChanged());
|
|
29
29
|
hint$
|
|
30
30
|
.pipe(switchMap(visible => of(visible).pipe(delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay))), takeUntil(destroy$))
|
|
@@ -47,7 +47,7 @@ let TuiPointerHintDirective = class TuiPointerHintDirective extends AbstractTuiH
|
|
|
47
47
|
set tuiPointerHint(value) {
|
|
48
48
|
if (!value) {
|
|
49
49
|
this.hideTooltip();
|
|
50
|
-
this.content =
|
|
50
|
+
this.content = '';
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
this.content = value;
|
|
@@ -56,7 +56,7 @@ let TuiPointerHintDirective = class TuiPointerHintDirective extends AbstractTuiH
|
|
|
56
56
|
return this.currentMouseRect;
|
|
57
57
|
}
|
|
58
58
|
initMouseMoveSubscription() {
|
|
59
|
-
const mouseMove$ = typedFromEvent(this.elementRef.nativeElement,
|
|
59
|
+
const mouseMove$ = typedFromEvent(this.elementRef.nativeElement, 'mousemove');
|
|
60
60
|
mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({ clientX, clientY }) => {
|
|
61
61
|
this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);
|
|
62
62
|
});
|
|
@@ -93,7 +93,7 @@ __decorate([
|
|
|
93
93
|
], TuiPointerHintDirective.prototype, "tuiPointerHint", null);
|
|
94
94
|
TuiPointerHintDirective = __decorate([
|
|
95
95
|
Directive({
|
|
96
|
-
selector:
|
|
96
|
+
selector: '[tuiPointerHint]:not(ng-container)',
|
|
97
97
|
providers: [TuiDestroyService],
|
|
98
98
|
}),
|
|
99
99
|
__param(0, Inject(ElementRef)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint-options.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport interface TuiPointerHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n}\n\n/** Default values for pointer hint options */\nexport const TUI_POINTER_HINT_DEFAULT_OPTIONS: TuiPointerHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 0,\n tuiHintHideDelay: 0,\n};\n\nexport const TUI_POINTER_HINT_OPTIONS = new InjectionToken<TuiPointerHintOptions>(\n `Default parameters for pointer hint directive`,\n {\n factory: () => TUI_POINTER_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiPointerHintOptionsProvider: (\n options: Partial<TuiPointerHintOptions>,\n) => ValueProvider = (options: Partial<TuiPointerHintOptions>) => ({\n provide: TUI_POINTER_HINT_OPTIONS,\n useValue: {...TUI_POINTER_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\nimport {TUI_POINTER_HINT_OPTIONS, TuiPointerHintOptions} from './pointer-hint-options';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint-options.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport interface TuiPointerHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n}\n\n/** Default values for pointer hint options */\nexport const TUI_POINTER_HINT_DEFAULT_OPTIONS: TuiPointerHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 0,\n tuiHintHideDelay: 0,\n};\n\nexport const TUI_POINTER_HINT_OPTIONS = new InjectionToken<TuiPointerHintOptions>(\n `Default parameters for pointer hint directive`,\n {\n factory: () => TUI_POINTER_HINT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiPointerHintOptionsProvider: (\n options: Partial<TuiPointerHintOptions>,\n) => ValueProvider = (options: Partial<TuiPointerHintOptions>) => ({\n provide: TUI_POINTER_HINT_OPTIONS,\n useValue: {...TUI_POINTER_HINT_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\nimport {TUI_POINTER_HINT_OPTIONS, TuiPointerHintOptions} from './pointer-hint-options';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n private currentMouseRect = this.mousePositionToClientRect();\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay: TuiPointerHintOptions['tuiHintShowDelay'] =\n this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay: TuiPointerHintOptions['tuiHintHideDelay'] =\n this.options.tuiHintHideDelay;\n\n // TODO: 3.0 Remove null\n @Input()\n @tuiRequiredSetter()\n set tuiPointerHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n content: PolymorpheusContent = '';\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Inject(TUI_POINTER_HINT_OPTIONS)\n protected readonly options: TuiPointerHintOptions,\n ) {\n super(elementRef, hintService, null, options);\n\n const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(\n filter(() => !!this.content),\n startWith(false),\n distinctUntilChanged(),\n );\n\n hint$\n .pipe(\n switchMap(visible =>\n of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe({\n next: visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n },\n complete: () => {\n this.hideTooltip();\n },\n });\n\n this.initMouseMoveSubscription();\n }\n\n getElementClientRect(): ClientRect {\n return this.currentMouseRect;\n }\n\n private initMouseMoveSubscription(): void {\n const mouseMove$: Observable<MouseEvent> = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousemove',\n );\n\n mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({clientX, clientY}) => {\n this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);\n });\n }\n\n private mousePositionToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPointerHintDirective} from './pointer-hint.directive';\n\n@NgModule({\n declarations: [TuiPointerHintDirective],\n exports: [TuiPointerHintDirective],\n})\nexport class TuiPointerHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;MACa,gCAAgC,mCACtC,iCAAiC,KACpC,gB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C,iBAAiB;4CACxB,MAAM,SAAC,wBAAwB;;AA9BpC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iEAEiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iEAEiB;AAKlC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;6DAUnB;AAzBQ,uBAAuB;IAJnC,SAAS,CAAC;QACP,QAAQ,EAAE,oCAAoC;QAC9C,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IA+BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;GAnC5B,uBAAuB,CAgGnC;;ICnHY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
|
|
@@ -43,7 +43,7 @@ __decorate([
|
|
|
43
43
|
], TuiScrollIntoViewDirective.prototype, "tuiScrollIntoView", null);
|
|
44
44
|
TuiScrollIntoViewDirective = __decorate([
|
|
45
45
|
Directive({
|
|
46
|
-
selector:
|
|
46
|
+
selector: '[tuiScrollIntoView]',
|
|
47
47
|
providers: [TuiDestroyService],
|
|
48
48
|
}),
|
|
49
49
|
__param(0, Inject(ElementRef)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-scroll-into-view.js","sources":["ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.directive.ts","ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.module.ts","ng://@taiga-ui/core/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiCustomEvent, TuiDestroyService, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW} from '@taiga-ui/core/constants';\nimport {Observable, timer} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Directive scrolls element into view inside tui-scrollbar\n */\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-scroll-into-view.js","sources":["ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.directive.ts","ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.module.ts","ng://@taiga-ui/core/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiCustomEvent, TuiDestroyService, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW} from '@taiga-ui/core/constants';\nimport {Observable, timer} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Directive scrolls element into view inside tui-scrollbar\n */\n// @dynamic\n@Directive({\n selector: '[tuiScrollIntoView]',\n providers: [TuiDestroyService],\n})\nexport class TuiScrollIntoViewDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiScrollIntoView(scroll: boolean) {\n if (!scroll) {\n return;\n }\n\n // Timeout is necessary in order to give element render cycle to get into its final spot\n // (for example if it is inside dropdown box which has to be positioned first)\n timer(0)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.elementRef.nativeElement.dispatchEvent(\n tuiCustomEvent<Element>(\n TUI_SCROLL_INTO_VIEW,\n {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n },\n this.documentRef,\n ),\n );\n });\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) private readonly destroy$: Observable<void>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiScrollIntoViewDirective} from './scroll-into-view.directive';\n\n@NgModule({\n declarations: [TuiScrollIntoViewDirective],\n exports: [TuiScrollIntoViewDirective],\n})\nexport class TuiScrollIntoViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAOA;;;AAGA;IAKa,0BAA0B,GAAvC,MAAa,0BAA0B;IA0BnC,YACyC,UAA+B,EACjC,WAAqB,EACZ,QAA0B;QAFjC,eAAU,GAAV,UAAU,CAAqB;QACjC,gBAAW,GAAX,WAAW,CAAU;QACZ,aAAQ,GAAR,QAAQ,CAAkB;KACtE;IA3BJ,IAAI,iBAAiB,CAAC,MAAe;QACjC,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;;;QAID,KAAK,CAAC,CAAC,CAAC;aACH,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC9B,SAAS,CAAC;YACP,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,cAAc,CACV,oBAAoB,EACpB;gBACI,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;aACxC,EACD,IAAI,CAAC,WAAW,CACnB,CACJ,CAAC;SACL,CAAC,CAAC;KACV;EAOJ;;YAJwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;YAC8B,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;YACsC,UAAU,uBAA/D,MAAM,SAAC,iBAAiB;;AA1B7B;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;mEAsBnB;AAxBQ,0BAA0B;IAJtC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IA4BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA7BrB,0BAA0B,CA+BtC;;ICtCY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;QAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;ACRvC;;;;;;"}
|
|
@@ -9,11 +9,11 @@ let TuiTableModeDirective = class TuiTableModeDirective {
|
|
|
9
9
|
};
|
|
10
10
|
TuiTableModeDirective = __decorate([
|
|
11
11
|
Directive({
|
|
12
|
-
selector:
|
|
12
|
+
selector: '[tuiTableMode]',
|
|
13
13
|
providers: [
|
|
14
14
|
{
|
|
15
15
|
provide: TUI_TEXTFIELD_APPEARANCE,
|
|
16
|
-
useValue:
|
|
16
|
+
useValue: 'table',
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
19
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-table-mode.js","sources":["ng://@taiga-ui/core/directives/table-mode/table-mode.directive.ts","ng://@taiga-ui/core/directives/table-mode/table-mode.module.ts","ng://@taiga-ui/core/directives/table-mode/taiga-ui-core-directives-table-mode.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\n\n/**\n * @deprecated use @taiga-ui/addon-table\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-table-mode.js","sources":["ng://@taiga-ui/core/directives/table-mode/table-mode.directive.ts","ng://@taiga-ui/core/directives/table-mode/table-mode.module.ts","ng://@taiga-ui/core/directives/table-mode/taiga-ui-core-directives-table-mode.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\n\n/**\n * @deprecated use @taiga-ui/addon-table\n */\n@Directive({\n selector: '[tuiTableMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_APPEARANCE,\n useValue: 'table', // TuiAppearance.Table\n },\n ],\n})\nexport class TuiTableModeDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTableModeDirective} from './table-mode.directive';\n\n/** @deprecated */\n@NgModule({\n declarations: [TuiTableModeDirective],\n exports: [TuiTableModeDirective],\n})\nexport class TuiTableModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;IAYa,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,OAAO;aACpB;SACJ;KACJ,CAAC;GACW,qBAAqB,CAAG;;ACXrC;IAKa,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACTlC;;;;;;"}
|
|
@@ -47,21 +47,21 @@ class TuiTextfieldController {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
var TuiTextfieldAutocompleteDirective_1;
|
|
50
|
-
const TUI_TEXTFIELD_AUTOCOMPLETE = new InjectionToken(
|
|
50
|
+
const TUI_TEXTFIELD_AUTOCOMPLETE = new InjectionToken('tuiTextfieldAutocomplete', {
|
|
51
51
|
factory: autocompleteDirectiveFactory,
|
|
52
52
|
});
|
|
53
53
|
let TuiTextfieldAutocompleteDirective = TuiTextfieldAutocompleteDirective_1 = class TuiTextfieldAutocompleteDirective extends TuiController {
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
|
-
this.autocomplete =
|
|
56
|
+
this.autocomplete = '';
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
__decorate([
|
|
60
|
-
Input(
|
|
60
|
+
Input('tuiTextfieldAutocomplete')
|
|
61
61
|
], TuiTextfieldAutocompleteDirective.prototype, "autocomplete", void 0);
|
|
62
62
|
TuiTextfieldAutocompleteDirective = TuiTextfieldAutocompleteDirective_1 = __decorate([
|
|
63
63
|
Directive({
|
|
64
|
-
selector:
|
|
64
|
+
selector: '[tuiTextfieldAutocomplete]',
|
|
65
65
|
providers: [
|
|
66
66
|
{
|
|
67
67
|
provide: TUI_TEXTFIELD_AUTOCOMPLETE,
|
|
@@ -76,7 +76,7 @@ function autocompleteDirectiveFactory() {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
var TuiTextfieldCleanerDirective_1;
|
|
79
|
-
const TUI_TEXTFIELD_CLEANER = new InjectionToken(
|
|
79
|
+
const TUI_TEXTFIELD_CLEANER = new InjectionToken('tuiTextfieldCleaner', {
|
|
80
80
|
factory: cleanerDirectiveFactory,
|
|
81
81
|
});
|
|
82
82
|
let TuiTextfieldCleanerDirective = TuiTextfieldCleanerDirective_1 = class TuiTextfieldCleanerDirective extends TuiController {
|
|
@@ -86,11 +86,11 @@ let TuiTextfieldCleanerDirective = TuiTextfieldCleanerDirective_1 = class TuiTex
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
__decorate([
|
|
89
|
-
Input(
|
|
89
|
+
Input('tuiTextfieldCleaner')
|
|
90
90
|
], TuiTextfieldCleanerDirective.prototype, "cleaner", void 0);
|
|
91
91
|
TuiTextfieldCleanerDirective = TuiTextfieldCleanerDirective_1 = __decorate([
|
|
92
92
|
Directive({
|
|
93
|
-
selector:
|
|
93
|
+
selector: '[tuiTextfieldCleaner]',
|
|
94
94
|
providers: [
|
|
95
95
|
{
|
|
96
96
|
provide: TUI_TEXTFIELD_CLEANER,
|
|
@@ -105,22 +105,22 @@ function cleanerDirectiveFactory() {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
var TuiTextfieldCustomContentDirective_1;
|
|
108
|
-
const TUI_TEXTFIELD_CUSTOM_CONTENT = new InjectionToken(
|
|
108
|
+
const TUI_TEXTFIELD_CUSTOM_CONTENT = new InjectionToken('tuiTextfieldCustomContent', {
|
|
109
109
|
factory: customContentDirectiveFactory,
|
|
110
110
|
});
|
|
111
111
|
let TuiTextfieldCustomContentDirective = TuiTextfieldCustomContentDirective_1 = class TuiTextfieldCustomContentDirective extends TuiController {
|
|
112
112
|
constructor() {
|
|
113
113
|
super(...arguments);
|
|
114
114
|
// TODO: 3.0 Remove null
|
|
115
|
-
this.customContent =
|
|
115
|
+
this.customContent = '';
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
__decorate([
|
|
119
|
-
Input(
|
|
119
|
+
Input('tuiTextfieldCustomContent')
|
|
120
120
|
], TuiTextfieldCustomContentDirective.prototype, "customContent", void 0);
|
|
121
121
|
TuiTextfieldCustomContentDirective = TuiTextfieldCustomContentDirective_1 = __decorate([
|
|
122
122
|
Directive({
|
|
123
|
-
selector:
|
|
123
|
+
selector: '[tuiTextfieldCustomContent]',
|
|
124
124
|
providers: [
|
|
125
125
|
{
|
|
126
126
|
provide: TUI_TEXTFIELD_CUSTOM_CONTENT,
|
|
@@ -135,21 +135,21 @@ function customContentDirectiveFactory() {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
var TuiTextfieldExampleTextDirective_1;
|
|
138
|
-
const TUI_TEXTFIELD_EXAMPLE_TEXT = new InjectionToken(
|
|
138
|
+
const TUI_TEXTFIELD_EXAMPLE_TEXT = new InjectionToken('tuiTextfieldExampleText', {
|
|
139
139
|
factory: exampleTextDirectiveFactory,
|
|
140
140
|
});
|
|
141
141
|
let TuiTextfieldExampleTextDirective = TuiTextfieldExampleTextDirective_1 = class TuiTextfieldExampleTextDirective extends TuiController {
|
|
142
142
|
constructor() {
|
|
143
143
|
super(...arguments);
|
|
144
|
-
this.exampleText =
|
|
144
|
+
this.exampleText = '';
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
__decorate([
|
|
148
|
-
Input(
|
|
148
|
+
Input('tuiTextfieldExampleText')
|
|
149
149
|
], TuiTextfieldExampleTextDirective.prototype, "exampleText", void 0);
|
|
150
150
|
TuiTextfieldExampleTextDirective = TuiTextfieldExampleTextDirective_1 = __decorate([
|
|
151
151
|
Directive({
|
|
152
|
-
selector:
|
|
152
|
+
selector: '[tuiTextfieldExampleText]',
|
|
153
153
|
providers: [
|
|
154
154
|
{
|
|
155
155
|
provide: TUI_TEXTFIELD_EXAMPLE_TEXT,
|
|
@@ -164,21 +164,21 @@ function exampleTextDirectiveFactory() {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
var TuiTextfieldInputModeDirective_1;
|
|
167
|
-
const TUI_TEXTFIELD_INPUT_MODE = new InjectionToken(
|
|
167
|
+
const TUI_TEXTFIELD_INPUT_MODE = new InjectionToken('tuiTextfieldInputMode', {
|
|
168
168
|
factory: inputModeDirectiveFactory,
|
|
169
169
|
});
|
|
170
170
|
let TuiTextfieldInputModeDirective = TuiTextfieldInputModeDirective_1 = class TuiTextfieldInputModeDirective extends TuiController {
|
|
171
171
|
constructor() {
|
|
172
172
|
super(...arguments);
|
|
173
|
-
this.inputMode =
|
|
173
|
+
this.inputMode = 'text';
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
__decorate([
|
|
177
|
-
Input(
|
|
177
|
+
Input('tuiTextfieldInputMode')
|
|
178
178
|
], TuiTextfieldInputModeDirective.prototype, "inputMode", void 0);
|
|
179
179
|
TuiTextfieldInputModeDirective = TuiTextfieldInputModeDirective_1 = __decorate([
|
|
180
180
|
Directive({
|
|
181
|
-
selector:
|
|
181
|
+
selector: '[tuiTextfieldInputMode]',
|
|
182
182
|
providers: [
|
|
183
183
|
{
|
|
184
184
|
provide: TUI_TEXTFIELD_INPUT_MODE,
|
|
@@ -193,7 +193,7 @@ function inputModeDirectiveFactory() {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
var TuiTextfieldLabelOutsideDirective_1;
|
|
196
|
-
const TUI_TEXTFIELD_LABEL_OUTSIDE = new InjectionToken(
|
|
196
|
+
const TUI_TEXTFIELD_LABEL_OUTSIDE = new InjectionToken('tuiTextfieldLabelOutside', {
|
|
197
197
|
factory: labelOutsideDirectiveFactory,
|
|
198
198
|
});
|
|
199
199
|
let TuiTextfieldLabelOutsideDirective = TuiTextfieldLabelOutsideDirective_1 = class TuiTextfieldLabelOutsideDirective extends TuiController {
|
|
@@ -203,11 +203,11 @@ let TuiTextfieldLabelOutsideDirective = TuiTextfieldLabelOutsideDirective_1 = cl
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
__decorate([
|
|
206
|
-
Input(
|
|
206
|
+
Input('tuiTextfieldLabelOutside')
|
|
207
207
|
], TuiTextfieldLabelOutsideDirective.prototype, "labelOutside", void 0);
|
|
208
208
|
TuiTextfieldLabelOutsideDirective = TuiTextfieldLabelOutsideDirective_1 = __decorate([
|
|
209
209
|
Directive({
|
|
210
|
-
selector:
|
|
210
|
+
selector: '[tuiTextfieldLabelOutside]',
|
|
211
211
|
providers: [
|
|
212
212
|
{
|
|
213
213
|
provide: TUI_TEXTFIELD_LABEL_OUTSIDE,
|
|
@@ -222,7 +222,7 @@ function labelOutsideDirectiveFactory() {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
var TuiTextfieldMaxLengthDirective_1;
|
|
225
|
-
const TUI_TEXTFIELD_MAX_LENGTH = new InjectionToken(
|
|
225
|
+
const TUI_TEXTFIELD_MAX_LENGTH = new InjectionToken('tuiTextfieldMaxLength', {
|
|
226
226
|
factory: maxLengthDirectiveFactory,
|
|
227
227
|
});
|
|
228
228
|
let TuiTextfieldMaxLengthDirective = TuiTextfieldMaxLengthDirective_1 = class TuiTextfieldMaxLengthDirective extends TuiController {
|
|
@@ -232,11 +232,11 @@ let TuiTextfieldMaxLengthDirective = TuiTextfieldMaxLengthDirective_1 = class Tu
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
__decorate([
|
|
235
|
-
Input(
|
|
235
|
+
Input('tuiTextfieldMaxLength')
|
|
236
236
|
], TuiTextfieldMaxLengthDirective.prototype, "maxLength", void 0);
|
|
237
237
|
TuiTextfieldMaxLengthDirective = TuiTextfieldMaxLengthDirective_1 = __decorate([
|
|
238
238
|
Directive({
|
|
239
|
-
selector:
|
|
239
|
+
selector: '[tuiTextfieldMaxLength]',
|
|
240
240
|
providers: [
|
|
241
241
|
{
|
|
242
242
|
provide: TUI_TEXTFIELD_MAX_LENGTH,
|
|
@@ -251,21 +251,21 @@ function maxLengthDirectiveFactory() {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
var TuiTextfieldSizeDirective_1;
|
|
254
|
-
const TUI_TEXTFIELD_SIZE = new InjectionToken(
|
|
254
|
+
const TUI_TEXTFIELD_SIZE = new InjectionToken('tuiTextfieldSize', {
|
|
255
255
|
factory: sizeDirectiveFactory,
|
|
256
256
|
});
|
|
257
257
|
let TuiTextfieldSizeDirective = TuiTextfieldSizeDirective_1 = class TuiTextfieldSizeDirective extends TuiController {
|
|
258
258
|
constructor() {
|
|
259
259
|
super(...arguments);
|
|
260
|
-
this.size =
|
|
260
|
+
this.size = 'l';
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
263
|
__decorate([
|
|
264
|
-
Input(
|
|
264
|
+
Input('tuiTextfieldSize')
|
|
265
265
|
], TuiTextfieldSizeDirective.prototype, "size", void 0);
|
|
266
266
|
TuiTextfieldSizeDirective = TuiTextfieldSizeDirective_1 = __decorate([
|
|
267
267
|
Directive({
|
|
268
|
-
selector:
|
|
268
|
+
selector: '[tuiTextfieldSize]',
|
|
269
269
|
providers: [
|
|
270
270
|
{
|
|
271
271
|
provide: TUI_TEXTFIELD_SIZE,
|
|
@@ -280,21 +280,21 @@ function sizeDirectiveFactory() {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
var TuiTextfieldTypeDirective_1;
|
|
283
|
-
const TUI_TEXTFIELD_TYPE = new InjectionToken(
|
|
283
|
+
const TUI_TEXTFIELD_TYPE = new InjectionToken('tuiTextfieldType', {
|
|
284
284
|
factory: typeDirectiveFactory,
|
|
285
285
|
});
|
|
286
286
|
let TuiTextfieldTypeDirective = TuiTextfieldTypeDirective_1 = class TuiTextfieldTypeDirective extends TuiController {
|
|
287
287
|
constructor() {
|
|
288
288
|
super(...arguments);
|
|
289
|
-
this.type =
|
|
289
|
+
this.type = 'text';
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
__decorate([
|
|
293
|
-
Input(
|
|
293
|
+
Input('tuiTextfieldType')
|
|
294
294
|
], TuiTextfieldTypeDirective.prototype, "type", void 0);
|
|
295
295
|
TuiTextfieldTypeDirective = TuiTextfieldTypeDirective_1 = __decorate([
|
|
296
296
|
Directive({
|
|
297
|
-
selector:
|
|
297
|
+
selector: '[tuiTextfieldType]',
|
|
298
298
|
providers: [
|
|
299
299
|
{
|
|
300
300
|
provide: TUI_TEXTFIELD_TYPE,
|