@agnos-ui/angular-headless
Advanced tools
Comparing version
@@ -12,2 +12,3 @@ import type { Widget, WidgetFactory, WidgetProps } from '@agnos-ui/core/types'; | ||
type AdaptParentConfig<Config> = (config: Partial2Levels<Config>) => Partial2Levels<Config>; | ||
type InjectWidgetsConfig<Config> = (config?: Partial2Levels<Config>) => WidgetsConfigStore<Config>; | ||
/** | ||
@@ -29,3 +30,3 @@ * A factory to create the utilities to allow widgets to be context-aware. | ||
provideWidgetsConfig: (adaptParentConfig?: AdaptParentConfig<Config> | undefined) => FactoryProvider; | ||
injectWidgetsConfig: (defaultConfig?: Partial<{ [Level1 in keyof Config]: Partial<Config[Level1]>; }> | undefined) => WidgetsConfigStore<Config>; | ||
injectWidgetsConfig: InjectWidgetsConfig<Config>; | ||
injectWidgetConfig: <N extends keyof Config>(widgetName: N) => ReadableSignal<Partial<Config[N]> | undefined>; | ||
@@ -40,12 +41,3 @@ callWidgetFactory: <W extends Widget<object, object, object, object, object>>({ factory, widgetName, defaultConfig, events, afterInit, }: { | ||
}; | ||
export declare const widgetsConfigInjectionToken: InjectionToken<WidgetsConfigStore<WidgetsConfig>>, provideWidgetsConfig: (adaptParentConfig?: AdaptParentConfig<WidgetsConfig> | undefined) => FactoryProvider, injectWidgetConfig: <N extends keyof CoreWidgetsConfig>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig[N]> | undefined>, injectWidgetsConfig: (defaultConfig?: Partial<{ | ||
pagination: Partial<AdaptPropsSlots<import("core/dist/components/pagination/pagination").PaginationProps>>; | ||
rating: Partial<AdaptPropsSlots<import("core/dist/components/rating/rating").RatingProps>>; | ||
select: Partial<AdaptPropsSlots<import("core/dist/components/select/select").SelectProps<any>>>; | ||
modal: Partial<AdaptPropsSlots<import("core/dist/components/modal/modal").ModalProps<any>>>; | ||
alert: Partial<AdaptPropsSlots<import("core/dist/components/alert/alert").AlertProps>>; | ||
accordion: Partial<AdaptPropsSlots<import("core/dist/components/accordion/accordion").AccordionProps>>; | ||
progressbar: Partial<AdaptPropsSlots<import("core/dist/components/progressbar/progressbar").ProgressbarProps>>; | ||
slider: Partial<AdaptPropsSlots<import("@agnos-ui/angular-headless").SliderProps>>; | ||
}> | undefined) => WidgetsConfigStore<WidgetsConfig>, callWidgetFactory: <W extends Widget<object, object, object, object, object>>({ factory, widgetName, defaultConfig, events, afterInit, }: { | ||
export declare const widgetsConfigInjectionToken: InjectionToken<WidgetsConfigStore<WidgetsConfig>>, provideWidgetsConfig: (adaptParentConfig?: AdaptParentConfig<WidgetsConfig> | undefined) => FactoryProvider, injectWidgetConfig: <N extends keyof CoreWidgetsConfig>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig[N]> | undefined>, injectWidgetsConfig: InjectWidgetsConfig<WidgetsConfig>, callWidgetFactory: <W extends Widget<object, object, object, object, object>>({ factory, widgetName, defaultConfig, events, afterInit, }: { | ||
factory: WidgetFactory<W>; | ||
@@ -52,0 +44,0 @@ widgetName?: keyof CoreWidgetsConfig | null | undefined; |
@@ -8,2 +8,7 @@ export * from './services/siblingsInert'; | ||
export * from './services/extendWidget'; | ||
export * from './utils/writables'; | ||
export * from './utils/stores'; | ||
export * from './utils/directive'; | ||
export * from './types'; | ||
export * from './config'; | ||
export * from './services/transitions/simpleClassTransition'; | ||
@@ -14,7 +19,2 @@ export * from './services/transitions/cssTransitions'; | ||
export * from './services/transitions/baseTransitions'; | ||
export * from './utils/writables'; | ||
export * from './utils/stores'; | ||
export * from './utils/directive'; | ||
export * from './types'; | ||
export * from './config'; | ||
export * from './utils/zone'; | ||
@@ -21,0 +21,0 @@ export * from './utils/widget'; |
@@ -18,3 +18,3 @@ { | ||
"dependencies": { | ||
"@agnos-ui/core": "0.1.0", | ||
"@agnos-ui/core": "0.1.1", | ||
"@amadeus-it-group/tansu": "1.0.0", | ||
@@ -24,3 +24,3 @@ "tslib": "^2.6.2" | ||
"sideEffects": false, | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://amadeusitgroup.github.io/AgnosUI/latest/", | ||
@@ -27,0 +27,0 @@ "bugs": "https://github.com/AmadeusITGroup/AgnosUI/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
222587
-0.24%1840
-0.43%+ Added
- Removed
Updated