dolfo-angular 1.200.0 → 1.202.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "dolfo-angular",
3
- "version": "1.200.0",
3
+ "version": "1.202.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^20.3.3",
6
- "@angular/core": "^20.3.3",
7
- "@angular/forms": "^20.3.3",
8
- "@angular/platform-browser": "^20.3.4"
5
+ "@angular/common": "^21.2.9",
6
+ "@angular/core": "^21.2.9",
7
+ "@angular/forms": "^21.2.9",
8
+ "@angular/platform-browser": "^21.2.9"
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.8.1"
@@ -21,5 +21,6 @@
21
21
  "types": "./types/dolfo-angular.d.ts",
22
22
  "default": "./fesm2022/dolfo-angular.mjs"
23
23
  }
24
- }
24
+ },
25
+ "type": "module"
25
26
  }
@@ -31,7 +31,7 @@ button{
31
31
  &:not([disabled]):focus{
32
32
  $newColor: color.adjust($color, $lightness: -10%);
33
33
  background-color: $newColor;
34
- color: getButtonTextColor($newColor);
34
+ color: getButtonTextColor($newColor)
35
35
  }
36
36
  }
37
37
  }
@@ -2,11 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Type, ElementRef, TemplateRef, EventEmitter, ValueProvider, OnDestroy, AfterViewInit, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, PipeTransform, AfterViewChecked, QueryList, Injector, ViewContainerRef } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, Subscription, BehaviorSubject } from 'rxjs';
5
- import * as i9$1 from '@angular/forms';
6
- import { FormControl, ValidationErrors, ControlValueAccessor, Validator, AbstractControl, FormGroupDirective, FormGroup } from '@angular/forms';
5
+ import * as i10 from '@angular/forms';
6
+ import { FormControl, ValidationErrors, ControlValueAccessor, Validator, AbstractControl, FormGroup, FormGroupDirective } from '@angular/forms';
7
7
  import * as i9 from '@angular/common';
8
8
  import { DecimalPipe } from '@angular/common';
9
- import { HttpClient } from '@angular/common/http';
10
9
  import * as _angular_platform_browser from '@angular/platform-browser';
11
10
  import { DomSanitizer } from '@angular/platform-browser';
12
11
 
@@ -216,6 +215,7 @@ declare const LANGUAGE_TOKEN: InjectionToken<ILanguageToken>;
216
215
  declare const provideDolfoLanguages: (langs: ILanguage[], defaultLanguage: string) => ValueProvider;
217
216
 
218
217
  declare const isDeepEqual: (objA: any, objB: any, map?: WeakMap<object, any>) => boolean;
218
+ declare const passwordValidator: (control: FormControl) => ValidationErrors;
219
219
 
