@bootkit/ng0 0.0.0-alpha.4 → 0.0.0-alpha.40
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/common/index.d.ts +263 -7
- package/components/accordion/index.d.ts +13 -3
- package/components/backdrop/index.d.ts +12 -0
- package/components/dropdown/index.d.ts +156 -0
- package/components/form-field/index.d.ts +24 -41
- package/components/list/index.d.ts +260 -0
- package/components/modal/index.d.ts +21 -3
- package/components/nav/index.d.ts +23 -19
- package/components/offcanvas/index.d.ts +13 -5
- package/components/pagination/index.d.ts +34 -8
- package/components/select/index.d.ts +160 -0
- package/components/sidenav/index.d.ts +125 -0
- package/components/table/index.d.ts +191 -59
- package/components/vertical-menu/index.d.ts +61 -0
- package/data/index.d.ts +103 -38
- package/date/index.d.ts +34 -0
- package/fesm2022/bootkit-ng0-common.mjs +289 -12
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-accordion.mjs +33 -26
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-backdrop.mjs +46 -0
- package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-button.mjs +12 -12
- 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 +10 -10
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-collapse.mjs +16 -16
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +13 -13
- package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-dropdown.mjs +308 -0
- package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs +62 -84
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-list.mjs +564 -0
- package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-modal.mjs +41 -24
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-nav.mjs +59 -60
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs +20 -13
- 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 +59 -24
- 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 +447 -0
- package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +290 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs +14 -14
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-table.mjs +303 -159
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs +6 -6
- 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 +161 -0
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-data.mjs +152 -39
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-date.mjs +50 -0
- package/fesm2022/bootkit-ng0-date.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-file.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-form.mjs +336 -264
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-http.mjs +40 -5
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs +317 -0
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs +101 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization.mjs +431 -105
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-platform-browser.mjs +179 -0
- package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-routing.mjs +80 -0
- package/fesm2022/bootkit-ng0-routing.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-script.mjs +3 -3
- package/fesm2022/bootkit-ng0-script.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-security.mjs +16 -16
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-utils.mjs +75 -0
- package/fesm2022/bootkit-ng0-utils.mjs.map +1 -0
- package/fesm2022/bootkit-ng0.mjs +2 -2
- package/fesm2022/bootkit-ng0.mjs.map +1 -1
- package/form/index.d.ts +94 -62
- package/http/index.d.ts +35 -4
- package/index.d.ts +2 -2
- package/layouts/layout1/index.d.ts +201 -0
- package/localization/index.d.ts +231 -42
- package/localization/locales/index.d.ts +7 -0
- package/package.json +66 -18
- package/platform/browser/index.d.ts +88 -0
- package/routing/index.d.ts +124 -0
- package/utils/index.d.ts +42 -0
package/common/index.d.ts
CHANGED
|
@@ -1,20 +1,276 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, TrackByFunction } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
2
4
|
|
|
3
|
-
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
4
|
-
type Alignment = 'start' | 'center' | 'end';
|
|
5
5
|
declare const RTL: InjectionToken<boolean>;
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Represents a claim object that can contain multiple claims.
|
|
9
|
+
*/
|
|
7
10
|
interface ClaimObject {
|
|
8
11
|
all?: string[];
|
|
9
12
|
any?: string[];
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents a claim that can be a string or an object containing claims.
|
|
16
|
+
* This is useful for defining permissions or roles in a security context.
|
|
17
|
+
* It allows for both simple string claims and more complex claims that can include multiple values.
|
|
18
|
+
* For example:
|
|
19
|
+
* - A simple claim: 'admin'
|
|
20
|
+
* - A complex claim: { all: ['read', 'write']'] }
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
11
23
|
type ClaimLike = string | ClaimObject;
|
|
12
24
|
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
26
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
27
|
+
/**
|
|
28
|
+
* Flips the placement direction.
|
|
29
|
+
* @param placement The placement direction to flip.
|
|
30
|
+
* @returns The flipped placement direction.
|
|
31
|
+
*/
|
|
15
32
|
declare function flipPlacement(placement: Placement): "start" | "end" | "top" | "bottom";
|
|
16
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Formats a string by replacing placeholders with the provided arguments.
|
|
36
|
+
* @param str The string to format, containing placeholders in the form of {0}, {1}, etc.
|
|
37
|
+
* @param args The values to replace the placeholders with.
|
|
38
|
+
* @returns The formatted string.
|
|
39
|
+
*/
|
|
17
40
|
declare function formatString(str: string, ...args: any[]): string;
|
|
18
41
|
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
/** Menu item */
|
|
43
|
+
interface MenuItem {
|
|
44
|
+
type?: string;
|
|
45
|
+
id?: any;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
active?: boolean;
|
|
48
|
+
show?: boolean;
|
|
49
|
+
claim?: ClaimLike;
|
|
50
|
+
parent?: MenuItem;
|
|
51
|
+
text?: string;
|
|
52
|
+
expanded?: boolean;
|
|
53
|
+
icon?: string;
|
|
54
|
+
children?: MenuItem[];
|
|
55
|
+
routerLink?: string | string[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Converts a value to an Observable.
|
|
60
|
+
* If the value is already an Observable, it returns it directly.
|
|
61
|
+
* If the value is a Promise, it converts it to an Observable.
|
|
62
|
+
* If the value is neither, it wraps it in an Observable using `of`.
|
|
63
|
+
* @param value The value to convert.
|
|
64
|
+
* @returns An Observable that emits the value.
|
|
65
|
+
*/
|
|
66
|
+
declare function toObservable<T>(value: T | Observable<T> | Promise<T>): Observable<T>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Creates an array of numbers within a specified range.
|
|
70
|
+
* @param start The starting number of the range (inclusive).
|
|
71
|
+
* @param end The ending number of the range (inclusive).
|
|
72
|
+
* @returns An array of numbers within the specified range.
|
|
73
|
+
*/
|
|
74
|
+
declare function numberArray(start: number, end: number): number[];
|
|
75
|
+
/**
|
|
76
|
+
* Deletes multiple entries from an array based on the provided indices.
|
|
77
|
+
* @param array
|
|
78
|
+
* @param indices
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
declare function deleteEntries(array: any[], indices: number[]): void;
|
|
82
|
+
|
|
83
|
+
declare function getEnumValues(enumClass: Record<string, string | number>): Array<string | number>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Type definition for an ID generator function.
|
|
87
|
+
* @param item The item for which the ID is to be generated.
|
|
88
|
+
* @returns A string representing the generated ID.
|
|
89
|
+
*/
|
|
90
|
+
type IdGenerator = (item: any) => string;
|
|
91
|
+
/**
|
|
92
|
+
* Type definition for an ID generator which can be a function or a string representing the property name to extract the ID from.
|
|
93
|
+
*/
|
|
94
|
+
type IdGeneratorLike = IdGenerator | string;
|
|
95
|
+
/**
|
|
96
|
+
* Creates a sequential ID generator function with an optional prefix.
|
|
97
|
+
* This function generates unique IDs by incrementing a counter each time it is called.
|
|
98
|
+
* @param prefix Optional prefix for the generated IDs.
|
|
99
|
+
* @returns A function that generates sequential IDs with the given prefix.
|
|
100
|
+
*/
|
|
101
|
+
declare function sequentialIdGenerator(prefix?: string): IdGenerator;
|
|
102
|
+
/**
|
|
103
|
+
* Converts an IdGeneratorLike to an IdGenerator function.
|
|
104
|
+
* @param v The ID generator to convert.
|
|
105
|
+
* @returns An IdGenerator function.
|
|
106
|
+
*/
|
|
107
|
+
declare function IdGeneratorAttribute(v: IdGeneratorLike): IdGenerator;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* CSS class type which can be a string, array of strings, set of strings, or an object with class names as keys.
|
|
111
|
+
*/
|
|
112
|
+
type CssClass = string | string[] | Set<string> | {
|
|
113
|
+
[klass: string]: any;
|
|
114
|
+
} | null | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* A function that takes an item and returns a CssClass.
|
|
117
|
+
* @param item The item to get the CSS class for.
|
|
118
|
+
* @returns The CSS class for the item.
|
|
119
|
+
*/
|
|
120
|
+
type CssClassGetter = (obj: any) => CssClass;
|
|
121
|
+
/**
|
|
122
|
+
* A type that represents a CSS class or a function that returns a CSS class.
|
|
123
|
+
*/
|
|
124
|
+
type CssClassLike = CssClass | CssClassGetter;
|
|
125
|
+
/**
|
|
126
|
+
* Converts a CssClassLike to a CssClassGetter function.
|
|
127
|
+
* @param v The CssClassLike to convert.
|
|
128
|
+
* @returns A function that returns the desired CSS class.
|
|
129
|
+
*/
|
|
130
|
+
declare function CssClassAttribute(v: CssClassLike): CssClassGetter;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Equality comparer function type.
|
|
134
|
+
* @param a First value to compare.
|
|
135
|
+
* @param b Second value to compare.
|
|
136
|
+
* @returns true if a is considered equal to b else returns false
|
|
137
|
+
*/
|
|
138
|
+
type EqualityComparer = (a: any, b: any) => boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Equality comparer like type.
|
|
141
|
+
* can be a function or a string representing the property name to compare.
|
|
142
|
+
*/
|
|
143
|
+
type EqualityComparerLike = EqualityComparer | string;
|
|
144
|
+
/**
|
|
145
|
+
* Default equality comparer function.
|
|
146
|
+
* @param a First value to compare.
|
|
147
|
+
* @param b Second value to compare.
|
|
148
|
+
* @returns true if a === b else returns false
|
|
149
|
+
*/
|
|
150
|
+
declare function defaultEqualityComparer(a: any, b: any): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Converts an EqualityComparerLike to an EqualityComparer function.
|
|
153
|
+
* @param e The EqualityComparerLike to convert.
|
|
154
|
+
* @returns The converted EqualityComparer.
|
|
155
|
+
*/
|
|
156
|
+
declare function equalityComparerAttribute(e: EqualityComparerLike): EqualityComparer;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Value writer function type.
|
|
160
|
+
* @param a The input value
|
|
161
|
+
* @returns The written value
|
|
162
|
+
*/
|
|
163
|
+
type ValueWriter = (a: any) => any;
|
|
164
|
+
/**
|
|
165
|
+
* Value writer can be a function or a string representing the property name to extract the value from.
|
|
166
|
+
*/
|
|
167
|
+
type ValueWriterLike = ValueWriter | string;
|
|
168
|
+
/**
|
|
169
|
+
* Default value writer function.
|
|
170
|
+
* @param a The input value
|
|
171
|
+
* @returns the input value (it does not transform it)
|
|
172
|
+
*/
|
|
173
|
+
declare function defaultValueWriter(a: any): any;
|
|
174
|
+
/**
|
|
175
|
+
* Converts a ValueWriterLike to a ValueWriterFunction.
|
|
176
|
+
* @param v The value writer to convert.
|
|
177
|
+
* @returns A ValueWriter function.
|
|
178
|
+
*/
|
|
179
|
+
declare function valueWriterAttribute(v: ValueWriterLike): ValueWriter;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* A comparison function type that defines an ordering relation between two values.
|
|
183
|
+
* @param a The first value to compare.
|
|
184
|
+
* @param b The second value to compare.
|
|
185
|
+
* @returns
|
|
186
|
+
* - A negative number if `a` should come before `b`
|
|
187
|
+
* - A positive number if `a` should come after `b`
|
|
188
|
+
* - Zero if `a` and `b` are considered equal
|
|
189
|
+
*/
|
|
190
|
+
type Comparer = (a: any, b: any) => number;
|
|
191
|
+
/**
|
|
192
|
+
* Value comparer can be a function or a string representing the property name to compare.
|
|
193
|
+
*/
|
|
194
|
+
type ComparerLike = Comparer | string;
|
|
195
|
+
/**
|
|
196
|
+
* A simple comparer function.
|
|
197
|
+
* @param a The first value to compare.
|
|
198
|
+
* @param b The second value to compare.
|
|
199
|
+
* @returns -1 if a < b, 1 if a > b, 0 if a === b
|
|
200
|
+
*/
|
|
201
|
+
declare function defaultComparer(a: any, b: any): number;
|
|
202
|
+
/**
|
|
203
|
+
* Converts a ComparerLike to a Comparer.
|
|
204
|
+
* @param v The comparer to convert.
|
|
205
|
+
* @returns A function that compares two values.
|
|
206
|
+
*/
|
|
207
|
+
declare function comparerAttribute(v: ComparerLike): Comparer;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Filter predicate function type.
|
|
211
|
+
* @param item The item to test against the filter.
|
|
212
|
+
* @param params Additional parameters to pass to the filter.
|
|
213
|
+
* @returns True if the item matches the filter, false otherwise.
|
|
214
|
+
*/
|
|
215
|
+
type FilterPredicate = (item: any, ...params: any[]) => boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Filter predicate can be a function or a string representing the property name to filter.
|
|
218
|
+
*/
|
|
219
|
+
type FilterPredicateLike = FilterPredicate | string;
|
|
220
|
+
/**
|
|
221
|
+
* No-op filter predicate that always returns true.
|
|
222
|
+
* @param item The item to test against the filter.
|
|
223
|
+
* @returns true
|
|
224
|
+
*/
|
|
225
|
+
declare const noopFilter: FilterPredicate;
|
|
226
|
+
/**
|
|
227
|
+
* A simple filter predicate that checks if the item's string representation includes the match string.
|
|
228
|
+
* @param item The item to test against the filter.
|
|
229
|
+
* @param match The string to match.
|
|
230
|
+
* @returns True if the item matches the filter, false otherwise.
|
|
231
|
+
*/
|
|
232
|
+
declare const defaultFilter: FilterPredicate;
|
|
233
|
+
/**
|
|
234
|
+
* Converts a FilterPredicateLike to a FilterPredicate function.
|
|
235
|
+
* If the input is a string, it creates a predicate that checks the property with that name.
|
|
236
|
+
* @param v The FilterPredicateLike to convert.
|
|
237
|
+
* @returns The corresponding FilterPredicate function.
|
|
238
|
+
*/
|
|
239
|
+
declare function filterPredicateAttribute(v: FilterPredicateLike): FilterPredicate;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* An item tracker that can be either a TrackByFunction or a string property name.
|
|
243
|
+
*/
|
|
244
|
+
type TrackByLike = TrackByFunction<any> | string;
|
|
245
|
+
/**
|
|
246
|
+
* A trackBy function that tracks items by their index.
|
|
247
|
+
*/
|
|
248
|
+
declare const trackByIndex: TrackByFunction<any>;
|
|
249
|
+
/**
|
|
250
|
+
* A trackBy function that tracks items by the item itself.
|
|
251
|
+
*/
|
|
252
|
+
declare const trackByItem: TrackByFunction<any>;
|
|
253
|
+
/**
|
|
254
|
+
* Converts a TrackByLike to a TrackByFunction.
|
|
255
|
+
* @param v The item tracker to convert.
|
|
256
|
+
* @returns A TrackByFunction.
|
|
257
|
+
*/
|
|
258
|
+
declare function TrackByAttribute(v: TrackByLike): TrackByFunction<any>;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* IfDirective is a structural directive that conditionally includes or excludes a template
|
|
262
|
+
* based on the boolean value of the `show` input property.
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
declare class IfDirective {
|
|
266
|
+
private readonly _templateRef;
|
|
267
|
+
private _vcr;
|
|
268
|
+
private _viewRef?;
|
|
269
|
+
readonly show: i0.InputSignal<boolean>;
|
|
270
|
+
constructor();
|
|
271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfDirective, never>;
|
|
272
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IfDirective, "[ng0If]", ["ng0If"], { "show": { "alias": "ng0If"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export { CssClassAttribute, IdGeneratorAttribute, IfDirective, RTL, TrackByAttribute, comparerAttribute, defaultComparer, defaultEqualityComparer, defaultFilter, defaultValueWriter, deleteEntries, equalityComparerAttribute, filterPredicateAttribute, flipPlacement, formatString, getEnumValues, noopFilter, numberArray, sequentialIdGenerator, toObservable, trackByIndex, trackByItem, valueWriterAttribute };
|
|
276
|
+
export type { Alignment, ClaimLike, ClaimObject, Comparer, ComparerLike, CssClass, CssClassGetter, CssClassLike, EqualityComparer, EqualityComparerLike, FilterPredicate, FilterPredicateLike, IdGenerator, IdGeneratorLike, MenuItem, Placement, TrackByLike, ValueWriter, ValueWriterLike };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, Renderer2
|
|
2
|
+
import { QueryList, ElementRef, Renderer2 } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class AccordionItemComponent {
|
|
5
5
|
private _element;
|
|
6
6
|
private _renderer;
|
|
7
7
|
private _accordion;
|
|
8
|
+
/**
|
|
9
|
+
* The header text of the accordion item.
|
|
10
|
+
*/
|
|
8
11
|
header: i0.InputSignal<string | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the accordion item is collapsed or expanded.
|
|
14
|
+
*/
|
|
9
15
|
collapsed: i0.ModelSignal<boolean>;
|
|
10
|
-
constructor(
|
|
16
|
+
constructor();
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
12
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "ng0-accordion-item", ["ng0AccordionItem"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
13
19
|
}
|
|
@@ -15,7 +21,11 @@ declare class AccordionItemComponent {
|
|
|
15
21
|
declare class AccordionComponent {
|
|
16
22
|
private _element;
|
|
17
23
|
private _renderer;
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The mode of the accordion - 'single' or 'multiple'.
|
|
26
|
+
* 'single' mode allows only one item to be expanded at a time.
|
|
27
|
+
* 'multiple' mode allows multiple items to be expanded simultaneously.
|
|
28
|
+
*/
|
|
19
29
|
mode: i0.InputSignal<"single" | "multiple">;
|
|
20
30
|
readonly items: QueryList<AccordionItemComponent>;
|
|
21
31
|
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This component is used to display a backdrop behind another component.
|
|
5
|
+
*/
|
|
6
|
+
declare class BackdropComponent {
|
|
7
|
+
readonly fixed: i0.WritableSignal<boolean>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BackdropComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BackdropComponent, "ng0-backdrop", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { BackdropComponent };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Placement, CssClass } from '@bootkit/ng0/common';
|
|
4
|
+
|
|
5
|
+
declare class DropdownDividerComponent {
|
|
6
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownDividerComponent, never>;
|
|
7
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownDividerComponent, "ng0-dropdown-divider", ["ng0DropdownDivider"], {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines the possible values for the dropdown auto-close behavior.
|
|
12
|
+
*
|
|
13
|
+
* 'default': The dropdown will close when clicking inside or outside the menu.
|
|
14
|
+
* 'inside': The dropdown will close only when clicking inside the menu.
|
|
15
|
+
* 'outside': The dropdown will close only when clicking outside the menu.
|
|
16
|
+
* 'manual': The dropdown will not close automatically; it must be closed programmatically.
|
|
17
|
+
*/
|
|
18
|
+
type DropdownAutoCloseBehavior = 'default' | 'inside' | 'outside' | 'manual';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
type DropdownSize = 'default' | 'small' | 'large';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Dropdown component
|
|
26
|
+
*/
|
|
27
|
+
declare class DropdownComponent {
|
|
28
|
+
private _dropdownMenu;
|
|
29
|
+
private _mainButton;
|
|
30
|
+
private _splitButton?;
|
|
31
|
+
protected _el: ElementRef<any>;
|
|
32
|
+
private _renderer;
|
|
33
|
+
/**
|
|
34
|
+
* The placement of the dropdown menu in relation to the dropdown toggle.
|
|
35
|
+
*/
|
|
36
|
+
placement: _angular_core.InputSignal<Placement>;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the dropdown should use the default Bootstrap styles.
|
|
39
|
+
* This will apply the 'btn-group' class to the dropdown.
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
defaultStyle: _angular_core.InputSignal<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* The CSS classes to apply to the dropdown toggle button.
|
|
45
|
+
* @default 'btn btn-primary'
|
|
46
|
+
*/
|
|
47
|
+
toggleCss: _angular_core.InputSignal<CssClass>;
|
|
48
|
+
/**
|
|
49
|
+
* The CSS classes to apply to the dropdown split button.
|
|
50
|
+
* @default 'btn btn-primary'
|
|
51
|
+
*/
|
|
52
|
+
splitCss: _angular_core.InputSignal<CssClass>;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether the dropdown is open or closed.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Indicates whether the dropdown is a split button.
|
|
60
|
+
* A split button dropdown has a separate toggle button.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
readonly split: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* Indicates whether the dropdown has an automatic close behavior.
|
|
66
|
+
* @default 'default'
|
|
67
|
+
*/
|
|
68
|
+
readonly autoClose: _angular_core.InputSignal<DropdownAutoCloseBehavior>;
|
|
69
|
+
/**
|
|
70
|
+
* Dropdown size
|
|
71
|
+
* @default 'default'
|
|
72
|
+
*/
|
|
73
|
+
readonly size: _angular_core.InputSignal<DropdownSize>;
|
|
74
|
+
/**
|
|
75
|
+
* Indicates whether the dropdown is disabled.
|
|
76
|
+
*/
|
|
77
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* Emits when the dropdown toggle button is clicked.
|
|
80
|
+
*/
|
|
81
|
+
toggleClick: EventEmitter<PointerEvent>;
|
|
82
|
+
constructor();
|
|
83
|
+
/**
|
|
84
|
+
* Toggle the dropdown open or closed.
|
|
85
|
+
*/
|
|
86
|
+
toggle(): void;
|
|
87
|
+
private _onDocumentClick;
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
89
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownComponent, "ng0-dropdown", ["ng0Dropdown"], { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "defaultStyle": { "alias": "defaultStyle"; "required": false; "isSignal": true; }; "toggleCss": { "alias": "toggleCss"; "required": false; "isSignal": true; }; "splitCss": { "alias": "splitCss"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "split": { "alias": "split"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "toggleClick": "toggleClick"; }, ["_dropdownMenu"], ["*", "ng0-dropdown-menu"], true, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class DropdownMenuComponent {
|
|
93
|
+
private _renderer;
|
|
94
|
+
private _dropdown;
|
|
95
|
+
elementRef: ElementRef<any>;
|
|
96
|
+
constructor();
|
|
97
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownMenuComponent, never>;
|
|
98
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownMenuComponent, "ng0-dropdown-menu", ["ng0Dropdownmenu"], {}, {}, never, ["*"], true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* An item within a dropdown menu.
|
|
103
|
+
*/
|
|
104
|
+
declare class DropdownItemComponent {
|
|
105
|
+
/**
|
|
106
|
+
* The CSS classes to apply to the dropdown item.
|
|
107
|
+
* */
|
|
108
|
+
readonly cssClass: _angular_core.InputSignal<CssClass>;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the dropdown item is disabled.
|
|
111
|
+
*/
|
|
112
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
private _onClick;
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
|
|
115
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownItemComponent, "ng0-dropdown-item", ["ng0DropdownItem"], { "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A link item within a dropdown menu.
|
|
120
|
+
* This component is used to create a navigable link inside a dropdown.
|
|
121
|
+
*/
|
|
122
|
+
declare class DropdownLinkComponent {
|
|
123
|
+
/**
|
|
124
|
+
* The link or URL to navigate to when the dropdown item is clicked.
|
|
125
|
+
*/
|
|
126
|
+
readonly link: _angular_core.InputSignal<string | string[] | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* The router link active class to apply when the link is active.
|
|
129
|
+
*/
|
|
130
|
+
readonly active: _angular_core.InputSignal<string | string[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies where to open the linked document.
|
|
133
|
+
*/
|
|
134
|
+
readonly target: _angular_core.InputSignal<"_self" | "_blank" | "_parent" | "_top" | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the dropdown link is disabled.
|
|
137
|
+
*/
|
|
138
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
139
|
+
private _onClick;
|
|
140
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownLinkComponent, never>;
|
|
141
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownLinkComponent, "ng0-dropdown-link", ["ng0DropdownLink"], { "link": { "alias": "link"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class DropdownHeaderComponent {
|
|
145
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownHeaderComponent, never>;
|
|
146
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownHeaderComponent, "ng0-dropdown-header", ["ng0DropdownItem"], {}, {}, never, ["*"], true, never>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class DropdownModule {
|
|
150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownModule, never>;
|
|
151
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DropdownModule, never, [typeof DropdownComponent, typeof DropdownMenuComponent, typeof DropdownItemComponent, typeof DropdownLinkComponent, typeof DropdownHeaderComponent, typeof DropdownDividerComponent], [typeof DropdownComponent, typeof DropdownMenuComponent, typeof DropdownItemComponent, typeof DropdownLinkComponent, typeof DropdownHeaderComponent, typeof DropdownDividerComponent]>;
|
|
152
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<DropdownModule>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export { DropdownComponent, DropdownDividerComponent, DropdownHeaderComponent, DropdownItemComponent, DropdownLinkComponent, DropdownMenuComponent, DropdownModule };
|
|
156
|
+
export type { DropdownAutoCloseBehavior, DropdownSize };
|
|
@@ -1,66 +1,49 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { LocalizationService } from '@bootkit/ng0/localization';
|
|
2
|
+
import { AfterContentInit } from '@angular/core';
|
|
3
|
+
import { NgControl } from '@angular/forms';
|
|
5
4
|
import * as i1 from '@angular/common';
|
|
6
5
|
|
|
7
|
-
declare class FormFieldComponent implements
|
|
8
|
-
private
|
|
6
|
+
declare class FormFieldComponent implements AfterContentInit {
|
|
7
|
+
private _ngControlElement?;
|
|
9
8
|
private _destroyRef;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
9
|
+
private _renderer;
|
|
10
|
+
private _localizationService;
|
|
11
|
+
protected _ngControl?: NgControl;
|
|
12
|
+
protected _status: _angular_core.WritableSignal<string | null>;
|
|
13
|
+
protected _hasRequiredControl: _angular_core.WritableSignal<boolean>;
|
|
14
|
+
protected _errorText: _angular_core.WritableSignal<string | undefined>;
|
|
12
15
|
/**
|
|
13
16
|
* The label text for the form field.
|
|
14
17
|
*/
|
|
15
|
-
label: _angular_core.InputSignal<string | undefined>;
|
|
18
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
16
19
|
/**
|
|
17
20
|
* The hint text to display below the form field.
|
|
18
|
-
* This is typically used to provide additional information or instructions to the user.
|
|
19
21
|
*/
|
|
20
|
-
hint: _angular_core.InputSignal<string | undefined>;
|
|
22
|
+
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
21
23
|
/**
|
|
22
24
|
* If true, the form-field will show validation errors.
|
|
23
|
-
* This is useful for displaying validation messages when the form control is invalid.
|
|
24
25
|
*/
|
|
25
|
-
showErrors: _angular_core.
|
|
26
|
+
readonly showErrors: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
27
|
/**
|
|
27
|
-
* If
|
|
28
|
-
*
|
|
28
|
+
* If undefined, the indicator will be shown based on the control's required state.
|
|
29
|
+
* If true, the form-field will show a required indicator (*) next to the label (regardless of the control's required state).
|
|
30
|
+
* If false, the required indicator will not be shown (regardless of the control's required state).
|
|
29
31
|
*/
|
|
30
|
-
|
|
32
|
+
readonly showRequired: _angular_core.InputSignal<boolean | undefined>;
|
|
31
33
|
/**
|
|
32
34
|
* If true, the form-field will show subscripts (e.g. hints, errors) for the field label.
|
|
33
|
-
* This is useful for displaying additional information or validation messages.
|
|
34
35
|
*/
|
|
35
|
-
showSubscripts: _angular_core.
|
|
36
|
+
readonly showSubscripts: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
37
|
/**
|
|
37
38
|
* If true, the form-field will be rendered inside a ".input-group" element.
|
|
38
39
|
*/
|
|
39
|
-
inputGroup: _angular_core.
|
|
40
|
-
/**
|
|
41
|
-
* Returns the first localized error of the control
|
|
42
|
-
*/
|
|
43
|
-
get errorText(): string | undefined;
|
|
44
|
-
/** Reports whether the control is touched. */
|
|
45
|
-
get touched(): boolean | null | undefined;
|
|
46
|
-
/** Reports whether the control is dirty. */
|
|
47
|
-
get dirty(): boolean | null | undefined;
|
|
48
|
-
/** Returns true if this form-field is required, otherwise returns false. */
|
|
49
|
-
get isRequired(): boolean;
|
|
50
|
-
private _onFocusOut;
|
|
51
|
-
private _ngControl?;
|
|
52
|
-
private _ngControlElement?;
|
|
53
|
-
private _isRequired;
|
|
54
|
-
private _locale?;
|
|
55
|
-
private _errorText?;
|
|
56
|
-
constructor(_renderer: Renderer2, _destroyRef: DestroyRef, _form: NgForm, _ls: LocalizationService);
|
|
57
|
-
ngOnInit(): void;
|
|
40
|
+
readonly inputGroup: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
58
41
|
ngAfterContentInit(): void;
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
|
|
62
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent,
|
|
63
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ng0-form-field, ng0-field", ["ng0FormField"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "showErrors": { "alias": "showErrors"; "required": false; "isSignal": true; }; "
|
|
42
|
+
private _checkValidation;
|
|
43
|
+
private _isControlRequired;
|
|
44
|
+
private _onFocusOut;
|
|
45
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
46
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ng0-form-field, ng0-field", ["ng0FormField"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "showErrors": { "alias": "showErrors"; "required": false; "isSignal": true; }; "showRequired": { "alias": "showRequired"; "required": false; "isSignal": true; }; "showSubscripts": { "alias": "showSubscripts"; "required": false; "isSignal": true; }; "inputGroup": { "alias": "inputGroup"; "required": false; "isSignal": true; }; }, {}, ["_ngControlElement", "_ngControl"], ["*"], true, never>;
|
|
64
47
|
}
|
|
65
48
|
|
|
66
49
|
declare class FormFieldModule {
|