@cauca-911/material 20.2.1 → 20.2.3

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, EventEmitter, InputSignal, OutputEmitterRef, Signal, WritableSignal, OnDestroy, DoCheck, ElementRef, TemplateRef, AfterContentInit, ViewContainerRef } from '@angular/core';
2
+ import { OnInit, EventEmitter, InputSignal, OutputEmitterRef, Signal, WritableSignal, OnDestroy, DoCheck, ElementRef, TemplateRef, ModelSignal, AfterContentInit, ViewContainerRef } from '@angular/core';
3
3
  import * as i4 from '@angular/forms';
4
4
  import { ControlValueAccessor, AbstractControl, ValidatorFn, UntypedFormGroup, UntypedFormBuilder, FormControl, FormGroup, NgControl, NgForm, FormGroupDirective, FormControlDirective, FormControlName, UntypedFormControl } from '@angular/forms';
5
5
  import { SubscriptSizing, MatFormFieldControl } from '@angular/material/form-field';
@@ -9,6 +9,7 @@ import * as rxjs from 'rxjs';
9
9
  import { Observable, Subject } from 'rxjs';
10
10
  import { BooleanInput } from '@angular/cdk/coercion';
11
11
  import { MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
12
+ import { MatSelect } from '@angular/material/select';
12
13
  import * as i3 from '@angular/common';
13
14
  import { Configuration } from '@cauca-911/core';
14
15
 
@@ -199,6 +200,13 @@ interface InputOptions {
199
200
  validators?: ValidatorFn | ValidatorFn[];
200
201
  }
201
202
 
203
+ declare class BreadcrumbLocation {
204
+ link?: string;
205
+ title: string;
206
+ translate?: boolean;
207
+ action?: () => void;
208
+ }
209
+
202
210
  declare class LoadingStateService {
203
211
  showLoadingIndicator: Signal<boolean>;
204
212
  showError: Signal<boolean>;
@@ -435,6 +443,74 @@ declare class DropdownChipAutocompleteComponent implements ControlValueAccessor,
435
443
  static ɵcmp: i0.ɵɵComponentDeclaration<DropdownChipAutocompleteComponent, "cauca-dropdown-chip-autocomplete", never, { "listAutoComplete": { "alias": "listAutoComplete"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "allowRemove": { "alias": "allowRemove"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "canRemoveAll": { "alias": "canRemoveAll"; "required": false; "isSignal": true; }; "hasOptionTemplate": { "alias": "hasOptionTemplate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "clearAll": "clearAll"; }, ["optionTemplate"], never, true, never>;
436
444
  }
437
445
 
446
+ declare class ColorPickerComponent implements ControlValueAccessor, MatFormFieldControl<string>, OnDestroy {
447
+ private elementRef;
448
+ ngControl: NgControl;
449
+ stateChanges: Subject<void>;
450
+ static nextId: number;
451
+ id: string;
452
+ placeholder: string;
453
+ focused: boolean;
454
+ touched: boolean;
455
+ required: boolean;
456
+ disabled: boolean;
457
+ errorState: boolean;
458
+ controlType?: string;
459
+ autofilled?: boolean;
460
+ userAriaDescribedBy?: string;
461
+ valueChanged: EventEmitter<string>;
462
+ private _value;
463
+ get shouldLabelFloat(): boolean;
464
+ get empty(): boolean;
465
+ get value(): string | null;
466
+ set value(newValue: string | null);
467
+ constructor(elementRef: ElementRef<HTMLElement>, ngControl: NgControl);
468
+ onFocusIn(_: FocusEvent): void;
469
+ onFocusOut(event: FocusEvent): void;
470
+ ngOnDestroy(): void;
471
+ setDescribedByIds(_: string[]): void;
472
+ onContainerClick(_: MouseEvent): void;
473
+ writeValue(value: string): void;
474
+ registerOnChange(fn: any): void;
475
+ registerOnTouched(fn: any): void;
476
+ onChange: (_: any) => void;
477
+ onTouched: () => void;
478
+ onChangeColor(color: string): void;
479
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, [null, { optional: true; self: true; }]>;
480
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "cauca-color-picker", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
481
+ }
482
+
483
+ interface Option {
484
+ id: string | null;
485
+ name: string;
486
+ }
487
+ declare class SelectWithSearchComponent {
488
+ label: string;
489
+ selectFirstOptionByDefault: boolean;
490
+ optionFilterControl: FormControl<string>;
491
+ singleSelect: MatSelect;
492
+ isDisabled: i0.InputSignal<boolean>;
493
+ hasOptions: i0.WritableSignal<boolean>;
494
+ disableControl: i0.Signal<boolean>;
495
+ allowMultiSelection: i0.InputSignal<boolean>;
496
+ showClearOption: i0.InputSignal<boolean>;
497
+ enableSearch: i0.InputSignal<boolean>;
498
+ filteredOptions: i0.ResourceRef<Option[]>;
499
+ valueChanged: EventEmitter<any>;
500
+ private selectedOptionId;
501
+ private readonly allOptions;
502
+ private readonly filterText;
503
+ set options(newOptions: Option[]);
504
+ get options(): Option[];
505
+ set value(newValue: string | null);
506
+ get value(): string | null;
507
+ private setInitialSelectedOption;
508
+ private selectFirstOption;
509
+ private computeFilteredOptions;
510
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectWithSearchComponent, never>;
511
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectWithSearchComponent, "cauca-select-with-search", never, { "label": { "alias": "label"; "required": true; }; "selectFirstOptionByDefault": { "alias": "selectFirstOptionByDefault"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "allowMultiSelection": { "alias": "allowMultiSelection"; "required": false; "isSignal": true; }; "showClearOption": { "alias": "showClearOption"; "required": false; "isSignal": true; }; "enableSearch": { "alias": "enableSearch"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, ["*"], true, never>;
512
+ }
513
+
438
514
  declare class GroupContainerComponent {
439
515
  caption: i0.InputSignal<string>;
440
516
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupContainerComponent, never>;
@@ -467,13 +543,6 @@ declare class SectionFieldComponent {
467
543
  static ɵcmp: i0.ɵɵComponentDeclaration<SectionFieldComponent, "cauca-section-field", never, { "autoTranslateLabel": { "alias": "autoTranslateLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "fieldName": { "alias": "fieldName"; "required": false; "isSignal": true; }; "showLink": { "alias": "showLink"; "required": false; "isSignal": true; }; "splitEqually": { "alias": "splitEqually"; "required": false; "isSignal": true; }; }, { "linkClick": "linkClick"; }, never, never, true, never>;
468
544
  }
469
545
 
470
- declare class BreadcrumbLocation {
471
- link?: string;
472
- title: string;
473
- translate?: boolean;
474
- action?: () => void;
475
- }
476
-
477
546
  declare class PageTitleComponent {
478
547
  caption: i0.InputSignal<string>;
479
548
  showBreadcrumb: i0.InputSignal<boolean>;
@@ -490,6 +559,55 @@ declare class PageTitleComponent {
490
559
  static ɵcmp: i0.ɵɵComponentDeclaration<PageTitleComponent, "cauca-page-title", never, { "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "location": { "alias": "location"; "required": false; "isSignal": true; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; "isSignal": true; }; "baseCrumb": { "alias": "baseCrumb"; "required": false; "isSignal": true; }; "translateBreadcrumb": { "alias": "translateBreadcrumb"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
491
560
  }
492
561
 
562
+ declare class ExpandablePanelComponent {
563
+ isCollapsed: ModelSignal<boolean>;
564
+ caption: InputSignal<string>;
565
+ subCaption: InputSignal<string>;
566
+ changeState(): void;
567
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExpandablePanelComponent, never>;
568
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandablePanelComponent, "cauca-expandable-panel", never, { "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "subCaption": { "alias": "subCaption"; "required": false; "isSignal": true; }; }, { "isCollapsed": "isCollapsedChange"; }, never, ["*"], true, never>;
569
+ }
570
+
571
+ declare class MenuExpandablePanelComponent {
572
+ caption: InputSignal<string>;
573
+ isSubItem: InputSignal<boolean>;
574
+ subCaption: InputSignal<string>;
575
+ menuIcon: InputSignal<string>;
576
+ showExpansionIcon: InputSignal<boolean>;
577
+ addTopBorderRadius: InputSignal<boolean>;
578
+ bottomBorder: InputSignal<boolean>;
579
+ addBottomBorderRadius: InputSignal<boolean>;
580
+ route: InputSignal<string[]>;
581
+ items: InputSignal<{
582
+ icon: string;
583
+ title: string;
584
+ route?: string[];
585
+ action?: () => void;
586
+ }[]>;
587
+ opened: WritableSignal<boolean>;
588
+ private readonly router;
589
+ get topLeftRadius(): string;
590
+ get topRightRadius(): string;
591
+ get bottomLeftRadius(): string;
592
+ get bottomRightRadius(): string;
593
+ get bottomBorderClass(): boolean;
594
+ handleClick(): void;
595
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuExpandablePanelComponent, never>;
596
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuExpandablePanelComponent, "cauca-menu-expandable-panel", never, { "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "isSubItem": { "alias": "isSubItem"; "required": false; "isSignal": true; }; "subCaption": { "alias": "subCaption"; "required": false; "isSignal": true; }; "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "showExpansionIcon": { "alias": "showExpansionIcon"; "required": false; "isSignal": true; }; "addTopBorderRadius": { "alias": "addTopBorderRadius"; "required": false; "isSignal": true; }; "bottomBorder": { "alias": "bottomBorder"; "required": false; "isSignal": true; }; "addBottomBorderRadius": { "alias": "addBottomBorderRadius"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
597
+ }
598
+
599
+ declare class MenuExpandablePanelItemComponent {
600
+ icon: InputSignal<string>;
601
+ caption: InputSignal<string>;
602
+ route: InputSignal<string[]>;
603
+ isSubItem: InputSignal<boolean>;
604
+ action: InputSignal<() => void | null>;
605
+ private readonly router;
606
+ openRoute(): void;
607
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuExpandablePanelItemComponent, never>;
608
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuExpandablePanelItemComponent, "cauca-menu-expandable-panel-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "isSubItem": { "alias": "isSubItem"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
609
+ }
610
+
493
611
  declare class SavingConfirmedBoxComponent {
494
612
  show: i0.ModelSignal<boolean>;
495
613
  static ɵfac: i0.ɵɵFactoryDeclaration<SavingConfirmedBoxComponent, never>;
@@ -658,5 +776,5 @@ declare class CaucaSlideshowComponent implements OnInit {
658
776
  static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, true, never>;
659
777
  }
660
778
 
661
- export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SnackBarComponent, StrokedButtonComponent };
662
- export type { ConfirmationOptions, DateRange, HasErrorContext, InputOptions };
779
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent };
780
+ export type { ConfirmationOptions, DateRange, HasErrorContext, InputOptions, Option };
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@cauca-911/material",
3
- "version": "20.2.1",
3
+ "version": "20.2.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.2.1",
6
6
  "@angular/core": ">=20.2.1",
7
7
  "@angular/material": ">=20.2.0",
8
8
  "@fortawesome/angular-fontawesome": ">=2.0.0",
9
9
  "@fortawesome/fontawesome-svg-core": ">=7.0.0",
10
- "@cauca-911/core": ">=20.2.0"
10
+ "@cauca-911/core": ">=20.2.0",
11
+ "ngx-mat-select-search": ">=8.0.0",
12
+ "ngx-color-picker": ">=20.1.1"
11
13
  },
12
14
  "homepage": "https://cauca.ca",
13
15
  "license": "SEE LICENSE IN LICENSE",