@wirekyt/angular 0.0.26 → 0.0.28
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-date-input.mjs +0 -1
- package/dist/fesm2022/wirekyt-angular-date-input.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-drawer.mjs +0 -2
- package/dist/fesm2022/wirekyt-angular-drawer.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-editable.mjs +0 -28
- package/dist/fesm2022/wirekyt-angular-editable.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-file-upload.mjs +604 -0
- package/dist/fesm2022/wirekyt-angular-file-upload.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-floating-panel.mjs +0 -36
- package/dist/fesm2022/wirekyt-angular-floating-panel.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-hover-card.mjs +430 -0
- package/dist/fesm2022/wirekyt-angular-hover-card.mjs.map +1 -0
- package/dist/package.json +9 -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-input.d.ts +0 -1
- package/dist/types/wirekyt-angular-date-input.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-drawer.d.ts +0 -2
- package/dist/types/wirekyt-angular-drawer.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-editable.d.ts +0 -28
- package/dist/types/wirekyt-angular-editable.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-file-upload.d.ts +182 -0
- package/dist/types/wirekyt-angular-file-upload.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-floating-panel.d.ts +0 -36
- package/dist/types/wirekyt-angular-floating-panel.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-hover-card.d.ts +122 -0
- package/dist/types/wirekyt-angular-hover-card.d.ts.map +1 -0
- package/package.json +10 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-drawer.d.ts","sources":["../../src/components/drawer/use.ts","../../src/components/drawer/use-context.ts","../../src/components/drawer/use-stack-context.ts","../../src/components/drawer/root.ts","../../src/components/drawer/root-provider.ts","../../src/components/drawer/trigger.ts","../../src/components/drawer/backdrop.ts","../../src/components/drawer/positioner.ts","../../src/components/drawer/content.ts","../../src/components/drawer/title.ts","../../src/components/drawer/description.ts","../../src/components/drawer/close-trigger.ts","../../src/components/drawer/grabber.ts","../../src/components/drawer/grabber-indicator.ts","../../src/components/drawer/swipe-area.ts","../../src/components/drawer/indent.ts","../../src/components/drawer/indent-background.ts","../../src/components/drawer/stack.ts","../../src/components/drawer/context.ts"],"mappings":";;;;;;;;;AAaA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,cAAe,SAAQ,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;AAA4B;AAE1F,KAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO;UAEjF,gBAAgB;mBAChB,cAAc;AAC9B;AAKD,iBAAgB,SAAS,UAAU,gBAAgB,GAAG,eAAe;;ACpBrE,cAAa,cAAc,EAAA,cAAA,CAAA,eAAA;AAE3B,iBAAgB,mBAAmB,IAAI,eAAe;AAItD,cAAa,sBAAsB,EAAA,cAAA,CAAA,cAAA,CAAA,eAAA;AAInC,iBAAgB,0BAA0B,IAAI,cAAc,CAAC,eAAe;UAI3D,2BAA2B;AAC1C,wBAAoB,MAAM;AAC1B,4BAAwB,MAAM;AAC/B;AAED,cAAa,8BAA8B,EAAA,cAAA,CAAA,2BAAA;AAI3C,iBAAgB,iCAAiC,IAAI,2BAA2B;;UCzB/D,qBAAqB;AACpC,kBAAc,MAAM,CAAC,cAAc;AACnC,oBAAgBA,aAA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tB;;ACzLD,cAsBa,kBAAmB,SAAQ,YAAa,YAAW,eAAe;AAC7E,oBAAgB,WAAW,CAAC,eAAe;AAC3C,oBAAgB,MAAM,CAAC,MAAM,CAAC,OAAO;kBACvB,MAAM,CAAC,MAAM,CAAC,GAAG;mBAChB,MAAM,CAAC,OAAO;AAE7B,mBAAe,MAAM,CAAC,OAAO;uBAIZ,yBAAA,CAAA,iBAAA;uCAQkB,cAAc,CAAC,kBAAkB;AAYpE,yBAAqB,cAAc,CAAC,kBAAkB;yCA9B3C,kBAAkB;2CAAlB,kBAAkB;AAiC9B;;ACnED,cAKa,aAAa;oBACR,WAAW;;yCADhB,aAAa;2CAAb,aAAa;AAmBzB;;ACrBD,cAKa,cAAc;;yCAAd,cAAc;2CAAd,cAAc;AA2C1B;;ACjDD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAmC5B;;ACpCD,cAKa,aAAa;wBACJ,wBAAwB;;yCADjC,aAAa;2CAAb,aAAa;AA2CzB;;AC/DD,cAKa,WAAW;;yCAAX,WAAW;2CAAX,WAAW;AAUvB;;ACfD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAU7B;;ACfD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACfD,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACfD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAUlC;;ACHD,cAKa,eAAe
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-drawer.d.ts","sources":["../../src/components/drawer/use.ts","../../src/components/drawer/use-context.ts","../../src/components/drawer/use-stack-context.ts","../../src/components/drawer/root.ts","../../src/components/drawer/root-provider.ts","../../src/components/drawer/trigger.ts","../../src/components/drawer/backdrop.ts","../../src/components/drawer/positioner.ts","../../src/components/drawer/content.ts","../../src/components/drawer/title.ts","../../src/components/drawer/description.ts","../../src/components/drawer/close-trigger.ts","../../src/components/drawer/grabber.ts","../../src/components/drawer/grabber-indicator.ts","../../src/components/drawer/swipe-area.ts","../../src/components/drawer/indent.ts","../../src/components/drawer/indent-background.ts","../../src/components/drawer/stack.ts","../../src/components/drawer/context.ts"],"mappings":";;;;;;;;;AAaA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,cAAe,SAAQ,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;AAA4B;AAE1F,KAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO;UAEjF,gBAAgB;mBAChB,cAAc;AAC9B;AAKD,iBAAgB,SAAS,UAAU,gBAAgB,GAAG,eAAe;;ACpBrE,cAAa,cAAc,EAAA,cAAA,CAAA,eAAA;AAE3B,iBAAgB,mBAAmB,IAAI,eAAe;AAItD,cAAa,sBAAsB,EAAA,cAAA,CAAA,cAAA,CAAA,eAAA;AAInC,iBAAgB,0BAA0B,IAAI,cAAc,CAAC,eAAe;UAI3D,2BAA2B;AAC1C,wBAAoB,MAAM;AAC1B,4BAAwB,MAAM;AAC/B;AAED,cAAa,8BAA8B,EAAA,cAAA,CAAA,2BAAA;AAI3C,iBAAgB,iCAAiC,IAAI,2BAA2B;;UCzB/D,qBAAqB;AACpC,kBAAc,MAAM,CAAC,cAAc;AACnC,oBAAgBA,aAAW;AAC5B;AAED,cAAa,oBAAoB,EAAA,cAAA,CAAA,qBAAA;AAIjC,iBAAgB,wBAAwB,IAAI,qBAAqB;;AC8BjE,cAmBa,UAAW,SAAQ,YAAa,YAAW,eAAe;iBACxD,WAAW;AACxB,kBAAc,WAAW,CAAC,OAAO,CAACC,UAAgB;mBAGnC,WAAW;0BACJ,wBAAwB;oBAG9B,wBAAwB;qCAGP,wBAAwB;4BAGjC,wBAAwB;4BAGxB,wBAAwB;wBAG5B,wBAAwB;2BAGrB,wBAAwB;AAG/C,6BAAyB,WAAW,Q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AkB;AAiC9B;;ACnED,cAKa,aAAa;oBACR,WAAW;;yCADhB,aAAa;2CAAb,aAAa;AAmBzB;;ACrBD,cAKa,cAAc;;yCAAd,cAAc;2CAAd,cAAc;AA2C1B;;ACjDD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAmC5B;;ACpCD,cAKa,aAAa;wBACJ,wBAAwB;;yCADjC,aAAa;2CAAb,aAAa;AA2CzB;;AC/DD,cAKa,WAAW;;yCAAX,WAAW;2CAAX,WAAW;AAUvB;;ACfD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAU7B;;ACfD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACfD,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACfD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAUlC;;ACHD,cAKa,eAAe;uBACP,wBAAwB;6BAGlB,WAAW,CAACN,cAAoB;;yCAJ9C,eAAe;2CAAf,eAAe;AAoB3B;;ACrCD,cAKa,YAAY;;yCAAZ,YAAY;2CAAZ,YAAY;AAUxB;;ACfD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAUlC;;ACdD,cAMa,WAAW;AACtB;AACA;AACA;AAIA,sBAAkB,qBAAqB;;yCAP5B,WAAW;2CAAX,WAAW;AAevB;;UCdgB,qBAAqB;AACpC,eAAW,eAAe;AAC1B,SAAK,eAAe;AACrB;AAED,cAKa,aAAa;AACxB,8CACc,aAAa,gCAEb,qBAAqB;AAKnC;AACA;AACA;;yCAXW,aAAa;2CAAb,aAAa;AA0BzB;;;;","names":["DrawerStack","DrawerElementIds","DrawerSnapPoint","DrawerSwipeDirection","DrawerFocusOutsideEvent","DrawerInteractOutsideEvent","DrawerPointerDownOutsideEvent","DrawerOpenChangeDetails","DrawerTriggerValueChangeDetails","DrawerSnapPointChangeDetails"]}
|
|
@@ -23,62 +23,35 @@ declare const EDITABLE_CONTEXT: InjectionToken<UseEditableReturn>;
|
|
|
23
23
|
declare function injectEditableContext(): UseEditableReturn;
|
|
24
24
|
|
|
25
25
|
declare class EditableRoot implements ControlValueAccessor, UseEditableReturn {
|
|
26
|
-
/** The id of the editable. */
|
|
27
26
|
readonly id: InputSignal<string | undefined>;
|
|
28
|
-
/** The element ids for the editable parts. */
|
|
29
27
|
readonly elementIds: InputSignal<ElementIds | undefined>;
|
|
30
|
-
/** The controlled value of the editable. */
|
|
31
28
|
readonly value: ModelSignal<string | undefined>;
|
|
32
|
-
/** The initial value of the editable when uncontrolled. */
|
|
33
29
|
readonly defaultValue: InputSignal<string | undefined>;
|
|
34
|
-
/** The controlled edit state of the editable. */
|
|
35
30
|
readonly edit: ModelSignal<boolean | undefined>;
|
|
36
|
-
/** The initial edit state of the editable when uncontrolled. */
|
|
37
31
|
readonly defaultEdit: InputSignalWithTransform<boolean, unknown>;
|
|
38
|
-
/** Whether the editable is disabled. */
|
|
39
32
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
40
|
-
/** Whether the editable is read-only. */
|
|
41
33
|
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
42
|
-
/** Whether the editable is invalid. */
|
|
43
34
|
readonly invalid: InputSignalWithTransform<boolean, unknown>;
|
|
44
|
-
/** Whether the editable is required. */
|
|
45
35
|
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
46
|
-
/** The placeholder text for the editable. */
|
|
47
36
|
readonly placeholder: InputSignal<string | {
|
|
48
37
|
edit: string;
|
|
49
38
|
preview: string;
|
|
50
39
|
} | undefined>;
|
|
51
|
-
/** The name attribute of the editable input. */
|
|
52
40
|
readonly name: InputSignal<string | undefined>;
|
|
53
|
-
/** The form attribute of the editable input. */
|
|
54
41
|
readonly form: InputSignal<string | undefined>;
|
|
55
|
-
/** The maximum number of characters allowed. */
|
|
56
42
|
readonly maxLength: InputSignal<number | undefined>;
|
|
57
|
-
/** The activation mode for the preview element. */
|
|
58
43
|
readonly activationMode: InputSignal<editable.ActivationMode | undefined>;
|
|
59
|
-
/** The action that triggers submit in edit mode. */
|
|
60
44
|
readonly submitMode: InputSignal<editable.SubmitMode | undefined>;
|
|
61
|
-
/** Whether the editable should auto-resize to fit content. */
|
|
62
45
|
readonly autoResize: InputSignalWithTransform<boolean, unknown>;
|
|
63
|
-
/** Whether to select the text in the input when focused. */
|
|
64
46
|
readonly selectOnFocus: InputSignalWithTransform<boolean, unknown>;
|
|
65
|
-
/** The translations for the editable. */
|
|
66
47
|
readonly translations: InputSignal<editable.IntlTranslations | undefined>;
|
|
67
|
-
/** The element that should receive focus when edit mode exits. */
|
|
68
48
|
readonly finalFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
69
|
-
/** Emits the details when the edit state changes. */
|
|
70
49
|
readonly editDetailsChange: OutputEmitterRef<EditChangeDetails>;
|
|
71
|
-
/** Emits the details when the editable value changes. */
|
|
72
50
|
readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
|
|
73
|
-
/** Emits when the editable value is committed. */
|
|
74
51
|
readonly valueCommit: OutputEmitterRef<ValueChangeDetails>;
|
|
75
|
-
/** Emits when the editable value is reverted. */
|
|
76
52
|
readonly valueRevert: OutputEmitterRef<ValueChangeDetails>;
|
|
77
|
-
/** Emits when focus moves outside the editable while editing. */
|
|
78
53
|
readonly focusOutside: OutputEmitterRef<FocusOutsideEvent>;
|
|
79
|
-
/** Emits when pointer down happens outside the editable while editing. */
|
|
80
54
|
readonly pointerDownOutside: OutputEmitterRef<PointerDownOutsideEvent>;
|
|
81
|
-
/** Emits when an interaction happens outside the editable while editing. */
|
|
82
55
|
readonly interactOutside: OutputEmitterRef<InteractOutsideEvent>;
|
|
83
56
|
private readonly _disabledFromForm;
|
|
84
57
|
private _pendingInternalWrites;
|
|
@@ -100,7 +73,6 @@ declare class EditableRoot implements ControlValueAccessor, UseEditableReturn {
|
|
|
100
73
|
}
|
|
101
74
|
|
|
102
75
|
declare class EditableRootProvider implements UseEditableReturn {
|
|
103
|
-
/** The editable primitive returned by useEditable(). */
|
|
104
76
|
readonly value: InputSignal<UseEditableReturn>;
|
|
105
77
|
get state(): Signal<editable.Service["state"]>;
|
|
106
78
|
get api(): Signal<editable.Api>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-editable.d.ts","sources":["../../src/components/editable/use.ts","../../src/components/editable/use-context.ts","../../src/components/editable/root.ts","../../src/components/editable/root-provider.ts","../../src/components/editable/area.ts","../../src/components/editable/input.ts","../../src/components/editable/preview.ts","../../src/components/editable/label.ts","../../src/components/editable/control.ts","../../src/components/editable/edit-trigger.ts","../../src/components/editable/submit-trigger.ts","../../src/components/editable/cancel-trigger.ts","../../src/components/editable/context.ts"],"mappings":";;;;;;;;AAcA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,gBAAiB,SAAQ,UAAU,CAClD,IAAI,CAACA,KAAoB;AACvB;AAEE,KAAM,iBAAiB,GAAG,gBAAgB,CAC9C,QAAQ,CAAC,OAAO,WAChB,QAAQ,CAAC,GAAG,EACZ,QAAQ,CAAC,OAAO;UAGD,kBAAkB;mBAClB,gBAAgB;AAChC;AAKD,iBAAgB,WAAW,WAChB,kBAA4C,GACpD,iBAAiB;;AC/BpB,cAAa,gBAAgB,EAAA,cAAA,CAAA,iBAAA;AAE7B,iBAAgB,qBAAqB,IAAI,iBAAiB;;AC8B1D,cASa,YAAa,YAAW,oBAAoB,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-editable.d.ts","sources":["../../src/components/editable/use.ts","../../src/components/editable/use-context.ts","../../src/components/editable/root.ts","../../src/components/editable/root-provider.ts","../../src/components/editable/area.ts","../../src/components/editable/input.ts","../../src/components/editable/preview.ts","../../src/components/editable/label.ts","../../src/components/editable/control.ts","../../src/components/editable/edit-trigger.ts","../../src/components/editable/submit-trigger.ts","../../src/components/editable/cancel-trigger.ts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ACzB,MAAM,CAAC,QAAQ,CAAC,GAAG;AACjC,sBAAkB,QAAQ,CAAC,OAAO;mBACnB,QAAQ,CAAC,OAAO;;AA0B/B;AAaA;AAIA;AAIA;yCAjLW,YAAY;2CAAZ,YAAY;AAoLxB;;AC9MD,cAMa,oBAAqB,YAAW,iBAAiB;AAC5D,oBAAgB,WAAW,CAAC,iBAAiB;iBAEhC,MAAM,CAAC,QAAQ,CAAC,OAAO;eAGzB,MAAM,CAAC,QAAQ,CAAC,GAAG;AAG9B,mBAAe,QAAQ,CAAC,OAAO;gBAGnB,QAAQ,CAAC,OAAO;;yCAZjB,oBAAoB;2CAApB,oBAAoB;AAwBhC;;AC5CD,cAKa,YAAY;;yCAAZ,YAAY;2CAAZ,YAAY;AAUxB;;ACdD,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAuBzB;;ACpBD,cAKa,eAAgB,YAAW,gBAAgB;AACtD;AACA;;AAgCA;yCAlCW,eAAe;2CAAf,eAAe;AAqC3B;;ACnDD,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACfD,cAKa,eAAe;;yCAAf,eAAe;2CAAf,eAAe;AAU3B;;ACfD,cAKa,mBAAmB;;yCAAnB,mBAAmB;2CAAnB,mBAAmB;AAU/B;;ACfD,cAKa,qBAAqB;;yCAArB,qBAAqB;2CAArB,qBAAqB;AAUjC;;ACfD,cAKa,qBAAqB;;yCAArB,qBAAqB;2CAArB,qBAAqB;AAUjC;;UCPgB,uBAAuB;AACtC,eAAW,iBAAiB;AAC5B,SAAK,iBAAiB;AACvB;AAED,cAKa,eAAe;AAC1B,8CACc,eAAe,gCAEf,uBAAuB;AAKrC;AACA;AACA;;yCAXW,eAAe;2CAAf,eAAe;AA0B3B;;;;","names":["EditableMachineProps","EditableElementIds","EditableEditChangeDetails","EditableValueChangeDetails","EditableFocusOutsideEvent","EditablePointerDownOutsideEvent","EditableInteractOutsideEvent"]}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as fileUpload from '@wirekyt/dom/machines/file-upload';
|
|
2
|
+
import { Props, ItemType, ElementIds, IntlTranslations, FileMimeType, FileValidateDetails, FileError, FileChangeDetails, FileAcceptDetails, FileRejectDetails } from '@wirekyt/dom/machines/file-upload';
|
|
3
|
+
export { FileAcceptDetails, FileChangeDetails, FileError, FileMimeType, FileRejectDetails, FileRejection, Api as FileUploadApi, DropzoneProps as FileUploadDropzoneProps, ElementIds as FileUploadElementIds, FileAcceptDetails as FileUploadFileAcceptDetails, FileChangeDetails as FileUploadFileChangeDetails, FileError as FileUploadFileError, FileMimeType as FileUploadFileMimeType, FileRejectDetails as FileUploadFileRejectDetails, FileRejection as FileUploadFileRejection, FileValidateDetails as FileUploadFileValidateDetails, IntlTranslations as FileUploadIntlTranslations, ItemGroupProps as FileUploadItemGroupProps, ItemPreviewImageProps as FileUploadItemPreviewImageProps, ItemProps as FileUploadItemProps, ItemType as FileUploadItemType, ItemTypeProps as FileUploadItemTypeProps, Machine as FileUploadMachine, Props as FileUploadMachineProps, Service as FileUploadService, FileValidateDetails, anatomy as fileUploadAnatomy } from '@wirekyt/dom/machines/file-upload';
|
|
4
|
+
import { UseMachineReturn } from '@wirekyt/angular';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Signal, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef } from '@angular/core';
|
|
7
|
+
|
|
8
|
+
type OptionalId<T extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}> = Omit<T, "id"> & {
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
interface UseFileUploadProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
|
|
14
|
+
}
|
|
15
|
+
type UseFileUploadReturn = UseMachineReturn<fileUpload.Service["state"], fileUpload.Api, fileUpload.Service>;
|
|
16
|
+
interface UseFileUploadOptions {
|
|
17
|
+
context: () => UseFileUploadProps;
|
|
18
|
+
}
|
|
19
|
+
declare function useFileUpload(options: UseFileUploadOptions): UseFileUploadReturn;
|
|
20
|
+
|
|
21
|
+
interface FileUploadContextTemplate {
|
|
22
|
+
$implicit: UseFileUploadReturn["api"];
|
|
23
|
+
api: UseFileUploadReturn["api"];
|
|
24
|
+
}
|
|
25
|
+
declare class FileUploadContext {
|
|
26
|
+
static ngTemplateContextGuard(_directive: FileUploadContext, context: unknown): context is FileUploadContextTemplate;
|
|
27
|
+
private readonly fileUpload;
|
|
28
|
+
private readonly templateRef;
|
|
29
|
+
private readonly viewContainer;
|
|
30
|
+
constructor();
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadContext, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadContext, "[file-upload-context]", ["fileUploadContext"], {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const FILE_UPLOAD_CONTEXT: InjectionToken<UseFileUploadReturn>;
|
|
36
|
+
declare function injectFileUploadContext(): UseFileUploadReturn;
|
|
37
|
+
|
|
38
|
+
interface FileUploadItemContext {
|
|
39
|
+
file: Signal<File>;
|
|
40
|
+
type: Signal<ItemType | undefined>;
|
|
41
|
+
}
|
|
42
|
+
declare const FILE_UPLOAD_ITEM_CONTEXT: InjectionToken<FileUploadItemContext>;
|
|
43
|
+
declare function injectFileUploadItemContext(): FileUploadItemContext;
|
|
44
|
+
|
|
45
|
+
declare class FileUploadRoot implements UseFileUploadReturn {
|
|
46
|
+
readonly id: InputSignal<string | undefined>;
|
|
47
|
+
readonly elementIds: InputSignal<ElementIds | undefined>;
|
|
48
|
+
readonly translations: InputSignal<IntlTranslations | undefined>;
|
|
49
|
+
readonly name: InputSignal<string | undefined>;
|
|
50
|
+
readonly accept: InputSignal<Record<string, string[]> | FileMimeType | FileMimeType[] | undefined>;
|
|
51
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
readonly invalid: InputSignalWithTransform<boolean, unknown>;
|
|
54
|
+
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
readonly allowDrop: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
56
|
+
readonly maxFileSize: InputSignalWithTransform<number | undefined, unknown>;
|
|
57
|
+
readonly minFileSize: InputSignalWithTransform<number | undefined, unknown>;
|
|
58
|
+
readonly maxFiles: InputSignalWithTransform<number | undefined, unknown>;
|
|
59
|
+
readonly preventDocumentDrop: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
60
|
+
readonly validate: InputSignal<((file: File, details: FileValidateDetails) => FileError[] | null) | undefined>;
|
|
61
|
+
readonly defaultAcceptedFiles: InputSignal<File[] | undefined>;
|
|
62
|
+
readonly acceptedFiles: ModelSignal<File[] | undefined>;
|
|
63
|
+
readonly capture: InputSignal<"user" | "environment" | undefined>;
|
|
64
|
+
readonly directory: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
65
|
+
readonly transformFiles: InputSignal<((files: File[]) => Promise<File[]>) | undefined>;
|
|
66
|
+
readonly locale: InputSignal<string | undefined>;
|
|
67
|
+
readonly fileChange: OutputEmitterRef<FileChangeDetails>;
|
|
68
|
+
readonly fileAccept: OutputEmitterRef<FileAcceptDetails>;
|
|
69
|
+
readonly fileReject: OutputEmitterRef<FileRejectDetails>;
|
|
70
|
+
private readonly machine;
|
|
71
|
+
readonly state: Signal<fileUpload.Service["state"]>;
|
|
72
|
+
readonly api: Signal<fileUpload.Api>;
|
|
73
|
+
readonly service: fileUpload.Service;
|
|
74
|
+
readonly send: fileUpload.Service["send"];
|
|
75
|
+
constructor();
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadRoot, never>;
|
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadRoot, "[file-upload-root]", ["fileUploadRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "allowDrop": { "alias": "allowDrop"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "minFileSize": { "alias": "minFileSize"; "required": false; "isSignal": true; }; "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "preventDocumentDrop": { "alias": "preventDocumentDrop"; "required": false; "isSignal": true; }; "validate": { "alias": "validate"; "required": false; "isSignal": true; }; "defaultAcceptedFiles": { "alias": "defaultAcceptedFiles"; "required": false; "isSignal": true; }; "acceptedFiles": { "alias": "acceptedFiles"; "required": false; "isSignal": true; }; "capture": { "alias": "capture"; "required": false; "isSignal": true; }; "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "transformFiles": { "alias": "transformFiles"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, { "acceptedFiles": "acceptedFilesChange"; "fileChange": "fileChange"; "fileAccept": "fileAccept"; "fileReject": "fileReject"; }, never, never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class FileUploadRootProvider implements UseFileUploadReturn {
|
|
81
|
+
readonly value: InputSignal<UseFileUploadReturn>;
|
|
82
|
+
readonly state: Signal<fileUpload.Service["state"]>;
|
|
83
|
+
readonly api: Signal<fileUpload.Api>;
|
|
84
|
+
readonly send: fileUpload.Service["send"];
|
|
85
|
+
get service(): fileUpload.Service;
|
|
86
|
+
resolveValue(): UseFileUploadReturn;
|
|
87
|
+
constructor();
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadRootProvider, never>;
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadRootProvider, "[file-upload-root-provider]", ["fileUploadRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class FileUploadLabel {
|
|
93
|
+
constructor();
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadLabel, never>;
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadLabel, "[file-upload-label]", ["fileUploadLabel"], {}, {}, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare class FileUploadTrigger {
|
|
99
|
+
constructor();
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadTrigger, never>;
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadTrigger, "[file-upload-trigger]", ["fileUploadTrigger"], {}, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class FileUploadDropzone {
|
|
105
|
+
readonly disableClick: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
106
|
+
constructor();
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadDropzone, never>;
|
|
108
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadDropzone, "[file-upload-dropzone]", ["fileUploadDropzone"], { "disableClick": { "alias": "disableClick"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare class FileUploadHiddenInput {
|
|
112
|
+
constructor();
|
|
113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadHiddenInput, never>;
|
|
114
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadHiddenInput, "input[file-upload-hidden-input]", ["fileUploadHiddenInput"], {}, {}, never, never, true, never>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class FileUploadClearTrigger {
|
|
118
|
+
constructor();
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadClearTrigger, never>;
|
|
120
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadClearTrigger, "[file-upload-clear-trigger]", ["fileUploadClearTrigger"], {}, {}, never, never, true, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface FileUploadItemGroupContext {
|
|
124
|
+
type: Signal<ItemType | undefined>;
|
|
125
|
+
}
|
|
126
|
+
declare const FILE_UPLOAD_ITEM_GROUP_CONTEXT: InjectionToken<FileUploadItemGroupContext>;
|
|
127
|
+
declare function injectFileUploadItemGroupContextOptional(): FileUploadItemGroupContext | null;
|
|
128
|
+
declare class FileUploadItemGroup implements FileUploadItemGroupContext {
|
|
129
|
+
readonly type: InputSignal<ItemType | undefined>;
|
|
130
|
+
constructor();
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemGroup, never>;
|
|
132
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemGroup, "[file-upload-item-group]", ["fileUploadItemGroup"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare class FileUploadItem implements FileUploadItemContext {
|
|
136
|
+
readonly file: InputSignal<File>;
|
|
137
|
+
private readonly group;
|
|
138
|
+
readonly type: Signal<ItemType | undefined>;
|
|
139
|
+
constructor();
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItem, never>;
|
|
141
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItem, "[file-upload-item]", ["fileUploadItem"], { "file": { "alias": "file"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class FileUploadItemName {
|
|
145
|
+
constructor();
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemName, never>;
|
|
147
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemName, "[file-upload-item-name]", ["fileUploadItemName"], {}, {}, never, never, true, never>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class FileUploadItemSizeText {
|
|
151
|
+
constructor();
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemSizeText, never>;
|
|
153
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemSizeText, "[file-upload-item-size-text]", ["fileUploadItemSizeText"], {}, {}, never, never, true, never>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class FileUploadItemPreview {
|
|
157
|
+
readonly type: InputSignal<string | undefined>;
|
|
158
|
+
private readonly context;
|
|
159
|
+
private readonly item;
|
|
160
|
+
readonly matches: Signal<boolean>;
|
|
161
|
+
constructor();
|
|
162
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemPreview, never>;
|
|
163
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemPreview, "[file-upload-item-preview]", ["fileUploadItemPreview"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class FileUploadItemPreviewImage {
|
|
167
|
+
private readonly urlSignal;
|
|
168
|
+
readonly url: Signal<string | undefined>;
|
|
169
|
+
constructor();
|
|
170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemPreviewImage, never>;
|
|
171
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemPreviewImage, "img[file-upload-item-preview-image]", ["fileUploadItemPreviewImage"], {}, {}, never, never, true, never>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare class FileUploadItemDeleteTrigger {
|
|
175
|
+
constructor();
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadItemDeleteTrigger, never>;
|
|
177
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileUploadItemDeleteTrigger, "[file-upload-item-delete-trigger]", ["fileUploadItemDeleteTrigger"], {}, {}, never, never, true, never>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { FILE_UPLOAD_CONTEXT, FILE_UPLOAD_ITEM_CONTEXT, FILE_UPLOAD_ITEM_GROUP_CONTEXT, FileUploadClearTrigger, FileUploadContext, FileUploadDropzone, FileUploadHiddenInput, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadRootProvider, FileUploadTrigger, injectFileUploadContext, injectFileUploadItemContext, injectFileUploadItemGroupContextOptional, useFileUpload };
|
|
181
|
+
export type { FileUploadContextTemplate, FileUploadItemContext, FileUploadItemGroupContext, UseFileUploadOptions, UseFileUploadProps, UseFileUploadReturn };
|
|
182
|
+
//# sourceMappingURL=wirekyt-angular-file-upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-file-upload.d.ts","sources":["../../src/components/file-upload/use.ts","../../src/components/file-upload/context.ts","../../src/components/file-upload/use-context.ts","../../src/components/file-upload/use-item-context.ts","../../src/components/file-upload/root.ts","../../src/components/file-upload/root-provider.ts","../../src/components/file-upload/label.ts","../../src/components/file-upload/trigger.ts","../../src/components/file-upload/dropzone.ts","../../src/components/file-upload/hidden-input.ts","../../src/components/file-upload/clear-trigger.ts","../../src/components/file-upload/item-group.ts","../../src/components/file-upload/item.ts","../../src/components/file-upload/item-name.ts","../../src/components/file-upload/item-size-text.ts","../../src/components/file-upload/item-preview.ts","../../src/components/file-upload/item-preview-image.ts","../../src/components/file-upload/item-delete-trigger.ts"],"mappings":";;;;;;;AAcA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,kBAAmB,SAAQ,UAAU,CACpD,IAAI,CAACA,KAAsB;AACzB;AAEE,KAAM,mBAAmB,GAAG,gBAAgB,CAChD,U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Ka,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAyBlC;;ACpBD,cAKa,qBAAqB;mBACjB,WAAW;AAE1B;AACA;AAEA,sBAAkB,MAAM;;yCANb,qBAAqB;2CAArB,qBAAqB;AAoCjC;;ACzCD,cAKa,0BAA0B;AACrC;kBACc,MAAM;;yCAFT,0BAA0B;2CAA1B,0BAA0B;AAsCtC;;ACrDD,cAKa,2BAA2B;;yCAA3B,2BAA2B;2CAA3B,2BAA2B;AAYvC;;;;","names":["FileUploadMachineProps","FileUploadItemType","FileUploadElementIds","FileUploadIntlTranslations"]}
|
|
@@ -32,67 +32,36 @@ declare const FLOATING_PANEL_RENDER_STRATEGY_CONTEXT: InjectionToken<FloatingPan
|
|
|
32
32
|
declare function injectFloatingPanelRenderStrategyContext(): FloatingPanelRenderStrategyContext;
|
|
33
33
|
|
|
34
34
|
declare class FloatingPanelRoot extends PresenceBase implements UseFloatingPanelReturn {
|
|
35
|
-
/** The unique identifier of the floating panel. */
|
|
36
35
|
readonly id: InputSignal<string | undefined>;
|
|
37
|
-
/** The ids of the floating panel elements. Useful for composition. */
|
|
38
36
|
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
39
|
-
/** The controlled open state of the floating panel. */
|
|
40
37
|
readonly open: ModelSignal<boolean | undefined>;
|
|
41
|
-
/** The initial open state of the floating panel when uncontrolled. */
|
|
42
38
|
readonly defaultOpen: InputSignalWithTransform<boolean, unknown>;
|
|
43
|
-
/** The controlled position of the floating panel. */
|
|
44
39
|
readonly position: ModelSignal<Point | undefined>;
|
|
45
|
-
/** The initial position of the floating panel when uncontrolled. */
|
|
46
40
|
readonly defaultPosition: InputSignal<Point | undefined>;
|
|
47
|
-
/** The controlled size of the floating panel. */
|
|
48
41
|
readonly size: ModelSignal<Size | undefined>;
|
|
49
|
-
/** The initial size of the floating panel when uncontrolled. */
|
|
50
42
|
readonly defaultSize: InputSignal<Size | undefined>;
|
|
51
|
-
/** The minimum size of the floating panel. */
|
|
52
43
|
readonly minSize: InputSignal<Size | undefined>;
|
|
53
|
-
/** The maximum size of the floating panel. */
|
|
54
44
|
readonly maxSize: InputSignal<Size | undefined>;
|
|
55
|
-
/** The positioning strategy to use. */
|
|
56
45
|
readonly strategy: InputSignal<floatingPanel.Props["strategy"]>;
|
|
57
|
-
/** Whether the panel may overflow the boundary while dragging. */
|
|
58
46
|
readonly allowOverflow: InputSignalWithTransform<boolean, unknown>;
|
|
59
|
-
/** Whether the floating panel is draggable. */
|
|
60
47
|
readonly draggable: InputSignalWithTransform<boolean, unknown>;
|
|
61
|
-
/** Whether the floating panel is resizable. */
|
|
62
48
|
readonly resizable: InputSignalWithTransform<boolean, unknown>;
|
|
63
|
-
/** Whether resizing locks the panel to its aspect ratio. */
|
|
64
49
|
readonly lockAspectRatio: InputSignalWithTransform<boolean, unknown>;
|
|
65
|
-
/** Whether the floating panel closes when the escape key is pressed. */
|
|
66
50
|
readonly closeOnEscape: InputSignalWithTransform<boolean, unknown>;
|
|
67
|
-
/** Whether focus should be restored when the floating panel closes. */
|
|
68
51
|
readonly restoreFocus: InputSignalWithTransform<boolean, unknown>;
|
|
69
|
-
/** Whether the floating panel is disabled. */
|
|
70
52
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
71
|
-
/** Whether size and position should be preserved when the floating panel closes. */
|
|
72
53
|
readonly persistRect: InputSignalWithTransform<boolean, unknown>;
|
|
73
|
-
/** The snap grid for dragging and keyboard movement. */
|
|
74
54
|
readonly gridSize: InputSignal<number | undefined>;
|
|
75
|
-
/** Localized strings for control labels. */
|
|
76
55
|
readonly translations: InputSignal<IntlTranslations | undefined>;
|
|
77
|
-
/** Function that returns the initial panel position when opened. */
|
|
78
56
|
readonly getAnchorPosition: InputSignal<((details: AnchorPositionDetails) => Point) | undefined>;
|
|
79
|
-
/** Function that returns the boundary element for dragging and resizing. */
|
|
80
57
|
readonly getBoundaryEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
81
|
-
/** Element to receive focus when the floating panel opens. */
|
|
82
58
|
readonly initialFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
83
|
-
/** Element to receive focus when the floating panel closes. */
|
|
84
59
|
readonly finalFocusEl: InputSignal<(() => HTMLElement | null) | undefined>;
|
|
85
|
-
/** Emits details when the panel open state changes. */
|
|
86
60
|
readonly openChangeDetails: OutputEmitterRef<OpenChangeDetails>;
|
|
87
|
-
/** Emits details when the panel position changes via dragging or API calls. */
|
|
88
61
|
readonly positionDetailsChange: OutputEmitterRef<PositionChangeDetails>;
|
|
89
|
-
/** Emits details when a position-changing drag interaction ends. */
|
|
90
62
|
readonly positionChangeEnd: OutputEmitterRef<PositionChangeDetails>;
|
|
91
|
-
/** Emits details when the panel size changes via resizing or API calls. */
|
|
92
63
|
readonly sizeDetailsChange: OutputEmitterRef<SizeChangeDetails>;
|
|
93
|
-
/** Emits details when a size-changing resize interaction ends. */
|
|
94
64
|
readonly sizeChangeEnd: OutputEmitterRef<SizeChangeDetails>;
|
|
95
|
-
/** Emits details when the panel stage changes. */
|
|
96
65
|
readonly stageChange: OutputEmitterRef<StageChangeDetails>;
|
|
97
66
|
private lastPositionDetails;
|
|
98
67
|
private lastPositionEndDetails;
|
|
@@ -106,14 +75,12 @@ declare class FloatingPanelRoot extends PresenceBase implements UseFloatingPanel
|
|
|
106
75
|
readonly send: floatingPanel.Service["send"];
|
|
107
76
|
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
108
77
|
protected readonly contextCarrier: ContextCarrier<FloatingPanelRoot>;
|
|
109
|
-
/** @internal Exposed for floating panel part directives to consume through portals. */
|
|
110
78
|
getContextCarrier(): ContextCarrier<FloatingPanelRoot>;
|
|
111
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingPanelRoot, never>;
|
|
112
80
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FloatingPanelRoot, "[floating-panel-root]", ["floatingPanelRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "defaultPosition": { "alias": "defaultPosition"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "defaultSize": { "alias": "defaultSize"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "strategy": { "alias": "strategy"; "required": false; "isSignal": true; }; "allowOverflow": { "alias": "allowOverflow"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "lockAspectRatio": { "alias": "lockAspectRatio"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "persistRect": { "alias": "persistRect"; "required": false; "isSignal": true; }; "gridSize": { "alias": "gridSize"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "getAnchorPosition": { "alias": "getAnchorPosition"; "required": false; "isSignal": true; }; "getBoundaryEl": { "alias": "getBoundaryEl"; "required": false; "isSignal": true; }; "initialFocusEl": { "alias": "initialFocusEl"; "required": false; "isSignal": true; }; "finalFocusEl": { "alias": "finalFocusEl"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "position": "positionChange"; "size": "sizeChange"; "openChangeDetails": "openChangeDetails"; "positionDetailsChange": "positionDetailsChange"; "positionChangeEnd": "positionChangeEnd"; "sizeDetailsChange": "sizeDetailsChange"; "sizeChangeEnd": "sizeChangeEnd"; "stageChange": "stageChange"; }, never, never, true, never>;
|
|
113
81
|
}
|
|
114
82
|
|
|
115
83
|
declare class FloatingPanelRootProvider extends PresenceBase implements UseFloatingPanelReturn {
|
|
116
|
-
/** The floating panel machine returned by useFloatingPanel(). */
|
|
117
84
|
readonly value: InputSignal<UseFloatingPanelReturn>;
|
|
118
85
|
readonly state: Signal<floatingPanel.Service["state"]>;
|
|
119
86
|
readonly api: Signal<floatingPanel.Api>;
|
|
@@ -121,7 +88,6 @@ declare class FloatingPanelRootProvider extends PresenceBase implements UseFloat
|
|
|
121
88
|
get service(): floatingPanel.Service;
|
|
122
89
|
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
123
90
|
protected readonly contextCarrier: ContextCarrier<FloatingPanelRootProvider>;
|
|
124
|
-
/** @internal Exposed for floating panel part directives to consume through portals. */
|
|
125
91
|
getContextCarrier(): ContextCarrier<FloatingPanelRootProvider>;
|
|
126
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingPanelRootProvider, never>;
|
|
127
93
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FloatingPanelRootProvider, "[floating-panel-root-provider]", ["floatingPanelRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -182,7 +148,6 @@ declare class FloatingPanelDragTrigger {
|
|
|
182
148
|
}
|
|
183
149
|
|
|
184
150
|
declare class FloatingPanelResizeTrigger {
|
|
185
|
-
/** The axis of the resize handle. */
|
|
186
151
|
readonly axis: InputSignal<ResizeTriggerAxis>;
|
|
187
152
|
constructor();
|
|
188
153
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingPanelResizeTrigger, never>;
|
|
@@ -190,7 +155,6 @@ declare class FloatingPanelResizeTrigger {
|
|
|
190
155
|
}
|
|
191
156
|
|
|
192
157
|
declare class FloatingPanelStageTrigger {
|
|
193
|
-
/** The stage to apply when the trigger is clicked. */
|
|
194
158
|
readonly stage: InputSignal<Stage>;
|
|
195
159
|
constructor();
|
|
196
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingPanelStageTrigger, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-floating-panel.d.ts","sources":["../../src/components/floating-panel/use.ts","../../src/components/floating-panel/use-context.ts","../../src/components/floating-panel/root.ts","../../src/components/floating-panel/root-provider.ts","../../src/components/floating-panel/trigger.ts","../../src/components/floating-panel/positioner.ts","../../src/components/floating-panel/content.ts","../../src/components/floating-panel/control.ts","../../src/components/floating-panel/header.ts","../../src/components/floating-panel/body.ts","../../src/components/floating-panel/title.ts","../../src/components/floating-panel/close-trigger.ts","../../src/components/floating-panel/drag-trigger.ts","../../src/components/floating-panel/resize-trigger.ts","../../src/components/floating-panel/stage-trigger.ts","../../src/components/floating-panel/context.ts"],"mappings":";;;;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,qBAAsB,SAAQ,UAAU,CACvD,IAAI,CAAC,aAAa,CAAC,KAAK;AACtB;AAEE,KAAM,sBAAsB,GAAG,gBAAgB,CACnD,aAAa,CAAC,OAAO,WACrB,aAAa,CAAC,GAAG,EACjB,aAAa,CAAC,OAAO;UAGN,uBAAuB;mBACvB,qBAAqB;AACrC;AAKD,iBAAgB,gBAAgB,UAAU,uBAAuB,GAAG,sBAAsB;;ACxB1F,cAAa,sBAAsB,EAAA,cAAA,CAAA,sBAAA;AAInC,iBAAgB,0BAA0B,IAAI,sBAAsB;AAIpE,cAAa,8BAA8B,EAAA,cAAA,CAAA,cAAA,CAAA,sBAAA;AAI3C,iBAAgB,iCAAiC,IAAI,cAAc,CAAC,sBAAsB;UAIzE,kCAAkC;AACjD,wBAAoB,MAAM;AAC1B,4BAAwB,MAAM;AAC/B;AAED,cAAa,sCAAsC,EAAA,cAAA,CAAA,kCAAA;AAKnD,iBAAgB,wCAAwC,IAAI,kCAAkC;;ACmB9F,cAsBa,iBAAkB,SAAQ,YAAa,YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-floating-panel.d.ts","sources":["../../src/components/floating-panel/use.ts","../../src/components/floating-panel/use-context.ts","../../src/components/floating-panel/root.ts","../../src/components/floating-panel/root-provider.ts","../../src/components/floating-panel/trigger.ts","../../src/components/floating-panel/positioner.ts","../../src/components/floating-panel/content.ts","../../src/components/floating-panel/control.ts","../../src/components/floating-panel/header.ts","../../src/components/floating-panel/body.ts","../../src/components/floating-panel/title.ts","../../src/components/floating-panel/close-trigger.ts","../../src/components/floating-panel/drag-trigger.ts","../../src/components/floating-panel/resize-trigger.ts","../../src/components/floating-panel/stage-trigger.ts","../../src/components/floating-panel/context.ts"],"mappings":";;;;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,qBAAsB,SAAQ,UAAU,CACvD,IAAI,CAAC,aAAa,CAAC,KAAK;AACtB;AAEE,KAAM,sBAAsB,GAAG,gBAAgB,CACnD,aAAa,CAAC,OAAO,WACrB,aAAa,CAAC,GAAG,EACjB,aAAa,CAAC,OAAO;UAGN,uBAAuB;mBACvB,qBAAqB;AACrC;AAKD,iBAAgB,gBAAgB,UAAU,uBAAuB,GAAG,sBAAsB;;ACxB1F,cAAa,sBAAsB,EAAA,cAAA,CAAA,sBAAA;AAInC,iBAAgB,0BAA0B,IAAI,sBAAsB;AAIpE,cAAa,8BAA8B,EAAA,cAAA,CAAA,cAAA,CAAA,sBAAA;AAI3C,iBAAgB,iCAAiC,IAAI,cAAc,CAAC,sBAAsB;UAIzE,kCAAkC;AACjD,wBAAoB,MAAM;AAC1B,4BAAwB,MAAM;AAC/B;AAED,cAAa,sCAAsC,EAAA,cAAA,CAAA,kCAAA;AAKnD,iBAAgB,wCAAwC,IAAI,kCAAkC;;ACmB9F,cAsBa,iBAAkB,SAAQ,YAAa,YAAW,sBAAsB;iBACtE,WAAW;AACxB,kBAAc,WAAW,CAAC,OAAO,CAACA,UAAuB;mBAG1C,WAAW;0BACJ,wBAAwB;uBAG3B,WAAW,CAACC,KAAkB;8BAGvB,WAAW,CAACA,KAAkB;mBAGzC,WAAW,CAACC,IAAiB;0BAGt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CAQkB,cAAc,CAAC,yBAAyB;AAY3E,yBAAqB,cAAc,CAAC,yBAAyB;yCA9BlD,yBAAyB;2CAAzB,yBAAyB;AAiCrC;;AC/ED,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAUhC;;ACJD,cAKa,uBAAuB;;yCAAvB,uBAAuB;2CAAvB,uBAAuB;AAmCnC;;ACvCD,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAoChC;;ACrDD,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAUhC;;ACfD,cAKa,mBAAmB;;yCAAnB,mBAAmB;2CAAnB,mBAAmB;AAU/B;;ACfD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAU7B;;ACfD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACfD,cAKa,yBAAyB;;yCAAzB,yBAAyB;2CAAzB,yBAAyB;AAUrC;;ACfD,cAKa,wBAAwB;;yCAAxB,wBAAwB;2CAAxB,wBAAwB;AAUpC;;ACLD,cAKa,0BAA0B;AACrC,mBAAe,WAAW,CAACC,iBAA8B;;yCAD9C,0BAA0B;2CAA1B,0BAA0B;AAatC;;AClBD,cAKa,yBAAyB;AACpC,oBAAgB,WAAW,CAACC,KAAkB;;yCADnC,yBAAyB;2CAAzB,yBAAyB;AAYrC;;UC1BgB,4BAA4B;AAC3C,eAAW,sBAAsB;AACjC,SAAK,sBAAsB;AAC5B;AAED,cAKa,oBAAoB;AAC/B,8CACc,oBAAoB,gCAEpB,4BAA4B;AAK1C;AACA;AACA;;yCAXW,oBAAoB;2CAApB,oBAAoB;AAwBhC;;;;","names":["FloatingPanelElementIds","FloatingPanelPoint","FloatingPanelSize","FloatingPanelIntlTranslations","FloatingPanelAnchorPositionDetails","FloatingPanelOpenChangeDetails","FloatingPanelPositionChangeDetails","FloatingPanelSizeChangeDetails","FloatingPanelStageChangeDetails","FloatingPanelResizeTriggerAxis","FloatingPanelStage"]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as hoverCard from '@wirekyt/dom/machines/hover-card';
|
|
2
|
+
import { ElementIds, PositioningOptions, OpenChangeDetails, FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent, TriggerValueChangeDetails } from '@wirekyt/dom/machines/hover-card';
|
|
3
|
+
export { Api as HoverCardApi, ElementIds as HoverCardElementIds, FocusOutsideEvent as HoverCardFocusOutsideEvent, InteractOutsideEvent as HoverCardInteractOutsideEvent, Machine as HoverCardMachine, Props as HoverCardMachineProps, OpenChangeDetails as HoverCardOpenChangeDetails, Placement as HoverCardPlacement, PointerDownOutsideEvent as HoverCardPointerDownOutsideEvent, PositioningOptions as HoverCardPositioningOptions, Service as HoverCardService, TriggerProps as HoverCardTriggerMachineProps, TriggerValueChangeDetails as HoverCardTriggerValueChangeDetails, anatomy as hoverCardAnatomy } from '@wirekyt/dom/machines/hover-card';
|
|
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
|
+
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
9
|
+
|
|
10
|
+
type OptionalId<T extends {
|
|
11
|
+
id: string;
|
|
12
|
+
}> = Omit<T, "id"> & {
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
interface UseHoverCardProps extends OptionalId<Omit<hoverCard.Props, "dir" | "getRootNode">> {
|
|
16
|
+
}
|
|
17
|
+
type UseHoverCardReturn = UseMachineReturn<hoverCard.Service["state"], hoverCard.Api, hoverCard.Service>;
|
|
18
|
+
interface UseHoverCardOptions {
|
|
19
|
+
context: () => UseHoverCardProps;
|
|
20
|
+
}
|
|
21
|
+
declare function useHoverCard(options: UseHoverCardOptions): UseHoverCardReturn;
|
|
22
|
+
|
|
23
|
+
declare const HOVER_CARD_CONTEXT: InjectionToken<UseHoverCardReturn>;
|
|
24
|
+
declare function injectHoverCardContext(): UseHoverCardReturn;
|
|
25
|
+
declare const HOVER_CARD_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseHoverCardReturn>>;
|
|
26
|
+
declare function injectHoverCardContextCarrier(): ContextCarrier<UseHoverCardReturn>;
|
|
27
|
+
interface HoverCardRenderStrategyContext {
|
|
28
|
+
readonly lazyMount: Signal<boolean>;
|
|
29
|
+
readonly unmountOnExit: Signal<boolean>;
|
|
30
|
+
}
|
|
31
|
+
declare const HOVER_CARD_RENDER_STRATEGY_CONTEXT: InjectionToken<HoverCardRenderStrategyContext>;
|
|
32
|
+
declare function injectHoverCardRenderStrategyContext(): HoverCardRenderStrategyContext;
|
|
33
|
+
|
|
34
|
+
declare class HoverCardRoot extends PresenceBase implements UseHoverCardReturn {
|
|
35
|
+
readonly id: InputSignal<string | undefined>;
|
|
36
|
+
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
37
|
+
readonly open: ModelSignal<boolean | undefined>;
|
|
38
|
+
readonly defaultOpen: InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
readonly openDelay: InputSignal<number | undefined>;
|
|
41
|
+
readonly closeDelay: InputSignal<number | undefined>;
|
|
42
|
+
readonly positioning: InputSignal<PositioningOptions | undefined>;
|
|
43
|
+
readonly triggerValue: ModelSignal<string | null | undefined>;
|
|
44
|
+
readonly defaultTriggerValue: InputSignal<string | null | undefined>;
|
|
45
|
+
readonly openChangeDetails: OutputEmitterRef<OpenChangeDetails>;
|
|
46
|
+
readonly focusOutside: OutputEmitterRef<FocusOutsideEvent>;
|
|
47
|
+
readonly interactOutside: OutputEmitterRef<InteractOutsideEvent>;
|
|
48
|
+
readonly pointerDownOutside: OutputEmitterRef<PointerDownOutsideEvent>;
|
|
49
|
+
readonly triggerValueChangeDetails: OutputEmitterRef<TriggerValueChangeDetails>;
|
|
50
|
+
private readonly machine;
|
|
51
|
+
readonly state: Signal<hoverCard.Service["state"]>;
|
|
52
|
+
readonly api: Signal<hoverCard.Api>;
|
|
53
|
+
readonly service: hoverCard.Service;
|
|
54
|
+
readonly send: hoverCard.Service["send"];
|
|
55
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
56
|
+
protected readonly contextCarrier: ContextCarrier<HoverCardRoot>;
|
|
57
|
+
getContextCarrier(): ContextCarrier<HoverCardRoot>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardRoot, never>;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardRoot, "[hover-card-root]", ["hoverCardRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "openDelay": { "alias": "openDelay"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "triggerValue": { "alias": "triggerValue"; "required": false; "isSignal": true; }; "defaultTriggerValue": { "alias": "defaultTriggerValue"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "triggerValue": "triggerValueChange"; "openChangeDetails": "openChangeDetails"; "focusOutside": "focusOutside"; "interactOutside": "interactOutside"; "pointerDownOutside": "pointerDownOutside"; "triggerValueChangeDetails": "triggerValueChangeDetails"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class HoverCardRootProvider extends PresenceBase implements UseHoverCardReturn {
|
|
63
|
+
readonly value: InputSignal<UseHoverCardReturn>;
|
|
64
|
+
readonly state: Signal<hoverCard.Service["state"]>;
|
|
65
|
+
readonly api: Signal<hoverCard.Api>;
|
|
66
|
+
readonly send: hoverCard.Service["send"];
|
|
67
|
+
get service(): hoverCard.Service;
|
|
68
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
69
|
+
protected readonly contextCarrier: ContextCarrier<HoverCardRootProvider>;
|
|
70
|
+
getContextCarrier(): ContextCarrier<HoverCardRootProvider>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardRootProvider, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardRootProvider, "[hover-card-root-provider]", ["hoverCardRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class HoverCardTrigger {
|
|
76
|
+
readonly value: InputSignal<string | undefined>;
|
|
77
|
+
constructor();
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardTrigger, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardTrigger, "[hover-card-trigger]", ["hoverCardTrigger"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class HoverCardPositioner {
|
|
83
|
+
constructor();
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardPositioner, never>;
|
|
85
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardPositioner, "[hover-card-positioner]", ["hoverCardPositioner"], {}, {}, never, never, true, never>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class HoverCardContent {
|
|
89
|
+
constructor();
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardContent, never>;
|
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardContent, "[hover-card-content]", ["hoverCardContent"], {}, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class HoverCardArrow {
|
|
95
|
+
constructor();
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardArrow, never>;
|
|
97
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardArrow, "[hover-card-arrow]", ["hoverCardArrow"], {}, {}, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class HoverCardArrowTip {
|
|
101
|
+
constructor();
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardArrowTip, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardArrowTip, "[hover-card-arrow-tip]", ["hoverCardArrowTip"], {}, {}, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface HoverCardContextTemplate {
|
|
107
|
+
$implicit: UseHoverCardReturn["api"];
|
|
108
|
+
api: UseHoverCardReturn["api"];
|
|
109
|
+
}
|
|
110
|
+
declare class HoverCardContext {
|
|
111
|
+
static ngTemplateContextGuard(_directive: HoverCardContext, context: unknown): context is HoverCardContextTemplate;
|
|
112
|
+
private readonly hoverCard;
|
|
113
|
+
private readonly templateRef;
|
|
114
|
+
private readonly viewContainer;
|
|
115
|
+
constructor();
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverCardContext, never>;
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverCardContext, "[hover-card-context]", ["hoverCardContext"], {}, {}, never, never, true, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { HOVER_CARD_CONTEXT, HOVER_CARD_CONTEXT_CARRIER, HOVER_CARD_RENDER_STRATEGY_CONTEXT, HoverCardArrow, HoverCardArrowTip, HoverCardContent, HoverCardContext, HoverCardPositioner, HoverCardRoot, HoverCardRootProvider, HoverCardTrigger, injectHoverCardContext, injectHoverCardContextCarrier, injectHoverCardRenderStrategyContext, useHoverCard };
|
|
121
|
+
export type { HoverCardContextTemplate, HoverCardRenderStrategyContext, UseHoverCardOptions, UseHoverCardProps, UseHoverCardReturn };
|
|
122
|
+
//# sourceMappingURL=wirekyt-angular-hover-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-hover-card.d.ts","sources":["../../src/components/hover-card/use.ts","../../src/components/hover-card/use-context.ts","../../src/components/hover-card/root.ts","../../src/components/hover-card/root-provider.ts","../../src/components/hover-card/trigger.ts","../../src/components/hover-card/positioner.ts","../../src/components/hover-card/content.ts","../../src/components/hover-card/arrow.ts","../../src/components/hover-card/arrow-tip.ts","../../src/components/hover-card/context.ts"],"mappings":";;;;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,iBAAkB,SAAQ,UAAU,CACnD,IAAI,CAAC,SAAS,CAAC,KAAK;AAClB;AAEE,KAAM,kBAAkB,GAAG,gBAAgB,CAC/C,SAAS,CAAC,OAAO,WACjB,SAAS,CAAC,GAAG,EACb,SAAS,CAAC,OAAO;UAGF,mBAAmB;mBACnB,iBAAiB;AACjC;AAKD,iBAAgB,YAAY,UAAU,mBAAmB,GAAG,kBAAkB;;ACxB9E,cAAa,kBAAkB,EAAA,cAAA,CAAA,kBAAA;AAI/B,iBAAgB,sBAAsB,IAAI,kBAAkB;AAI5D,cAAa,0BAA0B,EAAA,cAAA,CAAA,cAAA,CAAA,kBAAA;AAIvC,iBAAgB,6BAA6B,IAAI,cAAc,CAAC,kBAAkB;UAIjE,8BAA8B;AAC7C,wBAAoB,MAAM;AAC1B,4BAAwB,MAAM;AAC/B;AAED,cAAa,kCAAkC,EAAA,cAAA,CAAA,8BAAA;AAG/C,iBAAgB,oCAAoC,IAAI,8BAA8B;;ACUtF,cAsBa,aAAc,SAAQ,YAAa,YAAW,kBAAkB;iBAC9D,WAAW;AACxB,kBAAc,WAAW,CAAC,OAAO,CAACA,UAAmB;mBAGtC,WAAW;0BACJ,wBAAwB;uBAG3B,wBAAw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7B;;UCPgB,wBAAwB;AACvC,eAAW,kBAAkB;AAC7B,SAAK,kBAAkB;AACxB;AAED,cAKa,gBAAgB;AAC3B,8CACc,gBAAgB,gCAEhB,wBAAwB;AAKtC;AACA;AACA;;yCAXW,gBAAgB;2CAAhB,gBAAgB;AA0B5B;;;;","names":["HoverCardElementIds","HoverCardPositioningOptions","HoverCardOpenChangeDetails","HoverCardFocusOutsideEvent","HoverCardInteractOutsideEvent","HoverCardPointerDownOutsideEvent","HoverCardTriggerValueChangeDetails"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"types": "./dist/types/wirekyt-angular-fieldset.d.ts",
|
|
92
92
|
"default": "./dist/fesm2022/wirekyt-angular-fieldset.mjs"
|
|
93
93
|
},
|
|
94
|
+
"./file-upload": {
|
|
95
|
+
"types": "./dist/types/wirekyt-angular-file-upload.d.ts",
|
|
96
|
+
"default": "./dist/fesm2022/wirekyt-angular-file-upload.mjs"
|
|
97
|
+
},
|
|
94
98
|
"./floating-panel": {
|
|
95
99
|
"types": "./dist/types/wirekyt-angular-floating-panel.d.ts",
|
|
96
100
|
"default": "./dist/fesm2022/wirekyt-angular-floating-panel.mjs"
|
|
@@ -111,6 +115,10 @@
|
|
|
111
115
|
"types": "./dist/types/wirekyt-angular-highlight.d.ts",
|
|
112
116
|
"default": "./dist/fesm2022/wirekyt-angular-highlight.mjs"
|
|
113
117
|
},
|
|
118
|
+
"./hover-card": {
|
|
119
|
+
"types": "./dist/types/wirekyt-angular-hover-card.d.ts",
|
|
120
|
+
"default": "./dist/fesm2022/wirekyt-angular-hover-card.mjs"
|
|
121
|
+
},
|
|
114
122
|
"./presence": {
|
|
115
123
|
"types": "./dist/types/wirekyt-angular-presence.d.ts",
|
|
116
124
|
"default": "./dist/fesm2022/wirekyt-angular-presence.mjs"
|
|
@@ -132,7 +140,7 @@
|
|
|
132
140
|
"dependencies": {
|
|
133
141
|
"@internationalized/date": "^3.12.3",
|
|
134
142
|
"@internationalized/number": "^3.6.7",
|
|
135
|
-
"@wirekyt/dom": "0.0.
|
|
143
|
+
"@wirekyt/dom": "0.0.28",
|
|
136
144
|
"tslib": "^2.8.1"
|
|
137
145
|
},
|
|
138
146
|
"peerDependencies": {
|