@bootkit/ng0 0.0.0-alpha.3 → 0.0.0-alpha.30

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 (105) hide show
  1. package/common/index.d.ts +271 -7
  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 +140 -0
  9. package/components/form-field/index.d.ts +24 -41
  10. package/components/list/index.d.ts +259 -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 +159 -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 +145 -45
  23. package/date/index.d.ts +34 -0
  24. package/fesm2022/bootkit-ng0-common.mjs +295 -12
  25. package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
  26. package/fesm2022/bootkit-ng0-components-accordion.mjs +15 -15
  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 +16 -16
  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 +302 -0
  41. package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
  42. package/fesm2022/bootkit-ng0-components-form-field.mjs +62 -84
  43. package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
  44. package/fesm2022/bootkit-ng0-components-list.mjs +563 -0
  45. package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
  46. package/fesm2022/bootkit-ng0-components-modal.mjs +41 -24
  47. package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
  48. package/fesm2022/bootkit-ng0-components-nav.mjs +59 -60
  49. package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
  50. package/fesm2022/bootkit-ng0-components-offcanvas.mjs +10 -10
  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 +59 -24
  54. package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
  55. package/fesm2022/bootkit-ng0-components-popover.mjs +11 -11
  56. package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
  57. package/fesm2022/bootkit-ng0-components-select.mjs +446 -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 +9 -9
  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 +180 -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 +224 -176
  80. package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
  81. package/fesm2022/bootkit-ng0-layouts-layout1.mjs +138 -0
  82. package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -0
  83. package/fesm2022/bootkit-ng0-localization-locales.mjs +101 -0
  84. package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
  85. package/fesm2022/bootkit-ng0-localization.mjs +347 -105
  86. package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
  87. package/fesm2022/bootkit-ng0-platform-browser.mjs +51 -0
  88. package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
  89. package/fesm2022/bootkit-ng0-routing.mjs +80 -0
  90. package/fesm2022/bootkit-ng0-routing.mjs.map +1 -0
  91. package/fesm2022/bootkit-ng0-script.mjs +59 -0
  92. package/fesm2022/bootkit-ng0-script.mjs.map +1 -0
  93. package/fesm2022/bootkit-ng0-security.mjs +18 -16
  94. package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
  95. package/file/index.d.ts +22 -0
  96. package/form/index.d.ts +127 -0
  97. package/http/index.d.ts +138 -37
  98. package/layouts/layout1/index.d.ts +92 -0
  99. package/localization/index.d.ts +180 -41
  100. package/localization/locales/index.d.ts +7 -0
  101. package/package.json +95 -15
  102. package/platform/browser/index.d.ts +22 -0
  103. package/routing/index.d.ts +124 -0
  104. package/script/index.d.ts +27 -0
  105. package/security/index.d.ts +3 -9
