@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
|
@@ -1,189 +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 { Injectable } from '@angular/core';
|
|
6
|
-
import { greedy, sequence } from './parsing/combinators';
|
|
7
|
-
import { literal, mask as maskParser, rawLiteral, rawMask, token, unliteral, unmask } from './parsing/parsers';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class MaskingService {
|
|
13
|
-
rules = {};
|
|
14
|
-
prompt = "_";
|
|
15
|
-
mask = "";
|
|
16
|
-
promptPlaceholder = " ";
|
|
17
|
-
includeLiterals = false;
|
|
18
|
-
maskTokens = [];
|
|
19
|
-
unmaskTokens = [];
|
|
20
|
-
rawTokens = [];
|
|
21
|
-
validationTokens = [];
|
|
22
|
-
update({ mask = '', prompt = '', promptPlaceholder = ' ', rules = {}, includeLiterals = false }) {
|
|
23
|
-
this.mask = mask;
|
|
24
|
-
this.prompt = prompt;
|
|
25
|
-
this.promptPlaceholder = promptPlaceholder;
|
|
26
|
-
this.rules = rules;
|
|
27
|
-
this.includeLiterals = includeLiterals;
|
|
28
|
-
this.tokenize();
|
|
29
|
-
}
|
|
30
|
-
validationValue(maskedValue = '') {
|
|
31
|
-
let value = maskedValue;
|
|
32
|
-
sequence(this.validationTokens)
|
|
33
|
-
.run(maskedValue)
|
|
34
|
-
.fold(unmasked => {
|
|
35
|
-
value = unmasked.join('');
|
|
36
|
-
});
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
rawValue(maskedValue = '') {
|
|
40
|
-
let value = maskedValue;
|
|
41
|
-
if (!this.rawTokens.length) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
sequence(this.rawTokens)
|
|
45
|
-
.run(maskedValue)
|
|
46
|
-
.fold(unmasked => {
|
|
47
|
-
value = unmasked.join('');
|
|
48
|
-
});
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
maskRaw(rawValue = '') {
|
|
55
|
-
let value = rawValue;
|
|
56
|
-
if (!this.maskTokens.length) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
sequence(this.maskTokens)
|
|
60
|
-
.run(rawValue)
|
|
61
|
-
.fold(masked => {
|
|
62
|
-
value = masked.join('');
|
|
63
|
-
});
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
maskInput(input, control, splitPoint) {
|
|
67
|
-
if (input.length < control.length) {
|
|
68
|
-
return this.maskRemoved(input, control, splitPoint);
|
|
69
|
-
}
|
|
70
|
-
return this.maskInserted(input, control, splitPoint);
|
|
71
|
-
}
|
|
72
|
-
maskInRange(pasted, oldValue, start, end) {
|
|
73
|
-
let value = '';
|
|
74
|
-
const selection = end;
|
|
75
|
-
const beforeChange = oldValue.split('').slice(0, start);
|
|
76
|
-
const afterChange = oldValue.split('').slice(end);
|
|
77
|
-
sequence(this.maskTokens.slice(start, end))
|
|
78
|
-
.run(pasted)
|
|
79
|
-
.fold(masked => {
|
|
80
|
-
value = beforeChange
|
|
81
|
-
.concat(masked)
|
|
82
|
-
.concat(afterChange)
|
|
83
|
-
.join('');
|
|
84
|
-
});
|
|
85
|
-
return {
|
|
86
|
-
selection,
|
|
87
|
-
value
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
maskRemoved(input, control, splitPoint) {
|
|
91
|
-
let value = '';
|
|
92
|
-
let selection = splitPoint;
|
|
93
|
-
const unchanged = input.split('').slice(splitPoint);
|
|
94
|
-
const changed = input.split('').slice(0, splitPoint).join('');
|
|
95
|
-
const take = this.maskTokens.length - (input.length - splitPoint);
|
|
96
|
-
sequence(this.maskTokens.slice(0, take))
|
|
97
|
-
.run(changed, control)
|
|
98
|
-
.fold(masked => {
|
|
99
|
-
selection = this.adjustPosition(masked, selection);
|
|
100
|
-
value = masked.concat(unchanged).join('');
|
|
101
|
-
});
|
|
102
|
-
return {
|
|
103
|
-
selection,
|
|
104
|
-
value
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
adjustPosition(input, selection) {
|
|
108
|
-
const caretChar = input[selection];
|
|
109
|
-
const isLiteral = this.maskTokens[selection].isLiteral(caretChar);
|
|
110
|
-
if (!isLiteral && caretChar !== this.prompt) {
|
|
111
|
-
return selection + 1;
|
|
112
|
-
}
|
|
113
|
-
return selection;
|
|
114
|
-
}
|
|
115
|
-
maskInserted(input, control, splitPoint) {
|
|
116
|
-
let value = '';
|
|
117
|
-
let selection = splitPoint;
|
|
118
|
-
const changed = input.slice(0, splitPoint);
|
|
119
|
-
sequence(this.unmaskTokens)
|
|
120
|
-
.run(changed, control)
|
|
121
|
-
.chain(unmasked => {
|
|
122
|
-
selection = unmasked.join('').length;
|
|
123
|
-
const unchanged = control.slice(selection);
|
|
124
|
-
return sequence(this.maskTokens)
|
|
125
|
-
.run(unmasked.join('') + unchanged, control);
|
|
126
|
-
})
|
|
127
|
-
.fold(masked => {
|
|
128
|
-
value = masked.join('');
|
|
129
|
-
});
|
|
130
|
-
return {
|
|
131
|
-
selection,
|
|
132
|
-
value
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
get maskTokenCreator() {
|
|
136
|
-
const { prompt, promptPlaceholder } = this;
|
|
137
|
-
return {
|
|
138
|
-
literal: rule => literal(rule),
|
|
139
|
-
mask: rule => maskParser({ prompt, promptPlaceholder })(rule)
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
get unmaskTokenCreator() {
|
|
143
|
-
return {
|
|
144
|
-
literal: rule => unliteral(rule),
|
|
145
|
-
mask: rule => unmask(this.prompt)(rule)
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
get rawTokenCreator() {
|
|
149
|
-
const { prompt, promptPlaceholder, includeLiterals } = this;
|
|
150
|
-
return {
|
|
151
|
-
literal: _ => rawLiteral(includeLiterals),
|
|
152
|
-
mask: _ => rawMask({ prompt, promptPlaceholder })
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
get validationTokenCreator() {
|
|
156
|
-
const { prompt } = this;
|
|
157
|
-
return {
|
|
158
|
-
literal: _ => rawLiteral(false),
|
|
159
|
-
mask: _ => rawMask({ prompt, promptPlaceholder: '' })
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
tokenize() {
|
|
163
|
-
greedy(token(this.rules, this.maskTokenCreator))
|
|
164
|
-
.run(this.mask)
|
|
165
|
-
.fold((tokens, _) => {
|
|
166
|
-
this.maskTokens = tokens;
|
|
167
|
-
});
|
|
168
|
-
greedy(token(this.rules, this.unmaskTokenCreator))
|
|
169
|
-
.run(this.mask)
|
|
170
|
-
.fold((tokens, _) => {
|
|
171
|
-
this.unmaskTokens = tokens;
|
|
172
|
-
});
|
|
173
|
-
greedy(token(this.rules, this.rawTokenCreator))
|
|
174
|
-
.run(this.mask)
|
|
175
|
-
.fold((tokens, _) => {
|
|
176
|
-
this.rawTokens = tokens;
|
|
177
|
-
});
|
|
178
|
-
greedy(token(this.rules, this.validationTokenCreator))
|
|
179
|
-
.run(this.mask)
|
|
180
|
-
.fold((tokens, _) => {
|
|
181
|
-
this.validationTokens = tokens;
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
185
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskingService });
|
|
186
|
-
}
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskingService, decorators: [{
|
|
188
|
-
type: Injectable
|
|
189
|
-
}] });
|
|
@@ -1,28 +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 { Parser } from './parsers';
|
|
6
|
-
import { Result } from './result';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
const always = value => new Parser(stream => new Result(value, stream));
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
const append = (p1, p2) => p1.chain(vs => p2.map(v => vs.concat([v])));
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export const sequence = list => list.reduce((acc, parser) => append(acc, parser), always([]));
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export const greedy = parser => new Parser(stream => {
|
|
23
|
-
let result = new Result([], stream);
|
|
24
|
-
while (!stream.eof()) {
|
|
25
|
-
result = result.concat(parser.run(stream));
|
|
26
|
-
}
|
|
27
|
-
return result;
|
|
28
|
-
});
|
|
@@ -1,148 +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 { Result, ResultType } from './result';
|
|
6
|
-
import { Stream } from './stream';
|
|
7
|
-
const toArray = (value) => (value || '').split('');
|
|
8
|
-
const ESCAPE_CHARACTER = '\\';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class Parser {
|
|
13
|
-
parse;
|
|
14
|
-
constructor(parse) {
|
|
15
|
-
this.parse = parse;
|
|
16
|
-
}
|
|
17
|
-
run(input, control = '') {
|
|
18
|
-
if (input instanceof Stream) {
|
|
19
|
-
return this.parse(input);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.parse(new Stream(toArray(input), toArray(control)));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//map :: Functor f => f a ~> (a -> b) -> f b
|
|
26
|
-
map(f) {
|
|
27
|
-
return new Parser(stream => this.parse(stream).map(f));
|
|
28
|
-
}
|
|
29
|
-
//chain :: Chain m => m a ~> (a -> m b) -> m b
|
|
30
|
-
chain(f) {
|
|
31
|
-
return new Parser(stream => this.parse(stream).chain((v, s) => f(v).run(s)));
|
|
32
|
-
}
|
|
33
|
-
isLiteral(c) {
|
|
34
|
-
return this.run(c).type === ResultType.Literal;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export const mask = ({ prompt, promptPlaceholder }) => rule => new Parser(stream => {
|
|
41
|
-
while (!stream.eof()) {
|
|
42
|
-
const { char, control } = stream.peek();
|
|
43
|
-
if (char === control && control === prompt) {
|
|
44
|
-
stream.eat();
|
|
45
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
46
|
-
}
|
|
47
|
-
if (rule.test(char)) {
|
|
48
|
-
stream.eat();
|
|
49
|
-
return new Result(char, stream, ResultType.Mask);
|
|
50
|
-
}
|
|
51
|
-
if (char === promptPlaceholder) {
|
|
52
|
-
stream.eat();
|
|
53
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
54
|
-
}
|
|
55
|
-
stream.eat_input();
|
|
56
|
-
}
|
|
57
|
-
stream.eat();
|
|
58
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
59
|
-
});
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
export const literal = _token => new Parser(stream => {
|
|
64
|
-
// let {char, control} = stream.peek();
|
|
65
|
-
const char = stream.peek().char;
|
|
66
|
-
if (char === _token) {
|
|
67
|
-
stream.eat();
|
|
68
|
-
return new Result(_token, stream, ResultType.Literal);
|
|
69
|
-
}
|
|
70
|
-
// if (control === _token) {
|
|
71
|
-
// while (!stream.eof() && char !== _token) {
|
|
72
|
-
// stream.eat_input();
|
|
73
|
-
// char = stream.peek().char;
|
|
74
|
-
// }
|
|
75
|
-
// }
|
|
76
|
-
//
|
|
77
|
-
// if (control !== undefined) {
|
|
78
|
-
// stream.eat();
|
|
79
|
-
// }
|
|
80
|
-
return new Result(_token, stream, ResultType.Literal);
|
|
81
|
-
});
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
export const unmask = prompt => rule => new Parser(stream => {
|
|
86
|
-
while (!stream.eof()) {
|
|
87
|
-
const { char, control } = stream.peek();
|
|
88
|
-
if (char === prompt && control === prompt) {
|
|
89
|
-
stream.eat();
|
|
90
|
-
return new Result(char, stream);
|
|
91
|
-
}
|
|
92
|
-
if (rule.test(char)) {
|
|
93
|
-
stream.eat();
|
|
94
|
-
return new Result(char, stream);
|
|
95
|
-
}
|
|
96
|
-
stream.eat_input();
|
|
97
|
-
}
|
|
98
|
-
stream.eat();
|
|
99
|
-
return new Result('', stream);
|
|
100
|
-
});
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
export const unliteral = _token => new Parser(stream => {
|
|
105
|
-
if (stream.eof()) {
|
|
106
|
-
return new Result('', stream);
|
|
107
|
-
}
|
|
108
|
-
const { char } = stream.peek();
|
|
109
|
-
if (char === _token) {
|
|
110
|
-
stream.eat();
|
|
111
|
-
}
|
|
112
|
-
return new Result(_token, stream);
|
|
113
|
-
});
|
|
114
|
-
/**
|
|
115
|
-
* @hidden
|
|
116
|
-
*/
|
|
117
|
-
export const token = (rules, creator) => new Parser(stream => {
|
|
118
|
-
let { char } = stream.next();
|
|
119
|
-
const rule = rules[char];
|
|
120
|
-
if (char === ESCAPE_CHARACTER) {
|
|
121
|
-
char = stream.next().char;
|
|
122
|
-
return new Result(creator.literal(char), stream);
|
|
123
|
-
}
|
|
124
|
-
if (!rule) {
|
|
125
|
-
return new Result(creator.literal(char), stream);
|
|
126
|
-
}
|
|
127
|
-
return new Result(creator.mask(rule), stream);
|
|
128
|
-
});
|
|
129
|
-
/**
|
|
130
|
-
* @hidden
|
|
131
|
-
*/
|
|
132
|
-
export const rawMask = ({ prompt, promptPlaceholder }) => new Parser(stream => {
|
|
133
|
-
const { char } = stream.next();
|
|
134
|
-
if (char === prompt) {
|
|
135
|
-
return new Result(promptPlaceholder, stream);
|
|
136
|
-
}
|
|
137
|
-
return new Result(char, stream);
|
|
138
|
-
});
|
|
139
|
-
/**
|
|
140
|
-
* @hidden
|
|
141
|
-
*/
|
|
142
|
-
export const rawLiteral = includeLiterals => new Parser(stream => {
|
|
143
|
-
const { char } = stream.next();
|
|
144
|
-
if (includeLiterals) {
|
|
145
|
-
return new Result(char, stream);
|
|
146
|
-
}
|
|
147
|
-
return new Result('', stream);
|
|
148
|
-
});
|
|
@@ -1,44 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var ResultType;
|
|
9
|
-
(function (ResultType) {
|
|
10
|
-
ResultType[ResultType["Literal"] = 0] = "Literal";
|
|
11
|
-
ResultType[ResultType["Mask"] = 1] = "Mask";
|
|
12
|
-
// eslint-disable-next-line id-denylist
|
|
13
|
-
ResultType[ResultType["Undefined"] = 2] = "Undefined";
|
|
14
|
-
})(ResultType || (ResultType = {}));
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export class Result {
|
|
19
|
-
value;
|
|
20
|
-
rest;
|
|
21
|
-
type;
|
|
22
|
-
constructor(value, rest, type = ResultType.Undefined) {
|
|
23
|
-
this.value = value;
|
|
24
|
-
this.rest = rest;
|
|
25
|
-
this.type = type;
|
|
26
|
-
}
|
|
27
|
-
//map :: Functor f => f a ~> (a -> b) -> f b
|
|
28
|
-
map(fn) {
|
|
29
|
-
return new Result(fn(this.value), this.rest);
|
|
30
|
-
}
|
|
31
|
-
//chain :: Chain m => m a ~> (a -> m b) -> m b
|
|
32
|
-
chain(fn) {
|
|
33
|
-
return fn(this.value, this.rest);
|
|
34
|
-
}
|
|
35
|
-
fold(s, _ /*we don't need it*/) {
|
|
36
|
-
return s(this.value, this.rest);
|
|
37
|
-
}
|
|
38
|
-
concat(r) {
|
|
39
|
-
return this.map((vs, _) => r.chain((v, __) => vs.concat([v])));
|
|
40
|
-
}
|
|
41
|
-
toString() {
|
|
42
|
-
return `Result({ value: '${this.value}', rest: ${this.rest} })`;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,43 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export class Stream {
|
|
9
|
-
input;
|
|
10
|
-
control;
|
|
11
|
-
inputCursor = 0;
|
|
12
|
-
controlCursor = 0;
|
|
13
|
-
constructor(input = [], control = []) {
|
|
14
|
-
this.input = input;
|
|
15
|
-
this.control = control;
|
|
16
|
-
}
|
|
17
|
-
eof() {
|
|
18
|
-
return this.inputCursor >= this.input.length;
|
|
19
|
-
}
|
|
20
|
-
// Get the first value from the input.
|
|
21
|
-
next() {
|
|
22
|
-
return {
|
|
23
|
-
char: this.input[this.inputCursor++],
|
|
24
|
-
control: this.control[this.controlCursor++]
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
peek() {
|
|
28
|
-
return {
|
|
29
|
-
char: this.input[this.inputCursor],
|
|
30
|
-
control: this.control[this.controlCursor]
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
eat_input() {
|
|
34
|
-
this.inputCursor++;
|
|
35
|
-
}
|
|
36
|
-
eat_control() {
|
|
37
|
-
this.controlCursor++;
|
|
38
|
-
}
|
|
39
|
-
eat() {
|
|
40
|
-
this.inputCursor++;
|
|
41
|
-
this.controlCursor++;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,43 +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 { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_MASKEDTEXTBOX } from './directives';
|
|
7
|
-
import { KENDO_ADORNMENTS } from '@progress/kendo-angular-common';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "./maskedtextbox/maskedtextbox.component";
|
|
10
|
-
import * as i2 from "@progress/kendo-angular-common";
|
|
11
|
-
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
|
-
/**
|
|
13
|
-
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the MaskedTextBox component.
|
|
14
|
-
*
|
|
15
|
-
* Use this module to add the MaskedTextBox component to your NgModule-based Angular application.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
|
|
20
|
-
* import { NgModule } from '@angular/core';
|
|
21
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
22
|
-
* import { AppComponent } from './app.component';
|
|
23
|
-
*
|
|
24
|
-
* @NgModule({
|
|
25
|
-
* declarations: [AppComponent],
|
|
26
|
-
* imports: [BrowserModule, MaskedTextBoxModule],
|
|
27
|
-
* bootstrap: [AppComponent]
|
|
28
|
-
* })
|
|
29
|
-
* export class AppModule {}
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export class MaskedTextBoxModule {
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskedTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MaskedTextBoxModule, imports: [i1.MaskedTextBoxComponent, i2.PrefixTemplateDirective, i2.SuffixTemplateDirective, i2.SeparatorComponent, i2.PrefixTemplateDirective, i2.SuffixTemplateDirective, i2.SeparatorComponent], exports: [i1.MaskedTextBoxComponent, i2.PrefixTemplateDirective, i2.SuffixTemplateDirective, i2.SeparatorComponent, i2.PrefixTemplateDirective, i2.SuffixTemplateDirective, i2.SeparatorComponent] });
|
|
35
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskedTextBoxModule, imports: [i2.SeparatorComponent, i2.SeparatorComponent] });
|
|
36
|
-
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskedTextBoxModule, decorators: [{
|
|
38
|
-
type: NgModule,
|
|
39
|
-
args: [{
|
|
40
|
-
imports: [...KENDO_MASKEDTEXTBOX, ...KENDO_ADORNMENTS],
|
|
41
|
-
exports: [...KENDO_MASKEDTEXTBOX, ...KENDO_ADORNMENTS]
|
|
42
|
-
}]
|
|
43
|
-
}] });
|
|
@@ -1,13 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var ArrowDirection;
|
|
9
|
-
(function (ArrowDirection) {
|
|
10
|
-
ArrowDirection[ArrowDirection["Down"] = -1] = "Down";
|
|
11
|
-
ArrowDirection[ArrowDirection["None"] = 0] = "None";
|
|
12
|
-
ArrowDirection[ArrowDirection["Up"] = 1] = "Up";
|
|
13
|
-
})(ArrowDirection || (ArrowDirection = {}));
|
|
@@ -1,28 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export const MIN_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export const MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max';
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export const POINT = ".";
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export const INITIAL_SPIN_DELAY = 500;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export const SPIN_DELAY = 50;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export const EXPONENT_REGEX = /[eE][\-+]?([0-9]+)/;
|
|
@@ -1,55 +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, forwardRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { NumericTextBoxMessages } from './messages';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
|
-
/**
|
|
11
|
-
* Overrides the default messages of the NumericTextBox component.
|
|
12
|
-
*
|
|
13
|
-
* Use this component to provide custom messages for the NumericTextBox.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-numerictextbox>
|
|
18
|
-
* <kendo-numerictextbox-messages
|
|
19
|
-
* [increment]="'Custom Increment Message'"
|
|
20
|
-
* [decrement]="'Custom Decrement Message'">
|
|
21
|
-
* </kendo-numerictextbox-messages>
|
|
22
|
-
* <kendo-numerictextbox>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export class NumericTextBoxCustomMessagesComponent extends NumericTextBoxMessages {
|
|
26
|
-
service;
|
|
27
|
-
constructor(service) {
|
|
28
|
-
super();
|
|
29
|
-
this.service = service;
|
|
30
|
-
}
|
|
31
|
-
get override() {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericTextBoxCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: NumericTextBoxCustomMessagesComponent, isStandalone: true, selector: "kendo-numerictextbox-messages", providers: [
|
|
36
|
-
{
|
|
37
|
-
provide: NumericTextBoxMessages,
|
|
38
|
-
useExisting: forwardRef(() => NumericTextBoxCustomMessagesComponent)
|
|
39
|
-
}
|
|
40
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericTextBoxCustomMessagesComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
providers: [
|
|
46
|
-
{
|
|
47
|
-
provide: NumericTextBoxMessages,
|
|
48
|
-
useExisting: forwardRef(() => NumericTextBoxCustomMessagesComponent)
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
selector: 'kendo-numerictextbox-messages',
|
|
52
|
-
template: ``,
|
|
53
|
-
standalone: true
|
|
54
|
-
}]
|
|
55
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
@@ -1,39 +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 { Directive, forwardRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { NumericTextBoxMessages } from './messages';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export class LocalizedNumericTextBoxMessagesDirective extends NumericTextBoxMessages {
|
|
14
|
-
service;
|
|
15
|
-
constructor(service) {
|
|
16
|
-
super();
|
|
17
|
-
this.service = service;
|
|
18
|
-
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedNumericTextBoxMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LocalizedNumericTextBoxMessagesDirective, isStandalone: true, selector: "[kendoNumericTextBoxLocalizedMessages]", providers: [
|
|
21
|
-
{
|
|
22
|
-
provide: NumericTextBoxMessages,
|
|
23
|
-
useExisting: forwardRef(() => LocalizedNumericTextBoxMessagesDirective)
|
|
24
|
-
}
|
|
25
|
-
], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedNumericTextBoxMessagesDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
providers: [
|
|
31
|
-
{
|
|
32
|
-
provide: NumericTextBoxMessages,
|
|
33
|
-
useExisting: forwardRef(() => LocalizedNumericTextBoxMessagesDirective)
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
selector: '[kendoNumericTextBoxLocalizedMessages]',
|
|
37
|
-
standalone: true
|
|
38
|
-
}]
|
|
39
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
@@ -1,33 +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 { Directive, Input } from '@angular/core';
|
|
6
|
-
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class NumericTextBoxMessages extends ComponentMessages {
|
|
12
|
-
/**
|
|
13
|
-
* Sets the title of the **Decrement** button in the NumericTextBox.
|
|
14
|
-
*/
|
|
15
|
-
decrement;
|
|
16
|
-
/**
|
|
17
|
-
* Sets the title of the **Increment** button in the NumericTextBox.
|
|
18
|
-
*/
|
|
19
|
-
increment;
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericTextBoxMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: NumericTextBoxMessages, selector: "kendo-numerictextbox-messages-base", inputs: { decrement: "decrement", increment: "increment" }, usesInheritance: true, ngImport: i0 });
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericTextBoxMessages, decorators: [{
|
|
24
|
-
type: Directive,
|
|
25
|
-
args: [{
|
|
26
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
27
|
-
selector: 'kendo-numerictextbox-messages-base'
|
|
28
|
-
}]
|
|
29
|
-
}], propDecorators: { decrement: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], increment: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}] } });
|