@bootkit/ng0 0.0.0-alpha.4 → 0.0.0-alpha.41

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 (102) hide show
  1. package/README.md +2 -2
  2. package/common/index.d.ts +263 -7
  3. package/components/accordion/index.d.ts +13 -3
  4. package/components/backdrop/index.d.ts +12 -0
  5. package/components/dropdown/index.d.ts +156 -0
  6. package/components/form-field/index.d.ts +24 -41
  7. package/components/list/index.d.ts +260 -0
  8. package/components/modal/index.d.ts +21 -3
  9. package/components/nav/index.d.ts +23 -19
  10. package/components/offcanvas/index.d.ts +13 -5
  11. package/components/pagination/index.d.ts +34 -8
  12. package/components/select/index.d.ts +160 -0
  13. package/components/sidenav/index.d.ts +125 -0
  14. package/components/table/index.d.ts +191 -59
  15. package/components/tooltip/index.d.ts +20 -11
  16. package/components/vertical-menu/index.d.ts +57 -0
  17. package/data/index.d.ts +103 -38
  18. package/date/index.d.ts +34 -0
  19. package/fesm2022/bootkit-ng0-common.mjs +289 -12
  20. package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
  21. package/fesm2022/bootkit-ng0-components-accordion.mjs +34 -27
  22. package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
  23. package/fesm2022/bootkit-ng0-components-backdrop.mjs +46 -0
  24. package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -0
  25. package/fesm2022/bootkit-ng0-components-button.mjs +12 -12
  26. package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -1
  27. package/fesm2022/bootkit-ng0-components-card.mjs +13 -13
  28. package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -1
  29. package/fesm2022/bootkit-ng0-components-code.mjs +10 -10
  30. package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
  31. package/fesm2022/bootkit-ng0-components-collapse.mjs +16 -16
  32. package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
  33. package/fesm2022/bootkit-ng0-components-confirmation.mjs +14 -14
  34. package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
  35. package/fesm2022/bootkit-ng0-components-dropdown.mjs +308 -0
  36. package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
  37. package/fesm2022/bootkit-ng0-components-form-field.mjs +62 -84
  38. package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
  39. package/fesm2022/bootkit-ng0-components-list.mjs +564 -0
  40. package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
  41. package/fesm2022/bootkit-ng0-components-modal.mjs +41 -24
  42. package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
  43. package/fesm2022/bootkit-ng0-components-nav.mjs +59 -60
  44. package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
  45. package/fesm2022/bootkit-ng0-components-offcanvas.mjs +20 -13
  46. package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -1
  47. package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -1
  48. package/fesm2022/bootkit-ng0-components-pagination.mjs +59 -24
  49. package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
  50. package/fesm2022/bootkit-ng0-components-popover.mjs +12 -12
  51. package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
  52. package/fesm2022/bootkit-ng0-components-select.mjs +448 -0
  53. package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
  54. package/fesm2022/bootkit-ng0-components-sidenav.mjs +290 -0
  55. package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
  56. package/fesm2022/bootkit-ng0-components-stepper.mjs +15 -15
  57. package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
  58. package/fesm2022/bootkit-ng0-components-table.mjs +303 -159
  59. package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
  60. package/fesm2022/bootkit-ng0-components-toast.mjs +7 -7
  61. package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
  62. package/fesm2022/bootkit-ng0-components-tooltip.mjs +41 -22
  63. package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
  64. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +148 -0
  65. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -0
  66. package/fesm2022/bootkit-ng0-data.mjs +152 -39
  67. package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
  68. package/fesm2022/bootkit-ng0-date.mjs +50 -0
  69. package/fesm2022/bootkit-ng0-date.mjs.map +1 -0
  70. package/fesm2022/bootkit-ng0-file.mjs.map +1 -1
  71. package/fesm2022/bootkit-ng0-form.mjs +336 -264
  72. package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
  73. package/fesm2022/bootkit-ng0-http.mjs +40 -5
  74. package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
  75. package/fesm2022/bootkit-ng0-layouts-layout1.mjs +317 -0
  76. package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -0
  77. package/fesm2022/bootkit-ng0-localization-locales.mjs +101 -0
  78. package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
  79. package/fesm2022/bootkit-ng0-localization.mjs +431 -105
  80. package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
  81. package/fesm2022/bootkit-ng0-platform-browser.mjs +179 -0
  82. package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
  83. package/fesm2022/bootkit-ng0-routing.mjs +80 -0
  84. package/fesm2022/bootkit-ng0-routing.mjs.map +1 -0
  85. package/fesm2022/bootkit-ng0-script.mjs +3 -3
  86. package/fesm2022/bootkit-ng0-script.mjs.map +1 -1
  87. package/fesm2022/bootkit-ng0-security.mjs +16 -16
  88. package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
  89. package/fesm2022/bootkit-ng0-utils.mjs +75 -0
  90. package/fesm2022/bootkit-ng0-utils.mjs.map +1 -0
  91. package/fesm2022/bootkit-ng0.mjs +2 -2
  92. package/fesm2022/bootkit-ng0.mjs.map +1 -1
  93. package/form/index.d.ts +94 -62
  94. package/http/index.d.ts +35 -4
  95. package/index.d.ts +2 -2
  96. package/layouts/layout1/index.d.ts +201 -0
  97. package/localization/index.d.ts +231 -42
  98. package/localization/locales/index.d.ts +7 -0
  99. package/package.json +63 -15
  100. package/platform/browser/index.d.ts +88 -0
  101. package/routing/index.d.ts +124 -0
  102. package/utils/index.d.ts +42 -0
