@progress/kendo-angular-inputs 8.0.8 → 9.0.0-next.202203161725
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 +7 -2
- 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 +30 -18
- 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 +0 -0
- package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- 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 +19 -26
- 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 +224 -212
- 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 +0 -0
- 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 +142 -156
- 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 +161 -151
- 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 +17 -20
- 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 +133 -71
- 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/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 +140 -134
- 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 +41 -0
- package/{dist/es2015 → esm2015}/textarea/textarea.component.js +102 -104
- 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 +38 -0
- package/{dist/es2015 → esm2015}/textbox/textbox.component.js +155 -155
- 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} +4057 -3410
- 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 +0 -0
- 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} +5 -0
- package/{dist/es2015/maskedtextbox → maskedtextbox}/maskedtextbox.component.d.ts +19 -8
- 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 +23 -13
- 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 +41 -113
- package/{dist/es2015/radiobutton → radiobutton}/radiobutton.directive.d.ts +5 -1
- 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 +9 -7
- 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/{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 +21 -13
- 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 +16 -8
- 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 +19 -11
- 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/kendo-drag-event.js +0 -4
- 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 -725
- 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 -467
- 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 -23
- 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 -41
- 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 -37
- 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 -57
- 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 -36
- package/dist/es2015/textbox.module.d.ts +0 -37
- package/dist/es2015/textbox.module.js +0 -72
- package/dist/fesm5/index.js +0 -12454
- 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 -727
- 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 -469
- 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 -25
- 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 -43
- 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 -39
- 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,958 +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 { take } from 'rxjs/operators';
|
|
7
|
-
import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ElementRef, TemplateRef, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
|
|
8
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { FlatColorPickerComponent } from './flatcolorpicker.component';
|
|
11
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
12
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
|
-
import { Keys, KendoInput, isChanged, closest, guid } from '@progress/kendo-angular-common';
|
|
14
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
15
|
-
import { packageMetadata } from '../package-metadata';
|
|
16
|
-
import { PALETTEPRESETS } from './models';
|
|
17
|
-
import { ActiveColorClickEvent, ColorPickerCloseEvent, ColorPickerOpenEvent } from './events';
|
|
18
|
-
import { parseColor } from './utils';
|
|
19
|
-
import { getStylingClasses, isPresent } from '../common/utils';
|
|
20
|
-
import { ColorPickerLocalizationService } from './localization/colorpicker-localization.service';
|
|
21
|
-
import { DEFAULT_ACCESSIBLE_PRESET, DEFAULT_PRESET } from './constants';
|
|
22
|
-
var DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
23
|
-
/**
|
|
24
|
-
* Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
|
|
25
|
-
*
|
|
26
|
-
* The ColorPicker is a powerful tool for choosing colors from Gradient and Palette views
|
|
27
|
-
* which are rendered in its popup. It supports previewing the selected color, reverting it to its previous state or clearing it completely.
|
|
28
|
-
*/
|
|
29
|
-
var ColorPickerComponent = /** @class */ (function () {
|
|
30
|
-
function ColorPickerComponent(host, popupService, cdr, localizationService, ngZone, renderer) {
|
|
31
|
-
var _this = this;
|
|
32
|
-
this.host = host;
|
|
33
|
-
this.popupService = popupService;
|
|
34
|
-
this.cdr = cdr;
|
|
35
|
-
this.localizationService = localizationService;
|
|
36
|
-
this.ngZone = ngZone;
|
|
37
|
-
this.renderer = renderer;
|
|
38
|
-
this.hostClasses = true;
|
|
39
|
-
this.role = 'listbox';
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the views that will be rendered in the popup.
|
|
42
|
-
* By default both the gradient and palette views will be rendered.
|
|
43
|
-
*/
|
|
44
|
-
this.views = ['gradient', 'palette'];
|
|
45
|
-
/**
|
|
46
|
-
* Sets the read-only state of the ColorPicker.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
this.readonly = false;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the disabled state of the ColorPicker.
|
|
53
|
-
*
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
this.disabled = false;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the output format of the ColorPicker.
|
|
59
|
-
*
|
|
60
|
-
* If the input value is in a different format, it will be parsed into the specified output `format`.
|
|
61
|
-
*
|
|
62
|
-
* The supported values are:
|
|
63
|
-
* * `rgba` (default)
|
|
64
|
-
* * `hex`
|
|
65
|
-
*/
|
|
66
|
-
this.format = 'rgba';
|
|
67
|
-
/**
|
|
68
|
-
* Specifies whether the ColorPicker should display a 'Clear color' button.
|
|
69
|
-
*
|
|
70
|
-
* @default true
|
|
71
|
-
*/
|
|
72
|
-
this.clearButton = true;
|
|
73
|
-
/**
|
|
74
|
-
* Displays `Apply` and `Cancel` action buttons and color preview panes.
|
|
75
|
-
*
|
|
76
|
-
* When enabled, the component value will not change immediately upon
|
|
77
|
-
* color selection, but only after the `Apply` button is clicked.
|
|
78
|
-
*
|
|
79
|
-
* The `Cancel` button reverts the current selection to its
|
|
80
|
-
* previous state i.e. to the current value.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
this.preview = false;
|
|
85
|
-
/**
|
|
86
|
-
* Configures the layout of the `Apply` and `Cancel` action buttons.
|
|
87
|
-
*
|
|
88
|
-
* The possible values are:
|
|
89
|
-
* * `start`
|
|
90
|
-
* * `center`
|
|
91
|
-
* * `end` (default)
|
|
92
|
-
* * `stretch`
|
|
93
|
-
*/
|
|
94
|
-
this.actionsLayout = 'end';
|
|
95
|
-
/**
|
|
96
|
-
* Fires each time the value is changed.
|
|
97
|
-
*/
|
|
98
|
-
this.valueChange = new EventEmitter();
|
|
99
|
-
/**
|
|
100
|
-
* Fires each time the popup is about to open.
|
|
101
|
-
* This event is preventable. If you cancel it, the popup will remain closed.
|
|
102
|
-
*/
|
|
103
|
-
this.open = new EventEmitter();
|
|
104
|
-
/**
|
|
105
|
-
* Fires each time the popup is about to close.
|
|
106
|
-
* This event is preventable. If you cancel it, the popup will remain open.
|
|
107
|
-
*/
|
|
108
|
-
this.close = new EventEmitter();
|
|
109
|
-
/**
|
|
110
|
-
* Fires each time ColorPicker is focused.
|
|
111
|
-
*/
|
|
112
|
-
this.onFocus = new EventEmitter();
|
|
113
|
-
/**
|
|
114
|
-
* Fires each time the ColorPicker is blurred.
|
|
115
|
-
*/
|
|
116
|
-
this.onBlur = new EventEmitter();
|
|
117
|
-
/**
|
|
118
|
-
* Fires when the user cancels the current color selection.
|
|
119
|
-
*
|
|
120
|
-
* Fires on preview pane or 'Cancel' button click.
|
|
121
|
-
*/
|
|
122
|
-
this.cancel = new EventEmitter();
|
|
123
|
-
/**
|
|
124
|
-
* Fires each time the left side of the ColorPicker wrapper is clicked.
|
|
125
|
-
* The event is triggered regardless of whether a ColorPicker icon is set or not.
|
|
126
|
-
*
|
|
127
|
-
* The [ActiveColorClickEvent]({% slug api_inputs_activecolorclickevent %}) event provides the option to prevent the popup opening.
|
|
128
|
-
*/
|
|
129
|
-
this.activeColorClick = new EventEmitter();
|
|
130
|
-
/**
|
|
131
|
-
* Fires each time the view is about to change.
|
|
132
|
-
* Used to provide a two-way binding for the `activeView` property.
|
|
133
|
-
*/
|
|
134
|
-
this.activeViewChange = new EventEmitter();
|
|
135
|
-
/**
|
|
136
|
-
* Indicates whether the ColorPicker wrapper is focused.
|
|
137
|
-
*/
|
|
138
|
-
this.isFocused = false;
|
|
139
|
-
this._tabindex = 0;
|
|
140
|
-
this._popupSettings = { animate: true };
|
|
141
|
-
this._paletteSettings = {};
|
|
142
|
-
this._gradientSettings = { opacity: true, delay: 0 };
|
|
143
|
-
this._size = 'medium';
|
|
144
|
-
this._rounded = 'medium';
|
|
145
|
-
this._fillMode = 'solid';
|
|
146
|
-
this.subscriptions = new Subscription();
|
|
147
|
-
this.notifyNgTouched = function () { };
|
|
148
|
-
this.notifyNgChanged = function () { };
|
|
149
|
-
this.domFocusListener = function (event) { return event.stopImmediatePropagation(); };
|
|
150
|
-
validatePackage(packageMetadata);
|
|
151
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
|
|
152
|
-
var rtl = _a.rtl;
|
|
153
|
-
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
ColorPickerComponent_1 = ColorPickerComponent;
|
|
157
|
-
Object.defineProperty(ColorPickerComponent.prototype, "focusedClass", {
|
|
158
|
-
get: function () {
|
|
159
|
-
return this.isFocused;
|
|
160
|
-
},
|
|
161
|
-
enumerable: true,
|
|
162
|
-
configurable: true
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(ColorPickerComponent.prototype, "disabledClass", {
|
|
165
|
-
get: function () {
|
|
166
|
-
return this.disabled;
|
|
167
|
-
},
|
|
168
|
-
enumerable: true,
|
|
169
|
-
configurable: true
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(ColorPickerComponent.prototype, "ariaReadonly", {
|
|
172
|
-
get: function () {
|
|
173
|
-
return this.readonly;
|
|
174
|
-
},
|
|
175
|
-
enumerable: true,
|
|
176
|
-
configurable: true
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(ColorPickerComponent.prototype, "ariaExpanded", {
|
|
179
|
-
get: function () {
|
|
180
|
-
return this.isOpen;
|
|
181
|
-
},
|
|
182
|
-
enumerable: true,
|
|
183
|
-
configurable: true
|
|
184
|
-
});
|
|
185
|
-
Object.defineProperty(ColorPickerComponent.prototype, "hostTabindex", {
|
|
186
|
-
get: function () {
|
|
187
|
-
return this.tabindex;
|
|
188
|
-
},
|
|
189
|
-
enumerable: true,
|
|
190
|
-
configurable: true
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(ColorPickerComponent.prototype, "view", {
|
|
193
|
-
get: function () {
|
|
194
|
-
return (this.views && this.views.length > 0) ? this.views[0] : null;
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* @hidden
|
|
198
|
-
*/
|
|
199
|
-
set: function (view) {
|
|
200
|
-
this.views = [view];
|
|
201
|
-
},
|
|
202
|
-
enumerable: true,
|
|
203
|
-
configurable: true
|
|
204
|
-
});
|
|
205
|
-
Object.defineProperty(ColorPickerComponent.prototype, "value", {
|
|
206
|
-
get: function () {
|
|
207
|
-
return this._value;
|
|
208
|
-
},
|
|
209
|
-
/**
|
|
210
|
-
* Specifies the value of the initially selected color.
|
|
211
|
-
*/
|
|
212
|
-
set: function (value) {
|
|
213
|
-
this._value = parseColor(value, this.format, this.gradientSettings.opacity);
|
|
214
|
-
},
|
|
215
|
-
enumerable: true,
|
|
216
|
-
configurable: true
|
|
217
|
-
});
|
|
218
|
-
Object.defineProperty(ColorPickerComponent.prototype, "popupSettings", {
|
|
219
|
-
get: function () {
|
|
220
|
-
return this._popupSettings;
|
|
221
|
-
},
|
|
222
|
-
/**
|
|
223
|
-
* Configures the popup of the ColorPicker.
|
|
224
|
-
*/
|
|
225
|
-
set: function (value) {
|
|
226
|
-
this._popupSettings = Object.assign(this._popupSettings, value);
|
|
227
|
-
},
|
|
228
|
-
enumerable: true,
|
|
229
|
-
configurable: true
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(ColorPickerComponent.prototype, "paletteSettings", {
|
|
232
|
-
get: function () {
|
|
233
|
-
return this._paletteSettings;
|
|
234
|
-
},
|
|
235
|
-
/**
|
|
236
|
-
* Configures the palette that is displayed in the ColorPicker popup.
|
|
237
|
-
*/
|
|
238
|
-
set: function (value) {
|
|
239
|
-
this._paletteSettings = Object.assign(this._paletteSettings, value);
|
|
240
|
-
},
|
|
241
|
-
enumerable: true,
|
|
242
|
-
configurable: true
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(ColorPickerComponent.prototype, "gradientSettings", {
|
|
245
|
-
get: function () {
|
|
246
|
-
return this._gradientSettings;
|
|
247
|
-
},
|
|
248
|
-
/**
|
|
249
|
-
* Configures the gradient that is displayed in the ColorPicker popup.
|
|
250
|
-
*/
|
|
251
|
-
set: function (value) {
|
|
252
|
-
this._gradientSettings = Object.assign(this._gradientSettings, value);
|
|
253
|
-
},
|
|
254
|
-
enumerable: true,
|
|
255
|
-
configurable: true
|
|
256
|
-
});
|
|
257
|
-
Object.defineProperty(ColorPickerComponent.prototype, "tabindex", {
|
|
258
|
-
get: function () {
|
|
259
|
-
return !this.disabled ? this._tabindex : undefined;
|
|
260
|
-
},
|
|
261
|
-
/**
|
|
262
|
-
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
263
|
-
*
|
|
264
|
-
* @default 0
|
|
265
|
-
*/
|
|
266
|
-
set: function (value) {
|
|
267
|
-
var tabindex = Number(value);
|
|
268
|
-
var defaultValue = 0;
|
|
269
|
-
this._tabindex = !isNaN(tabindex) ? tabindex : defaultValue;
|
|
270
|
-
},
|
|
271
|
-
enumerable: true,
|
|
272
|
-
configurable: true
|
|
273
|
-
});
|
|
274
|
-
Object.defineProperty(ColorPickerComponent.prototype, "size", {
|
|
275
|
-
get: function () {
|
|
276
|
-
return this._size;
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
* The size property specifies the padding of the ColorPicker internal elements
|
|
280
|
-
* ([see example]({% slug appearance_colorpicker %}#toc-size)).
|
|
281
|
-
*
|
|
282
|
-
* The possible values are:
|
|
283
|
-
* * `'small'`
|
|
284
|
-
* * `'medium'` (default)
|
|
285
|
-
* * `'large'`
|
|
286
|
-
* * `null`
|
|
287
|
-
*/
|
|
288
|
-
set: function (size) {
|
|
289
|
-
this.handleClasses(size, 'size');
|
|
290
|
-
this._size = size;
|
|
291
|
-
},
|
|
292
|
-
enumerable: true,
|
|
293
|
-
configurable: true
|
|
294
|
-
});
|
|
295
|
-
Object.defineProperty(ColorPickerComponent.prototype, "rounded", {
|
|
296
|
-
get: function () {
|
|
297
|
-
return this._rounded;
|
|
298
|
-
},
|
|
299
|
-
/**
|
|
300
|
-
* The rounded property specifies the border radius of the ColorPicker
|
|
301
|
-
* ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
|
|
302
|
-
*
|
|
303
|
-
* The possible values are:
|
|
304
|
-
* * `'small'`
|
|
305
|
-
* * `'medium'` (default)
|
|
306
|
-
* * `'large'`
|
|
307
|
-
* * `'full'`
|
|
308
|
-
* * `null`
|
|
309
|
-
*/
|
|
310
|
-
set: function (rounded) {
|
|
311
|
-
this.handleClasses(rounded, 'rounded');
|
|
312
|
-
this._rounded = rounded;
|
|
313
|
-
},
|
|
314
|
-
enumerable: true,
|
|
315
|
-
configurable: true
|
|
316
|
-
});
|
|
317
|
-
Object.defineProperty(ColorPickerComponent.prototype, "fillMode", {
|
|
318
|
-
get: function () {
|
|
319
|
-
return this._fillMode;
|
|
320
|
-
},
|
|
321
|
-
/**
|
|
322
|
-
* The fillMode property specifies the background and border styles of the ColorPicker
|
|
323
|
-
* ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
|
|
324
|
-
*
|
|
325
|
-
* The possible values are:
|
|
326
|
-
* * `'flat'`
|
|
327
|
-
* * `'solid'` (default)
|
|
328
|
-
* * `'outline'`
|
|
329
|
-
* * `null`
|
|
330
|
-
*/
|
|
331
|
-
set: function (fillMode) {
|
|
332
|
-
this.handleClasses(fillMode, 'fillMode');
|
|
333
|
-
this._fillMode = fillMode;
|
|
334
|
-
},
|
|
335
|
-
enumerable: true,
|
|
336
|
-
configurable: true
|
|
337
|
-
});
|
|
338
|
-
Object.defineProperty(ColorPickerComponent.prototype, "isOpen", {
|
|
339
|
-
/**
|
|
340
|
-
* Indicates whether the ColorPicker popup is open.
|
|
341
|
-
*/
|
|
342
|
-
get: function () {
|
|
343
|
-
return isPresent(this.popupRef);
|
|
344
|
-
},
|
|
345
|
-
enumerable: true,
|
|
346
|
-
configurable: true
|
|
347
|
-
});
|
|
348
|
-
Object.defineProperty(ColorPickerComponent.prototype, "iconStyles", {
|
|
349
|
-
/**
|
|
350
|
-
* @hidden
|
|
351
|
-
*/
|
|
352
|
-
get: function () {
|
|
353
|
-
if (this.iconClass) {
|
|
354
|
-
return this.iconClass;
|
|
355
|
-
}
|
|
356
|
-
if (this.icon) {
|
|
357
|
-
return "k-icon k-i-" + this.icon;
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
enumerable: true,
|
|
361
|
-
configurable: true
|
|
362
|
-
});
|
|
363
|
-
ColorPickerComponent.prototype.ngOnInit = function () {
|
|
364
|
-
var defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET : DEFAULT_ACCESSIBLE_PRESET;
|
|
365
|
-
var settingsPalette = this._paletteSettings.palette;
|
|
366
|
-
var presetColumns = typeof settingsPalette === 'string' && PALETTEPRESETS[settingsPalette] ?
|
|
367
|
-
PALETTEPRESETS[settingsPalette].columns :
|
|
368
|
-
undefined;
|
|
369
|
-
this._paletteSettings = {
|
|
370
|
-
palette: settingsPalette || defaultPreset,
|
|
371
|
-
tileSize: this._paletteSettings.tileSize || 24,
|
|
372
|
-
columns: this._paletteSettings.columns || presetColumns || 10
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
ColorPickerComponent.prototype.ngAfterViewInit = function () {
|
|
376
|
-
var _this = this;
|
|
377
|
-
var stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
378
|
-
stylingInputs.forEach(function (input) {
|
|
379
|
-
_this.handleClasses(_this[input], input);
|
|
380
|
-
});
|
|
381
|
-
this.setHostElementAriaLabel();
|
|
382
|
-
this.handleHostId();
|
|
383
|
-
this.initDomEvents();
|
|
384
|
-
};
|
|
385
|
-
ColorPickerComponent.prototype.ngOnChanges = function (changes) {
|
|
386
|
-
if (changes.format && changes.format.currentValue === 'name') {
|
|
387
|
-
this.activeView = 'palette';
|
|
388
|
-
}
|
|
389
|
-
if (this.activeView === 'gradient' && this.gradientSettings.opacity) {
|
|
390
|
-
this.format = 'rgba';
|
|
391
|
-
this.value = parseColor(this.value, this.format, this.gradientSettings.opacity);
|
|
392
|
-
}
|
|
393
|
-
if (isChanged('value', changes)) {
|
|
394
|
-
this.setHostElementAriaLabel();
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
ColorPickerComponent.prototype.ngOnDestroy = function () {
|
|
398
|
-
this.closePopup();
|
|
399
|
-
if (this.dynamicRTLSubscription) {
|
|
400
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
401
|
-
}
|
|
402
|
-
this.subscriptions.unsubscribe();
|
|
403
|
-
this.handleDomEvents('remove', DOM_FOCUS_EVENTS);
|
|
404
|
-
};
|
|
405
|
-
/**
|
|
406
|
-
* @hidden
|
|
407
|
-
*/
|
|
408
|
-
ColorPickerComponent.prototype.handleCancelEvent = function (ev) {
|
|
409
|
-
this.cancel.emit(ev);
|
|
410
|
-
};
|
|
411
|
-
/**
|
|
412
|
-
* @hidden
|
|
413
|
-
*/
|
|
414
|
-
ColorPickerComponent.prototype.togglePopup = function () {
|
|
415
|
-
this.focus();
|
|
416
|
-
this.toggleWithEvents(!this.isOpen);
|
|
417
|
-
};
|
|
418
|
-
/**
|
|
419
|
-
* @hidden
|
|
420
|
-
*/
|
|
421
|
-
ColorPickerComponent.prototype.handleWrapperClick = function (event) {
|
|
422
|
-
var _this = this;
|
|
423
|
-
if (this.disabled) {
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
this.focus();
|
|
427
|
-
if (closest(event.target, function (element) { return element === _this.activeColor.nativeElement; })) {
|
|
428
|
-
var event_1 = new ActiveColorClickEvent(this.value);
|
|
429
|
-
this.activeColorClick.emit(event_1);
|
|
430
|
-
if (!event_1.isOpenPrevented() || this.isOpen) {
|
|
431
|
-
this.toggleWithEvents(!this.isOpen);
|
|
432
|
-
}
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
this.toggleWithEvents(!this.isOpen);
|
|
436
|
-
};
|
|
437
|
-
/**
|
|
438
|
-
* Focuses the wrapper of the ColorPicker.
|
|
439
|
-
*/
|
|
440
|
-
ColorPickerComponent.prototype.focus = function () {
|
|
441
|
-
this.isFocused = true;
|
|
442
|
-
this.host.nativeElement.focus();
|
|
443
|
-
};
|
|
444
|
-
/**
|
|
445
|
-
* @hidden
|
|
446
|
-
*/
|
|
447
|
-
ColorPickerComponent.prototype.handleWrapperFocus = function () {
|
|
448
|
-
var _this = this;
|
|
449
|
-
if (this.isFocused) {
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
this.ngZone.run(function () {
|
|
453
|
-
_this.focus();
|
|
454
|
-
_this.onFocus.emit();
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
/**
|
|
458
|
-
* Blurs the ColorPicker.
|
|
459
|
-
*/
|
|
460
|
-
ColorPickerComponent.prototype.blur = function () {
|
|
461
|
-
this.isFocused = false;
|
|
462
|
-
this.host.nativeElement.blur();
|
|
463
|
-
this.notifyNgTouched();
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* @hidden
|
|
467
|
-
*/
|
|
468
|
-
ColorPickerComponent.prototype.handleWrapperBlur = function () {
|
|
469
|
-
var _this = this;
|
|
470
|
-
if (this.isOpen) {
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
this.ngZone.run(function () {
|
|
474
|
-
_this.onBlur.emit();
|
|
475
|
-
_this.isFocused = false;
|
|
476
|
-
});
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Clears the value of the ColorPicker.
|
|
480
|
-
*/
|
|
481
|
-
ColorPickerComponent.prototype.reset = function () {
|
|
482
|
-
if (!isPresent(this.value)) {
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
this._value = undefined;
|
|
486
|
-
this.setHostElementAriaLabel();
|
|
487
|
-
this.notifyNgChanged(undefined);
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Toggles the popup of the ColorPicker.
|
|
491
|
-
* Does not trigger the `open` and `close` events of the component.
|
|
492
|
-
*
|
|
493
|
-
* @param open An optional parameter. Specifies whether the popup will be opened or closed.
|
|
494
|
-
*/
|
|
495
|
-
ColorPickerComponent.prototype.toggle = function (open) {
|
|
496
|
-
if (this.disabled || this.readonly) {
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
this.cdr.markForCheck();
|
|
500
|
-
this.closePopup();
|
|
501
|
-
open = isPresent(open) ? open : !this.isOpen;
|
|
502
|
-
if (open) {
|
|
503
|
-
this.openPopup();
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
/**
|
|
507
|
-
* @hidden
|
|
508
|
-
*/
|
|
509
|
-
ColorPickerComponent.prototype.handleValueChange = function (color) {
|
|
510
|
-
var parsedColor = parseColor(color, this.format, this.gradientSettings.opacity);
|
|
511
|
-
var valueChange = parsedColor !== this.value;
|
|
512
|
-
if (valueChange) {
|
|
513
|
-
this.value = parsedColor;
|
|
514
|
-
this.valueChange.emit(parsedColor);
|
|
515
|
-
this.setHostElementAriaLabel();
|
|
516
|
-
this.notifyNgChanged(parsedColor);
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
/**
|
|
520
|
-
* @hidden
|
|
521
|
-
*/
|
|
522
|
-
ColorPickerComponent.prototype.handlePopupBlur = function (event) {
|
|
523
|
-
if (this.popupBlurInvalid(event)) {
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
|
-
this.isFocused = false;
|
|
527
|
-
this.onBlur.emit();
|
|
528
|
-
this.notifyNgTouched();
|
|
529
|
-
this.toggleWithEvents(false);
|
|
530
|
-
};
|
|
531
|
-
/**
|
|
532
|
-
* @hidden
|
|
533
|
-
*/
|
|
534
|
-
ColorPickerComponent.prototype.writeValue = function (value) {
|
|
535
|
-
this.value = value;
|
|
536
|
-
};
|
|
537
|
-
/**
|
|
538
|
-
* @hidden
|
|
539
|
-
*/
|
|
540
|
-
ColorPickerComponent.prototype.registerOnChange = function (fn) {
|
|
541
|
-
this.notifyNgChanged = fn;
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* @hidden
|
|
545
|
-
*/
|
|
546
|
-
ColorPickerComponent.prototype.registerOnTouched = function (fn) {
|
|
547
|
-
this.notifyNgTouched = fn;
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* @hidden
|
|
551
|
-
*/
|
|
552
|
-
ColorPickerComponent.prototype.setDisabledState = function (isDisabled) {
|
|
553
|
-
this.cdr.markForCheck();
|
|
554
|
-
this.disabled = isDisabled;
|
|
555
|
-
};
|
|
556
|
-
/**
|
|
557
|
-
* @hidden
|
|
558
|
-
*/
|
|
559
|
-
ColorPickerComponent.prototype.handleWrapperKeyDown = function (event) {
|
|
560
|
-
var _this = this;
|
|
561
|
-
if (event.keyCode === Keys.ArrowDown || event.keyCode === Keys.Enter) {
|
|
562
|
-
event.preventDefault();
|
|
563
|
-
this.ngZone.run(function () {
|
|
564
|
-
_this.toggleWithEvents(true);
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
/**
|
|
569
|
-
* @hidden
|
|
570
|
-
*/
|
|
571
|
-
ColorPickerComponent.prototype.handlePopupKeyDown = function (event) {
|
|
572
|
-
if (event.keyCode === Keys.Escape) {
|
|
573
|
-
this.toggleWithEvents(false);
|
|
574
|
-
this.host.nativeElement.focus();
|
|
575
|
-
}
|
|
576
|
-
if (event.keyCode === Keys.Tab) {
|
|
577
|
-
var currentElement = event.shiftKey ? this.firstFocusableElement.nativeElement : this.lastFocusableElement.nativeElement;
|
|
578
|
-
var nextElement = event.shiftKey ? this.lastFocusableElement.nativeElement : this.firstFocusableElement.nativeElement;
|
|
579
|
-
if (event.target === currentElement) {
|
|
580
|
-
event.preventDefault();
|
|
581
|
-
nextElement.focus();
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
/**
|
|
586
|
-
* @hidden
|
|
587
|
-
* Used by the FloatingLabel to determine if the component is empty.
|
|
588
|
-
*/
|
|
589
|
-
ColorPickerComponent.prototype.isEmpty = function () {
|
|
590
|
-
return false;
|
|
591
|
-
};
|
|
592
|
-
ColorPickerComponent.prototype.setHostElementAriaLabel = function () {
|
|
593
|
-
var ariaLabelValue = "" + (this.value ? this.value : this.localizationService.get('colorPickerNoColor'));
|
|
594
|
-
this.renderer.setAttribute(this.host.nativeElement, 'aria-label', ariaLabelValue);
|
|
595
|
-
};
|
|
596
|
-
ColorPickerComponent.prototype.handleClasses = function (value, input) {
|
|
597
|
-
var elem = this.host.nativeElement;
|
|
598
|
-
var classes = getStylingClasses('picker', input, this[input], value);
|
|
599
|
-
if (classes.toRemove) {
|
|
600
|
-
this.renderer.removeClass(elem, classes.toRemove);
|
|
601
|
-
}
|
|
602
|
-
if (classes.toAdd) {
|
|
603
|
-
this.renderer.addClass(elem, classes.toAdd);
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
ColorPickerComponent.prototype.popupBlurInvalid = function (ev) {
|
|
607
|
-
var _this = this;
|
|
608
|
-
var focusInFlatColorPickerElement = this.popupRef.popupElement.contains(ev.relatedTarget);
|
|
609
|
-
var hostClicked = closest(ev.relatedTarget, function (element) { return element === _this.host.nativeElement; });
|
|
610
|
-
return hostClicked || focusInFlatColorPickerElement;
|
|
611
|
-
};
|
|
612
|
-
ColorPickerComponent.prototype.toggleWithEvents = function (open) {
|
|
613
|
-
var sameState = this.isOpen === open;
|
|
614
|
-
if (this.disabled || this.readonly || sameState) {
|
|
615
|
-
return;
|
|
616
|
-
}
|
|
617
|
-
var eventArgs;
|
|
618
|
-
if (open) {
|
|
619
|
-
eventArgs = new ColorPickerOpenEvent();
|
|
620
|
-
this.open.emit(eventArgs);
|
|
621
|
-
}
|
|
622
|
-
else {
|
|
623
|
-
eventArgs = new ColorPickerCloseEvent();
|
|
624
|
-
this.close.emit(eventArgs);
|
|
625
|
-
}
|
|
626
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
627
|
-
this.toggle(open);
|
|
628
|
-
}
|
|
629
|
-
if (open) {
|
|
630
|
-
this.focusFirstElement();
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
ColorPickerComponent.prototype.focusFirstElement = function () {
|
|
634
|
-
var _this = this;
|
|
635
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
636
|
-
if (_this.flatColorPicker) {
|
|
637
|
-
var gradient = _this.flatColorPicker.gradient;
|
|
638
|
-
var elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
639
|
-
_this.flatColorPicker.palette.host;
|
|
640
|
-
elementToFocus.nativeElement.focus();
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
ColorPickerComponent.prototype.openPopup = function () {
|
|
645
|
-
var _this = this;
|
|
646
|
-
var horizontalAlign = this.direction === "rtl" ? "right" : "left";
|
|
647
|
-
var anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
|
|
648
|
-
var popupPosition = { horizontal: horizontalAlign, vertical: "top" };
|
|
649
|
-
this.popupRef = this.popupService.open({
|
|
650
|
-
anchor: this.activeColor,
|
|
651
|
-
animate: this.popupSettings.animate,
|
|
652
|
-
appendTo: this.popupSettings.appendTo,
|
|
653
|
-
popupAlign: popupPosition,
|
|
654
|
-
anchorAlign: anchorPosition,
|
|
655
|
-
popupClass: 'k-colorpicker-popup',
|
|
656
|
-
content: this.popupTemplate,
|
|
657
|
-
positionMode: 'absolute'
|
|
658
|
-
});
|
|
659
|
-
this.popupRef.popupAnchorViewportLeave.subscribe(function () {
|
|
660
|
-
_this.toggleWithEvents(false);
|
|
661
|
-
if (!_this.isOpen) {
|
|
662
|
-
_this.host.nativeElement.focus({
|
|
663
|
-
preventScroll: true
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
ColorPickerComponent.prototype.closePopup = function () {
|
|
669
|
-
if (!this.isOpen) {
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
this.popupRef.close();
|
|
673
|
-
this.popupRef = null;
|
|
674
|
-
};
|
|
675
|
-
Object.defineProperty(ColorPickerComponent.prototype, "firstFocusableElement", {
|
|
676
|
-
get: function () {
|
|
677
|
-
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
678
|
-
var gradient = this.flatColorPicker.gradient;
|
|
679
|
-
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
680
|
-
}
|
|
681
|
-
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
682
|
-
},
|
|
683
|
-
enumerable: true,
|
|
684
|
-
configurable: true
|
|
685
|
-
});
|
|
686
|
-
Object.defineProperty(ColorPickerComponent.prototype, "lastFocusableElement", {
|
|
687
|
-
get: function () {
|
|
688
|
-
if (this.preview) {
|
|
689
|
-
return this.flatColorPicker.footer.lastButton;
|
|
690
|
-
}
|
|
691
|
-
if (this.flatColorPicker.palette) {
|
|
692
|
-
return this.flatColorPicker.palette.host;
|
|
693
|
-
}
|
|
694
|
-
var gradient = this.flatColorPicker.gradient;
|
|
695
|
-
var inputs = gradient && gradient.inputs;
|
|
696
|
-
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
697
|
-
return inputs.hexInput;
|
|
698
|
-
}
|
|
699
|
-
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
700
|
-
},
|
|
701
|
-
enumerable: true,
|
|
702
|
-
configurable: true
|
|
703
|
-
});
|
|
704
|
-
ColorPickerComponent.prototype.handleDomEvents = function (action, events) {
|
|
705
|
-
var _this = this;
|
|
706
|
-
var hostElement = this.host.nativeElement;
|
|
707
|
-
events.forEach(function (ev) { return hostElement[action + "EventListener"](ev, _this.domFocusListener, true); });
|
|
708
|
-
};
|
|
709
|
-
ColorPickerComponent.prototype.initDomEvents = function () {
|
|
710
|
-
var _this = this;
|
|
711
|
-
if (!this.host) {
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
var hostElement = this.host.nativeElement;
|
|
715
|
-
this.ngZone.runOutsideAngular(function () {
|
|
716
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'focusin', function () {
|
|
717
|
-
_this.handleWrapperFocus();
|
|
718
|
-
}));
|
|
719
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'focusout', function (event) {
|
|
720
|
-
var closestPopup = _this.popupRef ?
|
|
721
|
-
closest(event.relatedTarget, function (element) { return element === _this.flatColorPicker.host.nativeElement; }) :
|
|
722
|
-
false;
|
|
723
|
-
var closestWrapper = closest(event.relatedTarget, function (element) { return element === _this.host.nativeElement; });
|
|
724
|
-
if (!closestPopup && !closestWrapper) {
|
|
725
|
-
_this.handleWrapperBlur();
|
|
726
|
-
}
|
|
727
|
-
}));
|
|
728
|
-
_this.handleDomEvents('add', DOM_FOCUS_EVENTS);
|
|
729
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'keydown', function (event) {
|
|
730
|
-
_this.handleWrapperKeyDown(event);
|
|
731
|
-
}));
|
|
732
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'click', function (event) {
|
|
733
|
-
_this.ngZone.run(function () {
|
|
734
|
-
_this.handleWrapperClick(event);
|
|
735
|
-
});
|
|
736
|
-
}));
|
|
737
|
-
});
|
|
738
|
-
};
|
|
739
|
-
ColorPickerComponent.prototype.handleHostId = function () {
|
|
740
|
-
var hostElement = this.host.nativeElement;
|
|
741
|
-
var existingId = hostElement.getAttribute('id');
|
|
742
|
-
if (existingId) {
|
|
743
|
-
this.focusableId = existingId;
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
var id = "k-" + guid();
|
|
747
|
-
hostElement.setAttribute('id', id);
|
|
748
|
-
this.focusableId = id;
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
var ColorPickerComponent_1;
|
|
752
|
-
tslib_1.__decorate([
|
|
753
|
-
HostBinding('class.k-colorpicker'),
|
|
754
|
-
HostBinding('class.k-icon-picker'),
|
|
755
|
-
HostBinding('class.k-picker'),
|
|
756
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
757
|
-
], ColorPickerComponent.prototype, "hostClasses", void 0);
|
|
758
|
-
tslib_1.__decorate([
|
|
759
|
-
HostBinding('class.k-focus'),
|
|
760
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
761
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
762
|
-
], ColorPickerComponent.prototype, "focusedClass", null);
|
|
763
|
-
tslib_1.__decorate([
|
|
764
|
-
HostBinding('attr.aria-disabled'),
|
|
765
|
-
HostBinding('class.k-disabled'),
|
|
766
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
767
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
768
|
-
], ColorPickerComponent.prototype, "disabledClass", null);
|
|
769
|
-
tslib_1.__decorate([
|
|
770
|
-
HostBinding('attr.aria-readonly'),
|
|
771
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
772
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
773
|
-
], ColorPickerComponent.prototype, "ariaReadonly", null);
|
|
774
|
-
tslib_1.__decorate([
|
|
775
|
-
HostBinding('attr.aria-expanded'),
|
|
776
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
777
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
778
|
-
], ColorPickerComponent.prototype, "ariaExpanded", null);
|
|
779
|
-
tslib_1.__decorate([
|
|
780
|
-
HostBinding('attr.tabindex'),
|
|
781
|
-
tslib_1.__metadata("design:type", Number),
|
|
782
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
783
|
-
], ColorPickerComponent.prototype, "hostTabindex", null);
|
|
784
|
-
tslib_1.__decorate([
|
|
785
|
-
HostBinding('attr.dir'),
|
|
786
|
-
tslib_1.__metadata("design:type", String)
|
|
787
|
-
], ColorPickerComponent.prototype, "direction", void 0);
|
|
788
|
-
tslib_1.__decorate([
|
|
789
|
-
HostBinding('attr.role'),
|
|
790
|
-
tslib_1.__metadata("design:type", String)
|
|
791
|
-
], ColorPickerComponent.prototype, "role", void 0);
|
|
792
|
-
tslib_1.__decorate([
|
|
793
|
-
Input(),
|
|
794
|
-
tslib_1.__metadata("design:type", Array)
|
|
795
|
-
], ColorPickerComponent.prototype, "views", void 0);
|
|
796
|
-
tslib_1.__decorate([
|
|
797
|
-
Input(),
|
|
798
|
-
tslib_1.__metadata("design:type", String),
|
|
799
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
800
|
-
], ColorPickerComponent.prototype, "view", null);
|
|
801
|
-
tslib_1.__decorate([
|
|
802
|
-
Input(),
|
|
803
|
-
tslib_1.__metadata("design:type", String)
|
|
804
|
-
], ColorPickerComponent.prototype, "activeView", void 0);
|
|
805
|
-
tslib_1.__decorate([
|
|
806
|
-
Input(),
|
|
807
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
808
|
-
], ColorPickerComponent.prototype, "readonly", void 0);
|
|
809
|
-
tslib_1.__decorate([
|
|
810
|
-
Input(),
|
|
811
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
812
|
-
], ColorPickerComponent.prototype, "disabled", void 0);
|
|
813
|
-
tslib_1.__decorate([
|
|
814
|
-
Input(),
|
|
815
|
-
tslib_1.__metadata("design:type", String)
|
|
816
|
-
], ColorPickerComponent.prototype, "format", void 0);
|
|
817
|
-
tslib_1.__decorate([
|
|
818
|
-
Input(),
|
|
819
|
-
tslib_1.__metadata("design:type", String),
|
|
820
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
821
|
-
], ColorPickerComponent.prototype, "value", null);
|
|
822
|
-
tslib_1.__decorate([
|
|
823
|
-
Input(),
|
|
824
|
-
tslib_1.__metadata("design:type", Object),
|
|
825
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
826
|
-
], ColorPickerComponent.prototype, "popupSettings", null);
|
|
827
|
-
tslib_1.__decorate([
|
|
828
|
-
Input(),
|
|
829
|
-
tslib_1.__metadata("design:type", Object),
|
|
830
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
831
|
-
], ColorPickerComponent.prototype, "paletteSettings", null);
|
|
832
|
-
tslib_1.__decorate([
|
|
833
|
-
Input(),
|
|
834
|
-
tslib_1.__metadata("design:type", Object),
|
|
835
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
836
|
-
], ColorPickerComponent.prototype, "gradientSettings", null);
|
|
837
|
-
tslib_1.__decorate([
|
|
838
|
-
Input(),
|
|
839
|
-
tslib_1.__metadata("design:type", String)
|
|
840
|
-
], ColorPickerComponent.prototype, "icon", void 0);
|
|
841
|
-
tslib_1.__decorate([
|
|
842
|
-
Input(),
|
|
843
|
-
tslib_1.__metadata("design:type", Object)
|
|
844
|
-
], ColorPickerComponent.prototype, "iconClass", void 0);
|
|
845
|
-
tslib_1.__decorate([
|
|
846
|
-
Input(),
|
|
847
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
848
|
-
], ColorPickerComponent.prototype, "clearButton", void 0);
|
|
849
|
-
tslib_1.__decorate([
|
|
850
|
-
Input(),
|
|
851
|
-
tslib_1.__metadata("design:type", Number),
|
|
852
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
853
|
-
], ColorPickerComponent.prototype, "tabindex", null);
|
|
854
|
-
tslib_1.__decorate([
|
|
855
|
-
Input(),
|
|
856
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
857
|
-
], ColorPickerComponent.prototype, "preview", void 0);
|
|
858
|
-
tslib_1.__decorate([
|
|
859
|
-
Input(),
|
|
860
|
-
tslib_1.__metadata("design:type", String)
|
|
861
|
-
], ColorPickerComponent.prototype, "actionsLayout", void 0);
|
|
862
|
-
tslib_1.__decorate([
|
|
863
|
-
Input(),
|
|
864
|
-
tslib_1.__metadata("design:type", String),
|
|
865
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
866
|
-
], ColorPickerComponent.prototype, "size", null);
|
|
867
|
-
tslib_1.__decorate([
|
|
868
|
-
Input(),
|
|
869
|
-
tslib_1.__metadata("design:type", String),
|
|
870
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
871
|
-
], ColorPickerComponent.prototype, "rounded", null);
|
|
872
|
-
tslib_1.__decorate([
|
|
873
|
-
Input(),
|
|
874
|
-
tslib_1.__metadata("design:type", String),
|
|
875
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
876
|
-
], ColorPickerComponent.prototype, "fillMode", null);
|
|
877
|
-
tslib_1.__decorate([
|
|
878
|
-
Output(),
|
|
879
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
880
|
-
], ColorPickerComponent.prototype, "valueChange", void 0);
|
|
881
|
-
tslib_1.__decorate([
|
|
882
|
-
Output(),
|
|
883
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
884
|
-
], ColorPickerComponent.prototype, "open", void 0);
|
|
885
|
-
tslib_1.__decorate([
|
|
886
|
-
Output(),
|
|
887
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
888
|
-
], ColorPickerComponent.prototype, "close", void 0);
|
|
889
|
-
tslib_1.__decorate([
|
|
890
|
-
Output('focus'),
|
|
891
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
892
|
-
], ColorPickerComponent.prototype, "onFocus", void 0);
|
|
893
|
-
tslib_1.__decorate([
|
|
894
|
-
Output('blur'),
|
|
895
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
896
|
-
], ColorPickerComponent.prototype, "onBlur", void 0);
|
|
897
|
-
tslib_1.__decorate([
|
|
898
|
-
Output(),
|
|
899
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
900
|
-
], ColorPickerComponent.prototype, "cancel", void 0);
|
|
901
|
-
tslib_1.__decorate([
|
|
902
|
-
Output(),
|
|
903
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
904
|
-
], ColorPickerComponent.prototype, "activeColorClick", void 0);
|
|
905
|
-
tslib_1.__decorate([
|
|
906
|
-
Output(),
|
|
907
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
908
|
-
], ColorPickerComponent.prototype, "activeViewChange", void 0);
|
|
909
|
-
tslib_1.__decorate([
|
|
910
|
-
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
911
|
-
tslib_1.__metadata("design:type", ViewContainerRef)
|
|
912
|
-
], ColorPickerComponent.prototype, "container", void 0);
|
|
913
|
-
tslib_1.__decorate([
|
|
914
|
-
ViewChild('activeColor', { static: true }),
|
|
915
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
916
|
-
], ColorPickerComponent.prototype, "activeColor", void 0);
|
|
917
|
-
tslib_1.__decorate([
|
|
918
|
-
ViewChild('popupTemplate', { static: true }),
|
|
919
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
920
|
-
], ColorPickerComponent.prototype, "popupTemplate", void 0);
|
|
921
|
-
tslib_1.__decorate([
|
|
922
|
-
ViewChild('flatColorPicker', { static: false }),
|
|
923
|
-
tslib_1.__metadata("design:type", FlatColorPickerComponent)
|
|
924
|
-
], ColorPickerComponent.prototype, "flatColorPicker", void 0);
|
|
925
|
-
ColorPickerComponent = ColorPickerComponent_1 = tslib_1.__decorate([
|
|
926
|
-
Component({
|
|
927
|
-
exportAs: 'kendoColorPicker',
|
|
928
|
-
selector: 'kendo-colorpicker',
|
|
929
|
-
providers: [{
|
|
930
|
-
multi: true,
|
|
931
|
-
provide: NG_VALUE_ACCESSOR,
|
|
932
|
-
useExisting: forwardRef(function () { return ColorPickerComponent_1; })
|
|
933
|
-
}, {
|
|
934
|
-
provide: KendoInput,
|
|
935
|
-
useExisting: forwardRef(function () { return ColorPickerComponent_1; })
|
|
936
|
-
},
|
|
937
|
-
ColorPickerLocalizationService,
|
|
938
|
-
{
|
|
939
|
-
provide: LocalizationService,
|
|
940
|
-
useExisting: ColorPickerLocalizationService
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
provide: L10N_PREFIX,
|
|
944
|
-
useValue: 'kendo.colorpicker'
|
|
945
|
-
}
|
|
946
|
-
],
|
|
947
|
-
template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]=\"value\"\n [format]=\"format\"\n [views]=\"views\"\n [activeView]=\"activeView\"\n [actionsLayout]=\"actionsLayout\"\n [preview]=\"preview\"\n [gradientSettings]=\"gradientSettings\"\n [paletteSettings]=\"paletteSettings\"\n [clearButton]=\"clearButton\"\n (cancel)=\"handleCancelEvent($event)\"\n (focusout)=\"handlePopupBlur($event)\"\n (valueChange)=\"handleValueChange($event)\"\n (keydown)=\"handlePopupKeyDown($event)\"\n (activeViewChange)=\"activeViewChange.emit($event)\"\n (actionButtonClick)=\"togglePopup()\">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
948
|
-
}),
|
|
949
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
950
|
-
PopupService,
|
|
951
|
-
ChangeDetectorRef,
|
|
952
|
-
LocalizationService,
|
|
953
|
-
NgZone,
|
|
954
|
-
Renderer2])
|
|
955
|
-
], ColorPickerComponent);
|
|
956
|
-
return ColorPickerComponent;
|
|
957
|
-
}());
|
|
958
|
-
export { ColorPickerComponent };
|