@crowdfarming/oliva-ds 1.18.0 → 1.19.0-rc.1

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
@@ -9,6 +9,7 @@ export * from './lib/button/src/index';
9
9
  export * from './lib/checkbox-group/src/index';
10
10
  export * from './lib/checkbox/src/index';
11
11
  export * from './lib/chips/src/index';
12
+ export * from './lib/dropdown/src/index';
12
13
  export * from './lib/styles/src/index';
13
14
  export * from './lib/helper-text/src/index';
14
15
  export * from './lib/icon/src/index';
@@ -0,0 +1,2 @@
1
+ export * from './lib/dropdown/dropdown.component';
2
+ export * from './lib/dropdown/dropdown-trigger.directive';
@@ -0,0 +1,9 @@
1
+ import { DropdownComponent } from './dropdown.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DropdownTriggerDirective {
4
+ libDropdownTriggerFor: import("@angular/core").InputSignal<DropdownComponent>;
5
+ private elementRef;
6
+ onClick(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownTriggerDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownTriggerDirective, "[libDropdownTriggerFor]", never, { "libDropdownTriggerFor": { "alias": "libDropdownTriggerFor"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,59 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface Dropdown {
4
+ type: 'default' | 'group';
5
+ options?: DropdownOption[];
6
+ groups?: DropdownGroup[];
7
+ }
8
+ export interface DropdownGroup {
9
+ header?: string;
10
+ options: DropdownOption[];
11
+ }
12
+ export interface DropdownOption {
13
+ value: any;
14
+ label: string;
15
+ detail?: string;
16
+ icon?: string;
17
+ disabled?: boolean;
18
+ }
19
+ export declare class DropdownComponent {
20
+ dataSource: import("@angular/core").InputSignal<Dropdown>;
21
+ value: import("@angular/core").InputSignal<any>;
22
+ disabled: import("@angular/core").InputSignal<boolean>;
23
+ selectionChange: import("@angular/core").OutputEmitterRef<any>;
24
+ isOpen: import("@angular/core").WritableSignal<boolean>;
25
+ isClosing: import("@angular/core").WritableSignal<boolean>;
26
+ selectedOption: import("@angular/core").WritableSignal<DropdownOption>;
27
+ readonly dropdownId = "c-dropdown";
28
+ readonly listboxId: string;
29
+ private elementRef;
30
+ private triggerButtonRef?;
31
+ dropdownButton: ElementRef;
32
+ dropdownMenu: ElementRef;
33
+ onClickOutside(event: Event): void;
34
+ onWindowResize(): void;
35
+ onWindowScroll(): void;
36
+ classes: import("@angular/core").Signal<string>;
37
+ menuStyles: import("@angular/core").Signal<any>;
38
+ private maxHeight;
39
+ private menuLeft;
40
+ private menuTop;
41
+ get flatOptions(): DropdownOption[];
42
+ constructor();
43
+ setTriggerButton(element: HTMLElement): void;
44
+ toggleDropdown(): void;
45
+ private openAndFocusFirst;
46
+ private closeDropdown;
47
+ private closeAndFocusButton;
48
+ selectOption(option: DropdownOption): void;
49
+ onKeydown(event: KeyboardEvent): void;
50
+ onOptionKeydown(event: KeyboardEvent, option: DropdownOption): void;
51
+ isOptionSelected(option: DropdownOption): boolean;
52
+ private get availableOptions();
53
+ private focusFirst;
54
+ private focusNext;
55
+ private focusPrevious;
56
+ private calculateOptimalPosition;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "lib-dropdown", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
59
+ }
@@ -5,5 +5,6 @@ export declare const arrowsIcons: {
5
5
  'caretup-regular': string;
6
6
  'arrowsdownup-regular': string;
7
7
  'arrowclockwise-regular': string;
8
+ 'arrowclockwise-fill': string;
8
9
  'arrowleft-regular': string;
9
10
  };
@@ -1 +1,6 @@
1
- export declare const brandsIcons: {};
1
+ export declare const brandsIcons: {
2
+ facebooklogo: string;
3
+ instagramlogo: string;
4
+ xlogo: string;
5
+ youtubelogo: string;
6
+ };
@@ -1,7 +1,10 @@
1
1
  export declare const commerceIcons: {
2
2
  'shoppingbagopen-regular': string;
3
+ 'shoppingbagopen-fill': string;
3
4
  'package-regular': string;
5
+ 'package-fill': string;
4
6
  'creditcard-regular': string;
7
+ 'creditcard-fill': string;
5
8
  'farm-regular': string;
6
9
  'farm-fill': string;
7
10
  'invoice-regular': string;
@@ -1,4 +1,5 @@
1
1
  export declare const communicationIcons: {
2
2
  'translate-regular': string;
3
3
  'megaphone-regular': string;
4
+ 'megaphone-fill': string;
4
5
  };
@@ -3,18 +3,25 @@ export declare const icons: {
3
3
  'warning-regular': string;
4
4
  'warningcircle-regular': string;
5
5
  'user-regular': string;
6
+ 'user-fill': string;
6
7
  'usercirclecheck-regular': string;
8
+ 'usercirclecheck-fill': string;
7
9
  'users-regular': string;
10
+ 'users-fill': string;
8
11
  'caretleft-regular': string;
9
12
  'caretright-regular': string;
10
13
  'caretdown-regular': string;
11
14
  'caretup-regular': string;
12
15
  'arrowsdownup-regular': string;
13
16
  'arrowclockwise-regular': string;
17
+ 'arrowclockwise-fill': string;
14
18
  'arrowleft-regular': string;
15
19
  'shoppingbagopen-regular': string;
20
+ 'shoppingbagopen-fill': string;
16
21
  'package-regular': string;
22
+ 'package-fill': string;
17
23
  'creditcard-regular': string;
24
+ 'creditcard-fill': string;
18
25
  'farm-regular': string;
19
26
  'farm-fill': string;
20
27
  'invoice-regular': string;
@@ -23,6 +30,8 @@ export declare const icons: {
23
30
  'trash-regular': string;
24
31
  'notepad-regular': string;
25
32
  'notepad-fill': string;
33
+ 'list-regular': string;
34
+ 'list-fill': string;
26
35
  'minus-regular': string;
27
36
  'plus-regular': string;
28
37
  'bank-regular': string;
@@ -31,12 +40,17 @@ export declare const icons: {
31
40
  'checkcircle-regular': string;
32
41
  'checkcircle-fill': string;
33
42
  'magnifyingglass-regular': string;
43
+ 'magnifyingglass-fill': string;
34
44
  'uploadsimple-regular': string;
35
45
  'dotsthree-regular': string;
36
46
  'signout-regular': string;
37
47
  'gear-regular': string;
38
48
  'gear-fill': string;
39
49
  'bell-regular': string;
50
+ facebooklogo: string;
51
+ instagramlogo: string;
52
+ xlogo: string;
53
+ youtubelogo: string;
40
54
  'placeholder-regular': string;
41
55
  'eye-regular': string;
42
56
  'eyeslash-regular': string;
@@ -51,9 +65,14 @@ export declare const icons: {
51
65
  'slidershorizontal-regular': string;
52
66
  'globe-regular': string;
53
67
  'mappin-regular': string;
68
+ 'mappin-fill': string;
69
+ 'house-regular': string;
70
+ 'house-fill': string;
54
71
  'translate-regular': string;
55
72
  'megaphone-regular': string;
73
+ 'megaphone-fill': string;
56
74
  'plant-regular': string;
75
+ 'plant-fill': string;
57
76
  bioland: string;
58
77
  _biosuisse_deprecated: string;
59
78
  'conversion to organic': string;
@@ -1,4 +1,7 @@
1
1
  export declare const mapsTravelIcons: {
2
2
  'globe-regular': string;
3
3
  'mappin-regular': string;
4
+ 'mappin-fill': string;
5
+ 'house-regular': string;
6
+ 'house-fill': string;
4
7
  };
@@ -3,4 +3,6 @@ export declare const officeEditingIcons: {
3
3
  'trash-regular': string;
4
4
  'notepad-regular': string;
5
5
  'notepad-fill': string;
6
+ 'list-regular': string;
7
+ 'list-fill': string;
6
8
  };
@@ -1,5 +1,8 @@
1
1
  export declare const peopleIcons: {
2
2
  'user-regular': string;
3
+ 'user-fill': string;
3
4
  'usercirclecheck-regular': string;
5
+ 'usercirclecheck-fill': string;
4
6
  'users-regular': string;
7
+ 'users-fill': string;
5
8
  };
@@ -2,6 +2,7 @@ export declare const systemDevicesIcons: {
2
2
  'checkcircle-regular': string;
3
3
  'checkcircle-fill': string;
4
4
  'magnifyingglass-regular': string;
5
+ 'magnifyingglass-fill': string;
5
6
  'uploadsimple-regular': string;
6
7
  'dotsthree-regular': string;
7
8
  'signout-regular': string;
@@ -1,3 +1,4 @@
1
1
  export declare const weatherNatureIcons: {
2
2
  'plant-regular': string;
3
+ 'plant-fill': string;
3
4
  };
@@ -1,7 +1,7 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import { ModalButton } from './modal.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ModalComponent {
4
+ export declare class ModalComponent implements OnDestroy {
5
5
  private _isOpenSignal;
6
6
  private _sizeSignal;
7
7
  private _titleSignal;
@@ -12,6 +12,7 @@ export declare class ModalComponent {
12
12
  private _closeOnBackdropClickSignal;
13
13
  modalContentRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
14
14
  constructor();
15
+ ngOnDestroy(): void;
15
16
  isModalOpen(): boolean;
16
17
  getSize(): "lg" | "md" | "sm";
17
18
  getTitle(): string;
@@ -39,6 +40,8 @@ export declare class ModalComponent {
39
40
  getBackdropClasses(): string;
40
41
  getContentClasses(): string;
41
42
  private focusFirstElement;
43
+ private disableBodyScroll;
44
+ private enableBodyScroll;
42
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
43
46
  static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "lib-modal", never, {}, {}, never, ["*"], true, never>;
44
47
  }
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class TagComponent {
3
+ size: import("@angular/core").InputSignal<"sm" | "xs">;
3
4
  variant: import("@angular/core").InputSignal<"primary" | "secondary" | "neutral" | "warning" | "success" | "info" | "alert" | "disabled">;
4
5
  text: import("@angular/core").InputSignal<string>;
5
6
  extraClass: import("@angular/core").InputSignal<string>;
@@ -10,5 +11,5 @@ export declare class TagComponent {
10
11
  closeEvent: import("@angular/core").OutputEmitterRef<void>;
11
12
  onClose(): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "lib-tag", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "extraClass": { "alias": "extraClass"; "required": false; "isSignal": true; }; "showBadge": { "alias": "showBadge"; "required": false; "isSignal": true; }; "closeActive": { "alias": "closeActive"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "skeletonActive": { "alias": "skeletonActive"; "required": false; "isSignal": true; }; }, { "closeEvent": "closeEvent"; }, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "lib-tag", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "extraClass": { "alias": "extraClass"; "required": false; "isSignal": true; }; "showBadge": { "alias": "showBadge"; "required": false; "isSignal": true; }; "closeActive": { "alias": "closeActive"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "skeletonActive": { "alias": "skeletonActive"; "required": false; "isSignal": true; }; }, { "closeEvent": "closeEvent"; }, never, never, true, never>;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdfarming/oliva-ds",
3
- "version": "1.18.0",
3
+ "version": "1.19.0-rc.1",
4
4
  "description": "Librería de componentes de diseño de Oliva",
5
5
  "author": "crowdfarming",
6
6
  "license": "MIT",