@@ -1,66 +1,49 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit, AfterContentInit, OnDestroy, Renderer2, DestroyRef } from '@angular/core';
3
- import { NgForm } from '@angular/forms';
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 OnInit, AfterContentInit, OnDestroy {
8
- private _renderer;
6
+ declare class FormFieldComponent implements AfterContentInit {
7
+ private _ngControlElement?;
9
8
  private _destroyRef;
10
- private _form;
11
- private _ls;
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>;
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>;
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.InputSignal<boolean>;
26
+ readonly showErrors: _angular_core.InputSignalWithTransform<boolean, unknown>;
26
27
  /**
27
- * If true, the form-field will show a red asterisk for required fields.
28
- * This is only a visual indicator and does not enforce validation.
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
- showRequiredIndicator: _angular_core.InputSignal<boolean>;
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.InputSignal<boolean>;
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.InputSignal<boolean>;
40
- /**
41
- * Returns the first localized error of the control
42
- */
43
- get errorText(): string;
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 _validate;
60
- private _isRequiredField;
61
- ngOnDestroy(): void;
62
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, [null, null, { optional: true; }, null]>;
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; }; "showRequiredIndicator": { "alias": "showRequiredIndicator"; "required": false; "isSignal": true; }; "showSubscripts": { "alias": "showSubscripts"; "required": false; "isSignal": true; }; "inputGroup": { "alias": "inputGroup"; "required": false; "isSignal": true; }; }, {}, ["_ngControl", "_ngControlElement"], ["*"], true, never>;
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 {
@@ -0,0 +1,259 @@
1
+ import * as _bootkit_ng0_localization from '@bootkit/ng0/localization';
2
+ import * as _bootkit_ng0_common from '@bootkit/ng0/common';
3
+ import * as _angular_core from '@angular/core';
4
+ import { ElementRef, TemplateRef, QueryList, EventEmitter } from '@angular/core';
5
+ import { DataSource, DataSourceLike } from '@bootkit/ng0/data';
6
+ import { ControlValueAccessor } from '@angular/forms';
7
+
8
+ /**
9
+ * ListItem represents an individual item within a ListComponent.
10
+ */
11
+ declare class ListItem {
12
+ /**
13
+ * The value associated with the item. This can be of any type.
14
+ */
15
+ readonly value: _angular_core.InputSignal<any>;
16
+ /**
17
+ * The id of the item.
18
+ */
19
+ readonly id: _angular_core.InputSignal<any>;
20
+ /**
21
+ * Reference to the parent list component
22
+ */
23
+ readonly list: ListComponent;
24
+ /**
25
+ * Reference to the host element
26
+ */
27
+ readonly elementRef: ElementRef<HTMLElement>;
28
+ /**
29
+ * Indicates whether the item is active.
30
+ * @returns True if the item is active, false otherwise.
31
+ */
32
+ isActive(): boolean;
33
+ /**
34
+ * Indicates whether the item is selected.
35
+ * @returns True if the item is selected, false otherwise.
36
+ */
37
+ isSelected(): boolean;
38
+ /**
39
+ * Selects the item.
40
+ * @returns
41
+ */
42
+ select(): void;
43
+ /**
44
+ * Deselects the item.
45
+ * @returns
46
+ */
47
+ deselect(): void;
48
+ /**
49
+ * Toggles the selection state of the item.
50
+ * @returns void
51
+ */
52
+ toggle(): void;
53
+ /**
54
+ * Scrolls the item into view within its parent container.
55
+ * @param position The vertical alignment of the item after scrolling.
56
+ * Can be 'start', 'center', 'end', or 'nearest'.
57
+ * Default is 'nearest'.
58
+ * @param behavior The scrolling behavior.
59
+ */
60
+ scrollIntoView(position?: ScrollLogicalPosition, behavior?: ScrollBehavior): void;
61
+ /**
62
+ * Sets focus on the item.
63
+ */
64
+ focus(): void;
65
+ private _getTabIndex;
66
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListItem, never>;
67
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ListItem, "ng0-list-item", ["ng0ListItem"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
68
+ }
69
+
70
+ /**
71
+ * ListComponent is a versatile component that displays a list of items with support for single or multiple selection,
72
+ * custom item templates, filtering, and keyboard navigation.
73
+ */
74
+ declare class ListComponent implements ControlValueAccessor {
75
+ private _localizationService;
76
+ private _changeDetector;
77
+ private _changeCallback?;
78
+ private _touchCallback?;
79
+ private readonly _selectedItems;
80
+ protected readonly _sourceItems: _angular_core.WritableSignal<any[]>;
81
+ protected _itemTemplate?: TemplateRef<any>;
82
+ protected readonly _activeItem: _angular_core.WritableSignal<ListItem | undefined>;
83
+ protected readonly _isDisabled: _angular_core.WritableSignal<boolean>;
84
+ private readonly _value;
85
+ private _renderer;
86
+ /**
87
+ * A list of all visible list items.
88
+ */
89
+ readonly listItems?: QueryList<ListItem>;
90
+ /**
91
+ * Reference to the host element
92
+ */
93
+ elementRef: ElementRef<HTMLElement>;
94
+ /**
95
+ * The data source for the select component.
96
+ * This can be an array of data, a function that returns an observable of data,
97
+ * or an instance of DataSource.
98
+ */
99
+ readonly source: _angular_core.InputSignalWithTransform<DataSource<any>, DataSourceLike<any>>;
100
+ /**
101
+ * Indicates whether multi selection is enabled or not.
102
+ */
103
+ readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
104
+ /**
105
+ * Indicates whether to show selection indicator (checkbox/radio) next to each item.
106
+ * Default is false.
107
+ */
108
+ readonly showSelectionIndicator: _angular_core.InputSignalWithTransform<boolean, unknown>;
109
+ /**
110
+ * A comparer to compare items for selection.
111
+ * Default uses strict equality (===).
112
+ */
113
+ readonly compareBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.EqualityComparer, _bootkit_ng0_common.EqualityComparerLike>;
114
+ /**
115
+ * A fromatter to convert each item to a string for display.
116
+ * Default converts the item to a string using its toString method.
117
+ */
118
+ readonly formatBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_localization.ObjectFormatter, _bootkit_ng0_localization.ObjectFormatterLike>;
119
+ /**
120
+ * Custom value writer to extract the value of any object while writing values.
121
+ */
122
+ readonly writeBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.ValueWriter, _bootkit_ng0_common.ValueWriterLike>;
123
+ /**
124
+ * Custom filter function to filter items.
125
+ * Default is a noop filter that does not filter any items.
126
+ */
127
+ readonly filterBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.FilterPredicate, _bootkit_ng0_common.FilterPredicateLike>;
128
+ /**
129
+ * A function that uniquely identifies each item in the list.
130
+ * If set to a function, it will be called with the index and item as arguments to generate the unique id.
131
+ * If set to a string, it will be used as the property name to extract the unique id from each item.
132
+ * Two predifined trackBy options are available:
133
+ * - '@index': uses the index of the item as its unique id.
134
+ * - '@item': uses the item itself as its unique id.
135
+ * @example
136
+ * trackBy="@index"
137
+ * trackBy="@item"
138
+ * trackBy="objectFieldName"
139
+ * [trackBy]="customTrackByFunction"
140
+ * @default trackByIndex
141
+ */
142
+ readonly trackBy: _angular_core.InputSignalWithTransform<_angular_core.TrackByFunction<any>, _bootkit_ng0_common.TrackByLike>;
143
+ /**
144
+ * CSS class or classes to apply to the list container.
145
+ * Default is undefined.
146
+ */
147
+ readonly itemClass: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.CssClassGetter | undefined, _bootkit_ng0_common.CssClassLike>;
148
+ /**
149
+ * Defines the focus behavior of the list component.
150
+ * - 'none': No keyboard interaction is possible. The list cannot be focused.
151
+ * - 'roving': Roving tabindex is enabled. The list can be focused and the active item is tabbable.
152
+ * - 'activeDescendant': The list can be focused, but no item is tabbable. The active item is indicated using aria-activedescendant.
153
+ * @default 'activeDescendant'.
154
+ */
155
+ readonly focusMode: _angular_core.InputSignal<"none" | "roving" | "activeDescendant">;
156
+ /**
157
+ * A function that generates unique ids for each item in the list.
158
+ * If set to a function, it will be called with the item as an argument to generate the id.
159
+ * If set to undefined, no ids will be generated for the items.
160
+ * @default undefined
161
+ */
162
+ readonly idGenerator: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.IdGenerator | undefined, _bootkit_ng0_common.IdGeneratorLike>;
163
+ /**
164
+ * Event emitted when the selection state of an item changes by user interaction.
165
+ */
166
+ readonly itemSelect: EventEmitter<ListItemSelectEvent>;
167
+ /**
168
+ * The template to use for each item in the list.
169
+ */
170
+ readonly itemTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
171
+ constructor();
172
+ /**
173
+ * Indicates whether an item is active.
174
+ * @param item
175
+ * @returns
176
+ */
177
+ isActive(item: ListItem): boolean;
178
+ /**
179
+ * Indicates whether the given value is selected.
180
+ * @param item
181
+ * @returns
182
+ */
183
+ isSelected(value: any): boolean;
184
+ /**
185
+ * Selects the given value.
186
+ * @param item
187
+ */
188
+ select(value: any): void;
189
+ /**
190
+ * Deselects the given value.
191
+ * @param item
192
+ */
193
+ deselect(value: any): void;
194
+ /**
195
+ * Toggles the selection state of the given value.
196
+ * @param item
197
+ */
198
+ toggle(value: any): void;
199
+ /**
200
+ * Deselects all items in the list.
201
+ */
202
+ deselectAll(): void;
203
+ /**
204
+ * Selects all items in the list. Only applicable in multiple selection mode.
205
+ */
206
+ selectAll(): void;
207
+ /**
208
+ * Gets the current value(s) of the list.
209
+ */
210
+ get value(): ReadonlyArray<any | any[]>;
211
+ /**
212
+ * Gets the current items in the list.
213
+ */
214
+ get items(): ReadonlyArray<any[]>;
215
+ writeValue(value: any): void;
216
+ registerOnChange(fn: any): void;
217
+ registerOnTouched(fn: any): void;
218
+ setDisabledState?(isDisabled: boolean): void;
219
+ protected _handleUserSelection(item: ListItem, index: number): void;
220
+ protected _showLoadingSppiner: _angular_core.Signal<boolean>;
221
+ private _updateSelectedItems;
222
+ private _activateFirstSelectedItem;
223
+ private _updateValue;
224
+ private _hostAriaActiveDescendant;
225
+ private _hostTabIndex;
226
+ private _onHostBlur;
227
+ private _onKeydown;
228
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
229
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ng0-list, ng0-select-list", ["ng0List"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showSelectionIndicator": { "alias": "showSelectionIndicator"; "required": false; "isSignal": true; }; "compareBy": { "alias": "compareBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "writeBy": { "alias": "writeBy"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "idGenerator": { "alias": "idGenerator"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, ["_itemTemplate"], never, true, never>;
230
+ }
231
+ /**
232
+ * Event emitted when the selection state of the list changes by user interaction.
233
+ */
234
+ interface ListItemSelectEvent {
235
+ /**
236
+ * The value of the item that was selected or deselected.
237
+ */
238
+ value: any;
239
+ /**
240
+ * The item that was selected or deselected.
241
+ */
242
+ readonly item: ListItem;
243
+ /**
244
+ * The list component that emitted the event.
245
+ */
246
+ readonly list: ListComponent;
247
+ }
248
+
249
+ /**
250
+ * List module.
251
+ */
252
+ declare class ListModule {
253
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListModule, never>;
254
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ListModule, never, [typeof ListComponent], [typeof ListComponent]>;
255
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<ListModule>;
256
+ }
257
+
258
+ export { ListComponent, ListModule };
259
+ export type { ListItemSelectEvent };
@@ -2,20 +2,38 @@ import * as _angular_core from '@angular/core';
2
2
  import { EventEmitter } from '@angular/core';
3
3
 
4
4
  interface ModalCloseRequest {
5
+ reason: 'backdrop' | 'escape';
6
+ event: Event;
5
7
  }
6
8
 
7
9
  declare class ModalComponent {
10
+ /**
11
+ * Is modal scrollable?
12
+ */
8
13
  scrollable: _angular_core.InputSignal<boolean>;
9
14
  /** Is modal vertically centered? */
10
15
  centered: _angular_core.InputSignal<boolean>;
16
+ /**
17
+ * Size of the modal.
18
+ */
11
19
  size: _angular_core.InputSignal<"sm" | "default" | "lg" | "xl">;
12
- fullscreen: _angular_core.InputSignal<"sm" | "lg" | "xl" | "always" | "md" | "xxl">;
20
+ /**
21
+ * Is modal fullscreen?
22
+ */
23
+ fullscreen: _angular_core.InputSignal<"sm" | "lg" | "xl" | "always" | "md" | "xxl" | undefined>;
24
+ /**
25
+ * Emitted when user clicks the backdrop or presses the escape key.
26
+ */
13
27
  closeRequest: EventEmitter<ModalCloseRequest>;
14
- backdropClick: EventEmitter<any>;
28
+ /**
29
+ * Emitted when the backdrop is clicked.
30
+ */
31
+ backdropClick: EventEmitter<Event>;
15
32
  protected _modalStatic: _angular_core.WritableSignal<boolean>;
16
33
  constructor();
17
- protected _onBackdropClick(): void;
18
- onKeyDown(event: KeyboardEvent): void;
34
+ protected _onBackdropClick(event: MouseEvent): void;
35
+ private _onDocumentKeyDown;
36
+ private _shakeModal;
19
37
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
20
38
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ng0-modal", ["ng0Modal"], { "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; }, { "closeRequest": "closeRequest"; "backdropClick": "backdropClick"; }, never, ["*"], true, never>;
21
39
  }
@@ -1,33 +1,34 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ElementRef, Renderer2, TemplateRef, OnInit, QueryList } from '@angular/core';
2
+ import { ElementRef, TemplateRef, OnInit, QueryList, Renderer2 } from '@angular/core';
3
3
 
4
4
  declare class NavDirective {
5
- private _elementRef;
6
- private _renderer;
5
+ /**
6
+ * The active item.
7
+ */
7
8
  activeItem: i0.ModelSignal<any>;
9
+ /**
10
+ * Whether the navigation is disabled.
11
+ */
8
12
  disabled: i0.InputSignal<boolean>;
9
- constructor(_elementRef: ElementRef, _renderer: Renderer2);
13
+ constructor();
10
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NavDirective, never>;
11
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<NavDirective, "[ng0Nav]", ["ng0Nav"], { "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activeItem": "activeItemChange"; }, never, never, true, never>;
12
16
  }
13
17
 
14
18
  declare class NavItemDirective {
15
19
  elementRef: ElementRef;
16
- private _renderer;
17
- private _nav;
18
20
  id: i0.InputSignal<any>;
19
21
  disabled: i0.InputSignal<boolean>;
20
- constructor(elementRef: ElementRef, _renderer: Renderer2, _nav: NavDirective);
22
+ constructor(elementRef: ElementRef);
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<NavItemDirective, never>;
22
24
  static ɵdir: i0.ɵɵDirectiveDeclaration<NavItemDirective, "[ng0NavItem]", ["ng0NavItem"], { "id": { "alias": "ng0NavItem"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
25
  }
24
26
 
25
27
  declare class NavLinkDirective {
26
28
  elementRef: ElementRef;
27
- private _renderer;
28
29
  private _nav;
29
30
  private _navItem;
30
- constructor(elementRef: ElementRef, _renderer: Renderer2, _nav: NavDirective, _navItem: NavItemDirective);
31
+ constructor(elementRef: ElementRef, _nav: NavDirective, _navItem: NavItemDirective);
31
32
  private _onClick;
32
33
  private get _active();
33
34
  private get _disabled();
@@ -35,30 +36,33 @@ declare class NavLinkDirective {
35
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<NavLinkDirective, "[ng0NavLink]", ["ng0NavLink"], {}, {}, never, never, true, never>;
36
37
  }
37
38
 
38
- declare class TabPaneDirective {
39
+ declare class NavContentDirective {
39
40
  templateRef: TemplateRef<any>;
40
41
  id: i0.InputSignal<any>;
41
42
  constructor(templateRef: TemplateRef<any>);
42
- static ɵfac: i0.ɵɵFactoryDeclaration<TabPaneDirective, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<TabPaneDirective, "[ng0TabPane]", ["ng0TabPane"], { "id": { "alias": "ng0TabPane"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavContentDirective, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NavContentDirective, "[ng0NavContent]", ["ng0NavContent"], { "id": { "alias": "ng0NavContent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
44
45
  }
45
46
 
46
- declare class TabContentComponent implements OnInit {
47
+ declare class NavContentContainerComponent implements OnInit {
47
48
  private _elementRef;
48
49
  private _renderer;
50
+ /**
51
+ * The navigation directive that this content belongs to.
52
+ */
49
53
  nav: i0.InputSignal<NavDirective>;
50
- protected _panes: QueryList<TabPaneDirective>;
51
- disabled: i0.InputSignal<boolean>;
54
+ protected _contents: QueryList<NavContentDirective>;
55
+ protected _activeItem: i0.Signal<any>;
52
56
  constructor(_elementRef: ElementRef, _renderer: Renderer2);
53
57
  ngOnInit(): void;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "ng0-tab-content", ["ng0TabContent"], { "nav": { "alias": "nav"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_panes"], never, true, never>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavContentContainerComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavContentContainerComponent, "ng0-navcontent-container", ["ng0Navcontent"], { "nav": { "alias": "nav"; "required": true; "isSignal": true; }; }, {}, ["_contents"], never, true, never>;
56
60
  }
57
61
 
58
62
  declare class NavModule {
59
63
  static ɵfac: i0.ɵɵFactoryDeclaration<NavModule, never>;
60
- static ɵmod: i0.ɵɵNgModuleDeclaration<NavModule, never, [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof TabContentComponent, typeof TabPaneDirective], [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof TabContentComponent, typeof TabPaneDirective]>;
64
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NavModule, never, [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof NavContentContainerComponent, typeof NavContentDirective], [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof NavContentContainerComponent, typeof NavContentDirective]>;
61
65
  static ɵinj: i0.ɵɵInjectorDeclaration<NavModule>;
62
66
  }
63
67
 
64
- export { NavDirective, NavItemDirective, NavLinkDirective, NavModule, TabContentComponent, TabPaneDirective };
68
+ export { NavContentContainerComponent, NavContentDirective, NavDirective, NavItemDirective, NavLinkDirective, NavModule };
@@ -2,23 +2,49 @@ import * as _angular_core from '@angular/core';
2
2
  import { EventEmitter } from '@angular/core';
3
3
 
4
4
  declare class PaginationComponent {
5
- itemClick: EventEmitter<number>;
5
+ /**
6
+ * Total number of records.
7
+ */
6
8
  totalRecords: _angular_core.InputSignal<number>;
9
+ /**
10
+ * Page size. Number of items in each page.
11
+ */
7
12
  pageSize: _angular_core.InputSignal<number>;
8
13
  /**
9
- * Selected page. starts from 1.
14
+ * Selected page Index. starts from 1.
15
+ */
16
+ selectedPage: _angular_core.InputSignal<number | undefined>;
17
+ /**
18
+ * Maximum number of visible pages.
19
+ * Default is 10.
10
20
  */
11
- selectedPage: _angular_core.InputSignal<number>;
12
21
  maxVisiblePages: _angular_core.InputSignal<number>;
13
- showNextButton: _angular_core.InputSignal<boolean>;
14
- showPreviousButton: _angular_core.InputSignal<boolean>;
15
- showFirstButton: _angular_core.InputSignal<boolean>;
16
- showLastButton: _angular_core.InputSignal<boolean>;
22
+ /**
23
+ * Show first and last buttons.
24
+ * Default is true.
25
+ */
26
+ showNextPreviousButtons: _angular_core.InputSignal<boolean | undefined>;
27
+ /**
28
+ * Show first and last buttons.
29
+ * Default is true.
30
+ */
31
+ showFirstLastButtons: _angular_core.InputSignal<boolean | undefined>;
32
+ /**
33
+ * Total number of pages.
34
+ * This is a computed property based on totalRecords and pageSize.
35
+ * It is not an input property.
36
+ */
17
37
  get totalPagesCount(): number;
38
+ /**
39
+ * Emits the selected page index when a page is clicked.
40
+ * The index starts from 1.
41
+ */
42
+ itemClick: EventEmitter<number>;
18
43
  protected _totalPagesCount: number;
19
- protected _visiblePages: _angular_core.Signal<any[]>;
44
+ protected _visiblePages: _angular_core.Signal<number[]>;
45
+ _onPageChange(pageIndex: number): void;
20
46
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
21
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ng0-pagination", ["ng0Pagination"], { "totalRecords": { "alias": "totalRecords"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectedPage": { "alias": "selectedPage"; "required": false; "isSignal": true; }; "maxVisiblePages": { "alias": "maxVisiblePages"; "required": false; "isSignal": true; }; "showNextButton": { "alias": "showNextButton"; "required": false; "isSignal": true; }; "showPreviousButton": { "alias": "showPreviousButton"; "required": false; "isSignal": true; }; "showFirstButton": { "alias": "showFirstButton"; "required": false; "isSignal": true; }; "showLastButton": { "alias": "showLastButton"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["first", "previous", "next", "last"], true, never>;
47
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ng0-pagination", ["ng0Pagination"], { "totalRecords": { "alias": "totalRecords"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectedPage": { "alias": "selectedPage"; "required": false; "isSignal": true; }; "maxVisiblePages": { "alias": "maxVisiblePages"; "required": false; "isSignal": true; }; "showNextPreviousButtons": { "alias": "showNextPreviousButtons"; "required": false; "isSignal": true; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["first", "previous", "next", "last"], true, never>;
22
48
  }
23
49
 
24
50
  declare class PaginationModule {
@@ -10,7 +10,7 @@ declare class PopoverDirective implements OnInit, OnDestroy {
10
10
  private _overlayService;
11
11
  private _elementRef;
12
12
  private _viewRef;
13
- header: _angular_core.InputSignal<string>;
13
+ header: _angular_core.InputSignal<string | undefined>;
14
14
  content: _angular_core.InputSignal<PopoverContent>;
15
15
  placement: _angular_core.InputSignal<PopoverPlacement>;
16
16
  triggerBy: _angular_core.InputSignal<PopoverTrigger>;