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.
Files changed (78) hide show
  1. package/dist/compiler-sfc/index.d.ts +1 -0
  2. package/dist/compiler-sfc/index.js +2 -0
  3. package/dist/compiler-sfc/index.js.map +1 -0
  4. package/dist/compiler.d.ts +4 -0
  5. package/dist/compiler.js +32 -0
  6. package/dist/compiler.js.map +1 -0
  7. package/dist/components/ActionBar.d.ts +3 -0
  8. package/dist/components/ActionBar.js +69 -0
  9. package/dist/components/ActionBar.js.map +1 -0
  10. package/dist/components/ListView.d.ts +20 -0
  11. package/dist/components/ListView.js +108 -0
  12. package/dist/components/ListView.js.map +1 -0
  13. package/dist/components/ListView.working.d.ts +44 -0
  14. package/dist/components/ListView.working.js +126 -0
  15. package/dist/components/ListView.working.js.map +1 -0
  16. package/dist/components/index.d.ts +18 -0
  17. package/dist/components/index.js +7 -0
  18. package/dist/components/index.js.map +1 -0
  19. package/dist/directives/vShow.d.ts +7 -0
  20. package/dist/directives/vShow.js +45 -0
  21. package/dist/directives/vShow.js.map +1 -0
  22. package/dist/dom/index.d.ts +66 -0
  23. package/dist/dom/index.js +304 -0
  24. package/dist/dom/index.js.map +1 -0
  25. package/dist/index.d.ts +18 -0
  26. package/dist/index.js +66 -12847
  27. package/dist/index.js.map +1 -0
  28. package/dist/index.mjs.map +7 -0
  29. package/dist/nativescript/elements.d.ts +1 -0
  30. package/dist/nativescript/elements.js +139 -0
  31. package/dist/nativescript/elements.js.map +1 -0
  32. package/dist/nativescript/index.d.ts +6 -0
  33. package/dist/nativescript/index.js +27 -0
  34. package/dist/nativescript/index.js.map +1 -0
  35. package/dist/plugins/modals.d.ts +22 -0
  36. package/dist/plugins/modals.js +61 -0
  37. package/dist/plugins/modals.js.map +1 -0
  38. package/dist/plugins/navigation.d.ts +32 -0
  39. package/dist/plugins/navigation.js +129 -0
  40. package/dist/plugins/navigation.js.map +1 -0
  41. package/dist/registry/index.d.ts +26 -0
  42. package/dist/registry/index.js +55 -0
  43. package/dist/registry/index.js.map +1 -0
  44. package/dist/renderer/index.d.ts +1 -0
  45. package/dist/renderer/index.js +8 -0
  46. package/dist/renderer/index.js.map +1 -0
  47. package/dist/renderer/modules/attrs.d.ts +2 -0
  48. package/dist/renderer/modules/attrs.js +31 -0
  49. package/dist/renderer/modules/attrs.js.map +1 -0
  50. package/dist/renderer/modules/class.d.ts +2 -0
  51. package/dist/renderer/modules/class.js +9 -0
  52. package/dist/renderer/modules/class.js.map +1 -0
  53. package/dist/renderer/modules/events.d.ts +12 -0
  54. package/dist/renderer/modules/events.js +53 -0
  55. package/dist/renderer/modules/events.js.map +1 -0
  56. package/dist/renderer/modules/style.d.ts +4 -0
  57. package/dist/renderer/modules/style.js +34 -0
  58. package/dist/renderer/modules/style.js.map +1 -0
  59. package/dist/renderer/nodeOps.d.ts +16 -0
  60. package/dist/renderer/nodeOps.js +68 -0
  61. package/dist/renderer/nodeOps.js.map +1 -0
  62. package/dist/renderer/patchProp.d.ts +2 -0
  63. package/dist/renderer/patchProp.js +30 -0
  64. package/dist/renderer/patchProp.js.map +1 -0
  65. package/dist/runtimeHelpers.d.ts +5 -0
  66. package/dist/runtimeHelpers.js +10 -0
  67. package/dist/runtimeHelpers.js.map +1 -0
  68. package/dist/types.d.ts +15 -0
  69. package/dist/types.js +2 -0
  70. package/dist/types.js.map +1 -0
  71. package/dist/withCompiler.d.ts +3 -0
  72. package/dist/withCompiler.js +6 -0
  73. package/dist/withCompiler.js.map +1 -0
  74. package/nativescript.webpack.js +51 -0
  75. package/package.json +18 -111
  76. package/LICENSE +0 -21
  77. package/README.md +0 -118
  78. 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;