@bootkit/ng0 0.0.0-alpha.17 → 0.0.0-alpha.19
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/README.md +2 -2
- package/common/index.d.ts +60 -4
- package/components/list/index.d.ts +127 -0
- package/components/select/index.d.ts +120 -0
- package/components/table/index.d.ts +66 -10
- package/data/index.d.ts +158 -36
- package/fesm2022/bootkit-ng0-common.mjs +51 -1
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-accordion.mjs +14 -14
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-backdrop.mjs +4 -4
- package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-button.mjs +11 -11
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-card.mjs +12 -12
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-code.mjs +9 -9
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-collapse.mjs +14 -14
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +14 -14
- package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-form-field.mjs +14 -14
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-list.mjs +331 -0
- package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-modal.mjs +13 -13
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-nav.mjs +27 -27
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs +9 -9
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-pagination.mjs +15 -15
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-popover.mjs +11 -11
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-select.mjs +394 -0
- package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +21 -21
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-stepper.mjs +13 -13
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-table.mjs +170 -72
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs +7 -7
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-tooltip.mjs +9 -9
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +26 -26
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-data.mjs +175 -58
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-date.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-file.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-form.mjs +148 -126
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-http.mjs +3 -3
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-localization-locales.mjs +20 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-localization.mjs +100 -35
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-platform-browser.mjs +7 -7
- package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-script.mjs +3 -3
- package/fesm2022/bootkit-ng0-script.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-security.mjs +15 -15
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/fesm2022/bootkit-ng0.mjs.map +1 -1
- package/form/index.d.ts +46 -27
- package/localization/index.d.ts +63 -28
- package/package.json +22 -14
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# NG0
|
|
2
|
-
Angular+Bootstrap Component Library
|
|
1
|
+
# NG0
|
|
2
|
+
Angular+Bootstrap Component Library
|
package/common/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
|
|
4
|
-
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
5
|
-
type Alignment = 'start' | 'center' | 'end';
|
|
6
4
|
declare const RTL: InjectionToken<boolean>;
|
|
5
|
+
/**
|
|
6
|
+
* List item interface.
|
|
7
|
+
*/
|
|
8
|
+
interface SelectOption {
|
|
9
|
+
id: string;
|
|
10
|
+
value: any;
|
|
11
|
+
show?: boolean;
|
|
12
|
+
}
|
|
7
13
|
|
|
8
14
|
/**
|
|
9
15
|
* Represents a claim object that can contain multiple claims.
|
|
@@ -23,6 +29,8 @@ interface ClaimObject {
|
|
|
23
29
|
*/
|
|
24
30
|
type ClaimLike = string | ClaimObject;
|
|
25
31
|
|
|
32
|
+
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
33
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
26
34
|
/**
|
|
27
35
|
* Flips the placement direction.
|
|
28
36
|
* @param placement The placement direction to flip.
|
|
@@ -64,5 +72,53 @@ interface MenuItem {
|
|
|
64
72
|
*/
|
|
65
73
|
declare function toObservable<T>(value: T | Observable<T> | Promise<T>): Observable<T>;
|
|
66
74
|
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Creates an array of numbers within a specified range.
|
|
77
|
+
* @param start The starting number of the range (inclusive).
|
|
78
|
+
* @param end The ending number of the range (inclusive).
|
|
79
|
+
* @returns An array of numbers within the specified range.
|
|
80
|
+
*/
|
|
81
|
+
declare function numberArray(start: number, end: number): number[];
|
|
82
|
+
|
|
83
|
+
declare function getEnumValues(enumClass: Record<string, string | number>): Array<string | number>;
|
|
84
|
+
|
|
85
|
+
declare abstract class _IdGenerator {
|
|
86
|
+
private static _idCounter;
|
|
87
|
+
static next(): number;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Type definition for an ID generator function.
|
|
91
|
+
*/
|
|
92
|
+
type IdGenerator = (param?: any) => string;
|
|
93
|
+
/**
|
|
94
|
+
* Creates a sequential ID generator function with an optional prefix.
|
|
95
|
+
* @param prefix Optional prefix for the generated IDs.
|
|
96
|
+
* @returns A function that generates sequential IDs with the given prefix.
|
|
97
|
+
*/
|
|
98
|
+
declare function sequentialIdGenerator(prefix?: string): IdGenerator;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* CSS class type which can be a string, array of strings, set of strings, or an object with class names as keys.
|
|
102
|
+
*/
|
|
103
|
+
type CssClass = string | string[] | Set<string> | {
|
|
104
|
+
[klass: string]: any;
|
|
105
|
+
} | null | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* A function that takes an item and returns a CssClass.
|
|
108
|
+
* @param item The item to get the CSS class for.
|
|
109
|
+
* @returns The CSS class for the item.
|
|
110
|
+
*/
|
|
111
|
+
type CssClassGetter = (item: any) => CssClass;
|
|
112
|
+
/**
|
|
113
|
+
* A type that represents a CSS class or a function that returns a CSS class.
|
|
114
|
+
*/
|
|
115
|
+
type CssClassLike = CssClass | CssClassGetter | null | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Converts a CssClassLike to a CssClassGetter function.
|
|
118
|
+
* @param v The CssClassLike to convert.
|
|
119
|
+
* @returns A function that returns the desired CSS class.
|
|
120
|
+
*/
|
|
121
|
+
declare function CssClassAttribute(v: CssClassLike): CssClassGetter;
|
|
122
|
+
|
|
123
|
+
export { CssClassAttribute, RTL, _IdGenerator, flipPlacement, formatString, getEnumValues, numberArray, sequentialIdGenerator, toObservable };
|
|
124
|
+
export type { Alignment, ClaimLike, ClaimObject, CssClass, CssClassGetter, CssClassLike, IdGenerator, MenuItem, Placement, SelectOption };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as _bootkit_ng0_common from '@bootkit/ng0/common';
|
|
2
|
+
import { CssClassLike, IdGenerator } from '@bootkit/ng0/common';
|
|
3
|
+
import * as _bootkit_ng0_localization from '@bootkit/ng0/localization';
|
|
4
|
+
import * as _bootkit_ng0_data from '@bootkit/ng0/data';
|
|
5
|
+
import { DataSource, DataSourceLike, FilterPredicate } from '@bootkit/ng0/data';
|
|
6
|
+
import * as _angular_core from '@angular/core';
|
|
7
|
+
import { OnInit, ElementRef, TemplateRef, Renderer2, DestroyRef } from '@angular/core';
|
|
8
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
9
|
+
|
|
10
|
+
interface ListItem {
|
|
11
|
+
id: string;
|
|
12
|
+
value: any;
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
filtered?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Select component that allows users to choose an option from a dropdown list.
|
|
20
|
+
*/
|
|
21
|
+
declare class ListComponent implements OnInit, ControlValueAccessor {
|
|
22
|
+
protected _el: ElementRef<HTMLDivElement>;
|
|
23
|
+
private _renderer;
|
|
24
|
+
private _destroyRef;
|
|
25
|
+
private _document;
|
|
26
|
+
private _ls;
|
|
27
|
+
private _changeDetector;
|
|
28
|
+
protected _value: _angular_core.WritableSignal<any>;
|
|
29
|
+
private _onChangeCallback;
|
|
30
|
+
private _onTouchedCallback;
|
|
31
|
+
protected readonly _items: _angular_core.WritableSignal<ListItem[]>;
|
|
32
|
+
protected readonly _isDisabled: _angular_core.WritableSignal<boolean>;
|
|
33
|
+
protected readonly _activeOptionIndex: _angular_core.WritableSignal<number>;
|
|
34
|
+
protected _itemTemplate?: TemplateRef<any>;
|
|
35
|
+
/**
|
|
36
|
+
* The data source for the select component.
|
|
37
|
+
* This can be an array of data, a function that returns an observable of data,
|
|
38
|
+
* or an instance of DataSource.
|
|
39
|
+
*/
|
|
40
|
+
readonly source: _angular_core.InputSignalWithTransform<DataSource<any>, DataSourceLike<any>>;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether multi selection is enabled or not.
|
|
43
|
+
*/
|
|
44
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether to show selection indicator (checkbox/radio) next to each item.
|
|
47
|
+
* Default is false.
|
|
48
|
+
*/
|
|
49
|
+
readonly showIndicator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* A custom comparer function or the name of a field for comparing two objects.
|
|
52
|
+
*/
|
|
53
|
+
readonly compareBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.BooleanValueComparer, _bootkit_ng0_data.BooleanValueComparerLike>;
|
|
54
|
+
/**
|
|
55
|
+
* Custom format function to convert an item to a string for display.
|
|
56
|
+
* Default converts the item to a string using its toString method.
|
|
57
|
+
*/
|
|
58
|
+
readonly formatBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_localization.ValueFormatterFunction, _bootkit_ng0_localization.ValueFormatterLike>;
|
|
59
|
+
/**
|
|
60
|
+
* Custom value extractor function to extract the value of any object while writing values.
|
|
61
|
+
*/
|
|
62
|
+
readonly writeValueBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.ValueExtractor, _bootkit_ng0_data.ValueExtractorLike>;
|
|
63
|
+
/**
|
|
64
|
+
* A custom filter predicate function to filter items based on a search string.
|
|
65
|
+
* Default checks if the item's string representation contains the filter string (case-insensitive).
|
|
66
|
+
* The filter predicate can be a function or a string representing the property name to filter.
|
|
67
|
+
*/
|
|
68
|
+
readonly filterBy: _angular_core.InputSignalWithTransform<FilterPredicate, _bootkit_ng0_data.FilterPredicateLike>;
|
|
69
|
+
/**
|
|
70
|
+
* CSS class or classes to apply to the list container.
|
|
71
|
+
* Default is undefined.
|
|
72
|
+
*/
|
|
73
|
+
readonly itemClass: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.CssClassGetter, CssClassLike>;
|
|
74
|
+
readonly focus: _angular_core.InputSignal<"none" | "roving" | "activeDescendant">;
|
|
75
|
+
readonly idGenerator: _angular_core.InputSignal<IdGenerator | undefined>;
|
|
76
|
+
constructor(_el: ElementRef<HTMLDivElement>, _renderer: Renderer2, _destroyRef: DestroyRef);
|
|
77
|
+
ngOnInit(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Sets an option as active
|
|
80
|
+
*/
|
|
81
|
+
active(index: number): void;
|
|
82
|
+
/**
|
|
83
|
+
* Filters the list items based on the provided criteria.
|
|
84
|
+
* @param params The filter parameters to apply.
|
|
85
|
+
* @returns void
|
|
86
|
+
*/
|
|
87
|
+
filter(...params: any[]): void;
|
|
88
|
+
/**
|
|
89
|
+
* Clears any applied filters and shows all items in the list.
|
|
90
|
+
* @returns void
|
|
91
|
+
*/
|
|
92
|
+
clearFilter(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Scrolls the item at the specified index into view within the dropdown list.
|
|
95
|
+
* @param index The index of the item to scroll into view.
|
|
96
|
+
* @param position The vertical alignment of the item after scrolling.
|
|
97
|
+
* Can be 'start', 'center', 'end', or 'nearest'.
|
|
98
|
+
* Default is 'nearest'.
|
|
99
|
+
* @param behavior The scrolling behavior.
|
|
100
|
+
*/
|
|
101
|
+
scrollItemIntoView(index: number, position?: ScrollLogicalPosition, behavior?: ScrollBehavior): void;
|
|
102
|
+
/**
|
|
103
|
+
* Toggles the selection of an option by index
|
|
104
|
+
*/
|
|
105
|
+
toggleSelection(index: number): void;
|
|
106
|
+
writeValue(v: any): void;
|
|
107
|
+
registerOnChange(fn: any): void;
|
|
108
|
+
registerOnTouched(fn: any): void;
|
|
109
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
110
|
+
protected _onKeydown(e: KeyboardEvent, firedByFilter?: boolean): void;
|
|
111
|
+
private _loadItems;
|
|
112
|
+
private _listenToDataSourceChanges;
|
|
113
|
+
private _insertItems;
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
115
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ng0-list", ["ng0List"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "compareBy": { "alias": "compareBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "writeValueBy": { "alias": "writeValueBy"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "idGenerator": { "alias": "idGenerator"; "required": false; "isSignal": true; }; }, {}, ["_itemTemplate"], never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* List module.
|
|
120
|
+
*/
|
|
121
|
+
declare class ListModule {
|
|
122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListModule, never>;
|
|
123
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ListModule, never, [typeof ListComponent], [typeof ListComponent]>;
|
|
124
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ListModule>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { ListComponent, ListModule };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as _bootkit_ng0_localization from '@bootkit/ng0/localization';
|
|
2
|
+
import * as _bootkit_ng0_data from '@bootkit/ng0/data';
|
|
3
|
+
import { DataSource, DataSourceLike, FilterPredicate } from '@bootkit/ng0/data';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { OnInit, ElementRef, TemplateRef, Renderer2, DestroyRef } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { FlexibleConnectedPositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
|
|
8
|
+
import { SelectOption } from '@bootkit/ng0/common';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Select component that allows users to choose an option from a dropdown list.
|
|
12
|
+
*/
|
|
13
|
+
declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
14
|
+
protected _el: ElementRef<HTMLDivElement>;
|
|
15
|
+
private _renderer;
|
|
16
|
+
private _destroyRef;
|
|
17
|
+
private _viewportRuler;
|
|
18
|
+
private _overlay;
|
|
19
|
+
private _document;
|
|
20
|
+
private _ls;
|
|
21
|
+
private _changeDetector;
|
|
22
|
+
private _resizeObserver?;
|
|
23
|
+
private _resizeObserverInitialized;
|
|
24
|
+
private _viewpoerRulerSubscription?;
|
|
25
|
+
protected _value: _angular_core.WritableSignal<any>;
|
|
26
|
+
private _filterElementRef?;
|
|
27
|
+
private _onChangeCallback;
|
|
28
|
+
private _onTouchedCallback;
|
|
29
|
+
protected readonly _options: _angular_core.WritableSignal<SelectOption[]>;
|
|
30
|
+
protected readonly _isDisabled: _angular_core.WritableSignal<boolean>;
|
|
31
|
+
protected readonly _selectedOptionIndex: _angular_core.WritableSignal<number>;
|
|
32
|
+
protected readonly _activeOptionIndex: _angular_core.WritableSignal<number>;
|
|
33
|
+
protected _optionTemplate?: TemplateRef<any>;
|
|
34
|
+
protected _positionStrategy: FlexibleConnectedPositionStrategy;
|
|
35
|
+
protected _scrollStrategy: ScrollStrategy;
|
|
36
|
+
/**
|
|
37
|
+
* The data source for the select component.
|
|
38
|
+
* This can be an array of data, a function that returns an observable of data,
|
|
39
|
+
* or an instance of DataSource.
|
|
40
|
+
*/
|
|
41
|
+
readonly source: _angular_core.InputSignalWithTransform<DataSource<any>, DataSourceLike<any>>;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the dropdown is open or closed.
|
|
44
|
+
*/
|
|
45
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Custom compare function to determine equality between two items.
|
|
48
|
+
* Default is a simple equality check.
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Custom value extractor function to extract the value of any object.
|
|
52
|
+
*/
|
|
53
|
+
readonly extractBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.ValueExtractor, _bootkit_ng0_data.ValueExtractorLike>;
|
|
54
|
+
/**
|
|
55
|
+
* Custom format function to convert an item to a string for display.
|
|
56
|
+
* Default converts the item to a string using its toString method.
|
|
57
|
+
*/
|
|
58
|
+
readonly formatBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_localization.ValueFormatterFunction, _bootkit_ng0_localization.ValueFormatterLike>;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates whether the dropdown is filterable.
|
|
61
|
+
*/
|
|
62
|
+
readonly filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* Placeholder text for the filter input field.
|
|
65
|
+
*/
|
|
66
|
+
readonly filterPlaceholder: _angular_core.InputSignal<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Custom filter function to filter items based on a filter value.
|
|
69
|
+
* Default checks if the item contains the filter value (case-insensitive).
|
|
70
|
+
*/
|
|
71
|
+
readonly filterBy: _angular_core.InputSignal<FilterPredicate>;
|
|
72
|
+
constructor(_el: ElementRef<HTMLDivElement>, _renderer: Renderer2, _destroyRef: DestroyRef);
|
|
73
|
+
ngOnInit(): void;
|
|
74
|
+
private _handleDataSourceChange;
|
|
75
|
+
/**
|
|
76
|
+
* Selects an option by index
|
|
77
|
+
*/
|
|
78
|
+
protected _selectByIndex(index: number): void;
|
|
79
|
+
isSelected(value: any): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Sets an option as active
|
|
82
|
+
*/
|
|
83
|
+
active(index: number): void;
|
|
84
|
+
/**
|
|
85
|
+
* Scrolls the item at the specified index into view within the dropdown list.
|
|
86
|
+
* @param index The index of the item to scroll into view.
|
|
87
|
+
* @param position The vertical alignment of the item after scrolling.
|
|
88
|
+
* Can be 'start', 'center', 'end', or 'nearest'.
|
|
89
|
+
* Default is 'nearest'.
|
|
90
|
+
* @param behavior The scrolling behavior.
|
|
91
|
+
*/
|
|
92
|
+
scrollItemIntoView(index: number, position?: ScrollLogicalPosition, behavior?: ScrollBehavior): void;
|
|
93
|
+
protected _insertOptions(index?: number, ...items: any[]): void;
|
|
94
|
+
writeValue(obj: any): void;
|
|
95
|
+
registerOnChange(fn: any): void;
|
|
96
|
+
registerOnTouched(fn: any): void;
|
|
97
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
98
|
+
protected _onKeydown(e: KeyboardEvent, firedByFilter?: boolean): void;
|
|
99
|
+
protected _onFilterBlur(): void;
|
|
100
|
+
protected _filterItems(filter: string): void;
|
|
101
|
+
protected _onOverlayAttach(): void;
|
|
102
|
+
protected _onOverlayDetach(): void;
|
|
103
|
+
private _getNextOptionId;
|
|
104
|
+
private _listenToResizeEvents;
|
|
105
|
+
private _unlistenFromResizeEvents;
|
|
106
|
+
private _onHostClick;
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
108
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "ng0-select", ["ng0Select"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "extractBy": { "alias": "extractBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["_optionTemplate"], never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Select module.
|
|
113
|
+
*/
|
|
114
|
+
declare class SelectModule {
|
|
115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
116
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SelectModule, never, [typeof SelectComponent], [typeof SelectComponent]>;
|
|
117
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SelectModule>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { SelectComponent, SelectModule };
|
|
@@ -66,31 +66,87 @@ type TableCellType = 'text' | 'number' | 'currency' | 'date' | 'time' | {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
declare class TableColumnDirective implements OnInit {
|
|
69
|
+
/**
|
|
70
|
+
* The field in the data source to bind to. If not set, the column will not display any data.
|
|
71
|
+
*/
|
|
69
72
|
field: _angular_core.InputSignal<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* The title of the column. This will be displayed in the header row.
|
|
75
|
+
*/
|
|
70
76
|
title: _angular_core.InputSignal<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Text to display in the cell if the value is null or undefined.
|
|
79
|
+
*/
|
|
71
80
|
emptyCellText: _angular_core.InputSignal<string | undefined>;
|
|
72
81
|
/**
|
|
73
82
|
* Type of the table cell.
|
|
74
83
|
*/
|
|
75
84
|
type: _angular_core.InputSignal<TableCellType>;
|
|
85
|
+
/**
|
|
86
|
+
* CSS class(es) to apply to the table cell.
|
|
87
|
+
*/
|
|
76
88
|
cellClass: _angular_core.InputSignal<string | {
|
|
77
89
|
[klass: string]: any;
|
|
78
90
|
} | string[] | null | undefined>;
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use `cellClass` instead.
|
|
93
|
+
*/
|
|
94
|
+
bold: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated Use `cellClass` instead.
|
|
97
|
+
*/
|
|
98
|
+
shrink: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
/**
|
|
100
|
+
* If true, the column will support filtering.
|
|
101
|
+
*/
|
|
102
|
+
filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
/**
|
|
104
|
+
* The current filter value of the column.
|
|
105
|
+
*/
|
|
83
106
|
filterValue: _angular_core.ModelSignal<any>;
|
|
107
|
+
/**
|
|
108
|
+
* The field to use for filtering. If not set, the `field` property will be used.
|
|
109
|
+
* @deprecated Use `fieldName` instead.
|
|
110
|
+
*/
|
|
84
111
|
filterField: _angular_core.InputSignal<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* The current filter operator of the column.
|
|
114
|
+
*/
|
|
85
115
|
filterOperator: _angular_core.ModelSignal<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* The list of filter operators to show in the filter dropdown. If not set, a default list will be used based on the column type.
|
|
118
|
+
*/
|
|
86
119
|
filterOperators: _angular_core.InputSignal<string[] | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* If true, the filter operators dropdown will be shown.
|
|
122
|
+
*/
|
|
87
123
|
showFilterOperators: _angular_core.WritableSignal<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the field in the data source. If not set, the `field` property will be used.
|
|
126
|
+
*/
|
|
127
|
+
fieldName: _angular_core.InputSignal<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* If true, the column will support sorting.
|
|
130
|
+
*/
|
|
131
|
+
sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
132
|
+
/**
|
|
133
|
+
* The current sort direction of the column.
|
|
134
|
+
*/
|
|
135
|
+
sortDirection: _angular_core.ModelSignal<"none" | "asc" | "desc">;
|
|
88
136
|
template?: TemplateRef<any>;
|
|
89
137
|
constructor();
|
|
90
138
|
ngOnInit(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Get the list of filter operators to show in the filter dropdown.
|
|
141
|
+
*/
|
|
91
142
|
getFilterOperators(): string[];
|
|
143
|
+
/**
|
|
144
|
+
* Toggle the sort direction of the column.
|
|
145
|
+
* @returns void
|
|
146
|
+
*/
|
|
147
|
+
toggleSortDirection(): void;
|
|
92
148
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableColumnDirective, never>;
|
|
93
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableColumnDirective, "ng0-table-col", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "emptyCellText": { "alias": "emptyCellText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "cellClass": { "alias": "cellClass"; "required": false; "isSignal": true; }; "bold": { "alias": "bold"; "required": false; "isSignal": true; }; "shrink": { "alias": "shrink"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterValue": { "alias": "filterValue"; "required": false; "isSignal": true; }; "filterField": { "alias": "filterField"; "required": false; "isSignal": true; }; "filterOperator": { "alias": "filterOperator"; "required": false; "isSignal": true; }; "filterOperators": { "alias": "filterOperators"; "required": false; "isSignal": true; }; }, { "filterValue": "filterValueChange"; "filterOperator": "filterOperatorChange"; }, ["template"], never, true, never>;
|
|
149
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableColumnDirective, "ng0-table-col", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "emptyCellText": { "alias": "emptyCellText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "cellClass": { "alias": "cellClass"; "required": false; "isSignal": true; }; "bold": { "alias": "bold"; "required": false; "isSignal": true; }; "shrink": { "alias": "shrink"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterValue": { "alias": "filterValue"; "required": false; "isSignal": true; }; "filterField": { "alias": "filterField"; "required": false; "isSignal": true; }; "filterOperator": { "alias": "filterOperator"; "required": false; "isSignal": true; }; "filterOperators": { "alias": "filterOperators"; "required": false; "isSignal": true; }; "fieldName": { "alias": "fieldName"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "filterValue": "filterValueChange"; "filterOperator": "filterOperatorChange"; "sortDirection": "sortDirectionChange"; }, ["template"], never, true, never>;
|
|
94
150
|
}
|
|
95
151
|
|
|
96
152
|
declare class TableDetailRowDirective {
|
|
@@ -119,16 +175,16 @@ declare class TableComponent implements OnInit, AfterContentInit, OnDestroy {
|
|
|
119
175
|
* If true, the table will automatically load data when initialized.
|
|
120
176
|
* This is useful for tables that need to display data immediately without user interaction.
|
|
121
177
|
*/
|
|
122
|
-
autoLoad: _angular_core.
|
|
178
|
+
autoLoad: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
179
|
/**
|
|
124
180
|
* If true, the table will show row numbers.
|
|
125
181
|
* This will add a column to the left of the table with the row numbers.
|
|
126
182
|
*/
|
|
127
|
-
showRowNumbers: _angular_core.
|
|
183
|
+
showRowNumbers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
128
184
|
/**
|
|
129
185
|
* If true, the table will show the header row.
|
|
130
186
|
*/
|
|
131
|
-
showHeader: _angular_core.
|
|
187
|
+
showHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
132
188
|
/**
|
|
133
189
|
* If true, the table will support pagination.
|
|
134
190
|
* If false, the table will load all records at once.
|
|
@@ -138,7 +194,7 @@ declare class TableComponent implements OnInit, AfterContentInit, OnDestroy {
|
|
|
138
194
|
* If true, the table will support sorting.
|
|
139
195
|
* This will add a sort icon to each column header.
|
|
140
196
|
*/
|
|
141
|
-
sortable: _angular_core.
|
|
197
|
+
sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
142
198
|
/**
|
|
143
199
|
* The CSS class to apply to the table element.
|
|
144
200
|
* This can be used to apply custom styles to the table.
|
|
@@ -161,7 +217,7 @@ declare class TableComponent implements OnInit, AfterContentInit, OnDestroy {
|
|
|
161
217
|
* If true, the table will support filtering.
|
|
162
218
|
* This will add a filter input to each column header.
|
|
163
219
|
*/
|
|
164
|
-
filterable: _angular_core.
|
|
220
|
+
filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
165
221
|
/**
|
|
166
222
|
* The indicator to show while the table is loading data for the first time.
|
|
167
223
|
*/
|