cps-ui-kit 17.15.0 → 17.17.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.
@@ -44,12 +44,12 @@ export declare class CpsTreeAutocompleteComponent extends CpsBaseTreeDropdownCom
44
44
  onInputKeyDown(event: any): void;
45
45
  onChevronClick(event: any): void;
46
46
  remove(option: TreeNode): void;
47
- private _select;
48
- clear(event: any): void;
47
+ clear(event?: any): void;
49
48
  focusInput(): void;
50
49
  focus(): void;
51
50
  onFilterOptions(): void;
52
51
  filterOptions(event: any): void;
52
+ private _select;
53
53
  private _getValueLabel;
54
54
  private _clearInput;
55
55
  private _closeAndClear;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { TreeNode } from 'primeng/api';
4
4
  import { Tree } from 'primeng/tree';
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  * BaseTreeDropdownComponent is an internal base component to support hierarchical data dropdown.
11
11
  * @group Components
12
12
  */
13
- export declare class CpsBaseTreeDropdownComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
13
+ export declare class CpsBaseTreeDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit, OnDestroy {
14
14
  control: NgControl;
15
15
  cdRef: ChangeDetectorRef;
16
16
  /**
@@ -147,8 +147,7 @@ export declare class CpsBaseTreeDropdownComponent implements ControlValueAccesso
147
147
  * An array of objects to display as the available options.
148
148
  * @group Props
149
149
  */
150
- set options(options: any[]);
151
- get options(): TreeNode[];
150
+ options: any[];
152
151
  /**
153
152
  * Value of the component.
154
153
  * @group Props
@@ -167,7 +166,7 @@ export declare class CpsBaseTreeDropdownComponent implements ControlValueAccesso
167
166
  treeList: Tree;
168
167
  boxEl: ElementRef;
169
168
  private _statusChangesSubscription?;
170
- _options: TreeNode[];
169
+ innerOptions: TreeNode[];
171
170
  optionsMap: Map<string, TreeNode<any>>;
172
171
  originalOptionsMap: Map<string, any>;
173
172
  virtualListHeight: number;
@@ -183,40 +182,43 @@ export declare class CpsBaseTreeDropdownComponent implements ControlValueAccesso
183
182
  resizeObserver: ResizeObserver;
184
183
  constructor(control: NgControl, cdRef: ChangeDetectorRef);
185
184
  ngOnInit(): void;
185
+ ngOnChanges(changes: SimpleChanges): void;
186
186
  ngAfterViewInit(): void;
187
187
  ngOnDestroy(): void;
188
- private _initContainerClickListener;
189
- private _handleOnContainerClick;
188
+ expandAll(): void;
189
+ collapseAll(): void;
190
190
  onChange: (event: any) => void;
191
191
  onTouched: () => void;
192
192
  registerOnChange(fn: any): void;
193
193
  registerOnTouched(fn: any): void;
194
194
  writeValue(value: any, internal?: boolean): void;
195
+ setDisabledState(disabled: boolean): void;
196
+ onBlur(): void;
197
+ focus(): void;
195
198
  updateValue(value: any): void;
199
+ clear(event?: any): void;
196
200
  onSelectNode(): void;
197
201
  onClickFullyExpandable(elem: HTMLElement): void;
198
- private _getHTMLElementKey;
199
202
  treeSelectionChanged(selection: any): void;
200
203
  recalcVirtualListHeight(): void;
201
204
  toggleOptions(show?: boolean): void;
202
205
  remove(option: TreeNode): void;
203
206
  initArrowsNavigaton(): void;
207
+ onNodeExpand(event: any): void;
208
+ onNodeCollapse(event: any): void;
209
+ treeSelectionToValue(selection: any): any;
210
+ updateOptions(): void;
211
+ private _initContainerClickListener;
212
+ private _handleOnContainerClick;
213
+ private _getHTMLElementKey;
204
214
  private _setTreeListHeight;
205
215
  private _nodeToggled;
206
216
  private _nodeToggledWithChevron;
207
- onNodeExpand(event: any): void;
208
- onNodeCollapse(event: any): void;
209
- clear(event: any): void;
210
217
  private _checkErrors;
211
- setDisabledState(disabled: boolean): void;
212
- onBlur(): void;
213
- focus(): void;
214
218
  private _expandToNodes;
215
219
  private _toInnerOptions;
216
220
  private _buildOptionsMap;
217
- treeSelectionToValue(selection: any): any;
218
221
  private _valueToTreeSelection;
219
- updateOptions(): void;
220
222
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsBaseTreeDropdownComponent, [{ optional: true; self: true; }, null]>;
221
223
  static ɵcmp: i0.ɵɵComponentDeclaration<CpsBaseTreeDropdownComponent, "ng-component", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "chips": { "alias": "chips"; "required": false; }; "closableChips": { "alias": "closableChips"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "openOnClear": { "alias": "openOnClear"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionInfo": { "alias": "optionInfo"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "prefixIconSize": { "alias": "prefixIconSize"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "numToleratedItems": { "alias": "numToleratedItems"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "initialExpandDirectories": { "alias": "initialExpandDirectories"; "required": false; }; "initialExpandAll": { "alias": "initialExpandAll"; "required": false; }; "showChevron": { "alias": "showChevron"; "required": false; }; "options": { "alias": "options"; "required": false; }; "_value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, false, never>;
222
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "17.15.0",
3
+ "version": "17.17.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",