matcha-components 20.205.0 → 20.208.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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { OnInit, OnChanges, EventEmitter, SimpleChanges, AfterContentInit, OnDestroy, QueryList, ElementRef, Renderer2, InjectionToken, ChangeDetectorRef, AfterViewInit, PipeTransform, AfterViewChecked, TemplateRef, NgZone, ApplicationRef, Injector, RendererFactory2, Type, ComponentRef } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import * as i3 from '@angular/forms';
5
- import { ControlValueAccessor, FormControlName, Validator, FormControl, ValidationErrors, NgControl } from '@angular/forms';
5
+ import { ControlValueAccessor, FormControlName, Validator, FormControl, ValidationErrors, NgControl, AbstractControl } from '@angular/forms';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable, Subject } from 'rxjs';
8
8
  import { HttpClient } from '@angular/common/http';
@@ -2025,7 +2025,42 @@ declare class MatchaDateRangeModule {
2025
2025
  static ɵinj: i0.ɵɵInjectorDeclaration<MatchaDateRangeModule>;
2026
2026
  }
2027
2027
 
2028
- declare class MatchaTimeComponent implements AfterContentInit, OnDestroy {
2028
+ declare class MatchaTimeComponent implements ControlValueAccessor, Validator {
2029
+ placeholder: string;
2030
+ disabled: boolean;
2031
+ showNativePicker: boolean;
2032
+ textInput: ElementRef<HTMLInputElement>;
2033
+ nativeTimeInput: ElementRef<HTMLInputElement>;
2034
+ displayValue: string;
2035
+ value: string;
2036
+ isDisabled: boolean;
2037
+ private onChange;
2038
+ private onTouched;
2039
+ private onValidatorChange;
2040
+ writeValue(value: any): void;
2041
+ registerOnChange(fn: any): void;
2042
+ registerOnTouched(fn: any): void;
2043
+ setDisabledState(isDisabled: boolean): void;
2044
+ registerOnValidatorChange(fn: () => void): void;
2045
+ validate(_control: AbstractControl): ValidationErrors | null;
2046
+ onInputChange(event: Event): void;
2047
+ onKeyDown(event: KeyboardEvent): void;
2048
+ onBlur(): void;
2049
+ onNativeTimeChange(event: Event): void;
2050
+ openNativeTimePicker(): void;
2051
+ private applyTimeMask;
2052
+ private isValidTime;
2053
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeComponent, never>;
2054
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchaTimeComponent, "matcha-time", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showNativePicker": { "alias": "showNativePicker"; "required": false; }; }, {}, never, never, false, never>;
2055
+ }
2056
+
2057
+ declare class MatchaTimeModule {
2058
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeModule, never>;
2059
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaTimeModule, [typeof MatchaTimeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule], [typeof MatchaTimeComponent]>;
2060
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatchaTimeModule>;
2061
+ }
2062
+
2063
+ declare class MatchaTimeRangeComponent implements AfterContentInit, OnDestroy {
2029
2064
  controls: QueryList<NgControl>;
2030
2065
  startDateControlName?: string;
2031
2066
  endDateControlName?: string;
@@ -2037,30 +2072,18 @@ declare class MatchaTimeComponent implements AfterContentInit, OnDestroy {
2037
2072
  private subscription;
2038
2073
  ngAfterContentInit(): void;
2039
2074
  ngOnDestroy(): void;
2040
- /**
2041
- * Validação de intervalo de tempo que pode cruzar dias
2042
- */
2043
2075
  private validateTimeRange;
2044
- /**
2045
- * Define erros de validação nos controles
2046
- */
2047
2076
  private setValidationErrors;
2048
- /**
2049
- * Remove erros específicos de validação
2050
- */
2051
2077
  private clearValidationErrors;
2052
- /**
2053
- * Remove um erro específico sem afetar outros erros
2054
- */
2055
2078
  private removeSpecificError;
2056
- static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeComponent, never>;
2057
- static ɵcmp: i0.ɵɵComponentDeclaration<MatchaTimeComponent, "matcha-time", never, { "startDateControlName": { "alias": "startDateControlName"; "required": false; }; "endDateControlName": { "alias": "endDateControlName"; "required": false; }; "allowCrossDays": { "alias": "allowCrossDays"; "required": false; }; }, {}, ["controls"], ["*"], false, never>;
2079
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeRangeComponent, never>;
2080
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchaTimeRangeComponent, "matcha-time-range", never, { "startDateControlName": { "alias": "startDateControlName"; "required": false; }; "endDateControlName": { "alias": "endDateControlName"; "required": false; }; "allowCrossDays": { "alias": "allowCrossDays"; "required": false; }; }, {}, ["controls"], ["*"], false, never>;
2058
2081
  }
2059
2082
 
2060
- declare class MatchaTimeModule {
2061
- static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeModule, never>;
2062
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaTimeModule, [typeof MatchaTimeComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule], [typeof MatchaTimeComponent]>;
2063
- static ɵinj: i0.ɵɵInjectorDeclaration<MatchaTimeModule>;
2083
+ declare class MatchaTimeRangeModule {
2084
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaTimeRangeModule, never>;
2085
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaTimeRangeModule, [typeof MatchaTimeRangeComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule], [typeof MatchaTimeRangeComponent]>;
2086
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatchaTimeRangeModule>;
2064
2087
  }
2065
2088
 
2066
2089
  declare class MatchaDropListService {
@@ -2672,7 +2695,7 @@ declare class MatchaSnackBarComponent implements OnInit, OnDestroy {
2672
2695
  duration: number;
2673
2696
  visible: boolean;
2674
2697
  private timeoutId;
2675
- get colorAttr(): "error" | "warning" | "info" | "success";
2698
+ get colorAttr(): "error" | "info" | "warning" | "success";
2676
2699
  get positionAttr(): "top" | "bottom";
2677
2700
  get classes(): string;
2678
2701
  constructor(snackBarService: MatchaSnackBarService);
@@ -2716,7 +2739,7 @@ declare class MatchaAvatarModule {
2716
2739
 
2717
2740
  declare class MatchaComponentsModule {
2718
2741
  static ɵfac: i0.ɵɵFactoryDeclaration<MatchaComponentsModule, never>;
2719
- 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 MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaRippleModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaProgressBarModule, typeof MatchaStepperModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskModule, typeof MatchaChipModule, typeof MatchaMenuModule, typeof MatchaListModule, typeof MatchaSnackBarModule], [typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, 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 MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaRippleModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaProgressBarModule, typeof MatchaStepperModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaAvatarModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskModule, typeof MatchaChipModule, typeof MatchaMenuModule, typeof MatchaListModule, typeof MatchaSnackBarModule]>;
2742
+ 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 MatchaButtonModule, typeof MatchaButtonToggleModule, typeof MatchaCardModule, typeof MatchaCheckboxModule, typeof MatchaRadioModule, typeof MatchaDividerModule, typeof MatchaElevationModule, typeof MatchaFormFieldModule, typeof MatchaHintTextModule, typeof MatchaIconModule, typeof MatchaInfiniteScrollModule, typeof MatchaLazyloadModule, typeof MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaRippleModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaProgressBarModule, typeof MatchaStepperModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaTimeRangeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskModule, typeof MatchaChipModule, typeof MatchaMenuModule, typeof MatchaListModule, typeof MatchaSnackBarModule], [typeof MatchaAccordionModule, typeof MatchaAutocompleteModule, typeof MatchaOptionModule, typeof MatchaPanelModule, typeof MatchaSelectModule, 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 MatchaInputPhoneModule, typeof MatchaMasonryModule, typeof MatchaModalModule, typeof MatchaPaginatorModule, typeof MatchaRippleModule, typeof MatchaSlideToggleModule, typeof MatchaSliderModule, typeof MatchaSpinModule, typeof MatchaSpinnerModule, typeof MatchaProgressBarModule, typeof MatchaStepperModule, typeof MatchaTabsModule, typeof MatchaTitleModule, typeof MatchaTooltipModule, typeof MatchaDateRangeModule, typeof MatchaTimeModule, typeof MatchaTimeRangeModule, typeof MatchaDropListModule, typeof MatchaPageLayoutModule, typeof MatchaAvatarModule, typeof MatchaDrawerModule, typeof MatchaHighlightModule, typeof MatchaMaskModule, typeof MatchaChipModule, typeof MatchaMenuModule, typeof MatchaListModule, typeof MatchaSnackBarModule]>;
2720
2743
  static ɵinj: i0.ɵɵInjectorDeclaration<MatchaComponentsModule>;
2721
2744
  }
2722
2745
 
@@ -3088,5 +3111,5 @@ declare class MatchaToolbarModule {
3088
3111
  static ɵinj: i0.ɵɵInjectorDeclaration<MatchaToolbarModule>;
3089
3112
  }
3090
3113
 
3091
- export { CopyButtonComponent, INITIAL_CONFIG, MATCHA_MASK_CONFIG, MATCHA_OPTION_PARENT, MaskExpression, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipComponent, MatchaChipListComponent, MatchaChipModule, MatchaComponentsModule, MatchaDateComponent, MatchaDateModule, 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, MatchaInputPhoneComponent, MatchaInputPhoneModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaListComponent, MatchaListItemComponent, MatchaListModule, MatchaMaskApplierService, MatchaMaskCompatibleDirective, MatchaMaskModule, MatchaMaskPipe, MatchaMaskService, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuItemDirective, MatchaMenuModule, MatchaMenuTriggerDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarComponent, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioGroupComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarComponent, MatchaSnackBarModule, MatchaSnackBarService, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaSubmenuTriggerDirective, MatchaTabItemComponent, MatchaTableComponent, 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 };
3114
+ export { CopyButtonComponent, INITIAL_CONFIG, MATCHA_MASK_CONFIG, MATCHA_OPTION_PARENT, MaskExpression, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipComponent, MatchaChipListComponent, MatchaChipModule, MatchaComponentsModule, MatchaDateComponent, MatchaDateModule, 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, MatchaInputPhoneComponent, MatchaInputPhoneModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaListComponent, MatchaListItemComponent, MatchaListModule, MatchaMaskApplierService, MatchaMaskCompatibleDirective, MatchaMaskModule, MatchaMaskPipe, MatchaMaskService, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuItemDirective, MatchaMenuModule, MatchaMenuTriggerDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarComponent, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioGroupComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarComponent, MatchaSnackBarModule, MatchaSnackBarService, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaSubmenuTriggerDirective, MatchaTabItemComponent, MatchaTableComponent, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTimeRangeComponent, MatchaTimeRangeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NEW_CONFIG, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective, compatibleOptions, initialConfig, timeMasks, withoutValidation };
3092
3115
  export type { BreakpointState, DrawerMode, DrawerPosition, ILevelClasses, InputTransformFn, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaMaskConfig, MatchaMaskOptions, MatchaOptionParent, MatchaSnackBarConfig, ModalComponent, OutputTransformFn, PageEvent, PanelPlacement, PanelPosition, SliderOptions, TabChangeEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-components",
3
- "version": "20.205.0",
3
+ "version": "20.208.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"