nativescript-vue 2.9.2 → 3.0.0-beta.0
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/compiler-sfc/index.d.ts +1 -0
- package/dist/compiler-sfc/index.js +2 -0
- package/dist/compiler-sfc/index.js.map +1 -0
- package/dist/compiler.d.ts +4 -0
- package/dist/compiler.js +32 -0
- package/dist/compiler.js.map +1 -0
- package/dist/components/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar.js +69 -0
- package/dist/components/ActionBar.js.map +1 -0
- package/dist/components/ListView.d.ts +20 -0
- package/dist/components/ListView.js +108 -0
- package/dist/components/ListView.js.map +1 -0
- package/dist/components/ListView.working.d.ts +44 -0
- package/dist/components/ListView.working.js +126 -0
- package/dist/components/ListView.working.js.map +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -0
- package/dist/directives/vShow.d.ts +7 -0
- package/dist/directives/vShow.js +45 -0
- package/dist/directives/vShow.js.map +1 -0
- package/dist/dom/index.d.ts +66 -0
- package/dist/dom/index.js +304 -0
- package/dist/dom/index.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +66 -12847
- package/dist/index.js.map +1 -0
- package/dist/index.mjs.map +7 -0
- package/dist/nativescript/elements.d.ts +1 -0
- package/dist/nativescript/elements.js +139 -0
- package/dist/nativescript/elements.js.map +1 -0
- package/dist/nativescript/index.d.ts +6 -0
- package/dist/nativescript/index.js +27 -0
- package/dist/nativescript/index.js.map +1 -0
- package/dist/plugins/modals.d.ts +22 -0
- package/dist/plugins/modals.js +61 -0
- package/dist/plugins/modals.js.map +1 -0
- package/dist/plugins/navigation.d.ts +32 -0
- package/dist/plugins/navigation.js +129 -0
- package/dist/plugins/navigation.js.map +1 -0
- package/dist/registry/index.d.ts +26 -0
- package/dist/registry/index.js +55 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/renderer/index.d.ts +1 -0
- package/dist/renderer/index.js +8 -0
- package/dist/renderer/index.js.map +1 -0
- package/dist/renderer/modules/attrs.d.ts +2 -0
- package/dist/renderer/modules/attrs.js +31 -0
- package/dist/renderer/modules/attrs.js.map +1 -0
- package/dist/renderer/modules/class.d.ts +2 -0
- package/dist/renderer/modules/class.js +9 -0
- package/dist/renderer/modules/class.js.map +1 -0
- package/dist/renderer/modules/events.d.ts +12 -0
- package/dist/renderer/modules/events.js +53 -0
- package/dist/renderer/modules/events.js.map +1 -0
- package/dist/renderer/modules/style.d.ts +4 -0
- package/dist/renderer/modules/style.js +34 -0
- package/dist/renderer/modules/style.js.map +1 -0
- package/dist/renderer/nodeOps.d.ts +16 -0
- package/dist/renderer/nodeOps.js +68 -0
- package/dist/renderer/nodeOps.js.map +1 -0
- package/dist/renderer/patchProp.d.ts +2 -0
- package/dist/renderer/patchProp.js +30 -0
- package/dist/renderer/patchProp.js.map +1 -0
- package/dist/runtimeHelpers.d.ts +5 -0
- package/dist/runtimeHelpers.js +10 -0
- package/dist/runtimeHelpers.js.map +1 -0
- package/dist/types.d.ts +15 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/withCompiler.d.ts +3 -0
- package/dist/withCompiler.js +6 -0
- package/dist/withCompiler.js.map +1 -0
- package/nativescript.webpack.js +51 -0
- package/package.json +18 -111
- package/LICENSE +0 -21
- package/README.md +0 -118
- package/index.d.ts +0 -90
package/index.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Page,
|
|
3
|
-
NavigationEntry,
|
|
4
|
-
BackstackEntry,
|
|
5
|
-
} from '@nativescript/core'
|
|
6
|
-
import { ItemEventData } from '@nativescript/core'
|
|
7
|
-
import { View } from '@nativescript/core'
|
|
8
|
-
import { ShowModalOptions } from '@nativescript/core'
|
|
9
|
-
import { Vue, VueConstructor, VueConfiguration } from 'vue/types/vue'
|
|
10
|
-
|
|
11
|
-
// ListView ItemEventData with the addition of the item property
|
|
12
|
-
export type NativeScriptVueItemEventData<T> = ItemEventData & { item: T }
|
|
13
|
-
|
|
14
|
-
// TODO: define fully.
|
|
15
|
-
type TargetFrame = any;
|
|
16
|
-
|
|
17
|
-
export interface NavigationEntryVue extends NavigationEntry {
|
|
18
|
-
props?: Record<string, any>,
|
|
19
|
-
frame?: TargetFrame,
|
|
20
|
-
resolveOnEvent?: "navigatingTo" | "navigatedTo" | string
|
|
21
|
-
// Page.navigatingToEvent | Page.navigatedToEvent
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type navigateTo = (
|
|
25
|
-
component: VueConstructor,
|
|
26
|
-
options?: NavigationEntryVue,
|
|
27
|
-
cb?: () => Page,
|
|
28
|
-
) => Promise<Page>
|
|
29
|
-
|
|
30
|
-
export type navigateBack = (
|
|
31
|
-
options?: {
|
|
32
|
-
frame?: TargetFrame
|
|
33
|
-
},
|
|
34
|
-
backstackEntry?: BackstackEntry,
|
|
35
|
-
) => void
|
|
36
|
-
|
|
37
|
-
export interface ModalOptions extends Partial<ShowModalOptions> {
|
|
38
|
-
target?: any; // optional Vue target to open the modal from
|
|
39
|
-
props?: Record<string, any>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare module 'vue/types/vue' {
|
|
43
|
-
// 3. Declare augmentation for Vue
|
|
44
|
-
interface Vue<V = View> {
|
|
45
|
-
nativeView: V
|
|
46
|
-
|
|
47
|
-
$navigateTo: navigateTo
|
|
48
|
-
$navigateBack: navigateBack
|
|
49
|
-
|
|
50
|
-
$modal?: { close: (data?: any) => Promise<typeof data> };
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Open a modal using a component
|
|
54
|
-
* @param {typeof Vue} component
|
|
55
|
-
* @param {ModalOptions} options
|
|
56
|
-
* @returns {any}
|
|
57
|
-
*/
|
|
58
|
-
$showModal: (component: typeof Vue, options?: ModalOptions) => Promise<any>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* starts the nativescript application
|
|
62
|
-
*/
|
|
63
|
-
$start: () => void
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export interface NativeScriptVue<V = View> extends Vue<V>{};
|
|
67
|
-
export interface NativeScriptVueConstructor<V = View> extends VueConstructor<NativeScriptVue<V>>
|
|
68
|
-
{
|
|
69
|
-
navigateTo: navigateTo
|
|
70
|
-
navigateBack: navigateBack
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Registers NativeScript Plugin.
|
|
74
|
-
* @param elementName Name of the element to use in your template
|
|
75
|
-
* @param resolver function to register the element
|
|
76
|
-
* @param meta meta associated with the element
|
|
77
|
-
*/
|
|
78
|
-
registerElement: (elementName: string, resolver: Function, meta?: any) => void
|
|
79
|
-
|
|
80
|
-
config: NativeScriptVueConfiguration
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface NativeScriptVueConfiguration extends VueConfiguration {
|
|
84
|
-
suppressRenderLogs: boolean;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export const NativeScriptVue: NativeScriptVueConstructor
|
|
88
|
-
|
|
89
|
-
// export as namespace NativeScriptVue;
|
|
90
|
-
export default NativeScriptVue;
|