@solcre-org/core-ui 2.20.21 → 2.20.23
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/css/inc/components/header.css +2 -1
- package/assets/css/inc/components/native-select.css +229 -0
- package/assets/css/inc/components/ng-select.css +5 -1
- package/assets/css/main.css +1 -0
- package/fesm2022/solcre-org-core-ui.mjs +181 -23
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +34 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, OnInit, SimpleChanges, OnChanges, Signal, Type, ViewContainerRef, AfterViewChecked, RendererFactory2, InjectionToken, Provider, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { ValidatorFn, FormControl, FormGroup } from '@angular/forms';
|
|
4
4
|
import { DataBaseModelInterface } from '@solcre-org/core';
|
|
5
|
-
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
6
5
|
import * as rxjs from 'rxjs';
|
|
7
6
|
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
8
8
|
import { SafeHtml } from '@angular/platform-browser';
|
|
9
9
|
import { Overlay } from '@angular/cdk/overlay';
|
|
10
10
|
import * as _solcre_org_core_ui from '@solcre-org/core-ui';
|
|
@@ -1056,7 +1056,8 @@ interface SelectFieldConfig<T> extends ModalFieldConfig<T> {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
1058
|
declare class SelectFieldComponent<T extends DataBaseModelInterface> extends BaseFieldComponent<T> {
|
|
1059
|
-
|
|
1059
|
+
private elRef;
|
|
1060
|
+
searchInputRef: ElementRef<HTMLInputElement>;
|
|
1060
1061
|
field: _angular_core.InputSignal<SelectFieldConfig<T>>;
|
|
1061
1062
|
selectionChange: _angular_core.OutputEmitterRef<{
|
|
1062
1063
|
selectedItem: any;
|
|
@@ -1066,11 +1067,25 @@ declare class SelectFieldComponent<T extends DataBaseModelInterface> extends Bas
|
|
|
1066
1067
|
private hasValue;
|
|
1067
1068
|
private userHasInteracted;
|
|
1068
1069
|
private lastDynamicValue;
|
|
1070
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
1071
|
+
searchTerm: _angular_core.WritableSignal<string>;
|
|
1072
|
+
highlightedIndex: _angular_core.WritableSignal<number>;
|
|
1069
1073
|
computedValue: _angular_core.Signal<any>;
|
|
1074
|
+
filteredOptions: _angular_core.Signal<{
|
|
1075
|
+
value: any;
|
|
1076
|
+
label: string;
|
|
1077
|
+
data?: any;
|
|
1078
|
+
}[]>;
|
|
1079
|
+
selectedItems: _angular_core.Signal<{
|
|
1080
|
+
value: any;
|
|
1081
|
+
label: string;
|
|
1082
|
+
data?: any;
|
|
1083
|
+
}[]>;
|
|
1070
1084
|
isPlaceholderVisible: _angular_core.Signal<boolean>;
|
|
1071
1085
|
isSearchable: _angular_core.Signal<boolean>;
|
|
1072
1086
|
isDisabled: _angular_core.Signal<boolean>;
|
|
1073
|
-
|
|
1087
|
+
onDocumentClick(event: MouseEvent): void;
|
|
1088
|
+
constructor(elRef: ElementRef);
|
|
1074
1089
|
ngOnInit(): void;
|
|
1075
1090
|
compareWith: (item: any, selected: any) => boolean;
|
|
1076
1091
|
onValueChange(newValue: any): void;
|
|
@@ -1084,6 +1099,21 @@ declare class SelectFieldComponent<T extends DataBaseModelInterface> extends Bas
|
|
|
1084
1099
|
private cloneValue;
|
|
1085
1100
|
onSelectChange(value: any): void;
|
|
1086
1101
|
onSelectClear(): void;
|
|
1102
|
+
toggleDropdown(event: MouseEvent): void;
|
|
1103
|
+
openDropdown(): void;
|
|
1104
|
+
closeDropdown(): void;
|
|
1105
|
+
onSearchInput(event: Event): void;
|
|
1106
|
+
selectOption(option: {
|
|
1107
|
+
value: any;
|
|
1108
|
+
label: string;
|
|
1109
|
+
data?: any;
|
|
1110
|
+
}, event?: MouseEvent): void;
|
|
1111
|
+
removeItem(item: {
|
|
1112
|
+
value: any;
|
|
1113
|
+
label: string;
|
|
1114
|
+
}, event: MouseEvent): void;
|
|
1115
|
+
onClear(event: MouseEvent): void;
|
|
1116
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1087
1117
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectFieldComponent<any>, never>;
|
|
1088
1118
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectFieldComponent<any>, "core-select-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
|
|
1089
1119
|
}
|
|
@@ -1575,6 +1605,7 @@ interface ModalTabConfig<T extends DataBaseModelInterface> {
|
|
|
1575
1605
|
fields: ModalFieldConfig<T>[];
|
|
1576
1606
|
hasError?: boolean;
|
|
1577
1607
|
visible?: boolean;
|
|
1608
|
+
disabled?: boolean | ((data: T | null) => boolean);
|
|
1578
1609
|
icon?: string;
|
|
1579
1610
|
customTemplate?: TemplateRef<any> | null;
|
|
1580
1611
|
}
|