@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,127 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef, EventEmitter, Input, HostBinding, Renderer2, forwardRef, NgZone } from '@angular/core';
|
|
7
|
-
import { KendoInput } from '@progress/kendo-angular-common';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [Kendo UI TextBox directive]({% slug overview_textbox %}) for the Inputs components for Angular.
|
|
10
|
-
* Used to style the textbox of any `input` element.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts-no-run
|
|
14
|
-
* <input kendoTextBox />
|
|
15
|
-
* <input kendoTextBox type="email" />
|
|
16
|
-
* <input kendoTextBox type="password" />
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
var TextBoxDirective = /** @class */ (function () {
|
|
20
|
-
function TextBoxDirective(renderer, inputElement, ngZone) {
|
|
21
|
-
this.renderer = renderer;
|
|
22
|
-
this.inputElement = inputElement;
|
|
23
|
-
this.ngZone = ngZone;
|
|
24
|
-
this.hostClasses = true;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
this.onFocus = new EventEmitter();
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
this.onBlur = new EventEmitter();
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
this.onValueChange = new EventEmitter();
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
this.autoFillStart = new EventEmitter();
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
this.autoFillEnd = new EventEmitter();
|
|
45
|
-
this.listeners = [];
|
|
46
|
-
}
|
|
47
|
-
TextBoxDirective_1 = TextBoxDirective;
|
|
48
|
-
Object.defineProperty(TextBoxDirective.prototype, "value", {
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
get: function () {
|
|
53
|
-
return this.inputElement.nativeElement.value;
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
set: function (text) {
|
|
59
|
-
if (!this.inputElement) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
this.inputElement.nativeElement.value = (text === undefined || text === null) ? '' : text;
|
|
63
|
-
this.onValueChange.emit();
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(TextBoxDirective.prototype, "id", {
|
|
69
|
-
get: function () {
|
|
70
|
-
return this.inputElement.nativeElement.id;
|
|
71
|
-
},
|
|
72
|
-
set: function (id) {
|
|
73
|
-
this.renderer.setAttribute(this.inputElement.nativeElement, 'id', id);
|
|
74
|
-
},
|
|
75
|
-
enumerable: true,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
TextBoxDirective.prototype.ngAfterViewInit = function () {
|
|
79
|
-
var _this = this;
|
|
80
|
-
var input = this.inputElement.nativeElement;
|
|
81
|
-
this.listeners = [
|
|
82
|
-
this.renderer.listen(input, 'focus', function () { return _this.onFocus.emit(); }),
|
|
83
|
-
this.renderer.listen(input, 'blur', function () { return _this.onBlur.emit(); })
|
|
84
|
-
];
|
|
85
|
-
this.ngZone.runOutsideAngular(function () {
|
|
86
|
-
_this.renderer.listen(input, 'animationstart', function (e) {
|
|
87
|
-
if (e.animationName === 'autoFillStart') {
|
|
88
|
-
_this.autoFillStart.emit();
|
|
89
|
-
}
|
|
90
|
-
else if (e.animationName === 'autoFillEnd') {
|
|
91
|
-
_this.autoFillEnd.emit();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
TextBoxDirective.prototype.ngOnDestroy = function () {
|
|
97
|
-
this.listeners.forEach(function (listener) { return listener(); });
|
|
98
|
-
};
|
|
99
|
-
var TextBoxDirective_1;
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
HostBinding('class.k-textbox'),
|
|
102
|
-
HostBinding('class.k-input'),
|
|
103
|
-
HostBinding('class.k-input-md'),
|
|
104
|
-
HostBinding('class.k-rounded-md'),
|
|
105
|
-
HostBinding('class.k-input-solid'),
|
|
106
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
107
|
-
], TextBoxDirective.prototype, "hostClasses", void 0);
|
|
108
|
-
tslib_1.__decorate([
|
|
109
|
-
Input(),
|
|
110
|
-
tslib_1.__metadata("design:type", String),
|
|
111
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
112
|
-
], TextBoxDirective.prototype, "value", null);
|
|
113
|
-
TextBoxDirective = TextBoxDirective_1 = tslib_1.__decorate([
|
|
114
|
-
Directive({
|
|
115
|
-
selector: 'input[kendoTextBox]',
|
|
116
|
-
providers: [{
|
|
117
|
-
provide: KendoInput,
|
|
118
|
-
useExisting: forwardRef(function () { return TextBoxDirective_1; })
|
|
119
|
-
}]
|
|
120
|
-
}),
|
|
121
|
-
tslib_1.__metadata("design:paramtypes", [Renderer2,
|
|
122
|
-
ElementRef,
|
|
123
|
-
NgZone])
|
|
124
|
-
], TextBoxDirective);
|
|
125
|
-
return TextBoxDirective;
|
|
126
|
-
}());
|
|
127
|
-
export { TextBoxDirective };
|
|
@@ -1,75 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from "@angular/core";
|
|
7
|
-
import { TextBoxDirective } from "./textbox/textbox.directive";
|
|
8
|
-
import { TextBoxComponent } from "./textbox/textbox.component";
|
|
9
|
-
import { CommonModule } from "@angular/common";
|
|
10
|
-
import { EventsModule } from "@progress/kendo-angular-common";
|
|
11
|
-
import { TextBoxSuffixTemplateDirective } from "./textbox/textbox-suffix.directive";
|
|
12
|
-
import { TextBoxPrefixTemplateDirective } from './textbox/textbox-prefix.directive';
|
|
13
|
-
import { TextBoxCustomMessagesComponent } from './textbox/localization/custom-messages.component';
|
|
14
|
-
import { LocalizedTextBoxMessagesDirective } from './textbox/localization/localized-textbox-messages.directive';
|
|
15
|
-
import { SharedModule, SHARED_DIRECTIVES } from './shared.module';
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
18
|
-
* definition for the TextBox directive.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
*
|
|
22
|
-
* ```ts-no-run
|
|
23
|
-
* // Import the TextBox module
|
|
24
|
-
* import { TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
25
|
-
*
|
|
26
|
-
* // The browser platform with a compiler
|
|
27
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
28
|
-
*
|
|
29
|
-
* import { NgModule } from '@angular/core';
|
|
30
|
-
*
|
|
31
|
-
* // Import the app component
|
|
32
|
-
* import { AppComponent } from './app.component';
|
|
33
|
-
*
|
|
34
|
-
* // Define the app module
|
|
35
|
-
* _@NgModule({
|
|
36
|
-
* declarations: [AppComponent], // declare app component
|
|
37
|
-
* imports: [BrowserModule, TextBoxModule], // import TextBox module
|
|
38
|
-
* bootstrap: [AppComponent]
|
|
39
|
-
* })
|
|
40
|
-
* export class AppModule {}
|
|
41
|
-
*
|
|
42
|
-
* // Compile and launch the module
|
|
43
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
44
|
-
*
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
var TextBoxModule = /** @class */ (function () {
|
|
48
|
-
function TextBoxModule() {
|
|
49
|
-
}
|
|
50
|
-
TextBoxModule = tslib_1.__decorate([
|
|
51
|
-
NgModule({
|
|
52
|
-
declarations: [
|
|
53
|
-
TextBoxDirective,
|
|
54
|
-
TextBoxComponent,
|
|
55
|
-
TextBoxSuffixTemplateDirective,
|
|
56
|
-
TextBoxPrefixTemplateDirective,
|
|
57
|
-
TextBoxCustomMessagesComponent,
|
|
58
|
-
LocalizedTextBoxMessagesDirective
|
|
59
|
-
],
|
|
60
|
-
exports: [
|
|
61
|
-
TextBoxDirective,
|
|
62
|
-
TextBoxComponent,
|
|
63
|
-
TextBoxSuffixTemplateDirective,
|
|
64
|
-
TextBoxPrefixTemplateDirective,
|
|
65
|
-
EventsModule,
|
|
66
|
-
TextBoxCustomMessagesComponent,
|
|
67
|
-
LocalizedTextBoxMessagesDirective,
|
|
68
|
-
SHARED_DIRECTIVES
|
|
69
|
-
],
|
|
70
|
-
imports: [CommonModule, EventsModule, SharedModule]
|
|
71
|
-
})
|
|
72
|
-
], TextBoxModule);
|
|
73
|
-
return TextBoxModule;
|
|
74
|
-
}());
|
|
75
|
-
export { TextBoxModule };
|
|
@@ -1,21 +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
|
-
import { isPresent } from '../common/utils';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export var createMaxValidator = function (maxValue) {
|
|
10
|
-
return function (c) {
|
|
11
|
-
if (!isPresent(maxValue) || !isPresent(c.value) || c.value <= maxValue) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
maxError: {
|
|
16
|
-
maxValue: maxValue,
|
|
17
|
-
value: c.value
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,21 +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
|
-
import { isPresent } from '../common/utils';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export var createMinValidator = function (minValue) {
|
|
10
|
-
return function (c) {
|
|
11
|
-
if (!isPresent(minValue) || !isPresent(c.value) || c.value >= minValue) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
minError: {
|
|
16
|
-
minValue: minValue,
|
|
17
|
-
value: c.value
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,58 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { AA_RATIO, AAA_RATIO } from './constants';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { Component, Input } from '@angular/core';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
let ContrastValidationComponent = class ContrastValidationComponent {
|
|
13
|
-
constructor(localization) {
|
|
14
|
-
this.localization = localization;
|
|
15
|
-
}
|
|
16
|
-
get passMessage() {
|
|
17
|
-
return this.localization.get('passContrast');
|
|
18
|
-
}
|
|
19
|
-
get failMessage() {
|
|
20
|
-
return this.localization.get('failContrast');
|
|
21
|
-
}
|
|
22
|
-
get contrastText() {
|
|
23
|
-
let ratio = this.type === 'AA' ? AA_RATIO : AAA_RATIO;
|
|
24
|
-
return `${this.type}: ${ratio.toFixed(1)}`;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
Input(),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], ContrastValidationComponent.prototype, "type", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
Input(),
|
|
33
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
34
|
-
], ContrastValidationComponent.prototype, "pass", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
Input(),
|
|
37
|
-
tslib_1.__metadata("design:type", String)
|
|
38
|
-
], ContrastValidationComponent.prototype, "value", void 0);
|
|
39
|
-
ContrastValidationComponent = tslib_1.__decorate([
|
|
40
|
-
Component({
|
|
41
|
-
selector: '[kendoContrastValidation]',
|
|
42
|
-
template: `
|
|
43
|
-
<span>{{contrastText}}</span>
|
|
44
|
-
<ng-container *ngIf="value">
|
|
45
|
-
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
46
|
-
{{passMessage}}
|
|
47
|
-
<span class="k-icon k-i-check"></span>
|
|
48
|
-
</span>
|
|
49
|
-
<span class="k-contrast-validation k-text-error" *ngIf="!pass">
|
|
50
|
-
{{failMessage}}
|
|
51
|
-
<span class="k-icon k-i-close"></span>
|
|
52
|
-
</span>
|
|
53
|
-
</ng-container>
|
|
54
|
-
`
|
|
55
|
-
}),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
57
|
-
], ContrastValidationComponent);
|
|
58
|
-
export { ContrastValidationComponent };
|
|
@@ -1,72 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { getContrastFromTwoRGBAs, getRGBA } from './utils';
|
|
9
|
-
import { AA_RATIO, AAA_RATIO } from './constants';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
let ContrastComponent = class ContrastComponent {
|
|
14
|
-
constructor(localization) {
|
|
15
|
-
this.localization = localization;
|
|
16
|
-
}
|
|
17
|
-
get formatedRatio() {
|
|
18
|
-
return this.contrastRatio.toFixed(2);
|
|
19
|
-
}
|
|
20
|
-
get contrastRatioText() {
|
|
21
|
-
return `${this.localization.get('contrastRatio')}: ${this.value ? this.formatedRatio : 'n/a'}`;
|
|
22
|
-
}
|
|
23
|
-
get satisfiesAACondition() {
|
|
24
|
-
return this.contrastRatio >= AA_RATIO;
|
|
25
|
-
}
|
|
26
|
-
get satisfiesAAACondition() {
|
|
27
|
-
return this.contrastRatio >= AAA_RATIO;
|
|
28
|
-
}
|
|
29
|
-
get contrastRatio() {
|
|
30
|
-
let contrast = getContrastFromTwoRGBAs(getRGBA(this.value), getRGBA(this.ratio));
|
|
31
|
-
return contrast;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
Input(),
|
|
36
|
-
tslib_1.__metadata("design:type", String)
|
|
37
|
-
], ContrastComponent.prototype, "value", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
Input(),
|
|
40
|
-
tslib_1.__metadata("design:type", String)
|
|
41
|
-
], ContrastComponent.prototype, "ratio", void 0);
|
|
42
|
-
ContrastComponent = tslib_1.__decorate([
|
|
43
|
-
Component({
|
|
44
|
-
selector: '[kendoContrastTool]',
|
|
45
|
-
template: `
|
|
46
|
-
<div class="k-contrast-ratio">
|
|
47
|
-
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
48
|
-
<ng-container *ngIf="value">
|
|
49
|
-
<span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
|
|
50
|
-
<span class="k-icon k-i-check"></span>
|
|
51
|
-
<span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>
|
|
52
|
-
</span>
|
|
53
|
-
<span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
|
|
54
|
-
<span class="k-icon k-i-close"></span>
|
|
55
|
-
</span>
|
|
56
|
-
</ng-container>
|
|
57
|
-
</div>
|
|
58
|
-
<div kendoContrastValidation
|
|
59
|
-
type="AA"
|
|
60
|
-
[value]="value"
|
|
61
|
-
[pass]="satisfiesAACondition">
|
|
62
|
-
</div>
|
|
63
|
-
<div kendoContrastValidation
|
|
64
|
-
type="AAA"
|
|
65
|
-
[value]="value"
|
|
66
|
-
[pass]="satisfiesAAACondition">
|
|
67
|
-
</div>
|
|
68
|
-
`
|
|
69
|
-
}),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
71
|
-
], ContrastComponent);
|
|
72
|
-
export { ContrastComponent };
|
|
@@ -1,8 +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
|
-
export * from './events/cancel-event';
|
|
6
|
-
export * from './events/close-event';
|
|
7
|
-
export * from './events/open-event';
|
|
8
|
-
export * from './events/active-color-click-event';
|
|
@@ -1,62 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, HostBinding, EventEmitter, Output, ElementRef, ViewChild } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
let FlatColorPickerActionButtonsComponent = class FlatColorPickerActionButtonsComponent {
|
|
12
|
-
constructor(localizationService) {
|
|
13
|
-
this.localizationService = localizationService;
|
|
14
|
-
this.hostClasses = true;
|
|
15
|
-
this.actionButtonClick = new EventEmitter();
|
|
16
|
-
}
|
|
17
|
-
getText(text) {
|
|
18
|
-
return this.localizationService.get(text);
|
|
19
|
-
}
|
|
20
|
-
onActionButtonClick(type, ev) {
|
|
21
|
-
let args = {
|
|
22
|
-
target: type,
|
|
23
|
-
originalEvent: ev
|
|
24
|
-
};
|
|
25
|
-
this.actionButtonClick.emit(args);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
HostBinding('class.k-coloreditor-footer'),
|
|
30
|
-
HostBinding('class.k-actions'),
|
|
31
|
-
HostBinding('class.k-hstack'),
|
|
32
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
33
|
-
], FlatColorPickerActionButtonsComponent.prototype, "hostClasses", void 0);
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
Output(),
|
|
36
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
37
|
-
], FlatColorPickerActionButtonsComponent.prototype, "actionButtonClick", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
ViewChild('last', { read: ElementRef, static: false }),
|
|
40
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
41
|
-
], FlatColorPickerActionButtonsComponent.prototype, "lastButton", void 0);
|
|
42
|
-
FlatColorPickerActionButtonsComponent = tslib_1.__decorate([
|
|
43
|
-
Component({
|
|
44
|
-
selector: '[kendoFlatColorPickerActionButtons]',
|
|
45
|
-
template: `
|
|
46
|
-
<button
|
|
47
|
-
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
48
|
-
[attr.title]="getText('cancelButton')"
|
|
49
|
-
(click)="onActionButtonClick('cancel', $event)"
|
|
50
|
-
type="button"
|
|
51
|
-
>{{getText('cancelButton')}}</button>
|
|
52
|
-
<button #last
|
|
53
|
-
class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
|
|
54
|
-
[attr.title]="getText('applyButton')"
|
|
55
|
-
(click)="onActionButtonClick('apply', $event)"
|
|
56
|
-
type="button"
|
|
57
|
-
>{{getText('applyButton')}}</button>
|
|
58
|
-
`
|
|
59
|
-
}),
|
|
60
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
61
|
-
], FlatColorPickerActionButtonsComponent);
|
|
62
|
-
export { FlatColorPickerActionButtonsComponent };
|
|
@@ -1,133 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ViewChildren, QueryList, ElementRef } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
let FlatColorPickerHeaderComponent = class FlatColorPickerHeaderComponent {
|
|
12
|
-
constructor(localizationService) {
|
|
13
|
-
this.localizationService = localizationService;
|
|
14
|
-
this.hostClasses = true;
|
|
15
|
-
this.viewChange = new EventEmitter();
|
|
16
|
-
this.valuePaneClick = new EventEmitter();
|
|
17
|
-
this.clearButtonClick = new EventEmitter();
|
|
18
|
-
}
|
|
19
|
-
onViewButtonClick(view) {
|
|
20
|
-
this.activeView = view;
|
|
21
|
-
this.viewChange.emit(view);
|
|
22
|
-
}
|
|
23
|
-
get viewButtons() {
|
|
24
|
-
return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
|
|
25
|
-
}
|
|
26
|
-
getViewButtonIcon(view) {
|
|
27
|
-
return view === 'gradient' ? 'k-i-color-canvas' : 'k-i-palette';
|
|
28
|
-
}
|
|
29
|
-
getText(text) {
|
|
30
|
-
return this.localizationService.get(text);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
tslib_1.__decorate([
|
|
34
|
-
HostBinding('class.k-coloreditor-header'),
|
|
35
|
-
HostBinding('class.k-hstack'),
|
|
36
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
37
|
-
], FlatColorPickerHeaderComponent.prototype, "hostClasses", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
Input(),
|
|
40
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
41
|
-
], FlatColorPickerHeaderComponent.prototype, "clearButton", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
Input(),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], FlatColorPickerHeaderComponent.prototype, "activeView", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
tslib_1.__metadata("design:type", Array)
|
|
49
|
-
], FlatColorPickerHeaderComponent.prototype, "views", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
53
|
-
], FlatColorPickerHeaderComponent.prototype, "preview", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
Input(),
|
|
56
|
-
tslib_1.__metadata("design:type", String)
|
|
57
|
-
], FlatColorPickerHeaderComponent.prototype, "value", void 0);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
Input(),
|
|
60
|
-
tslib_1.__metadata("design:type", String)
|
|
61
|
-
], FlatColorPickerHeaderComponent.prototype, "selection", void 0);
|
|
62
|
-
tslib_1.__decorate([
|
|
63
|
-
Output(),
|
|
64
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
65
|
-
], FlatColorPickerHeaderComponent.prototype, "viewChange", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
Output(),
|
|
68
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
69
|
-
], FlatColorPickerHeaderComponent.prototype, "valuePaneClick", void 0);
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
Output(),
|
|
72
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
73
|
-
], FlatColorPickerHeaderComponent.prototype, "clearButtonClick", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
ViewChildren('viewButtons', { read: ElementRef }),
|
|
76
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
77
|
-
], FlatColorPickerHeaderComponent.prototype, "viewButtonsCollection", void 0);
|
|
78
|
-
tslib_1.__decorate([
|
|
79
|
-
ViewChild('clearButton', { read: ElementRef, static: false }),
|
|
80
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
81
|
-
], FlatColorPickerHeaderComponent.prototype, "clearButtonElement", void 0);
|
|
82
|
-
FlatColorPickerHeaderComponent = tslib_1.__decorate([
|
|
83
|
-
Component({
|
|
84
|
-
selector: '[kendoFlatColorPickerHeader]',
|
|
85
|
-
template: `
|
|
86
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
87
|
-
<div *ngIf="viewButtons" class="k-button-group k-button-group-flat">
|
|
88
|
-
<button *ngFor="let view of views"
|
|
89
|
-
#viewButtons
|
|
90
|
-
type="button"
|
|
91
|
-
(click)="onViewButtonClick(view)"
|
|
92
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
93
|
-
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
94
|
-
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
95
|
-
[attr.aria-pressed]="activeView === view"
|
|
96
|
-
[ngClass]="activeView === view ? 'k-state-selected' : ''"
|
|
97
|
-
>
|
|
98
|
-
<span
|
|
99
|
-
class="k-button-icon k-icon"
|
|
100
|
-
[ngClass]="getViewButtonIcon(view)">
|
|
101
|
-
</span>
|
|
102
|
-
</button>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="k-spacer"></div>
|
|
106
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
107
|
-
<button *ngIf="clearButton"
|
|
108
|
-
#clearButton
|
|
109
|
-
type="button"
|
|
110
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
111
|
-
[attr.aria-label]="getText('clearButton')"
|
|
112
|
-
[attr.title]="getText('clearButton')"
|
|
113
|
-
(click)="clearButtonClick.emit()">
|
|
114
|
-
<span class="k-button-icon k-icon k-i-reset-color"></span>
|
|
115
|
-
</button>
|
|
116
|
-
<div class="k-coloreditor-preview k-vstack" *ngIf="preview">
|
|
117
|
-
<span
|
|
118
|
-
class="k-coloreditor-preview-color k-color-preview"
|
|
119
|
-
[attr.title]="getText('previewColor')"
|
|
120
|
-
[style.background-color]="selection">
|
|
121
|
-
</span>
|
|
122
|
-
<span class="k-coloreditor-current-color k-color-preview"
|
|
123
|
-
[style.background-color]="value"
|
|
124
|
-
[attr.title]="getText('revertSelection')"
|
|
125
|
-
(click)="valuePaneClick.emit($event)">
|
|
126
|
-
</span>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
`
|
|
130
|
-
}),
|
|
131
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
132
|
-
], FlatColorPickerHeaderComponent);
|
|
133
|
-
export { FlatColorPickerHeaderComponent };
|
|
@@ -1,29 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef, NgZone } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
let FocusOnDomReadyDirective = class FocusOnDomReadyDirective {
|
|
11
|
-
constructor(host, ngZone) {
|
|
12
|
-
this.host = host;
|
|
13
|
-
this.ngZone = ngZone;
|
|
14
|
-
}
|
|
15
|
-
ngAfterContentInit() {
|
|
16
|
-
this.focusOnNextTick();
|
|
17
|
-
}
|
|
18
|
-
focusOnNextTick() {
|
|
19
|
-
this.ngZone.runOutsideAngular(() => setTimeout(() => this.host.nativeElement.focus()));
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
FocusOnDomReadyDirective = tslib_1.__decorate([
|
|
23
|
-
Directive({
|
|
24
|
-
selector: '[kendoFocusOnDomReady]'
|
|
25
|
-
}),
|
|
26
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
27
|
-
NgZone])
|
|
28
|
-
], FocusOnDomReadyDirective);
|
|
29
|
-
export { FocusOnDomReadyDirective };
|
|
@@ -1,31 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Inject, Optional } from '@angular/core';
|
|
7
|
-
import { LocalizationService, L10N_PREFIX, MessageService, RTL } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { FlatColorPickerLocalizationService } from './flatcolorpicker-localization.service';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
let ColorGradientLocalizationService = class ColorGradientLocalizationService extends LocalizationService {
|
|
13
|
-
constructor(prefix, messageService, _rtl, flatColorPickerLocalization) {
|
|
14
|
-
super(prefix, messageService, _rtl);
|
|
15
|
-
this.flatColorPickerLocalization = flatColorPickerLocalization;
|
|
16
|
-
}
|
|
17
|
-
get(shortKey) {
|
|
18
|
-
if (this.flatColorPickerLocalization) {
|
|
19
|
-
return this.flatColorPickerLocalization.get(shortKey);
|
|
20
|
-
}
|
|
21
|
-
return super.get(shortKey);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
ColorGradientLocalizationService = tslib_1.__decorate([
|
|
25
|
-
tslib_1.__param(0, Inject(L10N_PREFIX)),
|
|
26
|
-
tslib_1.__param(1, Optional()),
|
|
27
|
-
tslib_1.__param(2, Optional()), tslib_1.__param(2, Inject(RTL)),
|
|
28
|
-
tslib_1.__param(3, Optional()), tslib_1.__param(3, Inject(FlatColorPickerLocalizationService)),
|
|
29
|
-
tslib_1.__metadata("design:paramtypes", [String, MessageService, Boolean, FlatColorPickerLocalizationService])
|
|
30
|
-
], ColorGradientLocalizationService);
|
|
31
|
-
export { ColorGradientLocalizationService };
|