matcha-components 20.44.0 → 20.46.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 +106 -1103
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +13 -96
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as i3 from '@angular/forms';
|
|
|
6
6
|
import { FormControlName, ControlValueAccessor, NgControl, Validator, FormControl, ValidationErrors } from '@angular/forms';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
|
-
import * as matcha_components from 'matcha-components';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Interface que deve ser implementada por componentes que querem usar matcha-option como filho
|
|
@@ -2318,99 +2317,6 @@ declare class MatchaHighlightModule {
|
|
|
2318
2317
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaHighlightModule>;
|
|
2319
2318
|
}
|
|
2320
2319
|
|
|
2321
|
-
type CustomKeyboardEvent = KeyboardEvent;
|
|
2322
|
-
|
|
2323
|
-
declare class MatchaMaskDirective implements ControlValueAccessor, OnChanges, Validator {
|
|
2324
|
-
mask: i0.InputSignal<string | null | undefined>;
|
|
2325
|
-
specialCharacters: i0.InputSignal<string[] | readonly string[]>;
|
|
2326
|
-
patterns: i0.InputSignal<Record<string, {
|
|
2327
|
-
pattern: RegExp;
|
|
2328
|
-
optional?: boolean;
|
|
2329
|
-
symbol?: string;
|
|
2330
|
-
}>>;
|
|
2331
|
-
prefix: i0.InputSignal<string>;
|
|
2332
|
-
suffix: i0.InputSignal<string>;
|
|
2333
|
-
thousandSeparator: i0.InputSignal<string>;
|
|
2334
|
-
decimalMarker: i0.InputSignal<"," | "." | [".", ","]>;
|
|
2335
|
-
dropSpecialCharacters: i0.InputSignal<boolean | string[] | readonly string[] | null>;
|
|
2336
|
-
hiddenInput: i0.InputSignal<boolean | null>;
|
|
2337
|
-
showMaskTyped: i0.InputSignal<boolean | null>;
|
|
2338
|
-
placeHolderCharacter: i0.InputSignal<string | null>;
|
|
2339
|
-
shownMaskExpression: i0.InputSignal<string | null>;
|
|
2340
|
-
clearIfNotMatch: i0.InputSignal<boolean | null>;
|
|
2341
|
-
validation: i0.InputSignal<boolean | null>;
|
|
2342
|
-
separatorLimit: i0.InputSignal<string | null>;
|
|
2343
|
-
allowNegativeNumbers: i0.InputSignal<boolean | null>;
|
|
2344
|
-
leadZeroDateTime: i0.InputSignal<boolean | null>;
|
|
2345
|
-
leadZero: i0.InputSignal<boolean | null>;
|
|
2346
|
-
triggerOnMaskChange: i0.InputSignal<boolean | null>;
|
|
2347
|
-
apm: i0.InputSignal<boolean | null>;
|
|
2348
|
-
inputTransformFn: i0.InputSignal<matcha_components.InputTransformFn | null>;
|
|
2349
|
-
outputTransformFn: i0.InputSignal<matcha_components.OutputTransformFn | null>;
|
|
2350
|
-
keepCharacterPositions: i0.InputSignal<boolean | null>;
|
|
2351
|
-
instantPrefix: i0.InputSignal<boolean | null>;
|
|
2352
|
-
maskFilled: i0.OutputEmitterRef<void>;
|
|
2353
|
-
private _maskValue;
|
|
2354
|
-
private _inputValue;
|
|
2355
|
-
private _position;
|
|
2356
|
-
private _code;
|
|
2357
|
-
private _maskExpressionArray;
|
|
2358
|
-
private _justPasted;
|
|
2359
|
-
private _isFocused;
|
|
2360
|
-
/**For IME composition event */
|
|
2361
|
-
private _isComposing;
|
|
2362
|
-
_maskService: MatchaMaskService;
|
|
2363
|
-
private readonly document;
|
|
2364
|
-
protected _config: MatchaMaskConfig;
|
|
2365
|
-
onChange: (_: any) => void;
|
|
2366
|
-
onTouch: () => void;
|
|
2367
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
2368
|
-
validate({ value }: FormControl): ValidationErrors | null;
|
|
2369
|
-
onPaste(): void;
|
|
2370
|
-
onFocus(): void;
|
|
2371
|
-
onModelChange(value: string | undefined | null | number): void;
|
|
2372
|
-
onInput(e: CustomKeyboardEvent): void;
|
|
2373
|
-
onCompositionStart(): void;
|
|
2374
|
-
onCompositionEnd(e: CustomKeyboardEvent): void;
|
|
2375
|
-
onBlur(e: CustomKeyboardEvent): void;
|
|
2376
|
-
onClick(e: MouseEvent | CustomKeyboardEvent): void;
|
|
2377
|
-
onKeyDown(e: CustomKeyboardEvent): void;
|
|
2378
|
-
/** It writes the value in the input */
|
|
2379
|
-
writeValue(controlValue: unknown): Promise<void>;
|
|
2380
|
-
registerOnChange(fn: typeof this.onChange): void;
|
|
2381
|
-
registerOnTouched(fn: typeof this.onTouch): void;
|
|
2382
|
-
private _getActiveElement;
|
|
2383
|
-
checkSelectionOnDeletion(el: HTMLInputElement): void;
|
|
2384
|
-
/** It disables the input element */
|
|
2385
|
-
setDisabledState(isDisabled: boolean): void;
|
|
2386
|
-
private _applyMask;
|
|
2387
|
-
private _validateTime;
|
|
2388
|
-
private _getActualInputLength;
|
|
2389
|
-
private _createValidationError;
|
|
2390
|
-
private _setMask;
|
|
2391
|
-
private _areAllCharactersInEachStringSame;
|
|
2392
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaMaskDirective, never>;
|
|
2393
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaMaskDirective, "input[mask], textarea[mask]", ["mask", "matchaMask"], { "mask": { "alias": "mask"; "required": false; "isSignal": true; }; "specialCharacters": { "alias": "specialCharacters"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; "isSignal": true; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; "isSignal": true; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; "isSignal": true; }; "hiddenInput": { "alias": "hiddenInput"; "required": false; "isSignal": true; }; "showMaskTyped": { "alias": "showMaskTyped"; "required": false; "isSignal": true; }; "placeHolderCharacter": { "alias": "placeHolderCharacter"; "required": false; "isSignal": true; }; "shownMaskExpression": { "alias": "shownMaskExpression"; "required": false; "isSignal": true; }; "clearIfNotMatch": { "alias": "clearIfNotMatch"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "separatorLimit": { "alias": "separatorLimit"; "required": false; "isSignal": true; }; "allowNegativeNumbers": { "alias": "allowNegativeNumbers"; "required": false; "isSignal": true; }; "leadZeroDateTime": { "alias": "leadZeroDateTime"; "required": false; "isSignal": true; }; "leadZero": { "alias": "leadZero"; "required": false; "isSignal": true; }; "triggerOnMaskChange": { "alias": "triggerOnMaskChange"; "required": false; "isSignal": true; }; "apm": { "alias": "apm"; "required": false; "isSignal": true; }; "inputTransformFn": { "alias": "inputTransformFn"; "required": false; "isSignal": true; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; "isSignal": true; }; "keepCharacterPositions": { "alias": "keepCharacterPositions"; "required": false; "isSignal": true; }; "instantPrefix": { "alias": "instantPrefix"; "required": false; "isSignal": true; }; }, { "maskFilled": "maskFilled"; }, never, never, false, never>;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
declare class MatchaMaskPipe implements PipeTransform {
|
|
2397
|
-
private readonly defaultOptions;
|
|
2398
|
-
private readonly _maskService;
|
|
2399
|
-
private _maskExpressionArray;
|
|
2400
|
-
private mask;
|
|
2401
|
-
transform(value: string | number, mask: string, { patterns, ...config }?: Partial<MatchaMaskConfig>): string;
|
|
2402
|
-
private _setMask;
|
|
2403
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaMaskPipe, never>;
|
|
2404
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MatchaMaskPipe, "mask", false>;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
declare const options: MatchaMaskOptions;
|
|
2408
|
-
declare class MatchaMaskModule {
|
|
2409
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaMaskModule, never>;
|
|
2410
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaMaskModule, [typeof MatchaMaskDirective, typeof MatchaMaskPipe], [typeof i2.CommonModule], [typeof MatchaMaskDirective, typeof MatchaMaskPipe]>;
|
|
2411
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaMaskModule>;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
2320
|
declare class MatchaAvatarModule {
|
|
2415
2321
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaAvatarModule, never>;
|
|
2416
2322
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaAvatarModule, [typeof MatchaAvatarComponent], [typeof i2.CommonModule], [typeof MatchaAvatarComponent]>;
|
|
@@ -2419,7 +2325,7 @@ declare class MatchaAvatarModule {
|
|
|
2419
2325
|
|
|
2420
2326
|
declare class MatchaComponentsModule {
|
|
2421
2327
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaComponentsModule, never>;
|
|
2422
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof MatchaOverflowDraggableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof
|
|
2328
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaComponentsModule, [typeof MatchaOverflowDraggableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskCompatibleModule], [typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, typeof MatchaBadgeModule, typeof MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaMenuModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaProgressBarModule, typeof MatchaRippleModule, typeof MatchaSidenavModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSnackBarModule, typeof MatchaSortHeaderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaStepperModule, typeof MatchaTableModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaAvatarModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskCompatibleModule]>;
|
|
2423
2329
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaComponentsModule>;
|
|
2424
2330
|
}
|
|
2425
2331
|
|
|
@@ -2444,6 +2350,17 @@ declare class MatchaBreakpointObservableModule {
|
|
|
2444
2350
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaBreakpointObservableModule>;
|
|
2445
2351
|
}
|
|
2446
2352
|
|
|
2353
|
+
declare class MatchaMaskPipe implements PipeTransform {
|
|
2354
|
+
private readonly defaultOptions;
|
|
2355
|
+
private readonly _maskService;
|
|
2356
|
+
private _maskExpressionArray;
|
|
2357
|
+
private mask;
|
|
2358
|
+
transform(value: string | number, mask: string, { patterns, ...config }?: Partial<MatchaMaskConfig>): string;
|
|
2359
|
+
private _setMask;
|
|
2360
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaMaskPipe, never>;
|
|
2361
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MatchaMaskPipe, "mask", false>;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2447
2364
|
declare const enum MaskExpression {
|
|
2448
2365
|
SEPARATOR = "separator",
|
|
2449
2366
|
PERCENT = "percent",
|
|
@@ -2595,5 +2512,5 @@ declare class StepContentDirective {
|
|
|
2595
2512
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StepContentDirective, "[step]", never, { "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
2596
2513
|
}
|
|
2597
2514
|
|
|
2598
|
-
export { CopyButtonComponent, INITIAL_CONFIG, MATCHA_MASK_CONFIG, MATCHA_OPTION_PARENT, MaskExpression, 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, MatchaMaskCompatibleDirective, MatchaMaskCompatibleModule,
|
|
2515
|
+
export { CopyButtonComponent, INITIAL_CONFIG, MATCHA_MASK_CONFIG, MATCHA_OPTION_PARENT, MaskExpression, 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, MatchaMaskCompatibleDirective, MatchaMaskCompatibleModule, 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, compatibleOptions, initialConfig, timeMasks, withoutValidation };
|
|
2599
2516
|
export type { BreakpointState, DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, InputTransformFn, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaMaskConfig, MatchaMaskOptions, MatchaOptionParent, ModalComponent, OutputTransformFn, PageEvent, PanelPlacement, PanelPosition, SliderOptions, TabChangeEvent };
|