Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ngx-mask to v16.4.0 #1442

Merged
merged 2 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions web/autosubliminal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/autosubliminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"natural-compare": "1.4.0",
"ng-lazyload-image": "9.1.3",
"ngx-countdown": "16.0.0",
"ngx-mask": "16.3.9",
"ngx-mask": "16.4.0",
"ngx-webstorage": "12.0.0",
"ngx-window-token": "7.0.0",
"primeicons": "6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion web/autosubliminal/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

<body>
<app-root></app-root>
<script src="runtime.184f8f6218cce338.js" type="module"></script><script src="polyfills.eedc44092fabcb8f.js" type="module"></script><script src="scripts.4cc9680d69b62987.js" defer></script><script src="main.771ab5ea7d7ef45f.js" type="module"></script></body>
<script src="runtime.184f8f6218cce338.js" type="module"></script><script src="polyfills.eedc44092fabcb8f.js" type="module"></script><script src="scripts.4cc9680d69b62987.js" defer></script><script src="main.10454c8be75297dd.js" type="module"></script></body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -91359,7 +91359,7 @@ let NgxMaskApplierService = /*#__PURE__*/(() => {
if (maskExpression[cursor] === "H" /* MaskExpression.HOURS */) {
if (this.apm ? Number(inputSymbol) > 9 : Number(inputSymbol) > 2) {
// eslint-disable-next-line no-param-reassign
position = position + 1;
position = !this.leadZeroDateTime ? position + 1 : position;
cursor += 1;
this._shiftStep(maskExpression, cursor, inputArray.length);
i--;
Expand All @@ -91381,7 +91381,7 @@ let NgxMaskApplierService = /*#__PURE__*/(() => {
if (maskExpression[cursor] === "m" /* MaskExpression.MINUTE */ || maskExpression[cursor] === "s" /* MaskExpression.SECOND */) {
if (Number(inputSymbol) > 5) {
// eslint-disable-next-line no-param-reassign
position = position + 1;
position = !this.leadZeroDateTime ? position + 1 : position;
cursor += 1;
this._shiftStep(maskExpression, cursor, inputArray.length);
i--;
Expand All @@ -91407,7 +91407,7 @@ let NgxMaskApplierService = /*#__PURE__*/(() => {
const startWithMonthInput = maskExpression.slice(0, 2) === "M0" /* MaskExpression.MONTHS */ && this.specialCharacters.includes(inputValueCursorMinusTwo);
if (Number(inputSymbol) > 3 && this.leadZeroDateTime || !maskStartWithMonth && (Number(inputValueSliceCursorPlusTwo) > daysCount || Number(inputValueSliceMinusOnePlusOne) > daysCount || this.specialCharacters.includes(inputValueCursorPlusOne)) || (startWithMonthInput ? Number(inputValueSliceMinusOnePlusOne) > daysCount || !this.specialCharacters.includes(inputValueCursor) && this.specialCharacters.includes(inputValueCursorPlusTwo) || this.specialCharacters.includes(inputValueCursor) : Number(inputValueSliceCursorPlusTwo) > daysCount || this.specialCharacters.includes(inputValueCursorPlusOne))) {
// eslint-disable-next-line no-param-reassign
position = position + 1;
position = !this.leadZeroDateTime ? position + 1 : position;
cursor += 1;
this._shiftStep(maskExpression, cursor, inputArray.length);
i--;
Expand All @@ -91434,7 +91434,7 @@ let NgxMaskApplierService = /*#__PURE__*/(() => {
const day2monthPaste = Number(inputValueSliceMinusThreeMinusOne) <= daysCount && !this.specialCharacters.includes(inputValueSliceMinusThreeMinusOne) && !this.specialCharacters.includes(inputValueCursorMinusOne) && Number(inputValueSliceMinusOnePlusOne) > monthsCount;
if (Number(inputSymbol) > 1 && this.leadZeroDateTime || withoutDays || day1monthInput || day2monthPaste || day1monthPaste || day2monthInput || day2monthInputDot && !this.leadZeroDateTime) {
// eslint-disable-next-line no-param-reassign
position = position + 1;
position = !this.leadZeroDateTime ? position + 1 : position;
cursor += 1;
this._shiftStep(maskExpression, cursor, inputArray.length);
i--;
Expand Down Expand Up @@ -91655,6 +91655,9 @@ let NgxMaskService = /*#__PURE__*/(() => {
if (justPasted && (this.hiddenInput || !this.hiddenInput)) {
newInputValue = inputValue;
}
if (backspaced && this.specialCharacters.indexOf(this.maskExpression[position] ?? "" /* MaskExpression.EMPTY_STRING */) !== -1 && this.showMaskTyped) {
newInputValue = this._currentValue;
}
if (this.deletedSpecialCharacter && position) {
if (this.specialCharacters.includes(this.actualValue.slice(position, position + 1))) {
// eslint-disable-next-line no-param-reassign
Expand Down Expand Up @@ -91977,9 +91980,13 @@ let NgxMaskService = /*#__PURE__*/(() => {
return value ? value.replace(this.suffix, "" /* MaskExpression.EMPTY_STRING */) : value;
}
_retrieveSeparatorValue(result) {
const specialCharacters = Array.isArray(this.dropSpecialCharacters) ? this.specialCharacters.filter(v => {
let specialCharacters = Array.isArray(this.dropSpecialCharacters) ? this.specialCharacters.filter(v => {
return this.dropSpecialCharacters.includes(v);
}) : this.specialCharacters;
if (!this.deletedSpecialCharacter && this._checkPatternForSpace() && result.includes(" " /* MaskExpression.WHITE_SPACE */)) {
specialCharacters = specialCharacters.filter(char => char !== " " /* MaskExpression.WHITE_SPACE */);
}

return this._removeMask(result, specialCharacters);
}
_regExpForRemove(specialCharactersForRemove) {
Expand Down Expand Up @@ -92016,6 +92023,19 @@ let NgxMaskService = /*#__PURE__*/(() => {
return separatorValue;
}
}
_checkPatternForSpace() {
for (const key in this.patterns) {
// eslint-disable-next-line no-prototype-builtins
if (this.patterns[key] && this.patterns[key]?.hasOwnProperty('pattern')) {
const patternString = this.patterns[key]?.pattern.toString();
const pattern = this.patterns[key]?.pattern;
if (patternString?.includes(" " /* MaskExpression.WHITE_SPACE */) && pattern?.test(this.maskExpression)) {
return true;
}
}
}
return false;
}
// TODO should think about helpers or separting decimal precision to own property
_retrieveSeparatorPrecision(maskExpretion) {
const matcher = maskExpretion.match(new RegExp(`^separator\\.([^d]*)`));
Expand Down Expand Up @@ -92175,13 +92195,6 @@ let NgxMaskDirective = /*#__PURE__*/(() => {
if (maskExpression.currentValue !== maskExpression.previousValue && !maskExpression.firstChange) {
this._maskService.maskChanged = true;
}
if (allowNegativeNumbers) {
this._maskService.allowNegativeNumbers = allowNegativeNumbers.currentValue;
if (this._maskService.allowNegativeNumbers) {
this._maskService.specialCharacters = this._maskService.specialCharacters.filter(c => c !== "-" /* MaskExpression.MINUS */);
}
}

if (maskExpression.currentValue && maskExpression.currentValue.split("||" /* MaskExpression.OR */).length > 1) {
this._maskExpressionArray = maskExpression.currentValue.split("||" /* MaskExpression.OR */).sort((a, b) => {
return a.length - b.length;
Expand All @@ -92193,6 +92206,13 @@ let NgxMaskDirective = /*#__PURE__*/(() => {
this._maskService.maskExpression = this._maskValue;
}
}
if (allowNegativeNumbers) {
this._maskService.allowNegativeNumbers = allowNegativeNumbers.currentValue;
if (this._maskService.allowNegativeNumbers) {
this._maskService.specialCharacters = this._maskService.specialCharacters.filter(c => c !== "-" /* MaskExpression.MINUS */);
}
}

if (specialCharacters) {
if (!specialCharacters.currentValue || !Array.isArray(specialCharacters.currentValue)) {
return;
Expand Down Expand Up @@ -92880,6 +92900,9 @@ let NgxMaskPipe = /*#__PURE__*/(() => {

this._maskService.isNumberValue = true;
}
if (value === null || value === undefined) {
return this._maskService.applyMask('', mask);
}
return this._maskService.applyMask(`${value}`, mask);
}
_setMask(value) {
Expand Down Expand Up @@ -101401,4 +101424,4 @@ function __disposeResources(env) {
/******/ var __webpack_exports__ = (__webpack_exec__(4913));
/******/ }
]);
//# sourceMappingURL=main.771ab5ea7d7ef45f.js.map
//# sourceMappingURL=main.10454c8be75297dd.js.map

Large diffs are not rendered by default.