@bootkit/ng0 0.0.0-alpha.2 → 0.0.0-alpha.4
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/common/index.d.ts +10 -2
- package/components/accordion/index.d.ts +1 -1
- package/components/button/index.d.ts +48 -0
- package/components/card/index.d.ts +27 -0
- package/components/code/index.d.ts +35 -0
- package/components/confirmation/index.d.ts +66 -0
- package/components/form-field/index.d.ts +72 -0
- package/components/modal/index.d.ts +1 -1
- package/components/pagination/index.d.ts +1 -1
- package/components/popover/index.d.ts +1 -1
- package/components/stepper/index.d.ts +26 -0
- package/components/table/index.d.ts +141 -0
- package/components/toast/index.d.ts +1 -1
- package/components/tooltip/index.d.ts +1 -1
- package/data/index.d.ts +72 -37
- package/fesm2022/bootkit-ng0-common.mjs +7 -1
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-button.mjs +119 -0
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-card.mjs +62 -0
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-code.mjs +70 -0
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +167 -0
- package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs +147 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-stepper.mjs +91 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-table.mjs +317 -0
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-toast.mjs +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-data.mjs +52 -75
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-file.mjs +50 -0
- package/fesm2022/bootkit-ng0-file.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-form.mjs +442 -0
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-http.mjs +189 -178
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-localization.mjs +301 -0
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-script.mjs +59 -0
- package/fesm2022/bootkit-ng0-script.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-security.mjs +2 -0
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/file/index.d.ts +22 -0
- package/form/index.d.ts +95 -0
- package/http/index.d.ts +110 -40
- package/localization/index.d.ts +178 -0
- package/package.json +55 -11
- package/script/index.d.ts +27 -0
- package/security/index.d.ts +3 -9
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive, input, NgModule, HostListener, forwardRef } from '@angular/core';
|
|
3
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { formatNumber } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
function equalWithValidator(targetValue, inequalityMessage) {
|
|
7
|
+
return (control) => {
|
|
8
|
+
const isValid = control.value === targetValue;
|
|
9
|
+
return isValid ? null :
|
|
10
|
+
{
|
|
11
|
+
equalWith: {
|
|
12
|
+
value: control.value,
|
|
13
|
+
message: inequalityMessage
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class EqualWithValidatorDirective {
|
|
20
|
+
targetValue;
|
|
21
|
+
inequalityMessage;
|
|
22
|
+
constructor() {
|
|
23
|
+
}
|
|
24
|
+
validate(control) {
|
|
25
|
+
return equalWithValidator(this.targetValue, this.inequalityMessage)(control);
|
|
26
|
+
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: EqualWithValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: EqualWithValidatorDirective, isStandalone: true, selector: "[ng0EqualWith]", inputs: { targetValue: ["ng0EqualWith", "targetValue"], inequalityMessage: "inequalityMessage" }, providers: [
|
|
29
|
+
{ provide: NG_VALIDATORS, useExisting: EqualWithValidatorDirective, multi: true }
|
|
30
|
+
], exportAs: ["ng0EqualWith"], ngImport: i0 });
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: EqualWithValidatorDirective, decorators: [{
|
|
33
|
+
type: Directive,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: '[ng0EqualWith]',
|
|
36
|
+
exportAs: 'ng0EqualWith',
|
|
37
|
+
standalone: true,
|
|
38
|
+
providers: [
|
|
39
|
+
{ provide: NG_VALIDATORS, useExisting: EqualWithValidatorDirective, multi: true }
|
|
40
|
+
]
|
|
41
|
+
}]
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { targetValue: [{
|
|
43
|
+
type: Input,
|
|
44
|
+
args: ['ng0EqualWith']
|
|
45
|
+
}], inequalityMessage: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
|
|
49
|
+
const urlRegEx = new RegExp('(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?');
|
|
50
|
+
function urlValidator() {
|
|
51
|
+
return (control) => {
|
|
52
|
+
const value = control.value;
|
|
53
|
+
if (!value || urlRegEx.test(value)) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return {
|
|
58
|
+
'url': {
|
|
59
|
+
value
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
class UrlValidatorDirective {
|
|
67
|
+
/** Directive is enabled or disabled */
|
|
68
|
+
iscUrl = true;
|
|
69
|
+
validate(control) {
|
|
70
|
+
return urlValidator()(control);
|
|
71
|
+
}
|
|
72
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: UrlValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
73
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: UrlValidatorDirective, isStandalone: true, selector: "input[ng0Url]", inputs: { iscUrl: "iscUrl" }, providers: [{ provide: NG_VALIDATORS, useExisting: UrlValidatorDirective, multi: true }], exportAs: ["ng0Url"], ngImport: i0 });
|
|
74
|
+
}
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: UrlValidatorDirective, decorators: [{
|
|
76
|
+
type: Directive,
|
|
77
|
+
args: [{
|
|
78
|
+
selector: 'input[ng0Url]',
|
|
79
|
+
exportAs: 'ng0Url',
|
|
80
|
+
standalone: true,
|
|
81
|
+
providers: [{ provide: NG_VALIDATORS, useExisting: UrlValidatorDirective, multi: true }]
|
|
82
|
+
}]
|
|
83
|
+
}], propDecorators: { iscUrl: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}] } });
|
|
86
|
+
|
|
87
|
+
class CustomValidatorDirective {
|
|
88
|
+
validator = input.required({ alias: 'ng0CustomValidator' });
|
|
89
|
+
constructor() { }
|
|
90
|
+
validate(control) {
|
|
91
|
+
return this.validator()(control);
|
|
92
|
+
}
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: CustomValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
94
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.6", type: CustomValidatorDirective, isStandalone: true, selector: "[ng0CustomValidator]", inputs: { validator: { classPropertyName: "validator", publicName: "ng0CustomValidator", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
95
|
+
{ provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true }
|
|
96
|
+
], exportAs: ["ng0CustomValidator"], ngImport: i0 });
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: CustomValidatorDirective, decorators: [{
|
|
99
|
+
type: Directive,
|
|
100
|
+
args: [{
|
|
101
|
+
selector: '[ng0CustomValidator]',
|
|
102
|
+
exportAs: 'ng0CustomValidator',
|
|
103
|
+
standalone: true,
|
|
104
|
+
providers: [
|
|
105
|
+
{ provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true }
|
|
106
|
+
]
|
|
107
|
+
}]
|
|
108
|
+
}], ctorParameters: () => [] });
|
|
109
|
+
|
|
110
|
+
const items = [
|
|
111
|
+
// ErrorDirective,
|
|
112
|
+
// FirstErrorDirective,
|
|
113
|
+
// Validators
|
|
114
|
+
EqualWithValidatorDirective,
|
|
115
|
+
UrlValidatorDirective,
|
|
116
|
+
CustomValidatorDirective,
|
|
117
|
+
];
|
|
118
|
+
class ValidationModule {
|
|
119
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
120
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: ValidationModule, imports: [
|
|
121
|
+
// ErrorDirective,
|
|
122
|
+
// FirstErrorDirective,
|
|
123
|
+
// Validators
|
|
124
|
+
EqualWithValidatorDirective,
|
|
125
|
+
UrlValidatorDirective,
|
|
126
|
+
CustomValidatorDirective], exports: [
|
|
127
|
+
// ErrorDirective,
|
|
128
|
+
// FirstErrorDirective,
|
|
129
|
+
// Validators
|
|
130
|
+
EqualWithValidatorDirective,
|
|
131
|
+
UrlValidatorDirective,
|
|
132
|
+
CustomValidatorDirective] });
|
|
133
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ValidationModule });
|
|
134
|
+
}
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ValidationModule, decorators: [{
|
|
136
|
+
type: NgModule,
|
|
137
|
+
args: [{
|
|
138
|
+
imports: items,
|
|
139
|
+
exports: items,
|
|
140
|
+
}]
|
|
141
|
+
}] });
|
|
142
|
+
|
|
143
|
+
class FocusDirective {
|
|
144
|
+
elementRef;
|
|
145
|
+
focusOnLoad = true;
|
|
146
|
+
focusWhen;
|
|
147
|
+
focused = false;
|
|
148
|
+
constructor(elementRef) {
|
|
149
|
+
this.elementRef = elementRef;
|
|
150
|
+
}
|
|
151
|
+
ngOnInit() {
|
|
152
|
+
if (this.focusOnLoad) {
|
|
153
|
+
setTimeout(() => {
|
|
154
|
+
this.elementRef.nativeElement.focus();
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
ngOnChanges(changes) {
|
|
159
|
+
if (changes['focusWhen']) {
|
|
160
|
+
if (this.focusWhen) {
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
this.elementRef.nativeElement.focus();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: FocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
168
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: FocusDirective, isStandalone: true, selector: "[ng0Focus]", inputs: { focusOnLoad: "focusOnLoad", focusWhen: "focusWhen" }, exportAs: ["ng0Focus"], usesOnChanges: true, ngImport: i0 });
|
|
169
|
+
}
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: FocusDirective, decorators: [{
|
|
171
|
+
type: Directive,
|
|
172
|
+
args: [{
|
|
173
|
+
selector: '[ng0Focus]',
|
|
174
|
+
exportAs: 'ng0Focus',
|
|
175
|
+
standalone: true
|
|
176
|
+
}]
|
|
177
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { focusOnLoad: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], focusWhen: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}] } });
|
|
182
|
+
|
|
183
|
+
class DigitsOnlyDirective {
|
|
184
|
+
elementRef;
|
|
185
|
+
constructor(elementRef) {
|
|
186
|
+
this.elementRef = elementRef;
|
|
187
|
+
}
|
|
188
|
+
onKeyDown(e) {
|
|
189
|
+
var allowedKeys = ['Tab', 'Backspace', 'ArrowLeft', 'ArrowRight'];
|
|
190
|
+
if (!isFinite(e.key) && !allowedKeys.some(k => e.key == k)) {
|
|
191
|
+
e.preventDefault();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DigitsOnlyDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
195
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: DigitsOnlyDirective, isStandalone: true, selector: "[iscDigitsOnly]", host: { listeners: { "keydown": "onKeyDown($event)" } }, exportAs: ["iscDigitsOnly"], ngImport: i0 });
|
|
196
|
+
}
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DigitsOnlyDirective, decorators: [{
|
|
198
|
+
type: Directive,
|
|
199
|
+
args: [{
|
|
200
|
+
standalone: true,
|
|
201
|
+
selector: '[iscDigitsOnly]',
|
|
202
|
+
exportAs: 'iscDigitsOnly',
|
|
203
|
+
}]
|
|
204
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onKeyDown: [{
|
|
205
|
+
type: HostListener,
|
|
206
|
+
args: ['keydown', ['$event']]
|
|
207
|
+
}] } });
|
|
208
|
+
|
|
209
|
+
const addThousandsSeparator = (str) => str.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
210
|
+
const isValidNumber = (str) => str.trim() !== '' && !isNaN(Number(str));
|
|
211
|
+
const removeChar = (str, charToRemove) => str.split(charToRemove).join('');
|
|
212
|
+
const Keys = {
|
|
213
|
+
backspace: 'Backspace',
|
|
214
|
+
tab: 'Tab',
|
|
215
|
+
arrowLeft: 'ArrowLeft',
|
|
216
|
+
arrowRight: 'ArrowRight',
|
|
217
|
+
delete: 'Delete',
|
|
218
|
+
home: 'Home',
|
|
219
|
+
end: 'End'
|
|
220
|
+
};
|
|
221
|
+
class NumberDirective {
|
|
222
|
+
el;
|
|
223
|
+
renderer;
|
|
224
|
+
minFractionDigits = input(3);
|
|
225
|
+
maxFractionDigits = input(10);
|
|
226
|
+
useGrouping = input(false);
|
|
227
|
+
numberType = input('integer');
|
|
228
|
+
onChange = (_) => { };
|
|
229
|
+
onTouched = () => { };
|
|
230
|
+
decimalSeparator;
|
|
231
|
+
thousandsSeparator = ',';
|
|
232
|
+
selectionStart = 0;
|
|
233
|
+
selectionEnd = 0;
|
|
234
|
+
isCursorInsideIntegerPart = false;
|
|
235
|
+
decimalSeparatorPosition = -1;
|
|
236
|
+
value;
|
|
237
|
+
setProperty = (prop, value) => this.renderer.setProperty(this.el.nativeElement, prop, value);
|
|
238
|
+
constructor(el, renderer) {
|
|
239
|
+
this.el = el;
|
|
240
|
+
this.renderer = renderer;
|
|
241
|
+
}
|
|
242
|
+
ngOnInit() {
|
|
243
|
+
// Use Intl.NumberFormat to find decimal separator for locale
|
|
244
|
+
const formatted = formatNumber(1.1, 'en', '1.1-1');
|
|
245
|
+
this.decimalSeparator = formatted.replace(/\d/g, '') || '.';
|
|
246
|
+
}
|
|
247
|
+
registerOnChange(fn) {
|
|
248
|
+
this.onChange = fn;
|
|
249
|
+
}
|
|
250
|
+
registerOnTouched(fn) {
|
|
251
|
+
this.onTouched = fn;
|
|
252
|
+
}
|
|
253
|
+
setDisabledState(isDisabled) {
|
|
254
|
+
this.setProperty('disabled', isDisabled);
|
|
255
|
+
}
|
|
256
|
+
writeValue(value) {
|
|
257
|
+
var inputValue;
|
|
258
|
+
if (value === undefined || value === null) {
|
|
259
|
+
inputValue = '';
|
|
260
|
+
this.value = undefined;
|
|
261
|
+
}
|
|
262
|
+
else if (typeof value === 'number') {
|
|
263
|
+
inputValue = this.formatNumber(value);
|
|
264
|
+
this.value = value;
|
|
265
|
+
}
|
|
266
|
+
else if (typeof value === 'string') {
|
|
267
|
+
const parsedValue = this.value = Number.parseFloat(value);
|
|
268
|
+
inputValue = this.formatNumber(parsedValue);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
console.error('NumberDirective: Unsupported value type', value);
|
|
272
|
+
inputValue = 'Invalid';
|
|
273
|
+
}
|
|
274
|
+
this.setProperty('value', inputValue);
|
|
275
|
+
}
|
|
276
|
+
onKeyDown(event) {
|
|
277
|
+
this.updateCursorInfo();
|
|
278
|
+
if (!this.isKeyAllowed(event.key)) {
|
|
279
|
+
event.preventDefault();
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const key = event.key;
|
|
283
|
+
if (key == Keys.backspace) {
|
|
284
|
+
if (this.selectionStart > 1 && (this.selectionStart === this.selectionEnd)) {
|
|
285
|
+
let value = this.el.nativeElement.value;
|
|
286
|
+
let beforeSelection = value.charAt(this.selectionStart - 1);
|
|
287
|
+
if (beforeSelection === ',') {
|
|
288
|
+
// If the character before the cursor is a comma, we need to skip it
|
|
289
|
+
this.setProperty('selectionStart', this.selectionStart - 2);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
onInput(s) {
|
|
295
|
+
if (s === '') {
|
|
296
|
+
this.value = undefined;
|
|
297
|
+
this.onChange(undefined);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
this.updateCursorInfo();
|
|
301
|
+
if (this.isCursorInsideIntegerPart) {
|
|
302
|
+
this.formatIntegerPart(s);
|
|
303
|
+
}
|
|
304
|
+
var number = Number(removeChar(this.el.nativeElement.value, this.thousandsSeparator));
|
|
305
|
+
this.value = isNaN(number) ? undefined : number;
|
|
306
|
+
this.onChange(this.value);
|
|
307
|
+
}
|
|
308
|
+
formatIntegerPart(value) {
|
|
309
|
+
// Format the input value
|
|
310
|
+
const integerPart = value.split(this.decimalSeparator)[0];
|
|
311
|
+
const decimalPart = value.split(this.decimalSeparator)[1];
|
|
312
|
+
if (integerPart.length <= 3) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
let normalizedIntegerPart = removeChar(integerPart, this.thousandsSeparator); // Remove commas
|
|
316
|
+
let formattedValue = addThousandsSeparator(normalizedIntegerPart);
|
|
317
|
+
if (decimalPart !== undefined) {
|
|
318
|
+
formattedValue += this.decimalSeparator + decimalPart;
|
|
319
|
+
}
|
|
320
|
+
this.setProperty('value', formattedValue);
|
|
321
|
+
let newSelectionStart;
|
|
322
|
+
// fix the cursor position after formatting
|
|
323
|
+
if (value.length == 1) {
|
|
324
|
+
newSelectionStart = 1;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
const newValueLength = formattedValue.length;
|
|
328
|
+
const cursorJump = newValueLength - value.length;
|
|
329
|
+
newSelectionStart = Math.max(0, this.selectionStart + cursorJump);
|
|
330
|
+
}
|
|
331
|
+
this.setProperty('selectionStart', newSelectionStart);
|
|
332
|
+
this.setProperty('selectionEnd', newSelectionStart);
|
|
333
|
+
// return formattedValue;
|
|
334
|
+
}
|
|
335
|
+
onBlur() {
|
|
336
|
+
if (this.value !== undefined) {
|
|
337
|
+
let formattedValue = this.formatNumber(this.value);
|
|
338
|
+
this.setProperty('value', formattedValue);
|
|
339
|
+
}
|
|
340
|
+
this.onTouched();
|
|
341
|
+
}
|
|
342
|
+
onPaste(event) {
|
|
343
|
+
// event.
|
|
344
|
+
// value = value.trim();
|
|
345
|
+
}
|
|
346
|
+
updateCursorInfo() {
|
|
347
|
+
let value = this.el.nativeElement.value;
|
|
348
|
+
this.selectionStart = this.el.nativeElement.selectionStart || 0;
|
|
349
|
+
this.selectionEnd = this.el.nativeElement.selectionEnd || 0;
|
|
350
|
+
this.decimalSeparatorPosition = value.indexOf(this.decimalSeparator);
|
|
351
|
+
if (this.decimalSeparatorPosition > -1) {
|
|
352
|
+
this.isCursorInsideIntegerPart = (this.selectionStart <= this.decimalSeparatorPosition);
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
this.isCursorInsideIntegerPart = true;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
formatNumber(n) {
|
|
359
|
+
var isInteger = this.numberType() == 'integer';
|
|
360
|
+
return new Intl.NumberFormat('en-US', {
|
|
361
|
+
useGrouping: this.useGrouping(),
|
|
362
|
+
minimumFractionDigits: isInteger ? 0 : this.minFractionDigits(),
|
|
363
|
+
maximumFractionDigits: isInteger ? 0 : this.maxFractionDigits(),
|
|
364
|
+
style: 'decimal',
|
|
365
|
+
}).format(n);
|
|
366
|
+
}
|
|
367
|
+
isKeyAllowed(key) {
|
|
368
|
+
const allowedKeys = [Keys.backspace, Keys.tab, Keys.arrowLeft, Keys.arrowRight, Keys.delete, Keys.home, Keys.end];
|
|
369
|
+
const input = this.el.nativeElement;
|
|
370
|
+
const value = input.value;
|
|
371
|
+
if (allowedKeys.includes(key)) {
|
|
372
|
+
return true; // allow control/navigation keys
|
|
373
|
+
}
|
|
374
|
+
// Allow one leading minus
|
|
375
|
+
if (key === '-') {
|
|
376
|
+
return (input.selectionStart === 0 || input.selectionEnd === 0) && value.charAt(0) !== '-';
|
|
377
|
+
}
|
|
378
|
+
// Allow one dot for decimal
|
|
379
|
+
if (key === this.decimalSeparator) {
|
|
380
|
+
return (this.numberType() == 'decimal') &&
|
|
381
|
+
(!value.includes(this.decimalSeparator)) &&
|
|
382
|
+
(this.selectionStart == input.value.length);
|
|
383
|
+
}
|
|
384
|
+
// Allow numbers only
|
|
385
|
+
if (/^\d$/.test(key)) {
|
|
386
|
+
if (this.isCursorInsideIntegerPart) {
|
|
387
|
+
return true;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
var decimalPart = value.split(this.decimalSeparator)[1];
|
|
391
|
+
var maxFractionDigits = this.maxFractionDigits();
|
|
392
|
+
if (maxFractionDigits != undefined && decimalPart.length < maxFractionDigits) {
|
|
393
|
+
return true;
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
return this.selectionStart !== this.selectionEnd; // allow a new digit if a substring is selected
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: NumberDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
403
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.6", type: NumberDirective, isStandalone: true, selector: "[ng0Number]", inputs: { minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, numberType: { classPropertyName: "numberType", publicName: "numberType", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeyDown($event)", "input": "onInput($event.target.value)", "blur": "onBlur()", "paste": "onPaste($event)" } }, providers: [
|
|
404
|
+
{
|
|
405
|
+
provide: NG_VALUE_ACCESSOR,
|
|
406
|
+
useExisting: forwardRef(() => NumberDirective),
|
|
407
|
+
multi: true
|
|
408
|
+
}
|
|
409
|
+
], ngImport: i0 });
|
|
410
|
+
}
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: NumberDirective, decorators: [{
|
|
412
|
+
type: Directive,
|
|
413
|
+
args: [{
|
|
414
|
+
selector: '[ng0Number]',
|
|
415
|
+
providers: [
|
|
416
|
+
{
|
|
417
|
+
provide: NG_VALUE_ACCESSOR,
|
|
418
|
+
useExisting: forwardRef(() => NumberDirective),
|
|
419
|
+
multi: true
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
}]
|
|
423
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { onKeyDown: [{
|
|
424
|
+
type: HostListener,
|
|
425
|
+
args: ['keydown', ['$event']]
|
|
426
|
+
}], onInput: [{
|
|
427
|
+
type: HostListener,
|
|
428
|
+
args: ['input', ['$event.target.value']]
|
|
429
|
+
}], onBlur: [{
|
|
430
|
+
type: HostListener,
|
|
431
|
+
args: ['blur']
|
|
432
|
+
}], onPaste: [{
|
|
433
|
+
type: HostListener,
|
|
434
|
+
args: ['paste', ['$event']]
|
|
435
|
+
}] } });
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Generated bundle index. Do not edit.
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
export { CustomValidatorDirective, DigitsOnlyDirective, EqualWithValidatorDirective, FocusDirective, NumberDirective, UrlValidatorDirective, ValidationModule, equalWithValidator };
|
|
442
|
+
//# sourceMappingURL=bootkit-ng0-form.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootkit-ng0-form.mjs","sources":["../../../projects/ng0/form/validation/validators/equal-with/equal-with-validator.ts","../../../projects/ng0/form/validation/validators/equal-with/equal-with.directive.ts","../../../projects/ng0/form/validation/validators/url/url-validator.ts","../../../projects/ng0/form/validation/validators/url/url-validator.directive.ts","../../../projects/ng0/form/validation/validators/custom/custom-validator.directive.ts","../../../projects/ng0/form/validation/validation.module.ts","../../../projects/ng0/form/focus.directive.ts","../../../projects/ng0/form/digits-only.directive.ts","../../../projects/ng0/form/number.directive.ts","../../../projects/ng0/form/bootkit-ng0-form.ts"],"sourcesContent":["import { AbstractControl, ValidatorFn } from '@angular/forms';\r\n\r\nexport function equalWithValidator(targetValue?: string, inequalityMessage?: string): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n const isValid = control.value === targetValue;\r\n\r\n return isValid ? null :\r\n {\r\n equalWith: {\r\n value: control.value,\r\n message: inequalityMessage\r\n }\r\n };\r\n };\r\n}\r\n","import { Directive, Input } from '@angular/core';\r\nimport { AbstractControl, NG_VALIDATORS, Validator } from '@angular/forms';\r\nimport { equalWithValidator } from './equal-with-validator';\r\n\r\n@Directive({\r\n selector: '[ng0EqualWith]',\r\n exportAs: 'ng0EqualWith',\r\n standalone: true,\r\n providers: [\r\n { provide: NG_VALIDATORS, useExisting: EqualWithValidatorDirective, multi: true }\r\n ]\r\n})\r\nexport class EqualWithValidatorDirective implements Validator {\r\n @Input('ng0EqualWith') targetValue?: string;\r\n @Input() inequalityMessage?: string;\r\n\r\n constructor() {\r\n }\r\n\r\n validate(control: AbstractControl): { [key: string]: any } | null {\r\n return equalWithValidator(this.targetValue, this.inequalityMessage)(control);\r\n }\r\n}\r\n","import { AbstractControl, ValidatorFn } from '@angular/forms';\r\nconst urlRegEx = new RegExp('(https?://)?([\\\\da-z.-]+)\\\\.([a-z.]{2,6})[/\\\\w .-]*/?');\r\n\r\nexport function urlValidator(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n const value = (control.value as string);\r\n if (!value || urlRegEx.test(value)) {\r\n return null;\r\n } else {\r\n return {\r\n 'url': {\r\n value\r\n }\r\n };\r\n }\r\n };\r\n}","import { Directive, Input } from '@angular/core';\r\nimport { FormControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\r\nimport { urlValidator } from './url-validator';\r\n\r\n@Directive({\r\n selector: 'input[ng0Url]',\r\n exportAs: 'ng0Url',\r\n standalone: true,\r\n providers: [{ provide: NG_VALIDATORS, useExisting: UrlValidatorDirective, multi: true }]\r\n})\r\nexport class UrlValidatorDirective implements Validator {\r\n /** Directive is enabled or disabled */\r\n @Input() iscUrl?: boolean | string = true;\r\n\r\n validate(control: FormControl): ValidationErrors | null {\r\n return urlValidator()(control);\r\n }\r\n}\r\n","import { Directive, input, Input } from '@angular/core';\r\nimport { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\r\n\r\n@Directive({\r\n selector: '[ng0CustomValidator]',\r\n exportAs: 'ng0CustomValidator',\r\n standalone: true,\r\n providers: [\r\n { provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true }\r\n ]\r\n})\r\nexport class CustomValidatorDirective implements Validator {\r\n validator = input.required<(value: any) => ValidationErrors | null>({alias: 'ng0CustomValidator'});\r\n\r\n constructor() { }\r\n\r\n validate(control: AbstractControl): ValidationErrors | null {\r\n return this.validator()(control);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { EqualWithValidatorDirective } from './validators/equal-with/equal-with.directive';\r\nimport { UrlValidatorDirective } from './validators/url/url-validator.directive';\r\nimport { CustomValidatorDirective } from './validators/custom/custom-validator.directive';\r\n\r\nconst items = [\r\n // ErrorDirective,\r\n // FirstErrorDirective,\r\n\r\n // Validators\r\n EqualWithValidatorDirective,\r\n UrlValidatorDirective,\r\n CustomValidatorDirective,\r\n];\r\n\r\n@NgModule({\r\n imports: items,\r\n exports: items,\r\n})\r\nexport class ValidationModule { }\r\n","import { Directive, ElementRef, Input, OnChanges, SimpleChanges, OnInit } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[ng0Focus]',\r\n exportAs: 'ng0Focus',\r\n standalone: true\r\n})\r\nexport class FocusDirective implements OnInit, OnChanges {\r\n @Input() focusOnLoad = true;\r\n @Input() focusWhen?: boolean;\r\n private focused = false;\r\n\r\n constructor(private elementRef: ElementRef) {\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.focusOnLoad) {\r\n setTimeout(() => {\r\n this.elementRef.nativeElement.focus();\r\n });\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['focusWhen']) {\r\n if (this.focusWhen) {\r\n setTimeout(() => {\r\n this.elementRef.nativeElement.focus();\r\n });\r\n }\r\n }\r\n }\r\n}\r\n","import { Directive, ElementRef, Host, HostListener, Input } from '@angular/core';\r\n\r\n@Directive({\r\n standalone: true,\r\n selector: '[iscDigitsOnly]',\r\n exportAs: 'iscDigitsOnly',\r\n})\r\nexport class DigitsOnlyDirective {\r\n\r\n constructor(private elementRef: ElementRef) {\r\n }\r\n\r\n @HostListener('keydown', ['$event']) private onKeyDown(e: KeyboardEvent) {\r\n var allowedKeys = ['Tab', 'Backspace', 'ArrowLeft', 'ArrowRight'];\r\n if (!isFinite(e.key as any) && !allowedKeys.some(k => e.key == k)) {\r\n e.preventDefault()\r\n }\r\n }\r\n}\r\n","import { Directive, HostListener, forwardRef, ElementRef, Renderer2, input } from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { formatNumber } from '@angular/common';\r\n\r\nconst addThousandsSeparator = (str: string) => str.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\r\nconst isValidNumber = (str: string) => str.trim() !== '' && !isNaN(Number(str));\r\nconst removeChar = (str: string, charToRemove: string) => str.split(charToRemove).join('');\r\n\r\nconst Keys = {\r\n backspace: 'Backspace',\r\n tab: 'Tab',\r\n arrowLeft: 'ArrowLeft',\r\n arrowRight: 'ArrowRight',\r\n delete: 'Delete',\r\n home: 'Home',\r\n end: 'End'\r\n}\r\n\r\n@Directive({\r\n selector: '[ng0Number]',\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NumberDirective),\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class NumberDirective implements ControlValueAccessor {\r\n minFractionDigits = input<number | undefined>(3);\r\n maxFractionDigits = input<number| undefined>(10);\r\n useGrouping = input<boolean>(false);\r\n numberType = input<'decimal' | 'integer'>('integer');\r\n private onChange = (_: any) => { };\r\n private onTouched = () => { };\r\n private decimalSeparator!: string;\r\n private thousandsSeparator: string = ',';\r\n private selectionStart: number = 0;\r\n private selectionEnd: number = 0;\r\n private isCursorInsideIntegerPart: boolean = false;\r\n private decimalSeparatorPosition = -1;\r\n private value?: number;\r\n private setProperty = (prop: string, value: any) => this.renderer.setProperty(this.el.nativeElement, prop, value);\r\n\r\n constructor(\r\n private el: ElementRef<HTMLInputElement>,\r\n private renderer: Renderer2,\r\n // private locale: Locale,\r\n ) { }\r\n\r\n ngOnInit() {\r\n // Use Intl.NumberFormat to find decimal separator for locale\r\n const formatted = formatNumber(1.1, 'en', '1.1-1');\r\n this.decimalSeparator = formatted.replace(/\\d/g, '') || '.';\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.setProperty('disabled', isDisabled);\r\n }\r\n\r\n writeValue(value: any): void {\r\n var inputValue: string;\r\n\r\n if (value === undefined || value === null) {\r\n inputValue = '';\r\n this.value = undefined;\r\n } else if (typeof value === 'number') {\r\n inputValue = this.formatNumber(value);\r\n this.value = value;\r\n }\r\n else if (typeof value === 'string') {\r\n const parsedValue = this.value = Number.parseFloat(value);\r\n inputValue = this.formatNumber(parsedValue);\r\n } else {\r\n console.error('NumberDirective: Unsupported value type', value);\r\n inputValue = 'Invalid';\r\n }\r\n\r\n this.setProperty('value', inputValue);\r\n }\r\n\r\n @HostListener('keydown', ['$event'])\r\n private onKeyDown(event: KeyboardEvent) {\r\n this.updateCursorInfo();\r\n\r\n if (!this.isKeyAllowed(event.key)) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n const key = event.key;\r\n\r\n if (key == Keys.backspace) {\r\n if (this.selectionStart > 1 && (this.selectionStart === this.selectionEnd)) {\r\n let value = this.el.nativeElement.value;\r\n let beforeSelection = value.charAt(this.selectionStart - 1);\r\n if (beforeSelection === ',') {\r\n // If the character before the cursor is a comma, we need to skip it\r\n this.setProperty('selectionStart', this.selectionStart - 2);\r\n }\r\n }\r\n }\r\n }\r\n\r\n @HostListener('input', ['$event.target.value'])\r\n private onInput(s: string) {\r\n if (s === '') {\r\n this.value = undefined;\r\n this.onChange(undefined);\r\n return;\r\n }\r\n\r\n this.updateCursorInfo();\r\n\r\n if (this.isCursorInsideIntegerPart) {\r\n this.formatIntegerPart(s);\r\n }\r\n\r\n var number = Number(removeChar(this.el.nativeElement.value, this.thousandsSeparator));\r\n this.value = isNaN(number) ? undefined : number;\r\n this.onChange(this.value);\r\n }\r\n\r\n private formatIntegerPart(value: string) {\r\n // Format the input value\r\n const integerPart = value.split(this.decimalSeparator)[0];\r\n const decimalPart = value.split(this.decimalSeparator)[1];\r\n\r\n if (integerPart.length <= 3) {\r\n return;\r\n }\r\n\r\n let normalizedIntegerPart = removeChar(integerPart, this.thousandsSeparator); // Remove commas\r\n\r\n let formattedValue = addThousandsSeparator(normalizedIntegerPart);\r\n if (decimalPart !== undefined) {\r\n formattedValue += this.decimalSeparator + decimalPart;\r\n }\r\n\r\n this.setProperty('value', formattedValue);\r\n let newSelectionStart: number;\r\n\r\n // fix the cursor position after formatting\r\n if (value.length == 1) {\r\n newSelectionStart = 1;\r\n } else {\r\n const newValueLength = formattedValue.length;\r\n const cursorJump = newValueLength - value.length;\r\n newSelectionStart = Math.max(0, this.selectionStart + cursorJump);\r\n }\r\n\r\n this.setProperty('selectionStart', newSelectionStart);\r\n this.setProperty('selectionEnd', newSelectionStart);\r\n\r\n // return formattedValue;\r\n }\r\n\r\n @HostListener('blur')\r\n private onBlur() {\r\n if (this.value !== undefined) {\r\n let formattedValue = this.formatNumber(this.value);\r\n this.setProperty('value', formattedValue);\r\n }\r\n\r\n this.onTouched();\r\n }\r\n\r\n @HostListener('paste', ['$event'])\r\n private onPaste(event: ClipboardEvent) {\r\n // event.\r\n // value = value.trim();\r\n }\r\n\r\n private updateCursorInfo() {\r\n let value = this.el.nativeElement.value;\r\n this.selectionStart = this.el.nativeElement.selectionStart || 0;\r\n this.selectionEnd = this.el.nativeElement.selectionEnd || 0;\r\n\r\n this.decimalSeparatorPosition = value.indexOf(this.decimalSeparator);\r\n if (this.decimalSeparatorPosition > -1) {\r\n this.isCursorInsideIntegerPart = (this.selectionStart <= this.decimalSeparatorPosition);\r\n } else {\r\n this.isCursorInsideIntegerPart = true;\r\n }\r\n }\r\n\r\n private formatNumber(n: number): string {\r\n var isInteger = this.numberType() == 'integer';\r\n return new Intl.NumberFormat('en-US', {\r\n useGrouping: this.useGrouping(),\r\n minimumFractionDigits: isInteger ? 0 : this.minFractionDigits(),\r\n maximumFractionDigits: isInteger ? 0 : this.maxFractionDigits(),\r\n style: 'decimal',\r\n }).format(n);\r\n }\r\n\r\n private isKeyAllowed(key: string) {\r\n const allowedKeys = [Keys.backspace, Keys.tab, Keys.arrowLeft, Keys.arrowRight, Keys.delete, Keys.home, Keys.end];\r\n const input = this.el.nativeElement;\r\n const value = input.value;\r\n\r\n if (allowedKeys.includes(key)) {\r\n return true; // allow control/navigation keys\r\n }\r\n\r\n // Allow one leading minus\r\n if (key === '-') {\r\n return (input.selectionStart === 0 || input.selectionEnd === 0) && value.charAt(0) !== '-';\r\n }\r\n\r\n // Allow one dot for decimal\r\n if (key === this.decimalSeparator) {\r\n return (this.numberType() == 'decimal') &&\r\n (!value.includes(this.decimalSeparator)) &&\r\n (this.selectionStart == input.value.length);\r\n }\r\n\r\n // Allow numbers only\r\n if (/^\\d$/.test(key)) {\r\n if (this.isCursorInsideIntegerPart) {\r\n return true;\r\n } else {\r\n var decimalPart = value.split(this.decimalSeparator)[1];\r\n var maxFractionDigits = this.maxFractionDigits();\r\n if (maxFractionDigits != undefined && decimalPart.length < maxFractionDigits) {\r\n return true;\r\n } else {\r\n return this.selectionStart !== this.selectionEnd; // allow a new digit if a substring is selected\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAEgB,SAAA,kBAAkB,CAAC,WAAoB,EAAE,iBAA0B,EAAA;IAC7E,OAAO,CAAC,OAAwB,KAAmC;AAC7D,QAAA,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,KAAK,WAAW;AAE7C,QAAA,OAAO,OAAO,GAAG,IAAI;AACf,YAAA;AACM,gBAAA,SAAS,EAAE;oBACL,KAAK,EAAE,OAAO,CAAC,KAAK;AACpB,oBAAA,OAAO,EAAE;AACd;aACN;AACb,KAAC;AACP;;MCFa,2BAA2B,CAAA;AACX,IAAA,WAAW;AACzB,IAAA,iBAAiB;AAE1B,IAAA,WAAA,GAAA;;AAGA,IAAA,QAAQ,CAAC,OAAwB,EAAA;AAC3B,QAAA,OAAO,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;;uGAR3E,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CA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