@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
@@ -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>;
@@ -0,0 +1,116 @@
1
+ import * as _bootkit_ng0_common from '@bootkit/ng0/common';
2
+ import { SelectOption } from '@bootkit/ng0/common';
3
+ import * as _bootkit_ng0_localization from '@bootkit/ng0/localization';
4
+ import * as _bootkit_ng0_data from '@bootkit/ng0/data';
5
+ import { DataSource, DataSourceLike, FilterPredicate } from '@bootkit/ng0/data';
6
+ import * as _angular_core from '@angular/core';
7
+ import { OnInit, TemplateRef, ElementRef } from '@angular/core';
8
+ import { ControlValueAccessor } from '@angular/forms';
9
+ import { FlexibleConnectedPositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
10
+
11
+ /**
12
+ * Select component that allows users to choose an option from a dropdown list.
13
+ */
14
+ declare class SelectComponent implements OnInit, ControlValueAccessor {
15
+ private _resizeObserver?;
16
+ private _resizeObserverInitialized;
17
+ private _viewpoerRulerSubscription?;
18
+ protected _cdkListboxValue: _angular_core.WritableSignal<any>;
19
+ private _filterElementRef?;
20
+ private _onChangeCallback;
21
+ private _onTouchedCallback;
22
+ protected readonly _options: _angular_core.WritableSignal<SelectOption[]>;
23
+ protected readonly _isDisabled: _angular_core.WritableSignal<boolean>;
24
+ protected readonly _selectedOptionIndex: _angular_core.WritableSignal<number>;
25
+ protected readonly _activeOptionIndex: _angular_core.WritableSignal<number>;
26
+ protected _optionTemplate?: TemplateRef<any>;
27
+ protected _positionStrategy: FlexibleConnectedPositionStrategy;
28
+ protected _scrollStrategy: ScrollStrategy;
29
+ private _overlay;
30
+ private _document;
31
+ private _ls;
32
+ private _destroyRef;
33
+ protected _el: ElementRef<any>;
34
+ private _renderer;
35
+ private _viewportRuler;
36
+ private _changeDetector;
37
+ /**
38
+ * The data source for the select component.
39
+ * This can be an array of data, a function that returns an observable of data,
40
+ * or an instance of DataSource.
41
+ */
42
+ readonly source: _angular_core.InputSignalWithTransform<DataSource<any>, DataSourceLike<any>>;
43
+ /**
44
+ * Indicates whether multi selection is enabled or not.
45
+ */
46
+ readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
+ /**
48
+ * Indicates whether the dropdown is open or closed.
49
+ */
50
+ readonly open: _angular_core.ModelSignal<boolean>;
51
+ /**
52
+ * A custom comparer function or the name of a field for comparing two objects.
53
+ */
54
+ readonly compareBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.BooleanValueComparer, _bootkit_ng0_data.BooleanValueComparerLike>;
55
+ /**
56
+ * Custom format function to convert an item to a string for display.
57
+ * Default converts the item to a string using its toString method.
58
+ */
59
+ readonly formatBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_localization.ValueFormatterFunction, _bootkit_ng0_localization.ValueFormatterLike>;
60
+ /**
61
+ * Custom value extractor function to extract the value of any object while writing values.
62
+ */
63
+ readonly writeBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.ValueExtractor, _bootkit_ng0_data.ValueExtractorLike>;
64
+ /**
65
+ * Indicates whether the dropdown is filterable.
66
+ */
67
+ readonly filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
68
+ /**
69
+ * Placeholder text for the filter input field.
70
+ */
71
+ readonly filterPlaceholder: _angular_core.InputSignal<string>;
72
+ /**
73
+ * Custom filter function to filter items based on a filter value.
74
+ * Default checks if the item contains the filter value (case-insensitive).
75
+ */
76
+ readonly filterBy: _angular_core.InputSignal<FilterPredicate>;
77
+ /**
78
+ * CSS class or classes to apply to the list container.
79
+ */
80
+ readonly itemClass: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.CssClassGetter, _bootkit_ng0_common.CssClassLike>;
81
+ constructor();
82
+ ngOnInit(): void;
83
+ private _loadItems;
84
+ private _handleDataSourceChange;
85
+ /**
86
+ * Selects an option by index
87
+ */
88
+ protected _selectByIndex(index: number): void;
89
+ protected _insertOptions(index?: number, ...items: any[]): void;
90
+ writeValue(obj: any): void;
91
+ registerOnChange(fn: any): void;
92
+ registerOnTouched(fn: any): void;
93
+ setDisabledState?(isDisabled: boolean): void;
94
+ protected _onKeydown(e: KeyboardEvent, firedByFilter?: boolean): void;
95
+ protected _onFilterBlur(): void;
96
+ protected _filterItems(filter: string): void;
97
+ protected _onOverlayAttach(): void;
98
+ protected _onOverlayDetach(): void;
99
+ private _getNextOptionId;
100
+ private _listenToResizeEvents;
101
+ private _unlistenFromResizeEvents;
102
+ private _onHostClick;
103
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectComponent, never>;
104
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "ng0-select", ["ng0Select"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "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; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["_optionTemplate"], never, true, never>;
105
+ }
106
+
107
+ /**
108
+ * Select module.
109
+ */
110
+ declare class SelectModule {
111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectModule, never>;
112
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SelectModule, never, [typeof SelectComponent], [typeof SelectComponent]>;
113
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<SelectModule>;
114
+ }
115
+
116
+ export { SelectComponent, SelectModule };
@@ -0,0 +1,59 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, OnDestroy, EventEmitter, ViewContainerRef, ElementRef, Renderer2, QueryList } from '@angular/core';
3
+
4
+ type SidenavMode = 'push' | 'over';
5
+ type SidenavPosition = 'start' | 'end';
6
+
7
+ /**
8
+ * This component is used to display a sidenav panel.
9
+ * It can be positioned on the left or right side of the screen.
10
+ * It can be opened or closed and can have a backdrop.
11
+ */
12
+ declare class SidenavComponent implements OnInit, OnDestroy {
13
+ private _vcr;
14
+ private _elmentRef;
15
+ private _renderer;
16
+ open: _angular_core.InputSignal<boolean>;
17
+ mode: _angular_core.InputSignal<SidenavMode>;
18
+ hasBackdrop: _angular_core.InputSignal<boolean>;
19
+ zIndex: _angular_core.InputSignal<number | undefined>;
20
+ position: _angular_core.InputSignal<SidenavPosition>;
21
+ sidenavWidth: _angular_core.InputSignal<number>;
22
+ fixedInViewport: _angular_core.InputSignal<boolean>;
23
+ backdropClick: EventEmitter<MouseEvent>;
24
+ private _backdropRef?;
25
+ private _backdropClickHandlerUnlisten?;
26
+ constructor(_vcr: ViewContainerRef, _elmentRef: ElementRef, _renderer: Renderer2);
27
+ ngOnInit(): void;
28
+ private _createBackdrop;
29
+ private _destroyBackdrop;
30
+ ngOnDestroy(): void;
31
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavComponent, never>;
32
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "ng0-sidenav", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": true; "isSignal": true; }; "fixedInViewport": { "alias": "fixedInViewport"; "required": false; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, ["*"], true, never>;
33
+ }
34
+
35
+ /**
36
+ * This component is used to contain multiple sidenav components and manage their layout.
37
+ */
38
+ declare class SidenavContainerComponent implements OnInit {
39
+ backdropClick: EventEmitter<any>;
40
+ protected _sidenavs: QueryList<SidenavComponent>;
41
+ protected _contentPaddingStart: _angular_core.Signal<string>;
42
+ protected _contentPaddingEnd: _angular_core.Signal<string>;
43
+ constructor();
44
+ ngOnInit(): void;
45
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavContainerComponent, never>;
46
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavContainerComponent, "ng0-sidenav-container", never, {}, { "backdropClick": "backdropClick"; }, ["_sidenavs"], ["*"], true, never>;
47
+ }
48
+
49
+ /**
50
+ * This module is used to contain the sidenav components and provide their functionality.
51
+ */
52
+ declare class SidenavModule {
53
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavModule, never>;
54
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SidenavModule, never, [typeof SidenavContainerComponent, typeof SidenavComponent], [typeof SidenavContainerComponent, typeof SidenavComponent]>;
55
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<SidenavModule>;
56
+ }
57
+
58
+ export { SidenavComponent, SidenavContainerComponent, SidenavModule };
59
+ export type { SidenavMode, SidenavPosition };
@@ -0,0 +1,26 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, QueryList } from '@angular/core';
3
+
4
+ declare class StepDirective {
5
+ readonly templateRef: TemplateRef<any>;
6
+ id: i0.InputSignal<any>;
7
+ constructor(templateRef: TemplateRef<any>);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepDirective, "[ng0Step]", ["ng0Step"], { "id": { "alias": "iscStep"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
11
+
12
+ declare class StepperComponent {
13
+ step: i0.ModelSignal<any>;
14
+ protected _steps: QueryList<StepDirective>;
15
+ constructor();
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "ng0-stepper", ["ng0Stepper"], { "step": { "alias": "step"; "required": true; "isSignal": true; }; }, { "step": "stepChange"; }, ["_steps"], never, true, never>;
18
+ }
19
+
20
+ declare class StepperModule {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepperModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, never, [typeof StepperComponent, typeof StepDirective], [typeof StepperComponent, typeof StepDirective]>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<StepperModule>;
24
+ }
25
+
26
+ export { StepDirective, StepperComponent, StepperModule };
@@ -0,0 +1,273 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, TemplateRef, AfterContentInit, OnDestroy, QueryList, DestroyRef } from '@angular/core';
3
+ import { formatString } from '@bootkit/ng0/common';
4
+ import { LocalizationService, TableComponentPagingFormatter } from '@bootkit/ng0/localization';
5
+ import { DataSourceLike, DataResult, DataRequest, DataSource } from '@bootkit/ng0/data';
6
+
7
+ /**
8
+ * Options for configuring the table's paging behavior.
9
+ */
10
+ interface TablePagingOptions {
11
+ /**
12
+ * If true, the table will show pagination controls at the bottom.
13
+ * This will allow users to navigate between pages of data.
14
+ * Default is true.
15
+ */
16
+ showPagingControls?: boolean;
17
+ /**
18
+ * Initial page index to load when the table is initialized.
19
+ * This is only used if pagable is true.
20
+ * The index starts from 1.
21
+ * Default is 1.
22
+ */
23
+ pageIndex?: number;
24
+ pageSize?: number;
25
+ /**
26
+ * Array of page size options to display in the page size selector.
27
+ * If not provided, the default page size options will be used.
28
+ */
29
+ pageSizeOptions?: number[];
30
+ /**
31
+ * If true, the table will show a page size selector.
32
+ */
33
+ showPageSizeOptions?: boolean;
34
+ showPageSizeSelectorLabel?: boolean;
35
+ showNextPreviousButtons?: boolean;
36
+ showFirstLastButtons?: boolean;
37
+ /**
38
+ * Maximum number of visible pages.
39
+ * Default is 10.
40
+ */
41
+ maxVisiblePages?: number;
42
+ /**
43
+ * If true, the table will show paging info at the bottom.
44
+ * This will show the number of records displayed and total records.
45
+ */
46
+ showPagingInfo?: boolean;
47
+ }
48
+ /**
49
+ * Type of the table cell.
50
+ * This can be a primitive type like 'number', 'currency', 'date', 'time',
51
+ * or an object with specific formatting options.
52
+ */
53
+ type TableCellType = 'text' | 'number' | 'currency' | 'date' | 'time' | {
54
+ /** Enum formatting options */
55
+ enum?: {
56
+ /** The name of the enum to use for translation */
57
+ name: string;
58
+ fallback?: string;
59
+ };
60
+ /** Boolean formatting options */
61
+ boolean?: {
62
+ false?: string;
63
+ true?: string;
64
+ };
65
+ currency?: {};
66
+ };
67
+
68
+ declare class TableColumnDirective implements OnInit {
69
+ /**
70
+ * The field in the data source to bind to. If not set, the column will not display any data.
71
+ */
72
+ field: _angular_core.InputSignal<string | undefined>;
73
+ /**
74
+ * The title of the column. This will be displayed in the header row.
75
+ */
76
+ title: _angular_core.InputSignal<string | undefined>;
77
+ /**
78
+ * Text to display in the cell if the value is null or undefined.
79
+ */
80
+ emptyCellText: _angular_core.InputSignal<string | undefined>;
81
+ /**
82
+ * Type of the table cell.
83
+ */
84
+ type: _angular_core.InputSignal<TableCellType>;
85
+ /**
86
+ * CSS class(es) to apply to the table cell.
87
+ */
88
+ cellClass: _angular_core.InputSignal<string | {
89
+ [klass: string]: any;
90
+ } | string[] | null | undefined>;
91
+ /**
92
+ * @deprecated Use `cellClass` instead.
93
+ */
94
+ bold: _angular_core.InputSignalWithTransform<boolean, unknown>;
95
+ /**
96
+ * @deprecated Use `cellClass` instead.
97
+ */
98
+ shrink: _angular_core.InputSignalWithTransform<boolean, unknown>;
99
+ /**
100
+ * If true, the column will support filtering.
101
+ */
102
+ filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
103
+ /**
104
+ * The current filter value of the column.
105
+ */
106
+ filterValue: _angular_core.ModelSignal<any>;
107
+ /**
108
+ * The field to use for filtering. If not set, the `field` property will be used.
109
+ * @deprecated Use `fieldName` instead.
110
+ */
111
+ filterField: _angular_core.InputSignal<string | undefined>;
112
+ /**
113
+ * The current filter operator of the column.
114
+ */
115
+ filterOperator: _angular_core.ModelSignal<string | undefined>;
116
+ /**
117
+ * The list of filter operators to show in the filter dropdown. If not set, a default list will be used based on the column type.
118
+ */
119
+ filterOperators: _angular_core.InputSignal<string[] | undefined>;
120
+ /**
121
+ * If true, the filter operators dropdown will be shown.
122
+ */
123
+ showFilterOperators: _angular_core.WritableSignal<boolean>;
124
+ /**
125
+ * The name of the field in the data source. If not set, the `field` property will be used.
126
+ */
127
+ fieldName: _angular_core.InputSignal<string | undefined>;
128
+ /**
129
+ * If true, the column will support sorting.
130
+ */
131
+ sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
132
+ /**
133
+ * The current sort direction of the column.
134
+ */
135
+ sortDirection: _angular_core.ModelSignal<"none" | "asc" | "desc">;
136
+ template?: TemplateRef<any>;
137
+ constructor();
138
+ ngOnInit(): void;
139
+ /**
140
+ * Get the list of filter operators to show in the filter dropdown.
141
+ */
142
+ getFilterOperators(): string[];
143
+ /**
144
+ * Toggle the sort direction of the column.
145
+ * @returns void
146
+ */
147
+ toggleSortDirection(): void;
148
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableColumnDirective, never>;
149
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableColumnDirective, "ng0-table-col", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "emptyCellText": { "alias": "emptyCellText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "cellClass": { "alias": "cellClass"; "required": false; "isSignal": true; }; "bold": { "alias": "bold"; "required": false; "isSignal": true; }; "shrink": { "alias": "shrink"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterValue": { "alias": "filterValue"; "required": false; "isSignal": true; }; "filterField": { "alias": "filterField"; "required": false; "isSignal": true; }; "filterOperator": { "alias": "filterOperator"; "required": false; "isSignal": true; }; "filterOperators": { "alias": "filterOperators"; "required": false; "isSignal": true; }; "fieldName": { "alias": "fieldName"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "filterValue": "filterValueChange"; "filterOperator": "filterOperatorChange"; "sortDirection": "sortDirectionChange"; }, ["template"], never, true, never>;
150
+ }
151
+
152
+ declare class TableDetailRowDirective {
153
+ readonly templateRef: TemplateRef<any>;
154
+ showCallback?: (row: any) => boolean;
155
+ constructor(templateRef: TemplateRef<any>);
156
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableDetailRowDirective, never>;
157
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableDetailRowDirective, "[ng0-table-detail-row]", never, { "showCallback": { "alias": "showCallback"; "required": false; }; }, {}, never, never, true, never>;
158
+ }
159
+
160
+ /**
161
+ * A generic table component that can display data in a tabular format.
162
+ * It supports features like pagination, sorting, filtering, and row details.
163
+ * It can be used with any data source that implements the DataSource interface.
164
+ */
165
+ declare class TableComponent implements OnInit, AfterContentInit, OnDestroy {
166
+ protected _ls: LocalizationService;
167
+ private _destroyRef;
168
+ /**
169
+ * The data source for the table.
170
+ * This can be an array of data, a function that returns an observable of data,
171
+ * or an instance of DataSource.
172
+ */
173
+ source: _angular_core.InputSignal<DataSourceLike<any>>;
174
+ /**
175
+ * If true, the table will automatically load data when initialized.
176
+ * This is useful for tables that need to display data immediately without user interaction.
177
+ */
178
+ autoLoad: _angular_core.InputSignalWithTransform<boolean, unknown>;
179
+ /**
180
+ * If true, the table will show row numbers.
181
+ * This will add a column to the left of the table with the row numbers.
182
+ */
183
+ showRowNumbers: _angular_core.InputSignalWithTransform<boolean, unknown>;
184
+ /**
185
+ * If true, the table will show the header row.
186
+ */
187
+ showHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
188
+ /**
189
+ * If true, the table will support pagination.
190
+ * If false, the table will load all records at once.
191
+ */
192
+ pageable: _angular_core.InputSignalWithTransform<TablePagingOptions | undefined, boolean | TablePagingOptions>;
193
+ /**
194
+ * If true, the table will support sorting.
195
+ * This will add a sort icon to each column header.
196
+ */
197
+ sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
198
+ /**
199
+ * The CSS class to apply to the table element.
200
+ * This can be used to apply custom styles to the table.
201
+ */
202
+ tableClass: _angular_core.InputSignal<string | string[] | undefined>;
203
+ /**
204
+ * The CSS class to apply to the header element.
205
+ */
206
+ headerClass: _angular_core.InputSignal<string | undefined>;
207
+ /**
208
+ * The caption of the table.
209
+ */
210
+ caption: _angular_core.InputSignal<string | undefined>;
211
+ /**
212
+ * The height of the table in pixels.
213
+ * This can be used to set a fixed height for the table.
214
+ */
215
+ height: _angular_core.InputSignal<number | undefined>;
216
+ /**
217
+ * If true, the table will support filtering.
218
+ * This will add a filter input to each column header.
219
+ */
220
+ filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
221
+ /**
222
+ * The indicator to show while the table is loading data for the first time.
223
+ */
224
+ loadingIndicator: _angular_core.InputSignalWithTransform<"none" | "simple" | "spinner", boolean | "none" | "simple" | "spinner">;
225
+ /** If true, the table will show a loading cover while data is being loaded.
226
+ * This can be used to prevent user interaction with the table while loading.
227
+ * This cover is not displayed when the table is loading for the first time.
228
+ * Instead, the table will show a loading based on loadingIndicator settings.
229
+ */
230
+ loadingCover: _angular_core.InputSignalWithTransform<"none" | "simple" | "spinner", boolean | "none" | "simple" | "spinner">;
231
+ protected _columns: QueryList<TableColumnDirective>;
232
+ protected _detailRow?: TableDetailRowDirective;
233
+ protected _dataResult: _angular_core.WritableSignal<DataResult<any> | undefined>;
234
+ protected _lastRequest?: DataRequest;
235
+ protected _loadingRequest?: DataRequest;
236
+ protected _rowStates: Map<any, {
237
+ expanded: boolean;
238
+ }>;
239
+ protected _formatString: typeof formatString;
240
+ private _changeSubscription?;
241
+ protected _dataSource: DataSource;
242
+ protected _pagingFormatter: TableComponentPagingFormatter;
243
+ protected _lastError?: any;
244
+ constructor(_ls: LocalizationService, _destroyRef: DestroyRef);
245
+ ngOnInit(): void;
246
+ ngAfterContentInit(): void;
247
+ /**
248
+ * Load data for the specified page index (optional).
249
+ * @param pageIndex The page index to load.
250
+ */
251
+ load(pageIndex?: number): void;
252
+ /**
253
+ * Determines if the table is currently loading data.
254
+ */
255
+ get isLoading(): _angular_core.Signal<boolean>;
256
+ protected _getCellValue(row: any, col: TableColumnDirective): any;
257
+ protected _onPageChange(pageIndex: number): void;
258
+ protected _onToggleRowDetailClick(row: any): void;
259
+ protected isRowExpanded(row: any): boolean;
260
+ protected _onToggleFilterOperator(col: TableColumnDirective): void;
261
+ protected _onSelectFilterOperator(col: TableColumnDirective, filterOperator: string): void;
262
+ ngOnDestroy(): void;
263
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent, never>;
264
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "ng0-table", ["ng0Table"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "autoLoad": { "alias": "autoLoad"; "required": false; "isSignal": true; }; "showRowNumbers": { "alias": "showRowNumbers"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "pageable": { "alias": "pageable"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "tableClass": { "alias": "tableClass"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; "isSignal": true; }; "loadingCover": { "alias": "loadingCover"; "required": false; "isSignal": true; }; }, {}, ["_detailRow", "_columns"], ["paging-first", "paging-last", "paging-next", "paging-previous", "paging-info"], true, never>;
265
+ }
266
+
267
+ declare class TableModule {
268
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableModule, never>;
269
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TableModule, never, [typeof TableComponent, typeof TableColumnDirective, typeof TableDetailRowDirective], [typeof TableComponent, typeof TableColumnDirective, typeof TableDetailRowDirective]>;
270
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableModule>;
271
+ }
272
+
273
+ export { TableColumnDirective, TableComponent, TableDetailRowDirective, TableModule };
@@ -89,7 +89,7 @@ declare class ToastRef {
89
89
  declare class ToastService {
90
90
  private _overlayService;
91
91
  private _injector;
92
- private _toastRef;
92
+ private _toastRef?;
93
93
  constructor(_overlayService: Overlay, _injector: Injector);
94
94
  open(body: string, header?: string, style?: string): ToastRef;
95
95
  open(config: ToastConfig): ToastRef;