220
220
  declare abstract class Subscriptable implements OnDestroy {
221
221
  private subs;
@@ -234,11 +234,11 @@ declare class ContextMenuService {
234
234
  }
235
235
 
236
236
  declare class TranslateService {
237
- private httpClient;
238
237
  private lang$;
239
238
  private langContent;
240
239
  private langs;
241
- constructor(langConfig: ILanguageToken, httpClient: HttpClient);
240
+ private httpClient;
241
+ constructor(langConfig: ILanguageToken);
242
242
  changeLanguage$: (langName: string) => rxjs.Observable<Record<string, string>>;
243
243
  loadFromStorage$: () => rxjs.Observable<Record<string, string>>;
244
244
  private load$;
@@ -345,6 +345,7 @@ declare class AutocompleteComponent extends BaseFormInput<any> implements AfterV
345
345
  autocompleteInput: ElementRef<HTMLInputElement>;
346
346
  config: AutocompleteConfig<any>;
347
347
  minChars: number;
348
+ resultTemplate: TemplateRef<any>;
348
349
  onFocus: EventEmitter<FocusEvent>;
349
350
  onBlur: EventEmitter<FocusEvent>;
350
351
  options: i0.WritableSignal<ComboOption[]>;
@@ -361,7 +362,7 @@ declare class AutocompleteComponent extends BaseFormInput<any> implements AfterV
361
362
  isSelected: (opt: ComboOption) => boolean;
362
363
  setOption: (opt: ComboOption, noEmit?: boolean) => void;
363
364
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
364
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "dolfo-autocomplete", never, { "config": { "alias": "config"; "required": true; }; "minChars": { "alias": "minChars"; "required": false; }; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, false, never>;
365
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "dolfo-autocomplete", never, { "config": { "alias": "config"; "required": true; }; "minChars": { "alias": "minChars"; "required": false; }; "resultTemplate": { "alias": "resultTemplate"; "required": false; }; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, false, never>;
365
366
  }
366
367
 
367
368
  declare class ComboboxComponent extends BaseFormInput<any | any[]> implements AfterViewInit, Required<ComboInput>, OnBlur, OnFocus, OnChanges {
@@ -399,6 +400,14 @@ declare class DatepickerComponent extends BaseFormInput<Date> implements OnFocus
399
400
  static ngAcceptInputType_selectTime: unknown;
400
401
  }
401
402
 
403
+ declare class FormComponent {
404
+ formGroup: FormGroup;
405
+ hiddenSubmit: boolean;
406
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
407
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "dolfo-form", never, { "formGroup": { "alias": "formGroup"; "required": true; }; "hiddenSubmit": { "alias": "hiddenSubmit"; "required": false; }; }, {}, never, ["*"], false, never>;
408
+ static ngAcceptInputType_hiddenSubmit: unknown;
409
+ }
410
+
402
411
  declare class InputTextComponent extends BaseFormInput<string> implements OnFocus, OnBlur {
403
412
  type: InputType;
404
413
  placeHolder: string;
@@ -640,7 +649,7 @@ declare class LayoutModule {
640
649
 
641
650
  declare class FormModule {
642
651
  static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
643
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, [typeof InputTextComponent, typeof InputContainerComponent, typeof ComboboxComponent, typeof DatepickerComponent, typeof AutocompleteComponent, typeof InputRadioComponent, typeof InputCheckboxComponent], [typeof i9.CommonModule, typeof i9$1.ReactiveFormsModule, typeof TranslatePipe, typeof DirectivesModule, typeof LayoutModule], [typeof i9$1.ReactiveFormsModule, typeof InputTextComponent, typeof InputContainerComponent, typeof ComboboxComponent, typeof DatepickerComponent, typeof AutocompleteComponent, typeof InputRadioComponent, typeof InputCheckboxComponent]>;
652
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, [typeof InputTextComponent, typeof InputContainerComponent, typeof ComboboxComponent, typeof DatepickerComponent, typeof AutocompleteComponent, typeof InputRadioComponent, typeof InputCheckboxComponent, typeof FormComponent], [typeof i9.CommonModule, typeof i10.ReactiveFormsModule, typeof TranslatePipe, typeof DirectivesModule, typeof LayoutModule], [typeof i10.ReactiveFormsModule, typeof InputTextComponent, typeof InputContainerComponent, typeof ComboboxComponent, typeof DatepickerComponent, typeof AutocompleteComponent, typeof InputRadioComponent, typeof InputCheckboxComponent, typeof FormComponent]>;
644
653
  static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
645
654
  }
646
655
 
@@ -715,7 +724,7 @@ declare class DialogComponent extends Formable implements Required<IDialogInput>
715
724
 
716
725
  declare class DialogLayoutModule {
717
726
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogLayoutModule, never>;
718
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogLayoutModule, [typeof DialogComponent, typeof DialogContentComponent, typeof DialogHeaderComponent, typeof DialogFooterComponent, typeof DialogLayoutComponent], [typeof i9.CommonModule, typeof DirectivesModule, typeof LayoutModule, typeof i9$1.ReactiveFormsModule, typeof TranslatePipe, typeof FormModule], [typeof DialogComponent, typeof DialogContentComponent, typeof DialogHeaderComponent, typeof DialogFooterComponent, typeof DialogLayoutComponent]>;
727
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogLayoutModule, [typeof DialogComponent, typeof DialogContentComponent, typeof DialogHeaderComponent, typeof DialogFooterComponent, typeof DialogLayoutComponent], [typeof i9.CommonModule, typeof DirectivesModule, typeof LayoutModule, typeof i10.ReactiveFormsModule, typeof TranslatePipe, typeof FormModule], [typeof DialogComponent, typeof DialogContentComponent, typeof DialogHeaderComponent, typeof DialogFooterComponent, typeof DialogLayoutComponent]>;
719
728
  static ɵinj: i0.ɵɵInjectorDeclaration<DialogLayoutModule>;
720
729
  }
721
730
 
@@ -735,5 +744,5 @@ declare class GridModule {
735
744
  static ɵinj: i0.ɵɵInjectorDeclaration<GridModule>;
736
745
  }
737
746
 
738
- export { AutocompleteComponent, BaseFormInput, ButtonComponent, CONTEXT_MENU_DESTROY_TOKEN, ColumnAlign, ColumnDataType, ComboboxComponent, ContextMenuComponent, ContextMenuDirective, ContextMenuService, DatepickerComponent, DialogActionType, DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, DialogLayoutComponent, DialogLayoutModule, DialogService, DirectivesModule, FormModule, Formable, GridComponent, GridConfig, GridModule, ICON_COMPONENT, IconComponent, IconWrapperComponent, InputCheckboxComponent, InputContainerComponent, InputRadioComponent, InputTextComponent, LANGUAGE_TOKEN, LayoutModule, LoaderComponent, NotificationComponent, NotificationService, OverlayManager, POPOVER_DESTROY_TOKEN, PopoverComponent, PopoverDirective, PopoverService, ScrollDragDirective, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, isDeepEqual, provideDolfoLanguages };
747
+ export { AutocompleteComponent, BaseFormInput, ButtonComponent, CONTEXT_MENU_DESTROY_TOKEN, ColumnAlign, ColumnDataType, ComboboxComponent, ContextMenuComponent, ContextMenuDirective, ContextMenuService, DatepickerComponent, DialogActionType, DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, DialogLayoutComponent, DialogLayoutModule, DialogService, DirectivesModule, FormComponent, FormModule, Formable, GridComponent, GridConfig, GridModule, ICON_COMPONENT, IconComponent, IconWrapperComponent, InputCheckboxComponent, InputContainerComponent, InputRadioComponent, InputTextComponent, LANGUAGE_TOKEN, LayoutModule, LoaderComponent, NotificationComponent, NotificationService, OverlayManager, POPOVER_DESTROY_TOKEN, PopoverComponent, PopoverDirective, PopoverService, ScrollDragDirective, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, isDeepEqual, passwordValidator, provideDolfoLanguages };
739
748
  export type { AutocompleteConfig, ButtonColor, ButtonSize, ComboInput, ComboOption, ContextMenuItem, DialogComponentInput, DialogFooterButton, DialogForm, DialogIcon, DialogOutput, DialogType, GridAction, GridColumn, IContextMenu, IDialogInput, IGridConfig, ILanguage, ILanguageToken, INotificationInput, IPopover, ITooltip, IconName, InputType, NotificationAction, NotificationType, OnBlur, OnClick, OnFocus, TooltipDirection };