@bootkit/ng0 0.0.0-alpha.5 → 0.0.0-alpha.51
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 +288 -28
- package/components/accordion/index.d.ts +20 -10
- package/components/button/index.d.ts +7 -10
- package/components/card/index.d.ts +2 -6
- package/components/code/index.d.ts +2 -4
- package/components/collapse/index.d.ts +4 -41
- package/components/confirmation/index.d.ts +14 -16
- 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 +33 -11
- package/components/nav/index.d.ts +34 -32
- package/components/offcanvas/index.d.ts +13 -5
- package/components/pagination/index.d.ts +39 -13
- package/components/popover/index.d.ts +6 -6
- package/components/select/index.d.ts +160 -0
- package/components/sidenav/index.d.ts +122 -0
- package/components/stepper/index.d.ts +3 -4
- package/components/table/index.d.ts +205 -72
- package/components/toast/index.d.ts +14 -8
- package/components/tooltip/index.d.ts +36 -22
- package/components/vertical-menu/index.d.ts +79 -42
- package/data/index.d.ts +98 -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 +38 -33
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-button.mjs +21 -29
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-card.mjs +18 -26
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-code.mjs +16 -20
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-collapse.mjs +20 -132
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +24 -34
- 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 +48 -29
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-nav.mjs +60 -68
- 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 +61 -26
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-popover.mjs +12 -12
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-select.mjs +448 -0
- package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +296 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs +15 -42
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-table.mjs +323 -165
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs +62 -84
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-tooltip.mjs +87 -74
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +171 -114
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -1
- 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 +575 -264
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-http.mjs +61 -34
- 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 +103 -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 +175 -40
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-utils.mjs +122 -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 +153 -56
- package/http/index.d.ts +45 -14
- 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 +57 -17
- package/platform/browser/index.d.ts +88 -0
- package/routing/index.d.ts +124 -0
- package/security/index.d.ts +76 -11
- package/utils/index.d.ts +63 -0
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,52 +1,312 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, TrackByFunction } from '@angular/core';
|
|
3
|
+
import { IsActiveMatchOptions } from '@angular/router';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
2
5
|
|
|
3
|
-
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
4
|
-
type Alignment = 'start' | 'center' | 'end';
|
|
5
6
|
declare const RTL: InjectionToken<boolean>;
|
|
6
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Represents a claim object that can contain multiple claims.
|
|
10
|
+
*/
|
|
7
11
|
interface ClaimObject {
|
|
8
12
|
all?: string[];
|
|
9
13
|
any?: string[];
|
|
10
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents a claim that can be a string or an object containing claims.
|
|
17
|
+
* This is useful for defining permissions or roles in a security context.
|
|
18
|
+
* It allows for both simple string claims and more complex claims that can include multiple values.
|
|
19
|
+
* For example:
|
|
20
|
+
* - A simple claim: 'admin'
|
|
21
|
+
* - A complex claim: { all: ['read', 'write']'] }
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
11
24
|
type ClaimLike = string | ClaimObject;
|
|
25
|
+
/**
|
|
26
|
+
* Represents a condition to check against a user.
|
|
27
|
+
* It can be a ClaimLike or a boolean value.
|
|
28
|
+
* - If it's a ClaimLike, it checks if the user has the specified claim(s).
|
|
29
|
+
* - If it's true, it checks if there is a logged-in user.
|
|
30
|
+
* - If it's false, it checks if there is no logged-in user.
|
|
31
|
+
*/
|
|
32
|
+
type UserCondition = ClaimLike | boolean;
|
|
12
33
|
|
|
13
|
-
|
|
14
|
-
|
|
34
|
+
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
35
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
36
|
+
/**
|
|
37
|
+
* Flips the placement direction.
|
|
38
|
+
* @param placement The placement direction to flip.
|
|
39
|
+
* @returns The flipped placement direction.
|
|
40
|
+
*/
|
|
15
41
|
declare function flipPlacement(placement: Placement): "start" | "end" | "top" | "bottom";
|
|
16
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Formats a string by replacing placeholders with the provided arguments.
|
|
45
|
+
* @param str The string to format, containing placeholders in the form of {0}, {1}, etc.
|
|
46
|
+
* @param args The values to replace the placeholders with.
|
|
47
|
+
* @returns The formatted string.
|
|
48
|
+
*/
|
|
17
49
|
declare function formatString(str: string, ...args: any[]): string;
|
|
18
50
|
|
|
19
|
-
/**
|
|
20
|
-
interface MenuItemBase
|
|
21
|
-
type
|
|
51
|
+
/** Menu item */
|
|
52
|
+
interface MenuItemBase {
|
|
53
|
+
type?: string;
|
|
22
54
|
id?: any;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
active?: boolean;
|
|
25
55
|
show?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated use 'user' instead
|
|
58
|
+
*/
|
|
26
59
|
claim?: ClaimLike;
|
|
27
|
-
|
|
28
|
-
data?:
|
|
60
|
+
cssClass?: string;
|
|
61
|
+
data?: any;
|
|
62
|
+
user?: UserCondition;
|
|
29
63
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
text
|
|
34
|
-
expanded?: boolean;
|
|
64
|
+
interface NodeMenuItem extends MenuItemBase {
|
|
65
|
+
type?: 'node';
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
text?: string;
|
|
35
68
|
icon?: string;
|
|
36
|
-
|
|
69
|
+
expanded?: boolean;
|
|
70
|
+
children?: MenuItem[];
|
|
71
|
+
parent?: MenuItem;
|
|
72
|
+
routerLink?: string | string[];
|
|
73
|
+
routerLinkActiveOptions?: {
|
|
74
|
+
exact: boolean;
|
|
75
|
+
} | IsActiveMatchOptions;
|
|
76
|
+
href?: string;
|
|
77
|
+
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
78
|
+
tag?: string;
|
|
79
|
+
tagCssClass?: string | string[];
|
|
37
80
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
text
|
|
42
|
-
routerLink?: string[];
|
|
81
|
+
interface HeaderMenuItem extends MenuItemBase {
|
|
82
|
+
type: 'header';
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
text?: string;
|
|
43
85
|
icon?: string;
|
|
86
|
+
tag?: string;
|
|
87
|
+
tagCssClass?: string | string[];
|
|
44
88
|
}
|
|
45
|
-
|
|
46
|
-
interface DividerMenuItem<DataType = any> extends MenuItemBase<DataType> {
|
|
89
|
+
interface DividerMenuItem extends MenuItemBase {
|
|
47
90
|
type: 'divider';
|
|
48
91
|
}
|
|
49
|
-
type MenuItem
|
|
92
|
+
type MenuItem = NodeMenuItem | HeaderMenuItem | DividerMenuItem;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Converts a value to an Observable.
|
|
96
|
+
* If the value is already an Observable, it returns it directly.
|
|
97
|
+
* If the value is a Promise, it converts it to an Observable.
|
|
98
|
+
* If the value is neither, it wraps it in an Observable using `of`.
|
|
99
|
+
* @param value The value to convert.
|
|
100
|
+
* @returns An Observable that emits the value.
|
|
101
|
+
*/
|
|
102
|
+
declare function toObservable<T>(value: T | Observable<T> | Promise<T>): Observable<T>;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Creates an array of numbers within a specified range.
|
|
106
|
+
* @param start The starting number of the range (inclusive).
|
|
107
|
+
* @param end The ending number of the range (inclusive).
|
|
108
|
+
* @returns An array of numbers within the specified range.
|
|
109
|
+
*/
|
|
110
|
+
declare function numberArray(start: number, end: number): number[];
|
|
111
|
+
/**
|
|
112
|
+
* Deletes multiple entries from an array based on the provided indices.
|
|
113
|
+
* @param array
|
|
114
|
+
* @param indices
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
117
|
+
declare function deleteEntries(array: any[], indices: number[]): void;
|
|
118
|
+
|
|
119
|
+
declare function getEnumValues(enumClass: Record<string, string | number>): Array<string | number>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Type definition for an ID generator function.
|
|
123
|
+
* @param item The item for which the ID is to be generated.
|
|
124
|
+
* @returns A string representing the generated ID.
|
|
125
|
+
*/
|
|
126
|
+
type IdGenerator = (item: any) => string;
|
|
127
|
+
/**
|
|
128
|
+
* Type definition for an ID generator which can be a function or a string representing the property name to extract the ID from.
|
|
129
|
+
*/
|
|
130
|
+
type IdGeneratorLike = IdGenerator | string;
|
|
131
|
+
/**
|
|
132
|
+
* Creates a sequential ID generator function with an optional prefix.
|
|
133
|
+
* This function generates unique IDs by incrementing a counter each time it is called.
|
|
134
|
+
* @param prefix Optional prefix for the generated IDs.
|
|
135
|
+
* @returns A function that generates sequential IDs with the given prefix.
|
|
136
|
+
*/
|
|
137
|
+
declare function sequentialIdGenerator(prefix?: string): IdGenerator;
|
|
138
|
+
/**
|
|
139
|
+
* Converts an IdGeneratorLike to an IdGenerator function.
|
|
140
|
+
* @param v The ID generator to convert.
|
|
141
|
+
* @returns An IdGenerator function.
|
|
142
|
+
*/
|
|
143
|
+
declare function IdGeneratorAttribute(v: IdGeneratorLike): IdGenerator;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* CSS class type which can be a string, array of strings, set of strings, or an object with class names as keys.
|
|
147
|
+
*/
|
|
148
|
+
type CssClass = string | string[] | Set<string> | {
|
|
149
|
+
[klass: string]: any;
|
|
150
|
+
} | null | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* A function that takes an item and returns a CssClass.
|
|
153
|
+
* @param item The item to get the CSS class for.
|
|
154
|
+
* @returns The CSS class for the item.
|
|
155
|
+
*/
|
|
156
|
+
type CssClassGetter = (obj: any) => CssClass;
|
|
157
|
+
/**
|
|
158
|
+
* A type that represents a CSS class or a function that returns a CSS class.
|
|
159
|
+
*/
|
|
160
|
+
type CssClassLike = CssClass | CssClassGetter;
|
|
161
|
+
/**
|
|
162
|
+
* Converts a CssClassLike to a CssClassGetter function.
|
|
163
|
+
* @param v The CssClassLike to convert.
|
|
164
|
+
* @returns A function that returns the desired CSS class.
|
|
165
|
+
*/
|
|
166
|
+
declare function CssClassAttribute(v: CssClassLike): CssClassGetter;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Equality comparer function type.
|
|
170
|
+
* @param a First value to compare.
|
|
171
|
+
* @param b Second value to compare.
|
|
172
|
+
* @returns true if a is considered equal to b else returns false
|
|
173
|
+
*/
|
|
174
|
+
type EqualityComparer = (a: any, b: any) => boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Equality comparer like type.
|
|
177
|
+
* can be a function or a string representing the property name to compare.
|
|
178
|
+
*/
|
|
179
|
+
type EqualityComparerLike = EqualityComparer | string;
|
|
180
|
+
/**
|
|
181
|
+
* Default equality comparer function.
|
|
182
|
+
* @param a First value to compare.
|
|
183
|
+
* @param b Second value to compare.
|
|
184
|
+
* @returns true if a === b else returns false
|
|
185
|
+
*/
|
|
186
|
+
declare function defaultEqualityComparer(a: any, b: any): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Converts an EqualityComparerLike to an EqualityComparer function.
|
|
189
|
+
* @param e The EqualityComparerLike to convert.
|
|
190
|
+
* @returns The converted EqualityComparer.
|
|
191
|
+
*/
|
|
192
|
+
declare function equalityComparerAttribute(e: EqualityComparerLike): EqualityComparer;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Value writer function type.
|
|
196
|
+
* @param a The input value
|
|
197
|
+
* @returns The written value
|
|
198
|
+
*/
|
|
199
|
+
type ValueWriter = (a: any) => any;
|
|
200
|
+
/**
|
|
201
|
+
* Value writer can be a function or a string representing the property name to extract the value from.
|
|
202
|
+
*/
|
|
203
|
+
type ValueWriterLike = ValueWriter | string;
|
|
204
|
+
/**
|
|
205
|
+
* Default value writer function.
|
|
206
|
+
* @param a The input value
|
|
207
|
+
* @returns the input value (it does not transform it)
|
|
208
|
+
*/
|
|
209
|
+
declare function defaultValueWriter(a: any): any;
|
|
210
|
+
/**
|
|
211
|
+
* Converts a ValueWriterLike to a ValueWriterFunction.
|
|
212
|
+
* @param v The value writer to convert.
|
|
213
|
+
* @returns A ValueWriter function.
|
|
214
|
+
*/
|
|
215
|
+
declare function valueWriterAttribute(v: ValueWriterLike): ValueWriter;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* A comparison function type that defines an ordering relation between two values.
|
|
219
|
+
* @param a The first value to compare.
|
|
220
|
+
* @param b The second value to compare.
|
|
221
|
+
* @returns
|
|
222
|
+
* - A negative number if `a` should come before `b`
|
|
223
|
+
* - A positive number if `a` should come after `b`
|
|
224
|
+
* - Zero if `a` and `b` are considered equal
|
|
225
|
+
*/
|
|
226
|
+
type Comparer = (a: any, b: any) => number;
|
|
227
|
+
/**
|
|
228
|
+
* Value comparer can be a function or a string representing the property name to compare.
|
|
229
|
+
*/
|
|
230
|
+
type ComparerLike = Comparer | string;
|
|
231
|
+
/**
|
|
232
|
+
* A simple comparer function.
|
|
233
|
+
* @param a The first value to compare.
|
|
234
|
+
* @param b The second value to compare.
|
|
235
|
+
* @returns -1 if a < b, 1 if a > b, 0 if a === b
|
|
236
|
+
*/
|
|
237
|
+
declare function defaultComparer(a: any, b: any): number;
|
|
238
|
+
/**
|
|
239
|
+
* Converts a ComparerLike to a Comparer.
|
|
240
|
+
* @param v The comparer to convert.
|
|
241
|
+
* @returns A function that compares two values.
|
|
242
|
+
*/
|
|
243
|
+
declare function comparerAttribute(v: ComparerLike): Comparer;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Filter predicate function type.
|
|
247
|
+
* @param item The item to test against the filter.
|
|
248
|
+
* @param params Additional parameters to pass to the filter.
|
|
249
|
+
* @returns True if the item matches the filter, false otherwise.
|
|
250
|
+
*/
|
|
251
|
+
type FilterPredicate = (item: any, ...params: any[]) => boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Filter predicate can be a function or a string representing the property name to filter.
|
|
254
|
+
*/
|
|
255
|
+
type FilterPredicateLike = FilterPredicate | string;
|
|
256
|
+
/**
|
|
257
|
+
* No-op filter predicate that always returns true.
|
|
258
|
+
* @param item The item to test against the filter.
|
|
259
|
+
* @returns true
|
|
260
|
+
*/
|
|
261
|
+
declare const noopFilter: FilterPredicate;
|
|
262
|
+
/**
|
|
263
|
+
* A simple filter predicate that checks if the item's string representation includes the match string.
|
|
264
|
+
* @param item The item to test against the filter.
|
|
265
|
+
* @param match The string to match.
|
|
266
|
+
* @returns True if the item matches the filter, false otherwise.
|
|
267
|
+
*/
|
|
268
|
+
declare const defaultFilter: FilterPredicate;
|
|
269
|
+
/**
|
|
270
|
+
* Converts a FilterPredicateLike to a FilterPredicate function.
|
|
271
|
+
* If the input is a string, it creates a predicate that checks the property with that name.
|
|
272
|
+
* @param v The FilterPredicateLike to convert.
|
|
273
|
+
* @returns The corresponding FilterPredicate function.
|
|
274
|
+
*/
|
|
275
|
+
declare function filterPredicateAttribute(v: FilterPredicateLike): FilterPredicate;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* An item tracker that can be either a TrackByFunction or a string property name.
|
|
279
|
+
*/
|
|
280
|
+
type TrackByLike = TrackByFunction<any> | string;
|
|
281
|
+
/**
|
|
282
|
+
* A trackBy function that tracks items by their index.
|
|
283
|
+
*/
|
|
284
|
+
declare const trackByIndex: TrackByFunction<any>;
|
|
285
|
+
/**
|
|
286
|
+
* A trackBy function that tracks items by the item itself.
|
|
287
|
+
*/
|
|
288
|
+
declare const trackByItem: TrackByFunction<any>;
|
|
289
|
+
/**
|
|
290
|
+
* Converts a TrackByLike to a TrackByFunction.
|
|
291
|
+
* @param v The item tracker to convert.
|
|
292
|
+
* @returns A TrackByFunction.
|
|
293
|
+
*/
|
|
294
|
+
declare function TrackByAttribute(v: TrackByLike): TrackByFunction<any>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* IfDirective is a structural directive that conditionally includes or excludes a template
|
|
298
|
+
* based on the boolean value of the `show` input property.
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
301
|
+
declare class IfDirective {
|
|
302
|
+
private readonly _templateRef;
|
|
303
|
+
private _vcr;
|
|
304
|
+
private _viewRef?;
|
|
305
|
+
readonly show: i0.InputSignal<boolean>;
|
|
306
|
+
constructor();
|
|
307
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfDirective, never>;
|
|
308
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IfDirective, "[ng0If]", ["ng0If"], { "show": { "alias": "ng0If"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
309
|
+
}
|
|
50
310
|
|
|
51
|
-
export { RTL,
|
|
52
|
-
export type { Alignment, ClaimLike, ClaimObject, DividerMenuItem,
|
|
311
|
+
export { CssClassAttribute, IdGeneratorAttribute, IfDirective, RTL, TrackByAttribute, comparerAttribute, defaultComparer, defaultEqualityComparer, defaultFilter, defaultValueWriter, deleteEntries, equalityComparerAttribute, filterPredicateAttribute, flipPlacement, formatString, getEnumValues, noopFilter, numberArray, sequentialIdGenerator, toObservable, trackByIndex, trackByItem, valueWriterAttribute };
|
|
312
|
+
export type { Alignment, ClaimLike, ClaimObject, Comparer, ComparerLike, CssClass, CssClassGetter, CssClassLike, DividerMenuItem, EqualityComparer, EqualityComparerLike, FilterPredicate, FilterPredicateLike, HeaderMenuItem, IdGenerator, IdGeneratorLike, MenuItem, MenuItemBase, NodeMenuItem, Placement, TrackByLike, UserCondition, ValueWriter, ValueWriterLike };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { QueryList } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class AccordionItemComponent {
|
|
5
|
-
private _element;
|
|
6
|
-
private _renderer;
|
|
7
|
-
private _accordion;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
private readonly _element;
|
|
6
|
+
private readonly _renderer;
|
|
7
|
+
private readonly _accordion;
|
|
8
|
+
/**
|
|
9
|
+
* The header text of the accordion item.
|
|
10
|
+
*/
|
|
11
|
+
readonly header: i0.InputSignal<string | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the accordion item is collapsed or expanded.
|
|
14
|
+
*/
|
|
15
|
+
readonly collapsed: i0.ModelSignal<boolean>;
|
|
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,10 +21,14 @@ declare class AccordionItemComponent {
|
|
|
15
21
|
declare class AccordionComponent {
|
|
16
22
|
private _element;
|
|
17
23
|
private _renderer;
|
|
18
|
-
/**
|
|
19
|
-
|
|
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
|
+
*/
|
|
29
|
+
readonly mode: i0.InputSignal<"single" | "multiple">;
|
|
20
30
|
readonly items: QueryList<AccordionItemComponent>;
|
|
21
|
-
constructor(
|
|
31
|
+
constructor();
|
|
22
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
23
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ng0-accordion", ["ng0Accordion"], { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
24
34
|
}
|
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit
|
|
3
|
-
import { HttpService } from '@bootkit/ng0/http';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
4
3
|
|
|
5
|
-
declare class ButtonDirective implements OnInit
|
|
4
|
+
declare class ButtonDirective implements OnInit {
|
|
5
|
+
private _loadingElement;
|
|
6
6
|
private _element;
|
|
7
7
|
private _renderer;
|
|
8
8
|
private _http;
|
|
9
9
|
private _destroyRef;
|
|
10
|
-
private _loadingElement;
|
|
11
10
|
/**
|
|
12
11
|
* The IDs of the HTTP requests that this button listens to.
|
|
13
12
|
* If one of these requests is in progress, it will show a loading indicator or will be disabled based on 'showLoading' and 'disableOnLoading' properties.
|
|
14
13
|
*/
|
|
15
|
-
request: i0.InputSignal<string | string[] | undefined>;
|
|
14
|
+
readonly request: i0.InputSignal<string | string[] | undefined>;
|
|
16
15
|
/**
|
|
17
16
|
* Whether the button is disabled or not.
|
|
18
17
|
*/
|
|
19
|
-
disabled: i0.ModelSignal<boolean>;
|
|
18
|
+
readonly disabled: i0.ModelSignal<boolean>;
|
|
20
19
|
/**
|
|
21
20
|
* Whether to wait for the HTTP response before enabling the button again.
|
|
22
21
|
* If true, the button will remain disabled until the HTTP request completes.
|
|
23
22
|
* This is useful for preventing multiple clicks while waiting for a response.
|
|
24
23
|
* Default is true.
|
|
25
24
|
*/
|
|
26
|
-
disableDuringRequest: i0.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
readonly disableDuringRequest: i0.InputSignalWithTransform<boolean, unknown>;
|
|
27
26
|
/**
|
|
28
27
|
* Whether to show a loading indicator when the HTTP request is in progress.
|
|
29
28
|
* If true, a loading spinner will be displayed on the button while the request is being processed.
|
|
30
29
|
* Default is true.
|
|
31
30
|
*/
|
|
32
|
-
loadingIndicator: i0.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _http: HttpService, _destroyRef: DestroyRef);
|
|
31
|
+
readonly loadingIndicator: i0.InputSignalWithTransform<boolean, unknown>;
|
|
34
32
|
ngOnInit(): void;
|
|
35
33
|
private _showLoading;
|
|
36
34
|
private _hideLoading;
|
|
37
|
-
ngOnDestroy(): void;
|
|
38
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
39
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "button[ng0Button], a[ng0Button], input[type=button][ng0Button], input[type=submit][ng0Button], input[type=reset][ng0Button]", ["ng0Button"], { "request": { "alias": "request"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableDuringRequest": { "alias": "disableDuringRequest"; "required": false; "isSignal": true; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
40
37
|
}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
3
2
|
|
|
4
3
|
declare class CardComponent {
|
|
5
4
|
private _element;
|
|
6
5
|
private _renderer;
|
|
7
|
-
header: i0.InputSignal<string | undefined>;
|
|
8
|
-
constructor(
|
|
6
|
+
readonly header: i0.InputSignal<string | undefined>;
|
|
7
|
+
constructor();
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
10
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ng0-card", ["ng0Card"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
declare class CardHeaderComponent {
|
|
14
|
-
private _element;
|
|
15
|
-
private _renderer;
|
|
16
|
-
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
17
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeaderComponent, never>;
|
|
18
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardHeaderComponent, "ng0-card-header", ["ng0CardHeader"], {}, {}, never, ["*"], true, never>;
|
|
19
15
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
3
|
|
|
5
4
|
type CodeFormatterFunc = (code: string) => string;
|
|
6
5
|
declare class CodeFormatter {
|
|
@@ -19,14 +18,13 @@ declare class CodeFormatters {
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
declare class CodeComponent {
|
|
22
|
-
private
|
|
23
|
-
private
|
|
21
|
+
private _formatters;
|
|
22
|
+
private _domSanitizer;
|
|
24
23
|
/** Code formatter name */
|
|
25
24
|
formatter: i0.InputSignal<string>;
|
|
26
25
|
/** Code */
|
|
27
26
|
code: i0.InputSignal<string>;
|
|
28
27
|
protected _safeHtml: i0.Signal<_angular_platform_browser.SafeHtml | undefined>;
|
|
29
|
-
constructor(formatters: CodeFormatters, domSanitizer: DomSanitizer);
|
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeComponent, never>;
|
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<CodeComponent, "ng0-code", ["ng0Code"], { "formatter": { "alias": "formatter"; "required": true; "isSignal": true; }; "code": { "alias": "code"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
30
|
}
|
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Directive to handle the collapse and expand functionality of a host element.
|
|
7
|
-
*/
|
|
8
|
-
declare class CollapseDirective implements OnInit, OnDestroy {
|
|
9
|
-
private el;
|
|
10
|
-
private builder;
|
|
11
|
-
private renderer;
|
|
12
|
-
/**
|
|
13
|
-
* Indicates whether the host element is collapsed.
|
|
14
|
-
* @input
|
|
15
|
-
*/
|
|
16
|
-
collapsed: i0.InputSignal<boolean>;
|
|
17
|
-
/** Animation timings for collapse/expand animations.
|
|
18
|
-
* @input
|
|
19
|
-
*/
|
|
20
|
-
timings: i0.InputSignal<string | number>;
|
|
21
|
-
private _player?;
|
|
22
|
-
private _firstExecution;
|
|
23
|
-
constructor(el: ElementRef, builder: AnimationBuilder, renderer: Renderer2);
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
private _collapse;
|
|
26
|
-
private _expand;
|
|
27
|
-
private _playAnimation;
|
|
28
|
-
private _addClass;
|
|
29
|
-
private _removeClass;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[ng0Collapse]", ["ng0Collapse"], { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "timings": { "alias": "timings"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
34
2
|
|
|
35
3
|
/**
|
|
36
4
|
* A component that provides collapse and expand functionality.
|
|
@@ -40,20 +8,15 @@ declare class CollapseComponent {
|
|
|
40
8
|
* Indicates whether the host element is collapsed.
|
|
41
9
|
* @model
|
|
42
10
|
*/
|
|
43
|
-
collapsed: i0.
|
|
44
|
-
/** Animation timings for collapse/expand animations.
|
|
45
|
-
* @input
|
|
46
|
-
*/
|
|
47
|
-
timings: i0.InputSignal<string | number>;
|
|
48
|
-
private get _collapseExpand();
|
|
11
|
+
readonly collapsed: i0.InputSignal<boolean>;
|
|
49
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "ng0-collapse", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; };
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "ng0-collapse", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
51
14
|
}
|
|
52
15
|
|
|
53
16
|
declare class CollapseModule {
|
|
54
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseModule, never>;
|
|
55
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseModule, never, [typeof
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseModule, never, [typeof CollapseComponent], [typeof CollapseComponent]>;
|
|
56
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<CollapseModule>;
|
|
57
20
|
}
|
|
58
21
|
|
|
59
|
-
export { CollapseComponent,
|
|
22
|
+
export { CollapseComponent, CollapseModule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
|
-
import { DialogRef
|
|
4
|
+
import { DialogRef } from '@angular/cdk/dialog';
|
|
5
5
|
|
|
6
6
|
interface ConfirmationConfig {
|
|
7
7
|
message?: string;
|
|
@@ -37,23 +37,14 @@ declare class ConfirmationComponent implements OnInit {
|
|
|
37
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "ng0-confirmation", ["ng0Confirmation"], {}, {}, never, never, true, never>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
declare class ConfirmationService {
|
|
41
|
-
private dialog;
|
|
42
|
-
constructor(dialog: Dialog);
|
|
43
|
-
open(config?: ConfirmationConfig): ConfirmationRef;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
45
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
40
|
declare class ConfirmationDirective {
|
|
49
|
-
private
|
|
50
|
-
config
|
|
51
|
-
confirm: EventEmitter<ConfirmationRef>;
|
|
52
|
-
cancel: EventEmitter<ConfirmationRef>;
|
|
53
|
-
|
|
54
|
-
private _onClick;
|
|
41
|
+
private _confirmationService;
|
|
42
|
+
readonly config: i0.InputSignal<ConfirmationConfig | undefined>;
|
|
43
|
+
readonly confirm: EventEmitter<ConfirmationRef>;
|
|
44
|
+
readonly cancel: EventEmitter<ConfirmationRef>;
|
|
45
|
+
protected _onClick(): void;
|
|
55
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDirective, never>;
|
|
56
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmationDirective, "[ng0Confirmation]", ["ng0Confirmation"], { "config": { "alias": "config"; "required": false; }; }, { "confirm": "confirm"; "cancel": "cancel"; }, never, never, true, never>;
|
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmationDirective, "[ng0Confirmation]", ["ng0Confirmation"], { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "confirm": "confirm"; "cancel": "cancel"; }, never, never, true, never>;
|
|
57
48
|
}
|
|
58
49
|
|
|
59
50
|
declare class ConfirmationModule {
|
|
@@ -62,5 +53,12 @@ declare class ConfirmationModule {
|
|
|
62
53
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmationModule>;
|
|
63
54
|
}
|
|
64
55
|
|
|
56
|
+
declare class ConfirmationService {
|
|
57
|
+
private _dialog;
|
|
58
|
+
open(config?: ConfirmationConfig): ConfirmationRef;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
61
|
+
}
|
|
62
|
+
|
|
65
63
|
export { ConfirmationComponent, ConfirmationDirective, ConfirmationModule, ConfirmationRef, ConfirmationService };
|
|
66
64
|
export type { ConfirmationConfig };
|