@stemy/ngx-utils 19.7.12 → 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/ngx-utils.imports.d.ts +1 -1
- 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
|
}
|
|
@@ -64,7 +64,7 @@ import { UploadComponent } from "./components/upload/upload.component";
|
|
|
64
64
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
65
65
|
export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
66
66
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
67
|
-
export declare const providers: (typeof
|
|
67
|
+
export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof SocketService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof CacheService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof DeviceDetectorService | {
|
|
68
68
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
69
69
|
useClass: typeof DragDropEventPlugin;
|
|
70
70
|
multi: boolean;
|