@progress/kendo-angular-inputs 8.0.9-dev.202203220940 → 9.0.0-dev.202204150721
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-inputs.umd.js +5 -0
- package/{dist/es2015/checkbox → checkbox}/checkbox.directive.d.ts +15 -10
- package/{dist/es2015/checkbox.module.d.ts → checkbox.module.d.ts} +6 -0
- package/{dist/es2015/colorpicker → colorpicker}/color-contrast-svg.component.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/color-gradient.component.d.ts +23 -17
- package/{dist/es2015/colorpicker → colorpicker}/color-input.component.d.ts +6 -3
- package/{dist/es2015/colorpicker → colorpicker}/color-palette.component.d.ts +17 -10
- package/{dist/es2015/colorpicker → colorpicker}/colorpicker.component.d.ts +43 -31
- package/{dist/es2015/colorpicker → colorpicker}/constants.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/contrast-validation.component.d.ts +6 -3
- package/{dist/es2015/colorpicker → colorpicker}/contrast.component.d.ts +8 -5
- package/{dist/es2015/colorpicker → colorpicker}/events/active-color-click-event.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/events/cancel-event.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/events/close-event.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/events/kendo-drag-event.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/events/open-event.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/events.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/flatcolorpicker-actions.component.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/flatcolorpicker-header.component.d.ts +5 -2
- package/{dist/es2015/colorpicker → colorpicker}/flatcolorpicker.component.d.ts +15 -8
- package/{dist/es2015/colorpicker → colorpicker}/focus-on-dom-ready.directive.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/colorgradient-localization.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/colorpalette-localization.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/colorpicker-localization.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/colorpicker → colorpicker}/localization/flatcolorpicker-localization.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/localized-colorpicker-messages.directive.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/actions-layout.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/colorpicker-view.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/gradient-settings.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/hsva.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/output-format.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/palette-presets.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/palette-settings.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/popup-settings.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/rgb.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/rgba.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/table-cell.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/models/tile-size.d.ts +2 -2
- package/{dist/es2015/colorpicker → colorpicker}/models.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/services/color-palette.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/services/flatcolorpicker.service.d.ts +3 -0
- package/{dist/es2015/colorpicker → colorpicker}/utils/color-parser.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/utils/contrast-curve.d.ts +0 -0
- package/{dist/es2015/colorpicker → colorpicker}/utils.d.ts +0 -0
- package/colorpicker.module.d.ts +32 -0
- package/{dist/es2015/common → common}/dom-utils.d.ts +0 -0
- package/{dist/es2015/common → common}/math.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +2 -6
- package/{dist/es2015/common → common}/models/rounded.d.ts +4 -13
- package/{dist/es2015/common → common}/models/size.d.ts +2 -7
- package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
- package/{dist/es2015/common → common}/models.d.ts +0 -0
- package/{dist/es2015/common → common}/utils.d.ts +0 -0
- package/{dist/es2015 → esm2015}/checkbox/checkbox.directive.js +35 -38
- package/{dist/es2015 → esm2015}/checkbox.module.js +14 -11
- package/{dist/es2015 → esm2015}/colorpicker/color-contrast-svg.component.js +25 -30
- package/{dist/es2015 → esm2015}/colorpicker/color-gradient.component.js +231 -137
- package/{dist/es2015 → esm2015}/colorpicker/color-input.component.js +143 -65
- package/{dist/es2015 → esm2015}/colorpicker/color-palette.component.js +139 -132
- package/{dist/es2015 → esm2015}/colorpicker/colorpicker.component.js +249 -231
- package/{dist/es2015 → esm2015}/colorpicker/constants.js +0 -0
- package/esm2015/colorpicker/contrast-validation.component.js +67 -0
- package/esm2015/colorpicker/contrast.component.js +95 -0
- package/{dist/es2015 → esm2015}/colorpicker/events/active-color-click-event.js +0 -0
- package/{dist/es2015 → esm2015}/colorpicker/events/cancel-event.js +0 -0
- package/{dist/es2015 → esm2015}/colorpicker/events/close-event.js +0 -0
- package/{dist/es2015 → esm2015}/colorpicker/events/kendo-drag-event.js +1 -0
- package/{dist/es2015 → esm2015}/colorpicker/events/open-event.js +0 -0
- package/{dist/es → esm2015}/colorpicker/events.js +0 -0
- package/esm2015/colorpicker/flatcolorpicker-actions.component.js +77 -0
- package/esm2015/colorpicker/flatcolorpicker-header.component.js +161 -0
- package/{dist/es2015 → esm2015}/colorpicker/flatcolorpicker.component.js +207 -153
- package/esm2015/colorpicker/focus-on-dom-ready.directive.js +29 -0
- package/esm2015/colorpicker/localization/colorgradient-localization.service.js +45 -0
- package/esm2015/colorpicker/localization/colorpalette-localization.service.js +45 -0
- package/esm2015/colorpicker/localization/colorpicker-localization.service.js +31 -0
- package/esm2015/colorpicker/localization/custom-messages.component.js +40 -0
- package/esm2015/colorpicker/localization/flatcolorpicker-localization.service.js +45 -0
- package/esm2015/colorpicker/localization/localized-colorpicker-messages.directive.js +36 -0
- package/esm2015/colorpicker/localization/messages.js +67 -0
- package/{dist/es2015 → esm2015}/colorpicker/models/actions-layout.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/colorpicker-view.js +1 -0
- package/{dist/es2015 → esm2015}/colorpicker/models/gradient-settings.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/hsva.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/output-format.js +1 -0
- package/{dist/es2015 → esm2015}/colorpicker/models/palette-presets.js +1 -1
- package/{dist/es → esm2015}/colorpicker/models/palette-settings.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/popup-settings.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/rgb.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/rgba.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/table-cell.js +1 -0
- package/{dist/es → esm2015}/colorpicker/models/tile-size.js +2 -0
- package/esm2015/colorpicker/models.js +16 -0
- package/{dist/es2015 → esm2015}/colorpicker/services/color-palette.service.js +8 -10
- package/{dist/es2015 → esm2015}/colorpicker/services/flatcolorpicker.service.js +8 -7
- package/{dist/es2015 → esm2015}/colorpicker/utils/color-parser.js +0 -0
- package/{dist/es2015 → esm2015}/colorpicker/utils/contrast-curve.js +0 -0
- package/{dist/es → esm2015}/colorpicker/utils.js +0 -0
- package/{dist/es2015 → esm2015}/colorpicker.module.js +44 -15
- package/{dist/es2015 → esm2015}/common/dom-utils.js +0 -2
- package/{dist/es2015 → esm2015}/common/math.js +0 -2
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es → esm2015}/common/models/styling-classes.js +1 -0
- package/{dist/es → esm2015}/common/models.js +4 -0
- package/{dist/es2015 → esm2015}/common/utils.js +3 -3
- package/esm2015/formfield/error.component.js +68 -0
- package/{dist/es2015 → esm2015}/formfield/formfield.component.js +68 -72
- package/esm2015/formfield/hint.component.js +63 -0
- package/{dist/es → esm2015}/formfield/models/message-align.js +1 -0
- package/{dist/es → esm2015}/formfield/models/orientation.js +1 -0
- package/{dist/es → esm2015}/formfield/models/show-options.js +1 -0
- package/{dist/es2015 → esm2015}/formfield.module.js +14 -11
- package/{dist/es2015 → esm2015}/inputs.module.js +45 -22
- package/{dist/es2015/sliders-common/sliders-common.module.d.ts → esm2015/kendo-angular-inputs.js} +2 -3
- package/{dist/es2015 → esm2015}/main.js +6 -0
- package/{dist/es2015 → esm2015}/maskedtextbox/maskedtextbox.component.js +184 -194
- package/{dist/es2015 → esm2015}/maskedtextbox/masking.service.js +8 -10
- package/{dist/es2015 → esm2015}/maskedtextbox/parsing/combinators.js +0 -3
- package/{dist/es2015 → esm2015}/maskedtextbox/parsing/parsers.js +0 -2
- package/{dist/es2015 → esm2015}/maskedtextbox/parsing/result.js +1 -0
- package/{dist/es2015 → esm2015}/maskedtextbox/parsing/stream.js +0 -0
- package/{dist/es → esm2015}/maskedtextbox.module.js +14 -14
- package/{dist/es → esm2015}/numerictextbox/arrow-direction.js +0 -0
- package/{dist/es2015 → esm2015}/numerictextbox/constants.js +0 -0
- package/esm2015/numerictextbox/localization/custom-messages.component.js +40 -0
- package/esm2015/numerictextbox/localization/localized-numerictextbox-messages.directive.js +36 -0
- package/esm2015/numerictextbox/localization/messages.js +25 -0
- package/{dist/es2015 → esm2015}/numerictextbox/numerictextbox.component.js +185 -169
- package/{dist/es2015 → esm2015}/numerictextbox/utils.js +1 -1
- package/{dist/es2015 → esm2015}/numerictextbox.module.js +24 -18
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/radiobutton/radiobutton.directive.js +25 -26
- package/{dist/es2015 → esm2015}/radiobutton.module.js +14 -11
- package/esm2015/rangeslider/localization/custom-messages.component.js +40 -0
- package/esm2015/rangeslider/localization/localized-rangeslider-messages.directive.js +36 -0
- package/esm2015/rangeslider/localization/messages.js +25 -0
- package/{dist/es2015 → esm2015}/rangeslider/rangeslider-model.js +0 -0
- package/{dist/es → esm2015}/rangeslider/rangeslider-value.type.js +1 -0
- package/{dist/es2015 → esm2015}/rangeslider/rangeslider.component.js +114 -38
- package/{dist/es2015 → esm2015}/rangeslider.module.js +28 -20
- package/esm2015/shared/input-separator.component.js +41 -0
- package/{dist/es2015 → esm2015}/shared/textarea.directive.js +58 -52
- package/{dist/es2015 → esm2015}/shared/utils.js +0 -0
- package/esm2015/shared.module.js +32 -0
- package/esm2015/slider/localization/custom-messages.component.js +40 -0
- package/esm2015/slider/localization/localized-slider-messages.directive.js +36 -0
- package/esm2015/slider/localization/messages.js +27 -0
- package/{dist/es2015 → esm2015}/slider/slider-model.js +0 -0
- package/{dist/es2015 → esm2015}/slider/slider.component.js +132 -70
- package/{dist/es → esm2015}/slider.module.js +28 -23
- package/{dist/es2015 → esm2015}/sliders-common/label-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/sliders-common/slider-base.js +77 -112
- package/{dist/es2015 → esm2015}/sliders-common/slider-model.base.js +0 -0
- package/esm2015/sliders-common/slider-ticks.component.js +125 -0
- package/esm2015/sliders-common/sliders-common.module.js +42 -0
- package/{dist/es2015 → esm2015}/sliders-common/sliders-util.js +0 -0
- package/{dist/es/colorpicker/events/kendo-drag-event.js → esm2015/sliders-common/title-callback.js} +1 -0
- package/esm2015/switch/localization/custom-messages.component.js +40 -0
- package/esm2015/switch/localization/localized-switch-messages.directive.js +36 -0
- package/esm2015/switch/localization/messages.js +25 -0
- package/{dist/es2015 → esm2015}/switch/switch.component.js +166 -154
- package/{dist/es2015 → esm2015}/switch.module.js +26 -19
- package/{dist/es2015 → esm2015}/text-fields-common/text-fields-base.js +37 -47
- package/{dist/es → esm2015}/textarea/models/flow.js +1 -0
- package/{dist/es → esm2015}/textarea/models/resize.js +1 -0
- package/esm2015/textarea/textarea-suffix.component.js +40 -0
- package/{dist/es2015 → esm2015}/textarea/textarea.component.js +126 -122
- package/{dist/es → esm2015}/textarea.module.js +27 -22
- package/esm2015/textbox/localization/custom-messages.component.js +40 -0
- package/esm2015/textbox/localization/localized-textbox-messages.directive.js +36 -0
- package/esm2015/textbox/localization/messages.js +23 -0
- package/{dist/es → esm2015}/textbox/models/icon-show-options.js +1 -0
- package/esm2015/textbox/textbox-prefix.directive.js +38 -0
- package/esm2015/textbox/textbox-suffix.directive.js +37 -0
- package/{dist/es2015 → esm2015}/textbox/textbox.component.js +180 -174
- package/{dist/es2015 → esm2015}/textbox/textbox.directive.js +36 -31
- package/esm2015/textbox.module.js +88 -0
- package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-inputs.js} +4330 -3641
- package/{dist/es2015/formfield → formfield}/error.component.d.ts +6 -3
- package/{dist/es2015/formfield → formfield}/formfield.component.d.ts +9 -6
- package/{dist/es2015/formfield → formfield}/hint.component.d.ts +6 -3
- package/{dist/es2015/formfield → formfield}/models/message-align.d.ts +0 -0
- package/{dist/es2015/formfield → formfield}/models/orientation.d.ts +1 -5
- package/{dist/es2015/formfield → formfield}/models/show-options.d.ts +0 -0
- package/{dist/es2015/formfield.module.d.ts → formfield.module.d.ts} +8 -0
- package/{dist/es2015/inputs.module.d.ts → inputs.module.d.ts} +16 -0
- package/kendo-angular-inputs.d.ts +9 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +6 -0
- package/{dist/es2015/maskedtextbox → maskedtextbox}/maskedtextbox.component.d.ts +28 -17
- package/{dist/es2015/maskedtextbox → maskedtextbox}/masking.service.d.ts +7 -4
- package/{dist/es2015/maskedtextbox → maskedtextbox}/parsing/combinators.d.ts +0 -0
- package/{dist/es2015/maskedtextbox → maskedtextbox}/parsing/parsers.d.ts +0 -0
- package/{dist/es2015/maskedtextbox → maskedtextbox}/parsing/result.d.ts +0 -0
- package/{dist/es2015/maskedtextbox → maskedtextbox}/parsing/stream.d.ts +0 -0
- package/{dist/es2015/maskedtextbox.module.d.ts → maskedtextbox.module.d.ts} +7 -0
- package/{dist/es2015/numerictextbox → numerictextbox}/arrow-direction.d.ts +0 -0
- package/{dist/es2015/numerictextbox → numerictextbox}/constants.d.ts +0 -0
- package/{dist/es2015/numerictextbox → numerictextbox}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/numerictextbox → numerictextbox}/localization/localized-numerictextbox-messages.directive.d.ts +3 -0
- package/{dist/es2015/numerictextbox → numerictextbox}/localization/messages.d.ts +3 -0
- package/{dist/es2015/numerictextbox → numerictextbox}/numerictextbox.component.d.ts +35 -25
- package/{dist/es2015/numerictextbox → numerictextbox}/utils.d.ts +0 -0
- package/{dist/es2015/numerictextbox.module.d.ts → numerictextbox.module.d.ts} +9 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -116
- package/{dist/es2015/radiobutton → radiobutton}/radiobutton.directive.d.ts +9 -5
- package/{dist/es2015/radiobutton.module.d.ts → radiobutton.module.d.ts} +6 -0
- package/{dist/es2015/rangeslider → rangeslider}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/rangeslider → rangeslider}/localization/localized-rangeslider-messages.directive.d.ts +3 -0
- package/{dist/es2015/rangeslider → rangeslider}/localization/messages.d.ts +3 -0
- package/{dist/es2015/rangeslider → rangeslider}/rangeslider-model.d.ts +0 -0
- package/{dist/es2015/rangeslider → rangeslider}/rangeslider-value.type.d.ts +0 -0
- package/{dist/es2015/rangeslider → rangeslider}/rangeslider.component.d.ts +7 -4
- package/{dist/es2015/rangeslider.module.d.ts → rangeslider.module.d.ts} +10 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/shared → shared}/input-separator.component.d.ts +3 -0
- package/{dist/es2015/shared → shared}/textarea.directive.d.ts +7 -2
- package/{dist/es2015/shared → shared}/utils.d.ts +0 -0
- package/{dist/es2015/shared.module.d.ts → shared.module.d.ts} +6 -0
- package/{dist/es2015/slider → slider}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/slider → slider}/localization/localized-slider-messages.directive.d.ts +3 -0
- package/{dist/es2015/slider → slider}/localization/messages.d.ts +3 -0
- package/{dist/es2015/slider → slider}/slider-model.d.ts +0 -0
- package/{dist/es2015/slider → slider}/slider.component.d.ts +11 -7
- package/{dist/es2015/slider.module.d.ts → slider.module.d.ts} +10 -0
- package/{dist/es2015/sliders-common → sliders-common}/label-template.directive.d.ts +3 -0
- package/{dist/es2015/sliders-common → sliders-common}/slider-base.d.ts +11 -8
- package/{dist/es2015/sliders-common → sliders-common}/slider-model.base.d.ts +0 -0
- package/{dist/es2015/sliders-common → sliders-common}/slider-ticks.component.d.ts +3 -0
- package/sliders-common/sliders-common.module.d.ts +17 -0
- package/{dist/es2015/sliders-common → sliders-common}/sliders-util.d.ts +3 -2
- package/sliders-common/title-callback.d.ts +10 -0
- package/{dist/es2015/switch → switch}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/switch → switch}/localization/localized-switch-messages.directive.d.ts +3 -0
- package/{dist/es2015/switch → switch}/localization/messages.d.ts +3 -0
- package/{dist/es2015/switch → switch}/switch.component.d.ts +35 -27
- package/{dist/es2015/switch.module.d.ts → switch.module.d.ts} +9 -0
- package/{dist/es2015/text-fields-common → text-fields-common}/text-fields-base.d.ts +4 -1
- package/{dist/es2015/textarea → textarea}/models/flow.d.ts +0 -0
- package/{dist/es2015/textarea → textarea}/models/resize.d.ts +0 -0
- package/{dist/es2015/textarea → textarea}/textarea-suffix.component.d.ts +3 -0
- package/{dist/es2015/textarea → textarea}/textarea.component.d.ts +28 -20
- package/{dist/es2015/textarea.module.d.ts → textarea.module.d.ts} +11 -0
- package/{dist/es2015/textbox → textbox}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/textbox → textbox}/localization/localized-textbox-messages.directive.d.ts +3 -0
- package/{dist/es2015/textbox → textbox}/localization/messages.d.ts +3 -0
- package/{dist/es2015/textbox → textbox}/models/icon-show-options.d.ts +0 -0
- package/{dist/es2015/textbox → textbox}/textbox-prefix.directive.d.ts +3 -0
- package/{dist/es2015/textbox → textbox}/textbox-suffix.directive.d.ts +3 -0
- package/{dist/es2015/textbox → textbox}/textbox.component.d.ts +32 -24
- package/{dist/es2015/textbox → textbox}/textbox.directive.d.ts +9 -4
- package/textbox.module.d.ts +52 -0
- package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
- package/dist/cdn/js/kendo-angular-inputs.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/checkbox/checkbox.directive.js +0 -107
- package/dist/es/checkbox.module.js +0 -52
- package/dist/es/colorpicker/color-contrast-svg.component.js +0 -95
- package/dist/es/colorpicker/color-gradient.component.js +0 -697
- package/dist/es/colorpicker/color-input.component.js +0 -193
- package/dist/es/colorpicker/color-palette.component.js +0 -523
- package/dist/es/colorpicker/colorpicker.component.js +0 -958
- package/dist/es/colorpicker/constants.js +0 -36
- package/dist/es/colorpicker/contrast-validation.component.js +0 -59
- package/dist/es/colorpicker/contrast.component.js +0 -70
- package/dist/es/colorpicker/events/active-color-click-event.js +0 -60
- package/dist/es/colorpicker/events/cancel-event.js +0 -19
- package/dist/es/colorpicker/events/close-event.js +0 -17
- package/dist/es/colorpicker/events/open-event.js +0 -17
- package/dist/es/colorpicker/flatcolorpicker-actions.component.js +0 -50
- package/dist/es/colorpicker/flatcolorpicker-header.component.js +0 -94
- package/dist/es/colorpicker/flatcolorpicker.component.js +0 -549
- package/dist/es/colorpicker/focus-on-dom-ready.directive.js +0 -31
- package/dist/es/colorpicker/localization/colorgradient-localization.service.js +0 -34
- package/dist/es/colorpicker/localization/colorpalette-localization.service.js +0 -34
- package/dist/es/colorpicker/localization/colorpicker-localization.service.js +0 -24
- package/dist/es/colorpicker/localization/custom-messages.component.js +0 -43
- package/dist/es/colorpicker/localization/flatcolorpicker-localization.service.js +0 -34
- package/dist/es/colorpicker/localization/localized-colorpicker-messages.directive.js +0 -35
- package/dist/es/colorpicker/localization/messages.js +0 -110
- package/dist/es/colorpicker/models/actions-layout.js +0 -4
- package/dist/es/colorpicker/models/gradient-settings.js +0 -4
- package/dist/es/colorpicker/models/palette-presets.js +0 -62
- package/dist/es/colorpicker/models.js +0 -5
- package/dist/es/colorpicker/services/color-palette.service.js +0 -67
- package/dist/es/colorpicker/services/flatcolorpicker.service.js +0 -41
- package/dist/es/colorpicker/utils/color-parser.js +0 -170
- package/dist/es/colorpicker/utils/contrast-curve.js +0 -91
- package/dist/es/colorpicker.module.js +0 -67
- package/dist/es/common/dom-utils.js +0 -47
- package/dist/es/common/math.js +0 -67
- package/dist/es/common/utils.js +0 -73
- package/dist/es/formfield/error.component.js +0 -85
- package/dist/es/formfield/formfield.component.js +0 -296
- package/dist/es/formfield/hint.component.js +0 -79
- package/dist/es/formfield.module.js +0 -54
- package/dist/es/index.js +0 -37
- package/dist/es/inputs.module.js +0 -74
- package/dist/es/main.js +0 -53
- package/dist/es/maskedtextbox/maskedtextbox.component.js +0 -731
- package/dist/es/maskedtextbox/masking.service.js +0 -215
- package/dist/es/maskedtextbox/parsing/combinators.js +0 -31
- package/dist/es/maskedtextbox/parsing/parsers.js +0 -160
- package/dist/es/maskedtextbox/parsing/result.js +0 -43
- package/dist/es/maskedtextbox/parsing/stream.js +0 -45
- package/dist/es/numerictextbox/constants.js +0 -28
- package/dist/es/numerictextbox/localization/custom-messages.component.js +0 -43
- package/dist/es/numerictextbox/localization/localized-numerictextbox-messages.directive.js +0 -35
- package/dist/es/numerictextbox/localization/messages.js +0 -26
- package/dist/es/numerictextbox/numerictextbox.component.js +0 -1049
- package/dist/es/numerictextbox/utils.js +0 -91
- package/dist/es/numerictextbox.module.js +0 -62
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/radiobutton/radiobutton.directive.js +0 -83
- package/dist/es/radiobutton.module.js +0 -52
- package/dist/es/rangeslider/localization/custom-messages.component.js +0 -43
- package/dist/es/rangeslider/localization/localized-rangeslider-messages.directive.js +0 -35
- package/dist/es/rangeslider/localization/messages.js +0 -26
- package/dist/es/rangeslider/rangeslider-model.js +0 -59
- package/dist/es/rangeslider/rangeslider.component.js +0 -471
- package/dist/es/rangeslider.module.js +0 -66
- package/dist/es/shared/input-separator.component.js +0 -41
- package/dist/es/shared/textarea.directive.js +0 -269
- package/dist/es/shared/utils.js +0 -24
- package/dist/es/shared.module.js +0 -30
- package/dist/es/slider/localization/custom-messages.component.js +0 -43
- package/dist/es/slider/localization/localized-slider-messages.directive.js +0 -35
- package/dist/es/slider/localization/messages.js +0 -30
- package/dist/es/slider/slider-model.js +0 -41
- package/dist/es/slider/slider.component.js +0 -482
- package/dist/es/sliders-common/label-template.directive.js +0 -44
- package/dist/es/sliders-common/slider-base.js +0 -326
- package/dist/es/sliders-common/slider-model.base.js +0 -96
- package/dist/es/sliders-common/slider-ticks.component.js +0 -104
- package/dist/es/sliders-common/sliders-common.module.js +0 -35
- package/dist/es/sliders-common/sliders-util.js +0 -234
- package/dist/es/switch/localization/custom-messages.component.js +0 -43
- package/dist/es/switch/localization/localized-switch-messages.directive.js +0 -35
- package/dist/es/switch/localization/messages.js +0 -26
- package/dist/es/switch/switch.component.js +0 -570
- package/dist/es/switch.module.js +0 -64
- package/dist/es/text-fields-common/text-fields-base.js +0 -144
- package/dist/es/textarea/textarea-suffix.component.js +0 -40
- package/dist/es/textarea/textarea.component.js +0 -600
- package/dist/es/textbox/localization/custom-messages.component.js +0 -43
- package/dist/es/textbox/localization/localized-textbox-messages.directive.js +0 -35
- package/dist/es/textbox/localization/messages.js +0 -22
- package/dist/es/textbox/textbox-prefix.directive.js +0 -37
- package/dist/es/textbox/textbox-suffix.directive.js +0 -36
- package/dist/es/textbox/textbox.component.js +0 -763
- package/dist/es/textbox/textbox.directive.js +0 -127
- package/dist/es/textbox.module.js +0 -75
- package/dist/es/validators/max.validator.js +0 -21
- package/dist/es/validators/min.validator.js +0 -21
- package/dist/es2015/colorpicker/contrast-validation.component.js +0 -58
- package/dist/es2015/colorpicker/contrast.component.js +0 -72
- package/dist/es2015/colorpicker/events.js +0 -8
- package/dist/es2015/colorpicker/flatcolorpicker-actions.component.js +0 -62
- package/dist/es2015/colorpicker/flatcolorpicker-header.component.js +0 -133
- package/dist/es2015/colorpicker/focus-on-dom-ready.directive.js +0 -29
- package/dist/es2015/colorpicker/localization/colorgradient-localization.service.js +0 -31
- package/dist/es2015/colorpicker/localization/colorpalette-localization.service.js +0 -31
- package/dist/es2015/colorpicker/localization/colorpicker-localization.service.js +0 -22
- package/dist/es2015/colorpicker/localization/custom-messages.component.js +0 -35
- package/dist/es2015/colorpicker/localization/flatcolorpicker-localization.service.js +0 -31
- package/dist/es2015/colorpicker/localization/localized-colorpicker-messages.directive.js +0 -31
- package/dist/es2015/colorpicker/localization/messages.js +0 -104
- package/dist/es2015/colorpicker/models/colorpicker-view.js +0 -4
- package/dist/es2015/colorpicker/models/hsva.js +0 -4
- package/dist/es2015/colorpicker/models/output-format.js +0 -4
- package/dist/es2015/colorpicker/models/palette-settings.js +0 -4
- package/dist/es2015/colorpicker/models/popup-settings.js +0 -4
- package/dist/es2015/colorpicker/models/rgb.js +0 -4
- package/dist/es2015/colorpicker/models/rgba.js +0 -4
- package/dist/es2015/colorpicker/models/table-cell.js +0 -4
- package/dist/es2015/colorpicker/models/tile-size.js +0 -4
- package/dist/es2015/colorpicker/models.js +0 -5
- package/dist/es2015/colorpicker/utils.js +0 -6
- package/dist/es2015/colorpicker.module.d.ts +0 -10
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/common/models/styling-classes.js +0 -4
- package/dist/es2015/common/models.js +0 -4
- package/dist/es2015/formfield/error.component.js +0 -78
- package/dist/es2015/formfield/hint.component.js +0 -71
- package/dist/es2015/formfield/models/message-align.js +0 -4
- package/dist/es2015/formfield/models/orientation.js +0 -4
- package/dist/es2015/formfield/models/show-options.js +0 -4
- package/dist/es2015/index.d.ts +0 -37
- package/dist/es2015/index.js +0 -37
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/maskedtextbox.module.js +0 -50
- package/dist/es2015/numerictextbox/arrow-direction.js +0 -13
- package/dist/es2015/numerictextbox/localization/custom-messages.component.js +0 -35
- package/dist/es2015/numerictextbox/localization/localized-numerictextbox-messages.directive.js +0 -31
- package/dist/es2015/numerictextbox/localization/messages.js +0 -20
- package/dist/es2015/rangeslider/localization/custom-messages.component.js +0 -35
- package/dist/es2015/rangeslider/localization/localized-rangeslider-messages.directive.js +0 -31
- package/dist/es2015/rangeslider/localization/messages.js +0 -20
- package/dist/es2015/rangeslider/rangeslider-value.type.js +0 -4
- package/dist/es2015/shared/input-separator.component.js +0 -58
- package/dist/es2015/shared.module.js +0 -27
- package/dist/es2015/slider/localization/custom-messages.component.js +0 -35
- package/dist/es2015/slider/localization/localized-slider-messages.directive.js +0 -31
- package/dist/es2015/slider/localization/messages.js +0 -24
- package/dist/es2015/slider.module.js +0 -63
- package/dist/es2015/sliders-common/slider-ticks.component.js +0 -123
- package/dist/es2015/sliders-common/sliders-common.module.js +0 -32
- package/dist/es2015/switch/localization/custom-messages.component.js +0 -35
- package/dist/es2015/switch/localization/localized-switch-messages.directive.js +0 -31
- package/dist/es2015/switch/localization/messages.js +0 -20
- package/dist/es2015/textarea/models/flow.js +0 -4
- package/dist/es2015/textarea/models/resize.js +0 -4
- package/dist/es2015/textarea/textarea-suffix.component.js +0 -55
- package/dist/es2015/textarea.module.js +0 -60
- package/dist/es2015/textbox/localization/custom-messages.component.js +0 -35
- package/dist/es2015/textbox/localization/localized-textbox-messages.directive.js +0 -31
- package/dist/es2015/textbox/localization/messages.js +0 -16
- package/dist/es2015/textbox/models/icon-show-options.js +0 -4
- package/dist/es2015/textbox/textbox-prefix.directive.js +0 -36
- package/dist/es2015/textbox/textbox-suffix.directive.js +0 -35
- package/dist/es2015/textbox.module.d.ts +0 -37
- package/dist/es2015/textbox.module.js +0 -72
- package/dist/fesm5/index.js +0 -12462
- package/dist/npm/checkbox/checkbox.directive.js +0 -109
- package/dist/npm/checkbox.module.js +0 -54
- package/dist/npm/colorpicker/color-contrast-svg.component.js +0 -97
- package/dist/npm/colorpicker/color-gradient.component.js +0 -699
- package/dist/npm/colorpicker/color-input.component.js +0 -195
- package/dist/npm/colorpicker/color-palette.component.js +0 -525
- package/dist/npm/colorpicker/colorpicker.component.js +0 -960
- package/dist/npm/colorpicker/constants.js +0 -38
- package/dist/npm/colorpicker/contrast-validation.component.js +0 -61
- package/dist/npm/colorpicker/contrast.component.js +0 -72
- package/dist/npm/colorpicker/events/active-color-click-event.js +0 -62
- package/dist/npm/colorpicker/events/cancel-event.js +0 -21
- package/dist/npm/colorpicker/events/close-event.js +0 -19
- package/dist/npm/colorpicker/events/kendo-drag-event.js +0 -6
- package/dist/npm/colorpicker/events/open-event.js +0 -19
- package/dist/npm/colorpicker/events.js +0 -11
- package/dist/npm/colorpicker/flatcolorpicker-actions.component.js +0 -52
- package/dist/npm/colorpicker/flatcolorpicker-header.component.js +0 -96
- package/dist/npm/colorpicker/flatcolorpicker.component.js +0 -551
- package/dist/npm/colorpicker/focus-on-dom-ready.directive.js +0 -33
- package/dist/npm/colorpicker/localization/colorgradient-localization.service.js +0 -36
- package/dist/npm/colorpicker/localization/colorpalette-localization.service.js +0 -36
- package/dist/npm/colorpicker/localization/colorpicker-localization.service.js +0 -26
- package/dist/npm/colorpicker/localization/custom-messages.component.js +0 -45
- package/dist/npm/colorpicker/localization/flatcolorpicker-localization.service.js +0 -36
- package/dist/npm/colorpicker/localization/localized-colorpicker-messages.directive.js +0 -37
- package/dist/npm/colorpicker/localization/messages.js +0 -112
- package/dist/npm/colorpicker/models/actions-layout.js +0 -6
- package/dist/npm/colorpicker/models/colorpicker-view.js +0 -6
- package/dist/npm/colorpicker/models/gradient-settings.js +0 -6
- package/dist/npm/colorpicker/models/hsva.js +0 -6
- package/dist/npm/colorpicker/models/output-format.js +0 -6
- package/dist/npm/colorpicker/models/palette-presets.js +0 -64
- package/dist/npm/colorpicker/models/palette-settings.js +0 -6
- package/dist/npm/colorpicker/models/popup-settings.js +0 -6
- package/dist/npm/colorpicker/models/rgb.js +0 -6
- package/dist/npm/colorpicker/models/rgba.js +0 -6
- package/dist/npm/colorpicker/models/table-cell.js +0 -6
- package/dist/npm/colorpicker/models/tile-size.js +0 -6
- package/dist/npm/colorpicker/models.js +0 -8
- package/dist/npm/colorpicker/services/color-palette.service.js +0 -69
- package/dist/npm/colorpicker/services/flatcolorpicker.service.js +0 -43
- package/dist/npm/colorpicker/utils/color-parser.js +0 -173
- package/dist/npm/colorpicker/utils/contrast-curve.js +0 -93
- package/dist/npm/colorpicker/utils.js +0 -9
- package/dist/npm/colorpicker.module.js +0 -69
- package/dist/npm/common/dom-utils.js +0 -50
- package/dist/npm/common/math.js +0 -69
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/models/styling-classes.js +0 -6
- package/dist/npm/common/models.js +0 -6
- package/dist/npm/common/utils.js +0 -75
- package/dist/npm/formfield/error.component.js +0 -87
- package/dist/npm/formfield/formfield.component.js +0 -298
- package/dist/npm/formfield/hint.component.js +0 -81
- package/dist/npm/formfield/models/message-align.js +0 -6
- package/dist/npm/formfield/models/orientation.js +0 -6
- package/dist/npm/formfield/models/show-options.js +0 -6
- package/dist/npm/formfield.module.js +0 -56
- package/dist/npm/index.js +0 -69
- package/dist/npm/inputs.module.js +0 -76
- package/dist/npm/main.js +0 -100
- package/dist/npm/maskedtextbox/maskedtextbox.component.js +0 -733
- package/dist/npm/maskedtextbox/masking.service.js +0 -217
- package/dist/npm/maskedtextbox/parsing/combinators.js +0 -34
- package/dist/npm/maskedtextbox/parsing/parsers.js +0 -162
- package/dist/npm/maskedtextbox/parsing/result.js +0 -45
- package/dist/npm/maskedtextbox/parsing/stream.js +0 -47
- package/dist/npm/maskedtextbox.module.js +0 -55
- package/dist/npm/numerictextbox/arrow-direction.js +0 -15
- package/dist/npm/numerictextbox/constants.js +0 -30
- package/dist/npm/numerictextbox/localization/custom-messages.component.js +0 -45
- package/dist/npm/numerictextbox/localization/localized-numerictextbox-messages.directive.js +0 -37
- package/dist/npm/numerictextbox/localization/messages.js +0 -28
- package/dist/npm/numerictextbox/numerictextbox.component.js +0 -1051
- package/dist/npm/numerictextbox/utils.js +0 -94
- package/dist/npm/numerictextbox.module.js +0 -64
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/radiobutton/radiobutton.directive.js +0 -85
- package/dist/npm/radiobutton.module.js +0 -54
- package/dist/npm/rangeslider/localization/custom-messages.component.js +0 -45
- package/dist/npm/rangeslider/localization/localized-rangeslider-messages.directive.js +0 -37
- package/dist/npm/rangeslider/localization/messages.js +0 -28
- package/dist/npm/rangeslider/rangeslider-model.js +0 -61
- package/dist/npm/rangeslider/rangeslider-value.type.js +0 -6
- package/dist/npm/rangeslider/rangeslider.component.js +0 -473
- package/dist/npm/rangeslider.module.js +0 -68
- package/dist/npm/shared/input-separator.component.js +0 -43
- package/dist/npm/shared/textarea.directive.js +0 -271
- package/dist/npm/shared/utils.js +0 -26
- package/dist/npm/shared.module.js +0 -32
- package/dist/npm/slider/localization/custom-messages.component.js +0 -45
- package/dist/npm/slider/localization/localized-slider-messages.directive.js +0 -37
- package/dist/npm/slider/localization/messages.js +0 -32
- package/dist/npm/slider/slider-model.js +0 -43
- package/dist/npm/slider/slider.component.js +0 -484
- package/dist/npm/slider.module.js +0 -68
- package/dist/npm/sliders-common/label-template.directive.js +0 -46
- package/dist/npm/sliders-common/slider-base.js +0 -328
- package/dist/npm/sliders-common/slider-model.base.js +0 -98
- package/dist/npm/sliders-common/slider-ticks.component.js +0 -106
- package/dist/npm/sliders-common/sliders-common.module.js +0 -37
- package/dist/npm/sliders-common/sliders-util.js +0 -236
- package/dist/npm/switch/localization/custom-messages.component.js +0 -45
- package/dist/npm/switch/localization/localized-switch-messages.directive.js +0 -37
- package/dist/npm/switch/localization/messages.js +0 -28
- package/dist/npm/switch/switch.component.js +0 -572
- package/dist/npm/switch.module.js +0 -66
- package/dist/npm/text-fields-common/text-fields-base.js +0 -146
- package/dist/npm/textarea/models/flow.js +0 -6
- package/dist/npm/textarea/models/resize.js +0 -6
- package/dist/npm/textarea/textarea-suffix.component.js +0 -42
- package/dist/npm/textarea/textarea.component.js +0 -602
- package/dist/npm/textarea.module.js +0 -65
- package/dist/npm/textbox/localization/custom-messages.component.js +0 -45
- package/dist/npm/textbox/localization/localized-textbox-messages.directive.js +0 -37
- package/dist/npm/textbox/localization/messages.js +0 -24
- package/dist/npm/textbox/models/icon-show-options.js +0 -6
- package/dist/npm/textbox/textbox-prefix.directive.js +0 -39
- package/dist/npm/textbox/textbox-suffix.directive.js +0 -38
- package/dist/npm/textbox/textbox.component.js +0 -765
- package/dist/npm/textbox/textbox.directive.js +0 -129
- package/dist/npm/textbox.module.js +0 -77
- package/dist/npm/validators/max.validator.js +0 -23
- package/dist/npm/validators/min.validator.js +0 -23
- package/dist/systemjs/kendo-angular-inputs.js +0 -5
|
@@ -1,765 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var utils_1 = require("./../shared/utils");
|
|
9
|
-
var dom_utils_1 = require("./../common/dom-utils");
|
|
10
|
-
var forms_1 = require("@angular/forms");
|
|
11
|
-
var core_1 = require("@angular/core");
|
|
12
|
-
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
13
|
-
var package_metadata_1 = require("../package-metadata");
|
|
14
|
-
var dom_utils_2 = require("../common/dom-utils");
|
|
15
|
-
var utils_2 = require("../common/utils");
|
|
16
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
17
|
-
var textbox_suffix_directive_1 = require("./textbox-suffix.directive");
|
|
18
|
-
var textbox_prefix_directive_1 = require("./textbox-prefix.directive");
|
|
19
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
20
|
-
var utils_3 = require("../shared/utils");
|
|
21
|
-
var FOCUSED = 'k-focus';
|
|
22
|
-
var TextBoxComponent = /** @class */ (function () {
|
|
23
|
-
function TextBoxComponent(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
|
|
24
|
-
var _this = this;
|
|
25
|
-
this.localizationService = localizationService;
|
|
26
|
-
this.ngZone = ngZone;
|
|
27
|
-
this.changeDetector = changeDetector;
|
|
28
|
-
this.renderer = renderer;
|
|
29
|
-
this.injector = injector;
|
|
30
|
-
this.hostElement = hostElement;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
this.focusableId = "k-" + kendo_angular_common_1.guid();
|
|
35
|
-
/**
|
|
36
|
-
* Sets the `title` attribute of the `input` element of the TextBox.
|
|
37
|
-
*/
|
|
38
|
-
this.title = '';
|
|
39
|
-
/**
|
|
40
|
-
* Sets the disabled state of the component.
|
|
41
|
-
*
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the read-only state of the component.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
this.readonly = false;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies the `tabindex` of the TextBox.
|
|
53
|
-
*
|
|
54
|
-
* @default 0
|
|
55
|
-
*/
|
|
56
|
-
this.tabindex = 0;
|
|
57
|
-
/**
|
|
58
|
-
* Provides a value for the TextBox.
|
|
59
|
-
*/
|
|
60
|
-
this.value = null;
|
|
61
|
-
/**
|
|
62
|
-
* Determines whether the whole value will be selected when the TextBox is clicked. Defaults to `false`.
|
|
63
|
-
*
|
|
64
|
-
* @default false
|
|
65
|
-
*/
|
|
66
|
-
this.selectOnFocus = false;
|
|
67
|
-
/**
|
|
68
|
-
* Specifies when the Success icon will be shown ([see example]({% slug validation_textbox %})).
|
|
69
|
-
*
|
|
70
|
-
* The possible values are:
|
|
71
|
-
*
|
|
72
|
-
* `boolean`—The Success icon is displayed, if the condition given by the developer is met.
|
|
73
|
-
*
|
|
74
|
-
* `initial`—The Success icon will be displayed when the component state is neither `invalid` nor `touched` or `dirty`.
|
|
75
|
-
*
|
|
76
|
-
* @default false
|
|
77
|
-
*/
|
|
78
|
-
this.showSuccessIcon = false;
|
|
79
|
-
/**
|
|
80
|
-
* Specifies when the Error icon will be shown ([see example]({% slug validation_textbox %})).
|
|
81
|
-
*
|
|
82
|
-
* The possible values are:
|
|
83
|
-
*
|
|
84
|
-
* * `initial`—The Error icon will be displayed when the component state is
|
|
85
|
-
* `invalid` and `touched` or `dirty`.
|
|
86
|
-
* * `boolean`—The Error icon is displayed, if the condition given by the developer is met.
|
|
87
|
-
*
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
this.showErrorIcon = false;
|
|
91
|
-
/**
|
|
92
|
-
* Specifies whether a Clear button will be rendered.
|
|
93
|
-
*
|
|
94
|
-
* @default false
|
|
95
|
-
*/
|
|
96
|
-
this.clearButton = false;
|
|
97
|
-
/**
|
|
98
|
-
* Fires each time the value is changed—
|
|
99
|
-
* when the component is blurred or the value is cleared through the **Clear** button
|
|
100
|
-
* ([see example]({% slug overview_textbox %}#toc-events)).
|
|
101
|
-
* When the value of the component is programmatically changed to `ngModel` or `formControl`
|
|
102
|
-
* through its API or form binding, the `valueChange` event is not triggered because it
|
|
103
|
-
* might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
|
|
104
|
-
*/
|
|
105
|
-
this.valueChange = new core_1.EventEmitter();
|
|
106
|
-
/**
|
|
107
|
-
* Fires each time the user focuses the `input` element.
|
|
108
|
-
*/
|
|
109
|
-
this.inputFocus = new core_1.EventEmitter();
|
|
110
|
-
/**
|
|
111
|
-
* Fires each time the `input` element gets blurred.
|
|
112
|
-
*/
|
|
113
|
-
this.inputBlur = new core_1.EventEmitter();
|
|
114
|
-
/**
|
|
115
|
-
* Fires each time the user focuses the TextBox component.
|
|
116
|
-
*
|
|
117
|
-
* > To wire the event programmatically, use the `onFocus` property.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```ts-no-run
|
|
121
|
-
* _@Component({
|
|
122
|
-
* selector: 'my-app',
|
|
123
|
-
* template: `
|
|
124
|
-
* <kendo-textbox (focus)="handleFocus()"></kendo-textbox>
|
|
125
|
-
* `
|
|
126
|
-
* })
|
|
127
|
-
* class AppComponent {
|
|
128
|
-
* public handleFocus(): void {
|
|
129
|
-
* console.log('Component is isFocused');
|
|
130
|
-
* }
|
|
131
|
-
* }
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
this.onFocus = new core_1.EventEmitter();
|
|
135
|
-
/**
|
|
136
|
-
* Fires each time the TextBox component gets blurred.
|
|
137
|
-
*
|
|
138
|
-
* > To wire the event programmatically, use the `onBlur` property.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts-no-run
|
|
142
|
-
* _@Component({
|
|
143
|
-
* selector: 'my-app',
|
|
144
|
-
* template: `
|
|
145
|
-
* <kendo-textbox (blur)="handleBlur()"></kendo-textbox>
|
|
146
|
-
* `
|
|
147
|
-
* })
|
|
148
|
-
* class AppComponent {
|
|
149
|
-
* public handleBlur(): void {
|
|
150
|
-
* console.log('Component is blurred');
|
|
151
|
-
* }
|
|
152
|
-
* }
|
|
153
|
-
* ```
|
|
154
|
-
*/
|
|
155
|
-
this.onBlur = new core_1.EventEmitter();
|
|
156
|
-
this.hostClasses = true;
|
|
157
|
-
this._isFocused = false;
|
|
158
|
-
this.focusChangedProgrammatically = false;
|
|
159
|
-
this._size = 'medium';
|
|
160
|
-
this._rounded = 'medium';
|
|
161
|
-
this._fillMode = 'solid';
|
|
162
|
-
/**
|
|
163
|
-
* @hidden
|
|
164
|
-
*/
|
|
165
|
-
this.handleInputFocus = function () {
|
|
166
|
-
if (!_this.disabled) {
|
|
167
|
-
if (_this.selectOnFocus && _this.value) {
|
|
168
|
-
_this.ngZone.run(function () {
|
|
169
|
-
setTimeout(function () { _this.selectAll(); });
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
if (kendo_angular_common_1.hasObservers(_this.onFocus)) {
|
|
173
|
-
if (!_this.isFocused) {
|
|
174
|
-
_this.ngZone.run(function () {
|
|
175
|
-
_this.onFocus.emit();
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
if (kendo_angular_common_1.hasObservers(_this.inputFocus)) {
|
|
180
|
-
if (!_this.focusChangedProgrammatically || (_this.focusChangedProgrammatically && _this.clearButtonClicked)) {
|
|
181
|
-
_this.ngZone.run(function () {
|
|
182
|
-
_this.inputFocus.emit();
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
_this.ngZone.run(function () {
|
|
187
|
-
_this.isFocused = true;
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* @hidden
|
|
193
|
-
*/
|
|
194
|
-
this.handleInputBlur = function () {
|
|
195
|
-
_this.changeDetector.markForCheck();
|
|
196
|
-
if (kendo_angular_common_1.hasObservers(_this.inputBlur) || utils_2.requiresZoneOnBlur(_this.control)) {
|
|
197
|
-
_this.ngZone.run(function () {
|
|
198
|
-
_this.ngTouched();
|
|
199
|
-
_this.inputBlur.emit();
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* @hidden
|
|
205
|
-
*/
|
|
206
|
-
this.handleInput = function (ev) {
|
|
207
|
-
var target = ev.target;
|
|
208
|
-
var isBrowserSafari = utils_3.isSafari(navigator.userAgent);
|
|
209
|
-
var incomingValue = isBrowserSafari && utils_1.isJapanese(target.value) ? ev.data : target.value;
|
|
210
|
-
var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
|
|
211
|
-
_this.updateValue(incomingValue);
|
|
212
|
-
if (isBrowserSafari) {
|
|
213
|
-
target.setSelectionRange(caretStart, caretEnd);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
this.ngChange = function (_) { };
|
|
217
|
-
this.ngTouched = function () { };
|
|
218
|
-
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
219
|
-
this.direction = localizationService.rtl ? 'rtl' : 'ltr';
|
|
220
|
-
}
|
|
221
|
-
TextBoxComponent_1 = TextBoxComponent;
|
|
222
|
-
Object.defineProperty(TextBoxComponent.prototype, "size", {
|
|
223
|
-
get: function () {
|
|
224
|
-
return this._size;
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
* The size property specifies the padding of the TextBox internal input element
|
|
228
|
-
* ([see example]({% slug appearance_textbox %}#toc-size)).
|
|
229
|
-
*
|
|
230
|
-
* The possible values are:
|
|
231
|
-
* * `'small'`
|
|
232
|
-
* * `'medium'` (default)
|
|
233
|
-
* * `'large'`
|
|
234
|
-
* * `null`
|
|
235
|
-
*/
|
|
236
|
-
set: function (size) {
|
|
237
|
-
this.handleClasses(size, 'size');
|
|
238
|
-
this._size = size;
|
|
239
|
-
},
|
|
240
|
-
enumerable: true,
|
|
241
|
-
configurable: true
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(TextBoxComponent.prototype, "rounded", {
|
|
244
|
-
get: function () {
|
|
245
|
-
return this._rounded;
|
|
246
|
-
},
|
|
247
|
-
/**
|
|
248
|
-
* The rounded property specifies the border radius of the TextBox
|
|
249
|
-
* ([see example]({% slug appearance_textbox %}#toc-rounded)).
|
|
250
|
-
*
|
|
251
|
-
* The possible values are:
|
|
252
|
-
* * `'small'`
|
|
253
|
-
* * `'medium'` (default)
|
|
254
|
-
* * `'large'`
|
|
255
|
-
* * `'full'`
|
|
256
|
-
* * `null`
|
|
257
|
-
*/
|
|
258
|
-
set: function (rounded) {
|
|
259
|
-
this.handleClasses(rounded, 'rounded');
|
|
260
|
-
this._rounded = rounded;
|
|
261
|
-
},
|
|
262
|
-
enumerable: true,
|
|
263
|
-
configurable: true
|
|
264
|
-
});
|
|
265
|
-
Object.defineProperty(TextBoxComponent.prototype, "fillMode", {
|
|
266
|
-
get: function () {
|
|
267
|
-
return this._fillMode;
|
|
268
|
-
},
|
|
269
|
-
/**
|
|
270
|
-
* The fillMode property specifies the background and border styles of the TextBox
|
|
271
|
-
* ([see example]({% slug appearance_textbox %}#toc-fillMode)).
|
|
272
|
-
*
|
|
273
|
-
* The possible values are:
|
|
274
|
-
* * `'flat'`
|
|
275
|
-
* * `'solid'` (default)
|
|
276
|
-
* * `'outline'`
|
|
277
|
-
* * `null`
|
|
278
|
-
*/
|
|
279
|
-
set: function (fillMode) {
|
|
280
|
-
this.handleClasses(fillMode, 'fillMode');
|
|
281
|
-
this._fillMode = fillMode;
|
|
282
|
-
},
|
|
283
|
-
enumerable: true,
|
|
284
|
-
configurable: true
|
|
285
|
-
});
|
|
286
|
-
Object.defineProperty(TextBoxComponent.prototype, "tabIndex", {
|
|
287
|
-
get: function () {
|
|
288
|
-
return this.tabindex;
|
|
289
|
-
},
|
|
290
|
-
/**
|
|
291
|
-
* @hidden
|
|
292
|
-
*/
|
|
293
|
-
set: function (tabIndex) {
|
|
294
|
-
this.tabindex = tabIndex;
|
|
295
|
-
},
|
|
296
|
-
enumerable: true,
|
|
297
|
-
configurable: true
|
|
298
|
-
});
|
|
299
|
-
Object.defineProperty(TextBoxComponent.prototype, "disabledClass", {
|
|
300
|
-
get: function () {
|
|
301
|
-
return this.disabled;
|
|
302
|
-
},
|
|
303
|
-
enumerable: true,
|
|
304
|
-
configurable: true
|
|
305
|
-
});
|
|
306
|
-
TextBoxComponent.prototype.ngOnInit = function () {
|
|
307
|
-
var _this = this;
|
|
308
|
-
this.control = this.injector.get(forms_1.NgControl, null);
|
|
309
|
-
this.checkClearButton();
|
|
310
|
-
this.subscriptions = this.localizationService.changes.subscribe(function (_a) {
|
|
311
|
-
var rtl = _a.rtl;
|
|
312
|
-
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
TextBoxComponent.prototype.ngAfterViewInit = function () {
|
|
316
|
-
var _this = this;
|
|
317
|
-
var hostElement = this.hostElement.nativeElement;
|
|
318
|
-
var cursorInsideWrapper = false;
|
|
319
|
-
var tabbing = false;
|
|
320
|
-
this.ngZone.runOutsideAngular(function () {
|
|
321
|
-
// focusIn and focusOut are relative to the host element
|
|
322
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'focusin', function () {
|
|
323
|
-
if (!_this.isFocused) {
|
|
324
|
-
_this.ngZone.run(function () {
|
|
325
|
-
_this.onFocus.emit();
|
|
326
|
-
_this.isFocused = true;
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
}));
|
|
330
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'focusout', function (args) {
|
|
331
|
-
if (!_this.isFocused) {
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
if (tabbing) {
|
|
335
|
-
var closestTextbox = dom_utils_1.closest(args.relatedTarget, function (element) { return element === _this.hostElement.nativeElement; });
|
|
336
|
-
if (!closestTextbox) {
|
|
337
|
-
_this.handleBlur();
|
|
338
|
-
}
|
|
339
|
-
tabbing = false;
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
if (!cursorInsideWrapper && !_this.clearButtonClicked) {
|
|
343
|
-
_this.handleBlur();
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}));
|
|
347
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'mouseenter', function () {
|
|
348
|
-
cursorInsideWrapper = true;
|
|
349
|
-
}));
|
|
350
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'mouseleave', function () {
|
|
351
|
-
cursorInsideWrapper = false;
|
|
352
|
-
}));
|
|
353
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'keydown', function (args) {
|
|
354
|
-
if (args.keyCode === kendo_angular_common_1.Keys.Tab) {
|
|
355
|
-
tabbing = true;
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
tabbing = false;
|
|
359
|
-
}
|
|
360
|
-
}));
|
|
361
|
-
});
|
|
362
|
-
var stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
363
|
-
stylingInputs.forEach(function (input) {
|
|
364
|
-
_this.handleClasses(_this[input], input);
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
TextBoxComponent.prototype.ngOnChanges = function (changes) {
|
|
368
|
-
if (changes.disabled || changes.readonly || changes.value) {
|
|
369
|
-
this.checkClearButton();
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
TextBoxComponent.prototype.ngOnDestroy = function () {
|
|
373
|
-
if (this.subscriptions) {
|
|
374
|
-
this.subscriptions.unsubscribe();
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
/**
|
|
378
|
-
* Focuses the TextBox.
|
|
379
|
-
*
|
|
380
|
-
* @example
|
|
381
|
-
* ```ts-no-run
|
|
382
|
-
* _@Component({
|
|
383
|
-
* selector: 'my-app',
|
|
384
|
-
* template: `
|
|
385
|
-
* <button (click)="input.focus()">Focus the input</button>
|
|
386
|
-
* <kendo-textbox #input></kendo-textbox>
|
|
387
|
-
* `
|
|
388
|
-
* })
|
|
389
|
-
* class AppComponent { }
|
|
390
|
-
* ```
|
|
391
|
-
*/
|
|
392
|
-
TextBoxComponent.prototype.focus = function () {
|
|
393
|
-
if (!this.input) {
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
this.focusChangedProgrammatically = true;
|
|
397
|
-
this.isFocused = true;
|
|
398
|
-
this.input.nativeElement.focus();
|
|
399
|
-
this.focusChangedProgrammatically = false;
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Blurs the TextBox.
|
|
403
|
-
*/
|
|
404
|
-
TextBoxComponent.prototype.blur = function () {
|
|
405
|
-
this.focusChangedProgrammatically = true;
|
|
406
|
-
var isFocusedElement = this.hostElement.nativeElement.querySelector(':focus');
|
|
407
|
-
if (isFocusedElement) {
|
|
408
|
-
isFocusedElement.blur();
|
|
409
|
-
}
|
|
410
|
-
this.isFocused = false;
|
|
411
|
-
this.focusChangedProgrammatically = false;
|
|
412
|
-
};
|
|
413
|
-
/**
|
|
414
|
-
* @hidden
|
|
415
|
-
*/
|
|
416
|
-
TextBoxComponent.prototype.clearTitle = function () {
|
|
417
|
-
return this.localizationService.get('clear');
|
|
418
|
-
};
|
|
419
|
-
/**
|
|
420
|
-
* @hidden
|
|
421
|
-
*/
|
|
422
|
-
TextBoxComponent.prototype.checkClearButton = function () {
|
|
423
|
-
this.showClearButton =
|
|
424
|
-
!this.disabled &&
|
|
425
|
-
!this.readonly &&
|
|
426
|
-
this.clearButton &&
|
|
427
|
-
!!this.value;
|
|
428
|
-
};
|
|
429
|
-
/**
|
|
430
|
-
* @hidden
|
|
431
|
-
*/
|
|
432
|
-
TextBoxComponent.prototype.clearValue = function (ev) {
|
|
433
|
-
if (ev) {
|
|
434
|
-
ev.preventDefault();
|
|
435
|
-
}
|
|
436
|
-
this.clearButtonClicked = true;
|
|
437
|
-
this.input.nativeElement.value = '';
|
|
438
|
-
this.input.nativeElement.focus();
|
|
439
|
-
this.updateValue('');
|
|
440
|
-
this.checkClearButton();
|
|
441
|
-
this.clearButtonClicked = false;
|
|
442
|
-
};
|
|
443
|
-
/**
|
|
444
|
-
* @hidden
|
|
445
|
-
*/
|
|
446
|
-
TextBoxComponent.prototype.writeValue = function (value) {
|
|
447
|
-
this.value = value;
|
|
448
|
-
this.checkClearButton();
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* @hidden
|
|
452
|
-
*/
|
|
453
|
-
TextBoxComponent.prototype.registerOnChange = function (fn) {
|
|
454
|
-
this.ngChange = fn;
|
|
455
|
-
};
|
|
456
|
-
/**
|
|
457
|
-
* @hidden
|
|
458
|
-
*/
|
|
459
|
-
TextBoxComponent.prototype.registerOnTouched = function (fn) {
|
|
460
|
-
this.ngTouched = fn;
|
|
461
|
-
};
|
|
462
|
-
/**
|
|
463
|
-
* @hidden
|
|
464
|
-
* Called when the status of the component changes to or from `disabled`.
|
|
465
|
-
* Depending on the value, it enables or disables the appropriate DOM element.
|
|
466
|
-
*
|
|
467
|
-
* @param isDisabled
|
|
468
|
-
*/
|
|
469
|
-
TextBoxComponent.prototype.setDisabledState = function (isDisabled) {
|
|
470
|
-
this.changeDetector.markForCheck();
|
|
471
|
-
this.disabled = isDisabled;
|
|
472
|
-
};
|
|
473
|
-
/**
|
|
474
|
-
* @hidden
|
|
475
|
-
*/
|
|
476
|
-
TextBoxComponent.prototype.showErrorsInitial = function () {
|
|
477
|
-
if (!this.control) {
|
|
478
|
-
return false;
|
|
479
|
-
}
|
|
480
|
-
var _a = this.control, invalid = _a.invalid, dirty = _a.dirty, touched = _a.touched;
|
|
481
|
-
return invalid && (dirty || touched);
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* @hidden
|
|
485
|
-
*/
|
|
486
|
-
TextBoxComponent.prototype.showSuccessInitial = function () {
|
|
487
|
-
if (!this.control) {
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
var _a = this.control, valid = _a.valid, dirty = _a.dirty, touched = _a.touched;
|
|
491
|
-
return valid && (dirty || touched);
|
|
492
|
-
};
|
|
493
|
-
Object.defineProperty(TextBoxComponent.prototype, "successIconClasses", {
|
|
494
|
-
/**
|
|
495
|
-
* @hidden
|
|
496
|
-
*/
|
|
497
|
-
get: function () {
|
|
498
|
-
return this.successIcon
|
|
499
|
-
? "" + this.successIcon
|
|
500
|
-
: "k-input-validation-icon k-icon k-i-check";
|
|
501
|
-
},
|
|
502
|
-
enumerable: true,
|
|
503
|
-
configurable: true
|
|
504
|
-
});
|
|
505
|
-
Object.defineProperty(TextBoxComponent.prototype, "errorIconClasses", {
|
|
506
|
-
/**
|
|
507
|
-
* @hidden
|
|
508
|
-
*/
|
|
509
|
-
get: function () {
|
|
510
|
-
return this.errorIcon
|
|
511
|
-
? "" + this.errorIcon
|
|
512
|
-
: "k-input-validation-icon k-icon k-i-warning";
|
|
513
|
-
},
|
|
514
|
-
enumerable: true,
|
|
515
|
-
configurable: true
|
|
516
|
-
});
|
|
517
|
-
Object.defineProperty(TextBoxComponent.prototype, "clearButtonClasses", {
|
|
518
|
-
/**
|
|
519
|
-
* @hidden
|
|
520
|
-
*/
|
|
521
|
-
get: function () {
|
|
522
|
-
return this.clearButtonIcon
|
|
523
|
-
? this.clearButtonIcon
|
|
524
|
-
: "k-icon k-i-x";
|
|
525
|
-
},
|
|
526
|
-
enumerable: true,
|
|
527
|
-
configurable: true
|
|
528
|
-
});
|
|
529
|
-
Object.defineProperty(TextBoxComponent.prototype, "hasErrors", {
|
|
530
|
-
/**
|
|
531
|
-
* @hidden
|
|
532
|
-
*/
|
|
533
|
-
get: function () {
|
|
534
|
-
return this.showErrorIcon === 'initial'
|
|
535
|
-
? this.showErrorsInitial()
|
|
536
|
-
: this.showErrorIcon;
|
|
537
|
-
},
|
|
538
|
-
enumerable: true,
|
|
539
|
-
configurable: true
|
|
540
|
-
});
|
|
541
|
-
Object.defineProperty(TextBoxComponent.prototype, "isSuccessful", {
|
|
542
|
-
/**
|
|
543
|
-
* @hidden
|
|
544
|
-
*/
|
|
545
|
-
get: function () {
|
|
546
|
-
return this.showSuccessIcon === 'initial'
|
|
547
|
-
? this.showSuccessInitial()
|
|
548
|
-
: this.showSuccessIcon;
|
|
549
|
-
},
|
|
550
|
-
enumerable: true,
|
|
551
|
-
configurable: true
|
|
552
|
-
});
|
|
553
|
-
TextBoxComponent.prototype.setSelection = function (start, end) {
|
|
554
|
-
if (this.isFocused) {
|
|
555
|
-
dom_utils_2.invokeElementMethod(this.input, 'setSelectionRange', start, end);
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
TextBoxComponent.prototype.selectAll = function () {
|
|
559
|
-
if (this.value) {
|
|
560
|
-
this.setSelection(0, this.value.length);
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
TextBoxComponent.prototype.updateValue = function (value) {
|
|
564
|
-
var _this = this;
|
|
565
|
-
if (!utils_2.areSame(this.value, value)) {
|
|
566
|
-
this.ngZone.run(function () {
|
|
567
|
-
_this.value = value;
|
|
568
|
-
_this.ngChange(value);
|
|
569
|
-
_this.valueChange.emit(value);
|
|
570
|
-
_this.checkClearButton();
|
|
571
|
-
_this.changeDetector.markForCheck();
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
Object.defineProperty(TextBoxComponent.prototype, "isFocused", {
|
|
576
|
-
get: function () {
|
|
577
|
-
return this._isFocused;
|
|
578
|
-
},
|
|
579
|
-
set: function (value) {
|
|
580
|
-
if (this._isFocused !== value && this.hostElement) {
|
|
581
|
-
var element = this.hostElement.nativeElement;
|
|
582
|
-
if (value && !this.disabled) {
|
|
583
|
-
this.renderer.addClass(element, FOCUSED);
|
|
584
|
-
}
|
|
585
|
-
else {
|
|
586
|
-
this.renderer.removeClass(element, FOCUSED);
|
|
587
|
-
}
|
|
588
|
-
this._isFocused = value;
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
enumerable: true,
|
|
592
|
-
configurable: true
|
|
593
|
-
});
|
|
594
|
-
TextBoxComponent.prototype.handleBlur = function () {
|
|
595
|
-
var _this = this;
|
|
596
|
-
this.ngZone.run(function () {
|
|
597
|
-
if (!_this.focusChangedProgrammatically) {
|
|
598
|
-
_this.onBlur.emit();
|
|
599
|
-
}
|
|
600
|
-
_this.isFocused = false;
|
|
601
|
-
});
|
|
602
|
-
};
|
|
603
|
-
TextBoxComponent.prototype.handleClasses = function (value, input) {
|
|
604
|
-
var elem = this.hostElement.nativeElement;
|
|
605
|
-
var classes = utils_2.getStylingClasses('input', input, this[input], value);
|
|
606
|
-
if (classes.toRemove) {
|
|
607
|
-
this.renderer.removeClass(elem, classes.toRemove);
|
|
608
|
-
}
|
|
609
|
-
if (classes.toAdd) {
|
|
610
|
-
this.renderer.addClass(elem, classes.toAdd);
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
var TextBoxComponent_1;
|
|
614
|
-
tslib_1.__decorate([
|
|
615
|
-
core_1.Input(),
|
|
616
|
-
tslib_1.__metadata("design:type", String)
|
|
617
|
-
], TextBoxComponent.prototype, "focusableId", void 0);
|
|
618
|
-
tslib_1.__decorate([
|
|
619
|
-
core_1.Input(),
|
|
620
|
-
tslib_1.__metadata("design:type", String)
|
|
621
|
-
], TextBoxComponent.prototype, "title", void 0);
|
|
622
|
-
tslib_1.__decorate([
|
|
623
|
-
core_1.Input(),
|
|
624
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
625
|
-
], TextBoxComponent.prototype, "disabled", void 0);
|
|
626
|
-
tslib_1.__decorate([
|
|
627
|
-
core_1.Input(),
|
|
628
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
629
|
-
], TextBoxComponent.prototype, "readonly", void 0);
|
|
630
|
-
tslib_1.__decorate([
|
|
631
|
-
core_1.Input(),
|
|
632
|
-
tslib_1.__metadata("design:type", Number)
|
|
633
|
-
], TextBoxComponent.prototype, "tabindex", void 0);
|
|
634
|
-
tslib_1.__decorate([
|
|
635
|
-
core_1.Input(),
|
|
636
|
-
tslib_1.__metadata("design:type", String)
|
|
637
|
-
], TextBoxComponent.prototype, "value", void 0);
|
|
638
|
-
tslib_1.__decorate([
|
|
639
|
-
core_1.Input(),
|
|
640
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
641
|
-
], TextBoxComponent.prototype, "selectOnFocus", void 0);
|
|
642
|
-
tslib_1.__decorate([
|
|
643
|
-
core_1.Input(),
|
|
644
|
-
tslib_1.__metadata("design:type", Object)
|
|
645
|
-
], TextBoxComponent.prototype, "showSuccessIcon", void 0);
|
|
646
|
-
tslib_1.__decorate([
|
|
647
|
-
core_1.Input(),
|
|
648
|
-
tslib_1.__metadata("design:type", Object)
|
|
649
|
-
], TextBoxComponent.prototype, "showErrorIcon", void 0);
|
|
650
|
-
tslib_1.__decorate([
|
|
651
|
-
core_1.Input(),
|
|
652
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
653
|
-
], TextBoxComponent.prototype, "clearButton", void 0);
|
|
654
|
-
tslib_1.__decorate([
|
|
655
|
-
core_1.Input(),
|
|
656
|
-
tslib_1.__metadata("design:type", String)
|
|
657
|
-
], TextBoxComponent.prototype, "successIcon", void 0);
|
|
658
|
-
tslib_1.__decorate([
|
|
659
|
-
core_1.Input(),
|
|
660
|
-
tslib_1.__metadata("design:type", String)
|
|
661
|
-
], TextBoxComponent.prototype, "errorIcon", void 0);
|
|
662
|
-
tslib_1.__decorate([
|
|
663
|
-
core_1.Input(),
|
|
664
|
-
tslib_1.__metadata("design:type", String)
|
|
665
|
-
], TextBoxComponent.prototype, "clearButtonIcon", void 0);
|
|
666
|
-
tslib_1.__decorate([
|
|
667
|
-
core_1.Input(),
|
|
668
|
-
tslib_1.__metadata("design:type", String),
|
|
669
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
670
|
-
], TextBoxComponent.prototype, "size", null);
|
|
671
|
-
tslib_1.__decorate([
|
|
672
|
-
core_1.Input(),
|
|
673
|
-
tslib_1.__metadata("design:type", String),
|
|
674
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
675
|
-
], TextBoxComponent.prototype, "rounded", null);
|
|
676
|
-
tslib_1.__decorate([
|
|
677
|
-
core_1.Input(),
|
|
678
|
-
tslib_1.__metadata("design:type", String),
|
|
679
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
680
|
-
], TextBoxComponent.prototype, "fillMode", null);
|
|
681
|
-
tslib_1.__decorate([
|
|
682
|
-
core_1.Input(),
|
|
683
|
-
tslib_1.__metadata("design:type", Number),
|
|
684
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
685
|
-
], TextBoxComponent.prototype, "tabIndex", null);
|
|
686
|
-
tslib_1.__decorate([
|
|
687
|
-
core_1.Input(),
|
|
688
|
-
tslib_1.__metadata("design:type", String)
|
|
689
|
-
], TextBoxComponent.prototype, "placeholder", void 0);
|
|
690
|
-
tslib_1.__decorate([
|
|
691
|
-
core_1.Input(),
|
|
692
|
-
tslib_1.__metadata("design:type", Number)
|
|
693
|
-
], TextBoxComponent.prototype, "maxlength", void 0);
|
|
694
|
-
tslib_1.__decorate([
|
|
695
|
-
core_1.Output(),
|
|
696
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
697
|
-
], TextBoxComponent.prototype, "valueChange", void 0);
|
|
698
|
-
tslib_1.__decorate([
|
|
699
|
-
core_1.Output(),
|
|
700
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
701
|
-
], TextBoxComponent.prototype, "inputFocus", void 0);
|
|
702
|
-
tslib_1.__decorate([
|
|
703
|
-
core_1.Output(),
|
|
704
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
705
|
-
], TextBoxComponent.prototype, "inputBlur", void 0);
|
|
706
|
-
tslib_1.__decorate([
|
|
707
|
-
core_1.Output('focus'),
|
|
708
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
709
|
-
], TextBoxComponent.prototype, "onFocus", void 0);
|
|
710
|
-
tslib_1.__decorate([
|
|
711
|
-
core_1.Output('blur'),
|
|
712
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
713
|
-
], TextBoxComponent.prototype, "onBlur", void 0);
|
|
714
|
-
tslib_1.__decorate([
|
|
715
|
-
core_1.ViewChild('input', { static: true }),
|
|
716
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
717
|
-
], TextBoxComponent.prototype, "input", void 0);
|
|
718
|
-
tslib_1.__decorate([
|
|
719
|
-
core_1.ContentChild(textbox_suffix_directive_1.TextBoxSuffixTemplateDirective, { static: false }),
|
|
720
|
-
tslib_1.__metadata("design:type", textbox_suffix_directive_1.TextBoxSuffixTemplateDirective)
|
|
721
|
-
], TextBoxComponent.prototype, "suffixTemplate", void 0);
|
|
722
|
-
tslib_1.__decorate([
|
|
723
|
-
core_1.ContentChild(textbox_prefix_directive_1.TextBoxPrefixTemplateDirective, { static: false }),
|
|
724
|
-
tslib_1.__metadata("design:type", textbox_prefix_directive_1.TextBoxPrefixTemplateDirective)
|
|
725
|
-
], TextBoxComponent.prototype, "prefixTemplate", void 0);
|
|
726
|
-
tslib_1.__decorate([
|
|
727
|
-
core_1.HostBinding('class.k-disabled'),
|
|
728
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
729
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
730
|
-
], TextBoxComponent.prototype, "disabledClass", null);
|
|
731
|
-
tslib_1.__decorate([
|
|
732
|
-
core_1.HostBinding('class.k-textbox'),
|
|
733
|
-
core_1.HostBinding('class.k-input'),
|
|
734
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
735
|
-
], TextBoxComponent.prototype, "hostClasses", void 0);
|
|
736
|
-
tslib_1.__decorate([
|
|
737
|
-
core_1.HostBinding('attr.dir'),
|
|
738
|
-
tslib_1.__metadata("design:type", String)
|
|
739
|
-
], TextBoxComponent.prototype, "direction", void 0);
|
|
740
|
-
TextBoxComponent = TextBoxComponent_1 = tslib_1.__decorate([
|
|
741
|
-
core_1.Component({
|
|
742
|
-
exportAs: 'kendoTextBox',
|
|
743
|
-
providers: [
|
|
744
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
745
|
-
{ provide: kendo_angular_l10n_1.L10N_PREFIX, useValue: 'kendo.textbox' },
|
|
746
|
-
{
|
|
747
|
-
provide: forms_1.NG_VALUE_ACCESSOR,
|
|
748
|
-
useExisting: core_1.forwardRef(function () { return TextBoxComponent_1; }),
|
|
749
|
-
multi: true
|
|
750
|
-
},
|
|
751
|
-
{ provide: kendo_angular_common_1.KendoInput, useExisting: core_1.forwardRef(function () { return TextBoxComponent_1; }) }
|
|
752
|
-
],
|
|
753
|
-
selector: 'kendo-textbox',
|
|
754
|
-
template: "\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear=\"kendo.textbox.clear|The title for the **Clear** button in the TextBox.\"\n clear=\"Clear\">\n </ng-container>\n <span class=\"k-input-prefix\">\n <ng-template\n *ngIf=\"prefixTemplate\"\n [ngTemplateOutlet]=\"prefixTemplate?.templateRef\">\n </ng-template>\n </span>\n <input #input\n class=\"k-input-inner\"\n [id]=\"focusableId\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [attr.tabindex]=\"disabled ? undefined : tabindex\"\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n [attr.title]=\"title\"\n [attr.maxlength]=\"maxlength\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}\"\n />\n <span\n role=\"button\"\n class=\"k-clear-value\"\n *ngIf=\"showClearButton\"\n (click)=\"clearValue()\"\n (mousedown)=\"$event.preventDefault()\"\n [tabindex]=\"tabIndex\"\n [attr.aria-label]=\"clearTitle()\"\n [title]=\"clearTitle()\"\n (keydown.enter)=\"clearValue($event)\"\n (keydown.space)=\"clearValue($event)\">\n <span [ngClass]=\"clearButtonClasses\"></span>\n </span>\n <span *ngIf=\"hasErrors\" [ngClass]=\"errorIconClasses\"></span>\n <span *ngIf=\"isSuccessful\" [ngClass]=\"successIconClasses\"></span>\n <span class=\"k-input-suffix\">\n <ng-template\n *ngIf=\"suffixTemplate\"\n [ngTemplateOutlet]=\"suffixTemplate?.templateRef\">\n </ng-template>\n </span>\n "
|
|
755
|
-
}),
|
|
756
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
|
|
757
|
-
core_1.NgZone,
|
|
758
|
-
core_1.ChangeDetectorRef,
|
|
759
|
-
core_1.Renderer2,
|
|
760
|
-
core_1.Injector,
|
|
761
|
-
core_1.ElementRef])
|
|
762
|
-
], TextBoxComponent);
|
|
763
|
-
return TextBoxComponent;
|
|
764
|
-
}());
|
|
765
|
-
exports.TextBoxComponent = TextBoxComponent;
|