apptify 0.6.2 → 0.7.1
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/README.md +1 -1
- package/THIRD_PARTY_LICENSES.txt +23 -0
- package/dist/apptify.css +1 -1
- package/dist/apptify.js +2395 -2451
- package/dist/components/AppleCard.vue.d.ts +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/content.d.ts +81 -20
- package/dist/components/forms.d.ts +2 -2
- package/dist/components/foundation.d.ts +136 -14
- package/dist/components/mobile-image-viewer.d.ts +35 -12
- package/dist/components/navibar.d.ts +2 -2
- package/dist/components/overlays.d.ts +10 -59
- package/dist/components/scrollbar.d.ts +88 -0
- package/dist/components/speed-dial.d.ts +157 -0
- package/dist/core/context.d.ts +11 -0
- package/dist/core/device.d.ts +2 -0
- package/dist/core/image-gallery-motion.d.ts +2 -1
- package/dist/core/image-motion.d.ts +1 -1
- package/dist/core/layers.d.ts +1 -0
- package/dist/core/motion-driver.d.ts +40 -0
- package/dist/core/motion.d.ts +1 -1
- package/dist/core/ripple.d.ts +16 -0
- package/dist/core/scroll-motion.d.ts +6 -0
- package/dist/core/scrollbar.d.ts +14 -0
- package/dist/core/speed-dial.d.ts +21 -0
- package/dist/index.d.ts +240 -29
- package/docs/COMPONENTS.md +11 -7
- package/package.json +5 -7
- package/templates/playground/README.md +1 -1
- package/templates/playground/package.json +1 -2
- package/templates/playground/source-snapshot.json +300 -67
- package/templates/playground/src/App.vue +1 -0
- package/templates/playground/src/ComponentDemo.vue +30 -21
- package/templates/playground/src/catalog.ts +70 -65
- package/templates/playground/src/components/ComponentIndex.vue +10 -14
- package/templates/playground/src/components/MasonryFeed.vue +52 -0
- package/templates/playground/src/components/UserMenu.vue +1 -1
- package/templates/playground/src/components/forbidden-paper-scene.vue +367 -0
- package/templates/playground/src/components/forbidden-paper-story.ts +233 -0
- package/templates/playground/src/editor/ComponentPlayground.vue +91 -0
- package/templates/playground/src/editor/ConfigurableEditor.vue +1 -1
- package/templates/playground/src/editor/apple-input-source.ts +1 -1
- package/templates/playground/src/editor/component-metadata.ts +72 -0
- package/templates/playground/src/editor/component-playground.ts +163 -0
- package/templates/playground/src/editor/contract.ts +1 -1
- package/templates/playground/src/editor/documents.ts +11 -2
- package/templates/playground/src/editor/handbook.ts +22 -0
- package/templates/playground/src/editor/handbooks/apple-accordion.ts +66 -0
- package/templates/playground/src/editor/handbooks/apple-action-sheet.ts +72 -0
- package/templates/playground/src/editor/handbooks/apple-alert.ts +67 -0
- package/templates/playground/src/editor/handbooks/apple-aside.ts +32 -0
- package/templates/playground/src/editor/handbooks/apple-auto-size.ts +32 -0
- package/templates/playground/src/editor/handbooks/apple-autocomplete.ts +114 -0
- package/templates/playground/src/editor/handbooks/apple-avatar-group.ts +50 -0
- package/templates/playground/src/editor/handbooks/apple-avatar.ts +56 -0
- package/templates/playground/src/editor/handbooks/apple-back-top.ts +62 -0
- package/templates/playground/src/editor/handbooks/apple-badge.ts +62 -0
- package/templates/playground/src/editor/handbooks/apple-breadcrumbs.ts +38 -0
- package/templates/playground/src/editor/handbooks/apple-button.ts +92 -0
- package/templates/playground/src/editor/handbooks/apple-card.ts +112 -0
- package/templates/playground/src/editor/handbooks/apple-cascader.ts +102 -0
- package/templates/playground/src/editor/handbooks/apple-checkbox.ts +85 -0
- package/templates/playground/src/editor/handbooks/apple-color-picker.ts +79 -0
- package/templates/playground/src/editor/handbooks/apple-container.ts +26 -0
- package/templates/playground/src/editor/handbooks/apple-date-picker.ts +104 -0
- package/templates/playground/src/editor/handbooks/apple-dialog.ts +151 -0
- package/templates/playground/src/editor/handbooks/apple-divider.ts +38 -0
- package/templates/playground/src/editor/handbooks/apple-drawer.ts +151 -0
- package/templates/playground/src/editor/handbooks/apple-empty.ts +43 -0
- package/templates/playground/src/editor/handbooks/apple-floating-group.ts +51 -0
- package/templates/playground/src/editor/handbooks/apple-form-field.ts +69 -0
- package/templates/playground/src/editor/handbooks/apple-form.ts +76 -0
- package/templates/playground/src/editor/handbooks/apple-grid.ts +32 -0
- package/templates/playground/src/editor/handbooks/apple-image.ts +122 -0
- package/templates/playground/src/editor/handbooks/apple-infinite-scroll.ts +73 -0
- package/templates/playground/src/editor/handbooks/apple-link.ts +68 -0
- package/templates/playground/src/editor/handbooks/apple-list.ts +67 -0
- package/templates/playground/src/editor/handbooks/apple-menu.ts +72 -0
- package/templates/playground/src/editor/handbooks/apple-navibar.ts +100 -0
- package/templates/playground/src/editor/handbooks/apple-otp-input.ts +108 -0
- package/templates/playground/src/editor/handbooks/apple-overlay-host.ts +13 -0
- package/templates/playground/src/editor/handbooks/apple-pagination.ts +61 -0
- package/templates/playground/src/editor/handbooks/apple-popover.ts +112 -0
- package/templates/playground/src/editor/handbooks/apple-progress.ts +56 -0
- package/templates/playground/src/editor/handbooks/apple-provider.ts +32 -0
- package/templates/playground/src/editor/handbooks/apple-pull-refresh.ts +61 -0
- package/templates/playground/src/editor/handbooks/apple-radio-group.ts +91 -0
- package/templates/playground/src/editor/handbooks/apple-rate.ts +97 -0
- package/templates/playground/src/editor/handbooks/apple-scroll-bar.ts +15 -0
- package/templates/playground/src/editor/handbooks/apple-search.ts +49 -0
- package/templates/playground/src/editor/handbooks/apple-segmented-control.ts +85 -0
- package/templates/playground/src/editor/handbooks/apple-select.ts +91 -0
- package/templates/playground/src/editor/handbooks/apple-sheet.ts +151 -0
- package/templates/playground/src/editor/handbooks/apple-skeleton.ts +74 -0
- package/templates/playground/src/editor/handbooks/apple-slider.ts +103 -0
- package/templates/playground/src/editor/handbooks/apple-snackbar.ts +89 -0
- package/templates/playground/src/editor/handbooks/apple-speed-dial-item.ts +16 -0
- package/templates/playground/src/editor/handbooks/apple-speed-dial.ts +13 -0
- package/templates/playground/src/editor/handbooks/apple-spinner.ts +38 -0
- package/templates/playground/src/editor/handbooks/apple-stack.ts +44 -0
- package/templates/playground/src/editor/handbooks/apple-statistic.ts +69 -0
- package/templates/playground/src/editor/handbooks/apple-stepper.ts +91 -0
- package/templates/playground/src/editor/handbooks/apple-steps.ts +61 -0
- package/templates/playground/src/editor/handbooks/apple-switch.ts +79 -0
- package/templates/playground/src/editor/handbooks/apple-tab-bar.ts +66 -0
- package/templates/playground/src/editor/handbooks/apple-table.ts +176 -0
- package/templates/playground/src/editor/handbooks/apple-tabs.ts +72 -0
- package/templates/playground/src/editor/handbooks/apple-tag.ts +56 -0
- package/templates/playground/src/editor/handbooks/apple-textarea.ts +109 -0
- package/templates/playground/src/editor/handbooks/apple-timeline.ts +44 -0
- package/templates/playground/src/editor/handbooks/apple-tooltip.ts +45 -0
- package/templates/playground/src/editor/handbooks/apple-transition.ts +44 -0
- package/templates/playground/src/editor/handbooks/apple-tree.ts +84 -0
- package/templates/playground/src/editor/handbooks/apple-upload.ts +126 -0
- package/templates/playground/src/editor/playground-examples.ts +105 -0
- package/templates/playground/src/images.ts +3 -0
- package/templates/playground/src/router/index.ts +19 -2
- package/templates/playground/src/style.css +4 -4
- package/templates/playground/src/views/403.vue +65 -0
- package/templates/playground/src/views/component-docs/[component].vue +11 -14
- package/templates/playground/src/views/components.vue +11 -41
- package/templates/playground/src/views/index.vue +3 -1
- package/templates/playground/src/views/settings.vue +5 -2
- package/templates/playground/tooling/playground-editor.mjs +4 -3
- package/tooling/playground-editor.mjs +4 -3
- package/tooling/prepare-playground.mjs +3 -3
- package/tooling/test-playground-package.mjs +10 -0
- package/dist/components/gallery-scrollbar.d.ts +0 -46
- package/dist/core/desktop-image-enter.d.ts +0 -6
- package/dist/core/desktop-image-return.d.ts +0 -1
- package/templates/playground/src/components/DirectoryDialog.vue +0 -20
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type ScrollBarAxis } from '../core/scrollbar';
|
|
3
|
+
export declare const AppleScrollBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
target: {
|
|
5
|
+
type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
axis: {
|
|
9
|
+
type: PropType<ScrollBarAxis>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
controls: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "interaction"[], "interaction", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
target: {
|
|
22
|
+
type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
axis: {
|
|
26
|
+
type: PropType<ScrollBarAxis>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
controls: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
onInteraction?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
label: string;
|
|
41
|
+
target: string | HTMLElement | (() => HTMLElement | undefined);
|
|
42
|
+
axis: ScrollBarAxis;
|
|
43
|
+
controls: string;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export declare const scrollBarComponents: {
|
|
46
|
+
AppleScrollBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
47
|
+
target: {
|
|
48
|
+
type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
axis: {
|
|
52
|
+
type: PropType<ScrollBarAxis>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
label: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
controls: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "interaction"[], "interaction", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
target: {
|
|
65
|
+
type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
axis: {
|
|
69
|
+
type: PropType<ScrollBarAxis>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
label: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
controls: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}>> & Readonly<{
|
|
81
|
+
onInteraction?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
label: string;
|
|
84
|
+
target: string | HTMLElement | (() => HTMLElement | undefined);
|
|
85
|
+
axis: ScrollBarAxis;
|
|
86
|
+
controls: string;
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { type Component, type PropType, type VNodeChild } from 'vue';
|
|
2
|
+
export declare const AppleSpeedDial: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
backTop: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
target: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
threshold: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
backTop: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
target: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
threshold: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
label: string;
|
|
38
|
+
target: string;
|
|
39
|
+
threshold: number;
|
|
40
|
+
backTop: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export declare const AppleSpeedDialItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
icon: PropType<Component>;
|
|
48
|
+
disabled: BooleanConstructor;
|
|
49
|
+
visible: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
type: PropType<"primary" | "secondary" | "outline" | "danger">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
label: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
icon: PropType<Component>;
|
|
63
|
+
disabled: BooleanConstructor;
|
|
64
|
+
visible: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
variant: {
|
|
69
|
+
type: PropType<"primary" | "secondary" | "outline" | "danger">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{
|
|
73
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
variant: "secondary" | "danger" | "primary" | "outline";
|
|
77
|
+
visible: boolean;
|
|
78
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
export declare const speedDialComponents: {
|
|
80
|
+
AppleSpeedDial: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
81
|
+
backTop: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
target: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
threshold: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
label: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
|
+
backTop: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
target: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
threshold: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
label: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
}>> & Readonly<{}>, {
|
|
115
|
+
label: string;
|
|
116
|
+
target: string;
|
|
117
|
+
threshold: number;
|
|
118
|
+
backTop: boolean;
|
|
119
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
AppleSpeedDialItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
121
|
+
label: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
required: true;
|
|
124
|
+
};
|
|
125
|
+
icon: PropType<Component>;
|
|
126
|
+
disabled: BooleanConstructor;
|
|
127
|
+
visible: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
variant: {
|
|
132
|
+
type: PropType<"primary" | "secondary" | "outline" | "danger">;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
label: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
required: true;
|
|
139
|
+
};
|
|
140
|
+
icon: PropType<Component>;
|
|
141
|
+
disabled: BooleanConstructor;
|
|
142
|
+
visible: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
variant: {
|
|
147
|
+
type: PropType<"primary" | "secondary" | "outline" | "danger">;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
}>> & Readonly<{
|
|
151
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
}>, {
|
|
153
|
+
disabled: boolean;
|
|
154
|
+
variant: "secondary" | "danger" | "primary" | "outline";
|
|
155
|
+
visible: boolean;
|
|
156
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
157
|
+
};
|
package/dist/core/context.d.ts
CHANGED
|
@@ -660,7 +660,18 @@ export declare function createApple(options?: AppleOptions): import("vue").Raw<{
|
|
|
660
660
|
clear(): void;
|
|
661
661
|
};
|
|
662
662
|
portalTarget: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
663
|
+
speedDial: import("vue").Raw<{
|
|
664
|
+
entries: import("vue").ShallowRef<import("./speed-dial").SpeedDialEntry[], import("./speed-dial").SpeedDialEntry[]>;
|
|
665
|
+
host: Ref<string | undefined, string | undefined>;
|
|
666
|
+
hostDepth: Ref<number, number>;
|
|
667
|
+
mobile: Ref<boolean, boolean>;
|
|
668
|
+
open: Ref<boolean, boolean>;
|
|
669
|
+
activeDirectory: Ref<string | undefined, string | undefined>;
|
|
670
|
+
register(entry: import("./speed-dial").SpeedDialEntry): void;
|
|
671
|
+
unregister(id: string): void;
|
|
672
|
+
}>;
|
|
663
673
|
isTouchDevice: Readonly<Ref<boolean, boolean>>;
|
|
674
|
+
isVerticalScreen: Readonly<Ref<boolean, boolean>>;
|
|
664
675
|
dialog: <T = unknown>(settings: Omit<OverlayOptions, "kind">) => OverlayHandle<T>;
|
|
665
676
|
notify: (message: string, settings?: Omit<OverlayOptions, "kind" | "message">) => OverlayHandle<unknown>;
|
|
666
677
|
sendMessage: <T = unknown>(channel: string, payload?: T) => unknown[];
|
package/dist/core/device.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export declare const touchDeviceQuery = "(any-pointer: coarse)";
|
|
|
2
2
|
export declare const detectTouchDevice: () => boolean;
|
|
3
3
|
/** Shared across apps, components and teleported overlays. */
|
|
4
4
|
export declare const isTouchDevice: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
5
|
+
export declare const isVerticalScreen: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
6
|
+
export declare function syncVerticalScreen(): void;
|
|
5
7
|
export declare function syncTouchDevice(): void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare function stopGalleryScroll(box: HTMLElement): void;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function wheelGallery(box: HTMLElement, delta: number, animated: boolean): void;
|
|
3
|
+
export declare function scrollGallery(box: HTMLElement, left: number, animated: boolean, complete: () => void, adjacent?: boolean, snapOverride?: string): void;
|
|
@@ -14,5 +14,5 @@ export declare function photoPageTiming(distance: number, velocity: number, _wid
|
|
|
14
14
|
easing: string;
|
|
15
15
|
};
|
|
16
16
|
export declare function photoFlightSize(from: PhotoGeometry, to: PhotoGeometry): PhotoSize;
|
|
17
|
-
export declare function photoFlightFrame(rect: PhotoGeometry, base: PhotoSize): Keyframe;
|
|
17
|
+
export declare function photoFlightFrame(rect: PhotoGeometry, base: PhotoSize, preserveCrop?: boolean): Keyframe;
|
|
18
18
|
export declare function readPhotoGeometry(frame: HTMLElement, photo: HTMLElement, panel: DOMRect): PhotoGeometry;
|
package/dist/core/layers.d.ts
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface MotionSample {
|
|
2
|
+
value: number[];
|
|
3
|
+
velocity: number[];
|
|
4
|
+
target: number[];
|
|
5
|
+
}
|
|
6
|
+
export declare function sampleSpring(value: number, velocity: number, target: number, seconds: number, frequency: number): {
|
|
7
|
+
value: number;
|
|
8
|
+
velocity: number;
|
|
9
|
+
};
|
|
10
|
+
/** Each channel owns its lifetime. Retargeting preserves position and velocity. */
|
|
11
|
+
export declare class MotionDriver {
|
|
12
|
+
private changed;
|
|
13
|
+
private springs;
|
|
14
|
+
private tracks;
|
|
15
|
+
private owners;
|
|
16
|
+
private frame;
|
|
17
|
+
constructor(changed?: () => void);
|
|
18
|
+
has(key: string): boolean;
|
|
19
|
+
get active(): boolean;
|
|
20
|
+
prepare(key: string): () => boolean;
|
|
21
|
+
velocityX(key: string, element: HTMLElement): number;
|
|
22
|
+
sample(key: string): MotionSample | undefined;
|
|
23
|
+
shift(key: string, offset: number[]): void;
|
|
24
|
+
to(key: string, from: number[], target: number[], update: (value: number[]) => void, options?: {
|
|
25
|
+
frequency?: number;
|
|
26
|
+
epsilon?: number[];
|
|
27
|
+
immediate?: boolean;
|
|
28
|
+
velocity?: number[];
|
|
29
|
+
bounds?: Array<[number, number] | null>;
|
|
30
|
+
}): Promise<boolean>;
|
|
31
|
+
animate(key: string, entries: Array<{
|
|
32
|
+
element: HTMLElement;
|
|
33
|
+
from: Keyframe;
|
|
34
|
+
to: Keyframe;
|
|
35
|
+
}>, duration: number, easing: string): Promise<boolean>;
|
|
36
|
+
cancel(key?: string): void;
|
|
37
|
+
finish(): void;
|
|
38
|
+
private advance;
|
|
39
|
+
private schedule;
|
|
40
|
+
}
|
package/dist/core/motion.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! Ripple animation adapted from Vuetify. Copyright (c) 2016-now Vuetify, LLC. MIT license; see THIRD_PARTY_LICENSES.txt. */
|
|
2
|
+
import type { DirectiveBinding } from 'vue';
|
|
3
|
+
export type RippleElement = HTMLElement & {
|
|
4
|
+
_ripple?: {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
touched: boolean;
|
|
7
|
+
showTimer?: number;
|
|
8
|
+
showTimerCommit: (() => void) | null;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const Ripple: {
|
|
12
|
+
mounted(el: RippleElement, binding: Pick<DirectiveBinding<{
|
|
13
|
+
keys: string[];
|
|
14
|
+
}>, "value" | "modifiers">): void;
|
|
15
|
+
unmounted(el: RippleElement): void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface MotionScroll {
|
|
2
|
+
finished: Promise<void>;
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function cancelMotionScroll(target: HTMLElement | Window): void;
|
|
6
|
+
export declare function scrollToWithMotion(target: HTMLElement | Window, destination: number | (() => number), animated?: boolean): MotionScroll;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ScrollBarAxis = 'both' | 'horizontal' | 'vertical';
|
|
2
|
+
interface ScrollBarOptions {
|
|
3
|
+
axis?: ScrollBarAxis;
|
|
4
|
+
label?: string;
|
|
5
|
+
controls?: string;
|
|
6
|
+
host?: HTMLElement;
|
|
7
|
+
interaction?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function attachScrollBar(target: HTMLElement, options?: ScrollBarOptions): {
|
|
10
|
+
refresh: () => void;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
};
|
|
13
|
+
export declare function installScrollBars(host: HTMLElement): () => void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface SpeedDialEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: 'directory' | 'action';
|
|
4
|
+
label: string;
|
|
5
|
+
target: HTMLElement;
|
|
6
|
+
}
|
|
7
|
+
export declare function createSpeedDialRegistry(): import("vue").Raw<{
|
|
8
|
+
entries: import("vue").ShallowRef<SpeedDialEntry[], SpeedDialEntry[]>;
|
|
9
|
+
host: import("vue").Ref<string | undefined, string | undefined>;
|
|
10
|
+
hostDepth: import("vue").Ref<number, number>;
|
|
11
|
+
mobile: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
13
|
+
activeDirectory: import("vue").Ref<string | undefined, string | undefined>;
|
|
14
|
+
register(entry: SpeedDialEntry): void;
|
|
15
|
+
unregister(id: string): void;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function useSpeedDialEntry(kind: SpeedDialEntry['kind'], label: () => string, enabled?: () => boolean): {
|
|
18
|
+
target: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
19
|
+
hosted: import("vue").ComputedRef<boolean>;
|
|
20
|
+
close: () => void;
|
|
21
|
+
};
|