cats-ui-lib 2.0.8 → 2.0.9
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/images/error-info.svg +10 -0
- package/fesm2022/cats-ui-lib.mjs +72 -58
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +9 -9
- package/package.json +1 -1
- package/styles/_utilities.scss +2 -0
package/index.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ declare class SingleSelectComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
235
235
|
onDivScroll(event: any): void;
|
|
236
236
|
get filteredOptionsValue(): any[];
|
|
237
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectComponent, never>;
|
|
238
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent, "cats-ui-single-select", never, { "optionList": { "alias": "optionList"; "required": false; }; "singleSelectConfig": { "alias": "singleSelectConfig"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "parentNativeElement": { "alias": "parentNativeElement"; "required": false; }; }, { "onSelection": "onSelection"; "onScroll": "onScroll"; }, ["selectedData"], never, true, never>;
|
|
238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent, "cats-ui-single-select", never, { "optionList": { "alias": "optionList"; "required": false; }; "singleSelectConfig": { "alias": "singleSelectConfig"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "disableControl": { "alias": "disableControl"; "required": false; }; "parentNativeElement": { "alias": "parentNativeElement"; "required": false; }; }, { "onSelection": "onSelection"; "onScroll": "onScroll"; }, ["selectedData"], never, true, never>;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
declare const MULTI_SELECT_CONTROL_VALUE_ACCESSOR: any;
|
|
@@ -315,7 +315,7 @@ declare class MultiSelectComponent implements OnChanges, OnInit, ControlValueAcc
|
|
|
315
315
|
checkUncheckAll(): void;
|
|
316
316
|
get filteredOptionsValue(): any[];
|
|
317
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
|
318
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "cats-ui-multi-select", never, { "optionList": { "alias": "optionList"; "required": false; }; "multiSelectConfig": { "alias": "multiSelectConfig"; "required": false; }; "selectedOptions": { "alias": "selectedOptions"; "required": false; }; }, { "onSelection": "onSelection"; }, never, never, true, never>;
|
|
318
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "cats-ui-multi-select", never, { "optionList": { "alias": "optionList"; "required": false; }; "multiSelectConfig": { "alias": "multiSelectConfig"; "required": false; }; "selectedOptions": { "alias": "selectedOptions"; "required": false; }; "disabledControl": { "alias": "disabledControl"; "required": false; }; }, { "onSelection": "onSelection"; }, never, never, true, never>;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
declare class SearchBoxComponent implements ControlValueAccessor {
|
|
@@ -413,7 +413,7 @@ declare class AutoCompleteSingleSelectComponent implements OnInit {
|
|
|
413
413
|
*/
|
|
414
414
|
onDivScroll(event: any): void;
|
|
415
415
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteSingleSelectComponent, never>;
|
|
416
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteSingleSelectComponent, "cats-ui-input-single-select", never, { "autoSingleSelectConfig": { "alias": "autoSingleSelectConfig"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "optionsList": { "alias": "optionsList"; "required": false; }; "parentNativeElement": { "alias": "parentNativeElement"; "required": false; }; }, { "onItemSelection": "onItemSelection"; "onScroll": "onScroll"; }, never, never, true, never>;
|
|
416
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteSingleSelectComponent, "cats-ui-input-single-select", never, { "autoSingleSelectConfig": { "alias": "autoSingleSelectConfig"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "optionsList": { "alias": "optionsList"; "required": false; }; "parentNativeElement": { "alias": "parentNativeElement"; "required": false; }; "disableControl": { "alias": "disableControl"; "required": false; }; }, { "onItemSelection": "onItemSelection"; "onScroll": "onScroll"; }, never, never, true, never>;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
declare class OutsideClickDirective {
|
|
@@ -991,28 +991,28 @@ declare class WizardComponent {
|
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
declare class FileUploadComponent implements ControlValueAccessor {
|
|
994
|
-
label: string;
|
|
995
994
|
placeholder: string;
|
|
996
995
|
errorMessage: string;
|
|
997
996
|
disabled: boolean;
|
|
998
997
|
multiple: boolean;
|
|
998
|
+
/** Button position: 'left' (prefix) | 'right' (suffix) */
|
|
999
999
|
buttonPosition: 'left' | 'right';
|
|
1000
1000
|
value: File[];
|
|
1001
1001
|
isFocused: boolean;
|
|
1002
1002
|
onChange: (value: File[]) => void;
|
|
1003
1003
|
onTouched: () => void;
|
|
1004
|
-
writeValue(files: File[]): void;
|
|
1005
|
-
registerOnChange(fn:
|
|
1006
|
-
registerOnTouched(fn:
|
|
1004
|
+
writeValue(files: File[] | null | undefined): void;
|
|
1005
|
+
registerOnChange(fn: (value: File[]) => void): void;
|
|
1006
|
+
registerOnTouched(fn: () => void): void;
|
|
1007
1007
|
setDisabledState(isDisabled: boolean): void;
|
|
1008
|
-
onFileSelect(event:
|
|
1008
|
+
onFileSelect(event: Event, input: HTMLInputElement): void;
|
|
1009
1009
|
onDrop(event: DragEvent): void;
|
|
1010
1010
|
onDragOver(event: DragEvent): void;
|
|
1011
1011
|
removeFile(index: number, input?: HTMLInputElement): void;
|
|
1012
1012
|
get isFilled(): boolean;
|
|
1013
1013
|
get hasError(): boolean;
|
|
1014
1014
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
1015
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "cats-ui-file-upload", never, { "
|
|
1015
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "cats-ui-file-upload", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "buttonPosition": { "alias": "buttonPosition"; "required": false; }; }, {}, never, never, true, never>;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, FileUploadComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabContentComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent, WizardComponent, WizardService, WizardStepDirective };
|
package/package.json
CHANGED
package/styles/_utilities.scss
CHANGED
|
@@ -812,6 +812,8 @@ button.cats-btn {
|
|
|
812
812
|
margin-bottom: rem(8px);
|
|
813
813
|
color: var(--text-heading-primary);
|
|
814
814
|
&.disabled-option{
|
|
815
|
+
color: var(--text-body-muted);
|
|
816
|
+
pointer-events: none;
|
|
815
817
|
input[type="checkbox"]:checked{
|
|
816
818
|
background-color: var(--surface-background-subtle);
|
|
817
819
|
border-color: var(--border-core-default);
|