@bootkit/ng0 0.0.0-alpha.2 → 0.0.0-alpha.21

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.
Files changed (99) hide show
  1. package/common/index.d.ts +118 -6
  2. package/components/accordion/index.d.ts +1 -1
  3. package/components/backdrop/index.d.ts +12 -0
  4. package/components/button/index.d.ts +48 -0
  5. package/components/card/index.d.ts +27 -0
  6. package/components/code/index.d.ts +35 -0
  7. package/components/confirmation/index.d.ts +66 -0
  8. package/components/dropdown/index.d.ts +78 -0
  9. package/components/form-field/index.d.ts +72 -0
  10. package/components/list/index.d.ts +127 -0
  11. package/components/modal/index.d.ts +22 -4
  12. package/components/nav/index.d.ts +23 -19
  13. package/components/pagination/index.d.ts +35 -9
  14. package/components/popover/index.d.ts +1 -1
  15. package/components/select/index.d.ts +116 -0
  16. package/components/sidenav/index.d.ts +59 -0
  17. package/components/stepper/index.d.ts +26 -0
  18. package/components/table/index.d.ts +273 -0
  19. package/components/toast/index.d.ts +1 -1
  20. package/components/tooltip/index.d.ts +1 -1
  21. package/components/vertical-menu/index.d.ts +61 -0
  22. package/data/index.d.ts +258 -46
  23. package/date/index.d.ts +34 -0
  24. package/fesm2022/bootkit-ng0-common.mjs +89 -11
  25. package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
  26. package/fesm2022/bootkit-ng0-components-accordion.mjs +13 -13
  27. package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
  28. package/fesm2022/bootkit-ng0-components-backdrop.mjs +46 -0
  29. package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -0
  30. package/fesm2022/bootkit-ng0-components-button.mjs +119 -0
  31. package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -0
  32. package/fesm2022/bootkit-ng0-components-card.mjs +62 -0
  33. package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -0
  34. package/fesm2022/bootkit-ng0-components-code.mjs +70 -0
  35. package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -0
  36. package/fesm2022/bootkit-ng0-components-collapse.mjs +14 -14
  37. package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
  38. package/fesm2022/bootkit-ng0-components-confirmation.mjs +167 -0
  39. package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -0
  40. package/fesm2022/bootkit-ng0-components-dropdown.mjs +189 -0
  41. package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
  42. package/fesm2022/bootkit-ng0-components-form-field.mjs +147 -0
  43. package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -0
  44. package/fesm2022/bootkit-ng0-components-list.mjs +331 -0
  45. package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
  46. package/fesm2022/bootkit-ng0-components-modal.mjs +40 -23
  47. package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
  48. package/fesm2022/bootkit-ng0-components-nav.mjs +58 -59
  49. package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
  50. package/fesm2022/bootkit-ng0-components-offcanvas.mjs +9 -9
  51. package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -1
  52. package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -1
  53. package/fesm2022/bootkit-ng0-components-pagination.mjs +58 -23
  54. package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
  55. package/fesm2022/bootkit-ng0-components-popover.mjs +10 -10
  56. package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
  57. package/fesm2022/bootkit-ng0-components-select.mjs +427 -0
  58. package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
  59. package/fesm2022/bootkit-ng0-components-sidenav.mjs +153 -0
  60. package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
  61. package/fesm2022/bootkit-ng0-components-stepper.mjs +91 -0
  62. package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -0
  63. package/fesm2022/bootkit-ng0-components-table.mjs +461 -0
  64. package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -0
  65. package/fesm2022/bootkit-ng0-components-toast.mjs +7 -7
  66. package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
  67. package/fesm2022/bootkit-ng0-components-tooltip.mjs +8 -8
  68. package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
  69. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +161 -0
  70. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -0
  71. package/fesm2022/bootkit-ng0-data.mjs +291 -90
  72. package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
  73. package/fesm2022/bootkit-ng0-date.mjs +50 -0
  74. package/fesm2022/bootkit-ng0-date.mjs.map +1 -0
  75. package/fesm2022/bootkit-ng0-file.mjs +50 -0
  76. package/fesm2022/bootkit-ng0-file.mjs.map +1 -0
  77. package/fesm2022/bootkit-ng0-form.mjs +514 -0
  78. package/fesm2022/bootkit-ng0-form.mjs.map +1 -0
  79. package/fesm2022/bootkit-ng0-http.mjs +225 -179
  80. package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
  81. package/fesm2022/bootkit-ng0-localization-locales.mjs +115 -0
  82. package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
  83. package/fesm2022/bootkit-ng0-localization.mjs +481 -0
  84. package/fesm2022/bootkit-ng0-localization.mjs.map +1 -0
  85. package/fesm2022/bootkit-ng0-platform-browser.mjs +51 -0
  86. package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
  87. package/fesm2022/bootkit-ng0-script.mjs +59 -0
  88. package/fesm2022/bootkit-ng0-script.mjs.map +1 -0
  89. package/fesm2022/bootkit-ng0-security.mjs +17 -15
  90. package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
  91. package/file/index.d.ts +22 -0
  92. package/form/index.d.ts +127 -0
  93. package/http/index.d.ts +141 -40
  94. package/localization/index.d.ts +305 -0
  95. package/localization/locales/index.d.ts +7 -0
  96. package/package.json +90 -10
  97. package/platform/browser/index.d.ts +22 -0
  98. package/script/index.d.ts +27 -0
  99. package/security/index.d.ts +3 -9
