duck-dev-lib 0.0.35 → 0.0.36
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.
|
@@ -2163,45 +2163,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
2163
2163
|
|
|
2164
2164
|
const PLACEHOLDER = '+375 (хх) ххх-хх-хх';
|
|
2165
2165
|
const { removePlaceholder, plugins, ...placeholderOptions } = maskitoWithPlaceholder(PLACEHOLDER);
|
|
2166
|
-
var inputBlock = {
|
|
2167
|
-
preprocessors: placeholderOptions.preprocessors,
|
|
2168
|
-
postprocessors: [
|
|
2169
|
-
maskitoPrefixPostprocessorGenerator('+375'),
|
|
2170
|
-
...placeholderOptions.postprocessors,
|
|
2171
|
-
],
|
|
2172
|
-
mask: [
|
|
2173
|
-
'+',
|
|
2174
|
-
'3',
|
|
2175
|
-
'7',
|
|
2176
|
-
'5',
|
|
2177
|
-
' ',
|
|
2178
|
-
'(',
|
|
2179
|
-
/\d/,
|
|
2180
|
-
/\d/,
|
|
2181
|
-
')',
|
|
2182
|
-
' ',
|
|
2183
|
-
/\d/,
|
|
2184
|
-
/\d/,
|
|
2185
|
-
/\d/,
|
|
2186
|
-
'-',
|
|
2187
|
-
/\d/,
|
|
2188
|
-
/\d/,
|
|
2189
|
-
'-',
|
|
2190
|
-
/\d/,
|
|
2191
|
-
/\d/,
|
|
2192
|
-
],
|
|
2193
|
-
plugins: [
|
|
2194
|
-
...plugins,
|
|
2195
|
-
maskitoEventHandler('focus', (element) => {
|
|
2196
|
-
const initialValue = element.value || '+375 (';
|
|
2197
|
-
maskitoUpdateElement(element, initialValue + PLACEHOLDER.slice(initialValue.length));
|
|
2198
|
-
}),
|
|
2199
|
-
maskitoEventHandler('blur', (element) => {
|
|
2200
|
-
const cleanValue = removePlaceholder(element.value);
|
|
2201
|
-
maskitoUpdateElement(element, cleanValue === '+375' ? '' : cleanValue);
|
|
2202
|
-
}),
|
|
2203
|
-
],
|
|
2204
|
-
};
|
|
2205
2166
|
class InputBlock {
|
|
2206
2167
|
fb = inject(FormBuilder);
|
|
2207
2168
|
form;
|