@@ -0,0 +1,124 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ActivatedRouteSnapshot, UrlTree, RouterStateSnapshot, Route as Route$1 } from '@angular/router';
3
+ import { ClaimLike } from '@bootkit/ng0/common';
4
+ import * as i0 from '@angular/core';
5
+
6
+ /**
7
+ * A function that resolves a title from the route and router state
8
+ */
9
+ type RouteTitleResolver = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => string;
10
+ /**
11
+ * A router link value.
12
+ */
13
+ type RouterLinkValue = any[] | string | UrlTree | null | undefined;
14
+ /**
15
+ * A function that resolves a router link.
16
+ * @param route The activated route snapshot
17
+ * @param state The router state snapshot
18
+ * @returns The resolved link (RouteDataLink)
19
+ */
20
+ type RouterLinkValueResolver = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => RouterLinkValue;
21
+ /**
22
+ * A function that resolves a meta description.
23
+ * @param route The activated route snapshot
24
+ * @param state The router state snapshot
25
+ * @returns The resolved meta description string
26
+ */
27
+ type RouteMetaDescriptionResolver = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => string;
28
+ /**
29
+ * A function that resolves meta tags from the route and router state
30
+ */
31
+ type RouteMetaTagResolver = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {
32
+ [metaTagName: string]: string;
33
+ };
34
+ /**
35
+ * Route data
36
+ */
37
+ interface RouteData {
38
+ /**
39
+ * The title of the route, or a function that resolves the title.
40
+ */
41
+ title?: string | RouteTitleResolver;
42
+ /**
43
+ * A Router link defined for the route.
44
+ */
45
+ link?: RouterLinkValue | RouterLinkValueResolver;
46
+ /**
47
+ * linkTarget
48
+ */
49
+ linkTarget?: '_self' | '_blank' | '_parent' | '_top';
50
+ /**
51
+ * meta
52
+ */
53
+ meta?: string | RouteMetaTagResolver | RouteMetaDescriptionResolver;
54
+ /**
55
+ * Route security claim.
56
+ */
57
+ claim?: ClaimLike;
58
+ /**
59
+ * Route childreen.
60
+ */
61
+ children?: RouteData[];
62
+ [key: string]: any;
63
+ }
64
+ /**
65
+ * Router Activated Route Snapshot.
66
+ * Represents the state of an activated route in the router.
67
+ */
68
+ interface RouterActivatedRouteSnapshot {
69
+ /**
70
+ * The original ActivatedRouteSnapshot
71
+ */
72
+ activatedRoute: ActivatedRouteSnapshot;
73
+ /**
74
+ * Resolved title, if any
75
+ */
76
+ title?: string;
77
+ /**
78
+ * Resolved link, if any
79
+ */
80
+ link: RouterLinkValue;
81
+ /**
82
+ * Children routes
83
+ */
84
+ children: RouterActivatedRouteSnapshot[];
85
+ }
86
+ /**
87
+ * Extended Angular Route interface with additional data property.
88
+ */
89
+ interface Route extends Route$1 {
90
+ children?: Routes;
91
+ data?: RouteData;
92
+ }
93
+ type Routes = Route[];
94
+
95
+ /**
96
+ * Service to interact with Angular Router.
97
+ */
98
+ declare class RouterService {
99
+ private readonly _router;
100
+ /**
101
+ * Get activated route tree.
102
+ * @param outlets List of outlets to include, default is ['primary']
103
+ * @returns Observable of the activated route tree
104
+ */
105
+ getActivatedRouteTree(outlets?: string[]): Observable<RouterActivatedRouteSnapshot>;
106
+ /**
107
+ * Get activated routes as a flat array from root to the deepest child for a specific outlet.
108
+ * @param outlet The outlet to include, default is 'primary'
109
+ * @returns Observable of the activated routes array
110
+ */
111
+ getActivatedRoutes(outlet?: string): Observable<RouterActivatedRouteSnapshot[]>;
112
+ /**
113
+ * Map a route to RouterRouteSnapshot
114
+ * @param route The route to map
115
+ * @param outlets The outlets to include
116
+ * @returns The mapped RouterRouteSnapshot
117
+ */
118
+ private _mapRoute;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
120
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
121
+ }
122
+
123
+ export { RouterService };
124
+ export type { Route, RouteData, RouteMetaDescriptionResolver, RouteMetaTagResolver, RouteTitleResolver, RouterActivatedRouteSnapshot, RouterLinkValue, RouterLinkValueResolver, Routes };
@@ -0,0 +1,42 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ /**
4
+ * Easing function type definition.
5
+ */
6
+ type EasingFn = (t: number) => number;
7
+ /**
8
+ * A counter that animates a numeric value from a start to an end value over a specified duration using an easing function.
9
+ */
10
+ declare class Counter {
11
+ readonly from: number;
12
+ readonly to: number;
13
+ readonly duration: number;
14
+ private _subscription?;
15
+ readonly value: _angular_core.WritableSignal<number>;
16
+ readonly running: _angular_core.WritableSignal<boolean>;
17
+ readonly easing: EasingFn;
18
+ constructor(from: number, to: number, duration?: number, easing?: EasingFn, currentValue?: number);
19
+ /**
20
+ * Resets the counter and starts it.
21
+ * This method should be called in a browser environment.
22
+ * @returns void
23
+ */
24
+ start(): void;
25
+ /**
26
+ * Stops the counter animation.
27
+ */
28
+ stop(): void;
29
+ }
30
+ /**
31
+ * A collection of common easing functions for animations.
32
+ */
33
+ declare const easingFunctions: {
34
+ linear: (t: number) => number;
35
+ easeIn: (t: number) => number;
36
+ easeOut: (t: number) => number;
37
+ easeInOut: (t: number) => number;
38
+ smooth: (t: number) => number;
39
+ };
40
+
41
+ export { Counter, easingFunctions };
42
+ export type { EasingFn };