@@ -10,7 +10,7 @@ declare class TooltipDirective implements OnInit, OnDestroy {
10
10
  private elementRef;
11
11
  private destroyRef;
12
12
  private viewRef;
13
- content: _angular_core.InputSignal<string | TemplateRef<any>>;
13
+ content: _angular_core.InputSignal<string | TemplateRef<any> | null | undefined>;
14
14
  placement: _angular_core.InputSignal<TooltipPlacement>;
15
15
  private portal;
16
16
  private overlayRef?;
@@ -0,0 +1,61 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Renderer2, ElementRef } from '@angular/core';
3
+
4
+ declare class VerticalMenuArrowDirective {
5
+ readonly templateRef: TemplateRef<any>;
6
+ constructor(templateRef: TemplateRef<any>);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuArrowDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VerticalMenuArrowDirective, "[ng0VerticalMenuArrow], [ng0VmenuArrow]", ["ng0VerticalMenuArrow"], {}, {}, never, never, true, never>;
9
+ }
10
+
11
+ declare class VerticalMenuComponent {
12
+ toggleByItemClick: i0.InputSignal<boolean>;
13
+ collapseTimings: i0.InputSignal<string | number>;
14
+ readonly arrowDirective?: VerticalMenuArrowDirective;
15
+ constructor();
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerticalMenuComponent, "ng0-vertical-menu, ng0-vmenu", never, { "toggleByItemClick": { "alias": "toggleByItemClick"; "required": false; "isSignal": true; }; "collapseTimings": { "alias": "collapseTimings"; "required": false; "isSignal": true; }; }, {}, ["arrowDirective"], ["*"], true, never>;
18
+ }
19
+
20
+ declare class VerticalMenuItemChildrenComponent {
21
+ menuItem: VerticalMenuItemComponent;
22
+ protected _menu: VerticalMenuComponent;
23
+ expanded: i0.ModelSignal<boolean>;
24
+ protected _items?: VerticalMenuItemComponent;
25
+ constructor(menuItem: VerticalMenuItemComponent, _menu: VerticalMenuComponent);
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuItemChildrenComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerticalMenuItemChildrenComponent, "ng0-vertical-menu-item-children, ng0-vmenu-item-children, ng0-vmenu-children", ["ng0VmenuItemChildren"], { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, ["_items"], ["*"], true, never>;
28
+ }
29
+
30
+ declare class VerticalMenuItemComponent {
31
+ private _renderer;
32
+ private _el;
33
+ protected _menu: VerticalMenuComponent;
34
+ toggleByClick: i0.InputSignal<boolean>;
35
+ active: i0.ModelSignal<boolean>;
36
+ readonly children?: VerticalMenuItemChildrenComponent;
37
+ constructor(_renderer: Renderer2, _el: ElementRef, _menu: VerticalMenuComponent);
38
+ get hasChildren(): boolean;
39
+ get isExpanded(): boolean;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuItemComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerticalMenuItemComponent, "ng0-vertical-menu-item, ng0-vmenu-item", never, { "toggleByClick": { "alias": "toggleByClick"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["children"], ["*"], true, never>;
42
+ }
43
+
44
+ declare class VerticalMenuItemContentComponent {
45
+ menuItem: VerticalMenuItemComponent;
46
+ private _renderer;
47
+ private _el;
48
+ protected _menu: VerticalMenuComponent;
49
+ constructor(menuItem: VerticalMenuItemComponent, _renderer: Renderer2, _el: ElementRef, _menu: VerticalMenuComponent);
50
+ private _onClick;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuItemContentComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerticalMenuItemContentComponent, "ng0-vertical-menu-item-content, ng0-vmenu-item-content, ng0-vmenu-content", never, {}, {}, never, ["*"], true, never>;
53
+ }
54
+
55
+ declare class VerticalMenuModule {
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalMenuModule, never>;
57
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VerticalMenuModule, never, [typeof VerticalMenuComponent, typeof VerticalMenuItemComponent, typeof VerticalMenuItemChildrenComponent, typeof VerticalMenuItemContentComponent, typeof VerticalMenuArrowDirective], [typeof VerticalMenuComponent, typeof VerticalMenuItemComponent, typeof VerticalMenuItemChildrenComponent, typeof VerticalMenuItemContentComponent, typeof VerticalMenuArrowDirective]>;
58
+ static ɵinj: i0.ɵɵInjectorDeclaration<VerticalMenuModule>;
59
+ }
60
+
61
+ export { VerticalMenuArrowDirective, VerticalMenuComponent, VerticalMenuItemChildrenComponent, VerticalMenuItemComponent, VerticalMenuItemContentComponent, VerticalMenuModule };
package/data/index.d.ts CHANGED
@@ -1,74 +1,286 @@
1
+ import * as _angular_core from '@angular/core';
1
2
  import * as rxjs from 'rxjs';
2
- import { Subject, Observable } from 'rxjs';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import * as _bootkit_ng0_data from '@bootkit/ng0/data';
3
5
 
6
+ /**
7
+ * Boolean value comparer function type.
8
+ * @param a First value to compare.
9
+ * @param b Second value to compare.
10
+ * @returns true if a is considered equal to b else returns false
11
+ */
12
+ type BooleanValueComparer = (a: any, b: any) => boolean;
13
+ /**
14
+ * Boolean value comparer can be a function or a string representing the property name to compare.
15
+ */
16
+ type BooleanValueComparerLike = BooleanValueComparer | string;
17
+ /**
18
+ * Default value comparer function.
19
+ * @param a
20
+ * @param b
21
+ * @returns true if a === b else returns false
22
+ */
23
+ declare function defaultBooleanValueComparer(a: any, b: any): boolean;
24
+ declare function BooleanValueComparerAttribute(v: BooleanValueComparerLike): BooleanValueComparer;
25
+
26
+ /**
27
+ * DataRequest class represents a request for data with pagination, filtering, sorting, and field selection.
28
+ * It is used to encapsulate the parameters needed to fetch data from a data source.
29
+ * It can be used with various data sources such as HTTP services, in-memory arrays, etc.
30
+ *
31
+ */
4
32
  declare class DataRequest {
5
- pageIndex: number;
6
- pageSize: number;
7
- computeTotal: boolean;
8
- filters: DataRequestFilter[];
33
+ page?: DataRequestPage;
34
+ filters?: DataRequestFilter[];
9
35
  sort?: DataRequestSort;
10
- constructor(pageIndex?: number, pageSize?: number, computeTotal?: boolean, filters?: DataRequestFilter[], sort?: DataRequestSort);
11
- addFilter(field: string, value: string, operator?: DataRequestFilterOperator): this;
12
- sortDescending(field: string): this;
13
- sortAscending(field: string): this;
14
- static all(): DataRequest;
36
+ select?: string[];
37
+ computeTotal?: boolean;
38
+ constructor(options?: {
39
+ page?: DataRequestPage;
40
+ filters?: DataRequestFilter[];
41
+ sort?: DataRequestSort;
42
+ select?: string[];
43
+ computeTotal?: boolean;
44
+ });
15
45
  }
16
- declare class DataRequestSort {
17
- field: string;
18
- asc: boolean;
19
- constructor(field: string, asc?: boolean);
46
+ /**
47
+ * Represents a data request page.
48
+ */
49
+ interface DataRequestPage {
50
+ /**
51
+ * Index of the page.
52
+ * If zeroBased is true, the index starts from 0.
53
+ */
54
+ index: number;
55
+ /**
56
+ * Size of the page, i.e., number of items in each page.
57
+ */
58
+ size: number;
59
+ /**
60
+ * Indicates if the index is zero-based.
61
+ */
62
+ zeroBased: boolean;
20
63
  }
21
- declare class DataRequestFilter {
64
+ /**
65
+ * Represents a sorting option in a DataRequest.
66
+ * @property field The field to sort by.
67
+ * @property asc Whether to sort in ascending order.
68
+ */
69
+ interface DataRequestSort {
22
70
  field: string;
23
- value?: string;
24
- operator: DataRequestFilterOperator;
25
- constructor(field: string, value?: string, operator?: DataRequestFilterOperator);
71
+ asc?: boolean;
26
72
  }
27
- declare enum DataRequestFilterOperator {
28
- EQ = 0,
29
- NEQ = 1,
30
- LT = 2,
31
- LTE = 3,
32
- GT = 4,
33
- GTE = 5,
34
- LI = 6,
35
- SW = 7
73
+ /**
74
+ * Represents a filter in a DataRequest.
75
+ */
76
+ interface DataRequestFilter {
77
+ /**
78
+ * The field to filter by.
79
+ * It can be a string representing the property name of the data items.
80
+ */
81
+ field?: string;
82
+ /**
83
+ * The value to filter by.
84
+ * It can be a string, number, or any other type depending on the field.
85
+ */
86
+ value?: string;
87
+ /**
88
+ * The operator to use for filtering.
89
+ * It can be one of the standard filter operators like Contains, StartsWith, EndsWith, Equals, etc.
90
+ */
91
+ operator?: string;
92
+ /**
93
+ * Indicates if the filter is case-sensitive. only for text columns.
94
+ * Default is false.
95
+ */
96
+ caseSensitive?: boolean;
36
97
  }
37
98
 
38
99
  declare class DataResult<T = any> {
39
- readonly request: DataRequest;
40
100
  readonly data: T[];
41
- readonly total?: number;
42
- constructor(request: DataRequest, data: T[], total?: number);
101
+ readonly total?: number | undefined;
102
+ constructor(data: T[], total?: number | undefined);
43
103
  }
44
104
 
105
+ /**
106
+ * DataLoader is a function that takes a DataRequest and returns an Observable of DataResult.
107
+ * It is used by RemoteDataSource to load data asynchronously.
108
+ */
109
+ type DataLoader<T = any> = (request: DataRequest) => Observable<DataResult<T>>;
110
+ interface DataSourceChange {
111
+ type: 'insert' | 'replace' | 'remove';
112
+ }
113
+ interface DataSourceItemInsert extends DataSourceChange {
114
+ type: 'insert';
115
+ /** Insert index */
116
+ index?: number;
117
+ items: any[];
118
+ }
119
+ interface DataSourceItemReplace extends DataSourceChange {
120
+ type: 'replace';
121
+ index: number;
122
+ value: any;
123
+ }
124
+ interface DataSourceItemRemove extends DataSourceChange {
125
+ type: 'remove';
126
+ index: number;
127
+ count?: number;
128
+ }
129
+ interface DataSourceChangeEvent {
130
+ changes: Array<DataSourceItemInsert | DataSourceItemReplace | DataSourceItemRemove>;
131
+ }
132
+ /**
133
+ * Abstract base class for data sources.
134
+ * This class provides a common interface for loading data from various sources.
135
+ */
45
136
  declare abstract class DataSource<T = any> {
46
- protected _loading: boolean;
47
- protected changeSubject: Subject<unknown>;
48
- readonly change: Observable<unknown>;
49
- constructor();
50
- get loading(): boolean;
51
- protected setLoading(value: boolean): void;
137
+ abstract readonly type: 'local' | 'remote';
138
+ protected changeSubject: Subject<DataSourceChangeEvent>;
139
+ protected loading: _angular_core.WritableSignal<boolean>;
140
+ /**
141
+ *
142
+ */
143
+ readonly change: Observable<DataSourceChangeEvent>;
144
+ /**
145
+ * Indicates whether the data source is currently loading data.
146
+ */
147
+ isLoading: _angular_core.Signal<boolean>;
148
+ /**
149
+ * Loads data from the data source.
150
+ * @param request The data request object containing pagination, sorting, and filtering information.
151
+ */
52
152
  abstract load(request: DataRequest): Observable<DataResult>;
53
153
  }
154
+ /**
155
+ * DataSourceLike is a type that can be used to represent any data source
156
+ * that can be used with the table, autocomplete, dropdown and any component that requires data.
157
+ * It can be an array of data, a function that returns an observable of data,
158
+ * or an instance of DataSource.
159
+ */
160
+ type DataSourceLike<T = any> = Array<any> | DataLoader<T> | DataSource<T> | Record<string, string | number> | // enum: extract enum or object values
161
+ undefined | null;
54
162
 
55
- type DataLoaderFunc = (request: DataRequest) => Observable<DataResult>;
56
- declare class AsyncDataSource extends DataSource {
163
+ /**
164
+ * Converts a DataSourceLike to a DataSource instance.
165
+ * @param source The data source to convert.
166
+ * @returns A DataSource instance.
167
+ */
168
+ declare function dataSourceAttribute<T>(source: DataSourceLike): DataSource<T>;
169
+
170
+ /**
171
+ * RemoteDataSource is a DataSource that loads data asynchronously using a DataLoader function.
172
+ * It is used to fetch data from a remote source, such as an API.
173
+ */
174
+ declare class RemoteDataSource extends DataSource {
57
175
  private readonly loader;
58
- constructor(loader: DataLoaderFunc);
59
- load(request: DataRequest): Observable<DataResult<any>>;
176
+ readonly type = "remote";
177
+ constructor(loader: DataLoader);
178
+ load(request: DataRequest): Observable<_bootkit_ng0_data.DataResult<any>>;
60
179
  }
61
180
 
62
- declare class ArrayDataSource extends DataSource {
181
+ /**
182
+ * Value extractor function type.
183
+ */
184
+ type ValueExtractor = (a: any) => any;
185
+ /**
186
+ * Value extractor can be a function or a string representing the property name to extract.
187
+ */
188
+ type ValueExtractorLike = ValueExtractor | string;
189
+ /**
190
+ * Default value extractor function.
191
+ * @param a The input value
192
+ * @returns the input value
193
+ */
194
+ declare function defaultValueExtractor(a: any): any;
195
+ /**
196
+ * Converts a ValueExtractorLike to a ValueExtractorFunction.
197
+ * @param v The value extractor to convert.
198
+ * @returns A function that extracts the desired value.
199
+ */
200
+ declare function ValueExtractorAttribute(v: ValueExtractorLike): ValueExtractor;
201
+
202
+ /**
203
+ * An implementation of DataSource that uses an array as the data source.
204
+ * This is useful for static data or when you want to manage the data manually.
205
+ */
206
+ declare class LocalDataSource extends DataSource {
63
207
  private items;
208
+ readonly type = "local";
209
+ valueExtractor: (initialValue: ValueExtractor, options?: _angular_core.CreateSignalOptions<ValueExtractor> | undefined) => _angular_core.WritableSignal<ValueExtractor>;
64
210
  constructor(items: any[]);
211
+ /**
212
+ * Creates a LocalDataSource from enum values.
213
+ * @param enumClass The enum class to extract values from.
214
+ * @returns A LocalDataSource containing the enum values.
215
+ */
216
+ static fromEnum(enumClass: Record<string, string | number>): LocalDataSource;
65
217
  load(request: DataRequest): rxjs.Observable<DataResult<any>>;
66
- remove(item: any): void;
67
- insert(item: any): void;
68
- set(items: any[]): void;
218
+ remove(index: any): void;
219
+ insert(index: number, ...items: any[]): void;
220
+ push(...items: any[]): void;
221
+ replace(index: number, newValue: any): void;
69
222
  }
70
223
 
71
224
  declare function toDataResult<T = any>(dr: DataRequest): (source: Observable<any>) => Observable<DataResult<T>>;
72
225
 
73
- export { ArrayDataSource, AsyncDataSource, DataRequest, DataRequestFilter, DataRequestFilterOperator, DataRequestSort, DataResult, DataSource, toDataResult };
74
- export type { DataLoaderFunc };
226
+ /**
227
+ * A comparison function type that defines an ordering relation between two values.
228
+ * @param a The first value to compare.
229
+ * @param b The second value to compare.
230
+ * @returns
231
+ * - A negative number if `a` should come before `b`
232
+ * - A positive number if `a` should come after `b`
233
+ * - Zero if `a` and `b` are considered equal
234
+ */
235
+ type ValueComparer = (a: any, b: any) => number;
236
+ /**
237
+ * Value comparer can be a function or a string representing the property name to compare.
238
+ */
239
+ type ValueComparerLike = ValueComparer | string;
240
+ /**
241
+ * Default value comparer function.
242
+ * @param a
243
+ * @param b
244
+ * @returns -1 if a < b, 1 if a > b, 0 if a === b
245
+ */
246
+ declare function defaultValueComparer(a: any, b: any): number;
247
+ /**
248
+ * Converts a ValueComparerLike to a ValueComparerFunction.
249
+ * @param v The value comparer to convert.
250
+ * @returns A function that compares two values.
251
+ */
252
+ declare function ValueComparerAttribute(v: ValueComparerLike): ValueComparer;
253
+
254
+ /**
255
+ * Filter predicate function type.
256
+ * @param item The item to test against the filter.
257
+ * @param params Additional parameters to pass to the filter function.
258
+ * @returns True if the item matches the filter, false otherwise.
259
+ */
260
+ type FilterPredicate = (item: any, ...params: any[]) => boolean;
261
+ /**
262
+ * Filter predicate can be a function or a string representing the property name to filter.
263
+ */
264
+ type FilterPredicateLike = FilterPredicate | string;
265
+ /**
266
+ * A filter predicate that checks if a string contains the filter criteria (case insensitive).
267
+ * @param item The item to test against the filter.
268
+ * @param criteria The filter criteria.
269
+ * @returns True if the item matches the filter, false otherwise.
270
+ */
271
+ declare const stringFilter: FilterPredicate;
272
+ /**
273
+ * Converts a FilterPredicateLike to a FilterPredicate function.
274
+ * If the input is a string, it creates a predicate that checks the property with that name.
275
+ * @param v The FilterPredicateLike to convert.
276
+ * @returns The corresponding FilterPredicate function.
277
+ */
278
+ declare function FilterPredicateAttribute(v: FilterPredicateLike): FilterPredicate;
279
+
280
+ /**
281
+ * LogicalOperator is a list of predefined logical operators that can be used in data requests to filter data.
282
+ */
283
+ type LogicalOperator = 'contains' | 'endsWith' | 'startsWith' | 'like' | 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
284
+
285
+ export { BooleanValueComparerAttribute, DataRequest, DataResult, DataSource, FilterPredicateAttribute, LocalDataSource, RemoteDataSource, ValueComparerAttribute, ValueExtractorAttribute, dataSourceAttribute, defaultBooleanValueComparer, defaultValueComparer, defaultValueExtractor, stringFilter, toDataResult };
286
+ export type { BooleanValueComparer, BooleanValueComparerLike, DataLoader, DataRequestFilter, DataRequestPage, DataRequestSort, DataSourceChange, DataSourceChangeEvent, DataSourceItemInsert, DataSourceItemRemove, DataSourceItemReplace, DataSourceLike, FilterPredicate, FilterPredicateLike, LogicalOperator, ValueComparer, ValueComparerLike, ValueExtractor, ValueExtractorLike };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Represents a time span in months, days, hours, minutes, seconds, and milliseconds.
3
+ * Provides methods to create a TimeSpan from a total number of milliseconds.
4
+ * @example
5
+ * const span = TimeSpan.fromMilliseconds(123456789);
6
+ * console.log(span); // TimeSpan { months: 0, days: 1, hours: 10, minutes: 17, seconds: 36, milliseconds: 789 }
7
+ */
8
+ declare class TimeSpan {
9
+ readonly months: number;
10
+ readonly days: number;
11
+ readonly hours: number;
12
+ readonly minutes: number;
13
+ readonly seconds: number;
14
+ readonly milliseconds: number;
15
+ /** Milliseconds per second */
16
+ static readonly msPerSecond = 1000;
17
+ /** Milliseconds per minute */
18
+ static readonly msPerMinute: number;
19
+ /** Milliseconds per hour */
20
+ static readonly msPerHour: number;
21
+ /** Milliseconds per day */
22
+ static readonly msPerDay: number;
23
+ /** Milliseconds per month */
24
+ static readonly msPerMonth: number;
25
+ constructor(months?: number, days?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number);
26
+ /**
27
+ * Creates a TimeSpan from a total number of milliseconds.
28
+ * @param ms The total number of milliseconds.
29
+ * @returns A TimeSpan representing the equivalent time span.
30
+ */
31
+ static fromMilliseconds(ms: number): TimeSpan;
32
+ }
33
+
34
+ export { TimeSpan };
@@ -1,17 +1,13 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ import { Observable, from, of } from 'rxjs';
2
3
 
3
4
  const RTL = new InjectionToken('RTL Direction');
4
5
 
5
- function numberRange(start, end) {
6
- return Array.from({ length: end - start + 1 }, (_, i) => i + start);
7
- }
8
- function fillArray(start, end) {
9
- const result = [];
10
- for (let i = start; i <= end; i++) {
11
- result.push(i);
12
- }
13
- return result;
14
- }
6
+ /**
7
+ * Flips the placement direction.
8
+ * @param placement The placement direction to flip.
9
+ * @returns The flipped placement direction.
10
+ */
15
11
  function flipPlacement(placement) {
16
12
  switch (placement) {
17
13
  case 'bottom':
@@ -25,9 +21,91 @@ function flipPlacement(placement) {
25
21
  }
26
22
  }
27
23
 
24
+ /**
25
+ * Formats a string by replacing placeholders with the provided arguments.
26
+ * @param str The string to format, containing placeholders in the form of {0}, {1}, etc.
27
+ * @param args The values to replace the placeholders with.
28
+ * @returns The formatted string.
29
+ */
30
+ function formatString(str, ...args) {
31
+ return str.replace(/\{(\d+)\}/g, function (match, index) {
32
+ return args[index];
33
+ });
34
+ }
35
+
36
+ /**
37
+ * Converts a value to an Observable.
38
+ * If the value is already an Observable, it returns it directly.
39
+ * If the value is a Promise, it converts it to an Observable.
40
+ * If the value is neither, it wraps it in an Observable using `of`.
41
+ * @param value The value to convert.
42
+ * @returns An Observable that emits the value.
43
+ */
44
+ function toObservable(value) {
45
+ if (value instanceof Observable) {
46
+ return value;
47
+ }
48
+ else if (value instanceof Promise) {
49
+ return from(value);
50
+ }
51
+ else {
52
+ return of(value);
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Creates an array of numbers within a specified range.
58
+ * @param start The starting number of the range (inclusive).
59
+ * @param end The ending number of the range (inclusive).
60
+ * @returns An array of numbers within the specified range.
61
+ */
62
+ function numberArray(start, end) {
63
+ return Array.from({ length: end - start + 1 }, (_, i) => i + start);
64
+ }
65
+
66
+ function getEnumValues(enumClass) {
67
+ return Object.keys(enumClass)
68
+ .filter(k => isNaN(Number(k))) // remove reverse-mapping keys
69
+ .map(k => enumClass[k]);
70
+ }
71
+ ;
72
+
73
+ let _idCounter = 0;
74
+ class _IdGenerator {
75
+ static _idCounter = 0;
76
+ static next() {
77
+ return _IdGenerator._idCounter++;
78
+ }
79
+ }
80
+ /**
81
+ * Creates a sequential ID generator function with an optional prefix.
82
+ * @param prefix Optional prefix for the generated IDs.
83
+ * @returns A function that generates sequential IDs with the given prefix.
84
+ */
85
+ function sequentialIdGenerator(prefix) {
86
+ return (item) => `${prefix || ''}${_idCounter++}`;
87
+ }
88
+
89
+ /**
90
+ * Converts a CssClassLike to a CssClassGetter function.
91
+ * @param v The CssClassLike to convert.
92
+ * @returns A function that returns the desired CSS class.
93
+ */
94
+ function CssClassAttribute(v) {
95
+ if (typeof v === 'function')
96
+ return v;
97
+ if (typeof v === 'string') {
98
+ return (item) => v;
99
+ }
100
+ else if (v === undefined || v === null) {
101
+ return (item) => undefined;
102
+ }
103
+ throw Error('invalid css class getter');
104
+ }
105
+
28
106
  /**
29
107
  * Generated bundle index. Do not edit.
30
108
  */
31
109
 
32
- export { RTL, fillArray, flipPlacement, numberRange };
110
+ export { CssClassAttribute, RTL, _IdGenerator, flipPlacement, formatString, getEnumValues, numberArray, sequentialIdGenerator, toObservable };
33
111
  //# sourceMappingURL=bootkit-ng0-common.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootkit-ng0-common.mjs","sources":["../../../projects/ng0/common/types.ts","../../../projects/ng0/common/utils.ts","../../../projects/ng0/common/bootkit-ng0-common.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\r\n\r\nexport type Placement = 'start' | 'end' | 'top' | 'bottom';\r\nexport type Alignment = 'start' | 'center' | 'end';\r\nexport const RTL = new InjectionToken<boolean>('RTL Direction');","import { Placement } from \"./types\";\r\n\r\nexport function numberRange(start: number, end: number) {\r\n return Array.from({ length: end - start + 1 }, (_, i) => i + start)\r\n}\r\n\r\nexport function fillArray(start: number, end: number): number[] {\r\n const result: number[] = [];\r\n for (let i = start; i <= end; i++) {\r\n result.push(i);\r\n }\r\n return result;\r\n}\r\n\r\nexport function flipPlacement(placement: Placement) {\r\n switch (placement) {\r\n case 'bottom':\r\n return 'top'\r\n case 'top':\r\n return 'bottom'\r\n case 'start':\r\n return 'end'\r\n case 'end':\r\n return 'start'\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAIa,GAAG,GAAG,IAAI,cAAc,CAAU,eAAe;;ACF9C,SAAA,WAAW,CAAC,KAAa,EAAE,GAAW,EAAA;IAClD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AACvE;AAEgB,SAAA,SAAS,CAAC,KAAa,EAAE,GAAW,EAAA;IAChD,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE;AAC/B,QAAA,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;;AAElB,IAAA,OAAO,MAAM;AACjB;AAEM,SAAU,aAAa,CAAC,SAAoB,EAAA;IAC9C,QAAQ,SAAS;AACb,QAAA,KAAK,QAAQ;AACT,YAAA,OAAO,KAAK;AAChB,QAAA,KAAK,KAAK;AACN,YAAA,OAAO,QAAQ;AACnB,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,KAAK;AAChB,QAAA,KAAK,KAAK;AACN,YAAA,OAAO,OAAO;;AAE1B;;ACzBA;;AAEG;;;;"}
1
+ {"version":3,"file":"bootkit-ng0-common.mjs","sources":["../../../projects/ng0/common/types.ts","../../../projects/ng0/common/layout.ts","../../../projects/ng0/common/string-utils.ts","../../../projects/ng0/common/rxjs-utils.ts","../../../projects/ng0/common/array-utils.ts","../../../projects/ng0/common/enum.ts","../../../projects/ng0/common/id-generator.ts","../../../projects/ng0/common/css-class.ts","../../../projects/ng0/common/bootkit-ng0-common.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\r\n\r\nexport const RTL = new InjectionToken<boolean>('RTL Direction');\r\n\r\n/**\r\n * List item interface.\r\n */\r\nexport interface SelectOption {\r\n id: string,\r\n value: any,\r\n show?: boolean,\r\n}\r\n\r\n\r\n","export type Placement = 'start' | 'end' | 'top' | 'bottom';\r\nexport type Alignment = 'start' | 'center' | 'end';\r\n\r\n/**\r\n * Flips the placement direction.\r\n * @param placement The placement direction to flip.\r\n * @returns The flipped placement direction.\r\n */\r\nexport function flipPlacement(placement: Placement) {\r\n switch (placement) {\r\n case 'bottom':\r\n return 'top'\r\n case 'top':\r\n return 'bottom'\r\n case 'start':\r\n return 'end'\r\n case 'end':\r\n return 'start'\r\n }\r\n}\r\n\r\n\r\n","/**\r\n * Formats a string by replacing placeholders with the provided arguments.\r\n * @param str The string to format, containing placeholders in the form of {0}, {1}, etc.\r\n * @param args The values to replace the placeholders with.\r\n * @returns The formatted string.\r\n */\r\nexport function formatString(str: string, ...args: any[]) {\r\n return str.replace(/\\{(\\d+)\\}/g, function (match, index) {\r\n return args[index];\r\n });\r\n}\r\n","import { from, Observable, of } from 'rxjs';\r\n\r\n/**\r\n * Converts a value to an Observable.\r\n * If the value is already an Observable, it returns it directly.\r\n * If the value is a Promise, it converts it to an Observable.\r\n * If the value is neither, it wraps it in an Observable using `of`.\r\n * @param value The value to convert.\r\n * @returns An Observable that emits the value.\r\n */\r\nexport function toObservable<T>(value: T | Observable<T> | Promise<T>): Observable<T> {\r\n if (value instanceof Observable) {\r\n return value;\r\n } else if (value instanceof Promise) {\r\n return from(value);\r\n } else {\r\n return of(value);\r\n }\r\n}\r\n","/**\r\n * Creates an array of numbers within a specified range.\r\n * @param start The starting number of the range (inclusive).\r\n * @param end The ending number of the range (inclusive).\r\n * @returns An array of numbers within the specified range.\r\n */\r\nexport function numberArray(start: number, end: number) {\r\n return Array.from({ length: end - start + 1 }, (_, i) => i + start)\r\n}","\r\nexport function getEnumValues(enumClass: Record<string, string | number>): Array<string | number> {\r\n return Object.keys(enumClass)\r\n .filter(k => isNaN(Number(k))) // remove reverse-mapping keys\r\n .map(k => enumClass[k]);\r\n};\r\n","let _idCounter = 0;\r\n\r\nexport abstract class _IdGenerator {\r\n private static _idCounter = 0;\r\n\r\n public static next(): number {\r\n return _IdGenerator._idCounter++;\r\n }\r\n}\r\n\r\n/**\r\n * Type definition for an ID generator function.\r\n */\r\nexport type IdGenerator = (param?: any) => string;\r\n\r\n/**\r\n * Creates a sequential ID generator function with an optional prefix.\r\n * @param prefix Optional prefix for the generated IDs.\r\n * @returns A function that generates sequential IDs with the given prefix.\r\n */\r\nexport function sequentialIdGenerator(prefix?: string): IdGenerator {\r\n return (item?: any) => `${prefix || ''}${_idCounter++}`;\r\n}\r\n","/**\r\n * CSS class type which can be a string, array of strings, set of strings, or an object with class names as keys.\r\n */\r\nexport type CssClass = string | string[] | Set<string> | { [klass: string]: any } | null | undefined;\r\n\r\n\r\n/**\r\n * A function that takes an item and returns a CssClass.\r\n * @param item The item to get the CSS class for.\r\n * @returns The CSS class for the item.\r\n */\r\nexport type CssClassGetter = (item: any) => CssClass;\r\n\r\n/**\r\n * A type that represents a CSS class or a function that returns a CSS class.\r\n */\r\nexport type CssClassLike = CssClass | CssClassGetter | null | undefined;\r\n\r\n\r\n/**\r\n * Converts a CssClassLike to a CssClassGetter function.\r\n * @param v The CssClassLike to convert.\r\n * @returns A function that returns the desired CSS class.\r\n */\r\nexport function CssClassAttribute(v: CssClassLike): CssClassGetter {\r\n if (typeof v === 'function')\r\n return v as CssClassGetter;\r\n if (typeof v === 'string') {\r\n return (item: any) => v;\r\n } else if (v === undefined || v === null) {\r\n return (item: any) => undefined;\r\n }\r\n\r\n throw Error('invalid css class getter');\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAEa,GAAG,GAAG,IAAI,cAAc,CAAU,eAAe;;ACC9D;;;;AAIG;AACG,SAAU,aAAa,CAAC,SAAoB,EAAA;IAC9C,QAAQ,SAAS;AACb,QAAA,KAAK,QAAQ;AACT,YAAA,OAAO,KAAK;AAChB,QAAA,KAAK,KAAK;AACN,YAAA,OAAO,QAAQ;AACnB,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,KAAK;AAChB,QAAA,KAAK,KAAK;AACN,YAAA,OAAO,OAAO;;AAE1B;;ACnBA;;;;;AAKG;SACa,YAAY,CAAC,GAAW,EAAE,GAAG,IAAW,EAAA;IACpD,OAAO,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,KAAK,EAAE,KAAK,EAAA;AACnD,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC;AACtB,IAAA,CAAC,CAAC;AACN;;ACRA;;;;;;;AAOG;AACG,SAAU,YAAY,CAAI,KAAqC,EAAA;AACjE,IAAA,IAAI,KAAK,YAAY,UAAU,EAAE;AAC7B,QAAA,OAAO,KAAK;IAChB;AAAO,SAAA,IAAI,KAAK,YAAY,OAAO,EAAE;AACjC,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB;SAAO;AACH,QAAA,OAAO,EAAE,CAAC,KAAK,CAAC;IACpB;AACJ;;AClBA;;;;;AAKG;AACG,SAAU,WAAW,CAAC,KAAa,EAAE,GAAW,EAAA;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AACrE;;ACPM,SAAU,aAAa,CAAC,SAA0C,EAAA;AACpE,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS;AAC3B,SAAA,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;SAC7B,GAAG,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B;AAAC;;ACLD,IAAI,UAAU,GAAG,CAAC;MAEI,YAAY,CAAA;AACtB,IAAA,OAAO,UAAU,GAAG,CAAC;AAEtB,IAAA,OAAO,IAAI,GAAA;AACd,QAAA,OAAO,YAAY,CAAC,UAAU,EAAE;IACpC;;AAQJ;;;;AAIG;AACG,SAAU,qBAAqB,CAAC,MAAe,EAAA;AACjD,IAAA,OAAO,CAAC,IAAU,KAAK,CAAA,EAAG,MAAM,IAAI,EAAE,CAAA,EAAG,UAAU,EAAE,EAAE;AAC3D;;ACHA;;;;AAIG;AACG,SAAU,iBAAiB,CAAC,CAAe,EAAA;IAC7C,IAAI,OAAO,CAAC,KAAK,UAAU;AACvB,QAAA,OAAO,CAAmB;AAC9B,IAAA,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE;AACvB,QAAA,OAAO,CAAC,IAAS,KAAK,CAAC;IAC3B;SAAO,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,EAAE;AACtC,QAAA,OAAO,CAAC,IAAS,KAAK,SAAS;IACnC;AAEA,IAAA,MAAM,KAAK,CAAC,0BAA0B,CAAC;AAC3C;;AClCA;;AAEG;;;;"}
@@ -6,8 +6,8 @@ class AccordionItemComponent {
6
6
  _element;
7
7
  _renderer;
8
8
  _accordion;
9
- header = input();
10
- collapsed = model(true);
9
+ header = input(...(ngDevMode ? [undefined, { debugName: "header" }] : []));
10
+ collapsed = model(true, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
11
11
  constructor(_element, _renderer, _accordion) {
12
12
  this._element = _element;
13
13
  this._renderer = _renderer;
@@ -22,10 +22,10 @@ class AccordionItemComponent {
22
22
  }
23
23
  }, { allowSignalWrites: true });
24
24
  }
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: AccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: AccordionItemComponent, isStandalone: true, selector: "ng0-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, exportAs: ["ng0AccordionItem"], ngImport: i0, template: "<h6 class=\"accordion-header\">\r\n <button class=\"accordion-button\" type=\"button\" [class.collapsed]=\"collapsed()\" (click)=\"collapsed.set(!collapsed())\">\r\n {{header()}}\r\n </button>\r\n</h6>\r\n\r\n<ng0-collapse [collapsed]=\"collapsed()\">\r\n <div class=\"accordion-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</ng0-collapse>", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: CollapseComponent, selector: "ng0-collapse", inputs: ["collapsed", "timings"], outputs: ["collapsedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: AccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: AccordionItemComponent, isStandalone: true, selector: "ng0-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, exportAs: ["ng0AccordionItem"], ngImport: i0, template: "<h6 class=\"accordion-header\">\r\n <button class=\"accordion-button\" type=\"button\" [class.collapsed]=\"collapsed()\" (click)=\"collapsed.set(!collapsed())\">\r\n {{header()}}\r\n </button>\r\n</h6>\r\n\r\n<ng0-collapse [collapsed]=\"collapsed()\">\r\n <div class=\"accordion-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</ng0-collapse>", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: CollapseComponent, selector: "ng0-collapse", inputs: ["collapsed", "timings"], outputs: ["collapsedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionItemComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionItemComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{ selector: 'ng0-accordion-item', exportAs: 'ng0AccordionItem', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
31
31
  CollapseComponent
@@ -36,17 +36,17 @@ class AccordionComponent {
36
36
  _element;
37
37
  _renderer;
38
38
  /** Items open mode */
39
- mode = input('single');
39
+ mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : []));
40
40
  items;
41
41
  constructor(_element, _renderer) {
42
42
  this._element = _element;
43
43
  this._renderer = _renderer;
44
44
  this._renderer.addClass(this._element.nativeElement, 'accordion');
45
45
  }
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
47
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: AccordionComponent, isStandalone: true, selector: "ng0-accordion", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: AccordionItemComponent }], exportAs: ["ng0Accordion"], ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
47
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: AccordionComponent, isStandalone: true, selector: "ng0-accordion", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: AccordionItemComponent }], exportAs: ["ng0Accordion"], ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionComponent, decorators: [{
50
50
  type: Component,
51
51
  args: [{ selector: 'ng0-accordion', exportAs: 'ng0Accordion', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{display:block}\n"] }]
52
52
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { items: [{
@@ -55,13 +55,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
55
55
  }] } });
56
56
 
57
57
  class AccordionModule {
58
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
59
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: AccordionModule, imports: [AccordionComponent,
58
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
59
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: AccordionModule, imports: [AccordionComponent,
60
60
  AccordionItemComponent], exports: [AccordionComponent,
61
61
  AccordionItemComponent] });
62
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionModule, imports: [AccordionItemComponent] });
62
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionModule, imports: [AccordionItemComponent] });
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AccordionModule, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AccordionModule, decorators: [{
65
65
  type: NgModule,
66
66
  args: [{
67
67
  imports: [