@progress/kendo-angular-inputs 10.1.2-dev.202211170755 → 11.0.0-develop.100
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +20 -20
- package/checkbox/checkbox.directive.d.ts +1 -1
- package/checkbox.module.d.ts +2 -2
- package/colorpicker/color-contrast-svg.component.d.ts +1 -1
- package/colorpicker/color-gradient-numeric-label.directive.d.ts +1 -1
- package/colorpicker/color-gradient.component.d.ts +6 -1
- package/colorpicker/color-input.component.d.ts +6 -1
- package/colorpicker/color-palette.component.d.ts +1 -1
- package/colorpicker/colorpicker.component.d.ts +19 -5
- package/colorpicker/constants.d.ts +2 -2
- package/colorpicker/contrast-validation.component.d.ts +4 -1
- package/colorpicker/contrast.component.d.ts +4 -1
- package/colorpicker/events/active-color-click-event.d.ts +1 -1
- package/colorpicker/events/cancel-event.d.ts +1 -1
- package/colorpicker/events/close-event.d.ts +1 -1
- package/colorpicker/events/kendo-drag-event.d.ts +1 -1
- package/colorpicker/events/open-event.d.ts +1 -1
- package/colorpicker/events.d.ts +1 -1
- package/colorpicker/flatcolorpicker-actions.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +11 -4
- package/colorpicker/flatcolorpicker.component.d.ts +1 -1
- package/colorpicker/focus-on-dom-ready.directive.d.ts +1 -1
- package/colorpicker/localization/colorgradient-localization.service.d.ts +1 -1
- package/colorpicker/localization/colorpalette-localization.service.d.ts +1 -1
- package/colorpicker/localization/colorpicker-localization.service.d.ts +1 -1
- package/colorpicker/localization/custom-messages.component.d.ts +1 -1
- package/colorpicker/localization/flatcolorpicker-localization.service.d.ts +1 -1
- package/colorpicker/localization/localized-colorpicker-messages.directive.d.ts +1 -1
- package/colorpicker/localization/messages.d.ts +1 -1
- package/colorpicker/models/actions-layout.d.ts +1 -1
- package/colorpicker/models/colorpicker-view.d.ts +1 -1
- package/colorpicker/models/gradient-settings.d.ts +1 -1
- package/colorpicker/models/hsva.d.ts +1 -1
- package/colorpicker/models/output-format.d.ts +1 -1
- package/colorpicker/models/palette-presets.d.ts +1 -1
- package/colorpicker/models/palette-settings.d.ts +1 -1
- package/colorpicker/models/popup-settings.d.ts +1 -1
- package/colorpicker/models/rgb.d.ts +1 -1
- package/colorpicker/models/rgba.d.ts +1 -1
- package/colorpicker/models/table-cell.d.ts +1 -1
- package/colorpicker/models/tile-size.d.ts +1 -1
- package/colorpicker/models.d.ts +1 -1
- package/colorpicker/services/color-palette.service.d.ts +1 -1
- package/colorpicker/services/flatcolorpicker.service.d.ts +1 -1
- package/colorpicker/utils/color-parser.d.ts +1 -1
- package/colorpicker/utils/contrast-curve.d.ts +1 -1
- package/colorpicker/utils.d.ts +1 -1
- package/colorpicker.module.d.ts +5 -3
- package/common/dom-utils.d.ts +1 -1
- package/common/math.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/styling-classes.d.ts +1 -1
- package/common/models.d.ts +1 -1
- package/common/utils.d.ts +1 -1
- package/{esm2015/checkbox/checkbox.directive.js → esm2020/checkbox/checkbox.directive.mjs} +5 -5
- package/{esm2015/checkbox.module.js → esm2020/checkbox.module.mjs} +6 -6
- package/{esm2015/colorpicker/color-contrast-svg.component.js → esm2020/colorpicker/color-contrast-svg.component.mjs} +10 -5
- package/{esm2015/colorpicker/color-gradient-numeric-label.directive.js → esm2020/colorpicker/color-gradient-numeric-label.directive.mjs} +6 -4
- package/{esm2015/colorpicker/color-gradient.component.js → esm2020/colorpicker/color-gradient.component.mjs} +56 -51
- package/{esm2015/colorpicker/color-input.component.js → esm2020/colorpicker/color-input.component.mjs} +37 -21
- package/{esm2015/colorpicker/color-palette.component.js → esm2020/colorpicker/color-palette.component.mjs} +7 -7
- package/{esm2015/colorpicker/colorpicker.component.js → esm2020/colorpicker/colorpicker.component.mjs} +85 -25
- package/{esm2015/colorpicker/constants.js → esm2020/colorpicker/constants.mjs} +1 -1
- package/{esm2015/colorpicker/contrast-validation.component.js → esm2020/colorpicker/contrast-validation.component.mjs} +16 -11
- package/{esm2015/colorpicker/contrast.component.js → esm2020/colorpicker/contrast.component.mjs} +19 -14
- package/{esm2015/colorpicker/events/active-color-click-event.js → esm2020/colorpicker/events/active-color-click-event.mjs} +1 -1
- package/{esm2015/colorpicker/events/cancel-event.js → esm2020/colorpicker/events/cancel-event.mjs} +1 -1
- package/{esm2015/colorpicker/events/close-event.js → esm2020/colorpicker/events/close-event.mjs} +1 -1
- package/{esm2015/colorpicker/models/gradient-settings.js → esm2020/colorpicker/events/kendo-drag-event.mjs} +1 -1
- package/{esm2015/colorpicker/events/open-event.js → esm2020/colorpicker/events/open-event.mjs} +1 -1
- package/{esm2015/colorpicker/events.js → esm2020/colorpicker/events.mjs} +1 -1
- package/{esm2015/colorpicker/flatcolorpicker-actions.component.js → esm2020/colorpicker/flatcolorpicker-actions.component.mjs} +6 -5
- package/{esm2015/colorpicker/flatcolorpicker-header.component.js → esm2020/colorpicker/flatcolorpicker-header.component.mjs} +58 -28
- package/{esm2015/colorpicker/flatcolorpicker.component.js → esm2020/colorpicker/flatcolorpicker.component.mjs} +20 -20
- package/{esm2015/colorpicker/focus-on-dom-ready.directive.js → esm2020/colorpicker/focus-on-dom-ready.directive.mjs} +5 -5
- package/{esm2015/colorpicker/localization/colorgradient-localization.service.js → esm2020/colorpicker/localization/colorgradient-localization.service.mjs} +5 -5
- package/{esm2015/colorpicker/localization/colorpalette-localization.service.js → esm2020/colorpicker/localization/colorpalette-localization.service.mjs} +5 -5
- package/{esm2015/colorpicker/localization/colorpicker-localization.service.js → esm2020/colorpicker/localization/colorpicker-localization.service.mjs} +5 -5
- package/{esm2015/colorpicker/localization/custom-messages.component.js → esm2020/colorpicker/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/colorpicker/localization/flatcolorpicker-localization.service.js → esm2020/colorpicker/localization/flatcolorpicker-localization.service.mjs} +5 -5
- package/{esm2015/colorpicker/localization/localized-colorpicker-messages.directive.js → esm2020/colorpicker/localization/localized-colorpicker-messages.directive.mjs} +5 -4
- package/{esm2015/colorpicker/localization/messages.js → esm2020/colorpicker/localization/messages.mjs} +4 -4
- package/{esm2015/colorpicker/models/colorpicker-view.js → esm2020/colorpicker/models/actions-layout.mjs} +1 -1
- package/{esm2015/colorpicker/models/actions-layout.js → esm2020/colorpicker/models/colorpicker-view.mjs} +1 -1
- package/{esm2015/colorpicker/events/kendo-drag-event.js → esm2020/colorpicker/models/gradient-settings.mjs} +1 -1
- package/esm2020/colorpicker/models/hsva.mjs +5 -0
- package/esm2020/colorpicker/models/output-format.mjs +5 -0
- package/{esm2015/colorpicker/models/palette-presets.js → esm2020/colorpicker/models/palette-presets.mjs} +1 -1
- package/esm2020/colorpicker/models/palette-settings.mjs +5 -0
- package/esm2020/colorpicker/models/popup-settings.mjs +5 -0
- package/esm2020/colorpicker/models/rgb.mjs +5 -0
- package/esm2020/colorpicker/models/rgba.mjs +5 -0
- package/esm2020/colorpicker/models/table-cell.mjs +5 -0
- package/{esm2015/colorpicker/models/tile-size.js → esm2020/colorpicker/models/tile-size.mjs} +1 -1
- package/{esm2015/colorpicker/models.js → esm2020/colorpicker/models.mjs} +1 -1
- package/{esm2015/colorpicker/services/color-palette.service.js → esm2020/colorpicker/services/color-palette.service.mjs} +4 -4
- package/{esm2015/colorpicker/services/flatcolorpicker.service.js → esm2020/colorpicker/services/flatcolorpicker.service.mjs} +4 -4
- package/{esm2015/colorpicker/utils/color-parser.js → esm2020/colorpicker/utils/color-parser.mjs} +2 -2
- package/{esm2015/colorpicker/utils/contrast-curve.js → esm2020/colorpicker/utils/contrast-curve.mjs} +1 -1
- package/{esm2015/colorpicker/utils.js → esm2020/colorpicker/utils.mjs} +1 -1
- package/{esm2015/colorpicker.module.js → esm2020/colorpicker.module.mjs} +17 -9
- package/{esm2015/common/dom-utils.js → esm2020/common/dom-utils.mjs} +2 -1
- package/{esm2015/common/math.js → esm2020/common/math.mjs} +1 -1
- package/esm2020/common/models/fillmode.mjs +5 -0
- package/esm2020/common/models/rounded.mjs +5 -0
- package/esm2020/common/models/size.mjs +5 -0
- package/esm2020/common/models/styling-classes.mjs +5 -0
- package/{esm2015/common/models.js → esm2020/common/models.mjs} +1 -1
- package/{esm2015/common/utils.js → esm2020/common/utils.mjs} +1 -1
- package/{esm2015/formfield/error.component.js → esm2020/formfield/error.component.mjs} +4 -4
- package/{esm2015/formfield/formfield.component.js → esm2020/formfield/formfield.component.mjs} +5 -5
- package/{esm2015/formfield/hint.component.js → esm2020/formfield/hint.component.mjs} +4 -4
- package/esm2020/formfield/models/message-align.mjs +5 -0
- package/esm2020/formfield/models/orientation.mjs +5 -0
- package/esm2020/formfield/models/show-options.mjs +5 -0
- package/{esm2015/formfield.module.js → esm2020/formfield.module.mjs} +6 -6
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/inputs.module.js → esm2020/inputs.module.mjs} +6 -6
- package/{esm2015/maskedtextbox/maskedtextbox.component.js → esm2020/maskedtextbox/maskedtextbox.component.mjs} +8 -8
- package/{esm2015/maskedtextbox/masking.service.js → esm2020/maskedtextbox/masking.service.mjs} +5 -5
- package/{esm2015/maskedtextbox/parsing/combinators.js → esm2020/maskedtextbox/parsing/combinators.mjs} +1 -1
- package/{esm2015/maskedtextbox/parsing/parsers.js → esm2020/maskedtextbox/parsing/parsers.mjs} +4 -4
- package/{esm2015/maskedtextbox/parsing/result.js → esm2020/maskedtextbox/parsing/result.mjs} +1 -1
- package/{esm2015/maskedtextbox/parsing/stream.js → esm2020/maskedtextbox/parsing/stream.mjs} +1 -1
- package/{esm2015/maskedtextbox.module.js → esm2020/maskedtextbox.module.mjs} +6 -6
- package/{esm2015/numerictextbox/arrow-direction.js → esm2020/numerictextbox/arrow-direction.mjs} +1 -1
- package/{esm2015/numerictextbox/constants.js → esm2020/numerictextbox/constants.mjs} +1 -1
- package/{esm2015/numerictextbox/localization/custom-messages.component.js → esm2020/numerictextbox/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/numerictextbox/localization/localized-numerictextbox-messages.directive.js → esm2020/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs} +5 -4
- package/{esm2015/numerictextbox/localization/messages.js → esm2020/numerictextbox/localization/messages.mjs} +4 -4
- package/{esm2015/numerictextbox/numerictextbox.component.js → esm2020/numerictextbox/numerictextbox.component.mjs} +58 -26
- package/{esm2015/numerictextbox/utils.js → esm2020/numerictextbox/utils.mjs} +3 -2
- package/{esm2015/numerictextbox.module.js → esm2020/numerictextbox.module.mjs} +9 -8
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-inputs.js → esm2020/progress-kendo-angular-inputs.mjs} +2 -2
- package/{esm2015/radiobutton/radiobutton.directive.js → esm2020/radiobutton/radiobutton.directive.mjs} +5 -5
- package/{esm2015/radiobutton.module.js → esm2020/radiobutton.module.mjs} +6 -6
- package/{esm2015/rangeslider/localization/custom-messages.component.js → esm2020/rangeslider/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/rangeslider/localization/localized-rangeslider-messages.directive.js → esm2020/rangeslider/localization/localized-rangeslider-messages.directive.mjs} +5 -4
- package/{esm2015/rangeslider/localization/messages.js → esm2020/rangeslider/localization/messages.mjs} +4 -4
- package/{esm2015/rangeslider/rangeslider-model.js → esm2020/rangeslider/rangeslider-model.mjs} +1 -1
- package/esm2020/rangeslider/rangeslider-value.type.mjs +5 -0
- package/{esm2015/rangeslider/rangeslider.component.js → esm2020/rangeslider/rangeslider.component.mjs} +8 -8
- package/{esm2015/rangeslider.module.js → esm2020/rangeslider.module.mjs} +6 -6
- package/{esm2015/shared/input-separator.component.js → esm2020/shared/input-separator.component.mjs} +4 -4
- package/{esm2015/shared/textarea.directive.js → esm2020/shared/textarea.directive.mjs} +5 -5
- package/{esm2015/shared/utils.js → esm2020/shared/utils.mjs} +1 -1
- package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +5 -5
- package/{esm2015/signature/events/close-event.js → esm2020/signature/events/close-event.mjs} +1 -1
- package/{esm2015/signature/events/index.js → esm2020/signature/events/index.mjs} +1 -1
- package/{esm2015/signature/events/open-event.js → esm2020/signature/events/open-event.mjs} +1 -1
- package/{esm2015/signature/localization/custom-messages.component.js → esm2020/signature/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/signature/localization/index.js → esm2020/signature/localization/index.mjs} +1 -1
- package/{esm2015/signature/localization/localized-signature-messages.directive.js → esm2020/signature/localization/localized-signature-messages.directive.mjs} +5 -4
- package/{esm2015/signature/localization/messages.js → esm2020/signature/localization/messages.mjs} +4 -4
- package/{esm2015/signature/signature.component.js → esm2020/signature/signature.component.mjs} +61 -45
- package/{esm2015/signature.module.js → esm2020/signature.module.mjs} +13 -9
- package/{esm2015/slider/localization/custom-messages.component.js → esm2020/slider/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/slider/localization/localized-slider-messages.directive.js → esm2020/slider/localization/localized-slider-messages.directive.mjs} +5 -4
- package/{esm2015/slider/localization/messages.js → esm2020/slider/localization/messages.mjs} +4 -4
- package/{esm2015/slider/slider-model.js → esm2020/slider/slider-model.mjs} +1 -1
- package/{esm2015/slider/slider.component.js → esm2020/slider/slider.component.mjs} +78 -47
- package/{esm2015/slider.module.js → esm2020/slider.module.mjs} +10 -8
- package/{esm2015/sliders-common/label-template.directive.js → esm2020/sliders-common/label-template.directive.mjs} +5 -5
- package/{esm2015/sliders-common/slider-base.js → esm2020/sliders-common/slider-base.mjs} +6 -5
- package/{esm2015/sliders-common/slider-model.base.js → esm2020/sliders-common/slider-model.base.mjs} +1 -1
- package/{esm2015/sliders-common/slider-ticks.component.js → esm2020/sliders-common/slider-ticks.component.mjs} +6 -6
- package/{esm2015/sliders-common/sliders-common.module.js → esm2020/sliders-common/sliders-common.module.mjs} +5 -5
- package/{esm2015/sliders-common/sliders-util.js → esm2020/sliders-common/sliders-util.mjs} +1 -1
- package/esm2020/sliders-common/title-callback.mjs +5 -0
- package/{esm2015/switch/localization/custom-messages.component.js → esm2020/switch/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/switch/localization/localized-switch-messages.directive.js → esm2020/switch/localization/localized-switch-messages.directive.mjs} +5 -4
- package/{esm2015/switch/localization/messages.js → esm2020/switch/localization/messages.mjs} +4 -4
- package/{esm2015/switch/switch.component.js → esm2020/switch/switch.component.mjs} +8 -10
- package/{esm2015/switch.module.js → esm2020/switch.module.mjs} +6 -6
- package/{esm2015/text-fields-common/text-fields-base.js → esm2020/text-fields-common/text-fields-base.mjs} +6 -5
- package/esm2020/textarea/models/flow.mjs +5 -0
- package/esm2020/textarea/models/resize.mjs +5 -0
- package/{esm2015/textarea/textarea-suffix.component.js → esm2020/textarea/textarea-suffix.component.mjs} +4 -4
- package/{esm2015/textarea/textarea.component.js → esm2020/textarea/textarea.component.mjs} +6 -6
- package/{esm2015/textarea.module.js → esm2020/textarea.module.mjs} +6 -6
- package/{esm2015/textbox/localization/custom-messages.component.js → esm2020/textbox/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/textbox/localization/localized-textbox-messages.directive.js → esm2020/textbox/localization/localized-textbox-messages.directive.mjs} +5 -4
- package/{esm2015/textbox/localization/messages.js → esm2020/textbox/localization/messages.mjs} +4 -4
- package/esm2020/textbox/models/icon-show-options.mjs +5 -0
- package/{esm2015/textbox/textbox-prefix.directive.js → esm2020/textbox/textbox-prefix.directive.mjs} +5 -5
- package/{esm2015/textbox/textbox-suffix.directive.js → esm2020/textbox/textbox-suffix.directive.mjs} +5 -5
- package/{esm2015/textbox/textbox.component.js → esm2020/textbox/textbox.component.mjs} +98 -26
- package/{esm2015/textbox/textbox.directive.js → esm2020/textbox/textbox.directive.mjs} +5 -5
- package/{esm2015/textbox.module.js → esm2020/textbox.module.mjs} +9 -8
- package/{esm2015/validators/max.validator.js → esm2020/validators/max.validator.mjs} +1 -1
- package/{esm2015/validators/min.validator.js → esm2020/validators/min.validator.mjs} +1 -1
- package/fesm2015/progress-kendo-angular-inputs.mjs +14957 -0
- package/{fesm2015/kendo-angular-inputs.js → fesm2020/progress-kendo-angular-inputs.mjs} +1167 -915
- package/formfield/error.component.d.ts +1 -1
- package/formfield/formfield.component.d.ts +1 -1
- package/formfield/hint.component.d.ts +1 -1
- package/formfield/models/message-align.d.ts +1 -1
- package/formfield/models/orientation.d.ts +1 -1
- package/formfield/models/show-options.d.ts +1 -1
- package/formfield.module.d.ts +2 -2
- package/{main.d.ts → index.d.ts} +1 -1
- package/inputs.module.d.ts +2 -2
- package/maskedtextbox/maskedtextbox.component.d.ts +1 -1
- package/maskedtextbox/masking.service.d.ts +1 -1
- package/maskedtextbox/parsing/combinators.d.ts +1 -1
- package/maskedtextbox/parsing/parsers.d.ts +1 -1
- package/maskedtextbox/parsing/result.d.ts +1 -1
- package/maskedtextbox/parsing/stream.d.ts +1 -1
- package/maskedtextbox.module.d.ts +2 -2
- package/numerictextbox/arrow-direction.d.ts +1 -1
- package/numerictextbox/constants.d.ts +4 -4
- package/numerictextbox/localization/custom-messages.component.d.ts +1 -1
- package/numerictextbox/localization/localized-numerictextbox-messages.directive.d.ts +1 -1
- package/numerictextbox/localization/messages.d.ts +1 -1
- package/numerictextbox/numerictextbox.component.d.ts +11 -2
- package/numerictextbox/utils.d.ts +1 -1
- package/numerictextbox.module.d.ts +4 -3
- package/package-metadata.d.ts +1 -1
- package/package.json +34 -61
- package/{kendo-angular-inputs.d.ts → progress-kendo-angular-inputs.d.ts} +2 -2
- package/radiobutton/radiobutton.directive.d.ts +1 -1
- package/radiobutton.module.d.ts +2 -2
- package/rangeslider/localization/custom-messages.component.d.ts +1 -1
- package/rangeslider/localization/localized-rangeslider-messages.directive.d.ts +1 -1
- package/rangeslider/localization/messages.d.ts +1 -1
- package/rangeslider/rangeslider-model.d.ts +1 -1
- package/rangeslider/rangeslider-value.type.d.ts +1 -1
- package/rangeslider/rangeslider.component.d.ts +1 -1
- package/rangeslider.module.d.ts +2 -2
- package/schematics/ngAdd/index.js +5 -7
- package/shared/input-separator.component.d.ts +1 -1
- package/shared/textarea.directive.d.ts +1 -1
- package/shared/utils.d.ts +1 -1
- package/shared.module.d.ts +1 -1
- package/signature/events/close-event.d.ts +1 -1
- package/signature/events/index.d.ts +1 -1
- package/signature/events/open-event.d.ts +1 -1
- package/signature/localization/custom-messages.component.d.ts +1 -1
- package/signature/localization/index.d.ts +1 -1
- package/signature/localization/localized-signature-messages.directive.d.ts +1 -1
- package/signature/localization/messages.d.ts +1 -1
- package/signature/signature.component.d.ts +9 -1
- package/signature.module.d.ts +4 -3
- package/slider/localization/custom-messages.component.d.ts +1 -1
- package/slider/localization/localized-slider-messages.directive.d.ts +1 -1
- package/slider/localization/messages.d.ts +1 -1
- package/slider/slider-model.d.ts +1 -1
- package/slider/slider.component.d.ts +18 -1
- package/slider.module.d.ts +6 -4
- package/sliders-common/label-template.directive.d.ts +1 -1
- package/sliders-common/slider-base.d.ts +1 -1
- package/sliders-common/slider-model.base.d.ts +1 -1
- package/sliders-common/slider-ticks.component.d.ts +1 -1
- package/sliders-common/sliders-common.module.d.ts +1 -1
- package/sliders-common/sliders-util.d.ts +1 -1
- package/sliders-common/title-callback.d.ts +1 -1
- package/switch/localization/custom-messages.component.d.ts +1 -1
- package/switch/localization/localized-switch-messages.directive.d.ts +1 -1
- package/switch/localization/messages.d.ts +1 -1
- package/switch/switch.component.d.ts +1 -1
- package/switch.module.d.ts +2 -2
- package/text-fields-common/text-fields-base.d.ts +1 -1
- package/textarea/models/flow.d.ts +1 -1
- package/textarea/models/resize.d.ts +1 -1
- package/textarea/textarea-suffix.component.d.ts +1 -1
- package/textarea/textarea.component.d.ts +1 -1
- package/textarea.module.d.ts +2 -2
- package/textbox/localization/custom-messages.component.d.ts +1 -1
- package/textbox/localization/localized-textbox-messages.directive.d.ts +1 -1
- package/textbox/localization/messages.d.ts +1 -1
- package/textbox/models/icon-show-options.d.ts +1 -1
- package/textbox/textbox-prefix.directive.d.ts +1 -1
- package/textbox/textbox-suffix.directive.d.ts +1 -1
- package/textbox/textbox.component.d.ts +19 -2
- package/textbox/textbox.directive.d.ts +1 -1
- package/textbox.module.d.ts +6 -5
- package/validators/max.validator.d.ts +1 -1
- package/validators/min.validator.d.ts +1 -1
- package/bundles/kendo-angular-inputs.umd.js +0 -5
- package/esm2015/colorpicker/models/hsva.js +0 -5
- package/esm2015/colorpicker/models/output-format.js +0 -5
- package/esm2015/colorpicker/models/palette-settings.js +0 -5
- package/esm2015/colorpicker/models/popup-settings.js +0 -5
- package/esm2015/colorpicker/models/rgb.js +0 -5
- package/esm2015/colorpicker/models/rgba.js +0 -5
- package/esm2015/colorpicker/models/table-cell.js +0 -5
- package/esm2015/common/models/fillmode.js +0 -5
- package/esm2015/common/models/rounded.js +0 -5
- package/esm2015/common/models/size.js +0 -5
- package/esm2015/common/models/styling-classes.js +0 -5
- package/esm2015/formfield/models/message-align.js +0 -5
- package/esm2015/formfield/models/orientation.js +0 -5
- package/esm2015/formfield/models/show-options.js +0 -5
- package/esm2015/rangeslider/rangeslider-value.type.js +0 -5
- package/esm2015/sliders-common/title-callback.js +0 -5
- package/esm2015/textarea/models/flow.js +0 -5
- package/esm2015/textarea/models/resize.js +0 -5
- package/esm2015/textbox/models/icon-show-options.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
@@ -10,20 +10,22 @@ import { take, filter, concatMap, startWith, takeUntil, skip, debounceTime, thro
|
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import * as i3 from '@progress/kendo-angular-common';
|
|
13
|
-
import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, closest as closest$1 } from '@progress/kendo-angular-common';
|
|
13
|
+
import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1 } from '@progress/kendo-angular-common';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
+
import { caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, checkIcon, exclamationCircleIcon, xIcon, caretAltExpandIcon, xCircleIcon, dropletSlashIcon, dropletSliderIcon, paletteIcon, hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
|
|
16
|
+
import * as i2 from '@progress/kendo-angular-buttons';
|
|
17
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
15
18
|
import * as i1$1 from '@angular/common';
|
|
16
19
|
import { CommonModule } from '@angular/common';
|
|
17
20
|
import { browser, mobileOS, detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
18
21
|
import * as i1$2 from '@progress/kendo-angular-intl';
|
|
22
|
+
import * as i2$1 from '@progress/kendo-angular-icons';
|
|
23
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
19
24
|
import * as i1$3 from '@progress/kendo-angular-popup';
|
|
20
25
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
21
26
|
import { parseColor as parseColor$1, Color, namedColors } from '@progress/kendo-drawing';
|
|
22
|
-
import * as
|
|
23
|
-
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
24
|
-
import * as i2 from '@progress/kendo-angular-dialog';
|
|
27
|
+
import * as i3$1 from '@progress/kendo-angular-dialog';
|
|
25
28
|
import { DialogsModule } from '@progress/kendo-angular-dialog';
|
|
26
|
-
import { __awaiter } from 'tslib';
|
|
27
29
|
import { SignaturePad } from '@progress/kendo-inputs-common';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -507,6 +509,7 @@ const hasClass = (element, className) => Boolean(toClassList(element.className).
|
|
|
507
509
|
*/
|
|
508
510
|
function invokeElementMethod(element, name, ...args) {
|
|
509
511
|
if (element && element.nativeElement) {
|
|
512
|
+
// eslint-disable-next-line prefer-spread
|
|
510
513
|
return element.nativeElement[name].apply(element.nativeElement, args);
|
|
511
514
|
}
|
|
512
515
|
}
|
|
@@ -535,9 +538,9 @@ const packageMetadata = {
|
|
|
535
538
|
name: '@progress/kendo-angular-inputs',
|
|
536
539
|
productName: 'Kendo UI for Angular',
|
|
537
540
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
538
|
-
publishDate:
|
|
541
|
+
publishDate: 1673469269,
|
|
539
542
|
version: '',
|
|
540
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
543
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
541
544
|
};
|
|
542
545
|
|
|
543
546
|
/**
|
|
@@ -569,9 +572,9 @@ class LabelTemplateDirective {
|
|
|
569
572
|
this.templateRef = templateRef;
|
|
570
573
|
}
|
|
571
574
|
}
|
|
572
|
-
LabelTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
573
|
-
LabelTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
575
|
+
LabelTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LabelTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
576
|
+
LabelTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LabelTemplateDirective, selector: "[kendoSliderLabelTemplate]", ngImport: i0 });
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LabelTemplateDirective, decorators: [{
|
|
575
578
|
type: Directive,
|
|
576
579
|
args: [{
|
|
577
580
|
selector: '[kendoSliderLabelTemplate]'
|
|
@@ -748,9 +751,9 @@ class SliderBase {
|
|
|
748
751
|
});
|
|
749
752
|
}
|
|
750
753
|
}
|
|
751
|
-
SliderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
752
|
-
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
754
|
+
SliderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderBase, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
755
|
+
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SliderBase, selector: "kendo-slider-base", inputs: { title: "title", tickPlacement: "tickPlacement", vertical: "vertical", min: "min", max: "max", smallStep: "smallStep", largeStep: "largeStep", fixedTickWidth: "fixedTickWidth", disabled: "disabled", readonly: "readonly", tabindex: "tabindex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-slider-horizontal": "this.horizontalClass", "class.k-slider-vertical": "this.verticalClass", "class.k-slider": "this.sliderClass", "class.k-disabled": "this.disabledClass" } }, queries: [{ propertyName: "labelTemplate", first: true, predicate: LabelTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrap"], descendants: true, static: true }, { propertyName: "track", first: true, predicate: ["track"], descendants: true, static: true }, { propertyName: "sliderSelection", first: true, predicate: ["sliderSelection"], descendants: true, static: true }, { propertyName: "ticksContainer", first: true, predicate: ["ticks"], descendants: true, read: ElementRef }, { propertyName: "ticks", first: true, predicate: ["ticks"], descendants: true }], ngImport: i0, template: ``, isInline: true });
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderBase, decorators: [{
|
|
754
757
|
type: Component,
|
|
755
758
|
args: [{
|
|
756
759
|
selector: 'kendo-slider-base',
|
|
@@ -852,7 +855,7 @@ class SliderTicksComponent {
|
|
|
852
855
|
min: this.min,
|
|
853
856
|
smallStep: this.step
|
|
854
857
|
};
|
|
855
|
-
|
|
858
|
+
const result = [];
|
|
856
859
|
for (let i = 0; i < count; i++) {
|
|
857
860
|
result.push(new SliderTick(calculateValueFromTick(i, tickValueProps)));
|
|
858
861
|
if (largeStep && i % largeStep === 0) {
|
|
@@ -873,8 +876,8 @@ class SliderTicksComponent {
|
|
|
873
876
|
};
|
|
874
877
|
}
|
|
875
878
|
}
|
|
876
|
-
SliderTicksComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
877
|
-
SliderTicksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
879
|
+
SliderTicksComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderTicksComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
880
|
+
SliderTicksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: { tickTitle: "tickTitle", vertical: "vertical", step: "step", largeStep: "largeStep", min: "min", max: "max", labelTemplate: "labelTemplate" }, host: { properties: { "class": "this.wrapperClasses" } }, viewQueries: [{ propertyName: "tickElements", predicate: ["tickElement"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
878
881
|
<li #tickElement *ngFor="let tick of ticks;"
|
|
879
882
|
[ngClass]="tick.classes"
|
|
880
883
|
title="{{ tickTitle(tick.value) }}"
|
|
@@ -893,7 +896,7 @@ SliderTicksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
893
896
|
{{ tickTitle(value) }}
|
|
894
897
|
</ng-template>
|
|
895
898
|
`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderTicksComponent, decorators: [{
|
|
897
900
|
type: Component,
|
|
898
901
|
args: [{
|
|
899
902
|
selector: '[kendoSliderTicks]',
|
|
@@ -944,9 +947,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
944
947
|
*/
|
|
945
948
|
class SliderMessages extends ComponentMessages {
|
|
946
949
|
}
|
|
947
|
-
SliderMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
948
|
-
SliderMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
950
|
+
SliderMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
951
|
+
SliderMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: SliderMessages, selector: "kendo-slider-messages-base", inputs: { decrement: "decrement", increment: "increment", dragHandle: "dragHandle" }, usesInheritance: true, ngImport: i0 });
|
|
952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderMessages, decorators: [{
|
|
950
953
|
type: Directive,
|
|
951
954
|
args: [{
|
|
952
955
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -969,14 +972,14 @@ class LocalizedSliderMessagesDirective extends SliderMessages {
|
|
|
969
972
|
this.service = service;
|
|
970
973
|
}
|
|
971
974
|
}
|
|
972
|
-
LocalizedSliderMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
973
|
-
LocalizedSliderMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
975
|
+
LocalizedSliderMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSliderMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
976
|
+
LocalizedSliderMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]", providers: [
|
|
974
977
|
{
|
|
975
978
|
provide: SliderMessages,
|
|
976
979
|
useExisting: forwardRef(() => LocalizedSliderMessagesDirective)
|
|
977
980
|
}
|
|
978
981
|
], usesInheritance: true, ngImport: i0 });
|
|
979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSliderMessagesDirective, decorators: [{
|
|
980
983
|
type: Directive,
|
|
981
984
|
args: [{
|
|
982
985
|
providers: [
|
|
@@ -989,6 +992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
989
992
|
}]
|
|
990
993
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
991
994
|
|
|
995
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
992
996
|
const PRESSED$1 = 'k-pressed';
|
|
993
997
|
/**
|
|
994
998
|
* Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
|
|
@@ -1021,13 +1025,29 @@ class SliderComponent extends SliderBase {
|
|
|
1021
1025
|
* The component can use either NgModel or the `value` binding but not both of them at the same time.
|
|
1022
1026
|
*/
|
|
1023
1027
|
this.value = this.min;
|
|
1028
|
+
/**
|
|
1029
|
+
* @hidden
|
|
1030
|
+
*/
|
|
1031
|
+
this.arrowUpIcon = caretAltUpIcon;
|
|
1032
|
+
/**
|
|
1033
|
+
* @hidden
|
|
1034
|
+
*/
|
|
1035
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
1036
|
+
/**
|
|
1037
|
+
* @hidden
|
|
1038
|
+
*/
|
|
1039
|
+
this.arrowLeftIcon = caretAltLeftIcon;
|
|
1040
|
+
/**
|
|
1041
|
+
* @hidden
|
|
1042
|
+
*/
|
|
1043
|
+
this.arrowRightIcon = caretAltRightIcon;
|
|
1024
1044
|
this.focusChangedProgrammatically = false;
|
|
1025
1045
|
/**
|
|
1026
1046
|
* @hidden
|
|
1027
1047
|
*/
|
|
1028
1048
|
this.onWrapClick = (args) => {
|
|
1029
1049
|
const target = args.target;
|
|
1030
|
-
if (!this.isDisabled && !(
|
|
1050
|
+
if (!this.isDisabled && !(target.closest('.k-button'))) {
|
|
1031
1051
|
const value = eventValue(args, this.track.nativeElement, this.getProps());
|
|
1032
1052
|
this.changeValue(value);
|
|
1033
1053
|
}
|
|
@@ -1356,13 +1376,13 @@ class SliderComponent extends SliderBase {
|
|
|
1356
1376
|
});
|
|
1357
1377
|
}
|
|
1358
1378
|
}
|
|
1359
|
-
SliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1360
|
-
SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
1379
|
+
SliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1380
|
+
SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SliderComponent, selector: "kendo-slider", inputs: { focusableId: "focusableId", dragHandleTitle: "dragHandleTitle", incrementTitle: "incrementTitle", animate: "animate", decrementTitle: "decrementTitle", showButtons: "showButtons", value: "value", tabIndex: "tabIndex" }, providers: [
|
|
1361
1381
|
LocalizationService,
|
|
1362
1382
|
{ provide: L10N_PREFIX, useValue: 'kendo.slider' },
|
|
1363
1383
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent) },
|
|
1364
1384
|
{ provide: KendoInput, useExisting: forwardRef(() => SliderComponent) }
|
|
1365
|
-
], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1385
|
+
], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true, read: ElementRef }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true, read: ElementRef }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1366
1386
|
<ng-container kendoSliderLocalizedMessages
|
|
1367
1387
|
i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."
|
|
1368
1388
|
increment="increment"
|
|
@@ -1377,16 +1397,19 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
1377
1397
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
1378
1398
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
1379
1399
|
>
|
|
1380
|
-
<button
|
|
1381
|
-
|
|
1400
|
+
<button
|
|
1401
|
+
kendoButton
|
|
1402
|
+
#decreaseButton
|
|
1403
|
+
*ngIf="showButtons"
|
|
1404
|
+
type="button"
|
|
1405
|
+
rounded="full"
|
|
1406
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
1407
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
1408
|
+
class="k-button-decrease"
|
|
1382
1409
|
[title]="decrementMessage"
|
|
1383
1410
|
[attr.tabindex]="-1"
|
|
1384
|
-
role="presentation"
|
|
1385
|
-
|
|
1386
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
1387
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
1388
|
-
</span>
|
|
1389
|
-
</button>
|
|
1411
|
+
role="presentation"
|
|
1412
|
+
></button>
|
|
1390
1413
|
<div class="k-slider-track-wrap">
|
|
1391
1414
|
<ul kendoSliderTicks
|
|
1392
1415
|
#ticks
|
|
@@ -1425,22 +1448,25 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
1425
1448
|
></span>
|
|
1426
1449
|
</div>
|
|
1427
1450
|
</div>
|
|
1428
|
-
<button
|
|
1429
|
-
|
|
1451
|
+
<button
|
|
1452
|
+
kendoButton
|
|
1453
|
+
#increaseButton
|
|
1454
|
+
*ngIf="showButtons"
|
|
1455
|
+
type="button"
|
|
1456
|
+
rounded="full"
|
|
1457
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
1458
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
1459
|
+
class="k-button-increase"
|
|
1430
1460
|
[title]="incrementMessage"
|
|
1431
1461
|
(click)="$event.preventDefault()"
|
|
1432
1462
|
[attr.tabindex]="-1"
|
|
1433
1463
|
[attr.aria-label]="currentValue"
|
|
1434
|
-
role="presentation"
|
|
1435
|
-
|
|
1436
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
1437
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
1438
|
-
</span>
|
|
1439
|
-
</button>
|
|
1464
|
+
role="presentation"
|
|
1465
|
+
></button>
|
|
1440
1466
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1441
1467
|
</div>
|
|
1442
|
-
`, isInline: true, components: [{ type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
1443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1468
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
1469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1444
1470
|
type: Component,
|
|
1445
1471
|
args: [{
|
|
1446
1472
|
exportAs: 'kendoSlider',
|
|
@@ -1466,16 +1492,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1466
1492
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
1467
1493
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
1468
1494
|
>
|
|
1469
|
-
<button
|
|
1470
|
-
|
|
1495
|
+
<button
|
|
1496
|
+
kendoButton
|
|
1497
|
+
#decreaseButton
|
|
1498
|
+
*ngIf="showButtons"
|
|
1499
|
+
type="button"
|
|
1500
|
+
rounded="full"
|
|
1501
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
1502
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
1503
|
+
class="k-button-decrease"
|
|
1471
1504
|
[title]="decrementMessage"
|
|
1472
1505
|
[attr.tabindex]="-1"
|
|
1473
|
-
role="presentation"
|
|
1474
|
-
|
|
1475
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
1476
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
1477
|
-
</span>
|
|
1478
|
-
</button>
|
|
1506
|
+
role="presentation"
|
|
1507
|
+
></button>
|
|
1479
1508
|
<div class="k-slider-track-wrap">
|
|
1480
1509
|
<ul kendoSliderTicks
|
|
1481
1510
|
#ticks
|
|
@@ -1514,18 +1543,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1514
1543
|
></span>
|
|
1515
1544
|
</div>
|
|
1516
1545
|
</div>
|
|
1517
|
-
<button
|
|
1518
|
-
|
|
1546
|
+
<button
|
|
1547
|
+
kendoButton
|
|
1548
|
+
#increaseButton
|
|
1549
|
+
*ngIf="showButtons"
|
|
1550
|
+
type="button"
|
|
1551
|
+
rounded="full"
|
|
1552
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
1553
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
1554
|
+
class="k-button-increase"
|
|
1519
1555
|
[title]="incrementMessage"
|
|
1520
1556
|
(click)="$event.preventDefault()"
|
|
1521
1557
|
[attr.tabindex]="-1"
|
|
1522
1558
|
[attr.aria-label]="currentValue"
|
|
1523
|
-
role="presentation"
|
|
1524
|
-
|
|
1525
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
1526
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
1527
|
-
</span>
|
|
1528
|
-
</button>
|
|
1559
|
+
role="presentation"
|
|
1560
|
+
></button>
|
|
1529
1561
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1530
1562
|
</div>
|
|
1531
1563
|
`
|
|
@@ -1551,10 +1583,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1551
1583
|
args: ['draghandle', { static: true }]
|
|
1552
1584
|
}], decreaseButton: [{
|
|
1553
1585
|
type: ViewChild,
|
|
1554
|
-
args: ['decreaseButton', {
|
|
1586
|
+
args: ['decreaseButton', { read: ElementRef }]
|
|
1555
1587
|
}], increaseButton: [{
|
|
1556
1588
|
type: ViewChild,
|
|
1557
|
-
args: ['increaseButton', {
|
|
1589
|
+
args: ['increaseButton', { read: ElementRef }]
|
|
1558
1590
|
}] } });
|
|
1559
1591
|
|
|
1560
1592
|
/**
|
|
@@ -1608,9 +1640,9 @@ class RangeSliderModel extends SliderModelBase {
|
|
|
1608
1640
|
*/
|
|
1609
1641
|
class RangeSliderMessages extends ComponentMessages {
|
|
1610
1642
|
}
|
|
1611
|
-
RangeSliderMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1612
|
-
RangeSliderMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1643
|
+
RangeSliderMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1644
|
+
RangeSliderMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: RangeSliderMessages, selector: "kendo-rangeslider-messages-base", inputs: { dragHandleStart: "dragHandleStart", dragHandleEnd: "dragHandleEnd" }, usesInheritance: true, ngImport: i0 });
|
|
1645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderMessages, decorators: [{
|
|
1614
1646
|
type: Directive,
|
|
1615
1647
|
args: [{
|
|
1616
1648
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1631,14 +1663,14 @@ class LocalizedRangeSliderMessagesDirective extends RangeSliderMessages {
|
|
|
1631
1663
|
this.service = service;
|
|
1632
1664
|
}
|
|
1633
1665
|
}
|
|
1634
|
-
LocalizedRangeSliderMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1635
|
-
LocalizedRangeSliderMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1666
|
+
LocalizedRangeSliderMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1667
|
+
LocalizedRangeSliderMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedRangeSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]", providers: [
|
|
1636
1668
|
{
|
|
1637
1669
|
provide: RangeSliderMessages,
|
|
1638
1670
|
useExisting: forwardRef(() => LocalizedRangeSliderMessagesDirective)
|
|
1639
1671
|
}
|
|
1640
1672
|
], usesInheritance: true, ngImport: i0 });
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, decorators: [{
|
|
1642
1674
|
type: Directive,
|
|
1643
1675
|
args: [{
|
|
1644
1676
|
providers: [
|
|
@@ -1725,7 +1757,7 @@ class RangeSliderComponent extends SliderBase {
|
|
|
1725
1757
|
const nonDraggedHandle = startHandleIsActive ? this.draghandleEnd.nativeElement : this.draghandleStart.nativeElement;
|
|
1726
1758
|
this.renderer.removeStyle(nonDraggedHandle, 'zIndex');
|
|
1727
1759
|
this.renderer.setStyle(e.target, 'zIndex', 1);
|
|
1728
|
-
const value = handler(
|
|
1760
|
+
const value = handler({ ...options, value: startHandleIsActive ? this.value[0] : this.value[1] });
|
|
1729
1761
|
if (startHandleIsActive) {
|
|
1730
1762
|
if (value > this.value[1]) {
|
|
1731
1763
|
this.value[1] = value;
|
|
@@ -1797,8 +1829,8 @@ class RangeSliderComponent extends SliderBase {
|
|
|
1797
1829
|
}
|
|
1798
1830
|
ngOnChanges(changes) {
|
|
1799
1831
|
if (anyChanged(['value', 'fixedTickWidth', 'tickPlacement'], changes, true)) {
|
|
1800
|
-
if (changes
|
|
1801
|
-
validateValue(changes
|
|
1832
|
+
if (changes['value'] && changes['value'].currentValue) {
|
|
1833
|
+
validateValue(changes['value'].currentValue);
|
|
1802
1834
|
}
|
|
1803
1835
|
this.ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {
|
|
1804
1836
|
this.sizeComponent();
|
|
@@ -2062,8 +2094,8 @@ class RangeSliderComponent extends SliderBase {
|
|
|
2062
2094
|
});
|
|
2063
2095
|
}
|
|
2064
2096
|
}
|
|
2065
|
-
RangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2066
|
-
RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
2097
|
+
RangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2098
|
+
RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RangeSliderComponent, selector: "kendo-rangeslider", inputs: { value: "value" }, providers: [
|
|
2067
2099
|
LocalizationService,
|
|
2068
2100
|
{ provide: L10N_PREFIX, useValue: 'kendo.rangeslider' },
|
|
2069
2101
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RangeSliderComponent) },
|
|
@@ -2141,7 +2173,7 @@ RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2141
2173
|
<kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>
|
|
2142
2174
|
</div>
|
|
2143
2175
|
`, isInline: true, components: [{ type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedRangeSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
2144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderComponent, decorators: [{
|
|
2145
2177
|
type: Component,
|
|
2146
2178
|
args: [{
|
|
2147
2179
|
exportAs: 'kendoRangeSlider',
|
|
@@ -2241,9 +2273,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2241
2273
|
*/
|
|
2242
2274
|
class Messages extends ComponentMessages {
|
|
2243
2275
|
}
|
|
2244
|
-
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2245
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2276
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2277
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: Messages, selector: "kendo-switch-messages-base", inputs: { on: "on", off: "off" }, usesInheritance: true, ngImport: i0 });
|
|
2278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: Messages, decorators: [{
|
|
2247
2279
|
type: Directive,
|
|
2248
2280
|
args: [{
|
|
2249
2281
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -2264,14 +2296,14 @@ class LocalizedSwitchMessagesDirective extends Messages {
|
|
|
2264
2296
|
this.service = service;
|
|
2265
2297
|
}
|
|
2266
2298
|
}
|
|
2267
|
-
LocalizedSwitchMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2268
|
-
LocalizedSwitchMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2299
|
+
LocalizedSwitchMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSwitchMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2300
|
+
LocalizedSwitchMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedSwitchMessagesDirective, selector: "[kendoSwitchLocalizedMessages]", providers: [
|
|
2269
2301
|
{
|
|
2270
2302
|
provide: Messages,
|
|
2271
2303
|
useExisting: forwardRef(() => LocalizedSwitchMessagesDirective)
|
|
2272
2304
|
}
|
|
2273
2305
|
], usesInheritance: true, ngImport: i0 });
|
|
2274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSwitchMessagesDirective, decorators: [{
|
|
2275
2307
|
type: Directive,
|
|
2276
2308
|
args: [{
|
|
2277
2309
|
providers: [
|
|
@@ -2644,9 +2676,8 @@ class SwitchComponent {
|
|
|
2644
2676
|
}
|
|
2645
2677
|
}
|
|
2646
2678
|
handleTrackClasses(value) {
|
|
2647
|
-
|
|
2648
|
-
const
|
|
2649
|
-
const track = (_b = this.track) === null || _b === void 0 ? void 0 : _b.nativeElement;
|
|
2679
|
+
const elem = this.hostElement?.nativeElement;
|
|
2680
|
+
const track = this.track?.nativeElement;
|
|
2650
2681
|
if (!elem || !track) {
|
|
2651
2682
|
return;
|
|
2652
2683
|
}
|
|
@@ -2661,8 +2692,7 @@ class SwitchComponent {
|
|
|
2661
2692
|
}
|
|
2662
2693
|
}
|
|
2663
2694
|
handleThumbClasses(value) {
|
|
2664
|
-
|
|
2665
|
-
const thumb = (_a = this.thumb) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
2695
|
+
const thumb = this.thumb?.nativeElement;
|
|
2666
2696
|
if (!thumb) {
|
|
2667
2697
|
return;
|
|
2668
2698
|
}
|
|
@@ -2675,8 +2705,8 @@ class SwitchComponent {
|
|
|
2675
2705
|
}
|
|
2676
2706
|
}
|
|
2677
2707
|
}
|
|
2678
|
-
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2679
|
-
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
2708
|
+
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2709
|
+
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SwitchComponent, selector: "kendo-switch", inputs: { focusableId: "focusableId", onLabel: "onLabel", offLabel: "offLabel", checked: "checked", disabled: "disabled", readonly: "readonly", tabindex: "tabindex", size: "size", thumbRounded: "thumbRounded", trackRounded: "trackRounded", tabIndex: "tabIndex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-ie": "this.ieClass", "attr.aria-disabled": "this.ariaDisabled", "attr.aria-readonly": "this.ariaReadonly", "class.k-switch": "this.hostClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
2680
2710
|
LocalizationService,
|
|
2681
2711
|
{ provide: L10N_PREFIX, useValue: 'kendo.switch' },
|
|
2682
2712
|
{
|
|
@@ -2722,7 +2752,7 @@ SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
2722
2752
|
<span #thumb class="k-switch-thumb"></span>
|
|
2723
2753
|
</span>
|
|
2724
2754
|
`, isInline: true, directives: [{ type: LocalizedSwitchMessagesDirective, selector: "[kendoSwitchLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
2725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
2726
2756
|
type: Component,
|
|
2727
2757
|
args: [{
|
|
2728
2758
|
exportAs: 'kendoSwitch',
|
|
@@ -2913,12 +2943,12 @@ class TextBoxDirective {
|
|
|
2913
2943
|
this.listeners.forEach(listener => listener());
|
|
2914
2944
|
}
|
|
2915
2945
|
}
|
|
2916
|
-
TextBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2917
|
-
TextBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2946
|
+
TextBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2947
|
+
TextBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxDirective, selector: "input[kendoTextBox]", inputs: { value: "value" }, host: { properties: { "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-input-md": "this.hostClasses", "class.k-rounded-md": "this.hostClasses", "class.k-input-solid": "this.hostClasses" } }, providers: [{
|
|
2918
2948
|
provide: KendoInput,
|
|
2919
2949
|
useExisting: forwardRef(() => TextBoxDirective)
|
|
2920
2950
|
}], ngImport: i0 });
|
|
2921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxDirective, decorators: [{
|
|
2922
2952
|
type: Directive,
|
|
2923
2953
|
args: [{
|
|
2924
2954
|
selector: 'input[kendoTextBox]',
|
|
@@ -3139,8 +3169,8 @@ class TextAreaDirective {
|
|
|
3139
3169
|
}
|
|
3140
3170
|
}
|
|
3141
3171
|
}
|
|
3142
|
-
TextAreaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3143
|
-
TextAreaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3172
|
+
TextAreaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3173
|
+
TextAreaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextAreaDirective, selector: "textarea[kendoTextArea]", inputs: { autoSize: "autoSize", value: "value" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-textarea": "this.elementClasses", "class.k-input": "this.elementClasses", "class.k-input-md": "this.elementClasses", "class.k-rounded-md": "this.elementClasses", "class.k-input-solid": "this.elementClasses", "class.k-autofill": "this.autofillClass", "attr.dir": "this.direction" } }, providers: [{
|
|
3144
3174
|
provide: NG_VALUE_ACCESSOR,
|
|
3145
3175
|
useExisting: forwardRef(() => TextAreaDirective),
|
|
3146
3176
|
multi: true
|
|
@@ -3148,7 +3178,7 @@ TextAreaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", vers
|
|
|
3148
3178
|
provide: KendoInput,
|
|
3149
3179
|
useExisting: forwardRef(() => TextAreaDirective)
|
|
3150
3180
|
}], usesOnChanges: true, ngImport: i0 });
|
|
3151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaDirective, decorators: [{
|
|
3152
3182
|
type: Directive,
|
|
3153
3183
|
args: [{
|
|
3154
3184
|
providers: [{
|
|
@@ -3282,7 +3312,8 @@ const decimalPart = (value) => {
|
|
|
3282
3312
|
/**
|
|
3283
3313
|
* @hidden
|
|
3284
3314
|
*/
|
|
3285
|
-
|
|
3315
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3316
|
+
const noop$1 = (_) => { };
|
|
3286
3317
|
/**
|
|
3287
3318
|
* @hidden
|
|
3288
3319
|
*/
|
|
@@ -3356,9 +3387,9 @@ var ArrowDirection;
|
|
|
3356
3387
|
*/
|
|
3357
3388
|
class NumericTextBoxMessages extends ComponentMessages {
|
|
3358
3389
|
}
|
|
3359
|
-
NumericTextBoxMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3360
|
-
NumericTextBoxMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3390
|
+
NumericTextBoxMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3391
|
+
NumericTextBoxMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: NumericTextBoxMessages, selector: "kendo-numerictextbox-messages-base", inputs: { decrement: "decrement", increment: "increment" }, usesInheritance: true, ngImport: i0 });
|
|
3392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxMessages, decorators: [{
|
|
3362
3393
|
type: Directive,
|
|
3363
3394
|
args: [{
|
|
3364
3395
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -3379,14 +3410,14 @@ class LocalizedNumericTextBoxMessagesDirective extends NumericTextBoxMessages {
|
|
|
3379
3410
|
this.service = service;
|
|
3380
3411
|
}
|
|
3381
3412
|
}
|
|
3382
|
-
LocalizedNumericTextBoxMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3383
|
-
LocalizedNumericTextBoxMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3413
|
+
LocalizedNumericTextBoxMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedNumericTextBoxMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3414
|
+
LocalizedNumericTextBoxMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]", providers: [
|
|
3384
3415
|
{
|
|
3385
3416
|
provide: NumericTextBoxMessages,
|
|
3386
3417
|
useExisting: forwardRef(() => LocalizedNumericTextBoxMessagesDirective)
|
|
3387
3418
|
}
|
|
3388
3419
|
], usesInheritance: true, ngImport: i0 });
|
|
3389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedNumericTextBoxMessagesDirective, decorators: [{
|
|
3390
3421
|
type: Directive,
|
|
3391
3422
|
args: [{
|
|
3392
3423
|
providers: [
|
|
@@ -3399,6 +3430,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3399
3430
|
}]
|
|
3400
3431
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
3401
3432
|
|
|
3433
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3402
3434
|
const PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
|
|
3403
3435
|
const PARSABLE_DEFAULTS = {
|
|
3404
3436
|
decimals: null,
|
|
@@ -3505,6 +3537,14 @@ class NumericTextBoxComponent {
|
|
|
3505
3537
|
*/
|
|
3506
3538
|
this.arrowDirection = ArrowDirection.None;
|
|
3507
3539
|
this.hostClasses = true;
|
|
3540
|
+
/**
|
|
3541
|
+
* @hidden
|
|
3542
|
+
*/
|
|
3543
|
+
this.arrowUpIcon = caretAltUpIcon;
|
|
3544
|
+
/**
|
|
3545
|
+
* @hidden
|
|
3546
|
+
*/
|
|
3547
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
3508
3548
|
this.inputValue = '';
|
|
3509
3549
|
this.minValidateFn = noop$1;
|
|
3510
3550
|
this.maxValidateFn = noop$1;
|
|
@@ -3830,7 +3870,7 @@ class NumericTextBoxComponent {
|
|
|
3830
3870
|
*/
|
|
3831
3871
|
writeValue(value) {
|
|
3832
3872
|
this.verifyValue(value);
|
|
3833
|
-
|
|
3873
|
+
const restrictedValue = this.restrictModelValue(value);
|
|
3834
3874
|
this.value = restrictedValue;
|
|
3835
3875
|
this.setInputValue();
|
|
3836
3876
|
}
|
|
@@ -3919,9 +3959,6 @@ class NumericTextBoxComponent {
|
|
|
3919
3959
|
get focused() {
|
|
3920
3960
|
return this.isFocused;
|
|
3921
3961
|
}
|
|
3922
|
-
get hasDecimals() {
|
|
3923
|
-
return this.decimals !== null && this.decimals >= 0;
|
|
3924
|
-
}
|
|
3925
3962
|
set focused(value) {
|
|
3926
3963
|
if (this.isFocused !== value && this.hostElement) {
|
|
3927
3964
|
const wrap = this.hostElement.nativeElement;
|
|
@@ -3934,6 +3971,9 @@ class NumericTextBoxComponent {
|
|
|
3934
3971
|
this.isFocused = value;
|
|
3935
3972
|
}
|
|
3936
3973
|
}
|
|
3974
|
+
get hasDecimals() {
|
|
3975
|
+
return this.decimals !== null && this.decimals >= 0;
|
|
3976
|
+
}
|
|
3937
3977
|
get isDisabled() {
|
|
3938
3978
|
return this.disabled || this.readonly;
|
|
3939
3979
|
}
|
|
@@ -4021,7 +4061,7 @@ class NumericTextBoxComponent {
|
|
|
4021
4061
|
return result;
|
|
4022
4062
|
}
|
|
4023
4063
|
limitInputValue(value) {
|
|
4024
|
-
|
|
4064
|
+
const { selectionStart, selectionEnd, value: enteredValue } = this.numericInput.nativeElement;
|
|
4025
4065
|
let limitedValue = value;
|
|
4026
4066
|
let selectToEnd = false;
|
|
4027
4067
|
if (!this.isInRange(value)) {
|
|
@@ -4231,8 +4271,8 @@ class NumericTextBoxComponent {
|
|
|
4231
4271
|
}
|
|
4232
4272
|
}
|
|
4233
4273
|
}
|
|
4234
|
-
NumericTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4235
|
-
NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
4274
|
+
NumericTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxComponent, deps: [{ token: i1$2.IntlService }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4275
|
+
NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", title: "title", autoCorrect: "autoCorrect", format: "format", max: "max", min: "min", decimals: "decimals", placeholder: "placeholder", step: "step", spinners: "spinners", rangeValidation: "rangeValidation", tabindex: "tabindex", tabIndex: "tabIndex", changeValueOnScroll: "changeValueOnScroll", selectOnFocus: "selectOnFocus", value: "value", maxlength: "maxlength", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur" }, host: { properties: { "attr.dir": "this.direction", "class.k-disabled": "this.disableClass", "class.k-input": "this.hostClasses", "class.k-numerictextbox": "this.hostClasses" } }, providers: [
|
|
4236
4276
|
LocalizationService,
|
|
4237
4277
|
{ provide: L10N_PREFIX, useValue: 'kendo.numerictextbox' },
|
|
4238
4278
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NumericTextBoxComponent), multi: true },
|
|
@@ -4282,12 +4322,17 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4282
4322
|
[attr.aria-hidden]="true"
|
|
4283
4323
|
[attr.aria-label]="incrementTitle"
|
|
4284
4324
|
[title]="incrementTitle"
|
|
4285
|
-
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4286
4325
|
class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4326
|
+
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4287
4327
|
tabindex="-1"
|
|
4288
4328
|
>
|
|
4289
|
-
<
|
|
4290
|
-
|
|
4329
|
+
<kendo-icon-wrapper
|
|
4330
|
+
name="caret-alt-up"
|
|
4331
|
+
innerCssClass="k-button-icon"
|
|
4332
|
+
[svgIcon]="arrowUpIcon"
|
|
4333
|
+
>
|
|
4334
|
+
</kendo-icon-wrapper>
|
|
4335
|
+
</button>
|
|
4291
4336
|
<button
|
|
4292
4337
|
type="button"
|
|
4293
4338
|
[kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
|
|
@@ -4297,12 +4342,17 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4297
4342
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
4298
4343
|
class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4299
4344
|
tabindex="-1"
|
|
4300
|
-
|
|
4301
|
-
<
|
|
4302
|
-
|
|
4345
|
+
>
|
|
4346
|
+
<kendo-icon-wrapper
|
|
4347
|
+
name="caret-alt-down"
|
|
4348
|
+
innerCssClass="k-button-icon"
|
|
4349
|
+
[svgIcon]="arrowDownIcon"
|
|
4350
|
+
>
|
|
4351
|
+
</kendo-icon-wrapper>
|
|
4352
|
+
</button>
|
|
4303
4353
|
</span>
|
|
4304
|
-
`, isInline: true, directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4354
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxComponent, decorators: [{
|
|
4306
4356
|
type: Component,
|
|
4307
4357
|
args: [{
|
|
4308
4358
|
exportAs: 'kendoNumericTextBox',
|
|
@@ -4358,12 +4408,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4358
4408
|
[attr.aria-hidden]="true"
|
|
4359
4409
|
[attr.aria-label]="incrementTitle"
|
|
4360
4410
|
[title]="incrementTitle"
|
|
4361
|
-
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4362
4411
|
class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4412
|
+
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4363
4413
|
tabindex="-1"
|
|
4364
4414
|
>
|
|
4365
|
-
<
|
|
4366
|
-
|
|
4415
|
+
<kendo-icon-wrapper
|
|
4416
|
+
name="caret-alt-up"
|
|
4417
|
+
innerCssClass="k-button-icon"
|
|
4418
|
+
[svgIcon]="arrowUpIcon"
|
|
4419
|
+
>
|
|
4420
|
+
</kendo-icon-wrapper>
|
|
4421
|
+
</button>
|
|
4367
4422
|
<button
|
|
4368
4423
|
type="button"
|
|
4369
4424
|
[kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
|
|
@@ -4373,9 +4428,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4373
4428
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
4374
4429
|
class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4375
4430
|
tabindex="-1"
|
|
4376
|
-
|
|
4377
|
-
<
|
|
4378
|
-
|
|
4431
|
+
>
|
|
4432
|
+
<kendo-icon-wrapper
|
|
4433
|
+
name="caret-alt-down"
|
|
4434
|
+
innerCssClass="k-button-icon"
|
|
4435
|
+
[svgIcon]="arrowDownIcon"
|
|
4436
|
+
>
|
|
4437
|
+
</kendo-icon-wrapper>
|
|
4438
|
+
</button>
|
|
4379
4439
|
</span>
|
|
4380
4440
|
`
|
|
4381
4441
|
}]
|
|
@@ -4460,14 +4520,14 @@ class NumericTextBoxCustomMessagesComponent extends NumericTextBoxMessages {
|
|
|
4460
4520
|
return true;
|
|
4461
4521
|
}
|
|
4462
4522
|
}
|
|
4463
|
-
NumericTextBoxCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4464
|
-
NumericTextBoxCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
4523
|
+
NumericTextBoxCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4524
|
+
NumericTextBoxCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NumericTextBoxCustomMessagesComponent, selector: "kendo-numerictextbox-messages", providers: [
|
|
4465
4525
|
{
|
|
4466
4526
|
provide: NumericTextBoxMessages,
|
|
4467
4527
|
useExisting: forwardRef(() => NumericTextBoxCustomMessagesComponent)
|
|
4468
4528
|
}
|
|
4469
4529
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
4470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxCustomMessagesComponent, decorators: [{
|
|
4471
4531
|
type: Component,
|
|
4472
4532
|
args: [{
|
|
4473
4533
|
providers: [
|
|
@@ -4614,7 +4674,7 @@ const mask = ({ prompt, promptPlaceholder }) => rule => new Parser(stream => {
|
|
|
4614
4674
|
*/
|
|
4615
4675
|
const literal = _token => new Parser(stream => {
|
|
4616
4676
|
// let {char, control} = stream.peek();
|
|
4617
|
-
|
|
4677
|
+
const char = stream.peek().char;
|
|
4618
4678
|
if (char === _token) {
|
|
4619
4679
|
stream.eat();
|
|
4620
4680
|
return new Result(_token, stream, ResultType.Literal);
|
|
@@ -4682,7 +4742,7 @@ const token = (rules, creator) => new Parser(stream => {
|
|
|
4682
4742
|
* @hidden
|
|
4683
4743
|
*/
|
|
4684
4744
|
const rawMask = ({ prompt, promptPlaceholder }) => new Parser(stream => {
|
|
4685
|
-
|
|
4745
|
+
const { char } = stream.next();
|
|
4686
4746
|
if (char === prompt) {
|
|
4687
4747
|
return new Result(promptPlaceholder, stream);
|
|
4688
4748
|
}
|
|
@@ -4692,7 +4752,7 @@ const rawMask = ({ prompt, promptPlaceholder }) => new Parser(stream => {
|
|
|
4692
4752
|
* @hidden
|
|
4693
4753
|
*/
|
|
4694
4754
|
const rawLiteral = includeLiterals => new Parser(stream => {
|
|
4695
|
-
|
|
4755
|
+
const { char } = stream.next();
|
|
4696
4756
|
if (includeLiterals) {
|
|
4697
4757
|
return new Result(char, stream);
|
|
4698
4758
|
}
|
|
@@ -4789,7 +4849,7 @@ class MaskingService {
|
|
|
4789
4849
|
}
|
|
4790
4850
|
maskInRange(pasted, oldValue, start, end) {
|
|
4791
4851
|
let value = '';
|
|
4792
|
-
|
|
4852
|
+
const selection = end;
|
|
4793
4853
|
const beforeChange = oldValue.split('').slice(0, start);
|
|
4794
4854
|
const afterChange = oldValue.split('').slice(end);
|
|
4795
4855
|
sequence(this.maskTokens.slice(start, end))
|
|
@@ -4900,9 +4960,9 @@ class MaskingService {
|
|
|
4900
4960
|
});
|
|
4901
4961
|
}
|
|
4902
4962
|
}
|
|
4903
|
-
MaskingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4904
|
-
MaskingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4963
|
+
MaskingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4964
|
+
MaskingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskingService });
|
|
4965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskingService, decorators: [{
|
|
4906
4966
|
type: Injectable
|
|
4907
4967
|
}] });
|
|
4908
4968
|
|
|
@@ -5188,7 +5248,7 @@ class MaskedTextBoxComponent {
|
|
|
5188
5248
|
*/
|
|
5189
5249
|
isEmpty() {
|
|
5190
5250
|
if (this.input) {
|
|
5191
|
-
return !
|
|
5251
|
+
return !this.input.nativeElement.value;
|
|
5192
5252
|
}
|
|
5193
5253
|
}
|
|
5194
5254
|
/**
|
|
@@ -5267,7 +5327,7 @@ class MaskedTextBoxComponent {
|
|
|
5267
5327
|
* @hidden
|
|
5268
5328
|
*/
|
|
5269
5329
|
ngOnChanges(changes) {
|
|
5270
|
-
if (changes
|
|
5330
|
+
if (changes['value']) {
|
|
5271
5331
|
this.value = this.normalizeValue();
|
|
5272
5332
|
}
|
|
5273
5333
|
if (!this.mask) {
|
|
@@ -5278,7 +5338,7 @@ class MaskedTextBoxComponent {
|
|
|
5278
5338
|
this.updateService(next);
|
|
5279
5339
|
const maskedValue = this.service.maskRaw(this.value);
|
|
5280
5340
|
this.updateInput(maskedValue, null, true);
|
|
5281
|
-
if (changes
|
|
5341
|
+
if (changes['includeLiterals'] || isChanged('promptPlaceholder', changes)) {
|
|
5282
5342
|
resolvedPromise.then(() => {
|
|
5283
5343
|
this.updateValueWithEvents(this.maskedValue);
|
|
5284
5344
|
});
|
|
@@ -5444,8 +5504,8 @@ class MaskedTextBoxComponent {
|
|
|
5444
5504
|
}
|
|
5445
5505
|
}
|
|
5446
5506
|
}
|
|
5447
|
-
MaskedTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5448
|
-
MaskedTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
5507
|
+
MaskedTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxComponent, deps: [{ token: MaskingService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5508
|
+
MaskedTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MaskedTextBoxComponent, selector: "kendo-maskedtextbox", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", title: "title", size: "size", rounded: "rounded", fillMode: "fillMode", mask: "mask", value: "value", rules: "rules", prompt: "prompt", promptPlaceholder: "promptPlaceholder", includeLiterals: "includeLiterals", maskOnFocus: "maskOnFocus", maskValidation: "maskValidation", tabindex: "tabindex", tabIndex: "tabIndex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { listeners: { "paste": "pasteHandler($event)", "input": "inputHandler($event)" }, properties: { "attr.dir": "this.direction", "class.k-input": "this.hostClasses", "class.k-maskedtextbox": "this.hostClasses", "class.k-disabled": "this.hostDisabledClass" } }, providers: [
|
|
5449
5509
|
MaskingService,
|
|
5450
5510
|
{
|
|
5451
5511
|
multi: true,
|
|
@@ -5485,7 +5545,7 @@ MaskedTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
5485
5545
|
}"
|
|
5486
5546
|
/>
|
|
5487
5547
|
`, isInline: true, directives: [{ type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
5488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxComponent, decorators: [{
|
|
5489
5549
|
type: Component,
|
|
5490
5550
|
args: [{
|
|
5491
5551
|
exportAs: 'kendoMaskedTextBox',
|
|
@@ -5607,17 +5667,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5607
5667
|
*/
|
|
5608
5668
|
class SlidersCommonModule {
|
|
5609
5669
|
}
|
|
5610
|
-
SlidersCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5611
|
-
SlidersCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5670
|
+
SlidersCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlidersCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5671
|
+
SlidersCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlidersCommonModule, declarations: [SliderTicksComponent,
|
|
5612
5672
|
LabelTemplateDirective], imports: [CommonModule, DraggableModule, EventsModule, ResizeSensorModule], exports: [LabelTemplateDirective,
|
|
5613
5673
|
SliderTicksComponent,
|
|
5614
5674
|
DraggableModule,
|
|
5615
5675
|
EventsModule,
|
|
5616
5676
|
ResizeSensorModule] });
|
|
5617
|
-
SlidersCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5677
|
+
SlidersCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlidersCommonModule, imports: [[CommonModule, DraggableModule, EventsModule, ResizeSensorModule], DraggableModule,
|
|
5618
5678
|
EventsModule,
|
|
5619
5679
|
ResizeSensorModule] });
|
|
5620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlidersCommonModule, decorators: [{
|
|
5621
5681
|
type: NgModule,
|
|
5622
5682
|
args: [{
|
|
5623
5683
|
declarations: [
|
|
@@ -5647,14 +5707,14 @@ class SliderCustomMessagesComponent extends SliderMessages {
|
|
|
5647
5707
|
return true;
|
|
5648
5708
|
}
|
|
5649
5709
|
}
|
|
5650
|
-
SliderCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5651
|
-
SliderCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
5710
|
+
SliderCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5711
|
+
SliderCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SliderCustomMessagesComponent, selector: "kendo-slider-messages", providers: [
|
|
5652
5712
|
{
|
|
5653
5713
|
provide: SliderMessages,
|
|
5654
5714
|
useExisting: forwardRef(() => SliderCustomMessagesComponent)
|
|
5655
5715
|
}
|
|
5656
5716
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
5657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderCustomMessagesComponent, decorators: [{
|
|
5658
5718
|
type: Component,
|
|
5659
5719
|
args: [{
|
|
5660
5720
|
providers: [
|
|
@@ -5669,7 +5729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5669
5729
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
5670
5730
|
|
|
5671
5731
|
/**
|
|
5672
|
-
* Represents the [NgModule](
|
|
5732
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5673
5733
|
* definition for the Slider component.
|
|
5674
5734
|
*
|
|
5675
5735
|
* @example
|
|
@@ -5702,15 +5762,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5702
5762
|
*/
|
|
5703
5763
|
class SliderModule {
|
|
5704
5764
|
}
|
|
5705
|
-
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5706
|
-
SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5765
|
+
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5766
|
+
SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, declarations: [SliderComponent,
|
|
5707
5767
|
SliderCustomMessagesComponent,
|
|
5708
|
-
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [SliderComponent,
|
|
5768
|
+
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule], exports: [SliderComponent,
|
|
5709
5769
|
SliderCustomMessagesComponent,
|
|
5710
5770
|
LabelTemplateDirective,
|
|
5711
5771
|
LocalizedSliderMessagesDirective] });
|
|
5712
|
-
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5772
|
+
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule, IconsModule, ButtonModule]] });
|
|
5773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, decorators: [{
|
|
5714
5774
|
type: NgModule,
|
|
5715
5775
|
args: [{
|
|
5716
5776
|
declarations: [
|
|
@@ -5724,7 +5784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5724
5784
|
LabelTemplateDirective,
|
|
5725
5785
|
LocalizedSliderMessagesDirective
|
|
5726
5786
|
],
|
|
5727
|
-
imports: [CommonModule, SlidersCommonModule]
|
|
5787
|
+
imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule]
|
|
5728
5788
|
}]
|
|
5729
5789
|
}] });
|
|
5730
5790
|
|
|
@@ -5740,14 +5800,14 @@ class RangeSliderCustomMessagesComponent extends RangeSliderMessages {
|
|
|
5740
5800
|
return true;
|
|
5741
5801
|
}
|
|
5742
5802
|
}
|
|
5743
|
-
RangeSliderCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5744
|
-
RangeSliderCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
5803
|
+
RangeSliderCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5804
|
+
RangeSliderCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: RangeSliderCustomMessagesComponent, selector: "kendo-rangeslider-messages", providers: [
|
|
5745
5805
|
{
|
|
5746
5806
|
provide: RangeSliderMessages,
|
|
5747
5807
|
useExisting: forwardRef(() => RangeSliderCustomMessagesComponent)
|
|
5748
5808
|
}
|
|
5749
5809
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
5750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderCustomMessagesComponent, decorators: [{
|
|
5751
5811
|
type: Component,
|
|
5752
5812
|
args: [{
|
|
5753
5813
|
providers: [
|
|
@@ -5762,7 +5822,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5762
5822
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
5763
5823
|
|
|
5764
5824
|
/**
|
|
5765
|
-
* Represents the [NgModule](
|
|
5825
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5766
5826
|
* definition for the RangeSlider component.
|
|
5767
5827
|
*
|
|
5768
5828
|
* @example
|
|
@@ -5795,15 +5855,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5795
5855
|
*/
|
|
5796
5856
|
class RangeSliderModule {
|
|
5797
5857
|
}
|
|
5798
|
-
RangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5799
|
-
RangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5858
|
+
RangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5859
|
+
RangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderModule, declarations: [RangeSliderComponent,
|
|
5800
5860
|
RangeSliderCustomMessagesComponent,
|
|
5801
5861
|
LocalizedRangeSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [RangeSliderComponent,
|
|
5802
5862
|
RangeSliderCustomMessagesComponent,
|
|
5803
5863
|
LocalizedRangeSliderMessagesDirective,
|
|
5804
5864
|
LabelTemplateDirective] });
|
|
5805
|
-
RangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5865
|
+
RangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderModule, imports: [[CommonModule, SlidersCommonModule]] });
|
|
5866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeSliderModule, decorators: [{
|
|
5807
5867
|
type: NgModule,
|
|
5808
5868
|
args: [{
|
|
5809
5869
|
declarations: [
|
|
@@ -5833,14 +5893,14 @@ class SwitchCustomMessagesComponent extends Messages {
|
|
|
5833
5893
|
return true;
|
|
5834
5894
|
}
|
|
5835
5895
|
}
|
|
5836
|
-
SwitchCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5837
|
-
SwitchCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
5896
|
+
SwitchCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5897
|
+
SwitchCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SwitchCustomMessagesComponent, selector: "kendo-switch-messages", providers: [
|
|
5838
5898
|
{
|
|
5839
5899
|
provide: Messages,
|
|
5840
5900
|
useExisting: forwardRef(() => SwitchCustomMessagesComponent)
|
|
5841
5901
|
}
|
|
5842
5902
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
5843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchCustomMessagesComponent, decorators: [{
|
|
5844
5904
|
type: Component,
|
|
5845
5905
|
args: [{
|
|
5846
5906
|
providers: [
|
|
@@ -5855,7 +5915,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5855
5915
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
5856
5916
|
|
|
5857
5917
|
/**
|
|
5858
|
-
* Represents the [NgModule](
|
|
5918
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5859
5919
|
* definition for the Switch component.
|
|
5860
5920
|
*
|
|
5861
5921
|
* @example
|
|
@@ -5887,14 +5947,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5887
5947
|
*/
|
|
5888
5948
|
class SwitchModule {
|
|
5889
5949
|
}
|
|
5890
|
-
SwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5891
|
-
SwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5950
|
+
SwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5951
|
+
SwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchModule, declarations: [SwitchComponent,
|
|
5892
5952
|
SwitchCustomMessagesComponent,
|
|
5893
5953
|
LocalizedSwitchMessagesDirective], imports: [CommonModule, EventsModule, ResizeSensorModule], exports: [SwitchComponent,
|
|
5894
5954
|
SwitchCustomMessagesComponent,
|
|
5895
5955
|
LocalizedSwitchMessagesDirective] });
|
|
5896
|
-
SwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5956
|
+
SwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchModule, imports: [[CommonModule, EventsModule, ResizeSensorModule]] });
|
|
5957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SwitchModule, decorators: [{
|
|
5898
5958
|
type: NgModule,
|
|
5899
5959
|
args: [{
|
|
5900
5960
|
declarations: [
|
|
@@ -5912,7 +5972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5912
5972
|
}] });
|
|
5913
5973
|
|
|
5914
5974
|
/**
|
|
5915
|
-
* Represents the [NgModule](
|
|
5975
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5916
5976
|
* definition for the NumericTextBox component.
|
|
5917
5977
|
*
|
|
5918
5978
|
* @example
|
|
@@ -5944,13 +6004,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5944
6004
|
*/
|
|
5945
6005
|
class NumericTextBoxModule {
|
|
5946
6006
|
}
|
|
5947
|
-
NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5948
|
-
NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
6007
|
+
NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6008
|
+
NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, declarations: [LocalizedNumericTextBoxMessagesDirective,
|
|
5949
6009
|
NumericTextBoxComponent,
|
|
5950
|
-
NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule], exports: [NumericTextBoxComponent,
|
|
6010
|
+
NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule, IconsModule], exports: [NumericTextBoxComponent,
|
|
5951
6011
|
NumericTextBoxCustomMessagesComponent] });
|
|
5952
|
-
NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6012
|
+
NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule, IconsModule]] });
|
|
6013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, decorators: [{
|
|
5954
6014
|
type: NgModule,
|
|
5955
6015
|
args: [{
|
|
5956
6016
|
declarations: [
|
|
@@ -5962,12 +6022,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5962
6022
|
NumericTextBoxComponent,
|
|
5963
6023
|
NumericTextBoxCustomMessagesComponent
|
|
5964
6024
|
],
|
|
5965
|
-
imports: [CommonModule, EventsModule]
|
|
6025
|
+
imports: [CommonModule, EventsModule, IconsModule]
|
|
5966
6026
|
}]
|
|
5967
6027
|
}] });
|
|
5968
6028
|
|
|
5969
6029
|
/**
|
|
5970
|
-
* Represents the [NgModule](
|
|
6030
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5971
6031
|
* definition for the MaskedTextBox component.
|
|
5972
6032
|
*
|
|
5973
6033
|
* @example
|
|
@@ -5999,10 +6059,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5999
6059
|
*/
|
|
6000
6060
|
class MaskedTextBoxModule {
|
|
6001
6061
|
}
|
|
6002
|
-
MaskedTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6003
|
-
MaskedTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
6004
|
-
MaskedTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6062
|
+
MaskedTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6063
|
+
MaskedTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxModule, declarations: [MaskedTextBoxComponent], imports: [CommonModule, EventsModule], exports: [MaskedTextBoxComponent] });
|
|
6064
|
+
MaskedTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxModule, imports: [[CommonModule, EventsModule]] });
|
|
6065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaskedTextBoxModule, decorators: [{
|
|
6006
6066
|
type: NgModule,
|
|
6007
6067
|
args: [{
|
|
6008
6068
|
declarations: [MaskedTextBoxComponent],
|
|
@@ -6052,9 +6112,9 @@ class TextBoxSuffixTemplateDirective {
|
|
|
6052
6112
|
this.templateRef = templateRef;
|
|
6053
6113
|
}
|
|
6054
6114
|
}
|
|
6055
|
-
TextBoxSuffixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6056
|
-
TextBoxSuffixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
6057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6115
|
+
TextBoxSuffixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxSuffixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6116
|
+
TextBoxSuffixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]", ngImport: i0 });
|
|
6117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxSuffixTemplateDirective, decorators: [{
|
|
6058
6118
|
type: Directive,
|
|
6059
6119
|
args: [{
|
|
6060
6120
|
selector: '[kendoTextBoxSuffixTemplate]'
|
|
@@ -6085,9 +6145,9 @@ class TextBoxPrefixTemplateDirective {
|
|
|
6085
6145
|
this.templateRef = templateRef;
|
|
6086
6146
|
}
|
|
6087
6147
|
}
|
|
6088
|
-
TextBoxPrefixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6089
|
-
TextBoxPrefixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
6090
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6148
|
+
TextBoxPrefixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxPrefixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6149
|
+
TextBoxPrefixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]", ngImport: i0 });
|
|
6150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxPrefixTemplateDirective, decorators: [{
|
|
6091
6151
|
type: Directive,
|
|
6092
6152
|
args: [{
|
|
6093
6153
|
selector: '[kendoTextBoxPrefixTemplate]'
|
|
@@ -6101,9 +6161,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6101
6161
|
*/
|
|
6102
6162
|
class TextBoxMessages extends ComponentMessages {
|
|
6103
6163
|
}
|
|
6104
|
-
TextBoxMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6105
|
-
TextBoxMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
6106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6164
|
+
TextBoxMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6165
|
+
TextBoxMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxMessages, selector: "kendo-textbox-messages-base", inputs: { clear: "clear" }, usesInheritance: true, ngImport: i0 });
|
|
6166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxMessages, decorators: [{
|
|
6107
6167
|
type: Directive,
|
|
6108
6168
|
args: [{
|
|
6109
6169
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -6122,14 +6182,14 @@ class LocalizedTextBoxMessagesDirective extends TextBoxMessages {
|
|
|
6122
6182
|
this.service = service;
|
|
6123
6183
|
}
|
|
6124
6184
|
}
|
|
6125
|
-
LocalizedTextBoxMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6126
|
-
LocalizedTextBoxMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
6185
|
+
LocalizedTextBoxMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedTextBoxMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6186
|
+
LocalizedTextBoxMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]", providers: [
|
|
6127
6187
|
{
|
|
6128
6188
|
provide: TextBoxMessages,
|
|
6129
6189
|
useExisting: forwardRef(() => LocalizedTextBoxMessagesDirective)
|
|
6130
6190
|
}
|
|
6131
6191
|
], usesInheritance: true, ngImport: i0 });
|
|
6132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedTextBoxMessagesDirective, decorators: [{
|
|
6133
6193
|
type: Directive,
|
|
6134
6194
|
args: [{
|
|
6135
6195
|
providers: [
|
|
@@ -6142,10 +6202,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6142
6202
|
}]
|
|
6143
6203
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
6144
6204
|
|
|
6205
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6145
6206
|
const FOCUSED$1 = 'k-focus';
|
|
6146
6207
|
const DEFAULT_SIZE$5 = 'medium';
|
|
6147
6208
|
const DEFAULT_ROUNDED$4 = 'medium';
|
|
6148
6209
|
const DEFAULT_FILL_MODE$3 = 'solid';
|
|
6210
|
+
const iconsMap$1 = { checkIcon, exclamationCircleIcon, xIcon };
|
|
6149
6211
|
class TextBoxComponent {
|
|
6150
6212
|
constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
|
|
6151
6213
|
this.localizationService = localizationService;
|
|
@@ -6470,7 +6532,7 @@ class TextBoxComponent {
|
|
|
6470
6532
|
});
|
|
6471
6533
|
}
|
|
6472
6534
|
ngOnChanges(changes) {
|
|
6473
|
-
if (changes
|
|
6535
|
+
if (changes['disabled'] || changes['readonly'] || changes['value']) {
|
|
6474
6536
|
this.checkClearButton();
|
|
6475
6537
|
}
|
|
6476
6538
|
}
|
|
@@ -6479,6 +6541,12 @@ class TextBoxComponent {
|
|
|
6479
6541
|
this.subscriptions.unsubscribe();
|
|
6480
6542
|
}
|
|
6481
6543
|
}
|
|
6544
|
+
/**
|
|
6545
|
+
* @hidden
|
|
6546
|
+
*/
|
|
6547
|
+
svgIcon(name) {
|
|
6548
|
+
return iconsMap$1[name];
|
|
6549
|
+
}
|
|
6482
6550
|
/**
|
|
6483
6551
|
* Focuses the TextBox.
|
|
6484
6552
|
*
|
|
@@ -6605,25 +6673,49 @@ class TextBoxComponent {
|
|
|
6605
6673
|
* @hidden
|
|
6606
6674
|
*/
|
|
6607
6675
|
get successIconClasses() {
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6676
|
+
if (!this.successIcon) {
|
|
6677
|
+
return `check`;
|
|
6678
|
+
}
|
|
6679
|
+
}
|
|
6680
|
+
/**
|
|
6681
|
+
* @hidden
|
|
6682
|
+
*/
|
|
6683
|
+
get customSuccessIconClasses() {
|
|
6684
|
+
if (this.successIcon) {
|
|
6685
|
+
return this.successIcon;
|
|
6686
|
+
}
|
|
6611
6687
|
}
|
|
6612
6688
|
/**
|
|
6613
6689
|
* @hidden
|
|
6614
6690
|
*/
|
|
6615
6691
|
get errorIconClasses() {
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6692
|
+
if (!this.errorIcon) {
|
|
6693
|
+
return `exclamation-circle`;
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
/**
|
|
6697
|
+
* @hidden
|
|
6698
|
+
*/
|
|
6699
|
+
get customIconClasses() {
|
|
6700
|
+
if (this.errorIcon) {
|
|
6701
|
+
return this.errorIcon;
|
|
6702
|
+
}
|
|
6619
6703
|
}
|
|
6620
6704
|
/**
|
|
6621
6705
|
* @hidden
|
|
6622
6706
|
*/
|
|
6623
|
-
get
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6707
|
+
get customClearButtonClasses() {
|
|
6708
|
+
if (this.clearButtonIcon) {
|
|
6709
|
+
return this.clearButtonIcon;
|
|
6710
|
+
}
|
|
6711
|
+
}
|
|
6712
|
+
/**
|
|
6713
|
+
* @hidden
|
|
6714
|
+
*/
|
|
6715
|
+
get clearButtonClass() {
|
|
6716
|
+
if (!this.clearButtonIcon) {
|
|
6717
|
+
return 'x';
|
|
6718
|
+
}
|
|
6627
6719
|
}
|
|
6628
6720
|
/**
|
|
6629
6721
|
* @hidden
|
|
@@ -6696,8 +6788,8 @@ class TextBoxComponent {
|
|
|
6696
6788
|
}
|
|
6697
6789
|
}
|
|
6698
6790
|
}
|
|
6699
|
-
TextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6700
|
-
TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
6791
|
+
TextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6792
|
+
TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxComponent, selector: "kendo-textbox", inputs: { focusableId: "focusableId", title: "title", disabled: "disabled", readonly: "readonly", tabindex: "tabindex", value: "value", selectOnFocus: "selectOnFocus", showSuccessIcon: "showSuccessIcon", showErrorIcon: "showErrorIcon", clearButton: "clearButton", successIcon: "successIcon", errorIcon: "errorIcon", clearButtonIcon: "clearButtonIcon", size: "size", rounded: "rounded", fillMode: "fillMode", tabIndex: "tabIndex", placeholder: "placeholder", maxlength: "maxlength" }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-disabled": "this.disabledClass", "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses", "attr.dir": "this.direction" } }, providers: [
|
|
6701
6793
|
LocalizationService,
|
|
6702
6794
|
{ provide: L10N_PREFIX, useValue: 'kendo.textbox' },
|
|
6703
6795
|
{
|
|
@@ -6744,18 +6836,37 @@ TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
6744
6836
|
[title]="clearTitle()"
|
|
6745
6837
|
(keydown.enter)="clearValue($event)"
|
|
6746
6838
|
(keydown.space)="clearValue($event)">
|
|
6747
|
-
<
|
|
6839
|
+
<kendo-icon-wrapper
|
|
6840
|
+
[name]="clearButtonClass"
|
|
6841
|
+
[customFontClass]="customClearButtonClasses"
|
|
6842
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
6843
|
+
>
|
|
6844
|
+
</kendo-icon-wrapper>
|
|
6748
6845
|
</span>
|
|
6749
|
-
<
|
|
6750
|
-
|
|
6846
|
+
<kendo-icon-wrapper
|
|
6847
|
+
*ngIf="hasErrors"
|
|
6848
|
+
innerCssClass="k-input-validation-icon"
|
|
6849
|
+
[name]="errorIconClasses"
|
|
6850
|
+
[customFontClass]="customIconClasses"
|
|
6851
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
6852
|
+
>
|
|
6853
|
+
</kendo-icon-wrapper>
|
|
6854
|
+
<kendo-icon-wrapper
|
|
6855
|
+
*ngIf="isSuccessful"
|
|
6856
|
+
innerCssClass="k-input-validation-icon"
|
|
6857
|
+
[name]="successIconClasses"
|
|
6858
|
+
[customFontClass]="customSuccessIconClasses"
|
|
6859
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
6860
|
+
>
|
|
6861
|
+
</kendo-icon-wrapper>
|
|
6751
6862
|
<span class="k-input-suffix">
|
|
6752
6863
|
<ng-template
|
|
6753
6864
|
*ngIf="suffixTemplate"
|
|
6754
6865
|
[ngTemplateOutlet]="suffixTemplate?.templateRef">
|
|
6755
6866
|
</ng-template>
|
|
6756
6867
|
</span>
|
|
6757
|
-
`, isInline: true, directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }
|
|
6758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6868
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
6869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
6759
6870
|
type: Component,
|
|
6760
6871
|
args: [{
|
|
6761
6872
|
exportAs: 'kendoTextBox',
|
|
@@ -6808,10 +6919,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6808
6919
|
[title]="clearTitle()"
|
|
6809
6920
|
(keydown.enter)="clearValue($event)"
|
|
6810
6921
|
(keydown.space)="clearValue($event)">
|
|
6811
|
-
<
|
|
6922
|
+
<kendo-icon-wrapper
|
|
6923
|
+
[name]="clearButtonClass"
|
|
6924
|
+
[customFontClass]="customClearButtonClasses"
|
|
6925
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
6926
|
+
>
|
|
6927
|
+
</kendo-icon-wrapper>
|
|
6812
6928
|
</span>
|
|
6813
|
-
<
|
|
6814
|
-
|
|
6929
|
+
<kendo-icon-wrapper
|
|
6930
|
+
*ngIf="hasErrors"
|
|
6931
|
+
innerCssClass="k-input-validation-icon"
|
|
6932
|
+
[name]="errorIconClasses"
|
|
6933
|
+
[customFontClass]="customIconClasses"
|
|
6934
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
6935
|
+
>
|
|
6936
|
+
</kendo-icon-wrapper>
|
|
6937
|
+
<kendo-icon-wrapper
|
|
6938
|
+
*ngIf="isSuccessful"
|
|
6939
|
+
innerCssClass="k-input-validation-icon"
|
|
6940
|
+
[name]="successIconClasses"
|
|
6941
|
+
[customFontClass]="customSuccessIconClasses"
|
|
6942
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
6943
|
+
>
|
|
6944
|
+
</kendo-icon-wrapper>
|
|
6815
6945
|
<span class="k-input-suffix">
|
|
6816
6946
|
<ng-template
|
|
6817
6947
|
*ngIf="suffixTemplate"
|
|
@@ -6905,14 +7035,14 @@ class TextBoxCustomMessagesComponent extends TextBoxMessages {
|
|
|
6905
7035
|
return true;
|
|
6906
7036
|
}
|
|
6907
7037
|
}
|
|
6908
|
-
TextBoxCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6909
|
-
TextBoxCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
7038
|
+
TextBoxCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7039
|
+
TextBoxCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextBoxCustomMessagesComponent, selector: "kendo-textbox-messages", providers: [
|
|
6910
7040
|
{
|
|
6911
7041
|
provide: TextBoxMessages,
|
|
6912
7042
|
useExisting: forwardRef(() => TextBoxCustomMessagesComponent)
|
|
6913
7043
|
}
|
|
6914
7044
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
6915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxCustomMessagesComponent, decorators: [{
|
|
6916
7046
|
type: Component,
|
|
6917
7047
|
args: [{
|
|
6918
7048
|
providers: [
|
|
@@ -6949,9 +7079,9 @@ class InputSeparatorComponent {
|
|
|
6949
7079
|
this.hostClass = true;
|
|
6950
7080
|
}
|
|
6951
7081
|
}
|
|
6952
|
-
InputSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6953
|
-
InputSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
6954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7082
|
+
InputSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7083
|
+
InputSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: InputSeparatorComponent, selector: "kendo-input-separator, kendo-textbox-separator", host: { properties: { "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true });
|
|
7084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputSeparatorComponent, decorators: [{
|
|
6955
7085
|
type: Component,
|
|
6956
7086
|
args: [{
|
|
6957
7087
|
selector: 'kendo-input-separator, kendo-textbox-separator',
|
|
@@ -6974,12 +7104,12 @@ const SHARED_DIRECTIVES = [
|
|
|
6974
7104
|
*/
|
|
6975
7105
|
class SharedModule {
|
|
6976
7106
|
}
|
|
6977
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6978
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
7107
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7108
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, declarations: [InputSeparatorComponent,
|
|
6979
7109
|
TextAreaDirective], exports: [InputSeparatorComponent,
|
|
6980
7110
|
TextAreaDirective] });
|
|
6981
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7111
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule });
|
|
7112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
6983
7113
|
type: NgModule,
|
|
6984
7114
|
args: [{
|
|
6985
7115
|
declarations: [SHARED_DIRECTIVES],
|
|
@@ -6988,7 +7118,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6988
7118
|
}] });
|
|
6989
7119
|
|
|
6990
7120
|
/**
|
|
6991
|
-
* Represents the [NgModule](
|
|
7121
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
6992
7122
|
* definition for the TextBox directive.
|
|
6993
7123
|
*
|
|
6994
7124
|
* @example
|
|
@@ -7020,21 +7150,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7020
7150
|
*/
|
|
7021
7151
|
class TextBoxModule {
|
|
7022
7152
|
}
|
|
7023
|
-
TextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7024
|
-
TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
7153
|
+
TextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7154
|
+
TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, declarations: [TextBoxDirective,
|
|
7025
7155
|
TextBoxComponent,
|
|
7026
7156
|
TextBoxSuffixTemplateDirective,
|
|
7027
7157
|
TextBoxPrefixTemplateDirective,
|
|
7028
7158
|
TextBoxCustomMessagesComponent,
|
|
7029
|
-
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule], exports: [TextBoxDirective,
|
|
7159
|
+
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule, IconsModule], exports: [TextBoxDirective,
|
|
7030
7160
|
TextBoxComponent,
|
|
7031
7161
|
TextBoxSuffixTemplateDirective,
|
|
7032
7162
|
TextBoxPrefixTemplateDirective,
|
|
7033
7163
|
EventsModule,
|
|
7034
7164
|
TextBoxCustomMessagesComponent,
|
|
7035
7165
|
LocalizedTextBoxMessagesDirective, InputSeparatorComponent, TextAreaDirective] });
|
|
7036
|
-
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
7037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7166
|
+
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule, IconsModule], EventsModule] });
|
|
7167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, decorators: [{
|
|
7038
7168
|
type: NgModule,
|
|
7039
7169
|
args: [{
|
|
7040
7170
|
declarations: [
|
|
@@ -7055,7 +7185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7055
7185
|
LocalizedTextBoxMessagesDirective,
|
|
7056
7186
|
SHARED_DIRECTIVES
|
|
7057
7187
|
],
|
|
7058
|
-
imports: [CommonModule, EventsModule, SharedModule]
|
|
7188
|
+
imports: [CommonModule, EventsModule, SharedModule, IconsModule]
|
|
7059
7189
|
}]
|
|
7060
7190
|
}] });
|
|
7061
7191
|
|
|
@@ -7142,9 +7272,9 @@ class TextFieldsBase {
|
|
|
7142
7272
|
this.disabled = isDisabled;
|
|
7143
7273
|
}
|
|
7144
7274
|
}
|
|
7145
|
-
TextFieldsBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7146
|
-
TextFieldsBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
7147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7275
|
+
TextFieldsBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextFieldsBase, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7276
|
+
TextFieldsBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextFieldsBase, selector: "kendo-textfield-base", inputs: { title: "title", disabled: "disabled", readonly: "readonly", value: "value", selectOnFocus: "selectOnFocus", placeholder: "placeholder" }, outputs: { inputFocus: "inputFocus", inputBlur: "inputBlur" }, host: { properties: { "class.k-disabled": "this.disabledClass", "attr.dir": "this.direction" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: ``, isInline: true });
|
|
7277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextFieldsBase, decorators: [{
|
|
7148
7278
|
type: Component,
|
|
7149
7279
|
args: [{
|
|
7150
7280
|
selector: 'kendo-textfield-base',
|
|
@@ -7285,7 +7415,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7285
7415
|
* @hidden
|
|
7286
7416
|
*/
|
|
7287
7417
|
this.handleInput = (ev) => {
|
|
7288
|
-
|
|
7418
|
+
const incomingValue = ev.target.value;
|
|
7289
7419
|
this.updateValue(incomingValue);
|
|
7290
7420
|
this.resize();
|
|
7291
7421
|
};
|
|
@@ -7640,8 +7770,8 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7640
7770
|
}
|
|
7641
7771
|
}
|
|
7642
7772
|
}
|
|
7643
|
-
TextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7644
|
-
TextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
7773
|
+
TextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7774
|
+
TextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextAreaComponent, selector: "kendo-textarea", inputs: { focusableId: "focusableId", flow: "flow", rows: "rows", cols: "cols", maxlength: "maxlength", tabindex: "tabindex", tabIndex: "tabIndex", resizable: "resizable", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "class.k-textarea": "this.hostClasses", "class.k-input": "this.hostClasses", "class.!k-flex-col": "this.flowCol", "class.!k-flex-row": "this.flowRow" } }, providers: [
|
|
7645
7775
|
LocalizationService,
|
|
7646
7776
|
{ provide: L10N_PREFIX, useValue: 'kendo.textarea' },
|
|
7647
7777
|
{
|
|
@@ -7676,7 +7806,7 @@ TextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
7676
7806
|
</textarea>
|
|
7677
7807
|
<ng-content select="kendo-textarea-suffix"></ng-content>
|
|
7678
7808
|
`, isInline: true, directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
7679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
7680
7810
|
type: Component,
|
|
7681
7811
|
args: [{
|
|
7682
7812
|
exportAs: 'kendoTextArea',
|
|
@@ -7783,9 +7913,9 @@ class TextAreaSuffixComponent {
|
|
|
7783
7913
|
this.hostClass = true;
|
|
7784
7914
|
}
|
|
7785
7915
|
}
|
|
7786
|
-
TextAreaSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7787
|
-
TextAreaSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
7788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7916
|
+
TextAreaSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7917
|
+
TextAreaSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextAreaSuffixComponent, selector: "kendo-textarea-suffix", host: { properties: { "class.k-input-suffix": "this.hostClass" } }, exportAs: ["kendoTextAreaSuffix"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
|
7918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaSuffixComponent, decorators: [{
|
|
7789
7919
|
type: Component,
|
|
7790
7920
|
args: [{
|
|
7791
7921
|
exportAs: 'kendoTextAreaSuffix',
|
|
@@ -7798,7 +7928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7798
7928
|
}] } });
|
|
7799
7929
|
|
|
7800
7930
|
/**
|
|
7801
|
-
* Represents the [NgModule](
|
|
7931
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
7802
7932
|
* definition for the TextArea component.
|
|
7803
7933
|
*
|
|
7804
7934
|
* @example
|
|
@@ -7830,13 +7960,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7830
7960
|
*/
|
|
7831
7961
|
class TextAreaModule {
|
|
7832
7962
|
}
|
|
7833
|
-
TextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7834
|
-
TextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
7963
|
+
TextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7964
|
+
TextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaModule, declarations: [TextAreaComponent,
|
|
7835
7965
|
TextAreaSuffixComponent], imports: [CommonModule, EventsModule, SharedModule], exports: [TextAreaComponent,
|
|
7836
7966
|
EventsModule,
|
|
7837
7967
|
TextAreaSuffixComponent, InputSeparatorComponent, TextAreaDirective] });
|
|
7838
|
-
TextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
7839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7968
|
+
TextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaModule, imports: [[CommonModule, EventsModule, SharedModule], EventsModule] });
|
|
7969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextAreaModule, decorators: [{
|
|
7840
7970
|
type: NgModule,
|
|
7841
7971
|
args: [{
|
|
7842
7972
|
declarations: [
|
|
@@ -7853,6 +7983,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7853
7983
|
}]
|
|
7854
7984
|
}] });
|
|
7855
7985
|
|
|
7986
|
+
/**
|
|
7987
|
+
* @hidden
|
|
7988
|
+
*/
|
|
7989
|
+
class ColorPickerLocalizationService extends LocalizationService {
|
|
7990
|
+
constructor(prefix, messageService, _rtl) {
|
|
7991
|
+
super(prefix, messageService, _rtl);
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
ColorPickerLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7995
|
+
ColorPickerLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerLocalizationService });
|
|
7996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerLocalizationService, decorators: [{
|
|
7997
|
+
type: Injectable
|
|
7998
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
7999
|
+
type: Inject,
|
|
8000
|
+
args: [L10N_PREFIX]
|
|
8001
|
+
}] }, { type: i1.MessageService, decorators: [{
|
|
8002
|
+
type: Optional
|
|
8003
|
+
}] }, { type: undefined, decorators: [{
|
|
8004
|
+
type: Optional
|
|
8005
|
+
}, {
|
|
8006
|
+
type: Inject,
|
|
8007
|
+
args: [RTL]
|
|
8008
|
+
}] }]; } });
|
|
8009
|
+
|
|
8010
|
+
/**
|
|
8011
|
+
* @hidden
|
|
8012
|
+
*/
|
|
8013
|
+
class FlatColorPickerLocalizationService extends LocalizationService {
|
|
8014
|
+
constructor(prefix, messageService, _rtl, colorPickerLocalization) {
|
|
8015
|
+
super(prefix, messageService, _rtl);
|
|
8016
|
+
this.colorPickerLocalization = colorPickerLocalization;
|
|
8017
|
+
}
|
|
8018
|
+
get(shortKey) {
|
|
8019
|
+
if (this.colorPickerLocalization) {
|
|
8020
|
+
return this.colorPickerLocalization.get(shortKey);
|
|
8021
|
+
}
|
|
8022
|
+
return super.get(shortKey);
|
|
8023
|
+
}
|
|
8024
|
+
}
|
|
8025
|
+
FlatColorPickerLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: ColorPickerLocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8026
|
+
FlatColorPickerLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerLocalizationService });
|
|
8027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerLocalizationService, decorators: [{
|
|
8028
|
+
type: Injectable
|
|
8029
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
8030
|
+
type: Inject,
|
|
8031
|
+
args: [L10N_PREFIX]
|
|
8032
|
+
}] }, { type: i1.MessageService, decorators: [{
|
|
8033
|
+
type: Optional
|
|
8034
|
+
}] }, { type: undefined, decorators: [{
|
|
8035
|
+
type: Optional
|
|
8036
|
+
}, {
|
|
8037
|
+
type: Inject,
|
|
8038
|
+
args: [RTL]
|
|
8039
|
+
}] }, { type: ColorPickerLocalizationService, decorators: [{
|
|
8040
|
+
type: Optional
|
|
8041
|
+
}, {
|
|
8042
|
+
type: Inject,
|
|
8043
|
+
args: [ColorPickerLocalizationService]
|
|
8044
|
+
}] }]; } });
|
|
8045
|
+
|
|
8046
|
+
/**
|
|
8047
|
+
* @hidden
|
|
8048
|
+
*/
|
|
8049
|
+
const DEFAULT_OUTPUT_FORMAT = 'rgba';
|
|
8050
|
+
/**
|
|
8051
|
+
* @hidden
|
|
8052
|
+
*/
|
|
8053
|
+
const DEFAULT_GRADIENT_BACKGROUND_COLOR = 'rgba(255, 0, 0, 1)';
|
|
8054
|
+
/**
|
|
8055
|
+
* @hidden
|
|
8056
|
+
*/
|
|
8057
|
+
const DRAGHANDLE_MOVE_SPEED = 5;
|
|
8058
|
+
/**
|
|
8059
|
+
* @hidden
|
|
8060
|
+
*/
|
|
8061
|
+
const DRAGHANDLE_MOVE_SPEED_SMALL_STEP = 2;
|
|
8062
|
+
/**
|
|
8063
|
+
* @hidden
|
|
8064
|
+
*/
|
|
8065
|
+
const AAA_RATIO = 7.0;
|
|
8066
|
+
/**
|
|
8067
|
+
* @hidden
|
|
8068
|
+
*/
|
|
8069
|
+
const AA_RATIO = 4.5;
|
|
8070
|
+
/**
|
|
8071
|
+
* @hidden
|
|
8072
|
+
*/
|
|
8073
|
+
const DEFAULT_PRESET$1 = 'office';
|
|
8074
|
+
/**
|
|
8075
|
+
* @hidden
|
|
8076
|
+
*/
|
|
8077
|
+
const DEFAULT_ACCESSIBLE_PRESET$1 = 'accessible';
|
|
8078
|
+
/**
|
|
8079
|
+
* @hidden
|
|
8080
|
+
*/
|
|
8081
|
+
const STEP_COUNT = 16;
|
|
8082
|
+
|
|
7856
8083
|
// eslint-disable max-line-length
|
|
7857
8084
|
/**
|
|
7858
8085
|
* @hidden
|
|
@@ -7914,6 +8141,38 @@ const PALETTEPRESETS = {
|
|
|
7914
8141
|
|
|
7915
8142
|
;
|
|
7916
8143
|
|
|
8144
|
+
/**
|
|
8145
|
+
* @hidden
|
|
8146
|
+
*/
|
|
8147
|
+
class FlatColorPickerService {
|
|
8148
|
+
getPaletteSettings(settings, format) {
|
|
8149
|
+
const defaultPreset = (format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
8150
|
+
const settingsPalette = settings.palette;
|
|
8151
|
+
const presetColumns = typeof settingsPalette === 'string' && PALETTEPRESETS[settingsPalette] ?
|
|
8152
|
+
PALETTEPRESETS[settingsPalette].columns :
|
|
8153
|
+
undefined;
|
|
8154
|
+
return {
|
|
8155
|
+
palette: settingsPalette || defaultPreset,
|
|
8156
|
+
tileSize: settings.tileSize || 24,
|
|
8157
|
+
columns: settings.columns || presetColumns || 10
|
|
8158
|
+
};
|
|
8159
|
+
}
|
|
8160
|
+
paletteTileLayout(tileSize) {
|
|
8161
|
+
if (typeof tileSize === 'number') {
|
|
8162
|
+
return { width: tileSize, height: tileSize };
|
|
8163
|
+
}
|
|
8164
|
+
return {
|
|
8165
|
+
width: tileSize.width ? tileSize.width : tileSize.height,
|
|
8166
|
+
height: tileSize.height ? tileSize.height : tileSize.width
|
|
8167
|
+
};
|
|
8168
|
+
}
|
|
8169
|
+
}
|
|
8170
|
+
FlatColorPickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8171
|
+
FlatColorPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerService });
|
|
8172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerService, decorators: [{
|
|
8173
|
+
type: Injectable
|
|
8174
|
+
}] });
|
|
8175
|
+
|
|
7917
8176
|
/**
|
|
7918
8177
|
* Arguments for the `cancel` event of the ColorPicker and FlatColorPicker components.
|
|
7919
8178
|
*/
|
|
@@ -8122,7 +8381,7 @@ const getRGBFromRGBA = (foregroundColor, backgroundColor) => {
|
|
|
8122
8381
|
* Returns the relative luminance.
|
|
8123
8382
|
*/
|
|
8124
8383
|
const getLuminance = (rgb) => {
|
|
8125
|
-
|
|
8384
|
+
const a = [rgb.r, rgb.g, rgb.b].map(function (v) {
|
|
8126
8385
|
v /= 255;
|
|
8127
8386
|
return v <= 0.03928
|
|
8128
8387
|
? v / 12.92
|
|
@@ -8235,14 +8494,21 @@ const svgPath = (points, command) => {
|
|
|
8235
8494
|
/**
|
|
8236
8495
|
* @hidden
|
|
8237
8496
|
*/
|
|
8238
|
-
class
|
|
8239
|
-
constructor(prefix, messageService, _rtl) {
|
|
8497
|
+
class ColorGradientLocalizationService extends LocalizationService {
|
|
8498
|
+
constructor(prefix, messageService, _rtl, flatColorPickerLocalization) {
|
|
8240
8499
|
super(prefix, messageService, _rtl);
|
|
8500
|
+
this.flatColorPickerLocalization = flatColorPickerLocalization;
|
|
8501
|
+
}
|
|
8502
|
+
get(shortKey) {
|
|
8503
|
+
if (this.flatColorPickerLocalization) {
|
|
8504
|
+
return this.flatColorPickerLocalization.get(shortKey);
|
|
8505
|
+
}
|
|
8506
|
+
return super.get(shortKey);
|
|
8241
8507
|
}
|
|
8242
8508
|
}
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8509
|
+
ColorGradientLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: FlatColorPickerLocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8510
|
+
ColorGradientLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientLocalizationService });
|
|
8511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientLocalizationService, decorators: [{
|
|
8246
8512
|
type: Injectable
|
|
8247
8513
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
8248
8514
|
type: Inject,
|
|
@@ -8254,431 +8520,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8254
8520
|
}, {
|
|
8255
8521
|
type: Inject,
|
|
8256
8522
|
args: [RTL]
|
|
8523
|
+
}] }, { type: FlatColorPickerLocalizationService, decorators: [{
|
|
8524
|
+
type: Optional
|
|
8525
|
+
}, {
|
|
8526
|
+
type: Inject,
|
|
8527
|
+
args: [FlatColorPickerLocalizationService]
|
|
8257
8528
|
}] }]; } });
|
|
8258
8529
|
|
|
8259
8530
|
/**
|
|
8260
8531
|
* @hidden
|
|
8261
8532
|
*/
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
/**
|
|
8284
|
-
* @hidden
|
|
8285
|
-
*/
|
|
8286
|
-
const DEFAULT_PRESET$1 = 'office';
|
|
8287
|
-
/**
|
|
8288
|
-
* @hidden
|
|
8289
|
-
*/
|
|
8290
|
-
const DEFAULT_ACCESSIBLE_PRESET$1 = 'accessible';
|
|
8291
|
-
/**
|
|
8292
|
-
* @hidden
|
|
8293
|
-
*/
|
|
8294
|
-
const STEP_COUNT = 16;
|
|
8295
|
-
|
|
8296
|
-
/**
|
|
8297
|
-
* @hidden
|
|
8298
|
-
*/
|
|
8299
|
-
class FlatColorPickerLocalizationService extends LocalizationService {
|
|
8300
|
-
constructor(prefix, messageService, _rtl, colorPickerLocalization) {
|
|
8301
|
-
super(prefix, messageService, _rtl);
|
|
8302
|
-
this.colorPickerLocalization = colorPickerLocalization;
|
|
8303
|
-
}
|
|
8304
|
-
get(shortKey) {
|
|
8305
|
-
if (this.colorPickerLocalization) {
|
|
8306
|
-
return this.colorPickerLocalization.get(shortKey);
|
|
8307
|
-
}
|
|
8308
|
-
return super.get(shortKey);
|
|
8309
|
-
}
|
|
8310
|
-
}
|
|
8311
|
-
FlatColorPickerLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: ColorPickerLocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8312
|
-
FlatColorPickerLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerLocalizationService });
|
|
8313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerLocalizationService, decorators: [{
|
|
8314
|
-
type: Injectable
|
|
8315
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
8316
|
-
type: Inject,
|
|
8317
|
-
args: [L10N_PREFIX]
|
|
8318
|
-
}] }, { type: i1.MessageService, decorators: [{
|
|
8319
|
-
type: Optional
|
|
8320
|
-
}] }, { type: undefined, decorators: [{
|
|
8321
|
-
type: Optional
|
|
8322
|
-
}, {
|
|
8323
|
-
type: Inject,
|
|
8324
|
-
args: [RTL]
|
|
8325
|
-
}] }, { type: ColorPickerLocalizationService, decorators: [{
|
|
8326
|
-
type: Optional
|
|
8327
|
-
}, {
|
|
8328
|
-
type: Inject,
|
|
8329
|
-
args: [ColorPickerLocalizationService]
|
|
8330
|
-
}] }]; } });
|
|
8331
|
-
|
|
8332
|
-
/**
|
|
8333
|
-
* @hidden
|
|
8334
|
-
*/
|
|
8335
|
-
class FlatColorPickerService {
|
|
8336
|
-
getPaletteSettings(settings, format) {
|
|
8337
|
-
const defaultPreset = (format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
8338
|
-
const settingsPalette = settings.palette;
|
|
8339
|
-
const presetColumns = typeof settingsPalette === 'string' && PALETTEPRESETS[settingsPalette] ?
|
|
8340
|
-
PALETTEPRESETS[settingsPalette].columns :
|
|
8341
|
-
undefined;
|
|
8342
|
-
return {
|
|
8343
|
-
palette: settingsPalette || defaultPreset,
|
|
8344
|
-
tileSize: settings.tileSize || 24,
|
|
8345
|
-
columns: settings.columns || presetColumns || 10
|
|
8346
|
-
};
|
|
8347
|
-
}
|
|
8348
|
-
paletteTileLayout(tileSize) {
|
|
8349
|
-
if (typeof tileSize === 'number') {
|
|
8350
|
-
return { width: tileSize, height: tileSize };
|
|
8351
|
-
}
|
|
8352
|
-
return {
|
|
8353
|
-
width: tileSize.width ? tileSize.width : tileSize.height,
|
|
8354
|
-
height: tileSize.height ? tileSize.height : tileSize.width
|
|
8355
|
-
};
|
|
8356
|
-
}
|
|
8357
|
-
}
|
|
8358
|
-
FlatColorPickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8359
|
-
FlatColorPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerService });
|
|
8360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerService, decorators: [{
|
|
8361
|
-
type: Injectable
|
|
8362
|
-
}] });
|
|
8363
|
-
|
|
8364
|
-
/**
|
|
8365
|
-
* @hidden
|
|
8366
|
-
*/
|
|
8367
|
-
class FlatColorPickerHeaderComponent {
|
|
8368
|
-
constructor(localizationService) {
|
|
8369
|
-
this.localizationService = localizationService;
|
|
8370
|
-
this.hostClasses = true;
|
|
8371
|
-
this.innerTabIndex = -1;
|
|
8372
|
-
this.viewChange = new EventEmitter();
|
|
8373
|
-
this.valuePaneClick = new EventEmitter();
|
|
8374
|
-
this.clearButtonClick = new EventEmitter();
|
|
8375
|
-
this.tabOut = new EventEmitter();
|
|
8376
|
-
}
|
|
8377
|
-
onViewButtonClick(view) {
|
|
8378
|
-
this.activeView = view;
|
|
8379
|
-
this.viewChange.emit(view);
|
|
8380
|
-
}
|
|
8381
|
-
get viewButtons() {
|
|
8382
|
-
return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
|
|
8383
|
-
}
|
|
8384
|
-
getViewButtonIcon(view) {
|
|
8385
|
-
return view === 'gradient' ? 'k-i-color-canvas' : 'k-i-palette';
|
|
8386
|
-
}
|
|
8387
|
-
getText(text) {
|
|
8388
|
-
return this.localizationService.get(text);
|
|
8389
|
-
}
|
|
8390
|
-
onHeaderTabOut(ev, index) {
|
|
8391
|
-
if (index === 0) {
|
|
8392
|
-
ev.preventDefault();
|
|
8393
|
-
this.tabOut.emit();
|
|
8394
|
-
}
|
|
8395
|
-
}
|
|
8396
|
-
}
|
|
8397
|
-
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8398
|
-
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
8399
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
8400
|
-
<div
|
|
8401
|
-
*ngIf="viewButtons"
|
|
8402
|
-
class="k-button-group k-button-group-flat">
|
|
8403
|
-
<button *ngFor="let view of views; let i = index;"
|
|
8404
|
-
#viewButtons
|
|
8405
|
-
type="button"
|
|
8406
|
-
[tabindex]="innerTabIndex.toString()"
|
|
8407
|
-
(click)="onViewButtonClick(view)"
|
|
8408
|
-
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
8409
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
8410
|
-
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8411
|
-
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8412
|
-
[attr.aria-pressed]="activeView === view"
|
|
8413
|
-
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
8414
|
-
<span
|
|
8415
|
-
class="k-button-icon k-icon"
|
|
8416
|
-
[ngClass]="getViewButtonIcon(view)">
|
|
8417
|
-
</span>
|
|
8418
|
-
</button>
|
|
8419
|
-
</div>
|
|
8420
|
-
</div>
|
|
8421
|
-
<div class="k-spacer"></div>
|
|
8422
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
8423
|
-
<button
|
|
8424
|
-
[tabindex]="innerTabIndex.toString()"
|
|
8425
|
-
*ngIf="clearButton"
|
|
8426
|
-
#clearButton
|
|
8427
|
-
type="button"
|
|
8428
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
8429
|
-
[attr.aria-label]="getText('clearButton')"
|
|
8430
|
-
[attr.title]="getText('clearButton')"
|
|
8431
|
-
(click)="clearButtonClick.emit()">
|
|
8432
|
-
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
8433
|
-
</button>
|
|
8434
|
-
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
8435
|
-
<span
|
|
8436
|
-
class="k-coloreditor-preview-color k-color-preview"
|
|
8437
|
-
[attr.title]="getText('previewColor')"
|
|
8438
|
-
[style.background-color]="selection">
|
|
8439
|
-
</span>
|
|
8440
|
-
<span class="k-coloreditor-current-color k-color-preview"
|
|
8441
|
-
[style.background-color]="value"
|
|
8442
|
-
[attr.title]="getText('revertSelection')"
|
|
8443
|
-
(click)="valuePaneClick.emit($event)">
|
|
8444
|
-
</span>
|
|
8445
|
-
</div>
|
|
8446
|
-
</div>
|
|
8447
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
8448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
|
|
8449
|
-
type: Component,
|
|
8450
|
-
args: [{
|
|
8451
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8452
|
-
selector: '[kendoFlatColorPickerHeader]',
|
|
8453
|
-
template: `
|
|
8454
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
8455
|
-
<div
|
|
8456
|
-
*ngIf="viewButtons"
|
|
8457
|
-
class="k-button-group k-button-group-flat">
|
|
8458
|
-
<button *ngFor="let view of views; let i = index;"
|
|
8459
|
-
#viewButtons
|
|
8460
|
-
type="button"
|
|
8461
|
-
[tabindex]="innerTabIndex.toString()"
|
|
8462
|
-
(click)="onViewButtonClick(view)"
|
|
8463
|
-
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
8464
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
8465
|
-
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8466
|
-
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8467
|
-
[attr.aria-pressed]="activeView === view"
|
|
8468
|
-
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
8469
|
-
<span
|
|
8470
|
-
class="k-button-icon k-icon"
|
|
8471
|
-
[ngClass]="getViewButtonIcon(view)">
|
|
8472
|
-
</span>
|
|
8473
|
-
</button>
|
|
8474
|
-
</div>
|
|
8475
|
-
</div>
|
|
8476
|
-
<div class="k-spacer"></div>
|
|
8477
|
-
<div class="k-coloreditor-header-actions k-hstack">
|
|
8478
|
-
<button
|
|
8479
|
-
[tabindex]="innerTabIndex.toString()"
|
|
8480
|
-
*ngIf="clearButton"
|
|
8481
|
-
#clearButton
|
|
8482
|
-
type="button"
|
|
8483
|
-
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
8484
|
-
[attr.aria-label]="getText('clearButton')"
|
|
8485
|
-
[attr.title]="getText('clearButton')"
|
|
8486
|
-
(click)="clearButtonClick.emit()">
|
|
8487
|
-
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
8488
|
-
</button>
|
|
8489
|
-
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
8490
|
-
<span
|
|
8491
|
-
class="k-coloreditor-preview-color k-color-preview"
|
|
8492
|
-
[attr.title]="getText('previewColor')"
|
|
8493
|
-
[style.background-color]="selection">
|
|
8494
|
-
</span>
|
|
8495
|
-
<span class="k-coloreditor-current-color k-color-preview"
|
|
8496
|
-
[style.background-color]="value"
|
|
8497
|
-
[attr.title]="getText('revertSelection')"
|
|
8498
|
-
(click)="valuePaneClick.emit($event)">
|
|
8499
|
-
</span>
|
|
8500
|
-
</div>
|
|
8501
|
-
</div>
|
|
8502
|
-
`
|
|
8503
|
-
}]
|
|
8504
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
|
|
8505
|
-
type: HostBinding,
|
|
8506
|
-
args: ['class.k-coloreditor-header']
|
|
8507
|
-
}, {
|
|
8508
|
-
type: HostBinding,
|
|
8509
|
-
args: ['class.k-hstack']
|
|
8510
|
-
}], clearButton: [{
|
|
8511
|
-
type: Input
|
|
8512
|
-
}], activeView: [{
|
|
8513
|
-
type: Input
|
|
8514
|
-
}], views: [{
|
|
8515
|
-
type: Input
|
|
8516
|
-
}], preview: [{
|
|
8517
|
-
type: Input
|
|
8518
|
-
}], innerTabIndex: [{
|
|
8519
|
-
type: Input
|
|
8520
|
-
}], value: [{
|
|
8521
|
-
type: Input
|
|
8522
|
-
}], selection: [{
|
|
8523
|
-
type: Input
|
|
8524
|
-
}], viewChange: [{
|
|
8525
|
-
type: Output
|
|
8526
|
-
}], valuePaneClick: [{
|
|
8527
|
-
type: Output
|
|
8528
|
-
}], clearButtonClick: [{
|
|
8529
|
-
type: Output
|
|
8530
|
-
}], tabOut: [{
|
|
8531
|
-
type: Output
|
|
8532
|
-
}], viewButtonsCollection: [{
|
|
8533
|
-
type: ViewChildren,
|
|
8534
|
-
args: ['viewButtons', { read: ElementRef }]
|
|
8535
|
-
}], clearButtonElement: [{
|
|
8536
|
-
type: ViewChild,
|
|
8537
|
-
args: ['clearButton', { read: ElementRef }]
|
|
8538
|
-
}] } });
|
|
8539
|
-
|
|
8540
|
-
/**
|
|
8541
|
-
* @hidden
|
|
8542
|
-
*/
|
|
8543
|
-
class ColorGradientLocalizationService extends LocalizationService {
|
|
8544
|
-
constructor(prefix, messageService, _rtl, flatColorPickerLocalization) {
|
|
8545
|
-
super(prefix, messageService, _rtl);
|
|
8546
|
-
this.flatColorPickerLocalization = flatColorPickerLocalization;
|
|
8547
|
-
}
|
|
8548
|
-
get(shortKey) {
|
|
8549
|
-
if (this.flatColorPickerLocalization) {
|
|
8550
|
-
return this.flatColorPickerLocalization.get(shortKey);
|
|
8551
|
-
}
|
|
8552
|
-
return super.get(shortKey);
|
|
8553
|
-
}
|
|
8554
|
-
}
|
|
8555
|
-
ColorGradientLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorGradientLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: FlatColorPickerLocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8556
|
-
ColorGradientLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorGradientLocalizationService });
|
|
8557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorGradientLocalizationService, decorators: [{
|
|
8558
|
-
type: Injectable
|
|
8559
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
8560
|
-
type: Inject,
|
|
8561
|
-
args: [L10N_PREFIX]
|
|
8562
|
-
}] }, { type: i1.MessageService, decorators: [{
|
|
8563
|
-
type: Optional
|
|
8564
|
-
}] }, { type: undefined, decorators: [{
|
|
8565
|
-
type: Optional
|
|
8566
|
-
}, {
|
|
8567
|
-
type: Inject,
|
|
8568
|
-
args: [RTL]
|
|
8569
|
-
}] }, { type: FlatColorPickerLocalizationService, decorators: [{
|
|
8570
|
-
type: Optional
|
|
8571
|
-
}, {
|
|
8572
|
-
type: Inject,
|
|
8573
|
-
args: [FlatColorPickerLocalizationService]
|
|
8574
|
-
}] }]; } });
|
|
8575
|
-
|
|
8576
|
-
/**
|
|
8577
|
-
* @hidden
|
|
8578
|
-
*/
|
|
8579
|
-
class ColorContrastSvgComponent {
|
|
8580
|
-
constructor() {
|
|
8581
|
-
this.hostClass = true;
|
|
8582
|
-
}
|
|
8583
|
-
ngAfterViewInit() {
|
|
8584
|
-
this.metrics = this.wrapper.getBoundingClientRect();
|
|
8585
|
-
this.oldA = this.hsva.value.a;
|
|
8586
|
-
this.oldH = this.hsva.value.h;
|
|
8587
|
-
this.hsva.subscribe((value) => {
|
|
8588
|
-
if (value.h !== this.oldH || value.a !== this.oldA) {
|
|
8589
|
-
this.oldH = value.h;
|
|
8590
|
-
this.oldA = value.a;
|
|
8591
|
-
this.setPaths();
|
|
8592
|
-
}
|
|
8593
|
-
});
|
|
8594
|
-
}
|
|
8595
|
-
ngOnChanges(changes) {
|
|
8596
|
-
if (isPresent(changes.backgroundColor) && this.metrics) {
|
|
8597
|
-
this.setPaths();
|
|
8598
|
-
}
|
|
8599
|
-
}
|
|
8600
|
-
setPaths() {
|
|
8601
|
-
const bezierCommandCalc = bezierCommand(controlPoint(line));
|
|
8602
|
-
this.paths = [svgPath(this.getPaths(AA_RATIO, STEP_COUNT), bezierCommandCalc),
|
|
8603
|
-
svgPath(this.getPaths(AA_RATIO, STEP_COUNT, true), bezierCommandCalc),
|
|
8604
|
-
svgPath(this.getPaths(AAA_RATIO, STEP_COUNT), bezierCommandCalc),
|
|
8605
|
-
svgPath(this.getPaths(AAA_RATIO, STEP_COUNT, true), bezierCommandCalc)];
|
|
8606
|
-
}
|
|
8607
|
-
findValue(contrast, saturation, low, high, comparer) {
|
|
8608
|
-
const mid = (low + high) / 2;
|
|
8609
|
-
const hsva = Object.assign({}, this.hsva.value, { s: saturation / this.metrics.width, v: 1 - mid / this.metrics.height });
|
|
8610
|
-
const currentContrast = getContrastFromTwoRGBAs(getRGBA(getColorFromHSV(hsva)), getRGBA(this.backgroundColor || ''));
|
|
8611
|
-
if (low + 0.5 > high) {
|
|
8612
|
-
if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
|
|
8613
|
-
return mid;
|
|
8614
|
-
}
|
|
8615
|
-
else {
|
|
8616
|
-
return null;
|
|
8617
|
-
}
|
|
8618
|
-
}
|
|
8619
|
-
if (comparer(currentContrast, contrast)) {
|
|
8620
|
-
return this.findValue(contrast, saturation, low, high - (high - low) / 2, comparer);
|
|
8621
|
-
}
|
|
8622
|
-
return this.findValue(contrast, saturation, low + (high - low) / 2, high, comparer);
|
|
8623
|
-
}
|
|
8624
|
-
getPaths(contrast, stepCount, reversed = false) {
|
|
8625
|
-
const points = [];
|
|
8626
|
-
for (let i = 0; i <= this.metrics.width; i += this.metrics.width / stepCount) {
|
|
8627
|
-
const value = this.findValue(contrast, i, 0, this.metrics.height, reversed ? ((a, b) => a < b) : ((a, b) => a > b));
|
|
8628
|
-
if (value !== null) {
|
|
8629
|
-
points.push([i, value]);
|
|
8630
|
-
}
|
|
8631
|
-
}
|
|
8632
|
-
return points;
|
|
8633
|
-
}
|
|
8634
|
-
}
|
|
8635
|
-
ColorContrastSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorContrastSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8636
|
-
ColorContrastSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: { wrapper: "wrapper", hsva: "hsva", backgroundColor: "backgroundColor" }, host: { properties: { "class.k-color-contrast-svg": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
8637
|
-
<svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
|
|
8638
|
-
`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
8639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorContrastSvgComponent, decorators: [{
|
|
8640
|
-
type: Component,
|
|
8641
|
-
args: [{
|
|
8642
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8643
|
-
selector: '[kendoColorContrastSvg]',
|
|
8644
|
-
template: `
|
|
8645
|
-
<svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
|
|
8646
|
-
`
|
|
8647
|
-
}]
|
|
8648
|
-
}], propDecorators: { hostClass: [{
|
|
8649
|
-
type: HostBinding,
|
|
8650
|
-
args: ['class.k-color-contrast-svg']
|
|
8651
|
-
}], wrapper: [{
|
|
8652
|
-
type: Input
|
|
8653
|
-
}], hsva: [{
|
|
8654
|
-
type: Input
|
|
8655
|
-
}], backgroundColor: [{
|
|
8656
|
-
type: Input
|
|
8657
|
-
}] } });
|
|
8658
|
-
|
|
8659
|
-
/**
|
|
8660
|
-
* @hidden
|
|
8661
|
-
*/
|
|
8662
|
-
class NumericLabelDirective {
|
|
8663
|
-
constructor(host) {
|
|
8664
|
-
this.host = host;
|
|
8665
|
-
}
|
|
8666
|
-
ngOnInit() {
|
|
8667
|
-
const localizationToken = `${this.kendoAdditionalNumericLabel}ChannelLabel`;
|
|
8668
|
-
this.host.numericInput.nativeElement.setAttribute('aria-label', this.localizationService.get(localizationToken));
|
|
8669
|
-
}
|
|
8670
|
-
}
|
|
8671
|
-
NumericLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericLabelDirective, deps: [{ token: NumericTextBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8672
|
-
NumericLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
|
|
8673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericLabelDirective, decorators: [{
|
|
8674
|
-
type: Directive,
|
|
8675
|
-
args: [{ selector: '[kendoAdditionalNumericLabel]' }]
|
|
8676
|
-
}], ctorParameters: function () { return [{ type: NumericTextBoxComponent }]; }, propDecorators: { kendoAdditionalNumericLabel: [{
|
|
8677
|
-
type: Input
|
|
8678
|
-
}], localizationService: [{
|
|
8679
|
-
type: Input
|
|
8680
|
-
}] } });
|
|
8681
|
-
|
|
8533
|
+
class NumericLabelDirective {
|
|
8534
|
+
constructor(host) {
|
|
8535
|
+
this.host = host;
|
|
8536
|
+
}
|
|
8537
|
+
ngOnInit() {
|
|
8538
|
+
const localizationToken = `${this.kendoAdditionalNumericLabel}ChannelLabel`;
|
|
8539
|
+
this.host.numericInput.nativeElement.setAttribute('aria-label', this.localizationService.get(localizationToken));
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
NumericLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericLabelDirective, deps: [{ token: NumericTextBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8543
|
+
NumericLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
|
|
8544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericLabelDirective, decorators: [{
|
|
8545
|
+
type: Directive,
|
|
8546
|
+
args: [{ selector: '[kendoAdditionalNumericLabel]' }]
|
|
8547
|
+
}], ctorParameters: function () { return [{ type: NumericTextBoxComponent }]; }, propDecorators: { kendoAdditionalNumericLabel: [{
|
|
8548
|
+
type: Input
|
|
8549
|
+
}], localizationService: [{
|
|
8550
|
+
type: Input
|
|
8551
|
+
}] } });
|
|
8552
|
+
|
|
8553
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8682
8554
|
/**
|
|
8683
8555
|
* @hidden
|
|
8684
8556
|
*/
|
|
@@ -8720,6 +8592,10 @@ class ColorInputComponent {
|
|
|
8720
8592
|
* The rgba inputs values.
|
|
8721
8593
|
*/
|
|
8722
8594
|
this.rgba = {};
|
|
8595
|
+
/**
|
|
8596
|
+
* @hidden
|
|
8597
|
+
*/
|
|
8598
|
+
this.caretAltExpandIcon = caretAltExpandIcon;
|
|
8723
8599
|
this.subscriptions = new Subscription();
|
|
8724
8600
|
}
|
|
8725
8601
|
/**
|
|
@@ -8747,7 +8623,7 @@ class ColorInputComponent {
|
|
|
8747
8623
|
}
|
|
8748
8624
|
}
|
|
8749
8625
|
ngOnChanges(changes) {
|
|
8750
|
-
if (isPresent(changes
|
|
8626
|
+
if (isPresent(changes['value']) && !this.isFocused) {
|
|
8751
8627
|
this.hex = parseColor(this.value, 'hex', this.opacity);
|
|
8752
8628
|
this.rgba = getRGBA(this.value);
|
|
8753
8629
|
this.rgba.a = parseColor(this.value, 'rgba', this.opacity) ? this.rgba.a : 1;
|
|
@@ -8802,22 +8678,25 @@ class ColorInputComponent {
|
|
|
8802
8678
|
this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement, 'click', () => this.toggleFormatView()));
|
|
8803
8679
|
}
|
|
8804
8680
|
lastInput() {
|
|
8805
|
-
|
|
8806
|
-
return ((_a = this.hexInput) === null || _a === void 0 ? void 0 : _a.nativeElement) || this.opacityInput || this.blueInput;
|
|
8681
|
+
return this.hexInput?.nativeElement || this.opacityInput || this.blueInput;
|
|
8807
8682
|
}
|
|
8808
8683
|
}
|
|
8809
|
-
ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8810
|
-
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
8684
|
+
ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8685
|
+
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
8811
8686
|
<div class="k-vstack">
|
|
8812
|
-
<button
|
|
8813
|
-
|
|
8687
|
+
<button
|
|
8688
|
+
kendoButton
|
|
8689
|
+
type="button"
|
|
8690
|
+
fillMode="flat"
|
|
8691
|
+
#toggleFormatButton
|
|
8692
|
+
icon="caret-alt-expand"
|
|
8693
|
+
[svgIcon]="caretAltExpandIcon"
|
|
8694
|
+
class="k-colorgradient-toggle-mode"
|
|
8814
8695
|
[attr.aria-label]="formatButtonTitle"
|
|
8815
8696
|
[attr.title]="formatButtonTitle"
|
|
8816
8697
|
[disabled]="disabled"
|
|
8817
8698
|
[tabindex]="tabindex.toString()"
|
|
8818
|
-
type="button"
|
|
8819
8699
|
>
|
|
8820
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
8821
8700
|
</button>
|
|
8822
8701
|
</div>
|
|
8823
8702
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -8920,22 +8799,26 @@ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8920
8799
|
<label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
|
|
8921
8800
|
</div>
|
|
8922
8801
|
</ng-container>
|
|
8923
|
-
`, isInline: true, components: [{ type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
8924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8802
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
8803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, decorators: [{
|
|
8925
8804
|
type: Component,
|
|
8926
8805
|
args: [{
|
|
8927
8806
|
selector: 'kendo-colorinput',
|
|
8928
8807
|
template: `
|
|
8929
8808
|
<div class="k-vstack">
|
|
8930
|
-
<button
|
|
8931
|
-
|
|
8809
|
+
<button
|
|
8810
|
+
kendoButton
|
|
8811
|
+
type="button"
|
|
8812
|
+
fillMode="flat"
|
|
8813
|
+
#toggleFormatButton
|
|
8814
|
+
icon="caret-alt-expand"
|
|
8815
|
+
[svgIcon]="caretAltExpandIcon"
|
|
8816
|
+
class="k-colorgradient-toggle-mode"
|
|
8932
8817
|
[attr.aria-label]="formatButtonTitle"
|
|
8933
8818
|
[attr.title]="formatButtonTitle"
|
|
8934
8819
|
[disabled]="disabled"
|
|
8935
8820
|
[tabindex]="tabindex.toString()"
|
|
8936
|
-
type="button"
|
|
8937
8821
|
>
|
|
8938
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
8939
8822
|
</button>
|
|
8940
8823
|
</div>
|
|
8941
8824
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -9075,7 +8958,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9075
8958
|
args: ['blueInput']
|
|
9076
8959
|
}], toggleFormatButton: [{
|
|
9077
8960
|
type: ViewChild,
|
|
9078
|
-
args: ['toggleFormatButton', { static: false }]
|
|
8961
|
+
args: ['toggleFormatButton', { static: false, read: ElementRef }]
|
|
8962
|
+
}] } });
|
|
8963
|
+
|
|
8964
|
+
/**
|
|
8965
|
+
* @hidden
|
|
8966
|
+
*/
|
|
8967
|
+
class ColorContrastSvgComponent {
|
|
8968
|
+
constructor() {
|
|
8969
|
+
this.hostClass = true;
|
|
8970
|
+
}
|
|
8971
|
+
ngAfterViewInit() {
|
|
8972
|
+
if (!isDocumentAvailable()) {
|
|
8973
|
+
return;
|
|
8974
|
+
}
|
|
8975
|
+
this.metrics = this.wrapper.getBoundingClientRect();
|
|
8976
|
+
this.oldA = this.hsva.value.a;
|
|
8977
|
+
this.oldH = this.hsva.value.h;
|
|
8978
|
+
this.hsva.subscribe((value) => {
|
|
8979
|
+
if (value.h !== this.oldH || value.a !== this.oldA) {
|
|
8980
|
+
this.oldH = value.h;
|
|
8981
|
+
this.oldA = value.a;
|
|
8982
|
+
this.setPaths();
|
|
8983
|
+
}
|
|
8984
|
+
});
|
|
8985
|
+
}
|
|
8986
|
+
ngOnChanges(changes) {
|
|
8987
|
+
if (isPresent(changes['backgroundColor']) && this.metrics) {
|
|
8988
|
+
this.setPaths();
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
setPaths() {
|
|
8992
|
+
const bezierCommandCalc = bezierCommand(controlPoint(line));
|
|
8993
|
+
this.paths = [svgPath(this.getPaths(AA_RATIO, STEP_COUNT), bezierCommandCalc),
|
|
8994
|
+
svgPath(this.getPaths(AA_RATIO, STEP_COUNT, true), bezierCommandCalc),
|
|
8995
|
+
svgPath(this.getPaths(AAA_RATIO, STEP_COUNT), bezierCommandCalc),
|
|
8996
|
+
svgPath(this.getPaths(AAA_RATIO, STEP_COUNT, true), bezierCommandCalc)];
|
|
8997
|
+
}
|
|
8998
|
+
findValue(contrast, saturation, low, high, comparer) {
|
|
8999
|
+
const mid = (low + high) / 2;
|
|
9000
|
+
const hsva = Object.assign({}, this.hsva.value, { s: saturation / this.metrics.width, v: 1 - mid / this.metrics.height });
|
|
9001
|
+
const currentContrast = getContrastFromTwoRGBAs(getRGBA(getColorFromHSV(hsva)), getRGBA(this.backgroundColor || ''));
|
|
9002
|
+
if (low + 0.5 > high) {
|
|
9003
|
+
if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
|
|
9004
|
+
return mid;
|
|
9005
|
+
}
|
|
9006
|
+
else {
|
|
9007
|
+
return null;
|
|
9008
|
+
}
|
|
9009
|
+
}
|
|
9010
|
+
if (comparer(currentContrast, contrast)) {
|
|
9011
|
+
return this.findValue(contrast, saturation, low, high - (high - low) / 2, comparer);
|
|
9012
|
+
}
|
|
9013
|
+
return this.findValue(contrast, saturation, low + (high - low) / 2, high, comparer);
|
|
9014
|
+
}
|
|
9015
|
+
getPaths(contrast, stepCount, reversed = false) {
|
|
9016
|
+
const points = [];
|
|
9017
|
+
for (let i = 0; i <= this.metrics.width; i += this.metrics.width / stepCount) {
|
|
9018
|
+
const value = this.findValue(contrast, i, 0, this.metrics.height, reversed ? ((a, b) => a < b) : ((a, b) => a > b));
|
|
9019
|
+
if (value !== null) {
|
|
9020
|
+
points.push([i, value]);
|
|
9021
|
+
}
|
|
9022
|
+
}
|
|
9023
|
+
return points;
|
|
9024
|
+
}
|
|
9025
|
+
}
|
|
9026
|
+
ColorContrastSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorContrastSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9027
|
+
ColorContrastSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: { wrapper: "wrapper", hsva: "hsva", backgroundColor: "backgroundColor" }, host: { properties: { "class.k-color-contrast-svg": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
9028
|
+
<svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
|
|
9029
|
+
`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
9030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorContrastSvgComponent, decorators: [{
|
|
9031
|
+
type: Component,
|
|
9032
|
+
args: [{
|
|
9033
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
9034
|
+
selector: '[kendoColorContrastSvg]',
|
|
9035
|
+
template: `
|
|
9036
|
+
<svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
|
|
9037
|
+
`
|
|
9038
|
+
}]
|
|
9039
|
+
}], propDecorators: { hostClass: [{
|
|
9040
|
+
type: HostBinding,
|
|
9041
|
+
args: ['class.k-color-contrast-svg']
|
|
9042
|
+
}], wrapper: [{
|
|
9043
|
+
type: Input
|
|
9044
|
+
}], hsva: [{
|
|
9045
|
+
type: Input
|
|
9046
|
+
}], backgroundColor: [{
|
|
9047
|
+
type: Input
|
|
9079
9048
|
}] } });
|
|
9080
9049
|
|
|
9081
9050
|
/**
|
|
@@ -9084,6 +9053,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9084
9053
|
class ContrastValidationComponent {
|
|
9085
9054
|
constructor(localization) {
|
|
9086
9055
|
this.localization = localization;
|
|
9056
|
+
this.checkIcon = checkIcon;
|
|
9057
|
+
this.xCircleIcon = xCircleIcon;
|
|
9087
9058
|
}
|
|
9088
9059
|
get passMessage() {
|
|
9089
9060
|
return this.localization.get('passContrast');
|
|
@@ -9092,25 +9063,25 @@ class ContrastValidationComponent {
|
|
|
9092
9063
|
return this.localization.get('failContrast');
|
|
9093
9064
|
}
|
|
9094
9065
|
get contrastText() {
|
|
9095
|
-
|
|
9066
|
+
const ratio = this.type === 'AA' ? AA_RATIO : AAA_RATIO;
|
|
9096
9067
|
return `${this.type}: ${ratio.toFixed(1)}`;
|
|
9097
9068
|
}
|
|
9098
9069
|
}
|
|
9099
|
-
ContrastValidationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9100
|
-
ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
9070
|
+
ContrastValidationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastValidationComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9071
|
+
ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: { type: "type", pass: "pass", value: "value" }, ngImport: i0, template: `
|
|
9101
9072
|
<span>{{contrastText}}</span>
|
|
9102
9073
|
<ng-container *ngIf="value">
|
|
9103
9074
|
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
9104
9075
|
{{passMessage}}
|
|
9105
|
-
<
|
|
9076
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9106
9077
|
</span>
|
|
9107
9078
|
<span class="k-contrast-validation k-text-error" *ngIf="!pass">
|
|
9108
9079
|
{{failMessage}}
|
|
9109
|
-
<
|
|
9080
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9110
9081
|
</span>
|
|
9111
9082
|
</ng-container>
|
|
9112
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9083
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastValidationComponent, decorators: [{
|
|
9114
9085
|
type: Component,
|
|
9115
9086
|
args: [{
|
|
9116
9087
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -9120,11 +9091,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9120
9091
|
<ng-container *ngIf="value">
|
|
9121
9092
|
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
9122
9093
|
{{passMessage}}
|
|
9123
|
-
<
|
|
9094
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9124
9095
|
</span>
|
|
9125
9096
|
<span class="k-contrast-validation k-text-error" *ngIf="!pass">
|
|
9126
9097
|
{{failMessage}}
|
|
9127
|
-
<
|
|
9098
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9128
9099
|
</span>
|
|
9129
9100
|
</ng-container>
|
|
9130
9101
|
`
|
|
@@ -9143,6 +9114,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9143
9114
|
class ContrastComponent {
|
|
9144
9115
|
constructor(localization) {
|
|
9145
9116
|
this.localization = localization;
|
|
9117
|
+
this.checkIcon = checkIcon;
|
|
9118
|
+
this.xCircleIcon = xCircleIcon;
|
|
9146
9119
|
}
|
|
9147
9120
|
get formatedRatio() {
|
|
9148
9121
|
return this.contrastRatio.toFixed(2);
|
|
@@ -9157,21 +9130,21 @@ class ContrastComponent {
|
|
|
9157
9130
|
return this.contrastRatio >= AAA_RATIO;
|
|
9158
9131
|
}
|
|
9159
9132
|
get contrastRatio() {
|
|
9160
|
-
|
|
9133
|
+
const contrast = getContrastFromTwoRGBAs(getRGBA(this.value), getRGBA(this.ratio));
|
|
9161
9134
|
return contrast;
|
|
9162
9135
|
}
|
|
9163
9136
|
}
|
|
9164
|
-
ContrastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9165
|
-
ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
9137
|
+
ContrastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9138
|
+
ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ContrastComponent, selector: "[kendoContrastTool]", inputs: { value: "value", ratio: "ratio" }, ngImport: i0, template: `
|
|
9166
9139
|
<div class="k-contrast-ratio">
|
|
9167
9140
|
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
9168
9141
|
<ng-container *ngIf="value">
|
|
9169
9142
|
<span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
|
|
9170
|
-
<
|
|
9171
|
-
<
|
|
9143
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9144
|
+
<kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9172
9145
|
</span>
|
|
9173
9146
|
<span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
|
|
9174
|
-
<
|
|
9147
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9175
9148
|
</span>
|
|
9176
9149
|
</ng-container>
|
|
9177
9150
|
</div>
|
|
@@ -9185,8 +9158,8 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
9185
9158
|
[value]="value"
|
|
9186
9159
|
[pass]="satisfiesAAACondition">
|
|
9187
9160
|
</div>
|
|
9188
|
-
`, isInline: true, components: [{ type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9161
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastComponent, decorators: [{
|
|
9190
9163
|
type: Component,
|
|
9191
9164
|
args: [{
|
|
9192
9165
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -9196,11 +9169,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9196
9169
|
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
9197
9170
|
<ng-container *ngIf="value">
|
|
9198
9171
|
<span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
|
|
9199
|
-
<
|
|
9200
|
-
<
|
|
9172
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9173
|
+
<kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9201
9174
|
</span>
|
|
9202
9175
|
<span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
|
|
9203
|
-
<
|
|
9176
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9204
9177
|
</span>
|
|
9205
9178
|
</ng-container>
|
|
9206
9179
|
</div>
|
|
@@ -9227,9 +9200,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9227
9200
|
*/
|
|
9228
9201
|
class ColorPickerMessages extends ComponentMessages {
|
|
9229
9202
|
}
|
|
9230
|
-
ColorPickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9231
|
-
ColorPickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
9232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9203
|
+
ColorPickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
9204
|
+
ColorPickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton" }, usesInheritance: true, ngImport: i0 });
|
|
9205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerMessages, decorators: [{
|
|
9233
9206
|
type: Directive,
|
|
9234
9207
|
args: [{
|
|
9235
9208
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -9300,14 +9273,14 @@ class LocalizedColorPickerMessagesDirective extends ColorPickerMessages {
|
|
|
9300
9273
|
this.service = service;
|
|
9301
9274
|
}
|
|
9302
9275
|
}
|
|
9303
|
-
LocalizedColorPickerMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9304
|
-
LocalizedColorPickerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
9276
|
+
LocalizedColorPickerMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedColorPickerMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
9277
|
+
LocalizedColorPickerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]", providers: [
|
|
9305
9278
|
{
|
|
9306
9279
|
provide: ColorPickerMessages,
|
|
9307
9280
|
useExisting: forwardRef(() => LocalizedColorPickerMessagesDirective)
|
|
9308
9281
|
}
|
|
9309
9282
|
], usesInheritance: true, ngImport: i0 });
|
|
9310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedColorPickerMessagesDirective, decorators: [{
|
|
9311
9284
|
type: Directive,
|
|
9312
9285
|
args: [{
|
|
9313
9286
|
providers: [
|
|
@@ -9320,6 +9293,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9320
9293
|
}]
|
|
9321
9294
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
9322
9295
|
|
|
9296
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9323
9297
|
let serial$3 = 0;
|
|
9324
9298
|
/**
|
|
9325
9299
|
* The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
|
|
@@ -9411,6 +9385,10 @@ class ColorGradientComponent {
|
|
|
9411
9385
|
* @hidden
|
|
9412
9386
|
*/
|
|
9413
9387
|
this.internalNavigation = false;
|
|
9388
|
+
/**
|
|
9389
|
+
* @hidden
|
|
9390
|
+
*/
|
|
9391
|
+
this.dropletSlashIcon = dropletSlashIcon;
|
|
9414
9392
|
this._tabindex = 0;
|
|
9415
9393
|
this.listeners = [];
|
|
9416
9394
|
this.hueSliderTouched = false;
|
|
@@ -9434,16 +9412,13 @@ class ColorGradientComponent {
|
|
|
9434
9412
|
return this.id;
|
|
9435
9413
|
}
|
|
9436
9414
|
get hostTabindex() {
|
|
9437
|
-
|
|
9438
|
-
return ((_a = this.tabindex) === null || _a === void 0 ? void 0 : _a.toString()) || '0';
|
|
9415
|
+
return this.tabindex?.toString() || '0';
|
|
9439
9416
|
}
|
|
9440
9417
|
get isControlInvalid() {
|
|
9441
|
-
|
|
9442
|
-
return (_b = ((_a = this.control) === null || _a === void 0 ? void 0 : _a.invalid)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
9418
|
+
return (this.control?.invalid)?.toString();
|
|
9443
9419
|
}
|
|
9444
9420
|
get isDisabled() {
|
|
9445
|
-
|
|
9446
|
-
return ((_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString()) || undefined;
|
|
9421
|
+
return this.disabled?.toString() || undefined;
|
|
9447
9422
|
}
|
|
9448
9423
|
/**
|
|
9449
9424
|
* @hidden
|
|
@@ -9780,7 +9755,7 @@ class ColorGradientComponent {
|
|
|
9780
9755
|
hsva.v = 1 - top / gradientRectHeight;
|
|
9781
9756
|
this.hsva.next(hsva);
|
|
9782
9757
|
this.updateValues.next(getColorFromHSV(this.hsva.value, this.format, this.opacity));
|
|
9783
|
-
this.setAlphaSliderBackground(getColorFromHSV(
|
|
9758
|
+
this.setAlphaSliderBackground(getColorFromHSV({ ...this.hsva.value, a: 1 }, this.format, this.opacity));
|
|
9784
9759
|
}
|
|
9785
9760
|
handleValueChange(color) {
|
|
9786
9761
|
if (this.value === color) {
|
|
@@ -9866,8 +9841,8 @@ class ColorGradientComponent {
|
|
|
9866
9841
|
}
|
|
9867
9842
|
}
|
|
9868
9843
|
}
|
|
9869
|
-
ColorGradientComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9870
|
-
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
9844
|
+
ColorGradientComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
9845
|
+
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled" } }, providers: [
|
|
9871
9846
|
{
|
|
9872
9847
|
multi: true,
|
|
9873
9848
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -9954,23 +9929,31 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
9954
9929
|
xmlns="http://www.w3.org/2000/svg"
|
|
9955
9930
|
[wrapper]="gradientWrapper ? gradientWrapper : undefined"
|
|
9956
9931
|
[hsva]="hsva"
|
|
9957
|
-
[backgroundColor]="contrastTool"
|
|
9932
|
+
[backgroundColor]="contrastTool"
|
|
9933
|
+
[style]="'position: absolute; overflow: visible; pointer-events: none; left: 0px; top: 0px;'">
|
|
9958
9934
|
</svg>
|
|
9959
9935
|
</div>
|
|
9960
9936
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
9961
|
-
|
|
9937
|
+
|
|
9938
|
+
<button
|
|
9939
|
+
kendoButton
|
|
9962
9940
|
*ngIf="clearButton"
|
|
9963
|
-
|
|
9941
|
+
class="k-clear-color"
|
|
9942
|
+
fillMode="flat"
|
|
9943
|
+
icon="droplet-slash"
|
|
9944
|
+
[svgIcon]="dropletSlashIcon"
|
|
9964
9945
|
(click)="reset()"
|
|
9965
9946
|
(keydown.enter)="reset()"
|
|
9966
9947
|
(keydown.space)="reset()"
|
|
9967
9948
|
[attr.aria-label]="clearButtonTitle"
|
|
9968
9949
|
[attr.title]="clearButtonTitle"
|
|
9969
|
-
[tabindex]="innerTabIndex.toString()"
|
|
9970
|
-
|
|
9971
|
-
|
|
9950
|
+
[tabindex]="innerTabIndex.toString()"
|
|
9951
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
9952
|
+
>
|
|
9953
|
+
</button>
|
|
9972
9954
|
<kendo-slider
|
|
9973
9955
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
9956
|
+
[style.height.px]="clearButton ? '140' : null"
|
|
9974
9957
|
class="k-hue-slider k-colorgradient-slider"
|
|
9975
9958
|
[dragHandleTitle]="hueSliderTitle"
|
|
9976
9959
|
[tabindex]="innerTabIndex"
|
|
@@ -9992,6 +9975,7 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
9992
9975
|
#alphaSlider
|
|
9993
9976
|
[tabindex]="innerTabIndex"
|
|
9994
9977
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
9978
|
+
[style.height.px]="clearButton ? '140' : null"
|
|
9995
9979
|
class="k-alpha-slider k-colorgradient-slider"
|
|
9996
9980
|
[dragHandleTitle]="opacitySliderTitle"
|
|
9997
9981
|
[disabled]="disabled"
|
|
@@ -10026,8 +10010,8 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
10026
10010
|
[value]="value"
|
|
10027
10011
|
[ratio]="contrastTool">
|
|
10028
10012
|
</div>
|
|
10029
|
-
`, isInline: true,
|
|
10030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10013
|
+
`, isInline: true, components: [{ type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
10014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientComponent, decorators: [{
|
|
10031
10015
|
type: Component,
|
|
10032
10016
|
args: [{
|
|
10033
10017
|
exportAs: 'kendoColorGradient',
|
|
@@ -10120,23 +10104,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10120
10104
|
xmlns="http://www.w3.org/2000/svg"
|
|
10121
10105
|
[wrapper]="gradientWrapper ? gradientWrapper : undefined"
|
|
10122
10106
|
[hsva]="hsva"
|
|
10123
|
-
[backgroundColor]="contrastTool"
|
|
10107
|
+
[backgroundColor]="contrastTool"
|
|
10108
|
+
[style]="'position: absolute; overflow: visible; pointer-events: none; left: 0px; top: 0px;'">
|
|
10124
10109
|
</svg>
|
|
10125
10110
|
</div>
|
|
10126
10111
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
10127
|
-
|
|
10112
|
+
|
|
10113
|
+
<button
|
|
10114
|
+
kendoButton
|
|
10128
10115
|
*ngIf="clearButton"
|
|
10129
|
-
|
|
10116
|
+
class="k-clear-color"
|
|
10117
|
+
fillMode="flat"
|
|
10118
|
+
icon="droplet-slash"
|
|
10119
|
+
[svgIcon]="dropletSlashIcon"
|
|
10130
10120
|
(click)="reset()"
|
|
10131
10121
|
(keydown.enter)="reset()"
|
|
10132
10122
|
(keydown.space)="reset()"
|
|
10133
10123
|
[attr.aria-label]="clearButtonTitle"
|
|
10134
10124
|
[attr.title]="clearButtonTitle"
|
|
10135
|
-
[tabindex]="innerTabIndex.toString()"
|
|
10136
|
-
|
|
10137
|
-
|
|
10125
|
+
[tabindex]="innerTabIndex.toString()"
|
|
10126
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
10127
|
+
>
|
|
10128
|
+
</button>
|
|
10138
10129
|
<kendo-slider
|
|
10139
10130
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
10131
|
+
[style.height.px]="clearButton ? '140' : null"
|
|
10140
10132
|
class="k-hue-slider k-colorgradient-slider"
|
|
10141
10133
|
[dragHandleTitle]="hueSliderTitle"
|
|
10142
10134
|
[tabindex]="innerTabIndex"
|
|
@@ -10158,6 +10150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10158
10150
|
#alphaSlider
|
|
10159
10151
|
[tabindex]="innerTabIndex"
|
|
10160
10152
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
10153
|
+
[style.height.px]="clearButton ? '140' : null"
|
|
10161
10154
|
class="k-alpha-slider k-colorgradient-slider"
|
|
10162
10155
|
[dragHandleTitle]="opacitySliderTitle"
|
|
10163
10156
|
[disabled]="disabled"
|
|
@@ -10192,26 +10185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10192
10185
|
[value]="value"
|
|
10193
10186
|
[ratio]="contrastTool">
|
|
10194
10187
|
</div>
|
|
10195
|
-
|
|
10196
|
-
styles: [`
|
|
10197
|
-
.k-clear-color {
|
|
10198
|
-
position: absolute;
|
|
10199
|
-
top: 0;
|
|
10200
|
-
left: 50%;
|
|
10201
|
-
transform: translateX(-50%);
|
|
10202
|
-
}
|
|
10203
|
-
.k-colorgradient-slider.k-align-self-end {
|
|
10204
|
-
height: 140px;
|
|
10205
|
-
}
|
|
10206
|
-
|
|
10207
|
-
.k-color-contrast-svg {
|
|
10208
|
-
position: absolute;
|
|
10209
|
-
overflow: visible;
|
|
10210
|
-
pointer-events: none;
|
|
10211
|
-
left: 0px;
|
|
10212
|
-
top: 0px;
|
|
10213
|
-
}
|
|
10214
|
-
`]
|
|
10188
|
+
`
|
|
10215
10189
|
}]
|
|
10216
10190
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
|
|
10217
10191
|
type: HostBinding,
|
|
@@ -10307,9 +10281,9 @@ class ColorPaletteLocalizationService extends LocalizationService {
|
|
|
10307
10281
|
return super.get(shortKey);
|
|
10308
10282
|
}
|
|
10309
10283
|
}
|
|
10310
|
-
ColorPaletteLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10311
|
-
ColorPaletteLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10284
|
+
ColorPaletteLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: FlatColorPickerLocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10285
|
+
ColorPaletteLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteLocalizationService });
|
|
10286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteLocalizationService, decorators: [{
|
|
10313
10287
|
type: Injectable
|
|
10314
10288
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
10315
10289
|
type: Inject,
|
|
@@ -10383,9 +10357,9 @@ class ColorPaletteService {
|
|
|
10383
10357
|
return index;
|
|
10384
10358
|
}
|
|
10385
10359
|
}
|
|
10386
|
-
ColorPaletteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10387
|
-
ColorPaletteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10360
|
+
ColorPaletteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10361
|
+
ColorPaletteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteService });
|
|
10362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteService, decorators: [{
|
|
10389
10363
|
type: Injectable
|
|
10390
10364
|
}] });
|
|
10391
10365
|
|
|
@@ -10585,10 +10559,10 @@ class ColorPaletteComponent {
|
|
|
10585
10559
|
}
|
|
10586
10560
|
}
|
|
10587
10561
|
ngOnChanges(changes) {
|
|
10588
|
-
if (changes
|
|
10562
|
+
if (changes['palette'] || changes['columns']) {
|
|
10589
10563
|
this.setRows();
|
|
10590
10564
|
}
|
|
10591
|
-
if (changes
|
|
10565
|
+
if (changes['palette'] || changes['value'] || changes['columns']) {
|
|
10592
10566
|
this.selectCell(this.value);
|
|
10593
10567
|
this.setHostElementAriaLabel();
|
|
10594
10568
|
}
|
|
@@ -10752,8 +10726,8 @@ class ColorPaletteComponent {
|
|
|
10752
10726
|
this.handleCellSelection(selectedColor, this.focusedCell);
|
|
10753
10727
|
}
|
|
10754
10728
|
}
|
|
10755
|
-
ColorPaletteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10756
|
-
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
10729
|
+
ColorPaletteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteComponent, deps: [{ token: i0.ElementRef }, { token: ColorPaletteService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
10730
|
+
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { listeners: { "keydown": "handleKeydown($event)", "focus": "handleFocus($event)", "blur": "handleHostBlur()" }, properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.readonlyAttribute" } }, providers: [
|
|
10757
10731
|
{
|
|
10758
10732
|
multi: true,
|
|
10759
10733
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -10803,7 +10777,7 @@ ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
10803
10777
|
</table>
|
|
10804
10778
|
</div>
|
|
10805
10779
|
`, isInline: true, directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
10806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPaletteComponent, decorators: [{
|
|
10807
10781
|
type: Component,
|
|
10808
10782
|
args: [{
|
|
10809
10783
|
exportAs: 'kendoColorPalette',
|
|
@@ -10922,6 +10896,209 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10922
10896
|
args: ['blur']
|
|
10923
10897
|
}] } });
|
|
10924
10898
|
|
|
10899
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10900
|
+
/**
|
|
10901
|
+
* @hidden
|
|
10902
|
+
*/
|
|
10903
|
+
class FlatColorPickerHeaderComponent {
|
|
10904
|
+
constructor(localizationService, renderer) {
|
|
10905
|
+
this.localizationService = localizationService;
|
|
10906
|
+
this.renderer = renderer;
|
|
10907
|
+
this.hostClasses = true;
|
|
10908
|
+
this.innerTabIndex = -1;
|
|
10909
|
+
this.viewChange = new EventEmitter();
|
|
10910
|
+
this.valuePaneClick = new EventEmitter();
|
|
10911
|
+
this.clearButtonClick = new EventEmitter();
|
|
10912
|
+
this.tabOut = new EventEmitter();
|
|
10913
|
+
this.dropletSliderIcon = dropletSliderIcon;
|
|
10914
|
+
this.paletteIcon = paletteIcon;
|
|
10915
|
+
this.dropletSlashIcon = dropletSlashIcon;
|
|
10916
|
+
}
|
|
10917
|
+
ngAfterViewInit() {
|
|
10918
|
+
if (this.viewButtonsCollection.length > 0) {
|
|
10919
|
+
this.viewButtonsCollection.forEach((button) => {
|
|
10920
|
+
const buttonElem = button.nativeElement;
|
|
10921
|
+
const isViewActive = buttonElem.getAttribute('aria-pressed') === 'true';
|
|
10922
|
+
if (isViewActive) {
|
|
10923
|
+
this.renderer.addClass(buttonElem, 'k-selected');
|
|
10924
|
+
}
|
|
10925
|
+
});
|
|
10926
|
+
}
|
|
10927
|
+
}
|
|
10928
|
+
onViewButtonClick(view) {
|
|
10929
|
+
this.activeView = view;
|
|
10930
|
+
this.viewChange.emit(view);
|
|
10931
|
+
}
|
|
10932
|
+
get viewButtons() {
|
|
10933
|
+
return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
|
|
10934
|
+
}
|
|
10935
|
+
getViewButtonIcon(view) {
|
|
10936
|
+
return view === 'gradient' ? 'color-canvas' : 'palette';
|
|
10937
|
+
}
|
|
10938
|
+
getViewButtonsSVGIcon(view) {
|
|
10939
|
+
return view === 'gradient' ? this.dropletSliderIcon : this.paletteIcon;
|
|
10940
|
+
}
|
|
10941
|
+
getText(text) {
|
|
10942
|
+
return this.localizationService.get(text);
|
|
10943
|
+
}
|
|
10944
|
+
onHeaderTabOut(ev, index) {
|
|
10945
|
+
if (index === 0) {
|
|
10946
|
+
ev.preventDefault();
|
|
10947
|
+
this.tabOut.emit();
|
|
10948
|
+
}
|
|
10949
|
+
}
|
|
10950
|
+
}
|
|
10951
|
+
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
10952
|
+
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
10953
|
+
<div class="k-coloreditor-header-actions k-hstack">
|
|
10954
|
+
<div
|
|
10955
|
+
*ngIf="viewButtons"
|
|
10956
|
+
class="k-button-group k-button-group-flat">
|
|
10957
|
+
<button
|
|
10958
|
+
*ngFor="let view of views; let i = index;"
|
|
10959
|
+
kendoButton
|
|
10960
|
+
type="button"
|
|
10961
|
+
#viewButtons
|
|
10962
|
+
fillMode="flat"
|
|
10963
|
+
[tabindex]="innerTabIndex.toString()"
|
|
10964
|
+
(click)="onViewButtonClick(view)"
|
|
10965
|
+
[icon]="getViewButtonIcon(view)"
|
|
10966
|
+
[svgIcon]="getViewButtonsSVGIcon(view)"
|
|
10967
|
+
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
10968
|
+
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
10969
|
+
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10970
|
+
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10971
|
+
[attr.aria-pressed]="activeView === view"
|
|
10972
|
+
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
10973
|
+
</button>
|
|
10974
|
+
</div>
|
|
10975
|
+
</div>
|
|
10976
|
+
<div class="k-spacer"></div>
|
|
10977
|
+
<div class="k-coloreditor-header-actions k-hstack">
|
|
10978
|
+
<button
|
|
10979
|
+
kendoButton
|
|
10980
|
+
type="button"
|
|
10981
|
+
[tabindex]="innerTabIndex.toString()"
|
|
10982
|
+
*ngIf="clearButton"
|
|
10983
|
+
#clearButton
|
|
10984
|
+
fillMode="flat"
|
|
10985
|
+
icon="reset-color"
|
|
10986
|
+
[svgIcon]="dropletSlashIcon"
|
|
10987
|
+
class="k-coloreditor-reset"
|
|
10988
|
+
[attr.aria-label]="getText('clearButton')"
|
|
10989
|
+
[attr.title]="getText('clearButton')"
|
|
10990
|
+
(click)="clearButtonClick.emit()">
|
|
10991
|
+
</button>
|
|
10992
|
+
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
10993
|
+
<span
|
|
10994
|
+
class="k-coloreditor-preview-color k-color-preview"
|
|
10995
|
+
[attr.title]="getText('previewColor')"
|
|
10996
|
+
[style.background-color]="selection">
|
|
10997
|
+
</span>
|
|
10998
|
+
<span class="k-coloreditor-current-color k-color-preview"
|
|
10999
|
+
[style.background-color]="value"
|
|
11000
|
+
[attr.title]="getText('revertSelection')"
|
|
11001
|
+
(click)="valuePaneClick.emit($event)">
|
|
11002
|
+
</span>
|
|
11003
|
+
</div>
|
|
11004
|
+
</div>
|
|
11005
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
11006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
|
|
11007
|
+
type: Component,
|
|
11008
|
+
args: [{
|
|
11009
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
11010
|
+
selector: '[kendoFlatColorPickerHeader]',
|
|
11011
|
+
template: `
|
|
11012
|
+
<div class="k-coloreditor-header-actions k-hstack">
|
|
11013
|
+
<div
|
|
11014
|
+
*ngIf="viewButtons"
|
|
11015
|
+
class="k-button-group k-button-group-flat">
|
|
11016
|
+
<button
|
|
11017
|
+
*ngFor="let view of views; let i = index;"
|
|
11018
|
+
kendoButton
|
|
11019
|
+
type="button"
|
|
11020
|
+
#viewButtons
|
|
11021
|
+
fillMode="flat"
|
|
11022
|
+
[tabindex]="innerTabIndex.toString()"
|
|
11023
|
+
(click)="onViewButtonClick(view)"
|
|
11024
|
+
[icon]="getViewButtonIcon(view)"
|
|
11025
|
+
[svgIcon]="getViewButtonsSVGIcon(view)"
|
|
11026
|
+
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
11027
|
+
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
11028
|
+
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
11029
|
+
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
11030
|
+
[attr.aria-pressed]="activeView === view"
|
|
11031
|
+
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
11032
|
+
</button>
|
|
11033
|
+
</div>
|
|
11034
|
+
</div>
|
|
11035
|
+
<div class="k-spacer"></div>
|
|
11036
|
+
<div class="k-coloreditor-header-actions k-hstack">
|
|
11037
|
+
<button
|
|
11038
|
+
kendoButton
|
|
11039
|
+
type="button"
|
|
11040
|
+
[tabindex]="innerTabIndex.toString()"
|
|
11041
|
+
*ngIf="clearButton"
|
|
11042
|
+
#clearButton
|
|
11043
|
+
fillMode="flat"
|
|
11044
|
+
icon="reset-color"
|
|
11045
|
+
[svgIcon]="dropletSlashIcon"
|
|
11046
|
+
class="k-coloreditor-reset"
|
|
11047
|
+
[attr.aria-label]="getText('clearButton')"
|
|
11048
|
+
[attr.title]="getText('clearButton')"
|
|
11049
|
+
(click)="clearButtonClick.emit()">
|
|
11050
|
+
</button>
|
|
11051
|
+
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
11052
|
+
<span
|
|
11053
|
+
class="k-coloreditor-preview-color k-color-preview"
|
|
11054
|
+
[attr.title]="getText('previewColor')"
|
|
11055
|
+
[style.background-color]="selection">
|
|
11056
|
+
</span>
|
|
11057
|
+
<span class="k-coloreditor-current-color k-color-preview"
|
|
11058
|
+
[style.background-color]="value"
|
|
11059
|
+
[attr.title]="getText('revertSelection')"
|
|
11060
|
+
(click)="valuePaneClick.emit($event)">
|
|
11061
|
+
</span>
|
|
11062
|
+
</div>
|
|
11063
|
+
</div>
|
|
11064
|
+
`
|
|
11065
|
+
}]
|
|
11066
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
|
|
11067
|
+
type: HostBinding,
|
|
11068
|
+
args: ['class.k-coloreditor-header']
|
|
11069
|
+
}, {
|
|
11070
|
+
type: HostBinding,
|
|
11071
|
+
args: ['class.k-hstack']
|
|
11072
|
+
}], clearButton: [{
|
|
11073
|
+
type: Input
|
|
11074
|
+
}], activeView: [{
|
|
11075
|
+
type: Input
|
|
11076
|
+
}], views: [{
|
|
11077
|
+
type: Input
|
|
11078
|
+
}], preview: [{
|
|
11079
|
+
type: Input
|
|
11080
|
+
}], innerTabIndex: [{
|
|
11081
|
+
type: Input
|
|
11082
|
+
}], value: [{
|
|
11083
|
+
type: Input
|
|
11084
|
+
}], selection: [{
|
|
11085
|
+
type: Input
|
|
11086
|
+
}], viewChange: [{
|
|
11087
|
+
type: Output
|
|
11088
|
+
}], valuePaneClick: [{
|
|
11089
|
+
type: Output
|
|
11090
|
+
}], clearButtonClick: [{
|
|
11091
|
+
type: Output
|
|
11092
|
+
}], tabOut: [{
|
|
11093
|
+
type: Output
|
|
11094
|
+
}], viewButtonsCollection: [{
|
|
11095
|
+
type: ViewChildren,
|
|
11096
|
+
args: ['viewButtons', { read: ElementRef }]
|
|
11097
|
+
}], clearButtonElement: [{
|
|
11098
|
+
type: ViewChild,
|
|
11099
|
+
args: ['clearButton', { read: ElementRef }]
|
|
11100
|
+
}] } });
|
|
11101
|
+
|
|
10925
11102
|
/**
|
|
10926
11103
|
* @hidden
|
|
10927
11104
|
*/
|
|
@@ -10937,15 +11114,15 @@ class FlatColorPickerActionButtonsComponent {
|
|
|
10937
11114
|
return this.localizationService.get(text);
|
|
10938
11115
|
}
|
|
10939
11116
|
onActionButtonClick(type, ev) {
|
|
10940
|
-
|
|
11117
|
+
const args = {
|
|
10941
11118
|
target: type,
|
|
10942
11119
|
originalEvent: ev
|
|
10943
11120
|
};
|
|
10944
11121
|
this.actionButtonClick.emit(args);
|
|
10945
11122
|
}
|
|
10946
11123
|
}
|
|
10947
|
-
FlatColorPickerActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10948
|
-
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
11124
|
+
FlatColorPickerActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerActionButtonsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11125
|
+
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: { innerTabIndex: "innerTabIndex" }, outputs: { actionButtonClick: "actionButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-footer": "this.hostClasses", "class.k-actions": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "firstButton", first: true, predicate: ["first"], descendants: true, read: ElementRef }, { propertyName: "lastButton", first: true, predicate: ["last"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
10949
11126
|
<button #first
|
|
10950
11127
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
10951
11128
|
[attr.title]="getText('cancelButton')"
|
|
@@ -10962,7 +11139,7 @@ FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVer
|
|
|
10962
11139
|
(keydown.tab)="$event.preventDefault(); tabOut.emit();"
|
|
10963
11140
|
>{{getText('applyButton')}}</button>
|
|
10964
11141
|
`, isInline: true });
|
|
10965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerActionButtonsComponent, decorators: [{
|
|
10966
11143
|
type: Component,
|
|
10967
11144
|
args: [{
|
|
10968
11145
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -11121,16 +11298,13 @@ class FlatColorPickerComponent {
|
|
|
11121
11298
|
return this.readonly;
|
|
11122
11299
|
}
|
|
11123
11300
|
get hostTabindex() {
|
|
11124
|
-
|
|
11125
|
-
return ((_a = this.tabindex) === null || _a === void 0 ? void 0 : _a.toString()) || '0';
|
|
11301
|
+
return this.tabindex?.toString() || '0';
|
|
11126
11302
|
}
|
|
11127
11303
|
get isControlInvalid() {
|
|
11128
|
-
|
|
11129
|
-
return (_b = ((_a = this.control) === null || _a === void 0 ? void 0 : _a.invalid)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
11304
|
+
return (this.control?.invalid)?.toString();
|
|
11130
11305
|
}
|
|
11131
11306
|
get isDisabled() {
|
|
11132
|
-
|
|
11133
|
-
return ((_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString()) || undefined;
|
|
11307
|
+
return this.disabled?.toString() || undefined;
|
|
11134
11308
|
}
|
|
11135
11309
|
/**
|
|
11136
11310
|
* @hidden
|
|
@@ -11141,7 +11315,7 @@ class FlatColorPickerComponent {
|
|
|
11141
11315
|
}
|
|
11142
11316
|
event.preventDefault();
|
|
11143
11317
|
this.internalNavigation = true;
|
|
11144
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() =>
|
|
11318
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => this.firstFocusable?.focus());
|
|
11145
11319
|
}
|
|
11146
11320
|
/**
|
|
11147
11321
|
* @hidden
|
|
@@ -11264,7 +11438,7 @@ class FlatColorPickerComponent {
|
|
|
11264
11438
|
}
|
|
11265
11439
|
ev.preventDefault();
|
|
11266
11440
|
// eslint-disable-next-line no-unused-expressions
|
|
11267
|
-
shiftKey ? previousTabStop
|
|
11441
|
+
shiftKey ? previousTabStop?.focus() : nextTabStop?.focus();
|
|
11268
11442
|
}
|
|
11269
11443
|
/**
|
|
11270
11444
|
* @hidden
|
|
@@ -11322,8 +11496,7 @@ class FlatColorPickerComponent {
|
|
|
11322
11496
|
this.activeViewChange.emit(view);
|
|
11323
11497
|
this.ngZone.runOutsideAngular(() => {
|
|
11324
11498
|
setTimeout(() => {
|
|
11325
|
-
|
|
11326
|
-
(_a = this[this.activeView]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
11499
|
+
this[this.activeView]?.focus();
|
|
11327
11500
|
});
|
|
11328
11501
|
});
|
|
11329
11502
|
if (this.activeView === 'gradient') {
|
|
@@ -11396,10 +11569,10 @@ class FlatColorPickerComponent {
|
|
|
11396
11569
|
}
|
|
11397
11570
|
setSizingVariables() {
|
|
11398
11571
|
const paletteTileSize = this.service.paletteTileLayout(this.paletteSettings.tileSize);
|
|
11399
|
-
const
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
this.
|
|
11572
|
+
const element = this.host.nativeElement.querySelector('.k-coloreditor-views.k-vstack');
|
|
11573
|
+
this.renderer.setStyle(element, '--kendo-color-preview-columns', this.paletteSettings.columns);
|
|
11574
|
+
this.renderer.setStyle(element, '--kendo-color-preview-width', `${paletteTileSize.width}px`);
|
|
11575
|
+
this.renderer.setStyle(element, '--kendo-color-preview-height', `${paletteTileSize.height}px;`);
|
|
11403
11576
|
}
|
|
11404
11577
|
changeCurrentValue(color) {
|
|
11405
11578
|
this.selection = color;
|
|
@@ -11435,7 +11608,7 @@ class FlatColorPickerComponent {
|
|
|
11435
11608
|
if (!this.host) {
|
|
11436
11609
|
return;
|
|
11437
11610
|
}
|
|
11438
|
-
|
|
11611
|
+
const hostElement = this.host.nativeElement;
|
|
11439
11612
|
this.ngZone.runOutsideAngular(() => {
|
|
11440
11613
|
this.subscriptions.add(this.renderer.listen(hostElement, 'focus', () => {
|
|
11441
11614
|
this.focused = true;
|
|
@@ -11451,8 +11624,8 @@ class FlatColorPickerComponent {
|
|
|
11451
11624
|
this.gradientElement && this.renderer.removeAttribute(this.gradientElement.nativeElement, 'aria-label');
|
|
11452
11625
|
}
|
|
11453
11626
|
}
|
|
11454
|
-
FlatColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11455
|
-
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
11627
|
+
FlatColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: FlatColorPickerService }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
11628
|
+
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: { readonly: "readonly", disabled: "disabled", format: "format", value: "value", tabindex: "tabindex", clearButton: "clearButton", preview: "preview", actionsLayout: "actionsLayout", activeView: "activeView", views: "views", gradientSettings: "gradientSettings", paletteSettings: "paletteSettings" }, outputs: { valueChange: "valueChange", cancel: "cancel", activeViewChange: "activeViewChange", actionButtonClick: "actionButtonClick" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler()", "focusin": "focusHandler($event)" }, properties: { "class.k-flatcolorpicker": "this.hostClasses", "class.k-coloreditor": "this.hostClasses", "class.k-disabled": "this.disabledClass", "attr.aria-disabled": "this.isDisabled", "attr.aria-readonly": "this.ariaReadonly", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [
|
|
11456
11629
|
{
|
|
11457
11630
|
multi: true,
|
|
11458
11631
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -11569,7 +11742,7 @@ FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
11569
11742
|
(actionButtonClick)="onAction($event)"
|
|
11570
11743
|
(tabOut)="firstFocusable.focus()"></div>
|
|
11571
11744
|
`, isInline: true, components: [{ type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["id", "opacity", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex"], outputs: ["actionButtonClick", "tabOut"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
11572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerComponent, decorators: [{
|
|
11573
11746
|
type: Component,
|
|
11574
11747
|
args: [{
|
|
11575
11748
|
exportAs: 'kendoFlatColorPicker',
|
|
@@ -11784,6 +11957,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11784
11957
|
args: ['footer']
|
|
11785
11958
|
}] } });
|
|
11786
11959
|
|
|
11960
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11787
11961
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
11788
11962
|
const DEFAULT_SIZE$3 = 'medium';
|
|
11789
11963
|
const DEFAULT_ROUNDED$2 = 'medium';
|
|
@@ -11909,6 +12083,10 @@ class ColorPickerComponent {
|
|
|
11909
12083
|
* Indicates whether the ColorPicker wrapper is focused.
|
|
11910
12084
|
*/
|
|
11911
12085
|
this.isFocused = false;
|
|
12086
|
+
/**
|
|
12087
|
+
* @hidden
|
|
12088
|
+
*/
|
|
12089
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
11912
12090
|
this._tabindex = 0;
|
|
11913
12091
|
this._popupSettings = { animate: true };
|
|
11914
12092
|
this._paletteSettings = {};
|
|
@@ -11943,8 +12121,7 @@ class ColorPickerComponent {
|
|
|
11943
12121
|
return this.tabindex;
|
|
11944
12122
|
}
|
|
11945
12123
|
get isControlInvalid() {
|
|
11946
|
-
|
|
11947
|
-
return (_b = ((_a = this.control) === null || _a === void 0 ? void 0 : _a.invalid)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
12124
|
+
return (this.control?.invalid)?.toString();
|
|
11948
12125
|
}
|
|
11949
12126
|
/**
|
|
11950
12127
|
* @hidden
|
|
@@ -11991,6 +12168,19 @@ class ColorPickerComponent {
|
|
|
11991
12168
|
get gradientSettings() {
|
|
11992
12169
|
return this._gradientSettings;
|
|
11993
12170
|
}
|
|
12171
|
+
/**
|
|
12172
|
+
* Defines an SVGIcon to be rendered within the button.
|
|
12173
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
12174
|
+
*/
|
|
12175
|
+
set svgIcon(icon) {
|
|
12176
|
+
if (isDevMode() && icon && this.icon && this.iconClass) {
|
|
12177
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
12178
|
+
}
|
|
12179
|
+
this._svgIcon = icon;
|
|
12180
|
+
}
|
|
12181
|
+
get svgIcon() {
|
|
12182
|
+
return this._svgIcon;
|
|
12183
|
+
}
|
|
11994
12184
|
/**
|
|
11995
12185
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
11996
12186
|
*
|
|
@@ -12068,13 +12258,24 @@ class ColorPickerComponent {
|
|
|
12068
12258
|
/**
|
|
12069
12259
|
* @hidden
|
|
12070
12260
|
*/
|
|
12071
|
-
get
|
|
12261
|
+
get customIconStyles() {
|
|
12072
12262
|
if (this.iconClass) {
|
|
12073
|
-
|
|
12263
|
+
let parsedIconClass = '';
|
|
12264
|
+
parseCSSClassNames(this.iconClass).forEach(iconClass => {
|
|
12265
|
+
parsedIconClass += iconClass + ' ';
|
|
12266
|
+
});
|
|
12267
|
+
return parsedIconClass.slice(0, -1);
|
|
12074
12268
|
}
|
|
12075
|
-
|
|
12076
|
-
|
|
12269
|
+
return '';
|
|
12270
|
+
}
|
|
12271
|
+
/**
|
|
12272
|
+
* @hidden
|
|
12273
|
+
*/
|
|
12274
|
+
get iconStyles() {
|
|
12275
|
+
if (this.icon && !this.iconClass) {
|
|
12276
|
+
return `${this.icon}`;
|
|
12077
12277
|
}
|
|
12278
|
+
return '';
|
|
12078
12279
|
}
|
|
12079
12280
|
ngOnInit() {
|
|
12080
12281
|
const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
@@ -12319,7 +12520,7 @@ class ColorPickerComponent {
|
|
|
12319
12520
|
popupBlurInvalid(ev) {
|
|
12320
12521
|
const focusInFlatColorPickerElement = this.popupRef.popupElement.contains(ev.relatedTarget);
|
|
12321
12522
|
const hostClicked = closest$1(ev.relatedTarget, (element) => element === this.host.nativeElement);
|
|
12322
|
-
return hostClicked || focusInFlatColorPickerElement;
|
|
12523
|
+
return Boolean(hostClicked || focusInFlatColorPickerElement);
|
|
12323
12524
|
}
|
|
12324
12525
|
toggleWithEvents(open) {
|
|
12325
12526
|
const sameState = this.isOpen === open;
|
|
@@ -12413,7 +12614,7 @@ class ColorPickerComponent {
|
|
|
12413
12614
|
if (!this.host) {
|
|
12414
12615
|
return;
|
|
12415
12616
|
}
|
|
12416
|
-
|
|
12617
|
+
const hostElement = this.host.nativeElement;
|
|
12417
12618
|
this.ngZone.runOutsideAngular(() => {
|
|
12418
12619
|
this.subscriptions.add(this.renderer.listen(hostElement, 'focusin', () => {
|
|
12419
12620
|
this.handleWrapperFocus();
|
|
@@ -12451,8 +12652,8 @@ class ColorPickerComponent {
|
|
|
12451
12652
|
}
|
|
12452
12653
|
}
|
|
12453
12654
|
}
|
|
12454
|
-
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12455
|
-
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
12655
|
+
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.PopupService }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
12656
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [{
|
|
12456
12657
|
multi: true,
|
|
12457
12658
|
provide: NG_VALUE_ACCESSOR,
|
|
12458
12659
|
useExisting: forwardRef(() => ColorPickerComponent)
|
|
@@ -12523,18 +12724,30 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
12523
12724
|
<span #activeColor class="k-input-inner">
|
|
12524
12725
|
<span
|
|
12525
12726
|
class="k-value-icon k-color-preview"
|
|
12526
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
12527
|
-
|
|
12727
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
12728
|
+
>
|
|
12729
|
+
<kendo-icon-wrapper
|
|
12730
|
+
*ngIf="iconClass || icon"
|
|
12731
|
+
[name]="iconStyles"
|
|
12732
|
+
innerCssClass="k-color-preview-icon"
|
|
12733
|
+
[customFontClass]="customIconStyles"
|
|
12734
|
+
[svgIcon]="svgIcon"
|
|
12735
|
+
>
|
|
12736
|
+
</kendo-icon-wrapper>
|
|
12528
12737
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
12529
12738
|
</span>
|
|
12739
|
+
|
|
12530
12740
|
</span>
|
|
12531
12741
|
<button
|
|
12742
|
+
kendoButton
|
|
12532
12743
|
tabindex="-1"
|
|
12533
12744
|
type="button"
|
|
12534
12745
|
role="none"
|
|
12746
|
+
icon="caret-alt-down"
|
|
12747
|
+
[svgIcon]="arrowDownIcon"
|
|
12535
12748
|
aria-hidden="true"
|
|
12536
|
-
class="k-input-button
|
|
12537
|
-
|
|
12749
|
+
class="k-input-button"
|
|
12750
|
+
>
|
|
12538
12751
|
</button>
|
|
12539
12752
|
<ng-template #popupTemplate>
|
|
12540
12753
|
<kendo-flatcolorpicker
|
|
@@ -12557,8 +12770,8 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
12557
12770
|
</kendo-flatcolorpicker>
|
|
12558
12771
|
</ng-template>
|
|
12559
12772
|
<ng-container #container></ng-container>
|
|
12560
|
-
`, isInline: true, components: [{ type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12773
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
12562
12775
|
type: Component,
|
|
12563
12776
|
args: [{
|
|
12564
12777
|
exportAs: 'kendoColorPicker',
|
|
@@ -12634,18 +12847,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12634
12847
|
<span #activeColor class="k-input-inner">
|
|
12635
12848
|
<span
|
|
12636
12849
|
class="k-value-icon k-color-preview"
|
|
12637
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
12638
|
-
|
|
12850
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
12851
|
+
>
|
|
12852
|
+
<kendo-icon-wrapper
|
|
12853
|
+
*ngIf="iconClass || icon"
|
|
12854
|
+
[name]="iconStyles"
|
|
12855
|
+
innerCssClass="k-color-preview-icon"
|
|
12856
|
+
[customFontClass]="customIconStyles"
|
|
12857
|
+
[svgIcon]="svgIcon"
|
|
12858
|
+
>
|
|
12859
|
+
</kendo-icon-wrapper>
|
|
12639
12860
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
12640
12861
|
</span>
|
|
12862
|
+
|
|
12641
12863
|
</span>
|
|
12642
12864
|
<button
|
|
12865
|
+
kendoButton
|
|
12643
12866
|
tabindex="-1"
|
|
12644
12867
|
type="button"
|
|
12645
12868
|
role="none"
|
|
12869
|
+
icon="caret-alt-down"
|
|
12870
|
+
[svgIcon]="arrowDownIcon"
|
|
12646
12871
|
aria-hidden="true"
|
|
12647
|
-
class="k-input-button
|
|
12648
|
-
|
|
12872
|
+
class="k-input-button"
|
|
12873
|
+
>
|
|
12649
12874
|
</button>
|
|
12650
12875
|
<ng-template #popupTemplate>
|
|
12651
12876
|
<kendo-flatcolorpicker
|
|
@@ -12733,6 +12958,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12733
12958
|
type: Input
|
|
12734
12959
|
}], iconClass: [{
|
|
12735
12960
|
type: Input
|
|
12961
|
+
}], svgIcon: [{
|
|
12962
|
+
type: Input
|
|
12736
12963
|
}], clearButton: [{
|
|
12737
12964
|
type: Input
|
|
12738
12965
|
}], tabindex: [{
|
|
@@ -12791,14 +13018,14 @@ class ColorPickerCustomMessagesComponent extends ColorPickerMessages {
|
|
|
12791
13018
|
return true;
|
|
12792
13019
|
}
|
|
12793
13020
|
}
|
|
12794
|
-
ColorPickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12795
|
-
ColorPickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
13021
|
+
ColorPickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13022
|
+
ColorPickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerCustomMessagesComponent, selector: "kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages", providers: [
|
|
12796
13023
|
{
|
|
12797
13024
|
provide: ColorPickerMessages,
|
|
12798
13025
|
useExisting: forwardRef(() => ColorPickerCustomMessagesComponent)
|
|
12799
13026
|
}
|
|
12800
13027
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
12801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerCustomMessagesComponent, decorators: [{
|
|
12802
13029
|
type: Component,
|
|
12803
13030
|
args: [{
|
|
12804
13031
|
providers: [
|
|
@@ -12827,9 +13054,9 @@ class FocusOnDomReadyDirective {
|
|
|
12827
13054
|
this.ngZone.runOutsideAngular(() => setTimeout(() => this.host.nativeElement.focus()));
|
|
12828
13055
|
}
|
|
12829
13056
|
}
|
|
12830
|
-
FocusOnDomReadyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12831
|
-
FocusOnDomReadyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
12832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13057
|
+
FocusOnDomReadyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FocusOnDomReadyDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13058
|
+
FocusOnDomReadyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FocusOnDomReadyDirective, selector: "[kendoFocusOnDomReady]", ngImport: i0 });
|
|
13059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FocusOnDomReadyDirective, decorators: [{
|
|
12833
13060
|
type: Directive,
|
|
12834
13061
|
args: [{
|
|
12835
13062
|
selector: '[kendoFocusOnDomReady]'
|
|
@@ -12855,13 +13082,13 @@ const INTERNAL_DIRECTIVES = [
|
|
|
12855
13082
|
ColorContrastSvgComponent
|
|
12856
13083
|
];
|
|
12857
13084
|
/**
|
|
12858
|
-
* Represents the [NgModule](
|
|
13085
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
12859
13086
|
* definition for the ColorPicker.
|
|
12860
13087
|
*/
|
|
12861
13088
|
class ColorPickerModule {
|
|
12862
13089
|
}
|
|
12863
|
-
ColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12864
|
-
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
13090
|
+
ColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13091
|
+
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, declarations: [ColorPickerComponent,
|
|
12865
13092
|
ColorPaletteComponent,
|
|
12866
13093
|
ColorGradientComponent,
|
|
12867
13094
|
FlatColorPickerComponent,
|
|
@@ -12877,20 +13104,24 @@ ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
12877
13104
|
NumericTextBoxModule,
|
|
12878
13105
|
CommonModule,
|
|
12879
13106
|
PopupModule,
|
|
12880
|
-
DraggableModule
|
|
13107
|
+
DraggableModule,
|
|
13108
|
+
ButtonModule,
|
|
13109
|
+
IconsModule], exports: [ColorPickerComponent,
|
|
12881
13110
|
ColorPaletteComponent,
|
|
12882
13111
|
ColorGradientComponent,
|
|
12883
13112
|
FlatColorPickerComponent,
|
|
12884
13113
|
LocalizedColorPickerMessagesDirective,
|
|
12885
13114
|
ColorPickerCustomMessagesComponent] });
|
|
12886
|
-
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
13115
|
+
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, imports: [[
|
|
12887
13116
|
SliderModule,
|
|
12888
13117
|
NumericTextBoxModule,
|
|
12889
13118
|
CommonModule,
|
|
12890
13119
|
PopupModule,
|
|
12891
|
-
DraggableModule
|
|
13120
|
+
DraggableModule,
|
|
13121
|
+
ButtonModule,
|
|
13122
|
+
IconsModule
|
|
12892
13123
|
]] });
|
|
12893
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
12894
13125
|
type: NgModule,
|
|
12895
13126
|
args: [{
|
|
12896
13127
|
declarations: [
|
|
@@ -12903,7 +13134,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12903
13134
|
NumericTextBoxModule,
|
|
12904
13135
|
CommonModule,
|
|
12905
13136
|
PopupModule,
|
|
12906
|
-
DraggableModule
|
|
13137
|
+
DraggableModule,
|
|
13138
|
+
ButtonModule,
|
|
13139
|
+
IconsModule
|
|
12907
13140
|
]
|
|
12908
13141
|
}]
|
|
12909
13142
|
}] });
|
|
@@ -12980,9 +13213,9 @@ class CheckBoxDirective {
|
|
|
12980
13213
|
}
|
|
12981
13214
|
}
|
|
12982
13215
|
}
|
|
12983
|
-
CheckBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12984
|
-
CheckBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
12985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13216
|
+
CheckBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13217
|
+
CheckBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: { size: "size", rounded: "rounded" }, host: { properties: { "class.k-checkbox": "this.kendoClass" } }, ngImport: i0 });
|
|
13218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxDirective, decorators: [{
|
|
12986
13219
|
type: Directive,
|
|
12987
13220
|
args: [{
|
|
12988
13221
|
selector: 'input[kendoCheckBox]'
|
|
@@ -12997,7 +13230,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12997
13230
|
}] } });
|
|
12998
13231
|
|
|
12999
13232
|
/**
|
|
13000
|
-
* Represents the [NgModule](
|
|
13233
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
13001
13234
|
* definition for the CheckBox directive.
|
|
13002
13235
|
*
|
|
13003
13236
|
* @example
|
|
@@ -13029,10 +13262,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13029
13262
|
*/
|
|
13030
13263
|
class CheckBoxModule {
|
|
13031
13264
|
}
|
|
13032
|
-
CheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13033
|
-
CheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
13034
|
-
CheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
13035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13265
|
+
CheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13266
|
+
CheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxModule, declarations: [CheckBoxDirective], imports: [CommonModule], exports: [CheckBoxDirective] });
|
|
13267
|
+
CheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxModule, imports: [[CommonModule]] });
|
|
13268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckBoxModule, decorators: [{
|
|
13036
13269
|
type: NgModule,
|
|
13037
13270
|
args: [{
|
|
13038
13271
|
declarations: [CheckBoxDirective],
|
|
@@ -13095,9 +13328,9 @@ class RadioButtonDirective {
|
|
|
13095
13328
|
}
|
|
13096
13329
|
}
|
|
13097
13330
|
}
|
|
13098
|
-
RadioButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13099
|
-
RadioButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
13100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13331
|
+
RadioButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13332
|
+
RadioButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: RadioButtonDirective, selector: "input[kendoRadioButton]", inputs: { size: "size" }, host: { properties: { "class.k-radio": "this.kendoClass" } }, ngImport: i0 });
|
|
13333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonDirective, decorators: [{
|
|
13101
13334
|
type: Directive,
|
|
13102
13335
|
args: [{
|
|
13103
13336
|
selector: 'input[kendoRadioButton]'
|
|
@@ -13110,7 +13343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13110
13343
|
}] } });
|
|
13111
13344
|
|
|
13112
13345
|
/**
|
|
13113
|
-
* Represents the [NgModule](
|
|
13346
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
13114
13347
|
* definition for the RadioButton directive.
|
|
13115
13348
|
*
|
|
13116
13349
|
* @example
|
|
@@ -13142,10 +13375,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13142
13375
|
*/
|
|
13143
13376
|
class RadioButtonModule {
|
|
13144
13377
|
}
|
|
13145
|
-
RadioButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13146
|
-
RadioButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
13147
|
-
RadioButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
13148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13378
|
+
RadioButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13379
|
+
RadioButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonModule, declarations: [RadioButtonDirective], imports: [CommonModule], exports: [RadioButtonDirective] });
|
|
13380
|
+
RadioButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonModule, imports: [[CommonModule]] });
|
|
13381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioButtonModule, decorators: [{
|
|
13149
13382
|
type: NgModule,
|
|
13150
13383
|
args: [{
|
|
13151
13384
|
declarations: [RadioButtonDirective],
|
|
@@ -13186,11 +13419,11 @@ class ErrorComponent {
|
|
|
13186
13419
|
return this.id;
|
|
13187
13420
|
}
|
|
13188
13421
|
}
|
|
13189
|
-
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13190
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
13422
|
+
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13423
|
+
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ErrorComponent, selector: "kendo-formerror", inputs: { align: "align" }, host: { properties: { "class.k-form-error": "this.hostClass", "attr.role": "this.roleAttribute", "class.k-text-start": "this.startClass", "class.k-text-end": "this.endClass", "attr.id": "this.idAttribute" } }, ngImport: i0, template: `
|
|
13191
13424
|
<ng-content></ng-content>
|
|
13192
13425
|
`, isInline: true });
|
|
13193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
13194
13427
|
type: Component,
|
|
13195
13428
|
args: [{
|
|
13196
13429
|
selector: 'kendo-formerror',
|
|
@@ -13247,11 +13480,11 @@ class HintComponent {
|
|
|
13247
13480
|
return this.id;
|
|
13248
13481
|
}
|
|
13249
13482
|
}
|
|
13250
|
-
HintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13251
|
-
HintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
13483
|
+
HintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13484
|
+
HintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: HintComponent, selector: "kendo-formhint", inputs: { align: "align" }, host: { properties: { "class.k-form-hint": "this.hostClass", "class.k-text-start": "this.startClass", "class.k-text-end": "this.endClass", "attr.id": "this.idAttribute" } }, ngImport: i0, template: `
|
|
13252
13485
|
<ng-content></ng-content>
|
|
13253
13486
|
`, isInline: true });
|
|
13254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HintComponent, decorators: [{
|
|
13255
13488
|
type: Component,
|
|
13256
13489
|
args: [{
|
|
13257
13490
|
selector: 'kendo-formhint',
|
|
@@ -13474,8 +13707,8 @@ class FormFieldComponent {
|
|
|
13474
13707
|
this.subscriptions.add(this.hintChildren.changes.subscribe(() => this.updateDescription()));
|
|
13475
13708
|
}
|
|
13476
13709
|
}
|
|
13477
|
-
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13478
|
-
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
13710
|
+
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, deps: [{ token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13711
|
+
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormFieldComponent, selector: "kendo-formfield", inputs: { showHints: "showHints", orientation: "orientation", showErrors: "showErrors" }, host: { properties: { "class.k-form-field": "this.hostClass", "attr.dir": "this.direction", "class.k-form-field-error": "this.errorClass", "class.k-form-field-disabled": "this.disabledClass" } }, providers: [
|
|
13479
13712
|
LocalizationService,
|
|
13480
13713
|
{
|
|
13481
13714
|
provide: L10N_PREFIX,
|
|
@@ -13489,7 +13722,7 @@ FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
13489
13722
|
<ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>
|
|
13490
13723
|
</div>
|
|
13491
13724
|
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
13492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
13493
13726
|
type: Component,
|
|
13494
13727
|
args: [{
|
|
13495
13728
|
selector: 'kendo-formfield',
|
|
@@ -13545,7 +13778,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13545
13778
|
}] } });
|
|
13546
13779
|
|
|
13547
13780
|
/**
|
|
13548
|
-
* Represents the [NgModule](
|
|
13781
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
13549
13782
|
* definition for the FormField, Error and Hint components.
|
|
13550
13783
|
*
|
|
13551
13784
|
* @example
|
|
@@ -13577,10 +13810,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13577
13810
|
*/
|
|
13578
13811
|
class FormFieldModule {
|
|
13579
13812
|
}
|
|
13580
|
-
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13581
|
-
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
13582
|
-
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
13583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13813
|
+
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13814
|
+
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, declarations: [HintComponent, ErrorComponent, FormFieldComponent], imports: [CommonModule], exports: [HintComponent, ErrorComponent, FormFieldComponent] });
|
|
13815
|
+
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, imports: [[CommonModule]] });
|
|
13816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, decorators: [{
|
|
13584
13817
|
type: NgModule,
|
|
13585
13818
|
args: [{
|
|
13586
13819
|
declarations: [HintComponent, ErrorComponent, FormFieldComponent],
|
|
@@ -13594,9 +13827,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13594
13827
|
*/
|
|
13595
13828
|
class SignatureMessages extends ComponentMessages {
|
|
13596
13829
|
}
|
|
13597
|
-
SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13598
|
-
SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
13599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13830
|
+
SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
13831
|
+
SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
|
|
13832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureMessages, decorators: [{
|
|
13600
13833
|
type: Directive,
|
|
13601
13834
|
args: [{
|
|
13602
13835
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -13624,14 +13857,14 @@ class SignatureCustomMessagesComponent extends SignatureMessages {
|
|
|
13624
13857
|
return true;
|
|
13625
13858
|
}
|
|
13626
13859
|
}
|
|
13627
|
-
SignatureCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13628
|
-
SignatureCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
13860
|
+
SignatureCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13861
|
+
SignatureCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SignatureCustomMessagesComponent, selector: "kendo-signature-messages", providers: [
|
|
13629
13862
|
{
|
|
13630
13863
|
provide: SignatureMessages,
|
|
13631
13864
|
useExisting: forwardRef(() => SignatureCustomMessagesComponent)
|
|
13632
13865
|
}
|
|
13633
13866
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
13634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureCustomMessagesComponent, decorators: [{
|
|
13635
13868
|
type: Component,
|
|
13636
13869
|
args: [{
|
|
13637
13870
|
providers: [
|
|
@@ -13654,14 +13887,14 @@ class LocalizedSignatureMessagesDirective extends SignatureMessages {
|
|
|
13654
13887
|
this.service = service;
|
|
13655
13888
|
}
|
|
13656
13889
|
}
|
|
13657
|
-
LocalizedSignatureMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13658
|
-
LocalizedSignatureMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
13890
|
+
LocalizedSignatureMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSignatureMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13891
|
+
LocalizedSignatureMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]", providers: [
|
|
13659
13892
|
{
|
|
13660
13893
|
provide: SignatureMessages,
|
|
13661
13894
|
useExisting: forwardRef(() => LocalizedSignatureMessagesDirective)
|
|
13662
13895
|
}
|
|
13663
13896
|
], usesInheritance: true, ngImport: i0 });
|
|
13664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSignatureMessagesDirective, decorators: [{
|
|
13665
13898
|
type: Directive,
|
|
13666
13899
|
args: [{
|
|
13667
13900
|
providers: [
|
|
@@ -13695,6 +13928,7 @@ const DEFAULT_POPUP_SCALE = 3;
|
|
|
13695
13928
|
const DEFAULT_EXPORT_SCALE = 2;
|
|
13696
13929
|
const DEFAULT_COLOR = '#000000';
|
|
13697
13930
|
const DEFAULT_BACKGROUND_COLOR = '#ffffff';
|
|
13931
|
+
const iconsMap = { xIcon, hyperlinkOpenIcon };
|
|
13698
13932
|
/**
|
|
13699
13933
|
* Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
|
|
13700
13934
|
*
|
|
@@ -13855,6 +14089,12 @@ class SignatureComponent {
|
|
|
13855
14089
|
get value() {
|
|
13856
14090
|
return this._value;
|
|
13857
14091
|
}
|
|
14092
|
+
/**
|
|
14093
|
+
* @hidden
|
|
14094
|
+
*/
|
|
14095
|
+
svgIcon(name) {
|
|
14096
|
+
return iconsMap[name];
|
|
14097
|
+
}
|
|
13858
14098
|
/**
|
|
13859
14099
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
13860
14100
|
*
|
|
@@ -13940,6 +14180,9 @@ class SignatureComponent {
|
|
|
13940
14180
|
get showClear() {
|
|
13941
14181
|
return !(this.isEmpty || this.isDrawing || this.readonly || this.disabled);
|
|
13942
14182
|
}
|
|
14183
|
+
/**
|
|
14184
|
+
* @hidden
|
|
14185
|
+
*/
|
|
13943
14186
|
get focused() {
|
|
13944
14187
|
return this.isFocused;
|
|
13945
14188
|
}
|
|
@@ -13973,11 +14216,19 @@ class SignatureComponent {
|
|
|
13973
14216
|
});
|
|
13974
14217
|
}
|
|
13975
14218
|
ngAfterViewInit() {
|
|
14219
|
+
if (!isDocumentAvailable()) {
|
|
14220
|
+
return;
|
|
14221
|
+
}
|
|
13976
14222
|
this.applyHostClasses();
|
|
13977
14223
|
this.readThemeColors();
|
|
13978
14224
|
this.ngZone.runOutsideAngular(() => {
|
|
13979
14225
|
const element = this.canvas.nativeElement;
|
|
13980
|
-
this.instance = new SignaturePad(element,
|
|
14226
|
+
this.instance = new SignaturePad(element, {
|
|
14227
|
+
...this.options,
|
|
14228
|
+
onChange: () => this.onValueChange(),
|
|
14229
|
+
onDraw: () => this.onDraw(),
|
|
14230
|
+
onDrawEnd: () => this.onDrawEnd()
|
|
14231
|
+
});
|
|
13981
14232
|
if (this.value) {
|
|
13982
14233
|
this.instance.loadImage(this.value);
|
|
13983
14234
|
}
|
|
@@ -14014,18 +14265,16 @@ class SignatureComponent {
|
|
|
14014
14265
|
/**
|
|
14015
14266
|
* @hidden
|
|
14016
14267
|
*/
|
|
14017
|
-
onValueChange() {
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
this.
|
|
14026
|
-
|
|
14027
|
-
this.notifyNgChanged(value);
|
|
14028
|
-
});
|
|
14268
|
+
async onValueChange() {
|
|
14269
|
+
const value = await this.instance.exportImage({
|
|
14270
|
+
width: this.baseWidth * this.exportScale,
|
|
14271
|
+
height: this.baseHeight * this.exportScale
|
|
14272
|
+
});
|
|
14273
|
+
this._value = value;
|
|
14274
|
+
this.cd.markForCheck();
|
|
14275
|
+
this.ngZone.run(() => {
|
|
14276
|
+
this.valueChange.emit(value);
|
|
14277
|
+
this.notifyNgChanged(value);
|
|
14029
14278
|
});
|
|
14030
14279
|
}
|
|
14031
14280
|
/**
|
|
@@ -14041,44 +14290,40 @@ class SignatureComponent {
|
|
|
14041
14290
|
* @hidden
|
|
14042
14291
|
*/
|
|
14043
14292
|
onDialogClick(e) {
|
|
14044
|
-
var _a;
|
|
14045
14293
|
if (e.target.classList.contains('k-overlay')) {
|
|
14046
14294
|
this.isOpen = false;
|
|
14047
|
-
|
|
14295
|
+
this.maximizeButton?.nativeElement.focus();
|
|
14048
14296
|
}
|
|
14049
14297
|
}
|
|
14050
14298
|
/**
|
|
14051
14299
|
* @hidden
|
|
14052
14300
|
*/
|
|
14053
14301
|
onDialogKeydown(e) {
|
|
14054
|
-
var _a;
|
|
14055
14302
|
if (e.keyCode === Keys.Escape) {
|
|
14056
14303
|
this.isOpen = false;
|
|
14057
14304
|
this.cd.detectChanges();
|
|
14058
|
-
|
|
14305
|
+
this.maximizeButton?.nativeElement.focus();
|
|
14059
14306
|
}
|
|
14060
14307
|
}
|
|
14061
14308
|
/**
|
|
14062
14309
|
* @hidden
|
|
14063
14310
|
*/
|
|
14064
14311
|
onDialogClose() {
|
|
14065
|
-
var _a;
|
|
14066
14312
|
const args = new SignatureCloseEvent();
|
|
14067
14313
|
this.close.next(args);
|
|
14068
14314
|
if (!args.isDefaultPrevented()) {
|
|
14069
14315
|
this.isOpen = false;
|
|
14070
|
-
|
|
14316
|
+
this.maximizeButton?.nativeElement.focus();
|
|
14071
14317
|
}
|
|
14072
14318
|
}
|
|
14073
14319
|
/**
|
|
14074
14320
|
* Clears the value of the Signature.
|
|
14075
14321
|
*/
|
|
14076
14322
|
reset() {
|
|
14077
|
-
var _a;
|
|
14078
14323
|
if (!isPresent(this.value)) {
|
|
14079
14324
|
return;
|
|
14080
14325
|
}
|
|
14081
|
-
|
|
14326
|
+
this.instance?.clear();
|
|
14082
14327
|
this.value = this._value = undefined;
|
|
14083
14328
|
this.notifyNgChanged(undefined);
|
|
14084
14329
|
}
|
|
@@ -14098,19 +14343,17 @@ class SignatureComponent {
|
|
|
14098
14343
|
/**
|
|
14099
14344
|
* @hidden
|
|
14100
14345
|
*/
|
|
14101
|
-
onMaximize() {
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
this.
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
}
|
|
14113
|
-
});
|
|
14346
|
+
async onMaximize() {
|
|
14347
|
+
const args = new SignatureOpenEvent();
|
|
14348
|
+
this.open.next(args);
|
|
14349
|
+
if (!args.isDefaultPrevented()) {
|
|
14350
|
+
this.popupValue = await this.instance.exportImage({
|
|
14351
|
+
width: this.popupWidth * this.exportScale,
|
|
14352
|
+
height: this.popupHeight * this.exportScale
|
|
14353
|
+
});
|
|
14354
|
+
this.isOpen = true;
|
|
14355
|
+
this.cd.detectChanges();
|
|
14356
|
+
}
|
|
14114
14357
|
}
|
|
14115
14358
|
/**
|
|
14116
14359
|
* @hidden
|
|
@@ -14241,8 +14484,8 @@ class SignatureComponent {
|
|
|
14241
14484
|
return this.localization.get(key);
|
|
14242
14485
|
}
|
|
14243
14486
|
}
|
|
14244
|
-
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14245
|
-
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
14487
|
+
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14488
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SignatureComponent, selector: "kendo-signature", inputs: { readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
14246
14489
|
LocalizationService,
|
|
14247
14490
|
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
14248
14491
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
@@ -14265,6 +14508,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14265
14508
|
kendoButton
|
|
14266
14509
|
class="k-signature-action k-signature-maximize"
|
|
14267
14510
|
icon="hyperlink-open"
|
|
14511
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14268
14512
|
fillMode="flat"
|
|
14269
14513
|
[size]="size"
|
|
14270
14514
|
(click)="onMaximize()"
|
|
@@ -14276,6 +14520,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14276
14520
|
kendoButton
|
|
14277
14521
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
14278
14522
|
icon="hyperlink-open"
|
|
14523
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14279
14524
|
fillMode="flat"
|
|
14280
14525
|
[size]="size"
|
|
14281
14526
|
(click)="onMinimize()"
|
|
@@ -14300,6 +14545,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14300
14545
|
kendoButton
|
|
14301
14546
|
class="k-signature-action k-signature-clear"
|
|
14302
14547
|
icon="close"
|
|
14548
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
14303
14549
|
fillMode="flat"
|
|
14304
14550
|
[size]="size"
|
|
14305
14551
|
[attr.aria-label]="clearTitle"
|
|
@@ -14335,8 +14581,8 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14335
14581
|
[parentLocalization]="localization">
|
|
14336
14582
|
</kendo-signature>
|
|
14337
14583
|
</kendo-dialog>
|
|
14338
|
-
`, isInline: true, components: [{ type: i2.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }
|
|
14339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14584
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3$1.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
14340
14586
|
type: Component,
|
|
14341
14587
|
args: [{
|
|
14342
14588
|
exportAs: 'kendoSignature',
|
|
@@ -14366,6 +14612,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14366
14612
|
kendoButton
|
|
14367
14613
|
class="k-signature-action k-signature-maximize"
|
|
14368
14614
|
icon="hyperlink-open"
|
|
14615
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14369
14616
|
fillMode="flat"
|
|
14370
14617
|
[size]="size"
|
|
14371
14618
|
(click)="onMaximize()"
|
|
@@ -14377,6 +14624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14377
14624
|
kendoButton
|
|
14378
14625
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
14379
14626
|
icon="hyperlink-open"
|
|
14627
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14380
14628
|
fillMode="flat"
|
|
14381
14629
|
[size]="size"
|
|
14382
14630
|
(click)="onMinimize()"
|
|
@@ -14401,6 +14649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14401
14649
|
kendoButton
|
|
14402
14650
|
class="k-signature-action k-signature-clear"
|
|
14403
14651
|
icon="close"
|
|
14652
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
14404
14653
|
fillMode="flat"
|
|
14405
14654
|
[size]="size"
|
|
14406
14655
|
[attr.aria-label]="clearTitle"
|
|
@@ -14520,7 +14769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14520
14769
|
}] } });
|
|
14521
14770
|
|
|
14522
14771
|
/**
|
|
14523
|
-
* Represents the [NgModule](
|
|
14772
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
14524
14773
|
* definition for the Signature component.
|
|
14525
14774
|
*
|
|
14526
14775
|
* @example
|
|
@@ -14552,19 +14801,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14552
14801
|
*/
|
|
14553
14802
|
class SignatureModule {
|
|
14554
14803
|
}
|
|
14555
|
-
SignatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14556
|
-
SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
14804
|
+
SignatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14805
|
+
SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, declarations: [SignatureComponent,
|
|
14557
14806
|
SignatureCustomMessagesComponent,
|
|
14558
14807
|
LocalizedSignatureMessagesDirective], imports: [ButtonModule,
|
|
14559
14808
|
CommonModule,
|
|
14560
|
-
DialogsModule
|
|
14809
|
+
DialogsModule,
|
|
14810
|
+
IconsModule], exports: [SignatureComponent,
|
|
14561
14811
|
SignatureCustomMessagesComponent] });
|
|
14562
|
-
SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
14812
|
+
SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, imports: [[
|
|
14563
14813
|
ButtonModule,
|
|
14564
14814
|
CommonModule,
|
|
14565
|
-
DialogsModule
|
|
14815
|
+
DialogsModule,
|
|
14816
|
+
IconsModule
|
|
14566
14817
|
]] });
|
|
14567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, decorators: [{
|
|
14568
14819
|
type: NgModule,
|
|
14569
14820
|
args: [{
|
|
14570
14821
|
declarations: [
|
|
@@ -14579,13 +14830,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14579
14830
|
imports: [
|
|
14580
14831
|
ButtonModule,
|
|
14581
14832
|
CommonModule,
|
|
14582
|
-
DialogsModule
|
|
14833
|
+
DialogsModule,
|
|
14834
|
+
IconsModule
|
|
14583
14835
|
]
|
|
14584
14836
|
}]
|
|
14585
14837
|
}] });
|
|
14586
14838
|
|
|
14587
14839
|
/**
|
|
14588
|
-
* Represents the [NgModule](
|
|
14840
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
14589
14841
|
* definition for the Inputs components.
|
|
14590
14842
|
*
|
|
14591
14843
|
* @example
|
|
@@ -14618,8 +14870,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14618
14870
|
*/
|
|
14619
14871
|
class InputsModule {
|
|
14620
14872
|
}
|
|
14621
|
-
InputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14622
|
-
InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
14873
|
+
InputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14874
|
+
InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputsModule, imports: [CommonModule], exports: [TextAreaModule,
|
|
14623
14875
|
TextBoxModule,
|
|
14624
14876
|
SliderModule,
|
|
14625
14877
|
RangeSliderModule,
|
|
@@ -14631,7 +14883,7 @@ InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
14631
14883
|
RadioButtonModule,
|
|
14632
14884
|
FormFieldModule,
|
|
14633
14885
|
SignatureModule] });
|
|
14634
|
-
InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
14886
|
+
InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputsModule, imports: [[CommonModule], TextAreaModule,
|
|
14635
14887
|
TextBoxModule,
|
|
14636
14888
|
SliderModule,
|
|
14637
14889
|
RangeSliderModule,
|
|
@@ -14643,7 +14895,7 @@ InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
14643
14895
|
RadioButtonModule,
|
|
14644
14896
|
FormFieldModule,
|
|
14645
14897
|
SignatureModule] });
|
|
14646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputsModule, decorators: [{
|
|
14647
14899
|
type: NgModule,
|
|
14648
14900
|
args: [{
|
|
14649
14901
|
exports: [
|