@progress/kendo-angular-inputs 16.5.0 → 16.6.0-develop.2
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/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox.directive.d.ts +1 -1
- package/checkbox.module.d.ts +3 -6
- 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 +1 -1
- package/colorpicker/color-input.component.d.ts +1 -1
- package/colorpicker/color-palette.component.d.ts +1 -1
- package/colorpicker/colorpicker.component.d.ts +1 -1
- package/colorpicker/contrast-validation.component.d.ts +1 -1
- package/colorpicker/contrast.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker-actions.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker.component.d.ts +1 -1
- package/colorpicker/localization/custom-messages.component.d.ts +1 -1
- package/colorpicker/localization/localized-colorpicker-messages.directive.d.ts +1 -1
- package/colorpicker.module.d.ts +5 -21
- package/directives.d.ts +111 -0
- package/esm2020/checkbox/checkbox.component.mjs +7 -6
- package/esm2020/checkbox/checkbox.directive.mjs +3 -2
- package/esm2020/checkbox.module.mjs +8 -10
- package/esm2020/colorpicker/color-contrast-svg.component.mjs +6 -4
- package/esm2020/colorpicker/color-gradient-numeric-label.directive.mjs +5 -2
- package/esm2020/colorpicker/color-gradient.component.mjs +11 -12
- package/esm2020/colorpicker/color-input.component.mjs +8 -7
- package/esm2020/colorpicker/color-palette.component.mjs +7 -5
- package/esm2020/colorpicker/colorpicker.component.mjs +9 -8
- package/esm2020/colorpicker/contrast-validation.component.mjs +7 -5
- package/esm2020/colorpicker/contrast.component.mjs +8 -6
- package/esm2020/colorpicker/flatcolorpicker-actions.component.mjs +3 -2
- package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +7 -5
- package/esm2020/colorpicker/flatcolorpicker.component.mjs +7 -9
- package/esm2020/colorpicker/localization/custom-messages.component.mjs +3 -2
- package/esm2020/colorpicker/localization/localized-colorpicker-messages.directive.mjs +3 -2
- package/esm2020/colorpicker.module.mjs +15 -84
- package/esm2020/directives.mjs +188 -0
- package/esm2020/formfield/error.component.mjs +3 -2
- package/esm2020/formfield/formfield.component.mjs +6 -4
- package/esm2020/formfield/hint.component.mjs +3 -2
- package/esm2020/formfield.module.mjs +9 -9
- package/esm2020/index.mjs +1 -0
- package/esm2020/inputs.module.mjs +50 -56
- package/esm2020/maskedtextbox/maskedtextbox.component.mjs +9 -8
- package/esm2020/maskedtextbox.module.mjs +7 -30
- package/esm2020/numerictextbox/localization/custom-messages.component.mjs +3 -2
- package/esm2020/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +3 -2
- package/esm2020/numerictextbox/numerictextbox.component.mjs +11 -10
- package/esm2020/numerictextbox.module.mjs +11 -25
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/radiobutton/radiobutton.component.mjs +7 -6
- package/esm2020/radiobutton/radiobutton.directive.mjs +3 -2
- package/esm2020/radiobutton.module.mjs +8 -10
- package/esm2020/rangeslider/localization/custom-messages.component.mjs +3 -2
- package/esm2020/rangeslider/localization/localized-rangeslider-messages.directive.mjs +3 -2
- package/esm2020/rangeslider/rangeslider.component.mjs +9 -8
- package/esm2020/rangeslider.module.mjs +11 -25
- package/esm2020/rating/directives/rating-hovered-item.directive.mjs +3 -2
- package/esm2020/rating/directives/rating-item.directive.mjs +3 -2
- package/esm2020/rating/directives/rating-selected-item.directive.mjs +3 -2
- package/esm2020/rating/rating.component.mjs +7 -5
- package/esm2020/rating.module.mjs +12 -23
- package/esm2020/shared/input-separator.component.mjs +3 -2
- package/esm2020/shared/shared-events.directive.mjs +3 -2
- package/esm2020/shared/textarea.directive.mjs +3 -2
- package/esm2020/shared.module.mjs +3 -3
- package/esm2020/signature/localization/custom-messages.component.mjs +3 -2
- package/esm2020/signature/localization/localized-signature-messages.directive.mjs +3 -2
- package/esm2020/signature/signature.component.mjs +9 -7
- package/esm2020/signature.module.mjs +13 -32
- package/esm2020/slider/localization/custom-messages.component.mjs +3 -2
- package/esm2020/slider/localization/localized-slider-messages.directive.mjs +3 -2
- package/esm2020/slider/slider.component.mjs +10 -9
- package/esm2020/slider.module.mjs +13 -27
- package/esm2020/sliders-common/label-template.directive.mjs +3 -2
- package/esm2020/sliders-common/slider-ticks.component.mjs +6 -4
- package/esm2020/switch/localization/custom-messages.component.mjs +3 -2
- package/esm2020/switch/localization/localized-switch-messages.directive.mjs +3 -2
- package/esm2020/switch/switch.component.mjs +6 -4
- package/esm2020/switch.module.mjs +10 -23
- package/esm2020/textarea/textarea-prefix.component.mjs +3 -2
- package/esm2020/textarea/textarea-suffix.component.mjs +3 -2
- package/esm2020/textarea/textarea.component.mjs +9 -8
- package/esm2020/textarea.module.mjs +9 -31
- package/esm2020/textbox/localization/custom-messages.component.mjs +3 -2
- package/esm2020/textbox/localization/localized-textbox-messages.directive.mjs +3 -2
- package/esm2020/textbox/textbox-prefix.directive.mjs +3 -2
- package/esm2020/textbox/textbox-suffix.directive.mjs +3 -2
- package/esm2020/textbox/textbox.component.mjs +11 -10
- package/esm2020/textbox/textbox.directive.mjs +3 -2
- package/esm2020/textbox.module.mjs +14 -48
- package/fesm2015/progress-kendo-angular-inputs.mjs +9233 -9325
- package/fesm2020/progress-kendo-angular-inputs.mjs +9088 -9180
- 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.module.d.ts +4 -5
- package/index.d.ts +1 -0
- package/inputs.module.d.ts +40 -15
- package/maskedtextbox/maskedtextbox.component.d.ts +1 -1
- package/maskedtextbox.module.d.ts +1 -5
- package/numerictextbox/localization/custom-messages.component.d.ts +1 -1
- package/numerictextbox/localization/localized-numerictextbox-messages.directive.d.ts +1 -1
- package/numerictextbox/numerictextbox.component.d.ts +1 -1
- package/numerictextbox.module.d.ts +4 -9
- package/package.json +9 -9
- package/radiobutton/radiobutton.component.d.ts +1 -1
- package/radiobutton/radiobutton.directive.d.ts +1 -1
- package/radiobutton.module.d.ts +3 -6
- package/rangeslider/localization/custom-messages.component.d.ts +1 -1
- package/rangeslider/localization/localized-rangeslider-messages.directive.d.ts +1 -1
- package/rangeslider/rangeslider.component.d.ts +1 -1
- package/rangeslider.module.d.ts +2 -5
- package/rating/directives/rating-hovered-item.directive.d.ts +1 -1
- package/rating/directives/rating-item.directive.d.ts +1 -1
- package/rating/directives/rating-selected-item.directive.d.ts +1 -1
- package/rating/rating.component.d.ts +1 -1
- package/rating.module.d.ts +1 -3
- package/shared/input-separator.component.d.ts +1 -1
- package/shared/shared-events.directive.d.ts +1 -1
- package/shared/textarea.directive.d.ts +1 -1
- package/shared.module.d.ts +1 -1
- package/signature/localization/custom-messages.component.d.ts +1 -1
- package/signature/localization/localized-signature-messages.directive.d.ts +1 -1
- package/signature/signature.component.d.ts +1 -1
- package/signature.module.d.ts +1 -6
- package/slider/localization/custom-messages.component.d.ts +1 -1
- package/slider/localization/localized-slider-messages.directive.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/slider.module.d.ts +2 -7
- package/sliders-common/label-template.directive.d.ts +1 -1
- package/sliders-common/slider-ticks.component.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/switch.component.d.ts +1 -1
- package/switch.module.d.ts +1 -4
- package/textarea/textarea-prefix.component.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 +4 -9
- package/textbox/localization/custom-messages.component.d.ts +1 -1
- package/textbox/localization/localized-textbox-messages.directive.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 +1 -1
- package/textbox/textbox.directive.d.ts +1 -1
- package/textbox.module.d.ts +5 -12
- package/colorpicker/focus-on-dom-ready.directive.d.ts +0 -18
- package/esm2020/colorpicker/focus-on-dom-ready.directive.mjs +0 -29
- package/esm2020/shared-events.module.mjs +0 -22
- package/esm2020/sliders-common/sliders-common.module.mjs +0 -42
- package/shared-events.module.d.ts +0 -14
- package/sliders-common/sliders-common.module.d.ts +0 -17
|
@@ -11,12 +11,11 @@ import { Subscription } from 'rxjs';
|
|
|
11
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
|
|
13
13
|
import { caretAltExpandIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { NumericLabelDirective } from './color-gradient-numeric-label.directive';
|
|
15
|
+
import { NgIf } from '@angular/common';
|
|
16
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
14
17
|
import * as i0 from "@angular/core";
|
|
15
18
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
16
|
-
import * as i2 from "../numerictextbox/numerictextbox.component";
|
|
17
|
-
import * as i3 from "@angular/common";
|
|
18
|
-
import * as i4 from "@progress/kendo-angular-buttons";
|
|
19
|
-
import * as i5 from "./color-gradient-numeric-label.directive";
|
|
20
19
|
/**
|
|
21
20
|
* @hidden
|
|
22
21
|
*/
|
|
@@ -155,7 +154,7 @@ export class ColorInputComponent {
|
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
158
|
-
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: ["blue"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
157
|
+
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorInputComponent, isStandalone: true, 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: ["blue"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
159
158
|
<div class="k-vstack">
|
|
160
159
|
<button
|
|
161
160
|
kendoButton
|
|
@@ -273,7 +272,7 @@ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
273
272
|
<label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
|
|
274
273
|
</div>
|
|
275
274
|
</ng-container>
|
|
276
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
275
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", 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", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
277
276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorInputComponent, decorators: [{
|
|
278
277
|
type: Component,
|
|
279
278
|
args: [{
|
|
@@ -396,7 +395,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
396
395
|
<label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
|
|
397
396
|
</div>
|
|
398
397
|
</ng-container>
|
|
399
|
-
|
|
398
|
+
`,
|
|
399
|
+
standalone: true,
|
|
400
|
+
imports: [ButtonComponent, NgIf, NumericTextBoxComponent, NumericLabelDirective]
|
|
400
401
|
}]
|
|
401
402
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { focusableId: [{
|
|
402
403
|
type: Input
|
|
@@ -16,11 +16,11 @@ import { PALETTEPRESETS } from './models';
|
|
|
16
16
|
import { parseColor } from './utils';
|
|
17
17
|
import { isPresent } from '../common/utils';
|
|
18
18
|
import { ColorPaletteService } from './services/color-palette.service';
|
|
19
|
+
import { NgFor, NgStyle } from '@angular/common';
|
|
20
|
+
import { LocalizedColorPickerMessagesDirective } from './localization/localized-colorpicker-messages.directive';
|
|
19
21
|
import * as i0 from "@angular/core";
|
|
20
22
|
import * as i1 from "./services/color-palette.service";
|
|
21
23
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
22
|
-
import * as i3 from "@angular/common";
|
|
23
|
-
import * as i4 from "./localization/localized-colorpicker-messages.directive";
|
|
24
24
|
const DEFAULT_TILE_SIZE = 24;
|
|
25
25
|
const DEFAULT_COLUMNS_COUNT = 10;
|
|
26
26
|
const DEFAULT_PRESET = 'office';
|
|
@@ -397,7 +397,7 @@ export class ColorPaletteComponent {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
ColorPaletteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPaletteComponent, deps: [{ token: i0.ElementRef }, { token: i1.ColorPaletteService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
400
|
-
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "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: [
|
|
400
|
+
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorPaletteComponent, isStandalone: true, 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: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "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: [
|
|
401
401
|
{
|
|
402
402
|
multi: true,
|
|
403
403
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -444,7 +444,7 @@ ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
444
444
|
</tr>
|
|
445
445
|
</tbody>
|
|
446
446
|
</table>
|
|
447
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
447
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
448
448
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPaletteComponent, decorators: [{
|
|
449
449
|
type: Component,
|
|
450
450
|
args: [{
|
|
@@ -498,7 +498,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
498
498
|
</tr>
|
|
499
499
|
</tbody>
|
|
500
500
|
</table>
|
|
501
|
-
|
|
501
|
+
`,
|
|
502
|
+
standalone: true,
|
|
503
|
+
imports: [LocalizedColorPickerMessagesDirective, NgFor, NgStyle]
|
|
502
504
|
}]
|
|
503
505
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ColorPaletteService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { direction: [{
|
|
504
506
|
type: HostBinding,
|
|
@@ -19,16 +19,15 @@ import { parseColor } from './utils';
|
|
|
19
19
|
import { getStylingClasses, isPresent } from '../common/utils';
|
|
20
20
|
import { ColorPickerLocalizationService } from './localization/colorpicker-localization.service';
|
|
21
21
|
import { DEFAULT_ACCESSIBLE_PRESET, DEFAULT_PRESET } from './constants';
|
|
22
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
22
23
|
import { parseCSSClassNames } from '@progress/kendo-angular-common';
|
|
23
24
|
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
25
|
+
import { NgClass, NgIf } from '@angular/common';
|
|
26
|
+
import { LocalizedColorPickerMessagesDirective } from './localization/localized-colorpicker-messages.directive';
|
|
27
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
24
28
|
import * as i0 from "@angular/core";
|
|
25
29
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
26
30
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
27
|
-
import * as i3 from "@angular/common";
|
|
28
|
-
import * as i4 from "@progress/kendo-angular-buttons";
|
|
29
|
-
import * as i5 from "@progress/kendo-angular-icons";
|
|
30
|
-
import * as i6 from "./flatcolorpicker.component";
|
|
31
|
-
import * as i7 from "./localization/localized-colorpicker-messages.directive";
|
|
32
31
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
33
32
|
const DEFAULT_SIZE = 'medium';
|
|
34
33
|
const DEFAULT_ROUNDED = 'medium';
|
|
@@ -730,7 +729,7 @@ export class ColorPickerComponent {
|
|
|
730
729
|
}
|
|
731
730
|
}
|
|
732
731
|
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
733
|
-
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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", clearButtonClick: "clearButtonClick", 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", "class.k-readonly": "this.readonly" } }, providers: [{
|
|
732
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorPickerComponent, isStandalone: true, 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", clearButtonClick: "clearButtonClick", 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", "class.k-readonly": "this.readonly" } }, providers: [{
|
|
734
733
|
multi: true,
|
|
735
734
|
provide: NG_VALUE_ACCESSOR,
|
|
736
735
|
useExisting: forwardRef(() => ColorPickerComponent)
|
|
@@ -847,7 +846,7 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
847
846
|
</kendo-flatcolorpicker>
|
|
848
847
|
</ng-template>
|
|
849
848
|
<ng-container #container></ng-container>
|
|
850
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
849
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "clearButtonClick", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }] });
|
|
851
850
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
852
851
|
type: Component,
|
|
853
852
|
args: [{
|
|
@@ -970,7 +969,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
970
969
|
</kendo-flatcolorpicker>
|
|
971
970
|
</ng-template>
|
|
972
971
|
<ng-container #container></ng-container>
|
|
973
|
-
|
|
972
|
+
`,
|
|
973
|
+
standalone: true,
|
|
974
|
+
imports: [LocalizedColorPickerMessagesDirective, NgClass, NgIf, IconWrapperComponent, ButtonComponent, FlatColorPickerComponent]
|
|
974
975
|
}]
|
|
975
976
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PopupService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
|
|
976
977
|
type: HostBinding,
|
|
@@ -6,10 +6,10 @@ import { AA_RATIO, AAA_RATIO } from './constants';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { Component, Input } from '@angular/core';
|
|
8
8
|
import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { NgIf } from '@angular/common';
|
|
10
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
|
-
import * as i2 from "@angular/common";
|
|
12
|
-
import * as i3 from "@progress/kendo-angular-icons";
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
@@ -31,7 +31,7 @@ export class ContrastValidationComponent {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
ContrastValidationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContrastValidationComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
-
ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: { type: "type", pass: "pass", value: "value" }, ngImport: i0, template: `
|
|
34
|
+
ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContrastValidationComponent, isStandalone: true, selector: "[kendoContrastValidation]", inputs: { type: "type", pass: "pass", value: "value" }, ngImport: i0, template: `
|
|
35
35
|
<span>{{contrastText}}</span>
|
|
36
36
|
<ng-container *ngIf="value">
|
|
37
37
|
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
@@ -43,7 +43,7 @@ ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
43
43
|
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
44
44
|
</span>
|
|
45
45
|
</ng-container>
|
|
46
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
46
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContrastValidationComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
49
|
args: [{
|
|
@@ -61,7 +61,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
61
61
|
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
62
62
|
</span>
|
|
63
63
|
</ng-container>
|
|
64
|
-
|
|
64
|
+
`,
|
|
65
|
+
standalone: true,
|
|
66
|
+
imports: [NgIf, IconWrapperComponent]
|
|
65
67
|
}]
|
|
66
68
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { type: [{
|
|
67
69
|
type: Input
|
|
@@ -7,11 +7,11 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
7
7
|
import { getContrastFromTwoRGBAs, getRGBA } from './utils';
|
|
8
8
|
import { AA_RATIO, AAA_RATIO } from './constants';
|
|
9
9
|
import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { ContrastValidationComponent } from './contrast-validation.component';
|
|
11
|
+
import { NgIf } from '@angular/common';
|
|
12
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
10
13
|
import * as i0 from "@angular/core";
|
|
11
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
|
-
import * as i2 from "@angular/common";
|
|
13
|
-
import * as i3 from "@progress/kendo-angular-icons";
|
|
14
|
-
import * as i4 from "./contrast-validation.component";
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
@@ -39,7 +39,7 @@ export class ContrastComponent {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
ContrastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContrastComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
-
ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContrastComponent, selector: "[kendoContrastTool]", inputs: { value: "value", ratio: "ratio" }, ngImport: i0, template: `
|
|
42
|
+
ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContrastComponent, isStandalone: true, selector: "[kendoContrastTool]", inputs: { value: "value", ratio: "ratio" }, ngImport: i0, template: `
|
|
43
43
|
<div class="k-contrast-ratio">
|
|
44
44
|
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
45
45
|
<ng-container *ngIf="value">
|
|
@@ -62,7 +62,7 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
62
62
|
[value]="value"
|
|
63
63
|
[pass]="satisfiesAAACondition">
|
|
64
64
|
</div>
|
|
65
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
65
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }] });
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContrastComponent, decorators: [{
|
|
67
67
|
type: Component,
|
|
68
68
|
args: [{
|
|
@@ -91,7 +91,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
91
91
|
[value]="value"
|
|
92
92
|
[pass]="satisfiesAAACondition">
|
|
93
93
|
</div>
|
|
94
|
-
|
|
94
|
+
`,
|
|
95
|
+
standalone: true,
|
|
96
|
+
imports: [NgIf, IconWrapperComponent, ContrastValidationComponent]
|
|
95
97
|
}]
|
|
96
98
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { value: [{
|
|
97
99
|
type: Input
|
|
@@ -29,7 +29,7 @@ export class FlatColorPickerActionButtonsComponent {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
FlatColorPickerActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerActionButtonsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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-actions-horizontal": "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: `
|
|
32
|
+
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FlatColorPickerActionButtonsComponent, isStandalone: true, 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-actions-horizontal": "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: `
|
|
33
33
|
<button #first
|
|
34
34
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
35
35
|
[attr.title]="getText('cancelButton')"
|
|
@@ -67,7 +67,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
67
67
|
[tabindex]="innerTabIndex.toString()"
|
|
68
68
|
(keydown.tab)="$event.preventDefault(); tabOut.emit();"
|
|
69
69
|
>{{getText('applyButton')}}</button>
|
|
70
|
-
|
|
70
|
+
`,
|
|
71
|
+
standalone: true
|
|
71
72
|
}]
|
|
72
73
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
|
|
73
74
|
type: HostBinding,
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ViewChildren, QueryList, ElementRef, Renderer2 } from '@angular/core';
|
|
7
7
|
import { dropletSlashIcon, dropletSliderIcon, paletteIcon } from '@progress/kendo-svg-icons';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { NgIf, NgFor, NgClass } from '@angular/common';
|
|
10
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
|
-
import * as i2 from "@angular/common";
|
|
12
|
-
import * as i3 from "@progress/kendo-angular-buttons";
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
@@ -62,7 +62,7 @@ export class FlatColorPickerHeaderComponent {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
-
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: `
|
|
65
|
+
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FlatColorPickerHeaderComponent, isStandalone: true, 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: `
|
|
66
66
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
67
67
|
<div
|
|
68
68
|
*ngIf="viewButtons"
|
|
@@ -117,7 +117,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
117
117
|
</span>
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
120
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
121
121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
|
|
122
122
|
type: Component,
|
|
123
123
|
args: [{
|
|
@@ -178,7 +178,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
178
178
|
</span>
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
|
-
|
|
181
|
+
`,
|
|
182
|
+
standalone: true,
|
|
183
|
+
imports: [NgIf, NgFor, ButtonComponent, NgClass]
|
|
182
184
|
}]
|
|
183
185
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
|
|
184
186
|
type: HostBinding,
|
|
@@ -22,15 +22,11 @@ import { FlatColorPickerHeaderComponent } from './flatcolorpicker-header.compone
|
|
|
22
22
|
import { FlatColorPickerActionButtonsComponent } from './flatcolorpicker-actions.component';
|
|
23
23
|
import { DRAGHANDLE_MOVE_SPEED, DRAGHANDLE_MOVE_SPEED_SMALL_STEP } from "./constants";
|
|
24
24
|
import { take } from "rxjs/operators";
|
|
25
|
+
import { NgIf, NgClass } from "@angular/common";
|
|
26
|
+
import { LocalizedColorPickerMessagesDirective } from "./localization/localized-colorpicker-messages.directive";
|
|
25
27
|
import * as i0 from "@angular/core";
|
|
26
28
|
import * as i1 from "./services/flatcolorpicker.service";
|
|
27
29
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
28
|
-
import * as i3 from "@angular/common";
|
|
29
|
-
import * as i4 from "./color-palette.component";
|
|
30
|
-
import * as i5 from "./color-gradient.component";
|
|
31
|
-
import * as i6 from "./localization/localized-colorpicker-messages.directive";
|
|
32
|
-
import * as i7 from "./flatcolorpicker-header.component";
|
|
33
|
-
import * as i8 from "./flatcolorpicker-actions.component";
|
|
34
30
|
/**
|
|
35
31
|
* Represents the [Kendo UI FlatColorPicker component for Angular]({% slug overview_flatcolorpicker %}).
|
|
36
32
|
*
|
|
@@ -492,7 +488,7 @@ export class FlatColorPickerComponent {
|
|
|
492
488
|
}
|
|
493
489
|
}
|
|
494
490
|
FlatColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.FlatColorPickerService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
495
|
-
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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", clearButtonClick: "clearButtonClick", 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", "class.k-readonly": "this.readonly" } }, providers: [
|
|
491
|
+
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FlatColorPickerComponent, isStandalone: true, 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", clearButtonClick: "clearButtonClick", 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", "class.k-readonly": "this.readonly" } }, providers: [
|
|
496
492
|
{
|
|
497
493
|
multi: true,
|
|
498
494
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -609,7 +605,7 @@ FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
609
605
|
[ngClass]="'k-justify-content-' + actionsLayout"
|
|
610
606
|
(actionButtonClick)="onAction($event)"
|
|
611
607
|
(tabOut)="firstFocusable.focus()"></div>
|
|
612
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
608
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { kind: "component", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["id", "opacity", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { kind: "component", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { kind: "component", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex"], outputs: ["actionButtonClick", "tabOut"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
613
609
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerComponent, decorators: [{
|
|
614
610
|
type: Component,
|
|
615
611
|
args: [{
|
|
@@ -733,7 +729,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
733
729
|
[ngClass]="'k-justify-content-' + actionsLayout"
|
|
734
730
|
(actionButtonClick)="onAction($event)"
|
|
735
731
|
(tabOut)="firstFocusable.focus()"></div>
|
|
736
|
-
|
|
732
|
+
`,
|
|
733
|
+
standalone: true,
|
|
734
|
+
imports: [LocalizedColorPickerMessagesDirective, NgIf, FlatColorPickerHeaderComponent, ColorGradientComponent, ColorPaletteComponent, FlatColorPickerActionButtonsComponent, NgClass]
|
|
737
735
|
}]
|
|
738
736
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FlatColorPickerService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
|
|
739
737
|
type: HostBinding,
|
|
@@ -20,7 +20,7 @@ export class ColorPickerCustomMessagesComponent extends ColorPickerMessages {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
ColorPickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
ColorPickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorPickerCustomMessagesComponent, selector: "kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages", providers: [
|
|
23
|
+
ColorPickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorPickerCustomMessagesComponent, isStandalone: true, selector: "kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: ColorPickerMessages,
|
|
26
26
|
useExisting: forwardRef(() => ColorPickerCustomMessagesComponent)
|
|
@@ -36,6 +36,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
selector: 'kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages',
|
|
39
|
-
template:
|
|
39
|
+
template: ``,
|
|
40
|
+
standalone: true
|
|
40
41
|
}]
|
|
41
42
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -17,7 +17,7 @@ export class LocalizedColorPickerMessagesDirective extends ColorPickerMessages {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
LocalizedColorPickerMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedColorPickerMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
LocalizedColorPickerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]", providers: [
|
|
20
|
+
LocalizedColorPickerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedColorPickerMessagesDirective, isStandalone: true, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: ColorPickerMessages,
|
|
23
23
|
useExisting: forwardRef(() => LocalizedColorPickerMessagesDirective)
|
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
32
32
|
useExisting: forwardRef(() => LocalizedColorPickerMessagesDirective)
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
selector: '[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]'
|
|
35
|
+
selector: '[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]',
|
|
36
|
+
standalone: true
|
|
36
37
|
}]
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -3,46 +3,17 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { NumericTextBoxModule } from './numerictextbox.module';
|
|
11
|
-
import { ColorPickerComponent } from './colorpicker/colorpicker.component';
|
|
12
|
-
import { ColorPaletteComponent } from './colorpicker/color-palette.component';
|
|
13
|
-
import { ColorGradientComponent } from './colorpicker/color-gradient.component';
|
|
14
|
-
import { ColorInputComponent } from './colorpicker/color-input.component';
|
|
15
|
-
import { FlatColorPickerHeaderComponent } from './colorpicker/flatcolorpicker-header.component';
|
|
16
|
-
import { FlatColorPickerActionButtonsComponent } from './colorpicker/flatcolorpicker-actions.component';
|
|
17
|
-
import { FlatColorPickerComponent } from './colorpicker/flatcolorpicker.component';
|
|
18
|
-
import { ColorPickerCustomMessagesComponent } from './colorpicker/localization/custom-messages.component';
|
|
19
|
-
import { LocalizedColorPickerMessagesDirective } from './colorpicker/localization/localized-colorpicker-messages.directive';
|
|
20
|
-
import { FocusOnDomReadyDirective } from './colorpicker/focus-on-dom-ready.directive';
|
|
21
|
-
import { ContrastValidationComponent } from './colorpicker/contrast-validation.component';
|
|
22
|
-
import { ContrastComponent } from './colorpicker/contrast.component';
|
|
23
|
-
import { ColorContrastSvgComponent } from './colorpicker/color-contrast-svg.component';
|
|
24
|
-
import { NumericLabelDirective } from './colorpicker/color-gradient-numeric-label.directive';
|
|
25
|
-
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
26
|
-
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
6
|
+
import { KENDO_COLORGRADIENT, KENDO_COLORPALETTE, KENDO_COLORPICKER, KENDO_FLATCOLORPICKER } from './directives';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
9
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
27
10
|
import * as i0 from "@angular/core";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
ColorPickerCustomMessagesComponent
|
|
35
|
-
];
|
|
36
|
-
const INTERNAL_DIRECTIVES = [
|
|
37
|
-
NumericLabelDirective,
|
|
38
|
-
ColorInputComponent,
|
|
39
|
-
FocusOnDomReadyDirective,
|
|
40
|
-
ContrastComponent,
|
|
41
|
-
ContrastValidationComponent,
|
|
42
|
-
FlatColorPickerHeaderComponent,
|
|
43
|
-
FlatColorPickerActionButtonsComponent,
|
|
44
|
-
ColorContrastSvgComponent
|
|
45
|
-
];
|
|
11
|
+
import * as i1 from "./colorpicker/colorpicker.component";
|
|
12
|
+
import * as i2 from "./colorpicker/localization/custom-messages.component";
|
|
13
|
+
import * as i3 from "./colorpicker/flatcolorpicker.component";
|
|
14
|
+
import * as i4 from "./colorpicker/color-gradient.component";
|
|
15
|
+
import * as i5 from "./colorpicker/color-palette.component";
|
|
16
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
46
17
|
/**
|
|
47
18
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
48
19
|
* definition for the ColorPicker.
|
|
@@ -50,53 +21,13 @@ const INTERNAL_DIRECTIVES = [
|
|
|
50
21
|
export class ColorPickerModule {
|
|
51
22
|
}
|
|
52
23
|
ColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
53
|
-
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule,
|
|
54
|
-
|
|
55
|
-
ColorGradientComponent,
|
|
56
|
-
FlatColorPickerComponent,
|
|
57
|
-
LocalizedColorPickerMessagesDirective,
|
|
58
|
-
ColorPickerCustomMessagesComponent, NumericLabelDirective,
|
|
59
|
-
ColorInputComponent,
|
|
60
|
-
FocusOnDomReadyDirective,
|
|
61
|
-
ContrastComponent,
|
|
62
|
-
ContrastValidationComponent,
|
|
63
|
-
FlatColorPickerHeaderComponent,
|
|
64
|
-
FlatColorPickerActionButtonsComponent,
|
|
65
|
-
ColorContrastSvgComponent], imports: [SliderModule,
|
|
66
|
-
NumericTextBoxModule,
|
|
67
|
-
CommonModule,
|
|
68
|
-
PopupModule,
|
|
69
|
-
DraggableModule,
|
|
70
|
-
ButtonModule,
|
|
71
|
-
IconsModule], exports: [ColorPickerComponent,
|
|
72
|
-
ColorPaletteComponent,
|
|
73
|
-
ColorGradientComponent,
|
|
74
|
-
FlatColorPickerComponent,
|
|
75
|
-
LocalizedColorPickerMessagesDirective,
|
|
76
|
-
ColorPickerCustomMessagesComponent] });
|
|
77
|
-
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, imports: [SliderModule,
|
|
78
|
-
NumericTextBoxModule,
|
|
79
|
-
CommonModule,
|
|
80
|
-
PopupModule,
|
|
81
|
-
DraggableModule,
|
|
82
|
-
ButtonModule,
|
|
83
|
-
IconsModule] });
|
|
24
|
+
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, imports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent], exports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent] });
|
|
25
|
+
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [KENDO_COLORPICKER, KENDO_FLATCOLORPICKER, KENDO_COLORGRADIENT, KENDO_COLORPALETTE] });
|
|
84
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
85
27
|
type: NgModule,
|
|
86
28
|
args: [{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
],
|
|
91
|
-
exports: [PUBLIC_DIRECTIVES],
|
|
92
|
-
imports: [
|
|
93
|
-
SliderModule,
|
|
94
|
-
NumericTextBoxModule,
|
|
95
|
-
CommonModule,
|
|
96
|
-
PopupModule,
|
|
97
|
-
DraggableModule,
|
|
98
|
-
ButtonModule,
|
|
99
|
-
IconsModule
|
|
100
|
-
]
|
|
29
|
+
imports: [...KENDO_COLORPICKER, ...KENDO_FLATCOLORPICKER, ...KENDO_COLORGRADIENT, ...KENDO_COLORPALETTE],
|
|
30
|
+
exports: [...KENDO_COLORPICKER, ...KENDO_FLATCOLORPICKER, ...KENDO_COLORGRADIENT, ...KENDO_COLORPALETTE],
|
|
31
|
+
providers: [PopupService, IconsService, ResizeBatchService]
|
|
101
32
|
}]
|
|
102
33
|
}] });
|