@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,7 +1,37 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, PipeTransform } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
- import * as i1 from '@angular/common';
4
+
5
+ /**
6
+ * Object formatter function type.
7
+ * @param obj The object to format.
8
+ * @param params Additional parameters for formatting.
9
+ * @returns The formatted value.
10
+ */
11
+ type ObjectFormatter = (obj: any, ...params: any[]) => any;
12
+ /**
13
+ * Object formatter-like types.
14
+ */
15
+ type ObjectFormatterLike = ObjectFormatter | string | number | Array<ObjectFormatter | string | number>;
16
+ /**
17
+ * Default object formatter function.
18
+ * @param value The item to format.
19
+ * @returns The formatted string.
20
+ */
21
+ declare function defaultFormatter(obj: any): string;
22
+ /**
23
+ * Creates an ObjectFormatter from various ObjectFormatterLike types.
24
+ * @param formatter The ObjectFormatterLike value to convert.
25
+ * @param locale Optional locale object for locale-based formatting.
26
+ * @returns An ObjectFormatter function.
27
+ */
28
+ declare function createObjectFormatter(formatter: ObjectFormatterLike, locale?: Locale): ObjectFormatter;
29
+ /**
30
+ * Creates a function that converts a ObjectFormatterLike value into a ObjectFormatter.
31
+ * @param locale Optional locale object for locale-based formatting.
32
+ * @returns A function that takes a ObjectFormatterLike and returns a ObjectFormatter.
33
+ */
34
+ declare function objectFormatterAttribute(locale?: Locale): ((v: ObjectFormatterLike) => ObjectFormatter);
5
35
 
6
36
  /** Locale dictionary */
7
37
  type LocaleDictionary = {
@@ -18,6 +48,28 @@ type LocaleValidationErrorTranslator = (error: any) => string;
18
48
  type LocaleValidationErrorTranslators = {
19
49
  [key: string]: LocaleValidationErrorTranslator;
20
50
  };
51
+ /**
52
+ * A function to format the paging info of a table.
53
+ *
54
+ */
55
+ type TableComponentPagingFormatter = (info: {
56
+ /**
57
+ * The first record in the current page.
58
+ */
59
+ firstRecord: number;
60
+ /**
61
+ * The last record in the current page.
62
+ */
63
+ lastRecord: number;
64
+ /**
65
+ * The total number of records.
66
+ */
67
+ totalRecords?: number;
68
+ /**
69
+ * The current page index.
70
+ */
71
+ currentPage: number;
72
+ }) => string;
21
73
  /**
22
74
  * Locale definition
23
75
  */
@@ -35,17 +87,36 @@ interface LocaleDefinition {
35
87
  errors?: LocaleValidationErrorTranslators;
36
88
  };
37
89
  };
