You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@agnos-ui/angular-headless

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agnos-ui/angular-headless - npm Package Compare versions

Comparing version

to
0.4.0

4

config.d.ts

@@ -28,3 +28,3 @@ import type { Widget, WidgetFactory, WidgetProps } from '@agnos-ui/core/types';

injectWidgetConfig: <N extends keyof Config>(widgetName: N) => ReadableSignal<Partial<Config[N]> | undefined>;
callWidgetFactory: <W extends Widget<object, object, object, object, object>>({ factory, widgetName, defaultConfig, events, afterInit, }: {
callWidgetFactory: <W extends Widget>({ factory, widgetName, defaultConfig, events, afterInit, }: {
factory: WidgetFactory<W>;

@@ -37,3 +37,3 @@ widgetName?: null | keyof Config;

};
export declare const widgetsConfigInjectionToken: InjectionToken<WidgetsConfigStore<WidgetsConfig>>, provideWidgetsConfig: (adaptParentConfig?: AdaptParentConfig<WidgetsConfig> | undefined) => FactoryProvider, injectWidgetConfig: <N extends keyof WidgetsConfig>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig[N]> | undefined>, injectWidgetsConfig: InjectWidgetsConfig<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 WidgetsConfig>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig[N]> | undefined>, injectWidgetsConfig: InjectWidgetsConfig<WidgetsConfig>, callWidgetFactory: <W extends Widget>({ factory, widgetName, defaultConfig, events, afterInit, }: {
factory: WidgetFactory<W>;

@@ -40,0 +40,0 @@ widgetName?: keyof WidgetsConfig | null | undefined;

@@ -24,3 +24,2 @@ export * from './services/siblingsInert';

export * from './slot.directive';
export * from './content-as-slot.directive';
export * from './components/toast/index';

@@ -27,0 +26,0 @@ export * from './components/slider/index';

{
"name": "@agnos-ui/angular-headless",
"description": "Headless widget library for Angular.",
"version": "0.4.0-next.1",
"version": "0.4.0",
"type": "module",

@@ -16,7 +16,7 @@ "exports": {

"@amadeus-it-group/tansu": "^1.0.0",
"@angular/common": "^18.0.5",
"@angular/core": "^18.0.5"
"@angular/common": "^18.1.1",
"@angular/core": "^18.1.1"
},
"dependencies": {
"@agnos-ui/core": "0.4.0-next.1",
"@agnos-ui/core": "0.4.0",
"tslib": "^2.6.3"

@@ -23,0 +23,0 @@ },

@@ -1,3 +0,5 @@

import type { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import type { OnChanges, OnDestroy, SimpleChanges, OnInit } from '@angular/core';
import { TemplateRef } from '@angular/core';
import type { SlotContent } from './types';
import type { WritableSignal } from '@amadeus-it-group/tansu';
import * as i0 from "@angular/core";

@@ -17,1 +19,15 @@ export declare class SlotDirective<Props extends Record<string, any>> implements OnChanges, OnDestroy {

}
/**
* Directive that allows to pass the templateRef associated to a ng-content to a store.
* The input of the directive is a {@link WritableSignal}<{children: {@link SlotContent}<T>}>.
*/
export declare class ContentAsSlotDirective<T extends object> implements OnInit {
auContentAsSlot: WritableSignal<{
children?: SlotContent<T>;
}>;
templateRef: TemplateRef<any>;
/** @inheritdoc */
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ContentAsSlotDirective<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ContentAsSlotDirective<any>, "[auContentAsSlot]", never, { "auContentAsSlot": { "alias": "auContentAsSlot"; "required": true; }; }, {}, never, never, true, never>;
}

@@ -16,3 +16,3 @@ import { type ReadableSignal } from '@amadeus-it-group/tansu';

*/
export declare const callWidgetFactoryWithConfig: <W extends Widget<object, object, object, object, object>>({ factory, defaultConfig, widgetConfig, events, afterInit, }: {
export declare const callWidgetFactoryWithConfig: <W extends Widget>({ factory, defaultConfig, widgetConfig, events, afterInit, }: {
factory: WidgetFactory<W>;

@@ -19,0 +19,0 @@ defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined>;

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