@progress/kendo-angular-inputs 21.4.1 → 22.0.0-develop.1
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/colorpicker/localization/messages.d.ts +1 -1
- package/common/radio-checkbox.base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-inputs.mjs +321 -321
- package/numerictextbox/localization/messages.d.ts +1 -1
- package/otpinput/localization/messages.d.ts +1 -1
- package/package.json +17 -25
- package/rangeslider/localization/messages.d.ts +1 -1
- package/signature/localization/messages.d.ts +1 -1
- package/slider/localization/messages.d.ts +1 -1
- package/sliders-common/slider-base.d.ts +1 -1
- package/switch/localization/messages.d.ts +1 -1
- package/text-fields-common/text-fields-base.d.ts +1 -1
- package/textbox/localization/messages.d.ts +1 -1
- package/esm2022/checkbox/checkbox.component.mjs +0 -227
- package/esm2022/checkbox/checkbox.directive.mjs +0 -96
- package/esm2022/checkbox/checked-state.mjs +0 -5
- package/esm2022/checkbox.module.mjs +0 -42
- package/esm2022/colorpicker/adaptiveness/adaptive-close-button.component.mjs +0 -62
- package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +0 -219
- package/esm2022/colorpicker/color-contrast-svg.component.mjs +0 -108
- package/esm2022/colorpicker/color-gradient-numeric-label.directive.mjs +0 -37
- package/esm2022/colorpicker/color-gradient-text-label.directive.mjs +0 -34
- package/esm2022/colorpicker/color-gradient.component.mjs +0 -1110
- package/esm2022/colorpicker/color-input.component.mjs +0 -498
- package/esm2022/colorpicker/color-palette.component.mjs +0 -629
- package/esm2022/colorpicker/colorpicker.component.mjs +0 -1315
- package/esm2022/colorpicker/constants.mjs +0 -40
- package/esm2022/colorpicker/contrast-validation.component.mjs +0 -83
- package/esm2022/colorpicker/contrast.component.mjs +0 -114
- package/esm2022/colorpicker/events/active-color-click-event.mjs +0 -55
- package/esm2022/colorpicker/events/cancel-event.mjs +0 -18
- package/esm2022/colorpicker/events/close-event.mjs +0 -10
- package/esm2022/colorpicker/events/kendo-drag-event.mjs +0 -5
- package/esm2022/colorpicker/events/open-event.mjs +0 -10
- package/esm2022/colorpicker/events.mjs +0 -8
- package/esm2022/colorpicker/flatcolorpicker-actions.component.mjs +0 -112
- package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +0 -244
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +0 -942
- package/esm2022/colorpicker/localization/colorgradient-localization.service.mjs +0 -46
- package/esm2022/colorpicker/localization/colorpalette-localization.service.mjs +0 -46
- package/esm2022/colorpicker/localization/colorpicker-localization.service.mjs +0 -31
- package/esm2022/colorpicker/localization/custom-messages.component.mjs +0 -51
- package/esm2022/colorpicker/localization/flatcolorpicker-localization.service.mjs +0 -46
- package/esm2022/colorpicker/localization/localized-colorpicker-messages.directive.mjs +0 -39
- package/esm2022/colorpicker/localization/messages.mjs +0 -201
- package/esm2022/colorpicker/models/actions-layout.mjs +0 -5
- package/esm2022/colorpicker/models/adaptive-mode.mjs +0 -8
- package/esm2022/colorpicker/models/colorpicker-view.mjs +0 -5
- package/esm2022/colorpicker/models/gradient-settings.mjs +0 -5
- package/esm2022/colorpicker/models/hsva.mjs +0 -5
- package/esm2022/colorpicker/models/output-format.mjs +0 -5
- package/esm2022/colorpicker/models/palette-presets.mjs +0 -62
- package/esm2022/colorpicker/models/palette-settings.mjs +0 -5
- package/esm2022/colorpicker/models/popup-settings.mjs +0 -5
- package/esm2022/colorpicker/models/rgb.mjs +0 -5
- package/esm2022/colorpicker/models/rgba.mjs +0 -5
- package/esm2022/colorpicker/models/table-cell.mjs +0 -5
- package/esm2022/colorpicker/models/tile-size.mjs +0 -5
- package/esm2022/colorpicker/models.mjs +0 -16
- package/esm2022/colorpicker/services/color-palette.service.mjs +0 -65
- package/esm2022/colorpicker/services/flatcolorpicker.service.mjs +0 -39
- package/esm2022/colorpicker/utils/color-parser.mjs +0 -164
- package/esm2022/colorpicker/utils/contrast-curve.mjs +0 -85
- package/esm2022/colorpicker/utils.mjs +0 -6
- package/esm2022/colorpicker.module.mjs +0 -50
- package/esm2022/common/dom-utils.mjs +0 -36
- package/esm2022/common/formservice.service.mjs +0 -21
- package/esm2022/common/math.mjs +0 -65
- package/esm2022/common/models/fillmode.mjs +0 -5
- package/esm2022/common/models/gutters.mjs +0 -5
- package/esm2022/common/models/responsive-breakpoints.mjs +0 -5
- package/esm2022/common/models/rounded.mjs +0 -5
- package/esm2022/common/models/size.mjs +0 -5
- package/esm2022/common/models/styling-classes.mjs +0 -5
- package/esm2022/common/models/type.mjs +0 -5
- package/esm2022/common/models.mjs +0 -9
- package/esm2022/common/radio-checkbox.base.mjs +0 -295
- package/esm2022/common/utils.mjs +0 -88
- package/esm2022/directives.mjs +0 -430
- package/esm2022/form/form.component.mjs +0 -163
- package/esm2022/form/formseparator.component.mjs +0 -80
- package/esm2022/form/utils.mjs +0 -147
- package/esm2022/form.module.mjs +0 -46
- package/esm2022/formfield/error.component.mjs +0 -70
- package/esm2022/formfield/formfield.component.mjs +0 -353
- package/esm2022/formfield/hint.component.mjs +0 -65
- package/esm2022/formfield/models/message-align.mjs +0 -5
- package/esm2022/formfield/models/orientation.mjs +0 -5
- package/esm2022/formfield/models/show-options.mjs +0 -5
- package/esm2022/formfield.module.mjs +0 -43
- package/esm2022/formfieldset/formfieldset.component.mjs +0 -174
- package/esm2022/index.mjs +0 -91
- package/esm2022/inputs.module.mjs +0 -91
- package/esm2022/maskedtextbox/maskedtextbox.component.mjs +0 -876
- package/esm2022/maskedtextbox/masking.service.mjs +0 -189
- package/esm2022/maskedtextbox/parsing/combinators.mjs +0 -28
- package/esm2022/maskedtextbox/parsing/parsers.mjs +0 -148
- package/esm2022/maskedtextbox/parsing/result.mjs +0 -44
- package/esm2022/maskedtextbox/parsing/stream.mjs +0 -43
- package/esm2022/maskedtextbox.module.mjs +0 -43
- package/esm2022/numerictextbox/arrow-direction.mjs +0 -13
- package/esm2022/numerictextbox/constants.mjs +0 -28
- package/esm2022/numerictextbox/localization/custom-messages.component.mjs +0 -55
- package/esm2022/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +0 -39
- package/esm2022/numerictextbox/localization/messages.mjs +0 -33
- package/esm2022/numerictextbox/numerictextbox.component.mjs +0 -1314
- package/esm2022/numerictextbox/utils.mjs +0 -92
- package/esm2022/numerictextbox.module.mjs +0 -46
- package/esm2022/otp.module.mjs +0 -44
- package/esm2022/otpinput/localization/custom-messages.component.mjs +0 -45
- package/esm2022/otpinput/localization/localized-textbox-messages.directive.mjs +0 -39
- package/esm2022/otpinput/localization/messages.mjs +0 -34
- package/esm2022/otpinput/models/otpinput-type.mjs +0 -5
- package/esm2022/otpinput/models/separator-icon.mjs +0 -5
- package/esm2022/otpinput/otpinput-separator.component.mjs +0 -93
- package/esm2022/otpinput/otpinput.component.mjs +0 -936
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-inputs.mjs +0 -8
- package/esm2022/radiobutton/radiobutton.component.mjs +0 -212
- package/esm2022/radiobutton/radiobutton.directive.mjs +0 -81
- package/esm2022/radiobutton.module.mjs +0 -43
- package/esm2022/rangeslider/localization/custom-messages.component.mjs +0 -53
- package/esm2022/rangeslider/localization/localized-rangeslider-messages.directive.mjs +0 -39
- package/esm2022/rangeslider/localization/messages.mjs +0 -33
- package/esm2022/rangeslider/rangeslider-model.mjs +0 -53
- package/esm2022/rangeslider/rangeslider-value.type.mjs +0 -5
- package/esm2022/rangeslider/rangeslider.component.mjs +0 -625
- package/esm2022/rangeslider.module.mjs +0 -46
- package/esm2022/rating/directives/rating-hovered-item.directive.mjs +0 -35
- package/esm2022/rating/directives/rating-item.directive.mjs +0 -34
- package/esm2022/rating/directives/rating-selected-item.directive.mjs +0 -36
- package/esm2022/rating/models/precision.mjs +0 -5
- package/esm2022/rating/models/rating-item.interface.mjs +0 -5
- package/esm2022/rating/models/selection.mjs +0 -5
- package/esm2022/rating/rating.component.mjs +0 -754
- package/esm2022/rating.module.mjs +0 -46
- package/esm2022/shared/input-separator.component.mjs +0 -55
- package/esm2022/shared/input-spacer.component.mjs +0 -56
- package/esm2022/shared/shared-events.directive.mjs +0 -102
- package/esm2022/shared/utils.mjs +0 -13
- package/esm2022/signature/events/close-event.mjs +0 -10
- package/esm2022/signature/events/index.mjs +0 -6
- package/esm2022/signature/events/open-event.mjs +0 -10
- package/esm2022/signature/localization/custom-messages.component.mjs +0 -43
- package/esm2022/signature/localization/index.mjs +0 -7
- package/esm2022/signature/localization/localized-signature-messages.directive.mjs +0 -39
- package/esm2022/signature/localization/messages.mjs +0 -45
- package/esm2022/signature/signature.component.mjs +0 -981
- package/esm2022/signature.module.mjs +0 -47
- package/esm2022/slider/localization/custom-messages.component.mjs +0 -43
- package/esm2022/slider/localization/localized-slider-messages.directive.mjs +0 -39
- package/esm2022/slider/localization/messages.mjs +0 -39
- package/esm2022/slider/slider-model.mjs +0 -32
- package/esm2022/slider/slider.component.mjs +0 -671
- package/esm2022/slider.module.mjs +0 -48
- package/esm2022/sliders-common/label-template.directive.mjs +0 -37
- package/esm2022/sliders-common/slider-base.mjs +0 -300
- package/esm2022/sliders-common/slider-model.base.mjs +0 -118
- package/esm2022/sliders-common/slider-ticks.component.mjs +0 -147
- package/esm2022/sliders-common/sliders-util.mjs +0 -206
- package/esm2022/sliders-common/title-callback.mjs +0 -5
- package/esm2022/switch/events/blur-event.mjs +0 -13
- package/esm2022/switch/events/focus-event.mjs +0 -13
- package/esm2022/switch/localization/custom-messages.component.mjs +0 -43
- package/esm2022/switch/localization/localized-switch-messages.directive.mjs +0 -39
- package/esm2022/switch/localization/messages.mjs +0 -33
- package/esm2022/switch/switch.component.mjs +0 -585
- package/esm2022/switch.module.mjs +0 -44
- package/esm2022/text-fields-common/text-fields-base.mjs +0 -150
- package/esm2022/textarea/models/adornments-orientation.mjs +0 -5
- package/esm2022/textarea/models/flow.mjs +0 -5
- package/esm2022/textarea/models/resize.mjs +0 -5
- package/esm2022/textarea/models/textarea-settings.mjs +0 -5
- package/esm2022/textarea/textarea-prefix.component.mjs +0 -67
- package/esm2022/textarea/textarea-suffix.component.mjs +0 -67
- package/esm2022/textarea/textarea.component.mjs +0 -740
- package/esm2022/textarea/textarea.directive.mjs +0 -288
- package/esm2022/textarea.module.mjs +0 -46
- package/esm2022/textbox/localization/custom-messages.component.mjs +0 -43
- package/esm2022/textbox/localization/localized-textbox-messages.directive.mjs +0 -39
- package/esm2022/textbox/localization/messages.mjs +0 -27
- package/esm2022/textbox/models/icon-show-options.mjs +0 -5
- package/esm2022/textbox/textbox-prefix.directive.mjs +0 -50
- package/esm2022/textbox/textbox-suffix.directive.mjs +0 -49
- package/esm2022/textbox/textbox.component.mjs +0 -933
- package/esm2022/textbox/textbox.directive.mjs +0 -125
- package/esm2022/textbox.module.mjs +0 -51
- package/esm2022/validators/max.validator.mjs +0 -21
- package/esm2022/validators/min.validator.mjs +0 -21
package/esm2022/directives.mjs
DELETED
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent } from "@progress/kendo-angular-common";
|
|
6
|
-
import { CheckBoxComponent } from "./checkbox/checkbox.component";
|
|
7
|
-
import { CheckBoxDirective } from "./checkbox/checkbox.directive";
|
|
8
|
-
import { ColorGradientComponent } from "./colorpicker/color-gradient.component";
|
|
9
|
-
import { ColorPaletteComponent } from "./colorpicker/color-palette.component";
|
|
10
|
-
import { ColorPickerComponent } from "./colorpicker/colorpicker.component";
|
|
11
|
-
import { FlatColorPickerComponent } from "./colorpicker/flatcolorpicker.component";
|
|
12
|
-
import { ColorPickerCustomMessagesComponent } from "./colorpicker/localization/custom-messages.component";
|
|
13
|
-
import { ErrorComponent } from "./formfield/error.component";
|
|
14
|
-
import { FormFieldComponent } from "./formfield/formfield.component";
|
|
15
|
-
import { HintComponent } from "./formfield/hint.component";
|
|
16
|
-
import { MaskedTextBoxComponent } from "./maskedtextbox/maskedtextbox.component";
|
|
17
|
-
import { NumericTextBoxCustomMessagesComponent } from "./numerictextbox/localization/custom-messages.component";
|
|
18
|
-
import { NumericTextBoxComponent } from "./numerictextbox/numerictextbox.component";
|
|
19
|
-
import { RadioButtonComponent } from "./radiobutton/radiobutton.component";
|
|
20
|
-
import { RadioButtonDirective } from "./radiobutton/radiobutton.directive";
|
|
21
|
-
import { RangeSliderCustomMessagesComponent } from "./rangeslider/localization/custom-messages.component";
|
|
22
|
-
import { RangeSliderComponent } from "./rangeslider/rangeslider.component";
|
|
23
|
-
import { RatingHoveredItemTemplateDirective } from "./rating/directives/rating-hovered-item.directive";
|
|
24
|
-
import { RatingItemTemplateDirective } from "./rating/directives/rating-item.directive";
|
|
25
|
-
import { RatingSelectedItemTemplateDirective } from "./rating/directives/rating-selected-item.directive";
|
|
26
|
-
import { RatingComponent } from "./rating/rating.component";
|
|
27
|
-
import { InputSeparatorComponent } from "./shared/input-separator.component";
|
|
28
|
-
import { InputSpacerComponent } from "./shared/input-spacer.component";
|
|
29
|
-
import { TextAreaDirective } from "./textarea/textarea.directive";
|
|
30
|
-
import { SignatureCustomMessagesComponent } from "./signature/localization/custom-messages.component";
|
|
31
|
-
import { SignatureComponent } from "./signature/signature.component";
|
|
32
|
-
import { SliderCustomMessagesComponent } from "./slider/localization/custom-messages.component";
|
|
33
|
-
import { SliderComponent } from "./slider/slider.component";
|
|
34
|
-
import { LabelTemplateDirective } from "./sliders-common/label-template.directive";
|
|
35
|
-
import { SwitchCustomMessagesComponent } from "./switch/localization/custom-messages.component";
|
|
36
|
-
import { SwitchComponent } from "./switch/switch.component";
|
|
37
|
-
import { TextAreaPrefixComponent } from "./textarea/textarea-prefix.component";
|
|
38
|
-
import { TextAreaSuffixComponent } from "./textarea/textarea-suffix.component";
|
|
39
|
-
import { TextAreaComponent } from "./textarea/textarea.component";
|
|
40
|
-
import { TextBoxCustomMessagesComponent } from "./textbox/localization/custom-messages.component";
|
|
41
|
-
import { TextBoxPrefixTemplateDirective } from "./textbox/textbox-prefix.directive";
|
|
42
|
-
import { TextBoxSuffixTemplateDirective } from "./textbox/textbox-suffix.directive";
|
|
43
|
-
import { TextBoxComponent } from "./textbox/textbox.component";
|
|
44
|
-
import { TextBoxDirective } from "./textbox/textbox.directive";
|
|
45
|
-
import { OTPInputComponent } from "./otpinput/otpinput.component";
|
|
46
|
-
import { OTPInputCustomMessagesComponent } from "./otpinput/localization/custom-messages.component";
|
|
47
|
-
import { FormComponent } from "./form/form.component";
|
|
48
|
-
import { FormSeparatorComponent } from "./form/formseparator.component";
|
|
49
|
-
import { FormFieldSetComponent } from "./formfieldset/formfieldset.component";
|
|
50
|
-
/**
|
|
51
|
-
* Use the `KENDO_TEXTBOX` utility array to add all TextBox-related components and directives to a standalone Angular component.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```typescript
|
|
55
|
-
* import { KENDO_TEXTBOX } from '@progress/kendo-angular-inputs';
|
|
56
|
-
* @Component({
|
|
57
|
-
* standalone: true,
|
|
58
|
-
* imports: [KENDO_TEXTBOX],
|
|
59
|
-
* template: `<kendo-textbox></kendo-textbox>`
|
|
60
|
-
* })
|
|
61
|
-
* export class MyComponent {}
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
export const KENDO_TEXTBOX = [
|
|
65
|
-
TextBoxDirective,
|
|
66
|
-
TextBoxComponent,
|
|
67
|
-
InputSeparatorComponent,
|
|
68
|
-
InputSpacerComponent,
|
|
69
|
-
TextBoxSuffixTemplateDirective,
|
|
70
|
-
TextBoxPrefixTemplateDirective,
|
|
71
|
-
TextBoxCustomMessagesComponent,
|
|
72
|
-
PrefixTemplateDirective,
|
|
73
|
-
SuffixTemplateDirective,
|
|
74
|
-
SeparatorComponent
|
|
75
|
-
];
|
|
76
|
-
/**
|
|
77
|
-
* Use the `KENDO_NUMERICTEXTBOX` utility array to add all NumericTextBox-related components and directives to a standalone Angular component.
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* import { KENDO_NUMERICTEXTBOX } from '@progress/kendo-angular-inputs';
|
|
82
|
-
* @Component({
|
|
83
|
-
* standalone: true,
|
|
84
|
-
* imports: [KENDO_NUMERICTEXTBOX],
|
|
85
|
-
* template: `<kendo-numerictextbox></kendo-numerictextbox>`
|
|
86
|
-
* })
|
|
87
|
-
* export class MyComponent {}
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
export const KENDO_NUMERICTEXTBOX = [
|
|
91
|
-
NumericTextBoxComponent,
|
|
92
|
-
NumericTextBoxCustomMessagesComponent,
|
|
93
|
-
PrefixTemplateDirective,
|
|
94
|
-
SuffixTemplateDirective,
|
|
95
|
-
SeparatorComponent
|
|
96
|
-
];
|
|
97
|
-
/**
|
|
98
|
-
* Use the `KENDO_MASKEDTEXTBOX` utility array to add all MaskedTextBox-related components and directives to a standalone Angular component.
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```typescript
|
|
102
|
-
* import { KENDO_MASKEDTEXTBOX } from '@progress/kendo-angular-inputs';
|
|
103
|
-
* @Component({
|
|
104
|
-
* standalone: true,
|
|
105
|
-
* imports: [KENDO_MASKEDTEXTBOX],
|
|
106
|
-
* template: `<kendo-maskedtextbox></kendo-maskedtextbox>`
|
|
107
|
-
* })
|
|
108
|
-
* export class MyComponent {}
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
export const KENDO_MASKEDTEXTBOX = [
|
|
112
|
-
MaskedTextBoxComponent,
|
|
113
|
-
PrefixTemplateDirective,
|
|
114
|
-
SuffixTemplateDirective,
|
|
115
|
-
SeparatorComponent
|
|
116
|
-
];
|
|
117
|
-
/**
|
|
118
|
-
* Use the `KENDO_OTPINPUT` utility array to add all OTPInput-related components and directives to a standalone Angular component.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```typescript
|
|
122
|
-
* import { KENDO_OTPINPUT } from '@progress/kendo-angular-inputs';
|
|
123
|
-
* @Component({
|
|
124
|
-
* standalone: true,
|
|
125
|
-
* imports: [KENDO_OTPINPUT],
|
|
126
|
-
* template: `<kendo-otpinput></kendo-otpinput>`
|
|
127
|
-
* })
|
|
128
|
-
* export class MyComponent {}
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
export const KENDO_OTPINPUT = [
|
|
132
|
-
OTPInputComponent,
|
|
133
|
-
OTPInputCustomMessagesComponent
|
|
134
|
-
];
|
|
135
|
-
/**
|
|
136
|
-
* Use the `KENDO_TEXTAREA` utility array to add all TextArea-related components and directives to a standalone Angular component.
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* ```typescript
|
|
140
|
-
* import { KENDO_TEXTAREA } from '@progress/kendo-angular-inputs';
|
|
141
|
-
* @Component({
|
|
142
|
-
* standalone: true,
|
|
143
|
-
* imports: [KENDO_TEXTAREA],
|
|
144
|
-
* template: `<kendo-textarea></kendo-textarea>`
|
|
145
|
-
* })
|
|
146
|
-
* export class MyComponent {}
|
|
147
|
-
* ```
|
|
148
|
-
*/
|
|
149
|
-
export const KENDO_TEXTAREA = [
|
|
150
|
-
TextAreaComponent,
|
|
151
|
-
TextAreaDirective,
|
|
152
|
-
TextAreaPrefixComponent,
|
|
153
|
-
TextAreaSuffixComponent,
|
|
154
|
-
SeparatorComponent
|
|
155
|
-
];
|
|
156
|
-
/**
|
|
157
|
-
* Use the `KENDO_CHECKBOX` utility array to add all CheckBox-related components and directives to a standalone Angular component.
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```typescript
|
|
161
|
-
* import { KENDO_CHECKBOX } from '@progress/kendo-angular-inputs';
|
|
162
|
-
* @Component({
|
|
163
|
-
* standalone: true,
|
|
164
|
-
* imports: [KENDO_CHECKBOX],
|
|
165
|
-
* template: `<kendo-checkbox></kendo-checkbox>`
|
|
166
|
-
* })
|
|
167
|
-
* export class MyComponent {}
|
|
168
|
-
* ```
|
|
169
|
-
*/
|
|
170
|
-
export const KENDO_CHECKBOX = [
|
|
171
|
-
CheckBoxComponent,
|
|
172
|
-
CheckBoxDirective
|
|
173
|
-
];
|
|
174
|
-
/**
|
|
175
|
-
* Use the `KENDO_RADIOBUTTON` utility array to add all RadioButton-related components and directives to a standalone Angular component.
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* ```typescript
|
|
179
|
-
* import { KENDO_RADIOBUTTON } from '@progress/kendo-angular-inputs';
|
|
180
|
-
* @Component({
|
|
181
|
-
* standalone: true,
|
|
182
|
-
* imports: [KENDO_RADIOBUTTON],
|
|
183
|
-
* template: `<kendo-radiobutton></kendo-radiobutton>`
|
|
184
|
-
* })
|
|
185
|
-
* export class MyComponent {}
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
export const KENDO_RADIOBUTTON = [
|
|
189
|
-
RadioButtonComponent,
|
|
190
|
-
RadioButtonDirective
|
|
191
|
-
];
|
|
192
|
-
/**
|
|
193
|
-
* Use the `KENDO_SWITCH` utility array to add all Switch-related components and directives to a standalone Angular component.
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```typescript
|
|
197
|
-
* import { KENDO_SWITCH } from '@progress/kendo-angular-inputs';
|
|
198
|
-
* @Component({
|
|
199
|
-
* standalone: true,
|
|
200
|
-
* imports: [KENDO_SWITCH],
|
|
201
|
-
* template: `<kendo-switch></kendo-switch>`
|
|
202
|
-
* })
|
|
203
|
-
* export class MyComponent {}
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
export const KENDO_SWITCH = [
|
|
207
|
-
SwitchComponent,
|
|
208
|
-
SwitchCustomMessagesComponent
|
|
209
|
-
];
|
|
210
|
-
/**
|
|
211
|
-
* Use the `KENDO_FORMFIELD` utility array to add all FormField-related components and directives to a standalone Angular component.
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* ```typescript
|
|
215
|
-
* import { KENDO_FORMFIELD } from '@progress/kendo-angular-inputs';
|
|
216
|
-
* @Component({
|
|
217
|
-
* standalone: true,
|
|
218
|
-
* imports: [KENDO_FORMFIELD],
|
|
219
|
-
* template: `<kendo-formfield></kendo-formfield>`
|
|
220
|
-
* })
|
|
221
|
-
* export class MyComponent {}
|
|
222
|
-
* ```
|
|
223
|
-
*/
|
|
224
|
-
export const KENDO_FORMFIELD = [
|
|
225
|
-
FormFieldComponent,
|
|
226
|
-
HintComponent,
|
|
227
|
-
ErrorComponent
|
|
228
|
-
];
|
|
229
|
-
/**
|
|
230
|
-
* Use the `KENDO_FORM` utility array to add all Form-related components and directives to a standalone Angular component.
|
|
231
|
-
*
|
|
232
|
-
* @example
|
|
233
|
-
* ```typescript
|
|
234
|
-
* import { KENDO_FORM } from '@progress/kendo-angular-inputs';
|
|
235
|
-
* @Component({
|
|
236
|
-
* standalone: true,
|
|
237
|
-
* imports: [KENDO_FORM],
|
|
238
|
-
* template: `<form kendoForm>...</form>`
|
|
239
|
-
* })
|
|
240
|
-
* export class MyComponent {}
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
export const KENDO_FORM = [
|
|
244
|
-
FormComponent,
|
|
245
|
-
FormSeparatorComponent,
|
|
246
|
-
FormFieldSetComponent,
|
|
247
|
-
...KENDO_FORMFIELD
|
|
248
|
-
];
|
|
249
|
-
/**
|
|
250
|
-
* Use the `KENDO_SLIDER` utility array to add all Slider-related components and directives to a standalone Angular component.
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* ```typescript
|
|
254
|
-
* import { KENDO_SLIDER } from '@progress/kendo-angular-inputs';
|
|
255
|
-
* @Component({
|
|
256
|
-
* standalone: true,
|
|
257
|
-
* imports: [KENDO_SLIDER],
|
|
258
|
-
* template: `<kendo-slider></kendo-slider>`
|
|
259
|
-
* })
|
|
260
|
-
* export class MyComponent {}
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
export const KENDO_SLIDER = [
|
|
264
|
-
SliderComponent,
|
|
265
|
-
SliderCustomMessagesComponent,
|
|
266
|
-
LabelTemplateDirective,
|
|
267
|
-
];
|
|
268
|
-
/**
|
|
269
|
-
* Use the `KENDO_RANGESLIDER` utility array to add all RangeSlider-related components and directives to a standalone Angular component.
|
|
270
|
-
*
|
|
271
|
-
* @example
|
|
272
|
-
* ```typescript
|
|
273
|
-
* import { KENDO_RANGESLIDER } from '@progress/kendo-angular-inputs';
|
|
274
|
-
* @Component({
|
|
275
|
-
* standalone: true,
|
|
276
|
-
* imports: [KENDO_RANGESLIDER],
|
|
277
|
-
* template: `<kendo-rangeslider></kendo-rangeslider>`
|
|
278
|
-
* })
|
|
279
|
-
* export class MyComponent {}
|
|
280
|
-
* ```
|
|
281
|
-
*/
|
|
282
|
-
export const KENDO_RANGESLIDER = [
|
|
283
|
-
RangeSliderComponent,
|
|
284
|
-
RangeSliderCustomMessagesComponent,
|
|
285
|
-
LabelTemplateDirective
|
|
286
|
-
];
|
|
287
|
-
/**
|
|
288
|
-
* Use the `KENDO_RATING` utility array to add all Rating-related components and directives to a standalone Angular component.
|
|
289
|
-
*
|
|
290
|
-
* @example
|
|
291
|
-
* ```typescript
|
|
292
|
-
* import { KENDO_RATING } from '@progress/kendo-angular-inputs';
|
|
293
|
-
* @Component({
|
|
294
|
-
* standalone: true,
|
|
295
|
-
* imports: [KENDO_RATING],
|
|
296
|
-
* template: `<kendo-rating></kendo-rating>`
|
|
297
|
-
* })
|
|
298
|
-
* export class MyComponent {}
|
|
299
|
-
* ```
|
|
300
|
-
*/
|
|
301
|
-
export const KENDO_RATING = [
|
|
302
|
-
RatingComponent,
|
|
303
|
-
RatingItemTemplateDirective,
|
|
304
|
-
RatingHoveredItemTemplateDirective,
|
|
305
|
-
RatingSelectedItemTemplateDirective
|
|
306
|
-
];
|
|
307
|
-
/**
|
|
308
|
-
* Use the `KENDO_SIGNATURE` utility array to add all Signature-related components and directives to a standalone Angular component.
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```typescript
|
|
312
|
-
* import { KENDO_SIGNATURE } from '@progress/kendo-angular-inputs';
|
|
313
|
-
* @Component({
|
|
314
|
-
* standalone: true,
|
|
315
|
-
* imports: [KENDO_SIGNATURE],
|
|
316
|
-
* template: `<kendo-signature></kendo-signature>`
|
|
317
|
-
* })
|
|
318
|
-
* export class MyComponent {}
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
export const KENDO_SIGNATURE = [
|
|
322
|
-
SignatureComponent,
|
|
323
|
-
SignatureCustomMessagesComponent
|
|
324
|
-
];
|
|
325
|
-
/**
|
|
326
|
-
* Use the `KENDO_COLORPICKER` utility array to add all ColorPicker-related components and directives to a standalone Angular component.
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```typescript
|
|
330
|
-
* import { KENDO_COLORPICKER } from '@progress/kendo-angular-inputs';
|
|
331
|
-
* @Component({
|
|
332
|
-
* standalone: true,
|
|
333
|
-
* imports: [KENDO_COLORPICKER],
|
|
334
|
-
* template: `<kendo-colorpicker></kendo-colorpicker>`
|
|
335
|
-
* })
|
|
336
|
-
* export class MyComponent {}
|
|
337
|
-
* ```
|
|
338
|
-
*/
|
|
339
|
-
export const KENDO_COLORPICKER = [
|
|
340
|
-
ColorPickerComponent,
|
|
341
|
-
ColorPickerCustomMessagesComponent
|
|
342
|
-
];
|
|
343
|
-
/**
|
|
344
|
-
* Use the `KENDO_FLATCOLORPICKER` utility array to add all FlatColorPicker-related components and directives to a standalone Angular component.
|
|
345
|
-
*
|
|
346
|
-
* @example
|
|
347
|
-
* ```typescript
|
|
348
|
-
* import { KENDO_FLATCOLORPICKER } from '@progress/kendo-angular-inputs';
|
|
349
|
-
* @Component({
|
|
350
|
-
* standalone: true,
|
|
351
|
-
* imports: [KENDO_FLATCOLORPICKER],
|
|
352
|
-
* template: `<kendo-flatcolorpicker></kendo-flatcolorpicker>`
|
|
353
|
-
* })
|
|
354
|
-
* export class MyComponent {}
|
|
355
|
-
* ```
|
|
356
|
-
*/
|
|
357
|
-
export const KENDO_FLATCOLORPICKER = [
|
|
358
|
-
FlatColorPickerComponent,
|
|
359
|
-
ColorPickerCustomMessagesComponent
|
|
360
|
-
];
|
|
361
|
-
/**
|
|
362
|
-
* Use the `KENDO_COLORPALETTE` utility array to add all ColorPalette-related components and directives to a standalone Angular component.
|
|
363
|
-
*
|
|
364
|
-
* @example
|
|
365
|
-
* ```typescript
|
|
366
|
-
* import { KENDO_COLORPALETTE } from '@progress/kendo-angular-inputs';
|
|
367
|
-
* @Component({
|
|
368
|
-
* standalone: true,
|
|
369
|
-
* imports: [KENDO_COLORPALETTE],
|
|
370
|
-
* template: `<kendo-colorpalette></kendo-colorpalette>`
|
|
371
|
-
* })
|
|
372
|
-
* export class MyComponent {}
|
|
373
|
-
* ```
|
|
374
|
-
*/
|
|
375
|
-
export const KENDO_COLORPALETTE = [
|
|
376
|
-
ColorPaletteComponent,
|
|
377
|
-
ColorPickerCustomMessagesComponent
|
|
378
|
-
];
|
|
379
|
-
/**
|
|
380
|
-
* Use the `KENDO_COLORGRADIENT` utility array to add all ColorGradient-related components and directives to a standalone Angular component.
|
|
381
|
-
*
|
|
382
|
-
* @example
|
|
383
|
-
* ```typescript
|
|
384
|
-
* import { KENDO_COLORGRADIENT } from '@progress/kendo-angular-inputs';
|
|
385
|
-
* @Component({
|
|
386
|
-
* standalone: true,
|
|
387
|
-
* imports: [KENDO_COLORGRADIENT],
|
|
388
|
-
* template: `<kendo-colorgradient></kendo-colorgradient>`
|
|
389
|
-
* })
|
|
390
|
-
* export class MyComponent {}
|
|
391
|
-
* ```
|
|
392
|
-
*/
|
|
393
|
-
export const KENDO_COLORGRADIENT = [
|
|
394
|
-
ColorGradientComponent,
|
|
395
|
-
ColorPickerCustomMessagesComponent
|
|
396
|
-
];
|
|
397
|
-
/**
|
|
398
|
-
* Use the `KENDO_INPUTS` utility array to add all `@progress/kendo-angular-inputs`-related components and directives to a standalone Angular component.
|
|
399
|
-
*
|
|
400
|
-
* @example
|
|
401
|
-
* ```typescript
|
|
402
|
-
* import { KENDO_INPUTS } from '@progress/kendo-angular-inputs';
|
|
403
|
-
* @Component({
|
|
404
|
-
* standalone: true,
|
|
405
|
-
* imports: [KENDO_INPUTS],
|
|
406
|
-
* template: `<kendo-textbox></kendo-textbox>`
|
|
407
|
-
* })
|
|
408
|
-
* export class MyComponent {}
|
|
409
|
-
* ```
|
|
410
|
-
*/
|
|
411
|
-
export const KENDO_INPUTS = [
|
|
412
|
-
...KENDO_TEXTBOX,
|
|
413
|
-
...KENDO_NUMERICTEXTBOX,
|
|
414
|
-
...KENDO_MASKEDTEXTBOX,
|
|
415
|
-
...KENDO_TEXTAREA,
|
|
416
|
-
...KENDO_CHECKBOX,
|
|
417
|
-
...KENDO_RADIOBUTTON,
|
|
418
|
-
...KENDO_SWITCH,
|
|
419
|
-
...KENDO_FORM,
|
|
420
|
-
...KENDO_FORMFIELD,
|
|
421
|
-
...KENDO_SLIDER,
|
|
422
|
-
...KENDO_RANGESLIDER,
|
|
423
|
-
...KENDO_RATING,
|
|
424
|
-
...KENDO_SIGNATURE,
|
|
425
|
-
...KENDO_COLORPICKER,
|
|
426
|
-
...KENDO_FLATCOLORPICKER,
|
|
427
|
-
...KENDO_COLORGRADIENT,
|
|
428
|
-
...KENDO_COLORPALETTE,
|
|
429
|
-
...KENDO_OTPINPUT
|
|
430
|
-
];
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgClass, NgStyle } from '@angular/common';
|
|
6
|
-
import { Component, ElementRef, HostBinding, Input, ChangeDetectorRef } from '@angular/core';
|
|
7
|
-
import { ResizeSensorComponent, shouldShowValidationUI, getLicenseMessage, WatermarkOverlayComponent, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
|
-
import { calculateColumns, calculateGutters, DEFAULT_FORM_GUTTERS, generateColumnClass, generateGuttersStyling, innerWidth } from './utils';
|
|
9
|
-
import { FormService } from '../common/formservice.service';
|
|
10
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
|
-
import { packageMetadata } from '../package-metadata';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../common/formservice.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the Kendo UI Form component for Angular.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Supported children components are: {@link FormFieldComponent}, {@link FormSeparatorComponent}, and {@link FormFieldSetComponent}.
|
|
19
|
-
*/
|
|
20
|
-
export class FormComponent {
|
|
21
|
-
element;
|
|
22
|
-
cdr;
|
|
23
|
-
formService;
|
|
24
|
-
/**
|
|
25
|
-
* Defines the orientation of the form.
|
|
26
|
-
*
|
|
27
|
-
* @default 'vertical'
|
|
28
|
-
*/
|
|
29
|
-
orientation = 'vertical';
|
|
30
|
-
/**
|
|
31
|
-
* Defines the number of columns in the form.
|
|
32
|
-
* Can be a number or an array of responsive breakpoints.
|
|
33
|
-
*/
|
|
34
|
-
cols;
|
|
35
|
-
/**
|
|
36
|
-
* Defines the gutters for the form.
|
|
37
|
-
* You can specify gutters for rows and columns.
|
|
38
|
-
*/
|
|
39
|
-
gutters = { ...DEFAULT_FORM_GUTTERS };
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
columnsClass = '';
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
guttersStyle = '';
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
showLicenseWatermark = false;
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
licenseMessage;
|
|
56
|
-
get formClass() {
|
|
57
|
-
return 'k-form k-form-md';
|
|
58
|
-
}
|
|
59
|
-
get horizontalClass() {
|
|
60
|
-
return this.orientation === 'horizontal';
|
|
61
|
-
}
|
|
62
|
-
_formColumnsNumber;
|
|
63
|
-
_formGutters = { ...DEFAULT_FORM_GUTTERS };
|
|
64
|
-
constructor(element, cdr, formService) {
|
|
65
|
-
this.element = element;
|
|
66
|
-
this.cdr = cdr;
|
|
67
|
-
this.formService = formService;
|
|
68
|
-
const isValid = validatePackage(packageMetadata);
|
|
69
|
-
this.licenseMessage = getLicenseMessage(packageMetadata);
|
|
70
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
71
|
-
}
|
|
72
|
-
ngAfterContentInit() {
|
|
73
|
-
if (!isDocumentAvailable()) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
this.applyColumns();
|
|
77
|
-
this.applyGutters();
|
|
78
|
-
this.formService.formWidth.next(innerWidth(this.element.nativeElement));
|
|
79
|
-
}
|
|
80
|
-
ngOnChanges(changes) {
|
|
81
|
-
if (!isDocumentAvailable()) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (changes['cols']) {
|
|
85
|
-
this.applyColumns();
|
|
86
|
-
}
|
|
87
|
-
if (changes['gutters']) {
|
|
88
|
-
this.applyGutters();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
onResize() {
|
|
95
|
-
this.formService.formWidth.next(innerWidth(this.element.nativeElement));
|
|
96
|
-
const previousColumnsNumber = this._formColumnsNumber;
|
|
97
|
-
const previousGutters = this._formGutters;
|
|
98
|
-
this.applyColumns();
|
|
99
|
-
this.applyGutters();
|
|
100
|
-
if (previousColumnsNumber !== this._formColumnsNumber) {
|
|
101
|
-
this.cdr.detectChanges();
|
|
102
|
-
}
|
|
103
|
-
if (previousGutters?.cols !== this._formGutters?.cols || previousGutters?.rows !== this._formGutters?.rows) {
|
|
104
|
-
this.cdr.detectChanges();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
applyColumns() {
|
|
108
|
-
const containerWidth = innerWidth(this.element.nativeElement);
|
|
109
|
-
this._formColumnsNumber = calculateColumns(this.cols, containerWidth);
|
|
110
|
-
this.updateColumnClasses();
|
|
111
|
-
}
|
|
112
|
-
applyGutters() {
|
|
113
|
-
const containerWidth = innerWidth(this.element.nativeElement);
|
|
114
|
-
this._formGutters = calculateGutters(this.gutters, containerWidth);
|
|
115
|
-
this.updateGutterClasses();
|
|
116
|
-
}
|
|
117
|
-
updateColumnClasses() {
|
|
118
|
-
this.columnsClass = generateColumnClass(this._formColumnsNumber);
|
|
119
|
-
}
|
|
120
|
-
updateGutterClasses() {
|
|
121
|
-
this.guttersStyle = generateGuttersStyling(this._formGutters, { ...DEFAULT_FORM_GUTTERS });
|
|
122
|
-
}
|
|
123
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
124
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FormComponent, isStandalone: true, selector: "form[kendoForm]", inputs: { orientation: "orientation", cols: "cols", gutters: "gutters" }, host: { properties: { "class": "this.formClass", "class.k-form-horizontal": "this.horizontalClass" } }, exportAs: ["kendoForm"], usesOnChanges: true, ngImport: i0, template: `
|
|
125
|
-
<div class="k-form-layout k-d-grid" [ngClass]="[columnsClass]" [ngStyle]="{ gap: guttersStyle }">
|
|
126
|
-
<ng-content></ng-content>
|
|
127
|
-
</div>
|
|
128
|
-
<kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
|
|
129
|
-
@if (showLicenseWatermark) {
|
|
130
|
-
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
131
|
-
}
|
|
132
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }] });
|
|
133
|
-
}
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormComponent, decorators: [{
|
|
135
|
-
type: Component,
|
|
136
|
-
args: [{
|
|
137
|
-
exportAs: 'kendoForm',
|
|
138
|
-
selector: 'form[kendoForm]',
|
|
139
|
-
template: `
|
|
140
|
-
<div class="k-form-layout k-d-grid" [ngClass]="[columnsClass]" [ngStyle]="{ gap: guttersStyle }">
|
|
141
|
-
<ng-content></ng-content>
|
|
142
|
-
</div>
|
|
143
|
-
<kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
|
|
144
|
-
@if (showLicenseWatermark) {
|
|
145
|
-
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
146
|
-
}
|
|
147
|
-
`,
|
|
148
|
-
standalone: true,
|
|
149
|
-
imports: [NgClass, NgStyle, ResizeSensorComponent, WatermarkOverlayComponent],
|
|
150
|
-
}]
|
|
151
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FormService }], propDecorators: { orientation: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], cols: [{
|
|
154
|
-
type: Input
|
|
155
|
-
}], gutters: [{
|
|
156
|
-
type: Input
|
|
157
|
-
}], formClass: [{
|
|
158
|
-
type: HostBinding,
|
|
159
|
-
args: ['class']
|
|
160
|
-
}], horizontalClass: [{
|
|
161
|
-
type: HostBinding,
|
|
162
|
-
args: ['class.k-form-horizontal']
|
|
163
|
-
}] } });
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
|
|
6
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
7
|
-
import { packageMetadata } from '../package-metadata';
|
|
8
|
-
import { calculateColSpan, generateColSpanClass } from './utils';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { FormService } from '../common/formservice.service';
|
|
11
|
-
import { filter } from 'rxjs/operators';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../common/formservice.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the Kendo UI Form Separator component for Angular.
|
|
16
|
-
*/
|
|
17
|
-
export class FormSeparatorComponent {
|
|
18
|
-
renderer;
|
|
19
|
-
hostElement;
|
|
20
|
-
formService;
|
|
21
|
-
hostClass = true;
|
|
22
|
-
/**
|
|
23
|
-
* Defines the colspan for the separator element related to the parent Form component columns.
|
|
24
|
-
* Can be a number or an array of responsive breakpoints.
|
|
25
|
-
*/
|
|
26
|
-
colSpan;
|
|
27
|
-
_formWidth = null;
|
|
28
|
-
_colSpanClass = null;
|
|
29
|
-
_previousColSpan = null;
|
|
30
|
-
subscriptions = new Subscription();
|
|
31
|
-
constructor(renderer, hostElement, formService) {
|
|
32
|
-
this.renderer = renderer;
|
|
33
|
-
this.hostElement = hostElement;
|
|
34
|
-
this.formService = formService;
|
|
35
|
-
validatePackage(packageMetadata);
|
|
36
|
-
this.subscriptions.add(this.formService.formWidth.pipe(filter((width) => width !== null)).subscribe((width) => {
|
|
37
|
-
this._formWidth = width;
|
|
38
|
-
this.updateColSpanClass();
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
ngOnChanges(changes) {
|
|
42
|
-
if (changes['colSpan']) {
|
|
43
|
-
this.updateColSpanClass();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
ngOnDestroy() {
|
|
47
|
-
this.subscriptions.unsubscribe();
|
|
48
|
-
}
|
|
49
|
-
updateColSpanClass() {
|
|
50
|
-
const hostElement = this.hostElement.nativeElement;
|
|
51
|
-
const newColSpan = calculateColSpan(this.colSpan, this._formWidth);
|
|
52
|
-
if (newColSpan !== this._previousColSpan) {
|
|
53
|
-
const newClass = generateColSpanClass(newColSpan);
|
|
54
|
-
if (this._colSpanClass) {
|
|
55
|
-
this.renderer.removeClass(hostElement, this._colSpanClass);
|
|
56
|
-
}
|
|
57
|
-
if (newClass) {
|
|
58
|
-
this.renderer.addClass(hostElement, newClass);
|
|
59
|
-
}
|
|
60
|
-
this._colSpanClass = newClass;
|
|
61
|
-
this._previousColSpan = newColSpan;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormSeparatorComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.FormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormSeparatorComponent, isStandalone: true, selector: "kendo-form-separator", inputs: { colSpan: "colSpan" }, host: { properties: { "class.k-form-separator": "this.hostClass" } }, exportAs: ["kendoFormSeparator"], usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormSeparatorComponent, decorators: [{
|
|
68
|
-
type: Component,
|
|
69
|
-
args: [{
|
|
70
|
-
exportAs: 'kendoFormSeparator',
|
|
71
|
-
selector: 'kendo-form-separator',
|
|
72
|
-
template: ``,
|
|
73
|
-
standalone: true,
|
|
74
|
-
}]
|
|
75
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.FormService }], propDecorators: { hostClass: [{
|
|
76
|
-
type: HostBinding,
|
|
77
|
-
args: ['class.k-form-separator']
|
|
78
|
-
}], colSpan: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}] } });
|