cps-ui-kit 0.146.0 → 0.148.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.
@@ -79,6 +79,11 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
79
79
  * @group Props
80
80
  */
81
81
  options: any[];
82
+ /**
83
+ * If multiple, defines whether selected options should be ordered according to the initial order of the options.
84
+ * @group Props
85
+ */
86
+ keepInitialOrder: boolean;
82
87
  /**
83
88
  * Name of the label field of an option.
84
89
  * @group Props
@@ -232,6 +237,7 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
232
237
  private _navigateOptionsByArrows;
233
238
  private _confirmInput;
234
239
  private _removeLastValue;
240
+ isEmptyValue(): boolean;
235
241
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsAutocompleteComponent, [{ optional: true; self: true; }, null]>;
236
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsAutocompleteComponent, "cps-autocomplete", never, { "label": "label"; "placeholder": "placeholder"; "hint": "hint"; "returnObject": "returnObject"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "selectAll": "selectAll"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "options": "options"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "emptyMessage": "emptyMessage"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "appearance": "appearance"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
242
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsAutocompleteComponent, "cps-autocomplete", never, { "label": "label"; "placeholder": "placeholder"; "hint": "hint"; "returnObject": "returnObject"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "selectAll": "selectAll"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "options": "options"; "keepInitialOrder": "keepInitialOrder"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "emptyMessage": "emptyMessage"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "appearance": "appearance"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
237
243
  }
@@ -97,7 +97,7 @@ export declare class CpsButtonToggleComponent implements ControlValueAccessor, O
97
97
  registerOnChange(fn: any): void;
98
98
  registerOnTouched(fn: any): void;
99
99
  writeValue(value: any): void;
100
- updateValueEvent(event: any): void;
100
+ updateValueEvent(event: any, val: any): void;
101
101
  private _updateValue;
102
102
  private _setEqualWidths;
103
103
  setDisabledState(disabled: boolean): void;
@@ -77,6 +77,11 @@ export declare class CpsSelectComponent implements ControlValueAccessor, OnInit,
77
77
  * @group Props
78
78
  */
79
79
  options: any[];
80
+ /**
81
+ * If multiple, defines whether selected options should be ordered according to the initial order of the options.
82
+ * @group Props
83
+ */
84
+ keepInitialOrder: boolean;
80
85
  /**
81
86
  * Name of the label field of an option.
82
87
  * @group Props
@@ -217,6 +222,7 @@ export declare class CpsSelectComponent implements ControlValueAccessor, OnInit,
217
222
  setDisabledState(disabled: boolean): void;
218
223
  onBlur(): void;
219
224
  focus(): void;
225
+ isEmptyValue(): boolean;
220
226
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsSelectComponent, [{ optional: true; self: true; }]>;
221
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsSelectComponent, "cps-select", never, { "label": "label"; "placeholder": "placeholder"; "hint": "hint"; "returnObject": "returnObject"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "selectAll": "selectAll"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "options": "options"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "optionsClass": "optionsClass"; "appearance": "appearance"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
227
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsSelectComponent, "cps-select", never, { "label": "label"; "placeholder": "placeholder"; "hint": "hint"; "returnObject": "returnObject"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "selectAll": "selectAll"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "options": "options"; "keepInitialOrder": "keepInitialOrder"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "optionsClass": "optionsClass"; "appearance": "appearance"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
222
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "0.146.0",
3
+ "version": "0.148.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15 - 16",
6
6
  "@angular/core": "15 - 16",