@stemy/ngx-utils 19.7.11 → 19.7.13
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/fesm2022/stemy-ngx-utils.mjs +72 -33
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +0 -1
- package/ngx-utils/components/chips/chips.component.d.ts +8 -3
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +1 -1
- package/ngx-utils/utils/array.utils.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { ControlValueAccessor } from "@angular/forms";
|
|
3
3
|
import { ChipOption, ChipStatus, ChipValue } from "../../common-types";
|
|
4
|
+
import { AutoPlacementOptions } from "@floating-ui/dom";
|
|
5
|
+
import { DropdownDirective } from "../../directives/dropdown.directive";
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
|
|
6
8
|
readonly cdr: ChangeDetectorRef;
|
|
9
|
+
testId: string;
|
|
7
10
|
value: ChipValue | ChipValue[];
|
|
8
11
|
multiple: boolean;
|
|
9
12
|
disabled: boolean;
|
|
@@ -15,9 +18,10 @@ export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
|
|
|
15
18
|
step: number;
|
|
16
19
|
placeholder: string;
|
|
17
20
|
unique: boolean;
|
|
21
|
+
strict: boolean;
|
|
18
22
|
options: ReadonlyArray<ChipOption>;
|
|
19
23
|
valueChange: EventEmitter<ChipValue | ChipValue[]>;
|
|
20
|
-
|
|
24
|
+
chipDropdown: DropdownDirective;
|
|
21
25
|
chipButtons: ElementRef<HTMLDivElement>;
|
|
22
26
|
chipInput: ElementRef<HTMLInputElement>;
|
|
23
27
|
inputStyles: {
|
|
@@ -26,6 +30,7 @@ export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
|
|
|
26
30
|
valueOptions: ChipOption[];
|
|
27
31
|
filteredOptions: ChipOption[];
|
|
28
32
|
statuses: ChipStatus[];
|
|
33
|
+
autoPlacement: AutoPlacementOptions;
|
|
29
34
|
private undoList;
|
|
30
35
|
private previousValue;
|
|
31
36
|
onChange: any;
|
|
@@ -41,7 +46,7 @@ export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
|
|
|
41
46
|
onResize(): void;
|
|
42
47
|
onInput(ev: KeyboardEvent): boolean;
|
|
43
48
|
onBlur(ev: FocusEvent): void;
|
|
44
|
-
enterOption(
|
|
49
|
+
enterOption(src: string | number): boolean;
|
|
45
50
|
trackBy(index: number, option: ChipOption): string;
|
|
46
51
|
protected makeUndo(): void;
|
|
47
52
|
protected createOption(value: string | number): ChipOption;
|
|
@@ -49,5 +54,5 @@ export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
|
|
|
49
54
|
protected updateValue(): ChipValue | ChipValue[];
|
|
50
55
|
protected filterOptions(): void;
|
|
51
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "chips", never, { "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "step": { "alias": "step"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "chips", never, { "testId": { "alias": "testId"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "step": { "alias": "step"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
53
58
|
}
|
|
@@ -81,7 +81,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
81
81
|
setQueryValue(c: string, value: string | boolean): void;
|
|
82
82
|
setItemsPerPage(count: number): void;
|
|
83
83
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
84
|
-
protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string): Promise<IPaginationData>;
|
|
84
|
+
protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery): Promise<IPaginationData>;
|
|
85
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
86
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "dataLoader": { "alias": "dataLoader"; "required": false; }; "data": { "alias": "data"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "page": { "alias": "page"; "required": false; }; "urlParam": { "alias": "urlParam"; "required": false; }; "parallelData": { "alias": "parallelData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showItems": { "alias": "showItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "updateTime": { "alias": "updateTime"; "required": false; }; "filterTime": { "alias": "filterTime"; "required": false; }; "maxPages": { "alias": "maxPages"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "orderDescending": { "alias": "orderDescending"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "titlePrefix": { "alias": "titlePrefix"; "required": false; }; "dragStartFn": { "alias": "dragStartFn"; "required": false; }; "dragEnterFn": { "alias": "dragEnterFn"; "required": false; }; "dropFn": { "alias": "dropFn"; "required": false; }; }, {}, ["rowTemplate", "wrapperTemplate", "templateDirectives"], ["[table-features-before]", "[table-features-after]", "[table-top]", "[table-bottom]"], false, never>;
|
|
87
87
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare class ArrayUtils {
|
|
2
|
-
static has(arr: any
|
|
3
|
-
static match(arr: any
|
|
4
|
-
static any<T>(arr: T
|
|
2
|
+
static has(arr: ReadonlyArray<any>, ...items: any[]): boolean;
|
|
3
|
+
static match(arr: ReadonlyArray<any>, str: string): boolean;
|
|
4
|
+
static any<T>(arr: ReadonlyArray<T>, cb: (item: T) => boolean): boolean;
|
|
5
5
|
static move<T>(arr: T[], oldIndex: number, newIndex: number): T[];
|
|
6
|
-
static reversed(arr:
|
|
7
|
-
static min<T>(arr: T
|
|
8
|
-
static max<T>(arr: T
|
|
9
|
-
static chunk<T>(arr: T
|
|
10
|
-
static unique<T>(arr: T
|
|
6
|
+
static reversed<T>(arr: ReadonlyArray<T>): T[];
|
|
7
|
+
static min<T>(arr: ReadonlyArray<T>, cb: (item: T, index?: number) => number): T;
|
|
8
|
+
static max<T>(arr: ReadonlyArray<T>, cb: (item: T, index?: number) => number): T;
|
|
9
|
+
static chunk<T>(arr: ReadonlyArray<T>, size: number): Array<T[]>;
|
|
10
|
+
static unique<T>(arr: ReadonlyArray<T>): T[];
|
|
11
11
|
}
|