38
- }
39
- type LocaleDefinitionExtend = {
40
- dictionary?: LocaleDictionary;
41
- enums?: LocaleEnums;
42
- form?: {
43
- validation?: {
44
- /** Form validation error translators. */
45
- errors?: LocaleValidationErrorTranslators;
90
+ data?: {
91
+ logicalOperators?: {
92
+ [operator: string]: string;
46
93
  };
47
94
  };
48
- };
95
+ components?: {
96
+ table?: {
97
+ /**
98
+ * No records found message.
99
+ */
100
+ noRecords?: string;
101
+ /**
102
+ * Error message displayed when loading data fails.
103
+ */
104
+ loadError?: string;
105
+ /**
106
+ * A format function to format the paging info.
107
+ */
108
+ pagingInfo?: TableComponentPagingFormatter;
109
+ };
110
+ select?: {
111
+ placeholder?: string;
112
+ };
113
+ };
114
+ formatters?: {
115
+ [formatterName: string]: ObjectFormatter | string[] | {
116
+ [value: string]: string;
117
+ };
118
+ };
119
+ }
49
120
 
50
121
  declare class LocalizationService {
51
122
  private _locales;
@@ -53,7 +124,9 @@ declare class LocalizationService {
53
124
  private _changeSubject;
54
125
  readonly change: rxjs.Observable<LocaleChangeEvent>;
55
126
  constructor();
56
- /** Adds a Locale */
127
+ /**
128
+ * Adds a Locale
129
+ */
57
130
  add(locale: Locale): void;
58
131
  /** Adds an array of Locales to this LocaleProvider */
59
132
  add(locales: Locale[]): void;
@@ -65,7 +138,7 @@ declare class LocalizationService {
65
138
  static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
66
139
  }
67
140
 
68
- declare const LOCALE: InjectionToken<LocalizationService | Locale>;
141
+ declare const LOCALE: InjectionToken<Locale | LocalizationService>;
69
142
  interface TranslatedValidationError {
70
143
  /** Error key */
71
144
  key: string;
@@ -91,16 +164,18 @@ declare class Locale {
91
164
  /**
92
165
  * Translates a key in the dictionary
93
166
  * @param key The key to look up
94
- * @returns The translated string or the key itself if not found
167
+ * @param fallback Optional fallback value if the key is not found
168
+ * @returns The translated string or the fallbackValue if not found
95
169
  */
96
- translate(key: string): string;
170
+ translate(key: string, fallback?: string): string | undefined;
97
171
  /**
98
172
  * Translates an enum value
99
173
  * @param enumName The name of the enum
100
174
  * @param enumValue The value of the enum to translate
175
+ * @param fallback
101
176
  * @returns The translated string or the enum value itself if not found
102
177
  */
103
- translateEnum(enumName: string, enumValue: any): string | undefined;
178
+ translateEnum(enumName: string, enumValue: string | number | null | undefined, fallback?: string): string | undefined;
104
179
  /**
105
180
  * Translates a form validation error
106
181
  * @param errorKey The key of the error to translate
@@ -122,57 +197,121 @@ declare class Locale {
122
197
  /**
123
198
  * Clones and extends this object and returns a new Locale (without modifying this object).
124
199
  */
125
- extend(values?: LocaleDefinitionExtend): Locale;
200
+ extend(definition?: Omit<LocaleDefinition, 'name' | 'rtl'>): Locale;
126
201
  /**
127
202
  *
128
203
  * @param date Date string or timestamp
129
204
  * @returns Formatted date string based on the locale
130
205
  */
131
- formatDate(date: string | number, format: string): string;
206
+ formatDate(date: Date | string | number, format?: string): string;
132
207
  }
133
208
 
209
+ /**
210
+ * Pipe to translate a dictionary key into a localized string.
211
+ * It uses the LocalizationService to fetch the translation.
212
+ * If the translation is not found, it returns the fallback string if provided.
213
+ */
134
214
  declare class TranslatePipe implements PipeTransform {
135
- private _locale;
136
- private _recompute;
137
- private _value;
138
- constructor(localizationService: LocalizationService);
139
- transform(dictionaryKey: string, ...args: unknown[]): string;
215
+ private _ls;
216
+ constructor(_ls: LocalizationService);
217
+ transform(dictionaryKey: string, fallback?: string): string;
140
218
  static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
141
219
  static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "ng0Translate", true>;
142
220
  }
143
221
 
144
- declare class EnumPipe implements PipeTransform {
145
- private _locale;
146
- private _recompute;
147
- private _value;
148
- constructor(localeProvider: LocalizationService);
149
- transform(enumValue?: string | null, ...args: string[]): string;
150
- static ɵfac: i0.ɵɵFactoryDeclaration<EnumPipe, never>;
151
- static ɵpipe: i0.ɵɵPipeDeclaration<EnumPipe, "ng0Enum", true>;
222
+ declare class TranslateEnumPipe implements PipeTransform {
223
+ private _ls;
224
+ constructor(_ls: LocalizationService);
225
+ /**
226
+ *
227
+ * @param enumValue
228
+ * @param enumName
229
+ * @param nullValueKey
230
+ * @param returnEnumAsFallback
231
+ * @param fallbackKey
232
+ * @returns
233
+ */
234
+ transform(enumValue: string | number | null | undefined, enumName: string, fallback?: string): any;
235
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslateEnumPipe, never>;
236
+ static ɵpipe: i0.ɵɵPipeDeclaration<TranslateEnumPipe, "ng0TranslateEnum", true>;
152
237
  }
153
238
 
154
- declare class BooleanPipe implements PipeTransform {
239
+ declare class TranslateBooleanPipe implements PipeTransform {
155
240
  private localeProvider;
156
241
  constructor(localeProvider: LocalizationService);
157
- transform(value: any, falseKey: string, trueKey: 'false'): string;
158
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanPipe, never>;
159
- static ɵpipe: i0.ɵɵPipeDeclaration<BooleanPipe, "ng0Bool", true>;
242
+ transform(value: any, falseKey?: string, trueKey?: string): any;
243
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslateBooleanPipe, never>;
244
+ static ɵpipe: i0.ɵɵPipeDeclaration<TranslateBooleanPipe, "ng0TranslateBool", true>;
160
245
  }
161
246
 
162
247
  declare class DatePipe implements PipeTransform {
163
- private _locale;
164
- private _value;
165
- constructor(localeProvider: LocalizationService);
166
- transform(value: number | string): string;
248
+ private _ls;
249
+ constructor(_ls: LocalizationService);
250
+ transform(value: Date | string | number, format?: string): string | undefined;
167
251
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
168
252
  static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "ng0Date", true>;
169
253
  }
170
254
 
255
+ /**
256
+ * Format pipe to format objects using various formatter types.
257
+ */
258
+ declare class FormatPipe implements PipeTransform {
259
+ private _localizationService;
260
+ transform(obj: any, formatter: ObjectFormatterLike, ...params: any[]): any;
261
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatPipe, never>;
262
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatPipe, "ng0Format", true>;
263
+ }
264
+
265
+ declare class LocalizePipe implements PipeTransform {
266
+ private _ls;
267
+ constructor(_ls: LocalizationService);
268
+ transform(dictionaryKey: string): string | undefined;
269
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizePipe, never>;
270
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocalizePipe, "ng0Localize", true>;
271
+ }
272
+
273
+ declare class LocalizeEnumPipe implements PipeTransform {
274
+ private _ls;
275
+ private _recompute;
276
+ private _value?;
277
+ constructor(_ls: LocalizationService);
278
+ /**
279
+ *
280
+ * @param enumValue
281
+ * @param enumName
282
+ * @param nullValueKey
283
+ * @param returnEnumAsFallback
284
+ * @param fallbackKey
285
+ * @returns
286
+ */
287
+ transform(enumValue: string | number | null | undefined, enumName: string, fallback?: string): any;
288
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeEnumPipe, never>;
289
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocalizeEnumPipe, "ng0LocalizeEnum", true>;
290
+ }
291
+
292
+ declare class LocalizeBooleanPipe implements PipeTransform {
293
+ private _ls;
294
+ constructor(_ls: LocalizationService);
295
+ transform(value: any, falseKey: string | undefined, trueKey: 'false'): string | undefined;
296
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeBooleanPipe, never>;
297
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocalizeBooleanPipe, "ng0LocalizeBool", true>;
298
+ }
299
+
300
+ declare class LocalizeDatePipe implements PipeTransform {
301
+ private _ls;
302
+ private _value?;
303
+ private _recompute;
304
+ constructor(_ls: LocalizationService);
305
+ transform(value: number | string, format?: string): string | undefined;
306
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeDatePipe, never>;
307
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocalizeDatePipe, "ng0LocalizeDate", true>;
308
+ }
309
+
171
310
  declare class LocalizationModule {
172
311
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationModule, never>;
173
- static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationModule, never, [typeof i1.CommonModule, typeof TranslatePipe, typeof EnumPipe, typeof BooleanPipe, typeof DatePipe], [typeof TranslatePipe, typeof EnumPipe, typeof BooleanPipe, typeof DatePipe]>;
312
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationModule, never, [typeof TranslatePipe, typeof TranslateEnumPipe, typeof TranslateBooleanPipe, typeof DatePipe, typeof FormatPipe, typeof LocalizePipe, typeof LocalizeEnumPipe, typeof LocalizeBooleanPipe, typeof LocalizeDatePipe], [typeof TranslatePipe, typeof TranslateEnumPipe, typeof TranslateBooleanPipe, typeof DatePipe, typeof FormatPipe, typeof LocalizePipe, typeof LocalizeEnumPipe, typeof LocalizeBooleanPipe, typeof LocalizeDatePipe]>;
174
313
  static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationModule>;
175
314
  }
176
315
 
177
- export { BooleanPipe, DatePipe, EnumPipe, LOCALE, Locale, LocalizationModule, LocalizationService, TranslatePipe };
178
- export type { LocaleChangeEvent, TranslatedValidationError };
316
+ export { DatePipe, FormatPipe, LOCALE, Locale, LocalizationModule, LocalizationService, LocalizeBooleanPipe, LocalizeDatePipe, LocalizeEnumPipe, LocalizePipe, TranslateBooleanPipe, TranslateEnumPipe, TranslatePipe, createObjectFormatter, defaultFormatter, objectFormatterAttribute };
317
+ export type { LocaleChangeEvent, LocaleDefinition, LocaleDictionary, LocaleEnums, LocaleValidationErrorTranslator, LocaleValidationErrorTranslators, ObjectFormatter, ObjectFormatterLike, TableComponentPagingFormatter, TranslatedValidationError };
@@ -0,0 +1,7 @@
1
+ import { Locale } from '@bootkit/ng0/localization';
2
+
3
+ declare const EN_US_LOCALE: Locale;
4
+
5
+ declare const FA_IR_LOCALE: Locale;
6
+
7
+ export { EN_US_LOCALE, FA_IR_LOCALE };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootkit/ng0",
3
- "version": "0.0.0-alpha.3",
3
+ "version": "0.0.0-alpha.30",
4
4
  "description": "Angular+Bootstrap Component Library",
5
5
  "homepage": "https://bootkitlib.github.io/",
6
6
  "author": "BootKit",
@@ -17,9 +17,9 @@
17
17
  "component library"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@angular/common": ">=18.0.0",
21
- "@angular/core": ">=18.0.0",
22
- "@angular/cdk": ">=18.0.0"
20
+ "@angular/common": ">=20.2.0",
21
+ "@angular/core": ">=20.2.0",
22
+ "@angular/cdk": ">=20.2.0"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"
@@ -39,38 +39,86 @@
39
39
  "types": "./common/index.d.ts",
40
40
  "default": "./fesm2022/bootkit-ng0-common.mjs"
41
41
  },
42
- "./http": {
43
- "types": "./http/index.d.ts",
44
- "default": "./fesm2022/bootkit-ng0-http.mjs"
45
- },
46
42
  "./data": {
47
43
  "types": "./data/index.d.ts",
48
44
  "default": "./fesm2022/bootkit-ng0-data.mjs"
49
45
  },
46
+ "./date": {
47
+ "types": "./date/index.d.ts",
48
+ "default": "./fesm2022/bootkit-ng0-date.mjs"
49
+ },
50
+ "./file": {
51
+ "types": "./file/index.d.ts",
52
+ "default": "./fesm2022/bootkit-ng0-file.mjs"
53
+ },
54
+ "./form": {
55
+ "types": "./form/index.d.ts",
56
+ "default": "./fesm2022/bootkit-ng0-form.mjs"
57
+ },
58
+ "./http": {
59
+ "types": "./http/index.d.ts",
60
+ "default": "./fesm2022/bootkit-ng0-http.mjs"
61
+ },
50
62
  "./localization": {
51
63
  "types": "./localization/index.d.ts",
52
64
  "default": "./fesm2022/bootkit-ng0-localization.mjs"
53
65
  },
66
+ "./routing": {
67
+ "types": "./routing/index.d.ts",
68
+ "default": "./fesm2022/bootkit-ng0-routing.mjs"
69
+ },
70
+ "./script": {
71
+ "types": "./script/index.d.ts",
72
+ "default": "./fesm2022/bootkit-ng0-script.mjs"
73
+ },
54
74
  "./security": {
55
75
  "types": "./security/index.d.ts",
56
76
  "default": "./fesm2022/bootkit-ng0-security.mjs"
57
77
  },
58
- "./components/collapse": {
59
- "types": "./components/collapse/index.d.ts",
60
- "default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
61
- },
62
78
  "./components/accordion": {
63
79
  "types": "./components/accordion/index.d.ts",
64
80
  "default": "./fesm2022/bootkit-ng0-components-accordion.mjs"
65
81
  },
66
- "./components/modal": {
67
- "types": "./components/modal/index.d.ts",
68
- "default": "./fesm2022/bootkit-ng0-components-modal.mjs"
82
+ "./components/button": {
83
+ "types": "./components/button/index.d.ts",
84
+ "default": "./fesm2022/bootkit-ng0-components-button.mjs"
85
+ },
86
+ "./components/backdrop": {
87
+ "types": "./components/backdrop/index.d.ts",
88
+ "default": "./fesm2022/bootkit-ng0-components-backdrop.mjs"
89
+ },
90
+ "./components/card": {
91
+ "types": "./components/card/index.d.ts",
92
+ "default": "./fesm2022/bootkit-ng0-components-card.mjs"
93
+ },
94
+ "./components/code": {
95
+ "types": "./components/code/index.d.ts",
96
+ "default": "./fesm2022/bootkit-ng0-components-code.mjs"
97
+ },
98
+ "./components/collapse": {
99
+ "types": "./components/collapse/index.d.ts",
100
+ "default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
101
+ },
102
+ "./components/confirmation": {
103
+ "types": "./components/confirmation/index.d.ts",
104
+ "default": "./fesm2022/bootkit-ng0-components-confirmation.mjs"
69
105
  },
70
106
  "./components/form-field": {
71
107
  "types": "./components/form-field/index.d.ts",
72
108
  "default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
73
109
  },
110
+ "./components/dropdown": {
111
+ "types": "./components/dropdown/index.d.ts",
112
+ "default": "./fesm2022/bootkit-ng0-components-dropdown.mjs"
113
+ },
114
+ "./components/list": {
115
+ "types": "./components/list/index.d.ts",
116
+ "default": "./fesm2022/bootkit-ng0-components-list.mjs"
117
+ },
118
+ "./components/modal": {
119
+ "types": "./components/modal/index.d.ts",
120
+ "default": "./fesm2022/bootkit-ng0-components-modal.mjs"
121
+ },
74
122
  "./components/nav": {
75
123
  "types": "./components/nav/index.d.ts",
76
124
  "default": "./fesm2022/bootkit-ng0-components-nav.mjs"
@@ -91,6 +139,22 @@
91
139
  "types": "./components/popover/index.d.ts",
92
140
  "default": "./fesm2022/bootkit-ng0-components-popover.mjs"
93
141
  },
142
+ "./components/select": {
143
+ "types": "./components/select/index.d.ts",
144
+ "default": "./fesm2022/bootkit-ng0-components-select.mjs"
145
+ },
146
+ "./components/sidenav": {
147
+ "types": "./components/sidenav/index.d.ts",
148
+ "default": "./fesm2022/bootkit-ng0-components-sidenav.mjs"
149
+ },
150
+ "./components/stepper": {
151
+ "types": "./components/stepper/index.d.ts",
152
+ "default": "./fesm2022/bootkit-ng0-components-stepper.mjs"
153
+ },
154
+ "./components/table": {
155
+ "types": "./components/table/index.d.ts",
156
+ "default": "./fesm2022/bootkit-ng0-components-table.mjs"
157
+ },
94
158
  "./components/toast": {
95
159
  "types": "./components/toast/index.d.ts",
96
160
  "default": "./fesm2022/bootkit-ng0-components-toast.mjs"
@@ -98,6 +162,22 @@
98
162
  "./components/tooltip": {
99
163
  "types": "./components/tooltip/index.d.ts",
100
164
  "default": "./fesm2022/bootkit-ng0-components-tooltip.mjs"
165
+ },
166
+ "./components/vertical-menu": {
167
+ "types": "./components/vertical-menu/index.d.ts",
168
+ "default": "./fesm2022/bootkit-ng0-components-vertical-menu.mjs"
169
+ },
170
+ "./layouts/layout1": {
171
+ "types": "./layouts/layout1/index.d.ts",
172
+ "default": "./fesm2022/bootkit-ng0-layouts-layout1.mjs"
173
+ },
174
+ "./localization/locales": {
175
+ "types": "./localization/locales/index.d.ts",
176
+ "default": "./fesm2022/bootkit-ng0-localization-locales.mjs"
177
+ },
178
+ "./platform/browser": {
179
+ "types": "./platform/browser/index.d.ts",
180
+ "default": "./fesm2022/bootkit-ng0-platform-browser.mjs"
101
181
  }
102
182
  }
103
183
  }
@@ -0,0 +1,22 @@
1
+ import * as rxjs from 'rxjs';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class ClipboardService {
5
+ private _writeSubject;
6
+ readonly write: rxjs.Observable<any>;
7
+ constructor();
8
+ writeText(text: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
11
+ }
12
+
13
+ declare class ClipboardCopyDirective {
14
+ private clipboardService;
15
+ value: i0.InputSignal<string | undefined>;
16
+ constructor(clipboardService: ClipboardService);
17
+ private _onHostClick;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardCopyDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClipboardCopyDirective, "[ng0-clipboard-copy]", never, { "value": { "alias": "ng0-clipboard-copy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
+ }
21
+
22
+ export { ClipboardCopyDirective, ClipboardService };
@@ -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,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { RendererFactory2 } from '@angular/core';
3
+
4
+ interface ScriptDefinitionObject {
5
+ /** Script URL */
6
+ src: string;
7
+ attrs?: {
8
+ [key: string]: string;
9
+ };
10
+ }
11
+ type ScriptDefinition = string | ScriptDefinitionObject;
12
+
13
+ declare class ScriptLoader {
14
+ private _document;
15
+ private _renderer;
16
+ private _loadedScripts;
17
+ constructor(_rendererFactory: RendererFactory2, _document: Document);
18
+ loadAll(...scripts: ScriptDefinition[]): Promise<{
19
+ script: ScriptDefinition;
20
+ element: any;
21
+ }[]>;
22
+ load(script: ScriptDefinition): Promise<any>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScriptLoader, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScriptLoader>;
25
+ }
26
+
27
+ export { ScriptLoader };