@wirekyt/angular 0.0.22 → 0.0.24
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.
- package/dist/fesm2022/wirekyt-angular-highlight.mjs +79 -0
- package/dist/fesm2022/wirekyt-angular-highlight.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-tabs.mjs +390 -0
- package/dist/fesm2022/wirekyt-angular-tabs.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-toast.mjs +439 -0
- package/dist/fesm2022/wirekyt-angular-toast.mjs.map +1 -0
- package/dist/package.json +13 -1
- package/dist/types/wirekyt-angular-checkbox.d.ts +1 -1
- package/dist/types/wirekyt-angular-color-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-combobox.d.ts +1 -1
- package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-highlight.d.ts +33 -0
- package/dist/types/wirekyt-angular-highlight.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-tabs.d.ts +123 -0
- package/dist/types/wirekyt-angular-tabs.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-toast.d.ts +128 -0
- package/dist/types/wirekyt-angular-toast.d.ts.map +1 -0
- package/package.json +14 -2
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as tabs from '@wirekyt/dom/machines/tabs';
|
|
2
|
+
import { ElementIds, IntlTranslations, FocusChangeDetails, ValueChangeDetails, NavigateDetails } from '@wirekyt/dom/machines/tabs';
|
|
3
|
+
export { Api as TabsApi, ContentProps as TabsContentProps, ElementIds as TabsElementIds, FocusChangeDetails as TabsFocusChangeDetails, IntlTranslations as TabsIntlTranslations, Machine as TabsMachine, Props as TabsMachineProps, NavigateDetails as TabsNavigateDetails, Service as TabsService, TriggerProps as TabsTriggerProps, TriggerState as TabsTriggerState, ValueChangeDetails as TabsValueChangeDetails, anatomy as tabsAnatomy } from '@wirekyt/dom/machines/tabs';
|
|
4
|
+
import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
7
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
8
|
+
|
|
9
|
+
type OptionalId<T extends {
|
|
10
|
+
id: string;
|
|
11
|
+
}> = Omit<T, "id"> & {
|
|
12
|
+
id?: string;
|
|
13
|
+
};
|
|
14
|
+
interface UseTabsProps extends OptionalId<Omit<tabs.Props, "dir" | "getRootNode">> {
|
|
15
|
+
}
|
|
16
|
+
type UseTabsReturn = UseMachineReturn<tabs.Service["state"], tabs.Api, tabs.Service>;
|
|
17
|
+
interface UseTabsOptions {
|
|
18
|
+
context: () => UseTabsProps;
|
|
19
|
+
}
|
|
20
|
+
declare function useTabs(options: UseTabsOptions): UseTabsReturn;
|
|
21
|
+
|
|
22
|
+
declare const TABS_CONTEXT: InjectionToken<UseTabsReturn>;
|
|
23
|
+
declare function injectTabsContext(): UseTabsReturn;
|
|
24
|
+
declare const TABS_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseTabsReturn>>;
|
|
25
|
+
declare function injectTabsContextCarrier(): ContextCarrier<UseTabsReturn>;
|
|
26
|
+
interface TabsRenderStrategyContext {
|
|
27
|
+
readonly lazyMount: Signal<boolean>;
|
|
28
|
+
readonly unmountOnExit: Signal<boolean>;
|
|
29
|
+
}
|
|
30
|
+
declare const TABS_RENDER_STRATEGY_CONTEXT: InjectionToken<TabsRenderStrategyContext>;
|
|
31
|
+
declare function injectTabsRenderStrategyContext(): TabsRenderStrategyContext;
|
|
32
|
+
|
|
33
|
+
declare class TabsRoot implements UseTabsReturn {
|
|
34
|
+
readonly id: InputSignal<string | undefined>;
|
|
35
|
+
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
36
|
+
readonly value: ModelSignal<string | null | undefined>;
|
|
37
|
+
readonly defaultValue: InputSignal<string | null | undefined>;
|
|
38
|
+
readonly orientation: InputSignal<tabs.Props["orientation"]>;
|
|
39
|
+
readonly activationMode: InputSignal<tabs.Props["activationMode"]>;
|
|
40
|
+
readonly loopFocus: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
41
|
+
readonly composite: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
42
|
+
readonly deselectable: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
43
|
+
readonly lazyMount: InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
readonly unmountOnExit: InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
readonly navigate: InputSignal<tabs.Props["navigate"]>;
|
|
46
|
+
readonly translations: InputSignal<IntlTranslations | undefined>;
|
|
47
|
+
readonly focusChange: OutputEmitterRef<FocusChangeDetails>;
|
|
48
|
+
readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
|
|
49
|
+
readonly navigateChange: OutputEmitterRef<NavigateDetails>;
|
|
50
|
+
private readonly machine;
|
|
51
|
+
readonly state: Signal<tabs.Service["state"]>;
|
|
52
|
+
readonly api: Signal<tabs.Api>;
|
|
53
|
+
readonly service: tabs.Service;
|
|
54
|
+
readonly send: tabs.Service["send"];
|
|
55
|
+
protected readonly contextCarrier: ContextCarrier<TabsRoot>;
|
|
56
|
+
constructor();
|
|
57
|
+
getContextCarrier(): ContextCarrier<TabsRoot>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsRoot, never>;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsRoot, "[tabs-root]", ["tabsRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; "loopFocus": { "alias": "loopFocus"; "required": false; "isSignal": true; }; "composite": { "alias": "composite"; "required": false; "isSignal": true; }; "deselectable": { "alias": "deselectable"; "required": false; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "focusChange": "focusChange"; "valueDetailsChange": "valueDetailsChange"; "navigateChange": "navigateChange"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class TabsRootProvider implements UseTabsReturn {
|
|
63
|
+
readonly value: InputSignal<UseTabsReturn>;
|
|
64
|
+
readonly lazyMount: InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
readonly unmountOnExit: InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
readonly state: Signal<tabs.Service["state"]>;
|
|
67
|
+
readonly api: Signal<tabs.Api>;
|
|
68
|
+
readonly send: tabs.Service["send"];
|
|
69
|
+
get service(): tabs.Service;
|
|
70
|
+
protected readonly contextCarrier: ContextCarrier<TabsRootProvider>;
|
|
71
|
+
constructor();
|
|
72
|
+
getContextCarrier(): ContextCarrier<TabsRootProvider>;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsRootProvider, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsRootProvider, "[tabs-root-provider]", ["tabsRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class TabsList {
|
|
78
|
+
constructor();
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsList, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsList, "[tabs-list]", ["tabsList"], {}, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class TabsTrigger {
|
|
84
|
+
readonly value: InputSignal<string>;
|
|
85
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
constructor();
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsTrigger, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsTrigger, "[tabs-trigger]", ["tabsTrigger"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class TabsContent {
|
|
92
|
+
readonly value: InputSignal<string>;
|
|
93
|
+
private readonly context;
|
|
94
|
+
private readonly renderStrategy;
|
|
95
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
96
|
+
constructor();
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsContent, never>;
|
|
98
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsContent, "[tabs-content]", ["tabsContent"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class TabsIndicator {
|
|
102
|
+
constructor();
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsIndicator, never>;
|
|
104
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsIndicator, "[tabs-indicator]", ["tabsIndicator"], {}, {}, never, never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface TabsContextTemplate {
|
|
108
|
+
$implicit: UseTabsReturn["api"];
|
|
109
|
+
api: UseTabsReturn["api"];
|
|
110
|
+
}
|
|
111
|
+
declare class TabsContext {
|
|
112
|
+
static ngTemplateContextGuard(_directive: TabsContext, context: unknown): context is TabsContextTemplate;
|
|
113
|
+
private readonly tabs;
|
|
114
|
+
private readonly templateRef;
|
|
115
|
+
private readonly viewContainer;
|
|
116
|
+
constructor();
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsContext, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsContext, "[tabs-context]", ["tabsContext"], {}, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { TABS_CONTEXT, TABS_CONTEXT_CARRIER, TABS_RENDER_STRATEGY_CONTEXT, TabsContent, TabsContext, TabsIndicator, TabsList, TabsRoot, TabsRootProvider, TabsTrigger, injectTabsContext, injectTabsContextCarrier, injectTabsRenderStrategyContext, useTabs };
|
|
122
|
+
export type { TabsContextTemplate, TabsRenderStrategyContext, UseTabsOptions, UseTabsProps, UseTabsReturn };
|
|
123
|
+
//# sourceMappingURL=wirekyt-angular-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-tabs.d.ts","sources":["../../src/components/tabs/use.ts","../../src/components/tabs/use-context.ts","../../src/components/tabs/root.ts","../../src/components/tabs/root-provider.ts","../../src/components/tabs/list.ts","../../src/components/tabs/trigger.ts","../../src/components/tabs/content.ts","../../src/components/tabs/indicator.ts","../../src/components/tabs/context.ts"],"mappings":";;;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,YAAa,SAAQ,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;AAA4B;AAEtF,KAAM,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO;UAEzE,cAAc;mBACd,YAAY;AAC5B;AAKD,iBAAgB,OAAO,UAAU,cAAc,GAAG,aAAa;;AClB/D,cAAa,YAAY,EAAA,cAAA,CAAA,aAAA;AAEzB,iBAAgB,iBAAiB,IAAI,aAAa;AAIlD,cAAa,o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C,gBAAgB;;AAkBlE,yBAAqB,cAAc,CAAC,gBAAgB;yCAlCzC,gBAAgB;2CAAhB,gBAAgB;AAqC5B;;AC3ED,cAKa,QAAQ;;yCAAR,QAAQ;2CAAR,QAAQ;AAUpB;;ACLD,cAKa,WAAW;AACtB,oBAAgB,WAAW;uBACR,wBAAwB;;yCAFhC,WAAW;2CAAX,WAAW;AAmBvB;;ACnBD,cAYa,WAAW;AACtB,oBAAgB,WAAW;AAC3B;AACA;uBACiB,yBAAA,CAAA,iBAAA;;yCAJN,WAAW;2CAAX,WAAW;AAiDvB;;AC5ED,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;UCPgB,mBAAmB;AAClC,eAAW,aAAa;AACxB,SAAK,aAAa;AACnB;AAED,cAKa,WAAW;AACtB,8CACc,WAAW,gCAEX,mBAAmB;AAKjC;AACA;AACA;;yCAXW,WAAW;2CAAX,WAAW;AA0BvB;;;;","names":["TabsElementIds","TabsIntlTranslations","TabsFocusChangeDetails","TabsValueChangeDetails","TabsNavigateDetails"]}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as toast from '@wirekyt/dom/machines/toast';
|
|
2
|
+
export { ActionOptions as ToastActionOptions, Api as ToastApi, GroupApi as ToastGroupApi, GroupMachine as ToastGroupMachine, GroupProps as ToastGroupMachineProps, GroupService as ToastGroupService, Machine as ToastMachine, Props as ToastMachineProps, Options as ToastOptions, Placement as ToastPlacement, PromiseOptions as ToastPromiseOptions, Service as ToastService, Status as ToastStatus, StatusChangeDetails as ToastStatusChangeDetails, Store as ToastStore, StoreProps as ToastStoreProps, Type as ToastType, anatomy as toastAnatomy } from '@wirekyt/dom/machines/toast';
|
|
3
|
+
import { ContextCarrier, UseMachineReturn } from '@wirekyt/angular';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { OnInit, InputSignal, Signal, InjectionToken, TemplateRef } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
type CreateToasterProps = toast.StoreProps;
|
|
8
|
+
type CreateToasterReturn = toast.Store;
|
|
9
|
+
declare function createToaster(props?: CreateToasterProps): CreateToasterReturn;
|
|
10
|
+
|
|
11
|
+
declare class ToastRoot implements OnInit {
|
|
12
|
+
readonly value: InputSignal<toast.Props | undefined>;
|
|
13
|
+
readonly parent: InputSignal<toast.GroupService | undefined>;
|
|
14
|
+
readonly index: InputSignal<number>;
|
|
15
|
+
private readonly injector;
|
|
16
|
+
private readonly destroyRef;
|
|
17
|
+
private readonly renderer;
|
|
18
|
+
private readonly elementRef;
|
|
19
|
+
private readonly isBrowser;
|
|
20
|
+
private readonly machine;
|
|
21
|
+
private machineStartQueued;
|
|
22
|
+
private destroyed;
|
|
23
|
+
readonly state: Signal<toast.Service["state"] | undefined>;
|
|
24
|
+
readonly api: Signal<toast.Api>;
|
|
25
|
+
readonly send: toast.Service["send"];
|
|
26
|
+
get service(): toast.Service;
|
|
27
|
+
protected readonly contextCarrier: ContextCarrier<ToastRoot>;
|
|
28
|
+
constructor();
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
getContextCarrier(): ContextCarrier<ToastRoot>;
|
|
31
|
+
private createMachine;
|
|
32
|
+
private renderGhostElements;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastRoot, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastRoot, "[toast-root]", ["toastRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare const TOAST_CONTEXT: InjectionToken<ToastRoot>;
|
|
38
|
+
declare function injectToastContext(): ToastRoot;
|
|
39
|
+
declare const TOAST_CONTEXT_CARRIER: InjectionToken<ContextCarrier<ToastRoot>>;
|
|
40
|
+
declare function injectToastContextCarrier(): ContextCarrier<ToastRoot>;
|
|
41
|
+
|
|
42
|
+
type UseToastProps = Omit<toast.Props, "dir" | "getRootNode">;
|
|
43
|
+
type UseToastReturn = UseMachineReturn<toast.Service["state"], toast.Api, toast.Service>;
|
|
44
|
+
interface UseToastOptions {
|
|
45
|
+
context: () => UseToastProps;
|
|
46
|
+
}
|
|
47
|
+
declare function useToast(options: UseToastOptions): UseToastReturn;
|
|
48
|
+
|
|
49
|
+
type UseToastGroupProps = Omit<toast.GroupProps, "dir" | "getRootNode" | "id"> & {
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
type UseToastGroupReturn = UseMachineReturn<toast.GroupService["state"], toast.GroupApi, toast.GroupService>;
|
|
53
|
+
interface UseToastGroupOptions {
|
|
54
|
+
context: () => UseToastGroupProps;
|
|
55
|
+
}
|
|
56
|
+
declare function useToastGroup(options: UseToastGroupOptions): UseToastGroupReturn;
|
|
57
|
+
|
|
58
|
+
interface ToasterProps extends Omit<UseToastGroupProps, "store" | "id"> {
|
|
59
|
+
toaster: CreateToasterReturn;
|
|
60
|
+
itemTemplate: TemplateRef<{
|
|
61
|
+
$implicit: toast.Options;
|
|
62
|
+
}>;
|
|
63
|
+
id?: string;
|
|
64
|
+
}
|
|
65
|
+
type ToastOptions = toast.Options;
|
|
66
|
+
declare class Toaster implements OnInit {
|
|
67
|
+
readonly toaster: InputSignal<CreateToasterReturn>;
|
|
68
|
+
readonly itemTemplate: InputSignal<TemplateRef<{
|
|
69
|
+
$implicit: toast.Options;
|
|
70
|
+
}>>;
|
|
71
|
+
readonly id: InputSignal<string | undefined>;
|
|
72
|
+
readonly label: InputSignal<string | undefined>;
|
|
73
|
+
private readonly injector;
|
|
74
|
+
private readonly isBrowser;
|
|
75
|
+
private readonly machine;
|
|
76
|
+
readonly state: Signal<toast.GroupService["state"] | undefined>;
|
|
77
|
+
readonly api: Signal<toast.GroupApi>;
|
|
78
|
+
readonly toasts: Signal<toast.Props[]>;
|
|
79
|
+
readonly send: toast.GroupService["send"];
|
|
80
|
+
get service(): toast.GroupService;
|
|
81
|
+
constructor();
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
private createMachine;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Toaster, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Toaster, "toast-toaster", never, { "toaster": { "alias": "toaster"; "required": true; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface ToastContextTemplate {
|
|
89
|
+
$implicit: UseToastReturn["api"];
|
|
90
|
+
api: UseToastReturn["api"];
|
|
91
|
+
}
|
|
92
|
+
declare class ToastContext {
|
|
93
|
+
static ngTemplateContextGuard(_directive: ToastContext, context: unknown): context is ToastContextTemplate;
|
|
94
|
+
private readonly toast;
|
|
95
|
+
private readonly templateRef;
|
|
96
|
+
private readonly viewContainer;
|
|
97
|
+
constructor();
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastContext, never>;
|
|
99
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastContext, "[toast-context]", ["toastContext"], {}, {}, never, never, true, never>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare class ToastTitle {
|
|
103
|
+
constructor();
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastTitle, never>;
|
|
105
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastTitle, "[toast-title]", ["toastTitle"], {}, {}, never, never, true, never>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class ToastDescription {
|
|
109
|
+
constructor();
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastDescription, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastDescription, "[toast-description]", ["toastDescription"], {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class ToastActionTrigger {
|
|
115
|
+
constructor();
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastActionTrigger, never>;
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastActionTrigger, "[toast-action-trigger]", ["toastActionTrigger"], {}, {}, never, never, true, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class ToastCloseTrigger {
|
|
121
|
+
constructor();
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastCloseTrigger, never>;
|
|
123
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastCloseTrigger, "[toast-close-trigger]", ["toastCloseTrigger"], {}, {}, never, never, true, never>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export { TOAST_CONTEXT, TOAST_CONTEXT_CARRIER, ToastActionTrigger, ToastCloseTrigger, ToastContext, ToastDescription, ToastRoot, ToastTitle, Toaster, createToaster, injectToastContext, injectToastContextCarrier, useToast, useToastGroup };
|
|
127
|
+
export type { CreateToasterProps, CreateToasterReturn, ToastContextTemplate, ToasterProps, ToastOptions as ToasterToastOptions, UseToastGroupOptions, UseToastGroupProps, UseToastGroupReturn, UseToastOptions, UseToastProps, UseToastReturn };
|
|
128
|
+
//# sourceMappingURL=wirekyt-angular-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-toast.d.ts","sources":["../../src/components/toast/create-toaster.ts","../../src/components/toast/root.ts","../../src/components/toast/use-context.ts","../../src/components/toast/use.ts","../../src/components/toast/use-group.ts","../../src/components/toast/toaster.ts","../../src/components/toast/context.ts","../../src/components/toast/title.ts","../../src/components/toast/description.ts","../../src/components/toast/action-trigger.ts","../../src/components/toast/close-trigger.ts"],"mappings":";;;;;;KAEY,kBAAkB,GAAG,KAAK,CAAC,UAAU;KAErC,mBAAmB,GAAG,KAAK,CAAC,KAAK;AAE7C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mBAAW,KAAK,CAAC,OAAO;AAAE;;AAEvD;KAEW,YAAY,GAAG,KAAK,CAAC,OAAO;AAExC,cAiBa,OAAQ,YAAW,MAAM;AACpC,sBAAkB,WAAW,CAAC,mBAAmB;AACjD,2BAAuB,WAAW,CAAC,WAAW;AAAG,mBAAW,KAAK,CAAC,OAAO;AAAE;iBAE9D,WAAW;oBACR,WAAW;AAE3B;AACA;AACA;AAEA,oBAAgB,MAAM,CAAC,KAAK,CAAC,YAAY;kBAI3B,MAAM,CAAC,KAAK,CAAC,QAAQ;qBAClB,MAAM,CAAC,KAAK,CAAC,KAAK;mBAEpB,KAAK,CAAC,YAAY;AAEjC,mBAAe,KAAK,CAAC,YAAY;;AAgBjC;AAKA;yCAzCW,OAAO;2CAAP,OAAO;AAiDnB;;UCjGgB,oBAAoB;AACnC,eAAW,cAAc;AACzB,SAAK,cAAc;AACpB;AAED,cAKa,YAAY;AACvB,8CACc,YAAY,gCAEZ,oBAAoB;AAKlC;AACA;AACA;;yCAXW,YAAY;2CAAZ,YAAY;AA0BxB;;AC5CD,cAKa,UAAU;;yCAAV,UAAU;2CAAV,UAAU;AAUtB;;ACfD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAU5B;;ACfD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACfD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAU7B;;;;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -103,10 +103,22 @@
|
|
|
103
103
|
"types": "./dist/types/wirekyt-angular-frame.d.ts",
|
|
104
104
|
"default": "./dist/fesm2022/wirekyt-angular-frame.mjs"
|
|
105
105
|
},
|
|
106
|
+
"./highlight": {
|
|
107
|
+
"types": "./dist/types/wirekyt-angular-highlight.d.ts",
|
|
108
|
+
"default": "./dist/fesm2022/wirekyt-angular-highlight.mjs"
|
|
109
|
+
},
|
|
106
110
|
"./presence": {
|
|
107
111
|
"types": "./dist/types/wirekyt-angular-presence.d.ts",
|
|
108
112
|
"default": "./dist/fesm2022/wirekyt-angular-presence.mjs"
|
|
109
113
|
},
|
|
114
|
+
"./tabs": {
|
|
115
|
+
"types": "./dist/types/wirekyt-angular-tabs.d.ts",
|
|
116
|
+
"default": "./dist/fesm2022/wirekyt-angular-tabs.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./toast": {
|
|
119
|
+
"types": "./dist/types/wirekyt-angular-toast.d.ts",
|
|
120
|
+
"default": "./dist/fesm2022/wirekyt-angular-toast.mjs"
|
|
121
|
+
},
|
|
110
122
|
"./package.json": "./package.json"
|
|
111
123
|
},
|
|
112
124
|
"publishConfig": {
|
|
@@ -116,7 +128,7 @@
|
|
|
116
128
|
"dependencies": {
|
|
117
129
|
"@internationalized/date": "^3.12.3",
|
|
118
130
|
"@internationalized/number": "^3.6.7",
|
|
119
|
-
"@wirekyt/dom": "0.0.
|
|
131
|
+
"@wirekyt/dom": "0.0.24",
|
|
120
132
|
"tslib": "^2.8.1"
|
|
121
133
|
},
|
|
122
134
|
"peerDependencies": {
|