@taiga-ui/core 2.20.0 → 2.24.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/README.md +7 -3
- package/abstract/abstract-hint.d.ts +3 -1
- package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-core-abstract.umd.js +4 -2
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-abstract.umd.min.js +1 -1
- package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +21 -7
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.min.js +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 +6 -5
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
- package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +2 -2
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.min.js +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 +1 -1
- package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +1 -1
- package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +3 -2
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +11 -5
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.min.js +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 +2 -15
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +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 +1 -1
- 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 +1 -1
- package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +2 -2
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +138 -106
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +2 -2
- package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +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 +34 -24
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
- package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +7 -11
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.min.js +2 -2
- package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-wrapper.umd.js +1 -1
- package/bundles/taiga-ui-core-components-wrapper.umd.min.js +1 -1
- package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-constants.umd.js +10 -1
- package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
- package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-border.umd.js +291 -0
- package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -0
- package/bundles/taiga-ui-core-directives-border.umd.min.js +16 -0
- package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -0
- package/bundles/taiga-ui-core-directives-hint.umd.js +7 -4
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.min.js +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 +7 -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 +1 -1
- package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
- 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.umd.js +12 -4
- package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
- 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 +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-modules-notifications.umd.js +2 -2
- package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
- package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
- package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +9 -0
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +3 -1
- 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-mask.umd.js +28 -8
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +2 -4
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
- package/components/button/button-options.d.ts +10 -0
- package/components/button/button.component.d.ts +8 -7
- package/components/button/index.d.ts +1 -0
- package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
- package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
- package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
- package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
- package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
- package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
- package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
- package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
- package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -3
- package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
- package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
- package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
- package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
- package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
- package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
- package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
- package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
- package/components/primitive-textfield/index.d.ts +1 -0
- package/components/primitive-textfield/primitive-textfield.component.d.ts +9 -16
- package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +18 -0
- package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
- package/components/scroll-controls/scroll-controls.component.d.ts +1 -1
- package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
- package/components/scrollbar/scrollable.directive.d.ts +5 -1
- package/components/scrollbar/scrollbar.component.d.ts +4 -3
- package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
- package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
- package/components/theme-night/theme-night.component.d.ts +0 -1
- package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
- package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
- package/constants/events.d.ts +5 -0
- package/constants/media.d.ts +1 -0
- package/constants/regexp.d.ts +1 -0
- package/constants/taiga-ui-core-constants.metadata.json +1 -1
- package/constants/version.d.ts +1 -1
- package/directives/border/border.directive.d.ts +9 -0
- package/directives/border/border.module.d.ts +2 -0
- package/directives/border/index.d.ts +2 -0
- package/directives/border/package.json +13 -0
- package/directives/border/taiga-ui-core-directives-border.d.ts +4 -0
- package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -0
- package/directives/hint/hint.directive.d.ts +2 -2
- package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
- package/directives/index.d.ts +1 -0
- package/directives/manual-hint/manual-hint.directive.d.ts +2 -1
- package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
- package/directives/taiga-ui-core-directives.metadata.json +1 -1
- package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
- package/esm2015/abstract/abstract-hint.js +6 -4
- package/esm2015/components/button/button-options.js +10 -0
- package/esm2015/components/button/button.component.js +12 -8
- package/esm2015/components/button/index.js +2 -1
- package/esm2015/components/calendar/calendar.component.js +2 -2
- package/esm2015/components/data-list/data-list.component.js +4 -3
- package/esm2015/components/data-list/option/option.component.js +4 -4
- package/esm2015/components/dialog/dialog.component.js +3 -3
- package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
- package/esm2015/components/error/error.component.js +1 -1
- package/esm2015/components/expand/expand.component.js +4 -3
- package/esm2015/components/hints-host/hint-box/hint-box.component.js +3 -3
- package/esm2015/components/hints-host/hints-host.component.js +3 -3
- package/esm2015/components/hints-host/hints-host.module.js +9 -3
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +4 -13
- package/esm2015/components/label/label.component.js +2 -2
- package/esm2015/components/link/link.component.js +1 -1
- package/esm2015/components/loader/loader.component.js +3 -3
- package/esm2015/components/notification/notification.component.js +1 -1
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
- package/esm2015/components/primitive-textfield/index.js +2 -1
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +38 -67
- package/esm2015/components/primitive-textfield/primitive-textfield.module.js +7 -2
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +65 -0
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
- package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
- package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
- package/esm2015/components/scrollbar/scrollbar.component.js +20 -18
- package/esm2015/components/theme-night/theme-night.component.js +4 -12
- package/esm2015/components/tooltip/tooltip.component.js +1 -1
- package/esm2015/components/wrapper/wrapper.component.js +1 -1
- package/esm2015/constants/events.js +6 -1
- package/esm2015/constants/media.js +2 -1
- package/esm2015/constants/regexp.js +2 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/directives/border/border.directive.js +42 -0
- package/esm2015/directives/border/border.module.js +13 -0
- package/esm2015/directives/border/index.js +3 -0
- package/esm2015/directives/border/taiga-ui-core-directives-border.js +5 -0
- package/esm2015/directives/hint/hint.directive.js +10 -7
- package/esm2015/directives/index.js +2 -1
- package/esm2015/directives/manual-hint/manual-hint.directive.js +10 -7
- package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
- package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
- package/esm2015/interfaces/index.js +1 -1
- package/esm2015/interfaces/media.js +1 -0
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
- package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
- package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/tokens/media.js +9 -0
- package/esm2015/utils/dom/process-icon.js +4 -2
- package/esm2015/utils/mask/create-number-mask.js +28 -10
- package/esm2015/utils/miscellaneous/get-border.js +3 -5
- package/esm5/abstract/abstract-hint.js +6 -4
- package/esm5/components/button/button-options.js +10 -0
- package/esm5/components/button/button.component.js +12 -8
- package/esm5/components/button/index.js +2 -1
- package/esm5/components/calendar/calendar.component.js +2 -2
- package/esm5/components/data-list/data-list.component.js +4 -3
- package/esm5/components/data-list/option/option.component.js +4 -4
- package/esm5/components/dialog/dialog.component.js +3 -3
- package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
- package/esm5/components/error/error.component.js +1 -1
- package/esm5/components/expand/expand.component.js +4 -3
- package/esm5/components/hints-host/hint-box/hint-box.component.js +3 -3
- package/esm5/components/hints-host/hints-host.component.js +3 -3
- package/esm5/components/hints-host/hints-host.module.js +9 -3
- package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +4 -17
- package/esm5/components/label/label.component.js +2 -2
- package/esm5/components/link/link.component.js +1 -1
- package/esm5/components/loader/loader.component.js +3 -3
- package/esm5/components/notification/notification.component.js +1 -1
- package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
- package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
- package/esm5/components/primitive-textfield/index.js +2 -1
- package/esm5/components/primitive-textfield/primitive-textfield.component.js +43 -104
- package/esm5/components/primitive-textfield/primitive-textfield.module.js +7 -2
- package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +99 -0
- package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
- package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
- package/esm5/components/scrollbar/scrollable.directive.js +17 -5
- package/esm5/components/scrollbar/scrollbar.component.js +20 -22
- package/esm5/components/theme-night/theme-night.component.js +6 -11
- package/esm5/components/tooltip/tooltip.component.js +1 -1
- package/esm5/components/wrapper/wrapper.component.js +1 -1
- package/esm5/constants/events.js +6 -1
- package/esm5/constants/media.js +2 -1
- package/esm5/constants/regexp.js +2 -1
- package/esm5/constants/version.js +2 -2
- package/esm5/directives/border/border.directive.js +51 -0
- package/esm5/directives/border/border.module.js +16 -0
- package/esm5/directives/border/index.js +3 -0
- package/esm5/directives/border/taiga-ui-core-directives-border.js +5 -0
- package/esm5/directives/hint/hint.directive.js +10 -7
- package/esm5/directives/index.js +2 -1
- package/esm5/directives/manual-hint/manual-hint.directive.js +10 -7
- package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
- package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
- package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
- package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
- package/esm5/interfaces/index.js +1 -1
- package/esm5/interfaces/media.js +1 -0
- package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
- package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
- package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
- package/esm5/tokens/index.js +2 -1
- package/esm5/tokens/media.js +9 -0
- package/esm5/utils/dom/process-icon.js +4 -2
- package/esm5/utils/mask/create-number-mask.js +30 -10
- package/esm5/utils/miscellaneous/get-border.js +3 -5
- package/fesm2015/taiga-ui-core-abstract.js +4 -2
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +21 -9
- 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 +6 -5
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +2 -2
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +3 -2
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +12 -6
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +3 -12
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-label.js +1 -1
- package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +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 +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-spin-button.js +2 -2
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +102 -69
- 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-scroll-controls.js +2 -2
- package/fesm2015/taiga-ui-core-components-scrollbar.js +33 -17
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +3 -11
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
- package/fesm2015/taiga-ui-core-components-wrapper.js +1 -1
- package/fesm2015/taiga-ui-core-constants.js +9 -2
- package/fesm2015/taiga-ui-core-constants.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-border.js +57 -0
- package/fesm2015/taiga-ui-core-directives-border.js.map +1 -0
- package/fesm2015/taiga-ui-core-directives-hint.js +9 -6
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-manual-hint.js +9 -6
- package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives.js +1 -0
- package/fesm2015/taiga-ui-core-directives.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-modules-notifications.js +2 -2
- package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +9 -1
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +3 -1
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +27 -9
- package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js +2 -4
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-core-abstract.js +4 -2
- package/fesm5/taiga-ui-core-abstract.js.map +1 -1
- package/fesm5/taiga-ui-core-components-button.js +21 -9
- 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 +6 -5
- package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm5/taiga-ui-core-components-dialog.js +2 -2
- package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
- package/fesm5/taiga-ui-core-components-error.js +1 -1
- package/fesm5/taiga-ui-core-components-expand.js +3 -2
- package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm5/taiga-ui-core-components-hints-host.js +12 -6
- package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js +3 -16
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm5/taiga-ui-core-components-label.js +1 -1
- package/fesm5/taiga-ui-core-components-label.js.map +1 -1
- package/fesm5/taiga-ui-core-components-link.js +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 +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-spin-button.js +2 -2
- package/fesm5/taiga-ui-core-components-primitive-textfield.js +141 -106
- 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-scroll-controls.js +2 -2
- package/fesm5/taiga-ui-core-components-scrollbar.js +32 -22
- package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm5/taiga-ui-core-components-theme-night.js +5 -10
- package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
- package/fesm5/taiga-ui-core-components-wrapper.js +1 -1
- package/fesm5/taiga-ui-core-constants.js +9 -2
- package/fesm5/taiga-ui-core-constants.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-border.js +69 -0
- package/fesm5/taiga-ui-core-directives-border.js.map +1 -0
- package/fesm5/taiga-ui-core-directives-hint.js +9 -6
- package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-manual-hint.js +9 -6
- package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
- package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
- package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
- package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm5/taiga-ui-core-directives.js +1 -0
- package/fesm5/taiga-ui-core-directives.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-modules-notifications.js +2 -2
- package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
- package/fesm5/taiga-ui-core-tokens.js +9 -1
- package/fesm5/taiga-ui-core-tokens.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-dom.js +3 -1
- package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-mask.js +30 -10
- package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-core-utils-miscellaneous.js +2 -4
- package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
- package/interfaces/index.d.ts +1 -0
- package/interfaces/media.d.ts +6 -0
- package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
- package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
- package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
- package/package.json +5 -5
- package/styles/basic/main.less +2 -4
- package/styles/markup/tui-autofill.less +2 -0
- package/styles/markup/tui-container-old.less +69 -0
- package/styles/markup/tui-form-old.less +141 -0
- package/styles/markup/tui-form.less +12 -12
- package/styles/markup/tui-group-old.less +322 -0
- package/styles/markup/tui-group.less +2 -2
- package/styles/markup/tui-mobile-only.less +1 -1
- package/styles/markup/tui-row-old.less +157 -0
- package/styles/markup/tui-table.less +2 -2
- package/styles/mixins/mixins.less +8 -3
- package/styles/mixins/picker.less +1 -1
- package/styles/mixins/textfield.less +37 -78
- package/styles/taiga-ui-global-old.less +18 -0
- package/styles/taiga-ui-local-old.less +7 -0
- package/styles/theme/variables.less +4 -0
- package/styles/theme/wrapper/table.less +4 -0
- package/styles/variables/media-old.less +48 -0
- package/styles/variables/media.less +4 -4
- package/tokens/index.d.ts +1 -0
- package/tokens/media.d.ts +3 -0
- package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
- package/utils/mask/create-number-mask.d.ts +1 -0
- package/utils/miscellaneous/get-border.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/directives/hint-controller'), require('@taiga-ui/core/directives/textfield-controller'), require('@taiga-ui/core/tokens'), require('@taiga-ui/core/utils/miscellaneous'), require('@tinkoff/ng-polymorpheus'), require('rxjs'), require('@taiga-ui/core/providers'), require('@angular/common'), require('@angular/forms'), require('@taiga-ui/core/components/svg'), require('@taiga-ui/core/components/tooltip'), require('@taiga-ui/core/components/wrapper'), require('@taiga-ui/core/directives/described-by'), require('@taiga-ui/core/directives/mask-accessor')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/primitive-textfield', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/directives/hint-controller', '@taiga-ui/core/directives/textfield-controller', '@taiga-ui/core/tokens', '@taiga-ui/core/utils/miscellaneous', '@tinkoff/ng-polymorpheus', 'rxjs', '@taiga-ui/core/providers', '@angular/common', '@angular/forms', '@taiga-ui/core/components/svg', '@taiga-ui/core/components/tooltip', '@taiga-ui/core/components/wrapper', '@taiga-ui/core/directives/described-by', '@taiga-ui/core/directives/mask-accessor'], factory) :
|
|
4
|
-
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.components = global['taiga-ui'].core.components || {}, global['taiga-ui'].core.components['primitive-textfield'] = {}), global.ng.core, global.cdk, global['taiga-ui'].core.directives['hint-controller'], global['taiga-ui'].core.directives['textfield-controller'], global['taiga-ui'].core.tokens, global['taiga-ui'].core.utils.miscellaneous, global.ngPolymorpheus, global.rxjs, global['taiga-ui'].core.providers, global.ng.common, global.ng.forms, global['taiga-ui'].core.components.svg, global['taiga-ui'].core.components.tooltip, global['taiga-ui'].core.components.wrapper, global['taiga-ui'].core.directives['described-by'], global['taiga-ui'].core.directives['mask-accessor']));
|
|
5
|
-
}(this, (function (exports, core, cdk, hintController, textfieldController, tokens, miscellaneous, ngPolymorpheus, rxjs, providers, common, forms, svg, tooltip, wrapper, describedBy, maskAccessor) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/directives/hint-controller'), require('@taiga-ui/core/directives/textfield-controller'), require('@taiga-ui/core/tokens'), require('@taiga-ui/core/utils/miscellaneous'), require('@tinkoff/ng-polymorpheus'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/core/providers'), require('@angular/common'), require('@angular/forms'), require('@ng-web-apis/mutation-observer'), require('@taiga-ui/core/components/svg'), require('@taiga-ui/core/components/tooltip'), require('@taiga-ui/core/components/wrapper'), require('@taiga-ui/core/directives/border'), require('@taiga-ui/core/directives/described-by'), require('@taiga-ui/core/directives/mask-accessor'), require('@taiga-ui/core/directives')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/primitive-textfield', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/directives/hint-controller', '@taiga-ui/core/directives/textfield-controller', '@taiga-ui/core/tokens', '@taiga-ui/core/utils/miscellaneous', '@tinkoff/ng-polymorpheus', 'rxjs', 'rxjs/operators', '@taiga-ui/core/providers', '@angular/common', '@angular/forms', '@ng-web-apis/mutation-observer', '@taiga-ui/core/components/svg', '@taiga-ui/core/components/tooltip', '@taiga-ui/core/components/wrapper', '@taiga-ui/core/directives/border', '@taiga-ui/core/directives/described-by', '@taiga-ui/core/directives/mask-accessor', '@taiga-ui/core/directives'], factory) :
|
|
4
|
+
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.components = global['taiga-ui'].core.components || {}, global['taiga-ui'].core.components['primitive-textfield'] = {}), global.ng.core, global.cdk, global['taiga-ui'].core.directives['hint-controller'], global['taiga-ui'].core.directives['textfield-controller'], global['taiga-ui'].core.tokens, global['taiga-ui'].core.utils.miscellaneous, global.ngPolymorpheus, global.rxjs, global.rxjs.operators, global['taiga-ui'].core.providers, global.ng.common, global.ng.forms, global.mutationObserver, global['taiga-ui'].core.components.svg, global['taiga-ui'].core.components.tooltip, global['taiga-ui'].core.components.wrapper, global['taiga-ui'].core.directives.border, global['taiga-ui'].core.directives['described-by'], global['taiga-ui'].core.directives['mask-accessor'], global['taiga-ui'].core.directives));
|
|
5
|
+
}(this, (function (exports, core, cdk, hintController, textfieldController, tokens, miscellaneous, ngPolymorpheus, rxjs, operators, providers, common, forms, mutationObserver, svg, tooltip, wrapper, border, describedBy, maskAccessor, directives) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
_this.readOnly = false;
|
|
252
252
|
_this.invalid = false;
|
|
253
253
|
_this.disabled = false;
|
|
254
|
+
_this.prefix = '';
|
|
254
255
|
_this.postfix = '';
|
|
255
256
|
_this.value = '';
|
|
256
257
|
_this.valueChange = new core.EventEmitter();
|
|
@@ -310,131 +311,77 @@
|
|
|
310
311
|
enumerable: true,
|
|
311
312
|
configurable: true
|
|
312
313
|
});
|
|
313
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
314
|
-
get: function () {
|
|
315
|
-
return !!this.hintController && !!this.hintController.content && !this.disabled;
|
|
316
|
-
},
|
|
317
|
-
enumerable: true,
|
|
318
|
-
configurable: true
|
|
319
|
-
});
|
|
320
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasCustomContent", {
|
|
314
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasValue", {
|
|
321
315
|
get: function () {
|
|
322
|
-
return !!this.
|
|
316
|
+
return !!this.value;
|
|
323
317
|
},
|
|
324
318
|
enumerable: true,
|
|
325
319
|
configurable: true
|
|
326
320
|
});
|
|
327
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
321
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasCleaner", {
|
|
328
322
|
get: function () {
|
|
329
|
-
return this.
|
|
323
|
+
return (this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly);
|
|
330
324
|
},
|
|
331
325
|
enumerable: true,
|
|
332
326
|
configurable: true
|
|
333
327
|
});
|
|
334
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
328
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasTooltip", {
|
|
335
329
|
get: function () {
|
|
336
|
-
|
|
337
|
-
|
|
330
|
+
var _a;
|
|
331
|
+
return !!((_a = this.hintController) === null || _a === void 0 ? void 0 : _a.content) && !this.disabled;
|
|
338
332
|
},
|
|
339
333
|
enumerable: true,
|
|
340
334
|
configurable: true
|
|
341
335
|
});
|
|
342
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
336
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasCustomContent", {
|
|
343
337
|
get: function () {
|
|
344
|
-
return
|
|
338
|
+
return !!this.controller.customContent;
|
|
345
339
|
},
|
|
346
340
|
enumerable: true,
|
|
347
341
|
configurable: true
|
|
348
342
|
});
|
|
349
343
|
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasPlaceholder", {
|
|
350
344
|
get: function () {
|
|
351
|
-
|
|
352
|
-
|
|
345
|
+
var hasDecor = this.controller.exampleText || this.prefix || this.postfix;
|
|
346
|
+
var showDecor = hasDecor && !this.readOnly && this.computedFocused;
|
|
347
|
+
var placeholderVisible = !this.hasValue && !showDecor;
|
|
348
|
+
return this.placeholderRaisable || placeholderVisible;
|
|
353
349
|
},
|
|
354
350
|
enumerable: true,
|
|
355
351
|
configurable: true
|
|
356
352
|
});
|
|
357
353
|
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "placeholderRaised", {
|
|
358
354
|
get: function () {
|
|
359
|
-
return (this.
|
|
360
|
-
!this.labelOutside &&
|
|
355
|
+
return (this.placeholderRaisable &&
|
|
361
356
|
((this.computedFocused && !this.readOnly) || this.hasValue || this.autofilled));
|
|
362
357
|
},
|
|
363
358
|
enumerable: true,
|
|
364
359
|
configurable: true
|
|
365
360
|
});
|
|
366
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
367
|
-
get: function () {
|
|
368
|
-
return this.hasIcon && this.iconAlign === 'left';
|
|
369
|
-
},
|
|
370
|
-
enumerable: true,
|
|
371
|
-
configurable: true
|
|
372
|
-
});
|
|
373
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "iconAlignRight", {
|
|
374
|
-
get: function () {
|
|
375
|
-
return this.hasIcon && this.iconAlign === 'right';
|
|
376
|
-
},
|
|
377
|
-
enumerable: true,
|
|
378
|
-
configurable: true
|
|
379
|
-
});
|
|
380
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasValue", {
|
|
381
|
-
get: function () {
|
|
382
|
-
return !!this.value;
|
|
383
|
-
},
|
|
384
|
-
enumerable: true,
|
|
385
|
-
configurable: true
|
|
386
|
-
});
|
|
387
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasCleaner", {
|
|
388
|
-
get: function () {
|
|
389
|
-
return (this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly);
|
|
390
|
-
},
|
|
391
|
-
enumerable: true,
|
|
392
|
-
configurable: true
|
|
393
|
-
});
|
|
394
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "rightAligned", {
|
|
395
|
-
get: function () {
|
|
396
|
-
return (this.appearance === "table" /* Table */ &&
|
|
397
|
-
(this.controller.inputMode === 'numeric' ||
|
|
398
|
-
this.controller.inputMode === 'decimal'));
|
|
399
|
-
},
|
|
400
|
-
enumerable: true,
|
|
401
|
-
configurable: true
|
|
402
|
-
});
|
|
403
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasValueDecoration", {
|
|
404
|
-
get: function () {
|
|
405
|
-
var fillerOrExampleShown = this.computedFocused && !this.readOnly && this.hasFillerOrExampleText;
|
|
406
|
-
return fillerOrExampleShown || this.hasPostfix;
|
|
407
|
-
},
|
|
408
|
-
enumerable: true,
|
|
409
|
-
configurable: true
|
|
410
|
-
});
|
|
411
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasPostfix", {
|
|
361
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "borderLeft", {
|
|
412
362
|
get: function () {
|
|
413
|
-
|
|
414
|
-
return isPostfixAllowed && !!this.postfix;
|
|
363
|
+
return this.iconAlignLeft ? this.iconPaddingLeft : 0;
|
|
415
364
|
},
|
|
416
365
|
enumerable: true,
|
|
417
366
|
configurable: true
|
|
418
367
|
});
|
|
419
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
368
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "borderRight", {
|
|
420
369
|
get: function () {
|
|
421
|
-
return this.
|
|
370
|
+
return miscellaneous.getBorder(this.iconAlignRight, this.hasCleaner, this.hasTooltip, this.hasCustomContent);
|
|
422
371
|
},
|
|
423
372
|
enumerable: true,
|
|
424
373
|
configurable: true
|
|
425
374
|
});
|
|
426
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
375
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "iconAlignLeft", {
|
|
427
376
|
get: function () {
|
|
428
|
-
return this.
|
|
377
|
+
return this.hasIcon && this.iconAlign === 'left';
|
|
429
378
|
},
|
|
430
379
|
enumerable: true,
|
|
431
380
|
configurable: true
|
|
432
381
|
});
|
|
433
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
382
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "iconAlignRight", {
|
|
434
383
|
get: function () {
|
|
435
|
-
return this.
|
|
436
|
-
? this.controller.exampleText
|
|
437
|
-
: this.filler.slice(this.value.length);
|
|
384
|
+
return this.hasIcon && this.iconAlign === 'right';
|
|
438
385
|
},
|
|
439
386
|
enumerable: true,
|
|
440
387
|
configurable: true
|
|
@@ -449,13 +396,9 @@
|
|
|
449
396
|
enumerable: true,
|
|
450
397
|
configurable: true
|
|
451
398
|
});
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
},
|
|
456
|
-
enumerable: true,
|
|
457
|
-
configurable: true
|
|
458
|
-
});
|
|
399
|
+
TuiPrimitiveTextfieldComponent.prototype.getIndent$ = function (element) {
|
|
400
|
+
return rxjs.fromEvent(element, 'scroll').pipe(operators.map(function () { return -1 * element.scrollLeft; }));
|
|
401
|
+
};
|
|
459
402
|
TuiPrimitiveTextfieldComponent.prototype.clear = function () {
|
|
460
403
|
if (this.nativeFocusableElement) {
|
|
461
404
|
this.nativeFocusableElement.value = '';
|
|
@@ -482,33 +425,27 @@
|
|
|
482
425
|
TuiPrimitiveTextfieldComponent.prototype.onAutofilled = function (autofilled) {
|
|
483
426
|
this.updateAutofilled(autofilled);
|
|
484
427
|
};
|
|
485
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
428
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "iconPaddingLeft", {
|
|
486
429
|
get: function () {
|
|
487
|
-
return this.size
|
|
430
|
+
return this.size === 's' ? ICON_PADDING_S : ICON_PADDING;
|
|
488
431
|
},
|
|
489
432
|
enumerable: true,
|
|
490
433
|
configurable: true
|
|
491
434
|
});
|
|
492
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
435
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "placeholderRaisable", {
|
|
493
436
|
get: function () {
|
|
494
|
-
return
|
|
437
|
+
return this.size !== 's' && !this.labelOutside;
|
|
495
438
|
},
|
|
496
439
|
enumerable: true,
|
|
497
440
|
configurable: true
|
|
498
441
|
});
|
|
499
|
-
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "
|
|
442
|
+
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "hasIcon", {
|
|
500
443
|
get: function () {
|
|
501
|
-
return
|
|
502
|
-
this.computedFocused &&
|
|
503
|
-
!this.hasValue &&
|
|
504
|
-
!this.readOnly);
|
|
444
|
+
return !!this.iconContent;
|
|
505
445
|
},
|
|
506
446
|
enumerable: true,
|
|
507
447
|
configurable: true
|
|
508
448
|
});
|
|
509
|
-
TuiPrimitiveTextfieldComponent.prototype.getContext = function ($implicit) {
|
|
510
|
-
return { $implicit: $implicit };
|
|
511
|
-
};
|
|
512
449
|
TuiPrimitiveTextfieldComponent.prototype.updateAutofilled = function (autofilled) {
|
|
513
450
|
if (this.autofilled === autofilled) {
|
|
514
451
|
return;
|
|
@@ -555,6 +492,10 @@
|
|
|
555
492
|
core.Input(),
|
|
556
493
|
cdk.tuiDefaultProp()
|
|
557
494
|
], TuiPrimitiveTextfieldComponent.prototype, "disabled", void 0);
|
|
495
|
+
__decorate([
|
|
496
|
+
core.Input(),
|
|
497
|
+
cdk.tuiDefaultProp()
|
|
498
|
+
], TuiPrimitiveTextfieldComponent.prototype, "prefix", void 0);
|
|
558
499
|
__decorate([
|
|
559
500
|
core.Input(),
|
|
560
501
|
cdk.tuiDefaultProp()
|
|
@@ -584,22 +525,19 @@
|
|
|
584
525
|
__decorate([
|
|
585
526
|
core.HostBinding('class._invalid')
|
|
586
527
|
], TuiPrimitiveTextfieldComponent.prototype, "computedInvalid", null);
|
|
587
|
-
__decorate([
|
|
588
|
-
core.HostBinding('class._right-aligned')
|
|
589
|
-
], TuiPrimitiveTextfieldComponent.prototype, "rightAligned", null);
|
|
590
528
|
__decorate([
|
|
591
529
|
cdk.tuiPure
|
|
592
|
-
], TuiPrimitiveTextfieldComponent.prototype, "
|
|
530
|
+
], TuiPrimitiveTextfieldComponent.prototype, "getIndent$", null);
|
|
593
531
|
TuiPrimitiveTextfieldComponent = __decorate([
|
|
594
532
|
core.Component({
|
|
595
533
|
selector: 'tui-primitive-textfield',
|
|
596
|
-
template: "<ng-container *ngIf=\"content?.changes | async\"></ng-container>\n<tui-wrapper\n automation-id=\"tui-primitive-textfield__wrapper\"\n tuiPreventDefault=\"click\"\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n>\n <input\n #focusableElement\n tuiMaskAccessor\n automation-id=\"tui-primitive-textfield__native-input\"\n class=\"input\"\n [class.input_hidden]=\"inputHidden\"\n [style.
|
|
534
|
+
template: "<ng-container *ngIf=\"content?.changes | async\"></ng-container>\n<tui-wrapper\n automation-id=\"tui-primitive-textfield__wrapper\"\n tuiPreventDefault=\"click\"\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n>\n <input\n #focusableElement\n tuiMaskAccessor\n automation-id=\"tui-primitive-textfield__native-input\"\n class=\"input\"\n [class.input_hidden]=\"inputHidden\"\n [style.textIndent.px]=\"decor.pre$ | async\"\n [attr.disabled]=\"computedDisabled || null\"\n [attr.maxLength]=\"controller.maxLength\"\n [attr.name]=\"name\"\n [attr.aria-placeholder]=\"controller.exampleText\"\n [attr.aria-invalid]=\"computedInvalid\"\n [autocomplete]=\"controller.autocomplete\"\n [type]=\"controller.type\"\n [id]=\"id\"\n [readOnly]=\"readOnly || !editable\"\n [tuiBorderStart]=\"borderLeft\"\n [tuiBorderEnd]=\"borderRight\"\n [tuiInputMode]=\"controller.inputMode\"\n [tuiFocusable]=\"computedFocusable\"\n [tuiDescribedBy]=\"id\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiAutofilledChange)=\"onAutofilled($event)\"\n />\n <div\n *ngIf=\"inputHidden\"\n automation-id=\"tui-primitive-textfield__value\"\n class=\"input input_template\"\n [tuiBorderStart]=\"borderLeft\"\n [tuiBorderEnd]=\"borderRight\"\n >\n <ng-content select=\"[polymorpheus-outlet]\"></ng-content>\n </div>\n <div class=\"content\">\n <div\n *ngIf=\"iconAlignLeft\"\n polymorpheus-outlet\n class=\"icon icon_left\"\n [content]=\"iconContent\"\n [context]=\"{$implicit: size}\"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]=\"iconSrc\"></tui-svg>\n </ng-template>\n </div>\n <div class=\"wrapper\">\n <span\n aria-hidden=\"true\"\n class=\"value\"\n [class.value_visible]=\"isContextTable\"\n >\n {{ value }}\n </span>\n <label\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-primitive-textfield__placeholder\"\n class=\"placeholder\"\n [class.placeholder_raised]=\"placeholderRaised\"\n [for]=\"id\"\n >\n <ng-content></ng-content>\n </label>\n <tui-value-decoration\n #decor\n automation-id=\"tui-primitive-textfield__value-decoration\"\n aria-hidden=\"true\"\n [style.textIndent.px]=\"getIndent$(focusableElement) | async\"\n ></tui-value-decoration>\n </div>\n <div\n *ngIf=\"hasCustomContent\"\n polymorpheus-outlet\n automation-id=\"tui-primitive-textfield__custom-content\"\n class=\"custom-content\"\n [content]=\"controller.customContent\"\n >\n <ng-template let-iconSrc>\n <tui-svg class=\"custom-icon\" [src]=\"iconSrc\"></tui-svg>\n </ng-template>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n automation-id=\"tui-primitive-textfield__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"cleaner\"\n (click.stop)=\"clear()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-primitive-textfield__tooltip\"\n [describeId]=\"id\"\n [content]=\"hintController.content\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <div\n *ngIf=\"iconAlignRight\"\n polymorpheus-outlet\n class=\"icon\"\n [content]=\"iconContent\"\n [context]=\"{$implicit: size}\"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]=\"iconSrc\"></tui-svg>\n </ng-template>\n </div>\n </div>\n</tui-wrapper>\n",
|
|
597
535
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
598
536
|
providers: TUI_PRIMITIVE_TEXTFIELD_PROVIDERS,
|
|
599
537
|
host: {
|
|
600
538
|
'($.data-mode.attr)': 'mode$',
|
|
601
539
|
},
|
|
602
|
-
styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m)}:host[data-tui-host-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-tui-host-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-tui-host-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input{font:var(--tui-font-text-s);color:var(--tui-text-01);border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0
|
|
540
|
+
styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-tui-host-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-tui-host-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-tui-host-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0 solid transparent;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit}.input:-webkit-autofill,.input:-webkit-autofill:focus,.input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host[data-mode=onDark] .input:-webkit-autofill,:host[data-mode=onDark] .input:-webkit-autofill:focus,:host[data-mode=onDark] .input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}:host[data-tui-host-size='s'] .input{padding:0 var(--tui-padding-s)}:host[data-tui-host-size='l'] .input{padding:0 var(--tui-padding-l)}:host._disabled .input{pointer-events:none}:host._right-aligned .input{text-align:right}:host[data-tui-host-size='l']:not(._label-outside) .input{padding-top:1.25rem}:host[data-tui-host-size='l']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-tui-host-size='m']:not(._label-outside) .input{padding-top:1.125rem}:host[data-tui-host-size='m']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.filler{vertical-align:middle}.content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-tui-host-size='s'] .content{padding:0 var(--tui-padding-s)}:host[data-tui-host-size='l'] .content{padding:0 var(--tui-padding-l)}.content:after{content:'';margin-right:-.25rem}:host[data-tui-host-size='m'] .content:after{display:none}.wrapper{flex:1;min-width:0;padding-right:.25rem;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}.cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.icon{display:flex;align-items:center;justify-content:center;color:var(--tui-text-03)}.icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-tui-host-size='s'] .icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}.value{display:none;height:0;visibility:hidden;white-space:pre}.value_visible{display:block}.custom-content{position:relative;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:.25rem;pointer-events:none}.custom-icon{width:100%;height:100%}.icon{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);box-sizing:border-box;cursor:pointer;transition-property:color,transform;position:relative;pointer-events:none}.icon:hover{color:var(--tui-text-02)}:host._disabled .icon,:host._readonly .icon{pointer-events:none}:host[data-mode=onDark] .icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .icon:hover{color:var(--tui-text-01-night)}:host._hovered:not(._readonly) .icon{color:var(--tui-text-02)}:host[data-mode=onDark]._hovered:not(._readonly) .icon{color:var(--tui-text-01-night)}:host[data-mode=onLight]._hovered:not(._readonly) .icon{color:var(--tui-text-01)}.input_hidden{opacity:0;text-indent:-10em;-webkit-user-select:none}:host[data-tui-host-size] .input_template{display:flex;width:100%;max-width:100%;align-items:center;pointer-events:none}.input::-webkit-caps-lock-indicator{margin-right:.375rem;align-self:center}:host[data-tui-host-size='l']:not(._label-outside) .input::-webkit-caps-lock-indicator{margin-top:-1.25rem}.input::-webkit-contacts-auto-fill-button,.input::-webkit-credentials-auto-fill-button,.input::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}:host[data-tui-host-size='l']:not(._label-outside) .input::-webkit-contacts-auto-fill-button,:host[data-tui-host-size='l']:not(._label-outside) .input::-webkit-credentials-auto-fill-button,:host[data-tui-host-size='l']:not(._label-outside) .input::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}.input::-webkit-contacts-auto-fill-button:hover,.input::-webkit-credentials-auto-fill-button:hover,.input::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}.text-template{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
|
|
603
541
|
}),
|
|
604
542
|
__param(0, core.Inject(tokens.TUI_MODE)),
|
|
605
543
|
__param(1, core.Inject(tokens.TUI_TEXTFIELD_APPEARANCE)),
|
|
@@ -609,6 +547,97 @@
|
|
|
609
547
|
return TuiPrimitiveTextfieldComponent;
|
|
610
548
|
}(cdk.AbstractTuiInteractive));
|
|
611
549
|
|
|
550
|
+
var TuiValueDecorationComponent = /** @class */ (function () {
|
|
551
|
+
function TuiValueDecorationComponent(textfield, controller) {
|
|
552
|
+
var _this = this;
|
|
553
|
+
this.textfield = textfield;
|
|
554
|
+
this.controller = controller;
|
|
555
|
+
this.pre$ = rxjs.defer(function () { var _a, _b; return (_b = (_a = _this.directive) === null || _a === void 0 ? void 0 : _a.waMutationObserver) !== null && _b !== void 0 ? _b : rxjs.EMPTY; }).pipe(operators.map(function () { var _a, _b; return (_b = (_a = _this.pre) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetWidth) !== null && _b !== void 0 ? _b : 0; }), operators.startWith(0), operators.distinctUntilChanged());
|
|
556
|
+
}
|
|
557
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "value", {
|
|
558
|
+
get: function () {
|
|
559
|
+
return this.textfield.value;
|
|
560
|
+
},
|
|
561
|
+
enumerable: true,
|
|
562
|
+
configurable: true
|
|
563
|
+
});
|
|
564
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "filler", {
|
|
565
|
+
get: function () {
|
|
566
|
+
return this.focused
|
|
567
|
+
? this.exampleText || this.textfield.filler.slice(this.value.length)
|
|
568
|
+
: '';
|
|
569
|
+
},
|
|
570
|
+
enumerable: true,
|
|
571
|
+
configurable: true
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "prefix", {
|
|
574
|
+
get: function () {
|
|
575
|
+
return this.decorationsVisible ? this.textfield.prefix : '';
|
|
576
|
+
},
|
|
577
|
+
enumerable: true,
|
|
578
|
+
configurable: true
|
|
579
|
+
});
|
|
580
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "postfix", {
|
|
581
|
+
get: function () {
|
|
582
|
+
return this.decorationsVisible ? this.computedPostfix : '';
|
|
583
|
+
},
|
|
584
|
+
enumerable: true,
|
|
585
|
+
configurable: true
|
|
586
|
+
});
|
|
587
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "exampleText", {
|
|
588
|
+
get: function () {
|
|
589
|
+
return !this.value && this.focused ? this.controller.exampleText : '';
|
|
590
|
+
},
|
|
591
|
+
enumerable: true,
|
|
592
|
+
configurable: true
|
|
593
|
+
});
|
|
594
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "decorationsVisible", {
|
|
595
|
+
get: function () {
|
|
596
|
+
return !!this.value || this.focused;
|
|
597
|
+
},
|
|
598
|
+
enumerable: true,
|
|
599
|
+
configurable: true
|
|
600
|
+
});
|
|
601
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "focused", {
|
|
602
|
+
get: function () {
|
|
603
|
+
return this.textfield.computedFocused && !this.textfield.readOnly;
|
|
604
|
+
},
|
|
605
|
+
enumerable: true,
|
|
606
|
+
configurable: true
|
|
607
|
+
});
|
|
608
|
+
Object.defineProperty(TuiValueDecorationComponent.prototype, "computedPostfix", {
|
|
609
|
+
get: function () {
|
|
610
|
+
return this.textfield.postfix && (this.filler || this.value)
|
|
611
|
+
? " " + this.textfield.postfix
|
|
612
|
+
: this.textfield.postfix;
|
|
613
|
+
},
|
|
614
|
+
enumerable: true,
|
|
615
|
+
configurable: true
|
|
616
|
+
});
|
|
617
|
+
TuiValueDecorationComponent.ctorParameters = function () { return [
|
|
618
|
+
{ type: TuiPrimitiveTextfieldComponent, decorators: [{ type: core.Inject, args: [TuiPrimitiveTextfieldComponent,] }] },
|
|
619
|
+
{ type: directives.TuiTextfieldController, decorators: [{ type: core.Inject, args: [directives.TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] }
|
|
620
|
+
]; };
|
|
621
|
+
__decorate([
|
|
622
|
+
core.ViewChild('pre', { read: core.ElementRef, static: true })
|
|
623
|
+
], TuiValueDecorationComponent.prototype, "pre", void 0);
|
|
624
|
+
__decorate([
|
|
625
|
+
core.ViewChild(mutationObserver.MutationObserverDirective, { static: true })
|
|
626
|
+
], TuiValueDecorationComponent.prototype, "directive", void 0);
|
|
627
|
+
TuiValueDecorationComponent = __decorate([
|
|
628
|
+
core.Component({
|
|
629
|
+
selector: 'tui-value-decoration',
|
|
630
|
+
template: "<span #pre subtree characterData waMutationObserver>{{ prefix }}</span>\n<span class=\"t-ghost\">{{ value }}</span>\n<span class=\"t-filler\">{{ filler }}</span>\n{{ postfix }}\n",
|
|
631
|
+
// It follows Change Detection of PrimitiveTextfield
|
|
632
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
633
|
+
styles: [":host{display:block;height:1.25rem;margin:-1.25rem 0;padding:.625rem 0;box-sizing:content-box;color:var(--tui-text-01);white-space:nowrap;overflow:hidden}:host-context(tui-textfield[data-mode=onDark]) :host{color:var(--tui-text-01-night)}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip}.t-filler{color:var(--tui-text-03)}:host-context(tui-textfield[data-mode=onDark]) .t-filler{color:var(--tui-text-03-night)}"]
|
|
634
|
+
}),
|
|
635
|
+
__param(0, core.Inject(TuiPrimitiveTextfieldComponent)),
|
|
636
|
+
__param(1, core.Inject(directives.TUI_TEXTFIELD_WATCHED_CONTROLLER))
|
|
637
|
+
], TuiValueDecorationComponent);
|
|
638
|
+
return TuiValueDecorationComponent;
|
|
639
|
+
}());
|
|
640
|
+
|
|
612
641
|
var TuiPrimitiveTextfieldModule = /** @class */ (function () {
|
|
613
642
|
function TuiPrimitiveTextfieldModule() {
|
|
614
643
|
}
|
|
@@ -629,8 +658,10 @@
|
|
|
629
658
|
cdk.TuiAutofilledModule,
|
|
630
659
|
describedBy.TuiDescribedByModule,
|
|
631
660
|
cdk.TuiPreventDefaultModule,
|
|
661
|
+
border.TuiBorderModule,
|
|
662
|
+
mutationObserver.MutationObserverModule,
|
|
632
663
|
],
|
|
633
|
-
declarations: [TuiPrimitiveTextfieldComponent],
|
|
664
|
+
declarations: [TuiPrimitiveTextfieldComponent, TuiValueDecorationComponent],
|
|
634
665
|
exports: [TuiPrimitiveTextfieldComponent],
|
|
635
666
|
})
|
|
636
667
|
], TuiPrimitiveTextfieldModule);
|
|
@@ -640,6 +671,7 @@
|
|
|
640
671
|
exports.TUI_PRIMITIVE_TEXTFIELD_PROVIDERS = TUI_PRIMITIVE_TEXTFIELD_PROVIDERS;
|
|
641
672
|
exports.TuiPrimitiveTextfieldComponent = TuiPrimitiveTextfieldComponent;
|
|
642
673
|
exports.TuiPrimitiveTextfieldModule = TuiPrimitiveTextfieldModule;
|
|
674
|
+
exports.TuiValueDecorationComponent = TuiValueDecorationComponent;
|
|
643
675
|
|
|
644
676
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
645
677
|
|