Skip to content

Commit

Permalink
deploy: 0d3c51b
Browse files Browse the repository at this point in the history
  • Loading branch information
NepipenkoIgor committed Dec 13, 2024
1 parent 4755521 commit f24dfbd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<html lang="en">
<head><meta http-equiv="Content-Security-Policy" content="script-src 'strict-dynamic' 'sha256-YOOpBjbZKXe8oMYJ4lm1b+UkSe1/b0J52e+z/pM9s9Y=' https: 'unsafe-inline';object-src 'none';base-uri 'self';">
<head><meta http-equiv="Content-Security-Policy" content="script-src 'strict-dynamic' 'sha256-DWnFMmuXziI8Jxr0reWS4y4sG73FpYMjbczllb2MQ+Y=' https: 'unsafe-inline';object-src 'none';base-uri 'self';">
<meta charset="utf-8"/>
<title>Ngx Mask | JSDaddy</title>
<base href="/ngx-mask/"/>
Expand All @@ -11,7 +11,7 @@
<body>
<jsdaddy-open-source-root></jsdaddy-open-source-root>
<link rel="modulepreload" href="chunk-46DXP6YY.js"><script>
var scripts = [['main-YP2YUK7N.js', 'module', false, false]];
var scripts = [['main-ESAZLW5U.js', 'module', false, false]];
scripts.forEach(function(scriptUrl) {
var s = document.createElement('script');
s.src = scriptUrl[0];
Expand Down
18 changes: 12 additions & 6 deletions main-YP2YUK7N.js → main-ESAZLW5U.js
Original file line number Diff line number Diff line change
Expand Up @@ -39278,6 +39278,7 @@ var initialConfig = {
decimalMarker: [".", ","],
clearIfNotMatch: false,
showMaskTyped: false,
instantPrefix: false,
placeHolderCharacter: "_",
dropSpecialCharacters: true,
hiddenInput: false,
Expand Down Expand Up @@ -39379,6 +39380,7 @@ var NgxMaskApplierService = class _NgxMaskApplierService {
inputTransformFn = this._config.inputTransformFn;
outputTransformFn = this._config.outputTransformFn;
keepCharacterPositions = this._config.keepCharacterPositions;
instantPrefix = this._config.instantPrefix;
_shift = /* @__PURE__ */ new Set();
plusOnePosition = false;
maskExpression = "";
Expand Down Expand Up @@ -39692,7 +39694,7 @@ var NgxMaskApplierService = class _NgxMaskApplierService {
}
let res = `${this.prefix}${onlySpecial ? MaskExpression.EMPTY_STRING : result}${this.showMaskTyped ? "" : this.suffix}`;
if (result.length === 0) {
res = !this.dropSpecialCharacters ? `${this.prefix}${result}` : `${result}`;
res = this.instantPrefix ? `${this.prefix}${result}` : `${result}`;
}
const isSpecialCharacterMaskFirstSymbol = processedValue.length === 1 && this.specialCharacters.includes(maskExpression[0]) && processedValue !== maskExpression[0];
if (!this._checkSymbolMask(processedValue, maskExpression[1]) && isSpecialCharacterMaskFirstSymbol) {
Expand Down Expand Up @@ -40385,6 +40387,7 @@ var NgxMaskDirective = class _NgxMaskDirective {
inputTransformFn = input(null);
outputTransformFn = input(null);
keepCharacterPositions = input(null);
instantPrefix = input(null);
maskFilled = output();
_maskValue = signal("");
_inputValue = signal("");
Expand All @@ -40402,7 +40405,7 @@ var NgxMaskDirective = class _NgxMaskDirective {
onTouch = () => {
};
ngOnChanges(changes) {
const { mask, specialCharacters, patterns, prefix, suffix, thousandSeparator, decimalMarker, dropSpecialCharacters, hiddenInput, showMaskTyped, placeHolderCharacter, shownMaskExpression, clearIfNotMatch, validation, separatorLimit, allowNegativeNumbers, leadZeroDateTime, leadZero, triggerOnMaskChange, apm, inputTransformFn, outputTransformFn, keepCharacterPositions } = changes;
const { mask, specialCharacters, patterns, prefix, suffix, thousandSeparator, decimalMarker, dropSpecialCharacters, hiddenInput, showMaskTyped, placeHolderCharacter, shownMaskExpression, clearIfNotMatch, validation, separatorLimit, allowNegativeNumbers, leadZeroDateTime, leadZero, triggerOnMaskChange, apm, inputTransformFn, outputTransformFn, keepCharacterPositions, instantPrefix } = changes;
if (mask) {
if (mask.currentValue !== mask.previousValue && !mask.firstChange) {
this._maskService.maskChanged = true;
Expand Down Expand Up @@ -40437,6 +40440,9 @@ var NgxMaskDirective = class _NgxMaskDirective {
if (apm && apm.currentValue) {
this._maskService.apm = apm.currentValue;
}
if (instantPrefix) {
this._maskService.instantPrefix = instantPrefix.currentValue;
}
if (prefix) {
this._maskService.prefix = prefix.currentValue;
}
Expand Down Expand Up @@ -40887,7 +40893,7 @@ var NgxMaskDirective = class _NgxMaskDirective {
}
this._maskService.isNumberValue = true;
}
if (typeof inputValue !== "string") {
if (typeof inputValue !== "string" || value === null || typeof value === "undefined") {
inputValue = "";
}
this._inputValue.set(inputValue);
Expand Down Expand Up @@ -41030,7 +41036,7 @@ var NgxMaskDirective = class _NgxMaskDirective {
return ctx.onKeyDown($event);
});
}
}, inputs: { mask: [1, "mask"], specialCharacters: [1, "specialCharacters"], patterns: [1, "patterns"], prefix: [1, "prefix"], suffix: [1, "suffix"], thousandSeparator: [1, "thousandSeparator"], decimalMarker: [1, "decimalMarker"], dropSpecialCharacters: [1, "dropSpecialCharacters"], hiddenInput: [1, "hiddenInput"], showMaskTyped: [1, "showMaskTyped"], placeHolderCharacter: [1, "placeHolderCharacter"], shownMaskExpression: [1, "shownMaskExpression"], clearIfNotMatch: [1, "clearIfNotMatch"], validation: [1, "validation"], separatorLimit: [1, "separatorLimit"], allowNegativeNumbers: [1, "allowNegativeNumbers"], leadZeroDateTime: [1, "leadZeroDateTime"], leadZero: [1, "leadZero"], triggerOnMaskChange: [1, "triggerOnMaskChange"], apm: [1, "apm"], inputTransformFn: [1, "inputTransformFn"], outputTransformFn: [1, "outputTransformFn"], keepCharacterPositions: [1, "keepCharacterPositions"] }, outputs: { maskFilled: "maskFilled" }, exportAs: ["mask", "ngxMask"], features: [\u0275\u0275ProvidersFeature([
}, inputs: { mask: [1, "mask"], specialCharacters: [1, "specialCharacters"], patterns: [1, "patterns"], prefix: [1, "prefix"], suffix: [1, "suffix"], thousandSeparator: [1, "thousandSeparator"], decimalMarker: [1, "decimalMarker"], dropSpecialCharacters: [1, "dropSpecialCharacters"], hiddenInput: [1, "hiddenInput"], showMaskTyped: [1, "showMaskTyped"], placeHolderCharacter: [1, "placeHolderCharacter"], shownMaskExpression: [1, "shownMaskExpression"], clearIfNotMatch: [1, "clearIfNotMatch"], validation: [1, "validation"], separatorLimit: [1, "separatorLimit"], allowNegativeNumbers: [1, "allowNegativeNumbers"], leadZeroDateTime: [1, "leadZeroDateTime"], leadZero: [1, "leadZero"], triggerOnMaskChange: [1, "triggerOnMaskChange"], apm: [1, "apm"], inputTransformFn: [1, "inputTransformFn"], outputTransformFn: [1, "outputTransformFn"], keepCharacterPositions: [1, "keepCharacterPositions"], instantPrefix: [1, "instantPrefix"] }, outputs: { maskFilled: "maskFilled" }, exportAs: ["mask", "ngxMask"], features: [\u0275\u0275ProvidersFeature([
{
provide: NG_VALUE_ACCESSOR,
useExisting: _NgxMaskDirective,
Expand Down Expand Up @@ -48740,7 +48746,7 @@ var AppComponent = class _AppComponent {
static \u0275fac = function AppComponent_Factory(__ngFactoryType__) {
return new (__ngFactoryType__ || _AppComponent)();
};
static \u0275cmp = \u0275\u0275defineComponent({ type: _AppComponent, selectors: [["jsdaddy-open-source-root"]], features: [\u0275\u0275ProvidersFeature([{ provide: VersionToken, useValue: "1.16.3" }])], decls: 22, vars: 7, consts: [[1, "flex", "flex-col"], [3, "activeLink"], [1, "flex", "overflow-auto", "mt-[64px]"], [1, "drawer-container", "flex", "flex-col"], [3, "switchCardIndex", "lists"], [1, "flex", "flex-col", "w-full", "p-0", "mt-[55px]", "desk:mt-0", "desk:pl-[310px]"], [3, "title", "subtitle", "chips"], [3, "cardDocs", "cardExamples"]], template: function AppComponent_Template(rf, ctx) {
static \u0275cmp = \u0275\u0275defineComponent({ type: _AppComponent, selectors: [["jsdaddy-open-source-root"]], features: [\u0275\u0275ProvidersFeature([{ provide: VersionToken, useValue: "1.16.4" }])], decls: 22, vars: 7, consts: [[1, "flex", "flex-col"], [3, "activeLink"], [1, "flex", "overflow-auto", "mt-[64px]"], [1, "drawer-container", "flex", "flex-col"], [3, "switchCardIndex", "lists"], [1, "flex", "flex-col", "w-full", "p-0", "mt-[55px]", "desk:mt-0", "desk:pl-[310px]"], [3, "title", "subtitle", "chips"], [3, "cardDocs", "cardExamples"]], template: function AppComponent_Template(rf, ctx) {
if (rf & 1) {
\u0275\u0275elementStart(0, "div", 0);
\u0275\u0275text(1, "\n ");
Expand Down Expand Up @@ -53493,4 +53499,4 @@ bootstrapApplication(AppComponent, {
* License: MIT
*)
*/
//# sourceMappingURL=main-YP2YUK7N.js.map
//# sourceMappingURL=main-ESAZLW5U.js.map
2 changes: 1 addition & 1 deletion main-YP2YUK7N.js.map → main-ESAZLW5U.js.map

Large diffs are not rendered by default.

0 comments on commit f24dfbd

Please sign in to comment.