matcha-components 20.40.0 → 20.42.0
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/fesm2022/matcha-components.mjs +68 -74
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +106 -53
- package/package.json +1 -1
|
@@ -4855,9 +4855,9 @@ function applyPhoneMask(country) {
|
|
|
4855
4855
|
return masks;
|
|
4856
4856
|
}
|
|
4857
4857
|
|
|
4858
|
-
const
|
|
4859
|
-
const NEW_CONFIG = new InjectionToken('new
|
|
4860
|
-
const INITIAL_CONFIG = new InjectionToken('initial
|
|
4858
|
+
const MATCHA_MASK_CONFIG = new InjectionToken('matcha-mask config');
|
|
4859
|
+
const NEW_CONFIG = new InjectionToken('new matcha-mask config');
|
|
4860
|
+
const INITIAL_CONFIG = new InjectionToken('initial matcha-mask config');
|
|
4861
4861
|
const initialConfig = {
|
|
4862
4862
|
suffix: '',
|
|
4863
4863
|
prefix: '',
|
|
@@ -4943,9 +4943,9 @@ const withoutValidation = [
|
|
|
4943
4943
|
"M0" /* MaskExpression.MONTHS */,
|
|
4944
4944
|
];
|
|
4945
4945
|
|
|
4946
|
-
class
|
|
4946
|
+
class MatchaMaskApplierService {
|
|
4947
4947
|
constructor() {
|
|
4948
|
-
this._config = inject(
|
|
4948
|
+
this._config = inject(MATCHA_MASK_CONFIG);
|
|
4949
4949
|
this.dropSpecialCharacters = this._config.dropSpecialCharacters;
|
|
4950
4950
|
this.hiddenInput = this._config.hiddenInput;
|
|
4951
4951
|
this.clearIfNotMatch = this._config.clearIfNotMatch;
|
|
@@ -5707,14 +5707,14 @@ class NgxMaskApplierService {
|
|
|
5707
5707
|
nonZeroIndex,
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
5710
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
5711
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
5710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskApplierService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5711
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskApplierService }); }
|
|
5712
5712
|
}
|
|
5713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
5713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskApplierService, decorators: [{
|
|
5714
5714
|
type: Injectable
|
|
5715
5715
|
}] });
|
|
5716
5716
|
|
|
5717
|
-
class
|
|
5717
|
+
class MatchaMaskService extends MatchaMaskApplierService {
|
|
5718
5718
|
constructor() {
|
|
5719
5719
|
super(...arguments);
|
|
5720
5720
|
this.isNumberValue = false;
|
|
@@ -5735,7 +5735,7 @@ class NgxMaskService extends NgxMaskApplierService {
|
|
|
5735
5735
|
this.onChange = (_) => { };
|
|
5736
5736
|
this._elementRef = inject(ElementRef, { optional: true });
|
|
5737
5737
|
this.document = inject(DOCUMENT);
|
|
5738
|
-
this._config = inject(
|
|
5738
|
+
this._config = inject(MATCHA_MASK_CONFIG);
|
|
5739
5739
|
this._renderer = inject(Renderer2, { optional: true });
|
|
5740
5740
|
}
|
|
5741
5741
|
/**
|
|
@@ -6357,14 +6357,14 @@ class NgxMaskService extends NgxMaskApplierService {
|
|
|
6357
6357
|
currentLocaleDecimalMarker() {
|
|
6358
6358
|
return (1.1).toLocaleString().substring(1, 2);
|
|
6359
6359
|
}
|
|
6360
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
6361
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
6360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6361
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskService }); }
|
|
6362
6362
|
}
|
|
6363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
6363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskService, decorators: [{
|
|
6364
6364
|
type: Injectable
|
|
6365
6365
|
}] });
|
|
6366
6366
|
|
|
6367
|
-
class
|
|
6367
|
+
class MatchaMaskDirective {
|
|
6368
6368
|
constructor() {
|
|
6369
6369
|
this.mask = input('', ...(ngDevMode ? [{ debugName: "mask" }] : []));
|
|
6370
6370
|
this.specialCharacters = input([], ...(ngDevMode ? [{ debugName: "specialCharacters" }] : []));
|
|
@@ -6400,9 +6400,9 @@ class NgxMaskDirective {
|
|
|
6400
6400
|
this._isFocused = signal(false, ...(ngDevMode ? [{ debugName: "_isFocused" }] : []));
|
|
6401
6401
|
/**For IME composition event */
|
|
6402
6402
|
this._isComposing = signal(false, ...(ngDevMode ? [{ debugName: "_isComposing" }] : []));
|
|
6403
|
-
this._maskService = inject(
|
|
6403
|
+
this._maskService = inject(MatchaMaskService, { self: true });
|
|
6404
6404
|
this.document = inject(DOCUMENT);
|
|
6405
|
-
this._config = inject(
|
|
6405
|
+
this._config = inject(MATCHA_MASK_CONFIG);
|
|
6406
6406
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6407
6407
|
this.onChange = (_) => { };
|
|
6408
6408
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -6864,7 +6864,7 @@ class NgxMaskDirective {
|
|
|
6864
6864
|
}
|
|
6865
6865
|
else {
|
|
6866
6866
|
// eslint-disable-next-line no-console
|
|
6867
|
-
console.warn('
|
|
6867
|
+
console.warn('Matcha-mask writeValue work with string | number, your current value:', typeof transformedValue);
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
6870
|
else {
|
|
@@ -7120,7 +7120,7 @@ class NgxMaskDirective {
|
|
|
7120
7120
|
}
|
|
7121
7121
|
else {
|
|
7122
7122
|
// eslint-disable-next-line no-console
|
|
7123
|
-
console.warn('
|
|
7123
|
+
console.warn('Matcha-mask writeValue work with string | number, your current value:', typeof value);
|
|
7124
7124
|
}
|
|
7125
7125
|
}
|
|
7126
7126
|
registerOnChange(fn) {
|
|
@@ -7239,22 +7239,22 @@ class NgxMaskDirective {
|
|
|
7239
7239
|
return uniqueCharacters.size === 1;
|
|
7240
7240
|
});
|
|
7241
7241
|
}
|
|
7242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
7243
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type:
|
|
7242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7243
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: MatchaMaskDirective, isStandalone: false, selector: "input[mask], textarea[mask]", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, specialCharacters: { classPropertyName: "specialCharacters", publicName: "specialCharacters", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, thousandSeparator: { classPropertyName: "thousandSeparator", publicName: "thousandSeparator", isSignal: true, isRequired: false, transformFunction: null }, decimalMarker: { classPropertyName: "decimalMarker", publicName: "decimalMarker", isSignal: true, isRequired: false, transformFunction: null }, dropSpecialCharacters: { classPropertyName: "dropSpecialCharacters", publicName: "dropSpecialCharacters", isSignal: true, isRequired: false, transformFunction: null }, hiddenInput: { classPropertyName: "hiddenInput", publicName: "hiddenInput", isSignal: true, isRequired: false, transformFunction: null }, showMaskTyped: { classPropertyName: "showMaskTyped", publicName: "showMaskTyped", isSignal: true, isRequired: false, transformFunction: null }, placeHolderCharacter: { classPropertyName: "placeHolderCharacter", publicName: "placeHolderCharacter", isSignal: true, isRequired: false, transformFunction: null }, shownMaskExpression: { classPropertyName: "shownMaskExpression", publicName: "shownMaskExpression", isSignal: true, isRequired: false, transformFunction: null }, clearIfNotMatch: { classPropertyName: "clearIfNotMatch", publicName: "clearIfNotMatch", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, separatorLimit: { classPropertyName: "separatorLimit", publicName: "separatorLimit", isSignal: true, isRequired: false, transformFunction: null }, allowNegativeNumbers: { classPropertyName: "allowNegativeNumbers", publicName: "allowNegativeNumbers", isSignal: true, isRequired: false, transformFunction: null }, leadZeroDateTime: { classPropertyName: "leadZeroDateTime", publicName: "leadZeroDateTime", isSignal: true, isRequired: false, transformFunction: null }, leadZero: { classPropertyName: "leadZero", publicName: "leadZero", isSignal: true, isRequired: false, transformFunction: null }, triggerOnMaskChange: { classPropertyName: "triggerOnMaskChange", publicName: "triggerOnMaskChange", isSignal: true, isRequired: false, transformFunction: null }, apm: { classPropertyName: "apm", publicName: "apm", isSignal: true, isRequired: false, transformFunction: null }, inputTransformFn: { classPropertyName: "inputTransformFn", publicName: "inputTransformFn", isSignal: true, isRequired: false, transformFunction: null }, outputTransformFn: { classPropertyName: "outputTransformFn", publicName: "outputTransformFn", isSignal: true, isRequired: false, transformFunction: null }, keepCharacterPositions: { classPropertyName: "keepCharacterPositions", publicName: "keepCharacterPositions", isSignal: true, isRequired: false, transformFunction: null }, instantPrefix: { classPropertyName: "instantPrefix", publicName: "instantPrefix", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { maskFilled: "maskFilled" }, host: { listeners: { "paste": "onPaste()", "focus": "onFocus($event)", "ngModelChange": "onModelChange($event)", "input": "onInput($event)", "compositionstart": "onCompositionStart($event)", "compositionend": "onCompositionEnd($event)", "blur": "onBlur($event)", "click": "onClick($event)", "keydown": "onKeyDown($event)" } }, providers: [
|
|
7244
7244
|
{
|
|
7245
7245
|
provide: NG_VALUE_ACCESSOR,
|
|
7246
|
-
useExisting: forwardRef(() =>
|
|
7246
|
+
useExisting: forwardRef(() => MatchaMaskDirective),
|
|
7247
7247
|
multi: true,
|
|
7248
7248
|
},
|
|
7249
7249
|
{
|
|
7250
7250
|
provide: NG_VALIDATORS,
|
|
7251
|
-
useExisting: forwardRef(() =>
|
|
7251
|
+
useExisting: forwardRef(() => MatchaMaskDirective),
|
|
7252
7252
|
multi: true,
|
|
7253
7253
|
},
|
|
7254
|
-
|
|
7255
|
-
], exportAs: ["mask", "
|
|
7254
|
+
MatchaMaskService,
|
|
7255
|
+
], exportAs: ["mask", "matchaMask"], usesOnChanges: true, ngImport: i0 }); }
|
|
7256
7256
|
}
|
|
7257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
7257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskDirective, decorators: [{
|
|
7258
7258
|
type: Directive,
|
|
7259
7259
|
args: [{
|
|
7260
7260
|
selector: 'input[mask], textarea[mask]',
|
|
@@ -7262,17 +7262,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
7262
7262
|
providers: [
|
|
7263
7263
|
{
|
|
7264
7264
|
provide: NG_VALUE_ACCESSOR,
|
|
7265
|
-
useExisting: forwardRef(() =>
|
|
7265
|
+
useExisting: forwardRef(() => MatchaMaskDirective),
|
|
7266
7266
|
multi: true,
|
|
7267
7267
|
},
|
|
7268
7268
|
{
|
|
7269
7269
|
provide: NG_VALIDATORS,
|
|
7270
|
-
useExisting: forwardRef(() =>
|
|
7270
|
+
useExisting: forwardRef(() => MatchaMaskDirective),
|
|
7271
7271
|
multi: true,
|
|
7272
7272
|
},
|
|
7273
|
-
|
|
7273
|
+
MatchaMaskService,
|
|
7274
7274
|
],
|
|
7275
|
-
exportAs: 'mask,
|
|
7275
|
+
exportAs: 'mask,matchaMask',
|
|
7276
7276
|
}]
|
|
7277
7277
|
}], propDecorators: { onPaste: [{
|
|
7278
7278
|
type: HostListener,
|
|
@@ -7496,7 +7496,7 @@ class MatchaInputPhoneComponent {
|
|
|
7496
7496
|
this.removeClickListener();
|
|
7497
7497
|
}
|
|
7498
7498
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7499
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaInputPhoneComponent, isStandalone: false, selector: "matcha-input-phone", inputs: { fallbackMask: "fallbackMask", value: "value" }, outputs: { onChange: "onChange" }, viewQueries: [{ propertyName: "inputSelector", first: true, predicate: ["inputSelector"], descendants: true }, { propertyName: "phoneRef", first: true, predicate: ["phoneRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n<div class=\"flex-row position-relative px-16 gap-8\" #inputSelector>\n <div class=\"min-h-24 radius-8 cursor-pointer d-flex gap-8 flex-align-center fs-16\" (click)=\"toggleDropdown()\">\n <div class=\"d-flex-row flex-align-center\">\n <img alt=\"\" [src]=\"'https://flagcdn.com/16x12/'+ selectedCountry?.iso2?.toLowerCase() + '.png'\"\n height=\"16\">\n </div>\n <span class=\"w-16 fs-16\"\n [ngClass]=\"isOpen ? 'i-matcha-action_arrow_up': 'i-matcha-action_arrow_down'\"></span>\n\n </div>\n <input *ngIf=\"isInitialized\" #phoneRef type=\"text\" placeholder=\"{{ typeMask }}\"\n [(ngModel)]=\"inputValueModel\"\n pattern=\"[0-9]*\" (keyup)=\"onInput($event)\" [mask]=\"typeMask\">\n\n <ng-container *ngIf=\"isOpen\">\n <div class=\"position-absolute z-index-10\">\n <div class=\"grid-1 gap-16 radius-8 z-index-10 p-8 w-300 position-absolute background-surface elevation-z-1\"\n style=\"top: calc(100% + 10px); overflow: hidden; height: 300px; overflow-y: auto;\">\n\n <label *ngFor=\"let country of allCountries; let i = index\"\n class=\"fs-16 lh-18 cursor-pointer d-flex-align-center p-8 ts-300-l\"\n [ngClass]=\"labelHover === i+'bg' ? 'background-bg' : 'background-surface'\"\n (mouseover)=\"labelHover = i+'bg'\" (mouseout)=\"labelHover = i+'su'\"\n (click)=\"selectCountry(country)\">\n <img alt=\"\" class=\"mr-8\"\n [src]=\"'https://flagcdn.com/16x12/'+ country?.iso2?.toLowerCase() + '.png'\" height=\"16\">\n {{country.name}}\n </label>\n </div>\n </div>\n </ng-container>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type:
|
|
7499
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaInputPhoneComponent, isStandalone: false, selector: "matcha-input-phone", inputs: { fallbackMask: "fallbackMask", value: "value" }, outputs: { onChange: "onChange" }, viewQueries: [{ propertyName: "inputSelector", first: true, predicate: ["inputSelector"], descendants: true }, { propertyName: "phoneRef", first: true, predicate: ["phoneRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n<div class=\"flex-row position-relative px-16 gap-8\" #inputSelector>\n <div class=\"min-h-24 radius-8 cursor-pointer d-flex gap-8 flex-align-center fs-16\" (click)=\"toggleDropdown()\">\n <div class=\"d-flex-row flex-align-center\">\n <img alt=\"\" [src]=\"'https://flagcdn.com/16x12/'+ selectedCountry?.iso2?.toLowerCase() + '.png'\"\n height=\"16\">\n </div>\n <span class=\"w-16 fs-16\"\n [ngClass]=\"isOpen ? 'i-matcha-action_arrow_up': 'i-matcha-action_arrow_down'\"></span>\n\n </div>\n <input *ngIf=\"isInitialized\" #phoneRef type=\"text\" placeholder=\"{{ typeMask }}\"\n [(ngModel)]=\"inputValueModel\"\n pattern=\"[0-9]*\" (keyup)=\"onInput($event)\" [mask]=\"typeMask\">\n\n <ng-container *ngIf=\"isOpen\">\n <div class=\"position-absolute z-index-10\">\n <div class=\"grid-1 gap-16 radius-8 z-index-10 p-8 w-300 position-absolute background-surface elevation-z-1\"\n style=\"top: calc(100% + 10px); overflow: hidden; height: 300px; overflow-y: auto;\">\n\n <label *ngFor=\"let country of allCountries; let i = index\"\n class=\"fs-16 lh-18 cursor-pointer d-flex-align-center p-8 ts-300-l\"\n [ngClass]=\"labelHover === i+'bg' ? 'background-bg' : 'background-surface'\"\n (mouseover)=\"labelHover = i+'bg'\" (mouseout)=\"labelHover = i+'su'\"\n (click)=\"selectCountry(country)\">\n <img alt=\"\" class=\"mr-8\"\n [src]=\"'https://flagcdn.com/16x12/'+ country?.iso2?.toLowerCase() + '.png'\" height=\"16\">\n {{country.name}}\n </label>\n </div>\n </div>\n </ng-container>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: MatchaMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix"], outputs: ["maskFilled"], exportAs: ["mask", "matchaMask"] }] }); }
|
|
7500
7500
|
}
|
|
7501
7501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneComponent, decorators: [{
|
|
7502
7502
|
type: Component,
|
|
@@ -12201,10 +12201,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12201
12201
|
}]
|
|
12202
12202
|
}] });
|
|
12203
12203
|
|
|
12204
|
-
class
|
|
12204
|
+
class MatchaMaskPipe {
|
|
12205
12205
|
constructor() {
|
|
12206
|
-
this.defaultOptions = inject(
|
|
12207
|
-
this._maskService = inject(
|
|
12206
|
+
this.defaultOptions = inject(MATCHA_MASK_CONFIG);
|
|
12207
|
+
this._maskService = inject(MatchaMaskService);
|
|
12208
12208
|
this._maskExpressionArray = [];
|
|
12209
12209
|
this.mask = '';
|
|
12210
12210
|
}
|
|
@@ -12287,10 +12287,10 @@ class NgxMaskPipe {
|
|
|
12287
12287
|
});
|
|
12288
12288
|
}
|
|
12289
12289
|
}
|
|
12290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12291
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12291
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskPipe, isStandalone: false, name: "mask" }); }
|
|
12292
12292
|
}
|
|
12293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskPipe, decorators: [{
|
|
12294
12294
|
type: Pipe,
|
|
12295
12295
|
args: [{
|
|
12296
12296
|
name: 'mask',
|
|
@@ -12328,31 +12328,31 @@ const options = {
|
|
|
12328
12328
|
keepCharacterPositions: false,
|
|
12329
12329
|
inputTransformFn: (v) => v,
|
|
12330
12330
|
outputTransformFn: (v) => v,
|
|
12331
|
-
maskFilled:
|
|
12331
|
+
maskFilled: new EventEmitter()
|
|
12332
12332
|
};
|
|
12333
|
-
class
|
|
12334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12335
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12336
|
-
|
|
12337
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12338
|
-
|
|
12339
|
-
{ provide:
|
|
12333
|
+
class MatchaMaskModule {
|
|
12334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
12335
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskModule, declarations: [MatchaMaskDirective, MatchaMaskPipe], imports: [CommonModule], exports: [MatchaMaskDirective,
|
|
12336
|
+
MatchaMaskPipe] }); }
|
|
12337
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskModule, providers: [
|
|
12338
|
+
MatchaMaskService,
|
|
12339
|
+
{ provide: MATCHA_MASK_CONFIG, useValue: options }
|
|
12340
12340
|
], imports: [CommonModule] }); }
|
|
12341
12341
|
}
|
|
12342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type:
|
|
12342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMaskModule, decorators: [{
|
|
12343
12343
|
type: NgModule,
|
|
12344
12344
|
args: [{
|
|
12345
|
-
declarations: [
|
|
12345
|
+
declarations: [MatchaMaskDirective, MatchaMaskPipe],
|
|
12346
12346
|
imports: [
|
|
12347
12347
|
CommonModule
|
|
12348
12348
|
],
|
|
12349
12349
|
exports: [
|
|
12350
|
-
|
|
12351
|
-
|
|
12350
|
+
MatchaMaskDirective,
|
|
12351
|
+
MatchaMaskPipe
|
|
12352
12352
|
],
|
|
12353
12353
|
providers: [
|
|
12354
|
-
|
|
12355
|
-
{ provide:
|
|
12354
|
+
MatchaMaskService,
|
|
12355
|
+
{ provide: MATCHA_MASK_CONFIG, useValue: options }
|
|
12356
12356
|
]
|
|
12357
12357
|
}]
|
|
12358
12358
|
}] });
|
|
@@ -12362,11 +12362,11 @@ class MatchaInputPhoneModule {
|
|
|
12362
12362
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneModule, declarations: [MatchaInputPhoneComponent], imports: [CommonModule,
|
|
12363
12363
|
MatchaFormFieldModule,
|
|
12364
12364
|
FormsModule,
|
|
12365
|
-
|
|
12366
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneModule, providers: [
|
|
12365
|
+
MatchaMaskModule], exports: [MatchaInputPhoneComponent] }); }
|
|
12366
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneModule, providers: [MatchaMaskModule], imports: [CommonModule,
|
|
12367
12367
|
MatchaFormFieldModule,
|
|
12368
12368
|
FormsModule,
|
|
12369
|
-
|
|
12369
|
+
MatchaMaskModule] }); }
|
|
12370
12370
|
}
|
|
12371
12371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputPhoneModule, decorators: [{
|
|
12372
12372
|
type: NgModule,
|
|
@@ -12376,10 +12376,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12376
12376
|
CommonModule,
|
|
12377
12377
|
MatchaFormFieldModule,
|
|
12378
12378
|
FormsModule,
|
|
12379
|
-
|
|
12379
|
+
MatchaMaskModule,
|
|
12380
12380
|
],
|
|
12381
12381
|
exports: [MatchaInputPhoneComponent],
|
|
12382
|
-
providers: [
|
|
12382
|
+
providers: [MatchaMaskModule],
|
|
12383
12383
|
}]
|
|
12384
12384
|
}] });
|
|
12385
12385
|
|
|
@@ -12568,7 +12568,8 @@ class MatchaComponentsModule {
|
|
|
12568
12568
|
MatchaDropListModule,
|
|
12569
12569
|
MatchaPageLayoutModule,
|
|
12570
12570
|
MatchaDrawerModule,
|
|
12571
|
-
MatchaHighlightModule
|
|
12571
|
+
MatchaHighlightModule,
|
|
12572
|
+
MatchaMaskModule], exports: [MatchaAccordionModule,
|
|
12572
12573
|
MatchaAutocompleteModule,
|
|
12573
12574
|
MatchaOptionModule,
|
|
12574
12575
|
MatchaPanelModule,
|
|
@@ -12612,7 +12613,8 @@ class MatchaComponentsModule {
|
|
|
12612
12613
|
MatchaPageLayoutModule,
|
|
12613
12614
|
MatchaAvatarModule,
|
|
12614
12615
|
MatchaDrawerModule,
|
|
12615
|
-
MatchaHighlightModule
|
|
12616
|
+
MatchaHighlightModule,
|
|
12617
|
+
MatchaMaskModule] }); }
|
|
12616
12618
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, imports: [CommonModule,
|
|
12617
12619
|
FormsModule,
|
|
12618
12620
|
ReactiveFormsModule,
|
|
@@ -12659,7 +12661,8 @@ class MatchaComponentsModule {
|
|
|
12659
12661
|
MatchaDropListModule,
|
|
12660
12662
|
MatchaPageLayoutModule,
|
|
12661
12663
|
MatchaDrawerModule,
|
|
12662
|
-
MatchaHighlightModule,
|
|
12664
|
+
MatchaHighlightModule,
|
|
12665
|
+
MatchaMaskModule, MatchaAccordionModule,
|
|
12663
12666
|
MatchaAutocompleteModule,
|
|
12664
12667
|
MatchaOptionModule,
|
|
12665
12668
|
MatchaPanelModule,
|
|
@@ -12703,7 +12706,8 @@ class MatchaComponentsModule {
|
|
|
12703
12706
|
MatchaPageLayoutModule,
|
|
12704
12707
|
MatchaAvatarModule,
|
|
12705
12708
|
MatchaDrawerModule,
|
|
12706
|
-
MatchaHighlightModule
|
|
12709
|
+
MatchaHighlightModule,
|
|
12710
|
+
MatchaMaskModule] }); }
|
|
12707
12711
|
}
|
|
12708
12712
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, decorators: [{
|
|
12709
12713
|
type: NgModule,
|
|
@@ -12756,7 +12760,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12756
12760
|
MatchaDropListModule,
|
|
12757
12761
|
MatchaPageLayoutModule,
|
|
12758
12762
|
MatchaDrawerModule,
|
|
12759
|
-
MatchaHighlightModule
|
|
12763
|
+
MatchaHighlightModule,
|
|
12764
|
+
MatchaMaskModule
|
|
12760
12765
|
],
|
|
12761
12766
|
exports: [MatchaAccordionModule,
|
|
12762
12767
|
MatchaAutocompleteModule,
|
|
@@ -12802,7 +12807,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12802
12807
|
MatchaPageLayoutModule,
|
|
12803
12808
|
MatchaAvatarModule,
|
|
12804
12809
|
MatchaDrawerModule,
|
|
12805
|
-
MatchaHighlightModule
|
|
12810
|
+
MatchaHighlightModule,
|
|
12811
|
+
MatchaMaskModule
|
|
12806
12812
|
],
|
|
12807
12813
|
}]
|
|
12808
12814
|
}] });
|
|
@@ -12879,22 +12885,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12879
12885
|
// -----------------------------------------------------------
|
|
12880
12886
|
// PIPES
|
|
12881
12887
|
// -----------------------------------------------------------
|
|
12882
|
-
// -----------------------------------------------------------
|
|
12883
|
-
// VENDORS
|
|
12884
|
-
// -----------------------------------------------------------
|
|
12885
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask-applier.service';
|
|
12886
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.directive';
|
|
12887
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.module';
|
|
12888
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.pipe';
|
|
12889
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.service';
|
|
12890
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.providers';
|
|
12891
|
-
// export * from './lib/matcha-input-phone/lib/custom-keyboard-event';
|
|
12892
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask.config';
|
|
12893
|
-
// export * from './lib/matcha-input-phone/lib/ngx-mask-expression.enum';
|
|
12894
12888
|
|
|
12895
12889
|
/**
|
|
12896
12890
|
* Generated bundle index. Do not edit.
|
|
12897
12891
|
*/
|
|
12898
12892
|
|
|
12899
|
-
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaInputPhoneComponent, MatchaInputPhoneModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
12893
|
+
export { CopyButtonComponent, INITIAL_CONFIG, MATCHA_MASK_CONFIG, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaInputPhoneComponent, MatchaInputPhoneModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMaskApplierService, MatchaMaskDirective, MatchaMaskModule, MatchaMaskPipe, MatchaMaskService, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NEW_CONFIG, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective, initialConfig, options, timeMasks, withoutValidation };
|
|
12900
12894
|
//# sourceMappingURL=matcha-components.mjs.map
|