asksuite-citrus 0.9.0 → 0.9.2

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.
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { ControlValueAccessor, FormBuilder, FormControl, FormGroup } from "@angular/forms";
2
+ import { ControlValueAccessor, FormBuilder, FormControl } from "@angular/forms";
3
3
  import { Overlay } from "@angular/cdk/overlay";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AutocompleteComponent implements AfterViewInit, ControlValueAccessor, OnChanges {
@@ -17,7 +17,6 @@ export declare class AutocompleteComponent implements AfterViewInit, ControlValu
17
17
  protected selectedOption?: any;
18
18
  protected selection: any[];
19
19
  protected closed: boolean;
20
- protected selectionForm: FormGroup;
21
20
  protected chipsCollapsed: boolean;
22
21
  protected checkAllValue: boolean;
23
22
  protected disabled: boolean;
@@ -32,6 +31,9 @@ export declare class AutocompleteComponent implements AfterViewInit, ControlValu
32
31
  "-four": boolean;
33
32
  "-many": boolean;
34
33
  };
34
+ protected optionsSelected: {
35
+ [key: string | number]: boolean;
36
+ };
35
37
  private _overlayRef;
36
38
  private _portal;
37
39
  private _destroy;
@@ -49,10 +51,9 @@ export declare class AutocompleteComponent implements AfterViewInit, ControlValu
49
51
  allOptionsSelectedText: string | null;
50
52
  constructor(formBuilder: FormBuilder, overlay: Overlay, viewContainerRef: ViewContainerRef, change: ChangeDetectorRef);
51
53
  ngAfterViewInit(): void;
52
- private isAllOptionsSelected;
54
+ get isAllOptionsSelected(): boolean;
53
55
  ngOnChanges(changes: SimpleChanges): void;
54
56
  private handleInputChange;
55
- private listenSelectionChange;
56
57
  private handleSelectionChange;
57
58
  private updateChipsContainerClasses;
58
59
  handleOptionSelected(item: any): void;
@@ -64,12 +65,12 @@ export declare class AutocompleteComponent implements AfterViewInit, ControlValu
64
65
  handleClick(event: MouseEvent): void;
65
66
  get selectedOptions(): any[];
66
67
  handleSelectAll(checked: boolean): void;
68
+ valueChange(option: any, value: boolean): void;
67
69
  selectAllOptions(selected: boolean): void;
68
70
  handleChipAction(option: any): void;
69
71
  display(option: any): string | undefined;
70
72
  getMoreItems(): void;
71
73
  sortSelectedFirst(items: Array<any>, selectedItems: Array<any>, prop: string): void;
72
- private updateFormControls;
73
74
  protected updateValidation(): void;
74
75
  writeValue(obj: any[] | any): void;
75
76
  onChange: (_: any) => void;
@@ -2,14 +2,16 @@ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ChipsComponent {
4
4
  private change;
5
- set appearance(value: 'light' | 'regular' | 'primary');
5
+ set appearance(value: 'light' | 'regular' | 'primary' | 'tag');
6
6
  showAction: boolean;
7
7
  set size(value: 'small' | 'regular');
8
+ color?: string;
8
9
  protected _isSmall: boolean;
9
10
  protected _isAppearanceLight: boolean;
10
11
  protected _isAppearancePrimary: boolean;
12
+ protected _isAppearanceTag: boolean;
11
13
  constructor(change: ChangeDetectorRef);
12
14
  protected action: EventEmitter<void>;
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "ask-chips", never, { "appearance": { "alias": "appearance"; "required": false; }; "showAction": { "alias": "showAction"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "action": "action"; }, never, ["*"], false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "ask-chips", never, { "appearance": { "alias": "appearance"; "required": false; }; "showAction": { "alias": "showAction"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "action": "action"; }, never, ["*"], false, never>;
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asksuite-citrus",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",