cps-ui-kit 0.104.0 → 0.106.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.
- package/assets/icons.svg +4 -0
- package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +42 -7
- package/esm2020/lib/components/cps-icon/cps-icon.component.mjs +2 -1
- package/esm2020/lib/components/cps-table/table-column-filter/table-column-filter-constraint/table-column-filter-constraint.component.mjs +2 -2
- package/fesm2015/cps-ui-kit.mjs +39 -6
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +41 -6
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +13 -6
- package/package.json +1 -1
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { TooltipPosition } from '../../directives/cps-tooltip.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type BtnToggleOption = {
|
|
6
6
|
value: any;
|
|
7
|
-
label
|
|
7
|
+
label?: string;
|
|
8
|
+
icon?: string;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
tooltip?: string;
|
|
10
11
|
};
|
|
11
|
-
export declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit {
|
|
12
|
+
export declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
12
13
|
private _control;
|
|
14
|
+
private renderer;
|
|
13
15
|
label: string;
|
|
14
16
|
options: BtnToggleOption[];
|
|
15
17
|
multiple: boolean;
|
|
16
18
|
disabled: boolean;
|
|
17
19
|
mandatory: boolean;
|
|
20
|
+
equalWidths: boolean;
|
|
21
|
+
optionTooltipPosition: TooltipPosition;
|
|
18
22
|
infoTooltip: string;
|
|
19
23
|
infoTooltipClass: string;
|
|
20
24
|
infoTooltipMaxWidth: number | string;
|
|
@@ -24,8 +28,10 @@ export declare class CpsButtonToggleComponent implements ControlValueAccessor, O
|
|
|
24
28
|
set value(value: any);
|
|
25
29
|
get value(): any;
|
|
26
30
|
valueChanged: EventEmitter<any>;
|
|
27
|
-
|
|
31
|
+
optionsList: QueryList<ElementRef>;
|
|
32
|
+
constructor(_control: NgControl, renderer: Renderer2);
|
|
28
33
|
ngOnInit(): void;
|
|
34
|
+
ngAfterViewInit(): void;
|
|
29
35
|
onChange: (event: any) => void;
|
|
30
36
|
onTouched: () => void;
|
|
31
37
|
registerOnChange(fn: any): void;
|
|
@@ -33,7 +39,8 @@ export declare class CpsButtonToggleComponent implements ControlValueAccessor, O
|
|
|
33
39
|
writeValue(value: any): void;
|
|
34
40
|
updateValueEvent(event: any): void;
|
|
35
41
|
private _updateValue;
|
|
42
|
+
private _setEqualWidths;
|
|
36
43
|
setDisabledState(disabled: boolean): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonToggleComponent, [{ optional: true; self: true; }]>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonToggleComponent, "cps-button-toggle", never, { "label": "label"; "options": "options"; "multiple": "multiple"; "disabled": "disabled"; "mandatory": "mandatory"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonToggleComponent, [{ optional: true; self: true; }, null]>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonToggleComponent, "cps-button-toggle", never, { "label": "label"; "options": "options"; "multiple": "multiple"; "disabled": "disabled"; "mandatory": "mandatory"; "equalWidths": "equalWidths"; "optionTooltipPosition": "optionTooltipPosition"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
39
46
|
}
|