@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,549 +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, ElementRef, EventEmitter, forwardRef, HostBinding, Input, isDevMode, NgZone, ChangeDetectorRef, Output, Renderer2, ViewChild } from "@angular/core";
|
|
7
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
8
|
-
import { Subscription } from 'rxjs';
|
|
9
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { isChanged, KendoInput } from '@progress/kendo-angular-common';
|
|
11
|
-
import { validatePackage } from "@progress/kendo-licensing";
|
|
12
|
-
import { FlatColorPickerLocalizationService } from './localization/flatcolorpicker-localization.service';
|
|
13
|
-
import { FlatColorPickerService } from './services/flatcolorpicker.service';
|
|
14
|
-
import { packageMetadata } from "../package-metadata";
|
|
15
|
-
import { ColorPickerCancelEvent } from './events';
|
|
16
|
-
import { parseColor } from './utils';
|
|
17
|
-
import { isPresent } from '../common/utils';
|
|
18
|
-
import { ColorGradientComponent } from './color-gradient.component';
|
|
19
|
-
import { ColorPaletteComponent } from './color-palette.component';
|
|
20
|
-
import { FlatColorPickerHeaderComponent } from './flatcolorpicker-header.component';
|
|
21
|
-
import { FlatColorPickerActionButtonsComponent } from './flatcolorpicker-actions.component';
|
|
22
|
-
/**
|
|
23
|
-
* Represents the [Kendo UI FlatColorPicker component for Angular]({% slug overview_flatcolorpicker %}).
|
|
24
|
-
*
|
|
25
|
-
* The FlatColorPicker is a powerful tool which allows the user to choose colors through palettes with predefined sets of colors and
|
|
26
|
-
* through a gradient that renders an hsv canvas. It supports previewing the selected color, reverting it to its previous state or clearing it completely.
|
|
27
|
-
*/
|
|
28
|
-
var FlatColorPickerComponent = /** @class */ (function () {
|
|
29
|
-
function FlatColorPickerComponent(host, service, localizationService, cdr, renderer, ngZone) {
|
|
30
|
-
var _this = this;
|
|
31
|
-
this.host = host;
|
|
32
|
-
this.service = service;
|
|
33
|
-
this.localizationService = localizationService;
|
|
34
|
-
this.cdr = cdr;
|
|
35
|
-
this.renderer = renderer;
|
|
36
|
-
this.ngZone = ngZone;
|
|
37
|
-
this.hostClasses = true;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the read-only state of the FlatColorPicker.
|
|
40
|
-
*
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
this.readonly = false;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the disabled state of the FlatColorPicker.
|
|
46
|
-
*
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
this.disabled = false;
|
|
50
|
-
/**
|
|
51
|
-
* Specifies the output format of the FlatColorPicker.
|
|
52
|
-
*
|
|
53
|
-
* If the input value is in a different format, it will be parsed into the specified output `format`.
|
|
54
|
-
*
|
|
55
|
-
* The supported values are:
|
|
56
|
-
* * `rgba` (default)
|
|
57
|
-
* * `hex`
|
|
58
|
-
*/
|
|
59
|
-
this.format = 'rgba';
|
|
60
|
-
/**
|
|
61
|
-
* Specifies whether the FlatColorPicker should display a 'Clear color' button.
|
|
62
|
-
*
|
|
63
|
-
* @default true
|
|
64
|
-
*/
|
|
65
|
-
this.clearButton = true;
|
|
66
|
-
/**
|
|
67
|
-
* Displays `Apply` and `Cancel` action buttons and a color preview pane.
|
|
68
|
-
*
|
|
69
|
-
* When enabled, the component value will not change immediately upon
|
|
70
|
-
* color selection, but only after the `Apply` button is clicked.
|
|
71
|
-
*
|
|
72
|
-
* The `Cancel` button reverts the current selection to its
|
|
73
|
-
* initial state i.e. to the current value.
|
|
74
|
-
*
|
|
75
|
-
* @default true
|
|
76
|
-
*/
|
|
77
|
-
this.preview = true;
|
|
78
|
-
/**
|
|
79
|
-
* Configures the layout of the `Apply` and `Cancel` action buttons.
|
|
80
|
-
* * `start`
|
|
81
|
-
* * `center`
|
|
82
|
-
* * `end` (default)
|
|
83
|
-
* * `stretch`
|
|
84
|
-
*/
|
|
85
|
-
this.actionsLayout = 'end';
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the views that will be rendered. Default value is gradient and palette.
|
|
88
|
-
*/
|
|
89
|
-
this.views = ['gradient', 'palette'];
|
|
90
|
-
/**
|
|
91
|
-
* Fires each time the component value is changed.
|
|
92
|
-
*/
|
|
93
|
-
this.valueChange = new EventEmitter();
|
|
94
|
-
/**
|
|
95
|
-
* Fires when the user cancels the current color selection.
|
|
96
|
-
*
|
|
97
|
-
* The event is emitted on preview pane or on 'Cancel' button click.
|
|
98
|
-
*/
|
|
99
|
-
this.cancel = new EventEmitter();
|
|
100
|
-
/**
|
|
101
|
-
* Fires each time the view is about to change.
|
|
102
|
-
* Used to provide a two-way binding for the `activeView` property.
|
|
103
|
-
*/
|
|
104
|
-
this.activeViewChange = new EventEmitter();
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
this.actionButtonClick = new EventEmitter();
|
|
109
|
-
this._tabindex = 0;
|
|
110
|
-
this._gradientSettings = { opacity: true, delay: 0 };
|
|
111
|
-
this._paletteSettings = {};
|
|
112
|
-
this.subscriptions = new Subscription();
|
|
113
|
-
this.notifyNgChanged = function () { };
|
|
114
|
-
this.notifyNgTouched = function () { };
|
|
115
|
-
validatePackage(packageMetadata);
|
|
116
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
|
|
117
|
-
var rtl = _a.rtl;
|
|
118
|
-
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
FlatColorPickerComponent_1 = FlatColorPickerComponent;
|
|
122
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "disabledClass", {
|
|
123
|
-
get: function () {
|
|
124
|
-
return this.disabled;
|
|
125
|
-
},
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "ariaReadonly", {
|
|
130
|
-
get: function () {
|
|
131
|
-
return this.readonly;
|
|
132
|
-
},
|
|
133
|
-
enumerable: true,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "hostTabindex", {
|
|
137
|
-
get: function () {
|
|
138
|
-
return this.tabindex;
|
|
139
|
-
},
|
|
140
|
-
enumerable: true,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "value", {
|
|
144
|
-
get: function () {
|
|
145
|
-
return this._value;
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
* Specifies the initially selected color.
|
|
149
|
-
*/
|
|
150
|
-
set: function (value) {
|
|
151
|
-
this._value = parseColor(value, this.format, this.gradientSettings.opacity);
|
|
152
|
-
},
|
|
153
|
-
enumerable: true,
|
|
154
|
-
configurable: true
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "tabindex", {
|
|
157
|
-
get: function () {
|
|
158
|
-
return !this.disabled ? this._tabindex : undefined;
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
162
|
-
*
|
|
163
|
-
* @default 0
|
|
164
|
-
*/
|
|
165
|
-
set: function (value) {
|
|
166
|
-
var tabindex = Number(value);
|
|
167
|
-
var defaultValue = 0;
|
|
168
|
-
this._tabindex = !isNaN(tabindex) ? tabindex : defaultValue;
|
|
169
|
-
},
|
|
170
|
-
enumerable: true,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "gradientSettings", {
|
|
174
|
-
get: function () {
|
|
175
|
-
return this._gradientSettings;
|
|
176
|
-
},
|
|
177
|
-
/**
|
|
178
|
-
* Configures the gradient view.
|
|
179
|
-
*/
|
|
180
|
-
set: function (value) {
|
|
181
|
-
Object.assign(this._gradientSettings, value);
|
|
182
|
-
},
|
|
183
|
-
enumerable: true,
|
|
184
|
-
configurable: true
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "paletteSettings", {
|
|
187
|
-
get: function () {
|
|
188
|
-
return this._paletteSettings;
|
|
189
|
-
},
|
|
190
|
-
/**
|
|
191
|
-
* Configures the palette view.
|
|
192
|
-
*/
|
|
193
|
-
set: function (value) {
|
|
194
|
-
Object.assign(this._paletteSettings, value);
|
|
195
|
-
},
|
|
196
|
-
enumerable: true,
|
|
197
|
-
configurable: true
|
|
198
|
-
});
|
|
199
|
-
FlatColorPickerComponent.prototype.ngOnInit = function () {
|
|
200
|
-
this.selection = this.value;
|
|
201
|
-
this._paletteSettings = this.service.getPaletteSettings(this._paletteSettings, this.format);
|
|
202
|
-
this.setActiveView();
|
|
203
|
-
};
|
|
204
|
-
FlatColorPickerComponent.prototype.ngAfterViewInit = function () {
|
|
205
|
-
this.setHostElementAriaLabel();
|
|
206
|
-
this.initDomEvents();
|
|
207
|
-
this.setSizingVariables();
|
|
208
|
-
};
|
|
209
|
-
FlatColorPickerComponent.prototype.ngOnChanges = function (changes) {
|
|
210
|
-
if (isChanged('value', changes)) {
|
|
211
|
-
this.selection = this.value;
|
|
212
|
-
this.setHostElementAriaLabel();
|
|
213
|
-
}
|
|
214
|
-
if (isChanged('paletteSettings', changes)) {
|
|
215
|
-
this.setSizingVariables();
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
FlatColorPickerComponent.prototype.ngOnDestroy = function () {
|
|
219
|
-
if (this.dynamicRTLSubscription) {
|
|
220
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
221
|
-
}
|
|
222
|
-
this.subscriptions.unsubscribe();
|
|
223
|
-
};
|
|
224
|
-
Object.defineProperty(FlatColorPickerComponent.prototype, "headerHasContent", {
|
|
225
|
-
/**
|
|
226
|
-
* @hidden
|
|
227
|
-
*/
|
|
228
|
-
get: function () {
|
|
229
|
-
return this.preview || this.views.length > 1 || this.clearButton;
|
|
230
|
-
},
|
|
231
|
-
enumerable: true,
|
|
232
|
-
configurable: true
|
|
233
|
-
});
|
|
234
|
-
/**
|
|
235
|
-
* @hidden
|
|
236
|
-
* Used by the FloatingLabel to determine if the component is empty.
|
|
237
|
-
*/
|
|
238
|
-
FlatColorPickerComponent.prototype.isEmpty = function () {
|
|
239
|
-
return false;
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* Focuses the wrapper of the FlatColorPicker.
|
|
243
|
-
*/
|
|
244
|
-
FlatColorPickerComponent.prototype.focus = function () {
|
|
245
|
-
if (this.disabled && this.focused) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
this.host.nativeElement.focus();
|
|
249
|
-
this.focused = true;
|
|
250
|
-
};
|
|
251
|
-
/**
|
|
252
|
-
* Blurs the wrapper of the FlatColorPicker.
|
|
253
|
-
*/
|
|
254
|
-
FlatColorPickerComponent.prototype.blur = function () {
|
|
255
|
-
if (!this.focused) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
this.notifyNgTouched();
|
|
259
|
-
this.host.nativeElement.blur();
|
|
260
|
-
this.focused = false;
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* Clears the value of the FlatColorPicker.
|
|
264
|
-
*/
|
|
265
|
-
FlatColorPickerComponent.prototype.reset = function () {
|
|
266
|
-
if (!isPresent(this.value)) {
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
this.value = undefined;
|
|
270
|
-
this.notifyNgChanged(undefined);
|
|
271
|
-
this.setHostElementAriaLabel();
|
|
272
|
-
};
|
|
273
|
-
/**
|
|
274
|
-
* @hidden
|
|
275
|
-
*/
|
|
276
|
-
FlatColorPickerComponent.prototype.onViewChange = function (view) {
|
|
277
|
-
var _this = this;
|
|
278
|
-
if (this.activeView === view) {
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
this.activeView = view;
|
|
282
|
-
this.activeViewChange.emit(view);
|
|
283
|
-
if (this.activeView === 'gradient') {
|
|
284
|
-
this.ngZone.runOutsideAngular(function () {
|
|
285
|
-
setTimeout(function () {
|
|
286
|
-
_this.gradient.gradientDragHandle.nativeElement.focus();
|
|
287
|
-
});
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* @hidden
|
|
293
|
-
*/
|
|
294
|
-
FlatColorPickerComponent.prototype.onClearButtonClick = function () {
|
|
295
|
-
this.resetInnerComponentValue();
|
|
296
|
-
this.host.nativeElement.focus();
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* @hidden
|
|
300
|
-
*/
|
|
301
|
-
FlatColorPickerComponent.prototype.handleValueChange = function (color) {
|
|
302
|
-
this.preview ? this.changeCurrentValue(color) : this.setFlatColorPickerValue(color);
|
|
303
|
-
};
|
|
304
|
-
/**
|
|
305
|
-
* @hidden
|
|
306
|
-
*/
|
|
307
|
-
FlatColorPickerComponent.prototype.onAction = function (ev) {
|
|
308
|
-
ev.target === 'apply' ? this.setFlatColorPickerValue(this.selection) : this.resetSelection(ev.originalEvent);
|
|
309
|
-
this.actionButtonClick.emit();
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* @hidden
|
|
313
|
-
*/
|
|
314
|
-
FlatColorPickerComponent.prototype.writeValue = function (value) {
|
|
315
|
-
this.value = value;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* @hidden
|
|
319
|
-
*/
|
|
320
|
-
FlatColorPickerComponent.prototype.registerOnChange = function (fn) {
|
|
321
|
-
this.notifyNgChanged = fn;
|
|
322
|
-
};
|
|
323
|
-
/**
|
|
324
|
-
* @hidden
|
|
325
|
-
*/
|
|
326
|
-
FlatColorPickerComponent.prototype.registerOnTouched = function (fn) {
|
|
327
|
-
this.notifyNgTouched = fn;
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* @hidden
|
|
331
|
-
*/
|
|
332
|
-
FlatColorPickerComponent.prototype.setDisabledState = function (isDisabled) {
|
|
333
|
-
this.cdr.markForCheck();
|
|
334
|
-
this.disabled = isDisabled;
|
|
335
|
-
};
|
|
336
|
-
/**
|
|
337
|
-
* @hidden
|
|
338
|
-
*/
|
|
339
|
-
FlatColorPickerComponent.prototype.resetSelection = function (ev) {
|
|
340
|
-
var eventArgs = new ColorPickerCancelEvent(ev);
|
|
341
|
-
this.cancel.emit(eventArgs);
|
|
342
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
343
|
-
this.selection = this.value;
|
|
344
|
-
}
|
|
345
|
-
this.notifyNgTouched();
|
|
346
|
-
};
|
|
347
|
-
FlatColorPickerComponent.prototype.setHostElementAriaLabel = function () {
|
|
348
|
-
var parsed = parseColor(this.value, this.format, this.gradientSettings.opacity);
|
|
349
|
-
var ariaLabelValue = "" + (this.value ? parsed : this.localizationService.get('flatColorPickerNoColor'));
|
|
350
|
-
this.renderer.setAttribute(this.host.nativeElement, 'aria-label', ariaLabelValue);
|
|
351
|
-
};
|
|
352
|
-
FlatColorPickerComponent.prototype.setSizingVariables = function () {
|
|
353
|
-
var paletteTileSize = this.service.paletteTileLayout(this.paletteSettings.tileSize);
|
|
354
|
-
var value = "--kendo-color-preview-columns: " + this.paletteSettings.columns + ";\n --kendo-color-preview-width: " + paletteTileSize.width + "px;\n --kendo-color-preview-height: " + paletteTileSize.height + "px;";
|
|
355
|
-
this.host.nativeElement.querySelector('.k-coloreditor-views.k-vstack').setAttribute('style', value);
|
|
356
|
-
};
|
|
357
|
-
FlatColorPickerComponent.prototype.changeCurrentValue = function (color) {
|
|
358
|
-
this.selection = color;
|
|
359
|
-
this.notifyNgTouched();
|
|
360
|
-
};
|
|
361
|
-
FlatColorPickerComponent.prototype.resetInnerComponentValue = function () {
|
|
362
|
-
this.selection = null;
|
|
363
|
-
if (this.gradient) {
|
|
364
|
-
this.gradient.reset();
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
this.palette.reset();
|
|
368
|
-
};
|
|
369
|
-
FlatColorPickerComponent.prototype.setFlatColorPickerValue = function (color) {
|
|
370
|
-
if (this.value === color) {
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
this.value = color;
|
|
374
|
-
this.valueChange.emit(color);
|
|
375
|
-
this.notifyNgChanged(color);
|
|
376
|
-
this.setHostElementAriaLabel();
|
|
377
|
-
};
|
|
378
|
-
FlatColorPickerComponent.prototype.setActiveView = function () {
|
|
379
|
-
if (!isPresent(this.activeView)) {
|
|
380
|
-
this.activeView = this.views[0];
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
if (isDevMode() && this.views.indexOf(this.activeView) === -1) {
|
|
384
|
-
throw new Error("Invalid configuration: The current activeView is not present in the views collection");
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
FlatColorPickerComponent.prototype.initDomEvents = function () {
|
|
388
|
-
var _this = this;
|
|
389
|
-
if (!this.host) {
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
var hostElement = this.host.nativeElement;
|
|
393
|
-
this.ngZone.runOutsideAngular(function () {
|
|
394
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'focus', function () {
|
|
395
|
-
_this.focused = true;
|
|
396
|
-
}));
|
|
397
|
-
_this.subscriptions.add(_this.renderer.listen(hostElement, 'blur', function () {
|
|
398
|
-
_this.focused = false;
|
|
399
|
-
_this.notifyNgTouched();
|
|
400
|
-
}));
|
|
401
|
-
});
|
|
402
|
-
};
|
|
403
|
-
var FlatColorPickerComponent_1;
|
|
404
|
-
tslib_1.__decorate([
|
|
405
|
-
HostBinding('class.k-flatcolorpicker'),
|
|
406
|
-
HostBinding('class.k-coloreditor'),
|
|
407
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
408
|
-
], FlatColorPickerComponent.prototype, "hostClasses", void 0);
|
|
409
|
-
tslib_1.__decorate([
|
|
410
|
-
HostBinding('class.k-state-disabled'),
|
|
411
|
-
HostBinding('attr.aria-disabled'),
|
|
412
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
413
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
414
|
-
], FlatColorPickerComponent.prototype, "disabledClass", null);
|
|
415
|
-
tslib_1.__decorate([
|
|
416
|
-
HostBinding('attr.aria-readonly'),
|
|
417
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
418
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
419
|
-
], FlatColorPickerComponent.prototype, "ariaReadonly", null);
|
|
420
|
-
tslib_1.__decorate([
|
|
421
|
-
HostBinding('attr.dir'),
|
|
422
|
-
tslib_1.__metadata("design:type", String)
|
|
423
|
-
], FlatColorPickerComponent.prototype, "direction", void 0);
|
|
424
|
-
tslib_1.__decorate([
|
|
425
|
-
HostBinding('attr.tabindex'),
|
|
426
|
-
tslib_1.__metadata("design:type", Number),
|
|
427
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
428
|
-
], FlatColorPickerComponent.prototype, "hostTabindex", null);
|
|
429
|
-
tslib_1.__decorate([
|
|
430
|
-
Input(),
|
|
431
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
432
|
-
], FlatColorPickerComponent.prototype, "readonly", void 0);
|
|
433
|
-
tslib_1.__decorate([
|
|
434
|
-
Input(),
|
|
435
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
436
|
-
], FlatColorPickerComponent.prototype, "disabled", void 0);
|
|
437
|
-
tslib_1.__decorate([
|
|
438
|
-
Input(),
|
|
439
|
-
tslib_1.__metadata("design:type", String)
|
|
440
|
-
], FlatColorPickerComponent.prototype, "format", void 0);
|
|
441
|
-
tslib_1.__decorate([
|
|
442
|
-
Input(),
|
|
443
|
-
tslib_1.__metadata("design:type", String),
|
|
444
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
445
|
-
], FlatColorPickerComponent.prototype, "value", null);
|
|
446
|
-
tslib_1.__decorate([
|
|
447
|
-
Input(),
|
|
448
|
-
tslib_1.__metadata("design:type", Number),
|
|
449
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
450
|
-
], FlatColorPickerComponent.prototype, "tabindex", null);
|
|
451
|
-
tslib_1.__decorate([
|
|
452
|
-
Input(),
|
|
453
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
454
|
-
], FlatColorPickerComponent.prototype, "clearButton", void 0);
|
|
455
|
-
tslib_1.__decorate([
|
|
456
|
-
Input(),
|
|
457
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
458
|
-
], FlatColorPickerComponent.prototype, "preview", void 0);
|
|
459
|
-
tslib_1.__decorate([
|
|
460
|
-
Input(),
|
|
461
|
-
tslib_1.__metadata("design:type", String)
|
|
462
|
-
], FlatColorPickerComponent.prototype, "actionsLayout", void 0);
|
|
463
|
-
tslib_1.__decorate([
|
|
464
|
-
Input(),
|
|
465
|
-
tslib_1.__metadata("design:type", String)
|
|
466
|
-
], FlatColorPickerComponent.prototype, "activeView", void 0);
|
|
467
|
-
tslib_1.__decorate([
|
|
468
|
-
Input(),
|
|
469
|
-
tslib_1.__metadata("design:type", Array)
|
|
470
|
-
], FlatColorPickerComponent.prototype, "views", void 0);
|
|
471
|
-
tslib_1.__decorate([
|
|
472
|
-
Input(),
|
|
473
|
-
tslib_1.__metadata("design:type", Object),
|
|
474
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
475
|
-
], FlatColorPickerComponent.prototype, "gradientSettings", null);
|
|
476
|
-
tslib_1.__decorate([
|
|
477
|
-
Input(),
|
|
478
|
-
tslib_1.__metadata("design:type", Object),
|
|
479
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
480
|
-
], FlatColorPickerComponent.prototype, "paletteSettings", null);
|
|
481
|
-
tslib_1.__decorate([
|
|
482
|
-
Output(),
|
|
483
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
484
|
-
], FlatColorPickerComponent.prototype, "valueChange", void 0);
|
|
485
|
-
tslib_1.__decorate([
|
|
486
|
-
Output(),
|
|
487
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
488
|
-
], FlatColorPickerComponent.prototype, "cancel", void 0);
|
|
489
|
-
tslib_1.__decorate([
|
|
490
|
-
Output(),
|
|
491
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
492
|
-
], FlatColorPickerComponent.prototype, "activeViewChange", void 0);
|
|
493
|
-
tslib_1.__decorate([
|
|
494
|
-
Output(),
|
|
495
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
496
|
-
], FlatColorPickerComponent.prototype, "actionButtonClick", void 0);
|
|
497
|
-
tslib_1.__decorate([
|
|
498
|
-
ViewChild('header', { static: false }),
|
|
499
|
-
tslib_1.__metadata("design:type", FlatColorPickerHeaderComponent)
|
|
500
|
-
], FlatColorPickerComponent.prototype, "header", void 0);
|
|
501
|
-
tslib_1.__decorate([
|
|
502
|
-
ViewChild('gradient', { static: false }),
|
|
503
|
-
tslib_1.__metadata("design:type", ColorGradientComponent)
|
|
504
|
-
], FlatColorPickerComponent.prototype, "gradient", void 0);
|
|
505
|
-
tslib_1.__decorate([
|
|
506
|
-
ViewChild('palette', { static: false }),
|
|
507
|
-
tslib_1.__metadata("design:type", ColorPaletteComponent)
|
|
508
|
-
], FlatColorPickerComponent.prototype, "palette", void 0);
|
|
509
|
-
tslib_1.__decorate([
|
|
510
|
-
ViewChild('footer', { static: false }),
|
|
511
|
-
tslib_1.__metadata("design:type", FlatColorPickerActionButtonsComponent)
|
|
512
|
-
], FlatColorPickerComponent.prototype, "footer", void 0);
|
|
513
|
-
FlatColorPickerComponent = FlatColorPickerComponent_1 = tslib_1.__decorate([
|
|
514
|
-
Component({
|
|
515
|
-
exportAs: 'kendoFlatColorPicker',
|
|
516
|
-
selector: 'kendo-flatcolorpicker',
|
|
517
|
-
providers: [
|
|
518
|
-
{
|
|
519
|
-
multi: true,
|
|
520
|
-
provide: NG_VALUE_ACCESSOR,
|
|
521
|
-
useExisting: forwardRef(function () { return FlatColorPickerComponent_1; })
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
provide: KendoInput,
|
|
525
|
-
useExisting: forwardRef(function () { return FlatColorPickerComponent_1; })
|
|
526
|
-
},
|
|
527
|
-
FlatColorPickerService,
|
|
528
|
-
FlatColorPickerLocalizationService,
|
|
529
|
-
{
|
|
530
|
-
provide: LocalizationService,
|
|
531
|
-
useExisting: FlatColorPickerLocalizationService
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
provide: L10N_PREFIX,
|
|
535
|
-
useValue: 'kendo.flatcolorpicker'
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
template: "\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor=\"kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.flatcolorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.flatcolorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.flatcolorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.flatcolorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.flatcolorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.flatcolorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.flatcolorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.flatcolorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf=\"headerHasContent\"\n #header\n [clearButton]=\"clearButton\"\n [activeView]=\"activeView\"\n [views]=\"views\"\n [value]=\"value\"\n [selection]=\"selection\"\n [preview]=\"preview\"\n (clearButtonClick)=\"onClearButtonClick()\"\n (viewChange)=\"onViewChange($event)\"\n (valuePaneClick)=\"resetSelection($event)\">\n </div>\n <div class=\"k-coloreditor-views k-vstack\">\n <kendo-colorgradient #gradient\n *ngIf=\"activeView === 'gradient'\"\n [tabindex]=\"null\"\n [value]=\"selection\"\n [format]=\"format\"\n [opacity]=\"gradientSettings.opacity\"\n [delay]=\"gradientSettings.delay\"\n [contrastTool]=\"gradientSettings.contrastTool\"\n [readonly]=\"readonly\"\n (valueChange)=\"handleValueChange($event)\"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf=\"activeView === 'palette'\"\n kendoFocusOnDomReady\n [palette]=\"paletteSettings.palette\"\n [columns]=\"paletteSettings.columns\"\n [tileSize]=\"paletteSettings.tileSize\"\n [format]=\"format\"\n [value]=\"selection\"\n (valueChange)=\"handleValueChange($event)\"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf=\"preview\"\n #footer\n [ngClass]=\"'k-justify-content-' + actionsLayout\"\n (actionButtonClick)=\"onAction($event)\">\n </div>\n"
|
|
539
|
-
}),
|
|
540
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
541
|
-
FlatColorPickerService,
|
|
542
|
-
LocalizationService,
|
|
543
|
-
ChangeDetectorRef,
|
|
544
|
-
Renderer2,
|
|
545
|
-
NgZone])
|
|
546
|
-
], FlatColorPickerComponent);
|
|
547
|
-
return FlatColorPickerComponent;
|
|
548
|
-
}());
|
|
549
|
-
export { FlatColorPickerComponent };
|
|
@@ -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 { Directive, ElementRef, NgZone } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var FocusOnDomReadyDirective = /** @class */ (function () {
|
|
11
|
-
function FocusOnDomReadyDirective(host, ngZone) {
|
|
12
|
-
this.host = host;
|
|
13
|
-
this.ngZone = ngZone;
|
|
14
|
-
}
|
|
15
|
-
FocusOnDomReadyDirective.prototype.ngAfterContentInit = function () {
|
|
16
|
-
this.focusOnNextTick();
|
|
17
|
-
};
|
|
18
|
-
FocusOnDomReadyDirective.prototype.focusOnNextTick = function () {
|
|
19
|
-
var _this = this;
|
|
20
|
-
this.ngZone.runOutsideAngular(function () { return setTimeout(function () { return _this.host.nativeElement.focus(); }); });
|
|
21
|
-
};
|
|
22
|
-
FocusOnDomReadyDirective = tslib_1.__decorate([
|
|
23
|
-
Directive({
|
|
24
|
-
selector: '[kendoFocusOnDomReady]'
|
|
25
|
-
}),
|
|
26
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
27
|
-
NgZone])
|
|
28
|
-
], FocusOnDomReadyDirective);
|
|
29
|
-
return FocusOnDomReadyDirective;
|
|
30
|
-
}());
|
|
31
|
-
export { FocusOnDomReadyDirective };
|
|
@@ -1,34 +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
|
-
var ColorGradientLocalizationService = /** @class */ (function (_super) {
|
|
13
|
-
tslib_1.__extends(ColorGradientLocalizationService, _super);
|
|
14
|
-
function ColorGradientLocalizationService(prefix, messageService, _rtl, flatColorPickerLocalization) {
|
|
15
|
-
var _this = _super.call(this, prefix, messageService, _rtl) || this;
|
|
16
|
-
_this.flatColorPickerLocalization = flatColorPickerLocalization;
|
|
17
|
-
return _this;
|
|
18
|
-
}
|
|
19
|
-
ColorGradientLocalizationService.prototype.get = function (shortKey) {
|
|
20
|
-
if (this.flatColorPickerLocalization) {
|
|
21
|
-
return this.flatColorPickerLocalization.get(shortKey);
|
|
22
|
-
}
|
|
23
|
-
return _super.prototype.get.call(this, shortKey);
|
|
24
|
-
};
|
|
25
|
-
ColorGradientLocalizationService = tslib_1.__decorate([
|
|
26
|
-
tslib_1.__param(0, Inject(L10N_PREFIX)),
|
|
27
|
-
tslib_1.__param(1, Optional()),
|
|
28
|
-
tslib_1.__param(2, Optional()), tslib_1.__param(2, Inject(RTL)),
|
|
29
|
-
tslib_1.__param(3, Optional()), tslib_1.__param(3, Inject(FlatColorPickerLocalizationService)),
|
|
30
|
-
tslib_1.__metadata("design:paramtypes", [String, MessageService, Boolean, FlatColorPickerLocalizationService])
|
|
31
|
-
], ColorGradientLocalizationService);
|
|
32
|
-
return ColorGradientLocalizationService;
|
|
33
|
-
}(LocalizationService));
|
|
34
|
-
export { ColorGradientLocalizationService };
|
|
@@ -1,34 +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
|
-
var ColorPaletteLocalizationService = /** @class */ (function (_super) {
|
|
13
|
-
tslib_1.__extends(ColorPaletteLocalizationService, _super);
|
|
14
|
-
function ColorPaletteLocalizationService(prefix, messageService, _rtl, flatColorPickerLocalization) {
|
|
15
|
-
var _this = _super.call(this, prefix, messageService, _rtl) || this;
|
|
16
|
-
_this.flatColorPickerLocalization = flatColorPickerLocalization;
|
|
17
|
-
return _this;
|
|
18
|
-
}
|
|
19
|
-
ColorPaletteLocalizationService.prototype.get = function (shortKey) {
|
|
20
|
-
if (this.flatColorPickerLocalization) {
|
|
21
|
-
return this.flatColorPickerLocalization.get(shortKey);
|
|
22
|
-
}
|
|
23
|
-
return _super.prototype.get.call(this, shortKey);
|
|
24
|
-
};
|
|
25
|
-
ColorPaletteLocalizationService = tslib_1.__decorate([
|
|
26
|
-
tslib_1.__param(0, Inject(L10N_PREFIX)),
|
|
27
|
-
tslib_1.__param(1, Optional()),
|
|
28
|
-
tslib_1.__param(2, Optional()), tslib_1.__param(2, Inject(RTL)),
|
|
29
|
-
tslib_1.__param(3, Optional()), tslib_1.__param(3, Inject(FlatColorPickerLocalizationService)),
|
|
30
|
-
tslib_1.__metadata("design:paramtypes", [String, MessageService, Boolean, FlatColorPickerLocalizationService])
|
|
31
|
-
], ColorPaletteLocalizationService);
|
|
32
|
-
return ColorPaletteLocalizationService;
|
|
33
|
-
}(LocalizationService));
|
|
34
|
-
export { ColorPaletteLocalizationService };
|
|
@@ -1,24 +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
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var ColorPickerLocalizationService = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(ColorPickerLocalizationService, _super);
|
|
13
|
-
function ColorPickerLocalizationService(prefix, messageService, _rtl) {
|
|
14
|
-
return _super.call(this, prefix, messageService, _rtl) || this;
|
|
15
|
-
}
|
|
16
|
-
ColorPickerLocalizationService = tslib_1.__decorate([
|
|
17
|
-
tslib_1.__param(0, Inject(L10N_PREFIX)),
|
|
18
|
-
tslib_1.__param(1, Optional()),
|
|
19
|
-
tslib_1.__param(2, Optional()), tslib_1.__param(2, Inject(RTL)),
|
|
20
|
-
tslib_1.__metadata("design:paramtypes", [String, MessageService, Boolean])
|
|
21
|
-
], ColorPickerLocalizationService);
|
|
22
|
-
return ColorPickerLocalizationService;
|
|
23
|
-
}(LocalizationService));
|
|
24
|
-
export { ColorPickerLocalizationService };
|