@agnos-ui/angular-bootstrap 0.8.1 → 0.9.0

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 (46) hide show
  1. package/fesm2022/agnos-ui-angular-bootstrap.mjs +164 -110
  2. package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
  3. package/index.d.ts +6450 -40
  4. package/package.json +5 -5
  5. package/agnos-ui-angular.module.d.ts +0 -20
  6. package/components/accordion/accordion.component.d.ts +0 -257
  7. package/components/accordion/accordion.gen.d.ts +0 -442
  8. package/components/accordion/index.d.ts +0 -2
  9. package/components/alert/alert.component.d.ts +0 -140
  10. package/components/alert/alert.gen.d.ts +0 -191
  11. package/components/alert/index.d.ts +0 -2
  12. package/components/carousel/carousel.component.d.ts +0 -207
  13. package/components/carousel/carousel.gen.d.ts +0 -358
  14. package/components/carousel/index.d.ts +0 -2
  15. package/components/collapse/collapse.component.d.ts +0 -83
  16. package/components/collapse/collapse.gen.d.ts +0 -150
  17. package/components/collapse/index.d.ts +0 -2
  18. package/components/modal/index.d.ts +0 -3
  19. package/components/modal/modal.component.d.ts +0 -220
  20. package/components/modal/modal.gen.d.ts +0 -355
  21. package/components/modal/modal.service.d.ts +0 -21
  22. package/components/pagination/index.d.ts +0 -2
  23. package/components/pagination/pagination.component.d.ts +0 -379
  24. package/components/pagination/pagination.gen.d.ts +0 -584
  25. package/components/progressbar/index.d.ts +0 -2
  26. package/components/progressbar/progressbar.component.d.ts +0 -118
  27. package/components/progressbar/progressbar.gen.d.ts +0 -196
  28. package/components/rating/index.d.ts +0 -2
  29. package/components/rating/rating.component.d.ts +0 -144
  30. package/components/rating/rating.gen.d.ts +0 -270
  31. package/components/select/index.d.ts +0 -2
  32. package/components/select/select.component.d.ts +0 -198
  33. package/components/select/select.gen.d.ts +0 -433
  34. package/components/slider/index.d.ts +0 -2
  35. package/components/slider/slider.component.d.ts +0 -234
  36. package/components/slider/slider.gen.d.ts +0 -511
  37. package/components/toast/index.d.ts +0 -4
  38. package/components/toast/toast.component.d.ts +0 -155
  39. package/components/toast/toast.gen.d.ts +0 -308
  40. package/components/toast/toaster.component.d.ts +0 -17
  41. package/components/toast/toaster.service.d.ts +0 -7
  42. package/components/tree/index.d.ts +0 -2
  43. package/components/tree/tree.component.d.ts +0 -145
  44. package/components/tree/tree.gen.d.ts +0 -216
  45. package/config.d.ts +0 -27
  46. package/config.gen.d.ts +0 -62
package/config.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import type { AngularWidget, IsSlotContent, Partial2Levels, SlotContent, Widget, WidgetFactory, WidgetProps, WidgetsConfigStore } from '@agnos-ui/angular-headless';
2
- import type { BootstrapWidgetsConfig } from '@agnos-ui/core-bootstrap/config';
3
- import type { ReadableSignal } from '@amadeus-it-group/tansu';
4
- import type { FactoryProvider, TemplateRef } from '@angular/core';
5
- import { InjectionToken } from '@angular/core';
6
- import type { WidgetsConfig } from './config.gen';
7
- export type { WidgetsConfig };
8
- type AdaptParentConfig = (config: Partial2Levels<WidgetsConfig>) => Partial2Levels<WidgetsConfig>;
9
- type InjectWidgetsConfig = (config?: Partial2Levels<WidgetsConfig>) => WidgetsConfigStore<WidgetsConfig>;
10
- /**
11
- * Destructures and exports several functions and constants from the `widgetFactories` object.
12
- *
13
- * @constant {InjectionToken} widgetsConfigInjectionToken - Token used for injecting widget configuration.
14
- * @function provideWidgetsConfig - Provides the widget configuration.
15
- * @function injectWidgetConfig - Injects a single widget configuration.
16
- * @function injectWidgetsConfig - Injects multiple widget configurations.
17
- * @function callWidgetFactory - Calls the widget factory function.
18
- */
19
- export declare const widgetsConfigInjectionToken: InjectionToken<WidgetsConfigStore<WidgetsConfig>>, provideWidgetsConfig: (adaptParentConfig?: AdaptParentConfig) => FactoryProvider, injectWidgetConfig: <N extends keyof BootstrapWidgetsConfig>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig[N]> | undefined>, injectWidgetsConfig: InjectWidgetsConfig, callWidgetFactory: <W extends Widget<object, object, object, object>>({ factory, widgetName, defaultConfig, events, afterInit, slotTemplates, slotChildren, }: {
20
- factory: WidgetFactory<W>;
21
- widgetName?: keyof BootstrapWidgetsConfig | null | undefined;
22
- defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined> | undefined;
23
- events?: Partial<Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}`>>;
24
- afterInit?: (widget: AngularWidget<W>) => void;
25
- slotTemplates?: () => { [K in keyof WidgetProps<W> as IsSlotContent<WidgetProps<W>[K]> extends 0 ? never : K]: WidgetProps<W>[K] extends SlotContent<infer U> ? TemplateRef<U> | undefined : never; };
26
- slotChildren?: () => TemplateRef<void> | undefined;
27
- }) => AngularWidget<W>;
package/config.gen.d.ts DELETED
@@ -1,62 +0,0 @@
1
- import type { AccordionProps } from './components/accordion';
2
- import type { AlertProps } from './components/alert';
3
- import type { CarouselProps } from './components/carousel';
4
- import type { CollapseProps } from './components/collapse';
5
- import type { ModalProps } from './components/modal';
6
- import type { PaginationProps } from './components/pagination';
7
- import type { ProgressbarProps } from './components/progressbar';
8
- import type { RatingProps } from './components/rating';
9
- import type { SelectProps } from './components/select';
10
- import type { SliderProps } from './components/slider';
11
- import type { ToastProps } from './components/toast';
12
- import type { TreeProps } from './components/tree';
13
- export type WidgetsConfig = {
14
- /**
15
- * the accordion widget config
16
- */
17
- accordion: AccordionProps;
18
- /**
19
- * the alert widget config
20
- */
21
- alert: AlertProps;
22
- /**
23
- * the carousel widget config
24
- */
25
- carousel: CarouselProps<any>;
26
- /**
27
- * the collapse widget config
28
- */
29
- collapse: CollapseProps;
30
- /**
31
- * the modal widget config
32
- */
33
- modal: ModalProps<any>;
34
- /**
35
- * the pagination widget config
36
- */
37
- pagination: PaginationProps;
38
- /**
39
- * the progressbar widget config
40
- */
41
- progressbar: ProgressbarProps;
42
- /**
43
- * the rating widget config
44
- */
45
- rating: RatingProps;
46
- /**
47
- * the select widget config
48
- */
49
- select: SelectProps<any>;
50
- /**
51
- * the slider widget config
52
- */
53
- slider: SliderProps;
54
- /**
55
- * the toast widget config
56
- */
57
- toast: ToastProps;
58
- /**
59
- * the tree widget config
60
- */
61
- tree: TreeProps;
62
- };