matcha-components 20.83.0 → 20.87.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
@@ -836,6 +836,25 @@ declare class MatchaTabsComponent implements AfterContentInit, OnChanges {
836
836
  static ɵcmp: i0.ɵɵComponentDeclaration<MatchaTabsComponent, "matcha-tabs", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "activeTabIndex": { "alias": "activeTabIndex"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; "tabSelected": "tabSelected"; }, ["tabs"], ["*"], false, never>;
837
837
  }
838
838
 
839
+ declare class MatchaDateComponent implements ControlValueAccessor {
840
+ placeholder: string;
841
+ min: string;
842
+ max: string;
843
+ disabled: boolean;
844
+ value: string;
845
+ isDisabled: boolean;
846
+ private onChange;
847
+ private onTouched;
848
+ writeValue(value: any): void;
849
+ registerOnChange(fn: any): void;
850
+ registerOnTouched(fn: any): void;
851
+ setDisabledState(isDisabled: boolean): void;
852
+ onInputChange(event: Event): void;
853
+ onBlur(): void;
854
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaDateComponent, never>;
855
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchaDateComponent, "matcha-date", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
856
+ }
857
+
839
858
  declare class MatchaDateRangeComponent implements AfterContentInit, OnDestroy {
840
859
  controls: QueryList<NgControl>;
841
860
  private startDateControl;
@@ -847,6 +866,10 @@ declare class MatchaDateRangeComponent implements AfterContentInit, OnDestroy {
847
866
  * Validação de formato de data e intervalo: data inicial não pode ser posterior à data final
848
867
  */
849
868
  private validateDateRange;
869
+ /**
870
+ * Limpa apenas os erros relacionados ao intervalo de datas
871
+ */
872
+ private clearDateRangeErrors;
850
873
  /**
851
874
  * Remove um erro específico sem afetar outros erros
852
875
  */
@@ -1247,8 +1270,16 @@ declare class MatchaAutocompleteComponent implements AfterContentInit, AfterView
1247
1270
  placement: 'bottom' | 'top' | 'auto';
1248
1271
  maxHeight: number;
1249
1272
  minWidth: number;
1273
+ autoSelectOnBlur: boolean;
1274
+ displayWith: ((value: any) => string | null) | null;
1275
+ displayProperty: string;
1276
+ showClearButton: boolean;
1277
+ clearButtonIcon: string;
1278
+ clearButtonAriaLabel: string;
1250
1279
  opened: EventEmitter<void>;
1251
1280
  closed: EventEmitter<void>;
1281
+ cleared: EventEmitter<void>;
1282
+ autoSelected: EventEmitter<any>;
1252
1283
  open: boolean;
1253
1284
  triggerElement?: HTMLElement;
1254
1285
  private activeIndex;
@@ -1269,8 +1300,20 @@ declare class MatchaAutocompleteComponent implements AfterContentInit, AfterView
1269
1300
  selectActive(): void;
1270
1301
  selectOption(option: MatchaOptionComponent): void;
1271
1302
  getSelectedValue(): any;
1303
+ hasSelection(): boolean;
1304
+ clearSelection(): void;
1305
+ /**
1306
+ * Obtém o texto de exibição de um valor
1307
+ * Usa displayWith se fornecido, senão displayProperty, senão retorna o valor como string
1308
+ */
1309
+ getDisplayValue(value: any): string;
1310
+ /**
1311
+ * Busca uma opção que corresponda ao texto digitado
1312
+ * Compara usando displayWith ou displayProperty
1313
+ */
1314
+ findOptionByText(text: string): MatchaOptionComponent | null;
1272
1315
  static ɵfac: i0.ɵɵFactoryDeclaration<MatchaAutocompleteComponent, never>;
1273
- static ɵcmp: i0.ɵɵComponentDeclaration<MatchaAutocompleteComponent, "matcha-autocomplete", never, { "placement": { "alias": "placement"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, ["options"], ["*"], false, never>;
1316
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchaAutocompleteComponent, "matcha-autocomplete", never, { "placement": { "alias": "placement"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "autoSelectOnBlur": { "alias": "autoSelectOnBlur"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayProperty": { "alias": "displayProperty"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "clearButtonIcon": { "alias": "clearButtonIcon"; "required": false; }; "clearButtonAriaLabel": { "alias": "clearButtonAriaLabel"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "autoSelected": "autoSelected"; }, ["options"], ["*"], false, never>;
1274
1317
  }
1275
1318
 
1276
1319
  declare class MatchaSelectComponent implements AfterContentInit, AfterViewInit, MatchaOptionParent, ControlValueAccessor {
@@ -2096,18 +2139,26 @@ declare class MatchaOverflowDraggableComponent {
2096
2139
 
2097
2140
  declare class MatchaAutocompleteTriggerDirective implements AfterViewInit, OnDestroy {
2098
2141
  private el;
2142
+ private renderer;
2143
+ private cdr;
2144
+ private ngControl;
2099
2145
  panel: MatchaAutocompleteComponent;
2100
2146
  private subs;
2101
- constructor(el: ElementRef<HTMLInputElement>);
2147
+ private clearButton?;
2148
+ constructor(el: ElementRef<HTMLInputElement>, renderer: Renderer2, cdr: ChangeDetectorRef, ngControl: NgControl);
2102
2149
  ngAfterViewInit(): void;
2103
2150
  ngOnDestroy(): void;
2104
2151
  private writeValueToInput;
2152
+ private clearInput;
2105
2153
  onClick(): void;
2106
2154
  onFocus(): void;
2107
2155
  onInput(e: Event): void;
2156
+ onBlur(): void;
2108
2157
  onKeydown(ev: KeyboardEvent): void;
2109
2158
  onDocClick(ev: MouseEvent): void;
2110
- static ɵfac: i0.ɵɵFactoryDeclaration<MatchaAutocompleteTriggerDirective, never>;
2159
+ private createClearButton;
2160
+ private updateClearButtonVisibility;
2161
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaAutocompleteTriggerDirective, [null, null, null, { optional: true; }]>;
2111
2162
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaAutocompleteTriggerDirective, "[matchaAutocomplete]", never, { "panel": { "alias": "matchaAutocomplete"; "required": false; }; }, {}, never, never, false, never>;
2112
2163
  }
2113
2164
 
@@ -2250,9 +2301,15 @@ declare class MatchaTabsModule {
2250
2301
  static ɵinj: i0.ɵɵInjectorDeclaration<MatchaTabsModule>;
2251
2302
  }
2252
2303
 
2304
+ declare class MatchaDateModule {
2305
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchaDateModule, never>;
2306
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaDateModule, [typeof MatchaDateComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof MatchaDateComponent]>;
2307
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatchaDateModule>;
2308
+ }
2309
+
2253
2310
  declare class MatchaDateRangeModule {
2254
2311
  static ɵfac: i0.ɵɵFactoryDeclaration<MatchaDateRangeModule, never>;
2255
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaDateRangeModule, [typeof MatchaDateRangeComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule], [typeof MatchaDateRangeComponent]>;
2312
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaDateRangeModule, [typeof MatchaDateRangeComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof MatchaDateModule], [typeof MatchaDateRangeComponent, typeof MatchaDateModule]>;
2256
2313
  static ɵinj: i0.ɵɵInjectorDeclaration<MatchaDateRangeModule>;
2257
2314
  }
2258
2315
 
@@ -2560,5 +2617,5 @@ declare class StepContentDirective {
2560
2617
  static ɵdir: i0.ɵɵDirectiveDeclaration<StepContentDirective, "[step]", never, { "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
2561
2618
  }
2562
2619
 
2563
- 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, 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, MatchaMaskApplierService, MatchaMaskCompatibleDirective, MatchaMaskModule, MatchaMaskPipe, MatchaMaskService, MatchaMasonryComponent, MatchaMasonryModule, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NEW_CONFIG, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective, compatibleOptions, initialConfig, timeMasks, withoutValidation };
2620
+ 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, MatchaMaskApplierService, MatchaMaskCompatibleDirective, MatchaMaskModule, MatchaMaskPipe, MatchaMaskService, MatchaMasonryComponent, MatchaMasonryModule, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NEW_CONFIG, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective, compatibleOptions, initialConfig, timeMasks, withoutValidation };
2564
2621
  export type { BreakpointState, DrawerMode, DrawerPosition, ILevelClasses, InputTransformFn, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaMaskConfig, MatchaMaskOptions, MatchaOptionParent, 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.83.0",
3
+ "version": "20.87.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"